@herjarsa/omo-meta-governor 0.19.5 → 0.19.7

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,44 +1,16 @@
1
+ import type { Hooks, PluginInput, PluginOptions } from "@opencode-ai/plugin";
1
2
  /**
2
- * Dual-shape export for opencode plugin loader compatibility.
3
- *
4
- * The default export is simultaneously:
5
- * - a Plugin function: `default(input, options) => Promise<Hooks>`
6
- * - a PluginModule: `default.id`, `default.server(input, options)`
7
- *
8
- * `.server` points to the same callable as the default, so whichever
9
- * shape the opencode loader resolves, the factory fires exactly once.
3
+ * Plugin function shape: `default(input, options) => Hooks`.
4
+ * Also acts as PluginModule shape via the `.server` self-reference.
10
5
  */
11
- export declare const _pluginDual: Plugin & {
12
- id: string;
13
- server: Plugin;
14
- };
15
- export default _pluginDual;
16
- /**
17
- * Named alias of the dual-shape export. Some opencode plugin loaders
18
- * resolve plugins by named export rather than default — exposing both
19
- * covers that third hypothetical path with zero cost.
20
- */
21
- export declare const plugin: Plugin & {
22
- id: string;
23
- server: Plugin;
24
- };
25
- export { createMetaGovernorPlugin, type MetaGovernorPluginDeps } from "./plugin";
26
- export { logToFile } from "./file-logger";
27
- export { runMetaGovernor, buildDecisionContext, defaultOrchestratorConfig, } from "./orchestrator";
28
- export { loadOrchestratorConfig, isMetaGovernorEnabled, type MetaGovernorPluginConfig, } from "./config";
29
- export { score, defaultScoringConfig } from "./scoring-engine";
30
- export { predict, defaultTokenPredictorConfig, calculateBurnRate } from "./token-predictor";
31
- export { handleDecision, defaultDecisionHandlerConfig, trimHistory, countConsecutiveStops } from "./decision-handler";
32
- export { observeAndLearn, defaultClosedLoopConfig } from "./closed-loop-learning";
33
- export { aggregateRead } from "./memory-aggregator";
34
- export { recordRecovery, type RecoveryOutcome } from "./post-repair-recorder";
35
- export { storeDecision, takeDecision, hasDecision, takeAnyDecision, clearAll, } from "./decision-store";
6
+ declare function omoMetaGovernor(input: PluginInput, options?: PluginOptions): Promise<Hooks>;
7
+ export default omoMetaGovernor;
36
8
  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";
37
- export { loadProtocol, buildSystemInjection, auditToolCall, DEFAULT_PROTOCOL_PATH, } from "./protocol-enforcer";
38
- export { stripJsoncComments, parseJsonc, loadJsoncFile, deepMerge, loadMetaGovernorConfig, getUserConfigPath, getProjectConfigPath, type ConfigFileSources, type ConfigFileResult, } from "./config-file";
39
- export { runGraphSync, stopWatches, resetInitializedProjects, type GraphSyncConfig, type GraphSyncResult, type GraphSyncCode, type ToolAvailability, } from "./graph-sync";
40
- export { generateSchema, writeSchemaFile, type JsonSchema, type JsonSchemaProperty } from "./generate-schema";
41
- export { SqliteBackend, getDefaultSqliteBackend } from "./sqlite-backend";
42
- export { GraphRetrieval, getDefaultGraphRetrieval, hashQuery, type GraphToolKind, type GraphInvocationResult, type GraphRetrievalConfig, type InvokeOptions } from "./graph-retrieval";
43
- export { loadOrchestratorConfigFromSources } from "./config";
9
+ export type { ConfigFileSources, ConfigFileResult, } from "./config-file";
10
+ export type { GraphSyncConfig, GraphSyncResult, GraphSyncCode, ToolAvailability, } from "./graph-sync";
11
+ export type { JsonSchema, JsonSchemaProperty } from "./generate-schema";
12
+ export type { GraphToolKind, GraphInvocationResult, GraphRetrievalConfig, InvokeOptions } from "./graph-retrieval";
44
13
  export type { ProtocolViolation, ProtocolEnforcementSessionState } from "./types";
14
+ export type { MetaGovernorPluginConfig } from "./config";
15
+ export type { MetaGovernorPluginDeps } from "./plugin";
16
+ export type { RecoveryOutcome } from "./post-repair-recorder";