@herjarsa/omo-meta-governor 0.31.8 → 0.32.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
@@ -5,7 +5,7 @@
5
5
  > **12 custom tools** the agent can invoke across CodeGraph, Graphify,
6
6
  > AgentMemory, and SQLite — for cheaper, more accurate code understanding.
7
7
 
8
- **Current version:** `0.31.4` · **License:** MIT · **Status:** stable
8
+ **Current version:** `0.32.1` · **License:** MIT · **Status:** stable
9
9
 
10
10
  ---
11
11
 
package/dist/config.d.ts CHANGED
@@ -134,6 +134,19 @@ export interface MetaGovernorPluginConfig {
134
134
  trigger?: SkillPrimingTrigger;
135
135
  router?: SkillPrimingRouter;
136
136
  };
137
+ /** Skill hub config (v0.32.0): registry-backed catalog + hybrid search. */
138
+ skillHub?: {
139
+ enabled?: boolean;
140
+ syncIntervalMs?: number;
141
+ bootstrapUrl?: string;
142
+ searchFallbackUrl?: string;
143
+ downloadBaseUrl?: string;
144
+ embedBaseUrl?: string;
145
+ embedModel?: string;
146
+ minInstalls?: number;
147
+ filterDuplicates?: boolean;
148
+ depsCheck?: boolean;
149
+ };
137
150
  /** Post-wave workflow gate (v0.21.0): landing directives after Oracle-approved waves. */
138
151
  postWave?: PostWaveConfig;
139
152
  /**
@@ -495,4 +495,4 @@ export declare function buildOmoCliAnythingInfoTool(deps: OmoCliAnythingDeps): {
495
495
  name: string;
496
496
  }, context: ToolContext): Promise<ToolResult>;
497
497
  };
498
- export {};
498
+ export { buildOmoSkillFindTool, buildOmoSkillGetTool, buildOmoSkillAddTool } from "./skill-hub-tools";
@@ -0,0 +1,29 @@
1
+ /**
2
+ * EmbedClient (v0.32.0 F2a) — OpenAI-compatible /v1/embeddings wrapper.
3
+ *
4
+ * DI seam: injected `fetch` (defaults to global fetch) so tests can pass a
5
+ * mock without network. Cold-start: 30s per-attempt timeout + 1 retry on
6
+ * 503 or timeout. Empty input short-circuits without network.
7
+ */
8
+ export declare class EmbedTimeoutError extends Error {
9
+ name: string;
10
+ constructor(message: string);
11
+ }
12
+ export type FetchFn = (input: string, init?: RequestInit) => Promise<Response>;
13
+ export interface EmbedClientOptions {
14
+ baseUrl: string;
15
+ model: string;
16
+ fetch: FetchFn;
17
+ timeoutMs?: number;
18
+ retries?: number;
19
+ }
20
+ export declare class EmbedClient {
21
+ private readonly baseUrl;
22
+ private readonly model;
23
+ private readonly fetchFn;
24
+ private readonly timeoutMs;
25
+ private readonly retries;
26
+ constructor(opts: EmbedClientOptions);
27
+ embed(input: string): Promise<number[][]>;
28
+ embedBatch(inputs: readonly string[]): Promise<number[][]>;
29
+ }