@desplega.ai/agent-swarm 1.135.0 → 1.135.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-3fpj602h.js → actions-cdtyz12q.js} +6 -6
- package/dist/{app-12mwdsvg.js → app-bsbct708.js} +3 -3
- package/dist/{assistant-p87pt2b5.js → assistant-139yzd1t.js} +8 -8
- package/dist/{boot-reembed-jf6gx8yr.js → boot-reembed-gdzp4g2k.js} +4 -4
- package/dist/{boot-reembed-vjkptm2x.js → boot-reembed-q7f385st.js} +3 -3
- package/dist/{boot-scrub-logs-ah6bpjte.js → boot-scrub-logs-ammdkvre.js} +2 -2
- package/dist/{claude-adapter-9ry59y9k.js → claude-adapter-h67y60dz.js} +3 -3
- package/dist/{cli-yd6vqt1x.js → cli-0rgbgtft.js} +6 -4
- package/dist/{cli-wzmeara2.js → cli-17e3ydca.js} +4 -4
- package/dist/{cli-9kekm9yz.js → cli-3ad3q6j0.js} +2 -2
- package/dist/{cli-v21nahej.js → cli-41wfr4tp.js} +1 -1
- package/dist/{cli-f2tgry1v.js → cli-47d0y52n.js} +2 -2
- package/dist/{cli-269pdgm4.js → cli-5vmvkwey.js} +1 -1
- package/dist/{cli-1gvam274.js → cli-6ewfzrgz.js} +22 -6
- package/dist/{cli-md759nb0.js → cli-6t91v11y.js} +3 -3
- package/dist/{cli-2ecesrtw.js → cli-7vk1ztap.js} +4 -4
- package/dist/{cli-bynsg176.js → cli-96sytm77.js} +10 -3
- package/dist/{cli-h9gpdrzg.js → cli-9nrnc45k.js} +2 -2
- package/dist/{cli-z6gdnbjy.js → cli-dntm4d6r.js} +5 -5
- package/dist/{cli-2gwpvmew.js → cli-fhsz3twr.js} +1 -171
- package/dist/{cli-crkvptsz.js → cli-gkfzvf7n.js} +2 -2
- package/dist/{cli-3m4mkyqy.js → cli-h8htvhk5.js} +1 -1
- package/dist/{cli-w4ezqgkj.js → cli-j6fpcrdk.js} +3 -3
- package/dist/{cli-p0sqfhw1.js → cli-j8bhw4a7.js} +8 -8
- package/dist/{cli-a2brkr6h.js → cli-mgnrknyg.js} +1 -1
- package/dist/{cli-vd2twm2p.js → cli-mqwe8xz0.js} +1 -1
- package/dist/cli-n1q8q14d.js +177 -0
- package/dist/{cli-j2p3bfs3.js → cli-pbatxkne.js} +5 -5
- package/dist/{cli-8ca5b9j9.js → cli-pnqdak88.js} +1 -1
- package/dist/{cli-prfghf4h.js → cli-q46hkq2p.js} +35 -27
- package/dist/{cli-dphm5tyw.js → cli-t46mkxd2.js} +1 -1
- package/dist/{cli-d08xq4nz.js → cli-vew6xw8p.js} +80 -32
- package/dist/{cli-y98ry8cz.js → cli-x0mnesvr.js} +1 -1
- package/dist/{cli-w3xch1b8.js → cli-ysehve35.js} +1 -1
- package/dist/{cli-1gzz6pmf.js → cli-z3h9zvty.js} +1 -1
- package/dist/{cli-10694wk0.js → cli-zg86g3q8.js} +1 -1
- package/dist/cli.js +13 -13
- package/dist/{codex-adapter-6r08aepx.js → codex-adapter-8vhjvnp9.js} +1 -1
- package/dist/{codex-session-runner-9dk036pn.js → codex-session-runner-xeq8w3ea.js} +1 -1
- package/dist/{commands-kg7cm1jz.js → commands-zhm1v98e.js} +2 -2
- package/dist/{db-g666qxpv.js → db-q436srrz.js} +2 -2
- package/dist/{handlers-58k0e9mc.js → handlers-cpratgdt.js} +13 -10
- package/dist/{hook-51ez1v2s.js → hook-j1sd08ay.js} +2 -2
- package/dist/{hook-gezxk50h.js → hook-wfe2rdyd.js} +1 -1
- package/dist/{http-d4qhhnyy.js → http-g13pqz5z.js} +40 -37
- package/dist/{index-c06j5e9e.js → index-dde8asrx.js} +9 -9
- package/dist/{index-ys39hr8t.js → index-g99vy4xs.js} +10 -10
- package/dist/{index-h96j88n6.js → index-jbgemxkn.js} +8 -8
- package/dist/{index-kvgmhb7w.js → index-zqjz0kf8.js} +8 -8
- package/dist/{keepalive-b6n7th6x.js → keepalive-ep0a9f7r.js} +4 -4
- package/dist/{lead-3wgc402v.js → lead-gsw42hv0.js} +23 -22
- package/dist/{maintenance-wr20z889.js → maintenance-et8rr4t5.js} +4 -4
- package/dist/{oauth-refresh-sweep-brxmpz1j.js → oauth-refresh-sweep-tk3qn7zr.js} +3 -3
- package/dist/{onboard-88hgdp28.js → onboard-354g4580.js} +2 -2
- package/dist/{otel-impl-an7gh3eh.js → otel-impl-7y3szdz5.js} +1 -1
- package/dist/{pricing-refresh-ettrct0b.js → pricing-refresh-zra6kqmc.js} +4 -4
- package/dist/{rbac-roles-wdwpg5fc.js → rbac-roles-2g89azp9.js} +3 -3
- package/dist/{rbac-roles-grtmky49.js → rbac-roles-vsfaw815.js} +2 -2
- package/dist/{registry-2g6d2p3n.js → registry-6nvn6bj0.js} +2 -1
- package/dist/{render-v2-k7h2sbmp.js → render-v2-41schhkc.js} +3 -3
- package/dist/{seed-pricing-gtqxtqzc.js → seed-pricing-hh2j4y52.js} +3 -3
- package/dist/{setup-3tcfqyz9.js → setup-vk6apbbf.js} +2 -2
- package/dist/{worker-9tejebcv.js → worker-zj8qahay.js} +23 -22
- package/openapi.json +1 -1
- package/package.json +3 -3
- package/src/be/db.ts +34 -26
- package/src/http/scripts.ts +2 -1
- package/src/scripts-runtime/eval-harness.ts +1 -3
- package/src/scripts-runtime/import-allowlist.ts +7 -1
- package/src/slack/app.ts +9 -0
- package/src/slack/handlers.ts +22 -4
- package/src/slack/socket-mode-guard.test.ts +25 -0
- package/src/slack/socket-mode-guard.ts +10 -0
- package/src/tests/script-connections.test.ts +17 -7
- package/src/tests/scripts-import-allowlist.test.ts +23 -1
- package/src/tests/scripts-mcp-e2e.test.ts +32 -0
- package/src/tests/scripts-runtime-secret-egress.test.ts +33 -0
- package/src/tests/session-costs.test.ts +414 -0
- package/src/tests/slack-thread-buffer.test.ts +248 -2
- package/src/tests/store-progress-attachments-handler.test.ts +156 -23
- package/src/tests/workflow-ctx.test.ts +22 -7
- package/src/tools/store-progress.ts +83 -22
package/README.md
CHANGED
|
@@ -131,7 +131,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
|
|
|
131
131
|
- **Mid-run task steering** — add context at the next turn boundary, request an immediate interrupt where the harness supports it, or degrade safely to a follow-up task. [Task steering →](https://docs.agent-swarm.dev/docs/guides/task-steering)
|
|
132
132
|
- **Operator configuration UI** — tune non-secret feature flags, limits, integration toggles, and runtime defaults from Settings → Configuration, with source and restart-required indicators. [Configuration →](https://docs.agent-swarm.dev/docs/ui/configuration)
|
|
133
133
|
- **Asset namespaces** — group tasks, workflows, schedules, pages, apps, scripts, and mapped files under canonical shared or personal keys, with inheritance, subtree filtering, audited moves, and cross-entity discovery. [Asset namespaces →](https://docs.agent-swarm.dev/docs/guides/asset-namespaces)
|
|
134
|
-
- **Persistent shared files via agent-fs** — co-deploy agent-fs for shared task attachments, previews, and search; late provisioning or config reloads activate the provider without an API restart, and tenant-authenticated control planes can invite shared-org members without receiving the bootstrap key. [Co-deployment guide →](https://docs.agent-swarm.dev/docs/guides/agent-fs-co-deployment)
|
|
134
|
+
- **Persistent shared files via agent-fs** — co-deploy agent-fs for shared task attachments, previews, and search; `store-progress` verifies attachment pointers before changing task state, late provisioning or config reloads activate the provider without an API restart, and tenant-authenticated control planes can invite shared-org members without receiving the bootstrap key. [Co-deployment guide →](https://docs.agent-swarm.dev/docs/guides/agent-fs-co-deployment)
|
|
135
135
|
- **Durable script workflows** — launch background script runs, inspect their journals, and track them from the dashboard when a one-shot `script-run` is too small. [Guide →](https://docs.agent-swarm.dev/docs/guides/script-workflow-runs)
|
|
136
136
|
- **Scripts-only MCP mode (code-mode)** — reduce the external MCP surface to eight script tools while retaining the full swarm SDK through `script-run`, cutting tool-schema context for capable coordinator models. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-only-mode)
|
|
137
137
|
- **Scripts as external APIs** — expose a saved script as a public `POST /api/x/script/<id>` endpoint with optional bearer auth, typed input validation, and per-endpoint usage tracking. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-external-apis)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveSlackUserId
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-gkfzvf7n.js";
|
|
4
|
+
import"./cli-41wfr4tp.js";
|
|
5
5
|
import {
|
|
6
6
|
createTaskWithSiblingAwareness
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-z3h9zvty.js";
|
|
8
8
|
import {
|
|
9
9
|
buildCancelledBlocks,
|
|
10
10
|
ensureSlackThreadTree,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getAgentEmoji,
|
|
13
13
|
getTaskLink,
|
|
14
14
|
isSlackRenderV2Enabled
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-6ewfzrgz.js";
|
|
16
16
|
import"./cli-qf9kpsve.js";
|
|
17
17
|
import"./cli-g2p9bd1z.js";
|
|
18
18
|
import"./cli-5tnr64pm.js";
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
init_context_key,
|
|
25
25
|
init_db,
|
|
26
26
|
slackContextKey
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-q46hkq2p.js";
|
|
28
28
|
import"./cli-d2epf5ae.js";
|
|
29
29
|
import"./cli-87zrjxdb.js";
|
|
30
30
|
import"./cli-a1rrkrb4.js";
|
|
31
31
|
import"./cli-qt5bt3vk.js";
|
|
32
32
|
import"./cli-nanaxrz6.js";
|
|
33
33
|
import"./cli-s35981d0.js";
|
|
34
|
-
import"./cli-
|
|
34
|
+
import"./cli-j6fpcrdk.js";
|
|
35
35
|
import"./cli-mkq1rk7b.js";
|
|
36
36
|
import"./cli-pqv5gvyf.js";
|
|
37
37
|
import"./cli-qntkxysp.js";
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
initSlackApp,
|
|
4
4
|
startSlackApp,
|
|
5
5
|
stopSlackApp
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-6ewfzrgz.js";
|
|
7
7
|
import"./cli-qf9kpsve.js";
|
|
8
8
|
import"./cli-g2p9bd1z.js";
|
|
9
9
|
import"./cli-5tnr64pm.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-q46hkq2p.js";
|
|
11
11
|
import"./cli-d2epf5ae.js";
|
|
12
12
|
import"./cli-87zrjxdb.js";
|
|
13
13
|
import"./cli-a1rrkrb4.js";
|
|
14
14
|
import"./cli-qt5bt3vk.js";
|
|
15
15
|
import"./cli-nanaxrz6.js";
|
|
16
16
|
import"./cli-s35981d0.js";
|
|
17
|
-
import"./cli-
|
|
17
|
+
import"./cli-j6fpcrdk.js";
|
|
18
18
|
import"./cli-mkq1rk7b.js";
|
|
19
19
|
import"./cli-pqv5gvyf.js";
|
|
20
20
|
import"./cli-qntkxysp.js";
|
|
@@ -2,24 +2,24 @@ import {
|
|
|
2
2
|
bufferThreadMessage,
|
|
3
3
|
getBufferMessageCount,
|
|
4
4
|
wasEventSeen
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-dntm4d6r.js";
|
|
6
6
|
import {
|
|
7
7
|
hasOtherUserMention
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-x0mnesvr.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveSlackUserId,
|
|
11
11
|
rewriteSlackMentions
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
} from "./cli-gkfzvf7n.js";
|
|
13
|
+
import"./cli-41wfr4tp.js";
|
|
14
14
|
import {
|
|
15
15
|
createTaskWithSiblingAwareness
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-z3h9zvty.js";
|
|
17
17
|
import {
|
|
18
18
|
ackSlackMessage,
|
|
19
19
|
ensureSlackThreadTree,
|
|
20
20
|
isSlackRenderV2Enabled,
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-6ewfzrgz.js";
|
|
23
23
|
import"./cli-qf9kpsve.js";
|
|
24
24
|
import"./cli-g2p9bd1z.js";
|
|
25
25
|
import"./cli-5tnr64pm.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
init_context_key,
|
|
31
31
|
init_db,
|
|
32
32
|
slackContextKey
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-q46hkq2p.js";
|
|
34
34
|
import"./cli-d2epf5ae.js";
|
|
35
35
|
import {
|
|
36
36
|
init_resolver,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
isEnvFlagEnabled
|
|
44
44
|
} from "./cli-nanaxrz6.js";
|
|
45
45
|
import"./cli-s35981d0.js";
|
|
46
|
-
import"./cli-
|
|
46
|
+
import"./cli-j6fpcrdk.js";
|
|
47
47
|
import"./cli-mkq1rk7b.js";
|
|
48
48
|
import"./cli-pqv5gvyf.js";
|
|
49
49
|
import"./cli-qntkxysp.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedScript,
|
|
3
3
|
embeddingProvider
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-9nrnc45k.js";
|
|
5
|
+
import"./cli-zg86g3q8.js";
|
|
6
6
|
import"./cli-dr5tcz68.js";
|
|
7
7
|
import"./cli-vsap7a8d.js";
|
|
8
8
|
import {
|
|
9
9
|
getDbClient,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-q46hkq2p.js";
|
|
12
12
|
import"./cli-d2epf5ae.js";
|
|
13
13
|
import"./cli-87zrjxdb.js";
|
|
14
14
|
import"./cli-a1rrkrb4.js";
|
|
15
15
|
import"./cli-qt5bt3vk.js";
|
|
16
16
|
import"./cli-nanaxrz6.js";
|
|
17
17
|
import"./cli-s35981d0.js";
|
|
18
|
-
import"./cli-
|
|
18
|
+
import"./cli-j6fpcrdk.js";
|
|
19
19
|
import"./cli-mkq1rk7b.js";
|
|
20
20
|
import"./cli-pqv5gvyf.js";
|
|
21
21
|
import"./cli-pq2ee5ja.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
getEmbeddingProvider,
|
|
4
4
|
getMemoryStore,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-zg86g3q8.js";
|
|
7
7
|
import"./cli-dr5tcz68.js";
|
|
8
8
|
import"./cli-vsap7a8d.js";
|
|
9
9
|
import {
|
|
10
10
|
getDbClient,
|
|
11
11
|
init_db
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-q46hkq2p.js";
|
|
13
13
|
import"./cli-d2epf5ae.js";
|
|
14
14
|
import"./cli-87zrjxdb.js";
|
|
15
15
|
import"./cli-a1rrkrb4.js";
|
|
16
16
|
import"./cli-qt5bt3vk.js";
|
|
17
17
|
import"./cli-nanaxrz6.js";
|
|
18
18
|
import"./cli-s35981d0.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-j6fpcrdk.js";
|
|
20
20
|
import"./cli-mkq1rk7b.js";
|
|
21
21
|
import"./cli-pqv5gvyf.js";
|
|
22
22
|
import"./cli-pq2ee5ja.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDbClient,
|
|
3
3
|
init_db
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-q46hkq2p.js";
|
|
5
5
|
import"./cli-d2epf5ae.js";
|
|
6
6
|
import"./cli-87zrjxdb.js";
|
|
7
7
|
import"./cli-a1rrkrb4.js";
|
|
8
8
|
import"./cli-qt5bt3vk.js";
|
|
9
9
|
import"./cli-nanaxrz6.js";
|
|
10
10
|
import"./cli-s35981d0.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-j6fpcrdk.js";
|
|
12
12
|
import {
|
|
13
13
|
init_secret_scrubber,
|
|
14
14
|
scrubSecrets
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
resolveClaudeBinary,
|
|
13
13
|
resolveClaudeBinaryArgv,
|
|
14
14
|
resolveClaudeBridgeEnabled
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
} from "./cli-pnqdak88.js";
|
|
16
|
+
import"./cli-mgnrknyg.js";
|
|
17
17
|
import"./cli-a3pkfpqs.js";
|
|
18
18
|
import"./cli-tng3131n.js";
|
|
19
19
|
import"./cli-zm7njwzd.js";
|
|
@@ -35,7 +35,7 @@ import"./cli-a1rrkrb4.js";
|
|
|
35
35
|
import"./cli-qt5bt3vk.js";
|
|
36
36
|
import"./cli-nanaxrz6.js";
|
|
37
37
|
import"./cli-s35981d0.js";
|
|
38
|
-
import"./cli-
|
|
38
|
+
import"./cli-j6fpcrdk.js";
|
|
39
39
|
import"./cli-mkq1rk7b.js";
|
|
40
40
|
import"./cli-pqv5gvyf.js";
|
|
41
41
|
import"./cli-darcwax3.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./cli-epan13p1.js";
|
|
7
7
|
import {
|
|
8
8
|
embedScript
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-9nrnc45k.js";
|
|
10
10
|
import {
|
|
11
11
|
calculatePKCECodeChallenge,
|
|
12
12
|
ensureAuthorizationTokenOrThrow,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
oauthAppRowToProviderConfig,
|
|
19
19
|
updateAuthorizationTokens,
|
|
20
20
|
upsertAuthorization
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-h8htvhk5.js";
|
|
22
22
|
import {
|
|
23
23
|
CredentialBroker,
|
|
24
24
|
DEFAULT_CREDENTIAL_BINDINGS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
normalizeDateRequired,
|
|
40
40
|
placeholderForConfigKey,
|
|
41
41
|
upsertSwarmConfig
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-q46hkq2p.js";
|
|
43
43
|
import {
|
|
44
44
|
init_env_flag,
|
|
45
45
|
isEnvFlagEnabled
|
|
@@ -171825,6 +171825,7 @@ var DEFAULT_SCRIPT_RESOURCES = {
|
|
|
171825
171825
|
var import_typescript = __toESM(require_typescript(), 1);
|
|
171826
171826
|
var ALLOWED_BARE_IMPORTS = new Set(["swarm-sdk", "stdlib", "zod"]);
|
|
171827
171827
|
var FORBIDDEN_HINTS = new Set(["node:", "bun:", "fs", "child_process", "crypto", "bun:sqlite"]);
|
|
171828
|
+
var ALLOWLIST_REMEDY = 'Allowed imports are "swarm-sdk", "stdlib", "zod", and relative paths ("./" or "../").';
|
|
171828
171829
|
function isRelative(specifier) {
|
|
171829
171830
|
return specifier.startsWith("./") || specifier.startsWith("../");
|
|
171830
171831
|
}
|
|
@@ -171883,7 +171884,8 @@ function validateScriptImports(source) {
|
|
|
171883
171884
|
return { ok: true };
|
|
171884
171885
|
const hint = rejected.find((specifier) => FORBIDDEN_HINTS.has(specifier) || specifier.startsWith("node:"));
|
|
171885
171886
|
const reason = hint ? `Import '${hint}' is not allowed in swarm scripts` : `Import '${rejected[0]}' is not on the swarm script allowlist`;
|
|
171886
|
-
|
|
171887
|
+
const remedy = hint === "crypto" || hint === "node:crypto" ? "The global crypto object already provides randomUUID, getRandomValues, and subtle.digest; delete the import and use crypto directly." : ALLOWLIST_REMEDY;
|
|
171888
|
+
return { ok: false, diagnostic: `${reason}. ${remedy}`, imports: rejected };
|
|
171887
171889
|
}
|
|
171888
171890
|
|
|
171889
171891
|
// src/scripts-runtime/loader.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SYSTEM_COLUMN_KINDS,
|
|
3
3
|
listAppRecords
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-47d0y52n.js";
|
|
5
5
|
import {
|
|
6
6
|
getScriptApiTypes,
|
|
7
7
|
getScriptMcpTypes,
|
|
8
8
|
require_typescript
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-0rgbgtft.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-q46hkq2p.js";
|
|
19
19
|
import {
|
|
20
20
|
init_secret_scrubber,
|
|
21
21
|
scrubSecrets
|
|
@@ -127,7 +127,7 @@ async function ensureAgentFsSharedProvisioning(options) {
|
|
|
127
127
|
await upsertSwarmConfig({ scope: "global", key, value, isSecret: false, description });
|
|
128
128
|
}
|
|
129
129
|
process.env.AGENT_FS_API_URL = apiUrl;
|
|
130
|
-
const { resetFileStorageProvider } = await import("./registry-
|
|
130
|
+
const { resetFileStorageProvider } = await import("./registry-6nvn6bj0.js");
|
|
131
131
|
resetFileStorageProvider();
|
|
132
132
|
return { apiUrl, apiKey, orgId, driveId, authHeaders };
|
|
133
133
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildModelsDevSeedRows,
|
|
3
3
|
loadModelsDevCache
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-ysehve35.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogEntry,
|
|
7
7
|
getActivePricingRow,
|
|
8
8
|
getDbClient,
|
|
9
9
|
init_db,
|
|
10
10
|
insertPricingRow
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-q46hkq2p.js";
|
|
12
12
|
import {
|
|
13
13
|
init_secret_scrubber,
|
|
14
14
|
scrubSecrets
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
restoreScratchScriptLastUsedIfUnchanged,
|
|
8
8
|
runScript,
|
|
9
9
|
touchScratchScriptLastUsed
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-0rgbgtft.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultAssetKey,
|
|
13
13
|
getDbClient,
|
|
14
14
|
getLeadAgent,
|
|
15
15
|
init_db,
|
|
16
16
|
init_key
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-q46hkq2p.js";
|
|
18
18
|
import {
|
|
19
19
|
init_zod
|
|
20
20
|
} from "./cli-s35981d0.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
setSlackMessageTracking,
|
|
38
38
|
slackContextKey,
|
|
39
39
|
updateSlackMessageRecord
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-q46hkq2p.js";
|
|
41
41
|
import {
|
|
42
42
|
getAppUrl,
|
|
43
43
|
init_constants
|
|
@@ -53977,6 +53977,17 @@ init_types();
|
|
|
53977
53977
|
init_db();
|
|
53978
53978
|
var import_bolt = __toESM(require_dist7(), 1);
|
|
53979
53979
|
|
|
53980
|
+
// src/slack/socket-mode-guard.ts
|
|
53981
|
+
init_env_flag();
|
|
53982
|
+
var SLACK_DEV_SOCKET_MODE_OPT_IN = "SLACK_ALLOW_DEV_SOCKET_MODE";
|
|
53983
|
+
function getSlackSocketModeBlockReason(env) {
|
|
53984
|
+
if (env.NODE_ENV !== "development")
|
|
53985
|
+
return null;
|
|
53986
|
+
if (isEnvFlagEnabled(SLACK_DEV_SOCKET_MODE_OPT_IN, false, env))
|
|
53987
|
+
return null;
|
|
53988
|
+
return "NODE_ENV=development marks this as a dev/throwaway run";
|
|
53989
|
+
}
|
|
53990
|
+
|
|
53980
53991
|
// src/slack/watcher.ts
|
|
53981
53992
|
init_db();
|
|
53982
53993
|
|
|
@@ -55160,19 +55171,24 @@ async function initSlackApp() {
|
|
|
55160
55171
|
console.log("[Slack] Missing SLACK_BOT_TOKEN or SLACK_APP_TOKEN, Slack integration disabled");
|
|
55161
55172
|
return null;
|
|
55162
55173
|
}
|
|
55174
|
+
const socketModeBlockReason = getSlackSocketModeBlockReason(process.env);
|
|
55175
|
+
if (socketModeBlockReason) {
|
|
55176
|
+
console.error(`[Slack] SOCKET MODE BLOCKED: ${socketModeBlockReason}. Set ${SLACK_DEV_SOCKET_MODE_OPT_IN}=true to opt in explicitly.`);
|
|
55177
|
+
return null;
|
|
55178
|
+
}
|
|
55163
55179
|
app = new import_bolt.App({
|
|
55164
55180
|
token: botToken,
|
|
55165
55181
|
appToken,
|
|
55166
55182
|
socketMode: true,
|
|
55167
55183
|
logLevel: import_bolt.LogLevel.DEBUG
|
|
55168
55184
|
});
|
|
55169
|
-
const { registerMessageHandler } = await import("./handlers-
|
|
55170
|
-
const { registerCommandHandler } = await import("./commands-
|
|
55171
|
-
const { registerActionHandlers } = await import("./actions-
|
|
55185
|
+
const { registerMessageHandler } = await import("./handlers-cpratgdt.js");
|
|
55186
|
+
const { registerCommandHandler } = await import("./commands-zhm1v98e.js");
|
|
55187
|
+
const { registerActionHandlers } = await import("./actions-cdtyz12q.js");
|
|
55172
55188
|
registerMessageHandler(app);
|
|
55173
55189
|
registerCommandHandler(app);
|
|
55174
55190
|
registerActionHandlers(app);
|
|
55175
|
-
const { createAssistant } = await import("./assistant-
|
|
55191
|
+
const { createAssistant } = await import("./assistant-139yzd1t.js");
|
|
55176
55192
|
app.assistant(createAssistant());
|
|
55177
55193
|
return app;
|
|
55178
55194
|
}
|
|
@@ -55181,7 +55197,7 @@ async function startSlackApp() {
|
|
|
55181
55197
|
await initSlackApp();
|
|
55182
55198
|
}
|
|
55183
55199
|
if (app) {
|
|
55184
|
-
const { isSlackRenderV2Enabled: isSlackRenderV2Enabled2 } = await import("./render-v2-
|
|
55200
|
+
const { isSlackRenderV2Enabled: isSlackRenderV2Enabled2 } = await import("./render-v2-41schhkc.js");
|
|
55185
55201
|
if (isSlackRenderV2Enabled2())
|
|
55186
55202
|
await ensureSlackRenderV2Activation();
|
|
55187
55203
|
await app.start();
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
getPinCandidateAgent,
|
|
11
11
|
getResumeGeneration,
|
|
12
12
|
repointTrackerSyncBySwarmId
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-t46mkxd2.js";
|
|
14
14
|
import {
|
|
15
15
|
isMultiRuntimeEnabled
|
|
16
16
|
} from "./cli-qh4sqfws.js";
|
|
17
17
|
import {
|
|
18
18
|
getExecutorRegistry,
|
|
19
19
|
recoverIncompleteRuns
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-pbatxkne.js";
|
|
21
21
|
import {
|
|
22
22
|
MAX_EMPTY_POLLS,
|
|
23
23
|
assignUnassignedTaskPending,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
releaseStaleReviewingTasks,
|
|
59
59
|
supersedeTask,
|
|
60
60
|
updateAgentStatus
|
|
61
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-q46hkq2p.js";
|
|
62
62
|
import {
|
|
63
63
|
init_registry,
|
|
64
64
|
init_resolver,
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
getExecutorRegistry,
|
|
3
3
|
handleScheduleTrigger,
|
|
4
4
|
startWorkflowExecution
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-pbatxkne.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-0rgbgtft.js";
|
|
13
13
|
import {
|
|
14
14
|
createTaskWithSiblingAwareness
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-z3h9zvty.js";
|
|
16
16
|
import {
|
|
17
17
|
getDbClient,
|
|
18
18
|
getDueScheduledTasks,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
scheduleContextKey,
|
|
26
26
|
telemetry,
|
|
27
27
|
updateScheduledTask
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-q46hkq2p.js";
|
|
29
29
|
import {
|
|
30
30
|
__commonJS,
|
|
31
31
|
__require,
|
|
@@ -206,7 +206,8 @@ var CodexExec = class {
|
|
|
206
206
|
pathDirs;
|
|
207
207
|
envOverride;
|
|
208
208
|
configOverrides;
|
|
209
|
-
|
|
209
|
+
rawConfigOverrides;
|
|
210
|
+
constructor(executablePath = null, env, configOverrides, rawConfigOverrides) {
|
|
210
211
|
if (executablePath) {
|
|
211
212
|
this.executablePath = executablePath;
|
|
212
213
|
this.pathDirs = [];
|
|
@@ -217,6 +218,7 @@ var CodexExec = class {
|
|
|
217
218
|
}
|
|
218
219
|
this.envOverride = env;
|
|
219
220
|
this.configOverrides = configOverrides;
|
|
221
|
+
this.rawConfigOverrides = rawConfigOverrides;
|
|
220
222
|
}
|
|
221
223
|
async* run(args) {
|
|
222
224
|
const commandArgs = ["exec", "--experimental-json"];
|
|
@@ -225,6 +227,11 @@ var CodexExec = class {
|
|
|
225
227
|
commandArgs.push("--config", override);
|
|
226
228
|
}
|
|
227
229
|
}
|
|
230
|
+
if (this.rawConfigOverrides) {
|
|
231
|
+
for (const override of this.rawConfigOverrides) {
|
|
232
|
+
commandArgs.push("--config", override);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
228
235
|
if (args.baseUrl) {
|
|
229
236
|
commandArgs.push("--config", `openai_base_url=${toTomlValue(args.baseUrl, "openai_base_url")}`);
|
|
230
237
|
}
|
|
@@ -545,8 +552,8 @@ var Codex = class {
|
|
|
545
552
|
exec;
|
|
546
553
|
options;
|
|
547
554
|
constructor(options = {}) {
|
|
548
|
-
const { codexPathOverride, env, config } = options;
|
|
549
|
-
this.exec = new CodexExec(codexPathOverride, env, config);
|
|
555
|
+
const { codexPathOverride, env, config, configOverrides } = options;
|
|
556
|
+
this.exec = new CodexExec(codexPathOverride, env, config, configOverrides);
|
|
550
557
|
this.options = options;
|
|
551
558
|
}
|
|
552
559
|
startThread(options = {}) {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getEmbeddingProvider,
|
|
5
5
|
init_embedding,
|
|
6
6
|
serializeEmbedding
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-zg86g3q8.js";
|
|
8
8
|
import {
|
|
9
9
|
getDbClient,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-q46hkq2p.js";
|
|
12
12
|
import {
|
|
13
13
|
init_secret_scrubber,
|
|
14
14
|
scrubSecrets
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAdditiveBuffer,
|
|
3
3
|
extractSlackMessageText
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-x0mnesvr.js";
|
|
5
5
|
import {
|
|
6
6
|
rewriteSlackMentions
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-gkfzvf7n.js";
|
|
8
8
|
import {
|
|
9
9
|
createTaskWithSiblingAwareness
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-z3h9zvty.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-6ewfzrgz.js";
|
|
20
20
|
import {
|
|
21
21
|
createLogEntry,
|
|
22
22
|
getAgentById,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
init_steering,
|
|
30
30
|
requestSteering,
|
|
31
31
|
slackContextKey
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-q46hkq2p.js";
|
|
33
33
|
import {
|
|
34
34
|
init_registry,
|
|
35
35
|
init_steering_enabled,
|