@ghchinoy/litflow 0.2.8 → 0.4.0
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/CHANGELOG.md +12 -4
- package/dist/breadboard/data/common.d.ts +35 -0
- package/dist/breadboard/data/file-system.d.ts +9 -0
- package/dist/breadboard/data/inline-all-content.d.ts +8 -0
- package/dist/breadboard/data/recent-boards.d.ts +17 -0
- package/dist/breadboard/data/save-outputs-as-file.d.ts +9 -0
- package/dist/breadboard/engine/add-run-module.d.ts +9 -0
- package/dist/breadboard/engine/editor/blank.d.ts +15 -0
- package/dist/breadboard/engine/editor/edge.d.ts +8 -0
- package/dist/breadboard/engine/editor/events.d.ts +34 -0
- package/dist/breadboard/engine/editor/graph.d.ts +18 -0
- package/dist/breadboard/engine/editor/history.d.ts +21 -0
- package/dist/breadboard/engine/editor/index.d.ts +6 -0
- package/dist/breadboard/engine/editor/operations/add-asset.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/add-edge.d.ts +11 -0
- package/dist/breadboard/engine/editor/operations/add-graph.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/add-module.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/add-node.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-asset-metadata.d.ts +11 -0
- package/dist/breadboard/engine/editor/operations/change-configuration.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-edge-metadata.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-edge.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/change-graph-metadata.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/change-metadata.d.ts +11 -0
- package/dist/breadboard/engine/editor/operations/change-module.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/error.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/remove-asset.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-edge.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-graph.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-integration.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-module.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/remove-node.d.ts +10 -0
- package/dist/breadboard/engine/editor/operations/replace-graph.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/toggle-export.d.ts +9 -0
- package/dist/breadboard/engine/editor/operations/upsert-integration.d.ts +10 -0
- package/dist/breadboard/engine/editor/selection.d.ts +16 -0
- package/dist/breadboard/engine/editor/transforms/configure-sidewire.d.ts +15 -0
- package/dist/breadboard/engine/editor/transforms/isolate-selection.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/merge-graph.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/move-to-graph.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/move-to-new-graph.d.ts +12 -0
- package/dist/breadboard/engine/editor/transforms/sidewire-to-new-graph.d.ts +72 -0
- package/dist/breadboard/engine/file-system/blob-transform.d.ts +8 -0
- package/dist/breadboard/engine/file-system/composed-peristent-backend.d.ts +8 -0
- package/dist/breadboard/engine/file-system/ephemeral-blob-store.d.ts +8 -0
- package/dist/breadboard/engine/file-system/in-memory-blob-store.d.ts +18 -0
- package/dist/breadboard/engine/file-system/index.d.ts +22 -0
- package/dist/breadboard/engine/file-system/partial-persistent-backend.d.ts +19 -0
- package/dist/breadboard/engine/file-system/path.d.ts +23 -0
- package/dist/breadboard/engine/file-system/persistent-file.d.ts +19 -0
- package/dist/breadboard/engine/file-system/readable-stream-file.d.ts +17 -0
- package/dist/breadboard/engine/file-system/stub-file-system.d.ts +18 -0
- package/dist/breadboard/engine/file-system/utils.d.ts +9 -0
- package/dist/breadboard/engine/inspector/graph/bubbled-node.d.ts +34 -0
- package/dist/breadboard/engine/inspector/graph/describe-cache.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/describe-type-cache.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/edge-cache.d.ts +22 -0
- package/dist/breadboard/engine/inspector/graph/edge.d.ts +40 -0
- package/dist/breadboard/engine/inspector/graph/event.d.ts +16 -0
- package/dist/breadboard/engine/inspector/graph/exports-describer.d.ts +13 -0
- package/dist/breadboard/engine/inspector/graph/graph-cache.d.ts +18 -0
- package/dist/breadboard/engine/inspector/graph/graph-describer-manager.d.ts +21 -0
- package/dist/breadboard/engine/inspector/graph/graph-descriptor-handle.d.ts +17 -0
- package/dist/breadboard/engine/inspector/graph/graph-node-type.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/graph-queries.d.ts +31 -0
- package/dist/breadboard/engine/inspector/graph/graph.d.ts +37 -0
- package/dist/breadboard/engine/inspector/graph/inspectable-asset.d.ts +17 -0
- package/dist/breadboard/engine/inspector/graph/kits.d.ts +15 -0
- package/dist/breadboard/engine/inspector/graph/module.d.ts +14 -0
- package/dist/breadboard/engine/inspector/graph/mutable-graph.d.ts +26 -0
- package/dist/breadboard/engine/inspector/graph/node-cache.d.ts +20 -0
- package/dist/breadboard/engine/inspector/graph/node-describer-manager.d.ts +25 -0
- package/dist/breadboard/engine/inspector/graph/node-type-describer-manager.d.ts +19 -0
- package/dist/breadboard/engine/inspector/graph/node.d.ts +27 -0
- package/dist/breadboard/engine/inspector/graph/port-cache.d.ts +18 -0
- package/dist/breadboard/engine/inspector/graph/ports.d.ts +16 -0
- package/dist/breadboard/engine/inspector/graph/schemas.d.ts +24 -0
- package/dist/breadboard/engine/inspector/graph/virtual-node.d.ts +35 -0
- package/dist/breadboard/engine/inspector/graph-store.d.ts +45 -0
- package/dist/breadboard/engine/inspector/index.d.ts +7 -0
- package/dist/breadboard/engine/inspector/utils.d.ts +9 -0
- package/dist/breadboard/engine/loader/capability.d.ts +21 -0
- package/dist/breadboard/engine/loader/index.d.ts +7 -0
- package/dist/breadboard/engine/loader/loader.d.ts +29 -0
- package/dist/breadboard/engine/loader/resolve-graph-urls.d.ts +16 -0
- package/dist/breadboard/engine/runtime/bubble.d.ts +23 -0
- package/dist/breadboard/engine/runtime/graph-based-node-handler.d.ts +16 -0
- package/dist/breadboard/engine/runtime/handler.d.ts +27 -0
- package/dist/breadboard/engine/runtime/harness/diagnostics.d.ts +12 -0
- package/dist/breadboard/engine/runtime/harness/events.d.ts +145 -0
- package/dist/breadboard/engine/runtime/harness/index.d.ts +8 -0
- package/dist/breadboard/engine/runtime/harness/local.d.ts +10 -0
- package/dist/breadboard/engine/runtime/harness/plan-runner.d.ts +25 -0
- package/dist/breadboard/engine/runtime/index.d.ts +6 -0
- package/dist/breadboard/engine/runtime/legacy.d.ts +11 -0
- package/dist/breadboard/engine/runtime/run/invoke-graph.d.ts +12 -0
- package/dist/breadboard/engine/runtime/run/node-invoker.d.ts +12 -0
- package/dist/breadboard/engine/runtime/run/run-graph.d.ts +12 -0
- package/dist/breadboard/engine/runtime/run.d.ts +29 -0
- package/dist/breadboard/engine/runtime/sandbox/capabilities-manager.d.ts +15 -0
- package/dist/breadboard/engine/runtime/sandbox/file-system-handler-factory.d.ts +15 -0
- package/dist/breadboard/engine/runtime/sandbox/invoke-describer.d.ts +10 -0
- package/dist/breadboard/engine/runtime/static/condense.d.ts +25 -0
- package/dist/breadboard/engine/runtime/static/create-plan.d.ts +14 -0
- package/dist/breadboard/engine/runtime/static/nodes-to-subgraph.d.ts +18 -0
- package/dist/breadboard/engine/runtime/static/orchestrator.d.ts +72 -0
- package/dist/breadboard/engine/runtime/static/types.d.ts +72 -0
- package/dist/breadboard/engine/runtime/traversal/index.d.ts +20 -0
- package/dist/breadboard/engine/runtime/traversal/iterator.d.ts +12 -0
- package/dist/breadboard/engine/runtime/traversal/machine.d.ts +14 -0
- package/dist/breadboard/engine/runtime/traversal/representation.d.ts +27 -0
- package/dist/breadboard/engine/runtime/traversal/result.d.ts +24 -0
- package/dist/breadboard/engine/runtime/traversal/state.d.ts +34 -0
- package/dist/breadboard/engine/telemetry.d.ts +25 -0
- package/dist/breadboard/engine/types.d.ts +9 -0
- package/dist/breadboard/lit-flow-runner.d.ts +13 -0
- package/dist/breadboard/lit-flow-runner.test.d.ts +1 -0
- package/dist/breadboard/runner.d.ts +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/lit-chiclet.d.ts +9 -0
- package/dist/lit-flow.d.ts +13 -0
- package/dist/lit-schema-node.d.ts +13 -0
- package/dist/lit-schema-node.test.d.ts +1 -0
- package/dist/litflow.js +6173 -658
- package/dist/litflow.js.map +1 -1
- package/package.json +33 -3
- package/src/breadboard/data/common.ts +450 -0
- package/src/breadboard/data/file-system.ts +54 -0
- package/src/breadboard/data/inline-all-content.ts +126 -0
- package/src/breadboard/data/recent-boards.ts +118 -0
- package/src/breadboard/data/save-outputs-as-file.ts +104 -0
- package/src/breadboard/engine/add-run-module.ts +168 -0
- package/src/breadboard/engine/editor/blank.ts +65 -0
- package/src/breadboard/engine/editor/edge.ts +27 -0
- package/src/breadboard/engine/editor/events.ts +64 -0
- package/src/breadboard/engine/editor/graph.ts +383 -0
- package/src/breadboard/engine/editor/history.ts +98 -0
- package/src/breadboard/engine/editor/index.ts +8 -0
- package/src/breadboard/engine/editor/operations/add-asset.ts +45 -0
- package/src/breadboard/engine/editor/operations/add-edge.ts +142 -0
- package/src/breadboard/engine/editor/operations/add-graph.ts +47 -0
- package/src/breadboard/engine/editor/operations/add-module.ts +64 -0
- package/src/breadboard/engine/editor/operations/add-node.ts +86 -0
- package/src/breadboard/engine/editor/operations/change-asset-metadata.ts +70 -0
- package/src/breadboard/engine/editor/operations/change-configuration.ts +82 -0
- package/src/breadboard/engine/editor/operations/change-edge-metadata.ts +58 -0
- package/src/breadboard/engine/editor/operations/change-edge.ts +111 -0
- package/src/breadboard/engine/editor/operations/change-graph-metadata.ts +52 -0
- package/src/breadboard/engine/editor/operations/change-metadata.ts +92 -0
- package/src/breadboard/engine/editor/operations/change-module.ts +64 -0
- package/src/breadboard/engine/editor/operations/error.ts +21 -0
- package/src/breadboard/engine/editor/operations/remove-asset.ts +48 -0
- package/src/breadboard/engine/editor/operations/remove-edge.ts +89 -0
- package/src/breadboard/engine/editor/operations/remove-graph.ts +49 -0
- package/src/breadboard/engine/editor/operations/remove-integration.ts +54 -0
- package/src/breadboard/engine/editor/operations/remove-module.ts +69 -0
- package/src/breadboard/engine/editor/operations/remove-node.ts +86 -0
- package/src/breadboard/engine/editor/operations/replace-graph.ts +52 -0
- package/src/breadboard/engine/editor/operations/toggle-export.ts +72 -0
- package/src/breadboard/engine/editor/operations/upsert-integration.ts +43 -0
- package/src/breadboard/engine/editor/selection.ts +58 -0
- package/src/breadboard/engine/editor/transforms/configure-sidewire.ts +73 -0
- package/src/breadboard/engine/editor/transforms/isolate-selection.ts +54 -0
- package/src/breadboard/engine/editor/transforms/merge-graph.ts +58 -0
- package/src/breadboard/engine/editor/transforms/move-to-graph.ts +102 -0
- package/src/breadboard/engine/editor/transforms/move-to-new-graph.ts +72 -0
- package/src/breadboard/engine/editor/transforms/sidewire-to-new-graph.ts +82 -0
- package/src/breadboard/engine/file-system/blob-transform.ts +44 -0
- package/src/breadboard/engine/file-system/composed-peristent-backend.ts +140 -0
- package/src/breadboard/engine/file-system/ephemeral-blob-store.ts +46 -0
- package/src/breadboard/engine/file-system/in-memory-blob-store.ts +87 -0
- package/src/breadboard/engine/file-system/index.ts +723 -0
- package/src/breadboard/engine/file-system/partial-persistent-backend.ts +109 -0
- package/src/breadboard/engine/file-system/path.ts +125 -0
- package/src/breadboard/engine/file-system/persistent-file.ts +66 -0
- package/src/breadboard/engine/file-system/readable-stream-file.ts +61 -0
- package/src/breadboard/engine/file-system/stub-file-system.ts +47 -0
- package/src/breadboard/engine/file-system/utils.ts +40 -0
- package/src/breadboard/engine/inspector/graph/bubbled-node.ts +162 -0
- package/src/breadboard/engine/inspector/graph/describe-cache.ts +78 -0
- package/src/breadboard/engine/inspector/graph/describe-type-cache.ts +48 -0
- package/src/breadboard/engine/inspector/graph/edge-cache.ts +118 -0
- package/src/breadboard/engine/inspector/graph/edge.ts +133 -0
- package/src/breadboard/engine/inspector/graph/event.ts +35 -0
- package/src/breadboard/engine/inspector/graph/exports-describer.ts +45 -0
- package/src/breadboard/engine/inspector/graph/graph-cache.ts +54 -0
- package/src/breadboard/engine/inspector/graph/graph-describer-manager.ts +338 -0
- package/src/breadboard/engine/inspector/graph/graph-descriptor-handle.ts +73 -0
- package/src/breadboard/engine/inspector/graph/graph-node-type.ts +111 -0
- package/src/breadboard/engine/inspector/graph/graph-queries.ts +256 -0
- package/src/breadboard/engine/inspector/graph/graph.ts +163 -0
- package/src/breadboard/engine/inspector/graph/inspectable-asset.ts +36 -0
- package/src/breadboard/engine/inspector/graph/kits.ts +208 -0
- package/src/breadboard/engine/inspector/graph/module.ts +69 -0
- package/src/breadboard/engine/inspector/graph/mutable-graph.ts +150 -0
- package/src/breadboard/engine/inspector/graph/node-cache.ts +123 -0
- package/src/breadboard/engine/inspector/graph/node-describer-manager.ts +279 -0
- package/src/breadboard/engine/inspector/graph/node-type-describer-manager.ts +122 -0
- package/src/breadboard/engine/inspector/graph/node.ts +149 -0
- package/src/breadboard/engine/inspector/graph/port-cache.ts +80 -0
- package/src/breadboard/engine/inspector/graph/ports.ts +292 -0
- package/src/breadboard/engine/inspector/graph/schemas.ts +131 -0
- package/src/breadboard/engine/inspector/graph/virtual-node.ts +184 -0
- package/src/breadboard/engine/inspector/graph-store.ts +629 -0
- package/src/breadboard/engine/inspector/index.ts +13 -0
- package/src/breadboard/engine/inspector/utils.ts +20 -0
- package/src/breadboard/engine/loader/capability.ts +184 -0
- package/src/breadboard/engine/loader/index.ts +14 -0
- package/src/breadboard/engine/loader/loader.ts +244 -0
- package/src/breadboard/engine/loader/resolve-graph-urls.ts +111 -0
- package/src/breadboard/engine/runtime/bubble.ts +269 -0
- package/src/breadboard/engine/runtime/graph-based-node-handler.ts +174 -0
- package/src/breadboard/engine/runtime/handler.ts +166 -0
- package/src/breadboard/engine/runtime/harness/diagnostics.ts +22 -0
- package/src/breadboard/engine/runtime/harness/events.ts +217 -0
- package/src/breadboard/engine/runtime/harness/index.ts +14 -0
- package/src/breadboard/engine/runtime/harness/local.ts +48 -0
- package/src/breadboard/engine/runtime/harness/plan-runner.ts +759 -0
- package/src/breadboard/engine/runtime/index.ts +8 -0
- package/src/breadboard/engine/runtime/legacy.ts +28 -0
- package/src/breadboard/engine/runtime/run/invoke-graph.ts +79 -0
- package/src/breadboard/engine/runtime/run/node-invoker.ts +137 -0
- package/src/breadboard/engine/runtime/run/run-graph.ts +186 -0
- package/src/breadboard/engine/runtime/run.ts +111 -0
- package/src/breadboard/engine/runtime/sandbox/capabilities-manager.ts +253 -0
- package/src/breadboard/engine/runtime/sandbox/file-system-handler-factory.ts +53 -0
- package/src/breadboard/engine/runtime/sandbox/invoke-describer.ts +125 -0
- package/src/breadboard/engine/runtime/static/condense.ts +155 -0
- package/src/breadboard/engine/runtime/static/create-plan.ts +134 -0
- package/src/breadboard/engine/runtime/static/nodes-to-subgraph.ts +168 -0
- package/src/breadboard/engine/runtime/static/orchestrator.ts +664 -0
- package/src/breadboard/engine/runtime/static/types.ts +77 -0
- package/src/breadboard/engine/runtime/traversal/index.ts +58 -0
- package/src/breadboard/engine/runtime/traversal/iterator.ts +124 -0
- package/src/breadboard/engine/runtime/traversal/machine.ts +58 -0
- package/src/breadboard/engine/runtime/traversal/representation.ts +115 -0
- package/src/breadboard/engine/runtime/traversal/result.ts +72 -0
- package/src/breadboard/engine/runtime/traversal/state.ts +115 -0
- package/src/breadboard/engine/telemetry.ts +121 -0
- package/src/breadboard/engine/types.ts +32 -0
- package/src/breadboard/lit-flow-runner.test.ts +44 -0
- package/src/breadboard/lit-flow-runner.ts +98 -0
- package/src/breadboard/runner.ts +80 -0
- package/src/index.ts +2 -0
- package/src/lit-chiclet.ts +69 -0
- package/src/lit-flow.ts +150 -9
- package/src/lit-node.ts +9 -2
- package/src/lit-schema-node.test.ts +65 -0
- package/src/lit-schema-node.ts +194 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,8 +8,6 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
- Style lit-node with Material 3 (litflow-clx)
|
|
9
9
|
- Example: Static Documentation Display (litflow-l52)
|
|
10
10
|
- Packaging and Distribution (litflow-b9b)
|
|
11
|
-
- Example: Subflows (Parent/Child) (litflow-2lt)
|
|
12
|
-
- Example: Custom Edges (Step/SmoothStep) (litflow-8zz)
|
|
13
11
|
- Implement manual edge connections (litflow-ycn)
|
|
14
12
|
- Establish Material 3 Design System (litflow-m7y)
|
|
15
13
|
- Investigate and fix node jumping on subsequent drags (litflow-v7y)
|
|
@@ -35,7 +33,6 @@ All notable changes to this project will be documented in this file.
|
|
|
35
33
|
- Implement Edge Markers (Arrowheads) (litflow-c56)
|
|
36
34
|
- Configurable Node Naming on Drop (litflow-8ku)
|
|
37
35
|
- Create Drag & Drop Guide (litflow-w6v)
|
|
38
|
-
- Example: Drag & Drop (litflow-lyd)
|
|
39
36
|
- Implement M3-styled Sidebar for Drag & Drop (litflow-kyi)
|
|
40
37
|
- Implement project method in LitFlow (litflow-ypx)
|
|
41
38
|
- Investigate and implement Edge Labels (litflow-1ed)
|
|
@@ -46,9 +43,20 @@ All notable changes to this project will be documented in this file.
|
|
|
46
43
|
- Implement Live Example integration (litflow-46j.3)
|
|
47
44
|
- Migrate and structure docs using Diataxis (litflow-46j.2)
|
|
48
45
|
- Initialize Eleventy project in docs/ (litflow-46j.1)
|
|
49
|
-
- Example: Graphviz to LitFlow (litflow-48p)
|
|
50
46
|
|
|
51
47
|
## 2025-12-29
|
|
48
|
+
- Implement Real LitFlowRunner (litflow-wmj)
|
|
49
|
+
- Implement Mock Runner (litflow-wjn)
|
|
50
|
+
- Implement LitSchemaNode (litflow-ztw)
|
|
51
|
+
- Analysis: Phase 3 - GenAI & Gemini Integration (litflow-9ms)
|
|
52
|
+
- Analysis: Phase 2 - Graph Execution (The Core) (litflow-i81)
|
|
52
53
|
- Designer: Integrate Drag & Drop Palette (litflow-aa8)
|
|
53
54
|
- Example: Inspector Designer with live JSON sync (litflow-0i5)
|
|
54
55
|
|
|
56
|
+
## 2026-01-03
|
|
57
|
+
- Feature: M3 Standardized Node Slots (litflow-hf4.5)
|
|
58
|
+
- Feature: Sub-Graph Focus/Isolate API (litflow-hf4.2)
|
|
59
|
+
- Feature: Built-in Layout Orchestration (litflow-hf4.1)
|
|
60
|
+
- Fix: TypeScript Type Fidelity (litflow-hf4.3)
|
|
61
|
+
- Docs: Pragmatic Use Findings (litflow-hf4.6)
|
|
62
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { CodeExecutionResultPart, ExecutableCodePart, FileDataPart, FunctionCallCapabilityPart, FunctionResponseCapabilityPart, InlineDataCapabilityPart, JSONPart, ListPart, LLMContent, OutputValues, StoredDataCapabilityPart, TextCapabilityPart } from "@breadboard-ai/types";
|
|
7
|
+
import { Chunk, DataCapability, DataPartTransformer, DataPartTransformType, Outcome } from "@breadboard-ai/types";
|
|
8
|
+
import { isStoredData } from "@breadboard-ai/utils";
|
|
9
|
+
export { isCodeExecutionResultPart, isExecutableCodePart, isStoredData };
|
|
10
|
+
export declare function isImageURL(nodeValue: unknown): nodeValue is {
|
|
11
|
+
image_url: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function isTextCapabilityPart(part: unknown): part is TextCapabilityPart;
|
|
14
|
+
export declare function isFileDataCapabilityPart(part: unknown): part is FileDataPart;
|
|
15
|
+
export declare function isFunctionCallCapabilityPart(part: unknown): part is FunctionCallCapabilityPart;
|
|
16
|
+
export declare function isFunctionResponseCapabilityPart(part: unknown): part is FunctionResponseCapabilityPart;
|
|
17
|
+
export declare function isJSONPart(part: unknown): part is JSONPart;
|
|
18
|
+
export declare function isListPart(part: unknown): part is ListPart;
|
|
19
|
+
export declare function isLLMContent(nodeValue: unknown): nodeValue is LLMContent;
|
|
20
|
+
export declare function isLLMContentArray(nodeValue: unknown): nodeValue is LLMContent[];
|
|
21
|
+
export declare function isMetadataEntry(nodeValue: LLMContent): boolean;
|
|
22
|
+
export declare const isDataCapability: (value: unknown) => value is DataCapability;
|
|
23
|
+
export declare const asBlob: (part: InlineDataCapabilityPart | StoredDataCapabilityPart | Chunk) => Promise<Blob>;
|
|
24
|
+
export declare const isChunk: (value: unknown) => value is Chunk;
|
|
25
|
+
export declare const isInlineData: (value: unknown) => value is InlineDataCapabilityPart;
|
|
26
|
+
declare function isCodeExecutionResultPart(value: unknown): value is CodeExecutionResultPart;
|
|
27
|
+
declare function isExecutableCodePart(value: unknown): value is ExecutableCodePart;
|
|
28
|
+
export declare const isSerializedData: (value: unknown) => value is InlineDataCapabilityPart;
|
|
29
|
+
export declare function asBase64(file: File | Blob): Promise<string>;
|
|
30
|
+
export declare function asBase64DataUrl(blob: Blob): Promise<string>;
|
|
31
|
+
export declare function retrieveAsBlob(part: StoredDataCapabilityPart, graphUrl?: URL): Promise<Blob>;
|
|
32
|
+
export declare function toInlineDataPart(part: StoredDataCapabilityPart, graphUrl?: URL): Promise<InlineDataCapabilityPart>;
|
|
33
|
+
export declare function toStoredDataPart(part: InlineDataCapabilityPart | StoredDataCapabilityPart | Blob): Promise<StoredDataCapabilityPart>;
|
|
34
|
+
export declare function transformDataParts(graphUrl: URL, contents: LLMContent[], to: DataPartTransformType, transformer: DataPartTransformer): Promise<Outcome<LLMContent[]>>;
|
|
35
|
+
export declare function convertStoredPartsToAbsoluteUrls(values: OutputValues | undefined, graphUrl?: string): OutputValues;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { FileSystemEntry, GraphDescriptor } from "@breadboard-ai/types";
|
|
7
|
+
export { assetsFromGraphDescriptor, envFromGraphDescriptor };
|
|
8
|
+
declare function envFromGraphDescriptor(current: FileSystemEntry[], descriptor?: GraphDescriptor): FileSystemEntry[];
|
|
9
|
+
declare function assetsFromGraphDescriptor(descriptor?: GraphDescriptor): FileSystemEntry[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { DataPartTransformer, Outcome, OutputValues } from "@breadboard-ai/types";
|
|
7
|
+
export { inlineAllContent };
|
|
8
|
+
declare function inlineAllContent(transformer: DataPartTransformer, outputs: OutputValues, shareableGraphUrl: string): Promise<Outcome<OutputValues>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { SignalArray } from "signal-utils/array";
|
|
7
|
+
import { RecentBoard } from "../ui/types/types.js";
|
|
8
|
+
export declare class RecentBoardStore {
|
|
9
|
+
#private;
|
|
10
|
+
static instance(): RecentBoardStore;
|
|
11
|
+
readonly boards: SignalArray<RecentBoard>;
|
|
12
|
+
private constructor();
|
|
13
|
+
add(board: RecentBoard): Promise<void>;
|
|
14
|
+
remove(url: string): Promise<void>;
|
|
15
|
+
setPin(url: string, pinned: boolean): Promise<void>;
|
|
16
|
+
restore(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Outcome, OutputValues } from "@breadboard-ai/types";
|
|
7
|
+
export { saveOutputsAsFile, extensionFromMimeType };
|
|
8
|
+
declare function extensionFromMimeType(mimeType: string): string;
|
|
9
|
+
declare function saveOutputsAsFile(outputs: OutputValues): Promise<Outcome<Blob>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { Kit } from "@breadboard-ai/types";
|
|
7
|
+
import { RunnableModuleFactory } from "@breadboard-ai/types/sandbox.js";
|
|
8
|
+
export { addRunModule };
|
|
9
|
+
declare function addRunModule(factory: RunnableModuleFactory, kits: Kit[]): Kit[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphDescriptor, GraphTag } from "@breadboard-ai/types";
|
|
7
|
+
/**
|
|
8
|
+
* Creates a `GraphDescriptor` of a blank graph.
|
|
9
|
+
*/
|
|
10
|
+
export declare const blank: () => GraphDescriptor;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a `GraphDescriptor` of a blank graph with inputs/outputs pre-set
|
|
13
|
+
* to the LLM content array schema.
|
|
14
|
+
*/
|
|
15
|
+
export declare const blankLLMContent: (...tags: GraphTag[]) => GraphDescriptor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditableEdgeSpec, GraphDescriptor } from "@breadboard-ai/types";
|
|
7
|
+
export declare const findEdgeIndex: (graph: GraphDescriptor, spec: EditableEdgeSpec) => number;
|
|
8
|
+
export declare const edgesEqual: (a: EditableEdgeSpec, b: EditableEdgeSpec) => boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { AffectedNode, ChangeEventType, ErrorRejection, GraphChangeEvent, GraphChangeRejectEvent, GraphDescriptor, GraphIdentifier, NoChangeRejection, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
/**
|
|
8
|
+
* This event is dispatched whenever the graph changes due to edits.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ChangeEvent extends Event implements GraphChangeEvent {
|
|
11
|
+
readonly graph: GraphDescriptor;
|
|
12
|
+
readonly visualOnly: boolean;
|
|
13
|
+
readonly changeType: ChangeEventType;
|
|
14
|
+
readonly affectedNodes: AffectedNode[];
|
|
15
|
+
readonly affectedModules: NodeIdentifier[];
|
|
16
|
+
readonly affectedGraphs: GraphIdentifier[];
|
|
17
|
+
readonly topologyChange: boolean;
|
|
18
|
+
readonly integrationsChange: boolean;
|
|
19
|
+
readonly label: string | null;
|
|
20
|
+
static eventName: string;
|
|
21
|
+
constructor(graph: GraphDescriptor, visualOnly: boolean, changeType: ChangeEventType, affectedNodes: AffectedNode[], affectedModules: NodeIdentifier[], affectedGraphs: GraphIdentifier[], topologyChange: boolean, integrationsChange: boolean, label: string | null);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* This event is dispatched whenever a proposed change to the graph is
|
|
25
|
+
* rejected. The rejection may happen for two reasons
|
|
26
|
+
* - error: the change would create an invalid graph. For instance, adding an edge to a non-existent node.
|
|
27
|
+
* - nochange: the change is unnecessary, because it results in no actual change to the graph. For example, adding an edge that already exists.
|
|
28
|
+
*/
|
|
29
|
+
export declare class ChangeRejectEvent extends Event implements GraphChangeRejectEvent {
|
|
30
|
+
graph: GraphDescriptor;
|
|
31
|
+
reason: ErrorRejection | NoChangeRejection;
|
|
32
|
+
static eventName: string;
|
|
33
|
+
constructor(graph: GraphDescriptor, reason: ErrorRejection | NoChangeRejection);
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditableGraph, EditableGraphOptions, EditHistory, EditResult, EditSpec, EditTransform, GraphDescriptor, GraphIdentifier, MutableGraph } from "@breadboard-ai/types";
|
|
7
|
+
export declare class Graph implements EditableGraph {
|
|
8
|
+
#private;
|
|
9
|
+
constructor(mutable: MutableGraph, options: EditableGraphOptions);
|
|
10
|
+
addEventListener(eventName: string, listener: EventListener, options?: {
|
|
11
|
+
once?: boolean;
|
|
12
|
+
}): void;
|
|
13
|
+
edit(edits: EditSpec[], label: string, dryRun?: boolean): Promise<EditResult>;
|
|
14
|
+
apply(transform: EditTransform, dryRun?: boolean): Promise<EditResult>;
|
|
15
|
+
history(): EditHistory;
|
|
16
|
+
raw(): GraphDescriptor;
|
|
17
|
+
inspect(id: GraphIdentifier): import("@breadboard-ai/types").InspectableGraph;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditHistory, EditHistoryController, EditHistoryCreator, EditHistoryEntry, GraphDescriptor } from "@breadboard-ai/types";
|
|
7
|
+
export declare class GraphEditHistory implements EditHistory {
|
|
8
|
+
#private;
|
|
9
|
+
constructor(controller: EditHistoryController);
|
|
10
|
+
add(graph: GraphDescriptor, label: string, creator: EditHistoryCreator, timestamp: number): void;
|
|
11
|
+
revertTo(newIndex: number): EditHistoryEntry;
|
|
12
|
+
canUndo(): boolean;
|
|
13
|
+
canRedo(): boolean;
|
|
14
|
+
undo(): GraphDescriptor | null;
|
|
15
|
+
redo(): GraphDescriptor | null;
|
|
16
|
+
jump(newIndex: number): GraphDescriptor | null;
|
|
17
|
+
entries(): EditHistoryEntry[];
|
|
18
|
+
index(): number;
|
|
19
|
+
current(): GraphDescriptor | null;
|
|
20
|
+
get pending(): EditHistoryEntry | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { AddAsset };
|
|
8
|
+
declare class AddAsset implements EditOperation {
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, EditableEdgeSpec, InspectableGraph, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
import { GraphIdentifier } from "@breadboard-ai/types";
|
|
8
|
+
export declare class AddEdge implements EditOperation {
|
|
9
|
+
can(edge: EditableEdgeSpec, inspector: InspectableGraph, graphId: GraphIdentifier): Promise<SingleEditResult>;
|
|
10
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { AddGraph };
|
|
8
|
+
declare class AddGraph implements EditOperation {
|
|
9
|
+
do(edit: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, InspectableGraph, ModuleIdentifier, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class AddModule implements EditOperation {
|
|
8
|
+
can(id: ModuleIdentifier, inspector: InspectableGraph): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, EditableNodeSpec, InspectableGraph, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class AddNode implements EditOperation {
|
|
8
|
+
can(spec: EditableNodeSpec, inspector: InspectableGraph): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { ChangeAssetMetadata };
|
|
8
|
+
declare class ChangeAssetMetadata implements EditOperation {
|
|
9
|
+
#private;
|
|
10
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, InspectableGraph, NodeIdentifier, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ChangeConfiguration implements EditOperation {
|
|
8
|
+
can(id: NodeIdentifier, inspector: InspectableGraph): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { ChangeEdgeMetadata };
|
|
8
|
+
declare class ChangeEdgeMetadata implements EditOperation {
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, EditableEdgeSpec, GraphIdentifier, InspectableGraph, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ChangeEdge implements EditOperation {
|
|
8
|
+
can(from: EditableEdgeSpec, to: EditableEdgeSpec, inspector: InspectableGraph, graphId: GraphIdentifier): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ChangeGraphMetadata implements EditOperation {
|
|
8
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, InspectableGraph, NodeIdentifier, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ChangeMetadata implements EditOperation {
|
|
8
|
+
#private;
|
|
9
|
+
can(id: NodeIdentifier, inspector: InspectableGraph): Promise<SingleEditResult>;
|
|
10
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, InspectableGraph, ModuleIdentifier, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ChangeModule implements EditOperation {
|
|
8
|
+
can(id: ModuleIdentifier, inspector: InspectableGraph): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { GraphIdentifier, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { error, errorNoInspect };
|
|
8
|
+
declare function errorNoInspect(graphId: GraphIdentifier): SingleEditResult;
|
|
9
|
+
declare function error(message: string): SingleEditResult;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { RemoveAsset };
|
|
8
|
+
declare class RemoveAsset implements EditOperation {
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, EditableEdgeSpec, GraphIdentifier, InspectableGraph, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class RemoveEdge implements EditOperation {
|
|
8
|
+
can(spec: EditableEdgeSpec, inspector: InspectableGraph, graphId: GraphIdentifier): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { RemoveGraph };
|
|
8
|
+
declare class RemoveGraph implements EditOperation {
|
|
9
|
+
do(edit: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { RemoveIntegration };
|
|
8
|
+
declare class RemoveIntegration implements EditOperation {
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, InspectableGraph, ModuleIdentifier, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class RemoveModule implements EditOperation {
|
|
8
|
+
can(id: ModuleIdentifier, inspector: InspectableGraph): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, GraphIdentifier, InspectableGraph, NodeIdentifier, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class RemoveNode implements EditOperation {
|
|
8
|
+
can(id: NodeIdentifier, inspector: InspectableGraph, graphId: GraphIdentifier): Promise<SingleEditResult>;
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ReplaceGraph implements EditOperation {
|
|
8
|
+
do(edit: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export declare class ToggleExport implements EditOperation {
|
|
8
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperation, EditOperationContext, EditSpec, SingleEditResult } from "@breadboard-ai/types";
|
|
7
|
+
export { UpsertInteration };
|
|
8
|
+
declare class UpsertInteration implements EditOperation {
|
|
9
|
+
do(spec: EditSpec, context: EditOperationContext): Promise<SingleEditResult>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditableGraphSelectionResult, InspectableGraph, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { computeSelection };
|
|
8
|
+
/**
|
|
9
|
+
* Creates a selection: a list of nodes and edges that will are associated
|
|
10
|
+
* with the given list of node identifiers within the graph.
|
|
11
|
+
* The selection is transient in that it only applies to the current version
|
|
12
|
+
* of the graph and becomes invalid as soon as the graph mutates.
|
|
13
|
+
*
|
|
14
|
+
* @param nodes -- nodes to include in the selection
|
|
15
|
+
*/
|
|
16
|
+
declare function computeSelection(graph: InspectableGraph, nodes: NodeIdentifier[]): EditableGraphSelectionResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperationContext, EditTransform, EditTransformResult, GraphIdentifier, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { ConfigureSidewireTransform };
|
|
8
|
+
declare class ConfigureSidewireTransform implements EditTransform {
|
|
9
|
+
readonly nodeId: NodeIdentifier;
|
|
10
|
+
readonly sidewirePortName: string;
|
|
11
|
+
readonly sourceGraphId: GraphIdentifier;
|
|
12
|
+
readonly subwiredSubgraphId: GraphIdentifier;
|
|
13
|
+
constructor(nodeId: NodeIdentifier, sidewirePortName: string, sourceGraphId: GraphIdentifier, subwiredSubgraphId: GraphIdentifier);
|
|
14
|
+
apply(context: EditOperationContext): Promise<EditTransformResult>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperationContext, EditTransform, EditTransformResult, GraphIdentifier, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { IsolateSelectionTransform };
|
|
8
|
+
declare class IsolateSelectionTransform implements EditTransform {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(nodes: NodeIdentifier[], graphId: GraphIdentifier);
|
|
11
|
+
apply(context: EditOperationContext): Promise<EditTransformResult>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperationContext, EditTransform, EditTransformResult, GraphIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { MergeGraphTransform };
|
|
8
|
+
declare class MergeGraphTransform implements EditTransform {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(source: GraphIdentifier, mergeInto: GraphIdentifier);
|
|
11
|
+
apply(context: EditOperationContext): Promise<EditTransformResult>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperationContext, EditTransform, EditTransformResult, GraphIdentifier, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { MoveToGraphTransform };
|
|
8
|
+
declare class MoveToGraphTransform implements EditTransform {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(nodes: NodeIdentifier[], source: GraphIdentifier, destination: GraphIdentifier);
|
|
11
|
+
apply(context: EditOperationContext): Promise<EditTransformResult>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { EditOperationContext, EditTransform, EditTransformResult, GraphIdentifier, NodeIdentifier } from "@breadboard-ai/types";
|
|
7
|
+
export { MoveToNewGraphTransform };
|
|
8
|
+
declare class MoveToNewGraphTransform implements EditTransform {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(nodes: NodeIdentifier[], source: GraphIdentifier, destination: GraphIdentifier, title: string, description?: string);
|
|
11
|
+
apply(context: EditOperationContext): Promise<EditTransformResult>;
|
|
12
|
+
}
|