@desplega.ai/agent-swarm 2.7.9 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acp-adapter-t949vbbp.js +15 -0
- package/dist/{actions-g563mbn2.js → actions-7e9czc7s.js} +19 -19
- package/dist/{amp-adapter-q61w05eb.js → amp-adapter-gv6cbb7d.js} +2 -3
- package/dist/app-b9fbkp9v.js +20 -0
- package/dist/{assistant-p477rjwj.js → assistant-wjb7v4c7.js} +22 -22
- package/dist/{boot-args-schema-h4qj462e.js → boot-args-schema-2t37e0fe.js} +1 -1
- package/dist/{boot-reembed-n1ehfbsw.js → boot-reembed-a35nkyr1.js} +1 -1
- package/dist/{boot-reembed-qw4mc0pt.js → boot-reembed-gka3zas7.js} +1 -1
- package/dist/{boot-scrub-sweep-9w9jp4sm.js → boot-scrub-sweep-65sdnp6c.js} +3 -3
- package/dist/{boot-seeds-qdaf3sdy.js → boot-seeds-x42tzytw.js} +4 -5
- package/dist/{claude-adapter-348p5hx9.js → claude-adapter-v221b2fd.js} +7 -8
- package/dist/{claude-managed-adapter-h74d06yz.js → claude-managed-adapter-29eq09wd.js} +2 -2
- package/dist/{claude-managed-setup-7787fxtp.js → claude-managed-setup-9m6450zk.js} +2 -2
- package/dist/{claude-sdk-session-hbszbt8a.js → claude-sdk-session-0q0ptaba.js} +9066 -8818
- package/dist/{cli-n5yexkdg.js → cli-0b4zam62.js} +1 -0
- package/dist/{cli-21159vea.js → cli-0jzra9ad.js} +2 -2
- package/dist/{cli-eqtfgfr6.js → cli-2gxeg5gr.js} +1 -1
- package/dist/{cli-k70e3x9e.js → cli-2wnq8jkz.js} +9 -9
- package/dist/{cli-cvs2r2vq.js → cli-2zp0et3v.js} +59 -6
- package/dist/{cli-650zv9q9.js → cli-334z18y3.js} +4 -4
- package/dist/{cli-12xyjhws.js → cli-3rkdne1h.js} +2 -2
- package/dist/{cli-2a8py3sx.js → cli-4txa0ter.js} +5 -7
- package/dist/{cli-jc1g9ndz.js → cli-5j88qqa8.js} +10 -5
- package/dist/{cli-xfjrc279.js → cli-5mrq3ake.js} +48 -14
- package/dist/{cli-v3cf1ts9.js → cli-6t09sdhy.js} +3 -3
- package/dist/{cli-qzt90yze.js → cli-6wxjceza.js} +8 -8
- package/dist/{cli-9aezs55w.js → cli-7b8sbmag.js} +8 -8
- package/dist/{cli-3xj33nrx.js → cli-7cp6aa1q.js} +10 -3
- package/dist/{cli-jfx48xrj.js → cli-7p1kvkck.js} +6 -6
- package/dist/{cli-b932gexn.js → cli-8aes17e4.js} +2 -2
- package/dist/{cli-3tqcamp6.js → cli-8fknbnhw.js} +14 -13
- package/dist/{cli-587857ys.js → cli-8kzasymh.js} +3 -3
- package/dist/{cli-sgs5k6yd.js → cli-a7wvp2km.js} +1 -1
- package/dist/{cli-varqt4d1.js → cli-abejgen1.js} +69 -22
- package/dist/{cli-rwymrnaz.js → cli-bsywb58a.js} +8 -8
- package/dist/{cli-btc9cb4c.js → cli-c55z5chy.js} +4 -6
- package/dist/{cli-ms5m5r1y.js → cli-deefvewm.js} +1 -1
- package/dist/{cli-p17970qv.js → cli-ee0b971j.js} +3 -3
- package/dist/cli-f3vq58d2.js +242 -0
- package/dist/{cli-3xcwp3z8.js → cli-ffhtssbp.js} +2 -2
- package/dist/{cli-hwprv9e4.js → cli-g70vxtjh.js} +2 -2
- package/dist/{cli-4t0fmf3z.js → cli-gxkx0zzp.js} +1 -1
- package/dist/{cli-neyag5p6.js → cli-h38x262p.js} +3365 -429
- package/dist/{cli-2ccpqyyf.js → cli-j790gp2w.js} +105 -22
- package/dist/{cli-f2zenhja.js → cli-kc7v1nfv.js} +1 -1
- package/dist/{cli-vxh6acp7.js → cli-m23zjcy2.js} +10 -10
- package/dist/{cli-y8nbefpb.js → cli-m28atx8q.js} +12 -10
- package/dist/{cli-serm8zrx.js → cli-m4dqmnbp.js} +1 -1
- package/dist/{cli-ybjdc978.js → cli-mrt48bx7.js} +7 -4
- package/dist/{cli-y5rbvxhc.js → cli-n515ex5z.js} +14 -14
- package/dist/{cli-ypff1qwp.js → cli-n9ftpys4.js} +7 -7
- package/dist/{cli-605nn699.js → cli-p1bq50aa.js} +894 -226
- package/dist/{cli-qkdmz8c8.js → cli-p1w18yhx.js} +1 -1
- package/dist/{cli-xk879m3k.js → cli-p2gfst4m.js} +52 -43
- package/dist/{cli-sya22y84.js → cli-pasjcnmj.js} +12 -12
- package/dist/{cli-0whpms1z.js → cli-qa4wdgsy.js} +5 -5
- package/dist/{cli-ejkvvqbe.js → cli-qfedvmcr.js} +50 -24
- package/dist/{cli-tqq0hspb.js → cli-qmqk2yc2.js} +1 -1
- package/dist/{cli-qmd3mse0.js → cli-qsnnd04k.js} +1 -1
- package/dist/{cli-agyaeef4.js → cli-qwca7s44.js} +3 -3
- package/dist/{cli-fayav105.js → cli-rfywm85n.js} +724 -792
- package/dist/{cli-zgv8gxgs.js → cli-rmmpt0wm.js} +6 -6
- package/dist/{cli-hae9j8sv.js → cli-rzsy6nc6.js} +12 -8
- package/dist/{cli-btf6fw39.js → cli-s7t6p9my.js} +1 -1
- package/dist/{cli-cseh6f8w.js → cli-sdtt3men.js} +1 -1
- package/dist/{cli-9r5gtwjr.js → cli-tk7cjj8h.js} +197 -2
- package/dist/{cli-q26b9wre.js → cli-tph5wt3y.js} +4 -4
- package/dist/{cli-gce09r66.js → cli-tqegb8eq.js} +3 -3
- package/dist/{cli-kf3pxxdg.js → cli-v1dv1r37.js} +1 -1
- package/dist/{cli-09kmfkmq.js → cli-wcg8x116.js} +1 -1
- package/dist/{cli-mnrkgg60.js → cli-wk18cm92.js} +5 -5
- package/dist/{cli-p0m0p34z.js → cli-x1wa213s.js} +3 -3
- package/dist/{cli-jrp1dt73.js → cli-xzm9vcfg.js} +1 -1
- package/dist/{cli-715t1gx6.js → cli-y97qxcfx.js} +9 -9
- package/dist/{cli-bc779n4v.js → cli-yq3zak69.js} +1 -1
- package/dist/cli.js +17 -17
- package/dist/{codex-adapter-ysq6bzha.js → codex-adapter-30j9bpzd.js} +5 -6
- package/dist/{codex-hook-fac6175r.js → codex-hook-h3vk6xzr.js} +1 -1
- package/dist/{codex-session-runner-qakzfx93.js → codex-session-runner-8vp57v8w.js} +5 -6
- package/dist/{commands-rs7hkv9r.js → commands-bngnz9g7.js} +3 -3
- package/dist/{controller-r5x9bg6e.js → controller-hxx8wwy1.js} +2 -2
- package/dist/{controllers-connect-498hrxvk.js → controllers-connect-e2b4gyxc.js} +20 -20
- package/dist/{cursor-adapter-d46qszer.js → cursor-adapter-n5nc3mfe.js} +1 -2
- package/dist/{db-s13dqhr6.js → db-bgm7vkc0.js} +3 -3
- package/dist/{db-pm96nhdb.js → db-c6np41ca.js} +12 -2
- package/dist/{devin-adapter-z46ep5ph.js → devin-adapter-xedz98zv.js} +1 -1
- package/dist/{dispatcher-j3h81t7m.js → dispatcher-jnybck15.js} +18 -18
- package/dist/{dsh-adapter-rw0d5rc4.js → dsh-adapter-nrhbrjz8.js} +1 -2
- package/dist/{easter-egg-3d-qtgfxgze.js → easter-egg-3d-533knw22.js} +1 -1
- package/dist/{embedding-space-xh8p4q4x.js → embedding-space-crsm2zp0.js} +6 -6
- package/dist/{embeddings-wp745m91.js → embeddings-e7z3f27f.js} +1 -1
- package/dist/{execute-2fzb9z74.js → execute-b3mrb1mv.js} +1 -1
- package/dist/{external-channel-ys21h3sy.js → external-channel-m77wf5z3.js} +2 -2
- package/dist/{fx-adapter-vz0b9z3g.js → fx-adapter-b6w0kf56.js} +7 -8
- package/dist/{google-generative-ai-ytpgncx9.js → google-generative-ai-h7s3e9kk.js} +1 -1
- package/dist/{google-vertex-tqhze5j7.js → google-vertex-fhxaafzw.js} +1 -1
- package/dist/{grok-adapter-spea7zkj.js → grok-adapter-4sqtebdk.js} +7 -8
- package/dist/handlers-kdjcyzdj.js +32 -0
- package/dist/heartbeat-xgb036sx.js +43 -0
- package/dist/{hook-amcj4s10.js → hook-5h02c9ga.js} +6 -6
- package/dist/{hook-bc6n49qn.js → hook-xsk1jbha.js} +5 -5
- package/dist/{http-7374brv5.js → http-txe7qhvn.js} +448 -165
- package/dist/{index-pxn30mse.js → index-0eny15vj.js} +8 -8
- package/dist/{index-5a9jtqde.js → index-0rvk3vd4.js} +46 -46
- package/dist/{index-fvzke5kx.js → index-1qw6f2dc.js} +10 -10
- package/dist/{index-q5cmtbz5.js → index-4a0670yh.js} +15939 -14244
- package/dist/index-835xdgnm.js +33 -0
- package/dist/index-d469300x.js +37 -0
- package/dist/{index-h7f61sy9.js → index-e5pfbsys.js} +3 -3
- package/dist/{index-hsad2t3r.js → index-m5gx1xd6.js} +38 -38
- package/dist/{index-5fx3b3kw.js → index-rvccek1w.js} +9 -9
- package/dist/index-rzqwp11g.js +32 -0
- package/dist/{index-w4m9z29z.js → index-tvfafeyy.js} +1 -1
- package/dist/{index-c9y31ytf.js → index-vk63emp7.js} +979 -35
- package/dist/{index-514d9pf6.js → index-w7em4ktq.js} +8 -8
- package/dist/{index-p4hjwbvw.js → index-ysvbhg5m.js} +1 -1
- package/dist/{keepalive-wy29kbrg.js → keepalive-4zsrce78.js} +3 -3
- package/dist/lead-yqt47dkr.js +70 -0
- package/dist/{maintenance-h2ds9w6c.js → maintenance-86jvartk.js} +1 -1
- package/dist/{oauth-refresh-sweep-q7mtbyp3.js → oauth-refresh-sweep-j52kg9pr.js} +2 -2
- package/dist/{onboard-vw8r2fdw.js → onboard-c2aj5p8q.js} +3 -3
- package/dist/{opencode-adapter-mtb0953j.js → opencode-adapter-dsagkhtw.js} +5 -6
- package/dist/{otel-impl-j42czw3r.js → otel-impl-yyy203z8.js} +1 -1
- package/dist/{pi-mono-adapter-zk8pg9jr.js → pi-mono-adapter-546cd1cc.js} +9 -9
- package/dist/{pricing-refresh-x7nhv23d.js → pricing-refresh-1rgzqyzz.js} +2 -3
- package/dist/{rbac-roles-9044425x.js → rbac-roles-e70xfeyj.js} +4 -6
- package/dist/{rbac-roles-bzvee6cf.js → rbac-roles-q89qe8er.js} +3 -3
- package/dist/{registry-hpjfmcfz.js → registry-32b1mft6.js} +1 -1
- package/dist/{render-v2-t7bn4skz.js → render-v2-k6tt107q.js} +9 -4
- package/dist/{resume-x94gemep.js → resume-cnnrjfxa.js} +6 -6
- package/dist/{runtime-breq6fmv.js → runtime-1hv06jsn.js} +1 -1
- package/dist/{session-access-q7dmqjvt.js → session-access-xkxkjw3n.js} +4 -4
- package/dist/{session-source-backfill-440ysamr.js → session-source-backfill-1d5pdwww.js} +2 -2
- package/dist/{setup-07n4727s.js → setup-se8q7gkc.js} +1 -1
- package/dist/{virtual-modules-z5h6mcyf.js → virtual-modules-gazyapte.js} +3 -3
- package/dist/{work-objects-pnq5y534.js → work-objects-1kxnbzy5.js} +22 -22
- package/dist/{worker-follow-up-7z1gfkr8.js → worker-follow-up-zqm8apt4.js} +18 -18
- package/dist/worker-j6xxtq7p.js +70 -0
- package/openapi.json +334 -7
- package/package.json +4 -4
- package/src/apps/catalog.generated.json +55 -0
- package/src/apps/definition.ts +11 -0
- package/src/apps/page-validator.ts +19 -0
- package/src/apps/store.ts +28 -8
- package/src/assets/key.ts +77 -4
- package/src/be/db/model-profiles.ts +147 -38
- package/src/be/db/session-labels.ts +57 -0
- package/src/be/db/session-tree.ts +51 -7
- package/src/be/db/slack-trees.ts +146 -0
- package/src/be/db/tasks/read.ts +107 -8
- package/src/be/db/workflow-run-definitions.ts +117 -0
- package/src/be/db-client.ts +8 -2
- package/src/be/db.ts +119 -87
- package/src/be/event-loop-lag.ts +146 -0
- package/src/be/mcp-overflow-sweep.ts +2 -1
- package/src/be/memory/constants.ts +14 -1
- package/src/be/memory/key-paths.ts +8 -0
- package/src/be/memory/providers/sqlite-store.ts +199 -18
- package/src/be/memory/task-learning.ts +79 -14
- package/src/be/memory/types.ts +24 -1
- package/src/be/migrations/278_slack_render_v2_reconcile.sql +108 -0
- package/src/be/migrations/279_backfill_learning_expiry.sql +15 -0
- package/src/be/migrations/281_model_profiles_pr2.sql +28 -0
- package/src/be/migrations/283_workflow_run_definitions.sql +14 -0
- package/src/be/model-profile-check.ts +284 -0
- package/src/be/model-tier-resolution.ts +112 -12
- package/src/be/multi-runtime.ts +27 -0
- package/src/be/runtime-pools/routing.ts +52 -4
- package/src/be/scripts/typecheck.ts +1 -0
- package/src/be/seed-scripts/catalog/dreaming-learnings.ts +552 -0
- package/src/be/seed-scripts/catalog/dreaming-memtax-create.ts +389 -14
- package/src/be/seed-scripts/catalog/dreaming-memtax.ts +6 -3
- package/src/be/seed-scripts/index.ts +9 -0
- package/src/be/steering.ts +8 -2
- package/src/be/swarm-config-guard.ts +2 -0
- package/src/commands/context-preamble.ts +258 -0
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/runner.ts +32 -1
- package/src/extensions/catalog.generated.json +3 -3
- package/src/fs/provider.ts +17 -3
- package/src/heartbeat/heartbeat.ts +17 -5
- package/src/heartbeat/index.ts +1 -0
- package/src/http/agents.ts +56 -4
- package/src/http/apps.ts +3 -1
- package/src/http/config.ts +2 -6
- package/src/http/core.ts +9 -3
- package/src/http/index.ts +12 -9
- package/src/http/memory.ts +9 -4
- package/src/http/model-profiles.ts +58 -10
- package/src/http/poll.ts +36 -3
- package/src/http/schedules.ts +42 -3
- package/src/http/sessions.ts +16 -3
- package/src/http/tasks.ts +37 -12
- package/src/http/utils.ts +18 -0
- package/src/http/webhooks.ts +48 -0
- package/src/http/workflows.ts +15 -2
- package/src/integrations/chat-sdk/commands.ts +167 -31
- package/src/integrations/chat-sdk/inbound.ts +10 -8
- package/src/integrations/chat-sdk/message-text.ts +117 -0
- package/src/prompts/session-templates.ts +1 -1
- package/src/providers/acp-targets.ts +11 -6
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/claude-sdk-session.ts +132 -23
- package/src/providers/codex-skill-resolver.ts +10 -4
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/devin-skill-resolver.ts +5 -5
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/scheduler/schedule-task.ts +1 -0
- package/src/scheduler/scheduler.ts +4 -1
- package/src/scripts-runtime/executors/quickjs-runner.ts +2 -0
- package/src/scripts-runtime/executors/quickjs-structured-clone.ts +180 -0
- package/src/scripts-runtime/quickjs-compat.ts +0 -1
- package/src/scripts-runtime/sdk-allowlist.ts +1 -0
- package/src/scripts-runtime/swarm-sdk.ts +18 -1
- package/src/scripts-runtime/types/stdlib.d.ts +1 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +1 -0
- package/src/server.ts +2 -0
- package/src/slack/app.ts +425 -10
- package/src/slack/handlers.ts +9 -2
- package/src/slack/inbound-dispatch.ts +18 -1
- package/src/slack/index.ts +7 -1
- package/src/slack/lifecycle-lock.ts +29 -0
- package/src/slack/render-v2.ts +424 -212
- package/src/slack/socket-fence.ts +64 -0
- package/src/slack/watcher.ts +42 -8
- package/src/slack/workspace-guard.ts +345 -0
- package/src/tasks/task-terminal-effects.ts +4 -0
- package/src/tasks/worker-follow-up.ts +102 -2
- package/src/tests/acp-adapter.test.ts +82 -0
- package/src/tests/apps-icon.test.ts +120 -0
- package/src/tests/apps-schema-form.test.ts +151 -0
- package/src/tests/chained-task-follow-up.test.ts +248 -0
- package/src/tests/chat-sdk-commands.test.ts +359 -2
- package/src/tests/chat-sdk-inbound.test.ts +20 -0
- package/src/tests/chat-sdk-slack.test.ts +189 -1
- package/src/tests/check-pr-body.test.ts +40 -0
- package/src/tests/claude-sdk-lifecycle.test.ts +216 -1
- package/src/tests/claude-sdk-process.fixture.ts +57 -0
- package/src/tests/codex-skill-resolver.test.ts +31 -0
- package/src/tests/credentials-allowlist.test.ts +470 -0
- package/src/tests/db-client-busy-retry.test.ts +69 -18
- package/src/tests/db-client.test.ts +26 -1
- package/src/tests/db-task-read-contract.test.ts +7 -0
- package/src/tests/db-task-write-contract.test.ts +6 -0
- package/src/tests/deferred-wake-follow-up.test.ts +47 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/dreaming-learnings.test.ts +1395 -0
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/event-loop-lag.test.ts +184 -0
- package/src/tests/explicit-model-validation.test.ts +2 -0
- package/src/tests/extensions-example-comms-adherence-gate.test.ts +115 -0
- package/src/tests/fs-provider.test.ts +42 -0
- package/src/tests/github-webhook-early-ack.test.ts +144 -0
- package/src/tests/heartbeat.test.ts +28 -1
- package/src/tests/http-api-integration.test.ts +2 -0
- package/src/tests/http-log-scrubbing.test.ts +68 -2
- package/src/tests/human-free-reclassify.test.ts +5 -1
- package/src/tests/kv-storage.test.ts +92 -1
- package/src/tests/list-endpoint-slimming.test.ts +17 -0
- package/src/tests/memory-key-paths.test.ts +57 -0
- package/src/tests/memory-retrieval-purge.test.ts +19 -0
- package/src/tests/migration-283-workflow-run-definitions.test.ts +69 -0
- package/src/tests/model-profile-check.test.ts +387 -0
- package/src/tests/model-profiles-api.test.ts +528 -1
- package/src/tests/profile-claim.test.ts +415 -3
- package/src/tests/profile-tier-alias.test.ts +382 -0
- package/src/tests/quickjs-compat.test.ts +1 -1
- package/src/tests/runner-context-preamble.test.ts +552 -0
- package/src/tests/schedule-profile.test.ts +359 -0
- package/src/tests/script-connections.test.ts +9 -0
- package/src/tests/script-executor-conformance.test.ts +188 -0
- package/src/tests/script-per-script-executor.test.ts +1 -0
- package/src/tests/scripts-sdk-bridge-tool-failure.test.ts +141 -0
- package/src/tests/seed-scripts.test.ts +2 -2
- package/src/tests/sessions-tree.test.ts +133 -2
- package/src/tests/slack-app-icon.test.ts +4 -0
- package/src/tests/slack-dm-implicit-mention.test.ts +236 -0
- package/src/tests/slack-file-tools-attachments.test.ts +1 -0
- package/src/tests/slack-inbound-receipts.test.ts +22 -2
- package/src/tests/slack-read-boundaries.test.ts +4 -3
- package/src/tests/slack-render-v2-query-plans.test.ts +262 -3
- package/src/tests/slack-render-v2-reconcile.test.ts +201 -0
- package/src/tests/slack-socket-ack.test.ts +16 -1
- package/src/tests/slack-socket-watchdog.test.ts +748 -0
- package/src/tests/slack-workspace-guard.test.ts +905 -0
- package/src/tests/steering-core.test.ts +40 -0
- package/src/tests/store-progress-learning.test.ts +605 -20
- package/src/tests/tool-annotations.test.ts +1 -1
- package/src/tests/vcs-identity-inheritance.test.ts +85 -0
- package/src/tests/workflow-convergence.test.ts +46 -40
- package/src/tests/workflow-definition-pinning-recovery.test.ts +552 -0
- package/src/tests/workflow-definition-pinning.test.ts +645 -0
- package/src/tests/workflow-executors.test.ts +16 -7
- package/src/tests/workflow-foreach.test.ts +43 -20
- package/src/tests/workflow-notify-slack-ready.test.ts +161 -0
- package/src/tests/workflow-profile.test.ts +328 -0
- package/src/tools/app-upsert.ts +1 -1
- package/src/tools/memory-edit.ts +2 -1
- package/src/tools/model-profiles/check-model-profile.ts +63 -0
- package/src/tools/schedules/create-schedule.ts +45 -4
- package/src/tools/schedules/patch-schedule.ts +50 -4
- package/src/tools/schedules/update-schedule.ts +50 -4
- package/src/tools/send-task.ts +17 -2
- package/src/tools/store-progress.ts +15 -3
- package/src/tools/task-action.ts +9 -1
- package/src/tools/templates.ts +13 -0
- package/src/tools/tool-config.ts +2 -1
- package/src/tools/utils.ts +77 -11
- package/src/tools/workflows/create-workflow.ts +1 -1
- package/src/tools/workflows/retry-workflow-run.ts +1 -1
- package/src/tools/workflows/update-workflow.ts +10 -1
- package/src/types.ts +56 -1
- package/src/utils/credentials.ts +89 -12
- package/src/workflows/engine.ts +10 -1
- package/src/workflows/executors/agent-task.ts +21 -2
- package/src/workflows/executors/foreach.ts +4 -1
- package/src/workflows/executors/notify.ts +62 -6
- package/src/workflows/executors/sub-workflow.ts +1 -1
- package/src/workflows/executors/swarm-script.ts +4 -1
- package/src/workflows/foreach-driver.ts +8 -5
- package/src/workflows/limits.ts +2 -1
- package/src/workflows/model-validation.ts +27 -2
- package/src/workflows/patch-definition.ts +3 -1
- package/src/workflows/recovery.ts +6 -6
- package/src/workflows/resume.ts +9 -9
- package/src/workflows/retry-poller.ts +2 -2
- package/templates/extensions/comms-adherence-gate/README.md +25 -0
- package/templates/extensions/comms-adherence-gate/hooks.ts +100 -11
- package/templates/extensions/comms-adherence-gate/manifest.json +1 -1
- package/templates/skills/apps/SKILL.md +9 -0
- package/templates/skills/apps/content.md +9 -0
- package/templates/skills/code-quality/content.md +12 -0
- package/templates/skills/memory/content.md +8 -0
- package/templates/skills/scheduling/config.json +1 -1
- package/templates/skills/scheduling/content.md +2 -2
- package/templates/skills/swarm-docs/content.md +4 -0
- package/templates/skills/swarm-extensions/content.md +1 -1
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/templates/skills/work-on-task/SKILL.md +2 -0
- package/templates/skills/work-on-task/content.md +2 -0
- package/templates/workflows/dreaming/content.md +174 -7
- package/dist/acp-adapter-dn4gdsgr.js +0 -16
- package/dist/app-a66ssc4k.js +0 -17
- package/dist/cli-530hkwdy.js +0 -779
- package/dist/cli-a0657jmf.js +0 -339
- package/dist/cli-cyn9v8zr.js +0 -748
- package/dist/handlers-crckt5dq.js +0 -32
- package/dist/heartbeat-8phn1kdq.js +0 -41
- package/dist/index-4x08sjtk.js +0 -30
- package/dist/index-8ybffts4.js +0 -37
- package/dist/index-nfy4kkg5.js +0 -33
- package/dist/lead-zdqxsvjn.js +0 -71
- package/dist/worker-y62rvvq3.js +0 -71
- package/dist/{cli-gxy8y1dt.js → cli-8bpgbr8k.js} +3 -3
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
init_steering2,
|
|
12
12
|
createLogEntry2,
|
|
13
13
|
init_db4
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-h38x262p.js";
|
|
15
15
|
import {
|
|
16
16
|
ackSlackMessage,
|
|
17
17
|
skipSlackMessageReaction,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
init_watcher,
|
|
29
29
|
getSlackApp2,
|
|
30
30
|
init_app3
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-p1bq50aa.js";
|
|
32
32
|
import {
|
|
33
33
|
TaskCreationBlockedError,
|
|
34
34
|
init_errors2,
|
|
@@ -42,20 +42,20 @@ import {
|
|
|
42
42
|
init_message_text,
|
|
43
43
|
createAdditiveBuffer,
|
|
44
44
|
init_additive_buffer
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-rfywm85n.js";
|
|
46
46
|
import {
|
|
47
47
|
resolveSlackUserId,
|
|
48
48
|
rewriteSlackMentions,
|
|
49
49
|
init_enrich
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-6t09sdhy.js";
|
|
51
51
|
import {
|
|
52
52
|
isSlackThreadLeft,
|
|
53
53
|
init_left_threads
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-a7wvp2km.js";
|
|
55
55
|
import {
|
|
56
56
|
findUserByExternalId,
|
|
57
57
|
init_users
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-gxkx0zzp.js";
|
|
59
59
|
import {
|
|
60
60
|
isSteeringEnabled2,
|
|
61
61
|
init_steering_enabled
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
applyOpenRouterBaseUrlOverride2,
|
|
11
11
|
buildOpenAICompatibleProviderBlock2
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-7p1kvkck.js";
|
|
13
13
|
import {
|
|
14
14
|
fetchInstalledMcpServers
|
|
15
15
|
} from "./cli-bst1vp7e.js";
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_MODEL_TIER_MAP,
|
|
32
32
|
init_types4
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-2zp0et3v.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveTemplateFromCode,
|
|
36
36
|
resolveTemplateAsync,
|
|
37
37
|
init_resolver,
|
|
38
38
|
init_session_templates
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-v1dv1r37.js";
|
|
40
40
|
import {
|
|
41
41
|
NEVER,
|
|
42
42
|
string2,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
init_package,
|
|
60
60
|
package_default
|
|
61
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-334z18y3.js";
|
|
62
62
|
import {
|
|
63
63
|
fxModelRoute,
|
|
64
64
|
normalizeGrokModel,
|
|
@@ -4366,12 +4366,16 @@ function copyEnvKeys(config, env, keys) {
|
|
|
4366
4366
|
function parseStringArray(value) {
|
|
4367
4367
|
if (!value?.trim())
|
|
4368
4368
|
return [];
|
|
4369
|
+
let parsed;
|
|
4369
4370
|
try {
|
|
4370
|
-
|
|
4371
|
-
if (Array.isArray(parsed) && parsed.every((entry) => typeof entry === "string")) {
|
|
4372
|
-
return parsed;
|
|
4373
|
-
}
|
|
4371
|
+
parsed = JSON.parse(value);
|
|
4374
4372
|
} catch {}
|
|
4373
|
+
if (Array.isArray(parsed)) {
|
|
4374
|
+
if (!parsed.every((entry) => typeof entry === "string")) {
|
|
4375
|
+
throw new AcpTargetResolutionError("ACP_TARGET_ENV_KEYS must be a JSON array of strings.");
|
|
4376
|
+
}
|
|
4377
|
+
return parsed;
|
|
4378
|
+
}
|
|
4375
4379
|
return value.split(",").map((entry) => entry.trim()).filter(Boolean);
|
|
4376
4380
|
}
|
|
4377
4381
|
function configuredOptions(config) {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveTemplateAsync,
|
|
13
13
|
init_resolver,
|
|
14
14
|
init_session_templates
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-v1dv1r37.js";
|
|
16
16
|
import {
|
|
17
17
|
MAX_PROFILE_FILE_LENGTH,
|
|
18
18
|
getAppUrl,
|
|
@@ -1074,6 +1074,171 @@ function summarizeSessionLogLine(line) {
|
|
|
1074
1074
|
const snippet = JSON.stringify(parsed).replace(/\s+/g, " ").slice(0, 120);
|
|
1075
1075
|
return snippet ? `[${ts}] ${snippet}` : null;
|
|
1076
1076
|
}
|
|
1077
|
+
function firstString(...values) {
|
|
1078
|
+
for (const v of values)
|
|
1079
|
+
if (typeof v === "string" && v)
|
|
1080
|
+
return v;
|
|
1081
|
+
return null;
|
|
1082
|
+
}
|
|
1083
|
+
function asRecord(value) {
|
|
1084
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : undefined;
|
|
1085
|
+
}
|
|
1086
|
+
function codexToolUse(item) {
|
|
1087
|
+
const id = firstString(item.id);
|
|
1088
|
+
if (item.type === "command_execution") {
|
|
1089
|
+
const command = Array.isArray(item.command) ? item.command.join(" ") : item.command;
|
|
1090
|
+
return { kind: "use", id, name: "bash", input: { command } };
|
|
1091
|
+
}
|
|
1092
|
+
if (item.type === "mcp_tool_call") {
|
|
1093
|
+
return {
|
|
1094
|
+
kind: "use",
|
|
1095
|
+
id,
|
|
1096
|
+
name: `${item.server ?? "mcp"}.${item.tool ?? "unknown"}`,
|
|
1097
|
+
input: asRecord(item.arguments)
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
return { kind: "use", id, name: String(item.type), input: undefined };
|
|
1101
|
+
}
|
|
1102
|
+
function extractToolLogEvents(line) {
|
|
1103
|
+
let parsed;
|
|
1104
|
+
try {
|
|
1105
|
+
parsed = JSON.parse(line.content);
|
|
1106
|
+
} catch {
|
|
1107
|
+
return [];
|
|
1108
|
+
}
|
|
1109
|
+
const obj = asRecord(parsed);
|
|
1110
|
+
if (!obj)
|
|
1111
|
+
return [];
|
|
1112
|
+
const content = asRecord(obj.message)?.content;
|
|
1113
|
+
if (Array.isArray(content)) {
|
|
1114
|
+
const events = [];
|
|
1115
|
+
for (const block of content) {
|
|
1116
|
+
const b = asRecord(block);
|
|
1117
|
+
if (!b)
|
|
1118
|
+
continue;
|
|
1119
|
+
if (b.type === "tool_use" && typeof b.name === "string") {
|
|
1120
|
+
events.push({ kind: "use", id: firstString(b.id), name: b.name, input: asRecord(b.input) });
|
|
1121
|
+
} else if (b.type === "tool_result") {
|
|
1122
|
+
const id = firstString(b.tool_use_id);
|
|
1123
|
+
if (id)
|
|
1124
|
+
events.push({ kind: "result", id });
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
return events;
|
|
1128
|
+
}
|
|
1129
|
+
const update = asRecord(obj.update);
|
|
1130
|
+
if (update?.sessionUpdate === "tool_call_update") {
|
|
1131
|
+
const id = firstString(update.toolCallId);
|
|
1132
|
+
const input = asRecord(update.rawInput);
|
|
1133
|
+
return id && input ? [{ kind: "input", id, input }] : [];
|
|
1134
|
+
}
|
|
1135
|
+
const item = asRecord(obj.item);
|
|
1136
|
+
const result = (...ids) => {
|
|
1137
|
+
const id = firstString(...ids);
|
|
1138
|
+
return id ? [{ kind: "result", id }] : [];
|
|
1139
|
+
};
|
|
1140
|
+
switch (obj.type) {
|
|
1141
|
+
case "item.started": {
|
|
1142
|
+
return item && CODEX_TOOL_ITEMS.has(String(item.type)) ? [codexToolUse(item)] : [];
|
|
1143
|
+
}
|
|
1144
|
+
case "item.completed":
|
|
1145
|
+
return item && CODEX_TOOL_ITEMS.has(String(item.type)) ? result(item.id) : [];
|
|
1146
|
+
case "tool_start":
|
|
1147
|
+
return [
|
|
1148
|
+
{
|
|
1149
|
+
kind: "use",
|
|
1150
|
+
id: firstString(obj.toolCallId),
|
|
1151
|
+
name: firstString(obj.toolName) ?? "tool",
|
|
1152
|
+
input: asRecord(obj.args)
|
|
1153
|
+
}
|
|
1154
|
+
];
|
|
1155
|
+
case "tool_end":
|
|
1156
|
+
return result(obj.toolCallId);
|
|
1157
|
+
case "agent.tool_use":
|
|
1158
|
+
case "agent.mcp_tool_use": {
|
|
1159
|
+
const name = firstString(obj.name) ?? "tool";
|
|
1160
|
+
const server = firstString(obj.mcp_server_name);
|
|
1161
|
+
return [
|
|
1162
|
+
{
|
|
1163
|
+
kind: "use",
|
|
1164
|
+
id: firstString(obj.id),
|
|
1165
|
+
name: obj.type === "agent.mcp_tool_use" && server ? `${server}.${name}` : name,
|
|
1166
|
+
input: asRecord(obj.input)
|
|
1167
|
+
}
|
|
1168
|
+
];
|
|
1169
|
+
}
|
|
1170
|
+
case "agent.tool_result":
|
|
1171
|
+
return result(obj.tool_use_id);
|
|
1172
|
+
case "agent.mcp_tool_result":
|
|
1173
|
+
return result(obj.mcp_tool_use_id);
|
|
1174
|
+
case "tool_call": {
|
|
1175
|
+
if (typeof obj.status === "string" && obj.call_id !== undefined) {
|
|
1176
|
+
if (obj.status !== "running")
|
|
1177
|
+
return result(obj.call_id);
|
|
1178
|
+
const args = asRecord(obj.args);
|
|
1179
|
+
const mcpTool = obj.name === "mcp" ? firstString(args?.toolName) : null;
|
|
1180
|
+
return [
|
|
1181
|
+
{
|
|
1182
|
+
kind: "use",
|
|
1183
|
+
id: firstString(obj.call_id),
|
|
1184
|
+
name: mcpTool ? `mcp__${firstString(args?.providerIdentifier) ?? "mcp"}__${mcpTool}` : firstString(obj.name) ?? "tool",
|
|
1185
|
+
input: mcpTool ? asRecord(args?.args) : args
|
|
1186
|
+
}
|
|
1187
|
+
];
|
|
1188
|
+
}
|
|
1189
|
+
return [
|
|
1190
|
+
{
|
|
1191
|
+
kind: "use",
|
|
1192
|
+
id: firstString(obj.callId),
|
|
1193
|
+
name: firstString(obj.tool, obj.name) ?? "tool",
|
|
1194
|
+
input: asRecord(obj.input)
|
|
1195
|
+
}
|
|
1196
|
+
];
|
|
1197
|
+
}
|
|
1198
|
+
case "tool_use":
|
|
1199
|
+
return typeof obj.name === "string" ? [
|
|
1200
|
+
{
|
|
1201
|
+
kind: "use",
|
|
1202
|
+
id: firstString(obj.id, obj.tool_use_id, obj.call_id, obj.callId, obj.toolCallId),
|
|
1203
|
+
name: obj.name,
|
|
1204
|
+
input: asRecord(obj.input)
|
|
1205
|
+
}
|
|
1206
|
+
] : [];
|
|
1207
|
+
case "tool_result":
|
|
1208
|
+
return result(obj.tool_use_id, obj.call_id, obj.callId, obj.toolCallId, obj.id);
|
|
1209
|
+
default:
|
|
1210
|
+
return [];
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
function findInterruptedToolCall(logs) {
|
|
1214
|
+
const open = new Map;
|
|
1215
|
+
const answered = new Set;
|
|
1216
|
+
const lateInput = new Map;
|
|
1217
|
+
for (const line of logs) {
|
|
1218
|
+
for (const event of extractToolLogEvents(line)) {
|
|
1219
|
+
if (event.kind === "use") {
|
|
1220
|
+
if (event.id && !answered.has(event.id) && !open.has(event.id))
|
|
1221
|
+
open.set(event.id, event);
|
|
1222
|
+
} else if (event.kind === "input") {
|
|
1223
|
+
lateInput.set(event.id, event.input);
|
|
1224
|
+
} else {
|
|
1225
|
+
answered.add(event.id);
|
|
1226
|
+
open.delete(event.id);
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
const calls = [];
|
|
1231
|
+
for (const use of open.values()) {
|
|
1232
|
+
if (READ_ONLY_TOOLS.has(use.name.toLowerCase()))
|
|
1233
|
+
continue;
|
|
1234
|
+
const input = { ...use.input, ...use.id ? lateInput.get(use.id) : undefined };
|
|
1235
|
+
const primary = firstString(input?.file_path, input?.path, input?.command);
|
|
1236
|
+
const raw = primary ?? (Object.keys(input).length > 0 ? JSON.stringify(input) : "");
|
|
1237
|
+
const args = raw.replace(/\s+/g, " ").trim().slice(0, 200);
|
|
1238
|
+
calls.push(args ? `${use.name} ${args}` : use.name);
|
|
1239
|
+
}
|
|
1240
|
+
return calls.length > 0 ? calls.slice(-MAX_INTERRUPTED_CALLS).join("; ") : null;
|
|
1241
|
+
}
|
|
1077
1242
|
async function walkResumeChain(apiUrl, apiKey, immediateParentId) {
|
|
1078
1243
|
const chain = [];
|
|
1079
1244
|
let currentId = immediateParentId;
|
|
@@ -1110,6 +1275,9 @@ async function buildResumeContextPreamble(apiUrl, apiKey, parentTaskId) {
|
|
|
1110
1275
|
let logsBudget = Math.floor(CONTEXT_PREAMBLE_RESUME_MAX_CHARS * 0.3);
|
|
1111
1276
|
let artBudget = Math.floor(CONTEXT_PREAMBLE_RESUME_MAX_CHARS * 0.1);
|
|
1112
1277
|
const steeringBudget = Math.floor(CONTEXT_PREAMBLE_RESUME_MAX_CHARS * 0.1);
|
|
1278
|
+
const interruptedSession = logsBatches.find((batch) => batch.length > 0) ?? [];
|
|
1279
|
+
const interrupted = findInterruptedToolCall([...interruptedSession].sort((a, b) => a.createdAt.localeCompare(b.createdAt)).slice(-CONTEXT_PREAMBLE_RESUME_SESSION_LOG_LIMIT));
|
|
1280
|
+
const interruptedLine = interrupted ? scrubSecrets(`Interrupted: ${interrupted} may have landed. Check its effect before calling it again.`) : "";
|
|
1113
1281
|
const header = [
|
|
1114
1282
|
`
|
|
1115
1283
|
---`,
|
|
@@ -1123,6 +1291,7 @@ async function buildResumeContextPreamble(apiUrl, apiKey, parentTaskId) {
|
|
|
1123
1291
|
"",
|
|
1124
1292
|
`Original task ID: \`${original.id}\``,
|
|
1125
1293
|
chain.length > 1 ? `Resume chain depth: ${chain.length} (this is at least the ${chain.length === 2 ? "2nd" : chain.length === 3 ? "3rd" : `${chain.length}th`} resume attempt).` : "",
|
|
1294
|
+
interruptedLine,
|
|
1126
1295
|
"",
|
|
1127
1296
|
"---",
|
|
1128
1297
|
"",
|
|
@@ -1198,7 +1367,7 @@ async function buildResumeContextPreamble(apiUrl, apiKey, parentTaskId) {
|
|
|
1198
1367
|
}
|
|
1199
1368
|
return preamble;
|
|
1200
1369
|
}
|
|
1201
|
-
var CONTEXT_PREAMBLE_MAX_TOKENS, CONTEXT_PREAMBLE_MAX_CHARS, CONTEXT_PREAMBLE_MAX_ANCESTORS = 5, CONTEXT_PREAMBLE_RESUME_MAX_TOKENS, CONTEXT_PREAMBLE_RESUME_MAX_CHARS, CONTEXT_PREAMBLE_RESUME_SESSION_LOG_LIMIT = 50, MAX_RESUME_CHAIN_DEPTH = 10;
|
|
1370
|
+
var CONTEXT_PREAMBLE_MAX_TOKENS, CONTEXT_PREAMBLE_MAX_CHARS, CONTEXT_PREAMBLE_MAX_ANCESTORS = 5, CONTEXT_PREAMBLE_RESUME_MAX_TOKENS, CONTEXT_PREAMBLE_RESUME_MAX_CHARS, CONTEXT_PREAMBLE_RESUME_SESSION_LOG_LIMIT = 50, READ_ONLY_TOOLS, CODEX_TOOL_ITEMS, MAX_INTERRUPTED_CALLS = 3, MAX_RESUME_CHAIN_DEPTH = 10;
|
|
1202
1371
|
var init_context_preamble = __esm(() => {
|
|
1203
1372
|
init_secret_scrubber();
|
|
1204
1373
|
init_steering_enabled();
|
|
@@ -1207,6 +1376,32 @@ var init_context_preamble = __esm(() => {
|
|
|
1207
1376
|
CONTEXT_PREAMBLE_MAX_CHARS = CONTEXT_PREAMBLE_MAX_TOKENS * 4;
|
|
1208
1377
|
CONTEXT_PREAMBLE_RESUME_MAX_TOKENS = Number(process.env.CONTEXT_PREAMBLE_RESUME_MAX_TOKENS || "4000");
|
|
1209
1378
|
CONTEXT_PREAMBLE_RESUME_MAX_CHARS = CONTEXT_PREAMBLE_RESUME_MAX_TOKENS * 4;
|
|
1379
|
+
READ_ONLY_TOOLS = new Set([
|
|
1380
|
+
"read",
|
|
1381
|
+
"grep",
|
|
1382
|
+
"glob",
|
|
1383
|
+
"ls",
|
|
1384
|
+
"list",
|
|
1385
|
+
"find",
|
|
1386
|
+
"webfetch",
|
|
1387
|
+
"websearch",
|
|
1388
|
+
"web_search",
|
|
1389
|
+
"toolsearch",
|
|
1390
|
+
"tool_search",
|
|
1391
|
+
"skill",
|
|
1392
|
+
"todowrite",
|
|
1393
|
+
"todoread",
|
|
1394
|
+
"todo_list",
|
|
1395
|
+
"shell_command_status"
|
|
1396
|
+
]);
|
|
1397
|
+
CODEX_TOOL_ITEMS = new Set([
|
|
1398
|
+
"command_execution",
|
|
1399
|
+
"mcp_tool_call",
|
|
1400
|
+
"collab_tool_call",
|
|
1401
|
+
"web_search",
|
|
1402
|
+
"todo_list",
|
|
1403
|
+
"file_change"
|
|
1404
|
+
]);
|
|
1210
1405
|
});
|
|
1211
1406
|
|
|
1212
1407
|
// src/commands/profile-sync.ts
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
convertEmojiPlaceholders2,
|
|
4
4
|
cardChildToFallbackText2,
|
|
5
5
|
isCardElement2,
|
|
6
|
-
|
|
7
|
-
} from "./cli-
|
|
6
|
+
init_dist4
|
|
7
|
+
} from "./cli-n9ftpys4.js";
|
|
8
8
|
import {
|
|
9
9
|
__esm
|
|
10
10
|
} from "./cli-242037k3.js";
|
|
@@ -529,8 +529,8 @@ function maskCodeSpans(text, replacement = " ") {
|
|
|
529
529
|
}
|
|
530
530
|
var AdapterError, AdapterRateLimitError, AuthenticationError2, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, BUTTON_STYLE_MAPPINGS, ALGORITHM = "aes-256-gcm", IV_LENGTH = 12, AUTH_TAG_LENGTH = 16, HEX_KEY_PATTERN, LIMIT, REDIRECTS = 5, TIMEOUT = 30000, STATUSES, BRACKETS, IPV4, IPV6, DECODERS, BLOCKED4, BLOCKED6, HTTP = "http://", HTTPS = "https://";
|
|
531
531
|
var init_dist = __esm(() => {
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
init_dist4();
|
|
533
|
+
init_dist4();
|
|
534
534
|
AdapterError = class extends Error {
|
|
535
535
|
adapter;
|
|
536
536
|
code;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./cli-0726awxw.js";
|
|
5
5
|
import {
|
|
6
6
|
summarizeSession
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-g70vxtjh.js";
|
|
8
8
|
import {
|
|
9
9
|
getMemoryRaterNames,
|
|
10
10
|
init_memory_raters,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
readIdentityBaselines,
|
|
20
20
|
advanceIdentityBaselines,
|
|
21
21
|
init_profile_sync
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-tk7cjj8h.js";
|
|
23
23
|
import {
|
|
24
24
|
getOpenRouterAttributionHeaders,
|
|
25
25
|
init_openrouter_base_url
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
resolveTemplateAsync,
|
|
30
30
|
init_resolver,
|
|
31
31
|
init_session_templates
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-v1dv1r37.js";
|
|
33
33
|
import {
|
|
34
34
|
isSessionSummarySkipped,
|
|
35
35
|
init_env_flag
|
|
@@ -366,7 +366,7 @@ Your profile lives in the database. Edit it with \`update-profile\`: \`soulMd\`,
|
|
|
366
366
|
## Memory
|
|
367
367
|
|
|
368
368
|
Memories from past sessions are in your task message. Read them before you start. For a wider search, run the \`task-context-gathering\` script with the task ID and two to four queries.
|
|
369
|
-
|
|
369
|
+
Pass a fix, pattern or gotcha the next agent needs as \`learning\` on a \`store-progress\` call before the task ends: line 1 a title, line 2 the rule ("When X, do Y"), never a status line. Completed task outputs are stored for you.
|
|
370
370
|
You MUST use the \`memory\` skill before you store, edit, or delete a memory.
|
|
371
371
|
`,
|
|
372
372
|
variables: [],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveSlashSkillPrompt
|
|
3
|
-
} from "./cli-jc1g9ndz.js";
|
|
4
1
|
import {
|
|
5
2
|
reasoningCapability,
|
|
6
3
|
applyReasoningEffort
|
|
7
4
|
} from "./cli-jrzkw01m.js";
|
|
5
|
+
import {
|
|
6
|
+
resolveSlashSkillPrompt
|
|
7
|
+
} from "./cli-5j88qqa8.js";
|
|
8
8
|
import {
|
|
9
9
|
CONTEXT_FORMULA,
|
|
10
10
|
getContextWindowSize,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL_TIER_MAP,
|
|
26
26
|
init_types4
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-2zp0et3v.js";
|
|
28
28
|
import {
|
|
29
29
|
getOpenRouterBaseUrl,
|
|
30
30
|
getOpenRouterAttributionHeaders,
|
|
@@ -72,7 +72,7 @@ init_multi_runtime2();
|
|
|
72
72
|
init_openrouter_base_url();
|
|
73
73
|
init_process_group();
|
|
74
74
|
init_secret_scrubber();
|
|
75
|
-
var DSH_PACKAGE = "@deepseek-ai/dsh@0.2.2-
|
|
75
|
+
var DSH_PACKAGE = "@deepseek-ai/dsh@0.2.2-rc.1";
|
|
76
76
|
function checkDshCredentials2(env) {
|
|
77
77
|
return env.DEEPSEEK_API_KEY?.trim() || env.OPENROUTER_API_KEY?.trim() ? { ready: true, missing: [], satisfiedBy: "env" } : {
|
|
78
78
|
ready: false,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
init_src,
|
|
75
75
|
selectCredential,
|
|
76
76
|
init_credentials2
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-5mrq3ake.js";
|
|
78
78
|
import {
|
|
79
79
|
__export,
|
|
80
80
|
__esm
|
|
@@ -6330,13 +6330,13 @@ var init_azure_openai_responses_lazy = __esm(() => {
|
|
|
6330
6330
|
});
|
|
6331
6331
|
|
|
6332
6332
|
// node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js
|
|
6333
|
-
var googleGenerativeAIApi = () => lazyApi(() => import("./google-generative-ai-
|
|
6333
|
+
var googleGenerativeAIApi = () => lazyApi(() => import("./google-generative-ai-h7s3e9kk.js"));
|
|
6334
6334
|
var init_google_generative_ai_lazy = __esm(() => {
|
|
6335
6335
|
init_lazy();
|
|
6336
6336
|
});
|
|
6337
6337
|
|
|
6338
6338
|
// node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js
|
|
6339
|
-
var googleVertexApi = () => lazyApi(() => import("./google-vertex-
|
|
6339
|
+
var googleVertexApi = () => lazyApi(() => import("./google-vertex-fhxaafzw.js"));
|
|
6340
6340
|
var init_google_vertex_lazy = __esm(() => {
|
|
6341
6341
|
init_lazy();
|
|
6342
6342
|
});
|
|
@@ -2,19 +2,16 @@ import {
|
|
|
2
2
|
contextStatePath,
|
|
3
3
|
contextBoundNoteMarkerPath,
|
|
4
4
|
recordContextState
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-xzm9vcfg.js";
|
|
6
6
|
import {
|
|
7
7
|
runStopHookSessionSummarySubprocess
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-qa4wdgsy.js";
|
|
9
9
|
import {
|
|
10
10
|
redactRateLimitEventLine,
|
|
11
11
|
SessionErrorTracker,
|
|
12
12
|
trackErrorFromJson,
|
|
13
13
|
parseStderrForErrors
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import {
|
|
16
|
-
resolveSlashSkillPrompt
|
|
17
|
-
} from "./cli-jc1g9ndz.js";
|
|
14
|
+
} from "./cli-kc7v1nfv.js";
|
|
18
15
|
import {
|
|
19
16
|
CTX_MODE_NUDGE_EVERY
|
|
20
17
|
} from "./cli-4bd1rck6.js";
|
|
@@ -28,6 +25,9 @@ import {
|
|
|
28
25
|
import {
|
|
29
26
|
fetchInstalledMcpServers
|
|
30
27
|
} from "./cli-bst1vp7e.js";
|
|
28
|
+
import {
|
|
29
|
+
resolveSlashSkillPrompt
|
|
30
|
+
} from "./cli-5j88qqa8.js";
|
|
31
31
|
import {
|
|
32
32
|
CONTEXT_FORMULA,
|
|
33
33
|
getContextWindowSize,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
withFileLock,
|
|
57
57
|
init_file_lock
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-tk7cjj8h.js";
|
|
59
59
|
import {
|
|
60
60
|
getOpenRouterAttributionHeaders,
|
|
61
61
|
init_openrouter_base_url
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
CLAUDE_CREDENTIALS_HINT,
|
|
69
69
|
validateClaudeCredentials,
|
|
70
70
|
init_credentials2
|
|
71
|
-
} from "./cli-
|
|
71
|
+
} from "./cli-5mrq3ake.js";
|
|
72
72
|
import {
|
|
73
73
|
isEnvFlagEnabled,
|
|
74
74
|
init_env_flag
|
|
@@ -1263,7 +1263,7 @@ class ClaudeAdapter2 {
|
|
|
1263
1263
|
if (transport === "sdk" && isClaudeBridgeEffective(sourceEnv)) {
|
|
1264
1264
|
throw new Error("CLAUDE_TRANSPORT=sdk cannot run with an effective Claude Bridge configuration. Select CLI transport or disable the bridge.");
|
|
1265
1265
|
}
|
|
1266
|
-
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-
|
|
1266
|
+
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-0q0ptaba.js") : undefined;
|
|
1267
1267
|
claudeSdk?.validateClaudeSdkAdditionalArgs([
|
|
1268
1268
|
...claudeBinaryArgv.slice(1),
|
|
1269
1269
|
...config.additionalArgs ?? []
|