@desplega.ai/agent-swarm 2.7.2 → 2.7.3
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 +6 -0
- package/dist/{acp-adapter-624yge7a.js → acp-adapter-pdzw76ja.js} +1 -1
- package/dist/{actions-rd9xn281.js → actions-a90cfpca.js} +21 -21
- package/dist/{amp-adapter-k27hc00p.js → amp-adapter-4vtywcjk.js} +2 -2
- package/dist/{app-sjm3xc7g.js → app-8k68gygk.js} +3 -3
- package/dist/{assistant-6jbzs8wa.js → assistant-ck01q2yg.js} +32 -21
- package/dist/{boot-reembed-e2348eqc.js → boot-reembed-33spavpd.js} +1 -1
- package/dist/{boot-reembed-w53pd5xt.js → boot-reembed-xzge83a2.js} +1 -1
- package/dist/{boot-scrub-sweep-cpy4yg97.js → boot-scrub-sweep-mxvb8dr3.js} +3 -3
- package/dist/{boot-seeds-f6j4t6k6.js → boot-seeds-rpm8bb5r.js} +4 -4
- package/dist/{claude-adapter-v3ac8esd.js → claude-adapter-q12bcfj9.js} +3 -3
- package/dist/{claude-managed-setup-yyrkqvtm.js → claude-managed-setup-11vb6q89.js} +1 -1
- package/dist/{claude-sdk-session-85j69v6d.js → claude-sdk-session-gkv1107j.js} +10325 -10243
- package/dist/{cli-rs59z1qx.js → cli-07pcqwaj.js} +1 -1
- package/dist/{cli-6vq3ymqm.js → cli-0tkm519n.js} +1 -1
- package/dist/{cli-s7cm1927.js → cli-0xzbk52h.js} +4 -4
- package/dist/{cli-g0zc1b40.js → cli-0zae6bs6.js} +2 -2
- package/dist/{cli-p8yrsmfn.js → cli-10kjx0dm.js} +1 -1
- package/dist/{cli-7xsq63pe.js → cli-157ykn37.js} +10 -9
- package/dist/{cli-vjcj9k2p.js → cli-2h0rfmqk.js} +1 -1
- package/dist/{cli-9wasax9f.js → cli-35nzvqaf.js} +1 -1
- package/dist/{cli-e1p7dqe1.js → cli-4aydmmdy.js} +24 -3
- package/dist/{cli-942pp3bc.js → cli-54ax65rn.js} +3 -3
- package/dist/{cli-10cp92df.js → cli-5ke7gxwr.js} +6 -6
- package/dist/{cli-femw4q81.js → cli-6151a7dr.js} +2 -2
- package/dist/{cli-3cywb44q.js → cli-77eq8txs.js} +85 -3
- package/dist/{cli-atpfk4yd.js → cli-7cwrwb5x.js} +5 -5
- package/dist/{cli-bfbpvccx.js → cli-8a1k6mat.js} +61 -49
- package/dist/{cli-c18941tx.js → cli-8ch3b2r7.js} +3 -3
- package/dist/{cli-rs2s1t05.js → cli-9fk56y8c.js} +4 -4
- package/dist/{cli-0wx63vvw.js → cli-9km88w11.js} +1 -1
- package/dist/{cli-qy0z3mfj.js → cli-9vttw9nz.js} +56 -46
- package/dist/{cli-mzgppb7q.js → cli-a0w50zw9.js} +4 -4
- package/dist/{cli-z8a4mfz1.js → cli-aqp59jmv.js} +4 -4
- package/dist/{cli-5d8wd50e.js → cli-bs0fwb23.js} +1 -1
- package/dist/{cli-fa4kxxx3.js → cli-ct5920jb.js} +2 -2
- package/dist/{cli-0awbtmv2.js → cli-dek8hqjc.js} +10 -10
- package/dist/{cli-qp6adcmw.js → cli-e24w2mvk.js} +1 -1
- package/dist/{cli-t3npd8hm.js → cli-ghfhn1qc.js} +1 -1
- package/dist/{cli-jmcf8cnz.js → cli-ja369zab.js} +1 -1
- package/dist/{cli-wtjg6je3.js → cli-jhh7tbx6.js} +1 -1
- package/dist/{cli-e19bgatr.js → cli-jmk31131.js} +2 -2
- package/dist/{cli-2cj8fqv1.js → cli-kjcdzea8.js} +1 -1
- package/dist/{cli-1xpr5992.js → cli-kjha1q9k.js} +3 -3
- package/dist/{cli-9jfty8px.js → cli-ktcdczth.js} +538 -30
- package/dist/{cli-exd52qn4.js → cli-mcmpbpcc.js} +2 -2
- package/dist/{cli-2m2p3snc.js → cli-mmf43vcp.js} +6 -6
- package/dist/{cli-b2rhbaty.js → cli-pnm99spe.js} +10 -10
- package/dist/{cli-9jn9cj0q.js → cli-v9jk2k63.js} +1 -1
- package/dist/{cli-mt7bxjfd.js → cli-vhgcwppn.js} +1 -1
- package/dist/{cli-qa4hgda3.js → cli-vvz64zc5.js} +14 -13
- package/dist/{cli-txr0z97c.js → cli-wmhajw68.js} +171 -32
- package/dist/{cli-hzrmv8pg.js → cli-x38rmhap.js} +3 -3
- package/dist/{cli-hq9hd4hp.js → cli-xz6qjdqj.js} +1 -1
- package/dist/{cli-g9ypd5en.js → cli-z52gq55b.js} +4 -0
- package/dist/{cli-2qbmjfta.js → cli-z6219sd3.js} +4 -4
- package/dist/cli.js +19 -19
- package/dist/{codex-adapter-zm1bkdde.js → codex-adapter-46kbvvkx.js} +1 -1
- package/dist/{codex-hook-tkag7fxq.js → codex-hook-tm9ecrd5.js} +1 -1
- package/dist/{codex-session-runner-8k02mqw2.js → codex-session-runner-qy93hdrv.js} +1 -1
- package/dist/{commands-nw1dn4av.js → commands-hwdhacfx.js} +2 -2
- package/dist/{controller-3kkkmps0.js → controller-hjza5p1f.js} +3 -3
- package/dist/{controllers-connect-n2c4167r.js → controllers-connect-7m25cay2.js} +20 -20
- package/dist/{cursor-adapter-h5028emw.js → cursor-adapter-1qh7ps8w.js} +1 -1
- package/dist/{db-76y2msnf.js → db-w23k9301.js} +2 -2
- package/dist/{db-8rk0p8j1.js → db-wm8by383.js} +3 -3
- package/dist/{dispatcher-xp4wsx30.js → dispatcher-en25ebgc.js} +18 -18
- package/dist/{dsh-adapter-vyrr31bn.js → dsh-adapter-zkme32vd.js} +1 -1
- package/dist/{e2b-eesfj689.js → e2b-9z9mvt2p.js} +1 -1
- package/dist/{e2b-03nha1wz.js → e2b-yhvn70es.js} +1 -1
- package/dist/{embedding-space-ejefyep1.js → embedding-space-rgf4aypt.js} +6 -6
- package/dist/{embeddings-w297xaw0.js → embeddings-z9cmxhx1.js} +1 -1
- package/dist/{external-channel-mf9vp1fe.js → external-channel-g6vv85zv.js} +2 -2
- package/dist/{grok-adapter-mpzyyprz.js → grok-adapter-f6n1tpq3.js} +2 -2
- package/dist/handlers-ss5948rq.js +42 -0
- package/dist/{heartbeat-qnaycjzs.js → heartbeat-5xcdzz45.js} +21 -21
- package/dist/{hook-h6sqfzxr.js → hook-6423rme3.js} +2 -2
- package/dist/{hook-4zqdgea4.js → hook-8dk1csdd.js} +4 -4
- package/dist/{http-65ts210h.js → http-6mfh2ww9.js} +255 -60
- package/dist/{index-sqe7f6mj.js → index-0js6bgff.js} +1 -1
- package/dist/{index-farm1zsn.js → index-0ng1dd1t.js} +10937 -9527
- package/dist/{index-k3ewf1jg.js → index-5eyn1wc5.js} +18 -18
- package/dist/{index-vp4wa3qn.js → index-71gnebsn.js} +18 -18
- package/dist/{index-hdfad00b.js → index-q5gzpjdd.js} +12 -10
- package/dist/index-z3b1vfjx.js +44 -0
- package/dist/{keepalive-52k6skha.js → keepalive-cymckeg6.js} +3 -3
- package/dist/{lead-y9rj0gr1.js → lead-baknj2dh.js} +29 -29
- package/dist/{maintenance-f86wqfq6.js → maintenance-dfrnsx3n.js} +1 -1
- package/dist/{oauth-refresh-sweep-vddv9ky7.js → oauth-refresh-sweep-5dztk8x6.js} +2 -2
- package/dist/{onboard-8z2qk6gq.js → onboard-h36vja6y.js} +11 -6
- package/dist/{otel-impl-epet9j18.js → otel-impl-jerq8vz8.js} +1 -1
- package/dist/{pricing-refresh-6wm42a51.js → pricing-refresh-t3nx5krn.js} +3 -3
- package/dist/{rbac-roles-2kfcs1sc.js → rbac-roles-dw1awawd.js} +2 -2
- package/dist/{rbac-roles-13a0vj6d.js → rbac-roles-km0fc3e8.js} +1 -1
- package/dist/{registry-ajhexe44.js → registry-hzfh268v.js} +1 -1
- package/dist/{render-v2-cy8zsfsf.js → render-v2-65x4ayj8.js} +3 -3
- package/dist/{resume-c783qe6b.js → resume-61znk3hj.js} +6 -6
- package/dist/{session-access-s4tv0az8.js → session-access-4yc9htrg.js} +4 -4
- package/dist/{session-source-backfill-qzapz0ne.js → session-source-backfill-kr5bdjtp.js} +2 -2
- package/dist/{setup-st7htx1k.js → setup-9h61yr2p.js} +1 -1
- package/dist/{work-objects-ftj4zw70.js → work-objects-x7rb53qn.js} +27 -22
- package/dist/{worker-859fk25k.js → worker-7f3khgn0.js} +29 -29
- package/openapi.json +134 -3
- package/package.json +5 -5
- package/src/be/db/agents.ts +16 -1
- package/src/be/db/runtime.ts +25 -15
- package/src/be/db/session-summaries.ts +120 -0
- package/src/be/db/tasks/read.ts +7 -4
- package/src/be/db/tasks/search-index.ts +159 -0
- package/src/be/db/tasks/write.ts +3 -0
- package/src/be/db-queries/slack-inbound.ts +77 -0
- package/src/be/db.ts +27 -8
- package/src/be/mcp-overflow-sweep.ts +39 -0
- package/src/be/migrations/253_session_summaries.sql +300 -0
- package/src/be/migrations/254_query_audit_indexes.sql +25 -0
- package/src/be/migrations/256_agent_slack_icon.sql +2 -0
- package/src/be/migrations/257_agent_tasks_fts.sql +55 -0
- package/src/comb/config.ts +6 -2
- package/src/comb/requester.ts +69 -0
- package/src/comb/review-batch.ts +24 -2
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +7 -2
- package/src/commands/onboard/env-generator.ts +8 -3
- package/src/commands/runner.ts +41 -24
- package/src/fs/agent-fs-provider.ts +9 -0
- package/src/heartbeat/heartbeat.ts +13 -6
- package/src/http/agents.ts +10 -2
- package/src/http/index.ts +15 -0
- package/src/http/integrations.ts +20 -0
- package/src/http/list-total-cache.ts +62 -0
- package/src/http/sessions.ts +9 -2
- package/src/http/slack-inbound.ts +1 -0
- package/src/http/status.ts +4 -1
- package/src/http/tasks.ts +12 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/queue-stall-alarm.ts +4 -1
- package/src/slack/actions.ts +2 -2
- package/src/slack/app-icon.ts +50 -0
- package/src/slack/app.ts +13 -1
- package/src/slack/assistant.ts +22 -1
- package/src/slack/event-dedup.test.ts +11 -0
- package/src/slack/event-dedup.ts +8 -4
- package/src/slack/inbound-dispatch.ts +58 -0
- package/src/slack/render-v2.ts +7 -8
- package/src/slack/responses.ts +21 -8
- package/src/slack/socket-ack.ts +237 -0
- package/src/slack/thread-buffer.ts +3 -5
- package/src/slack/watcher.ts +2 -2
- package/src/slack/work-objects.ts +5 -1
- package/src/tests/agent-fs-release-notes.test.ts +40 -0
- package/src/tests/agent-slack-icon.test.ts +85 -0
- package/src/tests/approval-cancellation-migration.test.ts +2 -0
- package/src/tests/asset-key-migration.test.ts +26 -0
- package/src/tests/comb-default.test.ts +159 -0
- package/src/tests/comb-review-batch.test.ts +192 -4
- package/src/tests/comb-status.test.ts +65 -2
- package/src/tests/db-agents.test.ts +13 -0
- package/src/tests/db-tasks-read.test.ts +10 -15
- package/src/tests/deploy-one-box.test.ts +161 -0
- package/src/tests/deploy-stubs.ts +68 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/e2e-codex-auth-chain.test.ts +18 -1
- package/src/tests/fixtures/deploy-stubs/bun +3 -0
- package/src/tests/fixtures/deploy-stubs/bunx +27 -0
- package/src/tests/fixtures/deploy-stubs/curl +26 -0
- package/src/tests/fixtures/deploy-stubs/docker +122 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +5 -5
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +4 -4
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +12 -12
- package/src/tests/fixtures/onboard/full.compose.yml.txt +12 -12
- package/src/tests/fixtures/onboard/research.compose.yml.txt +4 -4
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +2 -2
- package/src/tests/heartbeat-expiry.test.ts +151 -25
- package/src/tests/http-api-integration.test.ts +31 -0
- package/src/tests/human-free-reclassify.test.ts +6 -0
- package/src/tests/install-sh-bind.test.ts +242 -0
- package/src/tests/install-sh-tunnel.test.ts +89 -0
- package/src/tests/kv-storage.test.ts +28 -0
- package/src/tests/list-endpoint-slimming.test.ts +3 -0
- package/src/tests/list-total-cache.test.ts +63 -0
- package/src/tests/mcp-overflow-sweep.test.ts +84 -0
- package/src/tests/onboard-compose.test.ts +17 -3
- package/src/tests/onboard-env.test.ts +13 -0
- package/src/tests/onboarding.test.ts +1 -1
- package/src/tests/preload.ts +1 -0
- package/src/tests/query-audit-plans.test.ts +314 -0
- package/src/tests/script-connections.test.ts +6 -0
- package/src/tests/session-summaries.test.ts +384 -0
- package/src/tests/sessions-tree.test.ts +5 -1
- package/src/tests/slack-app-icon.test.ts +90 -0
- package/src/tests/slack-external-channel-egress.test.ts +1 -1
- package/src/tests/slack-inbound-receipts.test.ts +34 -0
- package/src/tests/slack-inline-output.test.ts +29 -2
- package/src/tests/slack-render-v2-query-plans.test.ts +3 -2
- package/src/tests/slack-render-v2.test.ts +35 -0
- package/src/tests/slack-socket-ack.test.ts +553 -0
- package/src/tests/task-lineage.test.ts +3 -0
- package/src/tests/task-search-filter.test.ts +4 -4
- package/src/tests/task-search-fts.test.ts +320 -0
- package/src/tests/update-profile-auth.test.ts +28 -0
- package/src/tools/get-swarm.ts +1 -0
- package/src/tools/get-tasks.ts +6 -1
- package/src/tools/join-swarm.ts +1 -0
- package/src/tools/my-agent-info.ts +1 -0
- package/src/tools/slack-post.ts +2 -2
- package/src/tools/slack-reply.ts +2 -2
- package/src/tools/slack-start-thread.ts +2 -2
- package/src/tools/slack-update.ts +1 -1
- package/src/tools/update-profile.ts +20 -4
- package/src/tools/utils.ts +3 -4
- package/src/types.ts +47 -0
- package/src/utils/constants.ts +127 -5
- package/templates/official/lead/HEARTBEAT.md +4 -2
- package/templates/official/lead/config.json +2 -2
- package/templates/skills/swarm-docs/content.md +2 -0
- package/dist/handlers-7x8sywgr.js +0 -42
- package/dist/index-mc30r1hs.js +0 -44
package/README.md
CHANGED
|
@@ -97,6 +97,12 @@ curl -fsSL https://agent-swarm.dev/install.sh | bash
|
|
|
97
97
|
|
|
98
98
|
The raw GitHub URL (`https://raw.githubusercontent.com/desplega-ai/agent-swarm/main/install.sh`) serves the same script. The API is public through a tunnel by default, protected by the API key. Add `bash -s -- --no-tunnel` to keep it local.
|
|
99
99
|
|
|
100
|
+
No server yet? Deploy the Railway template in one click:
|
|
101
|
+
|
|
102
|
+
[](https://railway.com/deploy/agent-swarm)
|
|
103
|
+
|
|
104
|
+
Or [deploy one](https://docs.agent-swarm.dev/docs/guides/one-click-deploy) on any VPS: paste [`deploy/cloud-init.yaml`](./deploy/cloud-init.yaml) as the user data of a new 4 vCPU / 8 GB Ubuntu server (Hetzner, DigitalOcean, Lightsail, Vultr). It installs Docker and Caddy, serves the API over HTTPS on `<ip>.sslip.io` or your domain, and shows the `/setup` link to root at login. To look first, [try it for an hour on E2B](https://docs.agent-swarm.dev/docs/guides/one-click-deploy#try-it-for-an-hour-on-e2b); that trial deletes its data when the sandboxes stop.
|
|
105
|
+
|
|
100
106
|
Or use the examples directly:
|
|
101
107
|
|
|
102
108
|
```bash
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
getTaskById2,
|
|
7
7
|
cancelTask2,
|
|
8
8
|
init_db3
|
|
9
|
-
} from "./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
9
|
+
} from "./cli-wmhajw68.js";
|
|
10
|
+
import"./cli-e24w2mvk.js";
|
|
11
|
+
import"./cli-10kjx0dm.js";
|
|
12
|
+
import"./cli-jmk31131.js";
|
|
13
13
|
import {
|
|
14
14
|
createTaskWithSiblingAwareness
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-9vttw9nz.js";
|
|
16
16
|
import"./cli-eny54typ.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
17
|
+
import"./cli-pnm99spe.js";
|
|
18
|
+
import"./cli-5ke7gxwr.js";
|
|
19
|
+
import"./cli-ghfhn1qc.js";
|
|
20
20
|
import"./cli-3ggwdtb0.js";
|
|
21
21
|
import"./cli-e8xyjvfc.js";
|
|
22
22
|
import {
|
|
@@ -25,36 +25,36 @@ import {
|
|
|
25
25
|
getTaskLink,
|
|
26
26
|
buildCancelledBlocks,
|
|
27
27
|
getAgentDisplayName,
|
|
28
|
-
|
|
28
|
+
getAgentSlackIcon,
|
|
29
29
|
isSlackRenderV2Enabled2,
|
|
30
30
|
ensureSlackThreadTree2
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-ktcdczth.js";
|
|
32
32
|
import {
|
|
33
33
|
EXTERNAL_CHANNEL_BLOCKED_REPLY2,
|
|
34
34
|
shouldBlockChannel2
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-0tkm519n.js";
|
|
36
36
|
import"./cli-n0ysjjtv.js";
|
|
37
37
|
import"./cli-2nf3b08t.js";
|
|
38
38
|
import"./cli-kvzgak7c.js";
|
|
39
39
|
import"./cli-445c1vp7.js";
|
|
40
40
|
import"./cli-jbgrwv4y.js";
|
|
41
|
-
import"./cli-
|
|
41
|
+
import"./cli-kjha1q9k.js";
|
|
42
42
|
import"./cli-qz93y3x5.js";
|
|
43
|
-
import"./cli-
|
|
44
|
-
import"./cli-
|
|
45
|
-
import"./cli-
|
|
46
|
-
import"./cli-
|
|
47
|
-
import"./cli-
|
|
43
|
+
import"./cli-ja369zab.js";
|
|
44
|
+
import"./cli-a0w50zw9.js";
|
|
45
|
+
import"./cli-z52gq55b.js";
|
|
46
|
+
import"./cli-z6219sd3.js";
|
|
47
|
+
import"./cli-0xzbk52h.js";
|
|
48
48
|
import"./cli-3h26v7yj.js";
|
|
49
49
|
import"./cli-vpq0n13a.js";
|
|
50
50
|
import {
|
|
51
51
|
resolveSlackUserId
|
|
52
|
-
} from "./cli-
|
|
52
|
+
} from "./cli-54ax65rn.js";
|
|
53
53
|
import"./cli-13p25grh.js";
|
|
54
54
|
import"./cli-0adyhvq2.js";
|
|
55
|
-
import"./cli-
|
|
55
|
+
import"./cli-v9jk2k63.js";
|
|
56
56
|
import"./cli-rycdaj0a.js";
|
|
57
|
-
import"./cli-
|
|
57
|
+
import"./cli-kjcdzea8.js";
|
|
58
58
|
|
|
59
59
|
// src/slack/actions.ts
|
|
60
60
|
init_db3();
|
|
@@ -170,7 +170,7 @@ function registerActionHandlers(app) {
|
|
|
170
170
|
text: `\uD83D\uDCAC Follow-up sent to *${agentName}* (${taskLink})`,
|
|
171
171
|
unfurl_links: false,
|
|
172
172
|
unfurl_media: false,
|
|
173
|
-
...lead ? { username: getAgentDisplayName(lead),
|
|
173
|
+
...lead ? { username: getAgentDisplayName(lead), ...getAgentSlackIcon(lead) } : {}
|
|
174
174
|
});
|
|
175
175
|
} catch (error) {
|
|
176
176
|
console.error("[Slack] Failed to post follow-up confirmation:", error);
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
checkAmpCredentials2,
|
|
3
3
|
liveTestAmpCredentials2,
|
|
4
4
|
AmpAdapter2
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-ct5920jb.js";
|
|
6
6
|
import"./cli-cr3k93hd.js";
|
|
7
7
|
import"./cli-jc1g9ndz.js";
|
|
8
8
|
import"./cli-vqgnyh76.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-e24w2mvk.js";
|
|
10
10
|
import"./cli-3ggwdtb0.js";
|
|
11
11
|
import"./cli-e8xyjvfc.js";
|
|
12
12
|
export {
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
initSlackApp2,
|
|
4
4
|
startSlackApp2,
|
|
5
5
|
stopSlackApp2
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
6
|
+
} from "./cli-ktcdczth.js";
|
|
7
|
+
import"./cli-0tkm519n.js";
|
|
8
|
+
import"./cli-wmhajw68.js";
|
|
9
9
|
export {
|
|
10
10
|
getSlackApp2 as getSlackApp,
|
|
11
11
|
initSlackApp2 as initSlackApp,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getMostRecentTaskInThread2,
|
|
7
7
|
reactionName,
|
|
8
8
|
init_db3
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-wmhajw68.js";
|
|
10
10
|
import {
|
|
11
11
|
require_dist4,
|
|
12
12
|
noteSlackInboundSideEffect,
|
|
@@ -17,34 +17,34 @@ import {
|
|
|
17
17
|
markSlackSessionProcessing,
|
|
18
18
|
isSlackRenderV2Enabled2,
|
|
19
19
|
ensureSlackThreadTree2
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-ktcdczth.js";
|
|
21
21
|
import {
|
|
22
22
|
shouldBlockChannel2
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-0tkm519n.js";
|
|
24
24
|
import {
|
|
25
25
|
buildEffectiveText,
|
|
26
26
|
fetchSlackFiles,
|
|
27
27
|
createSlackTaskWithFiles,
|
|
28
28
|
notifySlackFileFailures,
|
|
29
29
|
hasOtherUserMention
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-9vttw9nz.js";
|
|
31
31
|
import {
|
|
32
32
|
resolveSlackUserId,
|
|
33
33
|
rewriteSlackMentions
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-54ax65rn.js";
|
|
35
35
|
import {
|
|
36
36
|
wasEventSeen,
|
|
37
37
|
bufferThreadMessage,
|
|
38
38
|
getBufferMessageCount
|
|
39
|
-
} from "./cli-
|
|
40
|
-
import"./cli-
|
|
41
|
-
import"./cli-
|
|
42
|
-
import"./cli-
|
|
43
|
-
import"./cli-
|
|
39
|
+
} from "./cli-157ykn37.js";
|
|
40
|
+
import"./cli-z52gq55b.js";
|
|
41
|
+
import"./cli-e24w2mvk.js";
|
|
42
|
+
import"./cli-10kjx0dm.js";
|
|
43
|
+
import"./cli-jmk31131.js";
|
|
44
44
|
import"./cli-eny54typ.js";
|
|
45
|
-
import"./cli-
|
|
46
|
-
import"./cli-
|
|
47
|
-
import"./cli-
|
|
45
|
+
import"./cli-pnm99spe.js";
|
|
46
|
+
import"./cli-5ke7gxwr.js";
|
|
47
|
+
import"./cli-ghfhn1qc.js";
|
|
48
48
|
import"./cli-3ggwdtb0.js";
|
|
49
49
|
import"./cli-e8xyjvfc.js";
|
|
50
50
|
import"./cli-n0ysjjtv.js";
|
|
@@ -52,19 +52,19 @@ import"./cli-2nf3b08t.js";
|
|
|
52
52
|
import"./cli-kvzgak7c.js";
|
|
53
53
|
import"./cli-445c1vp7.js";
|
|
54
54
|
import"./cli-jbgrwv4y.js";
|
|
55
|
-
import"./cli-
|
|
55
|
+
import"./cli-kjha1q9k.js";
|
|
56
56
|
import"./cli-qz93y3x5.js";
|
|
57
|
-
import"./cli-
|
|
58
|
-
import"./cli-
|
|
59
|
-
import"./cli-
|
|
60
|
-
import"./cli-
|
|
57
|
+
import"./cli-ja369zab.js";
|
|
58
|
+
import"./cli-a0w50zw9.js";
|
|
59
|
+
import"./cli-z6219sd3.js";
|
|
60
|
+
import"./cli-0xzbk52h.js";
|
|
61
61
|
import"./cli-3h26v7yj.js";
|
|
62
62
|
import"./cli-vpq0n13a.js";
|
|
63
63
|
import"./cli-13p25grh.js";
|
|
64
64
|
import"./cli-0adyhvq2.js";
|
|
65
|
-
import"./cli-
|
|
65
|
+
import"./cli-v9jk2k63.js";
|
|
66
66
|
import"./cli-rycdaj0a.js";
|
|
67
|
-
import"./cli-
|
|
67
|
+
import"./cli-kjcdzea8.js";
|
|
68
68
|
import {
|
|
69
69
|
resolveTemplate,
|
|
70
70
|
init_resolver
|
|
@@ -94,9 +94,15 @@ async function isExternalAssistantThread(client, channelId, body) {
|
|
|
94
94
|
console.log(`[Slack] Ignoring assistant thread event in external channel ${channelId}`);
|
|
95
95
|
return true;
|
|
96
96
|
}
|
|
97
|
-
function createAssistant() {
|
|
97
|
+
function createAssistant(options = {}) {
|
|
98
98
|
return new import_bolt.Assistant({
|
|
99
|
+
...options.threadContextStore ? { threadContextStore: options.threadContextStore } : {},
|
|
99
100
|
threadStarted: async ({ event, body, client, say, setSuggestedPrompts, saveThreadContext }) => {
|
|
101
|
+
const eventId = body?.event_id;
|
|
102
|
+
if (!isAdmittedSlackDelivery() && wasEventSeen(eventId)) {
|
|
103
|
+
console.log(`[Slack] dropping Slack retry: event_id=${eventId}`);
|
|
104
|
+
return ignoreSlackInbound("duplicate_event");
|
|
105
|
+
}
|
|
100
106
|
if (await isExternalAssistantThread(client, event.assistant_thread.channel_id, body)) {
|
|
101
107
|
return ignoreSlackInbound("external_channel");
|
|
102
108
|
}
|
|
@@ -120,6 +126,11 @@ function createAssistant() {
|
|
|
120
126
|
}
|
|
121
127
|
},
|
|
122
128
|
threadContextChanged: async ({ event, body, client, saveThreadContext }) => {
|
|
129
|
+
const eventId = body?.event_id;
|
|
130
|
+
if (!isAdmittedSlackDelivery() && wasEventSeen(eventId)) {
|
|
131
|
+
console.log(`[Slack] dropping Slack retry: event_id=${eventId}`);
|
|
132
|
+
return ignoreSlackInbound("duplicate_event");
|
|
133
|
+
}
|
|
123
134
|
if (await isExternalAssistantThread(client, event.assistant_thread.channel_id, body)) {
|
|
124
135
|
return ignoreSlackInbound("external_channel");
|
|
125
136
|
}
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
getMemoryStore2,
|
|
9
9
|
init_memory,
|
|
10
10
|
init_db3
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-wmhajw68.js";
|
|
12
12
|
import {
|
|
13
13
|
contentSha256,
|
|
14
14
|
init_profile_sync
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-9km88w11.js";
|
|
16
16
|
import {
|
|
17
17
|
SCRUBBER_RULES_VERSION,
|
|
18
18
|
scrubSecrets,
|
|
@@ -87,7 +87,7 @@ async function runBootScrubSweep(opts = {}) {
|
|
|
87
87
|
console.log(`[${tag}] complete`);
|
|
88
88
|
const memoryChanged = stats.find((s) => s.table === "agent_memory")?.changed ?? 0;
|
|
89
89
|
if (memoryChanged > 0 && opts.reembed !== false) {
|
|
90
|
-
const { runBootReembed } = await import("./boot-reembed-
|
|
90
|
+
const { runBootReembed } = await import("./boot-reembed-33spavpd.js");
|
|
91
91
|
await runBootReembed();
|
|
92
92
|
}
|
|
93
93
|
return stats;
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ensurePricingSeeded2,
|
|
3
3
|
ensureRbacSeeded2,
|
|
4
4
|
ensureModelProfilesSeeded2
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
5
|
+
} from "./cli-a0w50zw9.js";
|
|
6
|
+
import"./cli-10kjx0dm.js";
|
|
7
|
+
import"./cli-ja369zab.js";
|
|
8
|
+
import"./cli-wmhajw68.js";
|
|
9
9
|
export {
|
|
10
10
|
ensureModelProfilesSeeded2 as ensureModelProfilesSeeded,
|
|
11
11
|
ensurePricingSeeded2 as ensurePricingSeeded,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
buildClaudeSessionEnvironment2,
|
|
5
5
|
runClaudeSessionSummary2,
|
|
6
6
|
ClaudeAdapter2
|
|
7
|
-
} from "./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
} from "./cli-8ch3b2r7.js";
|
|
8
|
+
import"./cli-aqp59jmv.js";
|
|
9
|
+
import"./cli-2h0rfmqk.js";
|
|
10
10
|
import"./cli-d82btycs.js";
|
|
11
11
|
import"./cli-h3e7bhvn.js";
|
|
12
12
|
import"./cli-4bd1rck6.js";
|