@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAcpTarget2
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-d528acsw.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchInstalledMcpServers
|
|
6
6
|
} from "./cli-5y2fvw4z.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
init_package,
|
|
36
36
|
package_default
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-sjk85d7v.js";
|
|
38
38
|
import {
|
|
39
39
|
scrubSecrets,
|
|
40
40
|
init_secret_scrubber
|
|
@@ -1079,6 +1079,7 @@ var zSessionConfigOptionCategory = union3([
|
|
|
1079
1079
|
literal2("mode"),
|
|
1080
1080
|
literal2("model"),
|
|
1081
1081
|
literal2("model_config"),
|
|
1082
|
+
literal2("speed"),
|
|
1082
1083
|
literal2("thought_level"),
|
|
1083
1084
|
string2()
|
|
1084
1085
|
]);
|
|
@@ -1420,16 +1421,12 @@ var zPlanItems = object2({
|
|
|
1420
1421
|
return;
|
|
1421
1422
|
})
|
|
1422
1423
|
});
|
|
1423
|
-
var zPlanFile = object2({
|
|
1424
|
-
planId: zPlanId,
|
|
1425
|
-
uri: string2(),
|
|
1426
|
-
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1427
|
-
return;
|
|
1428
|
-
})
|
|
1429
|
-
});
|
|
1430
1424
|
var zPlanMarkdown = object2({
|
|
1431
1425
|
planId: zPlanId,
|
|
1432
1426
|
content: string2(),
|
|
1427
|
+
path: defaultOnError(string2().nullish(), () => {
|
|
1428
|
+
return;
|
|
1429
|
+
}),
|
|
1433
1430
|
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1434
1431
|
return;
|
|
1435
1432
|
})
|
|
@@ -1438,9 +1435,6 @@ var zPlanUpdateContent = union3([
|
|
|
1438
1435
|
zPlanItems.and(object2({
|
|
1439
1436
|
type: literal2("items")
|
|
1440
1437
|
})),
|
|
1441
|
-
zPlanFile.and(object2({
|
|
1442
|
-
type: literal2("file")
|
|
1443
|
-
})),
|
|
1444
1438
|
zPlanMarkdown.and(object2({
|
|
1445
1439
|
type: literal2("markdown")
|
|
1446
1440
|
}))
|
|
@@ -1564,6 +1558,18 @@ var zCompactionSummaryChunk = object2({
|
|
|
1564
1558
|
return;
|
|
1565
1559
|
})
|
|
1566
1560
|
});
|
|
1561
|
+
var zPromptSuggestion = object2({
|
|
1562
|
+
prompt: array2(zContentBlock).min(1),
|
|
1563
|
+
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1564
|
+
return;
|
|
1565
|
+
})
|
|
1566
|
+
});
|
|
1567
|
+
var zPromptSuggestionsUpdate = object2({
|
|
1568
|
+
suggestions: vecSkipError(zPromptSuggestion),
|
|
1569
|
+
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1570
|
+
return;
|
|
1571
|
+
})
|
|
1572
|
+
});
|
|
1567
1573
|
var zSessionCancelCapabilities = object2({
|
|
1568
1574
|
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1569
1575
|
return;
|
|
@@ -1761,6 +1767,9 @@ var zSessionUpdate = union3([
|
|
|
1761
1767
|
zCompactionSummaryChunk.and(object2({
|
|
1762
1768
|
sessionUpdate: literal2("compaction_summary_chunk")
|
|
1763
1769
|
})),
|
|
1770
|
+
zPromptSuggestionsUpdate.and(object2({
|
|
1771
|
+
sessionUpdate: literal2("prompt_suggestions_update")
|
|
1772
|
+
})),
|
|
1764
1773
|
zSubagentUpdate.and(object2({
|
|
1765
1774
|
sessionUpdate: literal2("subagent_update")
|
|
1766
1775
|
})),
|
|
@@ -1823,6 +1832,35 @@ var zSessionConfigOptionsCapabilities = object2({
|
|
|
1823
1832
|
})
|
|
1824
1833
|
});
|
|
1825
1834
|
var zNoticeCapabilities = record2(string2(), unknown());
|
|
1835
|
+
var zPromptSuggestionsImageCapabilities = object2({
|
|
1836
|
+
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1837
|
+
return;
|
|
1838
|
+
})
|
|
1839
|
+
});
|
|
1840
|
+
var zPromptSuggestionsAudioCapabilities = object2({
|
|
1841
|
+
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1842
|
+
return;
|
|
1843
|
+
})
|
|
1844
|
+
});
|
|
1845
|
+
var zPromptSuggestionsEmbeddedContextCapabilities = object2({
|
|
1846
|
+
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1847
|
+
return;
|
|
1848
|
+
})
|
|
1849
|
+
});
|
|
1850
|
+
var zPromptSuggestionsCapabilities = object2({
|
|
1851
|
+
image: defaultOnError(zPromptSuggestionsImageCapabilities.nullish(), () => {
|
|
1852
|
+
return;
|
|
1853
|
+
}),
|
|
1854
|
+
audio: defaultOnError(zPromptSuggestionsAudioCapabilities.nullish(), () => {
|
|
1855
|
+
return;
|
|
1856
|
+
}),
|
|
1857
|
+
embeddedContext: defaultOnError(zPromptSuggestionsEmbeddedContextCapabilities.nullish(), () => {
|
|
1858
|
+
return;
|
|
1859
|
+
}),
|
|
1860
|
+
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1861
|
+
return;
|
|
1862
|
+
})
|
|
1863
|
+
});
|
|
1826
1864
|
var zClientSessionCapabilities = object2({
|
|
1827
1865
|
compaction: defaultOnError(zCompactionCapabilities.nullish(), () => {
|
|
1828
1866
|
return;
|
|
@@ -1833,6 +1871,9 @@ var zClientSessionCapabilities = object2({
|
|
|
1833
1871
|
notices: defaultOnError(zNoticeCapabilities.nullish(), () => {
|
|
1834
1872
|
return;
|
|
1835
1873
|
}),
|
|
1874
|
+
promptSuggestions: defaultOnError(zPromptSuggestionsCapabilities.nullish(), () => {
|
|
1875
|
+
return;
|
|
1876
|
+
}),
|
|
1836
1877
|
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1837
1878
|
return;
|
|
1838
1879
|
})
|
|
@@ -2072,6 +2113,7 @@ var zForkSessionRequest = object2({
|
|
|
2072
2113
|
additionalDirectories: defaultOnNull(array2(string2()), () => []).optional(),
|
|
2073
2114
|
mcpServers: defaultOnNull(array2(zMcpServer), () => []).optional(),
|
|
2074
2115
|
systemPrompt: zSystemPrompt.nullish(),
|
|
2116
|
+
configOptions: defaultOnNull(array2(zInitialSessionConfigOption), () => []).optional(),
|
|
2075
2117
|
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
2076
2118
|
return;
|
|
2077
2119
|
})
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
init_active_sessions,
|
|
16
16
|
getSteeringMessageById2,
|
|
17
17
|
init_db4
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-erh1rgh4.js";
|
|
19
19
|
import {
|
|
20
20
|
userHoldsExplicitVerb2,
|
|
21
21
|
getUserGrant2,
|
|
22
22
|
init_rbac_roles
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-n14r8h4n.js";
|
|
24
24
|
import {
|
|
25
25
|
hasSessionAccess,
|
|
26
26
|
getSessionRoot,
|
|
27
27
|
sessionAccessForRoot,
|
|
28
28
|
sessionAccess,
|
|
29
29
|
init_session_shares
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-b0kqw55g.js";
|
|
31
31
|
import {
|
|
32
32
|
findUserById,
|
|
33
33
|
findUserByExternalId,
|
|
34
34
|
init_users
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-getrvmtx.js";
|
|
36
36
|
import {
|
|
37
37
|
isGroupKey,
|
|
38
38
|
init_key
|
|
@@ -514,7 +514,7 @@ function route(def) {
|
|
|
514
514
|
try {
|
|
515
515
|
const rawBody = def.body ? await parseBody(req, def.maxBodyBytes) : undefined;
|
|
516
516
|
if (def.session && "bodyTaskIds" in def.session) {
|
|
517
|
-
const { bodySessionDenial } = await import("./session-access-
|
|
517
|
+
const { bodySessionDenial } = await import("./session-access-nwzve8q2.js");
|
|
518
518
|
const denial = await bodySessionDenial(req, def.session.bodyTaskIds(rawBody));
|
|
519
519
|
if (denial) {
|
|
520
520
|
jsonError(res, denial, 403);
|
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
getStaleApprovalRequests2,
|
|
71
71
|
upsertKv2,
|
|
72
72
|
init_db4
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-erh1rgh4.js";
|
|
74
74
|
import {
|
|
75
75
|
listRuntimePools2,
|
|
76
76
|
init_db2
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-tceqvv6h.js";
|
|
78
78
|
import {
|
|
79
79
|
runtimeStaleThresholdMinutes,
|
|
80
80
|
countActiveRuntimeInstancesForAgent,
|
|
@@ -84,15 +84,15 @@ import {
|
|
|
84
84
|
init_multi_runtime,
|
|
85
85
|
createApprovalFollowUpTask2,
|
|
86
86
|
init_approval_notifications
|
|
87
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-f1sdh8ca.js";
|
|
88
88
|
import {
|
|
89
89
|
userHoldsOperatorGrantedRole2,
|
|
90
90
|
assertMayActOnOperatorGrantedTarget2,
|
|
91
91
|
init_rbac_roles
|
|
92
|
-
} from "./cli-
|
|
92
|
+
} from "./cli-n14r8h4n.js";
|
|
93
93
|
import {
|
|
94
94
|
remediateStalledRuntime
|
|
95
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-7m6bbtab.js";
|
|
96
96
|
import {
|
|
97
97
|
recoverIncompleteRuns,
|
|
98
98
|
init_recovery,
|
|
@@ -120,13 +120,13 @@ import {
|
|
|
120
120
|
init_approval_cancel,
|
|
121
121
|
canClaim,
|
|
122
122
|
init_budget_admission
|
|
123
|
-
} from "./cli-
|
|
123
|
+
} from "./cli-dnvmwsvc.js";
|
|
124
124
|
import {
|
|
125
125
|
runScriptWithRunCredential,
|
|
126
126
|
init_run_credential,
|
|
127
127
|
runSavedScriptAsAgent,
|
|
128
128
|
init_run_saved
|
|
129
|
-
} from "./cli-
|
|
129
|
+
} from "./cli-nkfv398a.js";
|
|
130
130
|
import {
|
|
131
131
|
isMultiRuntimeEnabled,
|
|
132
132
|
init_multi_runtime2
|
|
@@ -135,18 +135,18 @@ import {
|
|
|
135
135
|
recordIdentityEvent,
|
|
136
136
|
mintToken,
|
|
137
137
|
init_users
|
|
138
|
-
} from "./cli-
|
|
139
|
-
import {
|
|
140
|
-
DEFAULT_OPENROUTER_BASE_URL,
|
|
141
|
-
getOpenRouterBaseUrl,
|
|
142
|
-
init_openrouter_base_url
|
|
143
|
-
} from "./cli-dfyv0jdy.js";
|
|
138
|
+
} from "./cli-getrvmtx.js";
|
|
144
139
|
import {
|
|
145
140
|
registerTemplate,
|
|
146
141
|
init_registry3,
|
|
147
142
|
resolveTemplate,
|
|
148
143
|
init_resolver
|
|
149
144
|
} from "./cli-mwxez0pz.js";
|
|
145
|
+
import {
|
|
146
|
+
DEFAULT_OPENROUTER_BASE_URL,
|
|
147
|
+
getOpenRouterBaseUrl,
|
|
148
|
+
init_openrouter_base_url
|
|
149
|
+
} from "./cli-dfyv0jdy.js";
|
|
150
150
|
import {
|
|
151
151
|
TERMINAL_TASK_STATUSES,
|
|
152
152
|
OPEN_TASK_STATUSES,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
import {
|
|
161
161
|
init_package,
|
|
162
162
|
package_default
|
|
163
|
-
} from "./cli-
|
|
163
|
+
} from "./cli-sjk85d7v.js";
|
|
164
164
|
import {
|
|
165
165
|
scrubSecrets,
|
|
166
166
|
init_secret_scrubber
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
deleteSkillFile2,
|
|
18
18
|
getSkillById2,
|
|
19
19
|
init_db4
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-erh1rgh4.js";
|
|
21
21
|
import {
|
|
22
22
|
snapshotAndUpdateWorkflow,
|
|
23
23
|
init_version,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
liveSkillSpec,
|
|
29
29
|
skillHash,
|
|
30
30
|
init_assets
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-dnvmwsvc.js";
|
|
32
32
|
import {
|
|
33
33
|
getSeedState,
|
|
34
34
|
init_state_db
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-nkfv398a.js";
|
|
36
36
|
import {
|
|
37
37
|
matchesDefaultIdentityMd,
|
|
38
38
|
init_defaults
|
|
@@ -64,12 +64,12 @@ import {
|
|
|
64
64
|
claimKv2,
|
|
65
65
|
deleteKv2,
|
|
66
66
|
init_db4
|
|
67
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-erh1rgh4.js";
|
|
68
68
|
import {
|
|
69
69
|
getChannelExternality2,
|
|
70
70
|
getChannelBlockReason2,
|
|
71
71
|
init_external_channel
|
|
72
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-ka13xx6b.js";
|
|
73
73
|
import {
|
|
74
74
|
isSlackTaskTreeEnabled2,
|
|
75
75
|
invalidateSlackTreeOperations2,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
assertSlackTreeCurrent2,
|
|
81
81
|
canPresentSlackTree2,
|
|
82
82
|
init_tree_visibility
|
|
83
|
-
} from "./cli-
|
|
83
|
+
} from "./cli-e87fg3en.js";
|
|
84
84
|
import {
|
|
85
85
|
require_dist6,
|
|
86
86
|
require_is_electron,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
cardToBlockKit2,
|
|
93
93
|
cardToFallbackText2,
|
|
94
94
|
init_dist6
|
|
95
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-r8ddn0hf.js";
|
|
96
96
|
import {
|
|
97
97
|
workflowEventBus2,
|
|
98
98
|
init_event_bus
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
import {
|
|
111
111
|
getSessionRoot,
|
|
112
112
|
init_session_shares
|
|
113
|
-
} from "./cli-
|
|
113
|
+
} from "./cli-b0kqw55g.js";
|
|
114
114
|
import {
|
|
115
115
|
require_p_retry
|
|
116
116
|
} from "./cli-952zgdwp.js";
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
findUserById,
|
|
119
119
|
getUserIdentities,
|
|
120
120
|
init_users
|
|
121
|
-
} from "./cli-
|
|
121
|
+
} from "./cli-getrvmtx.js";
|
|
122
122
|
import {
|
|
123
123
|
getGitHubLinkConfig,
|
|
124
124
|
init_github_host
|
|
@@ -12411,7 +12411,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
|
|
|
12411
12411
|
return;
|
|
12412
12412
|
initialized = true;
|
|
12413
12413
|
try {
|
|
12414
|
-
const impl = await import("./otel-impl-
|
|
12414
|
+
const impl = await import("./otel-impl-svqp691q.js");
|
|
12415
12415
|
await impl.boot(serviceRole, {
|
|
12416
12416
|
exportConsoleLogs: serviceRole === "api" && isApiLogExportEnabled()
|
|
12417
12417
|
});
|
|
@@ -19102,17 +19102,17 @@ async function initSlackApp2() {
|
|
|
19102
19102
|
created.use(slackInboundOutcomeMiddleware(config.mode === "http" ? "http" : "socket"));
|
|
19103
19103
|
if (config.mode === "http")
|
|
19104
19104
|
created.use(ignoreSelfAsIgnored);
|
|
19105
|
-
const { registerMessageHandler } = await import("./handlers-
|
|
19106
|
-
const { registerCommandHandler } = await import("./commands-
|
|
19107
|
-
const { registerActionHandlers } = await import("./actions-
|
|
19108
|
-
const { registerWorkObjectHandlers } = await import("./work-objects-
|
|
19105
|
+
const { registerMessageHandler } = await import("./handlers-0r9evrdj.js");
|
|
19106
|
+
const { registerCommandHandler } = await import("./commands-8n59gxmy.js");
|
|
19107
|
+
const { registerActionHandlers } = await import("./actions-5ft3qp5a.js");
|
|
19108
|
+
const { registerWorkObjectHandlers } = await import("./work-objects-m0w1e7q8.js");
|
|
19109
19109
|
registerMessageHandler(created);
|
|
19110
19110
|
registerCommandHandler(created);
|
|
19111
19111
|
registerActionHandlers(created);
|
|
19112
19112
|
registerWorkObjectHandlers(created);
|
|
19113
|
-
const { createAssistant } = await import("./assistant-
|
|
19113
|
+
const { createAssistant } = await import("./assistant-39zyabv2.js");
|
|
19114
19114
|
created.assistant(createAssistant());
|
|
19115
|
-
const { isBlockExternalEnabled, scanExternalChannelsOnBoot } = await import("./external-channel-
|
|
19115
|
+
const { isBlockExternalEnabled, scanExternalChannelsOnBoot } = await import("./external-channel-s6zxpts9.js");
|
|
19116
19116
|
if (isBlockExternalEnabled()) {
|
|
19117
19117
|
scanExternalChannelsOnBoot(created.client).catch((error) => {
|
|
19118
19118
|
console.error("[Slack] External channel boot scan failed:", error);
|
|
@@ -19140,7 +19140,7 @@ async function startSlackApp2() {
|
|
|
19140
19140
|
startRetryAttempt = 0;
|
|
19141
19141
|
if (!httpReceiver)
|
|
19142
19142
|
startSocketWatchdog();
|
|
19143
|
-
const { isSlackRenderV2Enabled } = await import("./render-v2-
|
|
19143
|
+
const { isSlackRenderV2Enabled } = await import("./render-v2-f3qedbpy.js");
|
|
19144
19144
|
if (isSlackRenderV2Enabled())
|
|
19145
19145
|
await ensureSlackRenderV2Activation2();
|
|
19146
19146
|
await recoverSlackInboundAfterRestart();
|
|
@@ -19156,7 +19156,7 @@ async function startSlackApp2() {
|
|
|
19156
19156
|
} else {
|
|
19157
19157
|
console.log("[Slack] Bot connected via Socket Mode");
|
|
19158
19158
|
}
|
|
19159
|
-
const { restoreBufferedSlackMessages } = await import("./thread-buffer-
|
|
19159
|
+
const { restoreBufferedSlackMessages } = await import("./thread-buffer-8fc703jc.js");
|
|
19160
19160
|
await restoreBufferedSlackMessages().catch((error) => {
|
|
19161
19161
|
console.error("[Slack] Failed to restore buffered thread messages:", error);
|
|
19162
19162
|
});
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./cli-gq6qhmrr.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveCodexCommand
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-zm6bkx3e.js";
|
|
14
14
|
import {
|
|
15
15
|
createSwarmEventHandler
|
|
16
16
|
} from "./cli-at67kvnp.js";
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
import {
|
|
100
100
|
init_package,
|
|
101
101
|
package_default
|
|
102
|
-
} from "./cli-
|
|
102
|
+
} from "./cli-sjk85d7v.js";
|
|
103
103
|
import {
|
|
104
104
|
init_src2,
|
|
105
105
|
scrubSecrets,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
upsertSwarmConfig2,
|
|
20
20
|
getResolvedConfig2,
|
|
21
21
|
init_db4
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-erh1rgh4.js";
|
|
23
23
|
import {
|
|
24
24
|
getPoolCache,
|
|
25
25
|
reconcileCacheReleases,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getPoolForAgent2,
|
|
34
34
|
resolvePoolDelivery2,
|
|
35
35
|
init_db2
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-tceqvv6h.js";
|
|
37
37
|
import {
|
|
38
38
|
workflowEventBus2,
|
|
39
39
|
init_event_bus
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
listRuntimeInstancesForAgent,
|
|
48
48
|
listRuntimeInstancesForPool,
|
|
49
49
|
init_multi_runtime
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-f1sdh8ca.js";
|
|
51
51
|
import {
|
|
52
52
|
pendingWorkForAgent,
|
|
53
53
|
countPoolRuntimes,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
init_worker_follow_up,
|
|
58
58
|
canClaim,
|
|
59
59
|
init_budget_admission
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-dnvmwsvc.js";
|
|
61
61
|
import {
|
|
62
62
|
isMultiRuntimeEnabled,
|
|
63
63
|
init_multi_runtime2
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
mintRuntimeToken,
|
|
89
89
|
init_users
|
|
90
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-getrvmtx.js";
|
|
91
91
|
import {
|
|
92
92
|
TERMINAL_TASK_STATUSES,
|
|
93
93
|
isTerminalTaskStatus,
|
|
@@ -524,7 +524,7 @@ async function recoverSessions(runtimeId, reason) {
|
|
|
524
524
|
}
|
|
525
525
|
if (!sessions.length)
|
|
526
526
|
return;
|
|
527
|
-
const { remediateTaskForDeadRuntime } = await import("./heartbeat-
|
|
527
|
+
const { remediateTaskForDeadRuntime } = await import("./heartbeat-jjpb44e5.js");
|
|
528
528
|
for (const session of sessions) {
|
|
529
529
|
try {
|
|
530
530
|
const task = await getTaskById2(session.taskId);
|
|
@@ -48,7 +48,7 @@ init_context_window();
|
|
|
48
48
|
init_multi_runtime2();
|
|
49
49
|
init_process_group();
|
|
50
50
|
init_secret_scrubber();
|
|
51
|
-
var AMP_PACKAGE = "@ampcode/cli@0.0.
|
|
51
|
+
var AMP_PACKAGE = "@ampcode/cli@0.0.1794657642-gc1e41b";
|
|
52
52
|
var AMP_MCP_SERVER_NAME = "agent-swarm";
|
|
53
53
|
var AMP_PLUGIN_MODE_KEY = "agent-swarm";
|
|
54
54
|
var AMP_LIVE_TEST_TIMEOUT_MS = 5000;
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
isModelNameTakenError,
|
|
13
13
|
init_model_profiles,
|
|
14
14
|
init_db4
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-erh1rgh4.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureRbacSeedsSynced2,
|
|
18
18
|
init_rbac_roles
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-n14r8h4n.js";
|
|
20
20
|
import {
|
|
21
21
|
MODEL_TIERS,
|
|
22
22
|
DEFAULT_MODEL_TIER_MAP,
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getResolvedConfig2,
|
|
7
7
|
getAllUsers2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-erh1rgh4.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserGrant2,
|
|
12
12
|
init_rbac_roles
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-n14r8h4n.js";
|
|
14
14
|
import {
|
|
15
15
|
scrubSecrets,
|
|
16
16
|
init_secret_scrubber
|
|
@@ -316,6 +316,101 @@ function renderGfmTable(table) {
|
|
|
316
316
|
}
|
|
317
317
|
return lines;
|
|
318
318
|
}
|
|
319
|
+
function normalizeCodeFences(text, options = {}) {
|
|
320
|
+
const convertText = options.convertText ?? passThrough;
|
|
321
|
+
const convertCode = options.convertCode ?? passThrough;
|
|
322
|
+
if (!text.includes(CODE_FENCE)) {
|
|
323
|
+
return convertText(text);
|
|
324
|
+
}
|
|
325
|
+
let result = "";
|
|
326
|
+
let textStart = 0;
|
|
327
|
+
let cursor = 0;
|
|
328
|
+
let movedToOwnLine = false;
|
|
329
|
+
const flushTextBefore = (end) => {
|
|
330
|
+
let segment = text.slice(textStart, end);
|
|
331
|
+
if (movedToOwnLine) {
|
|
332
|
+
segment = escapeLeadingBlockMarker(segment);
|
|
333
|
+
movedToOwnLine = false;
|
|
334
|
+
}
|
|
335
|
+
result += convertText(segment);
|
|
336
|
+
};
|
|
337
|
+
while (cursor < text.length) {
|
|
338
|
+
if (text[cursor] !== "`") {
|
|
339
|
+
cursor += 1;
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
if (!text.startsWith(CODE_FENCE, cursor)) {
|
|
343
|
+
const spanEnd = findInlineCodeEnd(text, cursor);
|
|
344
|
+
cursor = spanEnd === -1 ? cursor + 1 : spanEnd;
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
const contentStart = cursor + CODE_FENCE.length;
|
|
348
|
+
const contentEnd = text.indexOf(CODE_FENCE, contentStart);
|
|
349
|
+
if (contentEnd === -1 || isOnBlockquoteLine(text, cursor)) {
|
|
350
|
+
cursor = contentStart;
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
flushTextBefore(cursor);
|
|
354
|
+
if (result.length > 0 && !result.endsWith(`
|
|
355
|
+
`)) {
|
|
356
|
+
result += `
|
|
357
|
+
`;
|
|
358
|
+
}
|
|
359
|
+
const content = text.slice(contentStart, contentEnd);
|
|
360
|
+
result += CODE_FENCE;
|
|
361
|
+
if (!content.startsWith(`
|
|
362
|
+
`)) {
|
|
363
|
+
result += `
|
|
364
|
+
`;
|
|
365
|
+
}
|
|
366
|
+
result += convertCode(content);
|
|
367
|
+
if (!content.endsWith(`
|
|
368
|
+
`)) {
|
|
369
|
+
result += `
|
|
370
|
+
`;
|
|
371
|
+
}
|
|
372
|
+
result += CODE_FENCE;
|
|
373
|
+
cursor = contentEnd + CODE_FENCE.length;
|
|
374
|
+
textStart = cursor;
|
|
375
|
+
if (cursor < text.length && text[cursor] !== `
|
|
376
|
+
`) {
|
|
377
|
+
result += `
|
|
378
|
+
`;
|
|
379
|
+
movedToOwnLine = true;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
flushTextBefore(text.length);
|
|
383
|
+
return result;
|
|
384
|
+
}
|
|
385
|
+
function passThrough(value) {
|
|
386
|
+
return value;
|
|
387
|
+
}
|
|
388
|
+
function findInlineCodeEnd(text, index) {
|
|
389
|
+
const close = text.indexOf("`", index + 1);
|
|
390
|
+
if (close === -1) {
|
|
391
|
+
return -1;
|
|
392
|
+
}
|
|
393
|
+
const newline = text.indexOf(`
|
|
394
|
+
`, index + 1);
|
|
395
|
+
if (newline !== -1 && newline < close) {
|
|
396
|
+
return -1;
|
|
397
|
+
}
|
|
398
|
+
return close + 1;
|
|
399
|
+
}
|
|
400
|
+
function isOnBlockquoteLine(text, index) {
|
|
401
|
+
const lineStart = text.lastIndexOf(`
|
|
402
|
+
`, index - 1) + 1;
|
|
403
|
+
return text.slice(lineStart, index).trimStart().startsWith(">");
|
|
404
|
+
}
|
|
405
|
+
function escapeLeadingBlockMarker(text) {
|
|
406
|
+
const whitespace = LEADING_WHITESPACE_PATTERN.exec(text)?.[0] ?? "";
|
|
407
|
+
const prefix = whitespace.length > 0 ? " " : "";
|
|
408
|
+
const rest = text.slice(whitespace.length);
|
|
409
|
+
if (BLOCK_MARKER_PATTERN.test(rest)) {
|
|
410
|
+
return `${prefix}\\${rest}`;
|
|
411
|
+
}
|
|
412
|
+
return prefix + rest.replace(ORDERED_LIST_MARKER_PATTERN, "$1\\$2");
|
|
413
|
+
}
|
|
319
414
|
function encryptToken(plaintext, key) {
|
|
320
415
|
const iv = crypto.randomBytes(IV_LENGTH);
|
|
321
416
|
const cipher = crypto.createCipheriv(ALGORITHM, key, iv, {
|
|
@@ -562,7 +657,7 @@ async function downloadAttachment(value, options) {
|
|
|
562
657
|
throw error;
|
|
563
658
|
}
|
|
564
659
|
}
|
|
565
|
-
var AdapterError, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, BUTTON_STYLE_MAPPINGS, ALGORITHM = "aes-256-gcm", IV_LENGTH = 12, AUTH_TAG_LENGTH = 16, HEX_KEY_PATTERN, LIMIT, REDIRECTS = 5, TIMEOUT = 30000, STATUSES, BRACKETS, IPV4, IPV6, DECODERS, BLOCKED4, BLOCKED6;
|
|
660
|
+
var AdapterError, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, BUTTON_STYLE_MAPPINGS, CODE_FENCE = "```", LEADING_WHITESPACE_PATTERN, BLOCK_MARKER_PATTERN, ORDERED_LIST_MARKER_PATTERN, ALGORITHM = "aes-256-gcm", IV_LENGTH = 12, AUTH_TAG_LENGTH = 16, HEX_KEY_PATTERN, LIMIT, REDIRECTS = 5, TIMEOUT = 30000, STATUSES, BRACKETS, IPV4, IPV6, DECODERS, BLOCKED4, BLOCKED6;
|
|
566
661
|
var init_dist7 = __esm(() => {
|
|
567
662
|
init_chunk_5C7UKIZ7();
|
|
568
663
|
init_chunk_KGHU3EYG();
|
|
@@ -634,6 +729,9 @@ var init_dist7 = __esm(() => {
|
|
|
634
729
|
teams: { primary: "positive", danger: "destructive" },
|
|
635
730
|
discord: { primary: "primary", danger: "danger" }
|
|
636
731
|
};
|
|
732
|
+
LEADING_WHITESPACE_PATTERN = /^[ \t]+/;
|
|
733
|
+
BLOCK_MARKER_PATTERN = /^(?:[<>]|#{1,6}(?=[ \t\n]|$)|[-+*](?=[ \t\n]|$)|`{3,}|~{3,}|(?:[-*_][ \t]*){3,}(?=\n|$))/;
|
|
734
|
+
ORDERED_LIST_MARKER_PATTERN = /^(\d{1,9})([.)])(?=[ \t\n]|$)/;
|
|
637
735
|
HEX_KEY_PATTERN = /^[0-9a-fA-F]{64}$/;
|
|
638
736
|
LIMIT = 25 * 1024 * 1024;
|
|
639
737
|
STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -674,4 +772,4 @@ var init_dist7 = __esm(() => {
|
|
|
674
772
|
BLOCKED6 = blocklist(IPV6, "ipv6");
|
|
675
773
|
});
|
|
676
774
|
|
|
677
|
-
export { replaceBareMentions, maskCodeSpans, init_chunk_KGHU3EYG, encodeCallbackData, decodeCallbackData, extractCard, extractFiles, extractPostableAttachments, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, toBuffer, bufferToDataUri, createEmojiConverter, mapButtonStyle, cardToFallbackText3, escapeTableCell, renderGfmTable, encryptToken, decryptToken, isEncryptedTokenData, decodeKey, downloadAttachment, init_dist7 };
|
|
775
|
+
export { replaceBareMentions, maskCodeSpans, init_chunk_KGHU3EYG, encodeCallbackData, decodeCallbackData, extractCard, extractFiles, extractPostableAttachments, AdapterRateLimitError, AuthenticationError3, ResourceNotFoundError, PermissionError, ValidationError, NetworkError, toBuffer, bufferToDataUri, createEmojiConverter, mapButtonStyle, cardToFallbackText3, escapeTableCell, renderGfmTable, normalizeCodeFences, encryptToken, decryptToken, isEncryptedTokenData, decodeKey, downloadAttachment, init_dist7 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ACPAdapter2
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-1f48qdnb.js";
|
|
4
4
|
import {
|
|
5
5
|
isGrokOpenRouterModel2,
|
|
6
6
|
grokTargetProfile2
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-d528acsw.js";
|
|
8
8
|
import {
|
|
9
9
|
getOpenRouterBaseUrl,
|
|
10
10
|
getOpenRouterAttributionHeaders,
|