opencode-swarm 7.86.0 → 7.87.1

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 (63) hide show
  1. package/dist/cli/{capability-probe-jevmgwmf.js → capability-probe-wsjzcp48.js} +2 -2
  2. package/dist/cli/{config-doctor-zejarrr6.js → config-doctor-6h64pn8n.js} +4 -4
  3. package/dist/cli/{dispatch-k86d928w.js → dispatch-kb69qw40.js} +3 -3
  4. package/dist/cli/{evidence-summary-service-g2znnd33.js → evidence-summary-service-gg5m9z57.js} +4 -4
  5. package/dist/cli/{guardrail-explain-rtd1x26f.js → guardrail-explain-scym5r5y.js} +13 -13
  6. package/dist/cli/{guardrail-log-80116wmz.js → guardrail-log-eegabqcp.js} +5 -5
  7. package/dist/cli/{index-0sxvwjt0.js → index-1cb4wxnm.js} +2 -2
  8. package/dist/cli/{index-zfsbaaqh.js → index-5e4e2hvv.js} +1 -1
  9. package/dist/cli/{index-vq2321gg.js → index-5hvbw5xh.js} +2 -2
  10. package/dist/cli/{index-5cb86007.js → index-5vpe6vq9.js} +1 -1
  11. package/dist/cli/{index-red8fm8p.js → index-89xjr3h4.js} +1162 -214
  12. package/dist/cli/{index-f8r50m3h.js → index-adz3nk9b.js} +2 -2
  13. package/dist/cli/{index-jwz50183.js → index-dsjyfd3g.js} +14 -14
  14. package/dist/cli/{index-ckntc5gf.js → index-gn8n22th.js} +2 -2
  15. package/dist/cli/{index-5q66xc88.js → index-gwzpy671.js} +2699 -1403
  16. package/dist/cli/{index-hw9b2xng.js → index-q9h0wb04.js} +36 -3
  17. package/dist/cli/{index-d9fbxaqd.js → index-s8bj492g.js} +1 -1
  18. package/dist/cli/{index-7r2b453y.js → index-ts2j1wjr.js} +2 -2
  19. package/dist/cli/{index-hz59hg4h.js → index-v4fcn4tr.js} +1 -1
  20. package/dist/cli/{index-eb85wtx9.js → index-vqyfscxd.js} +2 -2
  21. package/dist/cli/{index-yx44zd0p.js → index-zgwm4ryv.js} +9 -1
  22. package/dist/cli/index.js +12 -12
  23. package/dist/cli/{pending-delegations-rd40tv9s.js → pending-delegations-35fvcj7z.js} +3 -3
  24. package/dist/cli/{pr-subscriptions-y1nn36e5.js → pr-subscriptions-b18n1yd8.js} +4 -4
  25. package/dist/cli/{schema-8d32b2v6.js → schema-84146tvk.js} +3 -1
  26. package/dist/cli/{skill-generator-a5ehggyg.js → skill-generator-3pvpk4y2.js} +2 -2
  27. package/dist/commands/coupling.d.ts +36 -0
  28. package/dist/commands/epic.d.ts +52 -0
  29. package/dist/commands/registry.d.ts +18 -2
  30. package/dist/config/constants.d.ts +1 -0
  31. package/dist/config/schema.d.ts +145 -0
  32. package/dist/git/branch.d.ts +22 -1
  33. package/dist/hooks/delegation-gate/worktree-merge-status.d.ts +86 -0
  34. package/dist/index.js +8577 -5858
  35. package/dist/memory/schema.d.ts +3 -3
  36. package/dist/memory/scoring.d.ts +18 -0
  37. package/dist/memory/sqlite-provider.d.ts +10 -0
  38. package/dist/plan/manager.d.ts +10 -0
  39. package/dist/state.d.ts +16 -0
  40. package/dist/tools/epic-plan-waves.d.ts +79 -0
  41. package/dist/tools/epic-record-divergence.d.ts +73 -0
  42. package/dist/tools/epic-run-phase.d.ts +179 -0
  43. package/dist/tools/index.d.ts +3 -0
  44. package/dist/tools/manifest.d.ts +3 -0
  45. package/dist/tools/tool-metadata.d.ts +12 -0
  46. package/dist/turbo/epic/activation.d.ts +193 -0
  47. package/dist/turbo/epic/calibration-engine.d.ts +88 -0
  48. package/dist/turbo/epic/calibration.d.ts +65 -0
  49. package/dist/turbo/epic/cochange-conflict.d.ts +79 -0
  50. package/dist/turbo/epic/cochange-source.d.ts +80 -0
  51. package/dist/turbo/epic/coupling-report.d.ts +85 -0
  52. package/dist/turbo/epic/divergence-recorder.d.ts +112 -0
  53. package/dist/turbo/epic/index.d.ts +24 -0
  54. package/dist/turbo/epic/promotion-evidence.d.ts +42 -0
  55. package/dist/turbo/epic/state.d.ts +85 -0
  56. package/dist/turbo/epic/task-commit.d.ts +110 -0
  57. package/dist/turbo/epic/upstream-commits.d.ts +82 -0
  58. package/dist/turbo/epic/wave-planner.d.ts +83 -0
  59. package/dist/turbo/lean/partition-common.d.ts +85 -0
  60. package/dist/turbo/lean/planner.d.ts +12 -20
  61. package/dist/utils/index.d.ts +1 -1
  62. package/dist/utils/logger.d.ts +19 -0
  63. package/package.json +1 -1
@@ -48,27 +48,10 @@
48
48
  * before conflict detection. This ensures consistent behavior across platforms.
49
49
  */
50
50
  import type { LeanTurboConfig } from '../../config/schema';
51
+ import { type PlanPhase } from './partition-common';
51
52
  import type { LeanTurboCounters, LeanTurboDegradedTask, LeanTurboLane } from './state';
52
53
  export { GLOBAL_FILES_LIST, isGlobalFile, isPathSafe, isProtectedPath, normalizePath, PROTECTED_PATTERNS_LIST, pathsConflict, readTaskScopes, } from './conflicts';
53
- /**
54
- * A single task within a plan phase.
55
- * Matches the structure stored in .swarm/plan.json.
56
- */
57
- export interface PlanTask {
58
- id: string;
59
- description: string;
60
- status: 'pending' | 'in_progress' | 'completed' | 'blocked';
61
- depends?: string[];
62
- files_touched?: string[];
63
- }
64
- /**
65
- * A phase within a plan, containing multiple tasks.
66
- */
67
- export interface PlanPhase {
68
- id: number;
69
- name: string;
70
- tasks: PlanTask[];
71
- }
54
+ export type { PlanPhase, PlanTask } from './partition-common';
72
55
  /**
73
56
  * The complete lane plan produced by `planLeanTurboLanes`.
74
57
  * Describes how phase tasks are partitioned into parallel lanes.
@@ -108,8 +91,17 @@ export interface LeanTurboLanePlan {
108
91
  * @param plan - The full plan object (from .swarm/plan.json)
109
92
  * @param config - Lean Turbo configuration
110
93
  * @param scopes - Optional pre-loaded scopes map (taskId -> file paths)
94
+ * @param isUpstreamCommitted - Optional Rule-3 predicate (greenfield-smart
95
+ * redesign). When supplied, a cross-batch dependency (a `depends:`
96
+ * upstream not present in this planning call's task set — typically
97
+ * completed in a prior phase) is treated as satisfied **only** if
98
+ * the predicate returns `true`. Production callers build this from
99
+ * `buildIsUpstreamCommitted(directory)` so the check resolves to
100
+ * "is there a `swarm(task <id>)` commit in HEAD". When undefined
101
+ * the planner falls back to its legacy behavior (cross-batch deps
102
+ * are implicitly satisfied) for backward compatibility.
111
103
  * @returns Complete lane plan with lanes, degraded tasks, and counters
112
104
  */
113
105
  export declare function planLeanTurboLanes(directory: string, phaseNumber: number, plan: {
114
106
  phases: PlanPhase[];
115
- }, config: LeanTurboConfig, scopes?: Record<string, string[]>): LeanTurboLanePlan;
107
+ }, config: LeanTurboConfig, scopes?: Record<string, string[]>, isUpstreamCommitted?: (taskId: string) => boolean): LeanTurboLanePlan;
@@ -1,4 +1,4 @@
1
1
  export { CLIError, ConfigError, HookError, SwarmError, ToolError, } from './errors';
2
- export { error, log, warn } from './logger';
2
+ export { criticalWarn, error, log, warn } from './logger';
3
3
  export { deepMerge, MAX_MERGE_DEPTH } from './merge';
4
4
  export { escapeRegex, simpleGlobToRegex } from './regex';
@@ -1,6 +1,24 @@
1
1
  declare function isDebug(): boolean;
2
2
  export declare function log(message: string, data?: unknown): void;
3
3
  export declare function warn(message: string, data?: unknown): void;
4
+ /**
5
+ * Phase 15 (B34): ALWAYS-EMITTED warning. Use this — not `warn()` — for
6
+ * signals the operator MUST see during a live benchmark or production
7
+ * run: Rule 2 commit failures, Phase 10 predecessor-evidence anomalies,
8
+ * Phase 13 git-log-degraded states, Phase 14 lane-planning-blocked
9
+ * correlations against `epic-promotions.jsonl`, phantom-dep typos.
10
+ *
11
+ * Rationale: `warn()` is gated behind `OPENCODE_SWARM_DEBUG=1`. Until
12
+ * Phase 15 every diagnostic signal Phases 0-14 added was silenced
13
+ * outside debug runs — including the audit-trail correlation log that
14
+ * makes B22 wedges detectable. That defeats the whole point of those
15
+ * signals.
16
+ *
17
+ * `criticalWarn` writes to stderr (so it survives stdout redirection
18
+ * for grading scripts) with a `CRITICAL-WARN` tag distinct from
19
+ * regular `WARN` so log scrapers can filter for must-act-on lines.
20
+ */
21
+ export declare function criticalWarn(message: string, data?: unknown): void;
4
22
  export declare function error(message: string, data?: unknown): void;
5
23
  /**
6
24
  * DI seam for testability. Contains all test-mocked exports.
@@ -10,6 +28,7 @@ export declare const _internals: {
10
28
  isDebug: typeof isDebug;
11
29
  log: typeof log;
12
30
  warn: typeof warn;
31
+ criticalWarn: typeof criticalWarn;
13
32
  error: typeof error;
14
33
  };
15
34
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.86.0",
3
+ "version": "7.87.1",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",