@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.
Files changed (74) hide show
  1. package/dist/{actions-3bnwa1ep.js → actions-j9399ktm.js} +6 -6
  2. package/dist/{app-5efpcda0.js → app-tnq1pz27.js} +3 -3
  3. package/dist/{assistant-rgfbyp46.js → assistant-c7y92gkw.js} +9 -9
  4. package/dist/{boot-reembed-8428r5df.js → boot-reembed-b97r699t.js} +4 -4
  5. package/dist/{boot-reembed-j3gp6x92.js → boot-reembed-k7e6fc1p.js} +3 -3
  6. package/dist/{boot-scrub-logs-ax5e0nrw.js → boot-scrub-logs-14kbc61y.js} +2 -2
  7. package/dist/{cli-53jkzjwm.js → cli-2aaa9mqr.js} +2 -2
  8. package/dist/{cli-54wmx6d9.js → cli-5bqa41fd.js} +1 -1
  9. package/dist/{cli-b2k39ff6.js → cli-9qascwj7.js} +1 -1
  10. package/dist/{cli-p3mgqhjg.js → cli-ap4md0gc.js} +3 -3
  11. package/dist/{cli-53w8f9q9.js → cli-d0t4854c.js} +26 -9
  12. package/dist/{cli-12mrw9t3.js → cli-dgab5x2h.js} +1 -1
  13. package/dist/{cli-kdhqhhrt.js → cli-fjx4x7nn.js} +1 -1
  14. package/dist/{cli-zwc67pz4.js → cli-g861fwjp.js} +3 -3
  15. package/dist/{cli-7fzbt4p5.js → cli-hc4rd6sv.js} +1 -1
  16. package/dist/{cli-42f5hj29.js → cli-k1ghyj8b.js} +1 -1
  17. package/dist/{cli-qr8ky518.js → cli-k81y1cjb.js} +1 -1
  18. package/dist/{cli-8ayape3v.js → cli-mhj07xbq.js} +3 -3
  19. package/dist/{cli-6w7kg2y6.js → cli-q6jzg6wj.js} +4 -4
  20. package/dist/{cli-rdhzpm5x.js → cli-qbc6mncp.js} +10 -9
  21. package/dist/{cli-n2xem10h.js → cli-r68m8arr.js} +1 -1
  22. package/dist/{cli-z5gm760z.js → cli-stqqf5kh.js} +1 -1
  23. package/dist/{cli-3a5wne6a.js → cli-sygq3fhn.js} +5 -5
  24. package/dist/{cli-0v0nmmx1.js → cli-t2jk33ta.js} +1 -1
  25. package/dist/{cli-qsy1aedt.js → cli-tsz1q7gk.js} +75 -27
  26. package/dist/{cli-5mt46cfa.js → cli-vgck9mqq.js} +4 -4
  27. package/dist/{cli-ft42ja8t.js → cli-xde8vhhp.js} +2 -2
  28. package/dist/{cli-dg9tkgx0.js → cli-zctkpdmd.js} +1 -1
  29. package/dist/{cli-gwp428sg.js → cli-zk4gn40w.js} +6 -6
  30. package/dist/{cli-yg15ef2d.js → cli-zmf7refz.js} +1 -1
  31. package/dist/cli.js +8 -8
  32. package/dist/{commands-ne6wm294.js → commands-2wyn3swb.js} +2 -2
  33. package/dist/{db-4bssa9fd.js → db-567ntpxv.js} +2 -2
  34. package/dist/{handlers-b1xzrzd8.js → handlers-wvwpk2kj.js} +9 -9
  35. package/dist/{hook-ghkvmqhb.js → hook-fatkywc0.js} +1 -1
  36. package/dist/{http-3d87gpq5.js → http-eq6wxve6.js} +59 -41
  37. package/dist/{index-zc2ryfs3.js → index-400x6p3j.js} +163 -26
  38. package/dist/{index-g2dtq2m4.js → index-6aj8966p.js} +5 -5
  39. package/dist/{index-vfxc8p1h.js → index-9wqh5352.js} +10 -10
  40. package/dist/{index-7eqxb7sq.js → index-d1rm4ea3.js} +8 -8
  41. package/dist/{keepalive-mdrtpw97.js → keepalive-6x9nx92g.js} +4 -4
  42. package/dist/{lead-k05m28c2.js → lead-5fgqwe13.js} +17 -17
  43. package/dist/{maintenance-3qnntmp1.js → maintenance-eajx5k1k.js} +4 -4
  44. package/dist/{onboard-kch4svdx.js → onboard-jc1w1edg.js} +2 -2
  45. package/dist/{otel-impl-7c00xnhe.js → otel-impl-8k375amf.js} +1 -1
  46. package/dist/{pricing-refresh-6038eg1z.js → pricing-refresh-zed6916t.js} +4 -4
  47. package/dist/{seed-pricing-75b6h84n.js → seed-pricing-5805qzkz.js} +3 -3
  48. package/dist/{setup-jrqcgbdc.js → setup-wz05vxh0.js} +2 -2
  49. package/dist/{worker-0p9zfby6.js → worker-j359graf.js} +17 -17
  50. package/openapi.json +1 -1
  51. package/package.json +1 -1
  52. package/src/be/audit-user.ts +49 -0
  53. package/src/be/db.ts +31 -4
  54. package/src/be/scripts/db.ts +25 -5
  55. package/src/be/seed-skills/index.ts +7 -0
  56. package/src/http/schedules.ts +5 -1
  57. package/src/http/scripts.ts +4 -0
  58. package/src/http/workflows.ts +13 -1
  59. package/src/tests/audit-updated-by.test.ts +636 -0
  60. package/src/tests/audit-user.test.ts +156 -0
  61. package/src/tests/system-default-skills.test.ts +14 -1
  62. package/src/tools/schedules/create-schedule.ts +5 -0
  63. package/src/tools/schedules/update-schedule.ts +4 -1
  64. package/src/tools/script-common.ts +9 -5
  65. package/src/tools/workflows/create-workflow.ts +5 -0
  66. package/src/tools/workflows/patch-workflow-node.ts +10 -1
  67. package/src/tools/workflows/patch-workflow.ts +6 -0
  68. package/src/tools/workflows/update-workflow.ts +4 -0
  69. package/src/types.ts +4 -0
  70. package/templates/skills/TASTE-SKILL-LICENSE +21 -0
  71. package/templates/skills/pages/config.json +4 -3
  72. package/templates/skills/pages/content.md +39 -12
  73. package/templates/skills/taste-minimalist-skill/config.json +19 -0
  74. package/templates/skills/taste-minimalist-skill/content.md +83 -0
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-8ayape3v.js";
4
- import"./cli-b2k39ff6.js";
5
- import"./cli-54wmx6d9.js";
3
+ } from "./cli-mhj07xbq.js";
4
+ import"./cli-9qascwj7.js";
5
+ import"./cli-5bqa41fd.js";
6
6
  import {
7
7
  buildCancelledBlocks,
8
8
  getTaskLink
@@ -11,18 +11,18 @@ import"./cli-dh55d5fg.js";
11
11
  import {
12
12
  createTaskWithSiblingAwareness,
13
13
  slackContextKey
14
- } from "./cli-n2xem10h.js";
14
+ } from "./cli-r68m8arr.js";
15
15
  import {
16
16
  cancelTask,
17
17
  getAgentById,
18
18
  getLeadAgent,
19
19
  getTaskById,
20
20
  init_db
21
- } from "./cli-53w8f9q9.js";
21
+ } from "./cli-d0t4854c.js";
22
22
  import"./cli-z2zcxes1.js";
23
23
  import"./cli-q21d49ac.js";
24
24
  import"./cli-anrj584m.js";
25
- import"./cli-7fzbt4p5.js";
25
+ import"./cli-hc4rd6sv.js";
26
26
  import"./cli-3pp1362w.js";
27
27
  import"./cli-p9swy5t3.js";
28
28
 
@@ -3,16 +3,16 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-3a5wne6a.js";
6
+ } from "./cli-sygq3fhn.js";
7
7
  import"./cli-fete3y1e.js";
8
8
  import"./cli-b0p7rfnd.js";
9
9
  import"./cli-z92pkwzn.js";
10
10
  import"./cli-dh55d5fg.js";
11
- import"./cli-53w8f9q9.js";
11
+ import"./cli-d0t4854c.js";
12
12
  import"./cli-z2zcxes1.js";
13
13
  import"./cli-q21d49ac.js";
14
14
  import"./cli-anrj584m.js";
15
- import"./cli-7fzbt4p5.js";
15
+ import"./cli-hc4rd6sv.js";
16
16
  import"./cli-3pp1362w.js";
17
17
  import"./cli-e15jhafb.js";
18
18
  import"./cli-p9swy5t3.js";
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  bufferThreadMessage,
3
3
  wasEventSeen
4
- } from "./cli-6w7kg2y6.js";
4
+ } from "./cli-q6jzg6wj.js";
5
5
  import {
6
6
  hasOtherUserMention
7
- } from "./cli-dg9tkgx0.js";
7
+ } from "./cli-zctkpdmd.js";
8
8
  import"./cli-2deg0cen.js";
9
9
  import {
10
10
  require_dist
11
- } from "./cli-3a5wne6a.js";
11
+ } from "./cli-sygq3fhn.js";
12
12
  import"./cli-fete3y1e.js";
13
13
  import"./cli-b0p7rfnd.js";
14
14
  import {
15
15
  resolveSlackUserId
16
- } from "./cli-8ayape3v.js";
17
- import"./cli-b2k39ff6.js";
18
- import"./cli-54wmx6d9.js";
16
+ } from "./cli-mhj07xbq.js";
17
+ import"./cli-9qascwj7.js";
18
+ import"./cli-5bqa41fd.js";
19
19
  import"./cli-z92pkwzn.js";
20
20
  import"./cli-dh55d5fg.js";
21
21
  import {
22
22
  createTaskWithSiblingAwareness,
23
23
  slackContextKey
24
- } from "./cli-n2xem10h.js";
24
+ } from "./cli-r68m8arr.js";
25
25
  import {
26
26
  getAgentWorkingOnThread,
27
27
  getLeadAgent,
@@ -29,11 +29,11 @@ import {
29
29
  init_db,
30
30
  init_resolver,
31
31
  resolveTemplate
32
- } from "./cli-53w8f9q9.js";
32
+ } from "./cli-d0t4854c.js";
33
33
  import"./cli-z2zcxes1.js";
34
34
  import"./cli-q21d49ac.js";
35
35
  import"./cli-anrj584m.js";
36
- import"./cli-7fzbt4p5.js";
36
+ import"./cli-hc4rd6sv.js";
37
37
  import"./cli-3pp1362w.js";
38
38
  import"./cli-e15jhafb.js";
39
39
  import {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-53jkzjwm.js";
5
- import"./cli-qr8ky518.js";
4
+ } from "./cli-2aaa9mqr.js";
5
+ import"./cli-k81y1cjb.js";
6
6
  import {
7
7
  getDb,
8
8
  init_db
9
- } from "./cli-53w8f9q9.js";
9
+ } from "./cli-d0t4854c.js";
10
10
  import"./cli-z2zcxes1.js";
11
11
  import"./cli-q21d49ac.js";
12
12
  import"./cli-anrj584m.js";
13
- import"./cli-7fzbt4p5.js";
13
+ import"./cli-hc4rd6sv.js";
14
14
  import"./cli-3pp1362w.js";
15
15
  import"./cli-p9swy5t3.js";
16
16
 
@@ -3,15 +3,15 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-qr8ky518.js";
6
+ } from "./cli-k81y1cjb.js";
7
7
  import {
8
8
  getDb,
9
9
  init_db
10
- } from "./cli-53w8f9q9.js";
10
+ } from "./cli-d0t4854c.js";
11
11
  import"./cli-z2zcxes1.js";
12
12
  import"./cli-q21d49ac.js";
13
13
  import"./cli-anrj584m.js";
14
- import"./cli-7fzbt4p5.js";
14
+ import"./cli-hc4rd6sv.js";
15
15
  import"./cli-3pp1362w.js";
16
16
  import"./cli-p9swy5t3.js";
17
17
 
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-53w8f9q9.js";
4
+ } from "./cli-d0t4854c.js";
5
5
  import"./cli-z2zcxes1.js";
6
6
  import"./cli-q21d49ac.js";
7
7
  import"./cli-anrj584m.js";
8
- import"./cli-7fzbt4p5.js";
8
+ import"./cli-hc4rd6sv.js";
9
9
  import {
10
10
  init_secret_scrubber,
11
11
  scrubSecrets
@@ -4,11 +4,11 @@ import {
4
4
  getEmbeddingProvider,
5
5
  init_embedding,
6
6
  serializeEmbedding
7
- } from "./cli-qr8ky518.js";
7
+ } from "./cli-k81y1cjb.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-53w8f9q9.js";
11
+ } from "./cli-d0t4854c.js";
12
12
  import {
13
13
  init_secret_scrubber,
14
14
  scrubSecrets
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-53w8f9q9.js";
4
+ } from "./cli-d0t4854c.js";
5
5
 
6
6
  // src/be/users.ts
7
7
  init_db();
@@ -3,7 +3,7 @@ import {
3
3
  incrKv,
4
4
  init_db,
5
5
  upsertKv
6
- } from "./cli-53w8f9q9.js";
6
+ } from "./cli-d0t4854c.js";
7
7
 
8
8
  // src/be/unmapped-identities.ts
9
9
  init_db();
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  handleScheduleTrigger
3
- } from "./cli-0v0nmmx1.js";
3
+ } from "./cli-t2jk33ta.js";
4
4
  import {
5
5
  createTaskWithSiblingAwareness,
6
6
  scheduleContextKey
7
- } from "./cli-n2xem10h.js";
7
+ } from "./cli-r68m8arr.js";
8
8
  import {
9
9
  getDb,
10
10
  getDueScheduledTasks,
11
11
  getScheduledTaskById,
12
12
  init_db,
13
13
  updateScheduledTask
14
- } from "./cli-53w8f9q9.js";
14
+ } from "./cli-d0t4854c.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __require,
@@ -26,7 +26,7 @@ import {
26
26
  import {
27
27
  init_package,
28
28
  package_default
29
- } from "./cli-7fzbt4p5.js";
29
+ } from "./cli-hc4rd6sv.js";
30
30
  import {
31
31
  init_secret_scrubber,
32
32
  scrubSecrets
@@ -1367,7 +1367,9 @@ var init_types = __esm(() => {
1367
1367
  modelTier: ModelTierSchema.optional(),
1368
1368
  scheduleType: _enum(["recurring", "one_time"]).default("recurring"),
1369
1369
  createdAt: exports_iso.datetime(),
1370
- lastUpdatedAt: exports_iso.datetime()
1370
+ lastUpdatedAt: exports_iso.datetime(),
1371
+ createdBy: string().optional(),
1372
+ updatedBy: string().optional()
1371
1373
  }).refine((data) => {
1372
1374
  if (data.scheduleType === "one_time")
1373
1375
  return true;
@@ -1572,7 +1574,9 @@ var init_types = __esm(() => {
1572
1574
  vcsRepo: string().min(1).optional(),
1573
1575
  createdByAgentId: string().uuid().optional(),
1574
1576
  createdAt: string(),
1575
- lastUpdatedAt: string()
1577
+ lastUpdatedAt: string(),
1578
+ createdBy: string().optional(),
1579
+ updatedBy: string().optional()
1576
1580
  });
1577
1581
  WorkflowVersionSchema = object({
1578
1582
  id: string().uuid(),
@@ -6662,7 +6666,9 @@ function rowToScheduledTask(row) {
6662
6666
  modelTier: parseModelTier(row.modelTier) ?? undefined,
6663
6667
  scheduleType: row.scheduleType,
6664
6668
  createdAt: normalizeDateRequired(row.createdAt),
6665
- lastUpdatedAt: normalizeDateRequired(row.lastUpdatedAt)
6669
+ lastUpdatedAt: normalizeDateRequired(row.lastUpdatedAt),
6670
+ createdBy: row.created_by ?? undefined,
6671
+ updatedBy: row.updated_by ?? undefined
6666
6672
  };
6667
6673
  }
6668
6674
  function rowToScheduledTaskSummary(row) {
@@ -6708,8 +6714,9 @@ function createScheduledTask(data) {
6708
6714
  const row = getDb().prepare(`INSERT INTO scheduled_tasks (
6709
6715
  id, name, description, cronExpression, intervalMs, taskTemplate,
6710
6716
  taskType, tags, priority, targetAgentId, enabled, nextRunAt,
6711
- createdByAgentId, timezone, model, modelTier, scheduleType, createdAt, lastUpdatedAt
6712
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING *`).get(id, data.name, data.description ?? null, data.cronExpression ?? null, data.intervalMs ?? null, data.taskTemplate, data.taskType ?? null, JSON.stringify(data.tags ?? []), data.priority ?? 50, data.targetAgentId ?? null, data.enabled !== false ? 1 : 0, data.nextRunAt ?? null, data.createdByAgentId ?? null, data.timezone ?? "UTC", data.model ?? null, data.modelTier ?? null, data.scheduleType ?? "recurring", now, now);
6717
+ createdByAgentId, timezone, model, modelTier, scheduleType, createdAt, lastUpdatedAt,
6718
+ created_by, updated_by
6719
+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING *`).get(id, data.name, data.description ?? null, data.cronExpression ?? null, data.intervalMs ?? null, data.taskTemplate, data.taskType ?? null, JSON.stringify(data.tags ?? []), data.priority ?? 50, data.targetAgentId ?? null, data.enabled !== false ? 1 : 0, data.nextRunAt ?? null, data.createdByAgentId ?? null, data.timezone ?? "UTC", data.model ?? null, data.modelTier ?? null, data.scheduleType ?? "recurring", now, now, data.createdBy ?? null, data.createdBy ?? null);
6713
6720
  if (!row)
6714
6721
  throw new Error("Failed to create scheduled task");
6715
6722
  return rowToScheduledTask(row);
@@ -6793,6 +6800,10 @@ function updateScheduledTask(id, data) {
6793
6800
  updates.push("scheduleType = ?");
6794
6801
  params.push(data.scheduleType);
6795
6802
  }
6803
+ if (data.updatedBy !== undefined) {
6804
+ updates.push("updated_by = ?");
6805
+ params.push(data.updatedBy);
6806
+ }
6796
6807
  if (updates.length === 0) {
6797
6808
  return getScheduledTaskById(id);
6798
6809
  }
@@ -7268,13 +7279,15 @@ function rowToWorkflow(row) {
7268
7279
  vcsRepo: row.vcs_repo ?? undefined,
7269
7280
  createdByAgentId: row.createdByAgentId ?? undefined,
7270
7281
  createdAt: normalizeDateRequired(row.createdAt),
7271
- lastUpdatedAt: normalizeDateRequired(row.lastUpdatedAt)
7282
+ lastUpdatedAt: normalizeDateRequired(row.lastUpdatedAt),
7283
+ createdBy: row.created_by ?? undefined,
7284
+ updatedBy: row.updated_by ?? undefined
7272
7285
  };
7273
7286
  }
7274
7287
  function createWorkflow(data) {
7275
7288
  const id = crypto.randomUUID();
7276
- const row = getDb().prepare(`INSERT INTO workflows (id, name, description, definition, triggers, cooldown, input, triggerSchema, dir, vcs_repo, createdByAgentId)
7277
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING *`).get(id, data.name, data.description ?? null, JSON.stringify(data.definition), JSON.stringify(data.triggers ?? []), data.cooldown ? JSON.stringify(data.cooldown) : null, data.input ? JSON.stringify(data.input) : null, data.triggerSchema ? JSON.stringify(data.triggerSchema) : null, data.dir ?? null, data.vcsRepo ?? null, data.createdByAgentId ?? null);
7289
+ const row = getDb().prepare(`INSERT INTO workflows (id, name, description, definition, triggers, cooldown, input, triggerSchema, dir, vcs_repo, createdByAgentId, created_by, updated_by)
7290
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING *`).get(id, data.name, data.description ?? null, JSON.stringify(data.definition), JSON.stringify(data.triggers ?? []), data.cooldown ? JSON.stringify(data.cooldown) : null, data.input ? JSON.stringify(data.input) : null, data.triggerSchema ? JSON.stringify(data.triggerSchema) : null, data.dir ?? null, data.vcsRepo ?? null, data.createdByAgentId ?? null, data.createdBy ?? null, data.createdBy ?? null);
7278
7291
  if (!row)
7279
7292
  throw new Error("Failed to create workflow");
7280
7293
  return rowToWorkflow(row);
@@ -7358,6 +7371,10 @@ function updateWorkflow(id, data) {
7358
7371
  updates.push("vcs_repo = ?");
7359
7372
  params.push(data.vcsRepo ?? null);
7360
7373
  }
7374
+ if (data.updatedBy !== undefined) {
7375
+ updates.push("updated_by = ?");
7376
+ params.push(data.updatedBy);
7377
+ }
7361
7378
  if (updates.length === 0)
7362
7379
  return getWorkflow(id);
7363
7380
  updates.push("lastUpdatedAt = ?");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_typescript
3
- } from "./cli-rdhzpm5x.js";
3
+ } from "./cli-qbc6mncp.js";
4
4
  import {
5
5
  __toESM
6
6
  } from "./cli-p9swy5t3.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-7fzbt4p5.js";
4
+ } from "./cli-hc4rd6sv.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -4,11 +4,11 @@ import {
4
4
  getNextResumeGeneration,
5
5
  getResumeGeneration,
6
6
  repointTrackerSyncBySwarmId
7
- } from "./cli-42f5hj29.js";
7
+ } from "./cli-k1ghyj8b.js";
8
8
  import {
9
9
  getExecutorRegistry,
10
10
  recoverIncompleteRuns
11
- } from "./cli-gwp428sg.js";
11
+ } from "./cli-zk4gn40w.js";
12
12
  import {
13
13
  assignUnassignedTaskPending,
14
14
  backfillSupersedeTaskResumeTaskId,
@@ -43,7 +43,7 @@ import {
43
43
  resolveTemplate,
44
44
  supersedeTask,
45
45
  updateAgentStatus
46
- } from "./cli-53w8f9q9.js";
46
+ } from "./cli-d0t4854c.js";
47
47
 
48
48
  // src/heartbeat/heartbeat.ts
49
49
  init_db();
@@ -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: "1.101.1",
10
+ version: "1.102.0",
11
11
  description: "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
12
12
  license: "MIT",
13
13
  author: "desplega.sh <contact@desplega.sh>",
@@ -14,7 +14,7 @@ import {
14
14
  init_templates1 as init_templates,
15
15
  normalizeDateRequired,
16
16
  resolveTemplate
17
- } from "./cli-53w8f9q9.js";
17
+ } from "./cli-d0t4854c.js";
18
18
 
19
19
  // src/be/db-queries/tracker.ts
20
20
  init_date_utils();
@@ -2,7 +2,7 @@ import {
2
2
  getDb,
3
3
  init_db,
4
4
  isSqliteVecAvailable
5
- } from "./cli-53w8f9q9.js";
5
+ } from "./cli-d0t4854c.js";
6
6
  import {
7
7
  __esm,
8
8
  __export,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  recordUnmappedIdentity
3
- } from "./cli-b2k39ff6.js";
3
+ } from "./cli-9qascwj7.js";
4
4
  import {
5
5
  findOrCreateUserByEmail,
6
6
  findUserByExternalId,
7
7
  linkIdentity
8
- } from "./cli-54wmx6d9.js";
8
+ } from "./cli-5bqa41fd.js";
9
9
  import {
10
10
  getKv,
11
11
  init_db,
12
12
  upsertKv
13
- } from "./cli-53w8f9q9.js";
13
+ } from "./cli-d0t4854c.js";
14
14
 
15
15
  // src/slack/enrich.ts
16
16
  init_db();
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  createAdditiveBuffer
3
- } from "./cli-dg9tkgx0.js";
3
+ } from "./cli-zctkpdmd.js";
4
4
  import {
5
5
  extractSlackMessageText
6
6
  } from "./cli-2deg0cen.js";
7
7
  import {
8
8
  getSlackApp,
9
9
  registerTreeMessage
10
- } from "./cli-3a5wne6a.js";
10
+ } from "./cli-sygq3fhn.js";
11
11
  import {
12
12
  buildBufferFlushBlocks
13
13
  } from "./cli-z92pkwzn.js";
14
14
  import {
15
15
  createTaskWithSiblingAwareness,
16
16
  slackContextKey
17
- } from "./cli-n2xem10h.js";
17
+ } from "./cli-r68m8arr.js";
18
18
  import {
19
19
  getLatestActiveTaskInThread,
20
20
  getLeadAgent,
@@ -22,7 +22,7 @@ import {
22
22
  init_db,
23
23
  init_registry,
24
24
  registerTemplate
25
- } from "./cli-53w8f9q9.js";
25
+ } from "./cli-d0t4854c.js";
26
26
 
27
27
  // src/slack/event-dedup.ts
28
28
  var DEFAULT_TTL_MS = 300000;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  embedScript
3
- } from "./cli-53jkzjwm.js";
3
+ } from "./cli-2aaa9mqr.js";
4
4
  import {
5
5
  computeContentHash,
6
6
  getDb,
7
7
  init_db
8
- } from "./cli-53w8f9q9.js";
8
+ } from "./cli-d0t4854c.js";
9
9
  import {
10
10
  __commonJS,
11
11
  __require,
@@ -168777,10 +168777,11 @@ function insertScript(args) {
168777
168777
  const txn = getDb().transaction(() => {
168778
168778
  const row = getDb().prepare(`INSERT INTO scripts (
168779
168779
  id, name, scope, scopeId, source, description, intent, signatureJson,
168780
- argsJsonSchema, contentHash, isScratch, typeChecked, fsMode, createdByAgentId, createdAt, updatedAt
168780
+ argsJsonSchema, contentHash, isScratch, typeChecked, fsMode, createdByAgentId, createdAt, updatedAt,
168781
+ created_by, updated_by
168781
168782
  )
168782
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
168783
- RETURNING *`).get(id, args.name, args.scope, scopeId, args.source, args.description, args.intent, args.signatureJson, args.argsJsonSchema ?? null, contentHash, isScratch, typeChecked, fsMode, args.agentId ?? null, now, now);
168783
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
168784
+ RETURNING *`).get(id, args.name, args.scope, scopeId, args.source, args.description, args.intent, args.signatureJson, args.argsJsonSchema ?? null, contentHash, isScratch, typeChecked, fsMode, args.agentId ?? null, now, now, args.createdBy ?? null, args.createdBy ?? null);
168784
168785
  if (!row)
168785
168786
  throw new Error("Failed to insert script");
168786
168787
  insertScriptVersion({
@@ -168823,9 +168824,9 @@ async function upsertScriptByName(args) {
168823
168824
  if (fsMode2 !== existing.fsMode || isScratch2 !== existing.isScratch || typeChecked2 !== existing.typeChecked || trackedMetadataChanged) {
168824
168825
  const row = getDb().prepare(`UPDATE scripts
168825
168826
  SET description = ?, intent = ?, signatureJson = ?, argsJsonSchema = ?,
168826
- isScratch = ?, typeChecked = ?, fsMode = ?, updatedAt = ?
168827
+ isScratch = ?, typeChecked = ?, fsMode = ?, updatedAt = ?, updated_by = ?
168827
168828
  WHERE id = ?
168828
- RETURNING *`).get(args.description, args.intent, args.signatureJson, argsJsonSchema2 ?? null, isScratch2 ? 1 : 0, typeChecked2 ? 1 : 0, fsMode2, new Date().toISOString(), existing.id);
168829
+ RETURNING *`).get(args.description, args.intent, args.signatureJson, argsJsonSchema2 ?? null, isScratch2 ? 1 : 0, typeChecked2 ? 1 : 0, fsMode2, new Date().toISOString(), args.createdBy ?? null, existing.id);
168829
168830
  if (!row)
168830
168831
  throw new Error("Failed to update script metadata");
168831
168832
  const script2 = rowToScript(row);
@@ -168853,9 +168854,9 @@ async function upsertScriptByName(args) {
168853
168854
  const txn = getDb().transaction(() => {
168854
168855
  const row = getDb().prepare(`UPDATE scripts
168855
168856
  SET source = ?, description = ?, intent = ?, signatureJson = ?, argsJsonSchema = ?,
168856
- contentHash = ?, version = ?, isScratch = ?, typeChecked = ?, fsMode = ?, updatedAt = ?
168857
+ contentHash = ?, version = ?, isScratch = ?, typeChecked = ?, fsMode = ?, updatedAt = ?, updated_by = ?
168857
168858
  WHERE id = ?
168858
- RETURNING *`).get(args.source, args.description, args.intent, args.signatureJson, argsJsonSchema ?? null, contentHash, newVersion, isScratch ? 1 : 0, typeChecked ? 1 : 0, fsMode, now, existing.id);
168859
+ RETURNING *`).get(args.source, args.description, args.intent, args.signatureJson, argsJsonSchema ?? null, contentHash, newVersion, isScratch ? 1 : 0, typeChecked ? 1 : 0, fsMode, now, args.createdBy ?? null, existing.id);
168859
168860
  if (!row)
168860
168861
  throw new Error("Failed to update script");
168861
168862
  insertScriptVersion({
@@ -3,7 +3,7 @@ import {
3
3
  getAgentById,
4
4
  getInProgressTasksByContextKey,
5
5
  init_db
6
- } from "./cli-53w8f9q9.js";
6
+ } from "./cli-d0t4854c.js";
7
7
 
8
8
  // src/tasks/context-key.ts
9
9
  var SEPARATOR = ":";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-53w8f9q9.js";
4
+ } from "./cli-d0t4854c.js";
5
5
 
6
6
  // src/be/seed-pricing.ts
7
7
  init_db();
@@ -25,7 +25,7 @@ import {
25
25
  getTaskById,
26
26
  init_db,
27
27
  setSlackMessageTracking
28
- } from "./cli-53w8f9q9.js";
28
+ } from "./cli-d0t4854c.js";
29
29
  import {
30
30
  require_receiver,
31
31
  require_sender,
@@ -54980,13 +54980,13 @@ async function initSlackApp() {
54980
54980
  socketMode: true,
54981
54981
  logLevel: import_bolt.LogLevel.DEBUG
54982
54982
  });
54983
- const { registerMessageHandler } = await import("./handlers-b1xzrzd8.js");
54984
- const { registerCommandHandler } = await import("./commands-ne6wm294.js");
54985
- const { registerActionHandlers } = await import("./actions-3bnwa1ep.js");
54983
+ const { registerMessageHandler } = await import("./handlers-wvwpk2kj.js");
54984
+ const { registerCommandHandler } = await import("./commands-2wyn3swb.js");
54985
+ const { registerActionHandlers } = await import("./actions-j9399ktm.js");
54986
54986
  registerMessageHandler(app);
54987
54987
  registerCommandHandler(app);
54988
54988
  registerActionHandlers(app);
54989
- const { createAssistant } = await import("./assistant-rgfbyp46.js");
54989
+ const { createAssistant } = await import("./assistant-c7y92gkw.js");
54990
54990
  app.assistant(createAssistant());
54991
54991
  return app;
54992
54992
  }
@@ -18,7 +18,7 @@ import {
18
18
  init_template,
19
19
  updateWorkflowRun,
20
20
  updateWorkflowRunStep
21
- } from "./cli-53w8f9q9.js";
21
+ } from "./cli-d0t4854c.js";
22
22
  import {
23
23
  init_secret_scrubber,
24
24
  isSensitiveKey