@desplega.ai/agent-swarm 1.119.0 → 1.119.2

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 (78) hide show
  1. package/README.md +7 -7
  2. package/dist/{actions-cdhadphb.js → actions-6fvp3prn.js} +7 -7
  3. package/dist/{app-w2067dt3.js → app-spr18zx3.js} +3 -3
  4. package/dist/{assistant-cb02pb41.js → assistant-v625bfkb.js} +10 -10
  5. package/dist/{boot-reembed-b18pndap.js → boot-reembed-fk1zawyh.js} +4 -4
  6. package/dist/{boot-reembed-p00s3r7a.js → boot-reembed-knw7ta83.js} +3 -3
  7. package/dist/{boot-scrub-logs-b9ym4xx3.js → boot-scrub-logs-rqq0drek.js} +2 -2
  8. package/dist/{cli-9ed8efw3.js → cli-0qhghy2e.js} +1 -1
  9. package/dist/{cli-azvm6fss.js → cli-22xdkf0e.js} +22 -3
  10. package/dist/{cli-qf35kzka.js → cli-2pv9mf2n.js} +1 -1
  11. package/dist/{cli-x1m2hp0q.js → cli-3w3ay9kf.js} +11 -11
  12. package/dist/{cli-h1gg78hv.js → cli-5ne5v3gy.js} +37 -35
  13. package/dist/{cli-06xdf1gz.js → cli-62c45z8p.js} +1 -1
  14. package/dist/{cli-15m4y05s.js → cli-6h60nrdw.js} +5 -5
  15. package/dist/cli-95kferzh.js +439 -0
  16. package/dist/{cli-hyn69s0c.js → cli-bcev4a56.js} +1 -1
  17. package/dist/{cli-bx96sw2z.js → cli-befewsnp.js} +2 -2
  18. package/dist/{cli-qw9seygs.js → cli-cbz05wnr.js} +2 -2
  19. package/dist/{cli-9kbww4vb.js → cli-cjdjcx1h.js} +1 -1
  20. package/dist/{cli-zcra7f1h.js → cli-dd7eaykj.js} +2 -2
  21. package/dist/{cli-wh91zby6.js → cli-dh9eb7tt.js} +6 -6
  22. package/dist/{cli-qcm02dkk.js → cli-ed4s7b1n.js} +1 -1
  23. package/dist/{cli-mxennm5t.js → cli-g617qdzb.js} +2 -2
  24. package/dist/{cli-e7306swv.js → cli-hcpm1e90.js} +6 -6
  25. package/dist/{cli-j12px91x.js → cli-jkkjjdyn.js} +1 -1
  26. package/dist/{cli-06d436hx.js → cli-k2yqtwjk.js} +7 -7
  27. package/dist/{cli-dqxwy0td.js → cli-kb6wj6mf.js} +1 -1
  28. package/dist/{cli-vt51szy9.js → cli-n1rag5eq.js} +1 -1
  29. package/dist/{cli-txxvn1zb.js → cli-qfp2c1qs.js} +1 -1
  30. package/dist/{cli-q7eev82n.js → cli-vvty0cfn.js} +3 -3
  31. package/dist/{cli-chs2zh28.js → cli-vxesz4hy.js} +4 -4
  32. package/dist/{cli-jy7w6z37.js → cli-wen3f7km.js} +12 -12
  33. package/dist/{cli-vfq38b3e.js → cli-xem4ndhx.js} +1 -1
  34. package/dist/cli.js +13 -13
  35. package/dist/{codex-adapter-de3w0nch.js → codex-adapter-efskwfc4.js} +4 -4
  36. package/dist/{codex-session-runner-bnw8cysk.js → codex-session-runner-n7ad0jdv.js} +4 -4
  37. package/dist/{commands-rn6frj4c.js → commands-2nyhjm5e.js} +2 -2
  38. package/dist/{db-kmemzvqt.js → db-psx972cv.js} +2 -2
  39. package/dist/{handlers-mppa5zb3.js → handlers-drzntj65.js} +10 -10
  40. package/dist/{hook-ej6457r1.js → hook-sf4wxq2j.js} +3 -3
  41. package/dist/{http-wv092d70.js → http-kbavqgsx.js} +101 -495
  42. package/dist/{index-q1x8ttq6.js → index-1dcn9zk6.js} +6 -6
  43. package/dist/{index-bc90csfq.js → index-a2wmwh7d.js} +9 -9
  44. package/dist/{index-adgr531h.js → index-dnajx229.js} +10 -10
  45. package/dist/{index-n6xq6x5d.js → index-fjcjdmv1.js} +8 -8
  46. package/dist/{keepalive-yjx8f7cq.js → keepalive-t3hw5tb4.js} +4 -4
  47. package/dist/{lead-r01f3pft.js → lead-keecxwds.js} +25 -25
  48. package/dist/{maintenance-tr5vvp93.js → maintenance-h2h5dbf4.js} +4 -4
  49. package/dist/{oauth-refresh-sweep-s2jrst63.js → oauth-refresh-sweep-41nw0tkp.js} +3 -3
  50. package/dist/{onboard-czarh0tp.js → onboard-de1wkp0v.js} +2 -2
  51. package/dist/{otel-impl-3e0t0kga.js → otel-impl-251jnpdd.js} +1 -1
  52. package/dist/{pi-mono-adapter-05sck1ds.js → pi-mono-adapter-erghwha0.js} +7 -7
  53. package/dist/{pricing-refresh-0dvbj3rq.js → pricing-refresh-0n50xvtx.js} +4 -4
  54. package/dist/{rbac-roles-1q4v9s52.js → rbac-roles-2m5b327a.js} +3 -3
  55. package/dist/{rbac-roles-thnb7h7j.js → rbac-roles-z10gz1j8.js} +2 -2
  56. package/dist/registry-wejfsj31.js +13 -0
  57. package/dist/{seed-pricing-76xbxghj.js → seed-pricing-vetpp3cy.js} +3 -3
  58. package/dist/{setup-b134pfqr.js → setup-zvayft41.js} +2 -2
  59. package/dist/{worker-e1ssyv77.js → worker-feez5q1v.js} +25 -25
  60. package/openapi.json +53 -1
  61. package/package.json +1 -1
  62. package/src/be/seed/agent-fs-provision.ts +41 -1
  63. package/src/fs/registry.ts +13 -1
  64. package/src/http/core.ts +8 -0
  65. package/src/http/fs.ts +41 -1
  66. package/src/tests/agent-fs-provision-seeder.test.ts +40 -0
  67. package/src/tests/preload.ts +21 -0
  68. package/src/tests/prompt-template-resolver.test.ts +6 -0
  69. package/src/tests/prompt-template-session.test.ts +6 -0
  70. package/src/tests/template-registry-helpers.ts +29 -0
  71. package/dist/{azure-openai-responses-gm1ejtmn.js → azure-openai-responses-f57n5qy7.js} +4 -4
  72. package/dist/{claude-managed-setup-cm05wtek.js → claude-managed-setup-eac00cqn.js} +1 -1
  73. package/dist/{cli-6b4wwmm8.js → cli-0qy7bk86.js} +3 -3
  74. package/dist/{google-vertex-8bs2pzgn.js → google-vertex-9hhq68sw.js} +3 -3
  75. package/dist/{mistral-conversations-7gqnz2wt.js → mistral-conversations-tn4sj5qv.js} +3 -3
  76. package/dist/{openai-codex-responses-3nkvje79.js → openai-codex-responses-bex0bpn6.js} +2 -2
  77. package/dist/{openai-completions-0asftkwg.js → openai-completions-gygw5cxt.js} +8 -8
  78. package/dist/{openai-responses-pmatek45.js → openai-responses-8c0dgmty.js} +7 -7
package/README.md CHANGED
@@ -273,13 +273,13 @@ Join our [Discord](https://discord.gg/KZgfyyDVZa) if you have questions or want
273
273
 
274
274
  ## Star History
275
275
 
276
- <a href="https://star-history.com/#desplega-ai/agent-swarm&Date">
277
- <picture>
278
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=desplega-ai/agent-swarm&type=Date&theme=dark" />
279
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=desplega-ai/agent-swarm&type=Date" />
280
- <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=desplega-ai/agent-swarm&type=Date" />
281
- </picture>
282
- </a>
276
+ <picture>
277
+ <source media="(prefers-color-scheme: dark)" srcset="./assets/star-history-dark.svg" />
278
+ <source media="(prefers-color-scheme: light)" srcset="./assets/star-history-light.svg" />
279
+ <img alt="Star History Chart" src="./assets/star-history-light.svg" />
280
+ </picture>
281
+
282
+ The charts are generated from timestamped GitHub stargazer data and refreshed weekly through a reviewable pull request.
283
283
 
284
284
  ## License
285
285
 
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-zcra7f1h.js";
4
- import"./cli-txxvn1zb.js";
3
+ } from "./cli-dd7eaykj.js";
4
+ import"./cli-qfp2c1qs.js";
5
+ import {
6
+ createTaskWithSiblingAwareness
7
+ } from "./cli-2pv9mf2n.js";
5
8
  import {
6
9
  buildCancelledBlocks,
7
10
  getTaskLink
8
11
  } from "./cli-ma04faw5.js";
9
12
  import"./cli-wspgs9bt.js";
10
- import {
11
- createTaskWithSiblingAwareness
12
- } from "./cli-qf35kzka.js";
13
13
  import"./cli-dh55d5fg.js";
14
14
  import {
15
15
  cancelTask,
@@ -19,11 +19,11 @@ import {
19
19
  init_context_key,
20
20
  init_db,
21
21
  slackContextKey
22
- } from "./cli-j12px91x.js";
22
+ } from "./cli-jkkjjdyn.js";
23
23
  import"./cli-z2zcxes1.js";
24
24
  import"./cli-bw80ck94.js";
25
25
  import"./cli-xz9aq0rf.js";
26
- import"./cli-9kbww4vb.js";
26
+ import"./cli-cjdjcx1h.js";
27
27
  import"./cli-4j2mrzag.js";
28
28
  import"./cli-p9swy5t3.js";
29
29
 
@@ -3,17 +3,17 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-15m4y05s.js";
6
+ } from "./cli-6h60nrdw.js";
7
7
  import"./cli-rkndnn90.js";
8
8
  import"./cli-b0p7rfnd.js";
9
9
  import"./cli-ma04faw5.js";
10
10
  import"./cli-wspgs9bt.js";
11
11
  import"./cli-dh55d5fg.js";
12
- import"./cli-j12px91x.js";
12
+ import"./cli-jkkjjdyn.js";
13
13
  import"./cli-z2zcxes1.js";
14
14
  import"./cli-bw80ck94.js";
15
15
  import"./cli-xz9aq0rf.js";
16
- import"./cli-9kbww4vb.js";
16
+ import"./cli-cjdjcx1h.js";
17
17
  import"./cli-4j2mrzag.js";
18
18
  import"./cli-e15jhafb.js";
19
19
  import"./cli-7wmybrt5.js";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  bufferThreadMessage,
3
3
  wasEventSeen
4
- } from "./cli-06d436hx.js";
4
+ } from "./cli-k2yqtwjk.js";
5
5
  import {
6
6
  hasOtherUserMention
7
- } from "./cli-06xdf1gz.js";
7
+ } from "./cli-62c45z8p.js";
8
8
  import {
9
9
  require_dist
10
- } from "./cli-15m4y05s.js";
10
+ } from "./cli-6h60nrdw.js";
11
11
  import"./cli-rkndnn90.js";
12
12
  import"./cli-b0p7rfnd.js";
13
13
  import {
14
14
  resolveSlackUserId,
15
15
  rewriteSlackMentions
16
- } from "./cli-zcra7f1h.js";
17
- import"./cli-txxvn1zb.js";
18
- import"./cli-ma04faw5.js";
19
- import"./cli-wspgs9bt.js";
16
+ } from "./cli-dd7eaykj.js";
17
+ import"./cli-qfp2c1qs.js";
20
18
  import {
21
19
  createTaskWithSiblingAwareness
22
- } from "./cli-qf35kzka.js";
20
+ } from "./cli-2pv9mf2n.js";
21
+ import"./cli-ma04faw5.js";
22
+ import"./cli-wspgs9bt.js";
23
23
  import"./cli-dh55d5fg.js";
24
24
  import {
25
25
  getAgentWorkingOnThread,
@@ -30,11 +30,11 @@ import {
30
30
  init_resolver,
31
31
  resolveTemplate,
32
32
  slackContextKey
33
- } from "./cli-j12px91x.js";
33
+ } from "./cli-jkkjjdyn.js";
34
34
  import"./cli-z2zcxes1.js";
35
35
  import"./cli-bw80ck94.js";
36
36
  import"./cli-xz9aq0rf.js";
37
- import"./cli-9kbww4vb.js";
37
+ import"./cli-cjdjcx1h.js";
38
38
  import"./cli-4j2mrzag.js";
39
39
  import"./cli-e15jhafb.js";
40
40
  import"./cli-7wmybrt5.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-qw9seygs.js";
5
- import"./cli-qcm02dkk.js";
4
+ } from "./cli-cbz05wnr.js";
5
+ import"./cli-ed4s7b1n.js";
6
6
  import"./cli-q25ejbyn.js";
7
7
  import {
8
8
  getDb,
9
9
  init_db
10
- } from "./cli-j12px91x.js";
10
+ } from "./cli-jkkjjdyn.js";
11
11
  import"./cli-z2zcxes1.js";
12
12
  import"./cli-bw80ck94.js";
13
13
  import"./cli-xz9aq0rf.js";
14
- import"./cli-9kbww4vb.js";
14
+ import"./cli-cjdjcx1h.js";
15
15
  import"./cli-4j2mrzag.js";
16
16
  import"./cli-p9swy5t3.js";
17
17
 
@@ -3,16 +3,16 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-qcm02dkk.js";
6
+ } from "./cli-ed4s7b1n.js";
7
7
  import"./cli-q25ejbyn.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-j12px91x.js";
11
+ } from "./cli-jkkjjdyn.js";
12
12
  import"./cli-z2zcxes1.js";
13
13
  import"./cli-bw80ck94.js";
14
14
  import"./cli-xz9aq0rf.js";
15
- import"./cli-9kbww4vb.js";
15
+ import"./cli-cjdjcx1h.js";
16
16
  import"./cli-4j2mrzag.js";
17
17
  import"./cli-p9swy5t3.js";
18
18
 
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-j12px91x.js";
4
+ } from "./cli-jkkjjdyn.js";
5
5
  import"./cli-z2zcxes1.js";
6
6
  import"./cli-bw80ck94.js";
7
7
  import"./cli-xz9aq0rf.js";
8
- import"./cli-9kbww4vb.js";
8
+ import"./cli-cjdjcx1h.js";
9
9
  import {
10
10
  init_secret_scrubber,
11
11
  scrubSecrets
@@ -18,7 +18,7 @@ import {
18
18
  init_templates1 as init_templates,
19
19
  normalizeDateRequired,
20
20
  resolveTemplate
21
- } from "./cli-j12px91x.js";
21
+ } from "./cli-jkkjjdyn.js";
22
22
 
23
23
  // src/be/db-queries/tracker.ts
24
24
  init_date_utils();
@@ -2,7 +2,7 @@ import {
2
2
  getScriptApiTypes,
3
3
  getScriptMcpTypes,
4
4
  require_typescript
5
- } from "./cli-bx96sw2z.js";
5
+ } from "./cli-befewsnp.js";
6
6
  import {
7
7
  deleteSwarmConfigByKey,
8
8
  getAgentById,
@@ -11,12 +11,13 @@ import {
11
11
  getSwarmConfigs,
12
12
  init_db,
13
13
  upsertSwarmConfig
14
- } from "./cli-j12px91x.js";
14
+ } from "./cli-jkkjjdyn.js";
15
15
  import {
16
16
  init_secret_scrubber,
17
17
  scrubSecrets
18
18
  } from "./cli-4j2mrzag.js";
19
19
  import {
20
+ __require,
20
21
  __toESM
21
22
  } from "./cli-p9swy5t3.js";
22
23
 
@@ -121,8 +122,26 @@ async function ensureAgentFsSharedProvisioning(options) {
121
122
  process.env[key] = value;
122
123
  upsertSwarmConfig({ scope: "global", key, value, isSecret: false, description });
123
124
  }
125
+ process.env.AGENT_FS_API_URL = apiUrl;
126
+ const { resetFileStorageProvider } = await import("./registry-wejfsj31.js");
127
+ resetFileStorageProvider();
124
128
  return { apiUrl, apiKey, orgId, driveId, authHeaders };
125
129
  }
130
+ async function inviteEmailToSharedOrg(email, role) {
131
+ const shared = await ensureAgentFsSharedProvisioning();
132
+ const currentRoles = await getCurrentOrgMemberRoles(shared.apiUrl, shared.authHeaders, shared.orgId);
133
+ const currentRole = currentRoles.get(email.trim().toLowerCase());
134
+ if (currentRole && roleRank(currentRole) >= roleRank(role)) {
135
+ return { orgId: shared.orgId, invited: false };
136
+ }
137
+ await agentFsRequest(shared.apiUrl, `/orgs/${encodeURIComponent(shared.orgId)}/members/invite`, {
138
+ method: "POST",
139
+ headers: shared.authHeaders,
140
+ body: { email: email.trim(), role },
141
+ allowConflict: true
142
+ });
143
+ return { orgId: shared.orgId, invited: true };
144
+ }
126
145
  async function ensureAgentFsCredentialsForAgent(agentId) {
127
146
  const apiUrl = resolveApiUrl();
128
147
  if (!apiUrl)
@@ -1203,4 +1222,4 @@ function extractScriptSignature(source) {
1203
1222
  return FALLBACK_SIGNATURE;
1204
1223
  }
1205
1224
 
1206
- export { agentFsProvisionSeeder, ensureAgentFsCredentialsForAgent, extractArgsJsonSchema, scriptSdkTypesWithGeneratedApis, scriptStdlibTypesWithGeneratedApis, typecheckScript, extractScriptSignature };
1225
+ export { agentFsProvisionSeeder, inviteEmailToSharedOrg, ensureAgentFsCredentialsForAgent, extractArgsJsonSchema, scriptSdkTypesWithGeneratedApis, scriptStdlibTypesWithGeneratedApis, typecheckScript, extractScriptSignature };
@@ -3,7 +3,7 @@ import {
3
3
  getAgentById,
4
4
  getInProgressTasksByContextKey,
5
5
  init_db
6
- } from "./cli-j12px91x.js";
6
+ } from "./cli-jkkjjdyn.js";
7
7
 
8
8
  // src/tasks/sibling-awareness.ts
9
9
  init_db();
@@ -1,3 +1,6 @@
1
+ import {
2
+ checkClaudeManagedCredentials
3
+ } from "./cli-sznberje.js";
1
4
  import {
2
5
  checkDevinCredentials
3
6
  } from "./cli-tyfxrrdd.js";
@@ -6,10 +9,7 @@ import {
6
9
  } from "./cli-bc89my0z.js";
7
10
  import {
8
11
  checkCodexCredentials
9
- } from "./cli-wh91zby6.js";
10
- import {
11
- checkClaudeManagedCredentials
12
- } from "./cli-sznberje.js";
12
+ } from "./cli-dh9eb7tt.js";
13
13
  import {
14
14
  initOtel,
15
15
  injectTraceContext,
@@ -19,7 +19,7 @@ import {
19
19
  withSpan,
20
20
  withSpanContext,
21
21
  writeSkillsToFilesystem
22
- } from "./cli-h1gg78hv.js";
22
+ } from "./cli-5ne5v3gy.js";
23
23
  import {
24
24
  authJsonToCredentialSelection,
25
25
  credentialsToAuthJson,
@@ -41,10 +41,10 @@ import {
41
41
  import {
42
42
  ensure,
43
43
  initialize
44
- } from "./cli-chs2zh28.js";
44
+ } from "./cli-vxesz4hy.js";
45
45
  import {
46
46
  validateJsonSchema
47
- } from "./cli-jy7w6z37.js";
47
+ } from "./cli-wen3f7km.js";
48
48
  import {
49
49
  getApiKey
50
50
  } from "./cli-f14fvzag.js";
@@ -80,7 +80,7 @@ import {
80
80
  resolveTaskModelSelection,
81
81
  resolveTemplateAsync,
82
82
  telemetry
83
- } from "./cli-j12px91x.js";
83
+ } from "./cli-jkkjjdyn.js";
84
84
  import {
85
85
  init_credentials,
86
86
  resolveCredentialPools
@@ -453,11 +453,11 @@ async function createProviderAdapter(provider) {
453
453
  return new ClaudeAdapter;
454
454
  }
455
455
  case "pi": {
456
- const { PiMonoAdapter } = await import("./pi-mono-adapter-05sck1ds.js");
456
+ const { PiMonoAdapter } = await import("./pi-mono-adapter-erghwha0.js");
457
457
  return new PiMonoAdapter;
458
458
  }
459
459
  case "codex": {
460
- const { CodexAdapter } = await import("./codex-adapter-de3w0nch.js");
460
+ const { CodexAdapter } = await import("./codex-adapter-efskwfc4.js");
461
461
  return new CodexAdapter;
462
462
  }
463
463
  case "claude-managed": {
@@ -1117,7 +1117,7 @@ async function checkProviderCredentials(provider, env, opts) {
1117
1117
  case "opencode":
1118
1118
  return checkOpencodeCredentials(env, opts);
1119
1119
  case "pi": {
1120
- const { checkPiMonoCredentials } = await import("./pi-mono-adapter-05sck1ds.js");
1120
+ const { checkPiMonoCredentials } = await import("./pi-mono-adapter-erghwha0.js");
1121
1121
  return checkPiMonoCredentials(env, opts);
1122
1122
  }
1123
1123
  default:
@@ -8,16 +8,22 @@ import {
8
8
  REFERENCES_SOURCE_MAX_LENGTH,
9
9
  sanitizeReferencesSource
10
10
  } from "./cli-ftyf58xj.js";
11
+ import {
12
+ calculateNextRun,
13
+ ensure,
14
+ require_dist,
15
+ runScheduleNow
16
+ } from "./cli-vxesz4hy.js";
11
17
  import {
12
18
  startPricingRefreshLoop
13
- } from "./cli-mxennm5t.js";
19
+ } from "./cli-g617qdzb.js";
14
20
  import {
15
21
  seedPricingFromModelsDev
16
- } from "./cli-vfq38b3e.js";
22
+ } from "./cli-xem4ndhx.js";
17
23
  import {
18
24
  ensureRbacSeedsSynced,
19
25
  getUserGrant
20
- } from "./cli-hyn69s0c.js";
26
+ } from "./cli-bcev4a56.js";
21
27
  import {
22
28
  can,
23
29
  decideAdmission,
@@ -37,17 +43,7 @@ import {
37
43
  repointTrackerSyncBySwarmId,
38
44
  updateTrackerSync,
39
45
  updateTrackerSyncSwarmId
40
- } from "./cli-9ed8efw3.js";
41
- import {
42
- ZodFirstPartyTypeKind,
43
- objectType
44
- } from "./cli-fad8m16k.js";
45
- import {
46
- calculateNextRun,
47
- ensure,
48
- require_dist,
49
- runScheduleNow
50
- } from "./cli-chs2zh28.js";
46
+ } from "./cli-0qhghy2e.js";
51
47
  import {
52
48
  TriggerSchemaError,
53
49
  applyDefinitionPatch,
@@ -61,10 +57,18 @@ import {
61
57
  startWorkflowExecution,
62
58
  validateDefinition,
63
59
  validateJsonSchema
64
- } from "./cli-jy7w6z37.js";
60
+ } from "./cli-wen3f7km.js";
65
61
  import {
66
62
  getApiKey
67
63
  } from "./cli-f14fvzag.js";
64
+ import {
65
+ buildAuthorizationUrl,
66
+ ensureToken,
67
+ ensureTokenOrThrow,
68
+ getOAuthApp,
69
+ getOAuthTokens,
70
+ upsertOAuthApp
71
+ } from "./cli-kb6wj6mf.js";
68
72
  import {
69
73
  CREDENTIAL_BINDINGS_CONFIG_KEY,
70
74
  CredentialBindingSchema,
@@ -81,7 +85,7 @@ import {
81
85
  setScriptConnectionEnabled,
82
86
  upsertCredentialBinding,
83
87
  upsertScriptConnection
84
- } from "./cli-bx96sw2z.js";
88
+ } from "./cli-befewsnp.js";
85
89
  import {
86
90
  CANDIDATE_SET_MULTIPLIER,
87
91
  computeScore,
@@ -93,25 +97,21 @@ import {
93
97
  isGraphExpansionEnabled,
94
98
  rerank,
95
99
  rowToCandidate
96
- } from "./cli-qcm02dkk.js";
100
+ } from "./cli-ed4s7b1n.js";
97
101
  import {
98
- buildAuthorizationUrl,
99
- ensureToken,
100
- ensureTokenOrThrow,
101
- getOAuthApp,
102
- getOAuthTokens,
103
- upsertOAuthApp
104
- } from "./cli-dqxwy0td.js";
102
+ ZodFirstPartyTypeKind,
103
+ objectType
104
+ } from "./cli-fad8m16k.js";
105
105
  import {
106
106
  createAdditiveBuffer,
107
107
  extractSlackMessageText,
108
108
  parseSlackTs
109
- } from "./cli-06xdf1gz.js";
109
+ } from "./cli-62c45z8p.js";
110
110
  import {
111
111
  getSlackApp,
112
112
  startSlackApp,
113
113
  stopSlackApp
114
- } from "./cli-15m4y05s.js";
114
+ } from "./cli-6h60nrdw.js";
115
115
  import {
116
116
  findOrCreateUserByEmail,
117
117
  findUserByExternalId,
@@ -127,13 +127,13 @@ import {
127
127
  resolveIdentityByEmail,
128
128
  resolveUserByToken,
129
129
  unlinkIdentity
130
- } from "./cli-txxvn1zb.js";
130
+ } from "./cli-qfp2c1qs.js";
131
+ import {
132
+ createTaskWithSiblingAwareness
133
+ } from "./cli-2pv9mf2n.js";
131
134
  import {
132
135
  markdownToSlack
133
136
  } from "./cli-ma04faw5.js";
134
- import {
135
- createTaskWithSiblingAwareness
136
- } from "./cli-qf35kzka.js";
137
137
  import {
138
138
  getAppUrl,
139
139
  getMcpBaseUrl,
@@ -377,7 +377,7 @@ import {
377
377
  upsertService,
378
378
  upsertSwarmConfig,
379
379
  validateConfigValue
380
- } from "./cli-j12px91x.js";
380
+ } from "./cli-jkkjjdyn.js";
381
381
  import {
382
382
  init_zod
383
383
  } from "./cli-bw80ck94.js";
@@ -422,7 +422,7 @@ import {
422
422
  import {
423
423
  init_package,
424
424
  package_default
425
- } from "./cli-9kbww4vb.js";
425
+ } from "./cli-cjdjcx1h.js";
426
426
  import {
427
427
  init_secret_scrubber,
428
428
  refreshSecretScrubberCache,
@@ -19710,7 +19710,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
19710
19710
  return;
19711
19711
  initialized2 = true;
19712
19712
  try {
19713
- const impl = await import("./otel-impl-3e0t0kga.js");
19713
+ const impl = await import("./otel-impl-251jnpdd.js");
19714
19714
  await impl.boot(serviceRole);
19715
19715
  realWithSpan = impl.withSpan;
19716
19716
  realStartSpan = impl.startSpan;
@@ -34997,7 +34997,7 @@ async function notifySlack(text) {
34997
34997
  return;
34998
34998
  }
34999
34999
  try {
35000
- const { getSlackApp: getSlackApp2 } = await import("./app-w2067dt3.js");
35000
+ const { getSlackApp: getSlackApp2 } = await import("./app-spr18zx3.js");
35001
35001
  const app = getSlackApp2();
35002
35002
  if (!app) {
35003
35003
  console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
@@ -35066,7 +35066,7 @@ async function deleteJiraWebhook(webhookId) {
35066
35066
  console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
35067
35067
  }
35068
35068
  async function overwriteWebhookIds(next) {
35069
- const { getDb: getDb2 } = await import("./db-kmemzvqt.js");
35069
+ const { getDb: getDb2 } = await import("./db-psx972cv.js");
35070
35070
  const db = getDb2();
35071
35071
  const txn = db.transaction(() => {
35072
35072
  const row = db.query("SELECT metadata FROM oauth_apps WHERE provider = 'jira'").get();
@@ -109263,6 +109263,8 @@ function loadGlobalConfigsIntoEnv(override = false) {
109263
109263
  }
109264
109264
  async function reloadGlobalConfigsAndIntegrations() {
109265
109265
  const updated = loadGlobalConfigsIntoEnv(true);
109266
+ const { resetFileStorageProvider } = await import("./registry-wejfsj31.js");
109267
+ resetFileStorageProvider();
109266
109268
  const integrations = [];
109267
109269
  resetAgentMail();
109268
109270
  if (initAgentMail())
@@ -3,7 +3,7 @@ import {
3
3
  getAgentWorkingOnThread,
4
4
  getAllAgents,
5
5
  init_db
6
- } from "./cli-j12px91x.js";
6
+ } from "./cli-jkkjjdyn.js";
7
7
 
8
8
  // src/slack/router.ts
9
9
  init_db();
@@ -27,7 +27,7 @@ import {
27
27
  getTaskById,
28
28
  init_db,
29
29
  setSlackMessageTracking
30
- } from "./cli-j12px91x.js";
30
+ } from "./cli-jkkjjdyn.js";
31
31
  import {
32
32
  require_receiver,
33
33
  require_sender,
@@ -55073,13 +55073,13 @@ async function initSlackApp() {
55073
55073
  socketMode: true,
55074
55074
  logLevel: import_bolt.LogLevel.DEBUG
55075
55075
  });
55076
- const { registerMessageHandler } = await import("./handlers-mppa5zb3.js");
55077
- const { registerCommandHandler } = await import("./commands-rn6frj4c.js");
55078
- const { registerActionHandlers } = await import("./actions-cdhadphb.js");
55076
+ const { registerMessageHandler } = await import("./handlers-drzntj65.js");
55077
+ const { registerCommandHandler } = await import("./commands-2nyhjm5e.js");
55078
+ const { registerActionHandlers } = await import("./actions-6fvp3prn.js");
55079
55079
  registerMessageHandler(app);
55080
55080
  registerCommandHandler(app);
55081
55081
  registerActionHandlers(app);
55082
- const { createAssistant } = await import("./assistant-cb02pb41.js");
55082
+ const { createAssistant } = await import("./assistant-v625bfkb.js");
55083
55083
  app.assistant(createAssistant());
55084
55084
  return app;
55085
55085
  }