@darkhorseprojects/circuitry 0.3.0 → 0.3.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.
package/dist/node.d.ts CHANGED
@@ -1,16 +1,21 @@
1
1
  import type { CircuitryHost } from "./host";
2
2
  import type { CircuitryGraph, CircuitryRuntimeInputs, CircuitryValidationStandard } from "./graph";
3
3
  import type { NodeExecutionRequest, NodeExecutionResult, SimulationRunItem } from "./simulation";
4
- export declare const runNodeWithPiSDK: ({ model, prompt, images, tools, thinkingLevel, }: NodeExecutionRequest) => Promise<NodeExecutionResult>;
4
+ export declare const runNodeWithPiSDK: ({ model, prompt, images, tools, }: NodeExecutionRequest) => Promise<NodeExecutionResult>;
5
+ export type CircuitryResourceOrigins = Record<string, string>;
6
+ export type LoadedCircuitryGraph = {
7
+ filename: string;
8
+ text: string;
9
+ graph: CircuitryGraph;
10
+ origins: CircuitryResourceOrigins;
11
+ };
12
+ export declare const loadCircuitryGraphFile: (filename?: string, standard?: CircuitryValidationStandard, stack?: string[]) => Promise<LoadedCircuitryGraph>;
5
13
  export declare class NodeCircuitryHost implements CircuitryHost {
6
14
  private resolveGraphFile;
7
15
  private runFileFor;
8
16
  private exists;
9
17
  private parseIssue;
10
- private parseGraphForValidation;
11
- private resolveGraphImports;
12
- /** Rewrite inputs in imported resource to use aliased resource ids. */
13
- private rewriteImportInputs;
18
+ private parseSourceGraph;
14
19
  private parseAndResolveGraph;
15
20
  private readGraphFile;
16
21
  readGraph(input?: {
@@ -19,7 +24,7 @@ export declare class NodeCircuitryHost implements CircuitryHost {
19
24
  filename: string;
20
25
  graph: CircuitryGraph;
21
26
  text: string;
22
- lastRun: any;
27
+ lastRun: unknown;
23
28
  }>;
24
29
  validateGraph(input: {
25
30
  text?: string;