@overdeck/contracts 0.73.1 → 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 +1577 -44
- package/dist/index.d.ts +973 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1532 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -57,6 +57,19 @@ function indexPanesByAgentKey(panes) {
|
|
|
57
57
|
}
|
|
58
58
|
return byKey;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Session presence a pane's own state implies (PAN-5011). Herdr `done` is a
|
|
62
|
+
* finished turn with the harness pane still alive, never an exit, so it maps
|
|
63
|
+
* to `idle`, not `ended`; only `exited` (no pane left) ends a session.
|
|
64
|
+
*/
|
|
65
|
+
function presenceForPaneState(state) {
|
|
66
|
+
switch (state) {
|
|
67
|
+
case "working":
|
|
68
|
+
case "blocked": return "active";
|
|
69
|
+
case "exited": return "ended";
|
|
70
|
+
default: return "idle";
|
|
71
|
+
}
|
|
72
|
+
}
|
|
60
73
|
//#endregion
|
|
61
74
|
//#region src/derived-issue-state.ts
|
|
62
75
|
/**
|
|
@@ -555,7 +568,8 @@ const AgentSnapshot = Schema.Struct({
|
|
|
555
568
|
})),
|
|
556
569
|
resolution: Schema.optional(AgentResolution),
|
|
557
570
|
resolutionCount: Schema.optional(Schema.Number),
|
|
558
|
-
turnEndAssessment: Schema.optional(TurnEndAssessment)
|
|
571
|
+
turnEndAssessment: Schema.optional(TurnEndAssessment),
|
|
572
|
+
deftExternalEscalations: Schema.optional(Schema.Number)
|
|
559
573
|
});
|
|
560
574
|
/** PAN-3151: A recorded cycle in the review convergence tracking series */
|
|
561
575
|
const TurnDiffFileChange = Schema.Struct({
|
|
@@ -695,12 +709,24 @@ const RestartGateOutcome = Schema.Struct({
|
|
|
695
709
|
at: Schema.String
|
|
696
710
|
});
|
|
697
711
|
/**
|
|
712
|
+
* The operator restart hold (PAN-5007), set by `pan restart hold` and lifted by
|
|
713
|
+
* `pan restart release` or its `until` time. While it is active every reload,
|
|
714
|
+
* restart and restart-gate approval refuses.
|
|
715
|
+
*/
|
|
716
|
+
const RestartHold = Schema.Struct({
|
|
717
|
+
reason: Schema.String,
|
|
718
|
+
who: Schema.String,
|
|
719
|
+
setAt: Schema.String,
|
|
720
|
+
until: Schema.optional(Schema.String)
|
|
721
|
+
});
|
|
722
|
+
/**
|
|
698
723
|
* The operator-facing view of the restart gate — identical to the body of
|
|
699
724
|
* `GET /api/restart-gate`, so the banner and the CLI read the same shape.
|
|
700
725
|
*
|
|
701
726
|
* `idle` no live requests; `pending` requests are waiting for approval;
|
|
702
727
|
* `approved` the operator approved an epoch that nobody has claimed yet;
|
|
703
728
|
* `claimed` one requester holds the exclusive right to perform the restart.
|
|
729
|
+
* `restartHold` is present while an operator restart hold is active.
|
|
704
730
|
*/
|
|
705
731
|
const RestartGateSnapshot = Schema.Struct({
|
|
706
732
|
status: Schema.Literals([
|
|
@@ -710,7 +736,8 @@ const RestartGateSnapshot = Schema.Struct({
|
|
|
710
736
|
"claimed"
|
|
711
737
|
]),
|
|
712
738
|
pending: Schema.Array(RestartGateRequest),
|
|
713
|
-
lastOutcome: Schema.optional(RestartGateOutcome)
|
|
739
|
+
lastOutcome: Schema.optional(RestartGateOutcome),
|
|
740
|
+
restartHold: Schema.optional(RestartHold)
|
|
714
741
|
});
|
|
715
742
|
const DashboardSnapshot = Schema.Struct({
|
|
716
743
|
sequence: SequenceNumber,
|
|
@@ -1816,7 +1843,8 @@ const AgentEnrichmentChangedEvent = Schema.Struct({
|
|
|
1816
1843
|
})),
|
|
1817
1844
|
resolution: Schema.optional(AgentResolution),
|
|
1818
1845
|
resolutionCount: Schema.optional(Schema.Number),
|
|
1819
|
-
turnEndAssessment: Schema.optional(TurnEndAssessment)
|
|
1846
|
+
turnEndAssessment: Schema.optional(TurnEndAssessment),
|
|
1847
|
+
deftExternalEscalations: Schema.optional(Schema.Number)
|
|
1820
1848
|
})
|
|
1821
1849
|
});
|
|
1822
1850
|
/** New — agent created in database */
|
|
@@ -4230,7 +4258,8 @@ function applyEvent(state, event) {
|
|
|
4230
4258
|
pendingProposedPlan: event.payload.pendingProposedPlan,
|
|
4231
4259
|
resolution: event.payload.resolution,
|
|
4232
4260
|
resolutionCount: event.payload.resolutionCount,
|
|
4233
|
-
turnEndAssessment: event.payload.turnEndAssessment
|
|
4261
|
+
turnEndAssessment: event.payload.turnEndAssessment,
|
|
4262
|
+
deftExternalEscalations: event.payload.deftExternalEscalations
|
|
4234
4263
|
}
|
|
4235
4264
|
}
|
|
4236
4265
|
};
|
|
@@ -4369,6 +4398,7 @@ function applyEvent(state, event) {
|
|
|
4369
4398
|
delete base["pendingAskUserQuestion"];
|
|
4370
4399
|
delete base["pendingProposedPlan"];
|
|
4371
4400
|
delete base["turnEndAssessment"];
|
|
4401
|
+
delete base["deftExternalEscalations"];
|
|
4372
4402
|
}
|
|
4373
4403
|
return base;
|
|
4374
4404
|
})();
|
|
@@ -4566,7 +4596,8 @@ function applyEvent(state, event) {
|
|
|
4566
4596
|
restartGate: {
|
|
4567
4597
|
status: event.payload.status,
|
|
4568
4598
|
pending: event.payload.pending,
|
|
4569
|
-
...event.payload.lastOutcome === void 0 ? {} : { lastOutcome: event.payload.lastOutcome }
|
|
4599
|
+
...event.payload.lastOutcome === void 0 ? {} : { lastOutcome: event.payload.lastOutcome },
|
|
4600
|
+
...event.payload.restartHold === void 0 ? {} : { restartHold: event.payload.restartHold }
|
|
4570
4601
|
}
|
|
4571
4602
|
};
|
|
4572
4603
|
case "github_quota.changed": return {
|
|
@@ -6182,7 +6213,8 @@ const HARNESS_CAPABILITY_KEYS = [
|
|
|
6182
6213
|
"correlatesBySessionId",
|
|
6183
6214
|
"answersQuestionByMessage",
|
|
6184
6215
|
"askAnswerDelivery",
|
|
6185
|
-
"runsOnFlyMachine"
|
|
6216
|
+
"runsOnFlyMachine",
|
|
6217
|
+
"overdeckMcp"
|
|
6186
6218
|
];
|
|
6187
6219
|
const CLAUDE_CODE_CAPABILITIES = {
|
|
6188
6220
|
contextChannel: "append-system-prompt-file",
|
|
@@ -6205,7 +6237,8 @@ const CLAUDE_CODE_CAPABILITIES = {
|
|
|
6205
6237
|
correlatesBySessionId: false,
|
|
6206
6238
|
answersQuestionByMessage: true,
|
|
6207
6239
|
askAnswerDelivery: "message",
|
|
6208
|
-
runsOnFlyMachine: true
|
|
6240
|
+
runsOnFlyMachine: true,
|
|
6241
|
+
overdeckMcp: true
|
|
6209
6242
|
};
|
|
6210
6243
|
const OHMYPI_CAPABILITIES = {
|
|
6211
6244
|
contextChannel: "append-system-prompt",
|
|
@@ -6228,7 +6261,8 @@ const OHMYPI_CAPABILITIES = {
|
|
|
6228
6261
|
correlatesBySessionId: true,
|
|
6229
6262
|
answersQuestionByMessage: false,
|
|
6230
6263
|
askAnswerDelivery: "pi-ask-modal",
|
|
6231
|
-
runsOnFlyMachine: false
|
|
6264
|
+
runsOnFlyMachine: false,
|
|
6265
|
+
overdeckMcp: false
|
|
6232
6266
|
};
|
|
6233
6267
|
const CODEX_CAPABILITIES = {
|
|
6234
6268
|
contextChannel: "developer_instructions",
|
|
@@ -6250,8 +6284,9 @@ const CODEX_CAPABILITIES = {
|
|
|
6250
6284
|
workspaceResolution: "agent-dir",
|
|
6251
6285
|
correlatesBySessionId: true,
|
|
6252
6286
|
answersQuestionByMessage: false,
|
|
6253
|
-
askAnswerDelivery: "
|
|
6254
|
-
runsOnFlyMachine: true
|
|
6287
|
+
askAnswerDelivery: "codex-approval",
|
|
6288
|
+
runsOnFlyMachine: true,
|
|
6289
|
+
overdeckMcp: true
|
|
6255
6290
|
};
|
|
6256
6291
|
const ACP_CAPABILITIES = {
|
|
6257
6292
|
contextChannel: "acp-initial-context",
|
|
@@ -6274,7 +6309,8 @@ const ACP_CAPABILITIES = {
|
|
|
6274
6309
|
correlatesBySessionId: true,
|
|
6275
6310
|
answersQuestionByMessage: false,
|
|
6276
6311
|
askAnswerDelivery: "message",
|
|
6277
|
-
runsOnFlyMachine: false
|
|
6312
|
+
runsOnFlyMachine: false,
|
|
6313
|
+
overdeckMcp: true
|
|
6278
6314
|
};
|
|
6279
6315
|
const KIMI_CODE_CAPABILITIES = {
|
|
6280
6316
|
contextChannel: "initial-message-envelope",
|
|
@@ -6297,7 +6333,8 @@ const KIMI_CODE_CAPABILITIES = {
|
|
|
6297
6333
|
correlatesBySessionId: true,
|
|
6298
6334
|
answersQuestionByMessage: false,
|
|
6299
6335
|
askAnswerDelivery: "message",
|
|
6300
|
-
runsOnFlyMachine: false
|
|
6336
|
+
runsOnFlyMachine: false,
|
|
6337
|
+
overdeckMcp: false
|
|
6301
6338
|
};
|
|
6302
6339
|
const OPENCODE_CAPABILITIES = {
|
|
6303
6340
|
contextChannel: "acp-initial-context",
|
|
@@ -6320,7 +6357,8 @@ const OPENCODE_CAPABILITIES = {
|
|
|
6320
6357
|
correlatesBySessionId: true,
|
|
6321
6358
|
answersQuestionByMessage: false,
|
|
6322
6359
|
askAnswerDelivery: "message",
|
|
6323
|
-
runsOnFlyMachine: false
|
|
6360
|
+
runsOnFlyMachine: false,
|
|
6361
|
+
overdeckMcp: true
|
|
6324
6362
|
};
|
|
6325
6363
|
const MUSE_CAPABILITIES = {
|
|
6326
6364
|
contextChannel: "append-system-prompt-file",
|
|
@@ -6343,7 +6381,8 @@ const MUSE_CAPABILITIES = {
|
|
|
6343
6381
|
correlatesBySessionId: true,
|
|
6344
6382
|
answersQuestionByMessage: false,
|
|
6345
6383
|
askAnswerDelivery: "message",
|
|
6346
|
-
runsOnFlyMachine: false
|
|
6384
|
+
runsOnFlyMachine: false,
|
|
6385
|
+
overdeckMcp: false
|
|
6347
6386
|
};
|
|
6348
6387
|
const PRIME_AGENT_CAPABILITIES = {
|
|
6349
6388
|
contextChannel: "prime-agent-append-system-prompt",
|
|
@@ -6366,7 +6405,8 @@ const PRIME_AGENT_CAPABILITIES = {
|
|
|
6366
6405
|
correlatesBySessionId: true,
|
|
6367
6406
|
answersQuestionByMessage: false,
|
|
6368
6407
|
askAnswerDelivery: "message",
|
|
6369
|
-
runsOnFlyMachine: false
|
|
6408
|
+
runsOnFlyMachine: false,
|
|
6409
|
+
overdeckMcp: false
|
|
6370
6410
|
};
|
|
6371
6411
|
//#endregion
|
|
6372
6412
|
//#region src/harness-behavior.ts
|
|
@@ -6729,7 +6769,18 @@ const TELEMETRY_EVENT_NAMES = [
|
|
|
6729
6769
|
"pipeline_stage_changed",
|
|
6730
6770
|
"github_quota_sample",
|
|
6731
6771
|
"github_rate_limited",
|
|
6732
|
-
"instance_heartbeat"
|
|
6772
|
+
"instance_heartbeat",
|
|
6773
|
+
"machine_link_started",
|
|
6774
|
+
"machine_link_approved",
|
|
6775
|
+
"machine_link_failed",
|
|
6776
|
+
"phone_paired",
|
|
6777
|
+
"phone_removed",
|
|
6778
|
+
"anywhere_channel_opened",
|
|
6779
|
+
"relay_usage_sampled",
|
|
6780
|
+
"mcp_session_seen",
|
|
6781
|
+
"mcp_tool_called",
|
|
6782
|
+
"client_request_failed",
|
|
6783
|
+
"phone_link_state"
|
|
6733
6784
|
];
|
|
6734
6785
|
const TELEMETRY_CLI_VERBS = [
|
|
6735
6786
|
"abort",
|
|
@@ -6792,6 +6843,356 @@ const TELEMETRY_CLI_VERBS = [
|
|
|
6792
6843
|
"write-sequence",
|
|
6793
6844
|
"other"
|
|
6794
6845
|
];
|
|
6846
|
+
const TELEMETRY_HARNESSES = [
|
|
6847
|
+
"claude-code",
|
|
6848
|
+
"ohmypi",
|
|
6849
|
+
"codex",
|
|
6850
|
+
"acp",
|
|
6851
|
+
"kimi-code",
|
|
6852
|
+
"opencode",
|
|
6853
|
+
"muse",
|
|
6854
|
+
"prime-agent"
|
|
6855
|
+
];
|
|
6856
|
+
/** PAN-5084: what kind of install reported an event — distinguishes real adoption from CI/test/VM churn. */
|
|
6857
|
+
const TELEMETRY_INSTALL_KINDS = [
|
|
6858
|
+
"user",
|
|
6859
|
+
"remote_vm",
|
|
6860
|
+
"dev_checkout",
|
|
6861
|
+
"container"
|
|
6862
|
+
];
|
|
6863
|
+
/**
|
|
6864
|
+
* PAN-4264: GitHub quota callers as telemetry values (`-` → `_`). Mirrors
|
|
6865
|
+
* `GITHUB_QUOTA_CALLERS` in ./github-quota; a unit test keeps them in step.
|
|
6866
|
+
*/
|
|
6867
|
+
const TELEMETRY_GITHUB_CALLERS = [
|
|
6868
|
+
"pipeline_membership",
|
|
6869
|
+
"pr_cache",
|
|
6870
|
+
"pr_sync",
|
|
6871
|
+
"ci_repair",
|
|
6872
|
+
"issue_poller",
|
|
6873
|
+
"close_out",
|
|
6874
|
+
"tracker_client",
|
|
6875
|
+
"app_rest",
|
|
6876
|
+
"quota_sampler",
|
|
6877
|
+
"agent",
|
|
6878
|
+
"pr_adoption",
|
|
6879
|
+
"other"
|
|
6880
|
+
];
|
|
6881
|
+
/** PAN-5016: route kinds (ROUTE_KINDS in ./machines) plus `stored`, the stored-route probe phase. */
|
|
6882
|
+
const TELEMETRY_CHANNEL_ROUTES = [
|
|
6883
|
+
"lan",
|
|
6884
|
+
"tailnet",
|
|
6885
|
+
"ssh",
|
|
6886
|
+
"public",
|
|
6887
|
+
"direct",
|
|
6888
|
+
"relay",
|
|
6889
|
+
"stored"
|
|
6890
|
+
];
|
|
6891
|
+
/** PAN-5083: the Overdeck MCP tool names (ALL_TOOLS in src/lib/mcp/server.ts); a unit test keeps them in step. */
|
|
6892
|
+
const TELEMETRY_MCP_TOOLS = [
|
|
6893
|
+
"answer_agent_permission",
|
|
6894
|
+
"answer_agent_plan",
|
|
6895
|
+
"answer_codex_approval",
|
|
6896
|
+
"answer_pane_choice",
|
|
6897
|
+
"answer_permission",
|
|
6898
|
+
"answer_pi_ask",
|
|
6899
|
+
"answer_plan",
|
|
6900
|
+
"answer_question",
|
|
6901
|
+
"delegate_task",
|
|
6902
|
+
"delete_scheduled",
|
|
6903
|
+
"done",
|
|
6904
|
+
"handoff",
|
|
6905
|
+
"interrupt_conversation",
|
|
6906
|
+
"lane_report",
|
|
6907
|
+
"lane_start",
|
|
6908
|
+
"lane_status",
|
|
6909
|
+
"lane_stop",
|
|
6910
|
+
"lane_wait",
|
|
6911
|
+
"link_machine",
|
|
6912
|
+
"link_machine_wait",
|
|
6913
|
+
"link_pull_request",
|
|
6914
|
+
"list_conversations",
|
|
6915
|
+
"list_machines",
|
|
6916
|
+
"list_pending_input",
|
|
6917
|
+
"list_pull_request_watches",
|
|
6918
|
+
"list_scheduled",
|
|
6919
|
+
"list_workers",
|
|
6920
|
+
"memory_add",
|
|
6921
|
+
"memory_search",
|
|
6922
|
+
"read_conversation",
|
|
6923
|
+
"request_secret",
|
|
6924
|
+
"schedule_message",
|
|
6925
|
+
"schedule_recurring",
|
|
6926
|
+
"search_conversations",
|
|
6927
|
+
"secret_wait",
|
|
6928
|
+
"send_message",
|
|
6929
|
+
"start_conversation",
|
|
6930
|
+
"start_issue",
|
|
6931
|
+
"start_worker",
|
|
6932
|
+
"stop_conversation",
|
|
6933
|
+
"task_block",
|
|
6934
|
+
"task_cancel",
|
|
6935
|
+
"task_claim",
|
|
6936
|
+
"task_done",
|
|
6937
|
+
"task_status",
|
|
6938
|
+
"task_wait",
|
|
6939
|
+
"unwatch_pull_request",
|
|
6940
|
+
"update_scheduled",
|
|
6941
|
+
"wait_job",
|
|
6942
|
+
"watch_pull_request",
|
|
6943
|
+
"worker_report"
|
|
6944
|
+
];
|
|
6945
|
+
/**
|
|
6946
|
+
* PAN-5100: every `ROUTE_SCOPES` path (`src/dashboard/server/route-scopes.ts`),
|
|
6947
|
+
* sorted, then `other`. Literal so the type stays a closed union; regenerate with:
|
|
6948
|
+
* grep -oE "path: '[^']*'" src/dashboard/server/route-scopes.ts | sed "s/path: '//; s/'//" | { cat; echo /api/telemetry/client-config; } | LC_ALL=C sort -u
|
|
6949
|
+
*/
|
|
6950
|
+
const TELEMETRY_CLIENT_ROUTES = [
|
|
6951
|
+
"/api/activity",
|
|
6952
|
+
"/api/agent-directory",
|
|
6953
|
+
"/api/agent-requests",
|
|
6954
|
+
"/api/agents",
|
|
6955
|
+
"/api/agents/:id/answer-question",
|
|
6956
|
+
"/api/agents/:id/message",
|
|
6957
|
+
"/api/agents/:id/permissions/:requestId/respond",
|
|
6958
|
+
"/api/agents/:id/plan-action",
|
|
6959
|
+
"/api/agents/:id/tell",
|
|
6960
|
+
"/api/connectors/self",
|
|
6961
|
+
"/api/conversations",
|
|
6962
|
+
"/api/conversations/:id",
|
|
6963
|
+
"/api/conversations/:id/codex-approval",
|
|
6964
|
+
"/api/conversations/:id/pane-choice",
|
|
6965
|
+
"/api/conversations/:id/permission",
|
|
6966
|
+
"/api/conversations/:id/pi-ask-answer",
|
|
6967
|
+
"/api/conversations/:name/abort",
|
|
6968
|
+
"/api/conversations/:name/about",
|
|
6969
|
+
"/api/conversations/:name/attachments/:file",
|
|
6970
|
+
"/api/conversations/:name/bookmarks",
|
|
6971
|
+
"/api/conversations/:name/compact",
|
|
6972
|
+
"/api/conversations/:name/delete-image",
|
|
6973
|
+
"/api/conversations/:name/diffs",
|
|
6974
|
+
"/api/conversations/:name/diffs/:turnId",
|
|
6975
|
+
"/api/conversations/:name/kickoff",
|
|
6976
|
+
"/api/conversations/:name/message",
|
|
6977
|
+
"/api/conversations/:name/message-locator",
|
|
6978
|
+
"/api/conversations/:name/messages",
|
|
6979
|
+
"/api/conversations/:name/plan-action",
|
|
6980
|
+
"/api/conversations/:name/preview-ports",
|
|
6981
|
+
"/api/conversations/:name/pull-requests",
|
|
6982
|
+
"/api/conversations/:name/pull-requests/sync",
|
|
6983
|
+
"/api/conversations/:name/release",
|
|
6984
|
+
"/api/conversations/:name/release/complete",
|
|
6985
|
+
"/api/conversations/:name/release/transfer/:transferId",
|
|
6986
|
+
"/api/conversations/:name/release/undo",
|
|
6987
|
+
"/api/conversations/:name/resume",
|
|
6988
|
+
"/api/conversations/:name/scheduled-messages",
|
|
6989
|
+
"/api/conversations/:name/scheduled-messages/:id",
|
|
6990
|
+
"/api/conversations/:name/schedules",
|
|
6991
|
+
"/api/conversations/:name/schedules/:id",
|
|
6992
|
+
"/api/conversations/:name/stop",
|
|
6993
|
+
"/api/conversations/:name/switch-model",
|
|
6994
|
+
"/api/conversations/:name/thinking-level",
|
|
6995
|
+
"/api/conversations/:name/tool-body/:toolUseId",
|
|
6996
|
+
"/api/conversations/:name/upload-image",
|
|
6997
|
+
"/api/conversations/pending-input",
|
|
6998
|
+
"/api/costs/request-digest",
|
|
6999
|
+
"/api/costs/summary",
|
|
7000
|
+
"/api/disk-alert",
|
|
7001
|
+
"/api/fleet/conversations",
|
|
7002
|
+
"/api/fleet/issues/:id/activity",
|
|
7003
|
+
"/api/fleet/issues/:id/start",
|
|
7004
|
+
"/api/fleet/machines",
|
|
7005
|
+
"/api/fleet/needs-you",
|
|
7006
|
+
"/api/fleet/placement",
|
|
7007
|
+
"/api/fleet/search",
|
|
7008
|
+
"/api/fleet/workers",
|
|
7009
|
+
"/api/fleet/workers/:id/stop",
|
|
7010
|
+
"/api/flywheel/status",
|
|
7011
|
+
"/api/issues",
|
|
7012
|
+
"/api/lanes",
|
|
7013
|
+
"/api/lanes/:name",
|
|
7014
|
+
"/api/lanes/:name/stop",
|
|
7015
|
+
"/api/machines/conversations",
|
|
7016
|
+
"/api/machines/heartbeat",
|
|
7017
|
+
"/api/machines/issue-activity",
|
|
7018
|
+
"/api/machines/needs-you",
|
|
7019
|
+
"/api/machines/projects",
|
|
7020
|
+
"/api/machines/projects/:key/file",
|
|
7021
|
+
"/api/machines/projects/:key/source",
|
|
7022
|
+
"/api/machines/self",
|
|
7023
|
+
"/api/machines/work/conversations",
|
|
7024
|
+
"/api/machines/work/issues/:id/start",
|
|
7025
|
+
"/api/machines/work/lanes",
|
|
7026
|
+
"/api/machines/work/lanes/:name/reap",
|
|
7027
|
+
"/api/machines/work/lanes/:name/status",
|
|
7028
|
+
"/api/machines/work/projects",
|
|
7029
|
+
"/api/machines/work/projects/:jobId",
|
|
7030
|
+
"/api/machines/work/workers",
|
|
7031
|
+
"/api/needs-you",
|
|
7032
|
+
"/api/palette/search",
|
|
7033
|
+
"/api/phones/self",
|
|
7034
|
+
"/api/phones/self/notification-preferences",
|
|
7035
|
+
"/api/phones/self/push-key",
|
|
7036
|
+
"/api/pipeline/membership",
|
|
7037
|
+
"/api/pull-requests",
|
|
7038
|
+
"/api/pull-requests/conversations",
|
|
7039
|
+
"/api/registered-projects",
|
|
7040
|
+
"/api/self/done",
|
|
7041
|
+
"/api/self/handoff",
|
|
7042
|
+
"/api/self/jobs/:id",
|
|
7043
|
+
"/api/self/jobs/:id/wait",
|
|
7044
|
+
"/api/self/lanes",
|
|
7045
|
+
"/api/self/lanes/report",
|
|
7046
|
+
"/api/self/lanes/wait",
|
|
7047
|
+
"/api/self/machine-link-requests",
|
|
7048
|
+
"/api/self/machine-link-requests/:id/wait",
|
|
7049
|
+
"/api/self/memory/facts",
|
|
7050
|
+
"/api/self/memory/search",
|
|
7051
|
+
"/api/self/pull-request-watches",
|
|
7052
|
+
"/api/self/pull-request-watches/:id",
|
|
7053
|
+
"/api/self/pull-requests",
|
|
7054
|
+
"/api/self/secret-requests",
|
|
7055
|
+
"/api/self/secret-requests/:id/wait",
|
|
7056
|
+
"/api/self/tasks/block",
|
|
7057
|
+
"/api/self/tasks/claim",
|
|
7058
|
+
"/api/self/tasks/done",
|
|
7059
|
+
"/api/self/worker-report",
|
|
7060
|
+
"/api/self/workers",
|
|
7061
|
+
"/api/self/workers/:id",
|
|
7062
|
+
"/api/self/workers/:id/wait",
|
|
7063
|
+
"/api/settings/resolved",
|
|
7064
|
+
"/api/telemetry/client-config",
|
|
7065
|
+
"/api/versions/self",
|
|
7066
|
+
"/api/versions/self/update",
|
|
7067
|
+
"/api/workers",
|
|
7068
|
+
"/api/workers/:id/status",
|
|
7069
|
+
"/api/workers/:id/stop",
|
|
7070
|
+
"/events/stream",
|
|
7071
|
+
"/events/version",
|
|
7072
|
+
"other"
|
|
7073
|
+
];
|
|
7074
|
+
/**
|
|
7075
|
+
* PAN-5100: the distinct first segments after `/api/` of every `NO_LOSS_MATRIX`
|
|
7076
|
+
* HTTP surface whose disposition is not `DELETE` (`tests/unit/lib/overdeck/no-loss-matrix.ts`),
|
|
7077
|
+
* plus `events` and `telemetry`, sorted, then `other`.
|
|
7078
|
+
*/
|
|
7079
|
+
const TELEMETRY_CLIENT_ROUTE_AREAS = [
|
|
7080
|
+
"access-tokens",
|
|
7081
|
+
"account",
|
|
7082
|
+
"activity",
|
|
7083
|
+
"admin",
|
|
7084
|
+
"agent-directory",
|
|
7085
|
+
"agent-requests",
|
|
7086
|
+
"agents",
|
|
7087
|
+
"anywhere",
|
|
7088
|
+
"artifacts",
|
|
7089
|
+
"autopreso",
|
|
7090
|
+
"backlog",
|
|
7091
|
+
"boot-reconciliation",
|
|
7092
|
+
"cache",
|
|
7093
|
+
"cache-status",
|
|
7094
|
+
"claude-code",
|
|
7095
|
+
"cliproxy",
|
|
7096
|
+
"cloister",
|
|
7097
|
+
"color-themes",
|
|
7098
|
+
"command-deck",
|
|
7099
|
+
"commands",
|
|
7100
|
+
"confirmations",
|
|
7101
|
+
"connectors",
|
|
7102
|
+
"context",
|
|
7103
|
+
"conversations",
|
|
7104
|
+
"costs",
|
|
7105
|
+
"dashboard",
|
|
7106
|
+
"deacon",
|
|
7107
|
+
"deft",
|
|
7108
|
+
"deploy",
|
|
7109
|
+
"dev",
|
|
7110
|
+
"devices",
|
|
7111
|
+
"diffs",
|
|
7112
|
+
"directory",
|
|
7113
|
+
"discovered-sessions",
|
|
7114
|
+
"disk-alert",
|
|
7115
|
+
"effort",
|
|
7116
|
+
"environment",
|
|
7117
|
+
"events",
|
|
7118
|
+
"fleet",
|
|
7119
|
+
"flywheel",
|
|
7120
|
+
"fs",
|
|
7121
|
+
"git-activity",
|
|
7122
|
+
"github-quota",
|
|
7123
|
+
"godview",
|
|
7124
|
+
"health",
|
|
7125
|
+
"hooks",
|
|
7126
|
+
"internal",
|
|
7127
|
+
"issues",
|
|
7128
|
+
"jev",
|
|
7129
|
+
"joins",
|
|
7130
|
+
"knowledge-viewer",
|
|
7131
|
+
"lanes",
|
|
7132
|
+
"linear-mcp-auth",
|
|
7133
|
+
"linked-conversations",
|
|
7134
|
+
"machines",
|
|
7135
|
+
"mcp",
|
|
7136
|
+
"mcp-oauth",
|
|
7137
|
+
"memory",
|
|
7138
|
+
"merge-queue",
|
|
7139
|
+
"merge-train",
|
|
7140
|
+
"metrics",
|
|
7141
|
+
"model-presets",
|
|
7142
|
+
"models",
|
|
7143
|
+
"needs-you",
|
|
7144
|
+
"no-resume-mode",
|
|
7145
|
+
"orders",
|
|
7146
|
+
"pairing",
|
|
7147
|
+
"palette",
|
|
7148
|
+
"parked",
|
|
7149
|
+
"phones",
|
|
7150
|
+
"pipeline",
|
|
7151
|
+
"planning",
|
|
7152
|
+
"prereqs",
|
|
7153
|
+
"project-mappings",
|
|
7154
|
+
"projects",
|
|
7155
|
+
"pull-requests",
|
|
7156
|
+
"push",
|
|
7157
|
+
"rally",
|
|
7158
|
+
"registered-projects",
|
|
7159
|
+
"registry",
|
|
7160
|
+
"remote",
|
|
7161
|
+
"resources",
|
|
7162
|
+
"restart-gate",
|
|
7163
|
+
"resume-all",
|
|
7164
|
+
"review",
|
|
7165
|
+
"self",
|
|
7166
|
+
"session-trees",
|
|
7167
|
+
"settings",
|
|
7168
|
+
"shadow",
|
|
7169
|
+
"share-probe",
|
|
7170
|
+
"shares",
|
|
7171
|
+
"show",
|
|
7172
|
+
"skills",
|
|
7173
|
+
"specialists",
|
|
7174
|
+
"system",
|
|
7175
|
+
"tailscale",
|
|
7176
|
+
"telemetry",
|
|
7177
|
+
"terminals",
|
|
7178
|
+
"tiered",
|
|
7179
|
+
"tracker-status",
|
|
7180
|
+
"trackers",
|
|
7181
|
+
"triggers",
|
|
7182
|
+
"tts",
|
|
7183
|
+
"update",
|
|
7184
|
+
"vault",
|
|
7185
|
+
"velocity",
|
|
7186
|
+
"version",
|
|
7187
|
+
"versions",
|
|
7188
|
+
"voice",
|
|
7189
|
+
"webhooks",
|
|
7190
|
+
"workers",
|
|
7191
|
+
"workspace-registry",
|
|
7192
|
+
"workspace-stack-health",
|
|
7193
|
+
"workspaces",
|
|
7194
|
+
"other"
|
|
7195
|
+
];
|
|
6795
7196
|
const TELEMETRY_PROPERTY_DOMAINS = {
|
|
6796
7197
|
agent_spawn_mode: ["spawn-and-send", "spawn-work-and-send"],
|
|
6797
7198
|
answer_type: [
|
|
@@ -6802,7 +7203,22 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6802
7203
|
],
|
|
6803
7204
|
auto_merge_variant: ["segmented", "badge"],
|
|
6804
7205
|
boolean: [false, true],
|
|
7206
|
+
channel_error_class: [
|
|
7207
|
+
"none",
|
|
7208
|
+
"unreachable",
|
|
7209
|
+
"identity_refused",
|
|
7210
|
+
"unknown_peer",
|
|
7211
|
+
"unsupported",
|
|
7212
|
+
"no_relay_plan",
|
|
7213
|
+
"descriptor_failed",
|
|
7214
|
+
"wrong_machine",
|
|
7215
|
+
"heartbeat_failed",
|
|
7216
|
+
"revoked"
|
|
7217
|
+
],
|
|
7218
|
+
channel_route: TELEMETRY_CHANNEL_ROUTES,
|
|
6805
7219
|
cli_verb: TELEMETRY_CLI_VERBS,
|
|
7220
|
+
client_route: TELEMETRY_CLIENT_ROUTES,
|
|
7221
|
+
client_route_area: TELEMETRY_CLIENT_ROUTE_AREAS,
|
|
6806
7222
|
close_out_variant: ["card", "inspector"],
|
|
6807
7223
|
count_bucket: [
|
|
6808
7224
|
"0",
|
|
@@ -6851,30 +7267,103 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6851
7267
|
"handoff",
|
|
6852
7268
|
"plain"
|
|
6853
7269
|
],
|
|
6854
|
-
github_caller:
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
"
|
|
6858
|
-
"
|
|
6859
|
-
"
|
|
6860
|
-
"
|
|
6861
|
-
"
|
|
6862
|
-
"
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
7270
|
+
github_caller: TELEMETRY_GITHUB_CALLERS,
|
|
7271
|
+
harness: TELEMETRY_HARNESSES,
|
|
7272
|
+
http_method: [
|
|
7273
|
+
"GET",
|
|
7274
|
+
"POST",
|
|
7275
|
+
"PUT",
|
|
7276
|
+
"PATCH",
|
|
7277
|
+
"DELETE",
|
|
7278
|
+
"other"
|
|
7279
|
+
],
|
|
7280
|
+
install_kind: TELEMETRY_INSTALL_KINDS,
|
|
7281
|
+
link_failure_reason: [
|
|
7282
|
+
"bad_pairing_url",
|
|
7283
|
+
"unreachable",
|
|
7284
|
+
"pairing_refused",
|
|
7285
|
+
"unsupported",
|
|
7286
|
+
"identity_mismatch",
|
|
7287
|
+
"exchange_failed",
|
|
7288
|
+
"grant_refused",
|
|
7289
|
+
"offline",
|
|
7290
|
+
"approval_refused",
|
|
7291
|
+
"approval_failed",
|
|
7292
|
+
"other"
|
|
7293
|
+
],
|
|
7294
|
+
link_method: [
|
|
7295
|
+
"pairing_code",
|
|
7296
|
+
"ssh",
|
|
7297
|
+
"fly",
|
|
7298
|
+
"directory_approval",
|
|
7299
|
+
"other"
|
|
7300
|
+
],
|
|
7301
|
+
link_reason: [
|
|
7302
|
+
"none",
|
|
7303
|
+
"offline",
|
|
7304
|
+
"no_path",
|
|
7305
|
+
"unreachable",
|
|
7306
|
+
"removed",
|
|
7307
|
+
"pairing_refused",
|
|
7308
|
+
"identity_mismatch",
|
|
7309
|
+
"unsupported",
|
|
7310
|
+
"channel_failed",
|
|
7311
|
+
"delayed",
|
|
7312
|
+
"restarting",
|
|
7313
|
+
"unauthorized",
|
|
7314
|
+
"resume",
|
|
6866
7315
|
"other"
|
|
6867
7316
|
],
|
|
6868
|
-
|
|
6869
|
-
"
|
|
6870
|
-
"
|
|
7317
|
+
link_route: [
|
|
7318
|
+
"direct",
|
|
7319
|
+
"relay",
|
|
7320
|
+
"unknown"
|
|
7321
|
+
],
|
|
7322
|
+
link_side: ["requester", "approver"],
|
|
7323
|
+
link_state: [
|
|
7324
|
+
"failed",
|
|
7325
|
+
"dropped",
|
|
7326
|
+
"recovered",
|
|
7327
|
+
"route_changed"
|
|
7328
|
+
],
|
|
7329
|
+
mcp_auth: [
|
|
7330
|
+
"agent_token",
|
|
7331
|
+
"oauth",
|
|
7332
|
+
"access_token",
|
|
7333
|
+
"connector"
|
|
7334
|
+
],
|
|
7335
|
+
mcp_client: [
|
|
7336
|
+
"claude_code",
|
|
6871
7337
|
"codex",
|
|
6872
|
-
"
|
|
6873
|
-
"
|
|
7338
|
+
"cursor",
|
|
7339
|
+
"vscode",
|
|
7340
|
+
"chatgpt",
|
|
7341
|
+
"grok",
|
|
7342
|
+
"hermes",
|
|
7343
|
+
"openclaw",
|
|
7344
|
+
"gemini",
|
|
6874
7345
|
"opencode",
|
|
6875
|
-
"
|
|
6876
|
-
"
|
|
7346
|
+
"kimi",
|
|
7347
|
+
"overdeck_connector",
|
|
7348
|
+
"other"
|
|
6877
7349
|
],
|
|
7350
|
+
mcp_protocol: [
|
|
7351
|
+
"2026-07-28",
|
|
7352
|
+
"2025-11-25",
|
|
7353
|
+
"2025-06-18",
|
|
7354
|
+
"2025-03-26",
|
|
7355
|
+
"2024-11-05",
|
|
7356
|
+
"2024-10-07",
|
|
7357
|
+
"other"
|
|
7358
|
+
],
|
|
7359
|
+
mcp_surface: [
|
|
7360
|
+
"dashboard_http",
|
|
7361
|
+
"public_http",
|
|
7362
|
+
"stdio",
|
|
7363
|
+
"connector_http",
|
|
7364
|
+
"connector_stdio"
|
|
7365
|
+
],
|
|
7366
|
+
mcp_tool: TELEMETRY_MCP_TOOLS,
|
|
6878
7367
|
merge_kind: ["pipeline"],
|
|
6879
7368
|
model_family: [
|
|
6880
7369
|
"claude",
|
|
@@ -6886,6 +7375,7 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6886
7375
|
"mimo",
|
|
6887
7376
|
"other"
|
|
6888
7377
|
],
|
|
7378
|
+
phone_removed_by: ["operator", "phone"],
|
|
6889
7379
|
pipeline_stage: [
|
|
6890
7380
|
"work_done",
|
|
6891
7381
|
"review_passed",
|
|
@@ -6916,7 +7406,43 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6916
7406
|
"2500+",
|
|
6917
7407
|
"unknown"
|
|
6918
7408
|
],
|
|
6919
|
-
rate_limit_kind: ["primary", "secondary"]
|
|
7409
|
+
rate_limit_kind: ["primary", "secondary"],
|
|
7410
|
+
recovery_bucket: [
|
|
7411
|
+
"none",
|
|
7412
|
+
"under_1s",
|
|
7413
|
+
"1s-4s",
|
|
7414
|
+
"5s-14s",
|
|
7415
|
+
"15s-59s",
|
|
7416
|
+
"60s+"
|
|
7417
|
+
],
|
|
7418
|
+
relay_bytes_bucket: [
|
|
7419
|
+
"under_1mb",
|
|
7420
|
+
"1mb-9mb",
|
|
7421
|
+
"10mb-99mb",
|
|
7422
|
+
"100mb-999mb",
|
|
7423
|
+
"1gb+"
|
|
7424
|
+
],
|
|
7425
|
+
request_status: [
|
|
7426
|
+
"400",
|
|
7427
|
+
"401",
|
|
7428
|
+
"403",
|
|
7429
|
+
"404",
|
|
7430
|
+
"408",
|
|
7431
|
+
"409",
|
|
7432
|
+
"413",
|
|
7433
|
+
"422",
|
|
7434
|
+
"429",
|
|
7435
|
+
"other_4xx",
|
|
7436
|
+
"500",
|
|
7437
|
+
"502",
|
|
7438
|
+
"503",
|
|
7439
|
+
"504",
|
|
7440
|
+
"other_5xx",
|
|
7441
|
+
"network",
|
|
7442
|
+
"timeout",
|
|
7443
|
+
"aborted"
|
|
7444
|
+
],
|
|
7445
|
+
telemetry_client: ["phone", "desktop"]
|
|
6920
7446
|
};
|
|
6921
7447
|
const TELEMETRY_EVENT_CATALOG = {
|
|
6922
7448
|
dashboard_tab_viewed: { tab: "dashboard_tab" },
|
|
@@ -6997,6 +7523,48 @@ const TELEMETRY_EVENT_CATALOG = {
|
|
|
6997
7523
|
project_count: "count_bucket",
|
|
6998
7524
|
active_agent_count: "count_bucket",
|
|
6999
7525
|
dashboard_running: "boolean"
|
|
7526
|
+
},
|
|
7527
|
+
machine_link_started: { method: "link_method" },
|
|
7528
|
+
machine_link_approved: {
|
|
7529
|
+
method: "link_method",
|
|
7530
|
+
side: "link_side"
|
|
7531
|
+
},
|
|
7532
|
+
machine_link_failed: {
|
|
7533
|
+
method: "link_method",
|
|
7534
|
+
side: "link_side",
|
|
7535
|
+
reason: "link_failure_reason"
|
|
7536
|
+
},
|
|
7537
|
+
phone_paired: { replaced_previous: "boolean" },
|
|
7538
|
+
phone_removed: { by: "phone_removed_by" },
|
|
7539
|
+
anywhere_channel_opened: {
|
|
7540
|
+
route: "channel_route",
|
|
7541
|
+
ok: "boolean",
|
|
7542
|
+
error_class: "channel_error_class"
|
|
7543
|
+
},
|
|
7544
|
+
relay_usage_sampled: { bytes: "relay_bytes_bucket" },
|
|
7545
|
+
mcp_session_seen: {
|
|
7546
|
+
mcp_surface: "mcp_surface",
|
|
7547
|
+
mcp_protocol: "mcp_protocol",
|
|
7548
|
+
mcp_client: "mcp_client",
|
|
7549
|
+
mcp_auth: "mcp_auth"
|
|
7550
|
+
},
|
|
7551
|
+
mcp_tool_called: {
|
|
7552
|
+
mcp_surface: "mcp_surface",
|
|
7553
|
+
mcp_client: "mcp_client",
|
|
7554
|
+
mcp_tool: "mcp_tool"
|
|
7555
|
+
},
|
|
7556
|
+
client_request_failed: {
|
|
7557
|
+
client: "telemetry_client",
|
|
7558
|
+
route: "client_route",
|
|
7559
|
+
route_area: "client_route_area",
|
|
7560
|
+
method: "http_method",
|
|
7561
|
+
status: "request_status"
|
|
7562
|
+
},
|
|
7563
|
+
phone_link_state: {
|
|
7564
|
+
state: "link_state",
|
|
7565
|
+
reason: "link_reason",
|
|
7566
|
+
route: "link_route",
|
|
7567
|
+
recover_time: "recovery_bucket"
|
|
7000
7568
|
}
|
|
7001
7569
|
};
|
|
7002
7570
|
/** PAN-4264: GitHub quota points as a coarse bucket (raw counts are never sent). */
|
|
@@ -7019,6 +7587,65 @@ function bucketQuotaRemaining(remaining) {
|
|
|
7019
7587
|
if (remaining < 2500) return "1000-2499";
|
|
7020
7588
|
return "2500+";
|
|
7021
7589
|
}
|
|
7590
|
+
/** PAN-5016: relayed bytes as a coarse bucket (raw byte counts are never sent). */
|
|
7591
|
+
function bucketRelayBytes(bytes) {
|
|
7592
|
+
if (!(bytes >= 1e6)) return "under_1mb";
|
|
7593
|
+
if (bytes < 1e7) return "1mb-9mb";
|
|
7594
|
+
if (bytes < 1e8) return "10mb-99mb";
|
|
7595
|
+
if (bytes < 1e9) return "100mb-999mb";
|
|
7596
|
+
return "1gb+";
|
|
7597
|
+
}
|
|
7598
|
+
/** PAN-5100: the closed route template and area for a same-origin path (query and hash ignored). */
|
|
7599
|
+
function clientRouteOf(pathname) {
|
|
7600
|
+
const segments = (pathname.split(/[?#]/)[0] ?? pathname).split("/").filter((segment) => segment.length > 0);
|
|
7601
|
+
let bestTemplate = null;
|
|
7602
|
+
let bestLiteralCount = -1;
|
|
7603
|
+
for (const template of TELEMETRY_CLIENT_ROUTES) {
|
|
7604
|
+
if (template === "other") continue;
|
|
7605
|
+
const templateSegments = template.split("/").filter((segment) => segment.length > 0);
|
|
7606
|
+
if (templateSegments.length !== segments.length) continue;
|
|
7607
|
+
let literalCount = 0;
|
|
7608
|
+
let matches = true;
|
|
7609
|
+
for (let i = 0; i < templateSegments.length; i++) {
|
|
7610
|
+
const templateSegment = templateSegments[i];
|
|
7611
|
+
const pathSegment = segments[i];
|
|
7612
|
+
if (templateSegment.startsWith(":")) continue;
|
|
7613
|
+
if (templateSegment !== pathSegment) {
|
|
7614
|
+
matches = false;
|
|
7615
|
+
break;
|
|
7616
|
+
}
|
|
7617
|
+
literalCount++;
|
|
7618
|
+
}
|
|
7619
|
+
if (matches && literalCount > bestLiteralCount) {
|
|
7620
|
+
bestTemplate = template;
|
|
7621
|
+
bestLiteralCount = literalCount;
|
|
7622
|
+
}
|
|
7623
|
+
}
|
|
7624
|
+
const route = bestTemplate ?? "other";
|
|
7625
|
+
let route_area = "other";
|
|
7626
|
+
if (segments[0] === "events") route_area = "events";
|
|
7627
|
+
else if (segments[0] === "api" && segments[1] !== void 0 && TELEMETRY_CLIENT_ROUTE_AREAS.includes(segments[1])) route_area = segments[1];
|
|
7628
|
+
return {
|
|
7629
|
+
route,
|
|
7630
|
+
route_area
|
|
7631
|
+
};
|
|
7632
|
+
}
|
|
7633
|
+
/** PAN-5100: an HTTP status (≥ 400) as a closed bucket. */
|
|
7634
|
+
function bucketRequestStatus(status) {
|
|
7635
|
+
const exact = String(status);
|
|
7636
|
+
if (TELEMETRY_PROPERTY_DOMAINS.request_status.includes(exact)) return exact;
|
|
7637
|
+
if (status >= 400 && status < 500) return "other_4xx";
|
|
7638
|
+
return "other_5xx";
|
|
7639
|
+
}
|
|
7640
|
+
/** PAN-5100: milliseconds to recover as a coarse bucket. */
|
|
7641
|
+
function bucketRecoveryMs(ms) {
|
|
7642
|
+
if (ms === null) return "none";
|
|
7643
|
+
if (ms < 1e3) return "under_1s";
|
|
7644
|
+
if (ms < 5e3) return "1s-4s";
|
|
7645
|
+
if (ms < 15e3) return "5s-14s";
|
|
7646
|
+
if (ms < 6e4) return "15s-59s";
|
|
7647
|
+
return "60s+";
|
|
7648
|
+
}
|
|
7022
7649
|
//#endregion
|
|
7023
7650
|
//#region src/composer-commands.generated.ts
|
|
7024
7651
|
const COMPOSER_COMMAND_MANIFEST = [
|
|
@@ -7528,7 +8155,7 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
7528
8155
|
"status"
|
|
7529
8156
|
],
|
|
7530
8157
|
"display": "/pan skills pack sageox status",
|
|
7531
|
-
"description": "Show, per project, the sageox pack state and the
|
|
8158
|
+
"description": "Show, per project, the sageox pack state, the upload state and the link state",
|
|
7532
8159
|
"args": [],
|
|
7533
8160
|
"options": [{
|
|
7534
8161
|
"flags": "--project <key>",
|
|
@@ -7568,6 +8195,51 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
7568
8195
|
"aliases": [],
|
|
7569
8196
|
"category": "Core"
|
|
7570
8197
|
},
|
|
8198
|
+
{
|
|
8199
|
+
"id": "pan-skills-pack-sageox-link",
|
|
8200
|
+
"path": [
|
|
8201
|
+
"skills",
|
|
8202
|
+
"pack",
|
|
8203
|
+
"sageox",
|
|
8204
|
+
"link"
|
|
8205
|
+
],
|
|
8206
|
+
"display": "/pan skills pack sageox link",
|
|
8207
|
+
"description": "Run ox init in a throwaway worktree and store the project's SageOx link files (changes no checkout)",
|
|
8208
|
+
"args": [],
|
|
8209
|
+
"options": [{
|
|
8210
|
+
"flags": "--project <key>",
|
|
8211
|
+
"description": "Project key",
|
|
8212
|
+
"required": true,
|
|
8213
|
+
"valueHint": "key"
|
|
8214
|
+
}, {
|
|
8215
|
+
"flags": "--team <team>",
|
|
8216
|
+
"description": "SageOx team (name, slug or id) passed to ox init",
|
|
8217
|
+
"required": true,
|
|
8218
|
+
"valueHint": "team"
|
|
8219
|
+
}],
|
|
8220
|
+
"aliases": [],
|
|
8221
|
+
"category": "Core"
|
|
8222
|
+
},
|
|
8223
|
+
{
|
|
8224
|
+
"id": "pan-skills-pack-sageox-commit",
|
|
8225
|
+
"path": [
|
|
8226
|
+
"skills",
|
|
8227
|
+
"pack",
|
|
8228
|
+
"sageox",
|
|
8229
|
+
"commit"
|
|
8230
|
+
],
|
|
8231
|
+
"display": "/pan skills pack sageox commit",
|
|
8232
|
+
"description": "Open one PR that adds the project's stored SageOx link files as .sageox/, then record sageox_binding: committed",
|
|
8233
|
+
"args": [],
|
|
8234
|
+
"options": [{
|
|
8235
|
+
"flags": "--project <key>",
|
|
8236
|
+
"description": "Project key",
|
|
8237
|
+
"required": true,
|
|
8238
|
+
"valueHint": "key"
|
|
8239
|
+
}],
|
|
8240
|
+
"aliases": [],
|
|
8241
|
+
"category": "Core"
|
|
8242
|
+
},
|
|
7571
8243
|
{
|
|
7572
8244
|
"id": "pan-skills-deft",
|
|
7573
8245
|
"path": ["skills", "deft"],
|
|
@@ -8412,7 +9084,300 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
8412
9084
|
"id": "pan-mcp-serve",
|
|
8413
9085
|
"path": ["mcp", "serve"],
|
|
8414
9086
|
"display": "/pan mcp serve",
|
|
8415
|
-
"description": "Serve Overdeck as an MCP server over stdio (token from OVERDECK_MCP_TOKEN; see configuration/mcp.mdx)",
|
|
9087
|
+
"description": "Serve Overdeck as an MCP server over stdio (token from OVERDECK_MCP_TOKEN or OVERDECK_MCP_TOKEN_FILE; see configuration/mcp.mdx)",
|
|
9088
|
+
"args": [],
|
|
9089
|
+
"options": [],
|
|
9090
|
+
"aliases": [],
|
|
9091
|
+
"category": "CLI"
|
|
9092
|
+
},
|
|
9093
|
+
{
|
|
9094
|
+
"id": "pan-mcp-oauth",
|
|
9095
|
+
"path": ["mcp", "oauth"],
|
|
9096
|
+
"display": "/pan mcp oauth",
|
|
9097
|
+
"description": "Manage OAuth sign-ins to /mcp (see configuration/mcp.mdx)",
|
|
9098
|
+
"args": [],
|
|
9099
|
+
"options": [],
|
|
9100
|
+
"aliases": [],
|
|
9101
|
+
"category": "CLI"
|
|
9102
|
+
},
|
|
9103
|
+
{
|
|
9104
|
+
"id": "pan-mcp-oauth-issue",
|
|
9105
|
+
"path": [
|
|
9106
|
+
"mcp",
|
|
9107
|
+
"oauth",
|
|
9108
|
+
"issue"
|
|
9109
|
+
],
|
|
9110
|
+
"display": "/pan mcp oauth issue",
|
|
9111
|
+
"description": "Create a sign-in for a client that cannot open a browser; prints its tokens once",
|
|
9112
|
+
"args": [],
|
|
9113
|
+
"options": [{
|
|
9114
|
+
"flags": "--name <name>",
|
|
9115
|
+
"description": "Name shown in the sign-in list",
|
|
9116
|
+
"required": true,
|
|
9117
|
+
"valueHint": "name"
|
|
9118
|
+
}, {
|
|
9119
|
+
"flags": "--level <level>",
|
|
9120
|
+
"description": "Access level: read, message, operate or approve",
|
|
9121
|
+
"required": true,
|
|
9122
|
+
"valueHint": "level"
|
|
9123
|
+
}],
|
|
9124
|
+
"aliases": [],
|
|
9125
|
+
"category": "CLI"
|
|
9126
|
+
},
|
|
9127
|
+
{
|
|
9128
|
+
"id": "pan-mcp-oauth-list",
|
|
9129
|
+
"path": [
|
|
9130
|
+
"mcp",
|
|
9131
|
+
"oauth",
|
|
9132
|
+
"list"
|
|
9133
|
+
],
|
|
9134
|
+
"display": "/pan mcp oauth list",
|
|
9135
|
+
"description": "List active OAuth sign-ins",
|
|
9136
|
+
"args": [],
|
|
9137
|
+
"options": [],
|
|
9138
|
+
"aliases": [],
|
|
9139
|
+
"category": "CLI"
|
|
9140
|
+
},
|
|
9141
|
+
{
|
|
9142
|
+
"id": "pan-mcp-oauth-revoke",
|
|
9143
|
+
"path": [
|
|
9144
|
+
"mcp",
|
|
9145
|
+
"oauth",
|
|
9146
|
+
"revoke"
|
|
9147
|
+
],
|
|
9148
|
+
"display": "/pan mcp oauth revoke",
|
|
9149
|
+
"description": "End one OAuth sign-in",
|
|
9150
|
+
"args": [{
|
|
9151
|
+
"name": "familyId",
|
|
9152
|
+
"required": true,
|
|
9153
|
+
"variadic": false
|
|
9154
|
+
}],
|
|
9155
|
+
"options": [],
|
|
9156
|
+
"aliases": [],
|
|
9157
|
+
"category": "CLI"
|
|
9158
|
+
},
|
|
9159
|
+
{
|
|
9160
|
+
"id": "pan-mcp-oauth-pending",
|
|
9161
|
+
"path": [
|
|
9162
|
+
"mcp",
|
|
9163
|
+
"oauth",
|
|
9164
|
+
"pending"
|
|
9165
|
+
],
|
|
9166
|
+
"display": "/pan mcp oauth pending",
|
|
9167
|
+
"description": "List sign-ins waiting for your approval",
|
|
9168
|
+
"args": [],
|
|
9169
|
+
"options": [],
|
|
9170
|
+
"aliases": [],
|
|
9171
|
+
"category": "CLI"
|
|
9172
|
+
},
|
|
9173
|
+
{
|
|
9174
|
+
"id": "pan-mcp-oauth-approve",
|
|
9175
|
+
"path": [
|
|
9176
|
+
"mcp",
|
|
9177
|
+
"oauth",
|
|
9178
|
+
"approve"
|
|
9179
|
+
],
|
|
9180
|
+
"display": "/pan mcp oauth approve",
|
|
9181
|
+
"description": "Approve the waiting sign-in that shows this approval code",
|
|
9182
|
+
"args": [{
|
|
9183
|
+
"name": "code",
|
|
9184
|
+
"required": true,
|
|
9185
|
+
"variadic": false
|
|
9186
|
+
}],
|
|
9187
|
+
"options": [{
|
|
9188
|
+
"flags": "--level <level>",
|
|
9189
|
+
"description": "Access level: read, message, operate or approve",
|
|
9190
|
+
"required": true,
|
|
9191
|
+
"valueHint": "level"
|
|
9192
|
+
}],
|
|
9193
|
+
"aliases": [],
|
|
9194
|
+
"category": "CLI"
|
|
9195
|
+
},
|
|
9196
|
+
{
|
|
9197
|
+
"id": "pan-mcp-oauth-deny",
|
|
9198
|
+
"path": [
|
|
9199
|
+
"mcp",
|
|
9200
|
+
"oauth",
|
|
9201
|
+
"deny"
|
|
9202
|
+
],
|
|
9203
|
+
"display": "/pan mcp oauth deny",
|
|
9204
|
+
"description": "Deny the waiting sign-in that shows this approval code",
|
|
9205
|
+
"args": [{
|
|
9206
|
+
"name": "code",
|
|
9207
|
+
"required": true,
|
|
9208
|
+
"variadic": false
|
|
9209
|
+
}],
|
|
9210
|
+
"options": [],
|
|
9211
|
+
"aliases": [],
|
|
9212
|
+
"category": "CLI"
|
|
9213
|
+
},
|
|
9214
|
+
{
|
|
9215
|
+
"id": "pan-mcp-connector",
|
|
9216
|
+
"path": ["mcp", "connector"],
|
|
9217
|
+
"display": "/pan mcp connector",
|
|
9218
|
+
"description": "Run an Overdeck connector for a self-hosted bot (see configuration/mcp.mdx)",
|
|
9219
|
+
"args": [],
|
|
9220
|
+
"options": [],
|
|
9221
|
+
"aliases": [],
|
|
9222
|
+
"category": "CLI"
|
|
9223
|
+
},
|
|
9224
|
+
{
|
|
9225
|
+
"id": "pan-mcp-connector-connect",
|
|
9226
|
+
"path": [
|
|
9227
|
+
"mcp",
|
|
9228
|
+
"connector",
|
|
9229
|
+
"connect"
|
|
9230
|
+
],
|
|
9231
|
+
"display": "/pan mcp connector connect",
|
|
9232
|
+
"description": "Sign in, pair, verify and print the MCP registration in one resumable command (for bots)",
|
|
9233
|
+
"args": [{
|
|
9234
|
+
"name": "pairingString",
|
|
9235
|
+
"required": true,
|
|
9236
|
+
"variadic": false
|
|
9237
|
+
}],
|
|
9238
|
+
"options": [
|
|
9239
|
+
{
|
|
9240
|
+
"flags": "--name <bot>",
|
|
9241
|
+
"description": "the bot name shown on the sign-in page and on the machine (default: host name)",
|
|
9242
|
+
"required": true,
|
|
9243
|
+
"valueHint": "bot"
|
|
9244
|
+
},
|
|
9245
|
+
{
|
|
9246
|
+
"flags": "--platform <id>",
|
|
9247
|
+
"description": "grok-bot, grok-build, hermes, openclaw, other (default: other)",
|
|
9248
|
+
"required": true,
|
|
9249
|
+
"valueHint": "id"
|
|
9250
|
+
},
|
|
9251
|
+
{
|
|
9252
|
+
"flags": "--wait <seconds>",
|
|
9253
|
+
"description": "how long a rerun waits for the sign-in approval (default 120)",
|
|
9254
|
+
"required": true,
|
|
9255
|
+
"valueHint": "seconds"
|
|
9256
|
+
},
|
|
9257
|
+
{
|
|
9258
|
+
"flags": "--account-url <url>",
|
|
9259
|
+
"description": "overdeck.ai account service URL",
|
|
9260
|
+
"required": true,
|
|
9261
|
+
"valueHint": "url"
|
|
9262
|
+
},
|
|
9263
|
+
{
|
|
9264
|
+
"flags": "--directory-url <url>",
|
|
9265
|
+
"description": "overdeck.ai directory URL",
|
|
9266
|
+
"required": true,
|
|
9267
|
+
"valueHint": "url"
|
|
9268
|
+
}
|
|
9269
|
+
],
|
|
9270
|
+
"aliases": [],
|
|
9271
|
+
"category": "CLI"
|
|
9272
|
+
},
|
|
9273
|
+
{
|
|
9274
|
+
"id": "pan-mcp-connector-login",
|
|
9275
|
+
"path": [
|
|
9276
|
+
"mcp",
|
|
9277
|
+
"connector",
|
|
9278
|
+
"login"
|
|
9279
|
+
],
|
|
9280
|
+
"display": "/pan mcp connector login",
|
|
9281
|
+
"description": "Sign this connector in to overdeck.ai with the device flow",
|
|
9282
|
+
"args": [],
|
|
9283
|
+
"options": [{
|
|
9284
|
+
"flags": "--account-url <url>",
|
|
9285
|
+
"description": "overdeck.ai account service URL",
|
|
9286
|
+
"required": true,
|
|
9287
|
+
"valueHint": "url"
|
|
9288
|
+
}, {
|
|
9289
|
+
"flags": "--directory-url <url>",
|
|
9290
|
+
"description": "overdeck.ai directory URL",
|
|
9291
|
+
"required": true,
|
|
9292
|
+
"valueHint": "url"
|
|
9293
|
+
}],
|
|
9294
|
+
"aliases": [],
|
|
9295
|
+
"category": "CLI"
|
|
9296
|
+
},
|
|
9297
|
+
{
|
|
9298
|
+
"id": "pan-mcp-connector-pair",
|
|
9299
|
+
"path": [
|
|
9300
|
+
"mcp",
|
|
9301
|
+
"connector",
|
|
9302
|
+
"pair"
|
|
9303
|
+
],
|
|
9304
|
+
"display": "/pan mcp connector pair",
|
|
9305
|
+
"description": "Pair with one Overdeck machine using the string from Connect a bot",
|
|
9306
|
+
"args": [{
|
|
9307
|
+
"name": "pairingString",
|
|
9308
|
+
"required": true,
|
|
9309
|
+
"variadic": false
|
|
9310
|
+
}],
|
|
9311
|
+
"options": [{
|
|
9312
|
+
"flags": "--label <name>",
|
|
9313
|
+
"description": "name this connector shows on the machine (default: host name)",
|
|
9314
|
+
"required": true,
|
|
9315
|
+
"valueHint": "name"
|
|
9316
|
+
}],
|
|
9317
|
+
"aliases": [],
|
|
9318
|
+
"category": "CLI"
|
|
9319
|
+
},
|
|
9320
|
+
{
|
|
9321
|
+
"id": "pan-mcp-connector-serve",
|
|
9322
|
+
"path": [
|
|
9323
|
+
"mcp",
|
|
9324
|
+
"connector",
|
|
9325
|
+
"serve"
|
|
9326
|
+
],
|
|
9327
|
+
"display": "/pan mcp connector serve",
|
|
9328
|
+
"description": "Serve the Overdeck MCP tools on 127.0.0.1 (or stdio) for the paired machine",
|
|
9329
|
+
"args": [],
|
|
9330
|
+
"options": [
|
|
9331
|
+
{
|
|
9332
|
+
"flags": "--port <port>",
|
|
9333
|
+
"description": "loopback port for http://127.0.0.1:<port>/mcp (default 7466)",
|
|
9334
|
+
"required": true,
|
|
9335
|
+
"valueHint": "port"
|
|
9336
|
+
},
|
|
9337
|
+
{
|
|
9338
|
+
"flags": "--stdio",
|
|
9339
|
+
"description": "serve one MCP session on stdin and stdout instead",
|
|
9340
|
+
"required": false,
|
|
9341
|
+
"valueHint": null
|
|
9342
|
+
},
|
|
9343
|
+
{
|
|
9344
|
+
"flags": "--label <name>",
|
|
9345
|
+
"description": "name this connector shows in the overdeck.ai directory (default: host name)",
|
|
9346
|
+
"required": true,
|
|
9347
|
+
"valueHint": "name"
|
|
9348
|
+
}
|
|
9349
|
+
],
|
|
9350
|
+
"aliases": [],
|
|
9351
|
+
"category": "CLI"
|
|
9352
|
+
},
|
|
9353
|
+
{
|
|
9354
|
+
"id": "pan-mcp-connector-status",
|
|
9355
|
+
"path": [
|
|
9356
|
+
"mcp",
|
|
9357
|
+
"connector",
|
|
9358
|
+
"status"
|
|
9359
|
+
],
|
|
9360
|
+
"display": "/pan mcp connector status",
|
|
9361
|
+
"description": "Show the signed-in account, the paired machine, its scopes and the live route",
|
|
9362
|
+
"args": [],
|
|
9363
|
+
"options": [{
|
|
9364
|
+
"flags": "--port <port>",
|
|
9365
|
+
"description": "port of the running serve (default 7466)",
|
|
9366
|
+
"required": true,
|
|
9367
|
+
"valueHint": "port"
|
|
9368
|
+
}],
|
|
9369
|
+
"aliases": [],
|
|
9370
|
+
"category": "CLI"
|
|
9371
|
+
},
|
|
9372
|
+
{
|
|
9373
|
+
"id": "pan-mcp-connector-logout",
|
|
9374
|
+
"path": [
|
|
9375
|
+
"mcp",
|
|
9376
|
+
"connector",
|
|
9377
|
+
"logout"
|
|
9378
|
+
],
|
|
9379
|
+
"display": "/pan mcp connector logout",
|
|
9380
|
+
"description": "Remove this connector from its machine and overdeck.ai, then delete its files",
|
|
8416
9381
|
"args": [],
|
|
8417
9382
|
"options": [],
|
|
8418
9383
|
"aliases": [],
|
|
@@ -9277,7 +10242,7 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
9277
10242
|
},
|
|
9278
10243
|
{
|
|
9279
10244
|
"flags": "--pack <id>",
|
|
9280
|
-
"description": "Turn every skill of this cached skill pack
|
|
10245
|
+
"description": "Turn on every non-opt-in skill of this cached skill pack for the new conversation only (repeatable)",
|
|
9281
10246
|
"required": true,
|
|
9282
10247
|
"valueHint": "id"
|
|
9283
10248
|
},
|
|
@@ -11252,6 +12217,44 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
11252
12217
|
"aliases": [],
|
|
11253
12218
|
"category": "CLI"
|
|
11254
12219
|
},
|
|
12220
|
+
{
|
|
12221
|
+
"id": "pan-share",
|
|
12222
|
+
"path": ["share"],
|
|
12223
|
+
"display": "/pan share",
|
|
12224
|
+
"description": "Share a conversation by link: print the join link and join code (Shared Sessions)",
|
|
12225
|
+
"args": [{
|
|
12226
|
+
"name": "conversation",
|
|
12227
|
+
"required": true,
|
|
12228
|
+
"variadic": false
|
|
12229
|
+
}],
|
|
12230
|
+
"options": [{
|
|
12231
|
+
"flags": "--json",
|
|
12232
|
+
"description": "Print the share as JSON",
|
|
12233
|
+
"required": false,
|
|
12234
|
+
"valueHint": null
|
|
12235
|
+
}],
|
|
12236
|
+
"aliases": [],
|
|
12237
|
+
"category": "CLI"
|
|
12238
|
+
},
|
|
12239
|
+
{
|
|
12240
|
+
"id": "pan-join",
|
|
12241
|
+
"path": ["join"],
|
|
12242
|
+
"display": "/pan join",
|
|
12243
|
+
"description": "Join a shared conversation from a link or join code: signs in, starts Overdeck if needed, opens the lobby",
|
|
12244
|
+
"args": [{
|
|
12245
|
+
"name": "link-or-code",
|
|
12246
|
+
"required": true,
|
|
12247
|
+
"variadic": false
|
|
12248
|
+
}],
|
|
12249
|
+
"options": [{
|
|
12250
|
+
"flags": "--no-open",
|
|
12251
|
+
"description": "Print the shared-conversation URL instead of opening a browser",
|
|
12252
|
+
"required": false,
|
|
12253
|
+
"valueHint": null
|
|
12254
|
+
}],
|
|
12255
|
+
"aliases": [],
|
|
12256
|
+
"category": "CLI"
|
|
12257
|
+
},
|
|
11255
12258
|
{
|
|
11256
12259
|
"id": "pan-test",
|
|
11257
12260
|
"path": ["test"],
|
|
@@ -11756,6 +12759,12 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
11756
12759
|
"required": true,
|
|
11757
12760
|
"valueHint": "n"
|
|
11758
12761
|
},
|
|
12762
|
+
{
|
|
12763
|
+
"flags": "--facts",
|
|
12764
|
+
"description": "With --json: also return matching curated facts from this checkout, the operator and the machine store, scope the search to the current project, and print one line { facts, observations }",
|
|
12765
|
+
"required": false,
|
|
12766
|
+
"valueHint": null
|
|
12767
|
+
},
|
|
11759
12768
|
{
|
|
11760
12769
|
"flags": "--json",
|
|
11761
12770
|
"description": "Output JSON",
|
|
@@ -15432,7 +16441,7 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
15432
16441
|
"id": "pan-lane",
|
|
15433
16442
|
"path": ["lane"],
|
|
15434
16443
|
"display": "/pan lane",
|
|
15435
|
-
"description": "Gauntlet lanes: launch, list, show, wait on, report from, stop and
|
|
16444
|
+
"description": "Gauntlet lanes: launch, list, show, wait on, report from, stop, reap and disk-check lane conversations",
|
|
15436
16445
|
"args": [],
|
|
15437
16446
|
"options": [],
|
|
15438
16447
|
"aliases": [],
|
|
@@ -15600,6 +16609,12 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
15600
16609
|
"required": true,
|
|
15601
16610
|
"valueHint": "conv"
|
|
15602
16611
|
},
|
|
16612
|
+
{
|
|
16613
|
+
"flags": "--reapable",
|
|
16614
|
+
"description": "Only lanes a newer iteration superseded that pan lane reap can remove now",
|
|
16615
|
+
"required": false,
|
|
16616
|
+
"valueHint": null
|
|
16617
|
+
},
|
|
15603
16618
|
{
|
|
15604
16619
|
"flags": "--json",
|
|
15605
16620
|
"description": "Print JSON",
|
|
@@ -15773,6 +16788,26 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
15773
16788
|
"aliases": [],
|
|
15774
16789
|
"category": "CLI"
|
|
15775
16790
|
},
|
|
16791
|
+
{
|
|
16792
|
+
"id": "pan-lane-disk-check",
|
|
16793
|
+
"path": ["lane", "disk-check"],
|
|
16794
|
+
"display": "/pan lane disk-check",
|
|
16795
|
+
"description": "Check the disk floor before launching lanes or creating a worktree (exit 0 room, 4 disk low, 1 error)",
|
|
16796
|
+
"args": [],
|
|
16797
|
+
"options": [{
|
|
16798
|
+
"flags": "--project <key>",
|
|
16799
|
+
"description": "Check the project's lanes root with the cost of one new lane, and list directories there that are not lanes",
|
|
16800
|
+
"required": true,
|
|
16801
|
+
"valueHint": "key"
|
|
16802
|
+
}, {
|
|
16803
|
+
"flags": "--path <dir>",
|
|
16804
|
+
"description": "Check the filesystem holding this directory (default: the current directory)",
|
|
16805
|
+
"required": true,
|
|
16806
|
+
"valueHint": "dir"
|
|
16807
|
+
}],
|
|
16808
|
+
"aliases": [],
|
|
16809
|
+
"category": "CLI"
|
|
16810
|
+
},
|
|
15776
16811
|
{
|
|
15777
16812
|
"id": "pan-flywheel",
|
|
15778
16813
|
"path": ["flywheel"],
|
|
@@ -16459,6 +17494,45 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
16459
17494
|
"aliases": [],
|
|
16460
17495
|
"category": "Core"
|
|
16461
17496
|
},
|
|
17497
|
+
{
|
|
17498
|
+
"id": "pan-restart-hold",
|
|
17499
|
+
"path": ["restart", "hold"],
|
|
17500
|
+
"display": "/pan restart hold",
|
|
17501
|
+
"description": "Hold every dashboard restart and reload until `pan restart release` (or --until expires)",
|
|
17502
|
+
"args": [],
|
|
17503
|
+
"options": [
|
|
17504
|
+
{
|
|
17505
|
+
"flags": "--reason <text>",
|
|
17506
|
+
"description": "Why restarts are held; every refused command prints it",
|
|
17507
|
+
"required": true,
|
|
17508
|
+
"valueHint": "text"
|
|
17509
|
+
},
|
|
17510
|
+
{
|
|
17511
|
+
"flags": "--until <when>",
|
|
17512
|
+
"description": "Lift the hold on its own: a duration (90m, 2h, 1d) or an ISO time",
|
|
17513
|
+
"required": true,
|
|
17514
|
+
"valueHint": "when"
|
|
17515
|
+
},
|
|
17516
|
+
{
|
|
17517
|
+
"flags": "--status",
|
|
17518
|
+
"description": "Show the current hold instead of setting one",
|
|
17519
|
+
"required": false,
|
|
17520
|
+
"valueHint": null
|
|
17521
|
+
}
|
|
17522
|
+
],
|
|
17523
|
+
"aliases": [],
|
|
17524
|
+
"category": "Core"
|
|
17525
|
+
},
|
|
17526
|
+
{
|
|
17527
|
+
"id": "pan-restart-release",
|
|
17528
|
+
"path": ["restart", "release"],
|
|
17529
|
+
"display": "/pan restart release",
|
|
17530
|
+
"description": "Release the restart hold so `pan reload` and `pan restart` run again",
|
|
17531
|
+
"args": [],
|
|
17532
|
+
"options": [],
|
|
17533
|
+
"aliases": [],
|
|
17534
|
+
"category": "Core"
|
|
17535
|
+
},
|
|
16462
17536
|
{
|
|
16463
17537
|
"id": "pan-project",
|
|
16464
17538
|
"path": ["project"],
|
|
@@ -17922,7 +18996,7 @@ const MachinePlacementMode = Schema.Literals(["auto", "on-request"]);
|
|
|
17922
18996
|
/** PAN-4651 FR-6: `CPU 3% · 41 GB · 2 agents` (unknown parts `n/a`); null without a sample. */
|
|
17923
18997
|
function formatMachineLoad(load) {
|
|
17924
18998
|
if (!load) return null;
|
|
17925
|
-
return `CPU ${load.cpuPsiSomeAvg10 === null ? "n/a" : `${Math.round(load.cpuPsiSomeAvg10)}%`} · ${load.memAvailableBytes === null ? "n/a" : `${Math.floor(load.memAvailableBytes / 2 ** 30)}`} GB · ${load.workingAgents} agents`;
|
|
18999
|
+
return `CPU ${load.cpuPsiSomeAvg10 === null ? "n/a" : `${Math.round(load.cpuPsiSomeAvg10)}%`} · ${load.memAvailableBytes === null ? "n/a" : `${Math.floor(load.memAvailableBytes / 2 ** 30)}`} GB · ${load.workingAgents} ${load.workingAgents === 1 ? "agent" : "agents"}`;
|
|
17926
19000
|
}
|
|
17927
19001
|
/** PAN-4651 FR-7: `tags: docker, linux · reserved`; null when there is neither. */
|
|
17928
19002
|
function formatMachineProfile(tags, placement) {
|
|
@@ -18021,7 +19095,11 @@ const MachinesResponse = Schema.Struct({
|
|
|
18021
19095
|
/** PAN-4651: this machine's own load sample, tags and placement mode. */
|
|
18022
19096
|
load: Schema.optional(Schema.NullOr(LoadSample)),
|
|
18023
19097
|
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
18024
|
-
placement: Schema.optional(MachinePlacementMode)
|
|
19098
|
+
placement: Schema.optional(MachinePlacementMode),
|
|
19099
|
+
/** PAN-4905: config.toml `[remote] enabled`; the Add a Fly machine dialog reads it before the click. */
|
|
19100
|
+
remoteEnabled: Schema.optional(Schema.Boolean),
|
|
19101
|
+
/** PAN-4905: config.toml as a display path (`~/.overdeck/config.toml`). */
|
|
19102
|
+
remoteConfigFile: Schema.optional(Schema.String)
|
|
18025
19103
|
}),
|
|
18026
19104
|
links: Schema.Array(MachineLinkView),
|
|
18027
19105
|
inbound: Schema.Array(InboundMachineView)
|
|
@@ -18070,7 +19148,11 @@ const EnvironmentCapabilities = Schema.Struct({
|
|
|
18070
19148
|
/** `/ws/*` upgrades require a credential (PAN-1166). */
|
|
18071
19149
|
terminalAuth: Schema.Boolean,
|
|
18072
19150
|
/** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
|
|
18073
|
-
machineLinks: Schema.optional(Schema.Boolean)
|
|
19151
|
+
machineLinks: Schema.optional(Schema.Boolean),
|
|
19152
|
+
/** The phone app can pair and use this machine (PAN-4835). Absent on older servers ⇒ unsupported. */
|
|
19153
|
+
phoneApp: Schema.optional(Schema.Boolean),
|
|
19154
|
+
/** An Overdeck connector can pair with this machine (PAN-4927 W-CONN1). Absent on older servers ⇒ unsupported. */
|
|
19155
|
+
connector: Schema.optional(Schema.Boolean)
|
|
18074
19156
|
});
|
|
18075
19157
|
const EnvironmentDescriptor = Schema.Struct({
|
|
18076
19158
|
descriptorVersion: Schema.Literal(1),
|
|
@@ -18138,6 +19220,8 @@ const INBOX_HOLD_MS = 864e5;
|
|
|
18138
19220
|
const APPROVAL_TTL_MS = 6e5;
|
|
18139
19221
|
/** Phones (directory clients) one account may register (PAN-4823 D-2, NFR-3). Clients never count as machines. */
|
|
18140
19222
|
const CLIENT_LIMIT = 5;
|
|
19223
|
+
/** PAN-4927 D-18: connectors are counted apart from phones. */
|
|
19224
|
+
const CONNECTOR_LIMIT = 10;
|
|
18141
19225
|
/** Pushes the directory forwards per account per minute (PAN-4823 D-9). */
|
|
18142
19226
|
const PUSH_RATE_PER_MINUTE = 30;
|
|
18143
19227
|
/**
|
|
@@ -18150,10 +19234,19 @@ const PUSH_SEALED_MAX_CHARS = 3072;
|
|
|
18150
19234
|
* grows by 4/3, so 2,256 bytes seal to exactly `PUSH_SEALED_MAX_CHARS` characters.
|
|
18151
19235
|
*/
|
|
18152
19236
|
const PUSH_PLAINTEXT_MAX_BYTES = 2256;
|
|
19237
|
+
/** Live Activity (PAN-4839, OD-1): the most either count may be. */
|
|
19238
|
+
const ACTIVITY_COUNT_MAX = 9999;
|
|
19239
|
+
/** A machine's report counts toward a phone's card this long; also the APNs `stale-date` offset. */
|
|
19240
|
+
const ACTIVITY_STALE_MS = 6e5;
|
|
19241
|
+
/** The directory re-pushes unchanged counts at most this often, so the stale date moves ahead. */
|
|
19242
|
+
const ACTIVITY_REFRESH_MS = 24e4;
|
|
19243
|
+
/** Live Activity pushes per account per minute, counted apart from alert pushes (NFR-1). */
|
|
19244
|
+
const ACTIVITY_PUSH_RATE_PER_MINUTE = 60;
|
|
18153
19245
|
const FREE_MACHINE_LIMIT_MESSAGE = "The free account includes 3 machines";
|
|
18154
19246
|
const NO_DIRECT_PATH_MESSAGE = "No direct path; install Tailscale or use the relay plan";
|
|
18155
19247
|
const RELAY_CAP_MESSAGE = "Relay allowance used; install Tailscale or add 50 GB";
|
|
18156
19248
|
const CLIENT_LIMIT_MESSAGE = "This account already has 5 phones. Remove one in the app or on a machine.";
|
|
19249
|
+
const CONNECTOR_LIMIT_MESSAGE = "This account already has 10 Overdeck connectors. Remove one in Settings → Anywhere → Bots.";
|
|
18157
19250
|
/** WebSocket close codes the directory uses. */
|
|
18158
19251
|
const CONNECT_CLOSE_CODES = {
|
|
18159
19252
|
unauthorized: 4001,
|
|
@@ -18163,7 +19256,7 @@ const CONNECT_CLOSE_CODES = {
|
|
|
18163
19256
|
/** Replaced by a newer socket for the same machine. */
|
|
18164
19257
|
replaced: 4011,
|
|
18165
19258
|
forgotten: 4012,
|
|
18166
|
-
/** A sixth phone on one account (PAN-4823 D-2). */
|
|
19259
|
+
/** A sixth phone or an eleventh connector on one account (PAN-4823 D-2, PAN-4927 D-18). */
|
|
18167
19260
|
clientLimit: 4013
|
|
18168
19261
|
};
|
|
18169
19262
|
//#endregion
|
|
@@ -18254,6 +19347,137 @@ const DirectoryResponse = Schema.Struct({
|
|
|
18254
19347
|
relay: Schema.NullOr(RelayStatusView)
|
|
18255
19348
|
});
|
|
18256
19349
|
//#endregion
|
|
19350
|
+
//#region src/phone-pairing.ts
|
|
19351
|
+
/** The phone app's bundle id and private-use URI scheme (RFC 8252 §7.1). */
|
|
19352
|
+
const PHONE_APP_SCHEME = "ai.overdeck.app";
|
|
19353
|
+
const PHONE_PAIR_LINK_VERSION = 1;
|
|
19354
|
+
/** Everything before the fragment. Single slash after the colon. */
|
|
19355
|
+
const PHONE_PAIR_LINK_PREFIX = `${PHONE_APP_SCHEME}:/pair#`;
|
|
19356
|
+
const PHONE_PAIR_ENVIRONMENT_ID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
|
|
19357
|
+
const PHONE_PAIR_MACHINE_KEY_RE = /^[0-9a-f]{64}$/;
|
|
19358
|
+
const PHONE_PAIR_CODE_RE = /^odp_[0-9a-f]{64}$/;
|
|
19359
|
+
/** `ai.overdeck.app:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>`; throws on a malformed input. */
|
|
19360
|
+
function buildPhonePairLink(input) {
|
|
19361
|
+
if (!PHONE_PAIR_ENVIRONMENT_ID_RE.test(input.environmentId)) throw new Error("environmentId must be a lowercase UUID v4");
|
|
19362
|
+
if (!PHONE_PAIR_MACHINE_KEY_RE.test(input.machineKeyHex)) throw new Error("machineKeyHex must be 64 lowercase hex characters");
|
|
19363
|
+
if (!PHONE_PAIR_CODE_RE.test(input.code)) throw new Error("code must be an odp_ pairing code");
|
|
19364
|
+
return `${PHONE_PAIR_LINK_PREFIX}v=1&e=${input.environmentId}&k=${input.machineKeyHex}&c=${input.code}`;
|
|
19365
|
+
}
|
|
19366
|
+
/** The inverse of `buildPhonePairLink`: the link's fields, or null unless every part is well formed. Surrounding whitespace is ignored. */
|
|
19367
|
+
function parsePhonePairLink(text) {
|
|
19368
|
+
const link = text.trim();
|
|
19369
|
+
if (!link.startsWith(PHONE_PAIR_LINK_PREFIX)) return null;
|
|
19370
|
+
const params = new URLSearchParams(link.slice(PHONE_PAIR_LINK_PREFIX.length));
|
|
19371
|
+
const environmentId = params.get("e");
|
|
19372
|
+
const machineKeyHex = params.get("k");
|
|
19373
|
+
const code = params.get("c");
|
|
19374
|
+
if (params.get("v") !== String(1)) return null;
|
|
19375
|
+
if (environmentId === null || !PHONE_PAIR_ENVIRONMENT_ID_RE.test(environmentId)) return null;
|
|
19376
|
+
if (machineKeyHex === null || !PHONE_PAIR_MACHINE_KEY_RE.test(machineKeyHex)) return null;
|
|
19377
|
+
if (code === null || !PHONE_PAIR_CODE_RE.test(code)) return null;
|
|
19378
|
+
return {
|
|
19379
|
+
environmentId,
|
|
19380
|
+
machineKeyHex,
|
|
19381
|
+
code
|
|
19382
|
+
};
|
|
19383
|
+
}
|
|
19384
|
+
//#endregion
|
|
19385
|
+
//#region src/phone-notifications.ts
|
|
19386
|
+
const PHONE_NOTIFICATION_CATEGORIES = [
|
|
19387
|
+
"question",
|
|
19388
|
+
"plan",
|
|
19389
|
+
"permission",
|
|
19390
|
+
"finished",
|
|
19391
|
+
"failed",
|
|
19392
|
+
"stopped"
|
|
19393
|
+
];
|
|
19394
|
+
const DEFAULT_PHONE_NOTIFICATION_PREFERENCES = {
|
|
19395
|
+
v: 1,
|
|
19396
|
+
pause: null,
|
|
19397
|
+
muted: []
|
|
19398
|
+
};
|
|
19399
|
+
function isPlainObject$1(value) {
|
|
19400
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19401
|
+
}
|
|
19402
|
+
function parsePause(value) {
|
|
19403
|
+
if (value === null) return null;
|
|
19404
|
+
if (!isPlainObject$1(value)) return void 0;
|
|
19405
|
+
const until = value.until;
|
|
19406
|
+
if (until === null) return { until: null };
|
|
19407
|
+
if (typeof until !== "string" || Number.isNaN(Date.parse(until))) return void 0;
|
|
19408
|
+
return { until };
|
|
19409
|
+
}
|
|
19410
|
+
/** Null for anything that is not a v1 prefs object; drops unknown/duplicate `muted` entries; never throws. */
|
|
19411
|
+
function parsePhoneNotificationPreferences(value) {
|
|
19412
|
+
if (!isPlainObject$1(value)) return null;
|
|
19413
|
+
if (value.v !== 1) return null;
|
|
19414
|
+
const pause = parsePause(value.pause);
|
|
19415
|
+
if (pause === void 0) return null;
|
|
19416
|
+
const rawMuted = value.muted;
|
|
19417
|
+
if (!Array.isArray(rawMuted)) return null;
|
|
19418
|
+
return {
|
|
19419
|
+
v: 1,
|
|
19420
|
+
pause,
|
|
19421
|
+
muted: PHONE_NOTIFICATION_CATEGORIES.filter((category) => rawMuted.includes(category))
|
|
19422
|
+
};
|
|
19423
|
+
}
|
|
19424
|
+
/** Whether a notification of `category` may go to a phone with `prefs` at `nowMs` (D-3). */
|
|
19425
|
+
function notificationAllowed(prefs, category, nowMs) {
|
|
19426
|
+
if (prefs === null) return true;
|
|
19427
|
+
if (category === "test") return true;
|
|
19428
|
+
if (prefs.pause !== null && (prefs.pause.until === null || Date.parse(prefs.pause.until) > nowMs)) return false;
|
|
19429
|
+
if (category === "summary") return true;
|
|
19430
|
+
return !prefs.muted.includes(category);
|
|
19431
|
+
}
|
|
19432
|
+
//#endregion
|
|
19433
|
+
//#region src/connector-pairing.ts
|
|
19434
|
+
const CONNECTOR_PAIR_SCHEME = "overdeck-connector";
|
|
19435
|
+
const CONNECTOR_PAIR_LINK_VERSION = 1;
|
|
19436
|
+
/** Everything before the fragment. Single slash after the colon. */
|
|
19437
|
+
const CONNECTOR_PAIR_LINK_PREFIX = `${CONNECTOR_PAIR_SCHEME}:/pair#`;
|
|
19438
|
+
/** Longest machine name (after trim) the string carries in `n=` (PAN-5069 FR-8). */
|
|
19439
|
+
const CONNECTOR_PAIR_MACHINE_LABEL_MAX = 64;
|
|
19440
|
+
/**
|
|
19441
|
+
* `overdeck-connector:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>[&n=<machineLabel>]`; throws on a malformed input.
|
|
19442
|
+
* The label is trimmed, cut to 64 characters and percent-encoded with `'` as `%27`, so the string is safe inside single shell quotes.
|
|
19443
|
+
*/
|
|
19444
|
+
function buildConnectorPairLink(input) {
|
|
19445
|
+
if (!PHONE_PAIR_ENVIRONMENT_ID_RE.test(input.environmentId)) throw new Error("environmentId must be a lowercase UUID v4");
|
|
19446
|
+
if (!PHONE_PAIR_MACHINE_KEY_RE.test(input.machineKeyHex)) throw new Error("machineKeyHex must be 64 lowercase hex characters");
|
|
19447
|
+
if (!PHONE_PAIR_CODE_RE.test(input.code)) throw new Error("code must be an odp_ pairing code");
|
|
19448
|
+
const link = `${CONNECTOR_PAIR_LINK_PREFIX}v=1&e=${input.environmentId}&k=${input.machineKeyHex}&c=${input.code}`;
|
|
19449
|
+
const label = input.machineLabel?.trim().slice(0, 64) ?? "";
|
|
19450
|
+
return label === "" ? link : `${link}&n=${encodeURIComponent(label).replace(/'/g, "%27")}`;
|
|
19451
|
+
}
|
|
19452
|
+
/**
|
|
19453
|
+
* The inverse of `buildConnectorPairLink`: the string's fields, or null unless every required part is well formed.
|
|
19454
|
+
* Surrounding whitespace is ignored. A missing, empty or over-long `n` only leaves `machineLabel` out; it never makes the parse fail.
|
|
19455
|
+
*/
|
|
19456
|
+
function parseConnectorPairLink(text) {
|
|
19457
|
+
const link = text.trim();
|
|
19458
|
+
if (!link.startsWith(CONNECTOR_PAIR_LINK_PREFIX)) return null;
|
|
19459
|
+
const params = new URLSearchParams(link.slice(CONNECTOR_PAIR_LINK_PREFIX.length));
|
|
19460
|
+
const environmentId = params.get("e");
|
|
19461
|
+
const machineKeyHex = params.get("k");
|
|
19462
|
+
const code = params.get("c");
|
|
19463
|
+
if (params.get("v") !== String(1)) return null;
|
|
19464
|
+
if (environmentId === null || !PHONE_PAIR_ENVIRONMENT_ID_RE.test(environmentId)) return null;
|
|
19465
|
+
if (machineKeyHex === null || !PHONE_PAIR_MACHINE_KEY_RE.test(machineKeyHex)) return null;
|
|
19466
|
+
if (code === null || !PHONE_PAIR_CODE_RE.test(code)) return null;
|
|
19467
|
+
const machineLabel = params.get("n")?.trim() ?? "";
|
|
19468
|
+
if (machineLabel === "" || machineLabel.length > 64) return {
|
|
19469
|
+
environmentId,
|
|
19470
|
+
machineKeyHex,
|
|
19471
|
+
code
|
|
19472
|
+
};
|
|
19473
|
+
return {
|
|
19474
|
+
environmentId,
|
|
19475
|
+
machineKeyHex,
|
|
19476
|
+
code,
|
|
19477
|
+
machineLabel
|
|
19478
|
+
};
|
|
19479
|
+
}
|
|
19480
|
+
//#endregion
|
|
18257
19481
|
//#region src/fleet-versions.ts
|
|
18258
19482
|
const FleetInstallMode = Schema.Literals([
|
|
18259
19483
|
"npm-global",
|
|
@@ -18338,6 +19562,269 @@ const MachineVersionsReportSchema = Schema.Struct({
|
|
|
18338
19562
|
job: Schema.NullOr(FleetUpdateJobSchema)
|
|
18339
19563
|
});
|
|
18340
19564
|
//#endregion
|
|
19565
|
+
//#region src/sharing-wire.ts
|
|
19566
|
+
const SHARED_WIRE_VERSION = 1;
|
|
19567
|
+
const SHARED_SCOPE_KINDS = ["conversation"];
|
|
19568
|
+
const SHARED_CHANNELS = [
|
|
19569
|
+
"control",
|
|
19570
|
+
"conversation",
|
|
19571
|
+
"drafts",
|
|
19572
|
+
"terminal",
|
|
19573
|
+
"presence"
|
|
19574
|
+
];
|
|
19575
|
+
/** The longest data-channel message: 32,768 UTF-16 code units, at most 96 KiB of UTF-8. Longer envelopes are fragmented. */
|
|
19576
|
+
const SHARE_MAX_MESSAGE_CHARS = 32768;
|
|
19577
|
+
/** The longest encoded envelope ever sent or reassembled. */
|
|
19578
|
+
const SHARE_MAX_ENVELOPE_CHARS = 32 * 1024 * 1024;
|
|
19579
|
+
/** The longest envelope a host reassembles from a viewer on `control` or `drafts` (NFR-3). */
|
|
19580
|
+
const SHARE_MAX_INBOUND_ENVELOPE_CHARS = 65536;
|
|
19581
|
+
/** The longest shared prompt or draft, in UTF-16 code units (D-11). */
|
|
19582
|
+
const SHARED_PROMPT_MAX_CHARS = 8e3;
|
|
19583
|
+
/**
|
|
19584
|
+
* The longest single message a fragment can be: JSON escaping can turn each of a slice's
|
|
19585
|
+
* SHARE_MAX_MESSAGE_CHARS code units into six (`\u0000`), plus the chunk header.
|
|
19586
|
+
*/
|
|
19587
|
+
const MAX_FRAGMENT_MESSAGE_CHARS = SHARE_MAX_MESSAGE_CHARS * 6 + 256;
|
|
19588
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19589
|
+
const isPositiveInteger = (value) => typeof value === "number" && Number.isSafeInteger(value) && value > 0;
|
|
19590
|
+
const isNonNegativeInteger = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
19591
|
+
/** Copies only the allow-listed fields. Never spreads the input and never sets `author`. */
|
|
19592
|
+
function toSharedMessage(message) {
|
|
19593
|
+
const shared = {
|
|
19594
|
+
id: message.id,
|
|
19595
|
+
role: message.role,
|
|
19596
|
+
text: message.text,
|
|
19597
|
+
createdAt: message.createdAt
|
|
19598
|
+
};
|
|
19599
|
+
if (typeof message.turnId === "string") shared.turnId = message.turnId;
|
|
19600
|
+
if (typeof message.completedAt === "string") shared.completedAt = message.completedAt;
|
|
19601
|
+
if (typeof message.streaming === "boolean") shared.streaming = message.streaming;
|
|
19602
|
+
if (typeof message.sequence === "number" && Number.isFinite(message.sequence)) shared.sequence = message.sequence;
|
|
19603
|
+
return shared;
|
|
19604
|
+
}
|
|
19605
|
+
/**
|
|
19606
|
+
* `null` when a shared prompt may be delivered; the refusal reason otherwise (D-9). A leading `/`, `!`
|
|
19607
|
+
* or `#` would reach a composer command, a shell command or a memory note, so it is refused.
|
|
19608
|
+
*/
|
|
19609
|
+
function sharedPromptRefusal(text) {
|
|
19610
|
+
const trimmed = text.trim();
|
|
19611
|
+
if (trimmed.length === 0) return "invalid_prompt";
|
|
19612
|
+
if (text.length > 8e3) return "too_long";
|
|
19613
|
+
const first = trimmed[0];
|
|
19614
|
+
return first === "/" || first === "!" || first === "#" ? "invalid_prompt" : null;
|
|
19615
|
+
}
|
|
19616
|
+
/** A host → viewer DraftPayload rebuilt from its known keys, or `null` when `value` is not one. */
|
|
19617
|
+
function readDraftPayload(value) {
|
|
19618
|
+
if (!isRecord(value)) return null;
|
|
19619
|
+
const { authorGithubId, authorLogin, text, updatedAt } = value;
|
|
19620
|
+
if (!isPositiveInteger(authorGithubId)) return null;
|
|
19621
|
+
if (typeof authorLogin !== "string") return null;
|
|
19622
|
+
if (typeof text !== "string" || text.length > 8e3) return null;
|
|
19623
|
+
if (typeof updatedAt !== "number" || !Number.isFinite(updatedAt)) return null;
|
|
19624
|
+
return {
|
|
19625
|
+
authorGithubId,
|
|
19626
|
+
authorLogin,
|
|
19627
|
+
text,
|
|
19628
|
+
updatedAt
|
|
19629
|
+
};
|
|
19630
|
+
}
|
|
19631
|
+
/** A new envelope with exactly the six envelope keys, or `null` when `value` is not one. */
|
|
19632
|
+
function decodeEnvelope(value) {
|
|
19633
|
+
if (!isRecord(value)) return null;
|
|
19634
|
+
const { v, ch, streamId, seq, t } = value;
|
|
19635
|
+
if (!isPositiveInteger(v)) return null;
|
|
19636
|
+
if (typeof ch !== "string" || !SHARED_CHANNELS.includes(ch)) return null;
|
|
19637
|
+
if (typeof streamId !== "string" || streamId.length === 0) return null;
|
|
19638
|
+
if (!isPositiveInteger(seq)) return null;
|
|
19639
|
+
if (typeof t !== "number" || !Number.isFinite(t)) return null;
|
|
19640
|
+
if (!Object.prototype.hasOwnProperty.call(value, "payload")) return null;
|
|
19641
|
+
return {
|
|
19642
|
+
v,
|
|
19643
|
+
ch,
|
|
19644
|
+
streamId,
|
|
19645
|
+
seq,
|
|
19646
|
+
t,
|
|
19647
|
+
payload: value.payload
|
|
19648
|
+
};
|
|
19649
|
+
}
|
|
19650
|
+
/**
|
|
19651
|
+
* Encodes one envelope as the data-channel messages to send in order: one message, or `count`
|
|
19652
|
+
* fragments when the encoded envelope is longer than SHARE_MAX_MESSAGE_CHARS. Slicing can split a
|
|
19653
|
+
* UTF-16 surrogate pair across fragments; the reader joins the slices before parsing, so the pair is
|
|
19654
|
+
* whole again. Throws RangeError when the encoded envelope is longer than SHARE_MAX_ENVELOPE_CHARS.
|
|
19655
|
+
*/
|
|
19656
|
+
function encodeSharedMessage(envelope, chunkId) {
|
|
19657
|
+
const text = JSON.stringify(envelope);
|
|
19658
|
+
if (text.length > 33554432) throw new RangeError("shared envelope too large");
|
|
19659
|
+
if (text.length <= 32768) return [text];
|
|
19660
|
+
const count = Math.ceil(text.length / SHARE_MAX_MESSAGE_CHARS);
|
|
19661
|
+
const parts = [];
|
|
19662
|
+
for (let index = 0; index < count; index++) {
|
|
19663
|
+
const data = text.slice(index * SHARE_MAX_MESSAGE_CHARS, (index + 1) * SHARE_MAX_MESSAGE_CHARS);
|
|
19664
|
+
parts.push(JSON.stringify({
|
|
19665
|
+
v: 1,
|
|
19666
|
+
chunk: {
|
|
19667
|
+
id: chunkId,
|
|
19668
|
+
index,
|
|
19669
|
+
count
|
|
19670
|
+
},
|
|
19671
|
+
data
|
|
19672
|
+
}));
|
|
19673
|
+
}
|
|
19674
|
+
return parts;
|
|
19675
|
+
}
|
|
19676
|
+
/**
|
|
19677
|
+
* Reads one channel's messages in arrival order and reassembles fragmented envelopes. One reader per
|
|
19678
|
+
* channel. `maxEnvelopeChars` caps what one envelope may grow to; a host reading a viewer passes
|
|
19679
|
+
* SHARE_MAX_INBOUND_ENVELOPE_CHARS so one viewer cannot make it buffer megabytes.
|
|
19680
|
+
*/
|
|
19681
|
+
var SharedChannelReader = class {
|
|
19682
|
+
partial = null;
|
|
19683
|
+
constructor(maxEnvelopeChars = SHARE_MAX_ENVELOPE_CHARS) {
|
|
19684
|
+
this.maxEnvelopeChars = maxEnvelopeChars;
|
|
19685
|
+
}
|
|
19686
|
+
read(text) {
|
|
19687
|
+
if (text.length > Math.max(this.maxEnvelopeChars, MAX_FRAGMENT_MESSAGE_CHARS)) return {
|
|
19688
|
+
kind: "invalid",
|
|
19689
|
+
reason: "too_large"
|
|
19690
|
+
};
|
|
19691
|
+
let value;
|
|
19692
|
+
try {
|
|
19693
|
+
value = JSON.parse(text);
|
|
19694
|
+
} catch {
|
|
19695
|
+
return {
|
|
19696
|
+
kind: "invalid",
|
|
19697
|
+
reason: "not_json"
|
|
19698
|
+
};
|
|
19699
|
+
}
|
|
19700
|
+
if (isRecord(value) && Object.prototype.hasOwnProperty.call(value, "chunk")) return this.readFragment(value);
|
|
19701
|
+
if (text.length > this.maxEnvelopeChars) return {
|
|
19702
|
+
kind: "invalid",
|
|
19703
|
+
reason: "too_large"
|
|
19704
|
+
};
|
|
19705
|
+
return decoded(value);
|
|
19706
|
+
}
|
|
19707
|
+
readFragment(value) {
|
|
19708
|
+
const { chunk, data } = value;
|
|
19709
|
+
if (!isRecord(chunk) || typeof data !== "string") return {
|
|
19710
|
+
kind: "invalid",
|
|
19711
|
+
reason: "not_envelope"
|
|
19712
|
+
};
|
|
19713
|
+
const { id, index, count } = chunk;
|
|
19714
|
+
if (typeof id !== "number" || !Number.isFinite(id) || !isNonNegativeInteger(index) || !isNonNegativeInteger(count) || index >= count) return {
|
|
19715
|
+
kind: "invalid",
|
|
19716
|
+
reason: "not_envelope"
|
|
19717
|
+
};
|
|
19718
|
+
if (count * 32768 > this.maxEnvelopeChars + 32768 || data.length > 32768) {
|
|
19719
|
+
this.partial = null;
|
|
19720
|
+
return {
|
|
19721
|
+
kind: "invalid",
|
|
19722
|
+
reason: "too_large"
|
|
19723
|
+
};
|
|
19724
|
+
}
|
|
19725
|
+
const partial = this.partial;
|
|
19726
|
+
if (partial === null) {
|
|
19727
|
+
if (index !== 0) return {
|
|
19728
|
+
kind: "invalid",
|
|
19729
|
+
reason: "chunk_out_of_order"
|
|
19730
|
+
};
|
|
19731
|
+
this.partial = {
|
|
19732
|
+
id,
|
|
19733
|
+
count,
|
|
19734
|
+
parts: [data]
|
|
19735
|
+
};
|
|
19736
|
+
} else {
|
|
19737
|
+
if (id !== partial.id || count !== partial.count || index !== partial.parts.length) {
|
|
19738
|
+
this.partial = null;
|
|
19739
|
+
return {
|
|
19740
|
+
kind: "invalid",
|
|
19741
|
+
reason: "chunk_out_of_order"
|
|
19742
|
+
};
|
|
19743
|
+
}
|
|
19744
|
+
partial.parts.push(data);
|
|
19745
|
+
}
|
|
19746
|
+
const current = this.partial;
|
|
19747
|
+
if (current === null || current.parts.length < current.count) return { kind: "pending" };
|
|
19748
|
+
this.partial = null;
|
|
19749
|
+
const text = current.parts.join("");
|
|
19750
|
+
if (text.length > this.maxEnvelopeChars) return {
|
|
19751
|
+
kind: "invalid",
|
|
19752
|
+
reason: "too_large"
|
|
19753
|
+
};
|
|
19754
|
+
let joined;
|
|
19755
|
+
try {
|
|
19756
|
+
joined = JSON.parse(text);
|
|
19757
|
+
} catch {
|
|
19758
|
+
return {
|
|
19759
|
+
kind: "invalid",
|
|
19760
|
+
reason: "not_json"
|
|
19761
|
+
};
|
|
19762
|
+
}
|
|
19763
|
+
return decoded(joined);
|
|
19764
|
+
}
|
|
19765
|
+
};
|
|
19766
|
+
function decoded(value) {
|
|
19767
|
+
const envelope = decodeEnvelope(value);
|
|
19768
|
+
return envelope === null ? {
|
|
19769
|
+
kind: "invalid",
|
|
19770
|
+
reason: "not_envelope"
|
|
19771
|
+
} : {
|
|
19772
|
+
kind: "envelope",
|
|
19773
|
+
envelope
|
|
19774
|
+
};
|
|
19775
|
+
}
|
|
19776
|
+
/** Detects `seq` gaps per channel and stream. A gap is reported once; tracking resumes after it. */
|
|
19777
|
+
var SeqTracker = class {
|
|
19778
|
+
expected = /* @__PURE__ */ new Map();
|
|
19779
|
+
observe(ch, streamId, seq) {
|
|
19780
|
+
const key = `${ch}\n${streamId}`;
|
|
19781
|
+
const expected = this.expected.get(key) ?? 1;
|
|
19782
|
+
this.expected.set(key, seq + 1);
|
|
19783
|
+
return seq === expected ? { ok: true } : {
|
|
19784
|
+
ok: false,
|
|
19785
|
+
expected,
|
|
19786
|
+
got: seq
|
|
19787
|
+
};
|
|
19788
|
+
}
|
|
19789
|
+
};
|
|
19790
|
+
/** Agrees on `min(local.v, remote.v)` when the remote hello is well formed and both sides support the shared scope. */
|
|
19791
|
+
function negotiateHello(local, remote) {
|
|
19792
|
+
if (!isRecord(remote)) return {
|
|
19793
|
+
ok: false,
|
|
19794
|
+
code: "invalid_hello"
|
|
19795
|
+
};
|
|
19796
|
+
const { v, scopeKinds, scope } = remote;
|
|
19797
|
+
if (!isPositiveInteger(v)) return {
|
|
19798
|
+
ok: false,
|
|
19799
|
+
code: "invalid_hello"
|
|
19800
|
+
};
|
|
19801
|
+
if (!Array.isArray(scopeKinds) || !scopeKinds.every((kind) => typeof kind === "string")) return {
|
|
19802
|
+
ok: false,
|
|
19803
|
+
code: "invalid_hello"
|
|
19804
|
+
};
|
|
19805
|
+
if (!isRecord(scope) || typeof scope.kind !== "string" || typeof scope.conversationId !== "string") return {
|
|
19806
|
+
ok: false,
|
|
19807
|
+
code: "invalid_hello"
|
|
19808
|
+
};
|
|
19809
|
+
const agreed = Math.min(local.v, v);
|
|
19810
|
+
if (agreed < 1) return {
|
|
19811
|
+
ok: false,
|
|
19812
|
+
code: "version_unsupported"
|
|
19813
|
+
};
|
|
19814
|
+
if (!scopeKinds.includes(local.scope.kind) || !local.scopeKinds.includes(scope.kind)) return {
|
|
19815
|
+
ok: false,
|
|
19816
|
+
code: "scope_kind_unsupported"
|
|
19817
|
+
};
|
|
19818
|
+
if (scope.kind !== local.scope.kind || scope.conversationId !== local.scope.conversationId) return {
|
|
19819
|
+
ok: false,
|
|
19820
|
+
code: "invalid_hello"
|
|
19821
|
+
};
|
|
19822
|
+
return {
|
|
19823
|
+
ok: true,
|
|
19824
|
+
v: agreed
|
|
19825
|
+
};
|
|
19826
|
+
}
|
|
19827
|
+
//#endregion
|
|
18341
19828
|
//#region src/color-theme.ts
|
|
18342
19829
|
const TERMINAL_PALETTE_KEYS = [
|
|
18343
19830
|
"background",
|
|
@@ -18655,6 +20142,6 @@ function presetToCron(preset) {
|
|
|
18655
20142
|
}
|
|
18656
20143
|
}
|
|
18657
20144
|
//#endregion
|
|
18658
|
-
export { ACP_BEHAVIOR, ACP_CAPABILITIES, AGENT_ROLES, APPROVAL_TTL_MS, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AdvertisedEndpoint, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentResolution, AgentResolutionChangedEvent, AgentRuntimeSnapshot, AgentSnapshot, AgentStartedEvent, AgentStateRestoredEvent, AgentStatus, AgentStatusChangedEvent, AgentStoppedEvent, AgentThinkingStartedEvent, AgentThinkingStoppedEvent, AgentTurnDiffCompletedEvent, AgentWaitingClearedEvent, AgentWaitingStartedEvent, ArtifactAgentHarness, ArtifactAgentRole, ArtifactCreateResponse, ArtifactDetailResponse, ArtifactHash, ArtifactId, ArtifactLifecycleState, ArtifactListEntry, ArtifactListResponse, ArtifactMetadata, ArtifactPublishResponse, ArtifactSlug, ArtifactStatusResponse, ArtifactUnshareResponse, ArtifactUrls, ArtifactValidationCode, ArtifactValidationFinding, ArtifactValidationResult, BROWSERS, BUILTIN_COLOR_THEMES, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BrowserIdSchema, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CLAUDE_CODE_CAPABILITIES, CLIENT_LIMIT, CLIENT_LIMIT_MESSAGE, CODEX_BEHAVIOR, CODEX_CAPABILITIES, COLOR_THEME_ID_RE, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONNECT_CLOSE_CODES, CONNECT_PROTOCOL_VERSION, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, CONVERSATION_PAGE_DEFAULT_LIMIT, CONVERSATION_PAGE_MAX_LIMIT, CONVERSATION_PAYLOAD_BUDGET_BYTES, CONVERSATION_WINDOW_MAX_BYTES, CONVERSATION_WINDOW_MAX_ROWS, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CompactBoundary, ContextEditableLayerRecord, ContextHarnessPreviews, ContextLayerDraft, ContextLayerKind, ContextLayerSaveRequest, ContextLayerSaveResponse, ContextLayerTarget, ContextLayersResponse, ContextPreviewDiagnostic, ContextPreviewHarness, ContextPreviewRequest, ContextPreviewResponse, ContextProjectSummary, ContextSyncRequest, ContextSyncResponse, ContextSyncTarget, ContextUsage, ContextWorkspaceSummary, ConversationCompactingChangedEvent, ConversationCostSummary, ConversationCreatedEvent, ConversationEvent, ConversationFilter, ConversationMovedEvent, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationResume, ConversationSchedulesChangedEvent, ConversationTitleChangedEvent, ConversationWindow, CostEventRecordedEvent, DEFAULT_EFFORT, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardSnapshot, DeepWipeRpc, DeployStalenessSnapshot, DerivedBranchState, DerivedIssueState, DerivedPrOutsidePipeline, DerivedPrState, DerivedWorkStart, DirectoryApprovalState, DirectoryApprovalView, DirectoryClientState, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryJoinState, DirectoryJoinView, DirectoryMachineView, DirectoryPause, DirectoryPauseBy, DirectoryPlan, DirectoryProviderError, DirectoryResponse, DirectoryScope, DirectoryTranscriptRef, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EFFORT_LEVELS, ENVIRONMENT_PROTOCOL_VERSION, EditorIdSchema, EffortLevelSchema, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, EnvironmentCapabilities, EnvironmentDescriptor, EnvironmentId, ExtractionProviderConfig, ExtractionProviderTarget, FLEET_BINARY_ORDER, FLEET_UPDATE_STILL_WAITING_MS, FREE_MACHINE_LIMIT_MESSAGE, FeatureNode, FeatureRegistryEntry, FeatureRegistryStatus, FleetComponentStatus, FleetInstallMode, FleetJobPhase, FleetProjectRow, FleetProjectsResponse, FleetUpdateJobSchema, FleetUpdateMode, FlywheelAgent, FlywheelAgentStatus, FlywheelAgentSummary, FlywheelBugRateCriterion, FlywheelConversationSummary, FlywheelDerivedStatus, FlywheelEffort, FlywheelFreshness, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelInFlightRow, FlywheelJournalSummary, FlywheelLastTick, FlywheelOrchestrator, FlywheelOrderBookSummary, FlywheelOrders, FlywheelP0Criterion, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelPolicies, FlywheelRunId, FlywheelRunState, FlywheelScope, FlywheelStats, FlywheelStatsCriterionStatus, FlywheelStatsTrend, FlywheelStatsWindow, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugRow, FlywheelSubstrateBugStatus, FlywheelSubstrateSeverity, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, GITHUB_QUOTA_BUCKETS, GITHUB_QUOTA_CALLERS, GITHUB_QUOTA_POOLS, GetAvailableBrowsersRpc, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GlobalContextLayerRecord, GlobalContextLayerTarget, HARNESS_CAPABILITY_KEYS, HOOK_INVENTORY, HealthReason, HealthState, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INBOX_BODY_MAX_BYTES, INBOX_HOLD_MS, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, InboundMachineView, IssueAttention, IssueId, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, KIMI_CODE_BEHAVIOR, KIMI_CODE_CAPABILITIES, KNOWN_HARNESSES, LANE_STARTING_GRACE_MS, LINK_PROTOCOL_VERSION, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, LinkAccess, LinkIncident, LinkRouteStatus, LinkRouteView, LinkState, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, LoadSample, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MEMBERSHIP_UNAVAILABLE_REASONS, MUSE_BEHAVIOR, MUSE_CAPABILITIES, MachineLinkView, MachinePlacementMode, MachineProject, MachineVersionsReportSchema, MachinesResponse, MemoryAgentRole, MemoryHealthChangedEvent, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryResetMarkerCreatedEvent, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, NO_DIRECT_PATH_MESSAGE, OHMYPI_BEHAVIOR, OHMYPI_CAPABILITIES, OPENCODE_BEHAVIOR, OPENCODE_CAPABILITIES, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInBrowserInput, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PIPELINE_MEMBERSHIP_LOADING_CODE, PRIME_AGENT_BEHAVIOR, PRIME_AGENT_CAPABILITIES, PUSH_PLAINTEXT_MAX_BYTES, PUSH_RATE_PER_MINUTE, PUSH_SEALED_MAX_CHARS, PanRpcError, PanRpcGroup, PendingTurn, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlacementAnswer, PlacementRejection, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestSnapshot, PullRequestState, RELAY_CAP_MESSAGE, RELAY_MONTHLY_CAP_BYTES, RESERVED_COLOR_THEME_IDS, RESUME_OPEN_IDS_MAX, ROUTE_KINDS, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, RelayStatusView, ReplayEventsResult, ReplayEventsRpc, ReplayTooFarBehind, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResourceStats, ResourcesUpdatedEvent, RestartGateChangedEvent, RestartGateKind, RestartGateOutcome, RestartGateRequest, RestartGateSnapshot, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewVerdictDispatchedEvent, ReviewVerdictRejectedEvent, ReviewVerdictRestoreBlockedEvent, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RouteKind, RouteSource, SCHEDULE_PRESET_DAYS, SINGLETON_AGENT_IDS, SSH_HELPER_PROTOCOL, SSH_MACHINE_ERROR_CODES, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, ScopedAgentRef, ScopedConversationRef, ScopedIssueRef, ScopedProjectRef, ScopedRef, ScopedTerminalRef, SearchConversationsRpc, SendTerminalInputRpc, SequenceNumber, ServiceHealthSnapshot, ServiceHealthStatus, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, ShellOpenInBrowserRpc, ShellOpenInEditorRpc, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, SshForwardState, SshLaunch, SshLinkInfo, SshMachineErrorCode, SshTestResult, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TOOL_BODY_INLINE_MAX_BYTES, TOOL_BODY_PREVIEW_CHARS, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TurnDiffFileChange, TurnDiffSummary, TurnEndAssessment, WINDOW_PINNED_OPEN_TOOLS_MAX, WIRED_HOOK_INVENTORY, WIRED_HOOK_NAMES, WS_METHODS, WaitingReason, WaitingState, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceWipeStartedEvent, WriteFileAtPathInput, WriteFileAtPathResult, WriteFileAtPathRpc, applyEvent, applyEvents, applyIssueDelta, bucketQuotaPoints, bucketQuotaRemaining, builtinFor, canonicalPullRequestUrl, companionTerminalKindFor, compareEffort, compareFleetBinaries, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, effectiveTerminalPalette, encodeFlywheelStats, encodeTimelineCursor, formatMachineLoad, formatMachineProfile, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isLegacyPiHarnessName, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, linkedConversationName, normalizeChannelReplyPayload, normalizeColorTheme, normalizeHarnessName, omitTurnDiffSummariesForAgent, overdeckInstallCommand, paneAgentKey, parseLinkedConversationName, parsePullRequestRef, parseTrackerIssueUrl, presetToCron, projectLegacySystemHealthSummary, readableForeground, repoFromRemoteUrl, resolveEffectivePullRequest, resolveTrackerIssueId, slugifyThemeId, syncSnapshot, timelineKeyOfMessage, timelineKeyOfWork, toOpaqueHex, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
|
|
20145
|
+
export { ACP_BEHAVIOR, ACP_CAPABILITIES, ACTIVITY_COUNT_MAX, ACTIVITY_PUSH_RATE_PER_MINUTE, ACTIVITY_REFRESH_MS, ACTIVITY_STALE_MS, AGENT_ROLES, APPROVAL_TTL_MS, Activity, ActivityDetailedEvent, ActivityEntryEvent, ActivityTtsEvent, ActivityUpdatedEvent, AdmissionState, AdvertisedEndpoint, AgentActivityChangedEvent, AgentChannelReply, AgentChannelReplyEvent, AgentCompletedEvent, AgentContextSaturationChangedEvent, AgentCreatedEvent, AgentCurrentIssueSetEvent, AgentDirectoryResponse, AgentEnrichmentChangedEvent, AgentHealthKind, AgentHealthSnapshot, AgentHealthStatus, AgentHeartbeatDeadEvent, AgentHookFiredEvent, AgentId, AgentMessageReceivedEvent, AgentModelSetEvent, AgentOutput, AgentOutputReceivedEvent, AgentPermissionRequestedEvent, AgentPermissionResolvedEvent, AgentResolution, AgentResolutionChangedEvent, AgentRuntimeSnapshot, AgentSnapshot, AgentStartedEvent, AgentStateRestoredEvent, AgentStatus, AgentStatusChangedEvent, AgentStoppedEvent, AgentThinkingStartedEvent, AgentThinkingStoppedEvent, AgentTurnDiffCompletedEvent, AgentWaitingClearedEvent, AgentWaitingStartedEvent, ArtifactAgentHarness, ArtifactAgentRole, ArtifactCreateResponse, ArtifactDetailResponse, ArtifactHash, ArtifactId, ArtifactLifecycleState, ArtifactListEntry, ArtifactListResponse, ArtifactMetadata, ArtifactPublishResponse, ArtifactSlug, ArtifactStatusResponse, ArtifactUnshareResponse, ArtifactUrls, ArtifactValidationCode, ArtifactValidationFinding, ArtifactValidationResult, BROWSERS, BUILTIN_COLOR_THEMES, BackendPane, BackendPaneChangedEvent, BackendPaneRemovedEvent, BeadsFreshnessChangedEvent, BrowserIdSchema, CHANNEL_REPLY_KIND_VALUES, CLAUDE_CODE_BEHAVIOR, CLAUDE_CODE_CAPABILITIES, CLIENT_LIMIT, CLIENT_LIMIT_MESSAGE, CODEX_BEHAVIOR, CODEX_CAPABILITIES, COLOR_THEME_ID_RE, COMPANION_TERMINAL_CLOSE_BODY_KEYS, COMPANION_TERMINAL_OPEN_BODY_KEYS, COMPOSER_COMMAND_INSERT_OVERRIDES, COMPOSER_COMMAND_MANIFEST, COMPOSER_COMMAND_VARIANTS, CONNECTOR_LIMIT, CONNECTOR_LIMIT_MESSAGE, CONNECTOR_PAIR_LINK_PREFIX, CONNECTOR_PAIR_LINK_VERSION, CONNECTOR_PAIR_MACHINE_LABEL_MAX, CONNECTOR_PAIR_SCHEME, CONNECT_CLOSE_CODES, CONNECT_PROTOCOL_VERSION, CONTEXT_LAYER_KINDS, CONTEXT_PREVIEW_HARNESSES, CONVERSATION_PAGE_DEFAULT_LIMIT, CONVERSATION_PAGE_MAX_LIMIT, CONVERSATION_PAYLOAD_BUDGET_BYTES, CONVERSATION_WINDOW_MAX_BYTES, CONVERSATION_WINDOW_MAX_ROWS, ChannelPermissionRequestSnapshot, ChannelReplyArtifactRef, ChannelReplyKind, ChatMessage, ClaudeChannelPermissionBehavior, CompactBoundary, ContextEditableLayerRecord, ContextHarnessPreviews, ContextLayerDraft, ContextLayerKind, ContextLayerSaveRequest, ContextLayerSaveResponse, ContextLayerTarget, ContextLayersResponse, ContextPreviewDiagnostic, ContextPreviewHarness, ContextPreviewRequest, ContextPreviewResponse, ContextProjectSummary, ContextSyncRequest, ContextSyncResponse, ContextSyncTarget, ContextUsage, ContextWorkspaceSummary, ConversationCompactingChangedEvent, ConversationCostSummary, ConversationCreatedEvent, ConversationEvent, ConversationFilter, ConversationMovedEvent, ConversationPermissionChangedEvent, ConversationPullRequests, ConversationPullRequestsChangedEvent, ConversationResponse, ConversationResume, ConversationSchedulesChangedEvent, ConversationTitleChangedEvent, ConversationWindow, CostEventRecordedEvent, DEFAULT_EFFORT, DEFAULT_MAX_MEMORY_OBSERVATIONS_PER_ISSUE, DEFAULT_MAX_TURN_DIFF_SUMMARIES_PER_AGENT, DEFAULT_PHONE_NOTIFICATION_PREFERENCES, DashboardLifecycleCompletedEvent, DashboardLifecycleFailedEvent, DashboardLifecycleStartedEvent, DashboardSnapshot, DeepWipeRpc, DeployStalenessSnapshot, DerivedBranchState, DerivedIssueState, DerivedPrOutsidePipeline, DerivedPrState, DerivedWorkStart, DirectoryApprovalState, DirectoryApprovalView, DirectoryClientState, DirectoryEntry, DirectoryEntryKind, DirectoryEntryLocation, DirectoryEntrySource, DirectoryEntryState, DirectoryJoinState, DirectoryJoinView, DirectoryMachineView, DirectoryPause, DirectoryPauseBy, DirectoryPlan, DirectoryProviderError, DirectoryResponse, DirectoryScope, DirectoryTranscriptRef, DiscoveredSessionSnapshot, DomainEvent, EDITORS, EFFORT_LEVELS, ENVIRONMENT_PROTOCOL_VERSION, EditorIdSchema, EffortLevelSchema, EmbedProgressEvent, EmbedProgressSnapshot, EmbedSessionsRpc, EnrichCompleteEvent, EnrichProgressEvent, EnrichProgressSnapshot, EnrichSessionsRpc, EnrichStatsSnapshot, EnvironmentCapabilities, EnvironmentDescriptor, EnvironmentId, ExtractionProviderConfig, ExtractionProviderTarget, FLEET_BINARY_ORDER, FLEET_UPDATE_STILL_WAITING_MS, FREE_MACHINE_LIMIT_MESSAGE, FeatureNode, FeatureRegistryEntry, FeatureRegistryStatus, FleetComponentStatus, FleetInstallMode, FleetJobPhase, FleetProjectRow, FleetProjectsResponse, FleetUpdateJobSchema, FleetUpdateMode, FlywheelAgent, FlywheelAgentStatus, FlywheelAgentSummary, FlywheelBugRateCriterion, FlywheelConversationSummary, FlywheelDerivedStatus, FlywheelEffort, FlywheelFreshness, FlywheelHarness, FlywheelHeadline, FlywheelHttpUrl, FlywheelInFlightRow, FlywheelJournalSummary, FlywheelLastTick, FlywheelOrchestrator, FlywheelOrderBookSummary, FlywheelOrders, FlywheelP0Criterion, FlywheelParkedItem, FlywheelPipelineItem, FlywheelPipelineStatus, FlywheelPipelineVerb, FlywheelPolicies, FlywheelRunId, FlywheelRunState, FlywheelScope, FlywheelStats, FlywheelStatsCriterionStatus, FlywheelStatsTrend, FlywheelStatsWindow, FlywheelStatus, FlywheelSubstrateBug, FlywheelSubstrateBugRow, FlywheelSubstrateBugStatus, FlywheelSubstrateSeverity, FlywheelSuggestion, FlywheelSuggestionAction, FlywheelSuggestionPriority, FlywheelSystemStatus, GITHUB_QUOTA_BUCKETS, GITHUB_QUOTA_CALLERS, GITHUB_QUOTA_POOLS, GetAvailableBrowsersRpc, GetAvailableEditorsRpc, GetConversationCostByWorkspaceRpc, GetConversationCostRpc, GetConversationStatsRpc, GetDiscoveredSessionRpc, GetSessionsFeedFacetsRpc, GetSnapshotRpc, GitHubQuotaBucket, GitHubQuotaCaller, GitHubQuotaCallerUsage, GitHubQuotaChangedEvent, GitHubQuotaPause, GitHubQuotaPool, GitHubQuotaSample, GitHubQuotaSnapshot, GitHubQuotaUsage, GitHubRateLimitKind, GlobalContextLayerRecord, GlobalContextLayerTarget, HARNESS_CAPABILITY_KEYS, HOOK_INVENTORY, HealthReason, HealthState, HostHealthMetrics, HostPlatform, HygieneFinding, HygienePullRequest, HygieneReport, INBOX_BODY_MAX_BYTES, INBOX_HOLD_MS, INITIAL_READ_MODEL_STATE, ISSUE_ATTENTIONS, ISSUE_STATES, ISSUE_STATE_PRECEDENCE, InboundMachineView, IssueAttention, IssueId, IssueState, IssueStateChangedEvent, IssueStatusChangedEvent, IssueTransitionedEvent, IssuesDeltaEvent, IssuesSnapshotEvent, IssuesUpdatedEvent, KIMI_CODE_BEHAVIOR, KIMI_CODE_CAPABILITIES, KNOWN_HARNESSES, LANE_STARTING_GRACE_MS, LINK_PROTOCOL_VERSION, LegacySystemHealthSummary, LegacyWebhookRelaySummary, LinearMcpAuthCallbackRelayedEvent, LinearMcpAuthHealthyEvent, LinearMcpAuthNotifiedEvent, LinearMcpAuthRequiredEvent, LinkAccess, LinkIncident, LinkRouteStatus, LinkRouteView, LinkState, ListDiscoveredSessionsRpc, ListSessionsFeedRpc, LoadSample, MAX_CHANNEL_REPLY_ARTIFACT_LABEL_LENGTH, MAX_CHANNEL_REPLY_ARTIFACT_REFS, MAX_CHANNEL_REPLY_ARTIFACT_URI_LENGTH, MAX_CHANNEL_REPLY_SUMMARY_LENGTH, MEMBERSHIP_UNAVAILABLE_REASONS, MUSE_BEHAVIOR, MUSE_CAPABILITIES, MachineLinkView, MachinePlacementMode, MachineProject, MachineVersionsReportSchema, MachinesResponse, MemoryAgentRole, MemoryHealthChangedEvent, MemoryIdentity, MemoryObservation, MemoryObservationCreatedEvent, MemoryResetMarkerCreatedEvent, MemoryRollupTriggeredEvent, MemoryStatus, MemoryStatusPhase, MemoryStatusUpdatedEvent, MemoryTokenUsage, MergeReadyEvent, ModelOrigin, ModelOriginEntry, NON_ESSENTIAL_GITHUB_CALLERS, NO_DIRECT_PATH_MESSAGE, OHMYPI_BEHAVIOR, OHMYPI_CAPABILITIES, OPENCODE_BEHAVIOR, OPENCODE_CAPABILITIES, OVERDECK_AGENT_PROTOCOL_VERSION, OVERDECK_DASHBOARD_PROTOCOL_VERSION, OpenInBrowserInput, OpenInEditorInput, OperatorInterventionEvent, OrderBook, OrderBookIndexEntry, OrderBookItem, OrderBookLane, OrderBookPosture, OrderBookSettings, OrderBookStatus, PHONE_APP_SCHEME, PHONE_NOTIFICATION_CATEGORIES, PHONE_PAIR_CODE_RE, PHONE_PAIR_ENVIRONMENT_ID_RE, PHONE_PAIR_LINK_PREFIX, PHONE_PAIR_LINK_VERSION, PHONE_PAIR_MACHINE_KEY_RE, PIPELINE_MEMBERSHIP_LOADING_CODE, PRIME_AGENT_BEHAVIOR, PRIME_AGENT_CAPABILITIES, PUSH_PLAINTEXT_MAX_BYTES, PUSH_RATE_PER_MINUTE, PUSH_SEALED_MAX_CHARS, PanRpcError, PanRpcGroup, PendingTurn, PipelineReviewCompletedEvent, PipelineReviewStartedEvent, PipelineTestCompletedEvent, PipelineTestStartedEvent, PipelineVerificationFailedEvent, PipelineVerificationStartedEvent, PlacementAnswer, PlacementRejection, PlanItemStatusChangedEvent, PlanItemsUnblockedEvent, PlanSubitemStatusChangedEvent, PlanningFailedEvent, PlanningStartedEvent, PlanningSyncEvent, PrChecksState, PrReviewState, ProjectCiHeadObservedEvent, ProjectCiSnapshot, ProjectCiSuite, ProjectCiSuiteObservedEvent, ProjectContextLayerRecord, ProjectContextLayerTarget, ProjectDeployChangedEvent, ProjectDeployPhase, ProjectDeploySnapshot, ProjectSessionTree, ProposedPlan, PullRequestKey, PullRequestLink, PullRequestLinkListing, PullRequestLinkSource, PullRequestLinkedConversation, PullRequestSnapshot, PullRequestState, RELAY_CAP_MESSAGE, RELAY_MONTHLY_CAP_BYTES, RESERVED_COLOR_THEME_IDS, RESUME_OPEN_IDS_MAX, ROUTE_KINDS, RagDecision, RagDecisionSource, ReadFileAtPathInput, ReadFileAtPathResult, ReadFileAtPathRpc, ReadWorkspaceFileInput, ReadWorkspaceFileResult, ReadWorkspaceFileRpc, RelayStatusView, ReplayEventsResult, ReplayEventsRpc, ReplayTooFarBehind, ResetMarker, ResetMarkerScope, ResizeTerminalRpc, ResolveFilePathExistsInput, ResolveFilePathExistsResult, ResolveFilePathExistsRpc, ResourceStats, ResourcesUpdatedEvent, RestartGateChangedEvent, RestartGateKind, RestartGateOutcome, RestartGateRequest, RestartGateSnapshot, RestartHold, ReviewApprovedEvent, ReviewCoordinatorDiedEvent, ReviewCoordinatorStartedEvent, ReviewReviewerCompletedEvent, ReviewReviewerStartedEvent, ReviewSpecialistTimedOutEvent, ReviewVerdictDispatchedEvent, ReviewVerdictRejectedEvent, ReviewVerdictRestoreBlockedEvent, ReviewerRoundMetadata, ReviewerRoundSummary, Role, RouteKind, RouteSource, SCHEDULE_PRESET_DAYS, SHARED_CHANNELS, SHARED_PROMPT_MAX_CHARS, SHARED_SCOPE_KINDS, SHARED_WIRE_VERSION, SHARE_MAX_ENVELOPE_CHARS, SHARE_MAX_INBOUND_ENVELOPE_CHARS, SHARE_MAX_MESSAGE_CHARS, SINGLETON_AGENT_IDS, SSH_HELPER_PROTOCOL, SSH_MACHINE_ERROR_CODES, ScanCompleteEvent, ScanConversationsRpc, ScanProgressEvent, ScanProgressSnapshot, ScanResult, ScanStartedEvent, ScopedAgentRef, ScopedConversationRef, ScopedIssueRef, ScopedProjectRef, ScopedRef, ScopedTerminalRef, SearchConversationsRpc, SendTerminalInputRpc, SeqTracker, SequenceNumber, ServiceHealthSnapshot, ServiceHealthStatus, SessionNode, SessionNodePresence, SessionNodeType, SessionTreeDelta, SessionsFeedFacetsSnapshot, SessionsFeedRowSnapshot, SessionsFeedSource, ShadowInferenceUpdateEvent, SharedChannelReader, ShellOpenInBrowserRpc, ShellOpenInEditorRpc, SpecialistCompletedEvent, SpecialistFailedEvent, SpecialistLifecycle, SpecialistStartedEvent, SshForwardState, SshLaunch, SshLinkInfo, SshMachineErrorCode, SshTestResult, StartAgentRpc, StartPlanningRpc, SubagentHumanInput, SubagentSummary, SubscribeAgentOutputRpc, SubscribeConversationMessagesRpc, SubscribeDomainEventsRpc, SubscribeIssueEventsRpc, SubscribeProjectSessionTreeRpc, SubscribeTerminalRpc, SubstrateBugFiledEvent, SweepEscalatedEvent, SweepRecommendationEvent, SweepScanEvent, SystemHealthConsumer, SystemHealthSeverityChangedEvent, SystemHealthSnapshot, SystemHeartbeatEvent, TELEMETRY_CLI_VERBS, TELEMETRY_EVENT_CATALOG, TELEMETRY_EVENT_NAMES, TELEMETRY_INSTALL_KINDS, TELEMETRY_PROPERTY_DOMAINS, TERMINAL_BACKEND_NAMES, TOOL_BODY_INLINE_MAX_BYTES, TOOL_BODY_PREVIEW_CHARS, TerminalCloseRpc, TerminalOpenRpc, TerminalOutput, TerminalResizeRpc, TerminalWriteRpc, TestPassedEvent, ThinkingState, TickMarker, TickMarkerPhase, TurnDiffFileChange, TurnDiffSummary, TurnEndAssessment, WINDOW_PINNED_OPEN_TOOLS_MAX, WIRED_HOOK_INVENTORY, WIRED_HOOK_NAMES, WS_METHODS, WaitingReason, WaitingState, WorkCompletedEvent, WorkLogEntry, WorkspaceAbortedEvent, WorkspaceArtifactsResponse, WorkspaceContextLayerRecord, WorkspaceContextLayerTarget, WorkspaceCreatedEvent, WorkspaceDeletedEvent, WorkspaceDestroyedEvent, WorkspaceWipeStartedEvent, WriteFileAtPathInput, WriteFileAtPathResult, WriteFileAtPathRpc, applyEvent, applyEvents, applyIssueDelta, bucketQuotaPoints, bucketQuotaRemaining, bucketRecoveryMs, bucketRelayBytes, bucketRequestStatus, buildConnectorPairLink, buildPhonePairLink, builtinFor, canonicalPullRequestUrl, clientRouteOf, companionTerminalKindFor, compareEffort, compareFleetBinaries, compareIssueIds, compareTimelineKeys, createIssueDelta, decodeEnvelope, decodeFlywheelDerivedStatus, decodeFlywheelStats, decodeTimelineCursor, deriveProjectCi, effectiveTerminalPalette, encodeFlywheelStats, encodeSharedMessage, encodeTimelineCursor, formatMachineLoad, formatMachineProfile, getHarness, getHarnessBehavior, getMaxMemoryObservationsPerIssue, getMaxTurnDiffSummariesPerAgent, getRuntimeBehavior, hasToolResult, indexPanesByAgentKey, isAgentRole, isAgentSessionName, isChannelReplyKind, isConfiguredPullRequestRepo, isEffortLevel, isIssueAttention, isIssueState, isLegacyPiHarnessName, isProtocolCompatible, isSingletonConversation, isTerminalBackendName, isTerminalTurnDiffSummaryStatus, laneActivityOf, linkedConversationName, negotiateHello, normalizeChannelReplyPayload, normalizeColorTheme, normalizeHarnessName, notificationAllowed, omitTurnDiffSummariesForAgent, overdeckInstallCommand, paneAgentKey, parseConnectorPairLink, parseLinkedConversationName, parsePhoneNotificationPreferences, parsePhonePairLink, parsePullRequestRef, parseTrackerIssueUrl, presenceForPaneState, presetToCron, projectLegacySystemHealthSummary, readDraftPayload, readableForeground, repoFromRemoteUrl, resolveEffectivePullRequest, resolveTrackerIssueId, sharedPromptRefusal, slugifyThemeId, syncSnapshot, timelineKeyOfMessage, timelineKeyOfWork, toOpaqueHex, toSharedMessage, trimMemoryObservations, trimTurnDiffSummaries, withPaneLivenessAlias };
|
|
18659
20146
|
|
|
18660
20147
|
//# sourceMappingURL=index.mjs.map
|