@desplega.ai/agent-swarm 2.4.2 → 2.4.3

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 (127) hide show
  1. package/dist/{acp-adapter-dv7hmx4r.js → acp-adapter-1885dpr7.js} +4 -4
  2. package/dist/{actions-51nc1gny.js → actions-pn76n32q.js} +18 -18
  3. package/dist/{amp-adapter-abp5tdx8.js → amp-adapter-af84rx1d.js} +3 -3
  4. package/dist/{app-9h14qvr6.js → app-6sv8mhzm.js} +3 -3
  5. package/dist/{assistant-wv1gz3mt.js → assistant-sc2tf825.js} +20 -20
  6. package/dist/{boot-reembed-7fcka4z5.js → boot-reembed-gvxjs2py.js} +1 -1
  7. package/dist/{boot-reembed-6yn53ms9.js → boot-reembed-y3m0ydzj.js} +1 -1
  8. package/dist/{boot-scrub-sweep-pm1580ax.js → boot-scrub-sweep-1j9mk05f.js} +3 -3
  9. package/dist/{boot-seeds-g5hfc1x8.js → boot-seeds-37sp626b.js} +4 -4
  10. package/dist/{claude-adapter-gf3kxhf0.js → claude-adapter-rp0jtnwr.js} +4 -4
  11. package/dist/{claude-managed-setup-h00hsgtz.js → claude-managed-setup-rdt248k7.js} +1 -1
  12. package/dist/{claude-sdk-session-s2k1qd8y.js → claude-sdk-session-53rcw5we.js} +9822 -9749
  13. package/dist/{cli-z4wd2ftv.js → cli-038fga5k.js} +2 -2
  14. package/dist/{cli-y2x52gs2.js → cli-0dxxwfkt.js} +8 -8
  15. package/dist/{cli-y8n5k515.js → cli-1012xb7j.js} +28 -28
  16. package/dist/{cli-sv5gb0yb.js → cli-1eszr343.js} +1 -1
  17. package/dist/{cli-7225gwj7.js → cli-1m17dc9d.js} +1 -1
  18. package/dist/{cli-r99kc9yq.js → cli-1ma335fz.js} +3 -3
  19. package/dist/{cli-faypxz7q.js → cli-1n9gdg56.js} +4 -4
  20. package/dist/{cli-shvfedvm.js → cli-1xsraagq.js} +2 -2
  21. package/dist/{cli-xbzvet96.js → cli-36ckw0wx.js} +5 -4
  22. package/dist/{cli-mhywgrrz.js → cli-4sydckyj.js} +1 -1
  23. package/dist/{cli-bcj753sq.js → cli-4yef8ghv.js} +3 -3
  24. package/dist/{cli-g0hgtz4p.js → cli-58vwn100.js} +3 -3
  25. package/dist/{cli-pw7v69vp.js → cli-625tb7aq.js} +1 -1
  26. package/dist/{cli-ftyypbg5.js → cli-6aen3ezb.js} +1 -1
  27. package/dist/{cli-efaqv1c7.js → cli-6eyncg0y.js} +6 -6
  28. package/dist/{cli-h38rjv87.js → cli-73ezfhha.js} +5 -5
  29. package/dist/{cli-x5mq1fyq.js → cli-74c1wpm0.js} +3 -3
  30. package/dist/{cli-b1dfr1m4.js → cli-7a6p4e65.js} +1 -1
  31. package/dist/{cli-fpmsqq59.js → cli-836ehxmt.js} +1 -1
  32. package/dist/{cli-1pa3rz69.js → cli-8vverzf7.js} +1 -1
  33. package/dist/{cli-hyfw2j1e.js → cli-8y99kfey.js} +11 -11
  34. package/dist/{cli-ahtpy9kf.js → cli-aa3tb29r.js} +10 -5
  35. package/dist/{cli-fyzjmseb.js → cli-aypbg9r2.js} +1 -1
  36. package/dist/{cli-0qvtffe9.js → cli-bxrqvpg5.js} +6 -6
  37. package/dist/{cli-0hyhdkdk.js → cli-cebvbc9t.js} +4 -1
  38. package/dist/{cli-10hhg0km.js → cli-dm8p2dpf.js} +7 -7
  39. package/dist/{cli-8sxqsbbq.js → cli-e4d78xsv.js} +1 -1
  40. package/dist/{cli-7a91w22y.js → cli-e8xyjvfc.js} +1 -1
  41. package/dist/{cli-8zwe9mpk.js → cli-f0p0f6ja.js} +10 -10
  42. package/dist/{cli-w9g4sz81.js → cli-gf2850q7.js} +1 -1
  43. package/dist/{cli-n85dqg6d.js → cli-gx0j2khs.js} +4 -4
  44. package/dist/{cli-239yjk27.js → cli-h0mgxann.js} +5 -5
  45. package/dist/{cli-5rk36sjf.js → cli-kgnkyabk.js} +35 -34
  46. package/dist/{cli-hqhzg1qq.js → cli-mzkwkbdy.js} +1 -1
  47. package/dist/{cli-saw9a6f6.js → cli-npfe9t1s.js} +2 -2
  48. package/dist/{cli-t30yj95q.js → cli-p0qerd2r.js} +1 -1
  49. package/dist/{cli-s6vr7r2d.js → cli-pygdsgh8.js} +1 -1
  50. package/dist/{cli-2wag8973.js → cli-qeaq3j6t.js} +1 -1
  51. package/dist/{cli-7awf1fp8.js → cli-qp2m4btv.js} +3 -3
  52. package/dist/{cli-02qm7src.js → cli-s9rr4gr2.js} +5 -5
  53. package/dist/{cli-nmqdc2t3.js → cli-sds5zzs8.js} +1 -1
  54. package/dist/{cli-nn47d7e8.js → cli-tkf4x6ha.js} +15 -15
  55. package/dist/{cli-pkht5hap.js → cli-v87dr6e3.js} +2 -2
  56. package/dist/{cli-d3qqdy4c.js → cli-vcgscaan.js} +12 -12
  57. package/dist/{cli-zfg9enh9.js → cli-vfha21c9.js} +6 -1
  58. package/dist/{cli-h93c9vb3.js → cli-vq9gqarq.js} +1 -1
  59. package/dist/{cli-a4gvwttf.js → cli-wk28hzqn.js} +2 -2
  60. package/dist/{cli-rdyw3mct.js → cli-zvbb4n0e.js} +6 -5
  61. package/dist/cli.js +16 -16
  62. package/dist/{codex-adapter-ttygw382.js → codex-adapter-2zrmab9b.js} +2 -2
  63. package/dist/{codex-hook-x7nejyrr.js → codex-hook-e2he7aca.js} +2 -2
  64. package/dist/{codex-session-runner-60b58vv3.js → codex-session-runner-kbkz62vc.js} +2 -2
  65. package/dist/{commands-edmdwa4x.js → commands-hd574th6.js} +3 -3
  66. package/dist/{controller-m263fg43.js → controller-pz5mcfg4.js} +3 -3
  67. package/dist/{controllers-connect-5fym8sw1.js → controllers-connect-5rgq2hfk.js} +19 -19
  68. package/dist/{cursor-adapter-cz6nm6mj.js → cursor-adapter-mgaprq0j.js} +2 -2
  69. package/dist/{db-nn0hcmx5.js → db-6nf1207q.js} +2 -2
  70. package/dist/{db-2y0mgstc.js → db-h06dxp05.js} +3 -3
  71. package/dist/{dispatcher-0a9wwjcx.js → dispatcher-zthpy4m1.js} +17 -17
  72. package/dist/{dsh-adapter-3n3net33.js → dsh-adapter-64dhw0j7.js} +2 -2
  73. package/dist/{e2b-thdcxtjd.js → e2b-16d6ch39.js} +1 -1
  74. package/dist/{e2b-7am6tmq6.js → e2b-zn0b4w5w.js} +1 -1
  75. package/dist/{external-channel-zhvt95n3.js → external-channel-x01t7ke6.js} +2 -2
  76. package/dist/{grok-adapter-qnr1hp2y.js → grok-adapter-h21jv594.js} +5 -5
  77. package/dist/handlers-2qjw434w.js +39 -0
  78. package/dist/{heartbeat-gz97r7ac.js → heartbeat-zzfksckz.js} +20 -20
  79. package/dist/{hook-x8rthca4.js → hook-3xfqhh2s.js} +2 -2
  80. package/dist/{hook-1mmdgjqs.js → hook-z4zhzj1f.js} +10 -5
  81. package/dist/{http-r8f85xr9.js → http-q813tmya.js} +46 -46
  82. package/dist/{index-y7rbcrc1.js → index-220tk9bw.js} +9 -9
  83. package/dist/index-d0g18bax.js +41 -0
  84. package/dist/{index-vzvfqzfj.js → index-m0a4ydqj.js} +17 -17
  85. package/dist/{index-aex0eba9.js → index-wbbs14c5.js} +17 -17
  86. package/dist/{index-smxyk04s.js → index-x8xbyn1t.js} +1 -1
  87. package/dist/{keepalive-64c0f34c.js → keepalive-y5t1my7m.js} +3 -3
  88. package/dist/{lead-b1da0f97.js → lead-2xwtq66b.js} +30 -30
  89. package/dist/{maintenance-mnxpar12.js → maintenance-ybfsaedv.js} +1 -1
  90. package/dist/{oauth-refresh-sweep-36hs2v4h.js → oauth-refresh-sweep-909jmn12.js} +2 -2
  91. package/dist/{onboard-xes8de61.js → onboard-xn6fkkys.js} +3 -3
  92. package/dist/{opencode-adapter-3s7ax02e.js → opencode-adapter-x4tqzhkh.js} +3 -3
  93. package/dist/{otel-impl-fzc57kcq.js → otel-impl-e6mn0z13.js} +1 -1
  94. package/dist/{pi-mono-adapter-ytp7gz8b.js → pi-mono-adapter-mcfkn9vf.js} +3 -3
  95. package/dist/{pricing-refresh-1nek2w7b.js → pricing-refresh-ygd362ep.js} +3 -3
  96. package/dist/{rbac-roles-ttyfaep2.js → rbac-roles-c9axvfnz.js} +3 -3
  97. package/dist/{rbac-roles-sqefb5hw.js → rbac-roles-mb470p4e.js} +2 -2
  98. package/dist/{render-v2-vb527jwn.js → render-v2-g0306nh1.js} +3 -3
  99. package/dist/{resume-jcdzg1bn.js → resume-v315hnq6.js} +5 -5
  100. package/dist/{session-access-zsp4wsp0.js → session-access-2zg285a1.js} +4 -4
  101. package/dist/{setup-1nb2zqd3.js → setup-a4mtf02k.js} +1 -1
  102. package/dist/{work-objects-61w08fwr.js → work-objects-9fr0fgtn.js} +21 -21
  103. package/dist/{worker-c1e68hpa.js → worker-qae22jeb.js} +30 -30
  104. package/openapi.json +1 -1
  105. package/package.json +2 -2
  106. package/src/be/db.ts +7 -4
  107. package/src/be/migrations/231_slack_tasks_last_updated_index.sql +5 -0
  108. package/src/github/handlers.ts +6 -5
  109. package/src/hooks/hook.ts +2 -1
  110. package/src/providers/amp-adapter.ts +1 -1
  111. package/src/providers/codex-adapter.ts +4 -4
  112. package/src/providers/opencode-adapter.ts +2 -2
  113. package/src/providers/pi-mono-extension.ts +2 -1
  114. package/src/tests/claude-stop-hook.test.ts +47 -0
  115. package/src/tests/codex-adapter.test.ts +42 -0
  116. package/src/tests/env-flag.test.ts +15 -1
  117. package/src/tests/github-handlers-cancel-config.test.ts +29 -8
  118. package/src/tests/github-handlers-inline-comments.test.ts +9 -2
  119. package/src/tests/script-connections.test.ts +2 -0
  120. package/src/tests/skill-script-refs.test.ts +63 -0
  121. package/src/tests/slack-render-v2-query-plans.test.ts +147 -0
  122. package/src/utils/env-flag.ts +9 -0
  123. package/templates/skills/apps/SKILL.md +1 -0
  124. package/templates/skills/apps/content.md +1 -0
  125. package/templates/skills/code-quality/content.md +9 -14
  126. package/dist/handlers-dkcarkd0.js +0 -39
  127. package/dist/index-5jecgp3n.js +0 -41
@@ -332,19 +332,19 @@ import {
332
332
  recordInlineScriptRun2,
333
333
  exports_db,
334
334
  init_db3
335
- } from "./cli-d3qqdy4c.js";
335
+ } from "./cli-vcgscaan.js";
336
336
  import {
337
337
  getUserGrant2,
338
338
  init_rbac_roles
339
- } from "./cli-7awf1fp8.js";
339
+ } from "./cli-qp2m4btv.js";
340
340
  import {
341
341
  ensurePricingSeeded2,
342
342
  ensureRbacSeeded2,
343
343
  ensureModelProfilesSeeded2
344
- } from "./cli-faypxz7q.js";
344
+ } from "./cli-1n9gdg56.js";
345
345
  import {
346
346
  loadModelsDevCache
347
- } from "./cli-h93c9vb3.js";
347
+ } from "./cli-vq9gqarq.js";
348
348
  import {
349
349
  buildCatalogEntries,
350
350
  listModelCatalog,
@@ -354,12 +354,12 @@ import {
354
354
  loadModelsCatalog,
355
355
  requestModelCatalogRefresh2,
356
356
  startPricingRefreshLoop2
357
- } from "./cli-saw9a6f6.js";
357
+ } from "./cli-npfe9t1s.js";
358
358
  import {
359
359
  ampPinProviderError,
360
360
  ampPinCatalogError,
361
361
  ampModelError
362
- } from "./cli-sv5gb0yb.js";
362
+ } from "./cli-1eszr343.js";
363
363
  import {
364
364
  notifyAutomationPreflightFailure,
365
365
  isNeedsSetupFailure,
@@ -411,7 +411,7 @@ import {
411
411
  buildNodeInterpolationCtx,
412
412
  interpolateNodeConfig,
413
413
  scriptBodyInterpolationError
414
- } from "./cli-y2x52gs2.js";
414
+ } from "./cli-0dxxwfkt.js";
415
415
  import {
416
416
  require_dist2,
417
417
  publicEndpointSsrfOptions,
@@ -471,14 +471,14 @@ import {
471
471
  deleteApp,
472
472
  typecheckScript,
473
473
  parseSkillContent
474
- } from "./cli-h38rjv87.js";
474
+ } from "./cli-73ezfhha.js";
475
475
  import {
476
476
  buildAuthorizationUrl,
477
477
  onAuthorizationRefreshed,
478
478
  ensureAuthorizationTokenOrThrow,
479
479
  ensureToken,
480
480
  ensureTokenOrThrow
481
- } from "./cli-s6vr7r2d.js";
481
+ } from "./cli-pygdsgh8.js";
482
482
  import {
483
483
  detachedProcessGroup,
484
484
  registerProcessGroup,
@@ -508,14 +508,14 @@ import {
508
508
  getSlackApp2,
509
509
  startSlackApp2,
510
510
  stopSlackApp2
511
- } from "./cli-nn47d7e8.js";
511
+ } from "./cli-tkf4x6ha.js";
512
512
  import {
513
513
  slackCode,
514
514
  slackMissingScopeMessage,
515
515
  withAutoJoin,
516
516
  externalChannelToolError2,
517
517
  getChannelBlockReason2
518
- } from "./cli-pkht5hap.js";
518
+ } from "./cli-v87dr6e3.js";
519
519
  import {
520
520
  BaseExecutor,
521
521
  postApprovalCancellationUpdates,
@@ -532,7 +532,7 @@ import {
532
532
  definitionNodeIds,
533
533
  validateDefinition,
534
534
  applyDefinitionPatch
535
- } from "./cli-02qm7src.js";
535
+ } from "./cli-s9rr4gr2.js";
536
536
  import {
537
537
  workflowEventBus2,
538
538
  init_event_bus
@@ -561,10 +561,10 @@ import {
561
561
  isPublicRoute,
562
562
  findRoute,
563
563
  route
564
- } from "./cli-efaqv1c7.js";
564
+ } from "./cli-6eyncg0y.js";
565
565
  import {
566
566
  isMultiRuntimeEnabled
567
- } from "./cli-7a91w22y.js";
567
+ } from "./cli-e8xyjvfc.js";
568
568
  import {
569
569
  providerPath,
570
570
  AgentFsProvider,
@@ -573,7 +573,7 @@ import {
573
573
  import {
574
574
  getRuntimePool2,
575
575
  init_db
576
- } from "./cli-n85dqg6d.js";
576
+ } from "./cli-gx0j2khs.js";
577
577
  import {
578
578
  getMemoryRaterNames,
579
579
  REFERENCES_SOURCE_MAX_LENGTH,
@@ -598,7 +598,7 @@ import {
598
598
  import {
599
599
  canProvisionKind,
600
600
  init_runtime_providers
601
- } from "./cli-pw7v69vp.js";
601
+ } from "./cli-625tb7aq.js";
602
602
  import {
603
603
  findUserById,
604
604
  findUserByExternalId,
@@ -614,7 +614,7 @@ import {
614
614
  resolveSessionToken,
615
615
  fingerprintApiKey,
616
616
  init_users
617
- } from "./cli-nmqdc2t3.js";
617
+ } from "./cli-sds5zzs8.js";
618
618
  import {
619
619
  isRbacEnabled,
620
620
  decideAdmission,
@@ -623,7 +623,7 @@ import {
623
623
  init_elevated_agents,
624
624
  can,
625
625
  init_rbac
626
- } from "./cli-1pa3rz69.js";
626
+ } from "./cli-8vverzf7.js";
627
627
  import {
628
628
  normalizeAssetKey,
629
629
  parseAssetKey,
@@ -683,7 +683,7 @@ import {
683
683
  KvNamespaceSchema,
684
684
  KvKeySchema,
685
685
  init_types
686
- } from "./cli-fpmsqq59.js";
686
+ } from "./cli-836ehxmt.js";
687
687
  import {
688
688
  generateDefaultClaudeMd2,
689
689
  generateDefaultSoulMd2,
@@ -692,15 +692,15 @@ import {
692
692
  taskAttachmentFetchCommand,
693
693
  taskAttachmentDisplayUrl,
694
694
  init_task_attachment_links
695
- } from "./cli-x5mq1fyq.js";
695
+ } from "./cli-74c1wpm0.js";
696
696
  import {
697
697
  getSlackConfiguration,
698
698
  init_config
699
- } from "./cli-2wag8973.js";
699
+ } from "./cli-qeaq3j6t.js";
700
700
  import {
701
701
  isSteeringEnabled2,
702
702
  init_steering_enabled
703
- } from "./cli-mhywgrrz.js";
703
+ } from "./cli-4sydckyj.js";
704
704
  import {
705
705
  findInterpolationTokens,
706
706
  interpolate,
@@ -754,7 +754,7 @@ import {
754
754
  import {
755
755
  init_package,
756
756
  package_default
757
- } from "./cli-shvfedvm.js";
757
+ } from "./cli-1xsraagq.js";
758
758
  import {
759
759
  realtimeBus,
760
760
  init_bus
@@ -770,12 +770,12 @@ import {
770
770
  getAgentFsDefaultDriveId,
771
771
  isCombEnabled,
772
772
  init_constants2
773
- } from "./cli-w9g4sz81.js";
773
+ } from "./cli-gf2850q7.js";
774
774
  import {
775
775
  parseEnvFlag,
776
776
  isEnvFlagEnabled,
777
777
  init_env_flag
778
- } from "./cli-0hyhdkdk.js";
778
+ } from "./cli-cebvbc9t.js";
779
779
  import {
780
780
  getApiKey,
781
781
  init_api_key
@@ -21146,7 +21146,7 @@ class NotifyExecutor extends BaseExecutor {
21146
21146
  }
21147
21147
  }
21148
21148
  case "slack": {
21149
- const { getSlackApp } = await import("./app-9h14qvr6.js");
21149
+ const { getSlackApp } = await import("./app-6sv8mhzm.js");
21150
21150
  const app = getSlackApp();
21151
21151
  if (!app) {
21152
21152
  return {
@@ -24508,7 +24508,7 @@ function setPreloadedTools(server, names) {
24508
24508
  async function applyPreToolCall(name, args, requestInfo, inputSchema) {
24509
24509
  if (requestInfo.callOrigin !== "mcp")
24510
24510
  return { args };
24511
- const dispatcher = await import("./dispatcher-0a9wwjcx.js");
24511
+ const dispatcher = await import("./dispatcher-zthpy4m1.js");
24512
24512
  const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
24513
24513
  validateModify: async (data) => {
24514
24514
  const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
@@ -29128,6 +29128,7 @@ init_db3();
29128
29128
  init_users();
29129
29129
  init_resolver();
29130
29130
  init_context_key();
29131
+ init_env_flag();
29131
29132
 
29132
29133
  // src/github/mentions.ts
29133
29134
  var GITHUB_BOT_NAME = process.env.GITHUB_BOT_NAME || "agent-swarm-bot";
@@ -29608,7 +29609,7 @@ function buildGithubContextKey(fullName, kind, number) {
29608
29609
  }
29609
29610
  async function cancelFlagEnabled(key) {
29610
29611
  const row = (await getSwarmConfigs2({ scope: "global", key }))[0];
29611
- return row?.value !== "false";
29612
+ return parseEnvFlag(row?.value, true);
29612
29613
  }
29613
29614
  var cancelOnUnassignEnabled = () => cancelFlagEnabled("github.cancelOnUnassign");
29614
29615
  var cancelOnReviewRequestRemovedEnabled = () => cancelFlagEnabled("github.cancelOnReviewRequestRemoved");
@@ -30305,7 +30306,7 @@ var PR_REVIEW_ACTION_ITEMS_QUERY = `query($owner: String!, $name: String!, $numb
30305
30306
  }
30306
30307
  }`;
30307
30308
  function skipNoopApprovalsEnabled() {
30308
- return process.env.GITHUB_SKIP_NOOP_APPROVALS?.trim().toLowerCase() !== "false";
30309
+ return parseEnvFlag(process.env.GITHUB_SKIP_NOOP_APPROVALS, true);
30309
30310
  }
30310
30311
  async function fetchPrReviewActionCounts(repo, prNumber, installationId) {
30311
30312
  const [owner, name] = repo.split("/");
@@ -33821,7 +33822,7 @@ async function notifySlack(text) {
33821
33822
  return;
33822
33823
  }
33823
33824
  try {
33824
- const { getSlackApp } = await import("./app-9h14qvr6.js");
33825
+ const { getSlackApp } = await import("./app-6sv8mhzm.js");
33825
33826
  const app = getSlackApp();
33826
33827
  if (!app) {
33827
33828
  console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
@@ -33892,7 +33893,7 @@ async function deleteJiraWebhook(webhookId) {
33892
33893
  console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
33893
33894
  }
33894
33895
  async function overwriteWebhookIds(next) {
33895
- const { getDbClient } = await import("./db-nn0hcmx5.js");
33896
+ const { getDbClient } = await import("./db-6nf1207q.js");
33896
33897
  await getDbClient().transaction(async (tx) => {
33897
33898
  const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
33898
33899
  if (!row) {
@@ -107242,7 +107243,7 @@ async function reloadGlobalConfigsAndIntegrations() {
107242
107243
  return runWithoutRequestAuth(() => reloadGlobalConfigsAndIntegrationsInner());
107243
107244
  }
107244
107245
  async function reloadGlobalConfigsAndIntegrationsInner() {
107245
- const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-smxyk04s.js");
107246
+ const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-x8xbyn1t.js");
107246
107247
  const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
107247
107248
  const updated = await loadGlobalConfigsIntoEnv(true);
107248
107249
  await syncTelemetryEnabled("settings").catch((err) => {
@@ -107258,10 +107259,10 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
107258
107259
  integrations.push("embeddings");
107259
107260
  }
107260
107261
  if (!wasEmbeddingsConfigured && isEmbeddingsConfigured) {
107261
- import("./boot-reembed-6yn53ms9.js").then(({ runBootReembed }) => runBootReembed()).catch((err) => {
107262
+ import("./boot-reembed-y3m0ydzj.js").then(({ runBootReembed }) => runBootReembed()).catch((err) => {
107262
107263
  console.error("[config-reload] memory backfill failed (non-fatal):", err);
107263
107264
  });
107264
- import("./boot-reembed-7fcka4z5.js").then(({ runBootReembedScripts }) => runBootReembedScripts()).catch((err) => {
107265
+ import("./boot-reembed-gvxjs2py.js").then(({ runBootReembedScripts }) => runBootReembedScripts()).catch((err) => {
107265
107266
  console.error("[config-reload] script backfill failed (non-fatal):", err);
107266
107267
  });
107267
107268
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RuntimeProviderKindSchema,
3
3
  init_types
4
- } from "./cli-fpmsqq59.js";
4
+ } from "./cli-836ehxmt.js";
5
5
  import {
6
6
  init_zod
7
7
  } from "./cli-4chz1hye.js";
@@ -4,11 +4,11 @@ import {
4
4
  getActivePricingRow2,
5
5
  insertPricingRow2,
6
6
  init_db3
7
- } from "./cli-d3qqdy4c.js";
7
+ } from "./cli-vcgscaan.js";
8
8
  import {
9
9
  loadModelsDevCache,
10
10
  buildModelsDevSeedRows
11
- } from "./cli-h93c9vb3.js";
11
+ } from "./cli-vq9gqarq.js";
12
12
  import {
13
13
  setRuntimeModelCatalog,
14
14
  init_runtime_model_catalog
@@ -6,7 +6,7 @@ import {
6
6
  getResolvedConfig2,
7
7
  getAllUsers2,
8
8
  init_db3
9
- } from "./cli-d3qqdy4c.js";
9
+ } from "./cli-vcgscaan.js";
10
10
  import {
11
11
  scrubSecrets,
12
12
  init_secret_scrubber
@@ -9,7 +9,7 @@ import {
9
9
  acquireOAuthRefreshLock,
10
10
  releaseOAuthRefreshLock,
11
11
  init_oauth
12
- } from "./cli-d3qqdy4c.js";
12
+ } from "./cli-vcgscaan.js";
13
13
  import {
14
14
  scrubSecrets,
15
15
  registerVolatileSecret,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isEnvFlagEnabled,
3
3
  init_env_flag
4
- } from "./cli-0hyhdkdk.js";
4
+ } from "./cli-cebvbc9t.js";
5
5
  import {
6
6
  __esm
7
7
  } from "./cli-242037k3.js";
@@ -2,14 +2,14 @@ import {
2
2
  getDb2,
3
3
  getDbClient2,
4
4
  init_db3
5
- } from "./cli-d3qqdy4c.js";
5
+ } from "./cli-vcgscaan.js";
6
6
  import {
7
7
  PermissionVerbSchema,
8
8
  init_rbac
9
- } from "./cli-1pa3rz69.js";
9
+ } from "./cli-8vverzf7.js";
10
10
  import {
11
11
  init_env_flag
12
- } from "./cli-0hyhdkdk.js";
12
+ } from "./cli-cebvbc9t.js";
13
13
  import {
14
14
  __esm
15
15
  } from "./cli-242037k3.js";
@@ -5,10 +5,10 @@ import {
5
5
  completeApprovalCancellationNotificationClaim2,
6
6
  releaseApprovalCancellationNotificationClaim2,
7
7
  init_db3
8
- } from "./cli-d3qqdy4c.js";
8
+ } from "./cli-vcgscaan.js";
9
9
  import {
10
10
  getSlackApp2
11
- } from "./cli-nn47d7e8.js";
11
+ } from "./cli-tkf4x6ha.js";
12
12
  import {
13
13
  DEFAULT_MODEL,
14
14
  resolveCredential
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  TERMINAL_TASK_STATUSES,
18
18
  init_types
19
- } from "./cli-fpmsqq59.js";
19
+ } from "./cli-836ehxmt.js";
20
20
  import {
21
21
  selectCredential,
22
22
  init_credentials
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  getAppUrl,
54
54
  init_constants2
55
- } from "./cli-w9g4sz81.js";
55
+ } from "./cli-gf2850q7.js";
56
56
  import {
57
57
  scrubSecrets,
58
58
  init_secret_scrubber
@@ -454,7 +454,7 @@ class HumanInTheLoopExecutor extends BaseExecutor {
454
454
  }
455
455
  if (notification.channel === "slack") {
456
456
  try {
457
- const { getSlackApp } = await import("./app-9h14qvr6.js");
457
+ const { getSlackApp } = await import("./app-6sv8mhzm.js");
458
458
  const slackApp = getSlackApp();
459
459
  if (!slackApp) {
460
460
  console.warn("[HITL] Slack not initialized — cannot send notification");
@@ -5,7 +5,7 @@ import {
5
5
  validateRuntimeTokenTtlHours,
6
6
  init_swarm_config_guard,
7
7
  init_db3
8
- } from "./cli-d3qqdy4c.js";
8
+ } from "./cli-vcgscaan.js";
9
9
  import {
10
10
  unregisterVolatileSecret,
11
11
  init_secret_scrubber
@@ -47,10 +47,10 @@ import {
47
47
  checkDependencies2,
48
48
  emitBuiltInIntegrationConnectedOnce2,
49
49
  init_db3
50
- } from "./cli-d3qqdy4c.js";
50
+ } from "./cli-vcgscaan.js";
51
51
  import {
52
52
  getChannelBlockReason2
53
- } from "./cli-pkht5hap.js";
53
+ } from "./cli-v87dr6e3.js";
54
54
  import {
55
55
  require_dist5,
56
56
  require_axios,
@@ -67,15 +67,15 @@ import {
67
67
  import {
68
68
  isTerminalTaskStatus,
69
69
  init_types
70
- } from "./cli-fpmsqq59.js";
70
+ } from "./cli-836ehxmt.js";
71
71
  import {
72
72
  taskAttachmentDisplayUrl,
73
73
  init_task_attachment_links
74
- } from "./cli-x5mq1fyq.js";
74
+ } from "./cli-74c1wpm0.js";
75
75
  import {
76
76
  getSlackConfiguration,
77
77
  init_config
78
- } from "./cli-2wag8973.js";
78
+ } from "./cli-qeaq3j6t.js";
79
79
  import {
80
80
  init_zod
81
81
  } from "./cli-4chz1hye.js";
@@ -93,11 +93,11 @@ import {
93
93
  import {
94
94
  getAppUrl,
95
95
  init_constants2
96
- } from "./cli-w9g4sz81.js";
96
+ } from "./cli-gf2850q7.js";
97
97
  import {
98
98
  isEnvFlagEnabled,
99
99
  init_env_flag
100
- } from "./cli-0hyhdkdk.js";
100
+ } from "./cli-cebvbc9t.js";
101
101
  import {
102
102
  scrubSecrets,
103
103
  scrubObject,
@@ -6235,7 +6235,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
6235
6235
  return;
6236
6236
  initialized = true;
6237
6237
  try {
6238
- const impl = await import("./otel-impl-fzc57kcq.js");
6238
+ const impl = await import("./otel-impl-e6mn0z13.js");
6239
6239
  await impl.boot(serviceRole, {
6240
6240
  exportConsoleLogs: serviceRole === "api" && isApiLogExportEnabled()
6241
6241
  });
@@ -10080,17 +10080,17 @@ async function initSlackApp2() {
10080
10080
  });
10081
10081
  initialized2 = true;
10082
10082
  app.use(slackInboundOutcomeMiddleware());
10083
- const { registerMessageHandler } = await import("./handlers-dkcarkd0.js");
10084
- const { registerCommandHandler } = await import("./commands-edmdwa4x.js");
10085
- const { registerActionHandlers } = await import("./actions-51nc1gny.js");
10086
- const { registerWorkObjectHandlers } = await import("./work-objects-61w08fwr.js");
10083
+ const { registerMessageHandler } = await import("./handlers-2qjw434w.js");
10084
+ const { registerCommandHandler } = await import("./commands-hd574th6.js");
10085
+ const { registerActionHandlers } = await import("./actions-pn76n32q.js");
10086
+ const { registerWorkObjectHandlers } = await import("./work-objects-9fr0fgtn.js");
10087
10087
  registerMessageHandler(app);
10088
10088
  registerCommandHandler(app);
10089
10089
  registerActionHandlers(app);
10090
10090
  registerWorkObjectHandlers(app);
10091
- const { createAssistant } = await import("./assistant-wv1gz3mt.js");
10091
+ const { createAssistant } = await import("./assistant-sc2tf825.js");
10092
10092
  app.assistant(createAssistant());
10093
- const { isBlockExternalEnabled, scanExternalChannelsOnBoot } = await import("./external-channel-zhvt95n3.js");
10093
+ const { isBlockExternalEnabled, scanExternalChannelsOnBoot } = await import("./external-channel-x01t7ke6.js");
10094
10094
  if (isBlockExternalEnabled()) {
10095
10095
  scanExternalChannelsOnBoot(app.client).catch((error) => {
10096
10096
  console.error("[Slack] External channel boot scan failed:", error);
@@ -10103,7 +10103,7 @@ async function startSlackApp2() {
10103
10103
  await initSlackApp2();
10104
10104
  }
10105
10105
  if (app) {
10106
- const { isSlackRenderV2Enabled } = await import("./render-v2-vb527jwn.js");
10106
+ const { isSlackRenderV2Enabled } = await import("./render-v2-g0306nh1.js");
10107
10107
  if (isSlackRenderV2Enabled())
10108
10108
  await ensureSlackRenderV2Activation2();
10109
10109
  await app.start();
@@ -4,11 +4,11 @@ import {
4
4
  claimKv2,
5
5
  deleteKv2,
6
6
  init_db3
7
- } from "./cli-d3qqdy4c.js";
7
+ } from "./cli-vcgscaan.js";
8
8
  import {
9
9
  isEnvFlagEnabled,
10
10
  init_env_flag
11
- } from "./cli-0hyhdkdk.js";
11
+ } from "./cli-cebvbc9t.js";
12
12
  import {
13
13
  scrubSecrets,
14
14
  init_secret_scrubber
@@ -22,7 +22,7 @@ import {
22
22
  VersionableFieldSchema,
23
23
  SessionCostModelBreakdownSchema,
24
24
  init_types
25
- } from "./cli-fpmsqq59.js";
25
+ } from "./cli-836ehxmt.js";
26
26
  import {
27
27
  generateDefaultClaudeMd2,
28
28
  generateDefaultSoulMd2,
@@ -36,15 +36,15 @@ import {
36
36
  init_identity_field_budget,
37
37
  contentSha256,
38
38
  init_profile_sync
39
- } from "./cli-x5mq1fyq.js";
39
+ } from "./cli-74c1wpm0.js";
40
40
  import {
41
41
  isSlackConfigured,
42
42
  init_config
43
- } from "./cli-2wag8973.js";
43
+ } from "./cli-qeaq3j6t.js";
44
44
  import {
45
45
  isSteeringEnabled2,
46
46
  init_steering_enabled
47
- } from "./cli-mhywgrrz.js";
47
+ } from "./cli-4sydckyj.js";
48
48
  import {
49
49
  deriveProviderFromKeyType,
50
50
  init_credentials
@@ -105,7 +105,7 @@ import {
105
105
  import {
106
106
  init_package,
107
107
  package_default
108
- } from "./cli-shvfedvm.js";
108
+ } from "./cli-1xsraagq.js";
109
109
  import {
110
110
  realtimeBus,
111
111
  init_bus
@@ -113,7 +113,7 @@ import {
113
113
  import {
114
114
  isEnvFlagEnabled,
115
115
  init_env_flag
116
- } from "./cli-0hyhdkdk.js";
116
+ } from "./cli-cebvbc9t.js";
117
117
  import {
118
118
  scrubSecrets,
119
119
  scrubObject,
@@ -4837,7 +4837,7 @@ var init_runtime = __esm(() => {
4837
4837
  // src/telemetry-identity.ts
4838
4838
  async function loadUserRole(userId) {
4839
4839
  try {
4840
- const { getUserGrant } = await import("./rbac-roles-sqefb5hw.js");
4840
+ const { getUserGrant } = await import("./rbac-roles-mb470p4e.js");
4841
4841
  const grant = await getUserGrant(userId);
4842
4842
  const role = grant.grantsAll ? "admin" : "member";
4843
4843
  const user = await getDbClient2().get("SELECT json_extract(metadata, '$.jobFunction') AS jobFunction FROM users WHERE id = ? AND json_valid(metadata)", [userId]);
@@ -19085,7 +19085,7 @@ async function loadSecretRegistry() {
19085
19085
  result.failed += 1;
19086
19086
  }
19087
19087
  try {
19088
- const { loadRuntimeControllerSecrets } = await import("./db-2y0mgstc.js");
19088
+ const { loadRuntimeControllerSecrets } = await import("./db-h06dxp05.js");
19089
19089
  const loaded = await loadRuntimeControllerSecrets();
19090
19090
  result.runtimeController = loaded.count;
19091
19091
  result.failed += loaded.failed;
@@ -20135,13 +20135,13 @@ async function getResolvableDeferralOutcomes2(limit = 50) {
20135
20135
  AND card.ts NOT LIKE 'pending:%'
20136
20136
  UNION
20137
20137
  SELECT chain.card_id, wake.id FROM chain
20138
- JOIN agent_tasks parent ON parent.id = chain.task_id AND parent.deferredAt IS NOT NULL
20139
- JOIN agent_tasks wake ON wake.parentTaskId = parent.id AND wake.taskType = 'deferred'
20138
+ CROSS JOIN agent_tasks parent ON parent.id = chain.task_id AND parent.deferredAt IS NOT NULL
20139
+ CROSS JOIN agent_tasks wake ON wake.parentTaskId = parent.id AND +wake.taskType = 'deferred'
20140
20140
  )
20141
20141
  SELECT card.*, wake.id AS wake_task_id
20142
20142
  FROM chain
20143
- JOIN slack_messages card ON card.id = chain.card_id
20144
- JOIN agent_tasks wake ON wake.id = chain.task_id AND wake.id != card.task_id
20143
+ CROSS JOIN slack_messages card ON card.id = chain.card_id
20144
+ CROSS JOIN agent_tasks wake ON wake.id = chain.task_id AND wake.id != card.task_id
20145
20145
  WHERE card.kind = 'outcome'
20146
20146
  AND card.finalized_at IS NOT NULL
20147
20147
  AND card.deferral_resolved_at IS NULL
@@ -21,6 +21,10 @@ import {
21
21
  getOpenRouterAttributionHeaders,
22
22
  init_openrouter_base_url
23
23
  } from "./cli-dfyv0jdy.js";
24
+ import {
25
+ isSessionSummarySkipped,
26
+ init_env_flag
27
+ } from "./cli-cebvbc9t.js";
24
28
  import {
25
29
  scrubSecrets,
26
30
  init_secret_scrubber
@@ -46,6 +50,7 @@ Current Progress: ${task.progress}` : ""
46
50
  }
47
51
 
48
52
  // src/providers/pi-mono-extension.ts
53
+ init_env_flag();
49
54
  init_openrouter_base_url();
50
55
  init_secret_scrubber();
51
56
  function apiHeaders(config) {
@@ -509,7 +514,7 @@ function createSwarmHooksExtension(config) {
509
514
  await syncIdentityFilesToServer(config);
510
515
  await syncSetupScriptToServer(config);
511
516
  const sessionFile = ctx.sessionManager.getSessionFile?.();
512
- if (!process.env.SKIP_SESSION_SUMMARY) {
517
+ if (!isSessionSummarySkipped()) {
513
518
  await summarizeSessionForPi(config, sessionFile);
514
519
  } else {
515
520
  console.debug("session_summary skipped (pi): SKIP_SESSION_SUMMARY is set");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getDb2,
3
3
  init_db3
4
- } from "./cli-d3qqdy4c.js";
4
+ } from "./cli-vcgscaan.js";
5
5
  import {
6
6
  openAICompatibleProviderIds,
7
7
  withRegistryCatalogSections,
@@ -5,7 +5,7 @@ import {
5
5
  } from "./cli-a5ebc95n.js";
6
6
  import {
7
7
  swarmRuntimeInstanceId
8
- } from "./cli-7a91w22y.js";
8
+ } from "./cli-e8xyjvfc.js";
9
9
  import {
10
10
  detachedProcessGroup,
11
11
  registerProcessGroup,
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_MODEL_TIER_MAP,
23
23
  init_types
24
- } from "./cli-fpmsqq59.js";
24
+ } from "./cli-836ehxmt.js";
25
25
  import {
26
26
  getOpenRouterBaseUrl,
27
27
  getOpenRouterAttributionHeaders,
@@ -22,7 +22,7 @@ import {
22
22
  } from "./cli-pnp2j5zg.js";
23
23
  import {
24
24
  swarmRuntimeInstanceId
25
- } from "./cli-7a91w22y.js";
25
+ } from "./cli-e8xyjvfc.js";
26
26
  import {
27
27
  detachedProcessGroup,
28
28
  registerProcessGroup,
@@ -52,7 +52,7 @@ import {
52
52
  import {
53
53
  DEFAULT_MODEL_TIER_MAP,
54
54
  init_types
55
- } from "./cli-fpmsqq59.js";
55
+ } from "./cli-836ehxmt.js";
56
56
  import {
57
57
  runtimeCatalogModel,
58
58
  init_runtime_model_catalog
@@ -60,11 +60,12 @@ import {
60
60
  import {
61
61
  init_package,
62
62
  package_default
63
- } from "./cli-shvfedvm.js";
63
+ } from "./cli-1xsraagq.js";
64
64
  import {
65
65
  isEnvFlagEnabled,
66
+ isSessionSummarySkipped,
66
67
  init_env_flag
67
- } from "./cli-0hyhdkdk.js";
68
+ } from "./cli-cebvbc9t.js";
68
69
  import {
69
70
  getApiKey,
70
71
  init_api_key
@@ -1693,7 +1694,7 @@ class CodexSession {
1693
1694
  });
1694
1695
  } finally {
1695
1696
  const sessionWasAborted = this.aborted || this.abortController?.signal.aborted === true || this.pendingResult?.exitCode === 130;
1696
- if (process.env.SKIP_SESSION_SUMMARY !== "1" && !sessionWasAborted) {
1697
+ if (!isSessionSummarySkipped() && !sessionWasAborted) {
1697
1698
  try {
1698
1699
  await this.summarizeAtEnd();
1699
1700
  } catch (err) {