opencode-swarm 7.162.0 → 7.163.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 (88) hide show
  1. package/dist/background/pr-review-contract.d.ts +1 -24
  2. package/dist/cli/authorization-vstrh7ra.js +23 -0
  3. package/dist/cli/{coder-settlement-s8cskxk7.js → coder-settlement-g2g5kkv5.js} +10 -10
  4. package/dist/cli/{config-doctor-636h188h.js → config-doctor-p16xr78z.js} +2 -2
  5. package/dist/cli/{core-h3hsczyq.js → core-g088v0zt.js} +1 -1
  6. package/dist/cli/{curation-policy-ayq5kmnf.js → curation-policy-j12j2gvc.js} +6 -6
  7. package/dist/cli/{curator-p0dwpn2x.js → curator-3m8a8qsn.js} +33 -31
  8. package/dist/cli/curator-llm-factory-p00hks4v.js +69 -0
  9. package/dist/cli/{evidence-summary-service-hvbqyb4g.js → evidence-summary-service-4ghqakhx.js} +13 -13
  10. package/dist/cli/{gate-evidence-dhgmnsh0.js → gate-evidence-4v8apasx.js} +6 -6
  11. package/dist/cli/guardrail-explain-smqenqtm.js +70 -0
  12. package/dist/cli/{guardrail-log-qc7rfhv2.js → guardrail-log-mmh4b4k4.js} +7 -7
  13. package/dist/cli/{guardrail-reset-cxkf5h0x.js → guardrail-reset-zge5hg4p.js} +33 -31
  14. package/dist/cli/{hive-promoter-ppbrv8m1.js → hive-promoter-vxez5s7m.js} +33 -31
  15. package/dist/cli/{index-jw7z3gem.js → index-0103w5pf.js} +2 -2
  16. package/dist/cli/{index-fx3em0dr.js → index-2zgjcmmc.js} +139 -45
  17. package/dist/cli/{index-qw893zqp.js → index-3ab9tczn.js} +8 -8
  18. package/dist/cli/{index-q87ht62k.js → index-3b762978.js} +5 -2
  19. package/dist/cli/{index-5wq0dd30.js → index-3rjxbe1p.js} +2 -2
  20. package/dist/cli/{index-z4n60b0a.js → index-453tzvkg.js} +1 -1
  21. package/dist/cli/{index-pde4zn7j.js → index-4t68xs0p.js} +3 -3
  22. package/dist/cli/{index-sjkxrf06.js → index-4xggfhge.js} +4 -4
  23. package/dist/cli/{index-8vwe2qjh.js → index-5hgn302x.js} +9 -9
  24. package/dist/cli/{index-bdmg6yvj.js → index-7n9jznv0.js} +4 -4
  25. package/dist/cli/{index-2rhs7j4r.js → index-7wb2v7jg.js} +2152 -2622
  26. package/dist/cli/{index-kk9yk7an.js → index-8ada7ag7.js} +2 -2
  27. package/dist/cli/{index-nqbqkx4c.js → index-9crtmnqg.js} +1 -1
  28. package/dist/cli/{index-3gwkmq53.js → index-axx3t3k7.js} +2 -2
  29. package/dist/cli/{index-80pmq6q2.js → index-cqgpvx2d.js} +2 -2
  30. package/dist/cli/{index-vcv9m2q5.js → index-eqkdjfqa.js} +4 -4
  31. package/dist/cli/{index-77syzssw.js → index-f7t5fn4z.js} +4 -4
  32. package/dist/cli/{index-9wrmzsnk.js → index-fckfgptr.js} +1 -1
  33. package/dist/cli/{index-0h63swrc.js → index-g4bvsapf.js} +5 -5
  34. package/dist/cli/{index-ydbd41sv.js → index-hm239n1p.js} +1 -1
  35. package/dist/cli/{index-qn4w0gar.js → index-m4nhy4fp.js} +1 -1
  36. package/dist/cli/{index-2ze7yqm8.js → index-m7yt3xmk.js} +1 -1
  37. package/dist/cli/index-mmngnxev.js +883 -0
  38. package/dist/cli/{index-7z9gyts0.js → index-n2mhyect.js} +1 -1
  39. package/dist/cli/{index-db520vnn.js → index-n67vx5zw.js} +2 -2
  40. package/dist/cli/{index-25xvw7hq.js → index-nwa7ctyf.js} +35 -33
  41. package/dist/cli/{index-4wmpv2kn.js → index-ptsmms01.js} +6 -6
  42. package/dist/cli/{index-mfewnd7j.js → index-pykfqsk0.js} +5 -5
  43. package/dist/cli/{index-r7rn6e5f.js → index-qy2rm1f6.js} +6 -6
  44. package/dist/cli/{index-tnj464kq.js → index-rqh25ns3.js} +1 -1
  45. package/dist/cli/{index-tjaawnws.js → index-s8c6f9rr.js} +6 -4
  46. package/dist/cli/{index-vkaqrrsc.js → index-t4hs3qk6.js} +15 -644
  47. package/dist/cli/{index-1wapt173.js → index-w0yn4rmh.js} +3 -3
  48. package/dist/cli/{index-1mbwgw4p.js → index-w1mc7gcm.js} +2 -2
  49. package/dist/cli/index-w7ekntej.js +643 -0
  50. package/dist/cli/{index-acnwj4pc.js → index-xyhmt813.js} +1 -1
  51. package/dist/cli/{index-6w468bjy.js → index-zgz81a8x.js} +1 -1
  52. package/dist/cli/index.js +33 -31
  53. package/dist/cli/{knowledge-escalator-nyeg4ndw.js → knowledge-escalator-91d1n291.js} +12 -12
  54. package/dist/cli/{knowledge-events-z7smbnff.js → knowledge-events-xrd9es3p.js} +10 -10
  55. package/dist/cli/{knowledge-link-0byjmj0w.js → knowledge-link-vmdj5e5d.js} +5 -5
  56. package/dist/cli/{knowledge-store-p14t72y5.js → knowledge-store-2brg88cx.js} +6 -6
  57. package/dist/cli/{knowledge-validator-jg6zhx9s.js → knowledge-validator-s1v7kry2.js} +8 -8
  58. package/dist/cli/{pending-delegations-0111ywd2.js → pending-delegations-b341397j.js} +6 -5
  59. package/dist/cli/{pr-subscriptions-4e64sbwg.js → pr-subscriptions-2mkdt0ak.js} +5 -5
  60. package/dist/cli/{runner-rddddxmq.js → runner-3gw2njnx.js} +6 -6
  61. package/dist/cli/{scan-cursor-wjad4yd7.js → scan-cursor-jm7j3w1c.js} +7 -7
  62. package/dist/cli/{schema-9ebqj7mv.js → schema-6cpgnq4s.js} +1 -1
  63. package/dist/cli/{scope-persistence-j5hz4mnd.js → scope-persistence-q713ck5n.js} +9 -9
  64. package/dist/cli/{skill-generator-x6b05jz6.js → skill-generator-z9bs6vdt.js} +14 -14
  65. package/dist/cli/{telemetry-cmbjv240.js → telemetry-x4zggfd7.js} +1 -1
  66. package/dist/cli/{worktree-collision-ownership-g5n5xbqy.js → worktree-collision-ownership-drtv7jjp.js} +7 -6
  67. package/dist/cli/{worktree-isolation-ha70bwes.js → worktree-isolation-534h3c2f.js} +33 -31
  68. package/dist/council/council-observability.d.ts +42 -0
  69. package/dist/hooks/pr-workflow-gate.d.ts +20 -245
  70. package/dist/index.js +374 -374
  71. package/dist/observability/catalog.d.ts +8 -4
  72. package/dist/observability/ids.d.ts +1 -1
  73. package/dist/observability/legacy.d.ts +6 -4
  74. package/dist/observability/observe.d.ts +1 -1
  75. package/dist/{hooks/pr-review-reentry-authorization.d.ts → pr-review/authorization.d.ts} +32 -10
  76. package/dist/{hooks/pr-review-resilience-circuit.d.ts → pr-review/circuit.d.ts} +60 -3
  77. package/dist/pr-review/completion.d.ts +373 -0
  78. package/dist/pr-review/critic-routing.d.ts +37 -0
  79. package/dist/pr-review/guardrails.d.ts +67 -0
  80. package/dist/pr-review/legacy-transcript-adapter.d.ts +276 -0
  81. package/dist/pr-review/persistence.d.ts +107 -0
  82. package/dist/pr-review/reducer.d.ts +54 -0
  83. package/dist/pr-review/types.d.ts +225 -0
  84. package/dist/telemetry.d.ts +1 -1
  85. package/package.json +1 -1
  86. package/dist/cli/curator-llm-factory-g65xmh8f.js +0 -67
  87. package/dist/cli/guardrail-explain-s0dzn8c6.js +0 -68
  88. package/dist/cli/pr-review-reentry-authorization-b7ceja9y.js +0 -301
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-db520vnn.js";
4
+ } from "./index-n67vx5zw.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  withEvidenceLock
4
- } from "./index-nqbqkx4c.js";
4
+ } from "./index-9crtmnqg.js";
5
5
  import {
6
6
  atomicWriteFileAnyRoot
7
- } from "./index-q87ht62k.js";
7
+ } from "./index-3b762978.js";
8
8
 
9
9
  // src/evidence/task-file.ts
10
10
  import * as path from "path";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-1mbwgw4p.js";
4
+ } from "./index-w1mc7gcm.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-qn4w0gar.js";
7
+ } from "./index-m4nhy4fp.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,56 +94,58 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-2rhs7j4r.js";
98
- import"./index-acnwj4pc.js";
99
- import"./index-tjaawnws.js";
100
- import"./index-z4n60b0a.js";
101
- import"./index-8vwe2qjh.js";
102
- import"./index-jw7z3gem.js";
97
+ } from "./index-7wb2v7jg.js";
98
+ import"./index-xyhmt813.js";
99
+ import"./index-s8c6f9rr.js";
100
+ import"./index-453tzvkg.js";
101
+ import"./index-5hgn302x.js";
102
+ import"./index-0103w5pf.js";
103
103
  import"./index-txdagbh7.js";
104
104
  import"./index-n249fbw7.js";
105
105
  import"./index-3146wmgv.js";
106
- import"./index-sjkxrf06.js";
107
- import"./index-0h63swrc.js";
108
- import"./index-3gwkmq53.js";
106
+ import"./index-4xggfhge.js";
107
+ import"./index-g4bvsapf.js";
108
+ import"./index-axx3t3k7.js";
109
109
  import"./index-70ha9e09.js";
110
110
  import"./index-c8s9a3zh.js";
111
111
  import"./index-9ss2m4rs.js";
112
- import"./index-bdmg6yvj.js";
112
+ import"./index-7n9jznv0.js";
113
113
  import"./index-zsrtt42s.js";
114
- import"./index-r7rn6e5f.js";
114
+ import"./index-qy2rm1f6.js";
115
115
  import"./index-3f7hqtgg.js";
116
- import"./index-9wrmzsnk.js";
117
- import"./index-77syzssw.js";
118
- import"./index-ydbd41sv.js";
116
+ import"./index-fckfgptr.js";
117
+ import"./index-f7t5fn4z.js";
118
+ import"./index-hm239n1p.js";
119
119
  import"./index-rtry5xyf.js";
120
- import"./index-vcv9m2q5.js";
121
- import"./index-6w468bjy.js";
122
- import"./index-vkaqrrsc.js";
120
+ import"./index-eqkdjfqa.js";
121
+ import"./index-zgz81a8x.js";
122
+ import"./index-t4hs3qk6.js";
123
123
  import"./index-ddszzne4.js";
124
- import"./index-mfewnd7j.js";
125
- import"./index-pde4zn7j.js";
126
- import"./index-kk9yk7an.js";
124
+ import"./index-mmngnxev.js";
125
+ import"./index-w7ekntej.js";
126
+ import"./index-pykfqsk0.js";
127
+ import"./index-4t68xs0p.js";
128
+ import"./index-8ada7ag7.js";
127
129
  import"./index-556ja8an.js";
128
130
  import"./index-4fwbbad3.js";
129
131
  import"./index-b43rt5ph.js";
130
132
  import"./index-q7sjgr1y.js";
131
- import"./index-4wmpv2kn.js";
132
- import"./index-qw893zqp.js";
133
- import"./index-5wq0dd30.js";
133
+ import"./index-ptsmms01.js";
134
+ import"./index-3ab9tczn.js";
135
+ import"./index-3rjxbe1p.js";
134
136
  import"./index-zg9d392c.js";
135
137
  import"./index-n832052r.js";
136
138
  import"./index-dtn0pne5.js";
137
139
  import"./index-z6xqpmqg.js";
138
140
  import"./index-r3mvsbtq.js";
139
- import"./index-tnj464kq.js";
141
+ import"./index-rqh25ns3.js";
140
142
  import {
141
143
  init_schema,
142
144
  stripKnownSwarmPrefix
143
- } from "./index-2ze7yqm8.js";
145
+ } from "./index-m7yt3xmk.js";
144
146
  import"./index-9e6fdz2h.js";
145
147
  import"./index-4rhhvd1a.js";
146
- import"./index-80pmq6q2.js";
148
+ import"./index-cqgpvx2d.js";
147
149
  import {
148
150
  AGENT_TOOL_MAP,
149
151
  ORCHESTRATOR_NAME,
@@ -151,13 +153,13 @@ import {
151
153
  } from "./index-9xd073d4.js";
152
154
  import"./index-zjygnfay.js";
153
155
  import"./index-ae75rja9.js";
154
- import"./index-7z9gyts0.js";
155
- import"./index-db520vnn.js";
156
+ import"./index-n2mhyect.js";
157
+ import"./index-n67vx5zw.js";
156
158
  import"./index-bk5tah7q.js";
157
- import"./index-nqbqkx4c.js";
158
- import"./index-q87ht62k.js";
159
+ import"./index-9crtmnqg.js";
160
+ import"./index-3b762978.js";
161
+ import"./index-2zgjcmmc.js";
159
162
  import"./index-ed5ykebp.js";
160
- import"./index-fx3em0dr.js";
161
163
  import"./index-7g4c7s5r.js";
162
164
  import"./index-bpmtbmy9.js";
163
165
  import"./index-zgwm4ryv.js";
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-7z9gyts0.js";
9
+ } from "./index-n2mhyect.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-db520vnn.js";
12
+ } from "./index-n67vx5zw.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-z7smbnff.js");
716
+ } = await import("./knowledge-events-xrd9es3p.js");
717
717
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
718
718
  const flagIds = new Set;
719
719
  for (const e of atFloor) {
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
780
780
  });
781
781
  }
782
782
  if (action === "quarantine" && toQuarantine.length > 0) {
783
- const { quarantineEntry } = await import("./knowledge-validator-jg6zhx9s.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-9ebqj7mv.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-s1v7kry2.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-6cpgnq4s.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-1wapt173.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-w0yn4rmh.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-pde4zn7j.js";
5
+ } from "./index-4t68xs0p.js";
6
6
  import {
7
7
  appendCoreEventSync
8
- } from "./index-kk9yk7an.js";
8
+ } from "./index-8ada7ag7.js";
9
9
  import {
10
10
  unsafePathTextReason
11
11
  } from "./index-556ja8an.js";
12
12
  import {
13
13
  PlanSchema
14
- } from "./index-tnj464kq.js";
14
+ } from "./index-rqh25ns3.js";
15
15
  import {
16
16
  assertProjectRoot
17
- } from "./index-nqbqkx4c.js";
17
+ } from "./index-9crtmnqg.js";
18
18
  import {
19
19
  atomicWriteSwarmFile,
20
20
  atomicWriteSwarmFileSync
21
- } from "./index-q87ht62k.js";
21
+ } from "./index-3b762978.js";
22
22
  import {
23
23
  require_proper_lockfile
24
24
  } from "./index-7g4c7s5r.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-3f7hqtgg.js";
6
6
  import {
7
7
  removeWorktreeProvisioningOwner
8
- } from "./index-9wrmzsnk.js";
8
+ } from "./index-fckfgptr.js";
9
9
  import {
10
10
  SOURCE_WORKTREE_GONE_STAGE,
11
11
  getTaskWorkflowSnapshot,
@@ -13,13 +13,13 @@ import {
13
13
  reconcileLandedMerge,
14
14
  withTaskEvidenceTransaction,
15
15
  writeWorkflowWalFile
16
- } from "./index-vcv9m2q5.js";
16
+ } from "./index-eqkdjfqa.js";
17
17
  import {
18
18
  canonicalRootKeyFresh
19
19
  } from "./index-ddszzne4.js";
20
20
  import {
21
21
  appendCoreEventSync
22
- } from "./index-kk9yk7an.js";
22
+ } from "./index-8ada7ag7.js";
23
23
  import {
24
24
  isPathWithinDeclaredScope
25
25
  } from "./index-556ja8an.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./index-4rhhvd1a.js";
37
37
  import {
38
38
  tryAcquireLock
39
- } from "./index-nqbqkx4c.js";
39
+ } from "./index-9crtmnqg.js";
40
40
  import {
41
41
  criticalWarn,
42
42
  init_logger
@@ -478,7 +478,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
478
478
  awaitingMergeByCallID,
479
479
  cleanupStandardWorktreeForCallId,
480
480
  standardWorktreeByCallID
481
- } = await import("./worktree-isolation-ha70bwes.js");
481
+ } = await import("./worktree-isolation-534h3c2f.js");
482
482
  standardWorktreeByCallID.delete(descriptor.callID);
483
483
  if (hasResidue)
484
484
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -602,7 +602,7 @@ async function recoverCoderSettlement(directory, taskId) {
602
602
  awaitingMergeByCallID,
603
603
  finishStandardWorktreeDispatch,
604
604
  standardWorktreeByCallID
605
- } = await import("./worktree-isolation-ha70bwes.js");
605
+ } = await import("./worktree-isolation-534h3c2f.js");
606
606
  const descriptor = wal.worktree;
607
607
  const reconstructedDispatch = {
608
608
  callID: descriptor.callID,
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-2ze7yqm8.js";
9
+ } from "./index-m7yt3xmk.js";
10
10
  import {
11
11
  GIT_BINARY_ENV_VAR,
12
12
  init_git_executable
@@ -11,16 +11,16 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-2ze7yqm8.js";
14
+ } from "./index-m7yt3xmk.js";
15
15
  import {
16
16
  observeStoreHealth
17
- } from "./index-80pmq6q2.js";
17
+ } from "./index-cqgpvx2d.js";
18
18
  import {
19
19
  init_constants
20
20
  } from "./index-9xd073d4.js";
21
21
  import {
22
22
  telemetry
23
- } from "./index-fx3em0dr.js";
23
+ } from "./index-2zgjcmmc.js";
24
24
  import {
25
25
  init_logger,
26
26
  warn
@@ -2639,6 +2639,9 @@ function checkFileAuthority(agentName, filePath, cwd, authorityConfig, options =
2639
2639
  });
2640
2640
  }
2641
2641
 
2642
+ // src/hooks/guardrails/helpers.ts
2643
+ init_constants();
2644
+
2642
2645
  // src/hooks/normalize-tool-name.ts
2643
2646
  var NAMESPACE_PREFIX_PATTERN = /^[^:]+[:.]/;
2644
2647
  function normalizeToolName(toolName) {
@@ -2651,7 +2654,6 @@ function normalizeToolNameLowerCase(toolName) {
2651
2654
  }
2652
2655
 
2653
2656
  // src/hooks/guardrails/helpers.ts
2654
- init_constants();
2655
2657
  function isInDeclaredScope(filePath, scopeEntries, cwd) {
2656
2658
  return isPathWithinDeclaredScope(filePath, scopeEntries, cwd);
2657
2659
  }