@herjarsa/omo-meta-governor 0.49.1 → 0.50.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.
package/README.md CHANGED
@@ -53,6 +53,19 @@ Add as a plugin in your OpenCode config (`~/.config/opencode/opencode.jsonc`):
53
53
  }
54
54
  ```
55
55
 
56
+ ### OpenCode V2 compat (v0.50.0+, dual V1+V2)
57
+
58
+ One package serves both runtimes. V1 (`1.18.x`, `plugin` key) uses the classic
59
+ function entrypoint; V2 (OpenChamber v2 / opencode v2, `plugins` key) uses the
60
+ bridged `setup()` (same scoring, decisions, tools, session-start protocol).
61
+ No config change needed — `omo-meta-governor.jsonc` is read identically, and the
62
+ V1 `plugin` config key is normalized automatically by V2.
63
+
64
+ V2 limitations (no V2 hook equivalent per the official migration guide, logged
65
+ at setup, V1-only for now): `command.execute.before` command-filter,
66
+ `experimental.provider.small_model` override, `experimental.compaction.autocontinue`
67
+ overflow loop guard.
68
+
56
69
  ### Plugin configuration (`omo-meta-governor.jsonc`)
57
70
 
58
71
  The plugin reads its detailed configuration from `omo-meta-governor.jsonc`
@@ -646,9 +659,9 @@ All configuration lives under the `meta_governor` key in
646
659
 
647
660
  | Field | Type | Default | Description |
648
661
  |-------|------|---------|-------------|
649
- | `enabled` | boolean | `false` | Master switch. |
662
+ | `enabled` | boolean | `true` | Master switch (v0.33.1+: defaults on). |
650
663
  | `trigger` | enum | `'firstImplement'` | `'sessionStart'` (first transform) or `'firstImplement'` (once write-like tool observed). |
651
- | `router` | enum | `'both'` | `'aas'` \| `'superpowers'` \| `'both'`. |
664
+ | `router` | enum | `'registry'` | `'registry'` (skill-hub, standalone) \| `'superpowers'` \| `'both'`. v0.50.0: `"both"`/`"superpowers"` delegate via `task(load_skills=[...])` and require the superpowers plugin installed separately — without it only the registry half (`omo_skill_find/get/add`) operates. `'aas'` is deprecated, aliased to `'registry'`. |
652
665
 
653
666
  ### `graphSync`
654
667
 
package/dist/index.d.ts CHANGED
@@ -1,10 +1,17 @@
1
1
  import type { Hooks, PluginInput, PluginOptions } from "@opencode-ai/plugin";
2
+ import { Plugin as V2Plugin } from "@opencode/plugin";
2
3
  /**
3
- * Plugin function shape: `default(input, options) => Hooks`.
4
- * Also acts as PluginModule shape via the `.server` self-reference.
4
+ * V1 server shape: `(input, options) => Hooks` (PluginModule.server).
5
+ * Invokes the factory with the loader-provided input so the returned
6
+ * value is the HOOKS object (tool.execute.after, ...), not the factory.
5
7
  */
6
- declare function omoMetaGovernor(input: PluginInput, options?: PluginOptions): Promise<Hooks>;
7
- export default omoMetaGovernor;
8
+ declare function omoMetaGovernorServer(input: PluginInput, options?: PluginOptions): Promise<Hooks>;
9
+ declare const omoMetaGovernorDual: {
10
+ setup: (context: V2Plugin.Context) => Promise<V2Plugin.Cleanup | void> | V2Plugin.Cleanup | void;
11
+ id: string;
12
+ server: typeof omoMetaGovernorServer;
13
+ };
14
+ export default omoMetaGovernorDual;
8
15
  export type { Decision, DecisionContext, DecisionHandlerConfig, DecisionHandlerInput, DecisionHandlerOutput, Deviation, Evidence, EvidenceContribution, InterventionConfig, InterventionMode, LearnFromOutcomeInput, LearnFromOutcomeOutput, MemoryRead, MemoryBackends, AgentmemoryWriteBackend, MetaGovernorInput, MetaGovernorOutput, OrchestratorConfig, ScoringConfig, ScoringResult, SlotMemory, TokenPredictorConfig, TokenPredictorInput, TokenPredictorOutput, ClosedLoopConfig, } from "./types";
9
16
  export type { ConfigFileSources, ConfigFileResult, } from "./config-file";
10
17
  export type { GraphSyncConfig, GraphSyncResult, GraphSyncCode, ToolAvailability, } from "./graph-sync";