@desplega.ai/agent-swarm 2.5.3 → 2.5.4
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/{acp-adapter-gr2fcyyj.js → acp-adapter-ek38cwsv.js} +4 -4
- package/dist/{actions-wv766ghf.js → actions-92mepq03.js} +17 -17
- package/dist/{amp-adapter-speb906t.js → amp-adapter-9gaxg015.js} +2 -2
- package/dist/{app-ag29n14f.js → app-ctn8gsgx.js} +3 -3
- package/dist/{assistant-3x8bz3eg.js → assistant-zyr5kz47.js} +19 -19
- package/dist/{boot-reembed-jsmfrpzf.js → boot-reembed-dwzfttdr.js} +1 -1
- package/dist/{boot-reembed-5b3d2eea.js → boot-reembed-w75maga2.js} +1 -1
- package/dist/{boot-scrub-sweep-s73gerxy.js → boot-scrub-sweep-e9kq43kf.js} +3 -3
- package/dist/{boot-seeds-5zmax2wr.js → boot-seeds-x28v3fhb.js} +4 -4
- package/dist/{claude-adapter-hswdnm3t.js → claude-adapter-f0afqnne.js} +4 -4
- package/dist/{claude-managed-adapter-cvbzj1h6.js → claude-managed-adapter-x81a7r65.js} +3 -3
- package/dist/{claude-managed-setup-3k8m3hhc.js → claude-managed-setup-bqzwjd9x.js} +1 -1
- package/dist/{claude-sdk-session-fkbyk66x.js → claude-sdk-session-7b7whkaq.js} +9307 -9254
- package/dist/{cli-a5ebc95n.js → cli-0shx9j93.js} +16 -13
- package/dist/{cli-vwn81jbs.js → cli-19202kew.js} +3 -3
- package/dist/{cli-svrj71pg.js → cli-1r5ad7j5.js} +7 -7
- package/dist/{cli-hhxjnjzs.js → cli-25n3mv5d.js} +8 -6
- package/dist/cli-2655k16q.js +140 -0
- package/dist/{cli-hcpj2xqz.js → cli-277c31dw.js} +1 -1
- package/dist/{cli-35gtk1p6.js → cli-4b2z6n0m.js} +29 -7
- package/dist/{cli-40jsnrjm.js → cli-5bnsc0e1.js} +7 -5
- package/dist/{cli-fzcn3d87.js → cli-621ce7kw.js} +1 -1
- package/dist/{cli-s49hpn37.js → cli-64mh9mf3.js} +19 -5
- package/dist/{cli-e8jyq7d8.js → cli-6a1xg1p7.js} +6 -2
- package/dist/{cli-p9rafdrb.js → cli-7p4jxgtt.js} +4 -4
- package/dist/{cli-w1zwctj2.js → cli-9j129brq.js} +9 -3
- package/dist/{cli-ce0ak9ms.js → cli-abs8ndtr.js} +11 -11
- package/dist/{cli-aecdcr77.js → cli-asq5ydm4.js} +123 -50
- package/dist/{cli-n45mr7zh.js → cli-bvpgr9ny.js} +2 -2
- package/dist/{cli-210xd1f4.js → cli-c61mbdds.js} +3 -3
- package/dist/{cli-e5bxnjps.js → cli-c952c7ac.js} +5 -5
- package/dist/{cli-p859hcc8.js → cli-dew6x255.js} +1 -1
- package/dist/{cli-tx00c0h6.js → cli-dqygeeh5.js} +17 -1
- package/dist/{cli-gpv60278.js → cli-e42vss7b.js} +2 -2
- package/dist/{cli-s53vp709.js → cli-eftzyh9y.js} +1 -1
- package/dist/{cli-3ngdk5te.js → cli-ethgy7ha.js} +1 -1
- package/dist/{cli-99xgw26r.js → cli-ff1tm9n9.js} +1 -1
- package/dist/{cli-ewm3pwbq.js → cli-g9vd9ece.js} +37 -12
- package/dist/{cli-jjznk3f7.js → cli-gbfxp48k.js} +62 -28
- package/dist/{cli-z21whrrg.js → cli-gn5af0x5.js} +14 -14
- package/dist/{cli-1fc85mvt.js → cli-gwhjmh8g.js} +4 -4
- package/dist/{cli-avdvgcay.js → cli-hh5we352.js} +24 -5
- package/dist/{cli-0ebey9hg.js → cli-j6rktc91.js} +1 -1
- package/dist/{cli-kxawjrxg.js → cli-jb30dzvk.js} +332 -36
- package/dist/{cli-25j01dpj.js → cli-jbnn4vxb.js} +3 -3
- package/dist/{cli-qzme5949.js → cli-k4tjsdx9.js} +44 -39
- package/dist/{cli-8s5wx3nz.js → cli-m4ecdxvz.js} +40 -13
- package/dist/{cli-ta8bd7th.js → cli-pzatvw94.js} +1 -1
- package/dist/{cli-p6zs9h4y.js → cli-rr7zx19j.js} +767 -249
- package/dist/{cli-502eqv93.js → cli-s682zgqz.js} +1 -1
- package/dist/{cli-fsdprwrg.js → cli-sbwsxvtd.js} +1 -1
- package/dist/{cli-0xk505e8.js → cli-sxgtf5fw.js} +1 -1
- package/dist/{cli-egjggehm.js → cli-tsma7p8v.js} +1 -1
- package/dist/{cli-qgf8emrn.js → cli-wghjkr0e.js} +5 -5
- package/dist/{cli-p0rzjkya.js → cli-wx2nj19m.js} +29 -10
- package/dist/{cli-e2ar4bp1.js → cli-x0f2v69c.js} +111 -42
- package/dist/{cli-y561h5a9.js → cli-xtrz6bzs.js} +5 -5
- package/dist/{cli-gpsz7g88.js → cli-xzfq4at3.js} +7 -7
- package/dist/cli.js +18 -18
- package/dist/{codex-adapter-n8ka66vf.js → codex-adapter-wch12q99.js} +2 -2
- package/dist/{codex-hook-e2he7aca.js → codex-hook-brpnycn5.js} +1 -1
- package/dist/{codex-session-runner-fsebts37.js → codex-session-runner-41pfcr95.js} +2 -2
- package/dist/{commands-t04rt2pc.js → commands-9849dkj6.js} +2 -2
- package/dist/{controller-rgna04r2.js → controller-ja0sd95p.js} +27 -1
- package/dist/{controllers-connect-bqm1rtft.js → controllers-connect-xp05dj6x.js} +16 -16
- package/dist/{cursor-adapter-swr2k95y.js → cursor-adapter-623qxqew.js} +1 -2
- package/dist/{db-a4m7haw0.js → db-47vj40dy.js} +3 -3
- package/dist/{db-24ck09xy.js → db-w759qmx0.js} +2 -2
- package/dist/{dispatcher-nwf9ss0q.js → dispatcher-7b8e4z2j.js} +15 -15
- package/dist/{docker-nfy2gc8t.js → docker-s84hjs91.js} +2 -2
- package/dist/{dsh-adapter-kpdnhjst.js → dsh-adapter-2ezw3xea.js} +1 -2
- package/dist/{external-channel-j1e2p34p.js → external-channel-e2s028da.js} +2 -2
- package/dist/{grok-adapter-qtjz0whk.js → grok-adapter-ys7gaqee.js} +5 -5
- package/dist/{handlers-19xr6dnz.js → handlers-wy1dr6ja.js} +18 -18
- package/dist/{heartbeat-vtesda5d.js → heartbeat-w3mntghj.js} +17 -17
- package/dist/{hook-8wqaszda.js → hook-3jjywnpb.js} +9 -3
- package/dist/{hook-b2hhj6rd.js → hook-g7kvv6x9.js} +3 -2
- package/dist/{http-mxcqhhcs.js → http-tkp7d4kb.js} +267 -75
- package/dist/{index-srg522m6.js → index-1ef1myq2.js} +15 -15
- package/dist/{index-1r8wfpzs.js → index-3n8m9ea2.js} +1 -1
- package/dist/{index-kw2mmat7.js → index-nmm79qgr.js} +17 -17
- package/dist/{index-n1vbvta9.js → index-q7m26kvs.js} +24 -22
- package/dist/{index-spwxjgay.js → index-xdaahthb.js} +15 -15
- package/dist/{keepalive-dsd8rtgx.js → keepalive-v4ta8wgg.js} +3 -3
- package/dist/{lead-zyerk1x2.js → lead-sawnyqxk.js} +33 -33
- package/dist/{maintenance-jqmqwnet.js → maintenance-84n1ex21.js} +1 -1
- package/dist/{oauth-refresh-sweep-q2c3bnvm.js → oauth-refresh-sweep-vjnnandw.js} +2 -2
- package/dist/{onboard-w4yd7s8t.js → onboard-sfmpe4np.js} +2 -2
- package/dist/{opencode-adapter-9tppvxar.js → opencode-adapter-jmpst4q4.js} +3 -3
- package/dist/{otel-impl-f36byzbd.js → otel-impl-v6cc0zve.js} +1 -1
- package/dist/{pi-mono-adapter-tqsge1ay.js → pi-mono-adapter-fk8fkcf6.js} +33 -6
- package/dist/{pricing-refresh-xvak5p4v.js → pricing-refresh-fsk1e1zc.js} +3 -3
- package/dist/{rbac-roles-gfn30fb8.js → rbac-roles-prmkdnkw.js} +2 -2
- package/dist/{rbac-roles-682k2mt5.js → rbac-roles-zxmxqa39.js} +1 -1
- package/dist/{render-v2-hgytz8nn.js → render-v2-pjwxvnkw.js} +3 -3
- package/dist/{resume-2dvq348g.js → resume-frdtgfa0.js} +8 -6
- package/dist/{session-access-7f21ekq9.js → session-access-fpez4y5q.js} +4 -4
- package/dist/{setup-epffxtbk.js → setup-mq6m3m8q.js} +1 -1
- package/dist/{work-objects-xz1a5rqk.js → work-objects-kfahhjsq.js} +18 -18
- package/dist/{worker-42t8emjt.js → worker-v5e5rxj3.js} +33 -33
- package/openapi.json +68 -3
- package/package.json +5 -5
- package/plugin/commands/create-pr.md +2 -2
- package/plugin/pi-skills/create-pr/SKILL.md +2 -2
- package/src/be/db/approvals.ts +48 -0
- package/src/be/db/tasks/write.ts +15 -5
- package/src/be/db/workflow-idempotency.ts +183 -0
- package/src/be/db/workflow-runs.ts +318 -7
- package/src/be/db.ts +67 -17
- package/src/be/migrations/242_workflow_idempotency_keys.sql +40 -0
- package/src/be/sealed-json.ts +1 -0
- package/src/be/seed-scripts/catalog/compound-insights.inline.ts +2 -2
- package/src/be/seed-scripts/catalog/compound-insights.ts +2 -2
- package/src/be/seed-skills/bundled-files.generated.json +1 -1
- package/src/be/sql-connections.ts +7 -1
- package/src/be/swarm-config-guard.ts +2 -0
- package/src/be/users.ts +9 -0
- package/src/commands/controller.ts +33 -0
- package/src/commands/runner.ts +6 -2
- package/src/extensions/apply-task-create.ts +57 -11
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/extensions/contract.ts +25 -0
- package/src/extensions/dispatcher.ts +4 -0
- package/src/extensions/post-bridge.ts +8 -0
- package/src/hooks/context-bound-note.ts +196 -0
- package/src/hooks/hook.ts +12 -0
- package/src/http/config.ts +48 -16
- package/src/http/idempotency-key.ts +117 -0
- package/src/http/workflows.ts +129 -24
- package/src/prompts/context-bound-note.ts +48 -0
- package/src/prompts/session-templates.ts +25 -1
- package/src/providers/amp-adapter.ts +30 -8
- package/src/providers/claude-adapter.ts +29 -4
- package/src/providers/claude-managed-adapter.ts +26 -0
- package/src/providers/claude-sdk-session.ts +10 -0
- package/src/providers/claude-session-events.ts +13 -0
- package/src/providers/codex-adapter.ts +12 -0
- package/src/providers/opencode-adapter.ts +18 -0
- package/src/providers/pi-mono-adapter.ts +35 -0
- package/src/runtime-providers/docker.ts +6 -2
- package/src/scripts-runtime/types/swarm-extension.d.ts +35 -0
- package/src/tests/amp-adapter.test.ts +97 -0
- package/src/tests/approval-requests.test.ts +10 -7
- package/src/tests/approval-sweeps.test.ts +12 -6
- package/src/tests/base-prompt.test.ts +1 -1
- package/src/tests/claude-hook-output.test.ts +79 -1
- package/src/tests/claude-managed-adapter.test.ts +275 -0
- package/src/tests/codex-adapter.test.ts +163 -0
- package/src/tests/context-bound-note.test.ts +269 -0
- package/src/tests/extensions-pre-task.test.ts +273 -0
- package/src/tests/fetch-resolved-env.test.ts +17 -0
- package/src/tests/fixtures/extensions/record-blocks/hooks.ts +10 -0
- package/src/tests/fixtures/extensions/record-blocks/manifest.json +7 -0
- package/src/tests/fixtures/fake-amp.ts +22 -8
- package/src/tests/fixtures/held-template-render.ts +42 -0
- package/src/tests/fixtures/workflow-idempotency-trigger.child.ts +73 -0
- package/src/tests/openapi-route-headers.test.ts +2 -0
- package/src/tests/opencode-adapter.test.ts +134 -0
- package/src/tests/pi-mono-adapter.test.ts +105 -0
- package/src/tests/prompt-template-session.test.ts +4 -3
- package/src/tests/runner-push-delivery.test.ts +25 -0
- package/src/tests/runtime-controller-liveness.test.ts +133 -0
- package/src/tests/runtime-providers-docker.test.ts +2 -0
- package/src/tests/script-connections.test.ts +3 -0
- package/src/tests/script-run-config-scope.test.ts +91 -3
- package/src/tests/session-logs.test.ts +70 -0
- package/src/tests/sessions-tree.test.ts +37 -0
- package/src/tests/workflow-cascade-cancel.test.ts +1169 -0
- package/src/tests/workflow-foreach-supersede-retry.test.ts +488 -0
- package/src/tests/workflow-idempotency.test.ts +915 -0
- package/src/tools/workflows/cancel-workflow-run.ts +1 -1
- package/src/utils/context-window.ts +8 -6
- package/src/workflows/approval-cancel.ts +15 -13
- package/src/workflows/approval-notifications.ts +5 -1
- package/src/workflows/checkpoint.ts +6 -3
- package/src/workflows/engine.ts +30 -8
- package/src/workflows/executors/foreach.ts +2 -2
- package/src/workflows/foreach-driver.ts +10 -3
- package/src/workflows/foreach-join.ts +29 -6
- package/src/workflows/recovery.ts +6 -1
- package/src/workflows/resume.ts +168 -56
- package/src/workflows/retry-poller.ts +49 -3
- package/src/workflows/task-step-routing.ts +29 -7
- package/templates/ai-toolbox.manifest.json +8 -8
- package/templates/community/open-prompt-showreel/PLAYBOOK.md +5 -6
- package/templates/community/open-prompt-showreel/lead-prompt.md +1 -1
- package/templates/community/open-prompt-showreel/skills/open-prompt-showreel/SKILL.md +4 -4
- package/templates/skills/agent-browser/SKILL.md +4 -4
- package/templates/skills/agent-browser/content.md +4 -4
- package/templates/skills/code-quality/config.json +1 -1
- package/templates/skills/code-quality/content.md +2 -2
- package/templates/skills/delegate-work/content.md +29 -25
- package/templates/skills/delegate-work/files/scripts/codex-exec.sh +5 -5
- package/templates/skills/qa/content.md +2 -2
- package/templates/skills/researching/content.md +2 -0
- package/templates/skills/work-on-task/SKILL.md +1 -1
- package/templates/skills/work-on-task/content.md +1 -1
package/dist/cli.js
CHANGED
|
@@ -53,7 +53,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
53
53
|
// package.json
|
|
54
54
|
var package_default = {
|
|
55
55
|
name: "@desplega.ai/agent-swarm",
|
|
56
|
-
version: "2.5.
|
|
56
|
+
version: "2.5.4",
|
|
57
57
|
description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
|
|
58
58
|
keywords: [
|
|
59
59
|
"agent-swarm.dev",
|
|
@@ -107,7 +107,7 @@ var package_default = {
|
|
|
107
107
|
config: {
|
|
108
108
|
name: "agent-swarm"
|
|
109
109
|
},
|
|
110
|
-
packageManager: "bun@1.4.
|
|
110
|
+
packageManager: "bun@1.4.4",
|
|
111
111
|
workspaces: [
|
|
112
112
|
"apps/ui",
|
|
113
113
|
"apps/templates-ui",
|
|
@@ -252,10 +252,10 @@ var package_default = {
|
|
|
252
252
|
bun: ">=1.3.12"
|
|
253
253
|
},
|
|
254
254
|
dependencies: {
|
|
255
|
-
"@agentclientprotocol/sdk": "2.0.
|
|
255
|
+
"@agentclientprotocol/sdk": "2.0.2",
|
|
256
256
|
"@ai-sdk/openai": "^3.0.41",
|
|
257
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
258
|
-
"@anthropic-ai/sdk": "^1.
|
|
257
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.310",
|
|
258
|
+
"@anthropic-ai/sdk": "^1.3.0",
|
|
259
259
|
"@asteasolutions/zod-to-openapi": "^8.0.0",
|
|
260
260
|
"@aws-sdk/client-bedrock": "3.1048.0",
|
|
261
261
|
"@chat-adapter/discord": "4.41.1",
|
|
@@ -836,7 +836,7 @@ function McpServer({ port, apiKey, dbPath }) {
|
|
|
836
836
|
if (dbPath) {
|
|
837
837
|
process.env.DATABASE_PATH = dbPath;
|
|
838
838
|
}
|
|
839
|
-
import("./http-
|
|
839
|
+
import("./http-tkp7d4kb.js").then(() => {
|
|
840
840
|
setStatus("running");
|
|
841
841
|
}).catch((err) => {
|
|
842
842
|
setStatus("error");
|
|
@@ -923,7 +923,7 @@ function WorkerRunner({
|
|
|
923
923
|
const { exit } = use_app_default();
|
|
924
924
|
import_react.useEffect(() => {
|
|
925
925
|
installConsoleScrub();
|
|
926
|
-
import("./worker-
|
|
926
|
+
import("./worker-v5e5rxj3.js").then(({ runWorker }) => runWorker({
|
|
927
927
|
prompt: prompt || undefined,
|
|
928
928
|
yolo,
|
|
929
929
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -941,7 +941,7 @@ function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalAr
|
|
|
941
941
|
const { exit } = use_app_default();
|
|
942
942
|
import_react.useEffect(() => {
|
|
943
943
|
installConsoleScrub();
|
|
944
|
-
import("./lead-
|
|
944
|
+
import("./lead-sawnyqxk.js").then(({ runLead }) => runLead({
|
|
945
945
|
prompt: prompt || undefined,
|
|
946
946
|
yolo,
|
|
947
947
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -981,8 +981,8 @@ function LazyComponent({
|
|
|
981
981
|
}
|
|
982
982
|
return import_react.createElement(Component, props);
|
|
983
983
|
}
|
|
984
|
-
var loadOnboard = () => import("./onboard-
|
|
985
|
-
var loadConnect = () => import("./setup-
|
|
984
|
+
var loadOnboard = () => import("./onboard-sfmpe4np.js").then(({ Onboard }) => Onboard);
|
|
985
|
+
var loadConnect = () => import("./setup-mq6m3m8q.js").then(({ Setup }) => Setup);
|
|
986
986
|
function UnknownCommand({ command }) {
|
|
987
987
|
const { exit } = use_app_default();
|
|
988
988
|
import_react.useEffect(() => {
|
|
@@ -1112,14 +1112,14 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
1112
1112
|
}
|
|
1113
1113
|
process.exit(0);
|
|
1114
1114
|
} else if (args.command === "hook") {
|
|
1115
|
-
const { runHook } = await import("./hook-
|
|
1115
|
+
const { runHook } = await import("./hook-g7kvv6x9.js");
|
|
1116
1116
|
await runHook();
|
|
1117
1117
|
} else if (args.command === "codex-hook") {
|
|
1118
|
-
const { handleCodexHook } = await import("./codex-hook-
|
|
1118
|
+
const { handleCodexHook } = await import("./codex-hook-brpnycn5.js");
|
|
1119
1119
|
await handleCodexHook();
|
|
1120
1120
|
process.exit(process.exitCode ?? 0);
|
|
1121
1121
|
} else if (args.command === "session-summary-stdin") {
|
|
1122
|
-
const { runSessionSummaryFromStdin } = await import("./hook-
|
|
1122
|
+
const { runSessionSummaryFromStdin } = await import("./hook-3jjywnpb.js");
|
|
1123
1123
|
await runSessionSummaryFromStdin();
|
|
1124
1124
|
process.exit(process.exitCode ?? 0);
|
|
1125
1125
|
} else if (args.command === "x") {
|
|
@@ -1132,7 +1132,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
1132
1132
|
printHelp("scripts");
|
|
1133
1133
|
process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
|
|
1134
1134
|
}
|
|
1135
|
-
const { runScriptsMaintenanceCommand } = await import("./maintenance-
|
|
1135
|
+
const { runScriptsMaintenanceCommand } = await import("./maintenance-84n1ex21.js");
|
|
1136
1136
|
await runScriptsMaintenanceCommand(scriptsArgs);
|
|
1137
1137
|
console.log("Scripts re-embedded.");
|
|
1138
1138
|
} else if (args.command === "rbac") {
|
|
@@ -1142,17 +1142,17 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
1142
1142
|
printHelp("rbac");
|
|
1143
1143
|
process.exit(args.showHelp ? 0 : 1);
|
|
1144
1144
|
}
|
|
1145
|
-
const { runRbacCliCommand } = await import("./rbac-roles-
|
|
1145
|
+
const { runRbacCliCommand } = await import("./rbac-roles-zxmxqa39.js");
|
|
1146
1146
|
await runRbacCliCommand(rbacArgs);
|
|
1147
1147
|
} else if (args.command === "codex-login") {
|
|
1148
1148
|
const { runCodexLogin } = await import("./codex-login-rn7c5gxt.js");
|
|
1149
1149
|
const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
|
|
1150
1150
|
await runCodexLogin(codexLoginArgs);
|
|
1151
1151
|
} else if (args.command === "codex-session-runner") {
|
|
1152
|
-
const { runCodexSessionRunner } = await import("./codex-session-runner-
|
|
1152
|
+
const { runCodexSessionRunner } = await import("./codex-session-runner-41pfcr95.js");
|
|
1153
1153
|
await runCodexSessionRunner();
|
|
1154
1154
|
} else if (args.command === "claude-managed-setup") {
|
|
1155
|
-
const { runClaudeManagedSetup } = await import("./claude-managed-setup-
|
|
1155
|
+
const { runClaudeManagedSetup } = await import("./claude-managed-setup-bqzwjd9x.js");
|
|
1156
1156
|
const setupArgs = process.argv.slice(process.argv.indexOf("claude-managed-setup") + 1);
|
|
1157
1157
|
await runClaudeManagedSetup(setupArgs);
|
|
1158
1158
|
} else if (args.command === "worker-token") {
|
|
@@ -1164,7 +1164,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
1164
1164
|
const e2bArgs = process.argv.slice(process.argv.indexOf("e2b") + 1);
|
|
1165
1165
|
await runE2BCommand(e2bArgs);
|
|
1166
1166
|
} else if (args.command === "controller") {
|
|
1167
|
-
const { runController } = await import("./controller-
|
|
1167
|
+
const { runController } = await import("./controller-ja0sd95p.js");
|
|
1168
1168
|
await runController(process.argv.slice(process.argv.indexOf("controller") + 1));
|
|
1169
1169
|
} else {
|
|
1170
1170
|
render_default(/* @__PURE__ */ jsx_dev_runtime.jsxDEV(App, {
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
checkCodexCredentials2,
|
|
3
3
|
createInProcessCodexSession2,
|
|
4
4
|
CodexAdapter2
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-64mh9mf3.js";
|
|
6
6
|
import"./cli-4zsenjhy.js";
|
|
7
7
|
import"./cli-kr5tjjtz.js";
|
|
8
8
|
import"./cli-vbhgkw9h.js";
|
|
9
9
|
import"./cli-4bd1rck6.js";
|
|
10
10
|
import"./cli-jc1g9ndz.js";
|
|
11
|
-
import"./cli-a5ebc95n.js";
|
|
12
11
|
import"./cli-mmhj8vd7.js";
|
|
13
12
|
import"./cli-0726awxw.js";
|
|
13
|
+
import"./cli-2655k16q.js";
|
|
14
14
|
import"./cli-gx4rm0qx.js";
|
|
15
15
|
import"./cli-bn0rewsy.js";
|
|
16
16
|
import"./cli-3h26v7yj.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import"./cli-3h26v7yj.js";
|
|
2
|
-
import"./cli-
|
|
2
|
+
import"./cli-2655k16q.js";
|
|
3
3
|
import"./cli-gx4rm0qx.js";
|
|
4
4
|
import"./cli-445c1vp7.js";
|
|
5
5
|
import"./cli-qqzmjxkf.js";
|
|
@@ -11,7 +11,7 @@ import"./cli-e8xyjvfc.js";
|
|
|
11
11
|
import"./cli-3ggwdtb0.js";
|
|
12
12
|
import {
|
|
13
13
|
createInProcessCodexSession2
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-64mh9mf3.js";
|
|
15
15
|
import"./cli-jc1g9ndz.js";
|
|
16
16
|
import"./cli-0726awxw.js";
|
|
17
17
|
import"./cli-4bd1rck6.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
getAllAgents2,
|
|
3
3
|
getAllTasks2,
|
|
4
4
|
init_db3
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-jb30dzvk.js";
|
|
6
6
|
import {
|
|
7
7
|
EXTERNAL_CHANNEL_BLOCKED_REPLY2,
|
|
8
8
|
shouldBlockChannel2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-eftzyh9y.js";
|
|
10
10
|
import {
|
|
11
11
|
isEnvFlagEnabled,
|
|
12
12
|
init_env_flag
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BuiltinController,
|
|
3
3
|
CONTROLLER_PROTOCOL_VERSION,
|
|
4
|
+
CONTROLLER_PING_INTERVAL_MS,
|
|
4
5
|
ControllerServerMessageSchema
|
|
5
6
|
} from "./cli-6n8axjv1.js";
|
|
6
7
|
import {
|
|
7
8
|
createRuntimeProvider,
|
|
8
9
|
init_runtime_providers
|
|
9
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-dew6x255.js";
|
|
10
11
|
import {
|
|
11
12
|
RuntimeProviderKindSchema,
|
|
12
13
|
init_types
|
|
@@ -48,7 +49,9 @@ async function executeCommand(controller, command) {
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
}
|
|
52
|
+
var CONTROLLER_LIVENESS_TIMEOUT_MS = 3 * CONTROLLER_PING_INTERVAL_MS;
|
|
51
53
|
function startControllerClient(options) {
|
|
54
|
+
const livenessTimeoutMs = options.livenessTimeoutMs ?? CONTROLLER_LIVENESS_TIMEOUT_MS;
|
|
52
55
|
const url = new URL("/api/controllers/connect", options.apiUrl);
|
|
53
56
|
if (url.protocol !== "http:" && url.protocol !== "https:")
|
|
54
57
|
throw new Error("Controller API URL must use HTTP or HTTPS");
|
|
@@ -57,6 +60,7 @@ function startControllerClient(options) {
|
|
|
57
60
|
let stopped = false;
|
|
58
61
|
let socket;
|
|
59
62
|
let reconnect;
|
|
63
|
+
let liveness;
|
|
60
64
|
let attempts = 0;
|
|
61
65
|
const log = (message) => console.log(scrubSecrets(`[runtime-controller] ${message}`));
|
|
62
66
|
const connect = () => {
|
|
@@ -68,7 +72,27 @@ function startControllerClient(options) {
|
|
|
68
72
|
socket = ws;
|
|
69
73
|
let controller;
|
|
70
74
|
let connectedAt = 0;
|
|
75
|
+
let lastTrafficAt = Date.now();
|
|
76
|
+
const markAlive = () => {
|
|
77
|
+
lastTrafficAt = Date.now();
|
|
78
|
+
};
|
|
79
|
+
ws.addEventListener("ping", markAlive);
|
|
80
|
+
ws.addEventListener("pong", markAlive);
|
|
81
|
+
clearInterval(liveness);
|
|
82
|
+
liveness = setInterval(() => {
|
|
83
|
+
if (socket !== ws)
|
|
84
|
+
return;
|
|
85
|
+
if (Date.now() - lastTrafficAt > livenessTimeoutMs) {
|
|
86
|
+
log(`No traffic for ${livenessTimeoutMs}ms. Dropping the connection`);
|
|
87
|
+
clearInterval(liveness);
|
|
88
|
+
ws.terminate();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (ws.readyState === WebSocket.OPEN)
|
|
92
|
+
ws.ping();
|
|
93
|
+
}, Math.ceil(livenessTimeoutMs / 3));
|
|
71
94
|
ws.onmessage = (event) => {
|
|
95
|
+
markAlive();
|
|
72
96
|
(async () => {
|
|
73
97
|
const message = ControllerServerMessageSchema.parse(JSON.parse(String(event.data)));
|
|
74
98
|
if (message.type === "welcome") {
|
|
@@ -108,6 +132,7 @@ function startControllerClient(options) {
|
|
|
108
132
|
ws.onclose = (event) => {
|
|
109
133
|
if (stopped || socket !== ws)
|
|
110
134
|
return;
|
|
135
|
+
clearInterval(liveness);
|
|
111
136
|
if (event.code === 1008) {
|
|
112
137
|
stopped = true;
|
|
113
138
|
log("Controller access rejected or token revoked. Mint a token and restart this process.");
|
|
@@ -133,6 +158,7 @@ function startControllerClient(options) {
|
|
|
133
158
|
stopped = true;
|
|
134
159
|
if (reconnect)
|
|
135
160
|
clearTimeout(reconnect);
|
|
161
|
+
clearInterval(liveness);
|
|
136
162
|
socket?.close(1000, "Controller stopped");
|
|
137
163
|
}
|
|
138
164
|
};
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
isRuntimePoolsEnabled,
|
|
7
7
|
init_runtime_pools_flag,
|
|
8
8
|
init_db3
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-jb30dzvk.js";
|
|
10
10
|
import {
|
|
11
11
|
CONTROLLER_PROTOCOL_VERSION,
|
|
12
12
|
CONTROLLER_PING_INTERVAL_MS,
|
|
13
13
|
ControllerClientMessageSchema
|
|
14
14
|
} from "./cli-6n8axjv1.js";
|
|
15
15
|
import"./cli-e8xyjvfc.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-gbfxp48k.js";
|
|
17
17
|
import {
|
|
18
18
|
getRuntimeController2,
|
|
19
19
|
init_db
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-19202kew.js";
|
|
21
21
|
import {
|
|
22
22
|
remoteControllerSession,
|
|
23
23
|
installRemoteController,
|
|
@@ -26,32 +26,32 @@ import {
|
|
|
26
26
|
ensureRuntimeOwnerId,
|
|
27
27
|
reconcileRemoteProvisions,
|
|
28
28
|
reconcileControllerOrphans
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-1r5ad7j5.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveHttpRequestAuth
|
|
32
|
-
} from "./cli-
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
32
|
+
} from "./cli-asq5ydm4.js";
|
|
33
|
+
import"./cli-7p4jxgtt.js";
|
|
34
|
+
import"./cli-tsma7p8v.js";
|
|
35
35
|
import"./cli-3ggwdtb0.js";
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
36
|
+
import"./cli-abs8ndtr.js";
|
|
37
|
+
import"./cli-eftzyh9y.js";
|
|
38
38
|
import"./cli-qqzmjxkf.js";
|
|
39
39
|
import"./cli-2nf3b08t.js";
|
|
40
40
|
import"./cli-kvzgak7c.js";
|
|
41
41
|
import"./cli-445c1vp7.js";
|
|
42
42
|
import"./cli-kxpfx2xr.js";
|
|
43
43
|
import"./cli-dabehxhp.js";
|
|
44
|
-
import"./cli-
|
|
44
|
+
import"./cli-x0f2v69c.js";
|
|
45
45
|
import"./cli-9s05422w.js";
|
|
46
|
-
import"./cli-
|
|
47
|
-
import"./cli-
|
|
46
|
+
import"./cli-sbwsxvtd.js";
|
|
47
|
+
import"./cli-bvpgr9ny.js";
|
|
48
48
|
import"./cli-qz93y3x5.js";
|
|
49
|
-
import"./cli-
|
|
50
|
-
import"./cli-
|
|
49
|
+
import"./cli-ff1tm9n9.js";
|
|
50
|
+
import"./cli-c61mbdds.js";
|
|
51
51
|
import"./cli-g9ypd5en.js";
|
|
52
52
|
import {
|
|
53
53
|
route
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-gwhjmh8g.js";
|
|
55
55
|
import"./cli-3h26v7yj.js";
|
|
56
56
|
import"./cli-pasyvjmm.js";
|
|
57
57
|
import"./cli-13p25grh.js";
|
|
@@ -59,7 +59,7 @@ import"./cli-0adyhvq2.js";
|
|
|
59
59
|
import {
|
|
60
60
|
registerSessionTokenConnection,
|
|
61
61
|
init_session_token_connections
|
|
62
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-6a1xg1p7.js";
|
|
63
63
|
import"./cli-rycdaj0a.js";
|
|
64
64
|
import {
|
|
65
65
|
getApiKey,
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
createPoolAgent2,
|
|
20
20
|
loadRuntimeControllerSecrets2,
|
|
21
21
|
init_db
|
|
22
|
-
} from "./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
22
|
+
} from "./cli-19202kew.js";
|
|
23
|
+
import"./cli-6a1xg1p7.js";
|
|
24
|
+
import"./cli-jb30dzvk.js";
|
|
25
25
|
init_db();
|
|
26
26
|
|
|
27
27
|
export {
|
|
@@ -509,13 +509,13 @@ import {
|
|
|
509
509
|
countScriptRunJournalSteps2,
|
|
510
510
|
countScriptRunJournalAgentTaskSteps2,
|
|
511
511
|
init_db3
|
|
512
|
-
} from "./cli-
|
|
512
|
+
} from "./cli-jb30dzvk.js";
|
|
513
513
|
import {
|
|
514
514
|
generateDefaultClaudeMd2,
|
|
515
515
|
generateDefaultSoulMd2,
|
|
516
516
|
generateDefaultIdentityMd2,
|
|
517
517
|
generateDefaultToolsMd2
|
|
518
|
-
} from "./cli-
|
|
518
|
+
} from "./cli-e42vss7b.js";
|
|
519
519
|
init_db3();
|
|
520
520
|
|
|
521
521
|
export {
|
|
@@ -11,36 +11,36 @@ import {
|
|
|
11
11
|
listRegistered2,
|
|
12
12
|
dispatchPre2,
|
|
13
13
|
dispatchPost2
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-asq5ydm4.js";
|
|
15
15
|
import"./cli-pasyvjmm.js";
|
|
16
16
|
import"./cli-9s05422w.js";
|
|
17
17
|
import"./cli-qz93y3x5.js";
|
|
18
18
|
import"./cli-3h26v7yj.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-bvpgr9ny.js";
|
|
20
|
+
import"./cli-7p4jxgtt.js";
|
|
21
21
|
import"./cli-3ggwdtb0.js";
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
22
|
+
import"./cli-tsma7p8v.js";
|
|
23
|
+
import"./cli-c61mbdds.js";
|
|
24
|
+
import"./cli-sbwsxvtd.js";
|
|
25
25
|
import"./cli-g9ypd5en.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
26
|
+
import"./cli-x0f2v69c.js";
|
|
27
|
+
import"./cli-gbfxp48k.js";
|
|
28
28
|
import"./cli-qqzmjxkf.js";
|
|
29
29
|
import"./cli-kxpfx2xr.js";
|
|
30
30
|
import"./cli-e8xyjvfc.js";
|
|
31
|
-
import"./cli-
|
|
31
|
+
import"./cli-gwhjmh8g.js";
|
|
32
32
|
import"./cli-13p25grh.js";
|
|
33
33
|
import"./cli-0adyhvq2.js";
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
34
|
+
import"./cli-abs8ndtr.js";
|
|
35
|
+
import"./cli-eftzyh9y.js";
|
|
36
|
+
import"./cli-19202kew.js";
|
|
37
|
+
import"./cli-6a1xg1p7.js";
|
|
38
38
|
import"./cli-rycdaj0a.js";
|
|
39
39
|
import"./cli-445c1vp7.js";
|
|
40
40
|
import"./cli-kvzgak7c.js";
|
|
41
41
|
import"./cli-2nf3b08t.js";
|
|
42
|
-
import"./cli-
|
|
43
|
-
import"./cli-
|
|
42
|
+
import"./cli-ff1tm9n9.js";
|
|
43
|
+
import"./cli-jb30dzvk.js";
|
|
44
44
|
import"./cli-dabehxhp.js";
|
|
45
45
|
export {
|
|
46
46
|
ExtensionAbortedError2 as ExtensionAbortedError,
|
|
@@ -133,7 +133,7 @@ class DockerRuntimeProvider {
|
|
|
133
133
|
try {
|
|
134
134
|
await dockerApi(target, "POST", `/containers/${created.Id}/start`);
|
|
135
135
|
} catch (err) {
|
|
136
|
-
await dockerApi(target, "DELETE", `/containers/${created.Id}?force=true`).catch(() => {});
|
|
136
|
+
await dockerApi(target, "DELETE", `/containers/${created.Id}?force=true&v=true`).catch(() => {});
|
|
137
137
|
throw err;
|
|
138
138
|
}
|
|
139
139
|
return { kind: "docker", externalId: created.Id };
|
|
@@ -143,7 +143,7 @@ class DockerRuntimeProvider {
|
|
|
143
143
|
}
|
|
144
144
|
async terminate(target, handle) {
|
|
145
145
|
try {
|
|
146
|
-
await dockerApi(target, "DELETE", `/containers/${handle.externalId}?force=true`);
|
|
146
|
+
await dockerApi(target, "DELETE", `/containers/${handle.externalId}?force=true&v=true`);
|
|
147
147
|
} catch (err) {
|
|
148
148
|
if (!(err instanceof DockerApiError) || err.statusCode !== 404)
|
|
149
149
|
throw err;
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
shouldBlockChannel2,
|
|
9
9
|
leaveExternalChannel2,
|
|
10
10
|
scanExternalChannelsOnBoot2
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
} from "./cli-eftzyh9y.js";
|
|
12
|
+
import"./cli-jb30dzvk.js";
|
|
13
13
|
export {
|
|
14
14
|
EXTERNAL_CHANNEL_BLOCKED_REPLY2 as EXTERNAL_CHANNEL_BLOCKED_REPLY,
|
|
15
15
|
externalChannelToolError2 as externalChannelToolError,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkGrokCredentials2,
|
|
3
3
|
GrokAdapter2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
4
|
+
} from "./cli-621ce7kw.js";
|
|
5
|
+
import"./cli-m4ecdxvz.js";
|
|
6
|
+
import"./cli-hh5we352.js";
|
|
7
|
+
import"./cli-c952c7ac.js";
|
|
8
8
|
import"./cli-4bd1rck6.js";
|
|
9
9
|
import"./cli-jc1g9ndz.js";
|
|
10
|
-
import"./cli-a5ebc95n.js";
|
|
11
10
|
import"./cli-mmhj8vd7.js";
|
|
12
11
|
import"./cli-0726awxw.js";
|
|
12
|
+
import"./cli-2655k16q.js";
|
|
13
13
|
import"./cli-5kqnemen.js";
|
|
14
14
|
import"./cli-bn0rewsy.js";
|
|
15
15
|
import"./cli-3h26v7yj.js";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isUserAllowed2,
|
|
3
3
|
registerMessageHandler2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
4
|
+
} from "./cli-xzfq4at3.js";
|
|
5
|
+
import"./cli-wghjkr0e.js";
|
|
6
|
+
import"./cli-jbnn4vxb.js";
|
|
7
|
+
import"./cli-asq5ydm4.js";
|
|
8
8
|
import"./cli-pasyvjmm.js";
|
|
9
9
|
import"./cli-9s05422w.js";
|
|
10
10
|
import"./cli-qz93y3x5.js";
|
|
11
11
|
import"./cli-3h26v7yj.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
import"./cli-bvpgr9ny.js";
|
|
13
|
+
import"./cli-7p4jxgtt.js";
|
|
14
14
|
import"./cli-3ggwdtb0.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
15
|
+
import"./cli-tsma7p8v.js";
|
|
16
|
+
import"./cli-c61mbdds.js";
|
|
17
|
+
import"./cli-sbwsxvtd.js";
|
|
18
18
|
import"./cli-g9ypd5en.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-x0f2v69c.js";
|
|
20
|
+
import"./cli-gbfxp48k.js";
|
|
21
21
|
import"./cli-qqzmjxkf.js";
|
|
22
22
|
import"./cli-kxpfx2xr.js";
|
|
23
23
|
import"./cli-e8xyjvfc.js";
|
|
24
|
-
import"./cli-
|
|
24
|
+
import"./cli-gwhjmh8g.js";
|
|
25
25
|
import"./cli-13p25grh.js";
|
|
26
26
|
import"./cli-0adyhvq2.js";
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
27
|
+
import"./cli-abs8ndtr.js";
|
|
28
|
+
import"./cli-eftzyh9y.js";
|
|
29
|
+
import"./cli-19202kew.js";
|
|
30
|
+
import"./cli-6a1xg1p7.js";
|
|
31
31
|
import"./cli-rycdaj0a.js";
|
|
32
32
|
import"./cli-445c1vp7.js";
|
|
33
33
|
import"./cli-kvzgak7c.js";
|
|
34
34
|
import"./cli-2nf3b08t.js";
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
35
|
+
import"./cli-ff1tm9n9.js";
|
|
36
|
+
import"./cli-jb30dzvk.js";
|
|
37
37
|
import"./cli-dabehxhp.js";
|
|
38
38
|
export {
|
|
39
39
|
isUserAllowed2 as isUserAllowed,
|
|
@@ -7,40 +7,40 @@ import {
|
|
|
7
7
|
runHeartbeatSweep2,
|
|
8
8
|
startHeartbeat2,
|
|
9
9
|
stopHeartbeat2
|
|
10
|
-
} from "./cli-
|
|
11
|
-
import"./cli-
|
|
10
|
+
} from "./cli-gn5af0x5.js";
|
|
11
|
+
import"./cli-1r5ad7j5.js";
|
|
12
12
|
import"./cli-6n8axjv1.js";
|
|
13
|
-
import"./cli-
|
|
13
|
+
import"./cli-asq5ydm4.js";
|
|
14
14
|
import"./cli-pasyvjmm.js";
|
|
15
15
|
import"./cli-9s05422w.js";
|
|
16
16
|
import"./cli-qz93y3x5.js";
|
|
17
17
|
import"./cli-3h26v7yj.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
18
|
+
import"./cli-bvpgr9ny.js";
|
|
19
|
+
import"./cli-7p4jxgtt.js";
|
|
20
20
|
import"./cli-3ggwdtb0.js";
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
21
|
+
import"./cli-tsma7p8v.js";
|
|
22
|
+
import"./cli-c61mbdds.js";
|
|
23
|
+
import"./cli-sbwsxvtd.js";
|
|
24
24
|
import"./cli-g9ypd5en.js";
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
25
|
+
import"./cli-x0f2v69c.js";
|
|
26
|
+
import"./cli-gbfxp48k.js";
|
|
27
27
|
import"./cli-qqzmjxkf.js";
|
|
28
28
|
import"./cli-kxpfx2xr.js";
|
|
29
29
|
import"./cli-e8xyjvfc.js";
|
|
30
|
-
import"./cli-
|
|
30
|
+
import"./cli-gwhjmh8g.js";
|
|
31
31
|
import"./cli-13p25grh.js";
|
|
32
32
|
import"./cli-0adyhvq2.js";
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
33
|
+
import"./cli-abs8ndtr.js";
|
|
34
|
+
import"./cli-eftzyh9y.js";
|
|
35
|
+
import"./cli-19202kew.js";
|
|
36
|
+
import"./cli-6a1xg1p7.js";
|
|
37
37
|
import"./cli-rycdaj0a.js";
|
|
38
38
|
import"./cli-445c1vp7.js";
|
|
39
39
|
import"./cli-kvzgak7c.js";
|
|
40
40
|
import"./cli-2nf3b08t.js";
|
|
41
41
|
import"./cli-b2mz5mjc.js";
|
|
42
|
-
import"./cli-
|
|
43
|
-
import"./cli-
|
|
42
|
+
import"./cli-ff1tm9n9.js";
|
|
43
|
+
import"./cli-jb30dzvk.js";
|
|
44
44
|
import"./cli-dabehxhp.js";
|
|
45
45
|
export {
|
|
46
46
|
checkHeartbeatChecklist2 as checkHeartbeatChecklist,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
materializeClaudeMd,
|
|
11
11
|
stopClaudeMd
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-pzatvw94.js";
|
|
13
13
|
import"./cli-445c1vp7.js";
|
|
14
14
|
import"./cli-qqzmjxkf.js";
|
|
15
15
|
import"./cli-2nf3b08t.js";
|
|
@@ -18,6 +18,10 @@ import"./cli-kxpfx2xr.js";
|
|
|
18
18
|
import {
|
|
19
19
|
summarizeSession
|
|
20
20
|
} from "./cli-mmhj8vd7.js";
|
|
21
|
+
import {
|
|
22
|
+
contextBoundNoteThreshold,
|
|
23
|
+
injectClaimedContextBoundNote
|
|
24
|
+
} from "./cli-2655k16q.js";
|
|
21
25
|
import {
|
|
22
26
|
guardGhPrBody,
|
|
23
27
|
guardGhPrRoom
|
|
@@ -36,11 +40,11 @@ import {
|
|
|
36
40
|
warnProfileFileTooLarge,
|
|
37
41
|
buildIndependentIdentityPayloads,
|
|
38
42
|
init_profile_sync
|
|
39
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-e42vss7b.js";
|
|
40
44
|
import {
|
|
41
45
|
init_package,
|
|
42
46
|
package_default
|
|
43
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-xtrz6bzs.js";
|
|
44
48
|
import {
|
|
45
49
|
MAX_PROFILE_FILE_LENGTH,
|
|
46
50
|
getMcpBaseUrl,
|
|
@@ -813,6 +817,8 @@ You do not have a pre-defined agent ID, you will receive one when you join the s
|
|
|
813
817
|
const maybeTaskId = msg.tool_response?.task?.id;
|
|
814
818
|
outputToolContext("PostToolUse", `Task sent successfully.${maybeTaskId ? ` Task ID: ${maybeTaskId}.` : ""} Monitor progress using the get-task-details tool periodically.`);
|
|
815
819
|
}
|
|
820
|
+
} else if (!msg.agent_id) {
|
|
821
|
+
await injectClaimedContextBoundNote(process.env.TASK_FILE, contextBoundNoteThreshold(), (note) => outputToolContext("PostToolUse", note));
|
|
816
822
|
}
|
|
817
823
|
}
|
|
818
824
|
break;
|