@desplega.ai/agent-swarm 2.7.7 → 2.7.8
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-7b4vk3h5.js → acp-adapter-vg5hqkvj.js} +6 -6
- package/dist/{actions-3tt153af.js → actions-4m1ct4nh.js} +18 -18
- package/dist/{amp-adapter-njpts0yr.js → amp-adapter-txqh7eqj.js} +2 -2
- package/dist/{app-nky4378f.js → app-e00m45gn.js} +3 -3
- package/dist/{assistant-jnb669pa.js → assistant-gd08kr9e.js} +20 -20
- package/dist/boot-args-schema-tjrkpbvm.js +89 -0
- package/dist/{boot-reembed-9mgvaztt.js → boot-reembed-21hbck22.js} +1 -1
- package/dist/{boot-reembed-qs2djdej.js → boot-reembed-mdxd3wgp.js} +1 -1
- package/dist/{boot-scrub-sweep-yjpdj7s1.js → boot-scrub-sweep-qy0zr9t2.js} +3 -3
- package/dist/{boot-seeds-5cm6ambd.js → boot-seeds-n46eaxdv.js} +4 -4
- package/dist/{claude-adapter-fn287zmm.js → claude-adapter-j37w2eds.js} +6 -6
- package/dist/{claude-managed-adapter-dvs2xw5n.js → claude-managed-adapter-8jvcma9a.js} +3 -3
- package/dist/{claude-managed-setup-wtdz2mj2.js → claude-managed-setup-rzkjmgc1.js} +3 -3
- package/dist/{claude-sdk-session-x91kqyhm.js → claude-sdk-session-4k7w73t0.js} +7 -7
- package/dist/{cli-rtt8g4v9.js → cli-0ykgn1h5.js} +1 -1
- package/dist/{cli-5b456bpf.js → cli-1cxrbkk6.js} +2 -2
- package/dist/{cli-5jnhv72d.js → cli-269q28a1.js} +4 -2
- package/dist/{cli-k1nje3v3.js → cli-32m9eda8.js} +49 -37
- package/dist/{cli-35rsp8ye.js → cli-3e4snnzf.js} +1 -1
- package/dist/{cli-5zx699j9.js → cli-4t50yq3j.js} +2 -2
- package/dist/{cli-n6bv12jn.js → cli-5j0m12ns.js} +10 -3
- package/dist/{cli-dhar9qay.js → cli-5ja3b75e.js} +2 -2
- package/dist/{cli-g08zdaec.js → cli-66ww7fer.js} +1 -1
- package/dist/{cli-nmzhp1b5.js → cli-7axf41jq.js} +25 -14
- package/dist/{cli-gz6q4eve.js → cli-84rj785g.js} +5 -5
- package/dist/{cli-fyt2g4wd.js → cli-85gzce7b.js} +5 -5
- package/dist/{cli-3fg0bdcv.js → cli-8h0ayw8c.js} +1 -1
- package/dist/{cli-qghe0h66.js → cli-8rpcng8j.js} +2 -2
- package/dist/{cli-ws19768n.js → cli-8sdejs1f.js} +115 -51
- package/dist/{cli-8305gbq0.js → cli-9m8hdawy.js} +3 -3
- package/dist/{cli-excnnjg2.js → cli-ae0dnfee.js} +1 -1
- package/dist/{cli-e0kmphd6.js → cli-bb0mmdk8.js} +2 -2
- package/dist/{cli-1c6tzt8g.js → cli-bbw9wj9m.js} +8 -8
- package/dist/{cli-pjctyea3.js → cli-bshb7jas.js} +2 -2
- package/dist/{cli-08bmz9z9.js → cli-btfsp3mv.js} +3 -3
- package/dist/{cli-4zsenjhy.js → cli-c0kqky8y.js} +16 -3
- package/dist/{cli-tgrv9cjx.js → cli-dq8x79v8.js} +1 -1
- package/dist/{cli-ftyxyspd.js → cli-eqtfgfr6.js} +1 -1
- package/dist/{cli-ddaanqkd.js → cli-eyg1pa00.js} +3 -3
- package/dist/{cli-8sckt74b.js → cli-fyhr5h4s.js} +34 -12
- package/dist/{cli-q3tkegby.js → cli-fzachfnf.js} +1 -1
- package/dist/{cli-ayayvfg4.js → cli-ga786dzg.js} +13 -10
- package/dist/{cli-yyj3j5m4.js → cli-gazw7kpa.js} +2 -2
- package/dist/{cli-e46hg0xw.js → cli-gvx71kqv.js} +2 -2
- package/dist/{cli-pc6n7fre.js → cli-jdv6ypxs.js} +1 -1
- package/dist/{cli-cm5yqn35.js → cli-kf3pxxdg.js} +1 -0
- package/dist/{cli-6g0hb4cp.js → cli-kyr67fgx.js} +7 -7
- package/dist/{cli-95jzxcp3.js → cli-m0hmeqma.js} +2 -2
- package/dist/{cli-6pfd54vx.js → cli-msg9m2ny.js} +3 -1
- package/dist/{cli-afkqkrtw.js → cli-nbsf8yvn.js} +15 -3
- package/dist/{cli-tfyyvzx6.js → cli-njwac61j.js} +5 -0
- package/dist/{cli-vz22fyqv.js → cli-nn3ysbqk.js} +1 -1
- package/dist/{cli-m0da8j35.js → cli-p3vsj0d3.js} +5 -5
- package/dist/{cli-72v799xn.js → cli-ppjxh6ah.js} +3 -3
- package/dist/{cli-k899ehvh.js → cli-q4ebh7h7.js} +4 -4
- package/dist/{cli-75gkpjvw.js → cli-qd57hhhh.js} +2 -2
- package/dist/{cli-qh4d4tvk.js → cli-rjknb2ae.js} +4 -4
- package/dist/{cli-caj33vcq.js → cli-s4ss5g59.js} +1 -1
- package/dist/{cli-cb2a8pna.js → cli-sq4n7af4.js} +1 -1
- package/dist/{cli-vfym7wmz.js → cli-ssnjfg5p.js} +5 -5
- package/dist/{cli-je518txm.js → cli-t60ajbbp.js} +8 -8
- package/dist/{cli-adeegh7d.js → cli-tpksw2nr.js} +21 -17
- package/dist/{cli-wk5yrfwd.js → cli-w4xnbm46.js} +150 -58
- package/dist/{cli-k8196sh2.js → cli-wemma3jd.js} +8 -7
- package/dist/{cli-cppkf404.js → cli-xq9r2wtt.js} +45 -21
- package/dist/{cli-bfv7vdg6.js → cli-xr8908my.js} +11 -11
- package/dist/{cli-73jzwksr.js → cli-ycscb2ar.js} +4 -1
- package/dist/{cli-p82cnnjq.js → cli-yqefz277.js} +1 -1
- package/dist/{cli-jtjtabxe.js → cli-z1srzaf6.js} +11 -3
- package/dist/{cli-pq73h5mz.js → cli-z75yxkjh.js} +3 -3
- package/dist/{cli-e5bzrn01.js → cli-zkky4t5g.js} +1 -1
- package/dist/cli.js +17 -15
- package/dist/{codex-adapter-cf2yxe9m.js → codex-adapter-88z6psm4.js} +5 -5
- package/dist/{codex-hook-a0c6g6t6.js → codex-hook-fac6175r.js} +1 -1
- package/dist/{codex-login-y0pmff1c.js → codex-login-74wa4hmq.js} +1 -1
- package/dist/{codex-session-runner-6vfzdgbd.js → codex-session-runner-zwbcwzvx.js} +5 -5
- package/dist/{commands-t3mfy7vn.js → commands-7amxs716.js} +3 -3
- package/dist/{controller-q7xrbaz0.js → controller-5rkkc37m.js} +2 -2
- package/dist/{controllers-connect-c6nm70kg.js → controllers-connect-m7d4vxxb.js} +19 -19
- package/dist/{cursor-adapter-ftd81ga8.js → cursor-adapter-x1q18693.js} +1 -1
- package/dist/{db-vemtpmcc.js → db-athc68zt.js} +4 -2
- package/dist/{db-dk572x25.js → db-h2fsfve3.js} +3 -3
- package/dist/{dispatcher-kh7ecxh9.js → dispatcher-b1yz2bnn.js} +17 -17
- package/dist/{dsh-adapter-v8628r89.js → dsh-adapter-e33bkxq9.js} +1 -1
- package/dist/{easter-egg-3d-nenw4x63.js → easter-egg-3d-pv5qnzc8.js} +1 -1
- package/dist/{embedding-space-0jepb239.js → embedding-space-b4txbwrk.js} +6 -6
- package/dist/{embeddings-xxt49yxg.js → embeddings-m6zn6tad.js} +1 -1
- package/dist/{execute-1mhw6e4x.js → execute-68nwny8m.js} +1 -1
- package/dist/{external-channel-55v12e60.js → external-channel-gkckmhzh.js} +2 -2
- package/dist/{fx-adapter-bs8wqrk5.js → fx-adapter-m5jbgd5q.js} +7 -7
- package/dist/{grok-adapter-gpjqmkcq.js → grok-adapter-csvv7sac.js} +7 -7
- package/dist/handlers-8x5gfbzx.js +32 -0
- package/dist/{heartbeat-k42svnr0.js → heartbeat-6c2y3267.js} +20 -20
- package/dist/{hook-6nphweh0.js → hook-q5fv0jy2.js} +6 -6
- package/dist/{hook-114m7hap.js → hook-w0q2wcrv.js} +5 -5
- package/dist/{http-r8cc4wz7.js → http-bxat8dg3.js} +260 -120
- package/dist/{index-nh3wyqdt.js → index-bxrexmfy.js} +13 -13
- package/dist/{index-e3s8wmxy.js → index-cqhqpgrv.js} +1 -1
- package/dist/{index-fpk4bcd9.js → index-fm0czesf.js} +1 -1
- package/dist/index-hpfte8jd.js +33 -0
- package/dist/index-ncf7yb5s.js +30 -0
- package/dist/index-vte6dyeh.js +37 -0
- package/dist/{keepalive-x060nt9p.js → keepalive-qnt21cv0.js} +3 -3
- package/dist/lead-4bvftzm6.js +71 -0
- package/dist/{maintenance-2xxfexhf.js → maintenance-btdr68y4.js} +1 -1
- package/dist/{oauth-refresh-sweep-fckc4ar5.js → oauth-refresh-sweep-vczabeh4.js} +2 -2
- package/dist/{onboard-zc48j237.js → onboard-k33ezyq8.js} +2 -2
- package/dist/{opencode-adapter-r690h1cr.js → opencode-adapter-3dst2ka7.js} +5 -5
- package/dist/{otel-impl-r5xbh81q.js → otel-impl-13am7a65.js} +1 -1
- package/dist/{pi-mono-adapter-c7v8sdec.js → pi-mono-adapter-c53de1gd.js} +15 -9
- package/dist/{pricing-refresh-3pmre11v.js → pricing-refresh-9fcbnq3f.js} +3 -3
- package/dist/{rbac-roles-910mmkgz.js → rbac-roles-66j5h4y5.js} +5 -3
- package/dist/{rbac-roles-3vbshwsb.js → rbac-roles-gw0p9h3j.js} +2 -2
- package/dist/{render-v2-pxykkbab.js → render-v2-fg8bmdn4.js} +3 -3
- package/dist/{resume-adda0bwy.js → resume-1c8kr3nh.js} +6 -6
- package/dist/{runtime-fnbm7stk.js → runtime-tzf9j7tc.js} +1 -1
- package/dist/{session-access-2fvamrdc.js → session-access-d0atq10j.js} +7 -5
- package/dist/{session-source-backfill-08xvv0sm.js → session-source-backfill-0vscqmsa.js} +2 -2
- package/dist/{setup-1aqmvmh1.js → setup-tvfa7rwe.js} +1 -1
- package/dist/{virtual-modules-d2pjk9j1.js → virtual-modules-efxcp740.js} +2 -2
- package/dist/{work-objects-9s0yrm5j.js → work-objects-ks71xqeb.js} +20 -20
- package/dist/worker-e7v2bvm9.js +71 -0
- package/dist/{worker-follow-up-3q78fqmr.js → worker-follow-up-bfx0h9hg.js} +17 -17
- package/openapi.json +104 -24
- package/package.json +3 -1
- package/src/be/db/model-profiles.ts +1 -1
- package/src/be/db/session-tree.ts +9 -5
- package/src/be/db/session-visibility.ts +25 -9
- package/src/be/db/tasks/read.ts +11 -6
- package/src/be/db/tasks/write.ts +77 -7
- package/src/be/db-queries/tracker.ts +4 -2
- package/src/be/db.ts +49 -17
- package/src/be/migrations/271_subscription_usage_model.sql +30 -0
- package/src/be/model-validation.ts +19 -1
- package/src/be/rbac-roles.ts +21 -0
- package/src/be/runtime-pools/routing.ts +1 -1
- package/src/be/scripts/boot-args-schema.ts +95 -0
- package/src/be/scripts/extract-schema.ts +15 -10
- package/src/be/seed-scripts/catalog/boot-triage.inline.ts +1 -1
- package/src/be/seed-scripts/catalog/boot-triage.ts +1 -1
- package/src/be/seed-scripts/catalog/get-child-outputs.ts +1 -1
- package/src/be/seed-scripts/catalog/wait-for-task.ts +1 -1
- package/src/be/swarm-config-guard.ts +7 -0
- package/src/be/users.ts +6 -4
- package/src/commands/claude-managed-setup.ts +1 -1
- package/src/commands/runner.ts +26 -9
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/http/agents.ts +7 -1
- package/src/http/approval-requests.ts +30 -6
- package/src/http/codex-oauth-device.ts +2 -2
- package/src/http/index.ts +8 -0
- package/src/http/mcp-oauth.ts +6 -0
- package/src/http/mcp-servers.ts +8 -0
- package/src/http/models-catalog.ts +1 -1
- package/src/http/pages-public.ts +38 -1
- package/src/http/poll.ts +3 -4
- package/src/http/prompt-templates.ts +1 -1
- package/src/http/schedules.ts +4 -0
- package/src/http/script-runs.ts +6 -1
- package/src/http/session-access.ts +61 -6
- package/src/http/sessions.ts +23 -7
- package/src/http/tasks.ts +53 -9
- package/src/http/users.ts +30 -1
- package/src/http/utils.ts +2 -1
- package/src/http/workflows.ts +11 -7
- package/src/prompts/session-templates.ts +1 -0
- package/src/providers/acp-targets.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +9 -2
- package/src/providers/codex-oauth/device.ts +49 -15
- package/src/providers/codex-oauth/flow.ts +2 -1
- package/src/providers/pi-mono-adapter.ts +8 -0
- package/src/providers/pricing-sources.md +16 -1
- package/src/providers/swarm-events-shared.ts +15 -2
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +5 -0
- package/src/scheduler/deferred-task-waits.ts +9 -4
- package/src/scripts-runtime/extract-args-schema.ts +3 -1
- package/src/scripts-runtime/swarm-sdk.ts +1 -1
- package/src/scripts-runtime/types/swarm-extension.d.ts +29 -28
- package/src/server-user.ts +1 -1
- package/src/slack/ack.ts +48 -12
- package/src/slack/blocks.ts +1 -0
- package/src/slack/reaction-shortcode.ts +8 -2
- package/src/slack/render-v2.ts +30 -3
- package/src/slack/task-output.ts +4 -1
- package/src/slack/thread-buffer.ts +2 -2
- package/src/tasks/task-skip.ts +28 -0
- package/src/tasks/terminal-result-guard.ts +3 -2
- package/src/telemetry.ts +28 -1
- package/src/tests/agentmail-inbox-mapping.test.ts +73 -0
- package/src/tests/approval-requests.test.ts +58 -0
- package/src/tests/claude-managed-setup.test.ts +36 -0
- package/src/tests/codex-adapter.test.ts +2 -2
- package/src/tests/codex-oauth-device.test.ts +60 -0
- package/src/tests/codex-swarm-events.test.ts +43 -1
- package/src/tests/context-window.test.ts +14 -0
- package/src/tests/db-queries-tracker.test.ts +2 -1
- package/src/tests/db-task-read-contract.test.ts +1 -0
- package/src/tests/db-task-write-contract.test.ts +2 -0
- package/src/tests/deferred-task-wake.test.ts +7 -2
- package/src/tests/e2e-coverage-contract.test.ts +235 -0
- package/src/tests/empty-output-schema.test.ts +160 -0
- package/src/tests/env-flag.test.ts +1 -0
- package/src/tests/explicit-model-validation.test.ts +14 -0
- package/src/tests/http-api-integration.test.ts +2 -2
- package/src/tests/http-users.test.ts +63 -0
- package/src/tests/mcp-input-caps.test.ts +4 -3
- package/src/tests/merge-gate-detect-changes.test.ts +22 -0
- package/src/tests/pages-authed-mode.test.ts +13 -2
- package/src/tests/pi-mono-adapter.test.ts +39 -4
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/runner-context-usage.test.ts +119 -0
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/script-executor-quickjs.test.ts +2 -0
- package/src/tests/script-runs-http.test.ts +57 -0
- package/src/tests/scripts-boot-args-schema.test.ts +181 -0
- package/src/tests/scripts-runtime.test.ts +24 -0
- package/src/tests/sdk-store-progress-skipped.test.ts +155 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +59 -0
- package/src/tests/session-sharing.test.ts +212 -2
- package/src/tests/slack-reaction-config.test.ts +1 -0
- package/src/tests/slack-render-v2.test.ts +73 -0
- package/src/tests/slack-skip-reaction.test.ts +203 -0
- package/src/tests/store-progress-skipped.test.ts +159 -0
- package/src/tests/subscription-usage-migration.test.ts +57 -0
- package/src/tests/swarm-config-reserved-keys.test.ts +3 -0
- package/src/tests/telemetry-endpoint-override.test.ts +27 -0
- package/src/tests/trigger-claiming.test.ts +2 -0
- package/src/tests/workflow-system-one-extraction.test.ts +29 -0
- package/src/tools/create-channel.ts +1 -1
- package/src/tools/defer-task.ts +1 -1
- package/src/tools/register-agentmail-inbox.ts +5 -0
- package/src/tools/repos/update-repo.ts +1 -1
- package/src/tools/request-human-input.ts +1 -1
- package/src/tools/send-task.ts +1 -1
- package/src/tools/store-progress.ts +39 -8
- package/src/tools/tracker/tracker-unlink.ts +2 -1
- package/src/tools/workflows/retry-workflow-run.ts +3 -0
- package/src/types.ts +11 -2
- package/src/utils/context-window.ts +6 -1
- package/src/utils/output-schema.ts +23 -0
- package/src/workflows/executors/system-one-providers.ts +25 -6
- package/src/workflows/recovery.ts +8 -4
- package/src/workflows/resume.ts +19 -0
- package/dist/handlers-zxmp1ta4.js +0 -32
- package/dist/index-a8phxqnk.js +0 -37
- package/dist/index-k6h00t4c.js +0 -30
- package/dist/index-xrz7te8h.js +0 -33
- package/dist/lead-956sd2yc.js +0 -71
- package/dist/worker-y15hy08h.js +0 -71
|
@@ -45,6 +45,8 @@ import {
|
|
|
45
45
|
getDb2,
|
|
46
46
|
getDbClient2,
|
|
47
47
|
init_runtime2,
|
|
48
|
+
isEffectiveOutputSchema,
|
|
49
|
+
init_output_schema,
|
|
48
50
|
isRuntimePoolsEnabled,
|
|
49
51
|
init_runtime_pools_flag,
|
|
50
52
|
normalizeDateRequired,
|
|
@@ -192,6 +194,7 @@ import {
|
|
|
192
194
|
failTask2,
|
|
193
195
|
overwriteTerminalTaskResultText2,
|
|
194
196
|
cancelTask2,
|
|
197
|
+
skipTask2,
|
|
195
198
|
getRecentlyCancelledTasksForAgent2,
|
|
196
199
|
updateTaskProgress2,
|
|
197
200
|
IdempotencyKeyTakenError,
|
|
@@ -354,17 +357,17 @@ import {
|
|
|
354
357
|
recordInlineScriptRun2,
|
|
355
358
|
exports_db,
|
|
356
359
|
init_db4
|
|
357
|
-
} from "./cli-
|
|
360
|
+
} from "./cli-w4xnbm46.js";
|
|
358
361
|
import {
|
|
359
362
|
getUserGrant2,
|
|
360
363
|
init_rbac_roles
|
|
361
|
-
} from "./cli-
|
|
364
|
+
} from "./cli-z1srzaf6.js";
|
|
362
365
|
import {
|
|
363
366
|
ensurePricingSeeded2,
|
|
364
367
|
ensureRbacSeeded2,
|
|
365
368
|
ensureModelProfilesSeeded2,
|
|
366
369
|
init_boot_seeds
|
|
367
|
-
} from "./cli-
|
|
370
|
+
} from "./cli-rjknb2ae.js";
|
|
368
371
|
import {
|
|
369
372
|
buildCatalogEntries,
|
|
370
373
|
listModelCatalog,
|
|
@@ -376,7 +379,7 @@ import {
|
|
|
376
379
|
requestModelCatalogRefresh2,
|
|
377
380
|
startPricingRefreshLoop2,
|
|
378
381
|
init_pricing_refresh
|
|
379
|
-
} from "./cli-
|
|
382
|
+
} from "./cli-1cxrbkk6.js";
|
|
380
383
|
import {
|
|
381
384
|
workflowEventBus2,
|
|
382
385
|
init_event_bus
|
|
@@ -389,7 +392,7 @@ import {
|
|
|
389
392
|
externalChannelToolError2,
|
|
390
393
|
getChannelBlockReason2,
|
|
391
394
|
init_external_channel
|
|
392
|
-
} from "./cli-
|
|
395
|
+
} from "./cli-0ykgn1h5.js";
|
|
393
396
|
import {
|
|
394
397
|
noteSlackInboundSideEffect,
|
|
395
398
|
init_inbound_dispatch,
|
|
@@ -397,6 +400,8 @@ import {
|
|
|
397
400
|
init_reaction_events,
|
|
398
401
|
withSpan2,
|
|
399
402
|
init_otel,
|
|
403
|
+
finalizeTerminalSlackReactions,
|
|
404
|
+
init_ack,
|
|
400
405
|
getTaskLink,
|
|
401
406
|
getTaskUrl,
|
|
402
407
|
markdownToSlack,
|
|
@@ -424,7 +429,7 @@ import {
|
|
|
424
429
|
startSlackApp2,
|
|
425
430
|
stopSlackApp2,
|
|
426
431
|
init_app3
|
|
427
|
-
} from "./cli-
|
|
432
|
+
} from "./cli-xq9r2wtt.js";
|
|
428
433
|
import {
|
|
429
434
|
shapeApprovalResolution,
|
|
430
435
|
init_approval_resolution,
|
|
@@ -448,7 +453,7 @@ import {
|
|
|
448
453
|
resumeFromChildRun2,
|
|
449
454
|
initWaitBusSubscriptions2,
|
|
450
455
|
init_resume
|
|
451
|
-
} from "./cli-
|
|
456
|
+
} from "./cli-nbsf8yvn.js";
|
|
452
457
|
import {
|
|
453
458
|
FilesError,
|
|
454
459
|
providerPath,
|
|
@@ -462,7 +467,7 @@ import {
|
|
|
462
467
|
import {
|
|
463
468
|
getRuntimePool2,
|
|
464
469
|
init_db2
|
|
465
|
-
} from "./cli-
|
|
470
|
+
} from "./cli-eyg1pa00.js";
|
|
466
471
|
import {
|
|
467
472
|
duplicateGuardedQueryKey,
|
|
468
473
|
parseQueryParams,
|
|
@@ -495,7 +500,7 @@ import {
|
|
|
495
500
|
findRoute,
|
|
496
501
|
route,
|
|
497
502
|
init_route_def
|
|
498
|
-
} from "./cli-
|
|
503
|
+
} from "./cli-fyhr5h4s.js";
|
|
499
504
|
import {
|
|
500
505
|
COMPOSIO_HTTP_METHODS,
|
|
501
506
|
executeComposioRequest,
|
|
@@ -507,7 +512,7 @@ import {
|
|
|
507
512
|
ampPinCatalogError,
|
|
508
513
|
ampModelError,
|
|
509
514
|
init_amp_models
|
|
510
|
-
} from "./cli-
|
|
515
|
+
} from "./cli-3e4snnzf.js";
|
|
511
516
|
import {
|
|
512
517
|
object,
|
|
513
518
|
init_v4_mini
|
|
@@ -528,7 +533,7 @@ import {
|
|
|
528
533
|
import {
|
|
529
534
|
loadModelsDevCache,
|
|
530
535
|
init_modelsdev_cache
|
|
531
|
-
} from "./cli-
|
|
536
|
+
} from "./cli-jdv6ypxs.js";
|
|
532
537
|
import {
|
|
533
538
|
require_dist2,
|
|
534
539
|
ConnectionAuthInputSchema,
|
|
@@ -607,7 +612,7 @@ import {
|
|
|
607
612
|
init_typecheck,
|
|
608
613
|
parseSkillContent,
|
|
609
614
|
init_skill_parser
|
|
610
|
-
} from "./cli-
|
|
615
|
+
} from "./cli-tpksw2nr.js";
|
|
611
616
|
import {
|
|
612
617
|
detachedProcessGroup,
|
|
613
618
|
registerProcessGroup,
|
|
@@ -622,7 +627,7 @@ import {
|
|
|
622
627
|
ensureToken,
|
|
623
628
|
ensureTokenOrThrow,
|
|
624
629
|
init_ensure_token
|
|
625
|
-
} from "./cli-
|
|
630
|
+
} from "./cli-fzachfnf.js";
|
|
626
631
|
import {
|
|
627
632
|
require_fast_deep_equal
|
|
628
633
|
} from "./cli-bhp11egn.js";
|
|
@@ -717,7 +722,7 @@ import {
|
|
|
717
722
|
validateDefinition,
|
|
718
723
|
applyDefinitionPatch,
|
|
719
724
|
init_definition2
|
|
720
|
-
} from "./cli-
|
|
725
|
+
} from "./cli-7axf41jq.js";
|
|
721
726
|
import {
|
|
722
727
|
isMultiRuntimeEnabled,
|
|
723
728
|
init_multi_runtime2
|
|
@@ -738,11 +743,11 @@ import {
|
|
|
738
743
|
isSlackLeaveThreadDisabled,
|
|
739
744
|
leaveSlackThread,
|
|
740
745
|
init_left_threads
|
|
741
|
-
} from "./cli-
|
|
746
|
+
} from "./cli-66ww7fer.js";
|
|
742
747
|
import {
|
|
743
748
|
publicEndpointSsrfOptions,
|
|
744
749
|
init_mcp_wrapper
|
|
745
|
-
} from "./cli-
|
|
750
|
+
} from "./cli-s4ss5g59.js";
|
|
746
751
|
import {
|
|
747
752
|
canProvisionKind,
|
|
748
753
|
init_runtime_providers
|
|
@@ -761,7 +766,7 @@ import {
|
|
|
761
766
|
resolveSessionToken,
|
|
762
767
|
fingerprintApiKey,
|
|
763
768
|
init_users
|
|
764
|
-
} from "./cli-
|
|
769
|
+
} from "./cli-269q28a1.js";
|
|
765
770
|
import {
|
|
766
771
|
isRbacEnabled,
|
|
767
772
|
decideAdmission,
|
|
@@ -770,7 +775,7 @@ import {
|
|
|
770
775
|
init_elevated_agents,
|
|
771
776
|
can,
|
|
772
777
|
init_rbac
|
|
773
|
-
} from "./cli-
|
|
778
|
+
} from "./cli-njwac61j.js";
|
|
774
779
|
import {
|
|
775
780
|
normalizeAssetKey,
|
|
776
781
|
sessionGroupKey,
|
|
@@ -838,7 +843,7 @@ import {
|
|
|
838
843
|
KvNamespaceSchema,
|
|
839
844
|
KvKeySchema,
|
|
840
845
|
init_types4
|
|
841
|
-
} from "./cli-
|
|
846
|
+
} from "./cli-5j0m12ns.js";
|
|
842
847
|
import {
|
|
843
848
|
generateDefaultClaudeMd2,
|
|
844
849
|
generateDefaultSoulMd2,
|
|
@@ -849,7 +854,7 @@ import {
|
|
|
849
854
|
init_task_attachment_links,
|
|
850
855
|
contentSha256,
|
|
851
856
|
init_profile_sync
|
|
852
|
-
} from "./cli-
|
|
857
|
+
} from "./cli-dq8x79v8.js";
|
|
853
858
|
import {
|
|
854
859
|
getSlackConfiguration,
|
|
855
860
|
init_config4
|
|
@@ -871,7 +876,7 @@ import {
|
|
|
871
876
|
init_registry3,
|
|
872
877
|
resolveTemplate,
|
|
873
878
|
init_resolver
|
|
874
|
-
} from "./cli-
|
|
879
|
+
} from "./cli-kf3pxxdg.js";
|
|
875
880
|
import {
|
|
876
881
|
init_zod
|
|
877
882
|
} from "./cli-k5671be5.js";
|
|
@@ -906,7 +911,7 @@ import {
|
|
|
906
911
|
import {
|
|
907
912
|
init_package,
|
|
908
913
|
package_default
|
|
909
|
-
} from "./cli-
|
|
914
|
+
} from "./cli-msg9m2ny.js";
|
|
910
915
|
import {
|
|
911
916
|
realtimeBus,
|
|
912
917
|
init_bus
|
|
@@ -20350,6 +20355,12 @@ function isKnownCatalogModel(model, catalog) {
|
|
|
20350
20355
|
const anthropic = catalog.anthropic?.models;
|
|
20351
20356
|
return Object.hasOwn(buildClaudeShortnameMap(anthropic), id);
|
|
20352
20357
|
}
|
|
20358
|
+
function claudeShortnameToCatalogId(model, catalog) {
|
|
20359
|
+
const anthropic = catalog.anthropic?.models;
|
|
20360
|
+
const shortnames = buildClaudeShortnameMap(anthropic);
|
|
20361
|
+
const bare = model.replace(CONTEXT_SUFFIX_RE, "");
|
|
20362
|
+
return Object.hasOwn(shortnames, bare) ? shortnames[bare] : model;
|
|
20363
|
+
}
|
|
20353
20364
|
async function harnessModelErrorFor(model, harness) {
|
|
20354
20365
|
const { providers } = await loadModelsCatalog();
|
|
20355
20366
|
return harnessModelMismatch(model, harness, providers, {});
|
|
@@ -20381,7 +20392,8 @@ async function explicitModelError(check) {
|
|
|
20381
20392
|
const { providers } = await loadModelsCatalog();
|
|
20382
20393
|
const catalog = providers;
|
|
20383
20394
|
if (check.harnessProvider) {
|
|
20384
|
-
const
|
|
20395
|
+
const harnessModel = harnessCatalogSection(check.harnessProvider) === "anthropic" ? model : claudeShortnameToCatalogId(model, catalog);
|
|
20396
|
+
const mismatch = harnessModelMismatch(harnessModel, check.harnessProvider, catalog, { agentId: check.agentId, agentName: check.agentName });
|
|
20385
20397
|
if (mismatch)
|
|
20386
20398
|
return mismatch;
|
|
20387
20399
|
}
|
|
@@ -20623,6 +20635,13 @@ async function completeIfSettled(runId, ctx) {
|
|
|
20623
20635
|
return true;
|
|
20624
20636
|
});
|
|
20625
20637
|
}
|
|
20638
|
+
function recoveredTaskReason(taskStatus) {
|
|
20639
|
+
if (taskStatus === "failed")
|
|
20640
|
+
return "Task failed (recovered)";
|
|
20641
|
+
if (taskStatus === "skipped")
|
|
20642
|
+
return "Task skipped (recovered)";
|
|
20643
|
+
return "Task cancelled (recovered)";
|
|
20644
|
+
}
|
|
20626
20645
|
async function recoverWaitingRuns(registry) {
|
|
20627
20646
|
const stuckRuns = await getStuckWorkflowRuns2();
|
|
20628
20647
|
let recovered = 0;
|
|
@@ -20644,7 +20663,7 @@ async function recoverWaitingRuns(registry) {
|
|
|
20644
20663
|
continue;
|
|
20645
20664
|
}
|
|
20646
20665
|
if (!taskCompleted && stepFailureMode(workflow.definition, stuck.nodeId) === "fail") {
|
|
20647
|
-
const reason = stuck.taskStatus
|
|
20666
|
+
const reason = recoveredTaskReason(stuck.taskStatus);
|
|
20648
20667
|
const failed = await failStepAndRunIfWaiting(workflow.definition, stuck.stepId, stuck.runId, reason, stuck.taskId, { registry });
|
|
20649
20668
|
if (!failed.claimed)
|
|
20650
20669
|
continue;
|
|
@@ -20652,7 +20671,7 @@ async function recoverWaitingRuns(registry) {
|
|
|
20652
20671
|
continue;
|
|
20653
20672
|
}
|
|
20654
20673
|
const ctx = run.context ?? {};
|
|
20655
|
-
const reason = stuck.taskStatus
|
|
20674
|
+
const reason = recoveredTaskReason(stuck.taskStatus);
|
|
20656
20675
|
const stepOutput = {
|
|
20657
20676
|
taskId: stuck.taskId,
|
|
20658
20677
|
taskOutput: taskCompleted ? parseRecoveredTaskOutput(stuck.taskOutput) : `${FAILED_TASK_OUTPUT_PREFIX} ${reason}] This node failed or was cancelled.`
|
|
@@ -20889,7 +20908,7 @@ function startRetryPoller(registry, intervalMs = 5000) {
|
|
|
20889
20908
|
if (!waiting)
|
|
20890
20909
|
continue;
|
|
20891
20910
|
if (result.waitFor === "workflow.child.finished") {
|
|
20892
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
20911
|
+
const { resumeFromChildRun } = await import("./resume-1c8kr3nh.js");
|
|
20893
20912
|
await resumeFromChildRun(step.id, registry);
|
|
20894
20913
|
}
|
|
20895
20914
|
} else {
|
|
@@ -21602,7 +21621,7 @@ var init_notify = __esm(() => {
|
|
|
21602
21621
|
}
|
|
21603
21622
|
}
|
|
21604
21623
|
case "slack": {
|
|
21605
|
-
const { getSlackApp } = await import("./app-
|
|
21624
|
+
const { getSlackApp } = await import("./app-e00m45gn.js");
|
|
21606
21625
|
const app = getSlackApp();
|
|
21607
21626
|
if (!app) {
|
|
21608
21627
|
return {
|
|
@@ -22612,7 +22631,7 @@ async function resolveWaitCause(scheduleId, reason) {
|
|
|
22612
22631
|
) AS deferred
|
|
22613
22632
|
FROM deferred_task_wait_members m LEFT JOIN agent_tasks t ON t.id = m.taskId
|
|
22614
22633
|
WHERE m.scheduleId = ?`, [scheduleId]);
|
|
22615
|
-
const matched = members.filter((member) => !member.deferred && (member.taskStatus === "completed" || member.taskStatus === "failed" || member.taskStatus === "cancelled") && (wait.eventName === "settled" || wait.eventName === `task.${member.taskStatus}`));
|
|
22634
|
+
const matched = members.filter((member) => !member.deferred && (member.taskStatus === "completed" || member.taskStatus === "failed" || member.taskStatus === "cancelled" || member.taskStatus === "skipped") && (wait.eventName === "settled" || wait.eventName === `task.${member.taskStatus}`));
|
|
22616
22635
|
if (!matched.length || wait.mode === "all" && matched.length !== members.length)
|
|
22617
22636
|
return;
|
|
22618
22637
|
const cause = members.length === 1 ? `task.${matched[0].taskStatus} for task ${matched[0].taskId}` : `${wait.mode} tasks matched ${wait.eventName}: ${matched.map((member) => `${member.taskId} (${member.taskStatus})`).join(", ")}`;
|
|
@@ -22727,7 +22746,7 @@ async function reconcileDeferredTaskWaits(taskId) {
|
|
|
22727
22746
|
JOIN deferred_task_wait_members m ON m.scheduleId = w.scheduleId
|
|
22728
22747
|
JOIN agent_tasks t ON t.id = m.taskId
|
|
22729
22748
|
JOIN scheduled_tasks s ON s.id = w.scheduleId
|
|
22730
|
-
WHERE w.status = 'pending' AND s.enabled = 1 AND t.status IN ('completed', 'failed', 'cancelled')
|
|
22749
|
+
WHERE w.status = 'pending' AND s.enabled = 1 AND t.status IN ('completed', 'failed', 'cancelled', 'skipped')
|
|
22731
22750
|
AND NOT EXISTS (
|
|
22732
22751
|
SELECT 1 FROM scheduled_tasks d
|
|
22733
22752
|
WHERE d.parentTaskId = t.id AND d.taskType = 'deferred' AND d.enabled = 1
|
|
@@ -22765,6 +22784,7 @@ async function initDeferredTaskWaits() {
|
|
|
22765
22784
|
workflowEventBus2.on("task.completed", onTaskEvent);
|
|
22766
22785
|
workflowEventBus2.on("task.failed", onTaskEvent);
|
|
22767
22786
|
workflowEventBus2.on("task.cancelled", onTaskEvent);
|
|
22787
|
+
workflowEventBus2.on("task.skipped", onTaskEvent);
|
|
22768
22788
|
workflowEventBus2.on("task.superseded", onTaskEvent);
|
|
22769
22789
|
workflowEventBus2.on("task.created", onTaskEvent);
|
|
22770
22790
|
await reconcileDeferredTaskWaits();
|
|
@@ -22773,6 +22793,7 @@ function stopDeferredTaskWaits() {
|
|
|
22773
22793
|
workflowEventBus2.off("task.completed", onTaskEvent);
|
|
22774
22794
|
workflowEventBus2.off("task.failed", onTaskEvent);
|
|
22775
22795
|
workflowEventBus2.off("task.cancelled", onTaskEvent);
|
|
22796
|
+
workflowEventBus2.off("task.skipped", onTaskEvent);
|
|
22776
22797
|
workflowEventBus2.off("task.superseded", onTaskEvent);
|
|
22777
22798
|
workflowEventBus2.off("task.created", onTaskEvent);
|
|
22778
22799
|
}
|
|
@@ -24995,7 +25016,7 @@ function setPreloadedTools(server, names) {
|
|
|
24995
25016
|
async function applyPreToolCall(name, args, requestInfo, inputSchema) {
|
|
24996
25017
|
if (requestInfo.callOrigin !== "mcp")
|
|
24997
25018
|
return { args };
|
|
24998
|
-
const dispatcher = await import("./dispatcher-
|
|
25019
|
+
const dispatcher = await import("./dispatcher-b1yz2bnn.js");
|
|
24999
25020
|
const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
|
|
25000
25021
|
validateModify: async (data) => {
|
|
25001
25022
|
const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
|
|
@@ -25632,7 +25653,7 @@ function bridgeRequestFor(name, args) {
|
|
|
25632
25653
|
const taskId = typeof body.taskId === "string" ? body.taskId : undefined;
|
|
25633
25654
|
if (!taskId)
|
|
25634
25655
|
throw new Error("task_storeProgress requires string `taskId`");
|
|
25635
|
-
if (body.status === "completed" || body.status === "failed") {
|
|
25656
|
+
if (body.status === "completed" || body.status === "failed" || body.status === "skipped") {
|
|
25636
25657
|
return {
|
|
25637
25658
|
method: "POST",
|
|
25638
25659
|
path: `/api/tasks/${encodeURIComponent(taskId)}/finish`,
|
|
@@ -28370,7 +28391,8 @@ async function updateTrackerSync(id, data) {
|
|
|
28370
28391
|
await getDbClient2().run(`UPDATE tracker_sync SET ${sets.join(", ")} WHERE id = ?`, values);
|
|
28371
28392
|
}
|
|
28372
28393
|
async function deleteTrackerSync(id) {
|
|
28373
|
-
await getDbClient2().run("DELETE FROM tracker_sync WHERE id = ?", [id]);
|
|
28394
|
+
const result = await getDbClient2().run("DELETE FROM tracker_sync WHERE id = ?", [id]);
|
|
28395
|
+
return result.changes > 0;
|
|
28374
28396
|
}
|
|
28375
28397
|
async function hasTrackerDelivery(provider, deliveryId) {
|
|
28376
28398
|
if (!deliveryId)
|
|
@@ -35973,7 +35995,7 @@ async function notifySlack(text) {
|
|
|
35973
35995
|
return;
|
|
35974
35996
|
}
|
|
35975
35997
|
try {
|
|
35976
|
-
const { getSlackApp } = await import("./app-
|
|
35998
|
+
const { getSlackApp } = await import("./app-e00m45gn.js");
|
|
35977
35999
|
const app = getSlackApp();
|
|
35978
36000
|
if (!app) {
|
|
35979
36001
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -36044,7 +36066,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
36044
36066
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
36045
36067
|
}
|
|
36046
36068
|
async function overwriteWebhookIds(next) {
|
|
36047
|
-
const { getDbClient } = await import("./db-
|
|
36069
|
+
const { getDbClient } = await import("./db-athc68zt.js");
|
|
36048
36070
|
await getDbClient().transaction(async (tx) => {
|
|
36049
36071
|
const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
|
|
36050
36072
|
if (!row) {
|
|
@@ -109538,7 +109560,7 @@ async function reloadGlobalConfigsAndIntegrations() {
|
|
|
109538
109560
|
return runWithoutRequestAuth(() => reloadGlobalConfigsAndIntegrationsInner());
|
|
109539
109561
|
}
|
|
109540
109562
|
async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
109541
|
-
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-
|
|
109563
|
+
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-cqhqpgrv.js");
|
|
109542
109564
|
const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
109543
109565
|
const updated = await loadGlobalConfigsIntoEnv(true);
|
|
109544
109566
|
await syncTelemetryEnabled("settings").catch((err) => {
|
|
@@ -109554,7 +109576,7 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
|
109554
109576
|
integrations.push("embeddings");
|
|
109555
109577
|
}
|
|
109556
109578
|
if (isEmbeddingsConfigured) {
|
|
109557
|
-
import("./embedding-space-
|
|
109579
|
+
import("./embedding-space-b4txbwrk.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
|
|
109558
109580
|
console.error("[config-reload] embedding maintenance failed (non-fatal):", err);
|
|
109559
109581
|
});
|
|
109560
109582
|
}
|
|
@@ -115590,7 +115612,7 @@ var ChannelOutputSchema, registerCreateChannelTool = (server) => {
|
|
|
115590
115612
|
});
|
|
115591
115613
|
}
|
|
115592
115614
|
try {
|
|
115593
|
-
const channel = createChannel2(name, {
|
|
115615
|
+
const channel = await createChannel2(name, {
|
|
115594
115616
|
description,
|
|
115595
115617
|
type: type ?? "public",
|
|
115596
115618
|
createdBy: requestInfo.agentId,
|
|
@@ -119894,7 +119916,7 @@ var init_task_terminal_effects = __esm(() => {
|
|
|
119894
119916
|
|
|
119895
119917
|
// src/tasks/terminal-result-guard.ts
|
|
119896
119918
|
function getTaskOutputValidationError(outputSchema, output) {
|
|
119897
|
-
if (!outputSchema
|
|
119919
|
+
if (!isEffectiveOutputSchema(outputSchema))
|
|
119898
119920
|
return;
|
|
119899
119921
|
const schema = outputSchema;
|
|
119900
119922
|
if (!output) {
|
|
@@ -119980,6 +120002,7 @@ async function guardTerminalTaskResultWrite(task, write) {
|
|
|
119980
120002
|
var init_terminal_result_guard = __esm(() => {
|
|
119981
120003
|
init_db4();
|
|
119982
120004
|
init_types4();
|
|
120005
|
+
init_output_schema();
|
|
119983
120006
|
init_secret_scrubber();
|
|
119984
120007
|
init_json_schema_validator();
|
|
119985
120008
|
});
|
|
@@ -120081,7 +120104,7 @@ var DeferAbortedError, registerDeferTaskTool = (server) => {
|
|
|
120081
120104
|
message: "Provide exactly one of wakeOn.taskId or wakeOn.taskIds."
|
|
120082
120105
|
}).refine((wake) => !wake.taskIds || new Set(wake.taskIds).size === wake.taskIds.length, {
|
|
120083
120106
|
message: "wakeOn.taskIds must not contain duplicates."
|
|
120084
|
-
}).optional().describe("Wake early on a task event. Provide taskId or nonempty, unique taskIds. mode defaults to all (every member must match); any wakes on the first match. settled covers completed, failed, or
|
|
120107
|
+
}).optional().describe("Wake early on a task event. Provide taskId or nonempty, unique taskIds. mode defaults to all (every member must match); any wakes on the first match. settled covers completed, failed, cancelled, or skipped. Deferred and superseded members follow their continuations; a superseded member without a resume child holds to the ceiling. Any already-terminal member rejects the request; one delayMs/runAt ceiling is still required for the whole set. The member whose settlement wakes you creates no separate lead follow-up for your agent unless its followUpConfig sets onCompleted/onFailed; an all-mode member that settles while others are pending still does."),
|
|
120085
120108
|
summary: string2().min(1).max(4000).describe("What you did so far and where things stand. Stored in the task log for tasks with an outputSchema; otherwise becomes the task's output."),
|
|
120086
120109
|
output: string2().optional().describe("Required when the task has an outputSchema: a JSON string matching that schema, stored verbatim as terminal output. Ignored for tasks without an outputSchema."),
|
|
120087
120110
|
note: string2().min(1).max(2000).describe("What is pending, and what to check on wake-up."),
|
|
@@ -124659,6 +124682,11 @@ ${mappings.map((m) => ` - ${m.inboxId} (${m.inboxEmail ?? "no email"})`).join(`
|
|
|
124659
124682
|
}
|
|
124660
124683
|
if (action === "register") {
|
|
124661
124684
|
const mapping = await createAgentMailInboxMapping2(inboxId, requestInfo.agentId, inboxEmail);
|
|
124685
|
+
if (!mapping) {
|
|
124686
|
+
return toolErr(`Inbox ${inboxId} is owned by another agent`, {
|
|
124687
|
+
data: { yourAgentId: requestInfo.agentId }
|
|
124688
|
+
});
|
|
124689
|
+
}
|
|
124662
124690
|
const text = `Registered inbox ${inboxId} → agent ${agent.name} (${requestInfo.agentId})`;
|
|
124663
124691
|
return toolOk(text, {
|
|
124664
124692
|
data: { yourAgentId: requestInfo.agentId, mappings: [mapping] }
|
|
@@ -125241,7 +125269,7 @@ var swarmRepoOutputShape2, registerUpdateRepoTool = (server) => {
|
|
|
125241
125269
|
clonePath: string2().optional().describe("New clone path."),
|
|
125242
125270
|
defaultBranch: string2().optional().describe("New default branch."),
|
|
125243
125271
|
autoClone: boolean().optional().describe("Whether to auto-clone."),
|
|
125244
|
-
hooks: RepoHooksSchema.nullable().optional().describe("Repository hook install config.
|
|
125272
|
+
hooks: RepoHooksSchema.nullable().optional().describe("Repository hook install config. Best-effort worker hook installation is enabled by default for new repos. Disable it with { enabled: false } (or null), or turn it back on with { enabled: true }."),
|
|
125245
125273
|
guidelines: RepoGuidelinesInputSchema.nullable().optional().describe("Repository guidelines: prChecks (commands before PR), mergeChecks (conditions before merge), allowMerge (default false), review (guidance for reviewers). Pass null to clear.")
|
|
125246
125274
|
}),
|
|
125247
125275
|
outputSchema: swarmToolOutputSchema({
|
|
@@ -125370,7 +125398,7 @@ var init_request_human_input = __esm(() => {
|
|
|
125370
125398
|
id: string2().describe("Unique ID for the question (used as key in responses)"),
|
|
125371
125399
|
type: _enum2(["approval", "text", "single-select", "multi-select", "boolean", "config"]).describe("Question type"),
|
|
125372
125400
|
label: string2().optional().describe("The question text displayed to the user (required except for config, which defaults to the key)"),
|
|
125373
|
-
required: boolean().
|
|
125401
|
+
required: boolean().default(true).describe("Whether this question is required (default: true)"),
|
|
125374
125402
|
description: string2().optional().describe("Optional help text, rendered as markdown (code fences, images)"),
|
|
125375
125403
|
placeholder: string2().optional().describe("Placeholder text (for text type)"),
|
|
125376
125404
|
multiline: boolean().optional().describe("Use textarea instead of input (for text type)"),
|
|
@@ -134848,7 +134876,7 @@ var init_send_task = __esm(() => {
|
|
|
134848
134876
|
overrideSlackContext: boolean().default(false).describe("Explicitly route this task's Slack updates to a different channel/thread than its parent/contextKey. Requires slackChannelId AND slackThreadTs. Use only for deliberate cross-channel dispatch (e.g. escalation to another human's DM); logged for audit. Without this flag, a slackChannelId/slackThreadTs that disagrees with the parent task or inherited contextKey is rejected — omit the three Slack fields to inherit them from the parent as a unit instead."),
|
|
134849
134877
|
requestedByUserId: string2().regex(/^[a-f0-9]{32}$/, "Expected a registry user ID (32 lowercase hexadecimal characters).").optional().describe("Registered requester ID (32 lowercase hexadecimal characters). When omitted, inherited from the caller's current task so the attribution flows through multi-hop delegation automatically. Only lead agents can name a user other than the requester of their current task."),
|
|
134850
134878
|
followUpConfig: FollowUpConfigSchema.optional().describe("Control the lead follow-up created when this task finishes. When to use `followUpConfig`: set `disabled: true` when you'll wait for this task to complete inline and no follow-up is needed; set `onCompleted` / `onFailed` with specific instructions when you need to follow up effectively on a particular outcome of a long-running flow; for normal one-shot tasks, leave it unset because defaults are fine. It is most valuable for long-running / complex flows."),
|
|
134851
|
-
outputSchema: record2(string2(), unknown()).optional().describe("Optional JSON Schema the assignee's final output must satisfy. store-progress rejects a completion that does not match. Supported keywords: type, required, properties, enum, const, items.")
|
|
134879
|
+
outputSchema: record2(string2(), unknown()).optional().describe("Optional JSON Schema the assignee's final output must satisfy. store-progress rejects a completion that does not match. Supported keywords: type, required, properties, enum, const, items. When omitted, the child inherits the schema of its parent task (your current task by default). An empty object {} means no schema: the child stores none and inherits none.")
|
|
134852
134880
|
}).superRefine((data, ctx) => {
|
|
134853
134881
|
const hasChannel = !!data.slackChannelId;
|
|
134854
134882
|
const hasThread = !!data.slackThreadTs;
|
|
@@ -138095,6 +138123,20 @@ var init_task_learning = __esm(() => {
|
|
|
138095
138123
|
DUPLICATE_SEARCH_PREFIXES = [`${LEARNINGS_ROOT}/`, "/longterm/workstreams/"];
|
|
138096
138124
|
});
|
|
138097
138125
|
|
|
138126
|
+
// src/tasks/task-skip.ts
|
|
138127
|
+
function skipReasonFrom(failureReason, output) {
|
|
138128
|
+
return (failureReason ?? output)?.replace(/\s+/g, " ").trim() || undefined;
|
|
138129
|
+
}
|
|
138130
|
+
function finalizeSkippedTaskReaction(task, caller) {
|
|
138131
|
+
if (!task.slackChannelId)
|
|
138132
|
+
return;
|
|
138133
|
+
finalizeTerminalSlackReactions([task]).catch((error) => console.error(`[${caller}] skip reaction failed:`, scrubSecrets(error instanceof Error ? error.message : String(error))));
|
|
138134
|
+
}
|
|
138135
|
+
var init_task_skip = __esm(() => {
|
|
138136
|
+
init_ack();
|
|
138137
|
+
init_secret_scrubber();
|
|
138138
|
+
});
|
|
138139
|
+
|
|
138098
138140
|
// src/tools/store-progress.ts
|
|
138099
138141
|
async function foreignTaskWriteError(caller, task, sourceTaskId) {
|
|
138100
138142
|
const decision = can({
|
|
@@ -138123,14 +138165,14 @@ function learningSentence(result) {
|
|
|
138123
138165
|
var BLOCKED_WAITING_PATTERN, BLOCKED_WAITING_MIN_ELAPSED_MS, storeProgressOutputSchema, registerStoreProgressTool = (server) => {
|
|
138124
138166
|
createToolRegistrar(server)("store-progress", {
|
|
138125
138167
|
title: "Store task progress",
|
|
138126
|
-
description: "Stores the progress of a specific task. Can also mark task as completed or
|
|
138168
|
+
description: "Stores the progress of a specific task. Can also mark task as completed, failed, or skipped, which will set the agent back to idle. Use skipped only when the work is not yours to handle, such as a Slack thread message addressed to someone else; never skip an explicit @mention of you or work assigned to you.",
|
|
138127
138169
|
annotations: { idempotentHint: true },
|
|
138128
138170
|
inputSchema: object2({
|
|
138129
138171
|
taskId: uuid().optional().describe("Full task UUID. Defaults to the caller-owned task in X-Source-Task-Id; required outside task context."),
|
|
138130
138172
|
progress: string2().optional().describe("The progress update to store."),
|
|
138131
|
-
status: _enum2(["completed", "failed", "in_progress", "pending"]).optional().describe("Set to 'completed' or 'failed' to finish the task. 'in_progress' and 'pending' store progress only and do not change task status."),
|
|
138173
|
+
status: _enum2(["completed", "failed", "skipped", "in_progress", "pending"]).optional().describe("Set to 'completed' or 'failed' to finish the task. Set 'skipped' to end a task that is not yours to handle (a Slack thread message addressed to someone else, or one you have nothing to add to); it posts nothing to the thread, creates no follow-up, and needs a one-line reason in failureReason. Never skip an explicit @mention of you or work assigned to you. 'in_progress' and 'pending' store progress only and do not change task status."),
|
|
138132
138174
|
output: string2().optional().describe("The task result (used when completing). For Slack-originated tasks, this is published verbatim in the thread's outcome card. Keep free-text output under 120 words by default. Name the result and every artifact link, plus any IDs the human needs. Link documents instead of inlining them; omit process narration, transcripts, and restatements of the brief. Exceed the target only when requested depth, enumerated results, essential evidence, caveats, or instructions require it, or when the task's outputSchema requires longer output. When the task carries an outputSchema, output must be JSON matching it."),
|
|
138133
|
-
failureReason: string2().optional().describe("The reason for failure (used when failing)."),
|
|
138175
|
+
failureReason: string2().optional().describe("The reason for failure (used when failing), or the one-line reason for a skip (required with status 'skipped')."),
|
|
138134
138176
|
attachments: array2(AttachmentInputSchema).max(20).optional().describe("Pointer-based artifacts produced by this step — agent-fs path, URL, shared-fs path, or swarm Page. No inline file data; upload to agent-fs first and attach by path. Agent-fs pointers are verified before task state changes, using the explicit org/drive pair or the registering agent's configured defaults. May be sent on any call (progress or completion) and accumulates across calls; duplicates are de-duped by sha256 (when present) or by (kind, pointer, name)."),
|
|
138135
138177
|
citations: array2(CitationInputSchema).max(MAX_TASK_CITATIONS).catch([]).optional().describe('Claim sources, upserted by index across calls. Use only for factual claims the reader cannot already see in the thread or task tree, 1-2 sources; none on delegation, routing, acks, or status replies. Reference each one in output with [citation:N], or set general: true for a source that backs the whole answer (it renders under "General sources"). ref per kind: task = task UUID; memory = memory UUID (optional quote must appear verbatim in it); github = owner/repo#N, owner/repo@<sha>, or a github.com pull, issues, or commit URL; slack = permalink or channel/ts; agent-fs = file path; page = page id; script-run = script run id; url = http(s) URL. The first completing call is refused, and the task stays in progress, if a marker has no entry, a citation fails validation, or a non-general citation is unreferenced; the response lists each problem. After one refusal, completion proceeds and those markers and sources are dropped from rendered output. At most 50 citations per call/task, refs up to 2048 characters, labels up to 200. Invalid or oversized batches are ignored; existing indices can still be updated at capacity.'),
|
|
138136
138178
|
learning: union2([
|
|
@@ -138170,7 +138212,13 @@ var BLOCKED_WAITING_PATTERN, BLOCKED_WAITING_MIN_ELAPSED_MS, storeProgressOutput
|
|
|
138170
138212
|
return toolErr("Omitted taskId requires a source task assigned to the calling agent.");
|
|
138171
138213
|
}
|
|
138172
138214
|
}
|
|
138173
|
-
const status = requestedStatus === "completed" || requestedStatus === "failed" ? requestedStatus : undefined;
|
|
138215
|
+
const status = requestedStatus === "completed" || requestedStatus === "failed" || requestedStatus === "skipped" ? requestedStatus : undefined;
|
|
138216
|
+
const skipReason = status === "skipped" ? skipReasonFrom(failureReason, output) : undefined;
|
|
138217
|
+
if (status === "skipped") {
|
|
138218
|
+
if (!skipReason) {
|
|
138219
|
+
return toolErr('Status "skipped" needs a one-line reason in failureReason. The task was not changed.');
|
|
138220
|
+
}
|
|
138221
|
+
}
|
|
138174
138222
|
const leakedParameter = output?.match(/(?:<\/(?:output|parameter)>\s*)?<parameter name="([a-zA-Z_]+)">\s*([\s\S]*)$/);
|
|
138175
138223
|
if (leakedParameter) {
|
|
138176
138224
|
output = output?.slice(0, leakedParameter.index);
|
|
@@ -138331,8 +138379,7 @@ var BLOCKED_WAITING_PATTERN, BLOCKED_WAITING_MIN_ELAPSED_MS, storeProgressOutput
|
|
|
138331
138379
|
}
|
|
138332
138380
|
const terminalResultGuard = await guardTerminalTaskResultWrite(existingTask, {
|
|
138333
138381
|
status,
|
|
138334
|
-
output,
|
|
138335
|
-
failureReason,
|
|
138382
|
+
...status === "skipped" ? { failureReason: skipReason } : { output, failureReason },
|
|
138336
138383
|
force
|
|
138337
138384
|
});
|
|
138338
138385
|
if (terminalResultGuard.handled) {
|
|
@@ -138428,6 +138475,14 @@ This check refuses once per task; the next completion is accepted and unfixed ci
|
|
|
138428
138475
|
await updateAgentStatusFromCapacity2(existingTask.agentId);
|
|
138429
138476
|
}
|
|
138430
138477
|
}
|
|
138478
|
+
} else if (status === "skipped") {
|
|
138479
|
+
const result = await skipTask2(taskId, skipReason);
|
|
138480
|
+
if (result) {
|
|
138481
|
+
updatedTask = result;
|
|
138482
|
+
if (existingTask.agentId) {
|
|
138483
|
+
await updateAgentStatusFromCapacity2(existingTask.agentId);
|
|
138484
|
+
}
|
|
138485
|
+
}
|
|
138431
138486
|
} else {
|
|
138432
138487
|
if (existingTask.agentId) {
|
|
138433
138488
|
await updateAgentStatusFromCapacity2(existingTask.agentId);
|
|
@@ -138441,7 +138496,7 @@ This check refuses once per task; the next completion is accepted and unfixed ci
|
|
|
138441
138496
|
};
|
|
138442
138497
|
});
|
|
138443
138498
|
const shouldRunTerminalSideEffects = (status === "completed" || status === "failed") && result.success && result.task && !(("wasNoOp" in result) && result.wasNoOp) && !(("wasForcedOverwrite" in result) && result.wasForcedOverwrite);
|
|
138444
|
-
if (shouldRunTerminalSideEffects && status) {
|
|
138499
|
+
if (shouldRunTerminalSideEffects && (status === "completed" || status === "failed")) {
|
|
138445
138500
|
await runTaskTerminalEffects({
|
|
138446
138501
|
task: result.task,
|
|
138447
138502
|
status,
|
|
@@ -138451,6 +138506,9 @@ This check refuses once per task; the next completion is accepted and unfixed ci
|
|
|
138451
138506
|
persistMemory
|
|
138452
138507
|
});
|
|
138453
138508
|
}
|
|
138509
|
+
const skipWasFresh = status === "skipped" && result.success && result.task?.status === "skipped" && !(("wasNoOp" in result) && result.wasNoOp) && !(("wasForcedOverwrite" in result) && result.wasForcedOverwrite);
|
|
138510
|
+
if (skipWasFresh && result.task)
|
|
138511
|
+
finalizeSkippedTaskReaction(result.task, "store-progress");
|
|
138454
138512
|
const learningResult = await learningWrite;
|
|
138455
138513
|
const { success } = result;
|
|
138456
138514
|
const message = learningResult ? `${result.message} ${learningSentence(learningResult)}` : result.message;
|
|
@@ -138479,6 +138537,7 @@ var init_store_progress = __esm(() => {
|
|
|
138479
138537
|
init_task_citations2();
|
|
138480
138538
|
init_agent_fs_provider();
|
|
138481
138539
|
init_rbac();
|
|
138540
|
+
init_task_skip();
|
|
138482
138541
|
init_task_terminal_effects();
|
|
138483
138542
|
init_terminal_result_guard();
|
|
138484
138543
|
init_utils();
|
|
@@ -139846,7 +139905,9 @@ var registerTrackerUnlinkTool = (server) => {
|
|
|
139846
139905
|
outputSchema: swarmToolOutputSchema()
|
|
139847
139906
|
}, async (args, _requestInfo, _meta) => {
|
|
139848
139907
|
try {
|
|
139849
|
-
await deleteTrackerSync(args.syncId);
|
|
139908
|
+
const removed = await deleteTrackerSync(args.syncId);
|
|
139909
|
+
if (!removed)
|
|
139910
|
+
return toolErr(`No tracker mapping ${args.syncId}`);
|
|
139850
139911
|
return toolOk(`Removed tracker sync mapping ${args.syncId}.`);
|
|
139851
139912
|
} catch (error) {
|
|
139852
139913
|
const message = error instanceof Error ? error.message : "Unknown error";
|
|
@@ -140838,6 +140899,8 @@ var registerRetryWorkflowRunTool = (server) => {
|
|
|
140838
140899
|
outputSchema: swarmToolOutputSchema()
|
|
140839
140900
|
}, async ({ runId }) => {
|
|
140840
140901
|
try {
|
|
140902
|
+
if (!await getWorkflowRunSummary(runId))
|
|
140903
|
+
return toolErr(`Workflow run not found: ${runId}`);
|
|
140841
140904
|
await retryFailedRun2(runId, getExecutorRegistry2());
|
|
140842
140905
|
return toolOk(`Retrying workflow run ${runId}.`);
|
|
140843
140906
|
} catch (err) {
|
|
@@ -140847,6 +140910,7 @@ var registerRetryWorkflowRunTool = (server) => {
|
|
|
140847
140910
|
};
|
|
140848
140911
|
var init_retry_workflow_run = __esm(() => {
|
|
140849
140912
|
init_zod();
|
|
140913
|
+
init_workflow_runs();
|
|
140850
140914
|
init_utils();
|
|
140851
140915
|
init_workflows();
|
|
140852
140916
|
});
|
|
@@ -141664,4 +141728,4 @@ var init_server = __esm(() => {
|
|
|
141664
141728
|
loggedToolAllowlistWarnings = new Set;
|
|
141665
141729
|
});
|
|
141666
141730
|
|
|
141667
|
-
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, init_types, McpServer, init_mcp, repointTrackerSyncBySwarmId, init_tracker, isRuntimePoolWakeable, isAgentReachable, init_reachability, referencedBundlePaths, skillDirs, init_manifest_format, TaskCreationBlockedError, init_errors2, resolveIdentity, renderIdentity, init_identity, recordUnmappedIdentity, init_unmapped_identities, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, taskModelPin, resumedTaskModelSelection, init_model_pin, listHarnessModelSupport, recordHarnessModelSupport, agentRanModel, getAgentHarnessCliVersion, setAgentHarnessCliVersion, init_harness_model_support, sanitizeModelTierOverrides, parseModelTierOverridesHeader, setAgentModelTierOverrides, previewModelTiers, recordClaimModelResolution, init_model_tier_resolution, harnessModelErrorFor, poolTaskRunsOnHarness, explicitModelError, explicitModelErrorForAgent, init_model_validation, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, init_inbound_files, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, COLOR_LITERAL_THRESHOLD, countColorLiterals, init_color_literals, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app2, init_linear, init_slack, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, isLocalDevPageRequest, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, init_core, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, handleApps, init_apps, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, executeReadOnlyQuery, assertSelectOnlyQuery, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, DEFAULT_THEME_ID, THEME_PRESET_IDS, getThemePreset, init_presets, readThemeFields, init_page_fields, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets2, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesAllowMerge, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, init_validate, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation2, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };
|
|
141731
|
+
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, init_types, McpServer, init_mcp, repointTrackerSyncBySwarmId, init_tracker, isRuntimePoolWakeable, isAgentReachable, init_reachability, referencedBundlePaths, skillDirs, init_manifest_format, TaskCreationBlockedError, init_errors2, resolveIdentity, renderIdentity, init_identity, recordUnmappedIdentity, init_unmapped_identities, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, init_task_attachment_store, taskModelPin, resumedTaskModelSelection, init_model_pin, listHarnessModelSupport, recordHarnessModelSupport, agentRanModel, getAgentHarnessCliVersion, setAgentHarnessCliVersion, init_harness_model_support, sanitizeModelTierOverrides, parseModelTierOverridesHeader, setAgentModelTierOverrides, previewModelTiers, recordClaimModelResolution, init_model_tier_resolution, harnessModelErrorFor, poolTaskRunsOnHarness, explicitModelError, explicitModelErrorForAgent, init_model_validation, stripSiblingBlock, init_sibling_block, createTaskWithSiblingAwareness, init_sibling_awareness, transcribeAudioNotes, init_transcription, init_templates, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, init_inbound_files, isAddressedToOtherUser, broadcastMatches, routeMessage, extractTaskFromMessage, init_router, extractSlackMessageText, slackInboundMessageText, collectSlackMessageFiles, init_message_text, createAdditiveBuffer, init_additive_buffer, recoverIncompleteRuns, init_recovery, handleWebhookTrigger, verifyHmacSignature, WebhookError, init_triggers, snapshotAndUpdateWorkflow, init_version, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, init_raw_llm, getExecutorRegistry2, initWorkflows2, init_workflows, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, init_scheduler, ExtensionAssetConflictError, init_assets, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, init_db, SDK_ALLOWLIST, mcpToolNameForSdkMethod, init_sdk_allowlist, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, init_kv_overflow, hasKvViewArgs, resolveKvView, init_kv_view, COLOR_LITERAL_THRESHOLD, countColorLiterals, init_color_literals, toolErr, createToolRegistrar, init_utils, handleMcpBridge, init_mcp_bridge, Redacted, init_redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, init_response_limit, ExtensionConfigError, init_loader, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, init_lifecycle, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, init_dispatcher, REBOOT_RETRY_PIN_TAG2, getPinCandidateAgent2, resolveLeadOnlyRecoveryAssignment2, getResumeGeneration2, getNextResumeGeneration2, inheritedModelSelection2, createWorkerTaskFollowUp2, createResumeFollowUp2, createRerouteDecisionTask2, createPoolStarvationDecisionTask2, init_worker_follow_up, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, isInboxAllowed, isSenderAllowed, handleMessageReceived, init_agentmail, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, init_azure_devops, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, init_azure_devops2, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, init_rbac_audit, getTelemetryIngestAnchor, init_telemetry_ingest_anchor, initApiTelemetry, syncTelemetryEnabled, init_telemetry_enable, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, init_bitbucket, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, init_github, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, init_gitlab, isChatSdkEnabled, getChatSdkConfig, init_config, errorMessage, init_logger, resolveAdapterApiUrl, init_adapters, trackBackground, init_background, TelegramBotApiError, callTelegramBotApi, init_telegram_api, isTrustedTeamsServiceUrl, init_teams_origin, getSessionLabels, rememberSessionLabel, init_session_labels, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, init_runtime, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, init_metadata, registerJiraWebhook, deleteJiraWebhook, init_webhook_lifecycle, isJiraEnabled, initJira, init_app, handleJiraWebhook, init_webhook, init_jira, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, init_sync, isLinearEnabled, initLinear, init_app2, init_linear, init_slack, verifyPageSession, LEGACY_PAGE_SESSION_COOKIE, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, isLocalDevPageRequest, pageSessionSetCookies, init_page_session, resolveHttpRequestAuth, init_auth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, init_core, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, init_mcp_limits, userCtx, init_task_tool_ctx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, init_request_principal, handleApps, init_apps, cancelApprovalRequest, cancelApprovalRequestAndRun, init_approval_cancel, getUserCommsPrefs, init_requester_comms, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, init_get_task_details, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, init_cancel_task, executeReadOnlyQuery, assertSelectOnlyQuery, handleDbQuery, init_db_query, snapshotMetric, init_version2, AssetKeyAuthorizationError, authorizeAssetKeyWrite, init_asset_key_auth, getPageEditCounter, init_page_versions, snapshotPage, init_version3, DEFAULT_THEME_ID, THEME_PRESET_IDS, getThemePreset, init_presets, readThemeFields, init_page_fields, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, init_app_validation, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, init_presets2, scopedResourceScopeIdSchema, resolveScopedResourceId, init_scoped_resource, MemoryKeyError, init_key_guard, refreshLinks, init_link_resolver, indexMemoryContent, init_index_content, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, init_retrieval, ExplicitSelfDuplicateError, applyRating, init_store, shouldPersistAutomaticTaskMemory, init_automatic_task_gate, guardTerminalTaskResultWrite, init_terminal_result_guard, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, init_get_tasks, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, init_kv_reserved_namespaces, updateMcpServerChecked, init_mcp_server_checked_update, updateTouchesStdioExecution, init_mcp_server_stdio_gate, canReadMemory, init_access, getLinksForMemory, init_links_store, expandCandidatesWithGraph, init_graph_expansion, isApiDraining, drainApi, init_api_drain, markKapsoMessageRead, sendKapsoReaction, init_client, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, init_config2, changesAllowMerge, init_repo_merge_policy, updateSwarmRepoChecked, init_repo_checked_update, getCombConfig, init_config3, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, init_auth2, RoomOperationSchema, init_document, removeAwarenessStates, init_awareness, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, init_rooms, init_scheduler2, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, init_key_browser, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, init_events, mergeScheduleTiming, validateRecurringTiming, init_validate, followUpThreadForSourceTask, evaluateFollowUpRedelegation, init_follow_up_redelegation_guard, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, init_send_task, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, init_steer_task, skipReasonFrom, finalizeSkippedTaskReaction, init_task_skip, canClaim, init_budget_admission, emitBudgetRefusalSideEffects, init_budget_refusal_notify, workflowModelErrors, init_model_validation2, patchWorkflowDefinition, init_patch_definition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, init_idempotency_key, resolveScriptsOnlyMode, init_scripts_only_mode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer, init_server };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./cli-0726awxw.js";
|
|
5
5
|
import {
|
|
6
6
|
summarizeSession
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-8rpcng8j.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-dq8x79v8.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-kf3pxxdg.js";
|
|
33
33
|
import {
|
|
34
34
|
isSessionSummarySkipped,
|
|
35
35
|
init_env_flag
|