@herjarsa/omo-meta-governor 0.21.0 → 0.22.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.
package/README.md CHANGED
@@ -118,6 +118,18 @@ MetaGovernor wires the plugin into the native git hooks of **codegraph** and
118
118
  - **Backup path** (plugin's `tool.execute.after`): detects `git commit` in
119
119
  bash commands and runs `codegraph sync -q [path]`.
120
120
 
121
+ ### Process zombie safeguards (v0.22.0)
122
+
123
+ Every subprocess the plugin spawns (graphify, codegraph, `aft`, npx, python,
124
+ npm/pip) is guaranteed to die after use — on success, error, AND timeout —
125
+ including its descendant tree. On Windows this uses `taskkill /pid <pid> /T /F`
126
+ (plain `child.kill()` only kills the direct shell, orphaning grandchildren —
127
+ the confirmed cause of the Bun/OpenChamber crashes).
128
+
129
+ Config: `graphSync.killOrphanedOnInit` (default `true`) — on graph-sync init
130
+ the plugin sweeps orphaned `graphify`/`codegraph`/`aft` processes left by
131
+ previous crashed runs. Set to `false` to disable the sweep.
132
+
121
133
  ## Intervention
122
134
 
123
135
  MetaGovernor can inject governance decisions into the agent's context.
@@ -673,11 +685,12 @@ XDG-isolated opencode run (`opencode run` with custom config pointing at `@herja
673
685
  - v0.19.6 (cache populated): log shows `MetaGovernor plugin loaded` only — **no `factory_invoked`**, intervention never runs.
674
686
  - v0.19.7 (cache cleared, reinstalled): log shows full chain:
675
687
  ```
676
- [meta-governor] MetaGovernor plugin loaded
677
- [meta-governor] factory_invoked
688
+ [meta-governor] v0.21.1 MetaGovernor plugin loaded
689
+ [meta-governor] v0.21.1 factory_invoked
678
690
  [meta-governor] SessionBridge: OpenCode client hydrated — session.prompt() available
679
- [meta-governor] config_loaded
691
+ [meta-governor] v0.21.1 config_loaded
680
692
  ```
693
+ > **Note (v0.21.1+)**: every init log line now prepends `v<DEFAULT_VERSION>` (read from `package.json` at build time by Bun). Use this prefix to confirm which release OpenChamber actually loaded — a stale npm cache could otherwise serve an older bundle silently because `@latest` does not force re-fetch if the cache is still valid.
681
694
 
682
695
  Updated `~/.cache/opencode/packages/@herjarsa/omo-meta-governor@latest/node_modules/@herjarsa/omo-meta-governor/package.json` now reads `exports."."` = `{ types: "./dist/index.d.ts", import: "./dist/index.js" }` and `peerDependencies` = `{ "@opencode-ai/plugin": ">=1.0.0" }`.
683
696
 
package/dist/config.d.ts CHANGED
@@ -84,6 +84,9 @@ export interface MetaGovernorPluginConfig {
84
84
  watch?: boolean;
85
85
  autoInstall?: boolean;
86
86
  installTimeoutMs?: number;
87
+ /** v0.22.0: when true, graph-sync init sweeps orphaned graphify/codegraph/aft
88
+ * processes left by previous crashed runs. Default true. */
89
+ killOrphanedOnInit?: boolean;
87
90
  };
88
91
  /** Skill priming config (v0.20.0): proactive skill-selection nudge. */
89
92
  skillPriming?: {
@@ -40,6 +40,9 @@ export interface GraphSyncConfig {
40
40
  * never spawn real npx/pip/graphify in hermetic tests (CI Windows: the
41
41
  * npx download + 4 fallbacks exceeded the 30s test timeout). */
42
42
  runner?: typeof execSync;
43
+ /** v0.22.0: when true, graph-sync init sweeps orphaned graphify/codegraph/aft
44
+ * processes left by previous crashed runs. Default true. */
45
+ killOrphanedOnInit?: boolean;
43
46
  }
44
47
  export type InstallCode = "codegraph-installed" | "codegraph-install-failed" | "codegraph-install-skipped" | "graphify-installed" | "graphify-install-failed" | "graphify-install-skipped";
45
48
  /**