@ultrst-armada/kloks 1.24.5 → 1.24.8

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.
Files changed (59) hide show
  1. package/.krusbl-release-attestation.json +3 -3
  2. package/README.md +11 -0
  3. package/package.json +15 -12
  4. package/packages/audio-midi/dist/index.js +16 -16
  5. package/packages/backend/dist/ai-inference/index.js +0 -1
  6. package/packages/backend/dist/ai-keys/index.js +0 -1
  7. package/packages/backend/dist/ai-models/index.js +0 -1
  8. package/packages/backend/dist/ai-provider/index.js +0 -1
  9. package/packages/backend/dist/ai-routing/index.js +0 -1
  10. package/packages/backend/dist/ai-tools/index.js +0 -1
  11. package/packages/backend/dist/api/index.js +0 -1
  12. package/packages/backend/dist/auth/index.d.ts +5 -74
  13. package/packages/backend/dist/auth/index.js +16 -19
  14. package/packages/backend/dist/{chunk-2OPIDIIB.js → chunk-3VWBZEMG.js} +26 -2
  15. package/packages/backend/dist/{chunk-AHJ2EWQW.js → chunk-6D55GT3L.js} +9 -28
  16. package/packages/backend/dist/chunk-ED32WV3T.js +75 -0
  17. package/packages/backend/dist/chunk-EO5VUYYU.js +20 -0
  18. package/packages/backend/dist/{chunk-B3VJ4HDV.js → chunk-JOTDEFRG.js} +1 -1
  19. package/packages/backend/dist/{chunk-OB65KZ2M.js → chunk-M45KQRPR.js} +1 -1
  20. package/packages/backend/dist/chunk-SXDYW3QA.js +579 -0
  21. package/packages/backend/dist/client/index.js +0 -1
  22. package/packages/backend/dist/connectivity/index.js +0 -1
  23. package/packages/backend/dist/control-plane/index.d.ts +3 -3
  24. package/packages/backend/dist/control-plane/index.js +0 -1
  25. package/packages/backend/dist/development/client.d.ts +20 -6
  26. package/packages/backend/dist/development/client.js +42 -28
  27. package/packages/backend/dist/development/index.d.ts +20 -6
  28. package/packages/backend/dist/development/index.js +43 -32
  29. package/packages/backend/dist/development/playwrightInspectionService.js +2 -3
  30. package/packages/backend/dist/development/playwrightInspectionTypes.d.ts +1 -0
  31. package/packages/backend/dist/index.d.ts +3 -54
  32. package/packages/backend/dist/index.js +44 -127
  33. package/packages/backend/dist/krnl-ai-services.js +2 -3
  34. package/packages/backend/dist/krnl-services.js +6 -7
  35. package/packages/backend/dist/services/index.js +4 -5
  36. package/packages/backend/dist/srkl/index.js +1 -2
  37. package/packages/backend/dist/storage/index.js +0 -1
  38. package/packages/backend/dist/workspace/index.js +0 -1
  39. package/packages/backend/package.json +3 -10
  40. package/packages/client/dist/index.d.ts +2 -0
  41. package/packages/client/dist/index.js +29 -1
  42. package/packages/client/package.json +2 -1
  43. package/packages/fod/dist/index.d.ts +11 -1
  44. package/packages/fod/dist/index.js +2 -0
  45. package/packages/fod/package.json +2 -3
  46. package/packages/functions/dist/index.js +16 -16
  47. package/packages/functions/package.json +2 -1
  48. package/packages/services/dist/index.d.ts +46 -1
  49. package/packages/services/dist/index.js +96 -18
  50. package/packages/services/kloks.manifest.json +19 -0
  51. package/packages/state-graph/dist/index.js +31 -31
  52. package/packages/backend/dist/BaseAccountProvider-DduKf5HG.d.ts +0 -66
  53. package/packages/backend/dist/chunk-2HCQ2SIR.js +0 -213
  54. package/packages/backend/dist/chunk-A3BE6ROS.js +0 -180
  55. package/packages/backend/dist/chunk-MWSYNRNZ.js +0 -871
  56. package/packages/backend/dist/chunk-QGM4M3NI.js +0 -37
  57. package/packages/backend/dist/dist-XMSSRYDR.js +0 -899
  58. package/packages/backend/dist/transformers.node-HWHOAE4H.js +0 -43879
  59. package/packages/backend/dist/{chunk-IGZB4RYT.js → chunk-R6ZNF6FW.js} +3 -3
@@ -11,7 +11,7 @@ import {
11
11
  nodeGraphPersistence,
12
12
  parseGraphJsonFile,
13
13
  validateGraphDocument
14
- } from "./chunk-B3VJ4HDV.js";
14
+ } from "./chunk-JOTDEFRG.js";
15
15
  import {
16
16
  CANONICAL_SRKL_URL,
17
17
  SrklClient,
@@ -30,9 +30,6 @@ import {
30
30
  syncSrklAccounts,
31
31
  useSrklServices
32
32
  } from "./chunk-HF5SGQ5V.js";
33
- import {
34
- S3Adapter
35
- } from "./chunk-RBQ4CW3T.js";
36
33
  import {
37
34
  RemoteWorkspaceService,
38
35
  SyncEngine,
@@ -49,6 +46,9 @@ import {
49
46
  syncWorkspace,
50
47
  workingWorkspaceService
51
48
  } from "./chunk-SVNL5IVN.js";
49
+ import {
50
+ S3Adapter
51
+ } from "./chunk-RBQ4CW3T.js";
52
52
  import {
53
53
  validateToolInput
54
54
  } from "./chunk-6GQNYRD6.js";
@@ -59,11 +59,14 @@ import {
59
59
  withCors
60
60
  } from "./chunk-TWCEVES2.js";
61
61
  import {
62
- AdminGuard,
63
- BaseAccountProvider,
64
- LocalAccountProvider,
65
- PasswordHasher
66
- } from "./chunk-A3BE6ROS.js";
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-OB65KZ2M.js";
120
+ } from "./chunk-M45KQRPR.js";
118
121
  import {
119
122
  MCPEngine,
120
123
  ToolManagerService,
@@ -154,35 +157,15 @@ import {
154
157
  krnlWorkspaceGraphServiceFacade,
155
158
  krnlWorkspaceServiceDefinition,
156
159
  krnlWorkspaceServiceFacade
157
- } from "./chunk-AHJ2EWQW.js";
160
+ } from "./chunk-6D55GT3L.js";
158
161
  import {
159
162
  workspaceGraphService
160
- } from "./chunk-IGZB4RYT.js";
163
+ } from "./chunk-R6ZNF6FW.js";
161
164
  import {
162
165
  getPrimarySrklDeploymentUrl,
163
166
  getSrklAccounts,
164
167
  srklListBackblazeBuckets
165
168
  } from "./chunk-XHADDA75.js";
166
- import {
167
- BackblazeB2Adapter,
168
- LocalFSAdapter,
169
- StorageAdapterFactory,
170
- SupabaseStorageAdapter,
171
- ensureS3DirectoryMarker,
172
- isSecretMasked,
173
- normalizeBackblazeCredentials,
174
- permanentDeleteS3Folder,
175
- permanentDeleteS3Object,
176
- renameS3Folder,
177
- resolveBackblazeEndpoint
178
- } from "./chunk-SHZAQTIT.js";
179
- import {
180
- authorizeB2,
181
- b2DownloadFile,
182
- b2ListBuckets,
183
- b2ListFileNames,
184
- b2UploadFile
185
- } from "./chunk-4QEMALXF.js";
186
169
  import {
187
170
  formatCanonicalWorkspaceFolderName,
188
171
  sanitizeWorkspaceName
@@ -217,6 +200,26 @@ import {
217
200
  getUnifiedDbUrl,
218
201
  queryUnifiedDb
219
202
  } from "./chunk-JCMB7BIM.js";
203
+ import {
204
+ BackblazeB2Adapter,
205
+ LocalFSAdapter,
206
+ StorageAdapterFactory,
207
+ SupabaseStorageAdapter,
208
+ ensureS3DirectoryMarker,
209
+ isSecretMasked,
210
+ normalizeBackblazeCredentials,
211
+ permanentDeleteS3Folder,
212
+ permanentDeleteS3Object,
213
+ renameS3Folder,
214
+ resolveBackblazeEndpoint
215
+ } from "./chunk-SHZAQTIT.js";
216
+ import {
217
+ authorizeB2,
218
+ b2DownloadFile,
219
+ b2ListBuckets,
220
+ b2ListFileNames,
221
+ b2UploadFile
222
+ } from "./chunk-4QEMALXF.js";
220
223
  import {
221
224
  BaseStorageAdapter,
222
225
  GoogleDriveAdapter,
@@ -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-2HCQ2SIR.js";
235
- import "./chunk-MWSYNRNZ.js";
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-OB65KZ2M.js";
14
+ } from "./chunk-M45KQRPR.js";
15
15
  import "./chunk-U4HUGPRH.js";
16
- import "./chunk-MWSYNRNZ.js";
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,18 +31,17 @@ import {
31
31
  krnlWorkspaceGraphServiceFacade,
32
32
  krnlWorkspaceServiceDefinition,
33
33
  krnlWorkspaceServiceFacade
34
- } from "./chunk-AHJ2EWQW.js";
35
- import "./chunk-IGZB4RYT.js";
34
+ } from "./chunk-6D55GT3L.js";
35
+ import "./chunk-R6ZNF6FW.js";
36
36
  import "./chunk-XHADDA75.js";
37
- import "./chunk-SHZAQTIT.js";
38
- import "./chunk-4QEMALXF.js";
39
37
  import "./chunk-FZKBTF34.js";
40
38
  import "./chunk-JGUWYVOL.js";
41
39
  import "./chunk-JCMB7BIM.js";
40
+ import "./chunk-SHZAQTIT.js";
41
+ import "./chunk-4QEMALXF.js";
42
42
  import "./chunk-KKRWZDMN.js";
43
- import "./chunk-2HCQ2SIR.js";
44
- import "./chunk-MWSYNRNZ.js";
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,16 +11,15 @@ import {
11
11
  nodeGraphPersistence,
12
12
  parseGraphJsonFile,
13
13
  validateGraphDocument
14
- } from "../chunk-B3VJ4HDV.js";
14
+ } from "../chunk-JOTDEFRG.js";
15
15
  import {
16
16
  workspaceGraphService
17
- } from "../chunk-IGZB4RYT.js";
18
- import "../chunk-SHZAQTIT.js";
17
+ } from "../chunk-R6ZNF6FW.js";
19
18
  import "../chunk-JGUWYVOL.js";
20
19
  import "../chunk-JCMB7BIM.js";
20
+ import "../chunk-SHZAQTIT.js";
21
21
  import "../chunk-KKRWZDMN.js";
22
- import "../chunk-MWSYNRNZ.js";
23
- import "../chunk-QGM4M3NI.js";
22
+ import "../chunk-SXDYW3QA.js";
24
23
  export {
25
24
  CompositeBackend,
26
25
  EndpointGenerator,
@@ -16,9 +16,8 @@ import {
16
16
  getSrklAccounts,
17
17
  srklListBackblazeBuckets
18
18
  } from "../chunk-XHADDA75.js";
19
- import "../chunk-4QEMALXF.js";
20
19
  import "../chunk-JCMB7BIM.js";
21
- import "../chunk-QGM4M3NI.js";
20
+ import "../chunk-4QEMALXF.js";
22
21
  export {
23
22
  CANONICAL_SRKL_URL,
24
23
  SrklClient,
@@ -28,7 +28,6 @@ import {
28
28
  exchangeGoogleDriveCode,
29
29
  refreshGoogleDriveAccessToken
30
30
  } from "../chunk-KKRWZDMN.js";
31
- import "../chunk-QGM4M3NI.js";
32
31
  export {
33
32
  BackblazeB2Adapter,
34
33
  BaseStorageAdapter,
@@ -14,7 +14,6 @@ import {
14
14
  import "../chunk-JGUWYVOL.js";
15
15
  import "../chunk-JCMB7BIM.js";
16
16
  import "../chunk-KKRWZDMN.js";
17
- import "../chunk-QGM4M3NI.js";
18
17
  export {
19
18
  RemoteWorkspaceService,
20
19
  SyncEngine,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kloks/backend",
3
- "version": "1.1.0",
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 bcryptjs --external better-sqlite3 --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",
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
  },
@@ -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.
@@ -170,9 +170,37 @@ var OPFSWorkspaceStorage = class {
170
170
  return result;
171
171
  }
172
172
  };
173
+
174
+ // src/canonicalAuthClient.ts
175
+ import {
176
+ LuthAuthClient,
177
+ createLuthAuthClient,
178
+ resolveClientOrigin,
179
+ resolveClientEnvironment
180
+ } from "@dinilmusick/gutts/auth";
181
+ import { LuthAuthError } from "@dinilmusick/gutts/auth";
182
+ import { LuthAuthClient as LuthAuthClient2 } from "@dinilmusick/gutts/auth";
183
+ import { createLuthAuthClient as createLuthAuthClient2 } from "@dinilmusick/gutts/auth";
184
+
185
+ // src/auth.ts
186
+ import {
187
+ LuthAuthClient as LuthAuthClient3,
188
+ createLuthAuthClient as createLuthAuthClient3,
189
+ hydrateLuthTokenFromUrl,
190
+ resolveClientOrigin as resolveClientOrigin2,
191
+ resolveClientEnvironment as resolveClientEnvironment2,
192
+ LuthAuthError as LuthAuthError2,
193
+ DEFAULT_LUTH_URL
194
+ } from "@dinilmusick/gutts/auth";
195
+ import {
196
+ LuthAuthClient as LuthAuthClient4,
197
+ createLuthAuthClient as createLuthAuthClient4
198
+ } from "@dinilmusick/gutts/auth";
173
199
  export {
174
200
  BrowserExecutionClient,
201
+ DEFAULT_LUTH_URL,
175
202
  OPFSWorkspaceStorage,
176
203
  WorkspaceAutosaveController,
177
- createBrowserExecutionClient
204
+ createBrowserExecutionClient,
205
+ hydrateLuthTokenFromUrl
178
206
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kloks/client",
3
- "version": "1.0.0",
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,
@@ -25,6 +25,7 @@
25
25
  "clean": "rm -rf dist"
26
26
  },
27
27
  "dependencies": {
28
+ "@dinilmusick/gutts": "^1.4.3",
28
29
  "zod": "^3.24.1"
29
30
  },
30
31
  "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/fod",
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/backend": "workspace:*",
29
- "@kloks/state-graph": "workspace:*"
28
+ "@ultrst-armada/kloks": "workspace:*"
30
29
  },
31
30
  "devDependencies": {
32
31
  "@ultrst-armada/krnl": "^1.0.9",