@desplega.ai/agent-swarm 1.130.0 → 1.131.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{actions-73ee723n.js → actions-jgcy477k.js} +7 -7
- package/dist/{anthropic-messages-3xgme8my.js → anthropic-messages-rjmd2e7n.js} +5 -5
- package/dist/{app-hz5c2xay.js → app-5da78bd4.js} +4 -4
- package/dist/{assistant-08mr16yp.js → assistant-f2vkk1hj.js} +9 -9
- package/dist/{azure-openai-responses-xa4sh9f6.js → azure-openai-responses-c0yjmbfd.js} +8 -5
- package/dist/{boot-reembed-5bgan3cd.js → boot-reembed-q7mp8hcr.js} +4 -4
- package/dist/{boot-reembed-z7ykyeq8.js → boot-reembed-xmw8wcx6.js} +5 -5
- package/dist/{boot-scrub-logs-b2rjk8mv.js → boot-scrub-logs-dsqrv79n.js} +3 -3
- package/dist/{claude-adapter-qr0k17km.js → claude-adapter-q6x7yspx.js} +6 -6
- package/dist/{claude-managed-adapter-gv19tdew.js → claude-managed-adapter-wsg37bt8.js} +1 -1
- package/dist/{cli-vr2f46zj.js → cli-114fvtmj.js} +1 -1
- package/dist/{cli-mhr8tq3v.js → cli-2f07m0xr.js} +1 -1
- package/dist/{cli-mgerp0vs.js → cli-2rk0cx7s.js} +2 -2
- package/dist/{cli-tfw3c0y1.js → cli-3ty0t082.js} +2 -2
- package/dist/{cli-fs153s3x.js → cli-4rkfg1wx.js} +3 -3
- package/dist/{cli-s18zzkfp.js → cli-50vbt00w.js} +44 -7
- package/dist/{cli-vgexpfsr.js → cli-57khth04.js} +6 -3
- package/dist/{cli-n9yxcnvk.js → cli-5n6e5yfn.js} +29 -7
- package/dist/{cli-q8zwffx0.js → cli-6dp3ydxa.js} +158 -39
- package/dist/{cli-r62me33w.js → cli-6dpytdr2.js} +2 -2
- package/dist/{cli-ch7t5v7n.js → cli-6map995v.js} +9 -4
- package/dist/{cli-326083vb.js → cli-6pcz9h15.js} +14 -14
- package/dist/{cli-h3e66g5b.js → cli-793jvbsh.js} +1 -1
- package/dist/{cli-yj7z99vp.js → cli-7dm2zqy2.js} +2 -2
- package/dist/{cli-t5tsq67k.js → cli-9dr5qzc0.js} +39 -4
- package/dist/{cli-m8fs5ttq.js → cli-aca5pz9f.js} +1 -1
- package/dist/{cli-w10fkrf1.js → cli-akdvwc9v.js} +354 -115
- package/dist/{cli-hntzdchd.js → cli-bqw0mt1n.js} +1 -1
- package/dist/{cli-7v5dhmc8.js → cli-ccf9vy7q.js} +6 -6
- package/dist/{cli-6nh2qxvh.js → cli-darcwax3.js} +1 -1
- package/dist/{cli-xg2eezyv.js → cli-f1am9szv.js} +1 -1
- package/dist/{cli-1px8pn1s.js → cli-g1re8r05.js} +2 -2
- package/dist/{cli-z9q7pb38.js → cli-g74vpjp2.js} +4 -4
- package/dist/{cli-brebbsen.js → cli-gecy3z2s.js} +20 -8
- package/dist/{cli-epsvdckx.js → cli-gm9cbhbq.js} +20 -10
- package/dist/{cli-xdrmxvd4.js → cli-jbcva0xj.js} +55 -11
- package/dist/{cli-haanc4qd.js → cli-jevgrb4w.js} +22 -22
- package/dist/{cli-e5p3es48.js → cli-kd1ck4rx.js} +1 -1
- package/dist/{cli-1mj7yz1r.js → cli-nrkkknat.js} +1 -1
- package/dist/{cli-2pa5w9b6.js → cli-pxfxkx5m.js} +1 -1
- package/dist/{cli-qcsjdppx.js → cli-rgrfzg8z.js} +7 -7
- package/dist/{cli-mf009e0j.js → cli-se2p6rkb.js} +1 -1
- package/dist/{cli-tp519bjz.js → cli-sy7jk3tx.js} +2 -2
- package/dist/{cli-qbb2ten8.js → cli-t8d349cy.js} +2 -2
- package/dist/{cli-s21zzx4b.js → cli-w2wxd56v.js} +448 -184
- package/dist/{cli-qmdnhpej.js → cli-wz9115x0.js} +17 -7
- package/dist/{cli-4n4mdv21.js → cli-xpxde7rm.js} +7 -3
- package/dist/{cli-dakxgk70.js → cli-ycrnynpw.js} +4 -4
- package/dist/{cli-73bvdyxr.js → cli-ygrbmjja.js} +6 -6
- package/dist/cli.js +22 -22
- package/dist/{codex-adapter-6pc50x9q.js → codex-adapter-htjkn22b.js} +4 -4
- package/dist/{codex-hook-amndawyb.js → codex-hook-hq54t9ft.js} +2 -2
- package/dist/{codex-session-runner-tpg8hyj7.js → codex-session-runner-wjfc7smz.js} +4 -4
- package/dist/{commands-yfpwt11g.js → commands-xhrfwqsk.js} +3 -3
- package/dist/{db-jn499nmp.js → db-anvwb22f.js} +3 -3
- package/dist/{google-generative-ai-txgg2q58.js → google-generative-ai-hysrd8qx.js} +7 -5
- package/dist/{google-vertex-t663s1c3.js → google-vertex-p5arrga0.js} +7 -5
- package/dist/{handlers-eev4nng0.js → handlers-b9kbc621.js} +9 -9
- package/dist/{hook-9fkwkf3m.js → hook-cgk4wxmx.js} +5 -5
- package/dist/{hook-sn7pj75w.js → hook-xkvn6c5h.js} +4 -4
- package/dist/{http-xdbbtmhx.js → http-9xh6ta4r.js} +324 -82
- package/dist/{index-9vnkprkh.js → index-25wjsdv2.js} +10 -10
- package/dist/{index-5fdsemf0.js → index-eaxyqcmj.js} +155 -37
- package/dist/{index-fnack5vh.js → index-vg4snay4.js} +11 -11
- package/dist/{index-c0qedjh6.js → index-ywds4812.js} +9 -9
- package/dist/{keepalive-fc7a2hw9.js → keepalive-vc7s2aa6.js} +5 -5
- package/dist/{lead-1fva34y9.js → lead-r2yqfmx7.js} +29 -29
- package/dist/{maintenance-0rdb12vf.js → maintenance-mw70k468.js} +5 -5
- package/dist/{mistral-conversations-4swenhmf.js → mistral-conversations-81fwav0j.js} +2 -2
- package/dist/{oauth-refresh-sweep-f9rptqbt.js → oauth-refresh-sweep-yecgjpk4.js} +4 -4
- package/dist/{onboard-9zn0fx2m.js → onboard-xj0f73f9.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-thnttmbn.js → otel-impl-nxg0n0b3.js} +1 -1
- package/dist/{pi-mono-adapter-bpfrn6d7.js → pi-mono-adapter-4g5kby31.js} +17114 -7514
- package/dist/{pricing-refresh-n0ve0kh6.js → pricing-refresh-2cn6effr.js} +5 -5
- package/dist/{rbac-roles-w45bhahg.js → rbac-roles-1hcxdtg7.js} +4 -4
- package/dist/{rbac-roles-bbwb4wrm.js → rbac-roles-vynday5g.js} +5 -5
- package/dist/{render-v2-d675cp9r.js → render-v2-tc0bh8kk.js} +4 -4
- package/dist/{seed-pricing-47q77nw4.js → seed-pricing-8kceb43f.js} +4 -4
- package/dist/{setup-3vnv2m43.js → setup-46xtgq3c.js} +2 -2
- package/dist/{worker-7shsr8hk.js → worker-qrbz6hmv.js} +29 -29
- package/openapi.json +342 -10
- package/package.json +6 -6
- package/src/apps/store.ts +13 -4
- package/src/assets/key.ts +8 -1
- package/src/be/asset-key-audit.ts +3 -1
- package/src/be/db-queries/mcp-oauth.ts +26 -0
- package/src/be/db.ts +42 -1
- package/src/be/migrations/129_asset_keys_apps_scripts.sql +161 -0
- package/src/be/migrations/130_scratch_script_retention_grace.sql +6 -0
- package/src/be/scripts/db.ts +48 -3
- package/src/be/scripts/retention.ts +164 -0
- package/src/be/scripts/run-saved.ts +16 -1
- package/src/be/seed-skills/index.ts +7 -0
- package/src/http/assets.ts +120 -29
- package/src/http/index.ts +5 -0
- package/src/http/mcp-oauth.ts +69 -1
- package/src/http/scripts.ts +21 -3
- package/src/http/users.ts +45 -0
- package/src/http/x.ts +14 -0
- package/src/oauth/ensure-mcp-token.ts +7 -1
- package/src/oauth/mcp-wrapper.ts +247 -24
- package/src/providers/claude-managed-models.ts +34 -10
- package/src/providers/pi-mono-adapter.ts +1 -1
- 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/claude-managed-adapter.test.ts +38 -7
- package/src/tests/mcp-oauth-dcr-reuse.test.ts +95 -0
- package/src/tests/mcp-oauth-ensure-token.test.ts +23 -0
- package/src/tests/mcp-oauth-manual-client.test.ts +135 -2
- package/src/tests/mcp-oauth-wrapper.test.ts +380 -0
- package/src/tests/rbac-admission-e2e.test.ts +68 -0
- package/src/tests/sandboxed-process.test.ts +45 -0
- package/src/tests/script-connections.test.ts +4 -0
- package/src/tests/scripts-external-api.test.ts +8 -3
- package/src/tests/scripts-http.test.ts +12 -0
- package/src/tests/scripts-retention.test.ts +384 -0
- 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 +118 -5
- package/src/tools/workflows/create-workflow.ts +4 -1
- package/src/types.ts +18 -5
- package/src/utils/sandboxed-process.ts +40 -14
- package/src/utils/template.ts +8 -1
- package/src/workflows/engine.ts +27 -4
- package/src/workflows/executors/swarm-script.ts +52 -1
- package/src/workflows/retry-poller.ts +19 -2
- package/templates/schedules/daily-compounding-reflection/content.md +12 -3
- 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
|
@@ -45,10 +45,19 @@ var CLAUDE_MANAGED_MODEL_PRICING = {
|
|
|
45
45
|
cacheWritePerMillion: 12.5
|
|
46
46
|
},
|
|
47
47
|
"claude-sonnet-5": {
|
|
48
|
-
inputPerMillion:
|
|
49
|
-
outputPerMillion:
|
|
50
|
-
cacheReadPerMillion: 0.
|
|
51
|
-
cacheWritePerMillion:
|
|
48
|
+
inputPerMillion: 2,
|
|
49
|
+
outputPerMillion: 10,
|
|
50
|
+
cacheReadPerMillion: 0.2,
|
|
51
|
+
cacheWritePerMillion: 2.5,
|
|
52
|
+
scheduledChange: {
|
|
53
|
+
effectiveAt: "2026-09-01T00:00:00.000Z",
|
|
54
|
+
pricing: {
|
|
55
|
+
inputPerMillion: 3,
|
|
56
|
+
outputPerMillion: 15,
|
|
57
|
+
cacheReadPerMillion: 0.3,
|
|
58
|
+
cacheWritePerMillion: 3.75
|
|
59
|
+
}
|
|
60
|
+
}
|
|
52
61
|
},
|
|
53
62
|
"claude-sonnet-4-6": {
|
|
54
63
|
inputPerMillion: 3,
|
|
@@ -82,15 +91,16 @@ var CLAUDE_MANAGED_MODEL_PRICING = {
|
|
|
82
91
|
}
|
|
83
92
|
};
|
|
84
93
|
var warnedUnknownModels = new Set;
|
|
85
|
-
function computeClaudeManagedCostUsd(model, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens) {
|
|
86
|
-
const
|
|
87
|
-
if (!
|
|
94
|
+
function computeClaudeManagedCostUsd(model, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens, pricedAtMs = Date.now()) {
|
|
95
|
+
const configuredPricing = CLAUDE_MANAGED_MODEL_PRICING[model];
|
|
96
|
+
if (!configuredPricing) {
|
|
88
97
|
if (!warnedUnknownModels.has(model)) {
|
|
89
98
|
warnedUnknownModels.add(model);
|
|
90
99
|
console.warn(`[claude-managed-models] Unknown model "${model}" — returning $0 cost. ` + `Add it to CLAUDE_MANAGED_MODEL_PRICING in src/providers/claude-managed-models.ts.`);
|
|
91
100
|
}
|
|
92
101
|
return 0;
|
|
93
102
|
}
|
|
103
|
+
const pricing = configuredPricing.scheduledChange && pricedAtMs >= Date.parse(configuredPricing.scheduledChange.effectiveAt) ? configuredPricing.scheduledChange.pricing : configuredPricing;
|
|
94
104
|
const inputCost = inputTokens / 1e6 * pricing.inputPerMillion;
|
|
95
105
|
const outputCost = outputTokens / 1e6 * pricing.outputPerMillion;
|
|
96
106
|
const cacheReadCost = cacheReadTokens / 1e6 * pricing.cacheReadPerMillion;
|
|
@@ -3,9 +3,12 @@ import {
|
|
|
3
3
|
} from "./cli-p9swy5t3.js";
|
|
4
4
|
|
|
5
5
|
// src/utils/template.ts
|
|
6
|
+
function findInterpolationTokens(template) {
|
|
7
|
+
return Array.from(template.matchAll(INTERPOLATION_TOKEN_RE), (match) => match[1].trim());
|
|
8
|
+
}
|
|
6
9
|
function interpolate(template, ctx) {
|
|
7
10
|
const unresolved = [];
|
|
8
|
-
const result = template.replace(
|
|
11
|
+
const result = template.replace(INTERPOLATION_TOKEN_RE, (_match, path) => {
|
|
9
12
|
const keys = path.trim().split(".");
|
|
10
13
|
let value = ctx;
|
|
11
14
|
for (const key of keys) {
|
|
@@ -73,8 +76,9 @@ function deepInterpolate(value, ctx, options = {}) {
|
|
|
73
76
|
}
|
|
74
77
|
return { value: walk(value), unresolved: allUnresolved };
|
|
75
78
|
}
|
|
76
|
-
var EXACT_TOKEN_RE;
|
|
79
|
+
var INTERPOLATION_TOKEN_RE, EXACT_TOKEN_RE;
|
|
77
80
|
var init_template = __esm(() => {
|
|
81
|
+
INTERPOLATION_TOKEN_RE = /\{\{([^}]+)\}\}/g;
|
|
78
82
|
EXACT_TOKEN_RE = /^\{\{([^}]+)\}\}$/;
|
|
79
83
|
});
|
|
80
84
|
|
|
@@ -1146,4 +1150,4 @@ Your output is captured automatically — focus on doing the work and communicat
|
|
|
1146
1150
|
});
|
|
1147
1151
|
});
|
|
1148
1152
|
|
|
1149
|
-
export { interpolate, deepInterpolate, init_template, registerTemplate, getTemplateDefinition, getAllTemplateDefinitions, init_registry, configureDbResolver, configureHttpResolver, resolveTemplate, resolveTemplateAsync, init_resolver, parseEnvFlag, isEnvFlagEnabled, init_env_flag, init_session_templates, isSteeringEnabled, init_steering_enabled };
|
|
1153
|
+
export { findInterpolationTokens, interpolate, deepInterpolate, init_template, registerTemplate, getTemplateDefinition, getAllTemplateDefinitions, init_registry, configureDbResolver, configureHttpResolver, resolveTemplate, resolveTemplateAsync, init_resolver, parseEnvFlag, isEnvFlagEnabled, init_env_flag, init_session_templates, isSteeringEnabled, init_steering_enabled };
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
getExecutorRegistry,
|
|
3
3
|
handleScheduleTrigger,
|
|
4
4
|
startWorkflowExecution
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-jbcva0xj.js";
|
|
6
6
|
import {
|
|
7
7
|
buildScriptCredentialBindings,
|
|
8
8
|
getScript,
|
|
9
9
|
getScriptApiConnectionDescriptors,
|
|
10
10
|
getScriptMcpConnectionDescriptors,
|
|
11
11
|
runScript
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-6dp3ydxa.js";
|
|
13
13
|
import {
|
|
14
14
|
createTaskWithSiblingAwareness
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-2f07m0xr.js";
|
|
16
16
|
import {
|
|
17
17
|
getDb,
|
|
18
18
|
getDueScheduledTasks,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
scheduleContextKey,
|
|
25
25
|
telemetry,
|
|
26
26
|
updateScheduledTask
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-50vbt00w.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAdditiveBuffer,
|
|
3
3
|
extractSlackMessageText
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6dpytdr2.js";
|
|
5
5
|
import {
|
|
6
6
|
rewriteSlackMentions
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-7dm2zqy2.js";
|
|
8
8
|
import {
|
|
9
9
|
createTaskWithSiblingAwareness
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-2f07m0xr.js";
|
|
11
11
|
import {
|
|
12
12
|
buildBufferFlushBlocks,
|
|
13
13
|
ensureSlackThreadTree,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getSlackApp,
|
|
17
17
|
isSlackRenderV2Enabled,
|
|
18
18
|
registerTreeMessage
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-rgrfzg8z.js";
|
|
20
20
|
import {
|
|
21
21
|
createLogEntry,
|
|
22
22
|
getAgentById,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
init_steering,
|
|
30
30
|
requestSteering,
|
|
31
31
|
slackContextKey
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-50vbt00w.js";
|
|
33
33
|
import {
|
|
34
34
|
init_registry,
|
|
35
35
|
init_steering_enabled,
|
|
36
36
|
isSteeringEnabled,
|
|
37
37
|
registerTemplate
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-xpxde7rm.js";
|
|
39
39
|
|
|
40
40
|
// src/slack/event-dedup.ts
|
|
41
41
|
var DEFAULT_TTL_MS = 300000;
|
package/dist/cli.js
CHANGED
|
@@ -13,20 +13,20 @@ import"./cli-ap1czx8f.js";
|
|
|
13
13
|
import"./cli-v69vk5h0.js";
|
|
14
14
|
import {
|
|
15
15
|
bedrockProviderModule
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-9dr5qzc0.js";
|
|
17
17
|
import"./cli-cwy5hqbq.js";
|
|
18
18
|
import {
|
|
19
19
|
setBedrockProviderModule
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-darcwax3.js";
|
|
21
21
|
import"./cli-jvv0g8bh.js";
|
|
22
22
|
import"./cli-r6kqqbj0.js";
|
|
23
|
-
import"./cli-
|
|
23
|
+
import"./cli-6map995v.js";
|
|
24
24
|
import"./cli-4wgngmwv.js";
|
|
25
25
|
import"./cli-vapyk8sw.js";
|
|
26
26
|
import"./cli-zyxs93y9.js";
|
|
27
|
-
import"./cli-
|
|
27
|
+
import"./cli-57khth04.js";
|
|
28
28
|
import"./cli-y2apkfe2.js";
|
|
29
|
-
import"./cli-
|
|
29
|
+
import"./cli-akdvwc9v.js";
|
|
30
30
|
import"./cli-8wrympd7.js";
|
|
31
31
|
import"./cli-7sgrxg9a.js";
|
|
32
32
|
import"./cli-3fj60etf.js";
|
|
@@ -65,7 +65,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
65
65
|
// package.json
|
|
66
66
|
var package_default = {
|
|
67
67
|
name: "@desplega.ai/agent-swarm",
|
|
68
|
-
version: "1.
|
|
68
|
+
version: "1.131.1",
|
|
69
69
|
description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
|
|
70
70
|
keywords: [
|
|
71
71
|
"agent-swarm.dev",
|
|
@@ -234,14 +234,14 @@ var package_default = {
|
|
|
234
234
|
"@aws-sdk/client-bedrock": "3.1048.0",
|
|
235
235
|
"@desplega.ai/business-use": "^0.4.2",
|
|
236
236
|
"@desplega.ai/localtunnel": "^2.2.0",
|
|
237
|
-
"@earendil-works/pi-agent-core": "^0.
|
|
238
|
-
"@earendil-works/pi-ai": "^0.
|
|
239
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
237
|
+
"@earendil-works/pi-agent-core": "^0.84.1",
|
|
238
|
+
"@earendil-works/pi-ai": "^0.84.1",
|
|
239
|
+
"@earendil-works/pi-coding-agent": "^0.84.1",
|
|
240
240
|
"@inkjs/ui": "^2.0.0",
|
|
241
241
|
"@linear/sdk": "^77.0.0",
|
|
242
242
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
243
|
-
"@openai/codex-sdk": "^0.
|
|
244
|
-
"@opencode-ai/sdk": "^1.18.
|
|
243
|
+
"@openai/codex-sdk": "^0.147.0",
|
|
244
|
+
"@opencode-ai/sdk": "^1.18.16",
|
|
245
245
|
"@openfort/openfort-node": "^0.9.1",
|
|
246
246
|
"@opentelemetry/api": "^1.9.1",
|
|
247
247
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.218.0",
|
|
@@ -699,7 +699,7 @@ function McpServer({ port, apiKey, dbPath }) {
|
|
|
699
699
|
if (dbPath) {
|
|
700
700
|
process.env.DATABASE_PATH = dbPath;
|
|
701
701
|
}
|
|
702
|
-
import("./http-
|
|
702
|
+
import("./http-9xh6ta4r.js").then(() => {
|
|
703
703
|
setStatus("running");
|
|
704
704
|
}).catch((err) => {
|
|
705
705
|
setStatus("error");
|
|
@@ -785,7 +785,7 @@ function WorkerRunner({
|
|
|
785
785
|
}) {
|
|
786
786
|
const { exit } = use_app_default();
|
|
787
787
|
import_react.useEffect(() => {
|
|
788
|
-
import("./worker-
|
|
788
|
+
import("./worker-qrbz6hmv.js").then(({ runWorker }) => runWorker({
|
|
789
789
|
prompt: prompt || undefined,
|
|
790
790
|
yolo,
|
|
791
791
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -802,7 +802,7 @@ function WorkerRunner({
|
|
|
802
802
|
function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalArgs }) {
|
|
803
803
|
const { exit } = use_app_default();
|
|
804
804
|
import_react.useEffect(() => {
|
|
805
|
-
import("./lead-
|
|
805
|
+
import("./lead-r2yqfmx7.js").then(({ runLead }) => runLead({
|
|
806
806
|
prompt: prompt || undefined,
|
|
807
807
|
yolo,
|
|
808
808
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -842,8 +842,8 @@ function LazyComponent({
|
|
|
842
842
|
}
|
|
843
843
|
return import_react.createElement(Component, props);
|
|
844
844
|
}
|
|
845
|
-
var loadOnboard = () => import("./onboard-
|
|
846
|
-
var loadConnect = () => import("./setup-
|
|
845
|
+
var loadOnboard = () => import("./onboard-xj0f73f9.js").then(({ Onboard }) => Onboard);
|
|
846
|
+
var loadConnect = () => import("./setup-46xtgq3c.js").then(({ Setup }) => Setup);
|
|
847
847
|
function UnknownCommand({ command }) {
|
|
848
848
|
const { exit } = use_app_default();
|
|
849
849
|
import_react.useEffect(() => {
|
|
@@ -956,14 +956,14 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
956
956
|
}
|
|
957
957
|
process.exit(0);
|
|
958
958
|
} else if (args.command === "hook") {
|
|
959
|
-
const { runHook } = await import("./hook-
|
|
959
|
+
const { runHook } = await import("./hook-cgk4wxmx.js");
|
|
960
960
|
await runHook();
|
|
961
961
|
} else if (args.command === "codex-hook") {
|
|
962
|
-
const { handleCodexHook } = await import("./codex-hook-
|
|
962
|
+
const { handleCodexHook } = await import("./codex-hook-hq54t9ft.js");
|
|
963
963
|
await handleCodexHook();
|
|
964
964
|
process.exit(0);
|
|
965
965
|
} else if (args.command === "session-summary-stdin") {
|
|
966
|
-
const { runSessionSummaryFromStdin } = await import("./hook-
|
|
966
|
+
const { runSessionSummaryFromStdin } = await import("./hook-xkvn6c5h.js");
|
|
967
967
|
await runSessionSummaryFromStdin();
|
|
968
968
|
process.exit(process.exitCode ?? 0);
|
|
969
969
|
} else if (args.command === "artifact") {
|
|
@@ -984,7 +984,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
984
984
|
printHelp("scripts");
|
|
985
985
|
process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
|
|
986
986
|
}
|
|
987
|
-
const { runScriptsMaintenanceCommand } = await import("./maintenance-
|
|
987
|
+
const { runScriptsMaintenanceCommand } = await import("./maintenance-mw70k468.js");
|
|
988
988
|
await runScriptsMaintenanceCommand(scriptsArgs);
|
|
989
989
|
console.log("Scripts re-embedded.");
|
|
990
990
|
} else if (args.command === "rbac") {
|
|
@@ -994,14 +994,14 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
994
994
|
printHelp("rbac");
|
|
995
995
|
process.exit(args.showHelp ? 0 : 1);
|
|
996
996
|
}
|
|
997
|
-
const { runRbacCliCommand } = await import("./rbac-roles-
|
|
997
|
+
const { runRbacCliCommand } = await import("./rbac-roles-1hcxdtg7.js");
|
|
998
998
|
await runRbacCliCommand(rbacArgs);
|
|
999
999
|
} else if (args.command === "codex-login") {
|
|
1000
1000
|
const { runCodexLogin } = await import("./codex-login-z6yhbkmk.js");
|
|
1001
1001
|
const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
|
|
1002
1002
|
await runCodexLogin(codexLoginArgs);
|
|
1003
1003
|
} else if (args.command === "codex-session-runner") {
|
|
1004
|
-
const { runCodexSessionRunner } = await import("./codex-session-runner-
|
|
1004
|
+
const { runCodexSessionRunner } = await import("./codex-session-runner-wjfc7smz.js");
|
|
1005
1005
|
await runCodexSessionRunner();
|
|
1006
1006
|
} else if (args.command === "claude-managed-setup") {
|
|
1007
1007
|
const { runClaudeManagedSetup } = await import("./claude-managed-setup-52z4mq9w.js");
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
createInProcessCodexSession,
|
|
7
7
|
resolveCodexAuthMode,
|
|
8
8
|
resolveCodexRunnerArgv
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-793jvbsh.js";
|
|
10
10
|
import"./cli-07er7wrs.js";
|
|
11
11
|
import"./cli-r94z9p1z.js";
|
|
12
12
|
import"./cli-d6n0thxw.js";
|
|
13
13
|
import"./cli-psrqtw2m.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-w2wxd56v.js";
|
|
15
15
|
import"./cli-yv9dttkh.js";
|
|
16
16
|
import"./cli-zm7njwzd.js";
|
|
17
17
|
import"./cli-cw70hymf.js";
|
|
@@ -25,10 +25,10 @@ import"./cli-7zd05xb4.js";
|
|
|
25
25
|
import"./cli-zsspvvm2.js";
|
|
26
26
|
import"./cli-4j2mrzag.js";
|
|
27
27
|
import"./cli-5dsbcjjw.js";
|
|
28
|
-
import"./cli-
|
|
28
|
+
import"./cli-darcwax3.js";
|
|
29
29
|
import"./cli-4wgngmwv.js";
|
|
30
30
|
import"./cli-zyxs93y9.js";
|
|
31
|
-
import"./cli-
|
|
31
|
+
import"./cli-akdvwc9v.js";
|
|
32
32
|
import"./cli-8wrympd7.js";
|
|
33
33
|
import"./cli-p9swy5t3.js";
|
|
34
34
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
renderSteeringDelivery
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-f1am9szv.js";
|
|
5
5
|
import {
|
|
6
6
|
getApiKey
|
|
7
7
|
} from "./cli-f14fvzag.js";
|
|
8
8
|
import {
|
|
9
9
|
init_steering_enabled,
|
|
10
10
|
isSteeringEnabled
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-xpxde7rm.js";
|
|
12
12
|
import {
|
|
13
13
|
getMcpBaseUrl,
|
|
14
14
|
init_constants
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createInProcessCodexSession
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-793jvbsh.js";
|
|
4
4
|
import"./cli-07er7wrs.js";
|
|
5
5
|
import"./cli-r94z9p1z.js";
|
|
6
6
|
import"./cli-d6n0thxw.js";
|
|
7
7
|
import"./cli-psrqtw2m.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-w2wxd56v.js";
|
|
9
9
|
import"./cli-yv9dttkh.js";
|
|
10
10
|
import"./cli-zm7njwzd.js";
|
|
11
11
|
import"./cli-cw70hymf.js";
|
|
@@ -19,10 +19,10 @@ import"./cli-7zd05xb4.js";
|
|
|
19
19
|
import"./cli-zsspvvm2.js";
|
|
20
20
|
import"./cli-4j2mrzag.js";
|
|
21
21
|
import"./cli-5dsbcjjw.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-darcwax3.js";
|
|
23
23
|
import"./cli-4wgngmwv.js";
|
|
24
24
|
import"./cli-zyxs93y9.js";
|
|
25
|
-
import"./cli-
|
|
25
|
+
import"./cli-akdvwc9v.js";
|
|
26
26
|
import"./cli-8wrympd7.js";
|
|
27
27
|
import"./cli-p9swy5t3.js";
|
|
28
28
|
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getAllAgents,
|
|
3
3
|
getAllTasks,
|
|
4
4
|
init_db
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-50vbt00w.js";
|
|
6
6
|
import {
|
|
7
7
|
init_env_flag,
|
|
8
8
|
isEnvFlagEnabled
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-xpxde7rm.js";
|
|
10
10
|
import"./cli-x23me2mg.js";
|
|
11
11
|
import"./cli-z2zcxes1.js";
|
|
12
12
|
import"./cli-zsspvvm2.js";
|
|
13
13
|
import"./cli-4j2mrzag.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-ccf9vy7q.js";
|
|
15
15
|
import"./cli-5dsbcjjw.js";
|
|
16
16
|
import"./cli-p9swy5t3.js";
|
|
17
17
|
|
|
@@ -436,13 +436,13 @@ import {
|
|
|
436
436
|
upsertSkillFiles,
|
|
437
437
|
upsertSwarmConfig,
|
|
438
438
|
withFavoriteFlags
|
|
439
|
-
} from "./cli-
|
|
440
|
-
import"./cli-
|
|
439
|
+
} from "./cli-50vbt00w.js";
|
|
440
|
+
import"./cli-xpxde7rm.js";
|
|
441
441
|
import"./cli-x23me2mg.js";
|
|
442
442
|
import"./cli-z2zcxes1.js";
|
|
443
443
|
import"./cli-zsspvvm2.js";
|
|
444
444
|
import"./cli-4j2mrzag.js";
|
|
445
|
-
import"./cli-
|
|
445
|
+
import"./cli-ccf9vy7q.js";
|
|
446
446
|
import"./cli-5dsbcjjw.js";
|
|
447
447
|
import"./cli-p9swy5t3.js";
|
|
448
448
|
init_db();
|
|
@@ -6,28 +6,30 @@ import {
|
|
|
6
6
|
mapStopReason,
|
|
7
7
|
resolveGoogleFunctionCallingMode,
|
|
8
8
|
retainThoughtSignature,
|
|
9
|
+
retryGoogleRequest,
|
|
9
10
|
supportsGoogleStrictToolSampling
|
|
10
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-5n6e5yfn.js";
|
|
12
|
+
import"./cli-s8s499xy.js";
|
|
11
13
|
import"./cli-4w4fmq9x.js";
|
|
12
14
|
import"./cli-b0p7rfnd.js";
|
|
13
15
|
import"./cli-e15jhafb.js";
|
|
14
16
|
import {
|
|
15
17
|
formatProviderError,
|
|
16
18
|
normalizeProviderError
|
|
17
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-6map995v.js";
|
|
18
20
|
import {
|
|
19
21
|
providerHeadersToRecord
|
|
20
22
|
} from "./cli-vapyk8sw.js";
|
|
21
23
|
import {
|
|
22
24
|
buildBaseOptions
|
|
23
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-57khth04.js";
|
|
24
26
|
import {
|
|
25
27
|
sanitizeSurrogates
|
|
26
28
|
} from "./cli-y2apkfe2.js";
|
|
27
29
|
import {
|
|
28
30
|
calculateCost,
|
|
29
31
|
clampThinkingLevel
|
|
30
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-akdvwc9v.js";
|
|
31
33
|
import {
|
|
32
34
|
AssistantMessageEventStream
|
|
33
35
|
} from "./cli-8wrympd7.js";
|
|
@@ -69,7 +71,7 @@ var stream = (model, context, options) => {
|
|
|
69
71
|
if (nextParams !== undefined) {
|
|
70
72
|
params = nextParams;
|
|
71
73
|
}
|
|
72
|
-
const googleStream = await client.models.generateContentStream(params);
|
|
74
|
+
const googleStream = await retryGoogleRequest(() => client.models.generateContentStream(params), options);
|
|
73
75
|
stream2.push({ type: "start", partial: output });
|
|
74
76
|
let currentBlock = null;
|
|
75
77
|
const blocks = output.content;
|
|
@@ -8,15 +8,17 @@ import {
|
|
|
8
8
|
mapStopReason,
|
|
9
9
|
resolveGoogleFunctionCallingMode,
|
|
10
10
|
retainThoughtSignature,
|
|
11
|
+
retryGoogleRequest,
|
|
11
12
|
supportsGoogleStrictToolSampling
|
|
12
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-5n6e5yfn.js";
|
|
14
|
+
import"./cli-s8s499xy.js";
|
|
13
15
|
import"./cli-4w4fmq9x.js";
|
|
14
16
|
import"./cli-b0p7rfnd.js";
|
|
15
17
|
import"./cli-e15jhafb.js";
|
|
16
18
|
import {
|
|
17
19
|
formatProviderError,
|
|
18
20
|
normalizeProviderError
|
|
19
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-6map995v.js";
|
|
20
22
|
import {
|
|
21
23
|
getProviderEnvValue
|
|
22
24
|
} from "./cli-4wgngmwv.js";
|
|
@@ -25,14 +27,14 @@ import {
|
|
|
25
27
|
} from "./cli-vapyk8sw.js";
|
|
26
28
|
import {
|
|
27
29
|
buildBaseOptions
|
|
28
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-57khth04.js";
|
|
29
31
|
import {
|
|
30
32
|
sanitizeSurrogates
|
|
31
33
|
} from "./cli-y2apkfe2.js";
|
|
32
34
|
import {
|
|
33
35
|
calculateCost,
|
|
34
36
|
clampThinkingLevel
|
|
35
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-akdvwc9v.js";
|
|
36
38
|
import {
|
|
37
39
|
AssistantMessageEventStream
|
|
38
40
|
} from "./cli-8wrympd7.js";
|
|
@@ -80,7 +82,7 @@ var stream = (model, context, options) => {
|
|
|
80
82
|
if (nextParams !== undefined) {
|
|
81
83
|
params = nextParams;
|
|
82
84
|
}
|
|
83
|
-
const googleStream = await client.models.generateContentStream(params);
|
|
85
|
+
const googleStream = await retryGoogleRequest(() => client.models.generateContentStream(params), options);
|
|
84
86
|
stream2.push({ type: "start", partial: output });
|
|
85
87
|
let currentBlock = null;
|
|
86
88
|
const blocks = output.content;
|
|
@@ -5,29 +5,29 @@ import {
|
|
|
5
5
|
instantFlush,
|
|
6
6
|
requestSlackThreadSteering,
|
|
7
7
|
wasEventSeen
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-ygrbmjja.js";
|
|
9
9
|
import {
|
|
10
10
|
extractSlackMessageText,
|
|
11
11
|
extractTaskFromMessage,
|
|
12
12
|
hasOtherUserMention,
|
|
13
13
|
routeMessage
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-6dpytdr2.js";
|
|
15
15
|
import {
|
|
16
16
|
enrichSlackUserEmail,
|
|
17
17
|
resolveSlackUserId,
|
|
18
18
|
rewriteSlackMentions
|
|
19
|
-
} from "./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
} from "./cli-7dm2zqy2.js";
|
|
20
|
+
import"./cli-aca5pz9f.js";
|
|
21
21
|
import {
|
|
22
22
|
createTaskWithSiblingAwareness
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-2f07m0xr.js";
|
|
24
24
|
import {
|
|
25
25
|
ackSlackMessage,
|
|
26
26
|
buildTreeBlocks,
|
|
27
27
|
ensureSlackThreadTree,
|
|
28
28
|
isSlackRenderV2Enabled,
|
|
29
29
|
registerTreeMessage
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-rgrfzg8z.js";
|
|
31
31
|
import"./cli-k9qkf1hw.js";
|
|
32
32
|
import"./cli-b0p7rfnd.js";
|
|
33
33
|
import"./cli-t930g0xh.js";
|
|
@@ -40,18 +40,18 @@ import {
|
|
|
40
40
|
init_context_key,
|
|
41
41
|
init_db,
|
|
42
42
|
slackContextKey
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-50vbt00w.js";
|
|
44
44
|
import {
|
|
45
45
|
init_env_flag,
|
|
46
46
|
init_resolver,
|
|
47
47
|
isEnvFlagEnabled,
|
|
48
48
|
resolveTemplate
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-xpxde7rm.js";
|
|
50
50
|
import"./cli-x23me2mg.js";
|
|
51
51
|
import"./cli-z2zcxes1.js";
|
|
52
52
|
import"./cli-zsspvvm2.js";
|
|
53
53
|
import"./cli-4j2mrzag.js";
|
|
54
|
-
import"./cli-
|
|
54
|
+
import"./cli-ccf9vy7q.js";
|
|
55
55
|
import"./cli-5dsbcjjw.js";
|
|
56
56
|
import"./cli-e15jhafb.js";
|
|
57
57
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleHook
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-2rk0cx7s.js";
|
|
4
|
+
import"./cli-w2wxd56v.js";
|
|
5
5
|
import"./cli-yv9dttkh.js";
|
|
6
6
|
import"./cli-v1mwc5v2.js";
|
|
7
7
|
import"./cli-2wadx7p2.js";
|
|
@@ -12,12 +12,12 @@ import"./cli-0258203w.js";
|
|
|
12
12
|
import"./cli-x23me2mg.js";
|
|
13
13
|
import"./cli-zsspvvm2.js";
|
|
14
14
|
import"./cli-4j2mrzag.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-ccf9vy7q.js";
|
|
16
16
|
import"./cli-5dsbcjjw.js";
|
|
17
|
-
import"./cli-
|
|
17
|
+
import"./cli-darcwax3.js";
|
|
18
18
|
import"./cli-4wgngmwv.js";
|
|
19
19
|
import"./cli-zyxs93y9.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-akdvwc9v.js";
|
|
21
21
|
import"./cli-8wrympd7.js";
|
|
22
22
|
import"./cli-p9swy5t3.js";
|
|
23
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
summarizeSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-w2wxd56v.js";
|
|
5
5
|
import {
|
|
6
6
|
checkToolLoop,
|
|
7
7
|
clearToolHistory
|
|
@@ -38,12 +38,12 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
init_package,
|
|
40
40
|
package_default
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-ccf9vy7q.js";
|
|
42
42
|
import"./cli-5dsbcjjw.js";
|
|
43
|
-
import"./cli-
|
|
43
|
+
import"./cli-darcwax3.js";
|
|
44
44
|
import"./cli-4wgngmwv.js";
|
|
45
45
|
import"./cli-zyxs93y9.js";
|
|
46
|
-
import"./cli-
|
|
46
|
+
import"./cli-akdvwc9v.js";
|
|
47
47
|
import"./cli-8wrympd7.js";
|
|
48
48
|
import"./cli-p9swy5t3.js";
|
|
49
49
|
|