@herjarsa/omo-meta-governor 0.14.0 → 0.14.2

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.
@@ -216,3 +216,79 @@ export declare function buildOmoNoteTool(deps: OmoNoteDeps): {
216
216
  surfaceCondition?: string | undefined;
217
217
  }, context: ToolContext): Promise<ToolResult>;
218
218
  };
219
+ export interface OmoPathDeps {
220
+ cwd: string;
221
+ }
222
+ /**
223
+ * Build the `omo_path` tool. Finds shortest path between two concepts
224
+ * in the graphify knowledge graph. Uses `graphify path <A> <B>`.
225
+ */
226
+ export declare function buildOmoPathTool(deps: OmoPathDeps): {
227
+ description: string;
228
+ args: {
229
+ from: import("zod").ZodString;
230
+ to: import("zod").ZodString;
231
+ };
232
+ execute(args: {
233
+ from: string;
234
+ to: string;
235
+ }, context: ToolContext): Promise<ToolResult>;
236
+ };
237
+ export interface OmoExplainDeps {
238
+ cwd: string;
239
+ }
240
+ /**
241
+ * Build the `omo_explain` tool. Provides a plain-language explanation of a
242
+ * concept by querying the graphify knowledge graph. Uses `graphify explain <concept>`.
243
+ */
244
+ export declare function buildOmoExplainTool(deps: OmoExplainDeps): {
245
+ description: string;
246
+ args: {
247
+ concept: import("zod").ZodString;
248
+ };
249
+ execute(args: {
250
+ concept: string;
251
+ }, context: ToolContext): Promise<ToolResult>;
252
+ };
253
+ export interface OmoOutlineDeps {
254
+ cwd: string;
255
+ }
256
+ /**
257
+ * Build the `omo_outline` tool. Returns the structural outline of a file
258
+ * or directory using AFT. Falls back gracefully if AFT is not installed.
259
+ */
260
+ export declare function buildOmoOutlineTool(deps: OmoOutlineDeps): {
261
+ description: string;
262
+ args: {
263
+ target: import("zod").ZodString;
264
+ };
265
+ execute(args: {
266
+ target: string;
267
+ }, context: ToolContext): Promise<ToolResult>;
268
+ };
269
+ export interface OmoCheckpointDeps {
270
+ }
271
+ /**
272
+ * Build the `omo_checkpoint` tool. Creates a named AFT checkpoint so the
273
+ * user can revert to a known good state. Uses `aft safety checkpoint --name <name>`.
274
+ */
275
+ export declare function buildOmoCheckpointTool(_deps: OmoCheckpointDeps): {
276
+ description: string;
277
+ args: {
278
+ name: import("zod").ZodString;
279
+ };
280
+ execute(args: {
281
+ name: string;
282
+ }, context: ToolContext): Promise<ToolResult>;
283
+ };
284
+ export interface OmoUndoDeps {
285
+ }
286
+ /**
287
+ * Build the `omo_undo` tool. Reverts tracked files to the most recent AFT
288
+ * checkpoint. Uses `aft safety undo`.
289
+ */
290
+ export declare function buildOmoUndoTool(_deps: OmoUndoDeps): {
291
+ description: string;
292
+ args: {};
293
+ execute(args: Record<string, never>, context: ToolContext): Promise<ToolResult>;
294
+ };
@@ -114,6 +114,40 @@ export declare class GraphRetrieval {
114
114
  * Returns null result if codegraph is not available.
115
115
  */
116
116
  private invokeCodegraphSubcommand;
117
+ /**
118
+ * Find the shortest conceptual path between two concepts.
119
+ * Runs `graphify path <from> <to>`.
120
+ * Returns null if graphify is not available.
121
+ */
122
+ invokePath(from: string, to: string, projectDir: string, options?: InvokeOptions): Promise<GraphInvocationResult>;
123
+ /**
124
+ * Get a plain-language explanation of a concept from the knowledge graph.
125
+ * Runs `graphify explain <concept>`.
126
+ * Returns null if graphify is not available.
127
+ */
128
+ invokeExplain(concept: string, projectDir: string, options?: InvokeOptions): Promise<GraphInvocationResult>;
129
+ /**
130
+ * Get a structural outline of a file or directory.
131
+ * Runs `aft outline <path>`.
132
+ */
133
+ invokeAFTOutline(targetPath: string, options?: InvokeOptions): Promise<GraphInvocationResult>;
134
+ /**
135
+ * Find a symbol by name.
136
+ * Runs `aft zoom <symbol>`.
137
+ */
138
+ invokeAFTZoom(symbol: string, options?: InvokeOptions): Promise<GraphInvocationResult>;
139
+ /**
140
+ * Create a named checkpoint via AFT.
141
+ * Runs `aft safety checkpoint --name <name>`.
142
+ */
143
+ invokeAFTCheckpoint(name: string, options?: InvokeOptions): Promise<GraphInvocationResult>;
144
+ /**
145
+ * Undo the last change via AFT.
146
+ * Runs `aft safety undo`.
147
+ */
148
+ invokeAFTUndo(options?: InvokeOptions): Promise<GraphInvocationResult>;
149
+ private invokeGraphifySubcommand;
150
+ private invokeAFTSubcommand;
117
151
  }
118
152
  /** Returns the process-wide singleton, creating it on first use. */
119
153
  export declare function getDefaultGraphRetrieval(): GraphRetrieval;