diff --git a/src/cli.ts b/src/cli.ts index 4847893..ca17bc2 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -55,12 +55,13 @@ async function demonstrateNestedManifold(): Promise { { text: 'analyze the results', description: 'Main: Data Analysis' }, { text: 'transform the output', description: 'Main: Data Transformation' }, ]; - - for (const { text, description } of prompts) { + const errorSink = []; + for (const { text } of prompts) { try { - const navigated = await mainManifold.navigate(text); - const executed = await mainManifold.executeWorkflow(text); + await mainManifold.navigate(text); + await mainManifold.executeWorkflow(text); } catch (error) { + errorSink.push(error); // Handle errors silently in demo } } diff --git a/src/index.ts b/src/index.ts index f8d13ef..6d752f8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,6 @@ import { log } from './logger'; - +import "./types"; +import { IntentResult, WorkflowState } from './types'; export class DummyIntentMap { async query(prompt: string): Promise { log.debug(`Processing intent query for prompt: ${prompt}`); @@ -63,7 +64,7 @@ export class ManifoldRegion { region.adjacentRegions.add(this); } - async getValidOperators(state: WorkflowState): Promise { + async getValidOperators(_state: WorkflowState): Promise { log.debug(`Getting valid operators for region ${this.name}`); return this.operators; } diff --git a/src/types.d.ts b/src/types.d.ts index b89b719..9c3dea2 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1,5 +1,5 @@ // src/types.d.ts -interface WorkflowState { +export interface WorkflowState { [key: string]: unknown; validated?: boolean; cleaned?: boolean; @@ -12,7 +12,7 @@ interface WorkflowState { step2?: boolean; } -interface IntentResult { +export interface IntentResult { confidence: number; action: string; } \ No newline at end of file