@desplega.ai/agent-swarm 1.153.0 → 1.154.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 (143) hide show
  1. package/README.md +1 -1
  2. package/dist/{acp-adapter-ahmjxhek.js → acp-adapter-eb2aj8xy.js} +1 -1
  3. package/dist/{actions-jzrfpkmn.js → actions-kpnwp1kz.js} +18 -18
  4. package/dist/{app-03na2vwb.js → app-zk1apkf6.js} +6 -6
  5. package/dist/{assistant-hfkxvhgt.js → assistant-kwq4y50q.js} +19 -19
  6. package/dist/{boot-reembed-c98xrad3.js → boot-reembed-22hd3jjn.js} +7 -7
  7. package/dist/{boot-reembed-zt3qm9xn.js → boot-reembed-qe168424.js} +8 -8
  8. package/dist/{boot-scrub-logs-jcqd8ksj.js → boot-scrub-logs-pkdpsrjd.js} +5 -5
  9. package/dist/{claude-adapter-mgryg8g3.js → claude-adapter-3fx90nww.js} +10 -10
  10. package/dist/{claude-sdk-session-jjf4zss1.js → claude-sdk-session-z7fahf1k.js} +10 -10
  11. package/dist/{cli-1hwnb4hc.js → cli-09y3tjxz.js} +1 -1
  12. package/dist/{cli-b2g6mzjc.js → cli-0e31nm4n.js} +1 -1
  13. package/dist/{cli-5mbmvxnn.js → cli-1jpjafw4.js} +5 -5
  14. package/dist/{cli-bw0dfwkr.js → cli-243tzws8.js} +1 -1
  15. package/dist/{cli-rj7de4b2.js → cli-24k806sc.js} +1 -1
  16. package/dist/{cli-7g9s78jf.js → cli-3bkz2p7j.js} +7 -6
  17. package/dist/{cli-zcsyfw2z.js → cli-4k7jazkq.js} +4 -0
  18. package/dist/{cli-s5s1f2yn.js → cli-5vs0nh43.js} +25 -20
  19. package/dist/{cli-qrqhc31j.js → cli-6r3cgpk2.js} +94 -52
  20. package/dist/{cli-pgj4a5fb.js → cli-71cj99hx.js} +4 -3
  21. package/dist/{cli-d6hk10xx.js → cli-8sea27q4.js} +2 -2
  22. package/dist/{cli-a9scg8sv.js → cli-913yakhv.js} +22 -7
  23. package/dist/{cli-pf9q3696.js → cli-927erqqt.js} +5 -2
  24. package/dist/{cli-zy5w9gpt.js → cli-95jnpnqg.js} +1 -1
  25. package/dist/{cli-cdq08v3r.js → cli-abp3g4ax.js} +15 -2
  26. package/dist/{cli-nq0kgyxe.js → cli-acy6bfhr.js} +10 -7
  27. package/dist/{cli-n0q9b7j4.js → cli-c1v10xb2.js} +157 -52
  28. package/dist/{cli-tdh4hjr2.js → cli-e0pg4zeh.js} +1 -1
  29. package/dist/{cli-83wkg402.js → cli-e31ehqwy.js} +1 -1
  30. package/dist/{cli-m04pt18h.js → cli-e3229na9.js} +3 -3
  31. package/dist/{cli-ysc1kbet.js → cli-e3cyf59d.js} +2 -2
  32. package/dist/{cli-mzgyhxbe.js → cli-fdzg6jhf.js} +2 -2
  33. package/dist/{cli-0d9nbqxf.js → cli-g2h29qar.js} +2 -2
  34. package/dist/{cli-djvxhnc4.js → cli-ge67p080.js} +124 -26
  35. package/dist/{cli-7pnz2v6s.js → cli-hws0vn86.js} +2 -2
  36. package/dist/{cli-3bcmp015.js → cli-kp3qs53m.js} +2 -2
  37. package/dist/{cli-ybpp1srm.js → cli-myaxtgh8.js} +2 -1
  38. package/dist/{cli-r8tdds6s.js → cli-n62atwh9.js} +1 -1
  39. package/dist/{cli-6ks9xf1n.js → cli-pf1v8xhb.js} +4 -4
  40. package/dist/{cli-5taqtpze.js → cli-q85qhckh.js} +6 -6
  41. package/dist/{cli-eazstkad.js → cli-r1d3dzt6.js} +2 -2
  42. package/dist/{cli-ja7mrygn.js → cli-rxkqvngf.js} +2 -2
  43. package/dist/{cli-vw03hg5t.js → cli-stwsmd6k.js} +2 -2
  44. package/dist/{cli-z61ykvam.js → cli-wg04s9kr.js} +4 -3
  45. package/dist/cli.js +13 -12
  46. package/dist/{codex-adapter-8548daap.js → codex-adapter-ttdm995v.js} +5 -5
  47. package/dist/{codex-hook-8jexc34x.js → codex-hook-8gx7bcz0.js} +3 -3
  48. package/dist/{codex-session-runner-2dad8p4x.js → codex-session-runner-3v8nh4c8.js} +5 -5
  49. package/dist/{commands-355dbpa8.js → commands-1cxwbhhq.js} +5 -5
  50. package/dist/{db-4jjvwz1s.js → db-y9zwsr79.js} +23 -5
  51. package/dist/{dispatcher-ca590nkz.js → dispatcher-9m9zss36.js} +17 -17
  52. package/dist/{dsh-adapter-rgvj6ykp.js → dsh-adapter-gsb2qqf9.js} +2 -2
  53. package/dist/{google-generative-ai-xtw7tggr.js → google-generative-ai-gwwrnzqn.js} +1 -1
  54. package/dist/{google-vertex-zdqpms6n.js → google-vertex-5wfawpwz.js} +1 -1
  55. package/dist/{handlers-2y6dqpvf.js → handlers-36fm1bwn.js} +20 -20
  56. package/dist/{hook-0s8knepr.js → hook-pntw4r8h.js} +8 -8
  57. package/dist/{hook-k0gec254.js → hook-vwq8y26p.js} +9 -9
  58. package/dist/{http-jp2nb4zw.js → http-20jesakk.js} +89 -56
  59. package/dist/{index-42s7eezq.js → index-6artrehg.js} +17 -17
  60. package/dist/{index-3mq6ce93.js → index-9n5z2492.js} +17 -17
  61. package/dist/{index-0wzg3sp3.js → index-j5wrf1yw.js} +11 -11
  62. package/dist/{index-s37dbevy.js → index-m2xqpz5r.js} +18 -18
  63. package/dist/{index-b56xkbc7.js → index-m9ks8a7t.js} +7 -7
  64. package/dist/{keepalive-9pfw7t02.js → keepalive-pwxvxd2c.js} +7 -7
  65. package/dist/{lead-7vcmcdq4.js → lead-m789wqa3.js} +26 -26
  66. package/dist/{maintenance-x277jbpd.js → maintenance-bvg6w7e2.js} +8 -8
  67. package/dist/{oauth-refresh-sweep-5fwa7th2.js → oauth-refresh-sweep-6v4bd737.js} +6 -6
  68. package/dist/{onboard-17sv0f51.js → onboard-snckpcj1.js} +14 -2
  69. package/dist/{otel-impl-srjy4be4.js → otel-impl-e0ytens5.js} +1 -1
  70. package/dist/{pi-mono-adapter-946a0sdd.js → pi-mono-adapter-c4ggemhz.js} +6 -6
  71. package/dist/{pricing-refresh-vetcm563.js → pricing-refresh-52g2ywrw.js} +7 -7
  72. package/dist/{rbac-roles-cmxaddmy.js → rbac-roles-5455kfdn.js} +5 -5
  73. package/dist/{rbac-roles-cfzgr6r1.js → rbac-roles-hbf0xa52.js} +6 -6
  74. package/dist/{render-v2-f9hzff72.js → render-v2-npm8xdzh.js} +12 -8
  75. package/dist/{seed-pricing-jggk6rsy.js → seed-pricing-650wbr1n.js} +6 -6
  76. package/dist/{setup-8mfceb9t.js → setup-k1mew5rf.js} +2 -2
  77. package/dist/{virtual-modules-ax661xp0.js → virtual-modules-2q5b2pk4.js} +2 -2
  78. package/dist/{work-objects-vdsdcczj.js → work-objects-2ea3kvwg.js} +20 -20
  79. package/dist/{worker-cd0nhyv1.js → worker-ec6hvc4m.js} +26 -26
  80. package/openapi.json +74 -3
  81. package/package.json +2 -1
  82. package/plugin/opencode-plugins/lib/memory-raters.ts +7 -0
  83. package/src/be/db/agents.ts +75 -2
  84. package/src/be/db/tasks/read.ts +2 -0
  85. package/src/be/db/tasks/write.ts +7 -1
  86. package/src/be/db.ts +140 -18
  87. package/src/be/memory/raters/llm.ts +2 -6
  88. package/src/be/memory/raters/noop.ts +2 -3
  89. package/src/be/memory/raters/registry.ts +4 -10
  90. package/src/be/migrations/157_defer_provenance_and_marker.sql +27 -0
  91. package/src/be/seed/agent-fs-provision.ts +23 -0
  92. package/src/commands/onboard/compose-generator.ts +10 -0
  93. package/src/commands/onboard/env-generator.ts +8 -0
  94. package/src/commands/runner.ts +18 -2
  95. package/src/extensions/identity.ts +15 -7
  96. package/src/hooks/codex-hook.ts +7 -1
  97. package/src/http/agents.ts +10 -2
  98. package/src/http/poll.ts +7 -0
  99. package/src/http/schedules.ts +10 -0
  100. package/src/http/script-runs.ts +35 -26
  101. package/src/http/status.ts +2 -1
  102. package/src/http/tasks.ts +6 -1
  103. package/src/prompts/memories.ts +5 -7
  104. package/src/prompts/session-templates.ts +3 -2
  105. package/src/prompts/steering-delivery.ts +2 -0
  106. package/src/providers/codex-adapter.ts +3 -6
  107. package/src/providers/pi-mono-extension.ts +2 -5
  108. package/src/slack/ack.ts +43 -8
  109. package/src/slack/handlers.ts +7 -1
  110. package/src/slack/render-v2.ts +186 -17
  111. package/src/slack/responses.ts +1 -3
  112. package/src/slack/task-output.ts +66 -8
  113. package/src/slack/thread-buffer.ts +27 -3
  114. package/src/tests/agent-fs-provision-seeder.test.ts +56 -2
  115. package/src/tests/codex-steering-hook.test.ts +2 -2
  116. package/src/tests/db-task-read-contract.test.ts +9 -0
  117. package/src/tests/db-task-write-contract.test.ts +9 -0
  118. package/src/tests/defer-task.test.ts +115 -16
  119. package/src/tests/extension-agent-visibility.test.ts +474 -0
  120. package/src/tests/extensions-lifecycle.test.ts +3 -1
  121. package/src/tests/fetch-resolved-env.test.ts +43 -0
  122. package/src/tests/memory-rate-tool.test.ts +7 -10
  123. package/src/tests/memory-rater-defaults.test.ts +23 -0
  124. package/src/tests/memory-rater-e2e.test.ts +2 -3
  125. package/src/tests/script-connections.test.ts +3 -0
  126. package/src/tests/slack-render-v2.test.ts +446 -16
  127. package/src/tests/slack-steering.test.ts +69 -1
  128. package/src/tests/slack-task-output.test.ts +33 -12
  129. package/src/tests/steering-core.test.ts +35 -0
  130. package/src/tests/steering-delivery.test.ts +39 -0
  131. package/src/tests/steering-transport.test.ts +2 -2
  132. package/src/tests/workflow-live-recovery.test.ts +126 -0
  133. package/src/tools/defer-task.ts +64 -26
  134. package/src/tools/join-swarm.ts +1 -1
  135. package/src/tools/schedules/create-schedule.ts +11 -1
  136. package/src/tools/schedules/patch-schedule.ts +5 -0
  137. package/src/tools/schedules/update-schedule.ts +5 -0
  138. package/src/tools/send-task.ts +6 -0
  139. package/src/tools/utils.ts +1 -1
  140. package/src/types.ts +13 -0
  141. package/src/utils/memory-raters.ts +3 -0
  142. package/src/workflows/engine.ts +28 -0
  143. package/src/workflows/recovery.ts +7 -4
@@ -4,12 +4,12 @@ import {
4
4
  linkIdentity,
5
5
  recordUnmappedIdentity,
6
6
  resolveIdentity
7
- } from "./cli-qrqhc31j.js";
7
+ } from "./cli-6r3cgpk2.js";
8
8
  import {
9
9
  getKv,
10
10
  init_db,
11
11
  upsertKv
12
- } from "./cli-djvxhnc4.js";
12
+ } from "./cli-ge67p080.js";
13
13
 
14
14
  // src/slack/enrich.ts
15
15
  init_db();
@@ -49,7 +49,7 @@ import {
49
49
  stream,
50
50
  streamSimple,
51
51
  validateToolArguments
52
- } from "./cli-d6hk10xx.js";
52
+ } from "./cli-8sea27q4.js";
53
53
  import {
54
54
  cleanupSessionResources,
55
55
  uuidv7
@@ -63160,7 +63160,7 @@ function getCreateJiti() {
63160
63160
  }
63161
63161
  var virtualModulesPromise;
63162
63162
  function getVirtualModules() {
63163
- virtualModulesPromise ??= import("./virtual-modules-ax661xp0.js").then((module) => module.VIRTUAL_MODULES);
63163
+ virtualModulesPromise ??= import("./virtual-modules-2q5b2pk4.js").then((module) => module.VIRTUAL_MODULES);
63164
63164
  return virtualModulesPromise;
63165
63165
  }
63166
63166
  var _aliases = null;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  buildModelsDevSeedRows,
3
3
  loadModelsDevCache
4
- } from "./cli-tdh4hjr2.js";
4
+ } from "./cli-e0pg4zeh.js";
5
5
  import {
6
6
  createLogEntry,
7
7
  getActivePricingRow,
8
8
  getDbClient,
9
9
  init_db,
10
10
  insertPricingRow
11
- } from "./cli-djvxhnc4.js";
11
+ } from "./cli-ge67p080.js";
12
12
  import {
13
13
  init_secret_scrubber,
14
14
  scrubSecrets
@@ -453,7 +453,7 @@ You MUST use the \`slack-interaction\` skill before you post to Slack.
453
453
  defaultBody: `
454
454
  ## Live task steering
455
455
 
456
- You may receive steering messages while this task is running. Each one arrives wrapped in a \`[steering <id>]\` marker that carries its steering message ID. Incorporate the message into your current work, then call \`accept-steer\` with that ID. Act on a message before you acknowledge it.
456
+ You may receive steering messages while this task is running. Each one arrives wrapped in a \`[steering <id>]\` marker that carries its steering message ID, followed by the sender name and kind. Incorporate the message into your current work, then call \`accept-steer\` with that ID. Act on a message before you acknowledge it.
457
457
  `,
458
458
  variables: [],
459
459
  category: "system"
@@ -461,12 +461,13 @@ You may receive steering messages while this task is running. Each one arrives w
461
461
  registerTemplate({
462
462
  eventType: "system.agent.steering.delivery",
463
463
  header: "",
464
- defaultBody: `[steering {{steeringMessageId}}] {{body}}
464
+ defaultBody: `[steering {{steeringMessageId}}] From {{sender}}: {{body}}
465
465
 
466
466
  (Once you have acted on this, call \`accept-steer\` with steeringMessageId "{{steeringMessageId}}".)`,
467
467
  variables: [
468
468
  { name: "steeringMessageId", description: "ID of the steering message being delivered" },
469
- { name: "body", description: "The steering message text as the sender wrote it" }
469
+ { name: "body", description: "The steering message text as the sender wrote it" },
470
+ { name: "sender", description: "Sender name and kind (user, agent, or system)" }
470
471
  ],
471
472
  category: "system"
472
473
  });
package/dist/cli.js CHANGED
@@ -57,7 +57,7 @@ var import_react = __toESM(require_react(), 1);
57
57
  // package.json
58
58
  var package_default = {
59
59
  name: "@desplega.ai/agent-swarm",
60
- version: "1.153.0",
60
+ version: "1.154.0",
61
61
  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.",
62
62
  keywords: [
63
63
  "agent-swarm.dev",
@@ -98,6 +98,7 @@ var package_default = {
98
98
  "plugin/commands/",
99
99
  "plugin/agents/",
100
100
  "plugin/pi-skills/",
101
+ "plugin/opencode-plugins/lib/memory-raters.ts",
101
102
  "templates/",
102
103
  "vendored-openapi/",
103
104
  "openapi.json"
@@ -734,7 +735,7 @@ function McpServer({ port, apiKey, dbPath }) {
734
735
  if (dbPath) {
735
736
  process.env.DATABASE_PATH = dbPath;
736
737
  }
737
- import("./http-jp2nb4zw.js").then(() => {
738
+ import("./http-20jesakk.js").then(() => {
738
739
  setStatus("running");
739
740
  }).catch((err) => {
740
741
  setStatus("error");
@@ -820,7 +821,7 @@ function WorkerRunner({
820
821
  }) {
821
822
  const { exit } = use_app_default();
822
823
  import_react.useEffect(() => {
823
- import("./worker-cd0nhyv1.js").then(({ runWorker }) => runWorker({
824
+ import("./worker-ec6hvc4m.js").then(({ runWorker }) => runWorker({
824
825
  prompt: prompt || undefined,
825
826
  yolo,
826
827
  systemPrompt: systemPrompt || undefined,
@@ -837,7 +838,7 @@ function WorkerRunner({
837
838
  function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalArgs }) {
838
839
  const { exit } = use_app_default();
839
840
  import_react.useEffect(() => {
840
- import("./lead-7vcmcdq4.js").then(({ runLead }) => runLead({
841
+ import("./lead-m789wqa3.js").then(({ runLead }) => runLead({
841
842
  prompt: prompt || undefined,
842
843
  yolo,
843
844
  systemPrompt: systemPrompt || undefined,
@@ -877,8 +878,8 @@ function LazyComponent({
877
878
  }
878
879
  return import_react.createElement(Component, props);
879
880
  }
880
- var loadOnboard = () => import("./onboard-17sv0f51.js").then(({ Onboard }) => Onboard);
881
- var loadConnect = () => import("./setup-8mfceb9t.js").then(({ Setup }) => Setup);
881
+ var loadOnboard = () => import("./onboard-snckpcj1.js").then(({ Onboard }) => Onboard);
882
+ var loadConnect = () => import("./setup-k1mew5rf.js").then(({ Setup }) => Setup);
882
883
  function UnknownCommand({ command }) {
883
884
  const { exit } = use_app_default();
884
885
  import_react.useEffect(() => {
@@ -999,14 +1000,14 @@ ${binName} docs \u2014 v${package_default.version}
999
1000
  }
1000
1001
  process.exit(0);
1001
1002
  } else if (args.command === "hook") {
1002
- const { runHook } = await import("./hook-k0gec254.js");
1003
+ const { runHook } = await import("./hook-vwq8y26p.js");
1003
1004
  await runHook();
1004
1005
  } else if (args.command === "codex-hook") {
1005
- const { handleCodexHook } = await import("./codex-hook-8jexc34x.js");
1006
+ const { handleCodexHook } = await import("./codex-hook-8gx7bcz0.js");
1006
1007
  await handleCodexHook();
1007
1008
  process.exit(0);
1008
1009
  } else if (args.command === "session-summary-stdin") {
1009
- const { runSessionSummaryFromStdin } = await import("./hook-0s8knepr.js");
1010
+ const { runSessionSummaryFromStdin } = await import("./hook-pntw4r8h.js");
1010
1011
  await runSessionSummaryFromStdin();
1011
1012
  process.exit(process.exitCode ?? 0);
1012
1013
  } else if (args.command === "artifact") {
@@ -1027,7 +1028,7 @@ ${binName} docs \u2014 v${package_default.version}
1027
1028
  printHelp("scripts");
1028
1029
  process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
1029
1030
  }
1030
- const { runScriptsMaintenanceCommand } = await import("./maintenance-x277jbpd.js");
1031
+ const { runScriptsMaintenanceCommand } = await import("./maintenance-bvg6w7e2.js");
1031
1032
  await runScriptsMaintenanceCommand(scriptsArgs);
1032
1033
  console.log("Scripts re-embedded.");
1033
1034
  } else if (args.command === "rbac") {
@@ -1037,14 +1038,14 @@ ${binName} docs \u2014 v${package_default.version}
1037
1038
  printHelp("rbac");
1038
1039
  process.exit(args.showHelp ? 0 : 1);
1039
1040
  }
1040
- const { runRbacCliCommand } = await import("./rbac-roles-cmxaddmy.js");
1041
+ const { runRbacCliCommand } = await import("./rbac-roles-5455kfdn.js");
1041
1042
  await runRbacCliCommand(rbacArgs);
1042
1043
  } else if (args.command === "codex-login") {
1043
1044
  const { runCodexLogin } = await import("./codex-login-vx7ghkzj.js");
1044
1045
  const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
1045
1046
  await runCodexLogin(codexLoginArgs);
1046
1047
  } else if (args.command === "codex-session-runner") {
1047
- const { runCodexSessionRunner } = await import("./codex-session-runner-2dad8p4x.js");
1048
+ const { runCodexSessionRunner } = await import("./codex-session-runner-3v8nh4c8.js");
1048
1049
  await runCodexSessionRunner();
1049
1050
  } else if (args.command === "claude-managed-setup") {
1050
1051
  const { runClaudeManagedSetup } = await import("./claude-managed-setup-f5pmsyrp.js");
@@ -6,28 +6,28 @@ import {
6
6
  createInProcessCodexSession,
7
7
  resolveCodexAuthMode,
8
8
  resolveCodexRunnerArgv
9
- } from "./cli-5taqtpze.js";
9
+ } from "./cli-q85qhckh.js";
10
10
  import"./cli-hsxj0yar.js";
11
11
  import"./cli-r94z9p1z.js";
12
12
  import"./cli-2djtr51b.js";
13
13
  import"./cli-b5b30yzk.js";
14
14
  import"./cli-zm7njwzd.js";
15
15
  import"./cli-e781c6f9.js";
16
- import"./cli-mzgyhxbe.js";
16
+ import"./cli-fdzg6jhf.js";
17
17
  import"./cli-hp1n6zq3.js";
18
18
  import"./cli-avkd6mqv.js";
19
- import"./cli-7g9s78jf.js";
19
+ import"./cli-3bkz2p7j.js";
20
20
  import"./cli-e7d20cty.js";
21
21
  import"./cli-re8z5p8p.js";
22
22
  import"./cli-3dpj7atn.js";
23
- import"./cli-d6hk10xx.js";
23
+ import"./cli-8sea27q4.js";
24
24
  import"./cli-y89t4nca.js";
25
25
  import"./cli-f14fvzag.js";
26
26
  import"./cli-bsakbbkm.js";
27
27
  import"./cli-ej6gbxfb.js";
28
28
  import"./cli-sd0mxa3c.js";
29
29
  import"./cli-w5e1d1vv.js";
30
- import"./cli-ybpp1srm.js";
30
+ import"./cli-myaxtgh8.js";
31
31
  import"./cli-r2ap2czm.js";
32
32
  import"./cli-5b6b62tz.js";
33
33
  import"./cli-btbzvq95.js";
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  renderSteeringDelivery
4
- } from "./cli-pgj4a5fb.js";
4
+ } from "./cli-71cj99hx.js";
5
5
  import {
6
6
  getApiKey
7
7
  } from "./cli-f14fvzag.js";
8
8
  import {
9
9
  init_steering_enabled,
10
10
  isSteeringEnabled
11
- } from "./cli-z61ykvam.js";
11
+ } from "./cli-wg04s9kr.js";
12
12
  import {
13
13
  getMcpBaseUrl,
14
14
  init_constants
@@ -60,7 +60,7 @@ async function collectDeliverableSteering(config, fetchImpl = fetch) {
60
60
  } catch {
61
61
  continue;
62
62
  }
63
- delivered.push(await renderSteeringDelivery(message.id, message.body));
63
+ delivered.push(await renderSteeringDelivery(message.id, message.body, message.senderLabel ?? message.createdByKind));
64
64
  }
65
65
  return delivered;
66
66
  }
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  createInProcessCodexSession
3
- } from "./cli-5taqtpze.js";
3
+ } from "./cli-q85qhckh.js";
4
4
  import"./cli-hsxj0yar.js";
5
5
  import"./cli-r94z9p1z.js";
6
6
  import"./cli-2djtr51b.js";
7
7
  import"./cli-b5b30yzk.js";
8
8
  import"./cli-zm7njwzd.js";
9
9
  import"./cli-e781c6f9.js";
10
- import"./cli-mzgyhxbe.js";
10
+ import"./cli-fdzg6jhf.js";
11
11
  import"./cli-hp1n6zq3.js";
12
12
  import"./cli-avkd6mqv.js";
13
- import"./cli-7g9s78jf.js";
13
+ import"./cli-3bkz2p7j.js";
14
14
  import"./cli-e7d20cty.js";
15
15
  import"./cli-re8z5p8p.js";
16
16
  import"./cli-3dpj7atn.js";
17
- import"./cli-d6hk10xx.js";
17
+ import"./cli-8sea27q4.js";
18
18
  import"./cli-y89t4nca.js";
19
19
  import"./cli-f14fvzag.js";
20
20
  import"./cli-bsakbbkm.js";
21
21
  import"./cli-ej6gbxfb.js";
22
22
  import"./cli-sd0mxa3c.js";
23
23
  import"./cli-w5e1d1vv.js";
24
- import"./cli-ybpp1srm.js";
24
+ import"./cli-myaxtgh8.js";
25
25
  import {
26
26
  init_secret_scrubber,
27
27
  scrubSecrets
@@ -2,10 +2,10 @@ import {
2
2
  getAllAgents,
3
3
  getAllTasks,
4
4
  init_db
5
- } from "./cli-djvxhnc4.js";
6
- import"./cli-zcsyfw2z.js";
7
- import"./cli-b2g6mzjc.js";
8
- import"./cli-z61ykvam.js";
5
+ } from "./cli-ge67p080.js";
6
+ import"./cli-4k7jazkq.js";
7
+ import"./cli-0e31nm4n.js";
8
+ import"./cli-wg04s9kr.js";
9
9
  import"./cli-v4en75c5.js";
10
10
  import"./cli-dv6cdjs2.js";
11
11
  import"./cli-n7h1kqpf.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./cli-ej6gbxfb.js";
16
16
  import"./cli-sd0mxa3c.js";
17
17
  import"./cli-w5e1d1vv.js";
18
- import"./cli-ybpp1srm.js";
18
+ import"./cli-myaxtgh8.js";
19
19
  import"./cli-r2ap2czm.js";
20
20
  import"./cli-zf8jjwex.js";
21
21
  import"./cli-bc05qbss.js";
@@ -1,6 +1,10 @@
1
1
  import {
2
+ EXTENSION_AGENT_ROLE,
3
+ ExtensionAgentAssignmentError,
2
4
  KvTypeCollisionError,
3
5
  MAX_EMPTY_POLLS,
6
+ NOT_EXTENSION_AGENT_SQL,
7
+ ReservedAgentRoleError,
4
8
  SKILL_FILE_LIMITS,
5
9
  UNATTRIBUTED_USER_ID,
6
10
  __resetSqliteVecExtensionPathCacheForTests,
@@ -100,6 +104,7 @@ import {
100
104
  emitMcpServerConnectedTelemetry,
101
105
  ensureSlackDelegationActivation,
102
106
  ensureSlackRenderV2Activation,
107
+ extensionAgentAssignmentError,
103
108
  failPendingResumeIfUnclaimed,
104
109
  failTask,
105
110
  findCompletedTaskInThread,
@@ -227,6 +232,7 @@ import {
227
232
  getRecentlyCancelledTasksForAgent,
228
233
  getRecentlyFinishedWorkerTasks,
229
234
  getRemainingCapacity,
235
+ getResolvableDeferralOutcomes,
230
236
  getResolvedConfig,
231
237
  getRetryableSteps,
232
238
  getRootTaskChain,
@@ -320,6 +326,7 @@ import {
320
326
  installSkill,
321
327
  installSystemDefaultSkillsForAgent,
322
328
  isAgentEligibleForTask,
329
+ isExtensionAgent,
323
330
  isPendingSlackMessage,
324
331
  isPoolAffinityEnforcementEnabled,
325
332
  isSqliteVecAvailable,
@@ -351,6 +358,7 @@ import {
351
358
  markInboxMessageRead,
352
359
  markInboxMessageResponded,
353
360
  markKeyRateLimited,
361
+ markSlackDeferralResolved,
354
362
  markSlackRelayAttempted,
355
363
  markSlackRelayDelivered,
356
364
  markSlackTreeRendered,
@@ -387,6 +395,7 @@ import {
387
395
  releaseTask,
388
396
  replaceTaskAttachment,
389
397
  reserveSlackMessage,
398
+ reservedRoleViolation,
390
399
  resetEmptyPollCount,
391
400
  resetOrphanedInProgressTasksForAgent,
392
401
  resetPromptTemplateToDefault,
@@ -455,30 +464,34 @@ import {
455
464
  upsertSkillFiles,
456
465
  upsertSwarmConfig,
457
466
  withFavoriteFlags
458
- } from "./cli-djvxhnc4.js";
459
- import"./cli-zcsyfw2z.js";
467
+ } from "./cli-ge67p080.js";
468
+ import"./cli-4k7jazkq.js";
460
469
  import {
461
470
  generateDefaultClaudeMd,
462
471
  generateDefaultIdentityMd,
463
472
  generateDefaultSoulMd,
464
473
  generateDefaultToolsMd
465
- } from "./cli-b2g6mzjc.js";
466
- import"./cli-z61ykvam.js";
474
+ } from "./cli-0e31nm4n.js";
475
+ import"./cli-wg04s9kr.js";
467
476
  import"./cli-v4en75c5.js";
468
477
  import"./cli-dv6cdjs2.js";
469
478
  import"./cli-n7h1kqpf.js";
470
479
  import"./cli-ej6gbxfb.js";
471
480
  import"./cli-sd0mxa3c.js";
472
481
  import"./cli-w5e1d1vv.js";
473
- import"./cli-ybpp1srm.js";
482
+ import"./cli-myaxtgh8.js";
474
483
  import"./cli-r2ap2czm.js";
475
484
  import"./cli-zf8jjwex.js";
476
485
  import"./cli-bc05qbss.js";
477
486
  init_db();
478
487
 
479
488
  export {
489
+ EXTENSION_AGENT_ROLE,
490
+ ExtensionAgentAssignmentError,
480
491
  KvTypeCollisionError,
481
492
  MAX_EMPTY_POLLS,
493
+ NOT_EXTENSION_AGENT_SQL,
494
+ ReservedAgentRoleError,
482
495
  SKILL_FILE_LIMITS,
483
496
  UNATTRIBUTED_USER_ID,
484
497
  __resetSqliteVecExtensionPathCacheForTests,
@@ -578,6 +591,7 @@ export {
578
591
  emitMcpServerConnectedTelemetry,
579
592
  ensureSlackDelegationActivation,
580
593
  ensureSlackRenderV2Activation,
594
+ extensionAgentAssignmentError,
581
595
  failPendingResumeIfUnclaimed,
582
596
  failTask,
583
597
  findCompletedTaskInThread,
@@ -709,6 +723,7 @@ export {
709
723
  getRecentlyCancelledTasksForAgent,
710
724
  getRecentlyFinishedWorkerTasks,
711
725
  getRemainingCapacity,
726
+ getResolvableDeferralOutcomes,
712
727
  getResolvedConfig,
713
728
  getRetryableSteps,
714
729
  getRootTaskChain,
@@ -801,6 +816,7 @@ export {
801
816
  installSkill,
802
817
  installSystemDefaultSkillsForAgent,
803
818
  isAgentEligibleForTask,
819
+ isExtensionAgent,
804
820
  isPendingSlackMessage,
805
821
  isPoolAffinityEnforcementEnabled,
806
822
  isSqliteVecAvailable,
@@ -832,6 +848,7 @@ export {
832
848
  markInboxMessageRead,
833
849
  markInboxMessageResponded,
834
850
  markKeyRateLimited,
851
+ markSlackDeferralResolved,
835
852
  markSlackRelayAttempted,
836
853
  markSlackRelayDelivered,
837
854
  markSlackTreeRendered,
@@ -868,6 +885,7 @@ export {
868
885
  releaseTask,
869
886
  replaceTaskAttachment,
870
887
  reserveSlackMessage,
888
+ reservedRoleViolation,
871
889
  resetEmptyPollCount,
872
890
  resetOrphanedInProgressTasksForAgent,
873
891
  resetPromptTemplateToDefault,
@@ -11,46 +11,46 @@ import {
11
11
  resolveBridgeCallOrigin,
12
12
  runContext,
13
13
  unregister
14
- } from "./cli-qrqhc31j.js";
14
+ } from "./cli-6r3cgpk2.js";
15
15
  import"./cli-0z2v4nhw.js";
16
- import"./cli-7g9s78jf.js";
16
+ import"./cli-3bkz2p7j.js";
17
17
  import"./cli-e7d20cty.js";
18
18
  import"./cli-re8z5p8p.js";
19
19
  import"./cli-3dpj7atn.js";
20
- import"./cli-d6hk10xx.js";
21
- import"./cli-vw03hg5t.js";
22
- import"./cli-tdh4hjr2.js";
23
- import"./cli-83wkg402.js";
20
+ import"./cli-8sea27q4.js";
21
+ import"./cli-stwsmd6k.js";
22
+ import"./cli-e0pg4zeh.js";
23
+ import"./cli-e31ehqwy.js";
24
24
  import"./cli-ytxs7mn1.js";
25
- import"./cli-6ks9xf1n.js";
25
+ import"./cli-pf1v8xhb.js";
26
26
  import"./cli-epan13p1.js";
27
27
  import"./cli-y89t4nca.js";
28
28
  import"./cli-f14fvzag.js";
29
- import"./cli-r8tdds6s.js";
29
+ import"./cli-n62atwh9.js";
30
30
  import"./cli-bsakbbkm.js";
31
31
  import"./cli-fad8m16k.js";
32
32
  import"./cli-jsp14b6c.js";
33
- import"./cli-ysc1kbet.js";
34
- import"./cli-7pnz2v6s.js";
35
- import"./cli-0d9nbqxf.js";
33
+ import"./cli-e3cyf59d.js";
34
+ import"./cli-hws0vn86.js";
35
+ import"./cli-g2h29qar.js";
36
36
  import"./cli-aehm1rbq.js";
37
37
  import"./cli-51tf7ac3.js";
38
- import"./cli-n0q9b7j4.js";
38
+ import"./cli-c1v10xb2.js";
39
39
  import"./cli-q51yprfq.js";
40
40
  import"./cli-3er6gcsn.js";
41
41
  import"./cli-yatxqynm.js";
42
42
  import"./cli-2658f6at.js";
43
- import"./cli-djvxhnc4.js";
44
- import"./cli-zcsyfw2z.js";
45
- import"./cli-b2g6mzjc.js";
46
- import"./cli-z61ykvam.js";
43
+ import"./cli-ge67p080.js";
44
+ import"./cli-4k7jazkq.js";
45
+ import"./cli-0e31nm4n.js";
46
+ import"./cli-wg04s9kr.js";
47
47
  import"./cli-v4en75c5.js";
48
48
  import"./cli-dv6cdjs2.js";
49
49
  import"./cli-n7h1kqpf.js";
50
50
  import"./cli-ej6gbxfb.js";
51
51
  import"./cli-sd0mxa3c.js";
52
52
  import"./cli-w5e1d1vv.js";
53
- import"./cli-ybpp1srm.js";
53
+ import"./cli-myaxtgh8.js";
54
54
  import"./cli-r2ap2czm.js";
55
55
  import"./cli-5b6b62tz.js";
56
56
  import"./cli-btbzvq95.js";
@@ -2,11 +2,11 @@ import {
2
2
  DSH_PACKAGE,
3
3
  DshAdapter,
4
4
  checkDshCredentials
5
- } from "./cli-zy5w9gpt.js";
5
+ } from "./cli-95jnpnqg.js";
6
6
  import"./cli-r94z9p1z.js";
7
7
  import"./cli-3dpj7atn.js";
8
8
  import"./cli-y89t4nca.js";
9
- import"./cli-zcsyfw2z.js";
9
+ import"./cli-4k7jazkq.js";
10
10
  import"./cli-dv6cdjs2.js";
11
11
  import"./cli-sd0mxa3c.js";
12
12
  import"./cli-w5e1d1vv.js";
@@ -13,7 +13,7 @@ import {
13
13
  toGoogleSdkThinkingLevel,
14
14
  toGoogleThinkingLevel,
15
15
  usesGoogleThinkingLevel
16
- } from "./cli-rj7de4b2.js";
16
+ } from "./cli-24k806sc.js";
17
17
  import"./cli-s8s499xy.js";
18
18
  import {
19
19
  getPiUserAgent
@@ -14,7 +14,7 @@ import {
14
14
  toGoogleSdkThinkingLevel,
15
15
  toGoogleThinkingLevel,
16
16
  usesGoogleThinkingLevel
17
- } from "./cli-rj7de4b2.js";
17
+ } from "./cli-24k806sc.js";
18
18
  import"./cli-s8s499xy.js";
19
19
  import {
20
20
  getPiUserAgent
@@ -5,49 +5,49 @@ import {
5
5
  isUserAllowed,
6
6
  registerMessageHandler,
7
7
  resetSlackHandlerCachesForTesting
8
- } from "./cli-nq0kgyxe.js";
9
- import"./cli-a9scg8sv.js";
10
- import"./cli-eazstkad.js";
11
- import"./cli-qrqhc31j.js";
8
+ } from "./cli-acy6bfhr.js";
9
+ import"./cli-913yakhv.js";
10
+ import"./cli-r1d3dzt6.js";
11
+ import"./cli-6r3cgpk2.js";
12
12
  import"./cli-0z2v4nhw.js";
13
- import"./cli-7g9s78jf.js";
13
+ import"./cli-3bkz2p7j.js";
14
14
  import"./cli-e7d20cty.js";
15
15
  import"./cli-re8z5p8p.js";
16
16
  import"./cli-3dpj7atn.js";
17
- import"./cli-d6hk10xx.js";
18
- import"./cli-vw03hg5t.js";
19
- import"./cli-tdh4hjr2.js";
20
- import"./cli-83wkg402.js";
17
+ import"./cli-8sea27q4.js";
18
+ import"./cli-stwsmd6k.js";
19
+ import"./cli-e0pg4zeh.js";
20
+ import"./cli-e31ehqwy.js";
21
21
  import"./cli-ytxs7mn1.js";
22
- import"./cli-6ks9xf1n.js";
22
+ import"./cli-pf1v8xhb.js";
23
23
  import"./cli-epan13p1.js";
24
24
  import"./cli-y89t4nca.js";
25
25
  import"./cli-f14fvzag.js";
26
- import"./cli-r8tdds6s.js";
26
+ import"./cli-n62atwh9.js";
27
27
  import"./cli-bsakbbkm.js";
28
28
  import"./cli-fad8m16k.js";
29
29
  import"./cli-jsp14b6c.js";
30
- import"./cli-ysc1kbet.js";
31
- import"./cli-7pnz2v6s.js";
32
- import"./cli-0d9nbqxf.js";
30
+ import"./cli-e3cyf59d.js";
31
+ import"./cli-hws0vn86.js";
32
+ import"./cli-g2h29qar.js";
33
33
  import"./cli-aehm1rbq.js";
34
34
  import"./cli-51tf7ac3.js";
35
- import"./cli-n0q9b7j4.js";
35
+ import"./cli-c1v10xb2.js";
36
36
  import"./cli-q51yprfq.js";
37
37
  import"./cli-3er6gcsn.js";
38
38
  import"./cli-yatxqynm.js";
39
39
  import"./cli-2658f6at.js";
40
- import"./cli-djvxhnc4.js";
41
- import"./cli-zcsyfw2z.js";
42
- import"./cli-b2g6mzjc.js";
43
- import"./cli-z61ykvam.js";
40
+ import"./cli-ge67p080.js";
41
+ import"./cli-4k7jazkq.js";
42
+ import"./cli-0e31nm4n.js";
43
+ import"./cli-wg04s9kr.js";
44
44
  import"./cli-v4en75c5.js";
45
45
  import"./cli-dv6cdjs2.js";
46
46
  import"./cli-n7h1kqpf.js";
47
47
  import"./cli-ej6gbxfb.js";
48
48
  import"./cli-sd0mxa3c.js";
49
49
  import"./cli-w5e1d1vv.js";
50
- import"./cli-ybpp1srm.js";
50
+ import"./cli-myaxtgh8.js";
51
51
  import"./cli-r2ap2czm.js";
52
52
  import"./cli-5b6b62tz.js";
53
53
  import"./cli-btbzvq95.js";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  materializeClaudeMd,
4
4
  stopClaudeMd
5
- } from "./cli-1hwnb4hc.js";
5
+ } from "./cli-09y3tjxz.js";
6
6
  import {
7
7
  summarizeSession
8
- } from "./cli-mzgyhxbe.js";
8
+ } from "./cli-fdzg6jhf.js";
9
9
  import {
10
10
  checkToolLoop,
11
11
  clearToolHistory
@@ -16,10 +16,10 @@ import {
16
16
  fetchRetrievalsForTask,
17
17
  isLlmRaterEnabled,
18
18
  postRatings
19
- } from "./cli-7g9s78jf.js";
19
+ } from "./cli-3bkz2p7j.js";
20
20
  import"./cli-e7d20cty.js";
21
21
  import"./cli-3dpj7atn.js";
22
- import"./cli-d6hk10xx.js";
22
+ import"./cli-8sea27q4.js";
23
23
  import {
24
24
  getApiKey
25
25
  } from "./cli-f14fvzag.js";
@@ -31,10 +31,10 @@ import {
31
31
  init_profile_sync,
32
32
  readIdentityBaselines,
33
33
  warnProfileFileTooLarge
34
- } from "./cli-0d9nbqxf.js";
34
+ } from "./cli-g2h29qar.js";
35
35
  import"./cli-2658f6at.js";
36
- import"./cli-b2g6mzjc.js";
37
- import"./cli-z61ykvam.js";
36
+ import"./cli-0e31nm4n.js";
37
+ import"./cli-wg04s9kr.js";
38
38
  import {
39
39
  MAX_PROFILE_FILE_LENGTH,
40
40
  getMcpBaseUrl,
@@ -47,7 +47,7 @@ import"./cli-w5e1d1vv.js";
47
47
  import {
48
48
  init_package,
49
49
  package_default
50
- } from "./cli-ybpp1srm.js";
50
+ } from "./cli-myaxtgh8.js";
51
51
  import {
52
52
  init_secret_scrubber,
53
53
  scrubSecrets