Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
34 lines
900 B
Go
34 lines
900 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
"strings"
|
|
|
|
reporterevents "github.com/tutti-os/tutti/services/tuttid/service/reporter/events"
|
|
)
|
|
|
|
const deprecatedWorkspaceAppAgentAPIUsedEvent = "deprecated_workspace_app_agent_api_used"
|
|
|
|
func (api DaemonAPI) trackDeprecatedWorkspaceAppAgentAPI(
|
|
ctx context.Context,
|
|
route string,
|
|
appID string,
|
|
workspaceAppVersion string,
|
|
) {
|
|
route = strings.TrimSpace(route)
|
|
appID = strings.TrimSpace(appID)
|
|
workspaceAppVersion = strings.TrimSpace(workspaceAppVersion)
|
|
if route == "" || appID == "" {
|
|
return
|
|
}
|
|
if workspaceAppVersion == "" {
|
|
workspaceAppVersion = "unknown"
|
|
}
|
|
reporterevents.Track(ctx, api.AnalyticsReporter, deprecatedWorkspaceAppAgentAPIUsedEvent, map[string]any{
|
|
"app_id": appID,
|
|
"migration_target": "agent-acp-kit-tutti-cli-facade",
|
|
"route": route,
|
|
"workspace_app_version": workspaceAppVersion,
|
|
})
|
|
}
|