@ultrst-armada/floks 1.7.1 → 1.8.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/floks",
4
- "version": "1.7.1",
5
- "sourceCommit": "8bdcd5922c85a4281f3c7805670565f7eaf1ad0f",
4
+ "version": "1.8.1",
5
+ "sourceCommit": "cc26728887521251261425d6cfd9d35a95078721",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "40842965438"
7
+ "workflowRunId": "41013413417"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/floks",
3
- "version": "1.7.1",
3
+ "version": "1.8.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -54,6 +54,16 @@
54
54
  "types": "./packages/ui/dist/components/ai/index.d.ts",
55
55
  "import": "./packages/ui/dist/components/ai/index.js",
56
56
  "default": "./packages/ui/dist/components/ai/index.js"
57
+ },
58
+ "./canvas-ui/fod": {
59
+ "types": "./packages/canvas-ui/dist/fod/index.d.ts",
60
+ "import": "./packages/canvas-ui/dist/fod/index.js",
61
+ "default": "./packages/canvas-ui/dist/fod/index.js"
62
+ },
63
+ "./canvas-ui/aiko": {
64
+ "types": "./packages/canvas-ui/dist/aiko/index.d.ts",
65
+ "import": "./packages/canvas-ui/dist/aiko/index.js",
66
+ "default": "./packages/canvas-ui/dist/aiko/index.js"
57
67
  }
58
68
  },
59
69
  "scripts": {
@@ -69,7 +79,7 @@
69
79
  "d3-force": "^3.0.0",
70
80
  "zod": "^3.24.1",
71
81
  "zustand": "^5.0.3",
72
- "@dinilmusick/gutts": "^0.1.3"
82
+ "@dinilmusick/gutts": "^1.1.0"
73
83
  },
74
84
  "peerDependencies": {
75
85
  "@ultrst-armada/kloks": "^1.17.0",
@@ -83,7 +93,7 @@
83
93
  "@types/node": "^22.0.0",
84
94
  "@types/react": "^19.0.0",
85
95
  "@types/react-dom": "^19.0.0",
86
- "@ultrst-armada/kloks": "^1.17.0",
96
+ "@ultrst-armada/kloks": "^1.19.0",
87
97
  "@ultrst-armada/frnlts": "^0.2.7",
88
98
  "happy-dom": "^21.0.3",
89
99
  "lucide-react": "^1.55.0",
@@ -0,0 +1,47 @@
1
+ import React__default from 'react';
2
+
3
+ interface AikoIntelligenceSpec {
4
+ [key: string]: unknown;
5
+ }
6
+ interface AikoAgentDefinition {
7
+ id: string;
8
+ name: string;
9
+ description?: string;
10
+ agentType: 'TOOL' | 'ENDPOINT' | 'AIKO';
11
+ tool?: Record<string, unknown>;
12
+ intelligenceSpec?: AikoIntelligenceSpec;
13
+ intelligenceSpecId?: string;
14
+ sourceKind?: 'endpoint' | 'fod-flow' | 'gutts-api' | 'custom';
15
+ sourceId?: string;
16
+ }
17
+ interface AikoKey {
18
+ id: string;
19
+ providerId: string;
20
+ label: string;
21
+ status?: string;
22
+ isActive?: boolean;
23
+ emailGroup?: string;
24
+ expiresAt?: string | null;
25
+ }
26
+ interface AikoRuntimeLike {
27
+ listAgents(): Promise<AikoAgentDefinition[]>;
28
+ executeAgent(agentId: string, input: string): Promise<unknown>;
29
+ listKeys(): Promise<AikoKey[]>;
30
+ getActiveKey(providerId: string): Promise<AikoKey | null>;
31
+ rotateKey(providerId: string): Promise<AikoKey | null>;
32
+ syncFromAikoEngine(): Promise<{
33
+ synced: number;
34
+ message?: string;
35
+ }>;
36
+ }
37
+ interface AikoModuleProps {
38
+ runtime: AikoRuntimeLike;
39
+ workspaceId: string;
40
+ className?: string;
41
+ }
42
+ declare function AikoModule({ runtime, workspaceId, className }: AikoModuleProps): React__default.JSX.Element;
43
+ declare namespace AikoModule {
44
+ var displayName: string;
45
+ }
46
+
47
+ export { type AikoAgentDefinition, type AikoIntelligenceSpec, type AikoKey, AikoModule, type AikoModuleProps, type AikoRuntimeLike };
@@ -0,0 +1,6 @@
1
+ import {
2
+ AikoModule
3
+ } from "../chunk-2WMWGF5G.js";
4
+ export {
5
+ AikoModule
6
+ };
@@ -0,0 +1,87 @@
1
+ // src/aiko/AikoModule.tsx
2
+ import { useEffect, useMemo, useState } from "react";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ function AikoModule({ runtime, workspaceId, className }) {
5
+ const [agents, setAgents] = useState([]);
6
+ const [keys, setKeys] = useState([]);
7
+ const [activeAgent, setActiveAgent] = useState("");
8
+ const [input, setInput] = useState("");
9
+ const [result, setResult] = useState("");
10
+ const [busy, setBusy] = useState(false);
11
+ const [message, setMessage] = useState("");
12
+ const refresh = async () => {
13
+ const [nextAgents, nextKeys] = await Promise.all([runtime.listAgents(), runtime.listKeys()]);
14
+ setAgents(nextAgents);
15
+ setKeys(nextKeys);
16
+ if (!activeAgent && nextAgents[0]) setActiveAgent(nextAgents[0].id);
17
+ };
18
+ useEffect(() => {
19
+ void refresh();
20
+ }, [workspaceId]);
21
+ const groups = useMemo(() => {
22
+ const map = /* @__PURE__ */ new Map();
23
+ for (const agent of agents) {
24
+ const key = agent.sourceKind ?? "custom";
25
+ const list = map.get(key) ?? [];
26
+ list.push(agent);
27
+ map.set(key, list);
28
+ }
29
+ return [...map.entries()];
30
+ }, [agents]);
31
+ const execute = async () => {
32
+ if (!activeAgent || !input.trim()) return;
33
+ setBusy(true);
34
+ try {
35
+ setResult(JSON.stringify(await runtime.executeAgent(activeAgent, input), null, 2));
36
+ } catch (error) {
37
+ setResult(error instanceof Error ? error.message : String(error));
38
+ } finally {
39
+ setBusy(false);
40
+ }
41
+ };
42
+ const sync = async () => {
43
+ setBusy(true);
44
+ try {
45
+ const response = await runtime.syncFromAikoEngine();
46
+ setMessage(response.message ?? "Synced " + response.synced + " keys");
47
+ await refresh();
48
+ } catch (error) {
49
+ setMessage(error instanceof Error ? error.message : String(error));
50
+ } finally {
51
+ setBusy(false);
52
+ }
53
+ };
54
+ return /* @__PURE__ */ jsxs("div", { className, "data-aiko-module": "true", style: { display: "grid", gridTemplateColumns: "260px 1fr", gridTemplateRows: "48px 1fr", height: "100%", minHeight: 500 }, children: [
55
+ /* @__PURE__ */ jsxs("header", { style: { gridColumn: "1 / -1", display: "flex", alignItems: "center", gap: 8, padding: 8, borderBottom: "1px solid var(--skipo-border,#333)" }, children: [
56
+ /* @__PURE__ */ jsx("strong", { children: "AIKO" }),
57
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => void sync(), disabled: busy, children: "Fetch from Aiko Engine" }),
58
+ /* @__PURE__ */ jsx("span", { children: message })
59
+ ] }),
60
+ /* @__PURE__ */ jsxs("aside", { style: { overflow: "auto", padding: 10, borderRight: "1px solid var(--skipo-border,#333)" }, children: [
61
+ /* @__PURE__ */ jsx("h4", { children: "Agents" }),
62
+ groups.map(([group, list]) => /* @__PURE__ */ jsxs("section", { children: [
63
+ /* @__PURE__ */ jsx("strong", { children: group }),
64
+ list.map((agent) => /* @__PURE__ */ jsx("button", { type: "button", onClick: () => setActiveAgent(agent.id), style: { display: "block", width: "100%", textAlign: "left", margin: "4px 0" }, children: agent.name }, agent.id))
65
+ ] }, group)),
66
+ /* @__PURE__ */ jsx("h4", { children: "API Keys" }),
67
+ keys.map((key) => /* @__PURE__ */ jsxs("div", { children: [
68
+ key.providerId,
69
+ ": ",
70
+ key.label,
71
+ " ",
72
+ key.isActive ? "(active)" : ""
73
+ ] }, key.id))
74
+ ] }),
75
+ /* @__PURE__ */ jsx("main", { style: { padding: 16, overflow: "auto" }, children: activeAgent ? /* @__PURE__ */ jsxs(Fragment, { children: [
76
+ /* @__PURE__ */ jsx("h3", { children: agents.find((agent) => agent.id === activeAgent)?.name }),
77
+ /* @__PURE__ */ jsx("textarea", { value: input, onChange: (event) => setInput(event.target.value), placeholder: "Describe what you want the agent to do", rows: 5, style: { width: "100%" } }),
78
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => void execute(), disabled: busy || !input.trim(), children: "Execute" }),
79
+ /* @__PURE__ */ jsx("pre", { style: { whiteSpace: "pre-wrap" }, children: result })
80
+ ] }) : /* @__PURE__ */ jsx("p", { children: "No Aiko agent selected." }) })
81
+ ] });
82
+ }
83
+ AikoModule.displayName = "AikoModule";
84
+
85
+ export {
86
+ AikoModule
87
+ };
@@ -0,0 +1,139 @@
1
+ import {
2
+ FrnlEditableNodeGraph
3
+ } from "./chunk-YHEIL67R.js";
4
+
5
+ // src/fod/FodModule.tsx
6
+ import { useEffect, useMemo, useState } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ function toGraphNodes(flow, nodeDefinitions) {
9
+ const defs = new Map(nodeDefinitions.map((def) => [def.type, def]));
10
+ return flow.nodes.map((node) => {
11
+ const def = defs.get(node.type);
12
+ return {
13
+ id: node.id,
14
+ type: node.type,
15
+ label: def?.label ?? String(node.data.label ?? node.type),
16
+ position: node.position,
17
+ data: node.data,
18
+ inputs: (def?.inputs ?? []).map((port) => ({ id: port.id, label: port.name, type: "input", dataType: port.dataType })),
19
+ outputs: (def?.outputs ?? []).map((port) => ({ id: port.id, label: port.name, type: "output", dataType: port.dataType })),
20
+ width: 190,
21
+ height: Math.max(90, 60 + Math.max(def?.inputs.length ?? 0, def?.outputs.length ?? 0) * 24)
22
+ };
23
+ });
24
+ }
25
+ function toGraphEdges(flow) {
26
+ return flow.edges.map((edge) => ({ id: edge.id, source: edge.source, sourceSocket: edge.sourceHandle ?? "result", target: edge.target, targetSocket: edge.targetHandle ?? "input" }));
27
+ }
28
+ function FodModule({ runtime, nodeDefinitions, workspaceId, className }) {
29
+ const [flows, setFlows] = useState([]);
30
+ const [activeId, setActiveId] = useState(null);
31
+ const [flow, setFlow] = useState(null);
32
+ const [selected, setSelected] = useState(/* @__PURE__ */ new Set());
33
+ const [message, setMessage] = useState("");
34
+ const [running, setRunning] = useState(false);
35
+ const refresh = async () => {
36
+ const next = await runtime.listFlows();
37
+ setFlows(next);
38
+ if (!activeId && next[0]) setActiveId(next[0].id);
39
+ };
40
+ useEffect(() => {
41
+ void refresh();
42
+ }, [workspaceId]);
43
+ useEffect(() => {
44
+ if (!activeId) {
45
+ setFlow(null);
46
+ return;
47
+ }
48
+ void runtime.getFlow(activeId).then(setFlow);
49
+ }, [activeId]);
50
+ const graphNodes = useMemo(() => flow ? toGraphNodes(flow, nodeDefinitions) : [], [flow, nodeDefinitions]);
51
+ const graphEdges = useMemo(() => flow ? toGraphEdges(flow) : [], [flow]);
52
+ const updateNodes = (next) => {
53
+ if (!flow) return;
54
+ const nextFlow = { ...flow, nodes: next.map((node) => ({ ...flow.nodes.find((item) => item.id === node.id), id: node.id, type: node.type, position: node.position, data: node.data })) };
55
+ setFlow(nextFlow);
56
+ };
57
+ const updateEdges = (next) => {
58
+ if (!flow) return;
59
+ const nextFlow = { ...flow, edges: next.map((edge) => ({ id: edge.id, source: edge.source, sourceHandle: edge.sourceSocket, target: edge.target, targetHandle: edge.targetSocket })) };
60
+ setFlow(nextFlow);
61
+ };
62
+ const createFlow = () => {
63
+ const now = (/* @__PURE__ */ new Date()).toISOString();
64
+ const next = { id: `flow-${Date.now()}`, name: "New Flow", version: 1, createdAt: now, updatedAt: now, nodes: [], edges: [], metadata: { workspaceId } };
65
+ setFlows((current) => [...current, next]);
66
+ setActiveId(next.id);
67
+ setFlow(next);
68
+ };
69
+ const save = async () => {
70
+ if (!flow) return;
71
+ const saved = await runtime.saveFlow(flow);
72
+ setFlow(saved);
73
+ await refresh();
74
+ setMessage("Saved");
75
+ };
76
+ const addMagneticEdge = (trace) => {
77
+ if (!flow) return;
78
+ const id = `edge-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`;
79
+ const exists = flow.edges.some((edge) => edge.source === trace.sourceNodeId && edge.target === trace.targetNodeId && edge.sourceHandle === trace.sourceHandleId && edge.targetHandle === trace.targetHandleId);
80
+ if (!exists) setFlow({ ...flow, edges: [...flow.edges, { id, source: trace.sourceNodeId, sourceHandle: trace.sourceHandleId, target: trace.targetNodeId, targetHandle: trace.targetHandleId }] });
81
+ };
82
+ const solidifyGhost = (ghost) => {
83
+ if (!flow || !ghost?.prototypeNode) return;
84
+ const node = ghost.prototypeNode;
85
+ const exists = flow.nodes.some((item) => item.id === ghost.id);
86
+ let next = flow;
87
+ if (!exists) next = { ...next, nodes: [...next.nodes, { id: ghost.id, type: node.type, position: { x: Number(ghost.worldPosition?.[0] ?? node.position?.x ?? 0), y: Number(ghost.worldPosition?.[2] ?? node.position?.y ?? 0) }, data: node.data ?? {} }] };
88
+ const edge = { id: `edge-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`, source: ghost.parentSocketPolarity === "input" ? ghost.id : ghost.parentNodeId, sourceHandle: ghost.parentSocketPolarity === "input" ? ghost.matchingSocketId : ghost.parentSocketId, target: ghost.parentSocketPolarity === "input" ? ghost.parentNodeId : ghost.id, targetHandle: ghost.parentSocketPolarity === "input" ? ghost.parentSocketId : ghost.matchingSocketId };
89
+ if (!next.edges.some((item) => item.source === edge.source && item.target === edge.target && item.sourceHandle === edge.sourceHandle && item.targetHandle === edge.targetHandle)) next = { ...next, edges: [...next.edges, edge] };
90
+ setFlow(next);
91
+ };
92
+ const run = async () => {
93
+ if (!flow) return;
94
+ await save();
95
+ setRunning(true);
96
+ try {
97
+ const result = await runtime.executeFlow(flow.id);
98
+ setMessage(result.success ? "Execution completed" : result.errors?.[0]?.message ?? "Execution failed");
99
+ } finally {
100
+ setRunning(false);
101
+ }
102
+ };
103
+ const grouped = useMemo(() => {
104
+ const groups = /* @__PURE__ */ new Map();
105
+ for (const node of nodeDefinitions) {
106
+ const group = groups.get(node.group) ?? [];
107
+ group.push(node);
108
+ groups.set(node.group, group);
109
+ }
110
+ return [...groups.entries()].sort(([a], [b]) => a.localeCompare(b));
111
+ }, [nodeDefinitions]);
112
+ return /* @__PURE__ */ jsxs("div", { className, style: { display: "grid", gridTemplateColumns: "220px 1fr", gridTemplateRows: "44px 1fr", height: "100%", minHeight: 500 }, children: [
113
+ /* @__PURE__ */ jsxs("div", { style: { gridColumn: "1 / -1", display: "flex", alignItems: "center", gap: 8, padding: "6px 10px", borderBottom: "1px solid var(--skipo-border,#333)", background: "var(--skipo-matte-bg,#111)" }, children: [
114
+ /* @__PURE__ */ jsx("strong", { children: "FOD" }),
115
+ /* @__PURE__ */ jsxs("select", { value: activeId ?? "", onChange: (e) => setActiveId(e.target.value || null), children: [
116
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select flow" }),
117
+ flows.map((item) => /* @__PURE__ */ jsx("option", { value: item.id, children: item.name }, item.id))
118
+ ] }),
119
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: createFlow, children: "New flow" }),
120
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => void save(), disabled: !flow, children: "Save" }),
121
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => void run(), disabled: !flow || running, children: running ? "Running\u2026" : "Run" }),
122
+ /* @__PURE__ */ jsx("span", { children: message })
123
+ ] }),
124
+ /* @__PURE__ */ jsx("aside", { style: { overflow: "auto", padding: 10, borderRight: "1px solid var(--skipo-border,#333)" }, children: grouped.map(([group, nodes]) => /* @__PURE__ */ jsxs("section", { children: [
125
+ /* @__PURE__ */ jsx("h4", { style: { margin: "8px 0" }, children: group }),
126
+ nodes.map((node) => /* @__PURE__ */ jsx("button", { type: "button", style: { display: "block", width: "100%", textAlign: "left", marginBottom: 4 }, onClick: () => {
127
+ if (!flow) return;
128
+ const id = `${node.type}-${Date.now()}`;
129
+ setFlow({ ...flow, nodes: [...flow.nodes, { id, type: node.type, position: { x: 100 + flow.nodes.length * 24, y: 100 + flow.nodes.length * 24 }, data: { endpointId: node.metadata?.endpointId, apiId: node.metadata?.apiId } }] });
130
+ }, children: node.label }, node.type))
131
+ ] }, group)) }),
132
+ /* @__PURE__ */ jsx("main", { style: { minWidth: 0, minHeight: 0 }, children: flow ? /* @__PURE__ */ jsx(FrnlEditableNodeGraph, { nodes: graphNodes, edges: graphEdges, selectedNodeIds: selected, onSelectionChange: setSelected, onNodesChange: updateNodes, onEdgesChange: updateEdges, magneticEnabled: true, autoSolidifyEnabled: false, signalTelemetryEnabled: true, onMagneticTraceSolidify: addMagneticEdge, onPredictiveSolidify: (_id, ghost) => solidifyGhost(ghost), onPredictiveSolidifyAll: (ghosts) => ghosts?.forEach(solidifyGhost), onPredictiveSolidifyAllForNode: (_nodeId, ghosts) => ghosts?.forEach(solidifyGhost) }) : /* @__PURE__ */ jsx("div", { style: { padding: 30 }, children: "Create or select a flow." }) })
133
+ ] });
134
+ }
135
+ FodModule.displayName = "FodModule";
136
+
137
+ export {
138
+ FodModule
139
+ };
@@ -1339,7 +1339,7 @@ var FrnlEditableNodeGraph = ({
1339
1339
  selectedNodeId: selectedNodeIds.size === 1 ? Array.from(selectedNodeIds)[0] : null,
1340
1340
  selectedNodeIds: Array.from(selectedNodeIds),
1341
1341
  onSolidifyPredictiveNodes: (ghosts) => {
1342
- for (const ghost of ghosts) onPredictiveSolidify?.(ghost.id);
1342
+ for (const ghost of ghosts) onPredictiveSolidify?.(ghost.id, ghost);
1343
1343
  }
1344
1344
  });
1345
1345
  useEffect2(() => {
@@ -1476,7 +1476,7 @@ var FrnlEditableNodeGraph = ({
1476
1476
  /* @__PURE__ */ jsx8("button", { type: "button", onClick: predictive.nextScenario, children: "\u2192" }),
1477
1477
  /* @__PURE__ */ jsx8("button", { type: "button", onClick: () => {
1478
1478
  predictive.solidifyAll();
1479
- onPredictiveSolidifyAll?.();
1479
+ onPredictiveSolidifyAll?.(predictive.ghostNodes);
1480
1480
  }, children: "Solidify all" })
1481
1481
  ] }),
1482
1482
  /* @__PURE__ */ jsx8("div", { "aria-label": "Predictive nodes", style: { position: "absolute", inset: 0, pointerEvents: "none", zIndex: 45 }, children: predictive.ghostNodes.map((ghost) => {
@@ -1497,7 +1497,7 @@ var FrnlEditableNodeGraph = ({
1497
1497
  ] }),
1498
1498
  predictive.isActive && predictive.selectedNodesWithGhosts.size > 0 && /* @__PURE__ */ jsx8("div", { "aria-label": "Predictive node actions", style: { position: "absolute", left: 10, bottom: 10, zIndex: 60, display: "flex", flexDirection: "column", gap: 4, pointerEvents: "auto" }, children: Array.from(predictive.selectedNodesWithGhosts.entries()).map(([nodeId, ghosts]) => /* @__PURE__ */ jsxs8("button", { type: "button", onClick: () => {
1499
1499
  predictive.solidifyAllForNode(nodeId);
1500
- onPredictiveSolidifyAllForNode?.(nodeId);
1500
+ onPredictiveSolidifyAllForNode?.(nodeId, ghosts);
1501
1501
  }, children: [
1502
1502
  "Solidify all for ",
1503
1503
  nodeId,
@@ -0,0 +1,59 @@
1
+ import React__default from 'react';
2
+
3
+ interface FodNodeDefinition {
4
+ type: string;
5
+ label: string;
6
+ description: string;
7
+ category: string;
8
+ group: string;
9
+ inputs: Array<{
10
+ id: string;
11
+ name: string;
12
+ direction: string;
13
+ dataType: string;
14
+ }>;
15
+ outputs: Array<{
16
+ id: string;
17
+ name: string;
18
+ direction: string;
19
+ dataType: string;
20
+ }>;
21
+ metadata?: Record<string, any>;
22
+ }
23
+ interface FodFlow {
24
+ id: string;
25
+ name: string;
26
+ description?: string;
27
+ version: number;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ nodes: any[];
31
+ edges: any[];
32
+ viewport?: any;
33
+ metadata?: Record<string, unknown>;
34
+ }
35
+ interface FodRuntimeLike {
36
+ listFlows(): Promise<FodFlow[]>;
37
+ getFlow(id: string): Promise<FodFlow | null>;
38
+ saveFlow(flow: FodFlow): Promise<FodFlow>;
39
+ deleteFlow(id: string): Promise<boolean>;
40
+ executeFlow(id: string): Promise<{
41
+ success: boolean;
42
+ output: unknown;
43
+ errors: Array<{
44
+ message: string;
45
+ }>;
46
+ }>;
47
+ }
48
+ interface FodModuleProps {
49
+ runtime: FodRuntimeLike;
50
+ nodeDefinitions: FodNodeDefinition[];
51
+ workspaceId: string;
52
+ className?: string;
53
+ }
54
+ declare function FodModule({ runtime, nodeDefinitions, workspaceId, className }: FodModuleProps): React__default.JSX.Element;
55
+ declare namespace FodModule {
56
+ var displayName: string;
57
+ }
58
+
59
+ export { FodModule, type FodModuleProps, type FodRuntimeLike };
@@ -0,0 +1,8 @@
1
+ import {
2
+ FodModule
3
+ } from "../chunk-7CYX3B6O.js";
4
+ import "../chunk-YHEIL67R.js";
5
+ import "../chunk-QRYNQ36L.js";
6
+ export {
7
+ FodModule
8
+ };
@@ -23,9 +23,9 @@ interface FrnlEditableNodeGraphProps {
23
23
  onNodeDoubleClick?: (nodeId: string) => void;
24
24
  onMagneticTracesChange?: (traces: Trace[]) => void;
25
25
  onMagneticTraceSolidify?: (trace: Trace | SolidConnection) => void;
26
- onPredictiveSolidify?: (ghostId: string) => void;
27
- onPredictiveSolidifyAllForNode?: (nodeId: string) => void;
28
- onPredictiveSolidifyAll?: () => void;
26
+ onPredictiveSolidify?: (ghostId: string, ghost?: any) => void;
27
+ onPredictiveSolidifyAllForNode?: (nodeId: string, ghosts?: any[]) => void;
28
+ onPredictiveSolidifyAll?: (ghosts?: any[]) => void;
29
29
  }
30
30
  declare const frnlEditableNodeGraphDefinition: {
31
31
  name: string;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FrnlEditableNodeGraph,
3
3
  frnlEditableNodeGraphDefinition
4
- } from "../chunk-VESG3VP3.js";
4
+ } from "../chunk-YHEIL67R.js";
5
5
  import "../chunk-QRYNQ36L.js";
6
6
  export {
7
7
  FrnlEditableNodeGraph,
@@ -11,6 +11,8 @@ export { B as BIOME_CONFIGS, C as COORD_SCALE, a as CameraState, b as Canvas2DVi
11
11
  export { CanvasBackground2D, CanvasErrorBoundary, ContainerNode2D, EffectNode2D, MagneticTraces2D, ModuleNode2D, NODE_CARD_WIDTH, Node2DBase, Node2DBaseProps, NodeRenderer2D, NodeRenderer2DProps, RecorderWaveformDisplay, RecorderWaveformDisplayProps, RotaryKnob, RotaryKnobProps, SOCKET_ROW_HEIGHT, Socket2D, Socket2DProps, SocketScreenPosition, TriggerNode2D, Wire2D, Wire2DProps, getSocketLocalOffset, getSocketScreenPosition, renderSpriteIcon, useCanvas2DCoordinates, useCanvas2DMagnetic } from './graph-2d/index.js';
12
12
  export { PredictiveGhostNodeCard, PredictiveGhostNodeCardProps, PredictiveHudToolbar, PredictiveLayer2D, PredictiveLayer2DProps, UsePredictiveGraph2DProps, UseViewer2DPredictiveProps, usePredictiveGraph2D } from './predictive/index.js';
13
13
  export { AuthoringAssetRef, UIAuthoringContext, UIAuthoringNode, UIAuthoringNodeKind, UIAuthoringSession, UiAuthoringBindingEditor, UiAuthoringComponentRenderer, UiAuthoringInspector, UiAuthoringPreview, UiAuthoringTree, UiAuthoringValidationPanel, UiAuthoringWorkspace, getAuthoringChildren, getAuthoringDepth, getAuthoringSubtreeIds } from './authoring/index.js';
14
+ export { FodModule, FodModuleProps, FodRuntimeLike } from './fod/index.js';
15
+ export { AikoAgentDefinition, AikoIntelligenceSpec, AikoKey, AikoModule, AikoModuleProps, AikoRuntimeLike } from './aiko/index.js';
14
16
  import '@ultrst-armada/kloks/contracts';
15
17
 
16
18
  interface MidpointWidgetsProps {
@@ -1,9 +1,43 @@
1
+ import {
2
+ BIOME_CONFIGS,
3
+ COORD_SCALE,
4
+ CanvasBackground2D,
5
+ CanvasErrorBoundary,
6
+ ContainerNode2D,
7
+ EffectNode2D,
8
+ MagneticTraces2D,
9
+ ModuleNode2D,
10
+ NodeRenderer2D,
11
+ RotaryKnob,
12
+ TriggerNode2D,
13
+ Wire2D,
14
+ useCanvas2DCoordinates,
15
+ useCanvas2DMagnetic
16
+ } from "./chunk-XVAHT5WE.js";
17
+ import {
18
+ PredictiveGhostNodeCard,
19
+ PredictiveHudToolbar,
20
+ PredictiveLayer2D
21
+ } from "./chunk-RH5NINIT.js";
22
+ import {
23
+ NODE_CARD_WIDTH,
24
+ Node2DBase,
25
+ RecorderWaveformDisplay,
26
+ SOCKET_ROW_HEIGHT,
27
+ Socket2D,
28
+ getSocketLocalOffset,
29
+ getSocketScreenPosition,
30
+ renderSpriteIcon
31
+ } from "./chunk-U2SC3RMJ.js";
1
32
  import {
2
33
  Tile,
3
34
  TileCreateButton,
4
35
  TileGrid,
5
36
  useTileMenu
6
37
  } from "./chunk-SA3JADUG.js";
38
+ import {
39
+ AikoModule
40
+ } from "./chunk-2WMWGF5G.js";
7
41
  import {
8
42
  UiAuthoringBindingEditor,
9
43
  UiAuthoringInspector,
@@ -27,10 +61,8 @@ import {
27
61
  useDock
28
62
  } from "./chunk-6VB74RCH.js";
29
63
  import {
30
- MonacoEditor,
31
- skipoDarkTheme,
32
- useMonaco
33
- } from "./chunk-ZJXRL74D.js";
64
+ FodModule
65
+ } from "./chunk-7CYX3B6O.js";
34
66
  import {
35
67
  CanvasContextMenu,
36
68
  CompatibleNodePicker,
@@ -39,41 +71,15 @@ import {
39
71
  frnlEditableNodeGraphDefinition,
40
72
  menuCategory,
41
73
  menuHidden
42
- } from "./chunk-VESG3VP3.js";
43
- import {
44
- BIOME_CONFIGS,
45
- COORD_SCALE,
46
- CanvasBackground2D,
47
- CanvasErrorBoundary,
48
- ContainerNode2D,
49
- EffectNode2D,
50
- MagneticTraces2D,
51
- ModuleNode2D,
52
- NodeRenderer2D,
53
- RotaryKnob,
54
- TriggerNode2D,
55
- Wire2D,
56
- useCanvas2DCoordinates,
57
- useCanvas2DMagnetic
58
- } from "./chunk-XVAHT5WE.js";
59
- import {
60
- PredictiveGhostNodeCard,
61
- PredictiveHudToolbar,
62
- PredictiveLayer2D
63
- } from "./chunk-RH5NINIT.js";
74
+ } from "./chunk-YHEIL67R.js";
64
75
  import {
65
76
  usePredictiveGraph2D
66
77
  } from "./chunk-QRYNQ36L.js";
67
78
  import {
68
- NODE_CARD_WIDTH,
69
- Node2DBase,
70
- RecorderWaveformDisplay,
71
- SOCKET_ROW_HEIGHT,
72
- Socket2D,
73
- getSocketLocalOffset,
74
- getSocketScreenPosition,
75
- renderSpriteIcon
76
- } from "./chunk-U2SC3RMJ.js";
79
+ MonacoEditor,
80
+ skipoDarkTheme,
81
+ useMonaco
82
+ } from "./chunk-ZJXRL74D.js";
77
83
 
78
84
  // src/node-graph-ui/widgets/MidpointWidgets.tsx
79
85
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -704,6 +710,7 @@ function MovableSocketHandle({
704
710
  );
705
711
  }
706
712
  export {
713
+ AikoModule,
707
714
  BIOME_CONFIGS,
708
715
  COORD_SCALE,
709
716
  CanvasBackground2D,
@@ -715,6 +722,7 @@ export {
715
722
  DockBar,
716
723
  DockItem,
717
724
  EffectNode2D,
725
+ FodModule,
718
726
  FrnlEditableNodeGraph,
719
727
  GraphToolbar,
720
728
  InfiniteCanvas,
@@ -3,10 +3,10 @@ import {
3
3
  PredictiveHudToolbar,
4
4
  PredictiveLayer2D
5
5
  } from "../chunk-RH5NINIT.js";
6
+ import "../chunk-U2SC3RMJ.js";
6
7
  import {
7
8
  usePredictiveGraph2D
8
9
  } from "../chunk-QRYNQ36L.js";
9
- import "../chunk-U2SC3RMJ.js";
10
10
  export {
11
11
  PredictiveGhostNodeCard,
12
12
  PredictiveHudToolbar,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://skipo.dev/schemas/floks-manifest.v1.json",
3
3
  "package": "@floks/canvas-ui",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "components": [
6
6
  {
7
7
  "id": "InfiniteCanvas",
@@ -51,6 +51,18 @@
51
51
  "requiredServices": [
52
52
  "node-graph"
53
53
  ]
54
+ },
55
+ {
56
+ "id": "FodModule",
57
+ "name": "FOD Workflow Module",
58
+ "export": "FodModule",
59
+ "subpath": "fod",
60
+ "targetTypes": [
61
+ "Main.tabs.fod"
62
+ ],
63
+ "requiredServices": [
64
+ "fod"
65
+ ]
54
66
  }
55
67
  ]
56
68
  }
@@ -57,15 +57,25 @@
57
57
  "import": "./dist/authoring/index.js",
58
58
  "types": "./dist/authoring/index.d.ts",
59
59
  "default": "./dist/authoring/index.js"
60
+ },
61
+ "./fod": {
62
+ "import": "./dist/fod/index.js",
63
+ "types": "./dist/fod/index.d.ts",
64
+ "default": "./dist/fod/index.js"
65
+ },
66
+ "./aiko": {
67
+ "import": "./dist/aiko/index.js",
68
+ "types": "./dist/aiko/index.d.ts",
69
+ "default": "./dist/aiko/index.js"
60
70
  }
61
71
  },
62
72
  "scripts": {
63
- "build": "tsup src/index.ts src/canvas/index.ts src/dock/index.ts src/tile-menu/index.ts src/editor/index.ts src/authoring/index.ts src/graph-2d/index.ts src/predictive/index.ts src/frnl-editable-node-graph/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react --external @floks/ui --external @ultrst-armada/frnlts --external @kloks/state-graph --external @kloks/audio-midi --external monaco-editor --external @dnd-kit/core --external @dnd-kit/sortable --external @dnd-kit/utilities"
73
+ "build": "tsup src/index.ts src/canvas/index.ts src/dock/index.ts src/tile-menu/index.ts src/editor/index.ts src/authoring/index.ts src/graph-2d/index.ts src/predictive/index.ts src/frnl-editable-node-graph/index.ts src/fod/index.ts src/aiko/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react --external @floks/ui --external @ultrst-armada/frnlts --external @kloks/state-graph --external @kloks/audio-midi --external monaco-editor --external @dnd-kit/core --external @dnd-kit/sortable --external @dnd-kit/utilities"
64
74
  },
65
75
  "dependencies": {
66
76
  "@floks/ui": "workspace:*",
67
77
  "@ultrst-armada/frnlts": "^0.2.7",
68
- "@ultrst-armada/kloks": "^1.17.0"
78
+ "@ultrst-armada/kloks": "^1.19.0"
69
79
  },
70
80
  "peerDependencies": {
71
81
  "@dnd-kit/core": "^6.0.0",