@desplega.ai/agent-swarm 1.107.1 → 1.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{actions-0a8stf21.js → actions-sdr91cfp.js} +9 -8
- package/dist/{app-bzfks2d1.js → app-0mcf7mwz.js} +6 -5
- package/dist/{assistant-609ad3tq.js → assistant-7f3cmabp.js} +12 -11
- package/dist/{boot-reembed-b0e34fya.js → boot-reembed-47cfre4w.js} +5 -5
- package/dist/{boot-reembed-zkxqahga.js → boot-reembed-a9btk2eh.js} +6 -6
- package/dist/{boot-scrub-logs-b8rr0zdz.js → boot-scrub-logs-hy8pqhej.js} +3 -3
- package/dist/{claude-adapter-hw0wsvpj.js → claude-adapter-mma9a1yr.js} +2 -2
- package/dist/{claude-managed-adapter-vj9kzegz.js → claude-managed-adapter-pv2nbqy4.js} +2 -2
- package/dist/{cli-09rxrad0.js → cli-1z7048dy.js} +1 -1
- package/dist/{cli-sh7cxxef.js → cli-1zs2dm5w.js} +4 -4
- package/dist/{cli-4r9m8f3t.js → cli-2fc97xm5.js} +1 -1
- package/dist/{cli-jk4tj5m6.js → cli-2r7s8jhp.js} +1 -1
- package/dist/{cli-85dpqvhe.js → cli-3cfvx630.js} +3 -3
- package/dist/{cli-3pp1362w.js → cli-4j2mrzag.js} +1 -0
- package/dist/{cli-z92pkwzn.js → cli-6xd0bvf8.js} +4 -17
- package/dist/{cli-pe7daxs4.js → cli-75b0wmer.js} +3 -3
- package/dist/{cli-vpy2ykv9.js → cli-7r40bgvr.js} +5 -5
- package/dist/{cli-07ztw3qw.js → cli-9wv4e7qs.js} +80 -8
- package/dist/{cli-bk526b46.js → cli-a0t7vapf.js} +1 -1
- package/dist/{cli-byh4fpv6.js → cli-a0w6tqyc.js} +1 -1
- package/dist/{cli-bbywzv1h.js → cli-a8gkr14c.js} +49 -30
- package/dist/{cli-6x9842b5.js → cli-apdrt1ch.js} +13 -5
- package/dist/{cli-ssrekyyz.js → cli-cya9knf9.js} +3 -3
- package/dist/{cli-njbznqnh.js → cli-entbgsd5.js} +1 -1
- package/dist/{cli-nbbsaxgb.js → cli-gx7gnvha.js} +23 -20
- package/dist/{cli-qr5dg0hn.js → cli-h2qhdwhr.js} +5 -11
- package/dist/{cli-0fvvg222.js → cli-j9eqkarv.js} +3 -3
- package/dist/{cli-6k4tfbz1.js → cli-kppbkzj4.js} +6 -6
- package/dist/{cli-khcv8aqa.js → cli-m0k99m2s.js} +1 -1
- package/dist/{cli-ykd4a9nc.js → cli-mkn2ryba.js} +1 -1
- package/dist/{cli-vg4rpzka.js → cli-mmaz2btq.js} +1 -1
- package/dist/{cli-kjfs7t6m.js → cli-nmt32dxp.js} +1 -1
- package/dist/{cli-ft53b49j.js → cli-psz2xq0n.js} +6 -6
- package/dist/{cli-3j01d33e.js → cli-q25ejbyn.js} +1 -1
- package/dist/{cli-a5y6jw3y.js → cli-tehpf2fm.js} +1 -1
- package/dist/{cli-g9jtrzqn.js → cli-vemx13wc.js} +3 -3
- package/dist/{cli-r28xcyhw.js → cli-vhpa5j27.js} +2 -2
- package/dist/{cli-qd6pvqyx.js → cli-w6zp4qcx.js} +1 -1
- package/dist/cli-wspgs9bt.js +27 -0
- package/dist/{cli-cddy6663.js → cli-xy83cmfc.js} +282 -2
- package/dist/cli.js +23 -15
- package/dist/{codex-adapter-sdqdznk1.js → codex-adapter-ebs12jef.js} +2 -2
- package/dist/{codex-session-runner-t8jgxf6c.js → codex-session-runner-3bx0b1hn.js} +2 -2
- package/dist/{commands-d0taq40d.js → commands-4p93q1rf.js} +3 -3
- package/dist/{db-vtvke5z0.js → db-hb0chrmg.js} +7 -3
- package/dist/{e2b-xb3rhzb1.js → e2b-2s4psnbf.js} +1 -1
- package/dist/{handlers-mezjqnv9.js → handlers-pz3zc83m.js} +12 -11
- package/dist/{hook-93j171n5.js → hook-mye8ket2.js} +3 -3
- package/dist/{http-p6cd3qsn.js → http-3nrx1tp1.js} +892 -52
- package/dist/{index-jzcmg0v3.js → index-17n7z8k8.js} +12 -11
- package/dist/{index-sehyj6pr.js → index-6sgpkhby.js} +11 -25
- package/dist/{index-qd5zq03s.js → index-rys8ctm6.js} +9 -9
- package/dist/{index-516gja9z.js → index-x9n06ze1.js} +10 -10
- package/dist/{keepalive-e6f2s1gm.js → keepalive-b6eax0y0.js} +5 -5
- package/dist/{lead-7d5kjkha.js → lead-v1g4j7he.js} +26 -25
- package/dist/{maintenance-yzwmptty.js → maintenance-xwf1vf0v.js} +6 -6
- package/dist/{onboard-bgfn21x5.js → onboard-vy0z8b11.js} +2 -2
- package/dist/{opencode-adapter-5jxw9cv8.js → opencode-adapter-mqsxr170.js} +2 -2
- package/dist/{otel-impl-z0s291n2.js → otel-impl-94sm94jm.js} +2 -2
- package/dist/{pi-mono-adapter-e1dn8qh3.js → pi-mono-adapter-ayr3akk8.js} +1 -1
- package/dist/{pricing-refresh-9gsbd6k9.js → pricing-refresh-an9bxjcd.js} +5 -5
- package/dist/{seed-pricing-037064at.js → seed-pricing-3t22x5ax.js} +4 -4
- package/dist/{setup-y9110edr.js → setup-8hd3jk8s.js} +2 -2
- package/dist/{worker-v2wr6ffm.js → worker-s0xm8naj.js} +26 -25
- package/dist/{x-knyx9vek.js → x-6mg4kfpe.js} +2 -2
- package/openapi.json +355 -2
- package/package.json +13 -5
- package/src/be/db.ts +142 -2
- package/src/be/migrations/106_task_attachments_provider_agnostic.sql +29 -0
- package/src/be/seed/agent-fs-provision.ts +423 -0
- package/src/be/seed/registry.ts +2 -1
- package/src/be/seed-scripts/catalog/memory-eval.ts +0 -15
- package/src/be/seed-scripts/index.ts +1 -1
- package/src/commands/context-preamble.ts +4 -11
- package/src/commands/e2b.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +1 -1
- package/src/commands/onboard/dashboard-url.ts +1 -1
- package/src/commands/runner.ts +42 -0
- package/src/fs/agent-fs-provider.ts +290 -0
- package/src/fs/capabilities.ts +59 -0
- package/src/fs/index.ts +5 -0
- package/src/fs/local-fs-provider.ts +163 -0
- package/src/fs/provider.ts +166 -0
- package/src/fs/registry.ts +26 -0
- package/src/http/config.ts +19 -7
- package/src/http/core.ts +1 -1
- package/src/http/fs.ts +492 -0
- package/src/http/index.ts +2 -0
- package/src/http/pages.ts +2 -2
- package/src/http/status.ts +22 -0
- package/src/providers/pricing-sources.md +1 -1
- package/src/providers/reasoning-effort.ts +1 -1
- package/src/slack/blocks.ts +3 -17
- package/src/tasks/worker-follow-up.ts +2 -10
- package/src/tests/agent-fs-provision-seeder.test.ts +293 -0
- package/src/tests/agents-list-model-display.test.ts +1 -1
- package/src/tests/bedrock-model-groups.test.ts +1 -1
- package/src/tests/config-api-only-keys.test.ts +106 -0
- package/src/tests/fs-provider.test.ts +274 -0
- package/src/tests/fs-routes.test.ts +311 -0
- package/src/tests/slack-attachments-block.test.ts +21 -5
- package/src/tests/task-attachments-schema.test.ts +157 -0
- package/src/tests/template-recommendations.test.ts +4 -4
- package/src/tests/ui-logs-parser.test.ts +1 -1
- package/src/tests/use-dismissible-card.test.ts +4 -4
- package/src/tools/store-progress.ts +3 -0
- package/src/types.ts +8 -0
- package/src/utils/secret-scrubber.ts +1 -0
- package/src/utils/task-attachment-links.ts +24 -0
- package/tsconfig.json +1 -3
package/README.md
CHANGED
|
@@ -139,7 +139,7 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
|
|
|
139
139
|
- **Config-driven metrics dashboards** — define read-only SQL widgets, version them, and render them in the dashboard without shipping custom frontend code. [Metrics API →](https://docs.agent-swarm.dev/docs/api-reference/stats)
|
|
140
140
|
- **DB-backed pages** — agents publish HTML or JSON pages (reports, dashboards, action specs) via the `create_page` MCP tool with public / authed / password modes, version history, view counters, diff helpers, and PDF export. [MCP tools → Pages](https://docs.agent-swarm.dev/docs/reference/mcp-tools#pages-tools)
|
|
141
141
|
- **KV store** — Redis-like namespaced key/value store with auto-scoped context (Slack thread / PR / Linear issue / page). [MCP tools → KV](https://docs.agent-swarm.dev/docs/reference/mcp-tools#kv-tools)
|
|
142
|
-
- **Real-time dashboard** — monitor agents, tasks, and inter-agent chat. [app.agent-swarm.dev →](https://app.agent-swarm.dev)
|
|
142
|
+
- **Real-time dashboard + task attachments** — monitor agents, tasks, and inter-agent chat, and create tasks with uploaded files from the sessions composer. [app.agent-swarm.dev →](https://app.agent-swarm.dev)
|
|
143
143
|
|
|
144
144
|
## Quick Start
|
|
145
145
|
|
|
@@ -217,7 +217,7 @@ Missing one? Ask the swarm to build it.
|
|
|
217
217
|
Real-time monitoring of agents, tasks, and inter-agent chat. Use the hosted version at [app.agent-swarm.dev](https://app.agent-swarm.dev), or run locally:
|
|
218
218
|
|
|
219
219
|
```bash
|
|
220
|
-
cd ui && bun install && bun run dev
|
|
220
|
+
cd apps/ui && bun install && bun run dev
|
|
221
221
|
```
|
|
222
222
|
|
|
223
223
|
Opens at `http://localhost:5274`.
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveSlackUserId
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-j9eqkarv.js";
|
|
4
|
+
import"./cli-m0k99m2s.js";
|
|
5
|
+
import"./cli-mmaz2btq.js";
|
|
6
6
|
import {
|
|
7
7
|
buildCancelledBlocks,
|
|
8
8
|
getTaskLink
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-6xd0bvf8.js";
|
|
10
|
+
import"./cli-wspgs9bt.js";
|
|
10
11
|
import {
|
|
11
12
|
createTaskWithSiblingAwareness,
|
|
12
13
|
slackContextKey
|
|
13
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-a0w6tqyc.js";
|
|
14
15
|
import"./cli-dh55d5fg.js";
|
|
15
16
|
import {
|
|
16
17
|
cancelTask,
|
|
@@ -18,12 +19,12 @@ import {
|
|
|
18
19
|
getLeadAgent,
|
|
19
20
|
getTaskById,
|
|
20
21
|
init_db
|
|
21
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-9wv4e7qs.js";
|
|
22
23
|
import"./cli-z2zcxes1.js";
|
|
23
24
|
import"./cli-q21d49ac.js";
|
|
24
25
|
import"./cli-anrj584m.js";
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
26
|
+
import"./cli-apdrt1ch.js";
|
|
27
|
+
import"./cli-4j2mrzag.js";
|
|
27
28
|
import"./cli-p9swy5t3.js";
|
|
28
29
|
|
|
29
30
|
// src/slack/actions.ts
|
|
@@ -3,17 +3,18 @@ import {
|
|
|
3
3
|
initSlackApp,
|
|
4
4
|
startSlackApp,
|
|
5
5
|
stopSlackApp
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-kppbkzj4.js";
|
|
7
7
|
import"./cli-rkndnn90.js";
|
|
8
8
|
import"./cli-b0p7rfnd.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-6xd0bvf8.js";
|
|
10
|
+
import"./cli-wspgs9bt.js";
|
|
10
11
|
import"./cli-dh55d5fg.js";
|
|
11
|
-
import"./cli-
|
|
12
|
+
import"./cli-9wv4e7qs.js";
|
|
12
13
|
import"./cli-z2zcxes1.js";
|
|
13
14
|
import"./cli-q21d49ac.js";
|
|
14
15
|
import"./cli-anrj584m.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-apdrt1ch.js";
|
|
17
|
+
import"./cli-4j2mrzag.js";
|
|
17
18
|
import"./cli-e15jhafb.js";
|
|
18
19
|
import"./cli-7wmybrt5.js";
|
|
19
20
|
import"./cli-p9swy5t3.js";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bufferThreadMessage,
|
|
3
3
|
wasEventSeen
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-7r40bgvr.js";
|
|
5
5
|
import {
|
|
6
6
|
hasOtherUserMention
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-nmt32dxp.js";
|
|
8
8
|
import {
|
|
9
9
|
require_dist
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-kppbkzj4.js";
|
|
11
11
|
import"./cli-rkndnn90.js";
|
|
12
12
|
import"./cli-b0p7rfnd.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveSlackUserId
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
15
|
+
} from "./cli-j9eqkarv.js";
|
|
16
|
+
import"./cli-m0k99m2s.js";
|
|
17
|
+
import"./cli-mmaz2btq.js";
|
|
18
|
+
import"./cli-6xd0bvf8.js";
|
|
19
|
+
import"./cli-wspgs9bt.js";
|
|
19
20
|
import {
|
|
20
21
|
createTaskWithSiblingAwareness,
|
|
21
22
|
slackContextKey
|
|
22
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-a0w6tqyc.js";
|
|
23
24
|
import"./cli-dh55d5fg.js";
|
|
24
25
|
import {
|
|
25
26
|
getAgentWorkingOnThread,
|
|
@@ -28,12 +29,12 @@ import {
|
|
|
28
29
|
init_db,
|
|
29
30
|
init_resolver,
|
|
30
31
|
resolveTemplate
|
|
31
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-9wv4e7qs.js";
|
|
32
33
|
import"./cli-z2zcxes1.js";
|
|
33
34
|
import"./cli-q21d49ac.js";
|
|
34
35
|
import"./cli-anrj584m.js";
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
36
|
+
import"./cli-apdrt1ch.js";
|
|
37
|
+
import"./cli-4j2mrzag.js";
|
|
37
38
|
import"./cli-e15jhafb.js";
|
|
38
39
|
import"./cli-7wmybrt5.js";
|
|
39
40
|
import {
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
getEmbeddingProvider,
|
|
4
4
|
getMemoryStore,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
6
|
+
} from "./cli-vhpa5j27.js";
|
|
7
|
+
import"./cli-q25ejbyn.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb,
|
|
10
10
|
init_db
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-9wv4e7qs.js";
|
|
12
12
|
import"./cli-z2zcxes1.js";
|
|
13
13
|
import"./cli-q21d49ac.js";
|
|
14
14
|
import"./cli-anrj584m.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
import"./cli-apdrt1ch.js";
|
|
16
|
+
import"./cli-4j2mrzag.js";
|
|
17
17
|
import"./cli-p9swy5t3.js";
|
|
18
18
|
|
|
19
19
|
// src/be/memory/boot-reembed.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedScript,
|
|
3
3
|
embeddingProvider
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
4
|
+
} from "./cli-cya9knf9.js";
|
|
5
|
+
import"./cli-vhpa5j27.js";
|
|
6
|
+
import"./cli-q25ejbyn.js";
|
|
7
7
|
import {
|
|
8
8
|
getDb,
|
|
9
9
|
init_db
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-9wv4e7qs.js";
|
|
11
11
|
import"./cli-z2zcxes1.js";
|
|
12
12
|
import"./cli-q21d49ac.js";
|
|
13
13
|
import"./cli-anrj584m.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
import"./cli-apdrt1ch.js";
|
|
15
|
+
import"./cli-4j2mrzag.js";
|
|
16
16
|
import"./cli-p9swy5t3.js";
|
|
17
17
|
|
|
18
18
|
// src/be/scripts/boot-reembed.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb,
|
|
3
3
|
init_db
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-9wv4e7qs.js";
|
|
5
5
|
import"./cli-z2zcxes1.js";
|
|
6
6
|
import"./cli-q21d49ac.js";
|
|
7
7
|
import"./cli-anrj584m.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-apdrt1ch.js";
|
|
9
9
|
import {
|
|
10
10
|
init_secret_scrubber,
|
|
11
11
|
scrubSecrets
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-4j2mrzag.js";
|
|
13
13
|
import"./cli-p9swy5t3.js";
|
|
14
14
|
|
|
15
15
|
// src/be/boot-scrub-logs.ts
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
resolveClaudeBinary,
|
|
13
13
|
resolveClaudeBinaryArgv,
|
|
14
14
|
resolveClaudeBridgeEnabled
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-2fc97xm5.js";
|
|
16
16
|
import"./cli-psrqtw2m.js";
|
|
17
17
|
import"./cli-tng3131n.js";
|
|
18
18
|
import"./cli-zm7njwzd.js";
|
|
19
19
|
import"./cli-tghre7g6.js";
|
|
20
20
|
import"./cli-tkmm5nf9.js";
|
|
21
21
|
import"./cli-z2zcxes1.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-4j2mrzag.js";
|
|
23
23
|
import"./cli-7zd05xb4.js";
|
|
24
24
|
import"./cli-p9swy5t3.js";
|
|
25
25
|
export {
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
checkClaudeManagedCredentials,
|
|
4
4
|
composeManagedUserMessage,
|
|
5
5
|
normalizeRepoUrl
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2r7s8jhp.js";
|
|
7
7
|
import"./cli-07er7wrs.js";
|
|
8
8
|
import"./cli-yv9dttkh.js";
|
|
9
9
|
import"./cli-d6n0thxw.js";
|
|
10
10
|
import"./cli-gz9sbyk3.js";
|
|
11
11
|
import"./cli-tghre7g6.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-4j2mrzag.js";
|
|
13
13
|
import"./cli-p9swy5t3.js";
|
|
14
14
|
export {
|
|
15
15
|
normalizeRepoUrl,
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
handleScheduleTrigger,
|
|
5
5
|
runScript,
|
|
6
6
|
startWorkflowExecution
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-psz2xq0n.js";
|
|
8
8
|
import {
|
|
9
9
|
getScript
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-3cfvx630.js";
|
|
11
11
|
import {
|
|
12
12
|
createTaskWithSiblingAwareness,
|
|
13
13
|
scheduleContextKey
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-a0w6tqyc.js";
|
|
15
15
|
import {
|
|
16
16
|
getDb,
|
|
17
17
|
getDueScheduledTasks,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
init_telemetry,
|
|
22
22
|
telemetry,
|
|
23
23
|
updateScheduledTask
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-9wv4e7qs.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
embedScript
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-cya9knf9.js";
|
|
4
4
|
import {
|
|
5
5
|
computeContentHash,
|
|
6
6
|
decryptSecret,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getSwarmConfigs,
|
|
11
11
|
init_crypto,
|
|
12
12
|
init_db
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-9wv4e7qs.js";
|
|
14
14
|
import {
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-q21d49ac.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
init_secret_scrubber,
|
|
27
27
|
registerVolatileSecret
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-4j2mrzag.js";
|
|
29
29
|
import {
|
|
30
30
|
__commonJS,
|
|
31
31
|
__require,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
taskAttachmentDisplayUrl
|
|
3
|
+
} from "./cli-wspgs9bt.js";
|
|
4
|
+
import {
|
|
3
5
|
getAppUrl
|
|
4
6
|
} from "./cli-dh55d5fg.js";
|
|
5
7
|
|
|
@@ -72,22 +74,7 @@ function cancelActionBlock(taskId) {
|
|
|
72
74
|
}
|
|
73
75
|
var SLACK_ATTACHMENTS_MAX = 20;
|
|
74
76
|
function resolveAttachmentDisplay(a) {
|
|
75
|
-
|
|
76
|
-
case "url":
|
|
77
|
-
return a.url ?? "";
|
|
78
|
-
case "page":
|
|
79
|
-
return a.pageId ? `${getAppUrl()}/pages/${a.pageId}` : "page:";
|
|
80
|
-
case "agent-fs": {
|
|
81
|
-
const url = buildAgentFsLiveUrl({
|
|
82
|
-
path: a.path,
|
|
83
|
-
orgId: a.orgId,
|
|
84
|
-
driveId: a.driveId
|
|
85
|
-
});
|
|
86
|
-
return url ?? `agent-fs:${a.path ?? ""}`;
|
|
87
|
-
}
|
|
88
|
-
case "shared-fs":
|
|
89
|
-
return `shared-fs:${a.path ?? ""}`;
|
|
90
|
-
}
|
|
77
|
+
return taskAttachmentDisplayUrl(a);
|
|
91
78
|
}
|
|
92
79
|
function formatAttachmentsBlockForSlack(attachments) {
|
|
93
80
|
if (attachments.length === 0)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildModelsDevSeedRows
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-entbgsd5.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogEntry,
|
|
6
6
|
getActivePricingRow,
|
|
7
7
|
getDb,
|
|
8
8
|
init_db,
|
|
9
9
|
insertPricingRow
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-9wv4e7qs.js";
|
|
11
11
|
import {
|
|
12
12
|
init_secret_scrubber,
|
|
13
13
|
scrubSecrets
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-4j2mrzag.js";
|
|
15
15
|
|
|
16
16
|
// src/be/pricing-refresh.ts
|
|
17
17
|
init_secret_scrubber();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAdditiveBuffer,
|
|
3
3
|
extractSlackMessageText
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-nmt32dxp.js";
|
|
5
5
|
import {
|
|
6
6
|
getSlackApp,
|
|
7
7
|
registerTreeMessage
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-kppbkzj4.js";
|
|
9
9
|
import {
|
|
10
10
|
buildBufferFlushBlocks
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-6xd0bvf8.js";
|
|
12
12
|
import {
|
|
13
13
|
createTaskWithSiblingAwareness,
|
|
14
14
|
slackContextKey
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-a0w6tqyc.js";
|
|
16
16
|
import {
|
|
17
17
|
getLatestActiveTaskInThread,
|
|
18
18
|
getLeadAgent,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
init_db,
|
|
21
21
|
init_registry,
|
|
22
22
|
registerTemplate
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-9wv4e7qs.js";
|
|
24
24
|
|
|
25
25
|
// src/slack/event-dedup.ts
|
|
26
26
|
var DEFAULT_TTL_MS = 300000;
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
init_package,
|
|
27
27
|
package_default
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-apdrt1ch.js";
|
|
29
29
|
import {
|
|
30
30
|
init_secret_scrubber,
|
|
31
31
|
scrubSecrets
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-4j2mrzag.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__esm,
|
|
@@ -654,6 +654,9 @@ var init_types = __esm(() => {
|
|
|
654
654
|
TaskAttachmentKindSchema = _enum(["agent-fs", "url", "shared-fs", "page"]);
|
|
655
655
|
attachmentCommonFields = {
|
|
656
656
|
name: string().min(1).describe("Display name for the attachment."),
|
|
657
|
+
providerId: string().min(1).optional(),
|
|
658
|
+
providerKey: string().min(1).optional(),
|
|
659
|
+
capabilities: record(string(), unknown()).optional(),
|
|
657
660
|
mimeType: string().optional(),
|
|
658
661
|
sizeBytes: number().int().min(0).optional(),
|
|
659
662
|
sha256: string().optional(),
|
|
@@ -694,6 +697,9 @@ var init_types = __esm(() => {
|
|
|
694
697
|
url: string().optional(),
|
|
695
698
|
path: string().optional(),
|
|
696
699
|
pageId: string().optional(),
|
|
700
|
+
providerId: string().optional(),
|
|
701
|
+
providerKey: string().optional(),
|
|
702
|
+
capabilities: record(string(), unknown()).optional(),
|
|
697
703
|
orgId: string().optional(),
|
|
698
704
|
driveId: string().optional(),
|
|
699
705
|
mimeType: string().optional(),
|
|
@@ -702,7 +708,9 @@ var init_types = __esm(() => {
|
|
|
702
708
|
intent: string().optional(),
|
|
703
709
|
description: string().optional(),
|
|
704
710
|
isPrimary: boolean().default(false),
|
|
705
|
-
createdAt: exports_iso.datetime()
|
|
711
|
+
createdAt: exports_iso.datetime(),
|
|
712
|
+
createdBy: string().optional(),
|
|
713
|
+
updatedBy: string().optional()
|
|
706
714
|
});
|
|
707
715
|
UserSchema = object({
|
|
708
716
|
id: string(),
|
|
@@ -3517,6 +3525,7 @@ __export(exports_db, {
|
|
|
3517
3525
|
resetPromptTemplateToDefault: () => resetPromptTemplateToDefault,
|
|
3518
3526
|
resetOrphanedInProgressTasksForAgent: () => resetOrphanedInProgressTasksForAgent,
|
|
3519
3527
|
resetEmptyPollCount: () => resetEmptyPollCount,
|
|
3528
|
+
replaceTaskAttachment: () => replaceTaskAttachment,
|
|
3520
3529
|
releaseTask: () => releaseTask,
|
|
3521
3530
|
releaseStaleReviewingTasks: () => releaseStaleReviewingTasks,
|
|
3522
3531
|
releaseStaleProcessingInbox: () => releaseStaleProcessingInbox,
|
|
@@ -3759,6 +3768,7 @@ __export(exports_db, {
|
|
|
3759
3768
|
failPendingResumeIfUnclaimed: () => failPendingResumeIfUnclaimed,
|
|
3760
3769
|
deleteWorkflow: () => deleteWorkflow,
|
|
3761
3770
|
deleteUser: () => deleteUser,
|
|
3771
|
+
deleteTaskAttachment: () => deleteTaskAttachment,
|
|
3762
3772
|
deleteTask: () => deleteTask,
|
|
3763
3773
|
deleteSwarmRepo: () => deleteSwarmRepo,
|
|
3764
3774
|
deleteSwarmConfigByKey: () => deleteSwarmConfigByKey,
|
|
@@ -5253,6 +5263,9 @@ function rowToTaskAttachment(row) {
|
|
|
5253
5263
|
url: row.url ?? undefined,
|
|
5254
5264
|
path: row.path ?? undefined,
|
|
5255
5265
|
pageId: row.page_id ?? undefined,
|
|
5266
|
+
providerId: row.provider_id ?? undefined,
|
|
5267
|
+
providerKey: row.provider_key ?? undefined,
|
|
5268
|
+
capabilities: parseAttachmentCapabilities(row.capabilities),
|
|
5256
5269
|
orgId: row.agent_fs_org_id ?? undefined,
|
|
5257
5270
|
driveId: row.agent_fs_drive_id ?? undefined,
|
|
5258
5271
|
mimeType: row.mime_type ?? undefined,
|
|
@@ -5261,9 +5274,24 @@ function rowToTaskAttachment(row) {
|
|
|
5261
5274
|
intent: row.intent ?? undefined,
|
|
5262
5275
|
description: row.description ?? undefined,
|
|
5263
5276
|
isPrimary: !!row.is_primary,
|
|
5264
|
-
createdAt: row.created_at
|
|
5277
|
+
createdAt: row.created_at,
|
|
5278
|
+
createdBy: row.created_by ?? undefined,
|
|
5279
|
+
updatedBy: row.updated_by ?? undefined
|
|
5265
5280
|
};
|
|
5266
5281
|
}
|
|
5282
|
+
function parseAttachmentCapabilities(value) {
|
|
5283
|
+
if (!value)
|
|
5284
|
+
return;
|
|
5285
|
+
try {
|
|
5286
|
+
const parsed = JSON.parse(value);
|
|
5287
|
+
return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : undefined;
|
|
5288
|
+
} catch {
|
|
5289
|
+
return;
|
|
5290
|
+
}
|
|
5291
|
+
}
|
|
5292
|
+
function stringifyAttachmentCapabilities(value) {
|
|
5293
|
+
return value ? JSON.stringify(value) : null;
|
|
5294
|
+
}
|
|
5267
5295
|
function insertTaskAttachment(input) {
|
|
5268
5296
|
const db2 = getDb();
|
|
5269
5297
|
if (input.sha256) {
|
|
@@ -5285,15 +5313,59 @@ function insertTaskAttachment(input) {
|
|
|
5285
5313
|
const id = crypto.randomUUID();
|
|
5286
5314
|
const row = db2.prepare(`INSERT INTO task_attachments
|
|
5287
5315
|
(id, task_id, agent_id, name, kind, url, path, page_id,
|
|
5316
|
+
provider_id, provider_key, capabilities,
|
|
5288
5317
|
agent_fs_org_id, agent_fs_drive_id,
|
|
5289
|
-
mime_type, size_bytes, sha256, intent, description, is_primary
|
|
5290
|
-
|
|
5291
|
-
|
|
5318
|
+
mime_type, size_bytes, sha256, intent, description, is_primary,
|
|
5319
|
+
created_by, updated_by)
|
|
5320
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
5321
|
+
RETURNING *`).get(id, input.taskId, input.agentId ?? null, input.name, input.kind, input.url ?? null, input.path ?? null, input.pageId ?? null, input.providerId ?? defaultProviderId(input.kind), input.providerKey ?? defaultProviderKey(input), stringifyAttachmentCapabilities(input.capabilities), input.orgId ?? null, input.driveId ?? null, input.mimeType ?? null, input.sizeBytes ?? null, input.sha256 ?? null, input.intent ?? null, input.description ?? null, input.isPrimary ? 1 : 0, input.createdBy ?? null, input.updatedBy ?? input.createdBy ?? null);
|
|
5292
5322
|
if (!row) {
|
|
5293
5323
|
throw new Error("Failed to insert task attachment");
|
|
5294
5324
|
}
|
|
5295
5325
|
return rowToTaskAttachment(row);
|
|
5296
5326
|
}
|
|
5327
|
+
function defaultProviderId(kind) {
|
|
5328
|
+
if (kind === "agent-fs" || kind === "shared-fs")
|
|
5329
|
+
return "agent-fs";
|
|
5330
|
+
return kind;
|
|
5331
|
+
}
|
|
5332
|
+
function defaultProviderKey(input) {
|
|
5333
|
+
if (input.kind === "agent-fs" || input.kind === "shared-fs")
|
|
5334
|
+
return input.path ?? null;
|
|
5335
|
+
if (input.kind === "url")
|
|
5336
|
+
return input.url ?? null;
|
|
5337
|
+
if (input.kind === "page")
|
|
5338
|
+
return input.pageId ?? null;
|
|
5339
|
+
return null;
|
|
5340
|
+
}
|
|
5341
|
+
function deleteTaskAttachment(id) {
|
|
5342
|
+
const result = getDb().run("DELETE FROM task_attachments WHERE id = ?", [id]);
|
|
5343
|
+
return result.changes > 0;
|
|
5344
|
+
}
|
|
5345
|
+
function replaceTaskAttachment(id, input) {
|
|
5346
|
+
const row = getDb().prepare(`UPDATE task_attachments
|
|
5347
|
+
SET agent_id = ?,
|
|
5348
|
+
name = ?,
|
|
5349
|
+
kind = ?,
|
|
5350
|
+
url = ?,
|
|
5351
|
+
path = ?,
|
|
5352
|
+
page_id = ?,
|
|
5353
|
+
provider_id = ?,
|
|
5354
|
+
provider_key = ?,
|
|
5355
|
+
capabilities = ?,
|
|
5356
|
+
agent_fs_org_id = ?,
|
|
5357
|
+
agent_fs_drive_id = ?,
|
|
5358
|
+
mime_type = ?,
|
|
5359
|
+
size_bytes = ?,
|
|
5360
|
+
sha256 = ?,
|
|
5361
|
+
intent = ?,
|
|
5362
|
+
description = ?,
|
|
5363
|
+
is_primary = ?,
|
|
5364
|
+
updated_by = ?
|
|
5365
|
+
WHERE id = ?
|
|
5366
|
+
RETURNING *`).get(input.agentId ?? null, input.name, input.kind, input.url ?? null, input.path ?? null, input.pageId ?? null, input.providerId ?? defaultProviderId(input.kind), input.providerKey ?? defaultProviderKey(input), stringifyAttachmentCapabilities(input.capabilities), input.orgId ?? null, input.driveId ?? null, input.mimeType ?? null, input.sizeBytes ?? null, input.sha256 ?? null, input.intent ?? null, input.description ?? null, input.isPrimary ? 1 : 0, input.updatedBy ?? null, id);
|
|
5367
|
+
return row ? rowToTaskAttachment(row) : null;
|
|
5368
|
+
}
|
|
5297
5369
|
function getTaskAttachments(taskId) {
|
|
5298
5370
|
return getDb().prepare("SELECT * FROM task_attachments WHERE task_id = ? ORDER BY created_at ASC, rowid ASC").all(taskId).map(rowToTaskAttachment);
|
|
5299
5371
|
}
|
|
@@ -9945,4 +10017,4 @@ var init_db = __esm(() => {
|
|
|
9945
10017
|
};
|
|
9946
10018
|
});
|
|
9947
10019
|
|
|
9948
|
-
export { interpolate, deepInterpolate, init_template, registerTemplate, getTemplateDefinition, getAllTemplateDefinitions, init_registry, configureHttpResolver, resolveTemplate, resolveTemplateAsync, init_resolver, initTelemetry, telemetry, init_telemetry, ModelTierSchema, ReasoningEffortSchema, splitLegacyModelAlias, resolveTaskModelSelection, AgentTaskStatusSchema, isTerminalTaskStatus, AgentTaskSourceSchema, ProviderNameSchema, FollowUpConfigSchema, AgentTaskSchema, AttachmentInputSchema, TaskAttachmentSchema, InboxItemTypeSchema, InboxItemStatusSchema, FavoriteItemTypeSchema, TaskTemplateKindSchema, AgentSchema, AgentLatestModelSchema, AgentCredStatusSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, ResumeReasonSchema, AgentLogSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, ScheduledTaskTargetTypeSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, PageContentTypeSchema, PageAuthModeSchema, MetricDefinitionSchema, MetricVersionSchema, WorkflowRunStatusSchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptApiAuthModeSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types, setRequestAuth, getRequestAuth, init_request_auth_context, encryptSecret, decryptSecret, getEncryptionKey, init_crypto, normalizeDateRequired, init_date_utils, init_session_templates, init_templates, init_templates2 as init_templates1, isReservedConfigKey, reservedKeyError, validateConfigValue, init_swarm_config_guard, onTaskStarted, init_task_lifecycle_events, generateDefaultClaudeMd, generateDefaultSoulMd, generateDefaultIdentityMd, generateDefaultToolsMd, init_defaults, isSqliteVecAvailable, initDb, getDb, closeDb, computeContentHash, createContextVersion, getLatestContextVersion, getContextVersion, getContextVersionHistory, agentQueries, updateAgentCredentialState, createAgent, getAgentById, getAllAgents, getLeadAgent, updateAgentStatus, updateAgentMaxTasks, updateAgentProvider, setAgentHarnessProvider, updateAgentCredStatus, listAgentsWithCredStatusByProvider, getAgentHarnessProviders, updateAgentActivity, MAX_EMPTY_POLLS, incrementEmptyPollCount, resetEmptyPollCount, shouldBlockPolling, deleteAgent, getActiveTaskCount, hasCapacity, getRemainingCapacity, updateAgentStatusFromCapacity, taskQueries, createTask, getPendingTaskForAgent, assignUnassignedTaskPending, startTask, getTaskById, markTaskSlackReplySent, setSlackMessageTracking, getChildTasks, hasNonTerminalResumeChild, hasNonTerminalRerouteDecisionChild, updateTaskClaudeSessionId, updateTaskVcs, getTasksByAgentId, getAgentCurrentTask, getTasksByStatus, findTaskByVcs, findTaskByGitHub, getAllTasks, getTasksCount, getTaskStats, getCompletedSlackTasks, getRecentlyFinishedWorkerTasks, markTasksNotified, resetTasksNotified, getInProgressSlackTasks, getInProgressTasksByContextKey, findExistingLinearTrackerContextWork, getLatestTaskByContextKey, getAgentWorkingOnThread, getLatestActiveTaskInThread, getMostRecentTaskInThread, findCompletedTaskInThread, findRecentCancelledTaskInThread, completeTask, failTask, cancelTask, supersedeTask, backfillSupersedeTaskResumeTaskId, pauseTask, resumeTask, getPausedTasksForAgent, getOrphanedInProgressTasksForAgent, resetOrphanedInProgressTasksForAgent, getRecentlyCancelledTasksForAgent, deleteTask, updateTaskProgress, insertTaskAttachment, getTaskAttachments, getAgentWithTasks, getAllAgentsWithTasks, logQueries, createLogEntry, getLogsByAgentId, getLogsByTaskId, getLogsByTaskIdChronological, getLogsByEventType, getAllLogs, findRecentSimilarTasks, createTaskExtended, claimTask, releaseTask, acceptTask, rejectTask, moveTaskToBacklog, moveTaskFromBacklog, releaseStaleReviewingTasks, getOfferedTasksForAgent, claimOfferedTask, getUnassignedTasksCount, getUnassignedTaskIds, checkDependencies, getDependentTasks, cascadeFailDependents, updateAgentProfile, updateAgentName, createChannel, getMessageById, getChannelById, getChannelByName, getAllChannels, deleteChannel, postMessage, getChannelMessages, updateReadState, getLastReadAt, getUnreadMessages, getMentionsForAgent, getInboxSummary, claimMentions, releaseMentionProcessing, releaseStaleMentionProcessing, createService, getServiceById, getServiceByAgentAndName, getServicesByAgentId, getAllServices, updateServiceStatus, deleteService, upsertService, deleteServicesByAgentId, sessionLogQueries, createSessionLogs, getSessionLogsByTaskId, getSessionLogsBySession, createSessionCost, getSessionCostsByTaskId, getSessionCostsByAgentId, getAllSessionCosts, getSessionCostsFiltered, getSessionCostSummary, getDashboardCostSummary, createInboxMessage, getInboxMessageById, getUnreadInboxMessages, claimInboxMessages, markInboxMessageRead, markInboxMessageResponded, markInboxMessageDelegated, releaseStaleProcessingInbox, getConcurrentContext, getScheduledTasks, getScheduledTaskById, getScheduledTaskByName, createScheduledTask, updateScheduledTask, deleteScheduledTask, getDueScheduledTasks, autoEncryptLegacyPlaintextSecrets, maskSecrets, getSwarmConfigs, getInjectableGlobalConfigs, getSwarmConfigById, getSwarmConfigLookupById, upsertSwarmConfig, deleteSwarmConfig, deleteSwarmConfigByKey, getResolvedConfig, getSwarmRepos, getSwarmRepoById, getSwarmRepoByName, getSwarmRepoByUrl, createSwarmRepo, updateSwarmRepo, deleteSwarmRepo, getAgentMailInboxMapping, getAgentMailInboxMappingsByAgent, getAllAgentMailInboxMappings, createAgentMailInboxMapping, deleteAgentMailInboxMapping, findTaskByAgentMailThread, insertActiveSession, deleteActiveSession, deleteActiveSessionById, getActiveSessions, heartbeatActiveSession, cleanupStaleSessions, cleanupAgentSessions, updateActiveSessionProviderSessionId, getActiveSessionForTask, reassociateSessionLogs, getStalledInProgressTasks, getStalePinnedResumes, failPendingResumeIfUnclaimed, getIdleWorkersWithCapacity, getUnassignedPoolTasks, getRecentFailedTasks, getRecentCompletedCount, getRecentFailedCount, createWorkflow, getWorkflow, listWorkflows, updateWorkflow, deleteWorkflow, getWorkflowsByScheduleId, createWorkflowRun, getWorkflowRun, updateWorkflowRun, listWorkflowRuns, createWorkflowRunStep, getWorkflowRunStep, updateWorkflowRunStep, getWorkflowRunStepsByRunId, getStuckWorkflowRuns, getLastSuccessfulRun, getLastRunStart, getRetryableSteps, getCompletedStepNodeIds, getTaskByWorkflowRunStepId, getStepByIdempotencyKey, getStepCountForNode, getLatestStepForNode, createWorkflowVersion, getWorkflowVersions, getWorkflowVersion, createPage, getPage, getPageBySlug, getLatestPageBySlug, listPagesByAgent, listAllPages, countAllPages, countPagesByAgent, updatePage, deletePage, incrementPageViewCount, createPageVersion, getPageVersions, getPageVersion, createMetric, getMetric, getMetricBySlug, listMetricsByAgent, listAllMetrics, countAllMetrics, countMetricsByAgent, updateMetric, deleteMetric, createMetricVersion, getMetricVersions, getMetricVersion, getPromptTemplates, getPromptTemplateById, upsertPromptTemplate, deletePromptTemplate, resetPromptTemplateToDefault, getPromptTemplateHistory, resolvePromptTemplate, checkoutPromptTemplate, getAllChannelActivityCursors, getChannelActivityCursor, upsertChannelActivityCursor, createApprovalRequest, getApprovalRequestById, resolveApprovalRequest, updateApprovalRequestNotifications, listApprovalRequests, getStuckApprovalRuns, getApprovalRequestByStepId, getExpiredPendingApprovals, createWaitState, getWaitStateById, getWaitStateByStepId, getDueWaitStates, getPendingEventWaitNames, getPendingWaitsByEvent, resolveWaitState, getStuckWaitRuns, SKILL_FILE_LIMITS, normalizeSkillFilePath, createSkill, updateSkill, listSkillFileManifest, getSkillFiles, getSkillFile, upsertSkillFile, upsertSkillFiles, deleteSkillFile, deleteSkill, getSkillById, getSkillByName, listSkills, searchSkills, installSkill, getSystemDefaultSkills, installSystemDefaultSkillsForAgent, uninstallSkill, getAgentSkills, toggleAgentSkill, createMcpServer, updateMcpServer, deleteMcpServer, getMcpServerById, getMcpServerByName, listMcpServers, installMcpServer, uninstallMcpServer, getAgentMcpServers, createContextSnapshot, getContextSnapshotsByTaskId, getContextSnapshotsBySessionId, getContextSummaryByTaskId, getAvailableKeyIndices, recordKeyUsage, markKeyRateLimited, recordKeyRateLimitWindows, setApiKeyName, clearKeyRateLimit, getKeyStatuses, getKeyCostSummary, getUserById, getAllUsers, createUser, updateUser, deleteUser, listInboxState, upsertInboxState, listUserFavorites, getFavoriteItemIdSet, setUserFavorite, withFavoriteFlags, listTaskTemplates, getRootTaskChain, listRecentSessions, countSessions, getBudget, getBudgets, upsertBudget, deleteBudget, getAllPricingRows, getPricingRows, getActivePricingRow, insertPricingRow, deletePricingRow, getDailySpendForAgent, getDailySpendGlobal, getDailySpendForUser, recordBudgetRefusalNotification, getBudgetRefusalNotification, getRecentBudgetRefusalNotifications, hasBudgetRefusalNotificationToday, setBudgetRefusalFollowUpTaskId, getLiveAgentCounts, getInstanceActivity, getSwarmMetrics, hasFirstCompletedTask, getKv, upsertKv, deleteKv, KvTypeCollisionError, incrKv, listKv, countKv, createScriptRun, recordInlineScriptRun, getScriptRun, getScriptRunByIdempotencyKey, listScriptRuns, countScriptRuns, countActiveScriptRuns, updateScriptRun, getRunningScriptRuns, getScriptRunJournalStep, upsertScriptRunJournalStep, listScriptRunJournalSteps, countScriptRunJournalSteps, countScriptRunJournalAgentTaskSteps, exports_db, init_db };
|
|
10020
|
+
export { interpolate, deepInterpolate, init_template, registerTemplate, getTemplateDefinition, getAllTemplateDefinitions, init_registry, configureHttpResolver, resolveTemplate, resolveTemplateAsync, init_resolver, initTelemetry, telemetry, init_telemetry, ModelTierSchema, ReasoningEffortSchema, splitLegacyModelAlias, resolveTaskModelSelection, AgentTaskStatusSchema, isTerminalTaskStatus, AgentTaskSourceSchema, ProviderNameSchema, FollowUpConfigSchema, AgentTaskSchema, AttachmentInputSchema, TaskAttachmentSchema, InboxItemTypeSchema, InboxItemStatusSchema, FavoriteItemTypeSchema, TaskTemplateKindSchema, AgentSchema, AgentLatestModelSchema, AgentCredStatusSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, ResumeReasonSchema, AgentLogSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, ScheduledTaskTargetTypeSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, PageContentTypeSchema, PageAuthModeSchema, MetricDefinitionSchema, MetricVersionSchema, WorkflowRunStatusSchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptApiAuthModeSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types, setRequestAuth, getRequestAuth, getCurrentRequestAuth, init_request_auth_context, encryptSecret, decryptSecret, getEncryptionKey, init_crypto, normalizeDateRequired, init_date_utils, init_session_templates, init_templates, init_templates2 as init_templates1, isReservedConfigKey, reservedKeyError, validateConfigValue, init_swarm_config_guard, onTaskStarted, init_task_lifecycle_events, generateDefaultClaudeMd, generateDefaultSoulMd, generateDefaultIdentityMd, generateDefaultToolsMd, init_defaults, isSqliteVecAvailable, initDb, getDb, closeDb, computeContentHash, createContextVersion, getLatestContextVersion, getContextVersion, getContextVersionHistory, agentQueries, updateAgentCredentialState, createAgent, getAgentById, getAllAgents, getLeadAgent, updateAgentStatus, updateAgentMaxTasks, updateAgentProvider, setAgentHarnessProvider, updateAgentCredStatus, listAgentsWithCredStatusByProvider, getAgentHarnessProviders, updateAgentActivity, MAX_EMPTY_POLLS, incrementEmptyPollCount, resetEmptyPollCount, shouldBlockPolling, deleteAgent, getActiveTaskCount, hasCapacity, getRemainingCapacity, updateAgentStatusFromCapacity, taskQueries, createTask, getPendingTaskForAgent, assignUnassignedTaskPending, startTask, getTaskById, markTaskSlackReplySent, setSlackMessageTracking, getChildTasks, hasNonTerminalResumeChild, hasNonTerminalRerouteDecisionChild, updateTaskClaudeSessionId, updateTaskVcs, getTasksByAgentId, getAgentCurrentTask, getTasksByStatus, findTaskByVcs, findTaskByGitHub, getAllTasks, getTasksCount, getTaskStats, getCompletedSlackTasks, getRecentlyFinishedWorkerTasks, markTasksNotified, resetTasksNotified, getInProgressSlackTasks, getInProgressTasksByContextKey, findExistingLinearTrackerContextWork, getLatestTaskByContextKey, getAgentWorkingOnThread, getLatestActiveTaskInThread, getMostRecentTaskInThread, findCompletedTaskInThread, findRecentCancelledTaskInThread, completeTask, failTask, cancelTask, supersedeTask, backfillSupersedeTaskResumeTaskId, pauseTask, resumeTask, getPausedTasksForAgent, getOrphanedInProgressTasksForAgent, resetOrphanedInProgressTasksForAgent, getRecentlyCancelledTasksForAgent, deleteTask, updateTaskProgress, insertTaskAttachment, deleteTaskAttachment, replaceTaskAttachment, getTaskAttachments, getAgentWithTasks, getAllAgentsWithTasks, logQueries, createLogEntry, getLogsByAgentId, getLogsByTaskId, getLogsByTaskIdChronological, getLogsByEventType, getAllLogs, findRecentSimilarTasks, createTaskExtended, claimTask, releaseTask, acceptTask, rejectTask, moveTaskToBacklog, moveTaskFromBacklog, releaseStaleReviewingTasks, getOfferedTasksForAgent, claimOfferedTask, getUnassignedTasksCount, getUnassignedTaskIds, checkDependencies, getDependentTasks, cascadeFailDependents, updateAgentProfile, updateAgentName, createChannel, getMessageById, getChannelById, getChannelByName, getAllChannels, deleteChannel, postMessage, getChannelMessages, updateReadState, getLastReadAt, getUnreadMessages, getMentionsForAgent, getInboxSummary, claimMentions, releaseMentionProcessing, releaseStaleMentionProcessing, createService, getServiceById, getServiceByAgentAndName, getServicesByAgentId, getAllServices, updateServiceStatus, deleteService, upsertService, deleteServicesByAgentId, sessionLogQueries, createSessionLogs, getSessionLogsByTaskId, getSessionLogsBySession, createSessionCost, getSessionCostsByTaskId, getSessionCostsByAgentId, getAllSessionCosts, getSessionCostsFiltered, getSessionCostSummary, getDashboardCostSummary, createInboxMessage, getInboxMessageById, getUnreadInboxMessages, claimInboxMessages, markInboxMessageRead, markInboxMessageResponded, markInboxMessageDelegated, releaseStaleProcessingInbox, getConcurrentContext, getScheduledTasks, getScheduledTaskById, getScheduledTaskByName, createScheduledTask, updateScheduledTask, deleteScheduledTask, getDueScheduledTasks, autoEncryptLegacyPlaintextSecrets, maskSecrets, getSwarmConfigs, getInjectableGlobalConfigs, getSwarmConfigById, getSwarmConfigLookupById, upsertSwarmConfig, deleteSwarmConfig, deleteSwarmConfigByKey, getResolvedConfig, getSwarmRepos, getSwarmRepoById, getSwarmRepoByName, getSwarmRepoByUrl, createSwarmRepo, updateSwarmRepo, deleteSwarmRepo, getAgentMailInboxMapping, getAgentMailInboxMappingsByAgent, getAllAgentMailInboxMappings, createAgentMailInboxMapping, deleteAgentMailInboxMapping, findTaskByAgentMailThread, insertActiveSession, deleteActiveSession, deleteActiveSessionById, getActiveSessions, heartbeatActiveSession, cleanupStaleSessions, cleanupAgentSessions, updateActiveSessionProviderSessionId, getActiveSessionForTask, reassociateSessionLogs, getStalledInProgressTasks, getStalePinnedResumes, failPendingResumeIfUnclaimed, getIdleWorkersWithCapacity, getUnassignedPoolTasks, getRecentFailedTasks, getRecentCompletedCount, getRecentFailedCount, createWorkflow, getWorkflow, listWorkflows, updateWorkflow, deleteWorkflow, getWorkflowsByScheduleId, createWorkflowRun, getWorkflowRun, updateWorkflowRun, listWorkflowRuns, createWorkflowRunStep, getWorkflowRunStep, updateWorkflowRunStep, getWorkflowRunStepsByRunId, getStuckWorkflowRuns, getLastSuccessfulRun, getLastRunStart, getRetryableSteps, getCompletedStepNodeIds, getTaskByWorkflowRunStepId, getStepByIdempotencyKey, getStepCountForNode, getLatestStepForNode, createWorkflowVersion, getWorkflowVersions, getWorkflowVersion, createPage, getPage, getPageBySlug, getLatestPageBySlug, listPagesByAgent, listAllPages, countAllPages, countPagesByAgent, updatePage, deletePage, incrementPageViewCount, createPageVersion, getPageVersions, getPageVersion, createMetric, getMetric, getMetricBySlug, listMetricsByAgent, listAllMetrics, countAllMetrics, countMetricsByAgent, updateMetric, deleteMetric, createMetricVersion, getMetricVersions, getMetricVersion, getPromptTemplates, getPromptTemplateById, upsertPromptTemplate, deletePromptTemplate, resetPromptTemplateToDefault, getPromptTemplateHistory, resolvePromptTemplate, checkoutPromptTemplate, getAllChannelActivityCursors, getChannelActivityCursor, upsertChannelActivityCursor, createApprovalRequest, getApprovalRequestById, resolveApprovalRequest, updateApprovalRequestNotifications, listApprovalRequests, getStuckApprovalRuns, getApprovalRequestByStepId, getExpiredPendingApprovals, createWaitState, getWaitStateById, getWaitStateByStepId, getDueWaitStates, getPendingEventWaitNames, getPendingWaitsByEvent, resolveWaitState, getStuckWaitRuns, SKILL_FILE_LIMITS, normalizeSkillFilePath, createSkill, updateSkill, listSkillFileManifest, getSkillFiles, getSkillFile, upsertSkillFile, upsertSkillFiles, deleteSkillFile, deleteSkill, getSkillById, getSkillByName, listSkills, searchSkills, installSkill, getSystemDefaultSkills, installSystemDefaultSkillsForAgent, uninstallSkill, getAgentSkills, toggleAgentSkill, createMcpServer, updateMcpServer, deleteMcpServer, getMcpServerById, getMcpServerByName, listMcpServers, installMcpServer, uninstallMcpServer, getAgentMcpServers, createContextSnapshot, getContextSnapshotsByTaskId, getContextSnapshotsBySessionId, getContextSummaryByTaskId, getAvailableKeyIndices, recordKeyUsage, markKeyRateLimited, recordKeyRateLimitWindows, setApiKeyName, clearKeyRateLimit, getKeyStatuses, getKeyCostSummary, getUserById, getAllUsers, createUser, updateUser, deleteUser, listInboxState, upsertInboxState, listUserFavorites, getFavoriteItemIdSet, setUserFavorite, withFavoriteFlags, listTaskTemplates, getRootTaskChain, listRecentSessions, countSessions, getBudget, getBudgets, upsertBudget, deleteBudget, getAllPricingRows, getPricingRows, getActivePricingRow, insertPricingRow, deletePricingRow, getDailySpendForAgent, getDailySpendGlobal, getDailySpendForUser, recordBudgetRefusalNotification, getBudgetRefusalNotification, getRecentBudgetRefusalNotifications, hasBudgetRefusalNotificationToday, setBudgetRefusalFollowUpTaskId, getLiveAgentCounts, getInstanceActivity, getSwarmMetrics, hasFirstCompletedTask, getKv, upsertKv, deleteKv, KvTypeCollisionError, incrKv, listKv, countKv, createScriptRun, recordInlineScriptRun, getScriptRun, getScriptRunByIdempotencyKey, listScriptRuns, countScriptRuns, countActiveScriptRuns, updateScriptRun, getRunningScriptRuns, getScriptRunJournalStep, upsertScriptRunJournalStep, listScriptRunJournalSteps, countScriptRunJournalSteps, countScriptRunJournalAgentTaskSteps, exports_db, init_db };
|