@ultrst-armada/floks 2.0.7 → 2.0.9
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/.krusbl-release-attestation.json +3 -3
- package/package.json +4 -4
- package/packages/canvas-ui/dist/aiko/AgentWorkspace.d.ts +8 -0
- package/packages/canvas-ui/dist/aiko/AikoModule.d.ts +11 -3
- package/packages/canvas-ui/dist/aiko/EmbeddedAikoModule.test.d.ts +1 -0
- package/packages/canvas-ui/dist/aiko/index.js +5 -3
- package/packages/canvas-ui/dist/chunk-DAAI7BIG.js +625 -0
- package/packages/canvas-ui/dist/{chunk-OHAFLB3O.js → chunk-OH7S4XFZ.js} +40 -27
- package/packages/canvas-ui/dist/fod/FodAuthorizedRemoteNodes.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/FodModule.authorization.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/FodModule.d.ts +28 -2
- package/packages/canvas-ui/dist/fod/FodPassiveNavigationAdversarial.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/FodRemoteExecution.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/FodWorkflowDraft.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/index.d.ts +3 -0
- package/packages/canvas-ui/dist/fod/index.js +25 -3
- package/packages/canvas-ui/dist/fod/remoteAuthorizationFingerprint.d.ts +10 -0
- package/packages/canvas-ui/dist/fod/remoteAuthorizationFingerprint.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/remoteGraphConnections.d.ts +40 -0
- package/packages/canvas-ui/dist/fod/remoteGraphConnections.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/remoteGraphContract.d.ts +37 -0
- package/packages/canvas-ui/dist/fod/remoteGraphContract.test.d.ts +1 -0
- package/packages/canvas-ui/dist/fod/remoteKloksInvocation.d.ts +29 -0
- package/packages/canvas-ui/dist/fod/remoteKloksInvocation.test.d.ts +1 -0
- package/packages/canvas-ui/dist/index.js +34 -10
- package/packages/canvas-ui/package.json +1 -1
- package/packages/ui/dist/chunk-5Y2HGI37.js +443 -0
- package/packages/ui/dist/{chunk-XMRSW4TL.js → chunk-6J5J56YO.js} +31 -79
- package/packages/ui/dist/{chunk-KIFQA7L6.js → chunk-CIH4FVXM.js} +22 -34
- package/packages/ui/dist/chunk-F5XUUMSI.js +14 -0
- package/packages/ui/dist/{chunk-MYXPGPI3.js → chunk-KMVDLACR.js} +25 -2
- package/packages/ui/dist/{chunk-FA6GHJKU.js → chunk-SJPSY27C.js} +163 -5
- package/packages/ui/dist/components/ai/chat/AgentChatDock.d.ts +12 -0
- package/packages/ui/dist/components/ai/chat/AgentChatPanel.d.ts +11 -0
- package/packages/ui/dist/components/ai/chat/AgentChatPanel.test.d.ts +1 -0
- package/packages/ui/dist/components/ai/chat/AgentChatTypes.d.ts +39 -0
- package/packages/ui/dist/components/ai/chat/index.d.ts +3 -0
- package/packages/ui/dist/components/ai/index.js +17 -4
- package/packages/ui/dist/components/auth/LuthOidcGate.d.ts +29 -0
- package/packages/ui/dist/components/auth/index.d.ts +1 -0
- package/packages/ui/dist/components/auth/index.js +5 -1
- package/packages/ui/dist/components/base/index.js +4 -2
- package/packages/ui/dist/components/layout/AppShell.d.ts +2 -0
- package/packages/ui/dist/components/layout/index.js +3 -1
- package/packages/ui/dist/components/workspace/WorkspaceGate.contract.test.d.ts +1 -0
- package/packages/ui/dist/index.js +24 -6
- package/packages/ui/package.json +2 -2
- package/packages/canvas-ui/dist/chunk-TKOMIUCU.js +0 -139
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// src/aiko/
|
|
1
|
+
// src/aiko/AgentWorkspace.tsx
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
function
|
|
4
|
+
function AgentWorkspace({ runtime, keyManager, workspaceId, className }) {
|
|
5
5
|
const [agents, setAgents] = useState([]);
|
|
6
6
|
const [capabilities, setCapabilities] = useState([]);
|
|
7
7
|
const [keys, setKeys] = useState([]);
|
|
@@ -20,7 +20,7 @@ function AikoModule({ runtime, workspaceId, className }) {
|
|
|
20
20
|
const refresh = async () => {
|
|
21
21
|
const [nextAgents, nextKeys, nextCaps] = await Promise.all([
|
|
22
22
|
runtime.listAgents(),
|
|
23
|
-
|
|
23
|
+
keyManager ? keyManager.listKeys() : Promise.resolve([]),
|
|
24
24
|
runtime.listCapabilities ? runtime.listCapabilities() : Promise.resolve([])
|
|
25
25
|
]);
|
|
26
26
|
setAgents(nextAgents);
|
|
@@ -29,8 +29,8 @@ function AikoModule({ runtime, workspaceId, className }) {
|
|
|
29
29
|
if (!activeAgent && nextAgents[0]) setActiveAgent(nextAgents[0].id);
|
|
30
30
|
};
|
|
31
31
|
useEffect(() => {
|
|
32
|
-
void refresh();
|
|
33
|
-
}, [workspaceId]);
|
|
32
|
+
void refresh().catch((error) => setMessage(error instanceof Error ? error.message : String(error)));
|
|
33
|
+
}, [workspaceId, runtime]);
|
|
34
34
|
const groups = useMemo(() => {
|
|
35
35
|
const map = /* @__PURE__ */ new Map();
|
|
36
36
|
for (const agent of agents) {
|
|
@@ -53,15 +53,16 @@ function AikoModule({ runtime, workspaceId, className }) {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
const addKey = async () => {
|
|
56
|
-
if (!
|
|
57
|
-
await
|
|
56
|
+
if (!keyManager?.addKey || !provider || !label || !secret) return;
|
|
57
|
+
await keyManager.addKey({ providerId: provider, label, key: secret, emailGroup: group || void 0 });
|
|
58
58
|
setSecret("");
|
|
59
59
|
await refresh();
|
|
60
60
|
};
|
|
61
61
|
const sync = async () => {
|
|
62
|
+
if (!keyManager) return;
|
|
62
63
|
setBusy(true);
|
|
63
64
|
try {
|
|
64
|
-
const response = await
|
|
65
|
+
const response = await keyManager.syncFromAikoEngine();
|
|
65
66
|
setMessage(response.message ?? "Synced " + response.synced + " keys");
|
|
66
67
|
await refresh();
|
|
67
68
|
} catch (error) {
|
|
@@ -90,7 +91,7 @@ function AikoModule({ runtime, workspaceId, className }) {
|
|
|
90
91
|
return /* @__PURE__ */ jsxs("div", { className, "data-aiko-module": "true", style: { display: "grid", gridTemplateColumns: "280px 1fr", gridTemplateRows: "48px 1fr", height: "100%", minHeight: 500 }, children: [
|
|
91
92
|
/* @__PURE__ */ jsxs("header", { style: { gridColumn: "1 / -1", display: "flex", alignItems: "center", gap: 8, padding: 8, borderBottom: "1px solid var(--skipo-border,#333)" }, children: [
|
|
92
93
|
/* @__PURE__ */ jsx("strong", { children: "AIKO" }),
|
|
93
|
-
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => void sync(), disabled: busy, children: "Fetch from Aiko Engine" }),
|
|
94
|
+
keyManager && /* @__PURE__ */ jsx("button", { type: "button", onClick: () => void sync(), disabled: busy, children: "Fetch from Aiko Engine" }),
|
|
94
95
|
/* @__PURE__ */ jsx("span", { children: message })
|
|
95
96
|
] }),
|
|
96
97
|
/* @__PURE__ */ jsxs("aside", { style: { overflow: "auto", padding: 10, borderRight: "1px solid var(--skipo-border,#333)" }, children: [
|
|
@@ -123,23 +124,25 @@ function AikoModule({ runtime, workspaceId, className }) {
|
|
|
123
124
|
] }, cap.id)) }),
|
|
124
125
|
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => void createCustomAgent(), disabled: busy || !customName.trim() || customCapIds.length === 0, children: "Create Custom Agent" })
|
|
125
126
|
] }),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
key
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
127
|
+
keyManager && /* @__PURE__ */ jsxs("section", { children: [
|
|
128
|
+
/* @__PURE__ */ jsx("h4", { children: "API Keys" }),
|
|
129
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
130
|
+
/* @__PURE__ */ jsx("input", { value: provider, onChange: (event) => setProvider(event.target.value), placeholder: "Provider" }),
|
|
131
|
+
/* @__PURE__ */ jsx("input", { value: label, onChange: (event) => setLabel(event.target.value), placeholder: "Label" }),
|
|
132
|
+
/* @__PURE__ */ jsx("input", { value: group, onChange: (event) => setGroup(event.target.value), placeholder: "Email group" }),
|
|
133
|
+
/* @__PURE__ */ jsx("input", { value: secret, onChange: (event) => setSecret(event.target.value), placeholder: "API key", type: "password" }),
|
|
134
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => void addKey(), children: "Add key" })
|
|
135
|
+
] }),
|
|
136
|
+
keys.map((key) => /* @__PURE__ */ jsxs("div", { children: [
|
|
137
|
+
key.providerId,
|
|
138
|
+
": ",
|
|
139
|
+
key.label,
|
|
140
|
+
" ",
|
|
141
|
+
key.isActive ? "(active)" : "",
|
|
142
|
+
" ",
|
|
143
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => void keyManager.rotateKey(key.providerId), children: "Rotate" })
|
|
144
|
+
] }, key.id))
|
|
145
|
+
] })
|
|
143
146
|
] }),
|
|
144
147
|
/* @__PURE__ */ jsx("main", { style: { padding: 16, overflow: "auto" }, children: activeAgent ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
145
148
|
/* @__PURE__ */ jsx("h3", { children: agents.find((agent) => agent.id === activeAgent)?.name }),
|
|
@@ -150,8 +153,18 @@ function AikoModule({ runtime, workspaceId, className }) {
|
|
|
150
153
|
] }) : /* @__PURE__ */ jsx("p", { children: "No Aiko agent selected." }) })
|
|
151
154
|
] });
|
|
152
155
|
}
|
|
156
|
+
|
|
157
|
+
// src/aiko/AikoModule.tsx
|
|
158
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
159
|
+
function AikoModule({ runtime, workspaceId, className }) {
|
|
160
|
+
return /* @__PURE__ */ jsx2(AgentWorkspace, { runtime, keyManager: runtime, workspaceId, className }, workspaceId);
|
|
161
|
+
}
|
|
162
|
+
function EmbeddedAikoModule(props) {
|
|
163
|
+
return /* @__PURE__ */ jsx2(AgentWorkspace, { ...props }, props.workspaceId);
|
|
164
|
+
}
|
|
153
165
|
AikoModule.displayName = "AikoModule";
|
|
154
166
|
|
|
155
167
|
export {
|
|
156
|
-
AikoModule
|
|
168
|
+
AikoModule,
|
|
169
|
+
EmbeddedAikoModule
|
|
157
170
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface FodNodeDefinition {
|
|
2
|
+
export interface FodNodeDefinition {
|
|
3
3
|
type: string;
|
|
4
4
|
label: string;
|
|
5
5
|
description: string;
|
|
@@ -31,6 +31,7 @@ interface FodFlow {
|
|
|
31
31
|
viewport?: any;
|
|
32
32
|
metadata?: Record<string, unknown>;
|
|
33
33
|
}
|
|
34
|
+
import { type RemoteGraphHandle } from './remoteGraphContract.js';
|
|
34
35
|
export interface FodRuntimeLike {
|
|
35
36
|
listFlows(): Promise<FodFlow[]>;
|
|
36
37
|
getFlow(id: string): Promise<FodFlow | null>;
|
|
@@ -43,14 +44,39 @@ export interface FodRuntimeLike {
|
|
|
43
44
|
message: string;
|
|
44
45
|
}>;
|
|
45
46
|
}>;
|
|
47
|
+
/** Kloks BackendFacade must reauthorize all target-side and nested calls. */
|
|
48
|
+
executeAuthorizedRemoteFlow?(request: {
|
|
49
|
+
flowId: string;
|
|
50
|
+
sourceWorkspaceId: string;
|
|
51
|
+
handles: RemoteGraphHandle[];
|
|
52
|
+
}, options: {
|
|
53
|
+
signal: AbortSignal;
|
|
54
|
+
}): ReturnType<FodRuntimeLike['executeFlow']>;
|
|
55
|
+
/** Live frontend action requires separately scoped, active-window approval. */
|
|
56
|
+
authorizeActiveFrontendWindow?(request: {
|
|
57
|
+
sourceWorkspaceId: string;
|
|
58
|
+
handles: RemoteGraphHandle[];
|
|
59
|
+
}, options: {
|
|
60
|
+
signal: AbortSignal;
|
|
61
|
+
}): Promise<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* Return only operations authorized for the active principal AND workspace.
|
|
64
|
+
* The application backend must derive this list from Luth-scoped discovery;
|
|
65
|
+
* these descriptions do not themselves grant permission to invoke a node.
|
|
66
|
+
*/
|
|
67
|
+
listAuthorizedNodeDefinitions?(workspaceId: string): Promise<FodNodeDefinition[]>;
|
|
68
|
+
/** Called on grant, publication, deployment-lease or session changes. */
|
|
69
|
+
subscribeAuthorizedNodeChanges?(workspaceId: string, onChange: () => void): () => void;
|
|
46
70
|
}
|
|
47
71
|
export interface FodModuleProps {
|
|
48
72
|
runtime: FodRuntimeLike;
|
|
49
73
|
nodeDefinitions: FodNodeDefinition[];
|
|
50
74
|
workspaceId: string;
|
|
51
75
|
className?: string;
|
|
76
|
+
/** Host-derived principal/session/grant epoch; must never contain bearer tokens. */
|
|
77
|
+
scopeKey?: string;
|
|
52
78
|
}
|
|
53
|
-
export declare function FodModule(
|
|
79
|
+
export declare function FodModule(props: FodModuleProps): React.JSX.Element;
|
|
54
80
|
export declare namespace FodModule {
|
|
55
81
|
var displayName: string;
|
|
56
82
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
FodModule
|
|
3
|
-
|
|
2
|
+
FodModule,
|
|
3
|
+
filterRemoteDefinitions,
|
|
4
|
+
invokeKloksPublishedWorkflow,
|
|
5
|
+
isLiveFrontendDefinition,
|
|
6
|
+
isRemoteGraphNode,
|
|
7
|
+
readRemoteHandle,
|
|
8
|
+
readRemotePortSnapshot,
|
|
9
|
+
remotePortFingerprint,
|
|
10
|
+
snapshotRemotePorts,
|
|
11
|
+
toKloksPublishedWorkflowCall,
|
|
12
|
+
validateRemoteConnections,
|
|
13
|
+
validateRemoteGraph
|
|
14
|
+
} from "../chunk-DAAI7BIG.js";
|
|
4
15
|
import "../chunk-SRGVIYC5.js";
|
|
5
16
|
import "../chunk-ZSVXR3HU.js";
|
|
6
17
|
export {
|
|
7
|
-
FodModule
|
|
18
|
+
FodModule,
|
|
19
|
+
filterRemoteDefinitions,
|
|
20
|
+
invokeKloksPublishedWorkflow,
|
|
21
|
+
isLiveFrontendDefinition,
|
|
22
|
+
isRemoteGraphNode,
|
|
23
|
+
readRemoteHandle,
|
|
24
|
+
readRemotePortSnapshot,
|
|
25
|
+
remotePortFingerprint,
|
|
26
|
+
snapshotRemotePorts,
|
|
27
|
+
toKloksPublishedWorkflowCall,
|
|
28
|
+
validateRemoteConnections,
|
|
29
|
+
validateRemoteGraph
|
|
8
30
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type RemoteGraphDefinition } from './remoteGraphContract.js';
|
|
2
|
+
/**
|
|
3
|
+
* Stable, non-authoritative comparison of a fresh Luth/Kloks-scoped operation
|
|
4
|
+
* catalogue. A lease renewal changes only the expiration timestamp; it does
|
|
5
|
+
* not revoke an in-flight invocation. Expiration itself removes the operation
|
|
6
|
+
* from filterRemoteDefinitions, changing this fingerprint.
|
|
7
|
+
*
|
|
8
|
+
* The target still checks the session, lease and grants on every call.
|
|
9
|
+
*/
|
|
10
|
+
export declare function remoteAuthorizationFingerprint(definitions: readonly RemoteGraphDefinition[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type RemoteGraphDefinition, type RemoteGraphPort, type RemoteSavedNode } from './remoteGraphContract.js';
|
|
2
|
+
/**
|
|
3
|
+
* A snapshot is display-only after a grant is removed; it never authorizes a call.
|
|
4
|
+
* The fingerprint pins the original typed interface even if a provider illegally
|
|
5
|
+
* reuses an operation version with different ports.
|
|
6
|
+
*/
|
|
7
|
+
export interface RemotePortSnapshot {
|
|
8
|
+
inputs: RemoteGraphPort[];
|
|
9
|
+
outputs: RemoteGraphPort[];
|
|
10
|
+
}
|
|
11
|
+
export interface FodConnectionEdge {
|
|
12
|
+
id: string;
|
|
13
|
+
source: string;
|
|
14
|
+
sourceHandle?: string;
|
|
15
|
+
target: string;
|
|
16
|
+
targetHandle?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ValidatedRemoteConnection {
|
|
19
|
+
edgeId: string;
|
|
20
|
+
sourceNodeId: string;
|
|
21
|
+
sourcePortId: string;
|
|
22
|
+
targetNodeId: string;
|
|
23
|
+
targetPortId: string;
|
|
24
|
+
dataType: string;
|
|
25
|
+
}
|
|
26
|
+
export interface RemoteConnectionValidation {
|
|
27
|
+
ok: boolean;
|
|
28
|
+
connections: ValidatedRemoteConnection[];
|
|
29
|
+
message?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function snapshotRemotePorts(definition: RemoteGraphDefinition): RemotePortSnapshot;
|
|
32
|
+
/** Parse saved port labels for an unavailable node without trusting them as live capabilities. */
|
|
33
|
+
export declare function readRemotePortSnapshot(value: unknown): RemotePortSnapshot | null;
|
|
34
|
+
export declare function remotePortFingerprint(definition: RemoteGraphDefinition): string;
|
|
35
|
+
/**
|
|
36
|
+
* Validate the graph wiring against *fresh scoped discovery*. The normal Kloks
|
|
37
|
+
* engine still owns ordering, fan-out, lifecycle, transport and authorization.
|
|
38
|
+
* This check only rejects corrupt or ambiguous client graph configuration.
|
|
39
|
+
*/
|
|
40
|
+
export declare function validateRemoteConnections(nodes: readonly RemoteSavedNode[], edges: readonly FodConnectionEdge[], definitions: readonly RemoteGraphDefinition[]): RemoteConnectionValidation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Fail-closed remote graph handles. Authorization remains with Kloks/Luth at the target. */
|
|
2
|
+
export interface RemoteGraphHandle {
|
|
3
|
+
appId: string;
|
|
4
|
+
targetWorkspaceId: string;
|
|
5
|
+
operationId: string;
|
|
6
|
+
operationVersion: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RemoteGraphPort {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
direction: string;
|
|
12
|
+
dataType: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RemoteGraphDefinition {
|
|
15
|
+
type: string;
|
|
16
|
+
category: string;
|
|
17
|
+
inputs: RemoteGraphPort[];
|
|
18
|
+
outputs: RemoteGraphPort[];
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
export interface RemoteSavedNode {
|
|
22
|
+
id: string;
|
|
23
|
+
type: string;
|
|
24
|
+
data?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
export interface RemoteGraphValidation {
|
|
27
|
+
ok: boolean;
|
|
28
|
+
handles: RemoteGraphHandle[];
|
|
29
|
+
message?: string;
|
|
30
|
+
requiresWindowConsent: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function readRemoteHandle(value: unknown): RemoteGraphHandle | null;
|
|
33
|
+
export declare function isRemoteGraphNode(node: RemoteSavedNode): boolean;
|
|
34
|
+
export declare function isLiveFrontendDefinition(definition: RemoteGraphDefinition): boolean;
|
|
35
|
+
export declare function filterRemoteDefinitions<T extends RemoteGraphDefinition>(definitions: readonly T[], localTypes?: readonly string[]): T[];
|
|
36
|
+
/** Reconcile saved handles against fresh principal/workspace-scoped discovery before dispatch. */
|
|
37
|
+
export declare function validateRemoteGraph(nodes: readonly RemoteSavedNode[], definitions: readonly RemoteGraphDefinition[]): RemoteGraphValidation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kloks FOD W5 uses a positive numeric immutable workflow revision. Generic
|
|
3
|
+
* Skipo operation versions remain opaque strings; NEVER coerce those unless
|
|
4
|
+
* the descriptor identifies an explicitly published FOD workflow.
|
|
5
|
+
*
|
|
6
|
+
* See Kloks packages/fod/WORKFLOW_BACKEND_CONTRACT.md (#113).
|
|
7
|
+
*/
|
|
8
|
+
export interface KloksPublishedWorkflowCall {
|
|
9
|
+
targetAppId: string;
|
|
10
|
+
targetWorkspaceId: string;
|
|
11
|
+
workflowId: string;
|
|
12
|
+
version: number;
|
|
13
|
+
input?: unknown;
|
|
14
|
+
}
|
|
15
|
+
/** Narrow structural contract for the existing Kloks BackendClient's fod domain. */
|
|
16
|
+
export interface KloksBackendClientLike {
|
|
17
|
+
domain(domainName: string): {
|
|
18
|
+
execute(operation: string, payload: KloksPublishedWorkflowCall): Promise<unknown>;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare function toKloksPublishedWorkflowCall(candidate: unknown, input?: unknown): KloksPublishedWorkflowCall;
|
|
22
|
+
/**
|
|
23
|
+
* A typed adapter, not a new engine or authorization service. Host code must
|
|
24
|
+
* call it from the existing scoped graph executor, carrying authenticated
|
|
25
|
+
* source-workspace and ancestry via its trusted Kloks transport context.
|
|
26
|
+
* Target-side Kloks FOD W5 verifies the Luth principal, grant, version, cycle
|
|
27
|
+
* and owning workspace independently on EVERY invocation.
|
|
28
|
+
*/
|
|
29
|
+
export declare function invokeKloksPublishedWorkflow<R = unknown>(client: KloksBackendClientLike, handle: unknown, input?: unknown): Promise<R>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -36,8 +36,9 @@ import {
|
|
|
36
36
|
useTileMenu
|
|
37
37
|
} from "./chunk-SA3JADUG.js";
|
|
38
38
|
import {
|
|
39
|
-
AikoModule
|
|
40
|
-
|
|
39
|
+
AikoModule,
|
|
40
|
+
EmbeddedAikoModule
|
|
41
|
+
} from "./chunk-OH7S4XFZ.js";
|
|
41
42
|
import {
|
|
42
43
|
UiAuthoringBindingEditor,
|
|
43
44
|
UiAuthoringInspector,
|
|
@@ -61,11 +62,6 @@ import {
|
|
|
61
62
|
DockItem,
|
|
62
63
|
useDock
|
|
63
64
|
} from "./chunk-6VB74RCH.js";
|
|
64
|
-
import {
|
|
65
|
-
MonacoEditor,
|
|
66
|
-
skipoDarkTheme,
|
|
67
|
-
useMonaco
|
|
68
|
-
} from "./chunk-KAKAFGVH.js";
|
|
69
65
|
import {
|
|
70
66
|
CanvasViewport,
|
|
71
67
|
InfiniteCanvas,
|
|
@@ -73,8 +69,24 @@ import {
|
|
|
73
69
|
useCanvas
|
|
74
70
|
} from "./chunk-34YRDZPJ.js";
|
|
75
71
|
import {
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
MonacoEditor,
|
|
73
|
+
skipoDarkTheme,
|
|
74
|
+
useMonaco
|
|
75
|
+
} from "./chunk-KAKAFGVH.js";
|
|
76
|
+
import {
|
|
77
|
+
FodModule,
|
|
78
|
+
filterRemoteDefinitions,
|
|
79
|
+
invokeKloksPublishedWorkflow,
|
|
80
|
+
isLiveFrontendDefinition,
|
|
81
|
+
isRemoteGraphNode,
|
|
82
|
+
readRemoteHandle,
|
|
83
|
+
readRemotePortSnapshot,
|
|
84
|
+
remotePortFingerprint,
|
|
85
|
+
snapshotRemotePorts,
|
|
86
|
+
toKloksPublishedWorkflowCall,
|
|
87
|
+
validateRemoteConnections,
|
|
88
|
+
validateRemoteGraph
|
|
89
|
+
} from "./chunk-DAAI7BIG.js";
|
|
78
90
|
import {
|
|
79
91
|
CanvasContextMenu,
|
|
80
92
|
CompatibleNodePicker,
|
|
@@ -729,6 +741,7 @@ export {
|
|
|
729
741
|
DockBar,
|
|
730
742
|
DockItem,
|
|
731
743
|
EffectNode2D,
|
|
744
|
+
EmbeddedAikoModule,
|
|
732
745
|
FodModule,
|
|
733
746
|
FrnlEditableNodeGraph,
|
|
734
747
|
GraphToolbar,
|
|
@@ -767,19 +780,28 @@ export {
|
|
|
767
780
|
addAuthoringNode,
|
|
768
781
|
bindAuthoringProperty,
|
|
769
782
|
createAuthoringSession,
|
|
783
|
+
filterRemoteDefinitions,
|
|
770
784
|
frnlEditableNodeGraphDefinition,
|
|
771
785
|
getAuthoringChildren,
|
|
772
786
|
getAuthoringDepth,
|
|
773
787
|
getAuthoringSubtreeIds,
|
|
774
788
|
getSocketLocalOffset,
|
|
775
789
|
getSocketScreenPosition,
|
|
790
|
+
invokeKloksPublishedWorkflow,
|
|
791
|
+
isLiveFrontendDefinition,
|
|
792
|
+
isRemoteGraphNode,
|
|
776
793
|
menuCategory,
|
|
777
794
|
menuHidden,
|
|
795
|
+
readRemoteHandle,
|
|
796
|
+
readRemotePortSnapshot,
|
|
797
|
+
remotePortFingerprint,
|
|
778
798
|
removeAuthoringBinding,
|
|
779
799
|
removeAuthoringNode,
|
|
780
800
|
renderSpriteIcon,
|
|
781
801
|
setAuthoringOperations,
|
|
782
802
|
skipoDarkTheme,
|
|
803
|
+
snapshotRemotePorts,
|
|
804
|
+
toKloksPublishedWorkflowCall,
|
|
783
805
|
updateAuthoringNode,
|
|
784
806
|
useCanvas,
|
|
785
807
|
useCanvas2DCoordinates,
|
|
@@ -787,5 +809,7 @@ export {
|
|
|
787
809
|
useDock,
|
|
788
810
|
useMonaco,
|
|
789
811
|
usePredictiveGraph2D,
|
|
790
|
-
useTileMenu
|
|
812
|
+
useTileMenu,
|
|
813
|
+
validateRemoteConnections,
|
|
814
|
+
validateRemoteGraph
|
|
791
815
|
};
|