@overdeck/contracts 0.73.0 → 0.74.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 +978 -24
- package/dist/index.d.ts +933 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +933 -25
- 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,14 @@ 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"
|
|
6733
6780
|
];
|
|
6734
6781
|
const TELEMETRY_CLI_VERBS = [
|
|
6735
6782
|
"abort",
|
|
@@ -6802,6 +6849,27 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6802
6849
|
],
|
|
6803
6850
|
auto_merge_variant: ["segmented", "badge"],
|
|
6804
6851
|
boolean: [false, true],
|
|
6852
|
+
channel_error_class: [
|
|
6853
|
+
"none",
|
|
6854
|
+
"unreachable",
|
|
6855
|
+
"identity_refused",
|
|
6856
|
+
"unknown_peer",
|
|
6857
|
+
"unsupported",
|
|
6858
|
+
"no_relay_plan",
|
|
6859
|
+
"descriptor_failed",
|
|
6860
|
+
"wrong_machine",
|
|
6861
|
+
"heartbeat_failed",
|
|
6862
|
+
"revoked"
|
|
6863
|
+
],
|
|
6864
|
+
channel_route: [
|
|
6865
|
+
"lan",
|
|
6866
|
+
"tailnet",
|
|
6867
|
+
"ssh",
|
|
6868
|
+
"public",
|
|
6869
|
+
"direct",
|
|
6870
|
+
"relay",
|
|
6871
|
+
"stored"
|
|
6872
|
+
],
|
|
6805
6873
|
cli_verb: TELEMETRY_CLI_VERBS,
|
|
6806
6874
|
close_out_variant: ["card", "inspector"],
|
|
6807
6875
|
count_bucket: [
|
|
@@ -6875,6 +6943,27 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6875
6943
|
"muse",
|
|
6876
6944
|
"prime-agent"
|
|
6877
6945
|
],
|
|
6946
|
+
link_failure_reason: [
|
|
6947
|
+
"bad_pairing_url",
|
|
6948
|
+
"unreachable",
|
|
6949
|
+
"pairing_refused",
|
|
6950
|
+
"unsupported",
|
|
6951
|
+
"identity_mismatch",
|
|
6952
|
+
"exchange_failed",
|
|
6953
|
+
"grant_refused",
|
|
6954
|
+
"offline",
|
|
6955
|
+
"approval_refused",
|
|
6956
|
+
"approval_failed",
|
|
6957
|
+
"other"
|
|
6958
|
+
],
|
|
6959
|
+
link_method: [
|
|
6960
|
+
"pairing_code",
|
|
6961
|
+
"ssh",
|
|
6962
|
+
"fly",
|
|
6963
|
+
"directory_approval",
|
|
6964
|
+
"other"
|
|
6965
|
+
],
|
|
6966
|
+
link_side: ["requester", "approver"],
|
|
6878
6967
|
merge_kind: ["pipeline"],
|
|
6879
6968
|
model_family: [
|
|
6880
6969
|
"claude",
|
|
@@ -6886,6 +6975,7 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6886
6975
|
"mimo",
|
|
6887
6976
|
"other"
|
|
6888
6977
|
],
|
|
6978
|
+
phone_removed_by: ["operator", "phone"],
|
|
6889
6979
|
pipeline_stage: [
|
|
6890
6980
|
"work_done",
|
|
6891
6981
|
"review_passed",
|
|
@@ -6916,7 +7006,14 @@ const TELEMETRY_PROPERTY_DOMAINS = {
|
|
|
6916
7006
|
"2500+",
|
|
6917
7007
|
"unknown"
|
|
6918
7008
|
],
|
|
6919
|
-
rate_limit_kind: ["primary", "secondary"]
|
|
7009
|
+
rate_limit_kind: ["primary", "secondary"],
|
|
7010
|
+
relay_bytes_bucket: [
|
|
7011
|
+
"under_1mb",
|
|
7012
|
+
"1mb-9mb",
|
|
7013
|
+
"10mb-99mb",
|
|
7014
|
+
"100mb-999mb",
|
|
7015
|
+
"1gb+"
|
|
7016
|
+
]
|
|
6920
7017
|
};
|
|
6921
7018
|
const TELEMETRY_EVENT_CATALOG = {
|
|
6922
7019
|
dashboard_tab_viewed: { tab: "dashboard_tab" },
|
|
@@ -6997,7 +7094,25 @@ const TELEMETRY_EVENT_CATALOG = {
|
|
|
6997
7094
|
project_count: "count_bucket",
|
|
6998
7095
|
active_agent_count: "count_bucket",
|
|
6999
7096
|
dashboard_running: "boolean"
|
|
7000
|
-
}
|
|
7097
|
+
},
|
|
7098
|
+
machine_link_started: { method: "link_method" },
|
|
7099
|
+
machine_link_approved: {
|
|
7100
|
+
method: "link_method",
|
|
7101
|
+
side: "link_side"
|
|
7102
|
+
},
|
|
7103
|
+
machine_link_failed: {
|
|
7104
|
+
method: "link_method",
|
|
7105
|
+
side: "link_side",
|
|
7106
|
+
reason: "link_failure_reason"
|
|
7107
|
+
},
|
|
7108
|
+
phone_paired: { replaced_previous: "boolean" },
|
|
7109
|
+
phone_removed: { by: "phone_removed_by" },
|
|
7110
|
+
anywhere_channel_opened: {
|
|
7111
|
+
route: "channel_route",
|
|
7112
|
+
ok: "boolean",
|
|
7113
|
+
error_class: "channel_error_class"
|
|
7114
|
+
},
|
|
7115
|
+
relay_usage_sampled: { bytes: "relay_bytes_bucket" }
|
|
7001
7116
|
};
|
|
7002
7117
|
/** PAN-4264: GitHub quota points as a coarse bucket (raw counts are never sent). */
|
|
7003
7118
|
function bucketQuotaPoints(points) {
|
|
@@ -7019,6 +7134,14 @@ function bucketQuotaRemaining(remaining) {
|
|
|
7019
7134
|
if (remaining < 2500) return "1000-2499";
|
|
7020
7135
|
return "2500+";
|
|
7021
7136
|
}
|
|
7137
|
+
/** PAN-5016: relayed bytes as a coarse bucket (raw byte counts are never sent). */
|
|
7138
|
+
function bucketRelayBytes(bytes) {
|
|
7139
|
+
if (!(bytes >= 1e6)) return "under_1mb";
|
|
7140
|
+
if (bytes < 1e7) return "1mb-9mb";
|
|
7141
|
+
if (bytes < 1e8) return "10mb-99mb";
|
|
7142
|
+
if (bytes < 1e9) return "100mb-999mb";
|
|
7143
|
+
return "1gb+";
|
|
7144
|
+
}
|
|
7022
7145
|
//#endregion
|
|
7023
7146
|
//#region src/composer-commands.generated.ts
|
|
7024
7147
|
const COMPOSER_COMMAND_MANIFEST = [
|
|
@@ -7528,7 +7651,7 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
7528
7651
|
"status"
|
|
7529
7652
|
],
|
|
7530
7653
|
"display": "/pan skills pack sageox status",
|
|
7531
|
-
"description": "Show, per project, the sageox pack state and the
|
|
7654
|
+
"description": "Show, per project, the sageox pack state, the upload state and the link state",
|
|
7532
7655
|
"args": [],
|
|
7533
7656
|
"options": [{
|
|
7534
7657
|
"flags": "--project <key>",
|
|
@@ -7568,6 +7691,51 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
7568
7691
|
"aliases": [],
|
|
7569
7692
|
"category": "Core"
|
|
7570
7693
|
},
|
|
7694
|
+
{
|
|
7695
|
+
"id": "pan-skills-pack-sageox-link",
|
|
7696
|
+
"path": [
|
|
7697
|
+
"skills",
|
|
7698
|
+
"pack",
|
|
7699
|
+
"sageox",
|
|
7700
|
+
"link"
|
|
7701
|
+
],
|
|
7702
|
+
"display": "/pan skills pack sageox link",
|
|
7703
|
+
"description": "Run ox init in a throwaway worktree and store the project's SageOx link files (changes no checkout)",
|
|
7704
|
+
"args": [],
|
|
7705
|
+
"options": [{
|
|
7706
|
+
"flags": "--project <key>",
|
|
7707
|
+
"description": "Project key",
|
|
7708
|
+
"required": true,
|
|
7709
|
+
"valueHint": "key"
|
|
7710
|
+
}, {
|
|
7711
|
+
"flags": "--team <team>",
|
|
7712
|
+
"description": "SageOx team (name, slug or id) passed to ox init",
|
|
7713
|
+
"required": true,
|
|
7714
|
+
"valueHint": "team"
|
|
7715
|
+
}],
|
|
7716
|
+
"aliases": [],
|
|
7717
|
+
"category": "Core"
|
|
7718
|
+
},
|
|
7719
|
+
{
|
|
7720
|
+
"id": "pan-skills-pack-sageox-commit",
|
|
7721
|
+
"path": [
|
|
7722
|
+
"skills",
|
|
7723
|
+
"pack",
|
|
7724
|
+
"sageox",
|
|
7725
|
+
"commit"
|
|
7726
|
+
],
|
|
7727
|
+
"display": "/pan skills pack sageox commit",
|
|
7728
|
+
"description": "Open one PR that adds the project's stored SageOx link files as .sageox/, then record sageox_binding: committed",
|
|
7729
|
+
"args": [],
|
|
7730
|
+
"options": [{
|
|
7731
|
+
"flags": "--project <key>",
|
|
7732
|
+
"description": "Project key",
|
|
7733
|
+
"required": true,
|
|
7734
|
+
"valueHint": "key"
|
|
7735
|
+
}],
|
|
7736
|
+
"aliases": [],
|
|
7737
|
+
"category": "Core"
|
|
7738
|
+
},
|
|
7571
7739
|
{
|
|
7572
7740
|
"id": "pan-skills-deft",
|
|
7573
7741
|
"path": ["skills", "deft"],
|
|
@@ -8412,7 +8580,251 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
8412
8580
|
"id": "pan-mcp-serve",
|
|
8413
8581
|
"path": ["mcp", "serve"],
|
|
8414
8582
|
"display": "/pan mcp serve",
|
|
8415
|
-
"description": "Serve Overdeck as an MCP server over stdio (token from OVERDECK_MCP_TOKEN; see configuration/mcp.mdx)",
|
|
8583
|
+
"description": "Serve Overdeck as an MCP server over stdio (token from OVERDECK_MCP_TOKEN or OVERDECK_MCP_TOKEN_FILE; see configuration/mcp.mdx)",
|
|
8584
|
+
"args": [],
|
|
8585
|
+
"options": [],
|
|
8586
|
+
"aliases": [],
|
|
8587
|
+
"category": "CLI"
|
|
8588
|
+
},
|
|
8589
|
+
{
|
|
8590
|
+
"id": "pan-mcp-oauth",
|
|
8591
|
+
"path": ["mcp", "oauth"],
|
|
8592
|
+
"display": "/pan mcp oauth",
|
|
8593
|
+
"description": "Manage OAuth sign-ins to /mcp (see configuration/mcp.mdx)",
|
|
8594
|
+
"args": [],
|
|
8595
|
+
"options": [],
|
|
8596
|
+
"aliases": [],
|
|
8597
|
+
"category": "CLI"
|
|
8598
|
+
},
|
|
8599
|
+
{
|
|
8600
|
+
"id": "pan-mcp-oauth-issue",
|
|
8601
|
+
"path": [
|
|
8602
|
+
"mcp",
|
|
8603
|
+
"oauth",
|
|
8604
|
+
"issue"
|
|
8605
|
+
],
|
|
8606
|
+
"display": "/pan mcp oauth issue",
|
|
8607
|
+
"description": "Create a sign-in for a client that cannot open a browser; prints its tokens once",
|
|
8608
|
+
"args": [],
|
|
8609
|
+
"options": [{
|
|
8610
|
+
"flags": "--name <name>",
|
|
8611
|
+
"description": "Name shown in the sign-in list",
|
|
8612
|
+
"required": true,
|
|
8613
|
+
"valueHint": "name"
|
|
8614
|
+
}, {
|
|
8615
|
+
"flags": "--level <level>",
|
|
8616
|
+
"description": "Access level: read, message, operate or approve",
|
|
8617
|
+
"required": true,
|
|
8618
|
+
"valueHint": "level"
|
|
8619
|
+
}],
|
|
8620
|
+
"aliases": [],
|
|
8621
|
+
"category": "CLI"
|
|
8622
|
+
},
|
|
8623
|
+
{
|
|
8624
|
+
"id": "pan-mcp-oauth-list",
|
|
8625
|
+
"path": [
|
|
8626
|
+
"mcp",
|
|
8627
|
+
"oauth",
|
|
8628
|
+
"list"
|
|
8629
|
+
],
|
|
8630
|
+
"display": "/pan mcp oauth list",
|
|
8631
|
+
"description": "List active OAuth sign-ins",
|
|
8632
|
+
"args": [],
|
|
8633
|
+
"options": [],
|
|
8634
|
+
"aliases": [],
|
|
8635
|
+
"category": "CLI"
|
|
8636
|
+
},
|
|
8637
|
+
{
|
|
8638
|
+
"id": "pan-mcp-oauth-revoke",
|
|
8639
|
+
"path": [
|
|
8640
|
+
"mcp",
|
|
8641
|
+
"oauth",
|
|
8642
|
+
"revoke"
|
|
8643
|
+
],
|
|
8644
|
+
"display": "/pan mcp oauth revoke",
|
|
8645
|
+
"description": "End one OAuth sign-in",
|
|
8646
|
+
"args": [{
|
|
8647
|
+
"name": "familyId",
|
|
8648
|
+
"required": true,
|
|
8649
|
+
"variadic": false
|
|
8650
|
+
}],
|
|
8651
|
+
"options": [],
|
|
8652
|
+
"aliases": [],
|
|
8653
|
+
"category": "CLI"
|
|
8654
|
+
},
|
|
8655
|
+
{
|
|
8656
|
+
"id": "pan-mcp-oauth-pending",
|
|
8657
|
+
"path": [
|
|
8658
|
+
"mcp",
|
|
8659
|
+
"oauth",
|
|
8660
|
+
"pending"
|
|
8661
|
+
],
|
|
8662
|
+
"display": "/pan mcp oauth pending",
|
|
8663
|
+
"description": "List sign-ins waiting for your approval",
|
|
8664
|
+
"args": [],
|
|
8665
|
+
"options": [],
|
|
8666
|
+
"aliases": [],
|
|
8667
|
+
"category": "CLI"
|
|
8668
|
+
},
|
|
8669
|
+
{
|
|
8670
|
+
"id": "pan-mcp-oauth-approve",
|
|
8671
|
+
"path": [
|
|
8672
|
+
"mcp",
|
|
8673
|
+
"oauth",
|
|
8674
|
+
"approve"
|
|
8675
|
+
],
|
|
8676
|
+
"display": "/pan mcp oauth approve",
|
|
8677
|
+
"description": "Approve the waiting sign-in that shows this approval code",
|
|
8678
|
+
"args": [{
|
|
8679
|
+
"name": "code",
|
|
8680
|
+
"required": true,
|
|
8681
|
+
"variadic": false
|
|
8682
|
+
}],
|
|
8683
|
+
"options": [{
|
|
8684
|
+
"flags": "--level <level>",
|
|
8685
|
+
"description": "Access level: read, message, operate or approve",
|
|
8686
|
+
"required": true,
|
|
8687
|
+
"valueHint": "level"
|
|
8688
|
+
}],
|
|
8689
|
+
"aliases": [],
|
|
8690
|
+
"category": "CLI"
|
|
8691
|
+
},
|
|
8692
|
+
{
|
|
8693
|
+
"id": "pan-mcp-oauth-deny",
|
|
8694
|
+
"path": [
|
|
8695
|
+
"mcp",
|
|
8696
|
+
"oauth",
|
|
8697
|
+
"deny"
|
|
8698
|
+
],
|
|
8699
|
+
"display": "/pan mcp oauth deny",
|
|
8700
|
+
"description": "Deny the waiting sign-in that shows this approval code",
|
|
8701
|
+
"args": [{
|
|
8702
|
+
"name": "code",
|
|
8703
|
+
"required": true,
|
|
8704
|
+
"variadic": false
|
|
8705
|
+
}],
|
|
8706
|
+
"options": [],
|
|
8707
|
+
"aliases": [],
|
|
8708
|
+
"category": "CLI"
|
|
8709
|
+
},
|
|
8710
|
+
{
|
|
8711
|
+
"id": "pan-mcp-connector",
|
|
8712
|
+
"path": ["mcp", "connector"],
|
|
8713
|
+
"display": "/pan mcp connector",
|
|
8714
|
+
"description": "Run an Overdeck connector for a self-hosted bot (see configuration/mcp.mdx)",
|
|
8715
|
+
"args": [],
|
|
8716
|
+
"options": [],
|
|
8717
|
+
"aliases": [],
|
|
8718
|
+
"category": "CLI"
|
|
8719
|
+
},
|
|
8720
|
+
{
|
|
8721
|
+
"id": "pan-mcp-connector-login",
|
|
8722
|
+
"path": [
|
|
8723
|
+
"mcp",
|
|
8724
|
+
"connector",
|
|
8725
|
+
"login"
|
|
8726
|
+
],
|
|
8727
|
+
"display": "/pan mcp connector login",
|
|
8728
|
+
"description": "Sign this connector in to overdeck.ai with the device flow",
|
|
8729
|
+
"args": [],
|
|
8730
|
+
"options": [{
|
|
8731
|
+
"flags": "--account-url <url>",
|
|
8732
|
+
"description": "overdeck.ai account service URL",
|
|
8733
|
+
"required": true,
|
|
8734
|
+
"valueHint": "url"
|
|
8735
|
+
}, {
|
|
8736
|
+
"flags": "--directory-url <url>",
|
|
8737
|
+
"description": "overdeck.ai directory URL",
|
|
8738
|
+
"required": true,
|
|
8739
|
+
"valueHint": "url"
|
|
8740
|
+
}],
|
|
8741
|
+
"aliases": [],
|
|
8742
|
+
"category": "CLI"
|
|
8743
|
+
},
|
|
8744
|
+
{
|
|
8745
|
+
"id": "pan-mcp-connector-pair",
|
|
8746
|
+
"path": [
|
|
8747
|
+
"mcp",
|
|
8748
|
+
"connector",
|
|
8749
|
+
"pair"
|
|
8750
|
+
],
|
|
8751
|
+
"display": "/pan mcp connector pair",
|
|
8752
|
+
"description": "Pair with one Overdeck machine using the string from Connect a bot",
|
|
8753
|
+
"args": [{
|
|
8754
|
+
"name": "pairingString",
|
|
8755
|
+
"required": true,
|
|
8756
|
+
"variadic": false
|
|
8757
|
+
}],
|
|
8758
|
+
"options": [{
|
|
8759
|
+
"flags": "--label <name>",
|
|
8760
|
+
"description": "name this connector shows on the machine (default: host name)",
|
|
8761
|
+
"required": true,
|
|
8762
|
+
"valueHint": "name"
|
|
8763
|
+
}],
|
|
8764
|
+
"aliases": [],
|
|
8765
|
+
"category": "CLI"
|
|
8766
|
+
},
|
|
8767
|
+
{
|
|
8768
|
+
"id": "pan-mcp-connector-serve",
|
|
8769
|
+
"path": [
|
|
8770
|
+
"mcp",
|
|
8771
|
+
"connector",
|
|
8772
|
+
"serve"
|
|
8773
|
+
],
|
|
8774
|
+
"display": "/pan mcp connector serve",
|
|
8775
|
+
"description": "Serve the Overdeck MCP tools on 127.0.0.1 (or stdio) for the paired machine",
|
|
8776
|
+
"args": [],
|
|
8777
|
+
"options": [
|
|
8778
|
+
{
|
|
8779
|
+
"flags": "--port <port>",
|
|
8780
|
+
"description": "loopback port for http://127.0.0.1:<port>/mcp (default 7466)",
|
|
8781
|
+
"required": true,
|
|
8782
|
+
"valueHint": "port"
|
|
8783
|
+
},
|
|
8784
|
+
{
|
|
8785
|
+
"flags": "--stdio",
|
|
8786
|
+
"description": "serve one MCP session on stdin and stdout instead",
|
|
8787
|
+
"required": false,
|
|
8788
|
+
"valueHint": null
|
|
8789
|
+
},
|
|
8790
|
+
{
|
|
8791
|
+
"flags": "--label <name>",
|
|
8792
|
+
"description": "name this connector shows in the overdeck.ai directory (default: host name)",
|
|
8793
|
+
"required": true,
|
|
8794
|
+
"valueHint": "name"
|
|
8795
|
+
}
|
|
8796
|
+
],
|
|
8797
|
+
"aliases": [],
|
|
8798
|
+
"category": "CLI"
|
|
8799
|
+
},
|
|
8800
|
+
{
|
|
8801
|
+
"id": "pan-mcp-connector-status",
|
|
8802
|
+
"path": [
|
|
8803
|
+
"mcp",
|
|
8804
|
+
"connector",
|
|
8805
|
+
"status"
|
|
8806
|
+
],
|
|
8807
|
+
"display": "/pan mcp connector status",
|
|
8808
|
+
"description": "Show the signed-in account, the paired machine, its scopes and the live route",
|
|
8809
|
+
"args": [],
|
|
8810
|
+
"options": [{
|
|
8811
|
+
"flags": "--port <port>",
|
|
8812
|
+
"description": "port of the running serve (default 7466)",
|
|
8813
|
+
"required": true,
|
|
8814
|
+
"valueHint": "port"
|
|
8815
|
+
}],
|
|
8816
|
+
"aliases": [],
|
|
8817
|
+
"category": "CLI"
|
|
8818
|
+
},
|
|
8819
|
+
{
|
|
8820
|
+
"id": "pan-mcp-connector-logout",
|
|
8821
|
+
"path": [
|
|
8822
|
+
"mcp",
|
|
8823
|
+
"connector",
|
|
8824
|
+
"logout"
|
|
8825
|
+
],
|
|
8826
|
+
"display": "/pan mcp connector logout",
|
|
8827
|
+
"description": "Remove this connector from its machine and overdeck.ai, then delete its files",
|
|
8416
8828
|
"args": [],
|
|
8417
8829
|
"options": [],
|
|
8418
8830
|
"aliases": [],
|
|
@@ -11252,6 +11664,44 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
11252
11664
|
"aliases": [],
|
|
11253
11665
|
"category": "CLI"
|
|
11254
11666
|
},
|
|
11667
|
+
{
|
|
11668
|
+
"id": "pan-share",
|
|
11669
|
+
"path": ["share"],
|
|
11670
|
+
"display": "/pan share",
|
|
11671
|
+
"description": "Share a conversation by link: print the join link and join code (Shared Sessions)",
|
|
11672
|
+
"args": [{
|
|
11673
|
+
"name": "conversation",
|
|
11674
|
+
"required": true,
|
|
11675
|
+
"variadic": false
|
|
11676
|
+
}],
|
|
11677
|
+
"options": [{
|
|
11678
|
+
"flags": "--json",
|
|
11679
|
+
"description": "Print the share as JSON",
|
|
11680
|
+
"required": false,
|
|
11681
|
+
"valueHint": null
|
|
11682
|
+
}],
|
|
11683
|
+
"aliases": [],
|
|
11684
|
+
"category": "CLI"
|
|
11685
|
+
},
|
|
11686
|
+
{
|
|
11687
|
+
"id": "pan-join",
|
|
11688
|
+
"path": ["join"],
|
|
11689
|
+
"display": "/pan join",
|
|
11690
|
+
"description": "Join a shared conversation from a link or join code: signs in, starts Overdeck if needed, opens the lobby",
|
|
11691
|
+
"args": [{
|
|
11692
|
+
"name": "link-or-code",
|
|
11693
|
+
"required": true,
|
|
11694
|
+
"variadic": false
|
|
11695
|
+
}],
|
|
11696
|
+
"options": [{
|
|
11697
|
+
"flags": "--no-open",
|
|
11698
|
+
"description": "Print the shared-conversation URL instead of opening a browser",
|
|
11699
|
+
"required": false,
|
|
11700
|
+
"valueHint": null
|
|
11701
|
+
}],
|
|
11702
|
+
"aliases": [],
|
|
11703
|
+
"category": "CLI"
|
|
11704
|
+
},
|
|
11255
11705
|
{
|
|
11256
11706
|
"id": "pan-test",
|
|
11257
11707
|
"path": ["test"],
|
|
@@ -11756,6 +12206,12 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
11756
12206
|
"required": true,
|
|
11757
12207
|
"valueHint": "n"
|
|
11758
12208
|
},
|
|
12209
|
+
{
|
|
12210
|
+
"flags": "--facts",
|
|
12211
|
+
"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 }",
|
|
12212
|
+
"required": false,
|
|
12213
|
+
"valueHint": null
|
|
12214
|
+
},
|
|
11759
12215
|
{
|
|
11760
12216
|
"flags": "--json",
|
|
11761
12217
|
"description": "Output JSON",
|
|
@@ -16459,6 +16915,45 @@ const COMPOSER_COMMAND_MANIFEST = [
|
|
|
16459
16915
|
"aliases": [],
|
|
16460
16916
|
"category": "Core"
|
|
16461
16917
|
},
|
|
16918
|
+
{
|
|
16919
|
+
"id": "pan-restart-hold",
|
|
16920
|
+
"path": ["restart", "hold"],
|
|
16921
|
+
"display": "/pan restart hold",
|
|
16922
|
+
"description": "Hold every dashboard restart and reload until `pan restart release` (or --until expires)",
|
|
16923
|
+
"args": [],
|
|
16924
|
+
"options": [
|
|
16925
|
+
{
|
|
16926
|
+
"flags": "--reason <text>",
|
|
16927
|
+
"description": "Why restarts are held; every refused command prints it",
|
|
16928
|
+
"required": true,
|
|
16929
|
+
"valueHint": "text"
|
|
16930
|
+
},
|
|
16931
|
+
{
|
|
16932
|
+
"flags": "--until <when>",
|
|
16933
|
+
"description": "Lift the hold on its own: a duration (90m, 2h, 1d) or an ISO time",
|
|
16934
|
+
"required": true,
|
|
16935
|
+
"valueHint": "when"
|
|
16936
|
+
},
|
|
16937
|
+
{
|
|
16938
|
+
"flags": "--status",
|
|
16939
|
+
"description": "Show the current hold instead of setting one",
|
|
16940
|
+
"required": false,
|
|
16941
|
+
"valueHint": null
|
|
16942
|
+
}
|
|
16943
|
+
],
|
|
16944
|
+
"aliases": [],
|
|
16945
|
+
"category": "Core"
|
|
16946
|
+
},
|
|
16947
|
+
{
|
|
16948
|
+
"id": "pan-restart-release",
|
|
16949
|
+
"path": ["restart", "release"],
|
|
16950
|
+
"display": "/pan restart release",
|
|
16951
|
+
"description": "Release the restart hold so `pan reload` and `pan restart` run again",
|
|
16952
|
+
"args": [],
|
|
16953
|
+
"options": [],
|
|
16954
|
+
"aliases": [],
|
|
16955
|
+
"category": "Core"
|
|
16956
|
+
},
|
|
16462
16957
|
{
|
|
16463
16958
|
"id": "pan-project",
|
|
16464
16959
|
"path": ["project"],
|
|
@@ -17922,7 +18417,7 @@ const MachinePlacementMode = Schema.Literals(["auto", "on-request"]);
|
|
|
17922
18417
|
/** PAN-4651 FR-6: `CPU 3% · 41 GB · 2 agents` (unknown parts `n/a`); null without a sample. */
|
|
17923
18418
|
function formatMachineLoad(load) {
|
|
17924
18419
|
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`;
|
|
18420
|
+
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
18421
|
}
|
|
17927
18422
|
/** PAN-4651 FR-7: `tags: docker, linux · reserved`; null when there is neither. */
|
|
17928
18423
|
function formatMachineProfile(tags, placement) {
|
|
@@ -18021,7 +18516,11 @@ const MachinesResponse = Schema.Struct({
|
|
|
18021
18516
|
/** PAN-4651: this machine's own load sample, tags and placement mode. */
|
|
18022
18517
|
load: Schema.optional(Schema.NullOr(LoadSample)),
|
|
18023
18518
|
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
18024
|
-
placement: Schema.optional(MachinePlacementMode)
|
|
18519
|
+
placement: Schema.optional(MachinePlacementMode),
|
|
18520
|
+
/** PAN-4905: config.toml `[remote] enabled`; the Add a Fly machine dialog reads it before the click. */
|
|
18521
|
+
remoteEnabled: Schema.optional(Schema.Boolean),
|
|
18522
|
+
/** PAN-4905: config.toml as a display path (`~/.overdeck/config.toml`). */
|
|
18523
|
+
remoteConfigFile: Schema.optional(Schema.String)
|
|
18025
18524
|
}),
|
|
18026
18525
|
links: Schema.Array(MachineLinkView),
|
|
18027
18526
|
inbound: Schema.Array(InboundMachineView)
|
|
@@ -18070,7 +18569,11 @@ const EnvironmentCapabilities = Schema.Struct({
|
|
|
18070
18569
|
/** `/ws/*` upgrades require a credential (PAN-1166). */
|
|
18071
18570
|
terminalAuth: Schema.Boolean,
|
|
18072
18571
|
/** Secure machine links are accepted (PAN-4645). Absent on older servers ⇒ `unsupported`. */
|
|
18073
|
-
machineLinks: Schema.optional(Schema.Boolean)
|
|
18572
|
+
machineLinks: Schema.optional(Schema.Boolean),
|
|
18573
|
+
/** The phone app can pair and use this machine (PAN-4835). Absent on older servers ⇒ unsupported. */
|
|
18574
|
+
phoneApp: Schema.optional(Schema.Boolean),
|
|
18575
|
+
/** An Overdeck connector can pair with this machine (PAN-4927 W-CONN1). Absent on older servers ⇒ unsupported. */
|
|
18576
|
+
connector: Schema.optional(Schema.Boolean)
|
|
18074
18577
|
});
|
|
18075
18578
|
const EnvironmentDescriptor = Schema.Struct({
|
|
18076
18579
|
descriptorVersion: Schema.Literal(1),
|
|
@@ -18136,9 +18639,35 @@ const INBOX_BODY_MAX_BYTES = 262144;
|
|
|
18136
18639
|
const INBOX_HOLD_MS = 864e5;
|
|
18137
18640
|
/** How long an approval request stays live (D-2356-9). */
|
|
18138
18641
|
const APPROVAL_TTL_MS = 6e5;
|
|
18642
|
+
/** Phones (directory clients) one account may register (PAN-4823 D-2, NFR-3). Clients never count as machines. */
|
|
18643
|
+
const CLIENT_LIMIT = 5;
|
|
18644
|
+
/** PAN-4927 D-18: connectors are counted apart from phones. */
|
|
18645
|
+
const CONNECTOR_LIMIT = 10;
|
|
18646
|
+
/** Pushes the directory forwards per account per minute (PAN-4823 D-9). */
|
|
18647
|
+
const PUSH_RATE_PER_MINUTE = 30;
|
|
18648
|
+
/**
|
|
18649
|
+
* Longest `sealed` field of a `push` frame, in base64 characters. It keeps the APNs and FCM bodies
|
|
18650
|
+
* well under their 4 KB limits.
|
|
18651
|
+
*/
|
|
18652
|
+
const PUSH_SEALED_MAX_CHARS = 3072;
|
|
18653
|
+
/**
|
|
18654
|
+
* Largest plaintext a machine may seal into one push: `crypto_box_seal` adds 48 bytes and base64
|
|
18655
|
+
* grows by 4/3, so 2,256 bytes seal to exactly `PUSH_SEALED_MAX_CHARS` characters.
|
|
18656
|
+
*/
|
|
18657
|
+
const PUSH_PLAINTEXT_MAX_BYTES = 2256;
|
|
18658
|
+
/** Live Activity (PAN-4839, OD-1): the most either count may be. */
|
|
18659
|
+
const ACTIVITY_COUNT_MAX = 9999;
|
|
18660
|
+
/** A machine's report counts toward a phone's card this long; also the APNs `stale-date` offset. */
|
|
18661
|
+
const ACTIVITY_STALE_MS = 6e5;
|
|
18662
|
+
/** The directory re-pushes unchanged counts at most this often, so the stale date moves ahead. */
|
|
18663
|
+
const ACTIVITY_REFRESH_MS = 24e4;
|
|
18664
|
+
/** Live Activity pushes per account per minute, counted apart from alert pushes (NFR-1). */
|
|
18665
|
+
const ACTIVITY_PUSH_RATE_PER_MINUTE = 60;
|
|
18139
18666
|
const FREE_MACHINE_LIMIT_MESSAGE = "The free account includes 3 machines";
|
|
18140
18667
|
const NO_DIRECT_PATH_MESSAGE = "No direct path; install Tailscale or use the relay plan";
|
|
18141
18668
|
const RELAY_CAP_MESSAGE = "Relay allowance used; install Tailscale or add 50 GB";
|
|
18669
|
+
const CLIENT_LIMIT_MESSAGE = "This account already has 5 phones. Remove one in the app or on a machine.";
|
|
18670
|
+
const CONNECTOR_LIMIT_MESSAGE = "This account already has 10 Overdeck connectors. Remove one in Settings → Anywhere → Bots.";
|
|
18142
18671
|
/** WebSocket close codes the directory uses. */
|
|
18143
18672
|
const CONNECT_CLOSE_CODES = {
|
|
18144
18673
|
unauthorized: 4001,
|
|
@@ -18147,7 +18676,9 @@ const CONNECT_CLOSE_CODES = {
|
|
|
18147
18676
|
unsupportedProtocol: 4010,
|
|
18148
18677
|
/** Replaced by a newer socket for the same machine. */
|
|
18149
18678
|
replaced: 4011,
|
|
18150
|
-
forgotten: 4012
|
|
18679
|
+
forgotten: 4012,
|
|
18680
|
+
/** A sixth phone or an eleventh connector on one account (PAN-4823 D-2, PAN-4927 D-18). */
|
|
18681
|
+
clientLimit: 4013
|
|
18151
18682
|
};
|
|
18152
18683
|
//#endregion
|
|
18153
18684
|
//#region src/connect-view.ts
|
|
@@ -18237,6 +18768,120 @@ const DirectoryResponse = Schema.Struct({
|
|
|
18237
18768
|
relay: Schema.NullOr(RelayStatusView)
|
|
18238
18769
|
});
|
|
18239
18770
|
//#endregion
|
|
18771
|
+
//#region src/phone-pairing.ts
|
|
18772
|
+
/** The phone app's bundle id and private-use URI scheme (RFC 8252 §7.1). */
|
|
18773
|
+
const PHONE_APP_SCHEME = "ai.overdeck.app";
|
|
18774
|
+
const PHONE_PAIR_LINK_VERSION = 1;
|
|
18775
|
+
/** Everything before the fragment. Single slash after the colon. */
|
|
18776
|
+
const PHONE_PAIR_LINK_PREFIX = `${PHONE_APP_SCHEME}:/pair#`;
|
|
18777
|
+
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}$/;
|
|
18778
|
+
const PHONE_PAIR_MACHINE_KEY_RE = /^[0-9a-f]{64}$/;
|
|
18779
|
+
const PHONE_PAIR_CODE_RE = /^odp_[0-9a-f]{64}$/;
|
|
18780
|
+
/** `ai.overdeck.app:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>`; throws on a malformed input. */
|
|
18781
|
+
function buildPhonePairLink(input) {
|
|
18782
|
+
if (!PHONE_PAIR_ENVIRONMENT_ID_RE.test(input.environmentId)) throw new Error("environmentId must be a lowercase UUID v4");
|
|
18783
|
+
if (!PHONE_PAIR_MACHINE_KEY_RE.test(input.machineKeyHex)) throw new Error("machineKeyHex must be 64 lowercase hex characters");
|
|
18784
|
+
if (!PHONE_PAIR_CODE_RE.test(input.code)) throw new Error("code must be an odp_ pairing code");
|
|
18785
|
+
return `${PHONE_PAIR_LINK_PREFIX}v=1&e=${input.environmentId}&k=${input.machineKeyHex}&c=${input.code}`;
|
|
18786
|
+
}
|
|
18787
|
+
/** The inverse of `buildPhonePairLink`: the link's fields, or null unless every part is well formed. Surrounding whitespace is ignored. */
|
|
18788
|
+
function parsePhonePairLink(text) {
|
|
18789
|
+
const link = text.trim();
|
|
18790
|
+
if (!link.startsWith(PHONE_PAIR_LINK_PREFIX)) return null;
|
|
18791
|
+
const params = new URLSearchParams(link.slice(PHONE_PAIR_LINK_PREFIX.length));
|
|
18792
|
+
const environmentId = params.get("e");
|
|
18793
|
+
const machineKeyHex = params.get("k");
|
|
18794
|
+
const code = params.get("c");
|
|
18795
|
+
if (params.get("v") !== String(1)) return null;
|
|
18796
|
+
if (environmentId === null || !PHONE_PAIR_ENVIRONMENT_ID_RE.test(environmentId)) return null;
|
|
18797
|
+
if (machineKeyHex === null || !PHONE_PAIR_MACHINE_KEY_RE.test(machineKeyHex)) return null;
|
|
18798
|
+
if (code === null || !PHONE_PAIR_CODE_RE.test(code)) return null;
|
|
18799
|
+
return {
|
|
18800
|
+
environmentId,
|
|
18801
|
+
machineKeyHex,
|
|
18802
|
+
code
|
|
18803
|
+
};
|
|
18804
|
+
}
|
|
18805
|
+
//#endregion
|
|
18806
|
+
//#region src/phone-notifications.ts
|
|
18807
|
+
const PHONE_NOTIFICATION_CATEGORIES = [
|
|
18808
|
+
"question",
|
|
18809
|
+
"plan",
|
|
18810
|
+
"permission",
|
|
18811
|
+
"finished",
|
|
18812
|
+
"failed",
|
|
18813
|
+
"stopped"
|
|
18814
|
+
];
|
|
18815
|
+
const DEFAULT_PHONE_NOTIFICATION_PREFERENCES = {
|
|
18816
|
+
v: 1,
|
|
18817
|
+
pause: null,
|
|
18818
|
+
muted: []
|
|
18819
|
+
};
|
|
18820
|
+
function isPlainObject$1(value) {
|
|
18821
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18822
|
+
}
|
|
18823
|
+
function parsePause(value) {
|
|
18824
|
+
if (value === null) return null;
|
|
18825
|
+
if (!isPlainObject$1(value)) return void 0;
|
|
18826
|
+
const until = value.until;
|
|
18827
|
+
if (until === null) return { until: null };
|
|
18828
|
+
if (typeof until !== "string" || Number.isNaN(Date.parse(until))) return void 0;
|
|
18829
|
+
return { until };
|
|
18830
|
+
}
|
|
18831
|
+
/** Null for anything that is not a v1 prefs object; drops unknown/duplicate `muted` entries; never throws. */
|
|
18832
|
+
function parsePhoneNotificationPreferences(value) {
|
|
18833
|
+
if (!isPlainObject$1(value)) return null;
|
|
18834
|
+
if (value.v !== 1) return null;
|
|
18835
|
+
const pause = parsePause(value.pause);
|
|
18836
|
+
if (pause === void 0) return null;
|
|
18837
|
+
const rawMuted = value.muted;
|
|
18838
|
+
if (!Array.isArray(rawMuted)) return null;
|
|
18839
|
+
return {
|
|
18840
|
+
v: 1,
|
|
18841
|
+
pause,
|
|
18842
|
+
muted: PHONE_NOTIFICATION_CATEGORIES.filter((category) => rawMuted.includes(category))
|
|
18843
|
+
};
|
|
18844
|
+
}
|
|
18845
|
+
/** Whether a notification of `category` may go to a phone with `prefs` at `nowMs` (D-3). */
|
|
18846
|
+
function notificationAllowed(prefs, category, nowMs) {
|
|
18847
|
+
if (prefs === null) return true;
|
|
18848
|
+
if (category === "test") return true;
|
|
18849
|
+
if (prefs.pause !== null && (prefs.pause.until === null || Date.parse(prefs.pause.until) > nowMs)) return false;
|
|
18850
|
+
if (category === "summary") return true;
|
|
18851
|
+
return !prefs.muted.includes(category);
|
|
18852
|
+
}
|
|
18853
|
+
//#endregion
|
|
18854
|
+
//#region src/connector-pairing.ts
|
|
18855
|
+
const CONNECTOR_PAIR_SCHEME = "overdeck-connector";
|
|
18856
|
+
const CONNECTOR_PAIR_LINK_VERSION = 1;
|
|
18857
|
+
/** Everything before the fragment. Single slash after the colon. */
|
|
18858
|
+
const CONNECTOR_PAIR_LINK_PREFIX = `${CONNECTOR_PAIR_SCHEME}:/pair#`;
|
|
18859
|
+
/** `overdeck-connector:/pair#v=1&e=<environmentId>&k=<machineKeyHex>&c=<code>`; throws on a malformed input. */
|
|
18860
|
+
function buildConnectorPairLink(input) {
|
|
18861
|
+
if (!PHONE_PAIR_ENVIRONMENT_ID_RE.test(input.environmentId)) throw new Error("environmentId must be a lowercase UUID v4");
|
|
18862
|
+
if (!PHONE_PAIR_MACHINE_KEY_RE.test(input.machineKeyHex)) throw new Error("machineKeyHex must be 64 lowercase hex characters");
|
|
18863
|
+
if (!PHONE_PAIR_CODE_RE.test(input.code)) throw new Error("code must be an odp_ pairing code");
|
|
18864
|
+
return `${CONNECTOR_PAIR_LINK_PREFIX}v=1&e=${input.environmentId}&k=${input.machineKeyHex}&c=${input.code}`;
|
|
18865
|
+
}
|
|
18866
|
+
/** The inverse of `buildConnectorPairLink`: the string's fields, or null unless every part is well formed. Surrounding whitespace is ignored. */
|
|
18867
|
+
function parseConnectorPairLink(text) {
|
|
18868
|
+
const link = text.trim();
|
|
18869
|
+
if (!link.startsWith(CONNECTOR_PAIR_LINK_PREFIX)) return null;
|
|
18870
|
+
const params = new URLSearchParams(link.slice(CONNECTOR_PAIR_LINK_PREFIX.length));
|
|
18871
|
+
const environmentId = params.get("e");
|
|
18872
|
+
const machineKeyHex = params.get("k");
|
|
18873
|
+
const code = params.get("c");
|
|
18874
|
+
if (params.get("v") !== String(1)) return null;
|
|
18875
|
+
if (environmentId === null || !PHONE_PAIR_ENVIRONMENT_ID_RE.test(environmentId)) return null;
|
|
18876
|
+
if (machineKeyHex === null || !PHONE_PAIR_MACHINE_KEY_RE.test(machineKeyHex)) return null;
|
|
18877
|
+
if (code === null || !PHONE_PAIR_CODE_RE.test(code)) return null;
|
|
18878
|
+
return {
|
|
18879
|
+
environmentId,
|
|
18880
|
+
machineKeyHex,
|
|
18881
|
+
code
|
|
18882
|
+
};
|
|
18883
|
+
}
|
|
18884
|
+
//#endregion
|
|
18240
18885
|
//#region src/fleet-versions.ts
|
|
18241
18886
|
const FleetInstallMode = Schema.Literals([
|
|
18242
18887
|
"npm-global",
|
|
@@ -18321,6 +18966,269 @@ const MachineVersionsReportSchema = Schema.Struct({
|
|
|
18321
18966
|
job: Schema.NullOr(FleetUpdateJobSchema)
|
|
18322
18967
|
});
|
|
18323
18968
|
//#endregion
|
|
18969
|
+
//#region src/sharing-wire.ts
|
|
18970
|
+
const SHARED_WIRE_VERSION = 1;
|
|
18971
|
+
const SHARED_SCOPE_KINDS = ["conversation"];
|
|
18972
|
+
const SHARED_CHANNELS = [
|
|
18973
|
+
"control",
|
|
18974
|
+
"conversation",
|
|
18975
|
+
"drafts",
|
|
18976
|
+
"terminal",
|
|
18977
|
+
"presence"
|
|
18978
|
+
];
|
|
18979
|
+
/** The longest data-channel message: 32,768 UTF-16 code units, at most 96 KiB of UTF-8. Longer envelopes are fragmented. */
|
|
18980
|
+
const SHARE_MAX_MESSAGE_CHARS = 32768;
|
|
18981
|
+
/** The longest encoded envelope ever sent or reassembled. */
|
|
18982
|
+
const SHARE_MAX_ENVELOPE_CHARS = 32 * 1024 * 1024;
|
|
18983
|
+
/** The longest envelope a host reassembles from a viewer on `control` or `drafts` (NFR-3). */
|
|
18984
|
+
const SHARE_MAX_INBOUND_ENVELOPE_CHARS = 65536;
|
|
18985
|
+
/** The longest shared prompt or draft, in UTF-16 code units (D-11). */
|
|
18986
|
+
const SHARED_PROMPT_MAX_CHARS = 8e3;
|
|
18987
|
+
/**
|
|
18988
|
+
* The longest single message a fragment can be: JSON escaping can turn each of a slice's
|
|
18989
|
+
* SHARE_MAX_MESSAGE_CHARS code units into six (`\u0000`), plus the chunk header.
|
|
18990
|
+
*/
|
|
18991
|
+
const MAX_FRAGMENT_MESSAGE_CHARS = SHARE_MAX_MESSAGE_CHARS * 6 + 256;
|
|
18992
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
18993
|
+
const isPositiveInteger = (value) => typeof value === "number" && Number.isSafeInteger(value) && value > 0;
|
|
18994
|
+
const isNonNegativeInteger = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
18995
|
+
/** Copies only the allow-listed fields. Never spreads the input and never sets `author`. */
|
|
18996
|
+
function toSharedMessage(message) {
|
|
18997
|
+
const shared = {
|
|
18998
|
+
id: message.id,
|
|
18999
|
+
role: message.role,
|
|
19000
|
+
text: message.text,
|
|
19001
|
+
createdAt: message.createdAt
|
|
19002
|
+
};
|
|
19003
|
+
if (typeof message.turnId === "string") shared.turnId = message.turnId;
|
|
19004
|
+
if (typeof message.completedAt === "string") shared.completedAt = message.completedAt;
|
|
19005
|
+
if (typeof message.streaming === "boolean") shared.streaming = message.streaming;
|
|
19006
|
+
if (typeof message.sequence === "number" && Number.isFinite(message.sequence)) shared.sequence = message.sequence;
|
|
19007
|
+
return shared;
|
|
19008
|
+
}
|
|
19009
|
+
/**
|
|
19010
|
+
* `null` when a shared prompt may be delivered; the refusal reason otherwise (D-9). A leading `/`, `!`
|
|
19011
|
+
* or `#` would reach a composer command, a shell command or a memory note, so it is refused.
|
|
19012
|
+
*/
|
|
19013
|
+
function sharedPromptRefusal(text) {
|
|
19014
|
+
const trimmed = text.trim();
|
|
19015
|
+
if (trimmed.length === 0) return "invalid_prompt";
|
|
19016
|
+
if (text.length > 8e3) return "too_long";
|
|
19017
|
+
const first = trimmed[0];
|
|
19018
|
+
return first === "/" || first === "!" || first === "#" ? "invalid_prompt" : null;
|
|
19019
|
+
}
|
|
19020
|
+
/** A host → viewer DraftPayload rebuilt from its known keys, or `null` when `value` is not one. */
|
|
19021
|
+
function readDraftPayload(value) {
|
|
19022
|
+
if (!isRecord(value)) return null;
|
|
19023
|
+
const { authorGithubId, authorLogin, text, updatedAt } = value;
|
|
19024
|
+
if (!isPositiveInteger(authorGithubId)) return null;
|
|
19025
|
+
if (typeof authorLogin !== "string") return null;
|
|
19026
|
+
if (typeof text !== "string" || text.length > 8e3) return null;
|
|
19027
|
+
if (typeof updatedAt !== "number" || !Number.isFinite(updatedAt)) return null;
|
|
19028
|
+
return {
|
|
19029
|
+
authorGithubId,
|
|
19030
|
+
authorLogin,
|
|
19031
|
+
text,
|
|
19032
|
+
updatedAt
|
|
19033
|
+
};
|
|
19034
|
+
}
|
|
19035
|
+
/** A new envelope with exactly the six envelope keys, or `null` when `value` is not one. */
|
|
19036
|
+
function decodeEnvelope(value) {
|
|
19037
|
+
if (!isRecord(value)) return null;
|
|
19038
|
+
const { v, ch, streamId, seq, t } = value;
|
|
19039
|
+
if (!isPositiveInteger(v)) return null;
|
|
19040
|
+
if (typeof ch !== "string" || !SHARED_CHANNELS.includes(ch)) return null;
|
|
19041
|
+
if (typeof streamId !== "string" || streamId.length === 0) return null;
|
|
19042
|
+
if (!isPositiveInteger(seq)) return null;
|
|
19043
|
+
if (typeof t !== "number" || !Number.isFinite(t)) return null;
|
|
19044
|
+
if (!Object.prototype.hasOwnProperty.call(value, "payload")) return null;
|
|
19045
|
+
return {
|
|
19046
|
+
v,
|
|
19047
|
+
ch,
|
|
19048
|
+
streamId,
|
|
19049
|
+
seq,
|
|
19050
|
+
t,
|
|
19051
|
+
payload: value.payload
|
|
19052
|
+
};
|
|
19053
|
+
}
|
|
19054
|
+
/**
|
|
19055
|
+
* Encodes one envelope as the data-channel messages to send in order: one message, or `count`
|
|
19056
|
+
* fragments when the encoded envelope is longer than SHARE_MAX_MESSAGE_CHARS. Slicing can split a
|
|
19057
|
+
* UTF-16 surrogate pair across fragments; the reader joins the slices before parsing, so the pair is
|
|
19058
|
+
* whole again. Throws RangeError when the encoded envelope is longer than SHARE_MAX_ENVELOPE_CHARS.
|
|
19059
|
+
*/
|
|
19060
|
+
function encodeSharedMessage(envelope, chunkId) {
|
|
19061
|
+
const text = JSON.stringify(envelope);
|
|
19062
|
+
if (text.length > 33554432) throw new RangeError("shared envelope too large");
|
|
19063
|
+
if (text.length <= 32768) return [text];
|
|
19064
|
+
const count = Math.ceil(text.length / SHARE_MAX_MESSAGE_CHARS);
|
|
19065
|
+
const parts = [];
|
|
19066
|
+
for (let index = 0; index < count; index++) {
|
|
19067
|
+
const data = text.slice(index * SHARE_MAX_MESSAGE_CHARS, (index + 1) * SHARE_MAX_MESSAGE_CHARS);
|
|
19068
|
+
parts.push(JSON.stringify({
|
|
19069
|
+
v: 1,
|
|
19070
|
+
chunk: {
|
|
19071
|
+
id: chunkId,
|
|
19072
|
+
index,
|
|
19073
|
+
count
|
|
19074
|
+
},
|
|
19075
|
+
data
|
|
19076
|
+
}));
|
|
19077
|
+
}
|
|
19078
|
+
return parts;
|
|
19079
|
+
}
|
|
19080
|
+
/**
|
|
19081
|
+
* Reads one channel's messages in arrival order and reassembles fragmented envelopes. One reader per
|
|
19082
|
+
* channel. `maxEnvelopeChars` caps what one envelope may grow to; a host reading a viewer passes
|
|
19083
|
+
* SHARE_MAX_INBOUND_ENVELOPE_CHARS so one viewer cannot make it buffer megabytes.
|
|
19084
|
+
*/
|
|
19085
|
+
var SharedChannelReader = class {
|
|
19086
|
+
partial = null;
|
|
19087
|
+
constructor(maxEnvelopeChars = SHARE_MAX_ENVELOPE_CHARS) {
|
|
19088
|
+
this.maxEnvelopeChars = maxEnvelopeChars;
|
|
19089
|
+
}
|
|
19090
|
+
read(text) {
|
|
19091
|
+
if (text.length > Math.max(this.maxEnvelopeChars, MAX_FRAGMENT_MESSAGE_CHARS)) return {
|
|
19092
|
+
kind: "invalid",
|
|
19093
|
+
reason: "too_large"
|
|
19094
|
+
};
|
|
19095
|
+
let value;
|
|
19096
|
+
try {
|
|
19097
|
+
value = JSON.parse(text);
|
|
19098
|
+
} catch {
|
|
19099
|
+
return {
|
|
19100
|
+
kind: "invalid",
|
|
19101
|
+
reason: "not_json"
|
|
19102
|
+
};
|
|
19103
|
+
}
|
|
19104
|
+
if (isRecord(value) && Object.prototype.hasOwnProperty.call(value, "chunk")) return this.readFragment(value);
|
|
19105
|
+
if (text.length > this.maxEnvelopeChars) return {
|
|
19106
|
+
kind: "invalid",
|
|
19107
|
+
reason: "too_large"
|
|
19108
|
+
};
|
|
19109
|
+
return decoded(value);
|
|
19110
|
+
}
|
|
19111
|
+
readFragment(value) {
|
|
19112
|
+
const { chunk, data } = value;
|
|
19113
|
+
if (!isRecord(chunk) || typeof data !== "string") return {
|
|
19114
|
+
kind: "invalid",
|
|
19115
|
+
reason: "not_envelope"
|
|
19116
|
+
};
|
|
19117
|
+
const { id, index, count } = chunk;
|
|
19118
|
+
if (typeof id !== "number" || !Number.isFinite(id) || !isNonNegativeInteger(index) || !isNonNegativeInteger(count) || index >= count) return {
|
|
19119
|
+
kind: "invalid",
|
|
19120
|
+
reason: "not_envelope"
|
|
19121
|
+
};
|
|
19122
|
+
if (count * 32768 > this.maxEnvelopeChars + 32768 || data.length > 32768) {
|
|
19123
|
+
this.partial = null;
|
|
19124
|
+
return {
|
|
19125
|
+
kind: "invalid",
|
|
19126
|
+
reason: "too_large"
|
|
19127
|
+
};
|
|
19128
|
+
}
|
|
19129
|
+
const partial = this.partial;
|
|
19130
|
+
if (partial === null) {
|
|
19131
|
+
if (index !== 0) return {
|
|
19132
|
+
kind: "invalid",
|
|
19133
|
+
reason: "chunk_out_of_order"
|
|
19134
|
+
};
|
|
19135
|
+
this.partial = {
|
|
19136
|
+
id,
|
|
19137
|
+
count,
|
|
19138
|
+
parts: [data]
|
|
19139
|
+
};
|
|
19140
|
+
} else {
|
|
19141
|
+
if (id !== partial.id || count !== partial.count || index !== partial.parts.length) {
|
|
19142
|
+
this.partial = null;
|
|
19143
|
+
return {
|
|
19144
|
+
kind: "invalid",
|
|
19145
|
+
reason: "chunk_out_of_order"
|
|
19146
|
+
};
|
|
19147
|
+
}
|
|
19148
|
+
partial.parts.push(data);
|
|
19149
|
+
}
|
|
19150
|
+
const current = this.partial;
|
|
19151
|
+
if (current === null || current.parts.length < current.count) return { kind: "pending" };
|
|
19152
|
+
this.partial = null;
|
|
19153
|
+
const text = current.parts.join("");
|
|
19154
|
+
if (text.length > this.maxEnvelopeChars) return {
|
|
19155
|
+
kind: "invalid",
|
|
19156
|
+
reason: "too_large"
|
|
19157
|
+
};
|
|
19158
|
+
let joined;
|
|
19159
|
+
try {
|
|
19160
|
+
joined = JSON.parse(text);
|
|
19161
|
+
} catch {
|
|
19162
|
+
return {
|
|
19163
|
+
kind: "invalid",
|
|
19164
|
+
reason: "not_json"
|
|
19165
|
+
};
|
|
19166
|
+
}
|
|
19167
|
+
return decoded(joined);
|
|
19168
|
+
}
|
|
19169
|
+
};
|
|
19170
|
+
function decoded(value) {
|
|
19171
|
+
const envelope = decodeEnvelope(value);
|
|
19172
|
+
return envelope === null ? {
|
|
19173
|
+
kind: "invalid",
|
|
19174
|
+
reason: "not_envelope"
|
|
19175
|
+
} : {
|
|
19176
|
+
kind: "envelope",
|
|
19177
|
+
envelope
|
|
19178
|
+
};
|
|
19179
|
+
}
|
|
19180
|
+
/** Detects `seq` gaps per channel and stream. A gap is reported once; tracking resumes after it. */
|
|
19181
|
+
var SeqTracker = class {
|
|
19182
|
+
expected = /* @__PURE__ */ new Map();
|
|
19183
|
+
observe(ch, streamId, seq) {
|
|
19184
|
+
const key = `${ch}\n${streamId}`;
|
|
19185
|
+
const expected = this.expected.get(key) ?? 1;
|
|
19186
|
+
this.expected.set(key, seq + 1);
|
|
19187
|
+
return seq === expected ? { ok: true } : {
|
|
19188
|
+
ok: false,
|
|
19189
|
+
expected,
|
|
19190
|
+
got: seq
|
|
19191
|
+
};
|
|
19192
|
+
}
|
|
19193
|
+
};
|
|
19194
|
+
/** Agrees on `min(local.v, remote.v)` when the remote hello is well formed and both sides support the shared scope. */
|
|
19195
|
+
function negotiateHello(local, remote) {
|
|
19196
|
+
if (!isRecord(remote)) return {
|
|
19197
|
+
ok: false,
|
|
19198
|
+
code: "invalid_hello"
|
|
19199
|
+
};
|
|
19200
|
+
const { v, scopeKinds, scope } = remote;
|
|
19201
|
+
if (!isPositiveInteger(v)) return {
|
|
19202
|
+
ok: false,
|
|
19203
|
+
code: "invalid_hello"
|
|
19204
|
+
};
|
|
19205
|
+
if (!Array.isArray(scopeKinds) || !scopeKinds.every((kind) => typeof kind === "string")) return {
|
|
19206
|
+
ok: false,
|
|
19207
|
+
code: "invalid_hello"
|
|
19208
|
+
};
|
|
19209
|
+
if (!isRecord(scope) || typeof scope.kind !== "string" || typeof scope.conversationId !== "string") return {
|
|
19210
|
+
ok: false,
|
|
19211
|
+
code: "invalid_hello"
|
|
19212
|
+
};
|
|
19213
|
+
const agreed = Math.min(local.v, v);
|
|
19214
|
+
if (agreed < 1) return {
|
|
19215
|
+
ok: false,
|
|
19216
|
+
code: "version_unsupported"
|
|
19217
|
+
};
|
|
19218
|
+
if (!scopeKinds.includes(local.scope.kind) || !local.scopeKinds.includes(scope.kind)) return {
|
|
19219
|
+
ok: false,
|
|
19220
|
+
code: "scope_kind_unsupported"
|
|
19221
|
+
};
|
|
19222
|
+
if (scope.kind !== local.scope.kind || scope.conversationId !== local.scope.conversationId) return {
|
|
19223
|
+
ok: false,
|
|
19224
|
+
code: "invalid_hello"
|
|
19225
|
+
};
|
|
19226
|
+
return {
|
|
19227
|
+
ok: true,
|
|
19228
|
+
v: agreed
|
|
19229
|
+
};
|
|
19230
|
+
}
|
|
19231
|
+
//#endregion
|
|
18324
19232
|
//#region src/color-theme.ts
|
|
18325
19233
|
const TERMINAL_PALETTE_KEYS = [
|
|
18326
19234
|
"background",
|
|
@@ -18638,6 +19546,6 @@ function presetToCron(preset) {
|
|
|
18638
19546
|
}
|
|
18639
19547
|
}
|
|
18640
19548
|
//#endregion
|
|
18641
|
-
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, 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, 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 };
|
|
19549
|
+
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_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_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, bucketRelayBytes, buildConnectorPairLink, buildPhonePairLink, builtinFor, canonicalPullRequestUrl, 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 };
|
|
18642
19550
|
|
|
18643
19551
|
//# sourceMappingURL=index.mjs.map
|