opencode-swarm 7.113.2 → 7.113.4

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 (69) hide show
  1. package/binaries/win32-arm64/.gitkeep +0 -0
  2. package/binaries/win32-x64/.gitkeep +0 -0
  3. package/dist/background/event-bus.d.ts +1 -1
  4. package/dist/background/queue.d.ts +11 -0
  5. package/dist/background/trigger.d.ts +1 -0
  6. package/dist/cli/{capability-probe-sh9bwh39.js → capability-probe-f1paszww.js} +1 -1
  7. package/dist/cli/{config-doctor-az11cwf5.js → config-doctor-xbdfrbwt.js} +2 -2
  8. package/dist/cli/{core-f4cbabe7.js → core-zg8s1jwx.js} +2 -2
  9. package/dist/cli/{curator-drift-jvs1v6em.js → curator-drift-c0by7063.js} +2 -2
  10. package/dist/cli/curator-llm-factory-b3g0g0cd.js +41 -0
  11. package/dist/cli/{curator-9s04amtf.js → curator-nh9raf1a.js} +26 -22
  12. package/dist/cli/{dispatch-wst7bypk.js → dispatch-mczsxy5s.js} +2 -2
  13. package/dist/cli/{evidence-summary-service-w1er1ea2.js → evidence-summary-service-8g594znj.js} +7 -7
  14. package/dist/cli/{gate-evidence-9hdwj6tt.js → gate-evidence-vkpqt300.js} +5 -5
  15. package/dist/cli/guardrail-explain-wpv5eskq.js +42 -0
  16. package/dist/cli/{guardrail-log-hysxdwg9.js → guardrail-log-qfc2j0tb.js} +4 -4
  17. package/dist/cli/hive-promoter-c0fd3j02.js +51 -0
  18. package/dist/cli/{index-0dab9w37.js → index-0p660a87.js} +2 -2
  19. package/dist/cli/{index-32bx4kch.js → index-0q7rrh59.js} +4 -4
  20. package/dist/cli/{index-n7rd2rkj.js → index-10v7hrkj.js} +2 -2
  21. package/dist/cli/{index-1ey3dxq7.js → index-147ja18h.js} +0 -4
  22. package/dist/cli/{index-0gf6de8b.js → index-2148358e.js} +45 -1
  23. package/dist/cli/{index-30ejh1tx.js → index-43khae15.js} +3 -3
  24. package/dist/cli/{index-x5g7et24.js → index-4h2ea8h5.js} +2 -2
  25. package/dist/cli/{index-5mkc2f9z.js → index-4sckv7y6.js} +1 -1
  26. package/dist/cli/{index-w51xz4dr.js → index-5yzr9fk6.js} +25 -25
  27. package/dist/cli/{index-q1jaeynn.js → index-80jkseqw.js} +2 -2
  28. package/dist/cli/{index-wvrj16f0.js → index-8fwhhayc.js} +4 -0
  29. package/dist/cli/{index-54dgk0bv.js → index-ct9e0y0q.js} +803 -450
  30. package/dist/cli/{index-afgh75zg.js → index-f6y341yk.js} +14 -11
  31. package/dist/cli/{index-db1fh1fv.js → index-g40r5d08.js} +1 -1
  32. package/dist/cli/{index-8f256d7t.js → index-g6va6n3t.js} +1 -1
  33. package/dist/cli/{index-9fxs0rm1.js → index-ga4ta3cr.js} +1 -1
  34. package/dist/cli/{index-t6wfwdm1.js → index-h7q1bvzm.js} +3 -3
  35. package/dist/cli/{index-h389ed8y.js → index-mr4whary.js} +3 -3
  36. package/dist/cli/{index-g55nzpwn.js → index-n6fa2hhk.js} +1 -1
  37. package/dist/cli/{index-vn263hqt.js → index-pa6t33pt.js} +17 -10
  38. package/dist/cli/{index-h91bv3hy.js → index-qe3v54nb.js} +6 -1
  39. package/dist/cli/{index-hpp2r0sd.js → index-qzqx2qky.js} +3 -3
  40. package/dist/cli/{index-fhmw7evd.js → index-rdwfqhp7.js} +2 -2
  41. package/dist/cli/{index-1rga1vvb.js → index-wh8949ef.js} +1 -1
  42. package/dist/cli/{index-r9fjzr3k.js → index-xbe1wtme.js} +1 -1
  43. package/dist/cli/index.js +22 -22
  44. package/dist/cli/{knowledge-escalator-4gbz527n.js → knowledge-escalator-0q1p6br7.js} +8 -8
  45. package/dist/cli/{knowledge-events-b6x28fgc.js → knowledge-events-9518gzsp.js} +6 -6
  46. package/dist/cli/{knowledge-store-h3cjx4dg.js → knowledge-store-k5rab79h.js} +6 -6
  47. package/dist/cli/{knowledge-validator-q6jw2p0t.js → knowledge-validator-csay9wqj.js} +7 -7
  48. package/dist/cli/{pending-delegations-t047f4a7.js → pending-delegations-ddbkbgxy.js} +4 -4
  49. package/dist/cli/{pr-subscriptions-p8g2rzxd.js → pr-subscriptions-vwv7zm2p.js} +5 -5
  50. package/dist/cli/{schema-qb313fyy.js → schema-e5kd993s.js} +1 -1
  51. package/dist/cli/{scope-persistence-5ccgtebg.js → scope-persistence-fm0gzhnk.js} +2 -2
  52. package/dist/cli/{skill-generator-nnwn4sq0.js → skill-generator-z01sjppf.js} +9 -9
  53. package/dist/cli/{telemetry-jm7t8031.js → telemetry-jny76r83.js} +1 -1
  54. package/dist/commands/registry.d.ts +7 -0
  55. package/dist/config/constants.d.ts +1 -1
  56. package/dist/hooks/curator.d.ts +33 -9
  57. package/dist/hooks/hive-promoter.d.ts +7 -0
  58. package/dist/hooks/knowledge-curator.d.ts +13 -0
  59. package/dist/hooks/messages-transform.d.ts +22 -1
  60. package/dist/hooks/spawn-helper.d.ts +10 -0
  61. package/dist/index.js +208 -206
  62. package/dist/sandbox/capability-probe.d.ts +14 -0
  63. package/dist/sandbox/macos/sandbox-exec-executor.d.ts +5 -0
  64. package/dist/tools/tool-metadata.d.ts +1 -1
  65. package/dist/utils/path-security.d.ts +28 -0
  66. package/package.json +2 -1
  67. package/dist/cli/curator-llm-factory-dwvk7rh0.js +0 -41
  68. package/dist/cli/guardrail-explain-2k271yh4.js +0 -42
  69. package/dist/cli/hive-promoter-0y4pnft4.js +0 -49
File without changes
File without changes
@@ -5,7 +5,7 @@
5
5
  * Events flow through the system without external dependencies.
6
6
  */
7
7
  /** Automation event types */
8
- export type AutomationEventType = 'queue.item.enqueued' | 'queue.item.dequeued' | 'queue.item.completed' | 'queue.item.failed' | 'queue.item.retry scheduled' | 'worker.started' | 'worker.stopped' | 'worker.error' | 'circuit.breaker.opened' | 'circuit.breaker.half-open' | 'circuit.breaker.closed' | 'loop.protection.triggered' | 'automation.started' | 'automation.stopped' | 'preflight.requested' | 'preflight.triggered' | 'preflight.skipped' | 'preflight.completed' | 'phase.boundary.detected' | 'phase.status.checked' | 'task.completed' | 'evidence.summary.generated' | 'evidence.summary.error' | 'curator.init.completed' | 'curator.init.llm_completed' | 'curator.init.llm_fallback' | 'curator.phase.completed' | 'curator.phase.llm_completed' | 'curator.phase.llm_fallback' | 'curator.drift.completed' | 'curator.docdrift.completed' | 'curator.error' | 'pr.subscribed' | 'pr.unsubscribed' | 'pr.status.updated' | 'pr.ci.failed' | 'pr.ci.passed' | 'pr.new.comment' | 'pr.merge.conflict' | 'pr.merge.conflict_resolved' | 'pr.merged' | 'pr.closed' | 'pr.review.approved' | 'pr.review.changes_requested' | 'pr.subscription.expired' | 'pr.error';
8
+ export type AutomationEventType = 'queue.item.enqueued' | 'queue.item.dequeued' | 'queue.item.completed' | 'queue.item.evicted' | 'queue.item.failed' | 'queue.item.retry scheduled' | 'worker.started' | 'worker.stopped' | 'worker.error' | 'circuit.breaker.opened' | 'circuit.breaker.half-open' | 'circuit.breaker.closed' | 'loop.protection.triggered' | 'automation.started' | 'automation.stopped' | 'preflight.requested' | 'preflight.triggered' | 'preflight.skipped' | 'preflight.completed' | 'phase.boundary.detected' | 'phase.status.checked' | 'task.completed' | 'evidence.summary.generated' | 'evidence.summary.error' | 'curator.init.completed' | 'curator.init.llm_completed' | 'curator.init.llm_fallback' | 'curator.phase.completed' | 'curator.phase.llm_completed' | 'curator.phase.llm_fallback' | 'curator.drift.completed' | 'curator.docdrift.completed' | 'curator.error' | 'pr.subscribed' | 'pr.unsubscribed' | 'pr.status.updated' | 'pr.ci.failed' | 'pr.ci.passed' | 'pr.new.comment' | 'pr.merge.conflict' | 'pr.merge.conflict_resolved' | 'pr.merged' | 'pr.closed' | 'pr.review.approved' | 'pr.review.changes_requested' | 'pr.subscription.expired' | 'pr.error';
9
9
  /** Base automation event */
10
10
  export interface AutomationEvent<T = unknown> {
11
11
  type: AutomationEventType;
@@ -7,6 +7,14 @@
7
7
  */
8
8
  /** Queue priority levels */
9
9
  export type QueuePriority = 'critical' | 'high' | 'normal' | 'low';
10
+ /**
11
+ * Behaviour when enqueueing into a full queue.
12
+ * - `throw` (default): reject the new item — the historical behaviour.
13
+ * - `evict-oldest`: drop the oldest item to make room, forming a bounded
14
+ * rolling window that can never brick (issue #1778 H5). Opt-in per queue so
15
+ * other consumers keep the fail-loud `throw` semantics.
16
+ */
17
+ export type OverflowStrategy = 'throw' | 'evict-oldest';
10
18
  /** Retry metadata for failed items */
11
19
  export interface RetryMetadata {
12
20
  attempts: number;
@@ -32,6 +40,8 @@ export interface QueueConfig {
32
40
  defaultMaxRetries?: number;
33
41
  defaultBackoffMs?: number;
34
42
  maxBackoffMs?: number;
43
+ /** Overflow behaviour at cap. Defaults to `throw`. */
44
+ overflowStrategy?: OverflowStrategy;
35
45
  }
36
46
  /**
37
47
  * In-process queue with priority support and retry metadata
@@ -43,6 +53,7 @@ export declare class AutomationQueue<T = unknown> {
43
53
  private readonly defaultBackoffMs;
44
54
  private readonly maxBackoffMs;
45
55
  private readonly eventBus;
56
+ private readonly overflowStrategy;
46
57
  private itemCounter;
47
58
  constructor(config?: QueueConfig);
48
59
  /**
@@ -115,6 +115,7 @@ export declare class PreflightTriggerManager {
115
115
  private requestCounter;
116
116
  private preflightHandler;
117
117
  private unsubscribe;
118
+ private unsubscribeSkipped;
118
119
  constructor(automationConfig: AutomationConfig, eventBus?: AutomationEventBus, triggerConfig?: PreflightTriggerConfig);
119
120
  /**
120
121
  * Check if preflight triggers are enabled via feature flags
@@ -5,7 +5,7 @@ import {
5
5
  isBubblewrapAvailable,
6
6
  isSandboxExecAvailable,
7
7
  isWindowsSandboxAvailable
8
- } from "./index-wvrj16f0.js";
8
+ } from "./index-8fwhhayc.js";
9
9
  import"./index-q1exe2b3.js";
10
10
  import"./index-zgwm4ryv.js";
11
11
  import"./index-a76rekgs.js";
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-0gf6de8b.js";
16
- import"./index-1ey3dxq7.js";
15
+ } from "./index-2148358e.js";
16
+ import"./index-147ja18h.js";
17
17
  import"./index-bfwt3abw.js";
18
18
  import"./index-5e4e2hvv.js";
19
19
  import"./index-p0arc26j.js";
@@ -14,11 +14,11 @@ import {
14
14
  resolveWorktreeBaseDir,
15
15
  shortenWorktreePath,
16
16
  writeLaneProfileToDiskReal
17
- } from "./index-fhmw7evd.js";
17
+ } from "./index-rdwfqhp7.js";
18
18
  import"./index-5e4e2hvv.js";
19
19
  import"./index-p0arc26j.js";
20
20
  import"./index-zgwm4ryv.js";
21
- import"./index-h91bv3hy.js";
21
+ import"./index-qe3v54nb.js";
22
22
  import"./index-a76rekgs.js";
23
23
  export {
24
24
  writeLaneProfileToDiskReal,
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  readSwarmFileAsync,
10
10
  validateSwarmPath
11
- } from "./index-1rga1vvb.js";
11
+ } from "./index-wh8949ef.js";
12
12
  import"./index-jtqkh8jf.js";
13
13
  import"./index-5e4e2hvv.js";
14
14
  import"./index-p0arc26j.js";
@@ -17,7 +17,7 @@ import {
17
17
  warn
18
18
  } from "./index-zgwm4ryv.js";
19
19
  import"./index-293f68mj.js";
20
- import"./index-h91bv3hy.js";
20
+ import"./index-qe3v54nb.js";
21
21
  import"./index-a76rekgs.js";
22
22
 
23
23
  // src/hooks/curator-drift.ts
@@ -0,0 +1,41 @@
1
+ // @bun
2
+ import {
3
+ createCuratorLLMDelegate
4
+ } from "./index-ct9e0y0q.js";
5
+ import"./index-g6va6n3t.js";
6
+ import"./index-c8s9a3zh.js";
7
+ import"./index-2148358e.js";
8
+ import"./index-147ja18h.js";
9
+ import"./index-f6y341yk.js";
10
+ import"./index-scww5b77.js";
11
+ import"./index-ga4ta3cr.js";
12
+ import"./index-80jkseqw.js";
13
+ import"./index-mr4whary.js";
14
+ import"./index-43khae15.js";
15
+ import"./index-h7q1bvzm.js";
16
+ import"./index-qzqx2qky.js";
17
+ import"./index-0q7rrh59.js";
18
+ import"./index-bfwt3abw.js";
19
+ import"./index-g40r5d08.js";
20
+ import"./index-jt58s751.js";
21
+ import"./index-8fwhhayc.js";
22
+ import"./index-q1exe2b3.js";
23
+ import"./index-n6fa2hhk.js";
24
+ import"./index-rdwfqhp7.js";
25
+ import"./index-wh8949ef.js";
26
+ import"./index-jtqkh8jf.js";
27
+ import"./index-5e4e2hvv.js";
28
+ import"./index-p0arc26j.js";
29
+ import"./index-zgwm4ryv.js";
30
+ import"./index-dqh3zhhc.js";
31
+ import"./index-4h2ea8h5.js";
32
+ import"./index-0p660a87.js";
33
+ import"./index-293f68mj.js";
34
+ import"./index-4sckv7y6.js";
35
+ import"./index-pa6t33pt.js";
36
+ import"./index-vvk2g744.js";
37
+ import"./index-qe3v54nb.js";
38
+ import"./index-a76rekgs.js";
39
+ export {
40
+ createCuratorLLMDelegate
41
+ };
@@ -1,9 +1,11 @@
1
1
  // @bun
2
2
  import {
3
3
  _internals,
4
+ appendCuratorRecommendation,
4
5
  applyCuratorKnowledgeUpdates,
5
6
  checkPhaseCompliance,
6
7
  filterPhaseEvents,
8
+ mergeCuratorPhaseSummary,
7
9
  normalizeRecommendationEntryIdToken,
8
10
  parseKnowledgeRecommendations,
9
11
  parseKnowledgeRecommendationsWithDiagnostics,
@@ -12,40 +14,40 @@ import {
12
14
  runCuratorInit,
13
15
  runCuratorPhase,
14
16
  writeCuratorSummary
15
- } from "./index-54dgk0bv.js";
16
- import"./index-8f256d7t.js";
17
+ } from "./index-ct9e0y0q.js";
18
+ import"./index-g6va6n3t.js";
17
19
  import"./index-c8s9a3zh.js";
18
- import"./index-0gf6de8b.js";
19
- import"./index-1ey3dxq7.js";
20
- import"./index-afgh75zg.js";
20
+ import"./index-2148358e.js";
21
+ import"./index-147ja18h.js";
22
+ import"./index-f6y341yk.js";
21
23
  import"./index-scww5b77.js";
22
- import"./index-9fxs0rm1.js";
23
- import"./index-q1jaeynn.js";
24
- import"./index-h389ed8y.js";
25
- import"./index-30ejh1tx.js";
26
- import"./index-t6wfwdm1.js";
27
- import"./index-hpp2r0sd.js";
28
- import"./index-32bx4kch.js";
24
+ import"./index-ga4ta3cr.js";
25
+ import"./index-80jkseqw.js";
26
+ import"./index-mr4whary.js";
27
+ import"./index-43khae15.js";
28
+ import"./index-h7q1bvzm.js";
29
+ import"./index-qzqx2qky.js";
30
+ import"./index-0q7rrh59.js";
29
31
  import"./index-bfwt3abw.js";
30
- import"./index-db1fh1fv.js";
32
+ import"./index-g40r5d08.js";
31
33
  import"./index-jt58s751.js";
32
- import"./index-wvrj16f0.js";
34
+ import"./index-8fwhhayc.js";
33
35
  import"./index-q1exe2b3.js";
34
- import"./index-g55nzpwn.js";
35
- import"./index-fhmw7evd.js";
36
- import"./index-1rga1vvb.js";
36
+ import"./index-n6fa2hhk.js";
37
+ import"./index-rdwfqhp7.js";
38
+ import"./index-wh8949ef.js";
37
39
  import"./index-jtqkh8jf.js";
38
40
  import"./index-5e4e2hvv.js";
39
41
  import"./index-p0arc26j.js";
40
42
  import"./index-zgwm4ryv.js";
41
43
  import"./index-dqh3zhhc.js";
42
- import"./index-x5g7et24.js";
43
- import"./index-0dab9w37.js";
44
+ import"./index-4h2ea8h5.js";
45
+ import"./index-0p660a87.js";
44
46
  import"./index-293f68mj.js";
45
- import"./index-5mkc2f9z.js";
46
- import"./index-vn263hqt.js";
47
+ import"./index-4sckv7y6.js";
48
+ import"./index-pa6t33pt.js";
47
49
  import"./index-vvk2g744.js";
48
- import"./index-h91bv3hy.js";
50
+ import"./index-qe3v54nb.js";
49
51
  import"./index-a76rekgs.js";
50
52
  export {
51
53
  writeCuratorSummary,
@@ -56,8 +58,10 @@ export {
56
58
  parseKnowledgeRecommendationsWithDiagnostics,
57
59
  parseKnowledgeRecommendations,
58
60
  normalizeRecommendationEntryIdToken,
61
+ mergeCuratorPhaseSummary,
59
62
  filterPhaseEvents,
60
63
  checkPhaseCompliance,
61
64
  applyCuratorKnowledgeUpdates,
65
+ appendCuratorRecommendation,
62
66
  _internals
63
67
  };
@@ -11,11 +11,11 @@ import {
11
11
  defaultTestFilesFor,
12
12
  detectProjectLanguages,
13
13
  tokenizeCommand
14
- } from "./index-9fxs0rm1.js";
14
+ } from "./index-ga4ta3cr.js";
15
15
  import"./index-5e4e2hvv.js";
16
16
  import"./index-p0arc26j.js";
17
17
  import"./index-zgwm4ryv.js";
18
- import"./index-h91bv3hy.js";
18
+ import"./index-qe3v54nb.js";
19
19
  import"./index-a76rekgs.js";
20
20
 
21
21
  // src/lang/dispatch.ts
@@ -6,23 +6,23 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-afgh75zg.js";
9
+ } from "./index-f6y341yk.js";
10
10
  import"./index-scww5b77.js";
11
11
  import"./index-q1exe2b3.js";
12
- import"./index-1rga1vvb.js";
12
+ import"./index-wh8949ef.js";
13
13
  import"./index-jtqkh8jf.js";
14
14
  import"./index-5e4e2hvv.js";
15
15
  import"./index-p0arc26j.js";
16
16
  import {
17
17
  log
18
18
  } from "./index-zgwm4ryv.js";
19
- import"./index-x5g7et24.js";
20
- import"./index-0dab9w37.js";
19
+ import"./index-4h2ea8h5.js";
20
+ import"./index-0p660a87.js";
21
21
  import"./index-293f68mj.js";
22
- import"./index-5mkc2f9z.js";
23
- import"./index-vn263hqt.js";
22
+ import"./index-4sckv7y6.js";
23
+ import"./index-pa6t33pt.js";
24
24
  import"./index-vvk2g744.js";
25
- import"./index-h91bv3hy.js";
25
+ import"./index-qe3v54nb.js";
26
26
  import"./index-a76rekgs.js";
27
27
 
28
28
  // src/services/evidence-summary-service.ts
@@ -9,13 +9,13 @@ import {
9
9
  readTaskEvidenceRaw,
10
10
  recordAgentDispatch,
11
11
  recordGateEvidence
12
- } from "./index-x5g7et24.js";
13
- import"./index-0dab9w37.js";
12
+ } from "./index-4h2ea8h5.js";
13
+ import"./index-0p660a87.js";
14
14
  import"./index-293f68mj.js";
15
- import"./index-5mkc2f9z.js";
16
- import"./index-vn263hqt.js";
15
+ import"./index-4sckv7y6.js";
16
+ import"./index-pa6t33pt.js";
17
17
  import"./index-vvk2g744.js";
18
- import"./index-h91bv3hy.js";
18
+ import"./index-qe3v54nb.js";
19
19
  import"./index-a76rekgs.js";
20
20
  export {
21
21
  recordGateEvidence,
@@ -0,0 +1,42 @@
1
+ // @bun
2
+ import {
3
+ handleGuardrailExplain
4
+ } from "./index-10v7hrkj.js";
5
+ import"./index-ct9e0y0q.js";
6
+ import"./index-g6va6n3t.js";
7
+ import"./index-c8s9a3zh.js";
8
+ import"./index-2148358e.js";
9
+ import"./index-147ja18h.js";
10
+ import"./index-f6y341yk.js";
11
+ import"./index-scww5b77.js";
12
+ import"./index-ga4ta3cr.js";
13
+ import"./index-80jkseqw.js";
14
+ import"./index-mr4whary.js";
15
+ import"./index-43khae15.js";
16
+ import"./index-h7q1bvzm.js";
17
+ import"./index-qzqx2qky.js";
18
+ import"./index-0q7rrh59.js";
19
+ import"./index-bfwt3abw.js";
20
+ import"./index-g40r5d08.js";
21
+ import"./index-jt58s751.js";
22
+ import"./index-8fwhhayc.js";
23
+ import"./index-q1exe2b3.js";
24
+ import"./index-n6fa2hhk.js";
25
+ import"./index-rdwfqhp7.js";
26
+ import"./index-wh8949ef.js";
27
+ import"./index-jtqkh8jf.js";
28
+ import"./index-5e4e2hvv.js";
29
+ import"./index-p0arc26j.js";
30
+ import"./index-zgwm4ryv.js";
31
+ import"./index-dqh3zhhc.js";
32
+ import"./index-4h2ea8h5.js";
33
+ import"./index-0p660a87.js";
34
+ import"./index-293f68mj.js";
35
+ import"./index-4sckv7y6.js";
36
+ import"./index-pa6t33pt.js";
37
+ import"./index-vvk2g744.js";
38
+ import"./index-qe3v54nb.js";
39
+ import"./index-a76rekgs.js";
40
+ export {
41
+ handleGuardrailExplain
42
+ };
@@ -1,15 +1,15 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-r9fjzr3k.js";
5
- import"./index-8f256d7t.js";
6
- import"./index-1ey3dxq7.js";
4
+ } from "./index-xbe1wtme.js";
5
+ import"./index-g6va6n3t.js";
6
+ import"./index-147ja18h.js";
7
7
  import"./index-bfwt3abw.js";
8
8
  import"./index-5e4e2hvv.js";
9
9
  import"./index-p0arc26j.js";
10
10
  import"./index-zgwm4ryv.js";
11
11
  import"./index-293f68mj.js";
12
- import"./index-h91bv3hy.js";
12
+ import"./index-qe3v54nb.js";
13
13
  import"./index-a76rekgs.js";
14
14
  export {
15
15
  handleGuardrailLog
@@ -0,0 +1,51 @@
1
+ // @bun
2
+ import {
3
+ _internals1 as _internals,
4
+ checkHivePromotions,
5
+ createHivePromoterHook,
6
+ isHiveEligible,
7
+ promoteFromSwarm,
8
+ promoteToHive
9
+ } from "./index-ct9e0y0q.js";
10
+ import"./index-g6va6n3t.js";
11
+ import"./index-c8s9a3zh.js";
12
+ import"./index-2148358e.js";
13
+ import"./index-147ja18h.js";
14
+ import"./index-f6y341yk.js";
15
+ import"./index-scww5b77.js";
16
+ import"./index-ga4ta3cr.js";
17
+ import"./index-80jkseqw.js";
18
+ import"./index-mr4whary.js";
19
+ import"./index-43khae15.js";
20
+ import"./index-h7q1bvzm.js";
21
+ import"./index-qzqx2qky.js";
22
+ import"./index-0q7rrh59.js";
23
+ import"./index-bfwt3abw.js";
24
+ import"./index-g40r5d08.js";
25
+ import"./index-jt58s751.js";
26
+ import"./index-8fwhhayc.js";
27
+ import"./index-q1exe2b3.js";
28
+ import"./index-n6fa2hhk.js";
29
+ import"./index-rdwfqhp7.js";
30
+ import"./index-wh8949ef.js";
31
+ import"./index-jtqkh8jf.js";
32
+ import"./index-5e4e2hvv.js";
33
+ import"./index-p0arc26j.js";
34
+ import"./index-zgwm4ryv.js";
35
+ import"./index-dqh3zhhc.js";
36
+ import"./index-4h2ea8h5.js";
37
+ import"./index-0p660a87.js";
38
+ import"./index-293f68mj.js";
39
+ import"./index-4sckv7y6.js";
40
+ import"./index-pa6t33pt.js";
41
+ import"./index-vvk2g744.js";
42
+ import"./index-qe3v54nb.js";
43
+ import"./index-a76rekgs.js";
44
+ export {
45
+ promoteToHive,
46
+ promoteFromSwarm,
47
+ isHiveEligible,
48
+ createHivePromoterHook,
49
+ checkHivePromotions,
50
+ _internals
51
+ };
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  withEvidenceLock
4
- } from "./index-5mkc2f9z.js";
4
+ } from "./index-4sckv7y6.js";
5
5
  import {
6
6
  bunWrite
7
- } from "./index-h91bv3hy.js";
7
+ } from "./index-qe3v54nb.js";
8
8
 
9
9
  // src/evidence/task-file.ts
10
10
  import { renameSync, unlinkSync } from "fs";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./index-bfwt3abw.js";
5
5
  import {
6
6
  resolveKnowledgeStoreDir
7
- } from "./index-db1fh1fv.js";
7
+ } from "./index-g40r5d08.js";
8
8
  import {
9
9
  readCachedParsedFile
10
10
  } from "./index-jtqkh8jf.js";
11
11
  import {
12
12
  atomicWriteFile
13
- } from "./index-0dab9w37.js";
13
+ } from "./index-0p660a87.js";
14
14
  import {
15
15
  require_proper_lockfile
16
16
  } from "./index-vvk2g744.js";
@@ -590,7 +590,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
590
590
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
591
591
  if (atFloor.length === 0 && recovered.length === 0)
592
592
  return;
593
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-b6x28fgc.js");
593
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-9518gzsp.js");
594
594
  const rollups = await readKnowledgeCounterRollups(directory);
595
595
  const flagIds = new Set;
596
596
  for (const e of atFloor) {
@@ -657,7 +657,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
657
657
  });
658
658
  }
659
659
  if (action === "quarantine" && toQuarantine.length > 0) {
660
- const { quarantineEntry } = await import("./knowledge-validator-q6jw2p0t.js");
660
+ const { quarantineEntry } = await import("./knowledge-validator-csay9wqj.js");
661
661
  for (const { id } of toQuarantine) {
662
662
  await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto").catch((err) => {
663
663
  console.warn("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-54dgk0bv.js";
15
+ } from "./index-ct9e0y0q.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-8f256d7t.js";
22
+ } from "./index-g6va6n3t.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -256,14 +256,10 @@ var TOOL_METADATA = {
256
256
  extract_code_blocks: {
257
257
  description: "extract code blocks from text content and save them to files",
258
258
  agents: [
259
- "architect",
260
- "sme",
261
259
  "docs",
262
260
  "docs_design",
263
261
  "designer",
264
262
  "spec_writer",
265
- "reviewer",
266
- "explorer",
267
263
  "coder",
268
264
  "test_engineer"
269
265
  ]
@@ -5,7 +5,7 @@ import {
5
5
  GateConfigSchema,
6
6
  PluginConfigSchema,
7
7
  stripKnownSwarmPrefix
8
- } from "./index-1ey3dxq7.js";
8
+ } from "./index-147ja18h.js";
9
9
  import {
10
10
  log
11
11
  } from "./index-zgwm4ryv.js";
@@ -158,6 +158,49 @@ function collectRawGatesConfigFindings(directory) {
158
158
  }
159
159
  return findings;
160
160
  }
161
+ function collectRawStrictSectionFindings(directory) {
162
+ const findings = [];
163
+ const { userConfigPath, projectConfigPath } = getConfigPaths(directory);
164
+ for (const configPath of [userConfigPath, projectConfigPath]) {
165
+ if (!fs.existsSync(configPath))
166
+ continue;
167
+ try {
168
+ const stats = fs.statSync(configPath);
169
+ if (stats.size > CONFIG_DOCTOR_MAX_CONFIG_FILE_BYTES)
170
+ continue;
171
+ const raw = JSON.parse(fs.readFileSync(configPath, "utf-8"));
172
+ if (!isPlainObject(raw))
173
+ continue;
174
+ const parsed = PluginConfigSchema.safeParse(raw);
175
+ if (parsed.success)
176
+ continue;
177
+ const seen = new Set;
178
+ for (const issue of parsed.error.issues) {
179
+ if (issue.code !== "unrecognized_keys")
180
+ continue;
181
+ if (issue.path[0] === "gates")
182
+ continue;
183
+ const keys = issue.keys ?? [];
184
+ for (const key of keys) {
185
+ const dotted = [...issue.path.map(String), key].join(".");
186
+ if (seen.has(dotted))
187
+ continue;
188
+ seen.add(dotted);
189
+ findings.push({
190
+ id: "unknown-config-key",
191
+ title: "Unknown config key",
192
+ description: `Unrecognized key "${dotted}" in ${configPath} is ignored by the loader (the rest of your config is preserved). Fix or remove it.`,
193
+ severity: "warn",
194
+ path: dotted,
195
+ currentValue: undefined,
196
+ autoFixable: false
197
+ });
198
+ }
199
+ }
200
+ } catch {}
201
+ }
202
+ return findings;
203
+ }
161
204
  function emitWorktreeIsolationLayeringAdvisory(config, findings) {
162
205
  const parallelization = config.parallelization;
163
206
  const worktreePolicy = config.worktree?.policy ?? "auto";
@@ -1007,6 +1050,7 @@ function runConfigDoctor(config, directory) {
1007
1050
  const findings = [];
1008
1051
  walkConfigAndValidate(config, "", findings);
1009
1052
  findings.push(...collectRawGatesConfigFindings(directory));
1053
+ findings.push(...collectRawStrictSectionFindings(directory));
1010
1054
  emitWorktreeIsolationLayeringAdvisory(config, findings);
1011
1055
  const summary = {
1012
1056
  info: findings.filter((f) => f.severity === "info").length,
@@ -6,17 +6,17 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  resolveSwarmRejectedPath,
8
8
  transactKnowledge
9
- } from "./index-32bx4kch.js";
9
+ } from "./index-0q7rrh59.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
- } from "./index-db1fh1fv.js";
12
+ } from "./index-g40r5d08.js";
13
13
  import {
14
14
  init_logger,
15
15
  warn
16
16
  } from "./index-zgwm4ryv.js";
17
17
  import {
18
18
  atomicWriteFile
19
- } from "./index-0dab9w37.js";
19
+ } from "./index-0p660a87.js";
20
20
  import {
21
21
  require_proper_lockfile
22
22
  } from "./index-vvk2g744.js";
@@ -3,13 +3,13 @@ import {
3
3
  atomicWriteFile,
4
4
  taskEvidencePath,
5
5
  withTaskEvidenceLock
6
- } from "./index-0dab9w37.js";
6
+ } from "./index-0p660a87.js";
7
7
  import {
8
8
  exports_external
9
9
  } from "./index-293f68mj.js";
10
10
  import {
11
11
  telemetry
12
- } from "./index-vn263hqt.js";
12
+ } from "./index-pa6t33pt.js";
13
13
 
14
14
  // src/gate-evidence.ts
15
15
  import { mkdirSync, readFileSync, realpathSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  emit
4
- } from "./index-vn263hqt.js";
4
+ } from "./index-pa6t33pt.js";
5
5
  import {
6
6
  require_proper_lockfile
7
7
  } from "./index-vvk2g744.js";