@desplega.ai/agent-swarm 2.6.0 → 2.7.1
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 -0
- package/dist/{acp-adapter-dgfakfpw.js → acp-adapter-8dn5tq56.js} +6 -6
- package/dist/{actions-fbqma8aa.js → actions-3r6gw7dy.js} +18 -18
- package/dist/{amp-adapter-en0jy6hs.js → amp-adapter-wjtq413p.js} +3 -3
- package/dist/{anthropic-messages-txs190dd.js → anthropic-messages-n4cby1rz.js} +4 -4
- package/dist/{app-k8a5cgpp.js → app-d53yhykk.js} +3 -3
- package/dist/{assistant-a16433gr.js → assistant-ksrawj3k.js} +20 -20
- package/dist/{boot-reembed-6c1sjfnr.js → boot-reembed-fxfw17m2.js} +11 -3
- package/dist/{boot-reembed-f4nn561n.js → boot-reembed-k5y5xbj0.js} +15 -8
- package/dist/{boot-scrub-sweep-d4w9gajf.js → boot-scrub-sweep-se41j9fd.js} +3 -3
- package/dist/{boot-seeds-9bmkspyw.js → boot-seeds-r3kwwv8b.js} +4 -4
- package/dist/{claude-adapter-nys1kjxa.js → claude-adapter-ahmyf231.js} +8 -8
- package/dist/{claude-managed-adapter-55207973.js → claude-managed-adapter-5knamegc.js} +3 -3
- package/dist/{claude-managed-setup-3cm35gey.js → claude-managed-setup-mdc7dy6b.js} +3 -3
- package/dist/{claude-sdk-session-nw5yd8cp.js → claude-sdk-session-n5wen9zk.js} +8729 -8600
- package/dist/{cli-683y0b3a.js → cli-0dqtv2jg.js} +2 -2
- package/dist/{cli-a34pr3w1.js → cli-0tww7dnz.js} +2 -2
- package/dist/{cli-w2656ka1.js → cli-0w4e4v58.js} +7 -7
- package/dist/{cli-5sckpqcx.js → cli-2sjm3t4r.js} +1 -1
- package/dist/{cli-gf2850q7.js → cli-3cywb44q.js} +18 -1
- package/dist/{cli-8wkb09q5.js → cli-3k9jej0c.js} +2 -2
- package/dist/{cli-3aqd4jaa.js → cli-3v2cyqb8.js} +3 -3
- package/dist/{cli-emhjcj2y.js → cli-5qt9vzmq.js} +89 -20
- package/dist/{cli-abkm71vr.js → cli-5rp1w4cr.js} +1 -1
- package/dist/{cli-gf95q3bm.js → cli-6vwjsetx.js} +4 -4
- package/dist/{cli-k21gx5ht.js → cli-6w2yrrc0.js} +10 -10
- package/dist/{cli-m70bajzr.js → cli-75tdydgv.js} +1 -1
- package/dist/{cli-5rj83bam.js → cli-8feswf2v.js} +47 -36
- package/dist/{cli-sxgtf5fw.js → cli-8wd3mbyj.js} +1 -1
- package/dist/{cli-ca6banwz.js → cli-9csfthbw.js} +10 -8
- package/dist/{cli-dqygeeh5.js → cli-b41p764a.js} +31 -3
- package/dist/{cli-m5a9m0ak.js → cli-c1t533hh.js} +3 -3
- package/dist/{cli-2sjhpsns.js → cli-c28jxpcv.js} +1 -1
- package/dist/{cli-bqztfyve.js → cli-cb50g9cd.js} +1 -1
- package/dist/{cli-ag2yrnt5.js → cli-d8gaphtr.js} +2 -2
- package/dist/{cli-9abdgn5t.js → cli-dgtfysne.js} +3 -3
- package/dist/{cli-nq677csy.js → cli-dscnhn18.js} +1 -1
- package/dist/{cli-3fwqy71j.js → cli-dv11pgpv.js} +39 -32
- package/dist/{cli-v49fkghp.js → cli-ekptgk2m.js} +6 -6
- package/dist/{cli-c2habvsf.js → cli-f3mzy662.js} +17 -17
- package/dist/{cli-zqne1qcj.js → cli-fk7k8s9x.js} +2 -2
- package/dist/{cli-1tem6ns9.js → cli-gt4h8cxw.js} +3 -2
- package/dist/{cli-vbhgkw9h.js → cli-h3e7bhvn.js} +3 -3
- package/dist/{cli-ffvsj2qw.js → cli-hkxqdmnb.js} +3 -3
- package/dist/{cli-a2rr0fmg.js → cli-hpkvgdad.js} +7 -4
- package/dist/{cli-art7c1zh.js → cli-hq2v4rr5.js} +37 -9
- package/dist/{cli-sqma6vw1.js → cli-k1zb7raw.js} +5 -5
- package/dist/{cli-4rvr7zfx.js → cli-k4awgvzm.js} +5 -0
- package/dist/{cli-3ndmpxxv.js → cli-k7d3hvya.js} +2 -2
- package/dist/{cli-3gfvmzht.js → cli-kbtdftbw.js} +74 -26
- package/dist/{cli-hfeb68z4.js → cli-kj69b9tw.js} +34 -6
- package/dist/{cli-az25fn5f.js → cli-kk9jy4nm.js} +2 -2
- package/dist/{cli-39aet655.js → cli-m52t4cta.js} +1 -1
- package/dist/{cli-cz37jqss.js → cli-mdadewqp.js} +5 -5
- package/dist/{cli-esakngh8.js → cli-nf6k60sn.js} +1 -1
- package/dist/{cli-j6rktc91.js → cli-nzdf09js.js} +1 -1
- package/dist/{cli-rr7zx19j.js → cli-prcyzecg.js} +12 -12
- package/dist/{cli-4hxrf0p4.js → cli-pzafyqtk.js} +393 -62
- package/dist/{cli-g8ka5j4j.js → cli-qvaa1gjp.js} +173 -52
- package/dist/{cli-d2dpf95n.js → cli-rg4b2g6j.js} +1 -1
- package/dist/{cli-kf4jree9.js → cli-rm66vqdz.js} +1 -1
- package/dist/{cli-4rf0f5vg.js → cli-s504c3w7.js} +5 -3
- package/dist/{cli-nn6vx2mq.js → cli-swkx9jm2.js} +7 -5
- package/dist/{cli-g20jjwt4.js → cli-thsaq4pd.js} +16 -16
- package/dist/{cli-aj8djyqt.js → cli-twjnyvs8.js} +2 -2
- package/dist/{cli-03gg9pd1.js → cli-typdpe8g.js} +4 -4
- package/dist/{cli-mtnj4fwa.js → cli-vg8pwmsd.js} +6 -6
- package/dist/{cli-gnsb1zxa.js → cli-vhpckzvp.js} +1 -1
- package/dist/{cli-7enjwya9.js → cli-vz78s5wm.js} +1 -1
- package/dist/{cli-dv97kdzv.js → cli-wdxgsdz5.js} +2 -2
- package/dist/{cli-7a6p4e65.js → cli-wtjg6je3.js} +1 -1
- package/dist/{cli-6y51ryva.js → cli-x3cngb1h.js} +44 -12
- package/dist/{cli-n7asmce6.js → cli-xbz6mcg4.js} +3 -3
- package/dist/{cli-24j1jeeb.js → cli-y4tdxsqb.js} +3 -3
- package/dist/{cli-mvjz5an3.js → cli-yqrsp3ny.js} +7 -7
- package/dist/cli.js +31 -21
- package/dist/{codex-adapter-d95q4qsn.js → codex-adapter-7wepzq15.js} +6 -6
- package/dist/{codex-hook-brpnycn5.js → codex-hook-pbdh4xhx.js} +2 -2
- package/dist/{codex-session-runner-gdwd8h0c.js → codex-session-runner-02sb49e4.js} +6 -6
- package/dist/{commands-jqmgk54b.js → commands-3rcspxct.js} +2 -2
- package/dist/{controller-z3jq589f.js → controller-8ar4avd6.js} +3 -3
- package/dist/{controllers-connect-r2za39ef.js → controllers-connect-ajvh9h0v.js} +19 -19
- package/dist/{cursor-adapter-4mr4jgkw.js → cursor-adapter-gd0sa7bh.js} +1 -1
- package/dist/{db-w36wwb5g.js → db-dv9j7ts5.js} +2 -2
- package/dist/{db-ppv2tze7.js → db-z26vgdvj.js} +3 -3
- package/dist/{dispatcher-pv5h77vf.js → dispatcher-8m0htjq8.js} +17 -17
- package/dist/{dsh-adapter-d4pdpb3r.js → dsh-adapter-y8gyk130.js} +1 -1
- package/dist/{e2b-fn3zacvt.js → e2b-74vg9b7e.js} +1 -1
- package/dist/{e2b-222hsajc.js → e2b-jyay8wzn.js} +1 -1
- package/dist/{easter-egg-3d-4sp4dvmc.js → easter-egg-3d-28f880xx.js} +1 -1
- package/dist/{execute-jev839y1.js → execute-9seb79vh.js} +1 -1
- package/dist/{external-channel-y6nkzhnn.js → external-channel-smz7jyth.js} +2 -2
- package/dist/{getMachineId-bsd-brn0xym3.js → getMachineId-bsd-whfre6gr.js} +3 -3
- package/dist/{getMachineId-darwin-t339sfxm.js → getMachineId-darwin-5zjynb19.js} +3 -3
- package/dist/{getMachineId-linux-5eq95d8b.js → getMachineId-linux-8mksrrsq.js} +3 -3
- package/dist/{getMachineId-unsupported-qavrtc7j.js → getMachineId-unsupported-fxtqsdt2.js} +3 -3
- package/dist/{getMachineId-win-q7fe1wx7.js → getMachineId-win-nzfmz857.js} +3 -3
- package/dist/{grok-adapter-t08b9ntm.js → grok-adapter-z0nnvtbn.js} +7 -7
- package/dist/handlers-pspryh6g.js +41 -0
- package/dist/{heartbeat-vn31xwdk.js → heartbeat-f928aqyp.js} +20 -20
- package/dist/{hook-cpjs8q51.js → hook-d7c605r4.js} +7 -7
- package/dist/{hook-6d0zbvvt.js → hook-q9hv5xf9.js} +5 -5
- package/dist/{http-9c6medda.js → http-q6j4k989.js} +1000 -251
- package/dist/{index-k0yt1tvq.js → index-5nb266jr.js} +17 -17
- package/dist/{index-ysd45kgc.js → index-8fxt5eah.js} +10 -10
- package/dist/{index-zgvqzjsw.js → index-cekzwhez.js} +5 -5
- package/dist/{index-38t35h0n.js → index-ch0c1xff.js} +17 -17
- package/dist/{index-pkma1yf8.js → index-ebnjhxh1.js} +1 -1
- package/dist/{index-yqgbfgaj.js → index-ed8dy8rn.js} +20 -20
- package/dist/{index-qhjf2htm.js → index-ejqdkkqx.js} +262 -96
- package/dist/{index-dr94zbnh.js → index-farm1zsn.js} +32661 -29443
- package/dist/{index-g6k9tctj.js → index-yn1yxg85.js} +1 -1
- package/dist/{keepalive-em0117bp.js → keepalive-zzc3hks1.js} +3 -3
- package/dist/lead-c0pjcaw4.js +79 -0
- package/dist/{maintenance-kbme3qy9.js → maintenance-kqsxzpzx.js} +1 -1
- package/dist/{oauth-refresh-sweep-xysj4yse.js → oauth-refresh-sweep-7qt0g55z.js} +8 -3
- package/dist/{onboard-p6q0vz97.js → onboard-k7x13fqg.js} +121 -8
- package/dist/{opencode-adapter-esv3k9yn.js → opencode-adapter-tqvrtter.js} +5 -5
- package/dist/{otel-impl-54qhqh1z.js → otel-impl-sqkf6k3b.js} +97 -97
- package/dist/{pi-mono-adapter-mymbwhj0.js → pi-mono-adapter-m2qnafxm.js} +89 -14
- package/dist/{pricing-refresh-yb75wv33.js → pricing-refresh-wkpwhgvs.js} +3 -3
- package/dist/{rbac-roles-dexhc9x8.js → rbac-roles-dpn0c0wj.js} +7 -4
- package/dist/{rbac-roles-1vp2mw4p.js → rbac-roles-wk7xd6a6.js} +2 -2
- package/dist/{render-v2-tjay5hhf.js → render-v2-ex2m4g2k.js} +3 -3
- package/dist/{resume-8ayf37g5.js → resume-725g9b0b.js} +7 -7
- package/dist/{runtime-hqe5cqcd.js → runtime-kajas15g.js} +1 -1
- package/dist/{session-access-fdhp987s.js → session-access-0j2ezjje.js} +8 -4
- package/dist/{session-source-backfill-qgtc86z1.js → session-source-backfill-62202awe.js} +2 -2
- package/dist/{setup-4rrmqcq3.js → setup-9sj11ax6.js} +1 -1
- package/dist/{virtual-modules-52km00d6.js → virtual-modules-c6fcq6zr.js} +2 -2
- package/dist/{work-objects-p28fgd70.js → work-objects-0y07495y.js} +20 -20
- package/dist/worker-d4q9sqbc.js +79 -0
- package/openapi.json +1536 -407
- package/package.json +7 -5
- package/src/be/automation-preflight.ts +2 -0
- package/src/be/connector-codes.ts +65 -22
- package/src/be/db/api-keys.ts +9 -0
- package/src/be/db/workflow-runs.ts +36 -5
- package/src/be/db.ts +80 -22
- package/src/be/memory/boot-reembed.ts +4 -1
- package/src/be/memory/constants.ts +6 -0
- package/src/be/memory/embedding-recovery.ts +48 -0
- package/src/be/memory/index-content.ts +5 -2
- package/src/be/memory/providers/openai-embedding.ts +65 -14
- package/src/be/memory/task-learning.ts +257 -0
- package/src/be/memory/types.ts +13 -2
- package/src/be/migrations/245_script_executor.sql +3 -0
- package/src/be/migrations/246_connector_code_kind.sql +11 -0
- package/src/be/oauth-refresh-sweep.ts +2 -1
- package/src/be/onboarding.ts +125 -15
- package/src/be/rbac-roles.ts +4 -1
- package/src/be/scripts/boot-reembed.ts +2 -0
- package/src/be/scripts/db.ts +14 -4
- package/src/be/scripts/embeddings.ts +4 -2
- package/src/be/scripts/run-saved.ts +1 -0
- package/src/be/scripts/typecheck.ts +9 -3
- package/src/be/seed/agent-fs-provision.ts +75 -14
- package/src/be/seed-skills/index.ts +7 -0
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/cli.tsx +9 -0
- package/src/comb/config.ts +6 -1
- package/src/commands/onboard/agent-fs-version.ts +5 -0
- package/src/commands/onboard/compose-generator.ts +117 -4
- package/src/commands/onboard/env-generator.ts +9 -0
- package/src/commands/onboard/tei-image.ts +12 -0
- package/src/commands/onboard/types.ts +7 -0
- package/src/commands/onboard.tsx +11 -1
- package/src/commands/provider-credentials.ts +2 -1
- package/src/commands/runner.ts +14 -1
- package/src/heartbeat/heartbeat.ts +14 -1
- package/src/heartbeat/script-runner-probe.ts +47 -0
- package/src/http/agentfs-proxy.ts +369 -0
- package/src/http/all-routes.ts +1 -0
- package/src/http/api-keys.ts +24 -9
- package/src/http/codex-oauth-device.ts +8 -1
- package/src/http/fs.ts +64 -10
- package/src/http/idempotency-key.ts +1 -1
- package/src/http/inbox-state.ts +27 -1
- package/src/http/index.ts +7 -4
- package/src/http/memory.ts +7 -4
- package/src/http/onboarding.ts +139 -11
- package/src/http/pages-public.ts +38 -5
- package/src/http/scripts.ts +27 -0
- package/src/http/session-access.ts +24 -0
- package/src/http/sessions.ts +10 -6
- package/src/http/tasks.ts +85 -11
- package/src/http/telemetry-ui.ts +1 -1
- package/src/http/user-roles.ts +4 -1
- package/src/http/users.ts +272 -3
- package/src/http/utils.ts +22 -3
- package/src/http/workflows.ts +10 -0
- package/src/http/x.ts +5 -0
- package/src/prompts/base-prompt.ts +45 -10
- package/src/prompts/session-templates.ts +43 -5
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +6 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +99 -14
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/scheduler/scheduler.ts +2 -1
- package/src/scripts-runtime/eval-harness.ts +8 -1
- package/src/scripts-runtime/executors/native.ts +22 -16
- package/src/scripts-runtime/executors/quickjs-prelude.ts +103 -1
- package/src/scripts-runtime/executors/quickjs-runner.ts +2 -1
- package/src/scripts-runtime/executors/quickjs.ts +7 -0
- package/src/scripts-runtime/executors/registry.ts +32 -0
- package/src/scripts-runtime/executors/types.ts +7 -0
- package/src/scripts-runtime/host-validated-args.ts +133 -0
- package/src/scripts-runtime/loader.ts +30 -3
- package/src/scripts-runtime/swarm-sdk.ts +9 -2
- package/src/scripts-runtime/types/stdlib.d.ts +9 -1
- package/src/scripts-runtime/types/swarm-sdk.d.ts +9 -1
- package/src/tests/agent-fs-provision-seeder.test.ts +261 -92
- package/src/tests/agentfs-proxy.test.ts +1106 -0
- package/src/tests/api-key-status-by-suffix.test.ts +242 -0
- package/src/tests/base-prompt.test.ts +139 -4
- package/src/tests/codex-adapter.test.ts +46 -8
- package/src/tests/codex-oauth-device.test.ts +12 -1
- package/src/tests/comb-config-guard.test.ts +20 -0
- package/src/tests/comb-links.test.ts +79 -1
- package/src/tests/comb-status.test.ts +44 -0
- package/src/tests/community-linear-delivery-loop.test.ts +2099 -0
- package/src/tests/credential-check.test.ts +4 -2
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/docs-index.test.ts +135 -0
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/fetch-resolved-env.test.ts +16 -2
- package/src/tests/fixtures/onboard/baseline-states.ts +68 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +190 -0
- package/src/tests/fixtures/onboard/content.env.txt +29 -0
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/dev.env.txt +28 -0
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +582 -0
- package/src/tests/fixtures/onboard/full-all.env.txt +59 -0
- package/src/tests/fixtures/onboard/full.compose.yml.txt +435 -0
- package/src/tests/fixtures/onboard/full.env.txt +36 -0
- package/src/tests/fixtures/onboard/research.compose.yml.txt +155 -0
- package/src/tests/fixtures/onboard/research.env.txt +28 -0
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +85 -0
- package/src/tests/fixtures/onboard/solo.env.txt +26 -0
- package/src/tests/heartbeat-checklist.test.ts +89 -0
- package/src/tests/heartbeat-script-runner-probe.test.ts +83 -0
- package/src/tests/http-log-scrubbing.test.ts +34 -1
- package/src/tests/http-task-write-ownership.test.ts +5 -1
- package/src/tests/invites-http.test.ts +464 -0
- package/src/tests/memory-embedding-input-cap.test.ts +122 -1
- package/src/tests/memory-embedding-recovery.test.ts +137 -0
- package/src/tests/oauth-refresh-sweep.test.ts +34 -1
- package/src/tests/onboard-compose.test.ts +162 -0
- package/src/tests/onboard-env.test.ts +24 -0
- package/src/tests/onboard-non-interactive.test.ts +29 -0
- package/src/tests/onboard-tei-image.test.ts +36 -0
- package/src/tests/onboarding.test.ts +451 -4
- package/src/tests/openai-embedding-provider.test.ts +105 -2
- package/src/tests/opencode-adapter.test.ts +2 -1
- package/src/tests/pages-frame-ancestors.test.ts +162 -0
- package/src/tests/pi-codemode.test.ts +2 -1
- package/src/tests/pi-mono-adapter.test.ts +54 -0
- package/src/tests/pi-mono-session-cost-on-abort.test.ts +270 -0
- package/src/tests/pi-native-mcp.test.ts +13 -1
- package/src/tests/pi-tool-exposure.test.ts +8 -8
- package/src/tests/preload-env.test.ts +4 -0
- package/src/tests/preload.ts +4 -0
- package/src/tests/probe-tool-schema-tokens.test.ts +144 -0
- package/src/tests/prompt-template-session.test.ts +20 -3
- package/src/tests/rbac-admission-e2e.test.ts +22 -6
- package/src/tests/rbac-admission.test.ts +342 -4
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/rbac-roles.test.ts +9 -1
- package/src/tests/request-composition-derive.test.ts +329 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-executor-conformance.test.ts +36 -1
- package/src/tests/script-executor-quickjs-pool.test.ts +50 -0
- package/src/tests/script-executor-quickjs.test.ts +140 -0
- package/src/tests/script-host-validated-args-native.test.ts +196 -0
- package/src/tests/script-per-script-executor.test.ts +415 -0
- package/src/tests/scripts-external-api.test.ts +45 -0
- package/src/tests/sdk-allowlist.test.ts +3 -2
- package/src/tests/self-improvement.test.ts +4 -4
- package/src/tests/send-task-requester-gate.test.ts +64 -3
- package/src/tests/sessions-move.test.ts +39 -1
- package/src/tests/store-progress-learning.test.ts +381 -0
- package/src/tests/ui-logs-parser.test.ts +180 -0
- package/src/tests/whoami-route.test.ts +41 -0
- package/src/tests/workflow-engine-v2.test.ts +116 -1
- package/src/tests/workflow-mcp-trigger-schema.test.ts +209 -0
- package/src/tests/workflow-run-finished-event.test.ts +263 -0
- package/src/tests/workflow-swarm-script.test.ts +34 -0
- package/src/tools/inject-learning.ts +1 -1
- package/src/tools/memory-edit.ts +1 -1
- package/src/tools/memory-search.ts +1 -1
- package/src/tools/script-common.ts +1 -0
- package/src/tools/script-run.ts +7 -0
- package/src/tools/script-upsert.ts +7 -0
- package/src/tools/store-progress.ts +71 -1
- package/src/tools/utils.ts +12 -1
- package/src/tools/workflows/trigger-workflow.ts +104 -10
- package/src/types.ts +12 -1
- package/src/utils/constants.ts +39 -0
- package/src/utils/credentials.ts +5 -2
- package/src/utils/task-attachment-links.ts +15 -3
- package/src/workflows/engine.ts +18 -16
- package/src/workflows/executors/swarm-script.ts +5 -0
- package/src/workflows/foreach-driver.ts +5 -11
- package/src/workflows/node-timeout.ts +30 -0
- package/templates/community/linear-delivery-loop/PLAYBOOK.md +323 -0
- package/templates/community/linear-delivery-loop/README.md +38 -0
- package/templates/community/linear-delivery-loop/config.example.json +31 -0
- package/templates/community/linear-delivery-loop/lead-prompt.md +34 -0
- package/templates/community/linear-delivery-loop/schedule.json +10 -0
- package/templates/community/linear-delivery-loop/scripts/linear-delivery-setup.ts +148 -0
- package/templates/community/linear-delivery-loop/scripts/linear-delivery-tick.ts +1781 -0
- package/templates/skills/swarm-docs/config.json +14 -0
- package/templates/skills/swarm-docs/content.md +144 -0
- package/dist/handlers-eqsnmv95.js +0 -41
- package/dist/lead-23e7z59t.js +0 -79
- package/dist/worker-e3w7vye1.js +0 -79
- package/dist/{azure-openai-responses-9kfwhmn7.js → azure-openai-responses-43asa23s.js} +0 -0
- package/dist/{node-vxx896fa.js → node-t28cc56b.js} +0 -0
- package/dist/{openai-codex-responses-79s8xnbh.js → openai-codex-responses-jhr3sjtm.js} +3 -3
- package/dist/{openai-completions-tdbyts0x.js → openai-completions-gs6yn37k.js} +3 -3
- /package/dist/{openai-responses-dm3t5vqp.js → openai-responses-jqm9vwwk.js} +0 -0
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
createCodemodeExtension,
|
|
14
14
|
createMcpExtension,
|
|
15
15
|
createToolSearchExtension
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-0w4e4v58.js";
|
|
17
17
|
import {
|
|
18
18
|
Unsafe,
|
|
19
19
|
getBuiltinModel,
|
|
20
20
|
getBuiltinModels
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-ekptgk2m.js";
|
|
22
22
|
import"./cli-kvzgak7c.js";
|
|
23
23
|
import {
|
|
24
24
|
contextBoundNoteThreshold,
|
|
25
25
|
createContextBoundNote
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-dscnhn18.js";
|
|
27
27
|
import {
|
|
28
28
|
swarmRuntimeInstanceId
|
|
29
29
|
} from "./cli-e8xyjvfc.js";
|
|
@@ -34,9 +34,9 @@ import"./cli-3h26v7yj.js";
|
|
|
34
34
|
import"./cli-0726awxw.js";
|
|
35
35
|
import {
|
|
36
36
|
createSwarmHooksExtension
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-0tww7dnz.js";
|
|
38
38
|
import"./cli-0z1xjzwa.js";
|
|
39
|
-
import"./cli-
|
|
39
|
+
import"./cli-d8gaphtr.js";
|
|
40
40
|
import {
|
|
41
41
|
applyReasoningEffort
|
|
42
42
|
} from "./cli-c081bj3b.js";
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
} from "./cli-2dfbv8qr.js";
|
|
59
59
|
import {
|
|
60
60
|
init_templates3
|
|
61
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-nzdf09js.js";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_OPENROUTER_BASE_URL,
|
|
64
64
|
getOpenRouterBaseUrl,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
import {
|
|
68
68
|
resolveTemplateAsync,
|
|
69
69
|
init_resolver
|
|
70
|
-
} from "./cli-
|
|
70
|
+
} from "./cli-b41p764a.js";
|
|
71
71
|
import {
|
|
72
72
|
snapshotCatalogRows,
|
|
73
73
|
init_runtime_model_catalog
|
|
@@ -317,7 +317,7 @@ function jsonSchemaToTypeBox(schema) {
|
|
|
317
317
|
}
|
|
318
318
|
var SWARM_TOOL_NAMESPACE = { name: "agent-swarm" };
|
|
319
319
|
function isPiToolDeferralEnabled(env = process.env) {
|
|
320
|
-
return parseEnvFlag(env.PI_TOOL_DEFERRAL,
|
|
320
|
+
return parseEnvFlag(env.PI_TOOL_DEFERRAL, true);
|
|
321
321
|
}
|
|
322
322
|
function isPiCodemodeEnabled(env = process.env) {
|
|
323
323
|
return parseEnvFlag(env.PI_CODEMODE, false);
|
|
@@ -597,6 +597,23 @@ function requestContextTokens(message) {
|
|
|
597
597
|
const cacheWrite = typeof usage.cacheWrite === "number" ? usage.cacheWrite : 0;
|
|
598
598
|
return usage.input + cacheRead + cacheWrite;
|
|
599
599
|
}
|
|
600
|
+
function callUsageLine(message) {
|
|
601
|
+
const usage = message?.usage;
|
|
602
|
+
if (typeof usage?.input !== "number")
|
|
603
|
+
return;
|
|
604
|
+
const count = (value) => typeof value === "number" && Number.isFinite(value) ? value : 0;
|
|
605
|
+
return JSON.stringify({
|
|
606
|
+
type: "call_usage",
|
|
607
|
+
harness: "pi",
|
|
608
|
+
usage: {
|
|
609
|
+
input: count(usage.input),
|
|
610
|
+
cacheRead: count(usage.cacheRead),
|
|
611
|
+
cacheWrite: count(usage.cacheWrite),
|
|
612
|
+
output: count(usage.output),
|
|
613
|
+
reasoning: count(usage.reasoning)
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
}
|
|
600
617
|
function describeAssistantTurn(message) {
|
|
601
618
|
const msg = message ?? {};
|
|
602
619
|
const blocks = Array.isArray(msg.content) ? msg.content : [];
|
|
@@ -651,6 +668,7 @@ class PiMonoSession {
|
|
|
651
668
|
terminalStoreProgressDone = false;
|
|
652
669
|
emptyTurnReprompted = false;
|
|
653
670
|
abortRequested = false;
|
|
671
|
+
idleResolvers = new Set;
|
|
654
672
|
disposeModels;
|
|
655
673
|
observeContextBound;
|
|
656
674
|
toolTurnOpen = false;
|
|
@@ -705,6 +723,9 @@ class PiMonoSession {
|
|
|
705
723
|
if (endMsg.role === "assistant") {
|
|
706
724
|
const turn = describeAssistantTurn(event.message);
|
|
707
725
|
this.lastAssistantTurn = turn;
|
|
726
|
+
const usageLine = callUsageLine(event.message);
|
|
727
|
+
if (usageLine)
|
|
728
|
+
this.emit({ type: "raw_log", content: usageLine });
|
|
708
729
|
if (endMsg.stopReason === "error") {
|
|
709
730
|
this.terminalError = endMsg.errorMessage ?? this.terminalError ?? "Unknown error";
|
|
710
731
|
break;
|
|
@@ -793,6 +814,14 @@ class PiMonoSession {
|
|
|
793
814
|
case "tool_execution_end":
|
|
794
815
|
if (this.pendingTerminalStoreProgress.delete(event.toolCallId) && !event.isError) {
|
|
795
816
|
this.terminalStoreProgressDone = true;
|
|
817
|
+
const snapshotCost = this.safeBuildCostData(false);
|
|
818
|
+
if (snapshotCost) {
|
|
819
|
+
this.emit({
|
|
820
|
+
type: "result",
|
|
821
|
+
cost: snapshotCost,
|
|
822
|
+
isError: false
|
|
823
|
+
});
|
|
824
|
+
}
|
|
796
825
|
}
|
|
797
826
|
this.emit({
|
|
798
827
|
type: "raw_log",
|
|
@@ -873,6 +902,24 @@ class PiMonoSession {
|
|
|
873
902
|
};
|
|
874
903
|
} catch (err) {
|
|
875
904
|
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
905
|
+
if (this.abortRequested && this.terminalStoreProgressDone) {
|
|
906
|
+
const cost = this.safeBuildCostData(false);
|
|
907
|
+
if (cost) {
|
|
908
|
+
this.emit({
|
|
909
|
+
type: "result",
|
|
910
|
+
cost,
|
|
911
|
+
isError: false
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
return {
|
|
915
|
+
exitCode: 0,
|
|
916
|
+
sessionId: this._sessionId,
|
|
917
|
+
cost,
|
|
918
|
+
output: this.lastAssistantText || undefined,
|
|
919
|
+
isError: false,
|
|
920
|
+
appliedReasoningEffort: this.appliedReasoningEffort
|
|
921
|
+
};
|
|
922
|
+
}
|
|
876
923
|
const awsCatchError = classifyAwsSdkError(errorMessage);
|
|
877
924
|
if (awsCatchError) {
|
|
878
925
|
this.emit({
|
|
@@ -883,9 +930,11 @@ class PiMonoSession {
|
|
|
883
930
|
}
|
|
884
931
|
this.emit({ type: "raw_stderr", content: `[pi-mono] Error: ${errorMessage}
|
|
885
932
|
` });
|
|
933
|
+
const cost = this.safeBuildCostData(true);
|
|
886
934
|
return {
|
|
887
935
|
exitCode: 1,
|
|
888
936
|
sessionId: this._sessionId,
|
|
937
|
+
cost,
|
|
889
938
|
isError: true,
|
|
890
939
|
errorCategory: awsCatchError?.category,
|
|
891
940
|
failureReason: scrubSecrets(awsCatchError?.message ?? errorMessage),
|
|
@@ -942,14 +991,36 @@ class PiMonoSession {
|
|
|
942
991
|
resolve();
|
|
943
992
|
return;
|
|
944
993
|
}
|
|
994
|
+
let settled = false;
|
|
995
|
+
const finish = () => {
|
|
996
|
+
if (settled)
|
|
997
|
+
return;
|
|
998
|
+
settled = true;
|
|
999
|
+
unsub();
|
|
1000
|
+
this.idleResolvers.delete(finish);
|
|
1001
|
+
resolve();
|
|
1002
|
+
};
|
|
945
1003
|
const unsub = this.agentSession.subscribe((event) => {
|
|
946
1004
|
if (event.type === "agent_end") {
|
|
947
|
-
|
|
948
|
-
resolve();
|
|
1005
|
+
finish();
|
|
949
1006
|
}
|
|
950
1007
|
});
|
|
1008
|
+
this.idleResolvers.add(finish);
|
|
1009
|
+
if (this.abortRequested) {
|
|
1010
|
+
finish();
|
|
1011
|
+
}
|
|
951
1012
|
});
|
|
952
1013
|
}
|
|
1014
|
+
safeBuildCostData(isError) {
|
|
1015
|
+
try {
|
|
1016
|
+
const stats = this.agentSession.getSessionStats();
|
|
1017
|
+
if (!stats)
|
|
1018
|
+
return;
|
|
1019
|
+
return { ...this.buildCostData(stats), isError };
|
|
1020
|
+
} catch {
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
953
1024
|
buildCostData(stats) {
|
|
954
1025
|
return {
|
|
955
1026
|
sessionId: "",
|
|
@@ -982,6 +1053,9 @@ class PiMonoSession {
|
|
|
982
1053
|
}
|
|
983
1054
|
async abort() {
|
|
984
1055
|
this.abortRequested = true;
|
|
1056
|
+
for (const resolve of [...this.idleResolvers]) {
|
|
1057
|
+
resolve();
|
|
1058
|
+
}
|
|
985
1059
|
await this.agentSession.abort();
|
|
986
1060
|
}
|
|
987
1061
|
async deliverSteering({ mode, text }) {
|
|
@@ -1114,7 +1188,8 @@ function escapeValues(values) {
|
|
|
1114
1188
|
}
|
|
1115
1189
|
return out;
|
|
1116
1190
|
}
|
|
1117
|
-
function toPiMcpServers(installed) {
|
|
1191
|
+
function toPiMcpServers(installed, options = {}) {
|
|
1192
|
+
const exposure = options.deferred ? "deferred" : "direct";
|
|
1118
1193
|
const servers = {};
|
|
1119
1194
|
for (const [name, entry] of Object.entries(installed ?? {})) {
|
|
1120
1195
|
if (typeof entry.command === "string") {
|
|
@@ -1123,14 +1198,14 @@ function toPiMcpServers(installed) {
|
|
|
1123
1198
|
command: entry.command,
|
|
1124
1199
|
args: Array.isArray(entry.args) ? entry.args.map(String) : [],
|
|
1125
1200
|
env: escapeValues(entry.env),
|
|
1126
|
-
exposure
|
|
1201
|
+
exposure
|
|
1127
1202
|
};
|
|
1128
1203
|
} else if (typeof entry.url === "string") {
|
|
1129
1204
|
servers[name] = {
|
|
1130
1205
|
type: "http",
|
|
1131
1206
|
url: entry.url,
|
|
1132
1207
|
headers: escapeValues(entry.headers),
|
|
1133
|
-
exposure
|
|
1208
|
+
exposure
|
|
1134
1209
|
};
|
|
1135
1210
|
}
|
|
1136
1211
|
}
|
|
@@ -1227,7 +1302,7 @@ class PiMonoAdapter {
|
|
|
1227
1302
|
}
|
|
1228
1303
|
}
|
|
1229
1304
|
const installedMcpServers = config.apiUrl && config.apiKey && config.agentId ? await fetchInstalledMcpServers(config.apiUrl, config.apiKey, config.agentId, "claude") : null;
|
|
1230
|
-
const piMcpServers = toPiMcpServers(installedMcpServers);
|
|
1305
|
+
const piMcpServers = toPiMcpServers(installedMcpServers, { deferred: deferTools });
|
|
1231
1306
|
if (Object.keys(piMcpServers).length > 0) {
|
|
1232
1307
|
console.log(`\x1B[2m[${config.role}]\x1B[0m Registering ${Object.keys(piMcpServers).length} installed MCP server(s) with pi`);
|
|
1233
1308
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestModelCatalogRefresh2,
|
|
3
3
|
startPricingRefreshLoop2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
4
|
+
} from "./cli-twjnyvs8.js";
|
|
5
|
+
import"./cli-2sjm3t4r.js";
|
|
6
|
+
import"./cli-qvaa1gjp.js";
|
|
7
7
|
export {
|
|
8
8
|
requestModelCatalogRefresh2 as requestModelCatalogRefresh,
|
|
9
9
|
startPricingRefreshLoop2 as startPricingRefreshLoop
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
getDbClient2,
|
|
4
4
|
init_telemetry_identity,
|
|
5
5
|
init_db3
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-qvaa1gjp.js";
|
|
7
7
|
import {
|
|
8
8
|
PermissionVerbSchema,
|
|
9
9
|
init_rbac
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-k4awgvzm.js";
|
|
11
11
|
import {
|
|
12
12
|
isEnvFlagEnabled,
|
|
13
13
|
init_env_flag
|
|
@@ -42,7 +42,10 @@ var BUILTIN_ROLES = [
|
|
|
42
42
|
"task.fs.mutate",
|
|
43
43
|
"favorite.write.own",
|
|
44
44
|
"session.share",
|
|
45
|
-
"session.presence"
|
|
45
|
+
"session.presence",
|
|
46
|
+
"task.steer.own",
|
|
47
|
+
"comb.presence",
|
|
48
|
+
"fs.join.own"
|
|
46
49
|
]
|
|
47
50
|
},
|
|
48
51
|
{
|
|
@@ -51,7 +54,7 @@ var BUILTIN_ROLES = [
|
|
|
51
54
|
description: "Read-only: no task, approval or script writes.",
|
|
52
55
|
isBuiltin: true,
|
|
53
56
|
grantsAll: false,
|
|
54
|
-
verbs: ["favorite.write.own", "session.presence"]
|
|
57
|
+
verbs: ["favorite.write.own", "session.presence", "comb.presence", "fs.join.own"]
|
|
55
58
|
}
|
|
56
59
|
];
|
|
57
60
|
var CREATE_USER_DEFAULT_ROLE_TRIGGER_SQL = `
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
ensureSlackThreadTree2,
|
|
5
5
|
slackErrorCode2,
|
|
6
6
|
processSlackRenderV22
|
|
7
|
-
} from "./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
} from "./cli-thsaq4pd.js";
|
|
8
|
+
import"./cli-vhpckzvp.js";
|
|
9
|
+
import"./cli-qvaa1gjp.js";
|
|
10
10
|
export {
|
|
11
11
|
callSlackWithRetry2 as callSlackWithRetry,
|
|
12
12
|
ensureSlackThreadTree2 as ensureSlackThreadTree,
|
|
@@ -10,22 +10,22 @@ import {
|
|
|
10
10
|
resumeFromChildRun2,
|
|
11
11
|
initWaitBusSubscriptions2,
|
|
12
12
|
subscribeWaitToBus2
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
13
|
+
} from "./cli-3v2cyqb8.js";
|
|
14
|
+
import"./cli-dv11pgpv.js";
|
|
15
|
+
import"./cli-ekptgk2m.js";
|
|
16
16
|
import"./cli-0z1xjzwa.js";
|
|
17
17
|
import"./cli-e8xyjvfc.js";
|
|
18
18
|
import"./cli-13p25grh.js";
|
|
19
19
|
import"./cli-0adyhvq2.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
20
|
+
import"./cli-thsaq4pd.js";
|
|
21
|
+
import"./cli-vhpckzvp.js";
|
|
22
|
+
import"./cli-nf6k60sn.js";
|
|
23
23
|
import"./cli-rycdaj0a.js";
|
|
24
24
|
import"./cli-445c1vp7.js";
|
|
25
25
|
import"./cli-kvzgak7c.js";
|
|
26
26
|
import"./cli-2nf3b08t.js";
|
|
27
|
-
import"./cli-g8ka5j4j.js";
|
|
28
27
|
import"./cli-kt907da6.js";
|
|
28
|
+
import"./cli-qvaa1gjp.js";
|
|
29
29
|
export {
|
|
30
30
|
cancelWorkflowRun2 as cancelWorkflowRun,
|
|
31
31
|
cancelWorkflowRunRows2 as cancelWorkflowRunRows,
|
|
@@ -6,19 +6,23 @@ import {
|
|
|
6
6
|
readableByFor2,
|
|
7
7
|
SESSION_WRITE_DENIED2,
|
|
8
8
|
hasSessionWrite2,
|
|
9
|
+
NOT_YOUR_TASK_DENIED2,
|
|
10
|
+
deniesNonOwnerTaskWrite2,
|
|
9
11
|
denyParentAttach2,
|
|
10
12
|
pathSessionDenial2,
|
|
11
13
|
bodySessionDenial2,
|
|
12
14
|
userAgentIdentityDenial2
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
} from "./cli-hq2v4rr5.js";
|
|
16
|
+
import"./cli-nf6k60sn.js";
|
|
17
|
+
import"./cli-hpkvgdad.js";
|
|
18
|
+
import"./cli-qvaa1gjp.js";
|
|
17
19
|
export {
|
|
20
|
+
NOT_YOUR_TASK_DENIED2 as NOT_YOUR_TASK_DENIED,
|
|
18
21
|
SESSION_READ_DENIED2 as SESSION_READ_DENIED,
|
|
19
22
|
SESSION_WRITE_DENIED2 as SESSION_WRITE_DENIED,
|
|
20
23
|
bodySessionDenial2 as bodySessionDenial,
|
|
21
24
|
canReadSession2 as canReadSession,
|
|
25
|
+
deniesNonOwnerTaskWrite2 as deniesNonOwnerTaskWrite,
|
|
22
26
|
denyParentAttach2 as denyParentAttach,
|
|
23
27
|
hasSessionWrite2 as hasSessionWrite,
|
|
24
28
|
pathSessionDenial2 as pathSessionDenial,
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
moveTaskChainKeyInTx2,
|
|
8
8
|
init_session_moves,
|
|
9
9
|
init_db3
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-qvaa1gjp.js";
|
|
11
11
|
import {
|
|
12
12
|
normalizeAssetKey,
|
|
13
13
|
defaultAssetKey,
|
|
14
14
|
init_key
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-s504c3w7.js";
|
|
16
16
|
import {
|
|
17
17
|
scrubSecrets,
|
|
18
18
|
init_secret_scrubber
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
exports_compile,
|
|
5
5
|
exports_all,
|
|
6
6
|
exports_compat
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-ekptgk2m.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_models
|
|
10
10
|
} from "./cli-2nf3b08t.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
exports_dist,
|
|
15
15
|
exports_dist2,
|
|
16
16
|
exports_dist3
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-0w4e4v58.js";
|
|
18
18
|
import"./cli-13p25grh.js";
|
|
19
19
|
import"./cli-0adyhvq2.js";
|
|
20
20
|
import"./cli-rycdaj0a.js";
|
|
@@ -2,46 +2,46 @@ import {
|
|
|
2
2
|
getAgentById2,
|
|
3
3
|
getTaskById2,
|
|
4
4
|
init_db3
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-qvaa1gjp.js";
|
|
6
6
|
import {
|
|
7
7
|
slackTaskOutput,
|
|
8
8
|
getTaskUrl
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-thsaq4pd.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldBlockChannel2
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
12
|
+
} from "./cli-vhpckzvp.js";
|
|
13
|
+
import"./cli-pzafyqtk.js";
|
|
14
|
+
import"./cli-dv11pgpv.js";
|
|
15
|
+
import"./cli-kbtdftbw.js";
|
|
16
|
+
import"./cli-rm66vqdz.js";
|
|
17
17
|
import"./cli-3ggwdtb0.js";
|
|
18
18
|
import"./cli-e8xyjvfc.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-ekptgk2m.js";
|
|
20
20
|
import"./cli-2nf3b08t.js";
|
|
21
21
|
import"./cli-kvzgak7c.js";
|
|
22
22
|
import"./cli-445c1vp7.js";
|
|
23
23
|
import"./cli-0z1xjzwa.js";
|
|
24
24
|
import"./cli-kt907da6.js";
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
25
|
+
import"./cli-3v2cyqb8.js";
|
|
26
|
+
import"./cli-cb50g9cd.js";
|
|
27
|
+
import"./cli-2sjm3t4r.js";
|
|
28
|
+
import"./cli-twjnyvs8.js";
|
|
29
29
|
import"./cli-qz93y3x5.js";
|
|
30
|
-
import"./cli-
|
|
31
|
-
import"./cli-
|
|
30
|
+
import"./cli-hpkvgdad.js";
|
|
31
|
+
import"./cli-typdpe8g.js";
|
|
32
32
|
import"./cli-g9ypd5en.js";
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
33
|
+
import"./cli-6vwjsetx.js";
|
|
34
|
+
import"./cli-hq2v4rr5.js";
|
|
35
35
|
import"./cli-3h26v7yj.js";
|
|
36
36
|
import"./cli-737pyqxr.js";
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
37
|
+
import"./cli-y4tdxsqb.js";
|
|
38
|
+
import"./cli-k1zb7raw.js";
|
|
39
39
|
import {
|
|
40
40
|
isUserAllowed2
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-yqrsp3ny.js";
|
|
42
42
|
import"./cli-13p25grh.js";
|
|
43
43
|
import"./cli-0adyhvq2.js";
|
|
44
|
-
import"./cli-
|
|
44
|
+
import"./cli-nf6k60sn.js";
|
|
45
45
|
import"./cli-rycdaj0a.js";
|
|
46
46
|
import {
|
|
47
47
|
isEnvFlagEnabled,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import"./cli-qz93y3x5.js";
|
|
2
|
+
import {
|
|
3
|
+
getEnabledCapabilities
|
|
4
|
+
} from "./cli-pzafyqtk.js";
|
|
5
|
+
import"./cli-qvaa1gjp.js";
|
|
6
|
+
import"./cli-hpkvgdad.js";
|
|
7
|
+
import"./cli-typdpe8g.js";
|
|
8
|
+
import"./cli-2sjm3t4r.js";
|
|
9
|
+
import"./cli-twjnyvs8.js";
|
|
10
|
+
import"./cli-cb50g9cd.js";
|
|
11
|
+
import"./cli-kt907da6.js";
|
|
12
|
+
import"./cli-dv11pgpv.js";
|
|
13
|
+
import"./cli-kbtdftbw.js";
|
|
14
|
+
import"./cli-rm66vqdz.js";
|
|
15
|
+
import"./cli-3ggwdtb0.js";
|
|
16
|
+
import"./cli-e8xyjvfc.js";
|
|
17
|
+
import"./cli-thsaq4pd.js";
|
|
18
|
+
import"./cli-vhpckzvp.js";
|
|
19
|
+
import"./cli-ekptgk2m.js";
|
|
20
|
+
import"./cli-2nf3b08t.js";
|
|
21
|
+
import"./cli-kvzgak7c.js";
|
|
22
|
+
import"./cli-445c1vp7.js";
|
|
23
|
+
import"./cli-0z1xjzwa.js";
|
|
24
|
+
import"./cli-3v2cyqb8.js";
|
|
25
|
+
import"./cli-hq2v4rr5.js";
|
|
26
|
+
import"./cli-g9ypd5en.js";
|
|
27
|
+
import"./cli-6vwjsetx.js";
|
|
28
|
+
import"./cli-3h26v7yj.js";
|
|
29
|
+
import"./cli-737pyqxr.js";
|
|
30
|
+
import"./cli-8wd3mbyj.js";
|
|
31
|
+
import"./cli-c081bj3b.js";
|
|
32
|
+
import"./cli-77cd6gy8.js";
|
|
33
|
+
import"./cli-xbz6mcg4.js";
|
|
34
|
+
import {
|
|
35
|
+
runAgent
|
|
36
|
+
} from "./cli-8feswf2v.js";
|
|
37
|
+
import"./cli-vz78s5wm.js";
|
|
38
|
+
import"./cli-yvy48785.js";
|
|
39
|
+
import"./cli-dscnhn18.js";
|
|
40
|
+
import"./cli-jc1g9ndz.js";
|
|
41
|
+
import"./cli-c1t533hh.js";
|
|
42
|
+
import"./cli-c28jxpcv.js";
|
|
43
|
+
import"./cli-d8gaphtr.js";
|
|
44
|
+
import"./cli-d82btycs.js";
|
|
45
|
+
import"./cli-0726awxw.js";
|
|
46
|
+
import"./cli-vg8pwmsd.js";
|
|
47
|
+
import"./cli-6w2yrrc0.js";
|
|
48
|
+
import"./cli-4bd1rck6.js";
|
|
49
|
+
import"./cli-h3e7bhvn.js";
|
|
50
|
+
import"./cli-prcyzecg.js";
|
|
51
|
+
import"./cli-hkxqdmnb.js";
|
|
52
|
+
import"./cli-kr5tjjtz.js";
|
|
53
|
+
import"./cli-9csfthbw.js";
|
|
54
|
+
import"./cli-mdadewqp.js";
|
|
55
|
+
import"./cli-39rrw8yp.js";
|
|
56
|
+
import"./cli-kk9jy4nm.js";
|
|
57
|
+
import"./cli-fk7k8s9x.js";
|
|
58
|
+
import"./cli-0tww7dnz.js";
|
|
59
|
+
import"./cli-dgtfysne.js";
|
|
60
|
+
import"./cli-75tdydgv.js";
|
|
61
|
+
import"./cli-4zsenjhy.js";
|
|
62
|
+
import"./cli-13p25grh.js";
|
|
63
|
+
import"./cli-0adyhvq2.js";
|
|
64
|
+
import"./cli-nf6k60sn.js";
|
|
65
|
+
import"./cli-rycdaj0a.js";
|
|
66
|
+
|
|
67
|
+
// src/commands/worker.ts
|
|
68
|
+
var workerConfig = {
|
|
69
|
+
role: "worker",
|
|
70
|
+
defaultPrompt: "/start-worker",
|
|
71
|
+
metadataType: "worker_metadata",
|
|
72
|
+
capabilities: getEnabledCapabilities()
|
|
73
|
+
};
|
|
74
|
+
async function runWorker(opts) {
|
|
75
|
+
return runAgent(workerConfig, opts);
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
runWorker
|
|
79
|
+
};
|