@desplega.ai/agent-swarm 2.13.1 → 2.13.2
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/{acp-adapter-xtj40wd8.js → acp-adapter-x1qqgzwx.js} +5 -5
- package/dist/{acp-targets-n7vm5atw.js → acp-targets-mz8c5dnt.js} +4 -4
- package/dist/{actions-hq6wp9xv.js → actions-5ft3qp5a.js} +25 -25
- package/dist/{agent-fs-provision-y0qc1rdd.js → agent-fs-provision-6fgz7wvz.js} +4 -4
- package/dist/{amp-adapter-1qqs6h91.js → amp-adapter-nthn8ezm.js} +1 -1
- package/dist/{app-7m4z44rv.js → app-535m78qw.js} +8 -8
- package/dist/{approval-notifications-8sr41gjx.js → approval-notifications-dewbk403.js} +9 -9
- package/dist/{assistant-hkczwfv6.js → assistant-39zyabv2.js} +25 -25
- package/dist/{boot-args-schema-8025snev.js → boot-args-schema-bqv5bf77.js} +1 -1
- package/dist/{boot-reembed-4bbpxjh1.js → boot-reembed-157c0gcz.js} +1 -1
- package/dist/{boot-reembed-15m87nr1.js → boot-reembed-fas7z3zn.js} +1 -1
- package/dist/{boot-scrub-sweep-eajr97e9.js → boot-scrub-sweep-tmec0be2.js} +2 -2
- package/dist/{boot-seeds-9cwy39jx.js → boot-seeds-32zm50x2.js} +4 -4
- package/dist/{claude-adapter-g61wa4rt.js → claude-adapter-gwq7x2nj.js} +2 -2
- package/dist/{claude-managed-adapter-znkk0prm.js → claude-managed-adapter-rkvw6fvq.js} +2 -2
- package/dist/{claude-managed-setup-f1wndkr2.js → claude-managed-setup-0vgz4d1j.js} +4 -4
- package/dist/{claude-sdk-session-687xzf21.js → claude-sdk-session-5wbwxy8c.js} +11964 -11769
- package/dist/{cli-snypfjgj.js → cli-0f7n3td3.js} +1 -1
- package/dist/{cli-0m77n7ej.js → cli-1f48qdnb.js} +54 -12
- package/dist/{cli-04103ryh.js → cli-1gevjrc1.js} +1 -1
- package/dist/{cli-a8ts6x1n.js → cli-2wde56gv.js} +5 -5
- package/dist/{cli-aebswqmz.js → cli-31vt7baf.js} +14 -14
- package/dist/{cli-cn6fpa1p.js → cli-4djg31jh.js} +1 -1
- package/dist/{cli-bjmq14k9.js → cli-5k1hvycs.js} +3 -3
- package/dist/{cli-mmw2sjaf.js → cli-62fjschk.js} +1 -1
- package/dist/{cli-t90k0phh.js → cli-69eq6gdk.js} +15 -15
- package/dist/{cli-dd57p1gd.js → cli-6rmryz03.js} +2 -2
- package/dist/{cli-byxsctca.js → cli-7m6bbtab.js} +6 -6
- package/dist/{cli-c8kqmzzf.js → cli-8a4qg44m.js} +1 -1
- package/dist/{cli-8rbkw18r.js → cli-8qvte9hn.js} +2 -2
- package/dist/{cli-h03j6je3.js → cli-a6rzw649.js} +2 -2
- package/dist/{cli-w41bvvms.js → cli-b0kqw55g.js} +1 -1
- package/dist/{cli-84xtgbn6.js → cli-b0m3bg0f.js} +100 -2
- package/dist/{cli-zaate0rd.js → cli-c9bwawf9.js} +2 -2
- package/dist/{cli-4mj5g29m.js → cli-cs26ed89.js} +6 -6
- package/dist/{cli-yeh3g1q6.js → cli-d0jb2qnt.js} +23 -23
- package/dist/{cli-cp0m07wb.js → cli-d528acsw.js} +1 -1
- package/dist/{cli-fn8aj7gb.js → cli-dnvmwsvc.js} +95 -68
- package/dist/{cli-w6c6dj91.js → cli-e87fg3en.js} +1 -1
- package/dist/{cli-h9bejmkf.js → cli-erh1rgh4.js} +49 -26
- package/dist/{cli-9xx36trj.js → cli-ewb028rs.js} +2 -2
- package/dist/{cli-hs3mqswp.js → cli-f1sdh8ca.js} +4 -4
- package/dist/{cli-zvpkrgsc.js → cli-fcwrd7bh.js} +3 -3
- package/dist/{cli-sfajkbd7.js → cli-fgm2mad9.js} +2 -2
- package/dist/{cli-32xndx6b.js → cli-g0b3ma7r.js} +1 -1
- package/dist/{cli-nk8swfpx.js → cli-gc7jkf4a.js} +3 -3
- package/dist/{cli-z6m6xzxt.js → cli-getrvmtx.js} +26 -5
- package/dist/{cli-y6qqbpwc.js → cli-j2ybkdk2.js} +1 -1
- package/dist/{cli-1dr5at77.js → cli-jkkcm72j.js} +10 -10
- package/dist/{cli-cqxwjb93.js → cli-ka13xx6b.js} +1 -1
- package/dist/{cli-4h90xaet.js → cli-m1wddksc.js} +1 -1
- package/dist/{cli-qx1dwrr5.js → cli-n14r8h4n.js} +2 -2
- package/dist/{cli-jhtvt7gn.js → cli-n46d87mj.js} +3 -3
- package/dist/{cli-13t0smbk.js → cli-nkfv398a.js} +185 -58
- package/dist/{cli-p7g7wd9n.js → cli-nvqq3232.js} +7 -7
- package/dist/{cli-0a336ze7.js → cli-r4fphq38.js} +3 -3
- package/dist/{cli-4tbvndmm.js → cli-r8ddn0hf.js} +1 -1
- package/dist/{cli-3m8vqehw.js → cli-rvhaahfv.js} +2 -2
- package/dist/{cli-cd9acnvd.js → cli-s08zsqva.js} +2 -2
- package/dist/{cli-w24f3j49.js → cli-sjk85d7v.js} +6 -5
- package/dist/{cli-grcc2h2g.js → cli-t9nxq30h.js} +6 -6
- package/dist/{cli-6r1dwegd.js → cli-tbdw3f92.js} +2 -2
- package/dist/{cli-0fx95c06.js → cli-tceqvv6h.js} +2 -2
- package/dist/{cli-tzzas8rb.js → cli-tgmate57.js} +2 -2
- package/dist/{cli-3zyme1wt.js → cli-wdtqkqnq.js} +3 -3
- package/dist/{cli-8cmjkbvj.js → cli-x7aqhxj5.js} +1 -1
- package/dist/{cli-7ewre3dm.js → cli-xerdrnqs.js} +2 -2
- package/dist/{cli-c0tyzt73.js → cli-xysy1g8x.js} +1 -1
- package/dist/{cli-1b5axkt1.js → cli-zm6bkx3e.js} +2 -2
- package/dist/{cli-1carhg8g.js → cli-zqy28rwx.js} +2 -2
- package/dist/cli.js +17 -16
- package/dist/{codex-adapter-ysfg6ty3.js → codex-adapter-x25xfbnh.js} +2 -2
- package/dist/{codex-session-runner-823scr6g.js → codex-session-runner-kn5xnrvp.js} +2 -2
- package/dist/{commands-5rbm07fz.js → commands-8n59gxmy.js} +3 -3
- package/dist/{controllers-connect-34jzhfft.js → controllers-connect-09gvkrhc.js} +24 -24
- package/dist/core-2b8bv6ny.js +42 -0
- package/dist/{db-6bkgbfwk.js → db-e71keqxk.js} +3 -3
- package/dist/{db-hcj16x7z.js → db-spg81qtr.js} +1 -1
- package/dist/{dispatcher-jgjqrfzv.js → dispatcher-fr4vawwb.js} +23 -23
- package/dist/{easter-egg-3d-w17nsny6.js → easter-egg-3d-ac9tv9a6.js} +1 -1
- package/dist/{embedding-space-v06fwy7b.js → embedding-space-an77f45k.js} +6 -6
- package/dist/{embeddings-g50dxea4.js → embeddings-jkrehejr.js} +1 -1
- package/dist/{execute-1n36haw1.js → execute-3mys4nta.js} +1 -1
- package/dist/{external-channel-43tv8pg6.js → external-channel-s6zxpts9.js} +2 -2
- package/dist/{fx-adapter-bvh05t4a.js → fx-adapter-4yet1c4f.js} +6 -6
- package/dist/{grok-adapter-my5j8mdf.js → grok-adapter-8ge6tw7m.js} +6 -6
- package/dist/handlers-0r9evrdj.js +41 -0
- package/dist/{heartbeat-sf3nk937.js → heartbeat-jjpb44e5.js} +25 -25
- package/dist/{hook-m1m9dm6w.js → hook-68gbs87k.js} +1 -1
- package/dist/{hook-dqph1e05.js → hook-y6n23zzj.js} +1 -1
- package/dist/{http-w0th1cz9.js → http-8c6y008s.js} +297 -97
- package/dist/{index-ffba0z8q.js → index-0vthtbc2.js} +20 -18
- package/dist/index-1v23363p.js +39 -0
- package/dist/index-30qw6vyw.js +44 -0
- package/dist/index-6bm3w6cn.js +40 -0
- package/dist/{index-gkpfgpg7.js → index-6h3r0vpe.js} +1 -1
- package/dist/{index-e8pz8qdg.js → index-7dgxveck.js} +2 -2
- package/dist/{index-k8ajc0g0.js → index-maddg9ys.js} +1 -1
- package/dist/{index-y4vd4mhn.js → index-mbpxhc4w.js} +1 -1
- package/dist/index-rz8ve510.js +569 -0
- package/dist/{index-c0e8en64.js → index-we3nd2t0.js} +1 -1
- package/dist/{index-pb03vans.js → index-xcw7hjt5.js} +25 -25
- package/dist/{index-ez823q84.js → index-ym9fgxad.js} +1 -1
- package/dist/{keepalive-2v06q2e8.js → keepalive-7e9r5dvp.js} +4 -4
- package/dist/lead-3jpc7kcr.js +79 -0
- package/dist/{maintenance-vx7vjhhy.js → maintenance-d3erjvcg.js} +1 -1
- package/dist/{oauth-refresh-sweep-g06k4bza.js → oauth-refresh-sweep-0qh70988.js} +3 -3
- package/dist/{object-webhooks-3dzdq4fm.js → object-webhooks-ac7v2q5p.js} +7 -7
- package/dist/{onboard-232pazny.js → onboard-5yphtken.js} +3 -3
- package/dist/{opencode-adapter-t0paqbh8.js → opencode-adapter-0xvyba4m.js} +3 -3
- package/dist/{otel-impl-kmpkyp4y.js → otel-impl-svqp691q.js} +1 -1
- package/dist/{pending-x0z3vx1x.js → pending-bn4xe5br.js} +24 -24
- package/dist/{pi-mono-adapter-7pmypn6d.js → pi-mono-adapter-763s8a3w.js} +6 -6
- package/dist/{pricing-refresh-ytjmtyd7.js → pricing-refresh-kfc215mf.js} +2 -2
- package/dist/{rbac-roles-fgm5mxr2.js → rbac-roles-3bznvkpt.js} +3 -3
- package/dist/{rbac-roles-xyaxekh3.js → rbac-roles-6r4h2ghj.js} +2 -2
- package/dist/{render-v2-ws972g4r.js → render-v2-f3qedbpy.js} +8 -8
- package/dist/{resume-m6mjzhkp.js → resume-vcag4ann.js} +11 -11
- package/dist/{runtime-zzpc0c8a.js → runtime-x0s55z2t.js} +1 -1
- package/dist/{session-access-vp35xs91.js → session-access-nwzve8q2.js} +5 -5
- package/dist/{session-source-backfill-p73e8zbe.js → session-source-backfill-jpqfzmgz.js} +1 -1
- package/dist/{setup-r4kd7rxg.js → setup-d2smwaem.js} +1 -1
- package/dist/thread-buffer-8fc703jc.js +42 -0
- package/dist/{tree-visibility-07h2tbs2.js → tree-visibility-dwzc8en0.js} +2 -2
- package/dist/{user-merge-jobs-96vg9rpe.js → user-merge-jobs-4ce7kma2.js} +3 -3
- package/dist/{virtual-modules-vgn3f2x4.js → virtual-modules-78a6yw71.js} +1 -1
- package/dist/{work-objects-74hbcx3e.js → work-objects-m0w1e7q8.js} +26 -26
- package/dist/worker-3p2vq107.js +79 -0
- package/dist/{worker-follow-up-ezavwn5d.js → worker-follow-up-e3t6f895.js} +23 -23
- package/openapi.json +3 -2
- package/package.json +6 -5
- package/src/be/migrations/341_user_token_expiry.sql +4 -0
- package/src/be/scripts/run-credential.ts +55 -1
- package/src/be/scripts/typecheck.ts +4 -4
- package/src/be/scripts/user-code-mode.ts +160 -0
- package/src/be/users.ts +48 -7
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/http/script-connection-proxy.ts +18 -6
- package/src/http/scripts.ts +2 -11
- package/src/http/users.ts +1 -0
- package/src/integrations/chat-sdk/adapters.ts +29 -0
- package/src/integrations/chat-sdk/limits.ts +3 -0
- package/src/integrations/chat-sdk/rocketchat/README.md +8 -0
- package/src/integrations/chat-sdk/rocketchat/index.ts +790 -0
- package/src/integrations/chat-sdk/rocketchat/markdown.ts +210 -0
- package/src/integrations/chat-sdk/rocketchat/types.ts +249 -0
- package/src/integrations/chat-sdk/runtime.ts +11 -5
- package/src/integrations/chat-sdk/schema.ts +37 -3
- package/src/integrations/chat-sdk/status.ts +9 -0
- package/src/providers/amp-adapter.ts +1 -1
- package/src/rbac/legacy-policy.ts +1 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/scripts-runtime/executors/native.ts +225 -67
- package/src/scripts-runtime/mcp-client.ts +2 -1
- package/src/scripts-runtime/swarm-sdk.ts +2 -1
- package/src/scripts-runtime/types/stdlib.d.ts +4 -4
- package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -4
- package/src/server-user.ts +98 -0
- package/src/tests/chat-sdk-rocketchat-vendored.test.ts +67 -0
- package/src/tests/chat-sdk-status-route.test.ts +13 -1
- package/src/tests/codex-app-server.test.ts +4 -6
- package/src/tests/mcp-user-route.test.ts +10 -1
- package/src/tests/script-connections-mcp.test.ts +14 -10
- package/src/tests/script-connections-sql.test.ts +6 -2
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tools/script-common.ts +37 -22
- package/src/tools/script-query-types.ts +1 -1
- package/src/tools/script-run.ts +1 -1
- package/src/tools/script-search.ts +12 -10
- package/src/tools/utils.ts +7 -1
- package/templates/skills/chat-sdk/content.md +2 -2
- package/templates/skills/swarm-docs/content.md +2 -0
- package/dist/core-kdehq26g.js +0 -42
- package/dist/handlers-wyymeeqh.js +0 -41
- package/dist/index-22khdtby.js +0 -44
- package/dist/index-np0582ac.js +0 -40
- package/dist/index-vgkrj1jt.js +0 -39
- package/dist/lead-55z813ng.js +0 -79
- package/dist/thread-buffer-cm2nzq6t.js +0 -42
- package/dist/worker-5pn2vzx6.js +0 -79
- package/dist/{cli-5v6b2am8.js → cli-bp2rt28p.js} +4 -4
- /package/dist/{cli-m4ejz4nj.js → cli-cah298e5.js} +0 -0
|
@@ -17,22 +17,22 @@ import {
|
|
|
17
17
|
deleteSkill2,
|
|
18
18
|
getSkillByName2,
|
|
19
19
|
init_db4
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
} from "./cli-erh1rgh4.js";
|
|
21
|
+
import"./cli-n14r8h4n.js";
|
|
22
22
|
import {
|
|
23
23
|
agentFsProvisionSeeder2,
|
|
24
24
|
init_agent_fs_provision
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-a6rzw649.js";
|
|
26
26
|
import {
|
|
27
27
|
runSeeders
|
|
28
|
-
} from "./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
28
|
+
} from "./cli-1gevjrc1.js";
|
|
29
|
+
import"./cli-ka13xx6b.js";
|
|
30
|
+
import"./cli-e87fg3en.js";
|
|
31
31
|
import"./cli-vr4eyq6p.js";
|
|
32
|
-
import"./cli-
|
|
32
|
+
import"./cli-r8ddn0hf.js";
|
|
33
33
|
import"./cli-vx9acp12.js";
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
34
|
+
import"./cli-69eq6gdk.js";
|
|
35
|
+
import"./cli-f1sdh8ca.js";
|
|
36
36
|
import {
|
|
37
37
|
buildSkillContent
|
|
38
38
|
} from "./cli-691vz9mk.js";
|
|
@@ -56,14 +56,14 @@ import {
|
|
|
56
56
|
init_typecheck,
|
|
57
57
|
parseSkillContent,
|
|
58
58
|
init_skill_parser
|
|
59
|
-
} from "./cli-
|
|
60
|
-
import"./cli-
|
|
61
|
-
import"./cli-
|
|
62
|
-
import"./cli-
|
|
63
|
-
import"./cli-
|
|
64
|
-
import"./cli-
|
|
65
|
-
import"./cli-
|
|
66
|
-
import"./cli-
|
|
59
|
+
} from "./cli-nkfv398a.js";
|
|
60
|
+
import"./cli-xerdrnqs.js";
|
|
61
|
+
import"./cli-j2ybkdk2.js";
|
|
62
|
+
import"./cli-jkkcm72j.js";
|
|
63
|
+
import"./cli-b0m3bg0f.js";
|
|
64
|
+
import"./cli-b0kqw55g.js";
|
|
65
|
+
import"./cli-xysy1g8x.js";
|
|
66
|
+
import"./cli-getrvmtx.js";
|
|
67
67
|
import {
|
|
68
68
|
isEnvFlagEnabled,
|
|
69
69
|
init_env_flag
|
|
@@ -15462,7 +15462,7 @@ var config_default8 = `{
|
|
|
15462
15462
|
`;
|
|
15463
15463
|
|
|
15464
15464
|
// templates/skills/chat-sdk/content.md
|
|
15465
|
-
var content_default8 = "# Chat SDK\n\nThe swarm receives messages from Telegram, Slack, Discord,
|
|
15465
|
+
var content_default8 = "# Chat SDK\n\nThe swarm receives messages from Telegram, Slack, Discord, Microsoft Teams, and Rocket.Chat through the Chat SDK channel. A person mentions the bot or sends it a direct message, and the swarm creates a task for it. This skill tells you how to work on such a task.\n\n## How you know you are on a chat task\n\n- The task has `source: \"chat\"`, or it is a lead follow-up of one.\n- The task `contextKey` starts with `task:chat-sdk:`. The full form is `task:chat-sdk:<adapter>:<encoded thread id>`, for example `task:chat-sdk:telegram:555001`.\n- The task text holds the user's message. Later replies in the same thread arrive as follow-up tasks with the same `contextKey`, or as steering messages on your running task.\n- The user has four slash commands that never reach you as a task: `/help`, `/status`, `/cancel` and `/reset`. `/cancel` ends the thread's active tasks, yours included, with status `cancelled`. After `/reset` the next task has no parent task and no earlier thread context, so treat it as a new conversation.\n\nUse `get-task-details` to read the `contextKey` when you are not sure.\n\n## Reply with `chat-reply`\n\n`chat-reply { text }` posts to the thread your current task came from. It finds the thread from your task, so you do not pass ids.\n\n- Use it to ask the user a question you cannot answer yourself. Ask once, with all your questions together.\n- Use it for one short progress note when work takes more than a few minutes, such as \"Started. This takes about 10 minutes.\"\n- Do not use it for receipts (\"Got it\", \"On it\"), and do not send many progress notes.\n- It works only on a task with a `task:chat-sdk:` contextKey. A session bound to a non-chat task does not see `chat-reply` at all, because the tool is left out of its tool list.\n\n## The final summary is posted automatically\n\nWhen your task ends, the swarm posts the task output to the thread:\n\n- Completed: your `store-progress` output.\n- Failed: a \"Task failed.\" line, then the failure reason.\n- Cancelled: a \"Task cancelled.\" line, then the reason when there is one.\n\nDo not post your final answer with `chat-reply` as well. The user would get it twice. Put the answer in the `store-progress` output and stop.\n\nThe post is durable. If the platform is down, the swarm retries with backoff for up to 24 hours.\n\n## Markdown per platform\n\nWrite plain, short markdown: bold, italic, inline code, code blocks, bullet lists, and links. Avoid tables, nested lists, and HTML.\n\n| Platform | What renders | Limit per message |\n|---|---|---|\n| Telegram | Bold, italic, code, code blocks, links, lists. No tables. | 4096 characters |\n| Discord | Bold, italic, code, code blocks, lists, headings, links. No tables. | 2000 characters |\n| Slack | Converted to Slack mrkdwn: bold, italic, code, lists, links. Tables do not render well. | 4000 characters |\n| Teams | Basic markdown: bold, italic, code, lists, links. | 20000 characters |\n\nTables and charts go in a `card` on `chat-reply`, not in the markdown text. It posts after the text, as its own message. When the card is the answer, keep the task `output` to one line pointing at it, because the swarm posts `output` too. What a card becomes:\n\n- Slack: native Block Kit tables and charts. A spec Slack cannot draw natively is rejected, so fix it and retry.\n- Teams: an Adaptive Card with native tables and fields. Charts fall back to text.\n- Discord: an embed. Tables become pipe-delimited text rows, and charts fall back to text.\n- Telegram: formatted text with link buttons as inline buttons. Tables and charts fall back to text.\n\nThe swarm splits longer text into several messages at line breaks. Long answers are hard to read in chat, so keep the answer short and put long material in an artifact or page, then post the link.\n\n## Attachments\n\nFiles and images the user sends in the thread are stored as attachments of the task. The task text names them. Download them with the `download-task-attachment` skill. Voice notes and audio files come with a `[Transcript of <file>]` block in the task text when the swarm has transcription configured; answer from the transcript and download the audio only when you need it. A file over the inbound limit (20 MB on Telegram) never reaches you: the task text says so and the user was already told.\n\nTo send files back, pass `attachments` to `chat-reply` (or `chat-post`): up to 10 attachment ids of your task, or agent-fs paths such as `thoughts/<agent-id>/report.pdf`. The files go out after the text. On Telegram, JPEG and PNG show as photos, MP4 as video, MP3 and M4A as audio, and anything else as a document. When a task's final output is relayed to the thread, the files attached to that task go with it, so do not send them twice.\n\nThe upload limit is 50 MB per file on Telegram and 10 MB on Discord. A larger file is not sent: the thread gets a note naming it, and the tool result lists it in `unsentFiles`. Share a link for big files.\n\n## `chat-read-thread` limits per platform\n\n`chat-read-thread { threadId, limit? }` returns the most recent messages of a thread, oldest first. The thread id is the adapter name plus the URI-decoded remainder of the contextKey. Telegram ids have no escaping, so `telegram:555001` stays as it is. Slack, Discord, Teams, and Rocket.Chat ids contain `%3A` in the contextKey, so do not build the id by hand. `chat-reply` resolves the thread itself. For `chat-read-thread`, use the thread id returned by `chat-reply`, `chat-post`, or `chat-open-dm`. You can read the thread of your current task. Any other thread needs lead privileges.\n\n- Telegram has no history API. The SDK keeps the Telegram thread history it saw in the swarm database, capped at 100 messages and 7 days.\n- Teams needs the `Chat.Read.*` Graph permission on the bot. Without it, the call fails.\n- Slack and Discord return the platform history.\n\nThe task text already holds the earlier swarm messages of the thread, so read the thread only when you need more.\n\n## Other tools\n\n- `chat-post { adapter, threadId | channelId, text }` posts outside your task's thread. Lead only. Use it only when the task asks you to message another thread or channel.\n- `chat-open-dm { adapter, userId }` returns the direct-message thread id for a user. Lead only. Then post to it with `chat-post`.\n\n## Leads: use-case thread\n\nA use case (a schedule and its runs under one key, see the `scheduling` skill) can post a summary of each run to one chat thread.\n\n1. When you handle the follow-up of the first run (the planning session has usually ended by then), read `kv-get { namespace: \"usecase:<key>\", key: \"thread\" }`. A stored value means that you offered before: do not offer again.\n2. Offer once: \"Do you want a summary of each run in a chat channel? Tell me the channel.\"\n3. On no: `kv-set { namespace: \"usecase:<key>\", key: \"thread\", value: { declined: true } }`.\n4. On yes: `chat-post { adapter, channelId, text }` with a one-line title, for example \"Competitor watch: one summary per run\". Then `kv-set { namespace: \"usecase:<key>\", key: \"thread\", value: { adapter, channelId, threadId: \"<threadId from chat-post>\" } }`.\n5. When you finish or review a run of the use case (the run itself, or the follow-up of a worker's run): `kv-get` the thread. When it has a `threadId`, `chat-post { adapter, threadId, text }` with the run summary and the link to its result file.\n\n## Leads: `register-chat-channel`\n\nBy default every message addressed to the swarm goes to the lead. A lead can route one channel to a fixed agent or workflow:\n\n```\nregister-chat-channel { adapter: \"telegram\", channelId: \"telegram:-100123\", agentId: \"<agent id>\" }\nregister-chat-channel { adapter: \"slack\", channelId: \"slack:C123\", workflowId: \"<workflow id>\" }\nunregister-chat-channel { adapter: \"telegram\", channelId: \"telegram:-100123\" }\n```\n\nGive exactly one of `agentId` or `workflowId`. A `swarm#<agentId>` token in a message still wins over the route. A workflow mapping fires only for a bot mention or a DM; a plain reply in the subscribed thread does not start another run. Only the lead can call these tools.\n\n## Etiquette\n\n- Keep messages short. Chat is read on phones.\n- Never post secrets, tokens, internal URLs with credentials, or private data from other users. The swarm scrubs known secrets, but do not depend on it.\n- When you ask a question in a group, start with the user's name so they see it.\n- One question message is better than several.\n";
|
|
15466
15466
|
|
|
15467
15467
|
// templates/skills/code-quality/config.json
|
|
15468
15468
|
var config_default9 = `{
|
|
@@ -20678,12 +20678,14 @@ Fetch the page as markdown: \`curl -fsSL https://docs.agent-swarm.dev/llms.mdx/d
|
|
|
20678
20678
|
- [Reviewing marketplace partner payout discrepancies with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-payout-exception-review). Reference.
|
|
20679
20679
|
- [Preparing marketplace moderation appeals for human review with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-moderation-appeals). Reference.
|
|
20680
20680
|
- [Reviewing customer billing disputes with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-billing-dispute-review). Reference.
|
|
20681
|
+
- [Reviewing a proposed customer pricing change with AI agents](https://docs.agent-swarm.dev/docs/guides/customer-pricing-change-review). Reference.
|
|
20681
20682
|
- [Escalating a customer support issue to engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-support-escalation-handoff). Reference.
|
|
20682
20683
|
- [Reviewing inconsistent product listings across sales channels with AI agents](https://docs.agent-swarm.dev/docs/guides/marketplace-catalog-discrepancy-review). Reference.
|
|
20683
20684
|
- [Handing off inventory discrepancies from operations to purchasing with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-inventory-exception-handoff). Reference.
|
|
20684
20685
|
- [Handing off unresolved operational work between shifts with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-operations-shift-handoff). Reference.
|
|
20685
20686
|
- [Preparing a disputed product return for a human decision with AI agents](https://docs.agent-swarm.dev/docs/guides/ai-returns-exception-handoff). Reference.
|
|
20686
20687
|
- [Reviewing a supplier's security evidence before onboarding with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-security-evidence-review). Reference.
|
|
20688
|
+
- [Coordinating a customer data access request across support, privacy and engineering with AI agents](https://docs.agent-swarm.dev/docs/guides/privacy-data-request-handoff). Reference.
|
|
20687
20689
|
- [Reviewing supplier performance across delivery, quality and service records with AI agents](https://docs.agent-swarm.dev/docs/guides/supplier-performance-review). Reference.
|
|
20688
20690
|
- [Deployment Guide](https://docs.agent-swarm.dev/docs/guides/deployment). When: Someone wants to run Agent Swarm on their own server with Docker Compose.
|
|
20689
20691
|
- [One-click deploy](https://docs.agent-swarm.dev/docs/guides/one-click-deploy). When: Someone has no server yet and wants Agent Swarm running in the cloud with HTTPS.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import"./cli-ns59dc6r.js";
|
|
2
|
+
import {
|
|
3
|
+
parseHeartbeatIntervalMs2,
|
|
4
|
+
startHeartbeat2,
|
|
5
|
+
stopHeartbeat2
|
|
6
|
+
} from "./cli-31vt7baf.js";
|
|
7
|
+
import"./cli-7m6bbtab.js";
|
|
8
|
+
import"./cli-50whymxq.js";
|
|
9
|
+
import"./cli-dnvmwsvc.js";
|
|
10
|
+
import"./cli-8qvte9hn.js";
|
|
11
|
+
import"./cli-m1wddksc.js";
|
|
12
|
+
import"./cli-nkfv398a.js";
|
|
13
|
+
import"./cli-xerdrnqs.js";
|
|
14
|
+
import"./cli-wdtqkqnq.js";
|
|
15
|
+
import"./cli-j2ybkdk2.js";
|
|
16
|
+
import"./cli-y260hgep.js";
|
|
17
|
+
import"./cli-4djg31jh.js";
|
|
18
|
+
import"./cli-fcwrd7bh.js";
|
|
19
|
+
import"./cli-jkkcm72j.js";
|
|
20
|
+
import"./cli-f1sdh8ca.js";
|
|
21
|
+
import"./cli-2wde56gv.js";
|
|
22
|
+
import"./cli-tceqvv6h.js";
|
|
23
|
+
import"./cli-69eq6gdk.js";
|
|
24
|
+
import"./cli-e87fg3en.js";
|
|
25
|
+
import"./cli-ka13xx6b.js";
|
|
26
|
+
import"./cli-r8ddn0hf.js";
|
|
27
|
+
import"./cli-b0m3bg0f.js";
|
|
28
|
+
import"./cli-vr4eyq6p.js";
|
|
29
|
+
import"./cli-b0kqw55g.js";
|
|
30
|
+
import"./cli-vx9acp12.js";
|
|
31
|
+
import"./cli-xysy1g8x.js";
|
|
32
|
+
import"./cli-n14r8h4n.js";
|
|
33
|
+
import"./cli-getrvmtx.js";
|
|
34
|
+
import"./cli-erh1rgh4.js";
|
|
35
|
+
export {
|
|
36
|
+
parseHeartbeatIntervalMs2 as parseHeartbeatIntervalMs,
|
|
37
|
+
startHeartbeat2 as startHeartbeat,
|
|
38
|
+
stopHeartbeat2 as stopHeartbeat
|
|
39
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getExecutorRegistry2,
|
|
3
|
+
initWorkflows2,
|
|
4
|
+
init_workflows
|
|
5
|
+
} from "./cli-dnvmwsvc.js";
|
|
6
|
+
import"./cli-8qvte9hn.js";
|
|
7
|
+
import"./cli-m1wddksc.js";
|
|
8
|
+
import"./cli-nkfv398a.js";
|
|
9
|
+
import"./cli-xerdrnqs.js";
|
|
10
|
+
import"./cli-wdtqkqnq.js";
|
|
11
|
+
import"./cli-j2ybkdk2.js";
|
|
12
|
+
import"./cli-y260hgep.js";
|
|
13
|
+
import"./cli-4djg31jh.js";
|
|
14
|
+
import {
|
|
15
|
+
retryFailedRun2,
|
|
16
|
+
cancelWorkflowRun2
|
|
17
|
+
} from "./cli-fcwrd7bh.js";
|
|
18
|
+
import {
|
|
19
|
+
startWorkflowExecution2
|
|
20
|
+
} from "./cli-jkkcm72j.js";
|
|
21
|
+
import"./cli-f1sdh8ca.js";
|
|
22
|
+
import"./cli-2wde56gv.js";
|
|
23
|
+
import"./cli-tceqvv6h.js";
|
|
24
|
+
import"./cli-69eq6gdk.js";
|
|
25
|
+
import"./cli-e87fg3en.js";
|
|
26
|
+
import"./cli-ka13xx6b.js";
|
|
27
|
+
import"./cli-r8ddn0hf.js";
|
|
28
|
+
import"./cli-b0m3bg0f.js";
|
|
29
|
+
import"./cli-vr4eyq6p.js";
|
|
30
|
+
import"./cli-b0kqw55g.js";
|
|
31
|
+
import"./cli-vx9acp12.js";
|
|
32
|
+
import"./cli-xysy1g8x.js";
|
|
33
|
+
import"./cli-n14r8h4n.js";
|
|
34
|
+
import"./cli-getrvmtx.js";
|
|
35
|
+
import"./cli-erh1rgh4.js";
|
|
36
|
+
init_workflows();
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
cancelWorkflowRun2 as cancelWorkflowRun,
|
|
40
|
+
getExecutorRegistry2 as getExecutorRegistry,
|
|
41
|
+
initWorkflows2 as initWorkflows,
|
|
42
|
+
retryFailedRun2 as retryFailedRun,
|
|
43
|
+
startWorkflowExecution2 as startWorkflowExecution
|
|
44
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
calculateNextRun2,
|
|
3
|
+
startScheduler2,
|
|
4
|
+
stopScheduler2,
|
|
5
|
+
runScheduleNow2,
|
|
6
|
+
init_scheduler2
|
|
7
|
+
} from "./cli-dnvmwsvc.js";
|
|
8
|
+
import"./cli-8qvte9hn.js";
|
|
9
|
+
import"./cli-m1wddksc.js";
|
|
10
|
+
import"./cli-nkfv398a.js";
|
|
11
|
+
import"./cli-xerdrnqs.js";
|
|
12
|
+
import"./cli-wdtqkqnq.js";
|
|
13
|
+
import"./cli-j2ybkdk2.js";
|
|
14
|
+
import"./cli-y260hgep.js";
|
|
15
|
+
import"./cli-4djg31jh.js";
|
|
16
|
+
import"./cli-fcwrd7bh.js";
|
|
17
|
+
import"./cli-jkkcm72j.js";
|
|
18
|
+
import"./cli-f1sdh8ca.js";
|
|
19
|
+
import"./cli-2wde56gv.js";
|
|
20
|
+
import"./cli-tceqvv6h.js";
|
|
21
|
+
import"./cli-69eq6gdk.js";
|
|
22
|
+
import"./cli-e87fg3en.js";
|
|
23
|
+
import"./cli-ka13xx6b.js";
|
|
24
|
+
import"./cli-r8ddn0hf.js";
|
|
25
|
+
import"./cli-b0m3bg0f.js";
|
|
26
|
+
import"./cli-vr4eyq6p.js";
|
|
27
|
+
import"./cli-b0kqw55g.js";
|
|
28
|
+
import"./cli-vx9acp12.js";
|
|
29
|
+
import"./cli-xysy1g8x.js";
|
|
30
|
+
import"./cli-n14r8h4n.js";
|
|
31
|
+
import"./cli-getrvmtx.js";
|
|
32
|
+
import"./cli-erh1rgh4.js";
|
|
33
|
+
init_scheduler2();
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
calculateNextRun2 as calculateNextRun,
|
|
37
|
+
runScheduleNow2 as runScheduleNow,
|
|
38
|
+
startScheduler2 as startScheduler,
|
|
39
|
+
stopScheduler2 as stopScheduler
|
|
40
|
+
};
|