@desplega.ai/agent-swarm 1.101.1 → 1.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actions-3bnwa1ep.js → actions-j9399ktm.js} +6 -6
- package/dist/{app-5efpcda0.js → app-tnq1pz27.js} +3 -3
- package/dist/{assistant-rgfbyp46.js → assistant-c7y92gkw.js} +9 -9
- package/dist/{boot-reembed-8428r5df.js → boot-reembed-b97r699t.js} +4 -4
- package/dist/{boot-reembed-j3gp6x92.js → boot-reembed-k7e6fc1p.js} +3 -3
- package/dist/{boot-scrub-logs-ax5e0nrw.js → boot-scrub-logs-14kbc61y.js} +2 -2
- package/dist/{cli-53jkzjwm.js → cli-2aaa9mqr.js} +2 -2
- package/dist/{cli-54wmx6d9.js → cli-5bqa41fd.js} +1 -1
- package/dist/{cli-b2k39ff6.js → cli-9qascwj7.js} +1 -1
- package/dist/{cli-p3mgqhjg.js → cli-ap4md0gc.js} +3 -3
- package/dist/{cli-53w8f9q9.js → cli-d0t4854c.js} +26 -9
- package/dist/{cli-12mrw9t3.js → cli-dgab5x2h.js} +1 -1
- package/dist/{cli-kdhqhhrt.js → cli-fjx4x7nn.js} +1 -1
- package/dist/{cli-zwc67pz4.js → cli-g861fwjp.js} +3 -3
- package/dist/{cli-7fzbt4p5.js → cli-hc4rd6sv.js} +1 -1
- package/dist/{cli-42f5hj29.js → cli-k1ghyj8b.js} +1 -1
- package/dist/{cli-qr8ky518.js → cli-k81y1cjb.js} +1 -1
- package/dist/{cli-8ayape3v.js → cli-mhj07xbq.js} +3 -3
- package/dist/{cli-6w7kg2y6.js → cli-q6jzg6wj.js} +4 -4
- package/dist/{cli-rdhzpm5x.js → cli-qbc6mncp.js} +10 -9
- package/dist/{cli-n2xem10h.js → cli-r68m8arr.js} +1 -1
- package/dist/{cli-z5gm760z.js → cli-stqqf5kh.js} +1 -1
- package/dist/{cli-3a5wne6a.js → cli-sygq3fhn.js} +5 -5
- package/dist/{cli-0v0nmmx1.js → cli-t2jk33ta.js} +1 -1
- package/dist/{cli-qsy1aedt.js → cli-tsz1q7gk.js} +75 -27
- package/dist/{cli-5mt46cfa.js → cli-vgck9mqq.js} +4 -4
- package/dist/{cli-ft42ja8t.js → cli-xde8vhhp.js} +2 -2
- package/dist/{cli-dg9tkgx0.js → cli-zctkpdmd.js} +1 -1
- package/dist/{cli-gwp428sg.js → cli-zk4gn40w.js} +6 -6
- package/dist/{cli-yg15ef2d.js → cli-zmf7refz.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/{commands-ne6wm294.js → commands-2wyn3swb.js} +2 -2
- package/dist/{db-4bssa9fd.js → db-567ntpxv.js} +2 -2
- package/dist/{handlers-b1xzrzd8.js → handlers-wvwpk2kj.js} +9 -9
- package/dist/{hook-ghkvmqhb.js → hook-fatkywc0.js} +1 -1
- package/dist/{http-3d87gpq5.js → http-eq6wxve6.js} +59 -41
- package/dist/{index-zc2ryfs3.js → index-400x6p3j.js} +163 -26
- package/dist/{index-g2dtq2m4.js → index-6aj8966p.js} +5 -5
- package/dist/{index-vfxc8p1h.js → index-9wqh5352.js} +10 -10
- package/dist/{index-7eqxb7sq.js → index-d1rm4ea3.js} +8 -8
- package/dist/{keepalive-mdrtpw97.js → keepalive-6x9nx92g.js} +4 -4
- package/dist/{lead-k05m28c2.js → lead-5fgqwe13.js} +17 -17
- package/dist/{maintenance-3qnntmp1.js → maintenance-eajx5k1k.js} +4 -4
- package/dist/{onboard-kch4svdx.js → onboard-jc1w1edg.js} +2 -2
- package/dist/{otel-impl-7c00xnhe.js → otel-impl-8k375amf.js} +1 -1
- package/dist/{pricing-refresh-6038eg1z.js → pricing-refresh-zed6916t.js} +4 -4
- package/dist/{seed-pricing-75b6h84n.js → seed-pricing-5805qzkz.js} +3 -3
- package/dist/{setup-jrqcgbdc.js → setup-wz05vxh0.js} +2 -2
- package/dist/{worker-0p9zfby6.js → worker-j359graf.js} +17 -17
- package/openapi.json +1 -1
- package/package.json +1 -1
- package/src/be/audit-user.ts +49 -0
- package/src/be/db.ts +31 -4
- package/src/be/scripts/db.ts +25 -5
- package/src/be/seed-skills/index.ts +7 -0
- package/src/http/schedules.ts +5 -1
- package/src/http/scripts.ts +4 -0
- package/src/http/workflows.ts +13 -1
- package/src/tests/audit-updated-by.test.ts +636 -0
- package/src/tests/audit-user.test.ts +156 -0
- package/src/tests/system-default-skills.test.ts +14 -1
- package/src/tools/schedules/create-schedule.ts +5 -0
- package/src/tools/schedules/update-schedule.ts +4 -1
- package/src/tools/script-common.ts +9 -5
- package/src/tools/workflows/create-workflow.ts +5 -0
- package/src/tools/workflows/patch-workflow-node.ts +10 -1
- package/src/tools/workflows/patch-workflow.ts +6 -0
- package/src/tools/workflows/update-workflow.ts +4 -0
- package/src/types.ts +4 -0
- package/templates/skills/TASTE-SKILL-LICENSE +21 -0
- package/templates/skills/pages/config.json +4 -3
- package/templates/skills/pages/content.md +39 -12
- package/templates/skills/taste-minimalist-skill/config.json +19 -0
- package/templates/skills/taste-minimalist-skill/content.md +83 -0
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
ensureTokenOrThrow,
|
|
14
14
|
getOAuthApp,
|
|
15
15
|
getOAuthTokens
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-zmf7refz.js";
|
|
17
17
|
import {
|
|
18
18
|
startPricingRefreshLoop
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-xde8vhhp.js";
|
|
20
20
|
import {
|
|
21
21
|
seedPricingFromModelsDev
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-stqqf5kh.js";
|
|
23
23
|
import {
|
|
24
24
|
createTrackerAgentMapping,
|
|
25
25
|
createTrackerSync,
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
deleteTrackerSync,
|
|
28
28
|
getAllTrackerSyncs,
|
|
29
29
|
repointTrackerSyncBySwarmId
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-k1ghyj8b.js";
|
|
31
31
|
import {
|
|
32
32
|
cancelWorkflowRun,
|
|
33
33
|
getExecutorRegistry,
|
|
34
34
|
retryFailedRun,
|
|
35
35
|
snapshotWorkflow
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-zk4gn40w.js";
|
|
37
37
|
import {
|
|
38
38
|
getApiKey
|
|
39
39
|
} from "./cli-f14fvzag.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
getEmbeddingProvider,
|
|
48
48
|
getMemoryStore,
|
|
49
49
|
init_constants
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-k81y1cjb.js";
|
|
51
51
|
import {
|
|
52
52
|
ZodFirstPartyTypeKind,
|
|
53
53
|
objectType
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
ensure,
|
|
58
58
|
require_dist,
|
|
59
59
|
runScheduleNow
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-ap4md0gc.js";
|
|
61
61
|
import {
|
|
62
62
|
TriggerSchemaError,
|
|
63
63
|
applyDefinitionPatch,
|
|
@@ -65,13 +65,13 @@ import {
|
|
|
65
65
|
startWorkflowExecution,
|
|
66
66
|
validateDefinition,
|
|
67
67
|
validateJsonSchema
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-t2jk33ta.js";
|
|
69
69
|
import {
|
|
70
70
|
extractSlackMessageText
|
|
71
71
|
} from "./cli-2deg0cen.js";
|
|
72
72
|
import {
|
|
73
73
|
getSlackApp
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-sygq3fhn.js";
|
|
75
75
|
import {
|
|
76
76
|
findUserByEmail,
|
|
77
77
|
findUserByExternalId,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
linkIdentity,
|
|
81
81
|
recordIdentityEvent,
|
|
82
82
|
unlinkIdentity
|
|
83
|
-
} from "./cli-
|
|
83
|
+
} from "./cli-5bqa41fd.js";
|
|
84
84
|
import {
|
|
85
85
|
markdownToSlack
|
|
86
86
|
} from "./cli-z92pkwzn.js";
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
} from "./cli-dh55d5fg.js";
|
|
92
92
|
import {
|
|
93
93
|
agentContextKey
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-r68m8arr.js";
|
|
95
95
|
import {
|
|
96
96
|
AgentLogSchema,
|
|
97
97
|
AgentMemorySchema,
|
|
@@ -213,6 +213,7 @@ import {
|
|
|
213
213
|
getPromptTemplateById,
|
|
214
214
|
getPromptTemplateHistory,
|
|
215
215
|
getPromptTemplates,
|
|
216
|
+
getRequestAuth,
|
|
216
217
|
getResolvedConfig,
|
|
217
218
|
getScheduledTaskById,
|
|
218
219
|
getScheduledTaskByName,
|
|
@@ -244,6 +245,7 @@ import {
|
|
|
244
245
|
init_defaults,
|
|
245
246
|
init_model_tiers,
|
|
246
247
|
init_registry,
|
|
248
|
+
init_request_auth_context,
|
|
247
249
|
init_resolver,
|
|
248
250
|
init_swarm_config_guard,
|
|
249
251
|
init_template,
|
|
@@ -300,7 +302,7 @@ import {
|
|
|
300
302
|
upsertService,
|
|
301
303
|
upsertSwarmConfig,
|
|
302
304
|
validateConfigValue
|
|
303
|
-
} from "./cli-
|
|
305
|
+
} from "./cli-d0t4854c.js";
|
|
304
306
|
import {
|
|
305
307
|
init_zod
|
|
306
308
|
} from "./cli-q21d49ac.js";
|
|
@@ -344,7 +346,7 @@ import {
|
|
|
344
346
|
import {
|
|
345
347
|
init_package,
|
|
346
348
|
package_default
|
|
347
|
-
} from "./cli-
|
|
349
|
+
} from "./cli-hc4rd6sv.js";
|
|
348
350
|
import {
|
|
349
351
|
init_secret_scrubber,
|
|
350
352
|
registerVolatileSecret,
|
|
@@ -11269,7 +11271,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
|
|
|
11269
11271
|
return;
|
|
11270
11272
|
initialized = true;
|
|
11271
11273
|
try {
|
|
11272
|
-
const impl = await import("./otel-impl-
|
|
11274
|
+
const impl = await import("./otel-impl-8k375amf.js");
|
|
11273
11275
|
await impl.boot(serviceRole);
|
|
11274
11276
|
realWithSpan = impl.withSpan;
|
|
11275
11277
|
realStartSpan = impl.startSpan;
|
|
@@ -16725,8 +16727,32 @@ var registerResolveUserTool = (server) => {
|
|
|
16725
16727
|
|
|
16726
16728
|
// src/tools/schedules/create-schedule.ts
|
|
16727
16729
|
init_zod();
|
|
16728
|
-
init_db();
|
|
16729
16730
|
var import_cron_parser = __toESM(require_dist(), 1);
|
|
16731
|
+
|
|
16732
|
+
// src/be/audit-user.ts
|
|
16733
|
+
init_request_auth_context();
|
|
16734
|
+
init_db();
|
|
16735
|
+
function resolveTaskAuditUserId(sourceTaskId, callerAgentId) {
|
|
16736
|
+
if (!sourceTaskId || !callerAgentId)
|
|
16737
|
+
return null;
|
|
16738
|
+
const task = getTaskById(sourceTaskId);
|
|
16739
|
+
if (!task)
|
|
16740
|
+
return null;
|
|
16741
|
+
if (task.agentId !== callerAgentId)
|
|
16742
|
+
return null;
|
|
16743
|
+
return task.requestedByUserId ?? null;
|
|
16744
|
+
}
|
|
16745
|
+
function resolveHttpAuditUserId(req, callerAgentId) {
|
|
16746
|
+
const auth = getRequestAuth(req);
|
|
16747
|
+
if (auth?.kind === "user")
|
|
16748
|
+
return auth.userId;
|
|
16749
|
+
const header = req.headers["x-source-task-id"];
|
|
16750
|
+
const sourceTaskId = Array.isArray(header) ? header[0] : header;
|
|
16751
|
+
return resolveTaskAuditUserId(sourceTaskId, callerAgentId);
|
|
16752
|
+
}
|
|
16753
|
+
|
|
16754
|
+
// src/tools/schedules/create-schedule.ts
|
|
16755
|
+
init_db();
|
|
16730
16756
|
init_model_tiers();
|
|
16731
16757
|
var createScheduleInputSchema = object({
|
|
16732
16758
|
name: string().min(1).max(100).describe("Unique name for the schedule (e.g., 'daily-cleanup')"),
|
|
@@ -16937,6 +16963,7 @@ var registerCreateScheduleTool = (server) => {
|
|
|
16937
16963
|
};
|
|
16938
16964
|
nextRunAt = calculateNextRun(tempSchedule, new Date);
|
|
16939
16965
|
}
|
|
16966
|
+
const createdBy = resolveTaskAuditUserId(requestInfo.sourceTaskId, requestInfo.agentId) ?? undefined;
|
|
16940
16967
|
const schedule = createScheduledTask({
|
|
16941
16968
|
name,
|
|
16942
16969
|
taskTemplate,
|
|
@@ -16953,7 +16980,8 @@ var registerCreateScheduleTool = (server) => {
|
|
|
16953
16980
|
createdByAgentId: requestInfo.agentId,
|
|
16954
16981
|
model: normalizedModel.model,
|
|
16955
16982
|
modelTier: normalizedModel.modelTier,
|
|
16956
|
-
scheduleType: scheduleType ?? "recurring"
|
|
16983
|
+
scheduleType: scheduleType ?? "recurring",
|
|
16984
|
+
createdBy
|
|
16957
16985
|
});
|
|
16958
16986
|
const scheduleDesc = isOneTime ? `one-time at ${schedule.nextRunAt}` : cronExpression || `every ${intervalMs}ms`;
|
|
16959
16987
|
return {
|
|
@@ -17281,8 +17309,8 @@ var registerRunScheduleNowTool = (server) => {
|
|
|
17281
17309
|
};
|
|
17282
17310
|
// src/tools/schedules/update-schedule.ts
|
|
17283
17311
|
init_zod();
|
|
17284
|
-
init_db();
|
|
17285
17312
|
var import_cron_parser2 = __toESM(require_dist(), 1);
|
|
17313
|
+
init_db();
|
|
17286
17314
|
|
|
17287
17315
|
// src/be/schedules/validate.ts
|
|
17288
17316
|
function mergeScheduleTiming(existing, patch) {
|
|
@@ -17520,7 +17548,8 @@ var registerUpdateScheduleTool = (server) => {
|
|
|
17520
17548
|
updateData.nextRunAt = undefined;
|
|
17521
17549
|
}
|
|
17522
17550
|
}
|
|
17523
|
-
const
|
|
17551
|
+
const updatedBy = resolveTaskAuditUserId(requestInfo.sourceTaskId, requestInfo.agentId) ?? undefined;
|
|
17552
|
+
const updated = updateScheduledTask(schedule.id, { ...updateData, updatedBy });
|
|
17524
17553
|
if (!updated) {
|
|
17525
17554
|
return {
|
|
17526
17555
|
content: [{ type: "text", text: "Failed to update schedule." }],
|
|
@@ -17590,13 +17619,17 @@ async function proxyScriptsApi(args) {
|
|
|
17590
17619
|
if (!args.requestInfo.agentId)
|
|
17591
17620
|
return toolError(SCRIPT_TRANSPORT_ERROR);
|
|
17592
17621
|
const apiKey = getApiKey();
|
|
17622
|
+
const headers = {
|
|
17623
|
+
Authorization: `Bearer ${apiKey}`,
|
|
17624
|
+
"X-Agent-ID": args.requestInfo.agentId,
|
|
17625
|
+
"Content-Type": "application/json"
|
|
17626
|
+
};
|
|
17627
|
+
if (args.requestInfo.sourceTaskId) {
|
|
17628
|
+
headers["X-Source-Task-Id"] = args.requestInfo.sourceTaskId;
|
|
17629
|
+
}
|
|
17593
17630
|
const res = await fetch(`${apiBaseUrl()}${args.path}`, {
|
|
17594
17631
|
method: args.method,
|
|
17595
|
-
headers
|
|
17596
|
-
Authorization: `Bearer ${apiKey}`,
|
|
17597
|
-
"X-Agent-ID": args.requestInfo.agentId,
|
|
17598
|
-
"Content-Type": "application/json"
|
|
17599
|
-
},
|
|
17632
|
+
headers,
|
|
17600
17633
|
body: args.body === undefined ? undefined : JSON.stringify(args.body)
|
|
17601
17634
|
});
|
|
17602
17635
|
const text = await res.text();
|
|
@@ -22859,6 +22892,7 @@ var registerCreateWorkflowTool = (server) => {
|
|
|
22859
22892
|
}
|
|
22860
22893
|
};
|
|
22861
22894
|
}
|
|
22895
|
+
const createdBy = resolveTaskAuditUserId(requestInfo.sourceTaskId, requestInfo.agentId) ?? undefined;
|
|
22862
22896
|
const workflow = createWorkflow({
|
|
22863
22897
|
name,
|
|
22864
22898
|
description,
|
|
@@ -22869,7 +22903,8 @@ var registerCreateWorkflowTool = (server) => {
|
|
|
22869
22903
|
dir,
|
|
22870
22904
|
vcsRepo,
|
|
22871
22905
|
triggerSchema,
|
|
22872
|
-
createdByAgentId: requestInfo.agentId
|
|
22906
|
+
createdByAgentId: requestInfo.agentId,
|
|
22907
|
+
createdBy
|
|
22873
22908
|
});
|
|
22874
22909
|
return {
|
|
22875
22910
|
content: [
|
|
@@ -23170,12 +23205,16 @@ var registerPatchWorkflowTool = (server) => {
|
|
|
23170
23205
|
};
|
|
23171
23206
|
}
|
|
23172
23207
|
const version = snapshotWorkflow(id, requestInfo.agentId);
|
|
23208
|
+
const updatedBy = resolveTaskAuditUserId(requestInfo.sourceTaskId, requestInfo.agentId) ?? undefined;
|
|
23173
23209
|
const updateArgs = {
|
|
23174
23210
|
definition: patchResult.definition
|
|
23175
23211
|
};
|
|
23176
23212
|
if (triggerSchema !== undefined) {
|
|
23177
23213
|
updateArgs.triggerSchema = triggerSchema;
|
|
23178
23214
|
}
|
|
23215
|
+
if (updatedBy !== undefined) {
|
|
23216
|
+
updateArgs.updatedBy = updatedBy;
|
|
23217
|
+
}
|
|
23179
23218
|
const workflow = updateWorkflow(id, updateArgs);
|
|
23180
23219
|
if (!workflow) {
|
|
23181
23220
|
return {
|
|
@@ -23256,7 +23295,14 @@ var registerPatchWorkflowNodeTool = (server) => {
|
|
|
23256
23295
|
};
|
|
23257
23296
|
}
|
|
23258
23297
|
const version = snapshotWorkflow(id, requestInfo.agentId);
|
|
23259
|
-
const
|
|
23298
|
+
const updatedBy = resolveTaskAuditUserId(requestInfo.sourceTaskId, requestInfo.agentId) ?? undefined;
|
|
23299
|
+
const updateArgs = {
|
|
23300
|
+
definition: patchResult.definition
|
|
23301
|
+
};
|
|
23302
|
+
if (updatedBy !== undefined) {
|
|
23303
|
+
updateArgs.updatedBy = updatedBy;
|
|
23304
|
+
}
|
|
23305
|
+
const workflow = updateWorkflow(id, updateArgs);
|
|
23260
23306
|
if (!workflow) {
|
|
23261
23307
|
return {
|
|
23262
23308
|
content: [{ type: "text", text: `Workflow not found: ${id}` }],
|
|
@@ -23485,6 +23531,7 @@ var registerUpdateWorkflowTool = (server) => {
|
|
|
23485
23531
|
}
|
|
23486
23532
|
}
|
|
23487
23533
|
const version = snapshotWorkflow(id, requestInfo.agentId);
|
|
23534
|
+
const updatedBy = resolveTaskAuditUserId(requestInfo.sourceTaskId, requestInfo.agentId) ?? undefined;
|
|
23488
23535
|
const workflow = updateWorkflow(id, {
|
|
23489
23536
|
name,
|
|
23490
23537
|
description,
|
|
@@ -23495,7 +23542,8 @@ var registerUpdateWorkflowTool = (server) => {
|
|
|
23495
23542
|
dir: dir === null ? null : dir,
|
|
23496
23543
|
vcsRepo: vcsRepo === null ? null : vcsRepo,
|
|
23497
23544
|
enabled: enabled2,
|
|
23498
|
-
triggerSchema: triggerSchema === null ? null : triggerSchema
|
|
23545
|
+
triggerSchema: triggerSchema === null ? null : triggerSchema,
|
|
23546
|
+
updatedBy
|
|
23499
23547
|
});
|
|
23500
23548
|
if (!workflow) {
|
|
23501
23549
|
return {
|
|
@@ -23820,4 +23868,4 @@ function writeSkillsToFilesystem(entries, harnessType = "all", home) {
|
|
|
23820
23868
|
return { synced, removed, errors };
|
|
23821
23869
|
}
|
|
23822
23870
|
|
|
23823
|
-
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, McpServer, userCtx, isPollTracingEnabled, initOtel, withSpan, startSpan, withSpanContext, withRemoteContext, injectTraceContext, createToolRegistrar, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, setCorsHeaders, parseQueryParams, getPathSegments, safeRequestUrlForLog, agentWithCapacity, parseBody, BODY_TOO_LARGE, enforceContentLengthCap, json, jsonError, triggerSchemaErrorResponse, deriveApiBaseUrl, httpServerSemconvAttributes, routeRegistry, isPublicRoute, describeRequestRoute, route, assertSelectOnlyQuery, executeReadOnlyQuery, handleDbQuery, snapshotMetric, snapshotPage, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, recordRetrievals, rerank, markKapsoMessageRead, sendKapsoReaction, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, mergeScheduleTiming, validateRecurringTiming, sendTaskOutputSchema, sendTaskHandler, parseSkillContent, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, canClaim, emitBudgetRefusalSideEffects, taskActionInputSchema, taskActionOutputSchema, taskActionHandler, hasCapability, getEnabledCapabilities, createServer, writeSkillsToFilesystem };
|
|
23871
|
+
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, McpServer, userCtx, isPollTracingEnabled, initOtel, withSpan, startSpan, withSpanContext, withRemoteContext, injectTraceContext, createToolRegistrar, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, setCorsHeaders, parseQueryParams, getPathSegments, safeRequestUrlForLog, agentWithCapacity, parseBody, BODY_TOO_LARGE, enforceContentLengthCap, json, jsonError, triggerSchemaErrorResponse, deriveApiBaseUrl, httpServerSemconvAttributes, routeRegistry, isPublicRoute, describeRequestRoute, route, assertSelectOnlyQuery, executeReadOnlyQuery, handleDbQuery, snapshotMetric, snapshotPage, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, recordRetrievals, rerank, markKapsoMessageRead, sendKapsoReaction, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, resolveHttpAuditUserId, mergeScheduleTiming, validateRecurringTiming, sendTaskOutputSchema, sendTaskHandler, parseSkillContent, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, canClaim, emitBudgetRefusalSideEffects, taskActionInputSchema, taskActionOutputSchema, taskActionHandler, hasCapability, getEnabledCapabilities, createServer, writeSkillsToFilesystem };
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
withSpan,
|
|
30
30
|
withSpanContext,
|
|
31
31
|
writeSkillsToFilesystem
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-tsz1q7gk.js";
|
|
33
33
|
import {
|
|
34
34
|
checkClaudeCredentials
|
|
35
35
|
} from "./cli-p04j6hjv.js";
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
ensure,
|
|
51
51
|
initialize
|
|
52
|
-
} from "./cli-
|
|
52
|
+
} from "./cli-ap4md0gc.js";
|
|
53
53
|
import {
|
|
54
54
|
validateJsonSchema
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-t2jk33ta.js";
|
|
56
56
|
import {
|
|
57
57
|
getMcpBaseUrl
|
|
58
58
|
} from "./cli-dh55d5fg.js";
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
resolveTaskModelSelection,
|
|
77
77
|
resolveTemplateAsync,
|
|
78
78
|
telemetry
|
|
79
|
-
} from "./cli-
|
|
79
|
+
} from "./cli-d0t4854c.js";
|
|
80
80
|
import {
|
|
81
81
|
init_credentials,
|
|
82
82
|
resolveCredentialPools
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildModelsDevSeedRows
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-stqqf5kh.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogEntry,
|
|
6
6
|
getActivePricingRow,
|
|
7
7
|
getDb,
|
|
8
8
|
init_db,
|
|
9
9
|
insertPricingRow
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-d0t4854c.js";
|
|
11
11
|
import {
|
|
12
12
|
init_secret_scrubber,
|
|
13
13
|
scrubSecrets
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getScript,
|
|
6
6
|
getScriptVersion,
|
|
7
7
|
validateScriptImports
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-qbc6mncp.js";
|
|
9
9
|
import {
|
|
10
10
|
checkpointStep,
|
|
11
11
|
checkpointStepFailure,
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
interpolateNodeConfig,
|
|
16
16
|
runStepValidation,
|
|
17
17
|
walkGraph
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-t2jk33ta.js";
|
|
19
19
|
import {
|
|
20
20
|
getAppUrl
|
|
21
21
|
} from "./cli-dh55d5fg.js";
|
|
22
22
|
import {
|
|
23
23
|
withSiblingAwareness,
|
|
24
24
|
workflowContextKey
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-r68m8arr.js";
|
|
26
26
|
import {
|
|
27
27
|
FollowUpConfigSchema,
|
|
28
28
|
ModelTierSchema,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
splitLegacyModelAlias,
|
|
56
56
|
updateWorkflowRun,
|
|
57
57
|
updateWorkflowRunStep
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-d0t4854c.js";
|
|
59
59
|
import {
|
|
60
60
|
init_zod
|
|
61
61
|
} from "./cli-q21d49ac.js";
|
|
@@ -1428,7 +1428,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
if (notification.channel === "slack") {
|
|
1430
1430
|
try {
|
|
1431
|
-
const { getSlackApp } = await import("./app-
|
|
1431
|
+
const { getSlackApp } = await import("./app-tnq1pz27.js");
|
|
1432
1432
|
const slackApp = getSlackApp();
|
|
1433
1433
|
if (!slackApp) {
|
|
1434
1434
|
console.warn("[HITL] Slack not initialized — cannot send notification");
|
|
@@ -1542,7 +1542,7 @@ class NotifyExecutor extends BaseExecutor {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
case "slack": {
|
|
1545
|
-
const { getSlackApp } = await import("./app-
|
|
1545
|
+
const { getSlackApp } = await import("./app-tnq1pz27.js");
|
|
1546
1546
|
const app = getSlackApp();
|
|
1547
1547
|
if (!app) {
|
|
1548
1548
|
return {
|
package/dist/cli.js
CHANGED
|
@@ -62,7 +62,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
62
62
|
// package.json
|
|
63
63
|
var package_default = {
|
|
64
64
|
name: "@desplega.ai/agent-swarm",
|
|
65
|
-
version: "1.
|
|
65
|
+
version: "1.102.0",
|
|
66
66
|
description: "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
|
|
67
67
|
license: "MIT",
|
|
68
68
|
author: "desplega.sh <contact@desplega.sh>",
|
|
@@ -616,7 +616,7 @@ function McpServer({ port, apiKey, dbPath }) {
|
|
|
616
616
|
if (dbPath) {
|
|
617
617
|
process.env.DATABASE_PATH = dbPath;
|
|
618
618
|
}
|
|
619
|
-
import("./http-
|
|
619
|
+
import("./http-eq6wxve6.js").then(() => {
|
|
620
620
|
setStatus("running");
|
|
621
621
|
}).catch((err) => {
|
|
622
622
|
setStatus("error");
|
|
@@ -702,7 +702,7 @@ function WorkerRunner({
|
|
|
702
702
|
}) {
|
|
703
703
|
const { exit } = use_app_default();
|
|
704
704
|
import_react.useEffect(() => {
|
|
705
|
-
import("./worker-
|
|
705
|
+
import("./worker-j359graf.js").then(({ runWorker }) => runWorker({
|
|
706
706
|
prompt: prompt || undefined,
|
|
707
707
|
yolo,
|
|
708
708
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -719,7 +719,7 @@ function WorkerRunner({
|
|
|
719
719
|
function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalArgs }) {
|
|
720
720
|
const { exit } = use_app_default();
|
|
721
721
|
import_react.useEffect(() => {
|
|
722
|
-
import("./lead-
|
|
722
|
+
import("./lead-5fgqwe13.js").then(({ runLead }) => runLead({
|
|
723
723
|
prompt: prompt || undefined,
|
|
724
724
|
yolo,
|
|
725
725
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -759,8 +759,8 @@ function LazyComponent({
|
|
|
759
759
|
}
|
|
760
760
|
return import_react.createElement(Component, props);
|
|
761
761
|
}
|
|
762
|
-
var loadOnboard = () => import("./onboard-
|
|
763
|
-
var loadConnect = () => import("./setup-
|
|
762
|
+
var loadOnboard = () => import("./onboard-jc1w1edg.js").then(({ Onboard }) => Onboard);
|
|
763
|
+
var loadConnect = () => import("./setup-wz05vxh0.js").then(({ Setup }) => Setup);
|
|
764
764
|
function UnknownCommand({ command }) {
|
|
765
765
|
const { exit } = use_app_default();
|
|
766
766
|
import_react.useEffect(() => {
|
|
@@ -873,7 +873,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
873
873
|
}
|
|
874
874
|
process.exit(0);
|
|
875
875
|
} else if (args.command === "hook") {
|
|
876
|
-
const { runHook } = await import("./hook-
|
|
876
|
+
const { runHook } = await import("./hook-fatkywc0.js");
|
|
877
877
|
await runHook();
|
|
878
878
|
} else if (args.command === "artifact") {
|
|
879
879
|
const artifactArgs = process.argv.slice(process.argv.indexOf("artifact") + 1);
|
|
@@ -893,7 +893,7 @@ ${binName} docs \u2014 v${package_default.version}
|
|
|
893
893
|
printHelp("scripts");
|
|
894
894
|
process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
|
|
895
895
|
}
|
|
896
|
-
const { runScriptsMaintenanceCommand } = await import("./maintenance-
|
|
896
|
+
const { runScriptsMaintenanceCommand } = await import("./maintenance-eajx5k1k.js");
|
|
897
897
|
await runScriptsMaintenanceCommand(scriptsArgs);
|
|
898
898
|
console.log("Scripts re-embedded.");
|
|
899
899
|
} else if (args.command === "codex-login") {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
getAllAgents,
|
|
3
3
|
getAllTasks,
|
|
4
4
|
init_db
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-d0t4854c.js";
|
|
6
6
|
import"./cli-z2zcxes1.js";
|
|
7
7
|
import"./cli-q21d49ac.js";
|
|
8
8
|
import"./cli-anrj584m.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-hc4rd6sv.js";
|
|
10
10
|
import"./cli-3pp1362w.js";
|
|
11
11
|
import"./cli-p9swy5t3.js";
|
|
12
12
|
|
|
@@ -376,11 +376,11 @@ import {
|
|
|
376
376
|
upsertSkillFile,
|
|
377
377
|
upsertSkillFiles,
|
|
378
378
|
upsertSwarmConfig
|
|
379
|
-
} from "./cli-
|
|
379
|
+
} from "./cli-d0t4854c.js";
|
|
380
380
|
import"./cli-z2zcxes1.js";
|
|
381
381
|
import"./cli-q21d49ac.js";
|
|
382
382
|
import"./cli-anrj584m.js";
|
|
383
|
-
import"./cli-
|
|
383
|
+
import"./cli-hc4rd6sv.js";
|
|
384
384
|
import"./cli-3pp1362w.js";
|
|
385
385
|
import"./cli-p9swy5t3.js";
|
|
386
386
|
init_db();
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
getBufferMessageCount,
|
|
4
4
|
instantFlush,
|
|
5
5
|
wasEventSeen
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-q6jzg6wj.js";
|
|
7
7
|
import {
|
|
8
8
|
extractTaskFromMessage,
|
|
9
9
|
hasOtherUserMention,
|
|
10
10
|
routeMessage
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-zctkpdmd.js";
|
|
12
12
|
import {
|
|
13
13
|
extractSlackMessageText
|
|
14
14
|
} from "./cli-2deg0cen.js";
|
|
15
15
|
import {
|
|
16
16
|
registerTreeMessage
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-sygq3fhn.js";
|
|
18
18
|
import"./cli-fete3y1e.js";
|
|
19
19
|
import"./cli-b0p7rfnd.js";
|
|
20
20
|
import {
|
|
21
21
|
enrichSlackUserEmail,
|
|
22
22
|
resolveSlackUserId
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
23
|
+
} from "./cli-mhj07xbq.js";
|
|
24
|
+
import"./cli-9qascwj7.js";
|
|
25
|
+
import"./cli-5bqa41fd.js";
|
|
26
26
|
import {
|
|
27
27
|
buildTreeBlocks
|
|
28
28
|
} from "./cli-z92pkwzn.js";
|
|
@@ -30,7 +30,7 @@ import"./cli-dh55d5fg.js";
|
|
|
30
30
|
import {
|
|
31
31
|
createTaskWithSiblingAwareness,
|
|
32
32
|
slackContextKey
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-r68m8arr.js";
|
|
34
34
|
import {
|
|
35
35
|
getAgentById,
|
|
36
36
|
getAgentWorkingOnThread,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
init_db,
|
|
41
41
|
init_resolver,
|
|
42
42
|
resolveTemplate
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-d0t4854c.js";
|
|
44
44
|
import"./cli-z2zcxes1.js";
|
|
45
45
|
import"./cli-q21d49ac.js";
|
|
46
46
|
import"./cli-anrj584m.js";
|
|
47
|
-
import"./cli-
|
|
47
|
+
import"./cli-hc4rd6sv.js";
|
|
48
48
|
import"./cli-3pp1362w.js";
|
|
49
49
|
import"./cli-e15jhafb.js";
|
|
50
50
|
import {
|