@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
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
getKv2,
|
|
3
3
|
upsertKv2,
|
|
4
4
|
init_db4
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-7w69ne2f.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveIdentity,
|
|
8
8
|
init_identity,
|
|
9
9
|
recordUnmappedIdentity,
|
|
10
10
|
init_unmapped_identities
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-93k32c37.js";
|
|
12
12
|
import {
|
|
13
13
|
findUserByExternalId,
|
|
14
14
|
findOrCreateUserByEmail,
|
|
15
15
|
linkIdentity,
|
|
16
16
|
init_users
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-re4raaj0.js";
|
|
18
18
|
import {
|
|
19
19
|
__esm
|
|
20
20
|
} from "./cli-242037k3.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
upsertSwarmConfig2,
|
|
22
22
|
getResolvedConfig2,
|
|
23
23
|
init_db4
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-7w69ne2f.js";
|
|
25
25
|
import {
|
|
26
26
|
getPoolCache,
|
|
27
27
|
reconcileCacheReleases,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
getPoolForAgent2,
|
|
36
36
|
resolvePoolDelivery2,
|
|
37
37
|
init_db2
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-k93bq1wq.js";
|
|
39
39
|
import {
|
|
40
40
|
workflowEventBus2,
|
|
41
41
|
init_event_bus
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
init_worker_follow_up,
|
|
46
46
|
canClaim,
|
|
47
47
|
init_budget_admission
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-93k32c37.js";
|
|
49
49
|
import {
|
|
50
50
|
runtimeStaleThresholdMinutes,
|
|
51
51
|
getRuntimeInstanceById,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
listRuntimeInstancesForAgent,
|
|
55
55
|
listRuntimeInstancesForPool,
|
|
56
56
|
init_multi_runtime
|
|
57
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-vqptjbr7.js";
|
|
58
58
|
import {
|
|
59
59
|
isMultiRuntimeEnabled,
|
|
60
60
|
init_multi_runtime2
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
mintRuntimeToken,
|
|
73
73
|
init_users
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-re4raaj0.js";
|
|
75
75
|
import {
|
|
76
76
|
TERMINAL_TASK_STATUSES,
|
|
77
77
|
isTerminalTaskStatus,
|
|
@@ -546,7 +546,7 @@ async function recoverSessions(runtimeId, reason) {
|
|
|
546
546
|
}
|
|
547
547
|
if (!sessions.length)
|
|
548
548
|
return;
|
|
549
|
-
const { remediateTaskForDeadRuntime } = await import("./heartbeat-
|
|
549
|
+
const { remediateTaskForDeadRuntime } = await import("./heartbeat-dt9qw9c8.js");
|
|
550
550
|
for (const session of sessions) {
|
|
551
551
|
try {
|
|
552
552
|
const task = await getTaskById2(session.taskId);
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
createModelProfile,
|
|
10
10
|
init_model_profiles,
|
|
11
11
|
init_db4
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-7w69ne2f.js";
|
|
13
13
|
import {
|
|
14
14
|
ensureRbacSeedsSynced2,
|
|
15
15
|
init_rbac_roles
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-1xh9a7hn.js";
|
|
17
17
|
import {
|
|
18
18
|
MODEL_TIERS,
|
|
19
19
|
DEFAULT_MODEL_TIER_MAP,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getSwarmConfigs2,
|
|
17
17
|
upsertSwarmConfig2,
|
|
18
18
|
init_db4
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-7w69ne2f.js";
|
|
20
20
|
import {
|
|
21
21
|
createRuntimeProvider,
|
|
22
22
|
init_runtime_providers
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
init_session_token_connections,
|
|
27
27
|
insertSessionToken,
|
|
28
28
|
init_users
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-re4raaj0.js";
|
|
30
30
|
import {
|
|
31
31
|
RuntimeControllerCreateSchema,
|
|
32
32
|
RuntimeControllerUpdateSchema,
|
|
@@ -59,7 +59,12 @@ class APIError extends AnthropicError {
|
|
|
59
59
|
this.requestID = headers?.get("request-id");
|
|
60
60
|
this.workspaceID = headers?.get("anthropic-workspace-id");
|
|
61
61
|
this.error = error;
|
|
62
|
-
|
|
62
|
+
const body = error ?? {};
|
|
63
|
+
this.apiMessage = body.error?.message ?? null;
|
|
64
|
+
this.type = type ?? body.error?.type ?? null;
|
|
65
|
+
const errorCode = body.error?.details?.error_code;
|
|
66
|
+
this.errorCode = typeof errorCode === "string" ? errorCode : null;
|
|
67
|
+
this.details = body.error?.details ?? null;
|
|
63
68
|
}
|
|
64
69
|
static makeMessage(status, error, message) {
|
|
65
70
|
const msg = error?.message ? typeof error.message === "string" ? error.message : JSON.stringify(error.message) : error ? JSON.stringify(error) : message;
|
|
@@ -79,32 +84,14 @@ class APIError extends AnthropicError {
|
|
|
79
84
|
return new APIConnectionError({ message, cause: castToError(errorResponse) });
|
|
80
85
|
}
|
|
81
86
|
const error = errorResponse;
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
return new
|
|
85
|
-
}
|
|
86
|
-
if (status === 401) {
|
|
87
|
-
return new AuthenticationError(status, error, message, headers, type);
|
|
88
|
-
}
|
|
89
|
-
if (status === 403) {
|
|
90
|
-
return new PermissionDeniedError(status, error, message, headers, type);
|
|
91
|
-
}
|
|
92
|
-
if (status === 404) {
|
|
93
|
-
return new NotFoundError2(status, error, message, headers, type);
|
|
94
|
-
}
|
|
95
|
-
if (status === 409) {
|
|
96
|
-
return new ConflictError(status, error, message, headers, type);
|
|
97
|
-
}
|
|
98
|
-
if (status === 422) {
|
|
99
|
-
return new UnprocessableEntityError(status, error, message, headers, type);
|
|
100
|
-
}
|
|
101
|
-
if (status === 429) {
|
|
102
|
-
return new RateLimitError(status, error, message, headers, type);
|
|
87
|
+
const errorClass = STATUS_ERROR_CLASSES.get(status);
|
|
88
|
+
if (errorClass) {
|
|
89
|
+
return new errorClass(status, error, message, headers);
|
|
103
90
|
}
|
|
104
91
|
if (status >= 500) {
|
|
105
|
-
return new InternalServerError(status, error, message, headers
|
|
92
|
+
return new InternalServerError(status, error, message, headers);
|
|
106
93
|
}
|
|
107
|
-
return new APIError(status, error, message, headers
|
|
94
|
+
return new APIError(status, error, message, headers);
|
|
108
95
|
}
|
|
109
96
|
}
|
|
110
97
|
|
|
@@ -148,18 +135,63 @@ class PermissionDeniedError extends APIError {
|
|
|
148
135
|
class NotFoundError2 extends APIError {
|
|
149
136
|
}
|
|
150
137
|
|
|
138
|
+
class RequestTimeoutError extends APIError {
|
|
139
|
+
}
|
|
140
|
+
|
|
151
141
|
class ConflictError extends APIError {
|
|
152
142
|
}
|
|
153
143
|
|
|
144
|
+
class PreconditionFailedError extends APIError {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
class ContentTooLargeError extends APIError {
|
|
148
|
+
}
|
|
149
|
+
|
|
154
150
|
class UnprocessableEntityError extends APIError {
|
|
155
151
|
}
|
|
156
152
|
|
|
157
153
|
class RateLimitError extends APIError {
|
|
158
154
|
}
|
|
159
155
|
|
|
156
|
+
class RequestHeaderFieldsTooLargeError extends APIError {
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
class ClientClosedRequestError extends APIError {
|
|
160
|
+
}
|
|
161
|
+
|
|
160
162
|
class InternalServerError extends APIError {
|
|
161
163
|
}
|
|
162
164
|
|
|
165
|
+
class NotImplementedError2 extends InternalServerError {
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
class ServiceUnavailableError extends InternalServerError {
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
class GatewayTimeoutError extends InternalServerError {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
class OverloadedError extends InternalServerError {
|
|
175
|
+
}
|
|
176
|
+
var STATUS_ERROR_CLASSES = /* @__PURE__ */ new Map([
|
|
177
|
+
[400, BadRequestError],
|
|
178
|
+
[401, AuthenticationError],
|
|
179
|
+
[403, PermissionDeniedError],
|
|
180
|
+
[404, NotFoundError2],
|
|
181
|
+
[408, RequestTimeoutError],
|
|
182
|
+
[409, ConflictError],
|
|
183
|
+
[412, PreconditionFailedError],
|
|
184
|
+
[413, ContentTooLargeError],
|
|
185
|
+
[422, UnprocessableEntityError],
|
|
186
|
+
[429, RateLimitError],
|
|
187
|
+
[431, RequestHeaderFieldsTooLargeError],
|
|
188
|
+
[499, ClientClosedRequestError],
|
|
189
|
+
[501, NotImplementedError2],
|
|
190
|
+
[503, ServiceUnavailableError],
|
|
191
|
+
[504, GatewayTimeoutError],
|
|
192
|
+
[529, OverloadedError]
|
|
193
|
+
]);
|
|
194
|
+
|
|
163
195
|
// node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
|
|
164
196
|
var startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
165
197
|
var isAbsoluteURL = (url) => {
|
|
@@ -390,4 +422,4 @@ function promiseWithResolvers() {
|
|
|
390
422
|
return { promise, resolve, reject };
|
|
391
423
|
}
|
|
392
424
|
|
|
393
|
-
export { __classPrivateFieldSet, __classPrivateFieldGet, isAbortError, castToError, AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, RetryableError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError2, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError, isAbsoluteURL, isArray, isReadonlyArray, maybeObj, isEmptyObj, isObj, validatePositiveInteger, CREDENTIAL_OPTIONS, safeJSON, checkNever, concatBytes, encodeUTF8, decodeUTF8, readEnv, defaultLogLevel, parseLogLevel, loggerFor, defaultLogger, debugLogRequestDetails, isStatus, isFatal4xx, backoff, jitter, applyJitter, ToolError, DEFAULT_MEMORY_SYNC_INTERVAL_MS, checkMemorySyncInterval, promiseWithResolvers };
|
|
425
|
+
export { __classPrivateFieldSet, __classPrivateFieldGet, isAbortError, castToError, AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, RetryableError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError2, RequestTimeoutError, ConflictError, PreconditionFailedError, ContentTooLargeError, UnprocessableEntityError, RateLimitError, RequestHeaderFieldsTooLargeError, ClientClosedRequestError, InternalServerError, NotImplementedError2, ServiceUnavailableError, GatewayTimeoutError, OverloadedError, isAbsoluteURL, isArray, isReadonlyArray, maybeObj, isEmptyObj, isObj, validatePositiveInteger, CREDENTIAL_OPTIONS, safeJSON, checkNever, concatBytes, encodeUTF8, decodeUTF8, readEnv, defaultLogLevel, parseLogLevel, loggerFor, defaultLogger, debugLogRequestDetails, isStatus, isFatal4xx, backoff, jitter, applyJitter, ToolError, DEFAULT_MEMORY_SYNC_INTERVAL_MS, checkMemorySyncInterval, promiseWithResolvers };
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SteeringBlockedError,
|
|
13
13
|
init_steering2,
|
|
14
14
|
init_db4
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-7w69ne2f.js";
|
|
16
16
|
import {
|
|
17
17
|
isBlockExternalEnabled2,
|
|
18
18
|
invalidateChannelExternality2,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
shouldBlockChannel2,
|
|
21
21
|
leaveExternalChannel2,
|
|
22
22
|
init_external_channel
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-b8e9nb04.js";
|
|
24
24
|
import {
|
|
25
25
|
workflowEventBus2,
|
|
26
26
|
init_event_bus
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
init_render_v2,
|
|
41
41
|
registerTreeMessage,
|
|
42
42
|
init_watcher
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-4r05hnqa.js";
|
|
44
44
|
import {
|
|
45
45
|
TaskCreationBlockedError,
|
|
46
46
|
init_errors2,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
init_message_text,
|
|
62
62
|
dispatchPre2,
|
|
63
63
|
init_dispatcher
|
|
64
|
-
} from "./cli-
|
|
64
|
+
} from "./cli-93k32c37.js";
|
|
65
65
|
import {
|
|
66
66
|
wasEventSeen,
|
|
67
67
|
init_event_dedup,
|
|
@@ -72,13 +72,13 @@ import {
|
|
|
72
72
|
getBufferMessageCount,
|
|
73
73
|
instantFlush,
|
|
74
74
|
init_thread_buffer
|
|
75
|
-
} from "./cli-
|
|
75
|
+
} from "./cli-tacge1w0.js";
|
|
76
76
|
import {
|
|
77
77
|
enrichSlackUserEmail,
|
|
78
78
|
resolveSlackUserId,
|
|
79
79
|
rewriteSlackMentions,
|
|
80
80
|
init_enrich
|
|
81
|
-
} from "./cli-
|
|
81
|
+
} from "./cli-jywyhqws.js";
|
|
82
82
|
import {
|
|
83
83
|
isSlackLeaveThreadDisabled,
|
|
84
84
|
SLACK_LEFT_THREAD_CONFIRMATION,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
leaveSlackThread,
|
|
87
87
|
shouldSkipLeftSlackThread,
|
|
88
88
|
init_left_threads
|
|
89
|
-
} from "./cli-
|
|
89
|
+
} from "./cli-dy32zecz.js";
|
|
90
90
|
import {
|
|
91
91
|
resolveTemplate,
|
|
92
92
|
init_resolver
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
init_steering2,
|
|
12
12
|
createLogEntry2,
|
|
13
13
|
init_db4
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-7w69ne2f.js";
|
|
15
15
|
import {
|
|
16
16
|
ackSlackMessage,
|
|
17
17
|
skipSlackMessageReaction,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
init_watcher,
|
|
29
29
|
getSlackApp2,
|
|
30
30
|
init_app3
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-4r05hnqa.js";
|
|
32
32
|
import {
|
|
33
33
|
TaskCreationBlockedError,
|
|
34
34
|
init_errors2,
|
|
@@ -42,20 +42,20 @@ import {
|
|
|
42
42
|
init_message_text,
|
|
43
43
|
createAdditiveBuffer,
|
|
44
44
|
init_additive_buffer
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-93k32c37.js";
|
|
46
46
|
import {
|
|
47
47
|
resolveSlackUserId,
|
|
48
48
|
rewriteSlackMentions,
|
|
49
49
|
init_enrich
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-jywyhqws.js";
|
|
51
51
|
import {
|
|
52
52
|
isSlackThreadLeft,
|
|
53
53
|
init_left_threads
|
|
54
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-dy32zecz.js";
|
|
55
55
|
import {
|
|
56
56
|
findUserByExternalId,
|
|
57
57
|
init_users
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-re4raaj0.js";
|
|
59
59
|
import {
|
|
60
60
|
isSteeringEnabled2,
|
|
61
61
|
init_steering_enabled
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
getPendingWaitsByEvent2,
|
|
35
35
|
resolveWaitState2,
|
|
36
36
|
init_db4
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-7w69ne2f.js";
|
|
38
38
|
import {
|
|
39
39
|
workflowEventBus2,
|
|
40
40
|
init_event_bus
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
getNextTargets,
|
|
80
80
|
getSuccessors,
|
|
81
81
|
init_definition2
|
|
82
|
-
} from "./cli-
|
|
82
|
+
} from "./cli-vqptjbr7.js";
|
|
83
83
|
import {
|
|
84
84
|
RetryPolicySchema,
|
|
85
85
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
@@ -57,17 +57,17 @@ import {
|
|
|
57
57
|
releaseApprovalCancellationNotificationClaim2,
|
|
58
58
|
updateApprovalRequestNotifications2,
|
|
59
59
|
init_db4
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-7w69ne2f.js";
|
|
61
61
|
import {
|
|
62
62
|
externalChannelToolError2,
|
|
63
63
|
isBlockExternalEnabled2,
|
|
64
64
|
getChannelBlockReason2,
|
|
65
65
|
init_external_channel
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-b8e9nb04.js";
|
|
67
67
|
import {
|
|
68
68
|
getSlackApp2,
|
|
69
69
|
init_app3
|
|
70
|
-
} from "./cli-
|
|
70
|
+
} from "./cli-4r05hnqa.js";
|
|
71
71
|
import {
|
|
72
72
|
resolveCredential,
|
|
73
73
|
init_credentials
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
import {
|
|
80
80
|
revokeRuntimeTokensForRuntime,
|
|
81
81
|
init_users
|
|
82
|
-
} from "./cli-
|
|
82
|
+
} from "./cli-re4raaj0.js";
|
|
83
83
|
import {
|
|
84
84
|
TERMINAL_TASK_STATUSES,
|
|
85
85
|
init_types4
|
|
@@ -156,7 +156,7 @@ async function notifyAutomationPreflightFailure(preflight) {
|
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
158
|
try {
|
|
159
|
-
const { getSlackApp } = await import("./app-
|
|
159
|
+
const { getSlackApp } = await import("./app-cnfffgwg.js");
|
|
160
160
|
const app = getSlackApp();
|
|
161
161
|
if (!app) {
|
|
162
162
|
console.warn("[Automation Preflight] Slack not available, cannot send notification");
|
|
@@ -4585,7 +4585,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
|
|
|
4585
4585
|
}
|
|
4586
4586
|
const waiting = await checkpointStepWaiting(runId, stepId, ctx);
|
|
4587
4587
|
if (waiting && result.waitFor === "workflow.child.finished") {
|
|
4588
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
4588
|
+
const { resumeFromChildRun } = await import("./resume-5gsrjd5e.js");
|
|
4589
4589
|
await resumeFromChildRun(stepId, registry);
|
|
4590
4590
|
}
|
|
4591
4591
|
return { outcome: waiting ? "waiting" : "completed", successors: [] };
|
|
@@ -5093,7 +5093,7 @@ async function runForeachDrive(runId, parentNodeId, registry) {
|
|
|
5093
5093
|
if (drive.successors.length > 0) {
|
|
5094
5094
|
await walkGraph(workflow.definition, runId, ctx, drive.successors, registry, workflow.id, getSecretInputKeys(workflow.input));
|
|
5095
5095
|
} else {
|
|
5096
|
-
const { finalizeOrWait } = await import("./resume-
|
|
5096
|
+
const { finalizeOrWait } = await import("./resume-5gsrjd5e.js");
|
|
5097
5097
|
await finalizeOrWait(runId);
|
|
5098
5098
|
}
|
|
5099
5099
|
return drive;
|
|
@@ -5236,7 +5236,7 @@ async function startChild(input) {
|
|
|
5236
5236
|
const parked = await getDbClient2().get("UPDATE workflow_run_steps SET status = 'waiting' WHERE id = ? AND status = 'running' RETURNING id", [child.id]);
|
|
5237
5237
|
if (parked && result.waitFor === "workflow.child.finished") {
|
|
5238
5238
|
ownedChildren.delete(child.id);
|
|
5239
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
5239
|
+
const { resumeFromChildRun } = await import("./resume-5gsrjd5e.js");
|
|
5240
5240
|
await resumeFromChildRun(child.id, registry);
|
|
5241
5241
|
}
|
|
5242
5242
|
return null;
|
|
@@ -13960,7 +13960,7 @@ function revive(value, chat) {
|
|
|
13960
13960
|
}
|
|
13961
13961
|
return value;
|
|
13962
13962
|
}
|
|
13963
|
-
var STREAM_CHUNK_TYPES, adapterMap, Message3, POSTABLE_OBJECT, ChatError, LockError,
|
|
13963
|
+
var STREAM_CHUNK_TYPES, adapterMap, Message3, POSTABLE_OBJECT, ChatError, LockError, NotImplementedError3, ConsoleLogger2 = class _ConsoleLogger {
|
|
13964
13964
|
prefix;
|
|
13965
13965
|
level;
|
|
13966
13966
|
constructor(level = "info", prefix = "chat-sdk") {
|
|
@@ -14263,7 +14263,7 @@ var init_chunk_ZGXC7ZLP = __esm(() => {
|
|
|
14263
14263
|
this.name = "LockError";
|
|
14264
14264
|
}
|
|
14265
14265
|
};
|
|
14266
|
-
|
|
14266
|
+
NotImplementedError3 = class extends ChatError {
|
|
14267
14267
|
feature;
|
|
14268
14268
|
constructor(message, feature, cause) {
|
|
14269
14269
|
super(message, "NOT_IMPLEMENTED", cause);
|
|
@@ -14489,7 +14489,7 @@ var init_chunk_ZGXC7ZLP = __esm(() => {
|
|
|
14489
14489
|
}
|
|
14490
14490
|
postable = await this.processCallbackUrls(postable);
|
|
14491
14491
|
if (!this.adapter.scheduleMessage) {
|
|
14492
|
-
throw new
|
|
14492
|
+
throw new NotImplementedError3("Scheduled messages are not supported by this adapter", "scheduling");
|
|
14493
14493
|
}
|
|
14494
14494
|
return this.adapter.scheduleMessage(this.id, postable, options);
|
|
14495
14495
|
}
|
|
@@ -14881,7 +14881,7 @@ var init_chunk_ZGXC7ZLP = __esm(() => {
|
|
|
14881
14881
|
}
|
|
14882
14882
|
async reply(target, message) {
|
|
14883
14883
|
if (!this.adapter.reply) {
|
|
14884
|
-
throw new
|
|
14884
|
+
throw new NotImplementedError3("Message replies are not supported by this adapter", "replies");
|
|
14885
14885
|
}
|
|
14886
14886
|
const targetMessage = target instanceof Message3 ? target : this.findKnownMessage(target);
|
|
14887
14887
|
if (targetMessage && targetMessage.threadId !== this.id) {
|
|
@@ -14953,7 +14953,7 @@ var init_chunk_ZGXC7ZLP = __esm(() => {
|
|
|
14953
14953
|
}
|
|
14954
14954
|
postable = await this.processCallbackUrls(postable);
|
|
14955
14955
|
if (!this.adapter.scheduleMessage) {
|
|
14956
|
-
throw new
|
|
14956
|
+
throw new NotImplementedError3("Scheduled messages are not supported by this adapter", "scheduling");
|
|
14957
14957
|
}
|
|
14958
14958
|
return this.adapter.scheduleMessage(this.id, postable, options);
|
|
14959
14959
|
}
|
|
@@ -15071,7 +15071,7 @@ var init_chunk_ZGXC7ZLP = __esm(() => {
|
|
|
15071
15071
|
}
|
|
15072
15072
|
async markAsRead(message) {
|
|
15073
15073
|
if (!this.adapter.markAsRead) {
|
|
15074
|
-
throw new
|
|
15074
|
+
throw new NotImplementedError3("Read receipts are not supported by this adapter", "read-receipts");
|
|
15075
15075
|
}
|
|
15076
15076
|
const target = message ?? this._currentMessage;
|
|
15077
15077
|
if (!target) {
|
|
@@ -17836,4 +17836,4 @@ var init_dist4 = __esm(() => {
|
|
|
17836
17836
|
toModalElement2 = toModalElement;
|
|
17837
17837
|
});
|
|
17838
17838
|
|
|
17839
|
-
export { isTextNode2, isParagraphNode2, isStrongNode2, isEmphasisNode2, isDeleteNode2, isInlineCodeNode2, isCodeNode2, isLinkNode2, isBlockquoteNode2, isListNode2, isTableNode2, tableToAscii2, tableElementToAscii2, chartElementToFallbackText2, getNodeChildren2, parseMarkdown2, stringifyMarkdown2, toPlainText2, markdownToPlainText2, walkAst2, BaseFormatConverter2, Message3,
|
|
17839
|
+
export { isTextNode2, isParagraphNode2, isStrongNode2, isEmphasisNode2, isDeleteNode2, isInlineCodeNode2, isCodeNode2, isLinkNode2, isBlockquoteNode2, isListNode2, isTableNode2, tableToAscii2, tableElementToAscii2, chartElementToFallbackText2, getNodeChildren2, parseMarkdown2, stringifyMarkdown2, toPlainText2, markdownToPlainText2, walkAst2, BaseFormatConverter2, Message3, NotImplementedError3, ConsoleLogger2, StreamingMarkdownRenderer2, Chat2, getEmoji2, defaultEmojiResolver2, convertEmojiPlaceholders2, cardChildToFallbackText2, isCardElement2, isJSX2, toModalElement2, init_dist4 };
|
|
@@ -7,7 +7,7 @@ var package_default;
|
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
name: "@desplega.ai/agent-swarm",
|
|
10
|
-
version: "2.8.
|
|
10
|
+
version: "2.8.1",
|
|
11
11
|
description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
|
|
12
12
|
keywords: [
|
|
13
13
|
"agent-swarm.dev",
|
|
@@ -212,7 +212,7 @@ var init_package = __esm(() => {
|
|
|
212
212
|
"@agentclientprotocol/sdk": "2.4.0",
|
|
213
213
|
"@ai-sdk/openai": "^3.0.41",
|
|
214
214
|
"@anthropic-ai/claude-agent-sdk": "0.3.318",
|
|
215
|
-
"@anthropic-ai/sdk": "^1.
|
|
215
|
+
"@anthropic-ai/sdk": "^1.5.0",
|
|
216
216
|
"@asteasolutions/zod-to-openapi": "^8.0.0",
|
|
217
217
|
"@aws-sdk/client-bedrock": "3.1048.0",
|
|
218
218
|
"@boxd-sh/sdk": "0.2.20",
|
package/dist/cli.js
CHANGED
|
@@ -50,7 +50,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
50
50
|
// package.json
|
|
51
51
|
var package_default = {
|
|
52
52
|
name: "@desplega.ai/agent-swarm",
|
|
53
|
-
version: "2.8.
|
|
53
|
+
version: "2.8.1",
|
|
54
54
|
description: "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
|
|
55
55
|
keywords: [
|
|
56
56
|
"agent-swarm.dev",
|
|
@@ -255,7 +255,7 @@ var package_default = {
|
|
|
255
255
|
"@agentclientprotocol/sdk": "2.4.0",
|
|
256
256
|
"@ai-sdk/openai": "^3.0.41",
|
|
257
257
|
"@anthropic-ai/claude-agent-sdk": "0.3.318",
|
|
258
|
-
"@anthropic-ai/sdk": "^1.
|
|
258
|
+
"@anthropic-ai/sdk": "^1.5.0",
|
|
259
259
|
"@asteasolutions/zod-to-openapi": "^8.0.0",
|
|
260
260
|
"@aws-sdk/client-bedrock": "3.1048.0",
|
|
261
261
|
"@boxd-sh/sdk": "0.2.20",
|
|
@@ -837,7 +837,7 @@ function McpServer({ port, apiKey, dbPath }) {
|
|
|
837
837
|
if (dbPath) {
|
|
838
838
|
process.env.DATABASE_PATH = dbPath;
|
|
839
839
|
}
|
|
840
|
-
import("./http-
|
|
840
|
+
import("./http-haw4r8ne.js").then(() => {
|
|
841
841
|
setStatus("running");
|
|
842
842
|
}).catch((err) => {
|
|
843
843
|
setStatus("error");
|
|
@@ -918,7 +918,7 @@ function WorkerRunner({ prompt, systemPrompt, systemPromptFile, additionalArgs }
|
|
|
918
918
|
const { exit } = use_app_default();
|
|
919
919
|
import_react.useEffect(() => {
|
|
920
920
|
installConsoleScrub();
|
|
921
|
-
import("./worker-
|
|
921
|
+
import("./worker-mz5z7kj0.js").then(({ runWorker }) => runWorker({
|
|
922
922
|
prompt: prompt || undefined,
|
|
923
923
|
systemPrompt: systemPrompt || undefined,
|
|
924
924
|
systemPromptFile: systemPromptFile || undefined,
|
|
@@ -935,7 +935,7 @@ function LeadRunner({ prompt, systemPrompt, systemPromptFile, additionalArgs })
|
|
|
935
935
|
const { exit } = use_app_default();
|
|
936
936
|
import_react.useEffect(() => {
|
|
937
937
|
installConsoleScrub();
|
|
938
|
-
import("./lead-
|
|
938
|
+
import("./lead-6ygbfhbh.js").then(({ runLead }) => runLead({
|
|
939
939
|
prompt: prompt || undefined,
|
|
940
940
|
systemPrompt: systemPrompt || undefined,
|
|
941
941
|
systemPromptFile: systemPromptFile || undefined,
|
|
@@ -974,8 +974,8 @@ function LazyComponent({
|
|
|
974
974
|
}
|
|
975
975
|
return import_react.createElement(Component, props);
|
|
976
976
|
}
|
|
977
|
-
var loadOnboard = () => import("./onboard-
|
|
978
|
-
var loadConnect = () => import("./setup-
|
|
977
|
+
var loadOnboard = () => import("./onboard-v99eh56m.js").then(({ Onboard }) => Onboard);
|
|
978
|
+
var loadConnect = () => import("./setup-wv467afy.js").then(({ Setup }) => Setup);
|
|
979
979
|
function UnknownCommand({ command }) {
|
|
980
980
|
const { exit } = use_app_default();
|
|
981
981
|
import_react.useEffect(() => {
|
|
@@ -1104,14 +1104,14 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
1104
1104
|
}
|
|
1105
1105
|
process.exit(0);
|
|
1106
1106
|
} else if (args.command === "hook") {
|
|
1107
|
-
const { runHook } = await import("./hook-
|
|
1107
|
+
const { runHook } = await import("./hook-8k6fbz9b.js");
|
|
1108
1108
|
await runHook();
|
|
1109
1109
|
} else if (args.command === "codex-hook") {
|
|
1110
1110
|
const { handleCodexHook } = await import("./codex-hook-h3vk6xzr.js");
|
|
1111
1111
|
await handleCodexHook();
|
|
1112
1112
|
process.exit(process.exitCode ?? 0);
|
|
1113
1113
|
} else if (args.command === "session-summary-stdin") {
|
|
1114
|
-
const { runSessionSummaryFromStdin } = await import("./hook-
|
|
1114
|
+
const { runSessionSummaryFromStdin } = await import("./hook-jgcgygex.js");
|
|
1115
1115
|
await runSessionSummaryFromStdin();
|
|
1116
1116
|
process.exit(process.exitCode ?? 0);
|
|
1117
1117
|
} else if (args.command === "x") {
|
|
@@ -1124,7 +1124,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
1124
1124
|
printHelp("scripts");
|
|
1125
1125
|
process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
|
|
1126
1126
|
}
|
|
1127
|
-
const { runScriptsMaintenanceCommand } = await import("./maintenance-
|
|
1127
|
+
const { runScriptsMaintenanceCommand } = await import("./maintenance-vdts800b.js");
|
|
1128
1128
|
await runScriptsMaintenanceCommand(scriptsArgs);
|
|
1129
1129
|
console.log("Scripts re-embedded.");
|
|
1130
1130
|
} else if (args.command === "rbac") {
|
|
@@ -1134,17 +1134,17 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
1134
1134
|
printHelp("rbac");
|
|
1135
1135
|
process.exit(args.showHelp ? 0 : 1);
|
|
1136
1136
|
}
|
|
1137
|
-
const { runRbacCliCommand } = await import("./rbac-roles-
|
|
1137
|
+
const { runRbacCliCommand } = await import("./rbac-roles-npbmdh77.js");
|
|
1138
1138
|
await runRbacCliCommand(rbacArgs);
|
|
1139
1139
|
} else if (args.command === "codex-login") {
|
|
1140
1140
|
const { runCodexLogin } = await import("./codex-login-bcda78ge.js");
|
|
1141
1141
|
const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
|
|
1142
1142
|
await runCodexLogin(codexLoginArgs);
|
|
1143
1143
|
} else if (args.command === "codex-session-runner") {
|
|
1144
|
-
const { runCodexSessionRunner } = await import("./codex-session-runner-
|
|
1144
|
+
const { runCodexSessionRunner } = await import("./codex-session-runner-ak9x1k1h.js");
|
|
1145
1145
|
await runCodexSessionRunner();
|
|
1146
1146
|
} else if (args.command === "claude-managed-setup") {
|
|
1147
|
-
const { runClaudeManagedSetup } = await import("./claude-managed-setup-
|
|
1147
|
+
const { runClaudeManagedSetup } = await import("./claude-managed-setup-pd47nzch.js");
|
|
1148
1148
|
const setupArgs = process.argv.slice(process.argv.indexOf("claude-managed-setup") + 1);
|
|
1149
1149
|
await runClaudeManagedSetup(setupArgs);
|
|
1150
1150
|
} else if (args.command === "worker-token") {
|