@ultrst-armada/kloks 2.1.0 → 2.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/package.json +1 -1
- package/packages/backend/dist/{chunk-U7T65YUP.js → chunk-ZSH73LE5.js} +209 -1
- package/packages/backend/dist/core/b2ExplorerContext.d.ts +41 -0
- package/packages/backend/dist/core/b2ExplorerOperations.d.ts +2 -0
- package/packages/backend/dist/core/b2ExplorerOperations.test.d.ts +1 -0
- package/packages/backend/dist/krnl-services.js +1 -1
- package/packages/backend/dist/node.js +1 -1
- package/packages/state-graph/dist/browser.js +24 -24
- package/packages/state-graph/dist/index.js +24 -24
- package/packages/state-graph/dist/{chunk-UKTICGGV.js → chunk-YUJC367F.js} +3 -3
package/package.json
CHANGED
|
@@ -49,7 +49,10 @@ import {
|
|
|
49
49
|
resolveUserFromToken
|
|
50
50
|
} from "./chunk-2COYZMUJ.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
52
|
+
authorizeB2,
|
|
53
|
+
b2DownloadFile,
|
|
54
|
+
b2ListBuckets,
|
|
55
|
+
b2UploadFile
|
|
53
56
|
} from "./chunk-I6T64MLT.js";
|
|
54
57
|
import {
|
|
55
58
|
GOOGLE_DRIVE_WORKSPACE_SCOPE,
|
|
@@ -62,6 +65,202 @@ import {
|
|
|
62
65
|
createServiceDefinition
|
|
63
66
|
} from "@ultrst-armada/krnl";
|
|
64
67
|
|
|
68
|
+
// src/core/b2ExplorerContext.ts
|
|
69
|
+
function safeB2ExplorerPath(value) {
|
|
70
|
+
if (typeof value !== "string" || !value || value.startsWith("/") || value.includes("\\") || /[\x00-\x1f\x7f]/.test(value)) {
|
|
71
|
+
throw new Error("B2 object path must be a safe relative path.");
|
|
72
|
+
}
|
|
73
|
+
if (value.split("/").some((part) => !part || part === "." || part === "..")) {
|
|
74
|
+
throw new Error("B2 object path contains an unsafe component.");
|
|
75
|
+
}
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
async function resolveB2ExplorerContext(input) {
|
|
79
|
+
const userId = String(input.userId || "").trim();
|
|
80
|
+
const connectionId = String(input.connectionId || "").trim();
|
|
81
|
+
if (!userId || !connectionId) throw new Error("Verified owner and opaque connection ID are required.");
|
|
82
|
+
const connection = await resolveUserStorageConnectionSecret(
|
|
83
|
+
userId,
|
|
84
|
+
connectionId,
|
|
85
|
+
(sql, params) => queryUnifiedDb(sql, params, input.env),
|
|
86
|
+
"backblaze_b2"
|
|
87
|
+
);
|
|
88
|
+
if (!connection || connection.enabled === false) {
|
|
89
|
+
throw new Error("The selected B2 connection is unavailable to this user.");
|
|
90
|
+
}
|
|
91
|
+
const keyId = String(connection.b2KeyId || connection.keyId || connection.accessKeyId || "").trim();
|
|
92
|
+
const applicationKey = String(connection.b2ApplicationKey || connection.applicationKey || connection.appKey || connection.secretAccessKey || "").trim();
|
|
93
|
+
if (!keyId || !applicationKey) throw new Error("The saved B2 connection has no server-side credential.");
|
|
94
|
+
const [auth, buckets] = await Promise.all([
|
|
95
|
+
authorizeB2(keyId, applicationKey),
|
|
96
|
+
b2ListBuckets(keyId, applicationKey)
|
|
97
|
+
]);
|
|
98
|
+
return { auth, keyId, applicationKey, buckets };
|
|
99
|
+
}
|
|
100
|
+
function selectB2ExplorerBucket(context, bucketId, bucketName) {
|
|
101
|
+
const selected = context.buckets.find(
|
|
102
|
+
(b) => (!bucketId || b.bucketId === bucketId) && (!bucketName || b.bucketName === bucketName)
|
|
103
|
+
);
|
|
104
|
+
if (!selected || !selected.bucketId || !selected.bucketName || !bucketId && !bucketName) {
|
|
105
|
+
throw new Error("The selected B2 bucket is not available to this connection.");
|
|
106
|
+
}
|
|
107
|
+
return selected;
|
|
108
|
+
}
|
|
109
|
+
async function postB2Explorer(auth, endpoint, payload) {
|
|
110
|
+
const res = await fetch(`${auth.apiUrl}/b2api/v2/${endpoint}`, {
|
|
111
|
+
method: "POST",
|
|
112
|
+
headers: { Authorization: auth.authorizationToken, "Content-Type": "application/json" },
|
|
113
|
+
body: JSON.stringify(payload),
|
|
114
|
+
signal: AbortSignal.timeout(2e4)
|
|
115
|
+
});
|
|
116
|
+
if (!res.ok) throw new Error(`B2 ${endpoint} failed with HTTP ${res.status}.`);
|
|
117
|
+
return res.json();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// src/core/b2ExplorerOperations.ts
|
|
121
|
+
function required(value, name) {
|
|
122
|
+
if (!value || !value.trim()) throw new Error(`B2 ${name} is required.`);
|
|
123
|
+
return value.trim();
|
|
124
|
+
}
|
|
125
|
+
function decodedBytes(value) {
|
|
126
|
+
if (typeof value !== "string" || !value || value.length > 36e6 || !/^[A-Za-z0-9+/]*={0,2}$/.test(value)) {
|
|
127
|
+
throw new Error("B2 base64 content is missing, malformed or too large.");
|
|
128
|
+
}
|
|
129
|
+
const raw = atob(value);
|
|
130
|
+
if (raw.length > 25 * 1024 * 1024) throw new Error("B2 upload exceeds the 25 MiB Explorer limit.");
|
|
131
|
+
return Uint8Array.from(raw, (char) => char.charCodeAt(0));
|
|
132
|
+
}
|
|
133
|
+
async function listVersions(context, bucketId, prefix) {
|
|
134
|
+
const found = [];
|
|
135
|
+
let startFileName;
|
|
136
|
+
let startFileId;
|
|
137
|
+
for (let page = 0; page < 100; page++) {
|
|
138
|
+
const data = await postB2Explorer(context.auth, "b2_list_file_versions", {
|
|
139
|
+
bucketId,
|
|
140
|
+
prefix,
|
|
141
|
+
maxFileCount: 1e3,
|
|
142
|
+
...startFileName ? { startFileName, startFileId } : {}
|
|
143
|
+
});
|
|
144
|
+
if (!Array.isArray(data.files)) throw new Error("B2 version listing returned invalid data.");
|
|
145
|
+
found.push(...data.files);
|
|
146
|
+
if (!data.nextFileName) return found;
|
|
147
|
+
if (data.nextFileName === startFileName && data.nextFileId === startFileId) {
|
|
148
|
+
throw new Error("B2 version cursor did not advance.");
|
|
149
|
+
}
|
|
150
|
+
startFileName = data.nextFileName;
|
|
151
|
+
startFileId = data.nextFileId;
|
|
152
|
+
}
|
|
153
|
+
throw new Error("B2 version listing exceeded the safe pagination limit.");
|
|
154
|
+
}
|
|
155
|
+
async function deleteVersions(context, bucketId, prefix, exactFile, exactId) {
|
|
156
|
+
const versions = (await listVersions(context, bucketId, prefix)).filter(
|
|
157
|
+
(f) => typeof f.fileName === "string" && (exactFile ? f.fileName === exactFile : f.fileName.startsWith(prefix)) && (!exactId || f.fileId === exactId)
|
|
158
|
+
);
|
|
159
|
+
if (exactId && versions.length !== 1) throw new Error("The B2 file version is not present in the selected bucket.");
|
|
160
|
+
let deletedCount = 0;
|
|
161
|
+
for (const file of versions) {
|
|
162
|
+
if (!file.fileId || !file.fileName) throw new Error("B2 version metadata is incomplete; deletion cancelled.");
|
|
163
|
+
await postB2Explorer(context.auth, "b2_delete_file_version", {
|
|
164
|
+
fileName: file.fileName,
|
|
165
|
+
fileId: file.fileId
|
|
166
|
+
});
|
|
167
|
+
deletedCount++;
|
|
168
|
+
}
|
|
169
|
+
return { deletedCount };
|
|
170
|
+
}
|
|
171
|
+
async function executeB2Explorer(input) {
|
|
172
|
+
const action = input.action;
|
|
173
|
+
const actions = [
|
|
174
|
+
"listBuckets",
|
|
175
|
+
"createBucket",
|
|
176
|
+
"deleteBucket",
|
|
177
|
+
"listFiles",
|
|
178
|
+
"createFolder",
|
|
179
|
+
"uploadFile",
|
|
180
|
+
"readFile",
|
|
181
|
+
"deleteFile",
|
|
182
|
+
"deleteFolder"
|
|
183
|
+
];
|
|
184
|
+
if (!actions.includes(action)) throw new Error("Unsupported B2 Explorer operation.");
|
|
185
|
+
if (!input.userId || !input.connectionId) throw new Error("Verified owner and connection ID are required.");
|
|
186
|
+
if (["uploadFile", "readFile", "deleteFile"].includes(action)) safeB2ExplorerPath(input.fileName);
|
|
187
|
+
if (["createFolder", "deleteFolder"].includes(action)) safeB2ExplorerPath(input.folderPath);
|
|
188
|
+
const ctx = await resolveB2ExplorerContext(input);
|
|
189
|
+
if (action === "listBuckets") {
|
|
190
|
+
return ctx.buckets.map(({ bucketId, bucketName, bucketType, bucketInfo, revision }) => ({ bucketId, bucketName, bucketType, bucketInfo, revision }));
|
|
191
|
+
}
|
|
192
|
+
if (action === "createBucket") {
|
|
193
|
+
const bucketName = required(input.bucketName, "bucket name");
|
|
194
|
+
if (!/^[A-Za-z0-9-]{6,50}$/.test(bucketName)) throw new Error("B2 bucket name is invalid.");
|
|
195
|
+
if (input.bucketType && !["allPrivate", "allPublic"].includes(input.bucketType)) {
|
|
196
|
+
throw new Error("B2 bucket type is invalid.");
|
|
197
|
+
}
|
|
198
|
+
if (ctx.auth.allowed?.bucketId || ctx.auth.allowed?.bucketName || ctx.auth.allowed?.buckets?.length) {
|
|
199
|
+
throw new Error("This B2 key is restricted to an existing bucket.");
|
|
200
|
+
}
|
|
201
|
+
return postB2Explorer(ctx.auth, "b2_create_bucket", {
|
|
202
|
+
accountId: ctx.auth.accountId,
|
|
203
|
+
bucketName,
|
|
204
|
+
bucketType: input.bucketType || "allPrivate"
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
const bucket = selectB2ExplorerBucket(ctx, input.bucketId, input.bucketName);
|
|
208
|
+
if (action === "deleteBucket") {
|
|
209
|
+
const connections = await listUserStorageConnections(
|
|
210
|
+
input.userId,
|
|
211
|
+
(sql, params) => queryUnifiedDb(sql, params, input.env)
|
|
212
|
+
);
|
|
213
|
+
if (connections.some((connection) => connection.provider === "backblaze_b2" && (connection.b2BucketName === bucket.bucketName || connection.bucketName === bucket.bucketName))) {
|
|
214
|
+
throw new Error("Cannot delete a bucket assigned to a saved workspace storage connection.");
|
|
215
|
+
}
|
|
216
|
+
await postB2Explorer(ctx.auth, "b2_delete_bucket", {
|
|
217
|
+
accountId: ctx.auth.accountId,
|
|
218
|
+
bucketId: bucket.bucketId
|
|
219
|
+
});
|
|
220
|
+
return { success: true };
|
|
221
|
+
}
|
|
222
|
+
if (action === "listFiles") {
|
|
223
|
+
const prefix = input.prefix ? safeB2ExplorerPath(input.prefix.replace(/\/$/, "")) : "";
|
|
224
|
+
const files = [];
|
|
225
|
+
let startFileName;
|
|
226
|
+
for (let page = 0; page < 100; page++) {
|
|
227
|
+
const data = await postB2Explorer(ctx.auth, "b2_list_file_names", {
|
|
228
|
+
bucketId: bucket.bucketId,
|
|
229
|
+
prefix,
|
|
230
|
+
maxFileCount: 1e3,
|
|
231
|
+
...startFileName ? { startFileName } : {}
|
|
232
|
+
});
|
|
233
|
+
if (!Array.isArray(data.files)) throw new Error("B2 file listing returned invalid data.");
|
|
234
|
+
files.push(...data.files);
|
|
235
|
+
if (!data.nextFileName) return { files };
|
|
236
|
+
if (data.nextFileName === startFileName) throw new Error("B2 file cursor did not advance.");
|
|
237
|
+
startFileName = data.nextFileName;
|
|
238
|
+
}
|
|
239
|
+
throw new Error("B2 file listing exceeded the safe pagination limit.");
|
|
240
|
+
}
|
|
241
|
+
if (action === "createFolder") {
|
|
242
|
+
const fileName = `${safeB2ExplorerPath(input.folderPath)}/.bzEmpty`;
|
|
243
|
+
const file = await b2UploadFile(ctx.keyId, ctx.applicationKey, bucket.bucketName, fileName, new Uint8Array(0));
|
|
244
|
+
return { file, folderPath: input.folderPath };
|
|
245
|
+
}
|
|
246
|
+
if (action === "uploadFile") {
|
|
247
|
+
const fileName = safeB2ExplorerPath(input.fileName);
|
|
248
|
+
return b2UploadFile(ctx.keyId, ctx.applicationKey, bucket.bucketName, fileName, decodedBytes(input.fileBase64), input.contentType || "b2/x-auto");
|
|
249
|
+
}
|
|
250
|
+
if (action === "readFile") {
|
|
251
|
+
return b2DownloadFile(ctx.keyId, ctx.applicationKey, bucket.bucketName, safeB2ExplorerPath(input.fileName));
|
|
252
|
+
}
|
|
253
|
+
if (action === "deleteFile") {
|
|
254
|
+
const fileName = safeB2ExplorerPath(input.fileName);
|
|
255
|
+
return deleteVersions(ctx, bucket.bucketId, fileName, fileName, input.fileId);
|
|
256
|
+
}
|
|
257
|
+
if (action === "deleteFolder") {
|
|
258
|
+
const prefix = safeB2ExplorerPath(input.folderPath) + "/";
|
|
259
|
+
return deleteVersions(ctx, bucket.bucketId, prefix);
|
|
260
|
+
}
|
|
261
|
+
throw new Error("Unsupported B2 Explorer operation.");
|
|
262
|
+
}
|
|
263
|
+
|
|
65
264
|
// src/core/storageConnectionRuntimeCore.ts
|
|
66
265
|
function makeQuery(env) {
|
|
67
266
|
return (sql, params) => queryUnifiedDb(sql, params, env);
|
|
@@ -426,6 +625,15 @@ var StorageServiceDefinition = createServiceDefinition({
|
|
|
426
625
|
name: "createBackblazeConnection",
|
|
427
626
|
handler: async (input) => createBackblazeStorageConnection(input, (sql, params) => queryUnifiedDb(sql, params, input.env))
|
|
428
627
|
},
|
|
628
|
+
/**
|
|
629
|
+
* Connection-bound Explorer API. Never accepts direct provider credentials;
|
|
630
|
+
* all B2 calls resolve the verified user's encrypted canonical connection.
|
|
631
|
+
*/
|
|
632
|
+
executeBackblazeExplorer: {
|
|
633
|
+
id: "StorageService.executeBackblazeExplorer",
|
|
634
|
+
name: "executeBackblazeExplorer",
|
|
635
|
+
handler: async (input) => executeB2Explorer(input)
|
|
636
|
+
},
|
|
429
637
|
listBackblazeConnectionBuckets: {
|
|
430
638
|
id: "StorageService.listBackblazeConnectionBuckets",
|
|
431
639
|
name: "listBackblazeConnectionBuckets",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file b2ExplorerContext.ts
|
|
3
|
+
* @description Owner-bound B2 Explorer connection, bucket scope and safe REST.
|
|
4
|
+
* Credentials remain inside this server-only canonical Kloks layer.
|
|
5
|
+
*/
|
|
6
|
+
import { type B2AuthData } from './b2DirectCore.js';
|
|
7
|
+
export type B2ExplorerAction = 'listBuckets' | 'createBucket' | 'deleteBucket' | 'listFiles' | 'createFolder' | 'uploadFile' | 'readFile' | 'deleteFile' | 'deleteFolder';
|
|
8
|
+
export interface B2ExplorerInput {
|
|
9
|
+
action: B2ExplorerAction;
|
|
10
|
+
userId: string;
|
|
11
|
+
connectionId: string;
|
|
12
|
+
bucketId?: string;
|
|
13
|
+
bucketName?: string;
|
|
14
|
+
bucketType?: 'allPublic' | 'allPrivate';
|
|
15
|
+
fileName?: string;
|
|
16
|
+
fileId?: string;
|
|
17
|
+
fileBase64?: string;
|
|
18
|
+
folderPath?: string;
|
|
19
|
+
prefix?: string;
|
|
20
|
+
contentType?: string;
|
|
21
|
+
env?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export type B2ExplorerBucket = {
|
|
24
|
+
bucketId: string;
|
|
25
|
+
bucketName: string;
|
|
26
|
+
bucketType?: string;
|
|
27
|
+
bucketInfo?: Record<string, unknown>;
|
|
28
|
+
revision?: number;
|
|
29
|
+
};
|
|
30
|
+
export interface B2ExplorerContext {
|
|
31
|
+
auth: B2AuthData;
|
|
32
|
+
keyId: string;
|
|
33
|
+
applicationKey: string;
|
|
34
|
+
buckets: B2ExplorerBucket[];
|
|
35
|
+
}
|
|
36
|
+
export declare function safeB2ExplorerPath(value: unknown): string;
|
|
37
|
+
/** Only use an exact saved connection owned by the verified caller. */
|
|
38
|
+
export declare function resolveB2ExplorerContext(input: B2ExplorerInput): Promise<B2ExplorerContext>;
|
|
39
|
+
/** Restrict operations to bucket IDs explicitly discovered for this credential. */
|
|
40
|
+
export declare function selectB2ExplorerBucket(context: B2ExplorerContext, bucketId?: string, bucketName?: string): B2ExplorerBucket;
|
|
41
|
+
export declare function postB2Explorer(auth: B2AuthData, endpoint: string, payload: Record<string, unknown>): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
krnlStorageServiceFacade,
|
|
28
28
|
krnlWorkspaceServiceDefinition,
|
|
29
29
|
krnlWorkspaceServiceFacade
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZSH73LE5.js";
|
|
31
31
|
import "./chunk-DJ457D5D.js";
|
|
32
32
|
import "./chunk-FZKBTF34.js";
|
|
33
33
|
import "./chunk-23LS4LWC.js";
|
|
@@ -231,7 +231,7 @@ import {
|
|
|
231
231
|
readUserWorkspaceStorageFile,
|
|
232
232
|
verifyGoogleDriveAuthorizationState,
|
|
233
233
|
writeUserWorkspaceStorageFile
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-ZSH73LE5.js";
|
|
235
235
|
import {
|
|
236
236
|
getPrimarySrklDeploymentUrl,
|
|
237
237
|
getSrklAccounts,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
validateProjectGraph,
|
|
253
253
|
validateUniversalConnection,
|
|
254
254
|
zoomAtPoint
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-YUJC367F.js";
|
|
256
256
|
import {
|
|
257
257
|
BaseHandle,
|
|
258
258
|
DataHandle,
|
|
@@ -262,29 +262,6 @@ import {
|
|
|
262
262
|
instantiateSubgraph
|
|
263
263
|
} from "./chunk-OXUDG6HE.js";
|
|
264
264
|
import "./chunk-RHRXPY2U.js";
|
|
265
|
-
import {
|
|
266
|
-
LifecycleCycleError,
|
|
267
|
-
LifecycleGraph,
|
|
268
|
-
SKIPO_STATE,
|
|
269
|
-
SkipoStateEngine,
|
|
270
|
-
useLifecycleScope,
|
|
271
|
-
useSkipoBind,
|
|
272
|
-
useSkipoState
|
|
273
|
-
} from "./chunk-EW4ACSZB.js";
|
|
274
|
-
import {
|
|
275
|
-
CommandApi,
|
|
276
|
-
GhostStore,
|
|
277
|
-
GraphStore
|
|
278
|
-
} from "./chunk-LVULR5M4.js";
|
|
279
|
-
import {
|
|
280
|
-
BaseGraph,
|
|
281
|
-
BaseNode,
|
|
282
|
-
BaseViewWindow,
|
|
283
|
-
CustomGraph,
|
|
284
|
-
CustomNode,
|
|
285
|
-
CustomViewWindow,
|
|
286
|
-
DEFAULT_GRAPH_SETTINGS
|
|
287
|
-
} from "./chunk-5KP74NMF.js";
|
|
288
265
|
import {
|
|
289
266
|
AttractionEngine,
|
|
290
267
|
GhostInferenceEngine,
|
|
@@ -300,6 +277,20 @@ import {
|
|
|
300
277
|
WireTypeRegistry,
|
|
301
278
|
initializeDefaultGraphRules
|
|
302
279
|
} from "./chunk-TZOL3RN7.js";
|
|
280
|
+
import {
|
|
281
|
+
CommandApi,
|
|
282
|
+
GhostStore,
|
|
283
|
+
GraphStore
|
|
284
|
+
} from "./chunk-LVULR5M4.js";
|
|
285
|
+
import {
|
|
286
|
+
BaseGraph,
|
|
287
|
+
BaseNode,
|
|
288
|
+
BaseViewWindow,
|
|
289
|
+
CustomGraph,
|
|
290
|
+
CustomNode,
|
|
291
|
+
CustomViewWindow,
|
|
292
|
+
DEFAULT_GRAPH_SETTINGS
|
|
293
|
+
} from "./chunk-5KP74NMF.js";
|
|
303
294
|
import {
|
|
304
295
|
AutoSolidify,
|
|
305
296
|
SpatialEngine,
|
|
@@ -313,6 +304,15 @@ import {
|
|
|
313
304
|
import {
|
|
314
305
|
CompatibilityMatrix
|
|
315
306
|
} from "./chunk-ISFNY7EZ.js";
|
|
307
|
+
import {
|
|
308
|
+
LifecycleCycleError,
|
|
309
|
+
LifecycleGraph,
|
|
310
|
+
SKIPO_STATE,
|
|
311
|
+
SkipoStateEngine,
|
|
312
|
+
useLifecycleScope,
|
|
313
|
+
useSkipoBind,
|
|
314
|
+
useSkipoState
|
|
315
|
+
} from "./chunk-EW4ACSZB.js";
|
|
316
316
|
export {
|
|
317
317
|
ALL_GRAPH_TYPES,
|
|
318
318
|
ArrangementNodeModel,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
validateProjectGraph,
|
|
253
253
|
validateUniversalConnection,
|
|
254
254
|
zoomAtPoint
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-YUJC367F.js";
|
|
256
256
|
import {
|
|
257
257
|
BaseHandle,
|
|
258
258
|
DataHandle,
|
|
@@ -262,29 +262,6 @@ import {
|
|
|
262
262
|
instantiateSubgraph
|
|
263
263
|
} from "./chunk-OXUDG6HE.js";
|
|
264
264
|
import "./chunk-RHRXPY2U.js";
|
|
265
|
-
import {
|
|
266
|
-
LifecycleCycleError,
|
|
267
|
-
LifecycleGraph,
|
|
268
|
-
SKIPO_STATE,
|
|
269
|
-
SkipoStateEngine,
|
|
270
|
-
useLifecycleScope,
|
|
271
|
-
useSkipoBind,
|
|
272
|
-
useSkipoState
|
|
273
|
-
} from "./chunk-EW4ACSZB.js";
|
|
274
|
-
import {
|
|
275
|
-
CommandApi,
|
|
276
|
-
GhostStore,
|
|
277
|
-
GraphStore
|
|
278
|
-
} from "./chunk-LVULR5M4.js";
|
|
279
|
-
import {
|
|
280
|
-
BaseGraph,
|
|
281
|
-
BaseNode,
|
|
282
|
-
BaseViewWindow,
|
|
283
|
-
CustomGraph,
|
|
284
|
-
CustomNode,
|
|
285
|
-
CustomViewWindow,
|
|
286
|
-
DEFAULT_GRAPH_SETTINGS
|
|
287
|
-
} from "./chunk-5KP74NMF.js";
|
|
288
265
|
import {
|
|
289
266
|
AttractionEngine,
|
|
290
267
|
GhostInferenceEngine,
|
|
@@ -300,6 +277,20 @@ import {
|
|
|
300
277
|
WireTypeRegistry,
|
|
301
278
|
initializeDefaultGraphRules
|
|
302
279
|
} from "./chunk-TZOL3RN7.js";
|
|
280
|
+
import {
|
|
281
|
+
CommandApi,
|
|
282
|
+
GhostStore,
|
|
283
|
+
GraphStore
|
|
284
|
+
} from "./chunk-LVULR5M4.js";
|
|
285
|
+
import {
|
|
286
|
+
BaseGraph,
|
|
287
|
+
BaseNode,
|
|
288
|
+
BaseViewWindow,
|
|
289
|
+
CustomGraph,
|
|
290
|
+
CustomNode,
|
|
291
|
+
CustomViewWindow,
|
|
292
|
+
DEFAULT_GRAPH_SETTINGS
|
|
293
|
+
} from "./chunk-5KP74NMF.js";
|
|
303
294
|
import {
|
|
304
295
|
AutoSolidify,
|
|
305
296
|
SpatialEngine,
|
|
@@ -313,6 +304,15 @@ import {
|
|
|
313
304
|
import {
|
|
314
305
|
CompatibilityMatrix
|
|
315
306
|
} from "./chunk-ISFNY7EZ.js";
|
|
307
|
+
import {
|
|
308
|
+
LifecycleCycleError,
|
|
309
|
+
LifecycleGraph,
|
|
310
|
+
SKIPO_STATE,
|
|
311
|
+
SkipoStateEngine,
|
|
312
|
+
useLifecycleScope,
|
|
313
|
+
useSkipoBind,
|
|
314
|
+
useSkipoState
|
|
315
|
+
} from "./chunk-EW4ACSZB.js";
|
|
316
316
|
|
|
317
317
|
// src/index.ts
|
|
318
318
|
import {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataHandle
|
|
3
3
|
} from "./chunk-OXUDG6HE.js";
|
|
4
|
-
import {
|
|
5
|
-
BaseNode
|
|
6
|
-
} from "./chunk-5KP74NMF.js";
|
|
7
4
|
import {
|
|
8
5
|
AttractionEngine
|
|
9
6
|
} from "./chunk-JXDJZSFW.js";
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
HandleTypeRegistry,
|
|
12
9
|
WireTypeRegistry
|
|
13
10
|
} from "./chunk-TZOL3RN7.js";
|
|
11
|
+
import {
|
|
12
|
+
BaseNode
|
|
13
|
+
} from "./chunk-5KP74NMF.js";
|
|
14
14
|
import {
|
|
15
15
|
AutoSolidify,
|
|
16
16
|
TraceEngine
|