@ultrst-armada/kloks 1.4.3 → 1.4.5
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/package.json +8 -20
- package/packages/audio-midi/dist/index.d.ts +23 -14
- package/packages/audio-midi/dist/index.js +170 -45
- package/packages/audio-midi/kloks.manifest.json +8 -8
- package/packages/audio-midi/package.json +1 -1
- package/packages/backend/dist/{WebSocketTransport-CxUzUfwl.d.ts → WebSocketTransport-CHmkJ0tj.d.ts} +109 -2
- package/packages/backend/dist/auth/index.js +6 -6
- package/packages/backend/dist/{chunk-T3NYNBDC.js → chunk-5E6JRFUH.js} +201 -3
- package/packages/backend/dist/{chunk-XTWHEZWS.js → chunk-7B24ZWB3.js} +16 -1
- package/packages/backend/dist/chunk-DULUHQ5S.js +597 -0
- package/packages/backend/dist/{chunk-4ZFXEFOE.js → chunk-MPYASJ5A.js} +2 -87
- package/packages/backend/dist/{chunk-KX3OTBQ3.js → chunk-OZDYAEH4.js} +0 -114
- package/packages/backend/dist/{chunk-FO6WYLW4.js → chunk-TQMLJ7NY.js} +131 -44
- package/packages/backend/dist/chunk-TY32TUNI.js +376 -0
- package/packages/backend/dist/chunk-VDROUXFT.js +116 -0
- package/packages/backend/dist/chunk-ZDH4XI7W.js +140 -0
- package/packages/backend/dist/{chunk-DZ4ZGIZM.js → chunk-ZO3PZGNQ.js} +96 -655
- package/packages/backend/dist/client/index.d.ts +2 -3
- package/packages/backend/dist/connectivity/index.d.ts +18 -6
- package/packages/backend/dist/connectivity/index.js +3 -7
- package/packages/backend/dist/index.d.ts +3 -6
- package/packages/backend/dist/index.js +98 -88
- package/packages/backend/dist/krnl-services.d.ts +84 -7
- package/packages/backend/dist/krnl-services.js +40 -12
- package/packages/backend/dist/services/index.d.ts +4 -6
- package/packages/backend/dist/services/index.js +2 -2
- package/packages/backend/dist/srkl/index.js +6 -4
- package/packages/backend/dist/storage/index.js +7 -7
- package/packages/backend/dist/workspace/index.js +2 -2
- package/packages/backend/kloks.manifest.json +47 -45
- package/packages/backend/package.json +3 -8
- package/packages/client/package.json +1 -1
- package/packages/contracts/dist/index.js +5 -10
- package/packages/contracts/package.json +1 -1
- package/packages/functions/dist/index.d.ts +12 -1
- package/packages/functions/dist/index.js +132 -24
- package/packages/functions/package.json +1 -1
- package/packages/orchestrations/dist/index.d.ts +33 -31
- package/packages/orchestrations/dist/index.js +81 -203
- package/packages/orchestrations/kloks.manifest.json +10 -2
- package/packages/orchestrations/package.json +2 -2
- package/packages/services/dist/index.d.ts +51 -1
- package/packages/services/dist/index.js +234 -36
- package/packages/services/kloks.manifest.json +69 -33
- package/packages/services/package.json +1 -1
- package/packages/state-graph/dist/{BaseGraph-BvkSYOTw.d.ts → BaseGraph-Bd5F1NMP.d.ts} +1 -1
- package/packages/state-graph/dist/{BaseNode-DTcd3K1B.d.ts → BaseNode-DKpGXMy8.d.ts} +6 -0
- package/packages/state-graph/dist/{CompatibilityMatrix-Dj-tCWUA.d.ts → CompatibilityMatrix-TiEJ3j3_.d.ts} +1 -1
- package/packages/state-graph/dist/domain/index.d.ts +3 -3
- package/packages/state-graph/dist/domain/index.js +0 -1
- package/packages/state-graph/dist/index.d.ts +40 -8
- package/packages/state-graph/dist/index.js +214 -65
- package/packages/state-graph/dist/rules/index.d.ts +3 -3
- package/packages/state-graph/dist/rules/index.js +0 -1
- package/packages/state-graph/dist/spatial/index.d.ts +4 -4
- package/packages/state-graph/dist/spatial/index.js +0 -1
- package/packages/state-graph/dist/state/index.js +1 -3
- package/packages/state-graph/dist/store/index.d.ts +4 -4
- package/packages/state-graph/dist/store/index.js +0 -1
- package/packages/state-graph/dist/{types-VDoc4FIc.d.ts → types-D5kQSa65.d.ts} +2 -2
- package/packages/state-graph/kloks.manifest.json +26 -10
- package/packages/state-graph/package.json +2 -8
- package/packages/backend/dist/IdempotencyManager-B5MjK871.d.ts +0 -16
- package/packages/backend/dist/chunk-25Y7AVTP.js +0 -55
- package/packages/backend/dist/chunk-3EPY34R6.js +0 -67
- package/packages/backend/dist/chunk-7KNGX522.js +0 -220
- package/packages/backend/dist/chunk-FZKBTF34.js +0 -15
- package/packages/backend/dist/chunk-QGHDJGYS.js +0 -92
- package/packages/backend/dist/chunk-UPFKBBQI.js +0 -138
- package/packages/backend/dist/chunk-VQEFULWT.js +0 -88
- package/packages/backend/dist/execution/index.d.ts +0 -124
- package/packages/backend/dist/execution/index.js +0 -20
- package/packages/backend/dist/types-BERZJ93O.d.ts +0 -110
- package/packages/state-graph/dist/chunk-3RG5ZIWI.js +0 -10
- package/packages/state-graph/dist/chunk-Q5I42UX7.js +0 -0
- package/packages/state-graph/dist/chunk-ZTHBPV24.js +0 -267
- package/packages/state-graph/dist/execution/index.d.ts +0 -152
- package/packages/state-graph/dist/execution/index.js +0 -16
- /package/packages/state-graph/dist/{chunk-SHIBCPGQ.js → chunk-EW4ACSZB.js} +0 -0
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ExecutableBackendFacade, WorkerExecutionBoundary } from '@ultrst-armada/kloks/backend/execution';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @file backendExecutionFacade.ts
|
|
6
|
-
* @description Registers backend services on ExecutableBackendFacade and connects BullMQ workers.
|
|
7
|
-
* Enforces SKIPO::STATE_EXECUTION_ARCHITECTURE (Worker-only access to Backend Facade).
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
declare class WorkspaceBackendFacade extends ExecutableBackendFacade {
|
|
11
|
-
}
|
|
12
|
-
declare const backendFacade: WorkspaceBackendFacade;
|
|
13
|
-
declare const workerExecutionBoundary: WorkerExecutionBoundary;
|
|
1
|
+
import { OrchestrationDefinition } from '@ultrst-armada/krnl';
|
|
14
2
|
|
|
15
3
|
/**
|
|
16
4
|
* @file index.ts
|
|
17
|
-
* @description @ultrst-armada/kloks/orchestrations — Canonical
|
|
18
|
-
*
|
|
19
|
-
*
|
|
5
|
+
* @description @ultrst-armada/kloks/orchestrations — Canonical pure Orchestration Definitions A & B.
|
|
6
|
+
* STRICT INVARIANT: Kloks is a pure distribution catalog and NEVER owns execution,
|
|
7
|
+
* queues, workers, schedulers, or dispatchers. Kloks exports pure serializable definitions
|
|
8
|
+
* conforming to OrchestrationDefinition<TInput, TOutput>.
|
|
20
9
|
*/
|
|
21
10
|
|
|
22
|
-
interface OrchestratorFacade<TInput = unknown, TOutput = unknown> {
|
|
23
|
-
readonly id: string;
|
|
24
|
-
readonly name: string;
|
|
25
|
-
readonly version: string;
|
|
26
|
-
readonly dependencies: string[];
|
|
27
|
-
execute(input: TInput): Promise<TOutput>;
|
|
28
|
-
}
|
|
29
11
|
interface OrchestratorAInput {
|
|
30
12
|
a: number;
|
|
31
13
|
b: number;
|
|
@@ -33,23 +15,43 @@ interface OrchestratorAInput {
|
|
|
33
15
|
}
|
|
34
16
|
interface OrchestratorAOutput {
|
|
35
17
|
computed: number;
|
|
36
|
-
state:
|
|
18
|
+
state: {
|
|
19
|
+
count: number;
|
|
20
|
+
};
|
|
37
21
|
}
|
|
38
22
|
/**
|
|
39
|
-
*
|
|
23
|
+
* Pure serializable definition for Orchestrator A.
|
|
24
|
+
* Sequences Service A (Pure Math) -> Service B (Stateful Counter).
|
|
25
|
+
* Free from execution machinery. To be instantiated and executed by Skipo/runtime.
|
|
40
26
|
*/
|
|
41
|
-
declare const
|
|
27
|
+
declare const OrchestratorADefinition: OrchestrationDefinition<OrchestratorAInput, OrchestratorAOutput>;
|
|
42
28
|
interface OrchestratorBInput {
|
|
43
29
|
delta?: number;
|
|
44
30
|
metricName?: string;
|
|
45
31
|
}
|
|
46
32
|
interface OrchestratorBOutput {
|
|
47
|
-
state:
|
|
48
|
-
|
|
33
|
+
state: {
|
|
34
|
+
count: number;
|
|
35
|
+
};
|
|
36
|
+
emitted: {
|
|
37
|
+
metric: string;
|
|
38
|
+
value: number;
|
|
39
|
+
timestamp: number;
|
|
40
|
+
};
|
|
49
41
|
}
|
|
50
42
|
/**
|
|
51
|
-
*
|
|
43
|
+
* Pure serializable definition for Orchestrator B.
|
|
44
|
+
* Sequences Service B (Stateful Counter) -> Service C (Event-Emitting Telemetry).
|
|
45
|
+
* Free from execution machinery. To be instantiated and executed by Skipo/runtime.
|
|
46
|
+
*/
|
|
47
|
+
declare const OrchestratorBDefinition: OrchestrationDefinition<OrchestratorBInput, OrchestratorBOutput>;
|
|
48
|
+
/**
|
|
49
|
+
* Pure serializable definition for Audio-Midi Orchestrator.
|
|
50
|
+
* Sequences MidiService -> AudioHardwareService.
|
|
52
51
|
*/
|
|
53
|
-
declare const
|
|
52
|
+
declare const AudioMidiOrchestratorDefinition: OrchestrationDefinition;
|
|
53
|
+
declare const krnlOrchestratorADefinition: OrchestrationDefinition<OrchestratorAInput, OrchestratorAOutput>;
|
|
54
|
+
declare const krnlOrchestratorBDefinition: OrchestrationDefinition<OrchestratorBInput, OrchestratorBOutput>;
|
|
55
|
+
declare const krnlAudioMidiOrchestratorDefinition: OrchestrationDefinition<unknown, unknown>;
|
|
54
56
|
|
|
55
|
-
export {
|
|
57
|
+
export { AudioMidiOrchestratorDefinition, OrchestratorADefinition, type OrchestratorAInput, type OrchestratorAOutput, OrchestratorBDefinition, type OrchestratorBInput, type OrchestratorBOutput, krnlAudioMidiOrchestratorDefinition, krnlOrchestratorADefinition, krnlOrchestratorBDefinition };
|
|
@@ -1,214 +1,92 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
|
|
3
|
-
ServiceAFacade,
|
|
4
|
-
ServiceBFacade,
|
|
5
|
-
ServiceCFacade
|
|
6
|
-
} from "@ultrst-armada/kloks/services";
|
|
7
|
-
|
|
8
|
-
// src/worker-facade/backendExecutionFacade.ts
|
|
9
|
-
import {
|
|
10
|
-
ExecutableBackendFacade,
|
|
11
|
-
WorkerExecutionBoundary,
|
|
12
|
-
ServiceDispatcher,
|
|
13
|
-
createOperationComponent
|
|
14
|
-
} from "@ultrst-armada/kloks/backend/execution";
|
|
15
|
-
import { SKIPO_EXECUTION } from "@ultrst-armada/kloks/state-graph";
|
|
16
|
-
var WorkspaceBackendFacade = class extends ExecutableBackendFacade {
|
|
17
|
-
};
|
|
18
|
-
var backendFacade = new WorkspaceBackendFacade("WorkspaceBackendFacade");
|
|
19
|
-
var projectService = new ServiceDispatcher("project");
|
|
20
|
-
projectService.registerOperation(
|
|
21
|
-
"list",
|
|
22
|
-
createOperationComponent("list", async (input) => {
|
|
23
|
-
const wsId = input && typeof input === "object" && "workspaceId" in input ? input.workspaceId : void 0;
|
|
24
|
-
const url = wsId ? `/api/workspaces/${encodeURIComponent(wsId)}/graphs` : "/api/projects";
|
|
25
|
-
const res = await fetch(url);
|
|
26
|
-
return await res.json();
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
projectService.registerOperation(
|
|
30
|
-
"get",
|
|
31
|
-
createOperationComponent("get", async (input) => {
|
|
32
|
-
const url = input.workspaceId ? `/api/workspaces/${encodeURIComponent(input.workspaceId)}/graphs/${encodeURIComponent(input.id)}` : `/api/projects/${input.id}`;
|
|
33
|
-
const res = await fetch(url);
|
|
34
|
-
return await res.json();
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
projectService.registerOperation(
|
|
38
|
-
"save",
|
|
39
|
-
createOperationComponent("save", async (input) => {
|
|
40
|
-
const url = input.workspaceId ? `/api/workspaces/${encodeURIComponent(input.workspaceId)}/graphs/${encodeURIComponent(input.id)}` : `/api/projects/${input.id}`;
|
|
41
|
-
const res = await fetch(url, {
|
|
42
|
-
method: "PUT",
|
|
43
|
-
headers: { "Content-Type": "application/json" },
|
|
44
|
-
body: JSON.stringify(input.projectData)
|
|
45
|
-
});
|
|
46
|
-
return await res.json();
|
|
47
|
-
})
|
|
48
|
-
);
|
|
49
|
-
projectService.registerOperation(
|
|
50
|
-
"create",
|
|
51
|
-
createOperationComponent("create", async (input) => {
|
|
52
|
-
const wsId = input?.workspaceId;
|
|
53
|
-
const url = wsId ? `/api/workspaces/${encodeURIComponent(wsId)}/graphs` : "/api/projects";
|
|
54
|
-
const res = await fetch(url, {
|
|
55
|
-
method: "POST",
|
|
56
|
-
headers: { "Content-Type": "application/json" },
|
|
57
|
-
body: JSON.stringify(input)
|
|
58
|
-
});
|
|
59
|
-
return await res.json();
|
|
60
|
-
})
|
|
61
|
-
);
|
|
62
|
-
projectService.registerOperation(
|
|
63
|
-
"delete",
|
|
64
|
-
createOperationComponent("delete", async (input) => {
|
|
65
|
-
const url = input.workspaceId ? `/api/workspaces/${encodeURIComponent(input.workspaceId)}/graphs/${encodeURIComponent(input.id)}` : `/api/projects/${input.id}`;
|
|
66
|
-
const res = await fetch(url, {
|
|
67
|
-
method: "DELETE"
|
|
68
|
-
});
|
|
69
|
-
return await res.json();
|
|
70
|
-
})
|
|
71
|
-
);
|
|
72
|
-
var sampleService = new ServiceDispatcher("sample");
|
|
73
|
-
sampleService.registerOperation(
|
|
74
|
-
"list",
|
|
75
|
-
createOperationComponent("list", async (input) => {
|
|
76
|
-
const projectId = input && typeof input === "object" && "projectId" in input ? input.projectId : null;
|
|
77
|
-
const globalRes = await fetch("/api/samples/global");
|
|
78
|
-
const globalData = await globalRes.json();
|
|
79
|
-
let projectSamples = [];
|
|
80
|
-
if (projectId) {
|
|
81
|
-
try {
|
|
82
|
-
const projRes = await fetch(`/api/samples/projects/${encodeURIComponent(projectId)}/samples`);
|
|
83
|
-
const projData = await projRes.json();
|
|
84
|
-
projectSamples = projData.samples || [];
|
|
85
|
-
} catch (err) {
|
|
86
|
-
console.error("Failed to fetch project samples in facade:", err);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
globalSamples: globalData.samples || [],
|
|
91
|
-
projectSamples
|
|
92
|
-
};
|
|
93
|
-
})
|
|
94
|
-
);
|
|
95
|
-
sampleService.registerOperation(
|
|
96
|
-
"upload",
|
|
97
|
-
createOperationComponent("upload", async (input) => {
|
|
98
|
-
const res = await fetch("/api/samples", {
|
|
99
|
-
method: "POST",
|
|
100
|
-
body: input
|
|
101
|
-
});
|
|
102
|
-
return await res.json();
|
|
103
|
-
})
|
|
104
|
-
);
|
|
105
|
-
sampleService.registerOperation(
|
|
106
|
-
"delete",
|
|
107
|
-
createOperationComponent("delete", async (input) => {
|
|
108
|
-
const res = await fetch(`/api/samples/${input.id}`, {
|
|
109
|
-
method: "DELETE"
|
|
110
|
-
});
|
|
111
|
-
return await res.json();
|
|
112
|
-
})
|
|
113
|
-
);
|
|
114
|
-
var assetPoolService = new ServiceDispatcher("asset");
|
|
115
|
-
assetPoolService.registerOperation(
|
|
116
|
-
"listPool",
|
|
117
|
-
createOperationComponent("listPool", async (input) => {
|
|
118
|
-
const params = new URLSearchParams();
|
|
119
|
-
if (input?.scope) params.set("scope", input.scope);
|
|
120
|
-
if (input?.projectId) params.set("projectId", input.projectId);
|
|
121
|
-
const res = await fetch(`/api/assets/pools?${params.toString()}`);
|
|
122
|
-
return await res.json();
|
|
123
|
-
})
|
|
124
|
-
);
|
|
125
|
-
assetPoolService.registerOperation(
|
|
126
|
-
"createFolder",
|
|
127
|
-
createOperationComponent(
|
|
128
|
-
"createFolder",
|
|
129
|
-
async (input) => {
|
|
130
|
-
const res = await fetch("/api/assets/folder", {
|
|
131
|
-
method: "POST",
|
|
132
|
-
headers: { "Content-Type": "application/json" },
|
|
133
|
-
body: JSON.stringify(input)
|
|
134
|
-
});
|
|
135
|
-
return await res.json();
|
|
136
|
-
}
|
|
137
|
-
)
|
|
138
|
-
);
|
|
139
|
-
assetPoolService.registerOperation(
|
|
140
|
-
"upload",
|
|
141
|
-
createOperationComponent("upload", async (input) => {
|
|
142
|
-
const res = await fetch("/api/assets/upload", {
|
|
143
|
-
method: "POST",
|
|
144
|
-
headers: { "Content-Type": "application/json" },
|
|
145
|
-
body: JSON.stringify(input)
|
|
146
|
-
});
|
|
147
|
-
return await res.json();
|
|
148
|
-
})
|
|
149
|
-
);
|
|
150
|
-
assetPoolService.registerOperation(
|
|
151
|
-
"delete",
|
|
152
|
-
createOperationComponent("delete", async (input) => {
|
|
153
|
-
const params = new URLSearchParams(input);
|
|
154
|
-
const res = await fetch(`/api/assets/file?${params.toString()}`, {
|
|
155
|
-
method: "DELETE"
|
|
156
|
-
});
|
|
157
|
-
return await res.json();
|
|
158
|
-
})
|
|
159
|
-
);
|
|
160
|
-
backendFacade.registerService(projectService);
|
|
161
|
-
backendFacade.registerService(sampleService);
|
|
162
|
-
backendFacade.registerService(assetPoolService);
|
|
163
|
-
var workerExecutionBoundary = new WorkerExecutionBoundary("workspace_worker_pool_1", backendFacade);
|
|
164
|
-
SKIPO_EXECUTION.registerWorkerHandler?.(async (command) => {
|
|
165
|
-
return await workerExecutionBoundary.processJob(command);
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
// src/index.ts
|
|
169
|
-
var OrchestratorAFacade = {
|
|
2
|
+
var OrchestratorADefinition = {
|
|
170
3
|
id: "kloks.orchestrator.a",
|
|
171
4
|
name: "OrchestratorA",
|
|
172
5
|
version: "1.0.0",
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
6
|
+
description: "Pure serializable orchestration definition: Service A -> Service B",
|
|
7
|
+
scope: "service",
|
|
8
|
+
dependencies: ["kloks.service.a", "kloks.service.b"],
|
|
9
|
+
steps: [
|
|
10
|
+
{
|
|
11
|
+
id: "step_math",
|
|
12
|
+
name: "Execute Math Operation",
|
|
13
|
+
type: "task",
|
|
14
|
+
target: "kloks.service.a",
|
|
15
|
+
operation: "add",
|
|
16
|
+
retryPolicy: {
|
|
17
|
+
maxAttempts: 2,
|
|
18
|
+
backoff: "exponential",
|
|
19
|
+
backoffMs: 50
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "step_counter",
|
|
24
|
+
name: "Increment Counter",
|
|
25
|
+
type: "task",
|
|
26
|
+
target: "kloks.service.b",
|
|
27
|
+
operation: "increment",
|
|
28
|
+
dependsOn: ["step_math"]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
188
31
|
};
|
|
189
|
-
var
|
|
32
|
+
var OrchestratorBDefinition = {
|
|
190
33
|
id: "kloks.orchestrator.b",
|
|
191
34
|
name: "OrchestratorB",
|
|
192
35
|
version: "1.0.0",
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
36
|
+
description: "Pure serializable orchestration definition: Service B -> Service C",
|
|
37
|
+
scope: "service",
|
|
38
|
+
dependencies: ["kloks.service.b", "kloks.service.c"],
|
|
39
|
+
steps: [
|
|
40
|
+
{
|
|
41
|
+
id: "step_counter",
|
|
42
|
+
name: "Increment Counter",
|
|
43
|
+
type: "task",
|
|
44
|
+
target: "kloks.service.b",
|
|
45
|
+
operation: "increment"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: "step_telemetry",
|
|
49
|
+
name: "Publish Telemetry Reading",
|
|
50
|
+
type: "task",
|
|
51
|
+
target: "kloks.service.c",
|
|
52
|
+
operation: "publishReading",
|
|
53
|
+
dependsOn: ["step_counter"]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
};
|
|
57
|
+
var AudioMidiOrchestratorDefinition = {
|
|
58
|
+
id: "kloks.orchestrator.audioMidi",
|
|
59
|
+
name: "AudioMidiOrchestrator",
|
|
60
|
+
version: "1.0.0",
|
|
61
|
+
description: "Pure serializable orchestration definition: Midi -> AudioHardware",
|
|
62
|
+
scope: "service",
|
|
63
|
+
dependencies: ["kloks.midi.subsystem", "kloks.audio.hardware"],
|
|
64
|
+
steps: [
|
|
65
|
+
{
|
|
66
|
+
id: "step_midi",
|
|
67
|
+
name: "Emit Virtual MIDI",
|
|
68
|
+
type: "task",
|
|
69
|
+
target: "kloks.midi.subsystem",
|
|
70
|
+
operation: "emitVirtualMidi"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "step_audio",
|
|
74
|
+
name: "Get Audio Hardware State",
|
|
75
|
+
type: "task",
|
|
76
|
+
target: "kloks.audio.hardware",
|
|
77
|
+
operation: "getState",
|
|
78
|
+
dependsOn: ["step_midi"]
|
|
79
|
+
}
|
|
80
|
+
]
|
|
207
81
|
};
|
|
82
|
+
var krnlOrchestratorADefinition = OrchestratorADefinition;
|
|
83
|
+
var krnlOrchestratorBDefinition = OrchestratorBDefinition;
|
|
84
|
+
var krnlAudioMidiOrchestratorDefinition = AudioMidiOrchestratorDefinition;
|
|
208
85
|
export {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
86
|
+
AudioMidiOrchestratorDefinition,
|
|
87
|
+
OrchestratorADefinition,
|
|
88
|
+
OrchestratorBDefinition,
|
|
89
|
+
krnlAudioMidiOrchestratorDefinition,
|
|
90
|
+
krnlOrchestratorADefinition,
|
|
91
|
+
krnlOrchestratorBDefinition
|
|
214
92
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "Orchestrator A (Service A -> Service B)",
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"package": "@kloks/orchestrations",
|
|
11
|
-
"export": "
|
|
11
|
+
"export": "OrchestratorADefinition",
|
|
12
12
|
"targetTypes": ["BackendFacade.orchestrations"]
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -16,7 +16,15 @@
|
|
|
16
16
|
"name": "Orchestrator B (Service B -> Service C)",
|
|
17
17
|
"version": "1.0.0",
|
|
18
18
|
"package": "@kloks/orchestrations",
|
|
19
|
-
"export": "
|
|
19
|
+
"export": "OrchestratorBDefinition",
|
|
20
|
+
"targetTypes": ["BackendFacade.orchestrations"]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "orchestrator-audio-midi",
|
|
24
|
+
"name": "Audio-Midi Orchestrator (Midi -> AudioHardware)",
|
|
25
|
+
"version": "1.0.0",
|
|
26
|
+
"package": "@kloks/orchestrations",
|
|
27
|
+
"export": "AudioMidiOrchestratorDefinition",
|
|
20
28
|
"targetTypes": ["BackendFacade.orchestrations"]
|
|
21
29
|
}
|
|
22
30
|
]
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "tsup src/index.ts --format esm --dts --clean --external @kloks/services --external @kloks/state-graph --external @kloks/backend --external
|
|
23
|
+
"build": "tsup src/index.ts --format esm --dts --clean --external @kloks/services --external @kloks/state-graph --external @kloks/backend --external ws",
|
|
24
24
|
"typecheck": "tsc --noEmit",
|
|
25
25
|
"clean": "rm -rf dist"
|
|
26
26
|
},
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"@kloks/backend": "workspace:*"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@ultrst-armada/krnl": "^1.0.
|
|
33
|
+
"@ultrst-armada/krnl": "^1.0.3"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -315,6 +315,45 @@ declare const SystemDbClientServiceFacade: {
|
|
|
315
315
|
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
316
316
|
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
317
317
|
};
|
|
318
|
+
declare const krnlAuthClientServiceDefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
319
|
+
declare const krnlAuthClientServiceFacade: {
|
|
320
|
+
id: string;
|
|
321
|
+
name: string;
|
|
322
|
+
version: string;
|
|
323
|
+
runtime: "client";
|
|
324
|
+
deployment: "local";
|
|
325
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
326
|
+
service: AuthService;
|
|
327
|
+
ui: _kloks_contracts.ServiceUISchema;
|
|
328
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
329
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
330
|
+
};
|
|
331
|
+
declare const krnlStorageClientServiceDefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
332
|
+
declare const krnlStorageClientServiceFacade: {
|
|
333
|
+
id: string;
|
|
334
|
+
name: string;
|
|
335
|
+
version: string;
|
|
336
|
+
runtime: "client";
|
|
337
|
+
deployment: "local";
|
|
338
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
339
|
+
service: StorageService;
|
|
340
|
+
ui: _kloks_contracts.ServiceUISchema;
|
|
341
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
342
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
343
|
+
};
|
|
344
|
+
declare const krnlSystemDbClientServiceDefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
345
|
+
declare const krnlSystemDbClientServiceFacade: {
|
|
346
|
+
id: string;
|
|
347
|
+
name: string;
|
|
348
|
+
version: string;
|
|
349
|
+
runtime: "client";
|
|
350
|
+
deployment: "local";
|
|
351
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
352
|
+
service: SystemDbService;
|
|
353
|
+
ui: _kloks_contracts.ServiceUISchema;
|
|
354
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
355
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
356
|
+
};
|
|
318
357
|
|
|
319
358
|
/**
|
|
320
359
|
* @file index.ts
|
|
@@ -366,5 +405,16 @@ interface ProtocolExposureHandle {
|
|
|
366
405
|
}
|
|
367
406
|
declare function exposeServiceD(adapter?: ProtocolAdapter, port?: number): Promise<ProtocolExposureHandle>;
|
|
368
407
|
declare const ServiceDFacade: ServiceFacade;
|
|
408
|
+
declare const krnlServiceADefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
409
|
+
declare const krnlServiceAFacade: ServiceFacade<Record<string, unknown>, Record<string, unknown>>;
|
|
410
|
+
declare const krnlServiceBDefinition: ServiceDefinition<CounterState, Record<string, unknown>>;
|
|
411
|
+
declare const krnlServiceBFacade: ServiceFacade<CounterState, Record<string, unknown>>;
|
|
412
|
+
declare const krnlCreateServiceB: typeof createServiceB;
|
|
413
|
+
declare const krnlServiceCDefinition: ServiceDefinition<Record<string, unknown>, TelemetryEvents>;
|
|
414
|
+
declare const krnlServiceCFacade: ServiceFacade<Record<string, unknown>, TelemetryEvents>;
|
|
415
|
+
declare const krnlCreateServiceC: typeof createServiceC;
|
|
416
|
+
declare const krnlServiceDDefinition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
417
|
+
declare const krnlServiceDFacade: ServiceFacade<Record<string, unknown>, Record<string, unknown>>;
|
|
418
|
+
declare const krnlExposeServiceD: typeof exposeServiceD;
|
|
369
419
|
|
|
370
|
-
export { AuthClientServiceDefinition, AuthClientServiceFacade, type AuthListener, AuthService, AuthServiceUISchema, CLEAN_DATABASE_CLUSTER, type CounterState, DEFAULT_CONNECTIONS, type IAuthStore, type MathInput, type ProtocolExposureHandle, STORAGE_KEY_CONNECTIONS, ServiceADefinition, ServiceAFacade, ServiceBDefinition, ServiceBFacade, ServiceCDefinition, ServiceCFacade, ServiceDDefinition, ServiceDFacade, type ServiceFacade, StorageClientServiceDefinition, StorageClientServiceFacade, StorageService, StorageServiceUISchema, SystemDbClientServiceDefinition, SystemDbClientServiceFacade, SystemDbService, SystemDbServiceUISchema, type SystemEnvironmentStatus, type SystemTelemetry, type TelemetryEvents, authService, clearSession, createServiceB, createServiceC, createWorkspace, deleteWorkspace, exposeServiceD, fetchWorkspaces, loadDatabase, loginAdmin, loginUser, persistDatabase, register, restoreSession, setActiveWorkspace, setSession, storageService, systemDbService, updateWorkspace, verifyPassword };
|
|
420
|
+
export { AuthClientServiceDefinition, AuthClientServiceFacade, type AuthListener, AuthService, AuthServiceUISchema, CLEAN_DATABASE_CLUSTER, type CounterState, DEFAULT_CONNECTIONS, type IAuthStore, type MathInput, type ProtocolExposureHandle, STORAGE_KEY_CONNECTIONS, ServiceADefinition, ServiceAFacade, ServiceBDefinition, ServiceBFacade, ServiceCDefinition, ServiceCFacade, ServiceDDefinition, ServiceDFacade, type ServiceFacade, StorageClientServiceDefinition, StorageClientServiceFacade, StorageService, StorageServiceUISchema, SystemDbClientServiceDefinition, SystemDbClientServiceFacade, SystemDbService, SystemDbServiceUISchema, type SystemEnvironmentStatus, type SystemTelemetry, type TelemetryEvents, authService, clearSession, createServiceB, createServiceC, createWorkspace, deleteWorkspace, exposeServiceD, fetchWorkspaces, krnlAuthClientServiceDefinition, krnlAuthClientServiceFacade, krnlCreateServiceB, krnlCreateServiceC, krnlExposeServiceD, krnlServiceADefinition, krnlServiceAFacade, krnlServiceBDefinition, krnlServiceBFacade, krnlServiceCDefinition, krnlServiceCFacade, krnlServiceDDefinition, krnlServiceDFacade, krnlStorageClientServiceDefinition, krnlStorageClientServiceFacade, krnlSystemDbClientServiceDefinition, krnlSystemDbClientServiceFacade, loadDatabase, loginAdmin, loginUser, persistDatabase, register, restoreSession, setActiveWorkspace, setSession, storageService, systemDbService, updateWorkspace, verifyPassword };
|