@desplega.ai/agent-swarm 1.152.1 → 1.153.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 -1
- package/dist/{acp-adapter-4s7q25ft.js → acp-adapter-ahmjxhek.js} +4 -4
- package/dist/{actions-cs6rhmvc.js → actions-jzrfpkmn.js} +30 -26
- package/dist/{anthropic-messages-2y8nktar.js → anthropic-messages-9vqsbznt.js} +112 -84
- package/dist/{app-j54aq0dj.js → app-03na2vwb.js} +9 -6
- package/dist/{assistant-w1pgn7vf.js → assistant-hfkxvhgt.js} +33 -29
- package/dist/{azure-openai-responses-f38x2avq.js → azure-openai-responses-04qwdwfq.js} +27 -13
- package/dist/{boot-reembed-smy30z32.js → boot-reembed-c98xrad3.js} +8 -6
- package/dist/{boot-reembed-42vgkrrj.js → boot-reembed-zt3qm9xn.js} +9 -7
- package/dist/{boot-scrub-logs-b6s72fsw.js → boot-scrub-logs-jcqd8ksj.js} +6 -4
- package/dist/{claude-adapter-fh7rmcj9.js → claude-adapter-mgryg8g3.js} +17 -15
- package/dist/{claude-managed-adapter-dsmkcrjy.js → claude-managed-adapter-ea2aga6w.js} +3 -3
- package/dist/{claude-sdk-session-xhynatn9.js → claude-sdk-session-jjf4zss1.js} +17 -15
- package/dist/{cli-r2fpe7cx.js → cli-00w2c66p.js} +61 -55
- package/dist/{cli-fm4ytsdk.js → cli-0d9nbqxf.js} +1 -1
- package/dist/cli-0x5qzvkg.js +4279 -0
- package/dist/{cli-d3p82erb.js → cli-18amys3y.js} +9 -9
- package/dist/{cli-wbyk465z.js → cli-1hwnb4hc.js} +1 -1
- package/dist/{cli-sakxd2rg.js → cli-3bcmp015.js} +5 -5
- package/dist/cli-3er6gcsn.js +1849 -0
- package/dist/{cli-c4eeb5q2.js → cli-5b6b62tz.js} +1 -1
- package/dist/{cli-sqmh7jj1.js → cli-5mbmvxnn.js} +5 -5
- package/dist/{cli-v9sk4dzw.js → cli-5taqtpze.js} +235 -8
- package/dist/{cli-dsyg66vt.js → cli-6ks9xf1n.js} +7 -5
- package/dist/cli-7g9s78jf.js +2827 -0
- package/dist/{cli-jtvs5m8q.js → cli-7pnz2v6s.js} +2 -2
- package/dist/{cli-jytf5mw9.js → cli-83wkg402.js} +2 -2
- package/dist/{cli-3pft2z6r.js → cli-a9scg8sv.js} +12 -10
- package/dist/{cli-4yc5d8fk.js → cli-avkd6mqv.js} +50 -0
- package/dist/{cli-ht5rs63n.js → cli-b2g6mzjc.js} +15 -6
- package/dist/{cli-3g61md6v.js → cli-bw0dfwkr.js} +1 -1
- package/dist/{cli-8wrympd7.js → cli-bzr0ftht.js} +26 -7
- package/dist/{cli-ks8a1cgq.js → cli-cdq08v3r.js} +2 -2
- package/dist/cli-cgj4hc12.js +18902 -0
- package/dist/cli-d6hk10xx.js +14075 -0
- package/dist/{cli-bdt7w021.js → cli-djvxhnc4.js} +31 -3324
- package/dist/{cli-s25avqg9.js → cli-e781c6f9.js} +1 -0
- package/dist/{cli-b4dyetqt.js → cli-eazstkad.js} +2 -2
- package/dist/{cli-s2qjdd6z.js → cli-eetrvv91.js} +1 -1
- package/dist/cli-h38x0qhg.js +6912 -0
- package/dist/{cli-9xvdm3bx.js → cli-h60qfasa.js} +742 -278
- package/dist/{pi-mono-adapter-jcqt71cg.js → cli-ja7mrygn.js} +67343 -101083
- package/dist/{cli-j8dggbcr.js → cli-k0g1sjzm.js} +23 -31
- package/dist/{cli-y8tayczk.js → cli-m04pt18h.js} +2 -2
- package/dist/{cli-rgvp6r2x.js → cli-mcnhgnn1.js} +193 -4
- package/dist/{cli-j4nv2wqy.js → cli-mzgyhxbe.js} +10 -4
- package/dist/{cli-wfve107r.js → cli-n0q9b7j4.js} +46 -1870
- package/dist/cli-n7h1kqpf.js +29 -0
- package/dist/{cli-ng4q6a9t.js → cli-nq0kgyxe.js} +7 -7
- package/dist/{cli-72tgtzr1.js → cli-qrqhc31j.js} +151 -125
- package/dist/{cli-vbk025fm.js → cli-r8tdds6s.js} +1 -1
- package/dist/{cli-ch38q5z4.js → cli-rj7de4b2.js} +6788 -2541
- package/dist/{cli-ftdjz1mk.js → cli-s5s1f2yn.js} +56 -40
- package/dist/{cli-kj76p1ez.js → cli-scwq51gn.js} +13 -7
- package/dist/{cli-7bwaerjt.js → cli-tdh4hjr2.js} +3 -2
- package/dist/{cli-c2mk1kgf.js → cli-v4en75c5.js} +8 -1
- package/dist/{cli-kf8qp2vf.js → cli-vw03hg5t.js} +3 -2
- package/dist/{cli-gfez0qmk.js → cli-ybpp1srm.js} +6 -6
- package/dist/cli-yn0a417a.js +4069 -0
- package/dist/{cli-gxf2ebyz.js → cli-ysc1kbet.js} +2 -2
- package/dist/{cli-zfzznn7c.js → cli-ytxs7mn1.js} +26 -2
- package/dist/cli-zcsyfw2z.js +3335 -0
- package/dist/{cli-4j8k1m4w.js → cli-zt1227k1.js} +1162 -192
- package/dist/cli-zy5w9gpt.js +230 -0
- package/dist/cli.js +26 -34
- package/dist/{codex-adapter-k6yq95sn.js → codex-adapter-8548daap.js} +12 -11
- package/dist/{codex-session-runner-3rp84pk8.js → codex-session-runner-2dad8p4x.js} +12 -11
- package/dist/{commands-pbr5jzy5.js → commands-355dbpa8.js} +6 -4
- package/dist/{db-z0xaa59a.js → db-4jjvwz1s.js} +6 -4
- package/dist/{dispatcher-pwpgsj0x.js → dispatcher-ca590nkz.js} +29 -25
- package/dist/dsh-adapter-rgvj6ykp.js +19 -0
- package/dist/{e2b-413b8t4v.js → e2b-93x1k0j5.js} +6 -7
- package/dist/{google-generative-ai-ndjmj5fa.js → google-generative-ai-xtw7tggr.js} +33 -73
- package/dist/{google-vertex-fr665tqs.js → google-vertex-zdqpms6n.js} +38 -68
- package/dist/{handlers-5mzk4mbg.js → handlers-2y6dqpvf.js} +32 -28
- package/dist/{hook-8bz33zee.js → hook-0s8knepr.js} +11 -9
- package/dist/{hook-kbh84zb1.js → hook-k0gec254.js} +12 -10
- package/dist/{http-pppxg5vr.js → http-jp2nb4zw.js} +300 -237
- package/dist/{index-k1hq1qt6.js → index-0wzg3sp3.js} +39 -24
- package/dist/{index-68bd9b5f.js → index-3mq6ce93.js} +29 -25
- package/dist/{index-z0zwjtkn.js → index-42s7eezq.js} +29 -25
- package/dist/{cli-pdz9qde4.js → index-9ch1n761.js} +10 -11
- package/dist/{index-y0te09pn.js → index-b56xkbc7.js} +8 -6
- package/dist/{index-66xz5e9j.js → index-h5gs261z.js} +521 -9
- package/dist/{index-2sp0384z.js → index-kkeftv5h.js} +738 -21
- package/dist/{index-mjpxsr6k.js → index-s37dbevy.js} +30 -26
- package/dist/index-w097eg0x.js +5 -0
- package/dist/jiti-loader-b4837mtm.js +34 -0
- package/dist/jiti-static-loader-q2g5ds0y.js +31267 -0
- package/dist/{keepalive-xvmwnh1d.js → keepalive-9pfw7t02.js} +8 -6
- package/dist/{lead-pf8nvxt8.js → lead-7vcmcdq4.js} +44 -39
- package/dist/{maintenance-jk4q0wgg.js → maintenance-x277jbpd.js} +9 -7
- package/dist/{mistral-conversations-qhr84ph3.js → mistral-conversations-zx0kn554.js} +24 -18
- package/dist/{node-x1g4v0pq.js → node-5qtycf6a.js} +16 -11
- package/dist/{oauth-refresh-sweep-6207x9sj.js → oauth-refresh-sweep-5fwa7th2.js} +7 -5
- package/dist/{onboard-b0csgm0q.js → onboard-17sv0f51.js} +103 -35
- package/dist/{openai-codex-responses-wy6a43wd.js → openai-codex-responses-4vjqzvjp.js} +33 -27
- package/dist/{openai-completions-32rdwmze.js → openai-completions-pxsmym7g.js} +52 -64
- package/dist/{openai-responses-6xwf7bzg.js → openai-responses-tmn0rqp0.js} +23 -24
- package/dist/{opencode-adapter-28axqa09.js → opencode-adapter-qbmv4tpy.js} +6 -6
- package/dist/{otel-impl-b6rfehth.js → otel-impl-srjy4be4.js} +4 -4
- package/dist/{pi-messages-b1mbr6gp.js → pi-messages-txpjj39q.js} +3 -3
- package/dist/pi-mono-adapter-946a0sdd.js +1316 -0
- package/dist/{pricing-refresh-4e201wtd.js → pricing-refresh-vetcm563.js} +8 -6
- package/dist/{rbac-roles-mkc5n5qa.js → rbac-roles-cfzgr6r1.js} +8 -6
- package/dist/{rbac-roles-zp6e4geh.js → rbac-roles-cmxaddmy.js} +7 -5
- package/dist/{render-v2-4fazz9tf.js → render-v2-f9hzff72.js} +9 -6
- package/dist/{seed-pricing-thxpn9vn.js → seed-pricing-jggk6rsy.js} +7 -5
- package/dist/{setup-wb0z8cat.js → setup-8mfceb9t.js} +4 -5
- package/dist/virtual-modules-ax661xp0.js +54 -0
- package/dist/{work-objects-h3498kwe.js → work-objects-vdsdcczj.js} +32 -28
- package/dist/{worker-2m2tzxp3.js → worker-cd0nhyv1.js} +44 -39
- package/openapi.json +36 -14
- package/package.json +6 -6
- package/src/be/automation-preflight.ts +6 -4
- package/src/be/extensions/db.ts +35 -4
- package/src/be/models-catalog.ts +2 -0
- package/src/be/modelsdev-cache.json +213 -0
- package/src/be/rbac-audit.ts +2 -0
- package/src/be/seed-pricing.ts +3 -1
- package/src/be/swarm-config-guard.ts +1 -0
- package/src/commands/onboard/compose-generator.ts +6 -1
- package/src/commands/onboard/env-generator.ts +6 -1
- package/src/commands/onboard/manifest.ts +1 -0
- package/src/commands/onboard/steps/integration-slack.tsx +56 -16
- package/src/commands/onboard/steps/review.tsx +5 -0
- package/src/commands/onboard/types.ts +6 -0
- package/src/commands/onboard.tsx +5 -1
- package/src/commands/provider-credentials.ts +14 -2
- package/src/extensions/lifecycle.ts +15 -21
- package/src/http/agents.ts +2 -2
- package/src/http/config.ts +1 -1
- package/src/http/core.ts +5 -3
- package/src/http/extensions.ts +108 -34
- package/src/http/status.ts +22 -10
- package/src/prompts/base-prompt.ts +15 -7
- package/src/providers/claude-managed-models.ts +8 -0
- package/src/providers/codex-models.ts +15 -1
- package/src/providers/dsh-adapter.ts +248 -0
- package/src/providers/index.ts +5 -1
- package/src/providers/modelsdev-reasoning.json +50 -0
- package/src/rbac/legacy-policy.ts +15 -1
- package/src/rbac/types.ts +2 -0
- package/src/server.ts +7 -1
- package/src/slack/app.ts +32 -10
- package/src/slack/assistant.ts +10 -1
- package/src/slack/config.ts +29 -0
- package/src/slack/handlers.ts +10 -1
- package/src/slack/thread-buffer.ts +14 -3
- package/src/telemetry.ts +2 -3
- package/src/tests/agents-harness-provider.test.ts +19 -0
- package/src/tests/agents-list-model-display.test.ts +60 -1
- package/src/tests/base-prompt.test.ts +25 -0
- package/src/tests/claude-managed-adapter.test.ts +6 -0
- package/src/tests/codex-gpt6-release.test.ts +97 -0
- package/src/tests/config-api-only-keys.test.ts +9 -0
- package/src/tests/context-window.test.ts +1 -0
- package/src/tests/dsh-adapter.test.ts +276 -0
- package/src/tests/e2e-nightly-report.test.ts +3 -3
- package/src/tests/e2e-redact.test.ts +2 -0
- package/src/tests/env-flag.test.ts +6 -0
- package/src/tests/extensions-db.test.ts +41 -0
- package/src/tests/extensions-http.test.ts +148 -4
- package/src/tests/extensions-lifecycle.test.ts +18 -0
- package/src/tests/extensions-mcp-tools.test.ts +9 -5
- package/src/tests/internal-ai/complete-structured.test.ts +32 -9
- package/src/tests/internal-ai/credentials.test.ts +4 -4
- package/src/tests/internal-ai/models.test.ts +20 -0
- package/src/tests/migration-046-budgets.test.ts +2 -0
- package/src/tests/model-control.test.ts +2 -2
- package/src/tests/onboard-compose.test.ts +14 -0
- package/src/tests/onboard-env.test.ts +17 -0
- package/src/tests/onboard-manifest.test.ts +12 -0
- package/src/tests/opus-5-5-registry.test.ts +48 -0
- package/src/tests/pricing-refresh.test.ts +1 -1
- package/src/tests/pricing-routes.test.ts +15 -3
- package/src/tests/provider-registration.test.ts +5 -2
- package/src/tests/rbac-admission-e2e.test.ts +54 -0
- package/src/tests/rbac-e2e-helpers.ts +2 -0
- package/src/tests/rbac-engine.test.ts +32 -0
- package/src/tests/rbac-wire-e2e.test.ts +33 -0
- package/src/tests/reasoning-effort.test.ts +8 -0
- package/src/tests/reload-config.test.ts +33 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
- package/src/tests/slack-assistant.test.ts +134 -0
- package/src/tests/slack-config.test.ts +136 -0
- package/src/tests/slack-mode-lifecycle.test.ts +69 -0
- package/src/tests/status.test.ts +22 -2
- package/src/tests/task-tool-preload-mcp.test.ts +3 -1
- package/src/tests/telemetry-init.test.ts +18 -0
- package/src/tests/workflow-llm.test.ts +3 -3
- package/src/tools/extension-common.ts +4 -0
- package/src/tools/extension-install.ts +1 -1
- package/src/tools/extension-list.ts +4 -3
- package/src/types.ts +17 -8
- package/src/utils/context-window.ts +1 -0
- package/src/utils/credentials.ts +8 -0
- package/src/utils/internal-ai/complete-structured.ts +8 -0
- package/src/utils/internal-ai/models.ts +5 -5
- package/templates/schedules/daily-status-report/content.md +25 -12
- package/templates/schedules/daily-workflow-health-audit/content.md +1 -1
- package/templates/skills/swarm-extensions/content.md +9 -5
- package/dist/cli-4wppfkcm.js +0 -16384
- package/dist/cli-55qrx3q8.js +0 -6041
- package/dist/cli-cg4vnyh4.js +0 -305
- package/dist/cli-jyetr64j.js +0 -52
- package/dist/cli-pp9ax9pa.js +0 -520
- package/dist/cli-qa66qaf0.js +0 -6076
- package/dist/cli-qghpvca2.js +0 -590
- package/dist/cli-rembwgt8.js +0 -861
- package/dist/cli-tcvj7j2r.js +0 -1971
- package/dist/cli-vfcth11k.js +0 -36
- package/dist/cli-w1d1bgkk.js +0 -1422
- package/dist/cli-y6x0gqtg.js +0 -5977
- package/dist/es5-tj3tn4jj.js +0 -844
- package/dist/index-1kq5hw2p.js +0 -467
- package/dist/index-1p8wdstt.js +0 -7
- package/dist/index-8fdjzb2f.js +0 -100
- package/dist/index-bxmwzbgw.js +0 -365
- package/dist/index-nzerxd5z.js +0 -7
- package/dist/index-pyymnzat.js +0 -1168
- package/dist/index-qv6atbab.js +0 -619
- package/dist/index-rja32qa7.js +0 -801
- package/dist/index-tzg5srfp.js +0 -211
- package/dist/index-vhncw983.js +0 -90
- package/dist/index-xk036zsk.js +0 -859
- package/dist/index-zyazbzcb.js +0 -6
- package/dist/{claude-managed-setup-48dwg9bv.js → claude-managed-setup-f5pmsyrp.js} +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
contentSha256,
|
|
3
3
|
init_profile_sync
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-0d9nbqxf.js";
|
|
5
5
|
import {
|
|
6
6
|
OpenAI,
|
|
7
7
|
init_openai
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getDbClient,
|
|
12
12
|
init_db,
|
|
13
13
|
isSqliteVecAvailable
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-djvxhnc4.js";
|
|
15
15
|
import {
|
|
16
16
|
__esm,
|
|
17
17
|
__export,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rewriteSlackMentions
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-eazstkad.js";
|
|
4
4
|
import {
|
|
5
5
|
bufferedFileFailures,
|
|
6
6
|
buildEffectiveText,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
extractSlackMessageText,
|
|
10
10
|
fetchSlackFiles,
|
|
11
11
|
notifySlackFileFailures
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-qrqhc31j.js";
|
|
13
13
|
import {
|
|
14
14
|
buildBufferFlushBlocks,
|
|
15
15
|
ensureSlackThreadTree,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getSlackApp,
|
|
19
19
|
isSlackRenderV2Enabled,
|
|
20
20
|
registerTreeMessage
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-n0q9b7j4.js";
|
|
22
22
|
import {
|
|
23
23
|
createLogEntry,
|
|
24
24
|
getAgentById,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
init_steering,
|
|
32
32
|
requestSteering,
|
|
33
33
|
slackContextKey
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-djvxhnc4.js";
|
|
35
35
|
import {
|
|
36
36
|
init_steering_enabled,
|
|
37
37
|
isSteeringEnabled
|
|
@@ -154,14 +154,15 @@ var slackBuffer = createAdditiveBuffer({
|
|
|
154
154
|
await slackFlush(items, key, reason === "manual");
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
-
function bufferThreadMessage(channelId, threadTs, text, userId, ts, files) {
|
|
157
|
+
function bufferThreadMessage(channelId, threadTs, text, userId, ts, files, botUserId) {
|
|
158
158
|
slackBuffer.enqueue(makeKey(channelId, threadTs), {
|
|
159
159
|
text,
|
|
160
160
|
userId,
|
|
161
161
|
ts,
|
|
162
162
|
channelId,
|
|
163
163
|
threadTs,
|
|
164
|
-
files
|
|
164
|
+
files,
|
|
165
|
+
botUserId
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
168
|
function getBufferMessageCount(key) {
|
|
@@ -170,7 +171,7 @@ function getBufferMessageCount(key) {
|
|
|
170
171
|
async function instantFlush(key) {
|
|
171
172
|
await slackBuffer.instantFlush(key);
|
|
172
173
|
}
|
|
173
|
-
async function getThreadContextForBuffer(channelId, threadTs) {
|
|
174
|
+
async function getThreadContextForBuffer(channelId, threadTs, botUserId) {
|
|
174
175
|
const app = getSlackApp();
|
|
175
176
|
if (!app)
|
|
176
177
|
return "";
|
|
@@ -194,7 +195,7 @@ async function getThreadContextForBuffer(channelId, threadTs) {
|
|
|
194
195
|
return `<@${m.user}>: ${text}`;
|
|
195
196
|
}).join(`
|
|
196
197
|
`);
|
|
197
|
-
return await rewriteSlackMentions(formatted);
|
|
198
|
+
return await rewriteSlackMentions(formatted, botUserId);
|
|
198
199
|
} catch (error) {
|
|
199
200
|
console.error("[Slack] Failed to fetch thread context for buffer:", error);
|
|
200
201
|
return "";
|
|
@@ -212,6 +213,7 @@ async function slackFlush(items, key, immediate) {
|
|
|
212
213
|
}
|
|
213
214
|
const { channelId, threadTs } = split;
|
|
214
215
|
const originalRequesterId = items[0].userId;
|
|
216
|
+
const botUserId = items.find((item) => item.botUserId)?.botUserId;
|
|
215
217
|
console.log(`[Slack] Flushing buffer: ${key} (${items.length} messages, immediate=${immediate})`);
|
|
216
218
|
const app = getSlackApp();
|
|
217
219
|
const files = items.flatMap((item) => item.files ?? []);
|
|
@@ -224,7 +226,7 @@ async function slackFlush(items, key, immediate) {
|
|
|
224
226
|
const resolvedFiles = new Map(inbound.files.map((file) => [file.id, file]));
|
|
225
227
|
const combinedText = await rewriteSlackMentions(items.map((item) => buildEffectiveText(item.text, item.files?.map((file) => resolvedFiles.get(file.id) ?? file), inbound.failed)).join(`
|
|
226
228
|
---
|
|
227
|
-
`));
|
|
229
|
+
`), botUserId);
|
|
228
230
|
const description = `[Thread follow-up — ${items.length} message(s) buffered]
|
|
229
231
|
|
|
230
232
|
${combinedText}`;
|
|
@@ -260,7 +262,7 @@ ${combinedText}`;
|
|
|
260
262
|
return;
|
|
261
263
|
}
|
|
262
264
|
const lead = await getLeadAgent();
|
|
263
|
-
const threadContext = await getThreadContextForBuffer(channelId, threadTs);
|
|
265
|
+
const threadContext = await getThreadContextForBuffer(channelId, threadTs, botUserId);
|
|
264
266
|
const fullDescription = threadContext ? `<thread_context>
|
|
265
267
|
${threadContext}
|
|
266
268
|
</thread_context>
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
// src/providers/modelsdev-reasoning.json
|
|
2
2
|
var modelsdev_reasoning_default = {
|
|
3
3
|
anthropic: {
|
|
4
|
+
"claude-opus-5-5": {
|
|
5
|
+
id: "claude-opus-5-5",
|
|
6
|
+
reasoning: true,
|
|
7
|
+
reasoningOptions: [
|
|
8
|
+
{
|
|
9
|
+
type: "effort",
|
|
10
|
+
values: [
|
|
11
|
+
"low",
|
|
12
|
+
"medium",
|
|
13
|
+
"high",
|
|
14
|
+
"xhigh",
|
|
15
|
+
"max"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
4
20
|
"claude-sonnet-4-6": {
|
|
5
21
|
id: "claude-sonnet-4-6",
|
|
6
22
|
reasoning: true,
|
|
@@ -920,6 +936,40 @@ var modelsdev_reasoning_default = {
|
|
|
920
936
|
]
|
|
921
937
|
}
|
|
922
938
|
]
|
|
939
|
+
},
|
|
940
|
+
"gpt-6-sol": {
|
|
941
|
+
id: "gpt-6-sol",
|
|
942
|
+
reasoning: true,
|
|
943
|
+
reasoningOptions: [
|
|
944
|
+
{
|
|
945
|
+
type: "effort",
|
|
946
|
+
values: [
|
|
947
|
+
"none",
|
|
948
|
+
"low",
|
|
949
|
+
"medium",
|
|
950
|
+
"high",
|
|
951
|
+
"xhigh",
|
|
952
|
+
"max"
|
|
953
|
+
]
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
"gpt-6-luna": {
|
|
958
|
+
id: "gpt-6-luna",
|
|
959
|
+
reasoning: true,
|
|
960
|
+
reasoningOptions: [
|
|
961
|
+
{
|
|
962
|
+
type: "effort",
|
|
963
|
+
values: [
|
|
964
|
+
"none",
|
|
965
|
+
"low",
|
|
966
|
+
"medium",
|
|
967
|
+
"high",
|
|
968
|
+
"xhigh",
|
|
969
|
+
"max"
|
|
970
|
+
]
|
|
971
|
+
}
|
|
972
|
+
]
|
|
923
973
|
}
|
|
924
974
|
},
|
|
925
975
|
openrouter: {
|
|
@@ -7,6 +7,10 @@ import {
|
|
|
7
7
|
registerTemplate,
|
|
8
8
|
resolveTemplateAsync
|
|
9
9
|
} from "./cli-z61ykvam.js";
|
|
10
|
+
import {
|
|
11
|
+
getSlackConfiguration,
|
|
12
|
+
init_config
|
|
13
|
+
} from "./cli-n7h1kqpf.js";
|
|
10
14
|
import {
|
|
11
15
|
__esm
|
|
12
16
|
} from "./cli-bc05qbss.js";
|
|
@@ -235,11 +239,15 @@ what you learned about your strengths. Edit this file directly.
|
|
|
235
239
|
var init_defaults = () => {};
|
|
236
240
|
|
|
237
241
|
// src/prompts/base-prompt.ts
|
|
238
|
-
function areSlackPromptToolsEnabled(env = process.env) {
|
|
239
|
-
const
|
|
240
|
-
if (
|
|
242
|
+
function areSlackPromptToolsEnabled(env = process.env, serverCapabilities) {
|
|
243
|
+
const config = getSlackConfiguration(env);
|
|
244
|
+
if (config.disabled || !config.mode)
|
|
245
|
+
return false;
|
|
246
|
+
if (serverCapabilities && !serverCapabilities.includes("slack"))
|
|
241
247
|
return false;
|
|
242
|
-
|
|
248
|
+
if (config.mode === "http" && serverCapabilities)
|
|
249
|
+
return true;
|
|
250
|
+
return config.missingCredentials.length === 0;
|
|
243
251
|
}
|
|
244
252
|
function renderToolsAndSkillsVars(input) {
|
|
245
253
|
let section = "";
|
|
@@ -459,8 +467,8 @@ ${scriptsOnlyResult.text}`;
|
|
|
459
467
|
const outputsResult = await resolveTemplateAsync(agentFsConfigured ? "system.agent.outputs" : "system.agent.outputs.no_agent_fs", {});
|
|
460
468
|
prompt += outputsResult.text;
|
|
461
469
|
}
|
|
462
|
-
const slackPromptToolsEnabled = areSlackPromptToolsEnabled();
|
|
463
|
-
if (hasMcp && slackPromptToolsEnabled && !scriptsOnlyMode
|
|
470
|
+
const slackPromptToolsEnabled = areSlackPromptToolsEnabled(process.env, args.serverCapabilities);
|
|
471
|
+
if (hasMcp && slackPromptToolsEnabled && !scriptsOnlyMode) {
|
|
464
472
|
const slackResult = await resolveTemplateAsync("system.agent.slack", {});
|
|
465
473
|
prompt += slackResult.text;
|
|
466
474
|
}
|
|
@@ -497,6 +505,7 @@ ${scriptsOnlyResult.text}`;
|
|
|
497
505
|
`);
|
|
498
506
|
};
|
|
499
507
|
var init_base_prompt = __esm(() => {
|
|
508
|
+
init_config();
|
|
500
509
|
init_steering_enabled();
|
|
501
510
|
init_defaults();
|
|
502
511
|
init_resolver();
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
// node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js
|
|
2
|
+
class FifoQueue {
|
|
3
|
+
incoming = [];
|
|
4
|
+
outgoing = [];
|
|
5
|
+
get length() {
|
|
6
|
+
return this.incoming.length + this.outgoing.length;
|
|
7
|
+
}
|
|
8
|
+
enqueue(value) {
|
|
9
|
+
this.incoming.push(value);
|
|
10
|
+
}
|
|
11
|
+
dequeue() {
|
|
12
|
+
if (this.outgoing.length === 0) {
|
|
13
|
+
while (this.incoming.length > 0) {
|
|
14
|
+
this.outgoing.push(this.incoming.pop());
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return this.outgoing.pop();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
2
21
|
class EventStream {
|
|
3
|
-
queue =
|
|
4
|
-
waiting =
|
|
22
|
+
queue = new FifoQueue;
|
|
23
|
+
waiting = new FifoQueue;
|
|
5
24
|
done = false;
|
|
6
25
|
finalResultPromise;
|
|
7
26
|
resolveFinalResult;
|
|
@@ -21,11 +40,11 @@ class EventStream {
|
|
|
21
40
|
this.done = true;
|
|
22
41
|
this.resolveFinalResult(this.extractResult(event));
|
|
23
42
|
}
|
|
24
|
-
const waiter = this.waiting.
|
|
43
|
+
const waiter = this.waiting.dequeue();
|
|
25
44
|
if (waiter) {
|
|
26
45
|
waiter({ value: event, done: false });
|
|
27
46
|
} else {
|
|
28
|
-
this.queue.
|
|
47
|
+
this.queue.enqueue(event);
|
|
29
48
|
}
|
|
30
49
|
}
|
|
31
50
|
end(result) {
|
|
@@ -34,18 +53,18 @@ class EventStream {
|
|
|
34
53
|
this.resolveFinalResult(result);
|
|
35
54
|
}
|
|
36
55
|
while (this.waiting.length > 0) {
|
|
37
|
-
const waiter = this.waiting.
|
|
56
|
+
const waiter = this.waiting.dequeue();
|
|
38
57
|
waiter({ value: undefined, done: true });
|
|
39
58
|
}
|
|
40
59
|
}
|
|
41
60
|
async* [Symbol.asyncIterator]() {
|
|
42
61
|
while (true) {
|
|
43
62
|
if (this.queue.length > 0) {
|
|
44
|
-
yield this.queue.
|
|
63
|
+
yield this.queue.dequeue();
|
|
45
64
|
} else if (this.done) {
|
|
46
65
|
return;
|
|
47
66
|
} else {
|
|
48
|
-
const result = await new Promise((resolve) => this.waiting.
|
|
67
|
+
const result = await new Promise((resolve) => this.waiting.enqueue(resolve));
|
|
49
68
|
if (result.done)
|
|
50
69
|
return;
|
|
51
70
|
yield result.value;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getScriptMcpTypes,
|
|
5
5
|
listAppRecords,
|
|
6
6
|
require_typescript
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-6ks9xf1n.js";
|
|
8
8
|
import {
|
|
9
9
|
deleteSwarmConfigByKey,
|
|
10
10
|
getAgentById,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
getSwarmConfigs,
|
|
14
14
|
init_db,
|
|
15
15
|
upsertSwarmConfig
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-djvxhnc4.js";
|
|
17
17
|
import {
|
|
18
18
|
init_secret_scrubber,
|
|
19
19
|
scrubSecrets
|