@ultrst-armada/kloks 1.0.2 → 1.1.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.
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +19 -10
- package/packages/backend/dist/index.js +8 -8
- package/packages/contracts/dist/index.d.ts +552 -0
- package/packages/contracts/dist/index.js +422 -0
- package/packages/contracts/kloks.manifest.json +20 -0
- package/packages/contracts/package.json +33 -0
- package/packages/state-graph/dist/{BaseGraph-Bl2f7Pqx.d.ts → BaseGraph-BvkSYOTw.d.ts} +1 -1
- package/packages/state-graph/dist/{BaseNode-1HCEqmap.d.ts → BaseNode-DTcd3K1B.d.ts} +1 -1
- package/packages/state-graph/dist/{CompatibilityMatrix-DX307_vS.d.ts → CompatibilityMatrix-Dj-tCWUA.d.ts} +1 -1
- package/packages/state-graph/dist/chunk-JXDJZSFW.js +459 -0
- package/packages/state-graph/dist/chunk-RHRXPY2U.js +0 -0
- package/packages/state-graph/dist/domain/index.d.ts +3 -3
- package/packages/state-graph/dist/index.d.ts +8 -9
- package/packages/state-graph/dist/index.js +25 -16
- package/packages/state-graph/dist/rules/index.d.ts +3 -3
- package/packages/state-graph/dist/rules/index.js +2 -1
- package/packages/state-graph/dist/spatial/index.d.ts +53 -5
- package/packages/state-graph/dist/spatial/index.js +12 -3
- package/packages/state-graph/dist/store/index.d.ts +159 -6
- package/packages/state-graph/dist/types-VDoc4FIc.d.ts +150 -0
- package/packages/state-graph/dist/TraceEngine-CJVpUb80.d.ts +0 -18
- package/packages/state-graph/dist/chunk-YTWCH6P2.js +0 -109
- package/packages/state-graph/dist/index-CiekWEH3.d.ts +0 -272
- /package/packages/state-graph/dist/{chunk-QN74PLMF.js → chunk-TZOL3RN7.js} +0 -0
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { N as NodePosition, b as NodeSize, B as BaseNode, d as BaseNodeProps, h as HandleOffset, g as HandleDirection, a as BaseHandle } from './BaseNode-1HCEqmap.js';
|
|
2
|
-
import { V as ViewLink, S as SolidConnection } from './BaseConnection-CMRrL6Fe.js';
|
|
3
|
-
import { a as BaseViewWindow, L as Landmark, e as GraphView, G as GraphSettings, f as Group } from './BaseGraph-Bl2f7Pqx.js';
|
|
4
|
-
import { T as Trace } from './TraceEngine-CJVpUb80.js';
|
|
5
|
-
|
|
6
|
-
interface CreateViewWindowParams {
|
|
7
|
-
id?: string;
|
|
8
|
-
viewType: string;
|
|
9
|
-
sourceNodeId: string;
|
|
10
|
-
sourceViewHandleId: string;
|
|
11
|
-
position: NodePosition;
|
|
12
|
-
size?: NodeSize;
|
|
13
|
-
}
|
|
14
|
-
declare class ViewWindowManager {
|
|
15
|
-
private windows;
|
|
16
|
-
private links;
|
|
17
|
-
createWindow(params: CreateViewWindowParams): {
|
|
18
|
-
window: BaseViewWindow;
|
|
19
|
-
link: ViewLink;
|
|
20
|
-
};
|
|
21
|
-
selectWindow(id: string): void;
|
|
22
|
-
pinLive(id: string, pinned: boolean): void;
|
|
23
|
-
removeWindow(id: string): boolean;
|
|
24
|
-
getProcessingWindows(): BaseViewWindow[];
|
|
25
|
-
getWindow(id: string): BaseViewWindow | undefined;
|
|
26
|
-
getLink(windowId: string): ViewLink | undefined;
|
|
27
|
-
listWindows(): BaseViewWindow[];
|
|
28
|
-
listLinks(): ViewLink[];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare class LandmarkManager {
|
|
32
|
-
private landmarks;
|
|
33
|
-
constructor(initialLandmarks?: Landmark[]);
|
|
34
|
-
createLandmark(number: number, name: string, cameraPosition: {
|
|
35
|
-
x: number;
|
|
36
|
-
y: number;
|
|
37
|
-
}, zoom: number): Landmark;
|
|
38
|
-
getByNumber(number: number): Landmark | undefined;
|
|
39
|
-
getById(id: string): Landmark | undefined;
|
|
40
|
-
updateLandmark(id: string, updates: Partial<Omit<Landmark, 'id'>>): Landmark | undefined;
|
|
41
|
-
deleteLandmark(id: string): boolean;
|
|
42
|
-
list(): Landmark[];
|
|
43
|
-
clear(): void;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface CaptureGraphSnapshotParams {
|
|
47
|
-
id?: string;
|
|
48
|
-
name: string;
|
|
49
|
-
nodes: BaseNode[];
|
|
50
|
-
viewWindows: BaseViewWindow[];
|
|
51
|
-
camera: {
|
|
52
|
-
x: number;
|
|
53
|
-
y: number;
|
|
54
|
-
};
|
|
55
|
-
zoom: number;
|
|
56
|
-
selectedNodeIds: string[];
|
|
57
|
-
settingsOverrides?: Partial<GraphSettings>;
|
|
58
|
-
}
|
|
59
|
-
declare class ViewEngine {
|
|
60
|
-
private views;
|
|
61
|
-
constructor(initialViews?: GraphView[]);
|
|
62
|
-
captureView(params: CaptureGraphSnapshotParams): GraphView;
|
|
63
|
-
getView(id: string): GraphView | undefined;
|
|
64
|
-
listViews(): GraphView[];
|
|
65
|
-
deleteView(id: string): boolean;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
type GraphListener = () => void;
|
|
69
|
-
declare class GraphStore {
|
|
70
|
-
nodes: BaseNode[];
|
|
71
|
-
connections: SolidConnection[];
|
|
72
|
-
traces: Trace[];
|
|
73
|
-
groups: Group[];
|
|
74
|
-
settings: GraphSettings;
|
|
75
|
-
selectedNodeIds: Set<string>;
|
|
76
|
-
readonly viewWindows: ViewWindowManager;
|
|
77
|
-
readonly landmarks: LandmarkManager;
|
|
78
|
-
readonly views: ViewEngine;
|
|
79
|
-
private listeners;
|
|
80
|
-
subscribe(listener: GraphListener): () => void;
|
|
81
|
-
notify(): void;
|
|
82
|
-
refreshTraces(): void;
|
|
83
|
-
solidifyTrace(traceId: string): SolidConnection | undefined;
|
|
84
|
-
lockAllConnections(): void;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare class CommandApi {
|
|
88
|
-
private store;
|
|
89
|
-
constructor(store: GraphStore);
|
|
90
|
-
get nodes(): {
|
|
91
|
-
create: (props: BaseNodeProps) => BaseNode;
|
|
92
|
-
delete: (nodeId: string) => void;
|
|
93
|
-
move: (nodeId: string, x: number, y: number) => void;
|
|
94
|
-
lockPosition: (nodeId: string) => void;
|
|
95
|
-
unlockPosition: (nodeId: string) => void;
|
|
96
|
-
};
|
|
97
|
-
get handles(): {
|
|
98
|
-
move: (nodeId: string, handleId: string, offset: HandleOffset) => void;
|
|
99
|
-
resetOffset: (nodeId: string, handleId: string) => void;
|
|
100
|
-
};
|
|
101
|
-
get traces(): {
|
|
102
|
-
refresh: () => void;
|
|
103
|
-
enable: () => void;
|
|
104
|
-
disable: () => void;
|
|
105
|
-
solidify: (traceId: string) => SolidConnection;
|
|
106
|
-
};
|
|
107
|
-
get connections(): {
|
|
108
|
-
create: (sourceNodeId: string, sourceHandleId: string, targetNodeId: string, targetHandleId: string, wireType?: string) => SolidConnection;
|
|
109
|
-
delete: (connectionId: string) => void;
|
|
110
|
-
lock: (connectionId: string) => void;
|
|
111
|
-
unlock: (connectionId: string) => void;
|
|
112
|
-
lockAll: () => void;
|
|
113
|
-
};
|
|
114
|
-
get groups(): {
|
|
115
|
-
create: (group: Group) => void;
|
|
116
|
-
delete: (groupId: string) => void;
|
|
117
|
-
};
|
|
118
|
-
get landmarks(): {
|
|
119
|
-
create: (num: number, name: string, camera: {
|
|
120
|
-
x: number;
|
|
121
|
-
y: number;
|
|
122
|
-
}, zoom: number) => Landmark;
|
|
123
|
-
delete: (id: string) => boolean;
|
|
124
|
-
list: () => Landmark[];
|
|
125
|
-
};
|
|
126
|
-
get viewWindows(): {
|
|
127
|
-
create: (params: Parameters<typeof this$1.store.viewWindows.createWindow>[0]) => {
|
|
128
|
-
window: BaseViewWindow;
|
|
129
|
-
link: ViewLink;
|
|
130
|
-
};
|
|
131
|
-
close: (id: string) => boolean;
|
|
132
|
-
select: (id: string) => void;
|
|
133
|
-
pinLive: (id: string, pinned: boolean) => void;
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
type SocketType = 'input' | 'output';
|
|
138
|
-
interface Socket {
|
|
139
|
-
id: string;
|
|
140
|
-
label: string;
|
|
141
|
-
type: SocketType;
|
|
142
|
-
dataType?: string;
|
|
143
|
-
direction?: HandleDirection;
|
|
144
|
-
offset?: {
|
|
145
|
-
x: number;
|
|
146
|
-
y: number;
|
|
147
|
-
};
|
|
148
|
-
basePosition?: {
|
|
149
|
-
x: number;
|
|
150
|
-
y: number;
|
|
151
|
-
};
|
|
152
|
-
connectionMode?: 'SINGLE' | 'MULTI';
|
|
153
|
-
}
|
|
154
|
-
interface GraphNode {
|
|
155
|
-
id: string;
|
|
156
|
-
type: string;
|
|
157
|
-
label: string;
|
|
158
|
-
position: {
|
|
159
|
-
x: number;
|
|
160
|
-
y: number;
|
|
161
|
-
};
|
|
162
|
-
size?: {
|
|
163
|
-
width: number;
|
|
164
|
-
height: number;
|
|
165
|
-
};
|
|
166
|
-
data?: Record<string, unknown>;
|
|
167
|
-
inputs?: Socket[];
|
|
168
|
-
outputs?: Socket[];
|
|
169
|
-
width?: number;
|
|
170
|
-
height?: number;
|
|
171
|
-
positionLocked?: boolean;
|
|
172
|
-
minimized?: boolean;
|
|
173
|
-
handles?: BaseHandle[];
|
|
174
|
-
}
|
|
175
|
-
interface GraphEdge {
|
|
176
|
-
id: string;
|
|
177
|
-
source: string;
|
|
178
|
-
sourceSocket: string;
|
|
179
|
-
target: string;
|
|
180
|
-
targetSocket: string;
|
|
181
|
-
label?: string;
|
|
182
|
-
color?: string;
|
|
183
|
-
wireType?: string;
|
|
184
|
-
locked?: boolean;
|
|
185
|
-
deletable?: boolean;
|
|
186
|
-
}
|
|
187
|
-
interface ViewportState {
|
|
188
|
-
panX: number;
|
|
189
|
-
panY: number;
|
|
190
|
-
zoom: number;
|
|
191
|
-
}
|
|
192
|
-
interface NodeGraphConfig {
|
|
193
|
-
minZoom?: number;
|
|
194
|
-
maxZoom?: number;
|
|
195
|
-
gridSize?: number;
|
|
196
|
-
snapToGrid?: boolean;
|
|
197
|
-
wireStyle?: 'bezier' | 'straight' | 'step';
|
|
198
|
-
tracingEnabled?: boolean;
|
|
199
|
-
magneticTracesEnabled?: boolean;
|
|
200
|
-
autoSolidify?: boolean;
|
|
201
|
-
traceCutoffDistance?: number;
|
|
202
|
-
ghostRoutingEnabled?: boolean;
|
|
203
|
-
ghostScenarioCount?: number;
|
|
204
|
-
ghostDecayMs?: number;
|
|
205
|
-
}
|
|
206
|
-
interface NodeGraphPlugin {
|
|
207
|
-
registerNodeDefinition?: (def: unknown) => void;
|
|
208
|
-
registerHandleType?: (type: string) => void;
|
|
209
|
-
registerWireType?: (wire: unknown) => void;
|
|
210
|
-
registerCompatibilityRule?: (rule: unknown) => void;
|
|
211
|
-
registerViewType?: (view: unknown) => void;
|
|
212
|
-
registerTheme?: (theme: unknown) => void;
|
|
213
|
-
registerContextMenuAction?: (action: unknown) => void;
|
|
214
|
-
registerSpawnMenuItem?: (item: unknown) => void;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
interface GhostSocketMapping {
|
|
218
|
-
sourceSocketId: string;
|
|
219
|
-
targetSocketId: string;
|
|
220
|
-
wireType: string;
|
|
221
|
-
}
|
|
222
|
-
interface GhostNodeRecord {
|
|
223
|
-
id: string;
|
|
224
|
-
nodeType: string;
|
|
225
|
-
label: string;
|
|
226
|
-
position: {
|
|
227
|
-
x: number;
|
|
228
|
-
y: number;
|
|
229
|
-
};
|
|
230
|
-
size: {
|
|
231
|
-
width: number;
|
|
232
|
-
height: number;
|
|
233
|
-
};
|
|
234
|
-
scenarioIndex: number;
|
|
235
|
-
sourceNodeId: string;
|
|
236
|
-
socketMappings: GhostSocketMapping[];
|
|
237
|
-
inputs?: Socket[];
|
|
238
|
-
outputs?: Socket[];
|
|
239
|
-
}
|
|
240
|
-
interface GhostTraceRecord {
|
|
241
|
-
id: string;
|
|
242
|
-
sourceNodeId: string;
|
|
243
|
-
sourceSocketId: string;
|
|
244
|
-
targetGhostNodeId: string;
|
|
245
|
-
targetSocketId: string;
|
|
246
|
-
wireType: string;
|
|
247
|
-
pathD: string;
|
|
248
|
-
scenarioIndex: number;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
type GhostStoreListener = () => void;
|
|
252
|
-
declare class GhostStore {
|
|
253
|
-
private static instance;
|
|
254
|
-
isActive: boolean;
|
|
255
|
-
ghostNodes: GhostNodeRecord[];
|
|
256
|
-
ghostTraces: GhostTraceRecord[];
|
|
257
|
-
scenarioIndex: number;
|
|
258
|
-
hoveredGhostId: string | null;
|
|
259
|
-
sourceNodeIds: string[];
|
|
260
|
-
private listeners;
|
|
261
|
-
static getInstance(): GhostStore;
|
|
262
|
-
subscribe(listener: GhostStoreListener): () => void;
|
|
263
|
-
notify(): void;
|
|
264
|
-
setPredictions(nodes: GhostNodeRecord[], traces: GhostTraceRecord[], sourceNodeIds: string[]): void;
|
|
265
|
-
cycleScenario(maxScenarios?: number): void;
|
|
266
|
-
setHoveredGhostId(id: string | null): void;
|
|
267
|
-
getActiveGhostNodes(): GhostNodeRecord[];
|
|
268
|
-
getActiveGhostTraces(): GhostTraceRecord[];
|
|
269
|
-
clear(): void;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export { CommandApi as C, type GraphNode as G, type NodeGraphConfig as N, type Socket as S, type ViewportState as V, GhostStore as a, type GhostStoreListener as b, type GraphEdge as c, type GraphListener as d, GraphStore as e, type NodeGraphPlugin as f, type SocketType as g };
|
|
File without changes
|