@overdeck/contracts 0.74.0 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +641 -40
- package/dist/index.d.ts +118 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +637 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6801,7 +6801,11 @@ const TELEMETRY_EVENT_NAMES = [
|
|
|
6801
6801
|
"phone_paired",
|
|
6802
6802
|
"phone_removed",
|
|
6803
6803
|
"anywhere_channel_opened",
|
|
6804
|
-
"relay_usage_sampled"
|
|
6804
|
+
"relay_usage_sampled",
|
|
6805
|
+
"mcp_session_seen",
|
|
6806
|
+
"mcp_tool_called",
|
|
6807
|
+
"client_request_failed",
|
|
6808
|
+
"phone_link_state"
|
|
6805
6809
|
];
|
|
6806
6810
|
const TELEMETRY_CLI_VERBS = [
|
|
6807
6811
|
"abort",
|
|
@@ -6864,6 +6868,356 @@ const TELEMETRY_CLI_VERBS = [
|
|
|
6864
6868
|
"write-sequence",
|
|
6865
6869
|
"other"
|
|
6866
6870
|
];
|
|
6871
|
+
const TELEMETRY_HARNESSES = [
|
|
6872
|
+
"claude-code",
|
|
6873
|
+
"ohmypi",
|
|
6874
|
+
"codex",
|
|
6875
|
+
"acp",
|
|
6876
|
+
"kimi-code",
|
|
6877
|
+
"opencode",
|
|
6878
|
+
"muse",
|
|
6879
|
+
"prime-agent"
|
|
6880
|
+
];
|
|
6881
|
+
/** PAN-5084: what kind of install reported an event — distinguishes real adoption from CI/test/VM churn. */
|
|
6882
|
+
const TELEMETRY_INSTALL_KINDS = [
|
|
6883
|
+
"user",
|
|
6884
|
+
"remote_vm",
|
|
6885
|
+
"dev_checkout",
|
|
6886
|
+
"container"
|
|
6887
|
+
];
|
|
6888
|
+
/**
|
|
6889
|
+
* PAN-4264: GitHub quota callers as telemetry values (`-` → `_`). Mirrors
|
|
6890
|
+
* `GITHUB_QUOTA_CALLERS` in ./github-quota; a unit test keeps them in step.
|
|
6891
|
+
*/
|
|
6892
|
+
const TELEMETRY_GITHUB_CALLERS = [
|
|
6893
|
+
"pipeline_membership",
|
|
6894
|
+
"pr_cache",
|
|
6895
|
+
"pr_sync",
|
|
6896
|
+
"ci_repair",
|
|
6897
|
+
"issue_poller",
|
|
6898
|
+
"close_out",
|
|
6899
|
+
"tracker_client",
|
|
6900
|
+
"app_rest",
|
|
6901
|
+
"quota_sampler",
|
|
6902
|
+
"agent",
|
|
6903
|
+
"pr_adoption",
|
|
6904
|
+
"other"
|
|
6905
|
+
];
|
|
6906
|
+
/** PAN-5016: route kinds (ROUTE_KINDS in ./machines) plus `stored`, the stored-route probe phase. */
|
|
6907
|
+
const TELEMETRY_CHANNEL_ROUTES = [
|
|
6908
|
+
"lan",
|
|
6909
|
+
"tailnet",
|
|
6910
|
+
"ssh",
|
|
6911
|
+
"public",
|
|
6912
|
+
"direct",
|
|
6913
|
+
"relay",
|
|
6914
|
+
"stored"
|
|
6915
|
+
];
|
|
6916
|
+
/** PAN-5083: the Overdeck MCP tool names (ALL_TOOLS in src/lib/mcp/server.ts); a unit test keeps them in step. */
|
|
6917
|
+
const TELEMETRY_MCP_TOOLS = [
|
|
6918
|
+
"answer_agent_permission",
|
|
6919
|
+
"answer_agent_plan",
|
|
6920
|
+
"answer_codex_approval",
|
|
6921
|
+
"answer_pane_choice",
|
|
6922
|
+
"answer_permission",
|
|
6923
|
+
"answer_pi_ask",
|
|
6924
|
+
"answer_plan",
|
|
6925
|
+
"answer_question",
|
|
6926
|
+
"delegate_task",
|
|
6927
|
+
"delete_scheduled",
|
|
6928
|
+
"done",
|
|
6929
|
+
"handoff",
|
|
6930
|
+
"interrupt_conversation",
|
|
6931
|
+
"lane_report",
|
|
6932
|
+
"lane_start",
|
|
6933
|
+
"lane_status",
|
|
6934
|
+
"lane_stop",
|
|
6935
|
+
"lane_wait",
|
|
6936
|
+
"link_machine",
|
|
6937
|
+
"link_machine_wait",
|
|
6938
|
+
"link_pull_request",
|
|
6939
|
+
"list_conversations",
|
|
6940
|
+
"list_machines",
|
|
6941
|
+
"list_pending_input",
|
|
6942
|
+
"list_pull_request_watches",
|
|
6943
|
+
"list_scheduled",
|
|
6944
|
+
"list_workers",
|
|
6945
|
+
"memory_add",
|
|
6946
|
+
"memory_search",
|
|
6947
|
+
"read_conversation",
|
|
6948
|
+
"request_secret",
|
|
6949
|
+
"schedule_message",
|
|
6950
|
+
"schedule_recurring",
|
|
6951
|
+
"search_conversations",
|
|
6952
|
+
"secret_wait",
|
|
6953
|
+
"send_message",
|
|
6954
|
+
"start_conversation",
|
|
6955
|
+
"start_issue",
|
|
6956
|
+
"start_worker",
|
|
6957
|
+
"stop_conversation",
|
|
6958
|
+
"task_block",
|
|
6959
|
+
"task_cancel",
|
|
6960
|
+
"task_claim",
|
|
6961
|
+
"task_done",
|
|
6962
|
+
"task_status",
|
|
6963
|
+
"task_wait",
|
|
6964
|
+
"unwatch_pull_request",
|
|
6965
|
+
"update_scheduled",
|
|
6966
|
+
"wait_job",
|
|
6967
|
+
"watch_pull_request",
|
|
6968
|
+
"worker_report"
|
|
6969
|
+
];
|
|
6970
|
+
/**
|
|
6971
|
+
* PAN-5100: every `ROUTE_SCOPES` path (`src/dashboard/server/route-scopes.ts`),
|
|
6972
|
+
* sorted, then `other`. Literal so the type stays a closed union; regenerate with:
|
|
6973
|
+
* grep -oE "path: '[^']*'" src/dashboard/server/route-scopes.ts | sed "s/path: '//; s/'//" | { cat; echo /api/telemetry/client-config; } | LC_ALL=C sort -u
|
|
6974
|
+
*/
|
|
6975
|
+
const TELEMETRY_CLIENT_ROUTES = [
|
|
6976
|
+
"/api/activity",
|
|
6977
|
+
"/api/agent-directory",
|
|
6978
|
+
"/api/agent-requests",
|
|
6979
|
+
"/api/agents",
|
|
6980
|
+
"/api/agents/:id/answer-question",
|
|
6981
|
+
"/api/agents/:id/message",
|
|
6982
|
+
"/api/agents/:id/permissions/:requestId/respond",
|
|
6983
|
+
"/api/agents/:id/plan-action",
|
|
6984
|
+
"/api/agents/:id/tell",
|
|
6985
|
+
"/api/connectors/self",
|
|
6986
|
+
"/api/conversations",
|
|
6987
|
+
"/api/conversations/:id",
|
|
6988
|
+
"/api/conversations/:id/codex-approval",
|
|
6989
|
+
"/api/conversations/:id/pane-choice",
|
|
6990
|
+
"/api/conversations/:id/permission",
|
|
6991
|
+
"/api/conversations/:id/pi-ask-answer",
|
|
6992
|
+
"/api/conversations/:name/abort",
|
|
6993
|
+
"/api/conversations/:name/about",
|
|
6994
|
+
"/api/conversations/:name/attachments/:file",
|
|
6995
|
+
"/api/conversations/:name/bookmarks",
|
|
6996
|
+
"/api/conversations/:name/compact",
|
|
6997
|
+
"/api/conversations/:name/delete-image",
|
|
6998
|
+
"/api/conversations/:name/diffs",
|
|
6999
|
+
"/api/conversations/:name/diffs/:turnId",
|
|
7000
|
+
"/api/conversations/:name/kickoff",
|
|
7001
|
+
"/api/conversations/:name/message",
|
|
7002
|
+
"/api/conversations/:name/message-locator",
|
|
7003
|
+
"/api/conversations/:name/messages",
|
|
7004
|
+
"/api/conversations/:name/plan-action",
|
|
7005
|
+
"/api/conversations/:name/preview-ports",
|
|
7006
|
+
"/api/conversations/:name/pull-requests",
|
|
7007
|
+
"/api/conversations/:name/pull-requests/sync",
|
|
7008
|
+
"/api/conversations/:name/release",
|
|
7009
|
+
"/api/conversations/:name/release/complete",
|
|
7010
|
+
"/api/conversations/:name/release/transfer/:transferId",
|
|
7011
|
+
"/api/conversations/:name/release/undo",
|
|
7012
|
+
"/api/conversations/:name/resume",
|
|
7013
|
+
"/api/conversations/:name/scheduled-messages",
|
|
7014
|
+
"/api/conversations/:name/scheduled-messages/:id",
|
|
7015
|
+
"/api/conversations/:name/schedules",
|
|
7016
|
+
"/api/conversations/:name/schedules/:id",
|
|
7017
|
+
"/api/conversations/:name/stop",
|
|
7018
|
+
"/api/conversations/:name/switch-model",
|
|
7019
|
+
"/api/conversations/:name/thinking-level",
|
|
7020
|
+
"/api/conversations/:name/tool-body/:toolUseId",
|
|
7021
|
+
"/api/conversations/:name/upload-image",
|
|
7022
|
+
"/api/conversations/pending-input",
|
|
7023
|
+
"/api/costs/request-digest",
|
|
7024
|
+
"/api/costs/summary",
|
|
7025
|
+
"/api/disk-alert",
|
|
7026
|
+
"/api/fleet/conversations",
|
|
7027
|
+
"/api/fleet/issues/:id/activity",
|
|
7028
|
+
"/api/fleet/issues/:id/start",
|
|
7029
|
+
"/api/fleet/machines",
|
|
7030
|
+
"/api/fleet/needs-you",
|
|
7031
|
+
"/api/fleet/placement",
|
|
7032
|
+
"/api/fleet/search",
|
|
7033
|
+
"/api/fleet/workers",
|
|
7034
|
+
"/api/fleet/workers/:id/stop",
|
|
7035
|
+
"/api/flywheel/status",
|
|
7036
|
+
"/api/issues",
|
|
7037
|
+
"/api/lanes",
|
|
7038
|
+
"/api/lanes/:name",
|
|
7039
|
+
"/api/lanes/:name/stop",
|
|
7040
|
+
"/api/machines/conversations",
|
|
7041
|
+
"/api/machines/heartbeat",
|
|
7042
|
+
"/api/machines/issue-activity",
|
|
7043
|
+
"/api/machines/needs-you",
|
|
7044
|
+
"/api/machines/projects",
|
|
7045
|
+
"/api/machines/projects/:key/file",
|
|
7046
|
+
"/api/machines/projects/:key/source",
|
|
7047
|
+
"/api/machines/self",
|
|
7048
|
+
"/api/machines/work/conversations",
|
|
7049
|
+
"/api/machines/work/issues/:id/start",
|
|
7050
|
+
"/api/machines/work/lanes",
|
|
7051
|
+
"/api/machines/work/lanes/:name/reap",
|
|
7052
|
+
"/api/machines/work/lanes/:name/status",
|
|
7053
|
+
"/api/machines/work/projects",
|
|
7054
|
+
"/api/machines/work/projects/:jobId",
|
|
7055
|
+
"/api/machines/work/workers",
|
|
7056
|
+
"/api/needs-you",
|
|
7057
|
+
"/api/palette/search",
|
|
7058
|
+
"/api/phones/self",
|
|
7059
|
+
"/api/phones/self/notification-preferences",
|
|
7060
|
+
"/api/phones/self/push-key",
|
|
7061
|
+
"/api/pipeline/membership",
|
|
7062
|
+
"/api/pull-requests",
|
|
7063
|
+
"/api/pull-requests/conversations",
|
|
7064
|
+
"/api/registered-projects",
|
|
7065
|
+
"/api/self/done",
|
|
7066
|
+
"/api/self/handoff",
|
|
7067
|
+
"/api/self/jobs/:id",
|
|
7068
|
+
"/api/self/jobs/:id/wait",
|
|
7069
|
+
"/api/self/lanes",
|
|
7070
|
+
"/api/self/lanes/report",
|
|
7071
|
+
"/api/self/lanes/wait",
|
|
7072
|
+
"/api/self/machine-link-requests",
|
|
7073
|
+
"/api/self/machine-link-requests/:id/wait",
|
|
7074
|
+
"/api/self/memory/facts",
|
|
7075
|
+
"/api/self/memory/search",
|
|
7076
|
+
"/api/self/pull-request-watches",
|
|
7077
|
+
"/api/self/pull-request-watches/:id",
|
|
7078
|
+
"/api/self/pull-requests",
|
|
7079
|
+
"/api/self/secret-requests",
|
|
7080
|
+
"/api/self/secret-requests/:id/wait",
|
|
7081
|
+
"/api/self/tasks/block",
|
|
7082
|
+
"/api/self/tasks/claim",
|
|
7083
|
+
"/api/self/tasks/done",
|
|
7084
|
+
"/api/self/worker-report",
|
|
7085
|
+
"/api/self/workers",
|
|
7086
|
+
"/api/self/workers/:id",
|
|
7087
|
+
"/api/self/workers/:id/wait",
|
|
7088
|
+
"/api/settings/resolved",
|
|
7089
|
+
"/api/telemetry/client-config",
|
|
7090
|
+
"/api/versions/self",
|
|
7091
|
+
"/api/versions/self/update",
|
|
7092
|
+
"/api/workers",
|
|
7093
|
+
"/api/workers/:id/status",
|
|
7094
|
+
"/api/workers/:id/stop",
|
|
7095
|
+
"/events/stream",
|
|
7096
|
+
"/events/version",
|
|
7097
|
+
"other"
|
|
7098
|
+
];
|
|
7099
|
+
/**
|
|
7100
|
+
* PAN-5100: the distinct first segments after `/api/` of every `NO_LOSS_MATRIX`
|
|
7101
|
+
* HTTP surface whose disposition is not `DELETE` (`tests/unit/lib/overdeck/no-loss-matrix.ts`),
|
|
7102
|
+
* plus `events` and `telemetry`, sorted, then `other`.
|
|
7103
|
+
*/
|
|
7104
|
+
const TELEMETRY_CLIENT_ROUTE_AREAS = [
|
|
7105
|
+
"access-tokens",
|
|
7106
|
+
"account",
|
|
7107
|
+
"activity",
|
|
7108
|
+
"admin",
|
|
7109
|
+
"agent-directory",
|
|
7110
|
+
"agent-requests",
|
|
7111
|
+
"agents",
|
|
7112
|
+
"anywhere",
|
|
7113
|
+
"artifacts",
|
|
7114
|
+
"autopreso",
|
|
7115
|
+
"backlog",
|
|
7116
|
+
"boot-reconciliation",
|
|
7117
|
+
"cache",
|
|
7118
|
+
"cache-status",
|
|
7119
|
+
"claude-code",
|
|
7120
|
+
"cliproxy",
|
|
7121
|
+
"cloister",
|
|
7122
|
+
"color-themes",
|
|
7123
|
+
"command-deck",
|
|
7124
|
+
"commands",
|
|
7125
|
+
"confirmations",
|
|
7126
|
+
"connectors",
|
|
7127
|
+
"context",
|
|
7128
|
+
"conversations",
|
|
7129
|
+
"costs",
|
|
7130
|
+
"dashboard",
|
|
7131
|
+
"deacon",
|
|
7132
|
+
"deft",
|
|
7133
|
+
"deploy",
|
|
7134
|
+
"dev",
|
|
7135
|
+
"devices",
|
|
7136
|
+
"diffs",
|
|
7137
|
+
"directory",
|
|
7138
|
+
"discovered-sessions",
|
|
7139
|
+
"disk-alert",
|
|
7140
|
+
"effort",
|
|
7141
|
+
"environment",
|
|
7142
|
+
"events",
|
|
7143
|
+
"fleet",
|
|
7144
|
+
"flywheel",
|
|
7145
|
+
"fs",
|
|
7146
|
+
"git-activity",
|
|
7147
|
+
"github-quota",
|
|
7148
|
+
"godview",
|
|
7149
|
+
"health",
|
|
7150
|
+
"hooks",
|
|
7151
|
+
"internal",
|
|
7152
|
+
"issues",
|
|
7153
|
+
"jev",
|
|
7154
|
+
"joins",
|
|
7155
|
+
"knowledge-viewer",
|
|
7156
|
+
"lanes",
|
|
7157
|
+
"linear-mcp-auth",
|
|
7158
|
+
"linked-conversations",
|
|
7159
|
+
"machines",
|
|
7160
|
+
"mcp",
|
|
7161
|
+
"mcp-oauth",
|
|
7162
|
+
"memory",
|
|
7163
|
+
"merge-queue",
|
|
7164
|
+
"merge-train",
|
|
7165
|
+
"metrics",
|
|
7166
|
+
"model-presets",
|
|
7167
|
+
"models",
|
|
7168
|
+
"needs-you",
|
|
7169
|
+
"no-resume-mode",
|
|
7170
|
+
"orders",
|
|
7171
|
+
"pairing",
|
|
7172
|
+
"palette",
|
|
7173
|
+
"parked",
|
|
7174
|
+
"phones",
|
|
7175
|
+
"pipeline",
|
|
7176
|
+
"planning",
|
|
7177
|
+
"prereqs",
|
|
7178
|
+
"project-mappings",
|
|
7179
|
+
"projects",
|
|
7180
|
+
"pull-requests",
|
|
7181
|
+
"push",
|
|
7182
|
+
"rally",
|
|
7183
|
+
"registered-projects",
|
|
7184
|
+
"registry",
|
|
7185
|
+
"remote",
|
|
7186
|
+
"resources",
|
|
7187
|
+
"restart-gate",
|
|
7188
|
+
"resume-all",
|
|
7189
|
+
"review",
|
|
7190
|
+
"self",
|
|
7191
|
+
"session-trees",
|
|
7192
|
+
"settings",
|
|
7193
|
+
"shadow",
|
|
7194
|
+
"share-probe",
|
|
7195
|
+
"shares",
|
|
7196
|
+
"show",
|
|
7197
|
+
"skills",
|
|
7198
|
+
"specialists",
|
|
7199
|
+
"system",
|
|
7200
|
+
"tailscale",
|
|
7201
|
+
"telemetry",
|
|
7202
|
+
"terminals",
|
|
7203
|
+
"tiered",
|
|
7204
|
+
"tracker-status",
|
|
7205
|
+
"trackers",
|
|
7206
|
+
"triggers",
|
|
7207
|
+
"tts",
|
|
7208
|
+
"update",
|
|
7209
|
+
"vault",
|
|
7210
|
+
"velocity",
|
|
7211
|
+
"version",
|
|
7212
|
+
"versions",
|
|
7213
|
+
"voice",
|
|
7214
|
+
"webhooks",
|
|
7215
|
+
"workers",
|
|
7216
|
+
"workspace-registry",
|
|
7217
|
+
"workspace-stack-health",
|
|
7218
|
+
"workspaces",
|
|
7219
|
+
"other"
|
|
7220
|
+
];
|
|
6867
7221
|
const TELEMETRY_PROPERTY_DOMAINS = {
|
|
6868
7222
|
agent_spawn_mode: ["spawn-and-send", "spawn-work-and-send"],
|
|
6869
7223
|
answer_type: [
|
|
@@ -6886,16 +7240,10 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6886
7240
|
"heartbeat_failed",
|
|
6887
7241
|
"revoked"
|
|
6888
7242
|
],
|
|
6889
|
-
channel_route:
|
|
6890
|
-
"lan",
|
|
6891
|
-
"tailnet",
|
|
6892
|
-
"ssh",
|
|
6893
|
-
"public",
|
|
6894
|
-
"direct",
|
|
6895
|
-
"relay",
|
|
6896
|
-
"stored"
|
|
6897
|
-
],
|
|
7243
|
+
channel_route: TELEMETRY_CHANNEL_ROUTES,
|
|
6898
7244
|
cli_verb: TELEMETRY_CLI_VERBS,
|
|
7245
|
+
client_route: TELEMETRY_CLIENT_ROUTES,
|
|
7246
|
+
client_route_area: TELEMETRY_CLIENT_ROUTE_AREAS,
|
|
6899
7247
|
close_out_variant: ["card", "inspector"],
|
|
6900
7248
|
count_bucket: [
|
|
6901
7249
|
"0",
|
|
@@ -6944,30 +7292,17 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6944
7292
|
"handoff",
|
|
6945
7293
|
"plain"
|
|
6946
7294
|
],
|
|
6947
|
-
github_caller:
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
"
|
|
6951
|
-
"
|
|
6952
|
-
"
|
|
6953
|
-
"
|
|
6954
|
-
"
|
|
6955
|
-
"app_rest",
|
|
6956
|
-
"quota_sampler",
|
|
6957
|
-
"agent",
|
|
6958
|
-
"pr_adoption",
|
|
7295
|
+
github_caller: TELEMETRY_GITHUB_CALLERS,
|
|
7296
|
+
harness: TELEMETRY_HARNESSES,
|
|
7297
|
+
http_method: [
|
|
7298
|
+
"GET",
|
|
7299
|
+
"POST",
|
|
7300
|
+
"PUT",
|
|
7301
|
+
"PATCH",
|
|
7302
|
+
"DELETE",
|
|
6959
7303
|
"other"
|
|
6960
7304
|
],
|
|
6961
|
-
|
|
6962
|
-
"claude-code",
|
|
6963
|
-
"ohmypi",
|
|
6964
|
-
"codex",
|
|
6965
|
-
"acp",
|
|
6966
|
-
"kimi-code",
|
|
6967
|
-
"opencode",
|
|
6968
|
-
"muse",
|
|
6969
|
-
"prime-agent"
|
|
6970
|
-
],
|
|
7305
|
+
install_kind: TELEMETRY_INSTALL_KINDS,
|
|
6971
7306
|
link_failure_reason: [
|
|
6972
7307
|
"bad_pairing_url",
|
|
6973
7308
|
"unreachable",
|
|
@@ -6988,7 +7323,72 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6988
7323
|
"directory_approval",
|
|
6989
7324
|
"other"
|
|
6990
7325
|
],
|
|
7326
|
+
link_reason: [
|
|
7327
|
+
"none",
|
|
7328
|
+
"offline",
|
|
7329
|
+
"no_path",
|
|
7330
|
+
"unreachable",
|
|
7331
|
+
"removed",
|
|
7332
|
+
"pairing_refused",
|
|
7333
|
+
"identity_mismatch",
|
|
7334
|
+
"unsupported",
|
|
7335
|
+
"channel_failed",
|
|
7336
|
+
"delayed",
|
|
7337
|
+
"restarting",
|
|
7338
|
+
"unauthorized",
|
|
7339
|
+
"resume",
|
|
7340
|
+
"other"
|
|
7341
|
+
],
|
|
7342
|
+
link_route: [
|
|
7343
|
+
"direct",
|
|
7344
|
+
"relay",
|
|
7345
|
+
"unknown"
|
|
7346
|
+
],
|
|
6991
7347
|
link_side: ["requester", "approver"],
|
|
7348
|
+
link_state: [
|
|
7349
|
+
"failed",
|
|
7350
|
+
"dropped",
|
|
7351
|
+
"recovered",
|
|
7352
|
+
"route_changed"
|
|
7353
|
+
],
|
|
7354
|
+
mcp_auth: [
|
|
7355
|
+
"agent_token",
|
|
7356
|
+
"oauth",
|
|
7357
|
+
"access_token",
|
|
7358
|
+
"connector"
|
|
7359
|
+
],
|
|
7360
|
+
mcp_client: [
|
|
7361
|
+
"claude_code",
|
|
7362
|
+
"codex",
|
|
7363
|
+
"cursor",
|
|
7364
|
+
"vscode",
|
|
7365
|
+
"chatgpt",
|
|
7366
|
+
"grok",
|
|
7367
|
+
"hermes",
|
|
7368
|
+
"openclaw",
|
|
7369
|
+
"gemini",
|
|
7370
|
+
"opencode",
|
|
7371
|
+
"kimi",
|
|
7372
|
+
"overdeck_connector",
|
|
7373
|
+
"other"
|
|
7374
|
+
],
|
|
7375
|
+
mcp_protocol: [
|
|
7376
|
+
"2026-07-28",
|
|
7377
|
+
"2025-11-25",
|
|
7378
|
+
"2025-06-18",
|
|
7379
|
+
"2025-03-26",
|
|
7380
|
+
"2024-11-05",
|
|
7381
|
+
"2024-10-07",
|
|
7382
|
+
"other"
|
|
7383
|
+
],
|
|
7384
|
+
mcp_surface: [
|
|
7385
|
+
"dashboard_http",
|
|
7386
|
+
"public_http",
|
|
7387
|
+
"stdio",
|
|
7388
|
+
"connector_http",
|
|
7389
|
+
"connector_stdio"
|
|
7390
|
+
],
|
|
7391
|
+
mcp_tool: TELEMETRY_MCP_TOOLS,
|
|
6992
7392
|
merge_kind: ["pipeline"],
|
|
6993
7393
|
model_family: [
|
|
6994
7394
|
"claude",
|
|
@@ -7032,13 +7432,42 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
7032
7432
|
"unknown"
|
|
7033
7433
|
],
|
|
7034
7434
|
rate_limit_kind: ["primary", "secondary"],
|
|
7435
|
+
recovery_bucket: [
|
|
7436
|
+
"none",
|
|
7437
|
+
"under_1s",
|
|
7438
|
+
"1s-4s",
|
|
7439
|
+
"5s-14s",
|
|
7440
|
+
"15s-59s",
|
|
7441
|
+
"60s+"
|
|
7442
|
+
],
|
|
7035
7443
|
relay_bytes_bucket: [
|
|
7036
7444
|
"under_1mb",
|
|
7037
7445
|
"1mb-9mb",
|
|
7038
7446
|
"10mb-99mb",
|
|
7039
7447
|
"100mb-999mb",
|
|
7040
7448
|
"1gb+"
|
|
7041
|
-
]
|
|
7449
|
+
],
|
|
7450
|
+
request_status: [
|
|
7451
|
+
"400",
|
|
7452
|
+
"401",
|
|
7453
|
+
"403",
|
|
7454
|
+
"404",
|
|
7455
|
+
"408",
|
|
7456
|
+
"409",
|
|
7457
|
+
"413",
|
|
7458
|
+
"422",
|
|
7459
|
+
"429",
|
|
7460
|
+
"other_4xx",
|
|
7461
|
+
"500",
|
|
7462
|
+
"502",
|
|
7463
|
+
"503",
|
|
7464
|
+
"504",
|
|
7465
|
+
"other_5xx",
|
|
7466
|
+
"network",
|
|
7467
|
+
"timeout",
|
|
7468
|
+
"aborted"
|
|
7469
|
+
],
|
|
7470
|
+
telemetry_client: ["phone", "desktop"]
|
|
7042
7471
|
};
|
|
7043
7472
|
const TELEMETRY_EVENT_CATALOG = {
|
|
7044
7473
|
dashboard_tab_viewed: { tab: "dashboard_tab" },
|
|
@@ -7137,7 +7566,31 @@ const TELEMETRY_EVENT_CATALOG = {
|
|
|
7137
7566
|
ok: "boolean",
|
|
7138
7567
|
error_class: "channel_error_class"
|
|
7139
7568
|
},
|
|
7140
|
-
relay_usage_sampled: { bytes: "relay_bytes_bucket" }
|
|
7569
|
+
relay_usage_sampled: { bytes: "relay_bytes_bucket" },
|
|
7570
|
+
mcp_session_seen: {
|
|
7571
|
+
mcp_surface: "mcp_surface",
|
|
7572
|
+
mcp_protocol: "mcp_protocol",
|
|
7573
|
+
mcp_client: "mcp_client",
|
|
7574
|
+
mcp_auth: "mcp_auth"
|
|
7575
|
+
},
|
|
7576
|
+
mcp_tool_called: {
|
|
7577
|
+
mcp_surface: "mcp_surface",
|
|
7578
|
+
mcp_client: "mcp_client",
|
|
7579
|
+
mcp_tool: "mcp_tool"
|
|
7580
|
+
},
|
|
7581
|
+
client_request_failed: {
|
|
7582
|
+
client: "telemetry_client",
|
|
7583
|
+
route: "client_route",
|
|
7584
|
+
route_area: "client_route_area",
|
|
7585
|
+
method: "http_method",
|
|
7586
|
+
status: "request_status"
|
|
7587
|
+
},
|
|
7588
|
+
phone_link_state: {
|
|
7589
|
+
state: "link_state",
|
|
7590
|
+
reason: "link_reason",
|
|
7591
|
+
route: "link_route",
|
|
7592
|
+
recover_time: "recovery_bucket"
|
|
7593
|
+
}
|
|
7141
7594
|
};
|
|
7142
7595
|
/** PAN-4264: GitHub quota points as a coarse bucket (raw counts are never sent). */
|
|
7143
7596
|
function bucketQuotaPoints(points) {
|
|
@@ -7167,6 +7620,57 @@ function bucketRelayBytes(bytes) {
|
|
|
7167
7620
|
if (bytes < 1e9) return "100mb-999mb";
|
|
7168
7621
|
return "1gb+";
|
|
7169
7622
|
}
|
|
7623
|
+
/** PAN-5100: the closed route template and area for a same-origin path (query and hash ignored). */
|
|
7624
|
+
function clientRouteOf(pathname) {
|
|
7625
|
+
const segments = (pathname.split(/[?#]/)[0] ?? pathname).split("/").filter((segment) => segment.length > 0);
|
|
7626
|
+
let bestTemplate = null;
|
|
7627
|
+
let bestLiteralCount = -1;
|
|
7628
|
+
for (const template of TELEMETRY_CLIENT_ROUTES) {
|
|
7629
|
+
if (template === "other") continue;
|
|
7630
|
+
const templateSegments = template.split("/").filter((segment) => segment.length > 0);
|
|
7631
|
+
if (templateSegments.length !== segments.length) continue;
|
|
7632
|
+
let literalCount = 0;
|
|
7633
|
+
let matches = true;
|
|
7634
|
+
for (let i = 0; i < templateSegments.length; i++) {
|
|
7635
|
+
const templateSegment = templateSegments[i];
|
|
7636
|
+
const pathSegment = segments[i];
|
|
7637
|
+
if (templateSegment.startsWith(":")) continue;
|
|
7638
|
+
if (templateSegment !== pathSegment) {
|
|
7639
|
+
matches = false;
|
|
7640
|
+
break;
|
|
7641
|
+
}
|
|
7642
|
+
literalCount++;
|
|
7643
|
+
}
|
|
7644
|
+
if (matches && literalCount > bestLiteralCount) {
|
|
7645
|
+
bestTemplate = template;
|
|
7646
|
+
bestLiteralCount = literalCount;
|
|
7647
|
+
}
|
|
7648
|
+
}
|
|
7649
|
+
const route = bestTemplate ?? "other";
|
|
7650
|
+
let route_area = "other";
|
|
7651
|
+
if (segments[0] === "events") route_area = "events";
|
|
7652
|
+
else if (segments[0] === "api" && segments[1] !== void 0 && TELEMETRY_CLIENT_ROUTE_AREAS.includes(segments[1])) route_area = segments[1];
|
|
7653
|
+
return {
|
|
7654
|
+
route,
|
|
7655
|
+
route_area
|
|
7656
|
+
};
|
|
7657
|
+
}
|
|
7658
|
+
/** PAN-5100: an HTTP status (≥ 400) as a closed bucket. */
|
|
7659
|
+
function bucketRequestStatus(status) {
|
|
7660
|
+
const exact = String(status);
|
|
7661
|
+
if (TELEMETRY_PROPERTY_DOMAINS.request_status.includes(exact)) return exact;
|
|
7662
|
+
if (status >= 400 && status < 500) return "other_4xx";
|
|
7663
|
+
return "other_5xx";
|
|
7664
|
+
}
|
|
7665
|
+
/** PAN-5100: milliseconds to recover as a coarse bucket. */
|
|
7666
|
+
function bucketRecoveryMs(ms) {
|
|
7667
|
+
if (ms === null) return "none";
|
|
7668
|
+
if (ms < 1e3) return "under_1s";
|
|
7669
|
+
if (ms < 5e3) return "1s-4s";
|
|
7670
|
+
if (ms < 15e3) return "5s-14s";
|
|
7671
|
+
if (ms < 6e4) return "15s-59s";
|
|
7672
|
+
return "60s+";
|
|
7673
|
+
}
|
|
7170
7674
|
//#endregion
|
|
7171
7675
|
//#region src/composer-commands.generated.ts
|
|
7172
7676
|
const COMPOSER_COMMAND_MANIFEST = [
|
|
@@ -8742,6 +9246,55 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
8742
9246
|
"aliases": [],
|
|
8743
9247
|
"category": "CLI"
|
|
8744
9248
|
},
|
|
9249
|
+
{
|
|
9250
|
+
"id": "pan-mcp-connector-connect",
|
|
9251
|
+
"path": [
|
|
9252
|
+
"mcp",
|
|
9253
|
+
"connector",
|
|
9254
|
+
"connect"
|
|
9255
|
+
],
|
|
9256
|
+
"display": "/pan mcp connector connect",
|
|
9257
|
+
"description": "Sign in, pair, verify and print the MCP registration in one resumable command (for bots)",
|
|
9258
|
+
"args": [{
|
|
9259
|
+
"name": "pairingString",
|
|
9260
|
+
"required": true,
|
|
9261
|
+
"variadic": false
|
|
9262
|
+
}],
|
|
9263
|
+
"options": [
|
|
9264
|
+
{
|
|
9265
|
+
"flags": "--name <bot>",
|
|
9266
|
+
"description": "the bot name shown on the sign-in page and on the machine (default: host name)",
|
|
9267
|
+
"required": true,
|
|
9268
|
+
"valueHint": "bot"
|
|
9269
|
+
},
|
|
9270
|
+
{
|
|
9271
|
+
"flags": "--platform <id>",
|
|
9272
|
+
"description": "grok-bot, grok-build, hermes, openclaw, other (default: other)",
|
|
9273
|
+
"required": true,
|
|
9274
|
+
"valueHint": "id"
|
|
9275
|
+
},
|
|
9276
|
+
{
|
|
9277
|
+
"flags": "--wait <seconds>",
|
|
9278
|
+
"description": "how long a rerun waits for the sign-in approval (default 120)",
|
|
9279
|
+
"required": true,
|
|
9280
|
+
"valueHint": "seconds"
|
|
9281
|
+
},
|
|
9282
|
+
{
|
|
9283
|
+
"flags": "--account-url <url>",
|
|
9284
|
+
"description": "overdeck.ai account service URL",
|
|
9285
|
+
"required": true,
|
|
9286
|
+
"valueHint": "url"
|
|
9287
|
+
},
|
|
9288
|
+
{
|
|
9289
|
+
"flags": "--directory-url <url>",
|
|
9290
|
+
"description": "overdeck.ai directory URL",
|
|
9291
|
+
"required": true,
|
|
9292
|
+
"valueHint": "url"
|
|
9293
|
+
}
|
|
9294
|
+
],
|
|
9295
|
+
"aliases": [],
|
|
9296
|
+
"category": "CLI"
|
|
9297
|
+
},
|
|
8745
9298
|
{
|
|
8746
9299
|
"id": "pan-mcp-connector-login",
|
|
8747
9300
|
"path": [
|
|
@@ -9714,7 +10267,7 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
9714
10267
|
},
|
|
9715
10268
|
{
|
|
9716
10269
|
"flags": "--pack <id>",
|
|
9717
|
-
"description": "Turn every skill of this cached skill pack
|
|
10270
|
+
"description": "Turn on every non-opt-in skill of this cached skill pack for the new conversation only (repeatable)",
|
|
9718
10271
|
"required": true,
|
|
9719
10272
|
"valueHint": "id"
|
|
9720
10273
|
},
|
|
@@ -15913,7 +16466,7 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
15913
16466
|
"id": "pan-lane",
|
|
15914
16467
|
"path": ["lane"],
|
|
15915
16468
|
"display": "/pan lane",
|
|
15916
|
-
"description": "Gauntlet lanes: launch, list, show, wait on, report from, stop and
|
|
16469
|
+
"description": "Gauntlet lanes: launch, list, show, wait on, report from, stop, reap and disk-check lane conversations",
|
|
15917
16470
|
"args": [],
|
|
15918
16471
|
"options": [],
|
|
15919
16472
|
"aliases": [],
|
|
@@ -16081,6 +16634,12 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
16081
16634
|
"required": true,
|
|
16082
16635
|
"valueHint": "conv"
|
|
16083
16636
|
},
|
|
16637
|
+
{
|
|
16638
|
+
"flags": "--reapable",
|
|
16639
|
+
"description": "Only lanes a newer iteration superseded that pan lane reap can remove now",
|
|
16640
|
+
"required": false,
|
|
16641
|
+
"valueHint": null
|
|
16642
|
+
},
|
|
16084
16643
|
{
|
|
16085
16644
|
"flags": "--json",
|
|
16086
16645
|
"description": "Print JSON",
|
|
@@ -16254,6 +16813,26 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
16254
16813
|
"aliases": [],
|
|
16255
16814
|
"category": "CLI"
|
|
16256
16815
|
},
|
|
16816
|
+
{
|
|
16817
|
+
"id": "pan-lane-disk-check",
|
|
16818
|
+
"path": ["lane", "disk-check"],
|
|
16819
|
+
"display": "/pan lane disk-check",
|
|
16820
|
+
"description": "Check the disk floor before launching lanes or creating a worktree (exit 0 room, 4 disk low, 1 error)",
|
|
16821
|
+
"args": [],
|
|
16822
|
+
"options": [{
|
|
16823
|
+
"flags": "--project <key>",
|
|
16824
|
+
"description": "Check the project's lanes root with the cost of one new lane, and list directories there that are not lanes",
|
|
16825
|
+
"required": true,
|
|
16826
|
+
"valueHint": "key"
|
|
16827
|
+
}, {
|
|
16828
|
+
"flags": "--path <dir>",
|
|
16829
|
+
"description": "Check the filesystem holding this directory (default: the current directory)",
|
|
16830
|
+
"required": true,
|
|
16831
|
+
"valueHint": "dir"
|
|
16832
|
+
}],
|
|
16833
|
+
"aliases": [],
|
|
16834
|
+
"category": "CLI"
|
|
16835
|
+
},
|
|
16257
16836
|
{
|
|
16258
16837
|
"id": "pan-flywheel",
|
|
16259
16838
|
"path": ["flywheel"],
|
|
@@ -18881,14 +19460,24 @@ const CONNECTOR_PAIR_SCHEME = "overdeck-connector";
|
|
|
18881
19460
|
const CONNECTOR_PAIR_LINK_VERSION = 1;
|
|
18882
19461
|
/** Everything before the fragment. Single slash after the colon. */
|
|
18883
19462
|
const CONNECTOR_PAIR_LINK_PREFIX = `${CONNECTOR_PAIR_SCHEME}:/pair#`;
|
|
18884
|
-
/**
|
|
19463
|
+
/** Longest machine name (after trim) the string carries in `n=` (PAN-5069 FR-8). */
|
|
19464
|
+
const CONNECTOR_PAIR_MACHINE_LABEL_MAX = 64;
|
|
19465
|
+
/**
|
|
19466
|
+
* `overdeck-connector:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>[&n=<machineLabel>]`; throws on a malformed input.
|
|
19467
|
+
* The label is trimmed, cut to 64 characters and percent-encoded with `'` as `%27`, so the string is safe inside single shell quotes.
|
|
19468
|
+
*/
|
|
18885
19469
|
function buildConnectorPairLink(input) {
|
|
18886
19470
|
if (!PHONE_PAIR_ENVIRONMENT_ID_RE.test(input.environmentId)) throw new Error("environmentId must be a lowercase UUID v4");
|
|
18887
19471
|
if (!PHONE_PAIR_MACHINE_KEY_RE.test(input.machineKeyHex)) throw new Error("machineKeyHex must be 64 lowercase hex characters");
|
|
18888
19472
|
if (!PHONE_PAIR_CODE_RE.test(input.code)) throw new Error("code must be an odp_ pairing code");
|
|
18889
|
-
|
|
19473
|
+
const link = `${CONNECTOR_PAIR_LINK_PREFIX}v=1&e=${input.environmentId}&k=${input.machineKeyHex}&c=${input.code}`;
|
|
19474
|
+
const label = input.machineLabel?.trim().slice(0, 64) ?? "";
|
|
19475
|
+
return label === "" ? link : `${link}&n=${encodeURIComponent(label).replace(/'/g, "%27")}`;
|
|
18890
19476
|
}
|
|
18891
|
-
/**
|
|
19477
|
+
/**
|
|
19478
|
+
* The inverse of `buildConnectorPairLink`: the string's fields, or null unless every required part is well formed.
|
|
19479
|
+
* Surrounding whitespace is ignored. A missing, empty or over-long `n` only leaves `machineLabel` out; it never makes the parse fail.
|
|
19480
|
+
*/
|
|
18892
19481
|
function parseConnectorPairLink(text) {
|
|
18893
19482
|
const link = text.trim();
|
|
18894
19483
|
if (!link.startsWith(CONNECTOR_PAIR_LINK_PREFIX)) return null;
|
|
@@ -18900,11 +19489,18 @@ function parseConnectorPairLink(text) {
|
|
|
18900
19489
|
if (environmentId === null || !PHONE_PAIR_ENVIRONMENT_ID_RE.test(environmentId)) return null;
|
|
18901
19490
|
if (machineKeyHex === null || !PHONE_PAIR_MACHINE_KEY_RE.test(machineKeyHex)) return null;
|
|
18902
19491
|
if (code === null || !PHONE_PAIR_CODE_RE.test(code)) return null;
|
|
18903
|
-
|
|
19492
|
+
const machineLabel = params.get("n")?.trim() ?? "";
|
|
19493
|
+
if (machineLabel === "" || machineLabel.length > 64) return {
|
|
18904
19494
|
environmentId,
|
|
18905
19495
|
machineKeyHex,
|
|
18906
19496
|
code
|
|
18907
19497
|
};
|
|
19498
|
+
return {
|
|
19499
|
+
environmentId,
|
|
19500
|
+
machineKeyHex,
|
|
19501
|
+
code,
|
|
19502
|
+
machineLabel
|
|
19503
|
+
};
|
|
18908
19504
|
}
|
|
18909
19505
|
//#endregion
|
|
18910
19506
|
//#region src/fleet-versions.ts
|
|
@@ -19663,6 +20259,7 @@ exports.CONNECTOR_LIMIT = CONNECTOR_LIMIT;
|
|
|
19663
20259
|
exports.CONNECTOR_LIMIT_MESSAGE = CONNECTOR_LIMIT_MESSAGE;
|
|
19664
20260
|
exports.CONNECTOR_PAIR_LINK_PREFIX = CONNECTOR_PAIR_LINK_PREFIX;
|
|
19665
20261
|
exports.CONNECTOR_PAIR_LINK_VERSION = CONNECTOR_PAIR_LINK_VERSION;
|
|
20262
|
+
exports.CONNECTOR_PAIR_MACHINE_LABEL_MAX = CONNECTOR_PAIR_MACHINE_LABEL_MAX;
|
|
19666
20263
|
exports.CONNECTOR_PAIR_SCHEME = CONNECTOR_PAIR_SCHEME;
|
|
19667
20264
|
exports.CONNECT_CLOSE_CODES = CONNECT_CLOSE_CODES;
|
|
19668
20265
|
exports.CONNECT_PROTOCOL_VERSION = CONNECT_PROTOCOL_VERSION;
|
|
@@ -20093,6 +20690,7 @@ exports.SystemHeartbeatEvent = SystemHeartbeatEvent;
|
|
|
20093
20690
|
exports.TELEMETRY_CLI_VERBS = TELEMETRY_CLI_VERBS;
|
|
20094
20691
|
exports.TELEMETRY_EVENT_CATALOG = TELEMETRY_EVENT_CATALOG;
|
|
20095
20692
|
exports.TELEMETRY_EVENT_NAMES = TELEMETRY_EVENT_NAMES;
|
|
20693
|
+
exports.TELEMETRY_INSTALL_KINDS = TELEMETRY_INSTALL_KINDS;
|
|
20096
20694
|
exports.TELEMETRY_PROPERTY_DOMAINS = TELEMETRY_PROPERTY_DOMAINS;
|
|
20097
20695
|
exports.TERMINAL_BACKEND_NAMES = TERMINAL_BACKEND_NAMES;
|
|
20098
20696
|
exports.TOOL_BODY_INLINE_MAX_BYTES = TOOL_BODY_INLINE_MAX_BYTES;
|
|
@@ -20133,11 +20731,14 @@ exports.applyEvents = applyEvents;
|
|
|
20133
20731
|
exports.applyIssueDelta = applyIssueDelta;
|
|
20134
20732
|
exports.bucketQuotaPoints = bucketQuotaPoints;
|
|
20135
20733
|
exports.bucketQuotaRemaining = bucketQuotaRemaining;
|
|
20734
|
+
exports.bucketRecoveryMs = bucketRecoveryMs;
|
|
20136
20735
|
exports.bucketRelayBytes = bucketRelayBytes;
|
|
20736
|
+
exports.bucketRequestStatus = bucketRequestStatus;
|
|
20137
20737
|
exports.buildConnectorPairLink = buildConnectorPairLink;
|
|
20138
20738
|
exports.buildPhonePairLink = buildPhonePairLink;
|
|
20139
20739
|
exports.builtinFor = builtinFor;
|
|
20140
20740
|
exports.canonicalPullRequestUrl = canonicalPullRequestUrl;
|
|
20741
|
+
exports.clientRouteOf = clientRouteOf;
|
|
20141
20742
|
exports.companionTerminalKindFor = companionTerminalKindFor;
|
|
20142
20743
|
exports.compareEffort = compareEffort;
|
|
20143
20744
|
exports.compareFleetBinaries = compareFleetBinaries;
|