@ultrst-armada/kloks 1.24.5 → 1.24.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/README.md +11 -0
- package/package.json +15 -12
- package/packages/audio-midi/dist/index.js +16 -16
- package/packages/backend/dist/ai-inference/index.js +0 -1
- package/packages/backend/dist/ai-keys/index.js +0 -1
- package/packages/backend/dist/ai-models/index.js +0 -1
- package/packages/backend/dist/ai-provider/index.js +0 -1
- package/packages/backend/dist/ai-routing/index.js +0 -1
- package/packages/backend/dist/ai-tools/index.js +0 -1
- package/packages/backend/dist/api/index.js +0 -1
- package/packages/backend/dist/auth/index.d.ts +5 -74
- package/packages/backend/dist/auth/index.js +16 -19
- package/packages/backend/dist/{chunk-2OPIDIIB.js → chunk-3VWBZEMG.js} +26 -2
- package/packages/backend/dist/chunk-ED32WV3T.js +75 -0
- package/packages/backend/dist/chunk-EO5VUYYU.js +20 -0
- package/packages/backend/dist/{chunk-B3VJ4HDV.js → chunk-JOTDEFRG.js} +1 -1
- package/packages/backend/dist/{chunk-OB65KZ2M.js → chunk-M45KQRPR.js} +1 -1
- package/packages/backend/dist/{chunk-AHJ2EWQW.js → chunk-Q7ZJSEII.js} +2 -21
- package/packages/backend/dist/chunk-SXDYW3QA.js +579 -0
- package/packages/backend/dist/client/index.js +0 -1
- package/packages/backend/dist/connectivity/index.js +0 -1
- package/packages/backend/dist/control-plane/index.d.ts +3 -3
- package/packages/backend/dist/control-plane/index.js +0 -1
- package/packages/backend/dist/development/client.d.ts +20 -6
- package/packages/backend/dist/development/client.js +42 -28
- package/packages/backend/dist/development/index.d.ts +20 -6
- package/packages/backend/dist/development/index.js +43 -32
- package/packages/backend/dist/development/playwrightInspectionService.js +2 -3
- package/packages/backend/dist/development/playwrightInspectionTypes.d.ts +1 -0
- package/packages/backend/dist/index.d.ts +3 -54
- package/packages/backend/dist/index.js +20 -103
- package/packages/backend/dist/krnl-ai-services.js +2 -3
- package/packages/backend/dist/krnl-services.js +3 -4
- package/packages/backend/dist/services/index.js +2 -3
- package/packages/backend/dist/srkl/index.js +0 -1
- package/packages/backend/dist/storage/index.js +0 -1
- package/packages/backend/dist/workspace/index.js +0 -1
- package/packages/backend/package.json +3 -10
- package/packages/client/dist/auth.d.ts +1 -0
- package/packages/client/dist/auth.js +22 -0
- package/packages/client/dist/chunk-B4WOPCRZ.js +26 -0
- package/packages/client/dist/index.d.ts +2 -0
- package/packages/client/dist/index.js +19 -1
- package/packages/client/package.json +8 -2
- package/packages/fod/dist/index.d.ts +11 -1
- package/packages/fod/dist/index.js +2 -0
- package/packages/fod/package.json +2 -3
- package/packages/functions/dist/index.js +16 -16
- package/packages/functions/package.json +2 -1
- package/packages/services/dist/index.d.ts +46 -1
- package/packages/services/dist/index.js +96 -18
- package/packages/services/kloks.manifest.json +19 -0
- package/packages/state-graph/dist/index.js +39 -39
- package/packages/backend/dist/BaseAccountProvider-DduKf5HG.d.ts +0 -66
- package/packages/backend/dist/chunk-2HCQ2SIR.js +0 -213
- package/packages/backend/dist/chunk-A3BE6ROS.js +0 -180
- package/packages/backend/dist/chunk-MWSYNRNZ.js +0 -871
- package/packages/backend/dist/chunk-QGM4M3NI.js +0 -37
- package/packages/backend/dist/dist-XMSSRYDR.js +0 -899
- package/packages/backend/dist/transformers.node-HWHOAE4H.js +0 -43879
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
nodeGraphPersistence,
|
|
12
12
|
parseGraphJsonFile,
|
|
13
13
|
validateGraphDocument
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JOTDEFRG.js";
|
|
15
15
|
import {
|
|
16
16
|
CANONICAL_SRKL_URL,
|
|
17
17
|
SrklClient,
|
|
@@ -59,11 +59,14 @@ import {
|
|
|
59
59
|
withCors
|
|
60
60
|
} from "./chunk-TWCEVES2.js";
|
|
61
61
|
import {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
LuthAuthClient,
|
|
63
|
+
LuthAuthClient2,
|
|
64
|
+
LuthAuthError,
|
|
65
|
+
createLuthAuthClient,
|
|
66
|
+
createLuthAuthClient2,
|
|
67
|
+
resolveClientEnvironment,
|
|
68
|
+
resolveClientOrigin
|
|
69
|
+
} from "./chunk-EO5VUYYU.js";
|
|
67
70
|
import {
|
|
68
71
|
BackendProvider,
|
|
69
72
|
useBackend,
|
|
@@ -114,7 +117,7 @@ import {
|
|
|
114
117
|
AIRoutingServiceFacade,
|
|
115
118
|
AIToolServiceDefinition,
|
|
116
119
|
AIToolServiceFacade
|
|
117
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-M45KQRPR.js";
|
|
118
121
|
import {
|
|
119
122
|
MCPEngine,
|
|
120
123
|
ToolManagerService,
|
|
@@ -154,7 +157,7 @@ import {
|
|
|
154
157
|
krnlWorkspaceGraphServiceFacade,
|
|
155
158
|
krnlWorkspaceServiceDefinition,
|
|
156
159
|
krnlWorkspaceServiceFacade
|
|
157
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-Q7ZJSEII.js";
|
|
158
161
|
import {
|
|
159
162
|
workspaceGraphService
|
|
160
163
|
} from "./chunk-IGZB4RYT.js";
|
|
@@ -225,14 +228,10 @@ import {
|
|
|
225
228
|
refreshGoogleDriveAccessToken
|
|
226
229
|
} from "./chunk-KKRWZDMN.js";
|
|
227
230
|
import {
|
|
228
|
-
CanonicalAuthClient,
|
|
229
|
-
RateLimiter,
|
|
230
|
-
SessionManager,
|
|
231
|
-
createCanonicalAuthClient,
|
|
232
231
|
loginSystemUser,
|
|
233
232
|
resolveUserFromToken
|
|
234
|
-
} from "./chunk-
|
|
235
|
-
import "./chunk-
|
|
233
|
+
} from "./chunk-ED32WV3T.js";
|
|
234
|
+
import "./chunk-SXDYW3QA.js";
|
|
236
235
|
import {
|
|
237
236
|
DeterministicEndpointExecutor,
|
|
238
237
|
deterministicEndpointExecutor
|
|
@@ -285,7 +284,6 @@ import {
|
|
|
285
284
|
getProviderMeta,
|
|
286
285
|
listProviders
|
|
287
286
|
} from "./chunk-JSQZAFBU.js";
|
|
288
|
-
import "./chunk-QGM4M3NI.js";
|
|
289
287
|
|
|
290
288
|
// src/data/BaseDataProvider.ts
|
|
291
289
|
import { SkipoBase } from "@ultrst-armada/kloks/functions";
|
|
@@ -355,84 +353,6 @@ function validateServiceDefinition(def) {
|
|
|
355
353
|
return { valid: true };
|
|
356
354
|
}
|
|
357
355
|
|
|
358
|
-
// src/core/authCore.ts
|
|
359
|
-
import crypto2 from "crypto";
|
|
360
|
-
import bcrypt from "bcryptjs";
|
|
361
|
-
async function loginUser(email, password, isAdmin = false, env) {
|
|
362
|
-
const normEmail = (email || "").trim().toLowerCase();
|
|
363
|
-
const rawPassword = (password || "").trim();
|
|
364
|
-
if (!normEmail || !rawPassword) {
|
|
365
|
-
return { success: false, error: "Email and password are required", status: 400 };
|
|
366
|
-
}
|
|
367
|
-
try {
|
|
368
|
-
if (isAdmin) {
|
|
369
|
-
const credRes = await queryUnifiedDb(`SELECT * FROM "ultrst-credentials" WHERE id = 'system' LIMIT 1`, [], env);
|
|
370
|
-
if (credRes.rows.length > 0) {
|
|
371
|
-
const cred = credRes.rows[0];
|
|
372
|
-
const emailMatch = (cred.admin_email || "").toLowerCase() === normEmail;
|
|
373
|
-
const passMatch = cred.admin_password === rawPassword || cred.admin_password && bcrypt.compareSync(rawPassword, cred.admin_password);
|
|
374
|
-
if (emailMatch && passMatch) {
|
|
375
|
-
return {
|
|
376
|
-
success: true,
|
|
377
|
-
status: 200,
|
|
378
|
-
token: `adm_${Date.now()}_${Math.random().toString(36).slice(2)}`,
|
|
379
|
-
user: { id: "admin_sys", email: cred.admin_email, role: "admin", username: "System Admin" }
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
const uRes = await queryUnifiedDb(`SELECT * FROM "ultrst-users" WHERE LOWER(email) = $1 LIMIT 1`, [normEmail], env);
|
|
385
|
-
if (uRes.rows.length === 0) {
|
|
386
|
-
return { success: false, error: "Invalid email or password", status: 401 };
|
|
387
|
-
}
|
|
388
|
-
const user = uRes.rows[0];
|
|
389
|
-
const hash = (user.password_hash || "").trim();
|
|
390
|
-
let isMatch = false;
|
|
391
|
-
if (hash === rawPassword) {
|
|
392
|
-
isMatch = true;
|
|
393
|
-
} else if (hash.startsWith("$2a$") || hash.startsWith("$2b$")) {
|
|
394
|
-
isMatch = bcrypt.compareSync(rawPassword, hash);
|
|
395
|
-
} else {
|
|
396
|
-
const saltedSha = crypto2.createHash("sha256").update(rawPassword + "docustack_salt_2026_v2").digest("hex");
|
|
397
|
-
const rawSha = crypto2.createHash("sha256").update(rawPassword).digest("hex");
|
|
398
|
-
isMatch = hash === saltedSha || hash === rawSha;
|
|
399
|
-
}
|
|
400
|
-
if (!isMatch) {
|
|
401
|
-
return { success: false, error: "Invalid email or password", status: 401 };
|
|
402
|
-
}
|
|
403
|
-
if (isAdmin && user.role !== "admin") {
|
|
404
|
-
return { success: false, error: "Insufficient administrative privileges", status: 403 };
|
|
405
|
-
}
|
|
406
|
-
return {
|
|
407
|
-
success: true,
|
|
408
|
-
status: 200,
|
|
409
|
-
token: `sess::${user.id}::${Date.now()}::${user.role || "user"}`,
|
|
410
|
-
user: {
|
|
411
|
-
id: user.id,
|
|
412
|
-
email: user.email,
|
|
413
|
-
username: user.username || user.name || user.email.split("@")[0],
|
|
414
|
-
name: user.name || user.username || "Ecosystem User",
|
|
415
|
-
role: user.role || "user",
|
|
416
|
-
status: user.status || "ACTIVE"
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
} catch (err) {
|
|
420
|
-
return { success: false, error: err.message, status: 500 };
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
async function getUsers(env) {
|
|
424
|
-
try {
|
|
425
|
-
const res = await queryUnifiedDb(
|
|
426
|
-
`SELECT id, email, username, name, role, status, created_at, last_login_at FROM "ultrst-users" ORDER BY created_at ASC`,
|
|
427
|
-
[],
|
|
428
|
-
env
|
|
429
|
-
);
|
|
430
|
-
return { success: true, count: res.rows.length, users: res.rows };
|
|
431
|
-
} catch (err) {
|
|
432
|
-
return { success: false, error: err.message, count: 0, users: [] };
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
356
|
// src/core/SrklStorageService.ts
|
|
437
357
|
import { S3Client, ListBucketsCommand, HeadBucketCommand } from "@aws-sdk/client-s3";
|
|
438
358
|
import { promises as fs } from "fs";
|
|
@@ -4401,7 +4321,6 @@ export {
|
|
|
4401
4321
|
AIToolServiceDefinition,
|
|
4402
4322
|
AIToolServiceFacade,
|
|
4403
4323
|
AITransportClient,
|
|
4404
|
-
AdminGuard,
|
|
4405
4324
|
AuditLogger,
|
|
4406
4325
|
AuthServiceDefinition,
|
|
4407
4326
|
AuthServiceFacade,
|
|
@@ -4410,14 +4329,13 @@ export {
|
|
|
4410
4329
|
BackendProvider,
|
|
4411
4330
|
BackendRegistry,
|
|
4412
4331
|
BackendResolver,
|
|
4413
|
-
BaseAccountProvider,
|
|
4414
4332
|
BaseApiRoute,
|
|
4415
4333
|
BaseDataProvider,
|
|
4416
4334
|
BaseResourceFetcher,
|
|
4417
4335
|
BaseStorageAdapter,
|
|
4418
4336
|
CANONICAL_SRKL_URL,
|
|
4419
4337
|
CallbackRegistry,
|
|
4420
|
-
CanonicalAuthClient,
|
|
4338
|
+
LuthAuthClient2 as CanonicalAuthClient,
|
|
4421
4339
|
CloudflareResourceFetcher,
|
|
4422
4340
|
CompositeBackend,
|
|
4423
4341
|
ConcurrencyConflictError,
|
|
@@ -4451,9 +4369,10 @@ export {
|
|
|
4451
4369
|
LEGACY_PROJECTS_ROOT,
|
|
4452
4370
|
LOCAL_STORAGE_GRAPHS_PREFIX,
|
|
4453
4371
|
LoadBalancer,
|
|
4454
|
-
LocalAccountProvider,
|
|
4455
4372
|
LocalFSAdapter,
|
|
4456
4373
|
LockManager,
|
|
4374
|
+
LuthAuthClient,
|
|
4375
|
+
LuthAuthError,
|
|
4457
4376
|
MCPEngine,
|
|
4458
4377
|
MetricsLogger,
|
|
4459
4378
|
ModelCatalogService,
|
|
@@ -4462,8 +4381,6 @@ export {
|
|
|
4462
4381
|
PROJECTS_ROOT,
|
|
4463
4382
|
PROVIDERS_META,
|
|
4464
4383
|
PROVIDER_COLORS,
|
|
4465
|
-
PasswordHasher,
|
|
4466
|
-
RateLimiter,
|
|
4467
4384
|
RemoteExecutor,
|
|
4468
4385
|
RemoteWorkspaceService,
|
|
4469
4386
|
ResourceFetcherRegistry,
|
|
@@ -4473,7 +4390,6 @@ export {
|
|
|
4473
4390
|
SUPPORTED_AUDIO_EXTS,
|
|
4474
4391
|
SUPPORTED_MIDI_EXTS,
|
|
4475
4392
|
SequenceTracker,
|
|
4476
|
-
SessionManager,
|
|
4477
4393
|
SrklClient,
|
|
4478
4394
|
SrklCredentialRegistry,
|
|
4479
4395
|
SrklServiceDefinition,
|
|
@@ -4515,7 +4431,7 @@ export {
|
|
|
4515
4431
|
createAssetSubfolder,
|
|
4516
4432
|
createBackend,
|
|
4517
4433
|
createBackendClient,
|
|
4518
|
-
createCanonicalAuthClient,
|
|
4434
|
+
createLuthAuthClient2 as createCanonicalAuthClient,
|
|
4519
4435
|
createCompositeService,
|
|
4520
4436
|
createCredential,
|
|
4521
4437
|
createEmptyContract,
|
|
@@ -4524,6 +4440,7 @@ export {
|
|
|
4524
4440
|
createGraphAssetFolder as createGraphAssetSubfolder,
|
|
4525
4441
|
createGraphPackage,
|
|
4526
4442
|
createLocalService,
|
|
4443
|
+
createLuthAuthClient,
|
|
4527
4444
|
createRemoteService,
|
|
4528
4445
|
createSSEResponse,
|
|
4529
4446
|
createSrklClient,
|
|
@@ -4587,7 +4504,6 @@ export {
|
|
|
4587
4504
|
getSrklStatus,
|
|
4588
4505
|
getSystemDatabaseUrls,
|
|
4589
4506
|
getUnifiedDbUrl,
|
|
4590
|
-
getUsers,
|
|
4591
4507
|
getWeightModifierScore,
|
|
4592
4508
|
getWorkingWorkspaceConfig,
|
|
4593
4509
|
getWorkingWorkspaceDir,
|
|
@@ -4635,7 +4551,6 @@ export {
|
|
|
4635
4551
|
loadCredentialManifest,
|
|
4636
4552
|
loadWorkspaceData,
|
|
4637
4553
|
loginSystemUser,
|
|
4638
|
-
loginUser,
|
|
4639
4554
|
matchGatewayIngress,
|
|
4640
4555
|
matchGatewayIngressAsync,
|
|
4641
4556
|
mcpEngine,
|
|
@@ -4660,6 +4575,8 @@ export {
|
|
|
4660
4575
|
renameAppInWorkspaceData,
|
|
4661
4576
|
renameS3Folder,
|
|
4662
4577
|
resolveBackblazeEndpoint,
|
|
4578
|
+
resolveClientEnvironment,
|
|
4579
|
+
resolveClientOrigin,
|
|
4663
4580
|
resolveDynamicRouteFromDb,
|
|
4664
4581
|
resolveSystemDatabaseClusterNodes,
|
|
4665
4582
|
resolveSystemDatabaseUrl,
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
AIRoutingServiceFacade,
|
|
12
12
|
AIToolServiceDefinition,
|
|
13
13
|
AIToolServiceFacade
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M45KQRPR.js";
|
|
15
15
|
import "./chunk-U4HUGPRH.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-SXDYW3QA.js";
|
|
17
17
|
import "./chunk-GCTQY24J.js";
|
|
18
18
|
import "./chunk-PT6J6UEU.js";
|
|
19
19
|
import "./chunk-LMWXONZG.js";
|
|
@@ -21,7 +21,6 @@ import "./chunk-P7H6TIEA.js";
|
|
|
21
21
|
import "./chunk-SLR6SIEU.js";
|
|
22
22
|
import "./chunk-MAMK4GDH.js";
|
|
23
23
|
import "./chunk-JSQZAFBU.js";
|
|
24
|
-
import "./chunk-QGM4M3NI.js";
|
|
25
24
|
export {
|
|
26
25
|
AIInferenceServiceDefinition,
|
|
27
26
|
AIInferenceServiceFacade,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
krnlWorkspaceGraphServiceFacade,
|
|
32
32
|
krnlWorkspaceServiceDefinition,
|
|
33
33
|
krnlWorkspaceServiceFacade
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Q7ZJSEII.js";
|
|
35
35
|
import "./chunk-IGZB4RYT.js";
|
|
36
36
|
import "./chunk-XHADDA75.js";
|
|
37
37
|
import "./chunk-SHZAQTIT.js";
|
|
@@ -40,9 +40,8 @@ import "./chunk-FZKBTF34.js";
|
|
|
40
40
|
import "./chunk-JGUWYVOL.js";
|
|
41
41
|
import "./chunk-JCMB7BIM.js";
|
|
42
42
|
import "./chunk-KKRWZDMN.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-QGM4M3NI.js";
|
|
43
|
+
import "./chunk-ED32WV3T.js";
|
|
44
|
+
import "./chunk-SXDYW3QA.js";
|
|
46
45
|
export {
|
|
47
46
|
AuthServiceDefinition,
|
|
48
47
|
AuthServiceFacade,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
nodeGraphPersistence,
|
|
12
12
|
parseGraphJsonFile,
|
|
13
13
|
validateGraphDocument
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-JOTDEFRG.js";
|
|
15
15
|
import {
|
|
16
16
|
workspaceGraphService
|
|
17
17
|
} from "../chunk-IGZB4RYT.js";
|
|
@@ -19,8 +19,7 @@ import "../chunk-SHZAQTIT.js";
|
|
|
19
19
|
import "../chunk-JGUWYVOL.js";
|
|
20
20
|
import "../chunk-JCMB7BIM.js";
|
|
21
21
|
import "../chunk-KKRWZDMN.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-QGM4M3NI.js";
|
|
22
|
+
import "../chunk-SXDYW3QA.js";
|
|
24
23
|
export {
|
|
25
24
|
CompositeBackend,
|
|
26
25
|
EndpointGenerator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kloks/backend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Kloks Backend Services — Auth, Storage, Workspace, Control Plane, API, Connectivity & Execution built on KrnlTS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -110,11 +110,12 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"scripts": {
|
|
113
|
-
"build": "tsup src/index.ts src/krnl-services.ts src/krnl-ai-services.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/development/playwrightInspectionService.ts src/development/playwrightInspectionTypes.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts --format esm --dts --clean --external @kloks/functions --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external
|
|
113
|
+
"build": "tsup src/index.ts src/krnl-services.ts src/krnl-ai-services.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/development/playwrightInspectionService.ts src/development/playwrightInspectionTypes.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts --format esm --dts --clean --external @kloks/functions --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external zod --external ws --external @webcontainer/api --external playwright && tsup src/development/client.ts --format esm --dts --out-dir dist/development --splitting false --platform browser --external @ultrst-armada/krnl",
|
|
114
114
|
"typecheck": "tsc --noEmit",
|
|
115
115
|
"clean": "rm -rf dist"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
+
"@dinilmusick/gutts": "^1.4.3",
|
|
118
119
|
"@kloks/functions": "workspace:*",
|
|
119
120
|
"@kloks/state-graph": "workspace:*",
|
|
120
121
|
"@webcontainer/api": "^1.6.4"
|
|
@@ -124,15 +125,10 @@
|
|
|
124
125
|
"@aws-sdk/lib-storage": "^3.600.0",
|
|
125
126
|
"@neondatabase/serverless": "^0.10.0",
|
|
126
127
|
"@supabase/supabase-js": "^2.45.0",
|
|
127
|
-
"bcryptjs": "^2.4.3",
|
|
128
|
-
"better-sqlite3": "^11.0.0",
|
|
129
128
|
"react": "^18.0.0 || ^19.0.0",
|
|
130
129
|
"zod": "^3.22.0"
|
|
131
130
|
},
|
|
132
131
|
"peerDependenciesMeta": {
|
|
133
|
-
"better-sqlite3": {
|
|
134
|
-
"optional": true
|
|
135
|
-
},
|
|
136
132
|
"@aws-sdk/client-s3": {
|
|
137
133
|
"optional": true
|
|
138
134
|
},
|
|
@@ -145,9 +141,6 @@
|
|
|
145
141
|
"@neondatabase/serverless": {
|
|
146
142
|
"optional": true
|
|
147
143
|
},
|
|
148
|
-
"bcryptjs": {
|
|
149
|
-
"optional": true
|
|
150
|
-
},
|
|
151
144
|
"zod": {
|
|
152
145
|
"optional": true
|
|
153
146
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LuthAuthClient as CanonicalAuthClient, DEFAULT_LUTH_URL, DeploymentEnvironment, EmailSignInCredentials, EmailSignUpData, GoogleSignInOptions, LuthAuthClient, LuthAuthClientConfig, LuthAuthError, LuthAuthTokenStore, LuthSession, LuthSessionResult, LuthUser, RegisterApplicationResult, createLuthAuthClient as createCanonicalAuthClient, createLuthAuthClient, hydrateLuthTokenFromUrl, resolveClientEnvironment, resolveClientOrigin } from '@dinilmusick/gutts/auth';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_LUTH_URL,
|
|
3
|
+
LuthAuthClient,
|
|
4
|
+
LuthAuthClient2,
|
|
5
|
+
LuthAuthError,
|
|
6
|
+
createLuthAuthClient,
|
|
7
|
+
createLuthAuthClient2,
|
|
8
|
+
hydrateLuthTokenFromUrl,
|
|
9
|
+
resolveClientEnvironment,
|
|
10
|
+
resolveClientOrigin
|
|
11
|
+
} from "./chunk-B4WOPCRZ.js";
|
|
12
|
+
export {
|
|
13
|
+
LuthAuthClient2 as CanonicalAuthClient,
|
|
14
|
+
DEFAULT_LUTH_URL,
|
|
15
|
+
LuthAuthClient,
|
|
16
|
+
LuthAuthError,
|
|
17
|
+
createLuthAuthClient2 as createCanonicalAuthClient,
|
|
18
|
+
createLuthAuthClient,
|
|
19
|
+
hydrateLuthTokenFromUrl,
|
|
20
|
+
resolveClientEnvironment,
|
|
21
|
+
resolveClientOrigin
|
|
22
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/auth.ts
|
|
2
|
+
import {
|
|
3
|
+
LuthAuthClient,
|
|
4
|
+
createLuthAuthClient,
|
|
5
|
+
hydrateLuthTokenFromUrl,
|
|
6
|
+
resolveClientOrigin,
|
|
7
|
+
resolveClientEnvironment,
|
|
8
|
+
LuthAuthError,
|
|
9
|
+
DEFAULT_LUTH_URL
|
|
10
|
+
} from "@dinilmusick/gutts/auth";
|
|
11
|
+
import {
|
|
12
|
+
LuthAuthClient as LuthAuthClient2,
|
|
13
|
+
createLuthAuthClient as createLuthAuthClient2
|
|
14
|
+
} from "@dinilmusick/gutts/auth";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
LuthAuthClient,
|
|
18
|
+
createLuthAuthClient,
|
|
19
|
+
hydrateLuthTokenFromUrl,
|
|
20
|
+
resolveClientOrigin,
|
|
21
|
+
resolveClientEnvironment,
|
|
22
|
+
LuthAuthError,
|
|
23
|
+
DEFAULT_LUTH_URL,
|
|
24
|
+
LuthAuthClient2,
|
|
25
|
+
createLuthAuthClient2
|
|
26
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { LuthAuthClient as CanonicalAuthClient, DEFAULT_LUTH_URL, DeploymentEnvironment, EmailSignInCredentials, EmailSignUpData, GoogleSignInOptions, LuthAuthClient, LuthAuthClientConfig, LuthAuthError, LuthAuthTokenStore, LuthSession, LuthSessionResult, LuthUser, RegisterApplicationResult, createLuthAuthClient as createCanonicalAuthClient, createLuthAuthClient, hydrateLuthTokenFromUrl, resolveClientEnvironment, resolveClientOrigin } from '@dinilmusick/gutts/auth';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @file queueContracts.ts
|
|
3
5
|
* @description Pure browser-safe command, job, queue, and execution contracts.
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_LUTH_URL,
|
|
3
|
+
hydrateLuthTokenFromUrl
|
|
4
|
+
} from "./chunk-B4WOPCRZ.js";
|
|
5
|
+
|
|
1
6
|
// src/browserExecutionClient.ts
|
|
2
7
|
var BrowserExecutionClient = class {
|
|
3
8
|
gatewayUrl;
|
|
@@ -170,9 +175,22 @@ var OPFSWorkspaceStorage = class {
|
|
|
170
175
|
return result;
|
|
171
176
|
}
|
|
172
177
|
};
|
|
178
|
+
|
|
179
|
+
// src/canonicalAuthClient.ts
|
|
180
|
+
import {
|
|
181
|
+
LuthAuthClient,
|
|
182
|
+
createLuthAuthClient,
|
|
183
|
+
resolveClientOrigin,
|
|
184
|
+
resolveClientEnvironment
|
|
185
|
+
} from "@dinilmusick/gutts/auth";
|
|
186
|
+
import { LuthAuthError } from "@dinilmusick/gutts/auth";
|
|
187
|
+
import { LuthAuthClient as LuthAuthClient2 } from "@dinilmusick/gutts/auth";
|
|
188
|
+
import { createLuthAuthClient as createLuthAuthClient2 } from "@dinilmusick/gutts/auth";
|
|
173
189
|
export {
|
|
174
190
|
BrowserExecutionClient,
|
|
191
|
+
DEFAULT_LUTH_URL,
|
|
175
192
|
OPFSWorkspaceStorage,
|
|
176
193
|
WorkspaceAutosaveController,
|
|
177
|
-
createBrowserExecutionClient
|
|
194
|
+
createBrowserExecutionClient,
|
|
195
|
+
hydrateLuthTokenFromUrl
|
|
178
196
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kloks/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Kloks Browser-Safe Execution Client & Shared Contracts with Zero Server Closure",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -17,14 +17,20 @@
|
|
|
17
17
|
"import": "./dist/index.js",
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./auth": {
|
|
22
|
+
"import": "./dist/auth.js",
|
|
23
|
+
"types": "./dist/auth.d.ts",
|
|
24
|
+
"default": "./dist/auth.js"
|
|
20
25
|
}
|
|
21
26
|
},
|
|
22
27
|
"scripts": {
|
|
23
|
-
"build": "tsup src/index.ts --format esm --dts --clean --external react --external zod",
|
|
28
|
+
"build": "tsup src/index.ts src/auth.ts --format esm --dts --clean --external react --external zod",
|
|
24
29
|
"typecheck": "tsc --noEmit",
|
|
25
30
|
"clean": "rm -rf dist"
|
|
26
31
|
},
|
|
27
32
|
"dependencies": {
|
|
33
|
+
"@dinilmusick/gutts": "^1.4.3",
|
|
28
34
|
"zod": "^3.24.1"
|
|
29
35
|
},
|
|
30
36
|
"peerDependencies": {
|
|
@@ -151,5 +151,15 @@ declare function createFodServiceFacadeForWorkspace(buildRuntime: (workspaceId:
|
|
|
151
151
|
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
152
152
|
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
153
153
|
};
|
|
154
|
+
declare const FodServiceFacade: {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
version: string;
|
|
158
|
+
runtime: "server";
|
|
159
|
+
deployment: "local";
|
|
160
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
161
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
162
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
163
|
+
};
|
|
154
164
|
|
|
155
|
-
export { type FodEndpointDescriptor, type FodExecutionEvent, type FodExecutionResult, type FodFlow, type FodFlowEdge, type FodFlowNode, FodFlowStore, type FodNodeCategory, type FodNodeDefinition, type FodPort, type FodPortDirection, FodRuntime, type FodRuntimeOptions, createFodServiceFacade, createFodServiceFacadeForWorkspace, endpointToNode, executeFodFlow, scanBackendFacade, scanBackendFacadeToNodes };
|
|
165
|
+
export { type FodEndpointDescriptor, type FodExecutionEvent, type FodExecutionResult, type FodFlow, type FodFlowEdge, type FodFlowNode, FodFlowStore, type FodNodeCategory, type FodNodeDefinition, type FodPort, type FodPortDirection, FodRuntime, type FodRuntimeOptions, FodServiceFacade, createFodServiceFacade, createFodServiceFacadeForWorkspace, endpointToNode, executeFodFlow, scanBackendFacade, scanBackendFacadeToNodes };
|
|
@@ -249,9 +249,11 @@ function createFodServiceFacadeForWorkspace(buildRuntime) {
|
|
|
249
249
|
return service.call(op, input);
|
|
250
250
|
} };
|
|
251
251
|
}
|
|
252
|
+
var FodServiceFacade = createFodServiceFacade(new FodRuntime({ workspaceId: "default", workspaceService: null }));
|
|
252
253
|
export {
|
|
253
254
|
FodFlowStore,
|
|
254
255
|
FodRuntime,
|
|
256
|
+
FodServiceFacade,
|
|
255
257
|
createFodServiceFacade,
|
|
256
258
|
createFodServiceFacadeForWorkspace,
|
|
257
259
|
endpointToNode,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@kloks
|
|
2
|
+
"name": "@ultrst-armada/kloks-fod",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"description": "Embedded FOD workflow orchestration module for Skipo applications.",
|
|
5
5
|
"type": "module",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"clean": "rm -rf dist"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kloks
|
|
29
|
-
"@kloks/state-graph": "workspace:*"
|
|
28
|
+
"@ultrst-armada/kloks": "workspace:*"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@ultrst-armada/krnl": "^1.0.9",
|