orkestrator 2.36.2-beta → 2.36.3-beta
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/client.js +114 -46
- package/dist/main.js +168870 -163834
- package/package.json +3 -3
- package/resources/acp-bridge/dist/index.js +60 -4
- package/resources/claude-bridge/dist/index.js +93 -5
- package/resources/codex-bridge/dist/index.js +62 -4
- package/resources/cursor-bridge/dist/index.js +41 -4
- package/resources/cursor-bridge/runtime/install.json +1 -1
- package/resources/pi-bridge/dist/index.js +61 -5
- package/resources/pi-bridge/runtime/install.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orkestrator",
|
|
3
|
-
"version": "2.36.
|
|
3
|
+
"version": "2.36.3-beta",
|
|
4
4
|
"description": "Run the Orkestrator backend service without the desktop application",
|
|
5
5
|
"homepage": "https://orkestrator.dev",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"sharp": "0.35.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@orkestrator/protocol": "2.36.
|
|
43
|
-
"@orkestrator/toolchain": "2.36.
|
|
42
|
+
"@orkestrator/protocol": "2.36.3-beta",
|
|
43
|
+
"@orkestrator/toolchain": "2.36.3-beta"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"bun": ">=1.4.4"
|
|
@@ -668,6 +668,7 @@ var ENVIRONMENT_LOG_AREAS = defineLogAreas({
|
|
|
668
668
|
"status.docker-error": "A transient Docker error stopped a status read, so the stored status is kept.",
|
|
669
669
|
"setup.clear-launch-failed": "A pending agent launch could not be cleared after setup failed.",
|
|
670
670
|
"setup.record-failure-failed": "A setup failure before its first attempt could not be recorded.",
|
|
671
|
+
"setup.tab-publish-failed": "The setup terminal's tab could not be published.",
|
|
671
672
|
"lifecycle.failed": "Starting, rebuilding or recreating an environment failed; `operation` says which.",
|
|
672
673
|
"tab-teardown.pending": "A tab's teardown failed and stays pending; the reconcile sweep retries.",
|
|
673
674
|
"tab-reconcile.skipped": "Orphaned tab reconciliation was skipped because pane layouts are unreadable.",
|
|
@@ -875,6 +876,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
875
876
|
"turn-recovery.failed": "Recovering an incomplete turn failed.",
|
|
876
877
|
"turn-recovery.exhausted": "A turn failed again after automatic recovery and is left for the user.",
|
|
877
878
|
"turn-recovery.retrying": "An incomplete or provider-failed turn is being retried automatically.",
|
|
879
|
+
"usage-limit.notice-failed": "A usage-limit stop's outcome could not be read for its notice.",
|
|
878
880
|
"usage-limit.resend-failed": "Resending after a usage limit failed. An unknown send stays in the journal.",
|
|
879
881
|
"title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
|
|
880
882
|
...THROTTLE_LOG_EVENTS
|
|
@@ -891,6 +893,15 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
891
893
|
"recover.failed": "Goals could not be recovered at startup."
|
|
892
894
|
}
|
|
893
895
|
},
|
|
896
|
+
"native-agent.subork": {
|
|
897
|
+
description: "Suborks: the ask_agents calls a native agent makes. Content-free.",
|
|
898
|
+
events: {
|
|
899
|
+
"pass.failed": "A pass over a call failed, so a later pass retries. Counts only.",
|
|
900
|
+
"delivery.failed": "A call's answers could not be placed in the caller's mailbox yet. Error class only.",
|
|
901
|
+
"retention.failed": "An old call could not be removed.",
|
|
902
|
+
"sweep.failed": "A running call's caller could not be checked; the next sweep looks again."
|
|
903
|
+
}
|
|
904
|
+
},
|
|
894
905
|
"native-agent.opencode": {
|
|
895
906
|
description: "The OpenCode provider: its request monitor, retries and agent tools.",
|
|
896
907
|
events: {
|
|
@@ -1331,6 +1342,11 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
1331
1342
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
1332
1343
|
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
1333
1344
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
1345
|
+
"notice.outbox-refused": "A leaf's outbox refused a coordinator notice, so its own coordinator takes it.",
|
|
1346
|
+
"notice.start-main-failed": "A coordinator notice could not start a main coordinator; it waits for one to open.",
|
|
1347
|
+
"notice.take-back-unread": "A notice handed back from a command node found no open coordinator here.",
|
|
1348
|
+
"limit-stop.own": "A coordinator's own usage-limit stop attempted to move it off the account.",
|
|
1349
|
+
"limit-stop.notice-failed": "A usage-limit notice could not be sent; it stays in the ledger for the next attempt.",
|
|
1334
1350
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
1335
1351
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
1336
1352
|
"wake.resolve-report-failed": "A finished Resolve tab could not be reported.",
|
|
@@ -1361,15 +1377,15 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
1361
1377
|
review: {
|
|
1362
1378
|
description: "Multi Review workflows: scheduling, graph runs and interactive fix sessions.",
|
|
1363
1379
|
events: {
|
|
1364
|
-
"fix-tab.publish-failed": "A
|
|
1380
|
+
"fix-tab.publish-failed": "A Address Findings request was delivered but its tab could not be opened; the user is told.",
|
|
1365
1381
|
"graph-run.not-started": "A workflow's graph run did not start.",
|
|
1366
1382
|
"reconcile.scan-failed": "A reconciliation scan failed; the next scan retries.",
|
|
1367
1383
|
"graph-engine.unavailable": "The graph engine is selected but unavailable, so the bespoke engine runs.",
|
|
1368
1384
|
"graph-run.cancel-failed": "Cancelling a graph run failed; the next pass projects how it ended.",
|
|
1369
1385
|
"delete.cleanup-failed": "A cleanup step after deleting a workflow failed; stale tabs reconcile away on hydration.",
|
|
1370
|
-
"fix-session.read-failed": "Reading an interactive
|
|
1386
|
+
"fix-session.read-failed": "Reading an interactive Address Findings session's state failed.",
|
|
1371
1387
|
"fix-outcome.read-failed": "Reading an interactive fix's outcome failed; it stays pending.",
|
|
1372
|
-
"fix-usage.read-failed": "Reading
|
|
1388
|
+
"fix-usage.read-failed": "Reading an Address Findings session's token usage failed.",
|
|
1373
1389
|
"result.consume-deferred": "Consuming a workflow result failed; it stays staged and is retried.",
|
|
1374
1390
|
"failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so."
|
|
1375
1391
|
}
|
|
@@ -1422,6 +1438,7 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
1422
1438
|
"agent-accounts": {
|
|
1423
1439
|
description: "Agent accounts: automatic switching, staged logins and plan usage.",
|
|
1424
1440
|
events: {
|
|
1441
|
+
"limit-stop-notice.failed": "A session's usage-limit stop could not be reported.",
|
|
1425
1442
|
"switch-notice.failed": "A notice about an automatic account switch failed; the switch stands. `audience` says whose.",
|
|
1426
1443
|
"auto-switch.check-failed": "An automatic account check failed; the next nudge retries.",
|
|
1427
1444
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
@@ -1440,6 +1457,17 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1440
1457
|
description: "Docker containers: lifecycle, starts, staged inputs and the login files they hold.",
|
|
1441
1458
|
events: {
|
|
1442
1459
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
1460
|
+
"git-mirror.mount-unavailable": "A new container gets no project Git mirror, so its clone goes to the remote.",
|
|
1461
|
+
"git-mirror.refreshed": "A project's Git mirror was built or updated.",
|
|
1462
|
+
"git-mirror.refresh-failed": "A project's Git mirror could not be updated. New clones still work, from the mirror as it was or from the remote.",
|
|
1463
|
+
"git-mirror.low-disk": "A project's Git mirror was not updated: the disk is nearly full.",
|
|
1464
|
+
"git-mirror.oversized": "A project's repository is too large for a Git mirror, so its environments keep the blobless clone.",
|
|
1465
|
+
"git-mirror.compact-failed": "A project's Git mirror could not be compacted.",
|
|
1466
|
+
"git-mirror.state-write-failed": "A project's Git mirror could not be marked for checking.",
|
|
1467
|
+
"git-mirror.remove-failed": "A project's Git mirror could not be removed; a sweep retries.",
|
|
1468
|
+
"git-mirror.orphans-removed": "Git mirrors of removed projects were removed.",
|
|
1469
|
+
"git-mirror.clone-used": "A new environment cloned from its project's Git mirror.",
|
|
1470
|
+
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
1443
1471
|
"project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
|
|
1444
1472
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
1445
1473
|
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
@@ -1588,8 +1616,12 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
1588
1616
|
nodes: {
|
|
1589
1617
|
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
1590
1618
|
events: {
|
|
1619
|
+
...THROTTLE_LOG_EVENTS,
|
|
1591
1620
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
1592
1621
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
1622
|
+
"mail.return-deferred": "The leaf refused returned mail; it remains queued for retry.",
|
|
1623
|
+
"notices.take-back-failed": "A notice for this node's coordinator stayed in the outbox.",
|
|
1624
|
+
"notice.collected-retired": "A detached controller owned a notice with ambiguous delivery; retired without redelivery.",
|
|
1593
1625
|
"mail.delivery-deferred": "Leaf mail could not reach a coordinator yet.",
|
|
1594
1626
|
"command.post-step-failed": "A step after a routed command failed.",
|
|
1595
1627
|
"seed-files.incomplete": "Seed files for a leaf environment were not all copied.",
|
|
@@ -2105,6 +2137,7 @@ var WEB_SYNC_LOG_AREAS = defineLogAreas({
|
|
|
2105
2137
|
"web.read-coordinator": {
|
|
2106
2138
|
description: "The renderer's coalesced, bounded backend reads.",
|
|
2107
2139
|
events: {
|
|
2140
|
+
"poll.read-failed": "A coordinated poll's read failed; it stays on its interval.",
|
|
2108
2141
|
"listener.threw": "A read state listener threw.",
|
|
2109
2142
|
"read.settle-failed": "Applying a finished read's result threw."
|
|
2110
2143
|
}
|
|
@@ -11661,6 +11694,7 @@ var PROJECTION_FIELD_SET = new Set([
|
|
|
11661
11694
|
"asyncQuestionResponses",
|
|
11662
11695
|
"contextUsage",
|
|
11663
11696
|
"goal",
|
|
11697
|
+
"suborks",
|
|
11664
11698
|
"rateLimits",
|
|
11665
11699
|
"runtime",
|
|
11666
11700
|
"runtimeHealthAuthoritative",
|
|
@@ -11686,6 +11720,7 @@ var OPTIONAL_PROJECTION_FIELD_SET = new Set([
|
|
|
11686
11720
|
"asyncQuestionResponses",
|
|
11687
11721
|
"contextUsage",
|
|
11688
11722
|
"goal",
|
|
11723
|
+
"suborks",
|
|
11689
11724
|
"rateLimits",
|
|
11690
11725
|
"runtime",
|
|
11691
11726
|
"runtimeHealthAuthoritative",
|
|
@@ -13828,6 +13863,24 @@ function assertExecutionPolicyNotWidened(current, next) {
|
|
|
13828
13863
|
throw new PolicyWideningRefusedError(widened);
|
|
13829
13864
|
}
|
|
13830
13865
|
|
|
13866
|
+
// ../protocol/src/suborks.ts
|
|
13867
|
+
var SUBORK_TOOL_NAME = "ask_agents";
|
|
13868
|
+
var AGENT_SUBORK_TOOL_NAMES = Object.freeze([SUBORK_TOOL_NAME]);
|
|
13869
|
+
var SUBORK_LIMITS = Object.freeze({
|
|
13870
|
+
targetsPerCall: 4,
|
|
13871
|
+
activePerSession: 8,
|
|
13872
|
+
totalPerSession: 64,
|
|
13873
|
+
retainedBatchesPerSession: 16,
|
|
13874
|
+
promptMaxBytes: 64 * 1024,
|
|
13875
|
+
nameMaxChars: 80,
|
|
13876
|
+
targetTextMaxChars: 200,
|
|
13877
|
+
storedAnswerMaxBytes: 64 * 1024,
|
|
13878
|
+
deliveredAnswersMaxBytes: AGENT_MAIL_MAX_BODY_BYTES - 2 * 1024,
|
|
13879
|
+
lineMaxChars: 240,
|
|
13880
|
+
errorMaxChars: 1024,
|
|
13881
|
+
deadlineMs: 45 * 60000
|
|
13882
|
+
});
|
|
13883
|
+
|
|
13831
13884
|
// ../protocol/src/web-annotations-errors.ts
|
|
13832
13885
|
var WEB_ANNOTATION_ERROR_CODES = Object.freeze([
|
|
13833
13886
|
"conflict",
|
|
@@ -16457,6 +16510,7 @@ var WORKFLOW_RESULT_KINDS = [
|
|
|
16457
16510
|
"fix-result",
|
|
16458
16511
|
"verification-result",
|
|
16459
16512
|
"pr-result",
|
|
16513
|
+
"subork-answer",
|
|
16460
16514
|
"graph-output",
|
|
16461
16515
|
"graph-template"
|
|
16462
16516
|
];
|
|
@@ -16472,7 +16526,8 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
|
|
|
16472
16526
|
"verification-result": "submit_verification_result",
|
|
16473
16527
|
"pr-result": "submit_pr_result",
|
|
16474
16528
|
"graph-output": "submit_graph_output",
|
|
16475
|
-
"graph-template": "submit_graph_template"
|
|
16529
|
+
"graph-template": "submit_graph_template",
|
|
16530
|
+
"subork-answer": "submit_subork_answer"
|
|
16476
16531
|
};
|
|
16477
16532
|
var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
|
|
16478
16533
|
var REPORT_FINDING_TOOL_NAME = "report_finding";
|
|
@@ -21671,6 +21726,7 @@ async function startDeferredSession(state) {
|
|
|
21671
21726
|
var ORKESTRATOR_AUTO_ALLOWED_TOOL_NAMES = [
|
|
21672
21727
|
...AGENT_MAIL_TOOL_NAMES,
|
|
21673
21728
|
...AGENT_GOAL_TOOL_NAMES,
|
|
21729
|
+
...AGENT_SUBORK_TOOL_NAMES,
|
|
21674
21730
|
...WEB_ANNOTATION_TOOL_NAMES,
|
|
21675
21731
|
...ARTIFACT_TOOL_NAMES
|
|
21676
21732
|
];
|
|
@@ -487,6 +487,7 @@ var ENVIRONMENT_LOG_AREAS = defineLogAreas({
|
|
|
487
487
|
"status.docker-error": "A transient Docker error stopped a status read, so the stored status is kept.",
|
|
488
488
|
"setup.clear-launch-failed": "A pending agent launch could not be cleared after setup failed.",
|
|
489
489
|
"setup.record-failure-failed": "A setup failure before its first attempt could not be recorded.",
|
|
490
|
+
"setup.tab-publish-failed": "The setup terminal's tab could not be published.",
|
|
490
491
|
"lifecycle.failed": "Starting, rebuilding or recreating an environment failed; `operation` says which.",
|
|
491
492
|
"tab-teardown.pending": "A tab's teardown failed and stays pending; the reconcile sweep retries.",
|
|
492
493
|
"tab-reconcile.skipped": "Orphaned tab reconciliation was skipped because pane layouts are unreadable.",
|
|
@@ -694,6 +695,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
694
695
|
"turn-recovery.failed": "Recovering an incomplete turn failed.",
|
|
695
696
|
"turn-recovery.exhausted": "A turn failed again after automatic recovery and is left for the user.",
|
|
696
697
|
"turn-recovery.retrying": "An incomplete or provider-failed turn is being retried automatically.",
|
|
698
|
+
"usage-limit.notice-failed": "A usage-limit stop's outcome could not be read for its notice.",
|
|
697
699
|
"usage-limit.resend-failed": "Resending after a usage limit failed. An unknown send stays in the journal.",
|
|
698
700
|
"title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
|
|
699
701
|
...THROTTLE_LOG_EVENTS
|
|
@@ -710,6 +712,15 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
710
712
|
"recover.failed": "Goals could not be recovered at startup."
|
|
711
713
|
}
|
|
712
714
|
},
|
|
715
|
+
"native-agent.subork": {
|
|
716
|
+
description: "Suborks: the ask_agents calls a native agent makes. Content-free.",
|
|
717
|
+
events: {
|
|
718
|
+
"pass.failed": "A pass over a call failed, so a later pass retries. Counts only.",
|
|
719
|
+
"delivery.failed": "A call's answers could not be placed in the caller's mailbox yet. Error class only.",
|
|
720
|
+
"retention.failed": "An old call could not be removed.",
|
|
721
|
+
"sweep.failed": "A running call's caller could not be checked; the next sweep looks again."
|
|
722
|
+
}
|
|
723
|
+
},
|
|
713
724
|
"native-agent.opencode": {
|
|
714
725
|
description: "The OpenCode provider: its request monitor, retries and agent tools.",
|
|
715
726
|
events: {
|
|
@@ -1150,6 +1161,11 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
1150
1161
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
1151
1162
|
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
1152
1163
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
1164
|
+
"notice.outbox-refused": "A leaf's outbox refused a coordinator notice, so its own coordinator takes it.",
|
|
1165
|
+
"notice.start-main-failed": "A coordinator notice could not start a main coordinator; it waits for one to open.",
|
|
1166
|
+
"notice.take-back-unread": "A notice handed back from a command node found no open coordinator here.",
|
|
1167
|
+
"limit-stop.own": "A coordinator's own usage-limit stop attempted to move it off the account.",
|
|
1168
|
+
"limit-stop.notice-failed": "A usage-limit notice could not be sent; it stays in the ledger for the next attempt.",
|
|
1153
1169
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
1154
1170
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
1155
1171
|
"wake.resolve-report-failed": "A finished Resolve tab could not be reported.",
|
|
@@ -1180,15 +1196,15 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
1180
1196
|
review: {
|
|
1181
1197
|
description: "Multi Review workflows: scheduling, graph runs and interactive fix sessions.",
|
|
1182
1198
|
events: {
|
|
1183
|
-
"fix-tab.publish-failed": "A
|
|
1199
|
+
"fix-tab.publish-failed": "A Address Findings request was delivered but its tab could not be opened; the user is told.",
|
|
1184
1200
|
"graph-run.not-started": "A workflow's graph run did not start.",
|
|
1185
1201
|
"reconcile.scan-failed": "A reconciliation scan failed; the next scan retries.",
|
|
1186
1202
|
"graph-engine.unavailable": "The graph engine is selected but unavailable, so the bespoke engine runs.",
|
|
1187
1203
|
"graph-run.cancel-failed": "Cancelling a graph run failed; the next pass projects how it ended.",
|
|
1188
1204
|
"delete.cleanup-failed": "A cleanup step after deleting a workflow failed; stale tabs reconcile away on hydration.",
|
|
1189
|
-
"fix-session.read-failed": "Reading an interactive
|
|
1205
|
+
"fix-session.read-failed": "Reading an interactive Address Findings session's state failed.",
|
|
1190
1206
|
"fix-outcome.read-failed": "Reading an interactive fix's outcome failed; it stays pending.",
|
|
1191
|
-
"fix-usage.read-failed": "Reading
|
|
1207
|
+
"fix-usage.read-failed": "Reading an Address Findings session's token usage failed.",
|
|
1192
1208
|
"result.consume-deferred": "Consuming a workflow result failed; it stays staged and is retried.",
|
|
1193
1209
|
"failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so."
|
|
1194
1210
|
}
|
|
@@ -1241,6 +1257,7 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
1241
1257
|
"agent-accounts": {
|
|
1242
1258
|
description: "Agent accounts: automatic switching, staged logins and plan usage.",
|
|
1243
1259
|
events: {
|
|
1260
|
+
"limit-stop-notice.failed": "A session's usage-limit stop could not be reported.",
|
|
1244
1261
|
"switch-notice.failed": "A notice about an automatic account switch failed; the switch stands. `audience` says whose.",
|
|
1245
1262
|
"auto-switch.check-failed": "An automatic account check failed; the next nudge retries.",
|
|
1246
1263
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
@@ -1259,6 +1276,17 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
1259
1276
|
description: "Docker containers: lifecycle, starts, staged inputs and the login files they hold.",
|
|
1260
1277
|
events: {
|
|
1261
1278
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
1279
|
+
"git-mirror.mount-unavailable": "A new container gets no project Git mirror, so its clone goes to the remote.",
|
|
1280
|
+
"git-mirror.refreshed": "A project's Git mirror was built or updated.",
|
|
1281
|
+
"git-mirror.refresh-failed": "A project's Git mirror could not be updated. New clones still work, from the mirror as it was or from the remote.",
|
|
1282
|
+
"git-mirror.low-disk": "A project's Git mirror was not updated: the disk is nearly full.",
|
|
1283
|
+
"git-mirror.oversized": "A project's repository is too large for a Git mirror, so its environments keep the blobless clone.",
|
|
1284
|
+
"git-mirror.compact-failed": "A project's Git mirror could not be compacted.",
|
|
1285
|
+
"git-mirror.state-write-failed": "A project's Git mirror could not be marked for checking.",
|
|
1286
|
+
"git-mirror.remove-failed": "A project's Git mirror could not be removed; a sweep retries.",
|
|
1287
|
+
"git-mirror.orphans-removed": "Git mirrors of removed projects were removed.",
|
|
1288
|
+
"git-mirror.clone-used": "A new environment cloned from its project's Git mirror.",
|
|
1289
|
+
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
1262
1290
|
"project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
|
|
1263
1291
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
1264
1292
|
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
@@ -1407,8 +1435,12 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
1407
1435
|
nodes: {
|
|
1408
1436
|
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
1409
1437
|
events: {
|
|
1438
|
+
...THROTTLE_LOG_EVENTS,
|
|
1410
1439
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
1411
1440
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
1441
|
+
"mail.return-deferred": "The leaf refused returned mail; it remains queued for retry.",
|
|
1442
|
+
"notices.take-back-failed": "A notice for this node's coordinator stayed in the outbox.",
|
|
1443
|
+
"notice.collected-retired": "A detached controller owned a notice with ambiguous delivery; retired without redelivery.",
|
|
1412
1444
|
"mail.delivery-deferred": "Leaf mail could not reach a coordinator yet.",
|
|
1413
1445
|
"command.post-step-failed": "A step after a routed command failed.",
|
|
1414
1446
|
"seed-files.incomplete": "Seed files for a leaf environment were not all copied.",
|
|
@@ -1924,6 +1956,7 @@ var WEB_SYNC_LOG_AREAS = defineLogAreas({
|
|
|
1924
1956
|
"web.read-coordinator": {
|
|
1925
1957
|
description: "The renderer's coalesced, bounded backend reads.",
|
|
1926
1958
|
events: {
|
|
1959
|
+
"poll.read-failed": "A coordinated poll's read failed; it stays on its interval.",
|
|
1927
1960
|
"listener.threw": "A read state listener threw.",
|
|
1928
1961
|
"read.settle-failed": "Applying a finished read's result threw."
|
|
1929
1962
|
}
|
|
@@ -7734,6 +7767,7 @@ var PROJECTION_FIELD_SET = new Set([
|
|
|
7734
7767
|
"asyncQuestionResponses",
|
|
7735
7768
|
"contextUsage",
|
|
7736
7769
|
"goal",
|
|
7770
|
+
"suborks",
|
|
7737
7771
|
"rateLimits",
|
|
7738
7772
|
"runtime",
|
|
7739
7773
|
"runtimeHealthAuthoritative",
|
|
@@ -7759,6 +7793,7 @@ var OPTIONAL_PROJECTION_FIELD_SET = new Set([
|
|
|
7759
7793
|
"asyncQuestionResponses",
|
|
7760
7794
|
"contextUsage",
|
|
7761
7795
|
"goal",
|
|
7796
|
+
"suborks",
|
|
7762
7797
|
"rateLimits",
|
|
7763
7798
|
"runtime",
|
|
7764
7799
|
"runtimeHealthAuthoritative",
|
|
@@ -8043,6 +8078,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
|
|
|
8043
8078
|
"address_multi_review",
|
|
8044
8079
|
"adopt_workflow",
|
|
8045
8080
|
"answer_worker_question",
|
|
8081
|
+
"ask_agents",
|
|
8046
8082
|
"cancel_build_pipeline",
|
|
8047
8083
|
"cancel_graph_run",
|
|
8048
8084
|
"cancel_multi_review",
|
|
@@ -10422,6 +10458,12 @@ class ToolTracker {
|
|
|
10422
10458
|
this.tools.set(toolUseId, { ...part, toolUseId, parentTaskUseId });
|
|
10423
10459
|
}
|
|
10424
10460
|
}
|
|
10461
|
+
setSubagentModel(toolUseId, modelId) {
|
|
10462
|
+
const existing = this.tools.get(toolUseId);
|
|
10463
|
+
if (existing && existing.subagentModelId !== modelId) {
|
|
10464
|
+
this.tools.set(toolUseId, { ...existing, subagentModelId: modelId });
|
|
10465
|
+
}
|
|
10466
|
+
}
|
|
10425
10467
|
updateToolResult(toolUseId, result) {
|
|
10426
10468
|
const existing = this.tools.get(toolUseId);
|
|
10427
10469
|
if (existing) {
|
|
@@ -10743,6 +10785,11 @@ function parseMessageContent(message, toolTracker, mcpServerNames, activeTaskIds
|
|
|
10743
10785
|
const providerTimestamp = typeof message.timestamp === "string" && Number.isFinite(Date.parse(message.timestamp)) ? message.timestamp : undefined;
|
|
10744
10786
|
const recordTimestamp = providerTimestamp ?? (timestampFallback && Number.isFinite(Date.parse(timestampFallback)) ? timestampFallback : undefined);
|
|
10745
10787
|
const explicitParentTaskUseId = typeof message.parent_tool_use_id === "string" && message.parent_tool_use_id.length > 0 ? message.parent_tool_use_id : undefined;
|
|
10788
|
+
if (explicitParentTaskUseId && message.type === "assistant") {
|
|
10789
|
+
const subagentModelId = normalizeBackendModelId(message.message?.model);
|
|
10790
|
+
if (subagentModelId)
|
|
10791
|
+
toolTracker?.setSubagentModel(explicitParentTaskUseId, subagentModelId);
|
|
10792
|
+
}
|
|
10746
10793
|
const isUserRecord = message.type === "user";
|
|
10747
10794
|
const rawContent = message.message?.content;
|
|
10748
10795
|
if (typeof rawContent === "string") {
|
|
@@ -14553,6 +14600,21 @@ function subagentParts(records, createdAt) {
|
|
|
14553
14600
|
}
|
|
14554
14601
|
return buildMessageParts(ordered, tracker).slice(-MAX_REHYDRATED_PARTS_PER_CALL);
|
|
14555
14602
|
}
|
|
14603
|
+
function labelSubagentModel(row, parent, records) {
|
|
14604
|
+
const index = row.parts.findIndex((part) => part.toolUseId === parent);
|
|
14605
|
+
if (index < 0 || row.parts[index].subagentModelId)
|
|
14606
|
+
return;
|
|
14607
|
+
for (let at = records.length - 1;at >= 0; at -= 1) {
|
|
14608
|
+
const record = records[at];
|
|
14609
|
+
if (record.type !== "assistant")
|
|
14610
|
+
continue;
|
|
14611
|
+
const subagentModelId = normalizeBackendModelId(record.message?.model);
|
|
14612
|
+
if (subagentModelId) {
|
|
14613
|
+
row.parts[index] = { ...row.parts[index], subagentModelId };
|
|
14614
|
+
return;
|
|
14615
|
+
}
|
|
14616
|
+
}
|
|
14617
|
+
}
|
|
14556
14618
|
async function rehydrateSubagentParts(sdk, sdkSessionId, dir, messages) {
|
|
14557
14619
|
if (typeof sdk.listSubagents !== "function" || typeof sdk.getSubagentMessages !== "function") {
|
|
14558
14620
|
return;
|
|
@@ -14576,6 +14638,7 @@ async function rehydrateSubagentParts(sdk, sdkSessionId, dir, messages) {
|
|
|
14576
14638
|
unplaced.push(entry);
|
|
14577
14639
|
continue;
|
|
14578
14640
|
}
|
|
14641
|
+
labelSubagentModel(row, entry.parent, entry.records);
|
|
14579
14642
|
if (row.parts.some((part) => part.parentTaskUseId === entry.parent))
|
|
14580
14643
|
continue;
|
|
14581
14644
|
const parts = subagentParts(entry.records, row.createdAt);
|
|
@@ -19005,6 +19068,24 @@ function createStaleMcpServerHook(mcp) {
|
|
|
19005
19068
|
};
|
|
19006
19069
|
}
|
|
19007
19070
|
|
|
19071
|
+
// ../protocol/src/suborks.ts
|
|
19072
|
+
var SUBORK_TOOL_NAME = "ask_agents";
|
|
19073
|
+
var AGENT_SUBORK_TOOL_NAMES = Object.freeze([SUBORK_TOOL_NAME]);
|
|
19074
|
+
var SUBORK_LIMITS = Object.freeze({
|
|
19075
|
+
targetsPerCall: 4,
|
|
19076
|
+
activePerSession: 8,
|
|
19077
|
+
totalPerSession: 64,
|
|
19078
|
+
retainedBatchesPerSession: 16,
|
|
19079
|
+
promptMaxBytes: 64 * 1024,
|
|
19080
|
+
nameMaxChars: 80,
|
|
19081
|
+
targetTextMaxChars: 200,
|
|
19082
|
+
storedAnswerMaxBytes: 64 * 1024,
|
|
19083
|
+
deliveredAnswersMaxBytes: AGENT_MAIL_MAX_BODY_BYTES - 2 * 1024,
|
|
19084
|
+
lineMaxChars: 240,
|
|
19085
|
+
errorMaxChars: 1024,
|
|
19086
|
+
deadlineMs: 45 * 60000
|
|
19087
|
+
});
|
|
19088
|
+
|
|
19008
19089
|
// ../../bridges/claude-bridge/src/services/session-manager-prompt-query.ts
|
|
19009
19090
|
import { createHash as createHash11 } from "node:crypto";
|
|
19010
19091
|
|
|
@@ -19022,6 +19103,7 @@ var WORKFLOW_RESULT_KINDS = [
|
|
|
19022
19103
|
"fix-result",
|
|
19023
19104
|
"verification-result",
|
|
19024
19105
|
"pr-result",
|
|
19106
|
+
"subork-answer",
|
|
19025
19107
|
"graph-output",
|
|
19026
19108
|
"graph-template"
|
|
19027
19109
|
];
|
|
@@ -19037,7 +19119,8 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
|
|
|
19037
19119
|
"verification-result": "submit_verification_result",
|
|
19038
19120
|
"pr-result": "submit_pr_result",
|
|
19039
19121
|
"graph-output": "submit_graph_output",
|
|
19040
|
-
"graph-template": "submit_graph_template"
|
|
19122
|
+
"graph-template": "submit_graph_template",
|
|
19123
|
+
"subork-answer": "submit_subork_answer"
|
|
19041
19124
|
};
|
|
19042
19125
|
var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
|
|
19043
19126
|
var REPORT_FINDING_TOOL_NAME = "report_finding";
|
|
@@ -20179,7 +20262,12 @@ async function resolveQueryPlan(turn, sdkTextPrompt, testHooks) {
|
|
|
20179
20262
|
];
|
|
20180
20263
|
const coordinatorReadOnly = isCoordinatorReadOnlyPolicy(policy);
|
|
20181
20264
|
const grantedMcpServerNames = claudeAsksForApproval(policy, options) ? [] : claudeGrantedMcpServerNames(policy, mcpServerNames);
|
|
20182
|
-
const agentMailTools = mcpServerNames.has(AGENT_MCP_SERVER_NAME) ? [
|
|
20265
|
+
const agentMailTools = mcpServerNames.has(AGENT_MCP_SERVER_NAME) ? [
|
|
20266
|
+
...AGENT_MAIL_TOOL_NAMES,
|
|
20267
|
+
...ARTIFACT_TOOL_NAMES,
|
|
20268
|
+
...AGENT_GOAL_TOOL_NAMES,
|
|
20269
|
+
...AGENT_SUBORK_TOOL_NAMES
|
|
20270
|
+
].map((name) => `mcp__${AGENT_MCP_SERVER_NAME}__${name}`) : [];
|
|
20183
20271
|
const allowedTools = coordinatorReadOnly ? claudeReadOnlyAllowedTools({
|
|
20184
20272
|
agentMcpServerNames: mcpServerNames.has(AGENT_MCP_SERVER_NAME) ? [AGENT_MCP_SERVER_NAME] : [],
|
|
20185
20273
|
policy,
|
|
@@ -844,6 +844,7 @@ var PROJECTION_FIELD_SET = new Set([
|
|
|
844
844
|
"asyncQuestionResponses",
|
|
845
845
|
"contextUsage",
|
|
846
846
|
"goal",
|
|
847
|
+
"suborks",
|
|
847
848
|
"rateLimits",
|
|
848
849
|
"runtime",
|
|
849
850
|
"runtimeHealthAuthoritative",
|
|
@@ -869,6 +870,7 @@ var OPTIONAL_PROJECTION_FIELD_SET = new Set([
|
|
|
869
870
|
"asyncQuestionResponses",
|
|
870
871
|
"contextUsage",
|
|
871
872
|
"goal",
|
|
873
|
+
"suborks",
|
|
872
874
|
"rateLimits",
|
|
873
875
|
"runtime",
|
|
874
876
|
"runtimeHealthAuthoritative",
|
|
@@ -1463,6 +1465,7 @@ var ENVIRONMENT_LOG_AREAS = defineLogAreas({
|
|
|
1463
1465
|
"status.docker-error": "A transient Docker error stopped a status read, so the stored status is kept.",
|
|
1464
1466
|
"setup.clear-launch-failed": "A pending agent launch could not be cleared after setup failed.",
|
|
1465
1467
|
"setup.record-failure-failed": "A setup failure before its first attempt could not be recorded.",
|
|
1468
|
+
"setup.tab-publish-failed": "The setup terminal's tab could not be published.",
|
|
1466
1469
|
"lifecycle.failed": "Starting, rebuilding or recreating an environment failed; `operation` says which.",
|
|
1467
1470
|
"tab-teardown.pending": "A tab's teardown failed and stays pending; the reconcile sweep retries.",
|
|
1468
1471
|
"tab-reconcile.skipped": "Orphaned tab reconciliation was skipped because pane layouts are unreadable.",
|
|
@@ -1670,6 +1673,7 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1670
1673
|
"turn-recovery.failed": "Recovering an incomplete turn failed.",
|
|
1671
1674
|
"turn-recovery.exhausted": "A turn failed again after automatic recovery and is left for the user.",
|
|
1672
1675
|
"turn-recovery.retrying": "An incomplete or provider-failed turn is being retried automatically.",
|
|
1676
|
+
"usage-limit.notice-failed": "A usage-limit stop's outcome could not be read for its notice.",
|
|
1673
1677
|
"usage-limit.resend-failed": "Resending after a usage limit failed. An unknown send stays in the journal.",
|
|
1674
1678
|
"title.strategy-failed": "A session title strategy failed, so the next is tried. Content-free: the error can quote the prompt.",
|
|
1675
1679
|
...THROTTLE_LOG_EVENTS
|
|
@@ -1686,6 +1690,15 @@ var NATIVE_AGENT_LOG_AREAS = defineLogAreas({
|
|
|
1686
1690
|
"recover.failed": "Goals could not be recovered at startup."
|
|
1687
1691
|
}
|
|
1688
1692
|
},
|
|
1693
|
+
"native-agent.subork": {
|
|
1694
|
+
description: "Suborks: the ask_agents calls a native agent makes. Content-free.",
|
|
1695
|
+
events: {
|
|
1696
|
+
"pass.failed": "A pass over a call failed, so a later pass retries. Counts only.",
|
|
1697
|
+
"delivery.failed": "A call's answers could not be placed in the caller's mailbox yet. Error class only.",
|
|
1698
|
+
"retention.failed": "An old call could not be removed.",
|
|
1699
|
+
"sweep.failed": "A running call's caller could not be checked; the next sweep looks again."
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1689
1702
|
"native-agent.opencode": {
|
|
1690
1703
|
description: "The OpenCode provider: its request monitor, retries and agent tools.",
|
|
1691
1704
|
events: {
|
|
@@ -2126,6 +2139,11 @@ var COORDINATOR_LOG_AREAS = defineLogAreas({
|
|
|
2126
2139
|
"wake.observe-pull-request-failed": "A pull request could not be observed for status wakes.",
|
|
2127
2140
|
"wake.observe-feature-plan-failed": "A feature plan could not be observed for status wakes.",
|
|
2128
2141
|
"wake.observe-workflow-failed": "A workflow could not be observed for status wakes.",
|
|
2142
|
+
"notice.outbox-refused": "A leaf's outbox refused a coordinator notice, so its own coordinator takes it.",
|
|
2143
|
+
"notice.start-main-failed": "A coordinator notice could not start a main coordinator; it waits for one to open.",
|
|
2144
|
+
"notice.take-back-unread": "A notice handed back from a command node found no open coordinator here.",
|
|
2145
|
+
"limit-stop.own": "A coordinator's own usage-limit stop attempted to move it off the account.",
|
|
2146
|
+
"limit-stop.notice-failed": "A usage-limit notice could not be sent; it stays in the ledger for the next attempt.",
|
|
2129
2147
|
"wake.deliver-failed": "A workflow status wake could not be delivered; the next pass retries.",
|
|
2130
2148
|
"wake.waiting-check-failed": "A waiting worker could not be checked; the next pass retries.",
|
|
2131
2149
|
"wake.resolve-report-failed": "A finished Resolve tab could not be reported.",
|
|
@@ -2156,15 +2174,15 @@ var REVIEW_LOG_AREAS = defineLogAreas({
|
|
|
2156
2174
|
review: {
|
|
2157
2175
|
description: "Multi Review workflows: scheduling, graph runs and interactive fix sessions.",
|
|
2158
2176
|
events: {
|
|
2159
|
-
"fix-tab.publish-failed": "A
|
|
2177
|
+
"fix-tab.publish-failed": "A Address Findings request was delivered but its tab could not be opened; the user is told.",
|
|
2160
2178
|
"graph-run.not-started": "A workflow's graph run did not start.",
|
|
2161
2179
|
"reconcile.scan-failed": "A reconciliation scan failed; the next scan retries.",
|
|
2162
2180
|
"graph-engine.unavailable": "The graph engine is selected but unavailable, so the bespoke engine runs.",
|
|
2163
2181
|
"graph-run.cancel-failed": "Cancelling a graph run failed; the next pass projects how it ended.",
|
|
2164
2182
|
"delete.cleanup-failed": "A cleanup step after deleting a workflow failed; stale tabs reconcile away on hydration.",
|
|
2165
|
-
"fix-session.read-failed": "Reading an interactive
|
|
2183
|
+
"fix-session.read-failed": "Reading an interactive Address Findings session's state failed.",
|
|
2166
2184
|
"fix-outcome.read-failed": "Reading an interactive fix's outcome failed; it stays pending.",
|
|
2167
|
-
"fix-usage.read-failed": "Reading
|
|
2185
|
+
"fix-usage.read-failed": "Reading an Address Findings session's token usage failed.",
|
|
2168
2186
|
"result.consume-deferred": "Consuming a workflow result failed; it stays staged and is retried.",
|
|
2169
2187
|
"failure-triage.failed": "Classifying a review package's failing tests failed; the package is sealed without the triage and says so."
|
|
2170
2188
|
}
|
|
@@ -2217,6 +2235,7 @@ var AGENT_ACCOUNTS_LOG_AREAS = defineLogAreas({
|
|
|
2217
2235
|
"agent-accounts": {
|
|
2218
2236
|
description: "Agent accounts: automatic switching, staged logins and plan usage.",
|
|
2219
2237
|
events: {
|
|
2238
|
+
"limit-stop-notice.failed": "A session's usage-limit stop could not be reported.",
|
|
2220
2239
|
"switch-notice.failed": "A notice about an automatic account switch failed; the switch stands. `audience` says whose.",
|
|
2221
2240
|
"auto-switch.check-failed": "An automatic account check failed; the next nudge retries.",
|
|
2222
2241
|
"container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
|
|
@@ -2235,6 +2254,17 @@ var DOCKER_LOG_AREAS = defineLogAreas({
|
|
|
2235
2254
|
description: "Docker containers: lifecycle, starts, staged inputs and the login files they hold.",
|
|
2236
2255
|
events: {
|
|
2237
2256
|
"portable-inputs.relay-missing": "Docker is rootless and the image predates the staged-input relay, so the container cannot read them until rebuilt.",
|
|
2257
|
+
"git-mirror.mount-unavailable": "A new container gets no project Git mirror, so its clone goes to the remote.",
|
|
2258
|
+
"git-mirror.refreshed": "A project's Git mirror was built or updated.",
|
|
2259
|
+
"git-mirror.refresh-failed": "A project's Git mirror could not be updated. New clones still work, from the mirror as it was or from the remote.",
|
|
2260
|
+
"git-mirror.low-disk": "A project's Git mirror was not updated: the disk is nearly full.",
|
|
2261
|
+
"git-mirror.oversized": "A project's repository is too large for a Git mirror, so its environments keep the blobless clone.",
|
|
2262
|
+
"git-mirror.compact-failed": "A project's Git mirror could not be compacted.",
|
|
2263
|
+
"git-mirror.state-write-failed": "A project's Git mirror could not be marked for checking.",
|
|
2264
|
+
"git-mirror.remove-failed": "A project's Git mirror could not be removed; a sweep retries.",
|
|
2265
|
+
"git-mirror.orphans-removed": "Git mirrors of removed projects were removed.",
|
|
2266
|
+
"git-mirror.clone-used": "A new environment cloned from its project's Git mirror.",
|
|
2267
|
+
"git-mirror.clone-fallback": "A new environment could not clone from its project's Git mirror and cloned from the remote.",
|
|
2238
2268
|
"project-seed.refused": "A project .env, .env.local or opencode.json was not copied into a new container: a link, not a regular file, outside the project, too large or unreadable.",
|
|
2239
2269
|
"opencode.warm-incomplete": "OpenCode did not finish loading /workspace in a container.",
|
|
2240
2270
|
"lifecycle-event.reconcile-failed": "Reconciling an environment after a container start or stop event failed; the next status read retries.",
|
|
@@ -2383,8 +2413,12 @@ var NODES_LOG_AREAS = defineLogAreas({
|
|
|
2383
2413
|
nodes: {
|
|
2384
2414
|
description: "Command nodes: links, handovers, leaf mail, ticket sync and project copies.",
|
|
2385
2415
|
events: {
|
|
2416
|
+
...THROTTLE_LOG_EVENTS,
|
|
2386
2417
|
"actions.resume-failed": "Approved actions could not be resumed; a later pass retries.",
|
|
2387
2418
|
"project-copy.notify-failed": "The coordinator could not be told a project copy finished.",
|
|
2419
|
+
"mail.return-deferred": "The leaf refused returned mail; it remains queued for retry.",
|
|
2420
|
+
"notices.take-back-failed": "A notice for this node's coordinator stayed in the outbox.",
|
|
2421
|
+
"notice.collected-retired": "A detached controller owned a notice with ambiguous delivery; retired without redelivery.",
|
|
2388
2422
|
"mail.delivery-deferred": "Leaf mail could not reach a coordinator yet.",
|
|
2389
2423
|
"command.post-step-failed": "A step after a routed command failed.",
|
|
2390
2424
|
"seed-files.incomplete": "Seed files for a leaf environment were not all copied.",
|
|
@@ -2900,6 +2934,7 @@ var WEB_SYNC_LOG_AREAS = defineLogAreas({
|
|
|
2900
2934
|
"web.read-coordinator": {
|
|
2901
2935
|
description: "The renderer's coalesced, bounded backend reads.",
|
|
2902
2936
|
events: {
|
|
2937
|
+
"poll.read-failed": "A coordinated poll's read failed; it stays on its interval.",
|
|
2903
2938
|
"listener.threw": "A read state listener threw.",
|
|
2904
2939
|
"read.settle-failed": "Applying a finished read's result threw."
|
|
2905
2940
|
}
|
|
@@ -8329,6 +8364,7 @@ var WORKFLOW_RESULT_KINDS = [
|
|
|
8329
8364
|
"fix-result",
|
|
8330
8365
|
"verification-result",
|
|
8331
8366
|
"pr-result",
|
|
8367
|
+
"subork-answer",
|
|
8332
8368
|
"graph-output",
|
|
8333
8369
|
"graph-template"
|
|
8334
8370
|
];
|
|
@@ -8344,7 +8380,8 @@ var WORKFLOW_RESULT_TOOL_NAMES = {
|
|
|
8344
8380
|
"verification-result": "submit_verification_result",
|
|
8345
8381
|
"pr-result": "submit_pr_result",
|
|
8346
8382
|
"graph-output": "submit_graph_output",
|
|
8347
|
-
"graph-template": "submit_graph_template"
|
|
8383
|
+
"graph-template": "submit_graph_template",
|
|
8384
|
+
"subork-answer": "submit_subork_answer"
|
|
8348
8385
|
};
|
|
8349
8386
|
var WORKFLOW_RESULT_VALIDATION_TOOL_NAME = "validate_workflow_result";
|
|
8350
8387
|
var WORKFLOW_RESULT_KEY_MAX_LENGTH = 128;
|
|
@@ -16271,6 +16308,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
|
|
|
16271
16308
|
"address_multi_review",
|
|
16272
16309
|
"adopt_workflow",
|
|
16273
16310
|
"answer_worker_question",
|
|
16311
|
+
"ask_agents",
|
|
16274
16312
|
"cancel_build_pipeline",
|
|
16275
16313
|
"cancel_graph_run",
|
|
16276
16314
|
"cancel_multi_review",
|
|
@@ -18716,6 +18754,24 @@ async function readRepositoryInstructions(cwd, maxBytes = MAX_REPOSITORY_INSTRUC
|
|
|
18716
18754
|
}
|
|
18717
18755
|
}
|
|
18718
18756
|
|
|
18757
|
+
// ../protocol/src/suborks.ts
|
|
18758
|
+
var SUBORK_TOOL_NAME = "ask_agents";
|
|
18759
|
+
var AGENT_SUBORK_TOOL_NAMES = Object.freeze([SUBORK_TOOL_NAME]);
|
|
18760
|
+
var SUBORK_LIMITS = Object.freeze({
|
|
18761
|
+
targetsPerCall: 4,
|
|
18762
|
+
activePerSession: 8,
|
|
18763
|
+
totalPerSession: 64,
|
|
18764
|
+
retainedBatchesPerSession: 16,
|
|
18765
|
+
promptMaxBytes: 64 * 1024,
|
|
18766
|
+
nameMaxChars: 80,
|
|
18767
|
+
targetTextMaxChars: 200,
|
|
18768
|
+
storedAnswerMaxBytes: 64 * 1024,
|
|
18769
|
+
deliveredAnswersMaxBytes: AGENT_MAIL_MAX_BODY_BYTES - 2 * 1024,
|
|
18770
|
+
lineMaxChars: 240,
|
|
18771
|
+
errorMaxChars: 1024,
|
|
18772
|
+
deadlineMs: 45 * 60000
|
|
18773
|
+
});
|
|
18774
|
+
|
|
18719
18775
|
// ../protocol/src/build-pipeline-key-information.ts
|
|
18720
18776
|
var KEY_INFORMATION_LIMITS = Object.freeze({
|
|
18721
18777
|
proseLength: 4000,
|
|
@@ -23602,6 +23658,7 @@ function codexAppServerConfigOverrides(env = process.env) {
|
|
|
23602
23658
|
...AGENT_MAIL_TOOL_NAMES,
|
|
23603
23659
|
...ARTIFACT_TOOL_NAMES,
|
|
23604
23660
|
...AGENT_GOAL_TOOL_NAMES,
|
|
23661
|
+
...AGENT_SUBORK_TOOL_NAMES,
|
|
23605
23662
|
...KEY_INFORMATION_TOOL_NAMES
|
|
23606
23663
|
]) {
|
|
23607
23664
|
overrides[`mcp_servers.orkestrator.tools.${name}.approval_mode`] = JSON.stringify("approve");
|
|
@@ -23776,6 +23833,7 @@ var AGENT_MAIL_TOOL_APPROVALS = Object.fromEntries([
|
|
|
23776
23833
|
...AGENT_MAIL_TOOL_NAMES,
|
|
23777
23834
|
...ARTIFACT_TOOL_NAMES,
|
|
23778
23835
|
...AGENT_GOAL_TOOL_NAMES,
|
|
23836
|
+
...AGENT_SUBORK_TOOL_NAMES,
|
|
23779
23837
|
...KEY_INFORMATION_TOOL_NAMES
|
|
23780
23838
|
].map((name) => [name, { approval_mode: "approve" }]));
|
|
23781
23839
|
var ROOT_THREAD_SOURCE_KINDS = ["cli", "vscode", "exec", "appServer", "unknown"];
|