@herjarsa/omo-meta-governor 0.50.0 → 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/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";