@desplega.ai/agent-swarm 1.129.0 → 1.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{actions-kfv2dawe.js → actions-w53mbns9.js} +11 -11
- package/dist/{anthropic-messages-3xgme8my.js → anthropic-messages-rjmd2e7n.js} +5 -5
- package/dist/{app-q8vjk6e8.js → app-m9gwqsqv.js} +8 -8
- package/dist/{artifact-hg4t1nx7.js → artifact-jysj3wrg.js} +2 -2
- package/dist/{assistant-g037r345.js → assistant-bp65m6f3.js} +13 -13
- package/dist/{azure-openai-responses-xa4sh9f6.js → azure-openai-responses-c0yjmbfd.js} +8 -5
- package/dist/{boot-reembed-18pzsrxa.js → boot-reembed-62p0at2k.js} +6 -6
- package/dist/{boot-reembed-wpks2cj8.js → boot-reembed-xmfp6wdh.js} +7 -7
- package/dist/{boot-scrub-logs-n7szd57r.js → boot-scrub-logs-rr8q2dms.js} +5 -5
- package/dist/{claude-adapter-qz4r0ajt.js → claude-adapter-2y47mrkd.js} +9 -9
- package/dist/{cli-mhjnbgb6.js → cli-0rcyq6d9.js} +450 -186
- package/dist/{cli-ttkmehy0.js → cli-2q72qz2s.js} +274 -25
- package/dist/{cli-gztgc3hz.js → cli-2wadx7p2.js} +2 -2
- package/dist/cli-3fj60etf.js +153 -0
- package/dist/{cli-7ecgm5v0.js → cli-3kf51j15.js} +1 -1
- package/dist/{cli-vgexpfsr.js → cli-57khth04.js} +6 -3
- package/dist/{cli-2mbe7vk0.js → cli-5dsbcjjw.js} +1 -1
- package/dist/{cli-etr62zy6.js → cli-5kx36evn.js} +2 -2
- package/dist/{cli-v2tr6amf.js → cli-5n6e5yfn.js} +30 -8
- package/dist/{cli-hx02s9zq.js → cli-5v4rw6yd.js} +2 -2
- package/dist/{cli-v37yr6mf.js → cli-5ze9rv97.js} +4 -4
- package/dist/{cli-ch7t5v7n.js → cli-6map995v.js} +9 -4
- package/dist/{cli-h0457a67.js → cli-70xqj0z3.js} +3 -3
- package/dist/{cli-kk4f9r17.js → cli-72q8m8gk.js} +8 -6
- package/dist/{cli-7padk69a.js → cli-78xwvkhj.js} +2 -2
- package/dist/{cli-dxtxacy7.js → cli-9dr5qzc0.js} +45 -8
- package/dist/{cli-17zxdgsq.js → cli-a40rnf71.js} +6 -6
- package/dist/{cli-t53vnnxz.js → cli-a4jzdpa3.js} +2514 -1055
- package/dist/{cli-w10fkrf1.js → cli-akdvwc9v.js} +354 -115
- package/dist/{cli-1qkk5er0.js → cli-bmze986d.js} +1 -1
- package/dist/{cli-ga12dc1d.js → cli-bqw0mt1n.js} +3 -3
- package/dist/{cli-0sf92efp.js → cli-cdeg08wx.js} +1 -1
- package/dist/{cli-a8ynhkyj.js → cli-cvgjwnh1.js} +17 -15
- package/dist/{cli-9fxg3v5m.js → cli-d2tfkcga.js} +4 -4
- package/dist/{cli-nhcd7x43.js → cli-d3x3x1c9.js} +2 -2
- package/dist/{cli-6nh2qxvh.js → cli-darcwax3.js} +1 -1
- package/dist/{cli-yjbgmysx.js → cli-e7ckcg4v.js} +12 -12
- package/dist/{cli-4n2gcjpd.js → cli-efxfnq6q.js} +4 -3
- package/dist/{cli-z9xqqhfk.js → cli-er3a4bb0.js} +1 -1
- package/dist/{cli-xg2eezyv.js → cli-f1am9szv.js} +1 -1
- package/dist/{cli-xy4cwsm9.js → cli-fywms69x.js} +1 -1
- package/dist/{cli-33jj76y8.js → cli-g6b8x1h8.js} +1 -1
- package/dist/{cli-epsvdckx.js → cli-gm9cbhbq.js} +20 -10
- package/dist/{cli-rkndnn90.js → cli-k9qkf1hw.js} +6 -4
- package/dist/{cli-zejvt395.js → cli-kh3ba2zf.js} +1 -1
- package/dist/{cli-gb25p1h2.js → cli-nm5gtp1x.js} +2 -2
- package/dist/{cli-akxnpx17.js → cli-pm6xbh84.js} +1829 -1629
- package/dist/{cli-2k0ztbfp.js → cli-psh3c4va.js} +1 -1
- package/dist/{cli-39vgrsep.js → cli-qv61hp37.js} +2 -2
- package/dist/{cli-hv2fndhm.js → cli-r6kqqbj0.js} +6 -4
- package/dist/{cli-1y1cm570.js → cli-rzbpmxdr.js} +1 -1
- package/dist/{cli-mmrk00vp.js → cli-t1xze5qh.js} +1 -1
- package/dist/{cli-g252a9ky.js → cli-t55yw3a1.js} +2 -2
- package/dist/{cli-7bz8dzqa.js → cli-t76vw5db.js} +1184 -1522
- package/dist/{cli-4n4mdv21.js → cli-xpxde7rm.js} +7 -3
- package/dist/{cli-fpaa5k2q.js → cli-yw8vghx2.js} +54 -18
- package/dist/cli-zsspvvm2.js +490 -0
- package/dist/cli.js +27 -25
- package/dist/{codex-adapter-7v6t7ff6.js → codex-adapter-d24q75wk.js} +7 -7
- package/dist/{codex-hook-amndawyb.js → codex-hook-hq54t9ft.js} +2 -2
- package/dist/{codex-session-runner-e7j4khe2.js → codex-session-runner-g50vcsex.js} +7 -7
- package/dist/{commands-ex0k5tbf.js → commands-c3nrc5hg.js} +5 -5
- package/dist/{db-df7jatfc.js → db-nt7fg3tw.js} +5 -5
- package/dist/{google-generative-ai-y42hnw9p.js → google-generative-ai-hysrd8qx.js} +7 -5
- package/dist/{google-vertex-4sg66gb6.js → google-vertex-p5arrga0.js} +7 -5
- package/dist/{handlers-1j2cfqt2.js → handlers-fkr6swat.js} +13 -13
- package/dist/{hook-nx9a0mj3.js → hook-77wpvnjc.js} +7 -7
- package/dist/{hook-w6yaf6sy.js → hook-g019yehy.js} +8 -8
- package/dist/{http-4tz5h8wg.js → http-jewj0syk.js} +2993 -716
- package/dist/{index-0bpkzb09.js → index-070v4eyb.js} +3 -3
- package/dist/{index-0s67qv7h.js → index-6gm5he8h.js} +11 -11
- package/dist/{index-35gtv6gj.js → index-7n2xpbd4.js} +310 -40
- package/dist/{index-ker3gccb.js → index-9znhar3x.js} +4 -4
- package/dist/{index-5n2c8yay.js → index-hase6zbe.js} +2 -2
- package/dist/{index-kcf3tm9h.js → index-hfvggd0z.js} +12 -12
- package/dist/{index-7c0jqna0.js → index-hp1kdbjj.js} +13 -13
- package/dist/{keepalive-3j4a9168.js → keepalive-j0fjvqfd.js} +7 -7
- package/dist/{lead-6kpevymb.js → lead-1n8x30xe.js} +33 -33
- package/dist/{maintenance-m1k82ean.js → maintenance-gvev11sa.js} +7 -7
- package/dist/{mistral-conversations-bjkdfb6z.js → mistral-conversations-81fwav0j.js} +6 -6
- package/dist/{oauth-refresh-sweep-881k8e4q.js → oauth-refresh-sweep-s9ecsvh0.js} +6 -6
- package/dist/{onboard-c0ykffjn.js → onboard-pvm5b38w.js} +2 -2
- package/dist/{openai-codex-responses-xetseqvt.js → openai-codex-responses-5g27pd6f.js} +43 -23
- package/dist/{openai-completions-5r2g5axa.js → openai-completions-3vkmfz2a.js} +55 -11
- package/dist/{openai-responses-ce67hd23.js → openai-responses-dg4t7j7a.js} +8 -5
- package/dist/{openrouter-images-pzfp22jb.js → openrouter-images-g3gm8931.js} +1 -1
- package/dist/{otel-impl-sqagjerv.js → otel-impl-p6jvgd9c.js} +6 -4
- package/dist/{otel-3mp81ppd.js → otel-nqa12wf3.js} +2 -2
- package/dist/{pi-mono-adapter-k584k16g.js → pi-mono-adapter-t091s27g.js} +17117 -7517
- package/dist/{pricing-refresh-y82whbf9.js → pricing-refresh-k49rcyed.js} +7 -7
- package/dist/{rbac-roles-nvkqmzyd.js → rbac-roles-30pspvy7.js} +7 -7
- package/dist/{rbac-roles-4ht8gegc.js → rbac-roles-cr80g96t.js} +6 -6
- package/dist/{render-v2-wvqdgvvp.js → render-v2-xm457ng1.js} +8 -8
- package/dist/{seed-pricing-fy3rxhde.js → seed-pricing-yhpv35fr.js} +6 -6
- package/dist/{setup-ak5cnc6f.js → setup-nytnmwwr.js} +2 -2
- package/dist/{worker-d8769q8a.js → worker-msytr2cw.js} +33 -33
- package/openapi.json +34039 -11036
- package/package.json +8 -6
- package/src/apps/definition.ts +368 -26
- package/src/apps/row-store.ts +66 -10
- package/src/apps/schema-migrate.ts +95 -1
- package/src/apps/store.ts +13 -4
- package/src/apps/sync-run-as.ts +18 -0
- package/src/apps/sync.ts +934 -0
- package/src/apps/version.ts +16 -2
- package/src/assets/key.ts +8 -1
- package/src/be/asset-key-audit.ts +3 -1
- package/src/be/db-queries/mcp-oauth.ts +297 -24
- package/src/be/db.ts +42 -1
- package/src/be/migrations/129_asset_keys_apps_scripts.sql +161 -0
- package/src/be/scripts/db.ts +5 -2
- package/src/be/scripts/typecheck.ts +1 -0
- package/src/be/seed-scripts/catalog/app-sync-run.ts +32 -0
- package/src/be/seed-scripts/catalog/github-issues-pull.ts +102 -0
- package/src/be/seed-scripts/index.ts +18 -0
- package/src/be/seed-skills/index.ts +7 -0
- package/src/http/active-sessions.ts +26 -18
- package/src/http/agents.ts +94 -27
- package/src/http/api-keys.ts +91 -17
- package/src/http/approval-requests.ts +87 -10
- package/src/http/apps.ts +361 -53
- package/src/http/assets.ts +165 -31
- package/src/http/budgets.ts +7 -5
- package/src/http/codex-oauth-keep-warm.ts +21 -3
- package/src/http/config.ts +46 -16
- package/src/http/context.ts +33 -6
- package/src/http/ecosystem.ts +20 -6
- package/src/http/events.ts +24 -9
- package/src/http/favorites.ts +20 -6
- package/src/http/fs.ts +60 -17
- package/src/http/heartbeat.ts +18 -4
- package/src/http/inbox-state.ts +12 -6
- package/src/http/integrations.ts +25 -5
- package/src/http/kv.ts +36 -15
- package/src/http/mcp-bridge.ts +5 -1
- package/src/http/mcp-oauth.ts +332 -17
- package/src/http/mcp-servers.ts +56 -18
- package/src/http/memory.ts +282 -29
- package/src/http/metrics.ts +80 -17
- package/src/http/oauth-callback.ts +10 -4
- package/src/http/oauth-generic.ts +5 -1
- package/src/http/oauth-locks.ts +6 -3
- package/src/http/openapi.ts +57 -9
- package/src/http/page-proxy.ts +25 -5
- package/src/http/pages-public.ts +37 -20
- package/src/http/pages.ts +93 -28
- package/src/http/poll.ts +89 -5
- package/src/http/pricing.ts +9 -6
- package/src/http/prompt-templates.ts +85 -21
- package/src/http/route-def.ts +67 -4
- package/src/http/schedules.ts +63 -14
- package/src/http/script-connection-proxy.ts +30 -4
- package/src/http/script-connections.ts +393 -43
- package/src/http/script-runs.ts +73 -19
- package/src/http/scripts.ts +257 -39
- package/src/http/session-data.ts +87 -14
- package/src/http/sessions.ts +80 -5
- package/src/http/skills.ts +115 -35
- package/src/http/stats.ts +94 -13
- package/src/http/task-templates.ts +6 -4
- package/src/http/tasks.ts +230 -61
- package/src/http/trackers/jira.ts +90 -30
- package/src/http/trackers/linear.ts +46 -12
- package/src/http/users.ts +162 -25
- package/src/http/utils.ts +12 -2
- package/src/http/webhooks.ts +30 -16
- package/src/http/workflow-events.ts +18 -5
- package/src/http/workflows.ts +128 -39
- package/src/http/x.ts +37 -6
- package/src/oauth/ensure-mcp-token.ts +16 -1
- package/src/oauth/mcp-wrapper.ts +281 -26
- package/src/providers/pi-mono-adapter.ts +1 -1
- package/src/scripts-runtime/credential-broker/README.md +1 -1
- package/src/scripts-runtime/credential-broker/fetch-patch.ts +12 -2
- package/src/scripts-runtime/sdk-allowlist.ts +1 -0
- package/src/scripts-runtime/stdlib/fetch.ts +6 -0
- 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/tests/apps-rbac.test.ts +110 -0
- package/src/tests/apps-spike2.test.ts +4 -1
- package/src/tests/apps-sync-engine.test.ts +2540 -0
- package/src/tests/apps-sync.test.ts +1627 -0
- package/src/tests/asset-key-api.test.ts +48 -2
- package/src/tests/asset-key-invariants.test.ts +92 -0
- package/src/tests/asset-key-migration.test.ts +174 -8
- package/src/tests/asset-key-normalization.test.ts +2 -0
- package/src/tests/credential-broker.test.ts +27 -2
- package/src/tests/mcp-oauth-dcr-reuse.test.ts +743 -0
- package/src/tests/mcp-oauth-ensure-token.test.ts +45 -0
- package/src/tests/mcp-oauth-manual-client.test.ts +135 -2
- package/src/tests/mcp-oauth-queries.test.ts +153 -0
- package/src/tests/mcp-oauth-wrapper.test.ts +432 -0
- package/src/tests/memory-http-recall-gating.test.ts +2 -0
- package/src/tests/openapi-response-contract.test.ts +138 -0
- package/src/tests/rbac-admission-e2e.test.ts +68 -0
- package/src/tests/script-connections.test.ts +3 -0
- package/src/tests/scripts-runtime-fetch.test.ts +121 -0
- package/src/tests/scripts-runtime-secret-egress.test.ts +4 -2
- package/src/tests/seed-scripts.test.ts +2 -2
- package/src/tests/swarm-tool-result-gate.test.ts +32 -0
- package/src/tests/task-working-dir.test.ts +8 -4
- package/src/tests/whoami-route.test.ts +127 -0
- package/src/tests/workflow-engine-v2.test.ts +80 -7
- package/src/tests/workflow-swarm-script.test.ts +104 -0
- package/src/tools/app-get.ts +10 -2
- package/src/tools/app-rollback.ts +1 -0
- package/src/tools/app-sync.ts +112 -0
- package/src/tools/script-common.ts +20 -0
- package/src/tools/tool-config.ts +2 -1
- package/src/tools/utils.ts +11 -0
- package/src/tools/workflows/create-workflow.ts +4 -1
- package/src/types.ts +1394 -1206
- package/src/utils/template.ts +8 -1
- package/src/utils/zod-openapi.ts +11 -0
- package/src/workflows/engine.ts +27 -4
- package/src/workflows/executors/swarm-script.ts +28 -0
- package/src/workflows/retry-poller.ts +19 -2
- package/templates/skills/apps/content.md +94 -5
- package/templates/skills/asset-namespaces/content.md +2 -2
- package/templates/skills/scheduled-task-resilience/SKILL.md +102 -0
- package/templates/skills/scheduled-task-resilience/config.json +14 -0
- package/templates/skills/scheduled-task-resilience/content.md +97 -0
- package/dist/cli-7wmybrt5.js +0 -115
- package/dist/cli-d91pvmq1.js +0 -14
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_env_flag,
|
|
3
3
|
isEnvFlagEnabled
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-xpxde7rm.js";
|
|
5
5
|
import {
|
|
6
6
|
init_zod
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-zsspvvm2.js";
|
|
8
8
|
import {
|
|
9
9
|
_enum
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-5dsbcjjw.js";
|
|
11
11
|
|
|
12
12
|
// src/rbac/permissions.ts
|
|
13
13
|
init_zod();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_follow_redirects
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-k9qkf1hw.js";
|
|
4
4
|
import {
|
|
5
5
|
require_jws,
|
|
6
6
|
require_p_retry
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
setSlackMessageTracking,
|
|
38
38
|
slackContextKey,
|
|
39
39
|
updateSlackMessageRecord
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-a4jzdpa3.js";
|
|
41
41
|
import {
|
|
42
42
|
init_env_flag,
|
|
43
43
|
isEnvFlagEnabled
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-xpxde7rm.js";
|
|
45
45
|
import {
|
|
46
46
|
getAppUrl,
|
|
47
47
|
init_constants
|
|
@@ -54,11 +54,13 @@ import {
|
|
|
54
54
|
require_websocket_server
|
|
55
55
|
} from "./cli-e15jhafb.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
exports_supports_color,
|
|
58
|
+
init_supports_color
|
|
59
|
+
} from "./cli-3fj60etf.js";
|
|
59
60
|
import {
|
|
60
61
|
__commonJS,
|
|
61
62
|
__require,
|
|
63
|
+
__toCommonJS,
|
|
62
64
|
__toESM
|
|
63
65
|
} from "./cli-p9swy5t3.js";
|
|
64
66
|
|
|
@@ -33570,7 +33572,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
33570
33572
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
33571
33573
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
33572
33574
|
try {
|
|
33573
|
-
const supportsColor =
|
|
33575
|
+
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
33574
33576
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
33575
33577
|
exports.colors = [
|
|
33576
33578
|
20,
|
|
@@ -46108,7 +46110,7 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
46108
46110
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
46109
46111
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
46110
46112
|
try {
|
|
46111
|
-
const supportsColor =
|
|
46113
|
+
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
46112
46114
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
46113
46115
|
exports.colors = [
|
|
46114
46116
|
20,
|
|
@@ -47021,7 +47023,7 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
47021
47023
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
47022
47024
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
47023
47025
|
try {
|
|
47024
|
-
const supportsColor =
|
|
47026
|
+
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
47025
47027
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
47026
47028
|
exports.colors = [
|
|
47027
47029
|
20,
|
|
@@ -48834,7 +48836,7 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
48834
48836
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
48835
48837
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
48836
48838
|
try {
|
|
48837
|
-
const supportsColor =
|
|
48839
|
+
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
48838
48840
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
48839
48841
|
exports.colors = [
|
|
48840
48842
|
20,
|
|
@@ -51672,7 +51674,7 @@ var require_node5 = __commonJS((exports, module) => {
|
|
|
51672
51674
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
51673
51675
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
51674
51676
|
try {
|
|
51675
|
-
const supportsColor =
|
|
51677
|
+
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
51676
51678
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
51677
51679
|
exports.colors = [
|
|
51678
51680
|
20,
|
|
@@ -55418,13 +55420,13 @@ async function initSlackApp() {
|
|
|
55418
55420
|
socketMode: true,
|
|
55419
55421
|
logLevel: import_bolt.LogLevel.DEBUG
|
|
55420
55422
|
});
|
|
55421
|
-
const { registerMessageHandler } = await import("./handlers-
|
|
55422
|
-
const { registerCommandHandler } = await import("./commands-
|
|
55423
|
-
const { registerActionHandlers } = await import("./actions-
|
|
55423
|
+
const { registerMessageHandler } = await import("./handlers-fkr6swat.js");
|
|
55424
|
+
const { registerCommandHandler } = await import("./commands-c3nrc5hg.js");
|
|
55425
|
+
const { registerActionHandlers } = await import("./actions-w53mbns9.js");
|
|
55424
55426
|
registerMessageHandler(app);
|
|
55425
55427
|
registerCommandHandler(app);
|
|
55426
55428
|
registerActionHandlers(app);
|
|
55427
|
-
const { createAssistant } = await import("./assistant-
|
|
55429
|
+
const { createAssistant } = await import("./assistant-bp65m6f3.js");
|
|
55428
55430
|
app.assistant(createAssistant());
|
|
55429
55431
|
return app;
|
|
55430
55432
|
}
|
|
@@ -55433,7 +55435,7 @@ async function startSlackApp() {
|
|
|
55433
55435
|
await initSlackApp();
|
|
55434
55436
|
}
|
|
55435
55437
|
if (app) {
|
|
55436
|
-
const { isSlackRenderV2Enabled: isSlackRenderV2Enabled2 } = await import("./render-v2-
|
|
55438
|
+
const { isSlackRenderV2Enabled: isSlackRenderV2Enabled2 } = await import("./render-v2-xm457ng1.js");
|
|
55437
55439
|
if (isSlackRenderV2Enabled2())
|
|
55438
55440
|
ensureSlackRenderV2Activation();
|
|
55439
55441
|
await app.start();
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getPinCandidateAgent,
|
|
8
8
|
getResumeGeneration,
|
|
9
9
|
repointTrackerSyncBySwarmId
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-nm5gtp1x.js";
|
|
11
11
|
import {
|
|
12
12
|
getExecutorRegistry,
|
|
13
13
|
recoverIncompleteRuns
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-yw8vghx2.js";
|
|
15
15
|
import {
|
|
16
16
|
MAX_EMPTY_POLLS,
|
|
17
17
|
assignUnassignedTaskPending,
|
|
@@ -51,13 +51,13 @@ import {
|
|
|
51
51
|
releaseStaleReviewingTasks,
|
|
52
52
|
supersedeTask,
|
|
53
53
|
updateAgentStatus
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-a4jzdpa3.js";
|
|
55
55
|
import {
|
|
56
56
|
init_registry,
|
|
57
57
|
init_resolver,
|
|
58
58
|
registerTemplate,
|
|
59
59
|
resolveTemplate
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-xpxde7rm.js";
|
|
61
61
|
import {
|
|
62
62
|
init_secret_scrubber,
|
|
63
63
|
scrubSecrets
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
getAgentWorkingOnThread,
|
|
4
4
|
getAllAgents,
|
|
5
5
|
init_db
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-a4jzdpa3.js";
|
|
7
7
|
import {
|
|
8
8
|
init_env_flag,
|
|
9
9
|
isEnvFlagEnabled
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-xpxde7rm.js";
|
|
11
11
|
|
|
12
12
|
// src/slack/router.ts
|
|
13
13
|
init_db();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSteeringDelivery
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-f1am9szv.js";
|
|
4
4
|
import {
|
|
5
5
|
checkCodexCredentials
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-5kx36evn.js";
|
|
7
7
|
import {
|
|
8
8
|
checkClaudeManagedCredentials
|
|
9
9
|
} from "./cli-qmdnhpej.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./cli-n6h8qt8n.js";
|
|
16
16
|
import {
|
|
17
17
|
checkClaudeCredentials
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-3kf51j15.js";
|
|
19
19
|
import {
|
|
20
20
|
MAX_RATE_LIMIT_RESET_MS,
|
|
21
21
|
isCodexCreditsExhaustedMessage,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
withSpan,
|
|
36
36
|
withSpanContext,
|
|
37
37
|
writeSkillsToFilesystem
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-t76vw5db.js";
|
|
39
39
|
import {
|
|
40
40
|
authJsonToCredentialSelection,
|
|
41
41
|
credentialsToAuthJson,
|
|
@@ -44,10 +44,10 @@ import {
|
|
|
44
44
|
import {
|
|
45
45
|
ensure,
|
|
46
46
|
initialize
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-5ze9rv97.js";
|
|
48
48
|
import {
|
|
49
49
|
validateJsonSchema
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-yw8vghx2.js";
|
|
51
51
|
import {
|
|
52
52
|
getOpenRouterBaseUrl
|
|
53
53
|
} from "./cli-3dpj7atn.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
init_types,
|
|
79
79
|
resolveTaskModelSelection,
|
|
80
80
|
telemetry
|
|
81
|
-
} from "./cli-
|
|
81
|
+
} from "./cli-a4jzdpa3.js";
|
|
82
82
|
import {
|
|
83
83
|
configureHttpResolver,
|
|
84
84
|
init_resolver,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
interpolate,
|
|
89
89
|
isSteeringEnabled,
|
|
90
90
|
resolveTemplateAsync
|
|
91
|
-
} from "./cli-
|
|
91
|
+
} from "./cli-xpxde7rm.js";
|
|
92
92
|
import {
|
|
93
93
|
getMcpBaseUrl,
|
|
94
94
|
init_constants
|
|
@@ -495,15 +495,15 @@ async function materializeCodexAuthJson(_slot, creds, deps = {}) {
|
|
|
495
495
|
async function createProviderAdapter(provider) {
|
|
496
496
|
switch (provider) {
|
|
497
497
|
case "claude": {
|
|
498
|
-
const { ClaudeAdapter } = await import("./claude-adapter-
|
|
498
|
+
const { ClaudeAdapter } = await import("./claude-adapter-2y47mrkd.js");
|
|
499
499
|
return new ClaudeAdapter;
|
|
500
500
|
}
|
|
501
501
|
case "pi": {
|
|
502
|
-
const { PiMonoAdapter } = await import("./pi-mono-adapter-
|
|
502
|
+
const { PiMonoAdapter } = await import("./pi-mono-adapter-t091s27g.js");
|
|
503
503
|
return new PiMonoAdapter;
|
|
504
504
|
}
|
|
505
505
|
case "codex": {
|
|
506
|
-
const { CodexAdapter } = await import("./codex-adapter-
|
|
506
|
+
const { CodexAdapter } = await import("./codex-adapter-d24q75wk.js");
|
|
507
507
|
return new CodexAdapter;
|
|
508
508
|
}
|
|
509
509
|
case "claude-managed": {
|
|
@@ -1201,7 +1201,7 @@ async function checkProviderCredentials(provider, env, opts) {
|
|
|
1201
1201
|
case "opencode":
|
|
1202
1202
|
return checkOpencodeCredentials(env, opts);
|
|
1203
1203
|
case "pi": {
|
|
1204
|
-
const { checkPiMonoCredentials } = await import("./pi-mono-adapter-
|
|
1204
|
+
const { checkPiMonoCredentials } = await import("./pi-mono-adapter-t091s27g.js");
|
|
1205
1205
|
return checkPiMonoCredentials(env, opts);
|
|
1206
1206
|
}
|
|
1207
1207
|
default:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SYSTEM_COLUMN_KINDS,
|
|
3
3
|
listAppRecords
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-2q72qz2s.js";
|
|
5
5
|
import {
|
|
6
6
|
getScriptApiTypes,
|
|
7
7
|
getScriptMcpTypes,
|
|
8
8
|
require_typescript
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-pm6xbh84.js";
|
|
10
10
|
import {
|
|
11
11
|
deleteSwarmConfigByKey,
|
|
12
12
|
getAgentById,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
getSwarmConfigs,
|
|
16
16
|
init_db,
|
|
17
17
|
upsertSwarmConfig
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-a4jzdpa3.js";
|
|
19
19
|
import {
|
|
20
20
|
init_secret_scrubber,
|
|
21
21
|
scrubSecrets
|
|
@@ -859,6 +859,7 @@ export interface SwarmSdk {
|
|
|
859
859
|
migration?: Record<string, unknown>;
|
|
860
860
|
forceElementBreak?: string[];
|
|
861
861
|
}): Promise<unknown>;
|
|
862
|
+
app_sync(args: { appId: string; model?: string; source?: string }): Promise<unknown>;
|
|
862
863
|
app_upsert(args: {
|
|
863
864
|
name: string;
|
|
864
865
|
description?: string;
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
resolveGrammarConstrainedSampling,
|
|
11
11
|
resolveJsonSchemaStrictSampling,
|
|
12
12
|
transformMessages
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-57khth04.js";
|
|
14
14
|
import {
|
|
15
15
|
sanitizeSurrogates
|
|
16
16
|
} from "./cli-y2apkfe2.js";
|
|
17
17
|
import {
|
|
18
18
|
calculateCost
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-akdvwc9v.js";
|
|
20
20
|
|
|
21
21
|
// node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js
|
|
22
22
|
function encodeTextSignatureV1(id, phase) {
|
|
@@ -418,8 +418,12 @@ async function processResponsesStream(openaiStream, output, stream, model, optio
|
|
|
418
418
|
options.applyServiceTierPricing(output.usage, serviceTier);
|
|
419
419
|
}
|
|
420
420
|
const status = response?.status;
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
const incompleteDetails = response?.incomplete_details;
|
|
422
|
+
const incompleteReason = typeof incompleteDetails?.reason === "string" ? incompleteDetails.reason : undefined;
|
|
423
|
+
output.rawStopReason = incompleteReason ? `${status}.${incompleteReason}` : status;
|
|
424
|
+
const mappedStop = mapStopReason(status, incompleteReason);
|
|
425
|
+
output.stopReason = mappedStop.stopReason;
|
|
426
|
+
output.errorMessage = mappedStop.errorMessage;
|
|
423
427
|
if (output.content.some((b) => b.type === "toolCall") && output.stopReason === "stop") {
|
|
424
428
|
output.stopReason = "toolUse";
|
|
425
429
|
}
|
|
@@ -586,20 +590,26 @@ async function processResponsesStream(openaiStream, output, stream, model, optio
|
|
|
586
590
|
throw new Error("OpenAI Responses stream ended before a terminal response event");
|
|
587
591
|
}
|
|
588
592
|
}
|
|
589
|
-
function mapStopReason(status) {
|
|
593
|
+
function mapStopReason(status, incompleteReason) {
|
|
590
594
|
if (!status)
|
|
591
|
-
return "stop";
|
|
595
|
+
return { stopReason: "stop" };
|
|
592
596
|
switch (status) {
|
|
593
597
|
case "completed":
|
|
594
|
-
return "stop";
|
|
598
|
+
return { stopReason: "stop" };
|
|
595
599
|
case "incomplete":
|
|
596
|
-
|
|
600
|
+
if (incompleteReason === "max_output_tokens") {
|
|
601
|
+
return { stopReason: "length" };
|
|
602
|
+
}
|
|
603
|
+
return {
|
|
604
|
+
stopReason: "error",
|
|
605
|
+
errorMessage: incompleteReason ? `Response incomplete: ${incompleteReason}` : "Response incomplete without a provider reason"
|
|
606
|
+
};
|
|
597
607
|
case "failed":
|
|
598
608
|
case "cancelled":
|
|
599
|
-
return "error";
|
|
609
|
+
return { stopReason: "error" };
|
|
600
610
|
case "in_progress":
|
|
601
611
|
case "queued":
|
|
602
|
-
return "stop";
|
|
612
|
+
return { stopReason: "stop" };
|
|
603
613
|
default: {
|
|
604
614
|
const _exhaustive = status;
|
|
605
615
|
throw new Error(`Unhandled stop reason: ${_exhaustive}`);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
exports_supports_color,
|
|
3
|
+
init_supports_color
|
|
4
|
+
} from "./cli-3fj60etf.js";
|
|
4
5
|
import {
|
|
5
6
|
__commonJS,
|
|
6
|
-
__require
|
|
7
|
+
__require,
|
|
8
|
+
__toCommonJS
|
|
7
9
|
} from "./cli-p9swy5t3.js";
|
|
8
10
|
|
|
9
11
|
// node_modules/ms/index.js
|
|
@@ -449,7 +451,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
449
451
|
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
450
452
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
451
453
|
try {
|
|
452
|
-
const supportsColor =
|
|
454
|
+
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
453
455
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
454
456
|
exports.colors = [
|
|
455
457
|
20,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
init_db,
|
|
17
17
|
init_templates1 as init_templates,
|
|
18
18
|
normalizeDateRequired
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-a4jzdpa3.js";
|
|
20
20
|
import {
|
|
21
21
|
init_env_flag,
|
|
22
22
|
init_resolver,
|
|
23
23
|
isEnvFlagEnabled,
|
|
24
24
|
resolveTemplate
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-xpxde7rm.js";
|
|
26
26
|
|
|
27
27
|
// src/be/db-queries/tracker.ts
|
|
28
28
|
init_date_utils();
|