@desplega.ai/agent-swarm 1.123.0 → 1.124.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/README.md +2 -1
- package/dist/{actions-e4c9f0xy.js → actions-z3d0fk7z.js} +6 -6
- package/dist/{app-vmvmj2v3.js → app-q2rc9tdr.js} +4 -4
- package/dist/{assistant-yn7a792a.js → assistant-3stjq7fz.js} +9 -9
- package/dist/{boot-reembed-xg1r86h2.js → boot-reembed-5867whnb.js} +3 -3
- package/dist/{boot-reembed-chxty50a.js → boot-reembed-v6r1df32.js} +4 -4
- package/dist/{boot-scrub-logs-exwddvp5.js → boot-scrub-logs-8b8jegk3.js} +2 -2
- package/dist/{cli-1592nfd6.js → cli-0925phzv.js} +1 -1
- package/dist/{cli-hbbxmhec.js → cli-2yr6edr7.js} +4 -4
- package/dist/{cli-8cq4z4x7.js → cli-3z4q09tn.js} +182 -19
- package/dist/{cli-vz9drmce.js → cli-5jn6wnd9.js} +17 -8
- package/dist/{cli-5arfywtm.js → cli-5ncdb7ff.js} +19 -9
- package/dist/{cli-3tv9z4wx.js → cli-92bqgbgy.js} +1 -1
- package/dist/{cli-fjf04hpa.js → cli-dq2ssyf0.js} +48 -56
- package/dist/{cli-mngsj9fx.js → cli-gkvf8d83.js} +1 -1
- package/dist/{cli-mepk1j0t.js → cli-gzjsamwc.js} +2 -2
- package/dist/{cli-c9m59f83.js → cli-h89g0qrd.js} +1 -1
- package/dist/{cli-n8mf7x4b.js → cli-jp4mdj9d.js} +2 -2
- package/dist/{cli-822d4bjk.js → cli-kk58tg33.js} +7 -7
- package/dist/{cli-9hj1adgp.js → cli-mcez7z4p.js} +1 -1
- package/dist/{cli-byv3720g.js → cli-mmk5vagg.js} +2 -2
- package/dist/{cli-zdp11t8m.js → cli-p0ec4vv6.js} +1 -1
- package/dist/{cli-h2say6xk.js → cli-p0zgv8pj.js} +3 -1
- package/dist/{cli-8ef5ky75.js → cli-perb20ma.js} +1 -1
- package/dist/{cli-zkj6f2sk.js → cli-qf7acvyr.js} +90 -4
- package/dist/{cli-kmm1rwmp.js → cli-qwsagsmg.js} +1 -1
- package/dist/{cli-we91ywvy.js → cli-sqv6c9b8.js} +6 -6
- package/dist/{cli-np0yhmmk.js → cli-vm20sh8d.js} +3 -3
- package/dist/{cli-p11rf59d.js → cli-wn3m6q54.js} +3 -3
- package/dist/{cli-mkpf4ndf.js → cli-x268say8.js} +2976 -5621
- package/dist/{cli-ngbsk4yx.js → cli-y43n987v.js} +1 -1
- package/dist/{cli-4509mwm5.js → cli-ykthjw29.js} +8 -8
- package/dist/{cli-9eka6jwv.js → cli-zxb72ctk.js} +2 -2
- package/dist/cli.js +12 -10
- package/dist/{commands-sjk3zfyr.js → commands-sda76yn8.js} +2 -2
- package/dist/{db-2je5agjb.js → db-vn9e4rqj.js} +6 -2
- package/dist/{e2b-2s4psnbf.js → e2b-q345y8s4.js} +0 -4
- package/dist/{handlers-yzv369hf.js → handlers-xfja18ac.js} +9 -9
- package/dist/{hook-rfsj2r8x.js → hook-2medrp47.js} +1 -40
- package/dist/{http-v9rr144m.js → http-937pyjfc.js} +99 -44
- package/dist/{index-nr2199m6.js → index-2bqd2q9v.js} +11 -11
- package/dist/{index-3xtk777g.js → index-gw4en7jg.js} +9 -9
- package/dist/{index-c3tan44f.js → index-knqczmnm.js} +10 -10
- package/dist/{index-smjdc3h9.js → index-vah60vxp.js} +8 -8
- package/dist/{keepalive-5ds53bjd.js → keepalive-20rd6hxh.js} +5 -5
- package/dist/{lead-5xhez25b.js → lead-7w2k3a49.js} +21 -21
- package/dist/{maintenance-b43d24q6.js → maintenance-p3x918yw.js} +4 -4
- package/dist/{oauth-refresh-sweep-qe286vn2.js → oauth-refresh-sweep-shm0nzm4.js} +4 -4
- package/dist/{onboard-c4r3ds3z.js → onboard-py9dnf54.js} +6 -2
- package/dist/{otel-impl-nv3rjw61.js → otel-impl-7yjkfg68.js} +1 -1
- package/dist/{pi-mono-adapter-2syx1x4d.js → pi-mono-adapter-z6h98fva.js} +4 -38
- package/dist/{pricing-refresh-5ct2wp4k.js → pricing-refresh-3snb6370.js} +4 -4
- package/dist/{rbac-roles-m502w0qv.js → rbac-roles-5e72bbpk.js} +3 -3
- package/dist/{rbac-roles-b82cxpxn.js → rbac-roles-gqxdp8st.js} +4 -4
- package/dist/{seed-pricing-jhjphbf0.js → seed-pricing-bg42d7h2.js} +3 -3
- package/dist/{setup-zbaspydq.js → setup-nzk3kbbq.js} +2 -2
- package/dist/{worker-snvhpax5.js → worker-0p1jdzkm.js} +21 -21
- package/openapi.json +146 -1
- package/package.json +3 -1
- package/src/be/db.ts +81 -4
- package/src/be/models-catalog.ts +156 -0
- package/src/be/modelsdev-cache.ts +14 -1
- package/src/be/pricing-refresh.ts +2 -0
- package/src/be/scripts/typecheck.ts +17 -4
- package/src/be/seed-scripts/catalog/task-context-gathering.ts +1 -1
- package/src/commands/onboard/env-generator.ts +12 -0
- package/src/e2b/env.ts +0 -4
- package/src/hooks/hook.ts +0 -67
- package/src/http/all-routes.ts +1 -0
- package/src/http/index.ts +2 -0
- package/src/http/models-catalog.ts +65 -0
- package/src/http/workflows.ts +16 -4
- package/src/prompts/base-prompt.ts +8 -7
- package/src/prompts/session-templates.ts +106 -12
- package/src/providers/pi-mono-adapter.ts +12 -2
- package/src/providers/pi-mono-extension.ts +0 -64
- package/src/providers/pricing-sources.md +16 -1
- package/src/scripts-runtime/eval-harness.ts +18 -1
- package/src/scripts-runtime/swarm-sdk.ts +10 -0
- package/src/scripts-runtime/types/stdlib.d.ts +13 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +13 -0
- package/src/server-user.ts +4 -7
- package/src/slack/blocks.ts +21 -8
- package/src/slack/responses.ts +27 -51
- package/src/slack/watcher.ts +22 -5
- package/src/telemetry.ts +169 -3
- package/src/tests/base-prompt.test.ts +79 -0
- package/src/tests/mcp-tools-user.test.ts +62 -16
- package/src/tests/mcp-tools.test.ts +6 -3
- package/src/tests/memory-edit.test.ts +21 -4
- package/src/tests/model-groups-live-catalog.test.ts +65 -0
- package/src/tests/models-catalog.test.ts +119 -0
- package/src/tests/oauth-access-token-tool.test.ts +71 -1
- package/src/tests/pricing-refresh.test.ts +25 -0
- package/src/tests/prompt-template-session.test.ts +142 -5
- package/src/tests/rbac-charact-skills.test.ts +81 -14
- package/src/tests/script-apis-mcp.test.ts +56 -8
- package/src/tests/scripts-mcp-e2e.test.ts +157 -8
- package/src/tests/scripts-typecheck.test.ts +17 -0
- package/src/tests/sdk-allowlist.test.ts +34 -1
- package/src/tests/seed-scripts.test.ts +43 -0
- package/src/tests/slack-blocks.test.ts +2 -1
- package/src/tests/slack-inline-output.test.ts +24 -30
- package/src/tests/slack-watcher.test.ts +42 -0
- package/src/tests/steer-task-tool.test.ts +37 -8
- package/src/tests/steering-transport.test.ts +18 -3
- package/src/tests/swarm-tool-result-gate.test.ts +399 -0
- package/src/tests/task-tools-ctx.test.ts +49 -17
- package/src/tests/task-tools-ownership.test.ts +41 -13
- package/src/tests/telemetry-init.test.ts +376 -2
- package/src/tests/tool-output-agent-id.test.ts +14 -2
- package/src/tests/workflow-http-v2.test.ts +116 -0
- package/src/tools/accept-steer.ts +45 -53
- package/src/tools/cancel-task.ts +31 -41
- package/src/tools/context-diff.ts +19 -63
- package/src/tools/context-history.ts +22 -51
- package/src/tools/create-channel.ts +24 -39
- package/src/tools/create-metric.ts +19 -82
- package/src/tools/create-page.ts +20 -81
- package/src/tools/credential-bindings/tool.ts +125 -246
- package/src/tools/db-query.ts +13 -24
- package/src/tools/delete-channel.ts +25 -71
- package/src/tools/delete-page.ts +27 -75
- package/src/tools/get-metrics.ts +29 -22
- package/src/tools/get-swarm.ts +44 -15
- package/src/tools/get-task-details.ts +150 -32
- package/src/tools/get-tasks.ts +63 -29
- package/src/tools/inject-learning.ts +8 -38
- package/src/tools/join-swarm.ts +45 -47
- package/src/tools/kv/kv-delete.ts +13 -37
- package/src/tools/kv/kv-get.ts +38 -29
- package/src/tools/kv/kv-incr.ts +28 -56
- package/src/tools/kv/kv-list.ts +40 -31
- package/src/tools/kv/kv-set.ts +34 -76
- package/src/tools/list-channels.ts +24 -17
- package/src/tools/list-services.ts +37 -45
- package/src/tools/manage-user.ts +53 -66
- package/src/tools/mcp-servers/mcp-server-create.ts +19 -55
- package/src/tools/mcp-servers/mcp-server-delete.ts +9 -39
- package/src/tools/mcp-servers/mcp-server-get.ts +9 -35
- package/src/tools/mcp-servers/mcp-server-install.ts +13 -60
- package/src/tools/mcp-servers/mcp-server-list.ts +28 -26
- package/src/tools/mcp-servers/mcp-server-uninstall.ts +10 -36
- package/src/tools/mcp-servers/mcp-server-update.ts +13 -57
- package/src/tools/memory-delete.ts +16 -46
- package/src/tools/memory-edit.ts +48 -49
- package/src/tools/memory-get.ts +40 -36
- package/src/tools/memory-rate.ts +14 -44
- package/src/tools/memory-search.ts +46 -52
- package/src/tools/my-agent-info.ts +39 -33
- package/src/tools/oauth-access-token.ts +9 -24
- package/src/tools/poll-task.ts +50 -77
- package/src/tools/post-message.ts +24 -38
- package/src/tools/prompt-templates/delete.ts +16 -48
- package/src/tools/prompt-templates/get.ts +45 -42
- package/src/tools/prompt-templates/list.ts +29 -44
- package/src/tools/prompt-templates/preview.ts +14 -40
- package/src/tools/prompt-templates/set.ts +30 -52
- package/src/tools/read-messages.ts +45 -54
- package/src/tools/register-agentmail-inbox.ts +28 -84
- package/src/tools/register-kapso-number.ts +20 -50
- package/src/tools/register-service.ts +36 -44
- package/src/tools/repos/get-repos.ts +29 -21
- package/src/tools/repos/update-repo.ts +30 -27
- package/src/tools/request-human-input.ts +10 -33
- package/src/tools/resolve-user.ts +59 -16
- package/src/tools/schedules/create-schedule.ts +58 -173
- package/src/tools/schedules/delete-schedule.ts +16 -56
- package/src/tools/schedules/list-schedules.ts +41 -67
- package/src/tools/schedules/patch-schedule.ts +57 -153
- package/src/tools/schedules/run-schedule-now.ts +18 -59
- package/src/tools/schedules/update-schedule.ts +57 -153
- package/src/tools/script-apis.ts +46 -28
- package/src/tools/script-common.ts +129 -34
- package/src/tools/script-connections/tool.ts +59 -154
- package/src/tools/script-query-types.ts +43 -3
- package/src/tools/script-run.ts +41 -2
- package/src/tools/script-runs.ts +69 -1
- package/src/tools/script-search.ts +24 -1
- package/src/tools/script-upsert.ts +18 -3
- package/src/tools/send-task.ts +32 -81
- package/src/tools/skills/skill-create.ts +14 -39
- package/src/tools/skills/skill-delete.ts +14 -42
- package/src/tools/skills/skill-get-file.ts +10 -43
- package/src/tools/skills/skill-get.ts +9 -32
- package/src/tools/skills/skill-install-remote.ts +16 -52
- package/src/tools/skills/skill-install.ts +14 -52
- package/src/tools/skills/skill-list.ts +24 -26
- package/src/tools/skills/skill-publish.ts +18 -54
- package/src/tools/skills/skill-search.ts +21 -18
- package/src/tools/skills/skill-sync-remote.ts +12 -24
- package/src/tools/skills/skill-uninstall.ts +10 -26
- package/src/tools/skills/skill-update.ts +24 -81
- package/src/tools/slack-delete.ts +8 -32
- package/src/tools/slack-download-file.ts +17 -57
- package/src/tools/slack-list-channels.ts +16 -43
- package/src/tools/slack-post.ts +11 -40
- package/src/tools/slack-read.ts +33 -103
- package/src/tools/slack-reply.ts +16 -53
- package/src/tools/slack-start-thread.ts +14 -55
- package/src/tools/slack-update.ts +8 -35
- package/src/tools/slack-upload-file.ts +22 -122
- package/src/tools/steer-task.ts +22 -35
- package/src/tools/store-progress.ts +11 -26
- package/src/tools/swarm-config/delete-config.ts +19 -57
- package/src/tools/swarm-config/get-config.ts +36 -44
- package/src/tools/swarm-config/list-config.ts +36 -44
- package/src/tools/swarm-config/set-config.ts +35 -73
- package/src/tools/swarm-x.ts +20 -26
- package/src/tools/task-action.ts +26 -46
- package/src/tools/task-tool-ctx.ts +5 -13
- package/src/tools/tracker/tracker-link-task.ts +8 -22
- package/src/tools/tracker/tracker-map-agent.ts +8 -22
- package/src/tools/tracker/tracker-status.ts +27 -19
- package/src/tools/tracker/tracker-sync-status.ts +8 -18
- package/src/tools/tracker/tracker-unlink.ts +4 -16
- package/src/tools/unregister-service.ts +19 -59
- package/src/tools/update-profile.ts +60 -100
- package/src/tools/update-service-status.ts +42 -67
- package/src/tools/utils.ts +189 -8
- package/src/tools/whatsapp-message.ts +19 -32
- package/src/tools/workflows/cancel-workflow-run.ts +4 -16
- package/src/tools/workflows/create-workflow.ts +9 -38
- package/src/tools/workflows/delete-workflow.ts +5 -17
- package/src/tools/workflows/get-workflow-run.ts +41 -31
- package/src/tools/workflows/get-workflow.ts +10 -21
- package/src/tools/workflows/list-workflow-runs.ts +107 -34
- package/src/tools/workflows/list-workflows.ts +5 -17
- package/src/tools/workflows/patch-workflow-node.ts +11 -39
- package/src/tools/workflows/patch-workflow.ts +11 -36
- package/src/tools/workflows/retry-workflow-run.ts +4 -16
- package/src/tools/workflows/trigger-workflow.ts +22 -58
- package/src/tools/workflows/update-workflow.ts +10 -42
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
withSpan,
|
|
20
20
|
withSpanContext,
|
|
21
21
|
writeSkillsToFilesystem
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-x268say8.js";
|
|
23
23
|
import {
|
|
24
24
|
authJsonToCredentialSelection,
|
|
25
25
|
credentialsToAuthJson,
|
|
@@ -41,10 +41,10 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
ensure,
|
|
43
43
|
initialize
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-2yr6edr7.js";
|
|
45
45
|
import {
|
|
46
46
|
validateJsonSchema
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-kk58tg33.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey
|
|
50
50
|
} from "./cli-f14fvzag.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
resolveTaskModelSelection,
|
|
86
86
|
resolveTemplateAsync,
|
|
87
87
|
telemetry
|
|
88
|
-
} from "./cli-
|
|
88
|
+
} from "./cli-3z4q09tn.js";
|
|
89
89
|
import {
|
|
90
90
|
init_credentials,
|
|
91
91
|
resolveCredentialPools
|
|
@@ -127,10 +127,10 @@ var getBasePrompt = async (args) => {
|
|
|
127
127
|
let compositeEventType;
|
|
128
128
|
if (!hasMcp) {
|
|
129
129
|
compositeEventType = "system.session.worker.remote";
|
|
130
|
+
} else if (args.provider === "pi") {
|
|
131
|
+
compositeEventType = role === "lead" ? "system.session.lead.pi" : "system.session.worker.pi";
|
|
130
132
|
} else if (role === "lead") {
|
|
131
133
|
compositeEventType = "system.session.lead";
|
|
132
|
-
} else if (args.provider === "pi") {
|
|
133
|
-
compositeEventType = "system.session.worker.pi";
|
|
134
134
|
} else {
|
|
135
135
|
compositeEventType = "system.session.worker";
|
|
136
136
|
}
|
|
@@ -469,7 +469,7 @@ async function createProviderAdapter(provider) {
|
|
|
469
469
|
return new ClaudeAdapter;
|
|
470
470
|
}
|
|
471
471
|
case "pi": {
|
|
472
|
-
const { PiMonoAdapter } = await import("./pi-mono-adapter-
|
|
472
|
+
const { PiMonoAdapter } = await import("./pi-mono-adapter-z6h98fva.js");
|
|
473
473
|
return new PiMonoAdapter;
|
|
474
474
|
}
|
|
475
475
|
case "codex": {
|
|
@@ -1170,7 +1170,7 @@ async function checkProviderCredentials(provider, env, opts) {
|
|
|
1170
1170
|
case "opencode":
|
|
1171
1171
|
return checkOpencodeCredentials(env, opts);
|
|
1172
1172
|
case "pi": {
|
|
1173
|
-
const { checkPiMonoCredentials } = await import("./pi-mono-adapter-
|
|
1173
|
+
const { checkPiMonoCredentials } = await import("./pi-mono-adapter-z6h98fva.js");
|
|
1174
1174
|
return checkPiMonoCredentials(env, opts);
|
|
1175
1175
|
}
|
|
1176
1176
|
default:
|
package/dist/cli.js
CHANGED
|
@@ -65,7 +65,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
65
65
|
// package.json
|
|
66
66
|
var package_default = {
|
|
67
67
|
name: "@desplega.ai/agent-swarm",
|
|
68
|
-
version: "1.
|
|
68
|
+
version: "1.124.0",
|
|
69
69
|
description: "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
|
|
70
70
|
license: "MIT",
|
|
71
71
|
author: "desplega.sh <contact@desplega.sh>",
|
|
@@ -164,7 +164,9 @@ var package_default = {
|
|
|
164
164
|
format: "biome format --write src",
|
|
165
165
|
"build:binary": "bun build ./src/cli.tsx --compile --compile-exec-argv='--expose-gc' --target=bun-linux-x64 --outfile ./dist/agent-swarm",
|
|
166
166
|
"build:binary:arm64": "bun build ./src/cli.tsx --compile --compile-exec-argv='--expose-gc' --target=bun-linux-arm64 --outfile ./dist/agent-swarm",
|
|
167
|
+
"docker:build:api": "docker build -f Dockerfile -t agent-swarm-api:latest .",
|
|
167
168
|
"docker:build:worker": "docker build -f Dockerfile.worker -t agent-swarm-worker:latest .",
|
|
169
|
+
"docker:build:worker:slim": "docker build -f Dockerfile.worker --target worker-slim -t agent-swarm-worker:slim .",
|
|
168
170
|
"docker:run:worker": "docker run --rm -it --env-file .env.docker -p 3202:3000 -v ./logs:/logs -v ./work/shared:/workspace/shared -v ./work/worker-1:/workspace/personal agent-swarm-worker:latest",
|
|
169
171
|
"docker:run:lead": "docker run --rm -it --env-file .env.docker-lead -e AGENT_ROLE=lead -p 3201:3000 -v ./logs:/logs -v ./work/shared:/workspace/shared -v ./work/lead:/workspace/personal agent-swarm-worker:latest",
|
|
170
172
|
"deploy:install": "bun deploy/install.ts",
|
|
@@ -660,7 +662,7 @@ function McpServer({ port, apiKey, dbPath }) {
|
|
|
660
662
|
if (dbPath) {
|
|
661
663
|
process.env.DATABASE_PATH = dbPath;
|
|
662
664
|
}
|
|
663
|
-
import("./http-
|
|
665
|
+
import("./http-937pyjfc.js").then(() => {
|
|
664
666
|
setStatus("running");
|
|
665
667
|
}).catch((err) => {
|
|
666
668
|
setStatus("error");
|
|
@@ -746,7 +748,7 @@ function WorkerRunner({
|
|
|
746
748
|
}) {
|
|
747
749
|
const { exit } = use_app_default();
|
|
748
750
|
import_react.useEffect(() => {
|
|
749
|
-
import("./worker-
|
|
751
|
+
import("./worker-0p1jdzkm.js").then(({ runWorker }) => runWorker({
|
|
750
752
|
prompt: prompt || undefined,
|
|
751
753
|
yolo,
|
|
752
754
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -763,7 +765,7 @@ function WorkerRunner({
|
|
|
763
765
|
function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalArgs }) {
|
|
764
766
|
const { exit } = use_app_default();
|
|
765
767
|
import_react.useEffect(() => {
|
|
766
|
-
import("./lead-
|
|
768
|
+
import("./lead-7w2k3a49.js").then(({ runLead }) => runLead({
|
|
767
769
|
prompt: prompt || undefined,
|
|
768
770
|
yolo,
|
|
769
771
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -803,8 +805,8 @@ function LazyComponent({
|
|
|
803
805
|
}
|
|
804
806
|
return import_react.createElement(Component, props);
|
|
805
807
|
}
|
|
806
|
-
var loadOnboard = () => import("./onboard-
|
|
807
|
-
var loadConnect = () => import("./setup-
|
|
808
|
+
var loadOnboard = () => import("./onboard-py9dnf54.js").then(({ Onboard }) => Onboard);
|
|
809
|
+
var loadConnect = () => import("./setup-nzk3kbbq.js").then(({ Setup }) => Setup);
|
|
808
810
|
function UnknownCommand({ command }) {
|
|
809
811
|
const { exit } = use_app_default();
|
|
810
812
|
import_react.useEffect(() => {
|
|
@@ -917,7 +919,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
917
919
|
}
|
|
918
920
|
process.exit(0);
|
|
919
921
|
} else if (args.command === "hook") {
|
|
920
|
-
const { runHook } = await import("./hook-
|
|
922
|
+
const { runHook } = await import("./hook-2medrp47.js");
|
|
921
923
|
await runHook();
|
|
922
924
|
} else if (args.command === "artifact") {
|
|
923
925
|
const artifactArgs = process.argv.slice(process.argv.indexOf("artifact") + 1);
|
|
@@ -937,7 +939,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
937
939
|
printHelp("scripts");
|
|
938
940
|
process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
|
|
939
941
|
}
|
|
940
|
-
const { runScriptsMaintenanceCommand } = await import("./maintenance-
|
|
942
|
+
const { runScriptsMaintenanceCommand } = await import("./maintenance-p3x918yw.js");
|
|
941
943
|
await runScriptsMaintenanceCommand(scriptsArgs);
|
|
942
944
|
console.log("Scripts re-embedded.");
|
|
943
945
|
} else if (args.command === "rbac") {
|
|
@@ -947,7 +949,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
947
949
|
printHelp("rbac");
|
|
948
950
|
process.exit(args.showHelp ? 0 : 1);
|
|
949
951
|
}
|
|
950
|
-
const { runRbacCliCommand } = await import("./rbac-roles-
|
|
952
|
+
const { runRbacCliCommand } = await import("./rbac-roles-5e72bbpk.js");
|
|
951
953
|
await runRbacCliCommand(rbacArgs);
|
|
952
954
|
} else if (args.command === "codex-login") {
|
|
953
955
|
const { runCodexLogin } = await import("./codex-login-0h18cy3e.js");
|
|
@@ -961,7 +963,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
961
963
|
const setupArgs = process.argv.slice(process.argv.indexOf("claude-managed-setup") + 1);
|
|
962
964
|
await runClaudeManagedSetup(setupArgs);
|
|
963
965
|
} else if (args.command === "e2b") {
|
|
964
|
-
const { runE2BCommand } = await import("./e2b-
|
|
966
|
+
const { runE2BCommand } = await import("./e2b-q345y8s4.js");
|
|
965
967
|
const e2bArgs = process.argv.slice(process.argv.indexOf("e2b") + 1);
|
|
966
968
|
await runE2BCommand(e2bArgs);
|
|
967
969
|
} else {
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
init_db,
|
|
5
5
|
init_env_flag,
|
|
6
6
|
isEnvFlagEnabled
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-3z4q09tn.js";
|
|
8
8
|
import"./cli-z2zcxes1.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-p0zgv8pj.js";
|
|
10
10
|
import"./cli-4j2mrzag.js";
|
|
11
11
|
import"./cli-bw80ck94.js";
|
|
12
12
|
import"./cli-xz9aq0rf.js";
|
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
countScriptRunJournalSteps,
|
|
34
34
|
countScriptRuns,
|
|
35
35
|
countSessions,
|
|
36
|
+
countWorkflowRuns,
|
|
36
37
|
createAgent,
|
|
37
38
|
createAgentMailInboxMapping,
|
|
38
39
|
createApprovalRequest,
|
|
@@ -316,6 +317,7 @@ import {
|
|
|
316
317
|
listTaskTemplates,
|
|
317
318
|
listUserFavorites,
|
|
318
319
|
listWorkflowRuns,
|
|
320
|
+
listWorkflowRunsPage,
|
|
319
321
|
listWorkflows,
|
|
320
322
|
logQueries,
|
|
321
323
|
markInboxMessageDelegated,
|
|
@@ -409,9 +411,9 @@ import {
|
|
|
409
411
|
upsertSkillFiles,
|
|
410
412
|
upsertSwarmConfig,
|
|
411
413
|
withFavoriteFlags
|
|
412
|
-
} from "./cli-
|
|
414
|
+
} from "./cli-3z4q09tn.js";
|
|
413
415
|
import"./cli-z2zcxes1.js";
|
|
414
|
-
import"./cli-
|
|
416
|
+
import"./cli-p0zgv8pj.js";
|
|
415
417
|
import"./cli-4j2mrzag.js";
|
|
416
418
|
import"./cli-bw80ck94.js";
|
|
417
419
|
import"./cli-xz9aq0rf.js";
|
|
@@ -512,6 +514,7 @@ export {
|
|
|
512
514
|
markInboxMessageDelegated,
|
|
513
515
|
logQueries,
|
|
514
516
|
listWorkflows,
|
|
517
|
+
listWorkflowRunsPage,
|
|
515
518
|
listWorkflowRuns,
|
|
516
519
|
listUserFavorites,
|
|
517
520
|
listTaskTemplates,
|
|
@@ -794,6 +797,7 @@ export {
|
|
|
794
797
|
createApprovalRequest,
|
|
795
798
|
createAgentMailInboxMapping,
|
|
796
799
|
createAgent,
|
|
800
|
+
countWorkflowRuns,
|
|
797
801
|
countSessions,
|
|
798
802
|
countScriptRuns,
|
|
799
803
|
countScriptRunJournalSteps,
|
|
@@ -64,10 +64,6 @@ var DEFAULT_E2B_FORWARD_KEYS = [
|
|
|
64
64
|
"MANAGED_ENVIRONMENT_ID",
|
|
65
65
|
"MANAGED_AGENT_MODEL",
|
|
66
66
|
"MANAGED_GITHUB_TOKEN",
|
|
67
|
-
"ARCHIL_MOUNT_TOKEN",
|
|
68
|
-
"ARCHIL_REGION",
|
|
69
|
-
"ARCHIL_SHARED_DISK_NAME",
|
|
70
|
-
"ARCHIL_PERSONAL_DISK_NAME",
|
|
71
67
|
"HARNESS_PROVIDER",
|
|
72
68
|
"MODEL_OVERRIDE",
|
|
73
69
|
"STARTUP_SCRIPT_STRICT"
|
|
@@ -5,30 +5,30 @@ import {
|
|
|
5
5
|
instantFlush,
|
|
6
6
|
requestSlackThreadSteering,
|
|
7
7
|
wasEventSeen
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-sqv6c9b8.js";
|
|
9
9
|
import {
|
|
10
10
|
extractSlackMessageText,
|
|
11
11
|
extractTaskFromMessage,
|
|
12
12
|
hasOtherUserMention,
|
|
13
13
|
routeMessage
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-92bqgbgy.js";
|
|
15
15
|
import {
|
|
16
16
|
enrichSlackUserEmail,
|
|
17
17
|
resolveSlackUserId,
|
|
18
18
|
rewriteSlackMentions
|
|
19
|
-
} from "./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
} from "./cli-jp4mdj9d.js";
|
|
20
|
+
import"./cli-0925phzv.js";
|
|
21
21
|
import {
|
|
22
22
|
createTaskWithSiblingAwareness
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-qwsagsmg.js";
|
|
24
24
|
import {
|
|
25
25
|
registerTreeMessage
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-dq2ssyf0.js";
|
|
27
27
|
import"./cli-rkndnn90.js";
|
|
28
28
|
import"./cli-b0p7rfnd.js";
|
|
29
29
|
import {
|
|
30
30
|
buildTreeBlocks
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-5ncdb7ff.js";
|
|
32
32
|
import"./cli-wspgs9bt.js";
|
|
33
33
|
import"./cli-dh55d5fg.js";
|
|
34
34
|
import {
|
|
@@ -44,9 +44,9 @@ import {
|
|
|
44
44
|
isEnvFlagEnabled,
|
|
45
45
|
resolveTemplate,
|
|
46
46
|
slackContextKey
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-3z4q09tn.js";
|
|
48
48
|
import"./cli-z2zcxes1.js";
|
|
49
|
-
import"./cli-
|
|
49
|
+
import"./cli-p0zgv8pj.js";
|
|
50
50
|
import"./cli-4j2mrzag.js";
|
|
51
51
|
import"./cli-bw80ck94.js";
|
|
52
52
|
import"./cli-xz9aq0rf.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
init_package,
|
|
31
31
|
package_default
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-p0zgv8pj.js";
|
|
33
33
|
import"./cli-4j2mrzag.js";
|
|
34
34
|
import"./cli-bw80ck94.js";
|
|
35
35
|
import"./cli-xz9aq0rf.js";
|
|
@@ -60,21 +60,6 @@ function shouldShowRegistrationNudge(opts) {
|
|
|
60
60
|
return false;
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
|
-
function isOwnedSharedPath(path, agentId) {
|
|
64
|
-
const sharedCategories = ["thoughts", "memory", "downloads", "misc"];
|
|
65
|
-
return sharedCategories.some((cat) => path.startsWith(`/workspace/shared/${cat}/${agentId}/`));
|
|
66
|
-
}
|
|
67
|
-
function sharedDiskWriteWarning(agentId) {
|
|
68
|
-
return `⚠️ This write will fail: You don't have write access to this directory.
|
|
69
|
-
|
|
70
|
-
` + `On shared workspaces, each agent can only write to their own directories:
|
|
71
|
-
` + `- /workspace/shared/thoughts/${agentId}/
|
|
72
|
-
` + `- /workspace/shared/memory/${agentId}/
|
|
73
|
-
` + `- /workspace/shared/downloads/${agentId}/
|
|
74
|
-
` + `- /workspace/shared/misc/${agentId}/
|
|
75
|
-
|
|
76
|
-
` + `You CAN read any file on the shared disk. For writes, use your own subdirectory.`;
|
|
77
|
-
}
|
|
78
63
|
async function readTaskFile() {
|
|
79
64
|
const taskFilePath = process.env.TASK_FILE;
|
|
80
65
|
if (!taskFilePath) {
|
|
@@ -677,15 +662,6 @@ You do not have a pre-defined agent ID, you will receive one when you join the s
|
|
|
677
662
|
return;
|
|
678
663
|
}
|
|
679
664
|
}
|
|
680
|
-
if (process.env.ARCHIL_MOUNT_TOKEN) {
|
|
681
|
-
const preAgentId = process.env.AGENT_ID;
|
|
682
|
-
if (preAgentId && (msg.tool_name === "Write" || msg.tool_name === "Edit")) {
|
|
683
|
-
const targetPath = msg.tool_input?.file_path ?? "";
|
|
684
|
-
if (targetPath.startsWith("/workspace/shared/") && !isOwnedSharedPath(targetPath, preAgentId)) {
|
|
685
|
-
console.log(sharedDiskWriteWarning(preAgentId));
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
665
|
break;
|
|
690
666
|
}
|
|
691
667
|
case "PostToolUse":
|
|
@@ -706,21 +682,6 @@ You do not have a pre-defined agent ID, you will receive one when you join the s
|
|
|
706
682
|
console.debug("Failed to update agent activity timestamp:", e);
|
|
707
683
|
});
|
|
708
684
|
}
|
|
709
|
-
if (process.env.ARCHIL_MOUNT_TOKEN) {
|
|
710
|
-
const postAgentId = process.env.AGENT_ID;
|
|
711
|
-
if (postAgentId && (msg.tool_name === "Write" || msg.tool_name === "Edit" || msg.tool_name === "Bash")) {
|
|
712
|
-
const toolResponse = msg.tool_response;
|
|
713
|
-
const responseStr = JSON.stringify(toolResponse ?? "");
|
|
714
|
-
if (responseStr.includes("Read-only file system")) {
|
|
715
|
-
const postTargetPath = msg.tool_input?.file_path ?? "";
|
|
716
|
-
if (postTargetPath.startsWith("/workspace/shared/") && !isOwnedSharedPath(postTargetPath, postAgentId)) {
|
|
717
|
-
console.log(sharedDiskWriteWarning(postAgentId));
|
|
718
|
-
} else if (!postTargetPath) {
|
|
719
|
-
console.log(sharedDiskWriteWarning(postAgentId));
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
685
|
if (agentInfo) {
|
|
725
686
|
const toolName = msg.tool_name;
|
|
726
687
|
const toolInput = msg.tool_input;
|