@desplega.ai/agent-swarm 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-adapter-t949vbbp.js → acp-adapter-pdy3qsvg.js} +1 -1
- package/dist/{actions-7e9czc7s.js → actions-pwjpn0j6.js} +18 -18
- package/dist/{amp-adapter-gv6cbb7d.js → amp-adapter-cq9jgj6x.js} +1 -1
- package/dist/{app-b9fbkp9v.js → app-cnfffgwg.js} +3 -3
- package/dist/{assistant-wjb7v4c7.js → assistant-kpn317y1.js} +19 -19
- package/dist/{boot-args-schema-2t37e0fe.js → boot-args-schema-pbbnhmc3.js} +1 -1
- package/dist/{boot-reembed-gka3zas7.js → boot-reembed-9m0ysxma.js} +1 -1
- package/dist/{boot-reembed-a35nkyr1.js → boot-reembed-majbn53m.js} +1 -1
- package/dist/{boot-scrub-sweep-65sdnp6c.js → boot-scrub-sweep-app8g8ym.js} +2 -2
- package/dist/{boot-seeds-x42tzytw.js → boot-seeds-pbtmvcjm.js} +4 -4
- package/dist/{claude-adapter-v221b2fd.js → claude-adapter-wn1g3qp5.js} +2 -2
- package/dist/{claude-managed-adapter-29eq09wd.js → claude-managed-adapter-jh6c523j.js} +2 -2
- package/dist/{claude-managed-setup-9m6450zk.js → claude-managed-setup-pd47nzch.js} +4 -4
- package/dist/{claude-sdk-session-0q0ptaba.js → claude-sdk-session-3a2a6589.js} +2 -2
- package/dist/{cli-j790gp2w.js → cli-0ntbxyaa.js} +5 -5
- package/dist/{cli-c55z5chy.js → cli-1xh9a7hn.js} +2 -2
- package/dist/{cli-p1bq50aa.js → cli-4r05hnqa.js} +10 -10
- package/dist/{cli-qa4wdgsy.js → cli-6mma83xa.js} +1 -1
- package/dist/{cli-tph5wt3y.js → cli-6wj7p986.js} +1 -1
- package/dist/{cli-t73cas91.js → cli-7349va39.js} +8100 -7620
- package/dist/{cli-h38x262p.js → cli-7w69ne2f.js} +7 -7
- package/dist/{cli-qwca7s44.js → cli-89cqnasv.js} +2 -2
- package/dist/{cli-rfywm85n.js → cli-93k32c37.js} +31 -31
- package/dist/{cli-2wnq8jkz.js → cli-9vhebtjz.js} +1 -1
- package/dist/{cli-m23zjcy2.js → cli-9wngrawf.js} +1 -1
- package/dist/{cli-f3vq58d2.js → cli-a3b239vq.js} +1 -1
- package/dist/{cli-abejgen1.js → cli-b085njxz.js} +9 -9
- package/dist/{cli-m28atx8q.js → cli-b5rs97a6.js} +4 -4
- package/dist/{cli-qsnnd04k.js → cli-b8e9nb04.js} +1 -1
- package/dist/{cli-p2gfst4m.js → cli-bb431xey.js} +18 -18
- package/dist/{cli-deefvewm.js → cli-cyhbbd1z.js} +1 -1
- package/dist/{cli-y97qxcfx.js → cli-d3p5vwbk.js} +2 -2
- package/dist/{cli-a7wvp2km.js → cli-dy32zecz.js} +1 -1
- package/dist/{cli-yq3zak69.js → cli-gax7fk3t.js} +1 -1
- package/dist/{cli-ee0b971j.js → cli-jcpr5smb.js} +2 -2
- package/dist/{cli-6t09sdhy.js → cli-jywyhqws.js} +3 -3
- package/dist/{cli-6wxjceza.js → cli-k0615eh8.js} +6 -6
- package/dist/{cli-4txa0ter.js → cli-k26bkr9t.js} +2 -2
- package/dist/{cli-8kzasymh.js → cli-k93bq1wq.js} +2 -2
- package/dist/{cli-gpwhbgx0.js → cli-m9s2qff2.js} +57 -25
- package/dist/{cli-wcg8x116.js → cli-pcad4cb1.js} +1 -1
- package/dist/{cli-gxkx0zzp.js → cli-re4raaj0.js} +1 -1
- package/dist/{cli-rzsy6nc6.js → cli-sn7rtnj4.js} +1 -1
- package/dist/{cli-8fknbnhw.js → cli-syybb0p1.js} +7 -7
- package/dist/{cli-rmmpt0wm.js → cli-tacge1w0.js} +6 -6
- package/dist/{cli-pasjcnmj.js → cli-vbh10fqa.js} +2 -2
- package/dist/{cli-ffhtssbp.js → cli-vj75tyaw.js} +1 -1
- package/dist/{cli-qfedvmcr.js → cli-vqptjbr7.js} +8 -8
- package/dist/{cli-n9ftpys4.js → cli-x6t50dmw.js} +7 -7
- package/dist/{cli-sdtt3men.js → cli-yn2bbre9.js} +1 -1
- package/dist/{cli-334z18y3.js → cli-yncmerje.js} +2 -2
- package/dist/{cli-s7t6p9my.js → cli-zcsw143p.js} +1 -1
- package/dist/cli.js +13 -13
- package/dist/{codex-adapter-30j9bpzd.js → codex-adapter-nha71q3n.js} +1 -1
- package/dist/{codex-session-runner-8vp57v8w.js → codex-session-runner-ak9x1k1h.js} +1 -1
- package/dist/{commands-bngnz9g7.js → commands-f587qpq8.js} +3 -3
- package/dist/{controllers-connect-e2b4gyxc.js → controllers-connect-k5sg9m9h.js} +18 -18
- package/dist/{db-c6np41ca.js → db-amm8w15a.js} +1 -1
- package/dist/{db-bgm7vkc0.js → db-nzf8zb5z.js} +3 -3
- package/dist/{dispatcher-jnybck15.js → dispatcher-89zrts8f.js} +17 -17
- package/dist/{embedding-space-crsm2zp0.js → embedding-space-ezwenjmj.js} +6 -6
- package/dist/{embeddings-e7z3f27f.js → embeddings-np74ht6g.js} +1 -1
- package/dist/{external-channel-m77wf5z3.js → external-channel-z46yx9d7.js} +2 -2
- package/dist/{fx-adapter-b6w0kf56.js → fx-adapter-3q12snn6.js} +2 -2
- package/dist/{grok-adapter-4sqtebdk.js → grok-adapter-ahb1w033.js} +2 -2
- package/dist/handlers-vbww69re.js +32 -0
- package/dist/{heartbeat-xgb036sx.js → heartbeat-dt9qw9c8.js} +19 -19
- package/dist/{hook-xsk1jbha.js → hook-8k6fbz9b.js} +1 -1
- package/dist/{hook-5h02c9ga.js → hook-jgcgygex.js} +1 -1
- package/dist/{http-txe7qhvn.js → http-haw4r8ne.js} +40 -40
- package/dist/{index-0eny15vj.js → index-2skqtd76.js} +2 -2
- package/dist/index-4xwaf5th.js +32 -0
- package/dist/{index-ysvbhg5m.js → index-5gk12my8.js} +1 -1
- package/dist/{index-w7em4ktq.js → index-d6wkh8ar.js} +2 -2
- package/dist/index-f0hcrs8e.js +33 -0
- package/dist/{index-rvccek1w.js → index-gjwaqaq8.js} +5 -5
- package/dist/{index-e5pfbsys.js → index-hjhfk3ra.js} +3 -3
- package/dist/{index-1qw6f2dc.js → index-khe3gp0k.js} +4 -4
- package/dist/index-s4ewdma4.js +37 -0
- package/dist/{index-vk63emp7.js → index-tez78qj3.js} +11 -11
- package/dist/{keepalive-4zsrce78.js → keepalive-xn6s7rmg.js} +3 -3
- package/dist/{lead-yqt47dkr.js → lead-6ygbfhbh.js} +28 -28
- package/dist/{maintenance-86jvartk.js → maintenance-vdts800b.js} +1 -1
- package/dist/{node-je82wjet.js → node-4c5jqxr3.js} +1 -1
- package/dist/{oauth-refresh-sweep-j52kg9pr.js → oauth-refresh-sweep-094c8wfk.js} +2 -2
- package/dist/{onboard-c2aj5p8q.js → onboard-v99eh56m.js} +2 -2
- package/dist/{otel-impl-yyy203z8.js → otel-impl-q7yr9yp0.js} +1 -1
- package/dist/{pricing-refresh-1rgzqyzz.js → pricing-refresh-7dh2yase.js} +2 -2
- package/dist/{rbac-roles-q89qe8er.js → rbac-roles-mdmc96p4.js} +3 -3
- package/dist/{rbac-roles-e70xfeyj.js → rbac-roles-npbmdh77.js} +2 -2
- package/dist/{render-v2-k6tt107q.js → render-v2-twhhwmms.js} +3 -3
- package/dist/{resume-cnnrjfxa.js → resume-5gsrjd5e.js} +6 -6
- package/dist/{session-access-xkxkjw3n.js → session-access-m191x30x.js} +4 -4
- package/dist/{session-source-backfill-1d5pdwww.js → session-source-backfill-nt923ask.js} +1 -1
- package/dist/{setup-se8q7gkc.js → setup-wv467afy.js} +1 -1
- package/dist/{work-objects-1kxnbzy5.js → work-objects-8zkrpy13.js} +20 -20
- package/dist/{worker-follow-up-zqm8apt4.js → worker-follow-up-cecqszem.js} +17 -17
- package/dist/{worker-j6xxtq7p.js → worker-mz5z7kj0.js} +28 -28
- package/openapi.json +1 -1
- package/package.json +2 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/scripts-runtime/eval-harness.ts +14 -1
- package/src/scripts-runtime/executors/types.ts +3 -0
- package/src/tests/mcp-tools.test.ts +1 -1
- package/src/tests/script-native-unawaited-drain.test.ts +167 -0
- package/src/tools/script-run.ts +1 -1
- package/templates/skills/swarm-scripts/SKILL.md +1 -1
- package/templates/skills/swarm-scripts/content.md +1 -1
- package/dist/handlers-kdjcyzdj.js +0 -32
- package/dist/index-835xdgnm.js +0 -33
- package/dist/index-d469300x.js +0 -37
- package/dist/index-rzqwp11g.js +0 -32
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
import {
|
|
132
132
|
init_package,
|
|
133
133
|
package_default
|
|
134
|
-
} from "./cli-
|
|
134
|
+
} from "./cli-yncmerje.js";
|
|
135
135
|
import {
|
|
136
136
|
realtimeBus,
|
|
137
137
|
init_bus
|
|
@@ -5226,7 +5226,7 @@ var init_runtime2 = __esm(() => {
|
|
|
5226
5226
|
// src/telemetry-identity.ts
|
|
5227
5227
|
async function loadUserRole(userId) {
|
|
5228
5228
|
try {
|
|
5229
|
-
const { getUserGrant } = await import("./rbac-roles-
|
|
5229
|
+
const { getUserGrant } = await import("./rbac-roles-mdmc96p4.js");
|
|
5230
5230
|
const grant = await getUserGrant(userId);
|
|
5231
5231
|
const role = grant.grantsAll ? "admin" : "member";
|
|
5232
5232
|
const user = await getDbClient2().get("SELECT json_extract(metadata, '$.jobFunction') AS jobFunction FROM users WHERE id = ? AND json_valid(metadata)", [userId]);
|
|
@@ -11585,7 +11585,7 @@ async function cancelTask2(id, reason, options = {}) {
|
|
|
11585
11585
|
if (row.source === "schedule" && row.taskType === "deferred" && row.parentTaskId) {
|
|
11586
11586
|
getDbClient2().afterCommit(async () => {
|
|
11587
11587
|
try {
|
|
11588
|
-
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-
|
|
11588
|
+
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-cecqszem.js");
|
|
11589
11589
|
await createWorkerTaskFollowUp({
|
|
11590
11590
|
task: rowToAgentTask(row),
|
|
11591
11591
|
status: "failed",
|
|
@@ -21959,7 +21959,7 @@ function noteEmbeddingSuccess() {
|
|
|
21959
21959
|
const report = (what) => (err) => {
|
|
21960
21960
|
console.error(`[memory] ${what} backfill after embeddings recovered failed:`, err.message);
|
|
21961
21961
|
};
|
|
21962
|
-
backfill2 = import("./embedding-space-
|
|
21962
|
+
backfill2 = import("./embedding-space-ezwenjmj.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: true })).catch(report("Embedding")).finally(() => {
|
|
21963
21963
|
backfill2 = null;
|
|
21964
21964
|
});
|
|
21965
21965
|
}
|
|
@@ -24152,7 +24152,7 @@ async function loadSecretRegistry() {
|
|
|
24152
24152
|
result.failed += 1;
|
|
24153
24153
|
}
|
|
24154
24154
|
try {
|
|
24155
|
-
const { loadRuntimeControllerSecrets } = await import("./db-
|
|
24155
|
+
const { loadRuntimeControllerSecrets } = await import("./db-nzf8zb5z.js");
|
|
24156
24156
|
const loaded = await loadRuntimeControllerSecrets();
|
|
24157
24157
|
result.runtimeController = loaded.count;
|
|
24158
24158
|
result.failed += loaded.failed;
|
|
@@ -24304,7 +24304,7 @@ async function requestSteering(args) {
|
|
|
24304
24304
|
}
|
|
24305
24305
|
const requestedMode = args.mode ?? "queue";
|
|
24306
24306
|
const onUnsupported = args.onUnsupported ?? "degrade";
|
|
24307
|
-
const { dispatchPre, extensionIdForAgent } = await import("./dispatcher-
|
|
24307
|
+
const { dispatchPre, extensionIdForAgent } = await import("./dispatcher-89zrts8f.js");
|
|
24308
24308
|
const preSteer = await dispatchPre("pre.task.steer", {
|
|
24309
24309
|
task,
|
|
24310
24310
|
message: args.message,
|
|
@@ -28365,7 +28365,7 @@ async function deleteScheduledTask2(id) {
|
|
|
28365
28365
|
const parent = await getTaskById2(deferred.parentTaskId);
|
|
28366
28366
|
if (!parent?.deferredAt)
|
|
28367
28367
|
return;
|
|
28368
|
-
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-
|
|
28368
|
+
const { createWorkerTaskFollowUp } = await import("./worker-follow-up-cecqszem.js");
|
|
28369
28369
|
await createWorkerTaskFollowUp({
|
|
28370
28370
|
task: parent,
|
|
28371
28371
|
status: "failed",
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getResolvedConfig2,
|
|
7
7
|
getAllUsers2,
|
|
8
8
|
init_db4
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-7w69ne2f.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserGrant2,
|
|
12
12
|
init_rbac_roles
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-1xh9a7hn.js";
|
|
14
14
|
import {
|
|
15
15
|
scrubSecrets,
|
|
16
16
|
init_secret_scrubber
|
|
@@ -375,23 +375,23 @@ import {
|
|
|
375
375
|
recordInlineScriptRun2,
|
|
376
376
|
exports_db,
|
|
377
377
|
init_db4
|
|
378
|
-
} from "./cli-
|
|
378
|
+
} from "./cli-7w69ne2f.js";
|
|
379
379
|
import {
|
|
380
380
|
assertMayActOnOperatorGrantedTarget2,
|
|
381
381
|
getUserGrant2,
|
|
382
382
|
init_rbac_roles
|
|
383
|
-
} from "./cli-
|
|
383
|
+
} from "./cli-1xh9a7hn.js";
|
|
384
384
|
import {
|
|
385
385
|
ensurePricingSeeded2,
|
|
386
386
|
ensureRbacSeeded2,
|
|
387
387
|
ensureModelProfilesSeeded2,
|
|
388
388
|
init_boot_seeds
|
|
389
|
-
} from "./cli-
|
|
389
|
+
} from "./cli-k26bkr9t.js";
|
|
390
390
|
import {
|
|
391
391
|
requestModelCatalogRefresh2,
|
|
392
392
|
startPricingRefreshLoop2,
|
|
393
393
|
init_pricing_refresh
|
|
394
|
-
} from "./cli-
|
|
394
|
+
} from "./cli-a3b239vq.js";
|
|
395
395
|
import {
|
|
396
396
|
workflowEventBus2,
|
|
397
397
|
init_event_bus
|
|
@@ -404,7 +404,7 @@ import {
|
|
|
404
404
|
externalChannelToolError2,
|
|
405
405
|
getChannelBlockReason2,
|
|
406
406
|
init_external_channel
|
|
407
|
-
} from "./cli-
|
|
407
|
+
} from "./cli-b8e9nb04.js";
|
|
408
408
|
import {
|
|
409
409
|
noteSlackInboundSideEffect,
|
|
410
410
|
init_inbound_dispatch,
|
|
@@ -443,7 +443,7 @@ import {
|
|
|
443
443
|
startSlackApp2,
|
|
444
444
|
stopSlackAppUnderLifecycleLock2,
|
|
445
445
|
init_app3
|
|
446
|
-
} from "./cli-
|
|
446
|
+
} from "./cli-4r05hnqa.js";
|
|
447
447
|
import {
|
|
448
448
|
shapeApprovalResolution,
|
|
449
449
|
init_approval_resolution,
|
|
@@ -467,7 +467,7 @@ import {
|
|
|
467
467
|
resumeFromChildRun2,
|
|
468
468
|
initWaitBusSubscriptions2,
|
|
469
469
|
init_resume
|
|
470
|
-
} from "./cli-
|
|
470
|
+
} from "./cli-vbh10fqa.js";
|
|
471
471
|
import {
|
|
472
472
|
FilesError,
|
|
473
473
|
providerPath,
|
|
@@ -481,11 +481,11 @@ import {
|
|
|
481
481
|
import {
|
|
482
482
|
tableToAscii2,
|
|
483
483
|
init_dist4
|
|
484
|
-
} from "./cli-
|
|
484
|
+
} from "./cli-x6t50dmw.js";
|
|
485
485
|
import {
|
|
486
486
|
getRuntimePool2,
|
|
487
487
|
init_db2
|
|
488
|
-
} from "./cli-
|
|
488
|
+
} from "./cli-k93bq1wq.js";
|
|
489
489
|
import {
|
|
490
490
|
duplicateGuardedQueryKey,
|
|
491
491
|
parseQueryParams,
|
|
@@ -518,7 +518,7 @@ import {
|
|
|
518
518
|
findRoute,
|
|
519
519
|
route,
|
|
520
520
|
init_route_def
|
|
521
|
-
} from "./cli-
|
|
521
|
+
} from "./cli-b5rs97a6.js";
|
|
522
522
|
import {
|
|
523
523
|
COMPOSIO_HTTP_METHODS,
|
|
524
524
|
executeComposioRequest,
|
|
@@ -620,7 +620,7 @@ import {
|
|
|
620
620
|
init_typecheck,
|
|
621
621
|
parseSkillContent,
|
|
622
622
|
init_skill_parser
|
|
623
|
-
} from "./cli-
|
|
623
|
+
} from "./cli-0ntbxyaa.js";
|
|
624
624
|
import {
|
|
625
625
|
detachedProcessGroup,
|
|
626
626
|
registerProcessGroup,
|
|
@@ -635,7 +635,7 @@ import {
|
|
|
635
635
|
ensureToken,
|
|
636
636
|
ensureTokenOrThrow,
|
|
637
637
|
init_ensure_token
|
|
638
|
-
} from "./cli-
|
|
638
|
+
} from "./cli-yn2bbre9.js";
|
|
639
639
|
import {
|
|
640
640
|
require_fast_deep_equal
|
|
641
641
|
} from "./cli-bhp11egn.js";
|
|
@@ -730,7 +730,7 @@ import {
|
|
|
730
730
|
validateDefinition,
|
|
731
731
|
applyDefinitionPatch,
|
|
732
732
|
init_definition2
|
|
733
|
-
} from "./cli-
|
|
733
|
+
} from "./cli-vqptjbr7.js";
|
|
734
734
|
import {
|
|
735
735
|
isMultiRuntimeEnabled,
|
|
736
736
|
init_multi_runtime2
|
|
@@ -751,11 +751,11 @@ import {
|
|
|
751
751
|
isSlackLeaveThreadDisabled,
|
|
752
752
|
leaveSlackThread,
|
|
753
753
|
init_left_threads
|
|
754
|
-
} from "./cli-
|
|
754
|
+
} from "./cli-dy32zecz.js";
|
|
755
755
|
import {
|
|
756
756
|
publicEndpointSsrfOptions,
|
|
757
757
|
init_mcp_wrapper
|
|
758
|
-
} from "./cli-
|
|
758
|
+
} from "./cli-zcsw143p.js";
|
|
759
759
|
import {
|
|
760
760
|
canProvisionKind,
|
|
761
761
|
init_runtime_providers
|
|
@@ -774,7 +774,7 @@ import {
|
|
|
774
774
|
resolveSessionToken,
|
|
775
775
|
fingerprintApiKey,
|
|
776
776
|
init_users
|
|
777
|
-
} from "./cli-
|
|
777
|
+
} from "./cli-re4raaj0.js";
|
|
778
778
|
import {
|
|
779
779
|
normalizeAssetKey,
|
|
780
780
|
SESSION_RESOURCE_KINDS,
|
|
@@ -912,7 +912,7 @@ import {
|
|
|
912
912
|
import {
|
|
913
913
|
init_package,
|
|
914
914
|
package_default
|
|
915
|
-
} from "./cli-
|
|
915
|
+
} from "./cli-yncmerje.js";
|
|
916
916
|
import {
|
|
917
917
|
realtimeBus,
|
|
918
918
|
init_bus
|
|
@@ -20302,7 +20302,7 @@ function startRetryPoller(registry, intervalMs = 5000) {
|
|
|
20302
20302
|
if (!waiting)
|
|
20303
20303
|
continue;
|
|
20304
20304
|
if (result.waitFor === "workflow.child.finished") {
|
|
20305
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
20305
|
+
const { resumeFromChildRun } = await import("./resume-5gsrjd5e.js");
|
|
20306
20306
|
await resumeFromChildRun(step.id, registry);
|
|
20307
20307
|
}
|
|
20308
20308
|
} else {
|
|
@@ -21048,7 +21048,7 @@ var init_notify = __esm(() => {
|
|
|
21048
21048
|
}
|
|
21049
21049
|
}
|
|
21050
21050
|
case "slack": {
|
|
21051
|
-
const { getSlackApp } = await import("./app-
|
|
21051
|
+
const { getSlackApp } = await import("./app-cnfffgwg.js");
|
|
21052
21052
|
let app = getSlackApp();
|
|
21053
21053
|
if (!app) {
|
|
21054
21054
|
if (!isSlackConfigured()) {
|
|
@@ -24470,7 +24470,7 @@ function setPreloadedTools(server, names) {
|
|
|
24470
24470
|
async function applyPreToolCall(name, args, requestInfo, inputSchema) {
|
|
24471
24471
|
if (requestInfo.callOrigin !== "mcp")
|
|
24472
24472
|
return { args };
|
|
24473
|
-
const dispatcher = await import("./dispatcher-
|
|
24473
|
+
const dispatcher = await import("./dispatcher-89zrts8f.js");
|
|
24474
24474
|
const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
|
|
24475
24475
|
validateModify: async (data) => {
|
|
24476
24476
|
const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
|
|
@@ -31984,7 +31984,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
31984
31984
|
const base = { ...config, apiUrl, logger };
|
|
31985
31985
|
switch (name) {
|
|
31986
31986
|
case "telegram": {
|
|
31987
|
-
const { TelegramAdapter } = await import("./index-
|
|
31987
|
+
const { TelegramAdapter } = await import("./index-gjwaqaq8.js");
|
|
31988
31988
|
|
|
31989
31989
|
class SwarmTelegramAdapter extends TelegramAdapter {
|
|
31990
31990
|
isBotMentioned(message, text) {
|
|
@@ -31998,7 +31998,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
31998
31998
|
});
|
|
31999
31999
|
}
|
|
32000
32000
|
case "slack": {
|
|
32001
|
-
const { createSlackAdapter } = await import("./index-
|
|
32001
|
+
const { createSlackAdapter } = await import("./index-2skqtd76.js");
|
|
32002
32002
|
return createSlackAdapter({
|
|
32003
32003
|
...base,
|
|
32004
32004
|
signingSecret: config.signingSecret ?? "",
|
|
@@ -32008,7 +32008,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32008
32008
|
});
|
|
32009
32009
|
}
|
|
32010
32010
|
case "discord": {
|
|
32011
|
-
const { createDiscordAdapter } = await import("./index-
|
|
32011
|
+
const { createDiscordAdapter } = await import("./index-d6wkh8ar.js");
|
|
32012
32012
|
return createDiscordAdapter({
|
|
32013
32013
|
...base,
|
|
32014
32014
|
logger: withInfoFilter(logger, keepDiscordInfoLine),
|
|
@@ -32017,7 +32017,7 @@ async function loadAdapter(name, config, logger) {
|
|
|
32017
32017
|
});
|
|
32018
32018
|
}
|
|
32019
32019
|
case "teams": {
|
|
32020
|
-
const { createTeamsAdapter } = await import("./index-
|
|
32020
|
+
const { createTeamsAdapter } = await import("./index-khe3gp0k.js");
|
|
32021
32021
|
const { teamsWebhookVerifier, teamsToken } = getChatSdkTestHooks();
|
|
32022
32022
|
return createTeamsAdapter({
|
|
32023
32023
|
...base,
|
|
@@ -32226,7 +32226,7 @@ async function readPersistedThreadHistory(threadId) {
|
|
|
32226
32226
|
const rows = await new SqliteChatState().getList(`${SDK_THREAD_HISTORY_PREFIX}${threadId}`);
|
|
32227
32227
|
if (rows.length === 0)
|
|
32228
32228
|
return [];
|
|
32229
|
-
const { Message: MessageClass } = await import("./index-
|
|
32229
|
+
const { Message: MessageClass } = await import("./index-hjhfk3ra.js");
|
|
32230
32230
|
return rows.map((row) => MessageClass.fromJSON(row));
|
|
32231
32231
|
}
|
|
32232
32232
|
var SDK_THREAD_HISTORY_PREFIX = "msg-history:";
|
|
@@ -34770,7 +34770,7 @@ async function startChatSdk() {
|
|
|
34770
34770
|
for (const [name, reason] of Object.entries(config.incomplete ?? {})) {
|
|
34771
34771
|
console.warn(`[chat-sdk] ${name} not started, incomplete: ${scrubSecrets(reason)}`);
|
|
34772
34772
|
}
|
|
34773
|
-
const { Chat: ChatClass } = await import("./index-
|
|
34773
|
+
const { Chat: ChatClass } = await import("./index-hjhfk3ra.js");
|
|
34774
34774
|
const state = new SqliteChatState;
|
|
34775
34775
|
startChatRelayWatcher();
|
|
34776
34776
|
await Promise.all(CHAT_SDK_ADAPTER_NAMES.map(async (name) => {
|
|
@@ -35677,7 +35677,7 @@ async function notifySlack(text) {
|
|
|
35677
35677
|
return;
|
|
35678
35678
|
}
|
|
35679
35679
|
try {
|
|
35680
|
-
const { getSlackApp } = await import("./app-
|
|
35680
|
+
const { getSlackApp } = await import("./app-cnfffgwg.js");
|
|
35681
35681
|
const app = getSlackApp();
|
|
35682
35682
|
if (!app) {
|
|
35683
35683
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -35748,7 +35748,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
35748
35748
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
35749
35749
|
}
|
|
35750
35750
|
async function overwriteWebhookIds(next) {
|
|
35751
|
-
const { getDbClient } = await import("./db-
|
|
35751
|
+
const { getDbClient } = await import("./db-amm8w15a.js");
|
|
35752
35752
|
await getDbClient().transaction(async (tx) => {
|
|
35753
35753
|
const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
|
|
35754
35754
|
if (!row) {
|
|
@@ -109243,7 +109243,7 @@ async function reloadGlobalConfigsAndIntegrations() {
|
|
|
109243
109243
|
return runWithoutRequestAuth(() => runSlackLifecycleExclusive(() => reloadGlobalConfigsAndIntegrationsInner()));
|
|
109244
109244
|
}
|
|
109245
109245
|
async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
109246
|
-
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-
|
|
109246
|
+
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-5gk12my8.js");
|
|
109247
109247
|
const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
109248
109248
|
const updated = await loadGlobalConfigsIntoEnv(true);
|
|
109249
109249
|
await syncTelemetryEnabled("settings").catch((err) => {
|
|
@@ -109259,7 +109259,7 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
|
109259
109259
|
integrations.push("embeddings");
|
|
109260
109260
|
}
|
|
109261
109261
|
if (isEmbeddingsConfigured) {
|
|
109262
|
-
import("./embedding-space-
|
|
109262
|
+
import("./embedding-space-ezwenjmj.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
|
|
109263
109263
|
console.error("[config-reload] embedding maintenance failed (non-fatal):", err);
|
|
109264
109264
|
});
|
|
109265
109265
|
}
|
|
@@ -133970,7 +133970,7 @@ ${body.stdout.trim()}`);
|
|
|
133970
133970
|
|
|
133971
133971
|
`) : undefined;
|
|
133972
133972
|
}
|
|
133973
|
-
var SCRIPT_RUN_DESCRIPTION = "Run a named swarm-shared script (callable across agents and from workflow `swarm-script` nodes), OR inline source (auto-saved as scratch to the catalog). Inline source executes without the `script-upsert` compile-time typecheck. Use for swarm-visible, durable scripts. For local-only throwaway TS, use code-mode `run`.", registerScriptRunTool = (server) => {
|
|
133973
|
+
var SCRIPT_RUN_DESCRIPTION = "Run a named swarm-shared script (callable across agents and from workflow `swarm-script` nodes), OR inline source (auto-saved as scratch to the catalog). Inline source executes without the `script-upsert` compile-time typecheck. Use for swarm-visible, durable scripts. For local-only throwaway TS, use code-mode `run`. The run ends when the script's default export resolves: a call it did not await gets 2 s more, then is stopped (native) or aborted at once (quickjs), so await every write that must land. A `Promise.race` deadline therefore bounds the run; a nested `script_run` that lost the race keeps running on the server under its own wall.", registerScriptRunTool = (server) => {
|
|
133974
133974
|
createToolRegistrar(server)("script-run", {
|
|
133975
133975
|
title: "Script Run",
|
|
133976
133976
|
description: SCRIPT_RUN_DESCRIPTION,
|
|
@@ -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.1793851242-g61361b";
|
|
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;
|
|
@@ -70,19 +70,19 @@ import {
|
|
|
70
70
|
getStaleApprovalRequests2,
|
|
71
71
|
upsertKv2,
|
|
72
72
|
init_db4
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-7w69ne2f.js";
|
|
74
74
|
import {
|
|
75
75
|
listRuntimePools2,
|
|
76
76
|
init_db2
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-k93bq1wq.js";
|
|
78
78
|
import {
|
|
79
79
|
userHoldsOperatorGrantedRole2,
|
|
80
80
|
assertMayActOnOperatorGrantedTarget2,
|
|
81
81
|
init_rbac_roles
|
|
82
|
-
} from "./cli-
|
|
82
|
+
} from "./cli-1xh9a7hn.js";
|
|
83
83
|
import {
|
|
84
84
|
remediateStalledRuntime
|
|
85
|
-
} from "./cli-
|
|
85
|
+
} from "./cli-k0615eh8.js";
|
|
86
86
|
import {
|
|
87
87
|
repointTrackerSyncBySwarmId,
|
|
88
88
|
init_tracker,
|
|
@@ -110,13 +110,13 @@ import {
|
|
|
110
110
|
init_approval_cancel,
|
|
111
111
|
canClaim,
|
|
112
112
|
init_budget_admission
|
|
113
|
-
} from "./cli-
|
|
113
|
+
} from "./cli-93k32c37.js";
|
|
114
114
|
import {
|
|
115
115
|
runScriptWithRunCredential,
|
|
116
116
|
init_run_credential,
|
|
117
117
|
runSavedScriptAsAgent,
|
|
118
118
|
init_run_saved
|
|
119
|
-
} from "./cli-
|
|
119
|
+
} from "./cli-0ntbxyaa.js";
|
|
120
120
|
import {
|
|
121
121
|
runtimeStaleThresholdMinutes,
|
|
122
122
|
countActiveRuntimeInstancesForAgent,
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
init_multi_runtime,
|
|
127
127
|
createApprovalFollowUpTask,
|
|
128
128
|
init_approval_notifications
|
|
129
|
-
} from "./cli-
|
|
129
|
+
} from "./cli-vqptjbr7.js";
|
|
130
130
|
import {
|
|
131
131
|
isMultiRuntimeEnabled,
|
|
132
132
|
init_multi_runtime2
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
recordIdentityEvent,
|
|
136
136
|
mintToken,
|
|
137
137
|
init_users
|
|
138
|
-
} from "./cli-
|
|
138
|
+
} from "./cli-re4raaj0.js";
|
|
139
139
|
import {
|
|
140
140
|
TERMINAL_TASK_STATUSES,
|
|
141
141
|
OPEN_TASK_STATUSES,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
import {
|
|
157
157
|
init_package,
|
|
158
158
|
package_default
|
|
159
|
-
} from "./cli-
|
|
159
|
+
} from "./cli-yncmerje.js";
|
|
160
160
|
import {
|
|
161
161
|
isEnvFlagEnabled,
|
|
162
162
|
init_env_flag
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
init_active_sessions,
|
|
15
15
|
getSteeringMessageById2,
|
|
16
16
|
init_db4
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-7w69ne2f.js";
|
|
18
18
|
import {
|
|
19
19
|
userHoldsExplicitVerb2,
|
|
20
20
|
getUserGrant2,
|
|
21
21
|
init_rbac_roles
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-1xh9a7hn.js";
|
|
23
23
|
import {
|
|
24
24
|
findUserById,
|
|
25
25
|
findUserByExternalId,
|
|
26
26
|
init_users
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-re4raaj0.js";
|
|
28
28
|
import {
|
|
29
29
|
init_zod
|
|
30
30
|
} from "./cli-zcfpsfzf.js";
|
|
@@ -502,7 +502,7 @@ function route(def) {
|
|
|
502
502
|
try {
|
|
503
503
|
const rawBody = def.body ? await parseBody(req, def.maxBodyBytes) : undefined;
|
|
504
504
|
if (def.session && "bodyTaskIds" in def.session) {
|
|
505
|
-
const { bodySessionDenial } = await import("./session-access-
|
|
505
|
+
const { bodySessionDenial } = await import("./session-access-m191x30x.js");
|
|
506
506
|
const denial = await bodySessionDenial(req, def.session.bodyTaskIds(rawBody));
|
|
507
507
|
if (denial) {
|
|
508
508
|
jsonError(res, denial, 403);
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
checkDeepSeekApiKey,
|
|
12
12
|
checkOpenAICompatibleProvider,
|
|
13
13
|
writeSkillsToFilesystem
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-jcpr5smb.js";
|
|
15
15
|
import {
|
|
16
16
|
renderSteeringDelivery
|
|
17
17
|
} from "./cli-2gxeg5gr.js";
|
|
@@ -38,17 +38,17 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
checkAmpCredentials2,
|
|
40
40
|
liveTestAmpCredentials2
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-9wngrawf.js";
|
|
42
42
|
import {
|
|
43
43
|
checkClaudeCredentials2
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-d3p5vwbk.js";
|
|
45
45
|
import {
|
|
46
46
|
checkClaudeManagedCredentials2
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-vj75tyaw.js";
|
|
48
48
|
import {
|
|
49
49
|
codexUserHome,
|
|
50
50
|
checkCodexCredentials2
|
|
51
|
-
} from "./cli-
|
|
51
|
+
} from "./cli-9vhebtjz.js";
|
|
52
52
|
import {
|
|
53
53
|
checkCursorCredentials2
|
|
54
54
|
} from "./cli-7b8sbmag.js";
|
|
@@ -63,10 +63,10 @@ import {
|
|
|
63
63
|
} from "./cli-7p1kvkck.js";
|
|
64
64
|
import {
|
|
65
65
|
checkFxCredentials2
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-gax7fk3t.js";
|
|
67
67
|
import {
|
|
68
68
|
checkGrokCredentials2
|
|
69
|
-
} from "./cli-
|
|
69
|
+
} from "./cli-pcad4cb1.js";
|
|
70
70
|
import {
|
|
71
71
|
CODEX_OAUTH_POOL_SLOTS_ENV,
|
|
72
72
|
isCodexOAuthConfigKey,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
init_azure_devops,
|
|
85
85
|
resolveScriptsOnlyMode,
|
|
86
86
|
init_scripts_only_mode
|
|
87
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-93k32c37.js";
|
|
88
88
|
import {
|
|
89
89
|
terminateRegisteredProcessGroups,
|
|
90
90
|
init_process_group
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
import {
|
|
93
93
|
validateJsonSchema,
|
|
94
94
|
init_json_schema_validator
|
|
95
|
-
} from "./cli-
|
|
95
|
+
} from "./cli-vqptjbr7.js";
|
|
96
96
|
import {
|
|
97
97
|
authJsonToCredentialSelection,
|
|
98
98
|
credentialsToAuthJson,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
initialize,
|
|
112
112
|
ensure,
|
|
113
113
|
init_business_use
|
|
114
|
-
} from "./cli-
|
|
114
|
+
} from "./cli-4r05hnqa.js";
|
|
115
115
|
import {
|
|
116
116
|
mapTriggerSurface,
|
|
117
117
|
init_telemetry_context,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
init_vcs_repo_match,
|
|
132
132
|
resumedTaskModelSelection,
|
|
133
133
|
init_model_pin
|
|
134
|
-
} from "./cli-
|
|
134
|
+
} from "./cli-7w69ne2f.js";
|
|
135
135
|
import {
|
|
136
136
|
parseWorkerModelTierOverrides,
|
|
137
137
|
resolveTaskModelSelection,
|
|
@@ -271,7 +271,7 @@ init_storage();
|
|
|
271
271
|
async function createProviderAdapter(provider) {
|
|
272
272
|
switch (provider) {
|
|
273
273
|
case "claude": {
|
|
274
|
-
const { ClaudeAdapter } = await import("./claude-adapter-
|
|
274
|
+
const { ClaudeAdapter } = await import("./claude-adapter-wn1g3qp5.js");
|
|
275
275
|
return new ClaudeAdapter;
|
|
276
276
|
}
|
|
277
277
|
case "pi": {
|
|
@@ -279,11 +279,11 @@ async function createProviderAdapter(provider) {
|
|
|
279
279
|
return new PiMonoAdapter;
|
|
280
280
|
}
|
|
281
281
|
case "codex": {
|
|
282
|
-
const { CodexAdapter } = await import("./codex-adapter-
|
|
282
|
+
const { CodexAdapter } = await import("./codex-adapter-nha71q3n.js");
|
|
283
283
|
return new CodexAdapter;
|
|
284
284
|
}
|
|
285
285
|
case "claude-managed": {
|
|
286
|
-
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-
|
|
286
|
+
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-jh6c523j.js");
|
|
287
287
|
return new ClaudeManagedAdapter;
|
|
288
288
|
}
|
|
289
289
|
case "devin": {
|
|
@@ -299,7 +299,7 @@ async function createProviderAdapter(provider) {
|
|
|
299
299
|
return new DshAdapter;
|
|
300
300
|
}
|
|
301
301
|
case "amp": {
|
|
302
|
-
const { AmpAdapter } = await import("./amp-adapter-
|
|
302
|
+
const { AmpAdapter } = await import("./amp-adapter-cq9jgj6x.js");
|
|
303
303
|
return new AmpAdapter;
|
|
304
304
|
}
|
|
305
305
|
case "cursor": {
|
|
@@ -307,15 +307,15 @@ async function createProviderAdapter(provider) {
|
|
|
307
307
|
return new CursorAdapter;
|
|
308
308
|
}
|
|
309
309
|
case "grok": {
|
|
310
|
-
const { GrokAdapter } = await import("./grok-adapter-
|
|
310
|
+
const { GrokAdapter } = await import("./grok-adapter-ahb1w033.js");
|
|
311
311
|
return new GrokAdapter;
|
|
312
312
|
}
|
|
313
313
|
case "fx": {
|
|
314
|
-
const { FxAdapter } = await import("./fx-adapter-
|
|
314
|
+
const { FxAdapter } = await import("./fx-adapter-3q12snn6.js");
|
|
315
315
|
return new FxAdapter;
|
|
316
316
|
}
|
|
317
317
|
case "acp": {
|
|
318
|
-
const { ACPAdapter } = await import("./acp-adapter-
|
|
318
|
+
const { ACPAdapter } = await import("./acp-adapter-pdy3qsvg.js");
|
|
319
319
|
return new ACPAdapter;
|
|
320
320
|
}
|
|
321
321
|
default:
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./cli-xzm9vcfg.js";
|
|
6
6
|
import {
|
|
7
7
|
runStopHookSessionSummarySubprocess
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-6mma83xa.js";
|
|
9
9
|
import {
|
|
10
10
|
redactRateLimitEventLine,
|
|
11
11
|
SessionErrorTracker,
|
|
@@ -1263,7 +1263,7 @@ class ClaudeAdapter2 {
|
|
|
1263
1263
|
if (transport === "sdk" && isClaudeBridgeEffective(sourceEnv)) {
|
|
1264
1264
|
throw new Error("CLAUDE_TRANSPORT=sdk cannot run with an effective Claude Bridge configuration. Select CLI transport or disable the bridge.");
|
|
1265
1265
|
}
|
|
1266
|
-
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-
|
|
1266
|
+
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-3a2a6589.js") : undefined;
|
|
1267
1267
|
claudeSdk?.validateClaudeSdkAdditionalArgs([
|
|
1268
1268
|
...claudeBinaryArgv.slice(1),
|
|
1269
1269
|
...config.additionalArgs ?? []
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
publicEndpointSsrfOptions,
|
|
7
7
|
init_mcp_wrapper
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-zcsw143p.js";
|
|
9
9
|
import {
|
|
10
10
|
normalizeOrgWebsite,
|
|
11
11
|
init_org_website,
|
|
12
12
|
assertUrlSafe
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-7w69ne2f.js";
|
|
14
14
|
import {
|
|
15
15
|
getOpenRouterBaseUrl,
|
|
16
16
|
getOpenRouterAttributionHeaders,
|