@ultrst-armada/kloks 1.4.4 → 1.4.6

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/README.md CHANGED
@@ -1,2 +1,3 @@
1
1
  # Kloks
2
- Kloks stands for KrnlTS BLOcKS. So this will be a libraries repository that will be used to store and get ready to use KrnlTS services and their component (entities, functionalities and concept libraries) assets. These make assembling KrnlTS services like modular blocks based construction.
2
+
3
+ Kloks stands for KrnlTS BLOcKS. It is the reusable library layer for services built on KrnlTS, including service definitions, functionalities, functionality orchestrations, and concept libraries. These assets make assembling KrnlTS services similar to building with modular blocks.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ultrst-armada/kloks",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/"
8
8
  },
9
- "description": "Kloks \u2014 Public Backend, State-Graph, Audio/MIDI & Service Package Library built on KrnlTS (@kloks/*)",
9
+ "description": "Kloks — Public Backend, State-Graph, Audio/MIDI & Service Package Library built on KrnlTS (@kloks/*)",
10
10
  "type": "module",
11
11
  "main": "./index.js",
12
12
  "module": "./index.js",
@@ -12,7 +12,7 @@ import {
12
12
  readWorkspaceFile,
13
13
  updateWorkspace,
14
14
  writeWorkspaceFile
15
- } from "./chunk-JXUSBKJ2.js";
15
+ } from "./chunk-ZO3PZGNQ.js";
16
16
 
17
17
  // src/workspace/WorkspaceFS.ts
18
18
  import { SkipoBase } from "@ultrst-armada/kloks/functions";
@@ -10,7 +10,7 @@ function sanitizeWorkspaceName(name) {
10
10
  }
11
11
 
12
12
  // src/core/unifiedDb.ts
13
- import { neon } from "@neondatabase/serverless";
13
+ var neon;
14
14
  function cleanDbUrl(url) {
15
15
  if (!url || typeof url !== "string") return "";
16
16
  return url.trim().replace(/^["']|["']$/g, "");
@@ -28,6 +28,10 @@ async function queryUnifiedDb(sqlText, params = [], env) {
28
28
  if (!dbUrl) {
29
29
  throw new Error("[UnifiedDB] No database URL configured in environment.");
30
30
  }
31
+ if (!neon) {
32
+ const mod = await import("@neondatabase/serverless");
33
+ neon = mod.neon;
34
+ }
31
35
  const sql = neon(dbUrl);
32
36
  try {
33
37
  const rows = await (sql.query ? sql.query(sqlText, params) : sql(sqlText, params));
@@ -17,7 +17,7 @@ import {
17
17
  queryUnifiedDb,
18
18
  sanitizeWorkspaceName,
19
19
  updateWorkspace
20
- } from "./chunk-JXUSBKJ2.js";
20
+ } from "./chunk-ZO3PZGNQ.js";
21
21
  import {
22
22
  RateLimiter,
23
23
  SessionManager,
@@ -27,7 +27,7 @@ import {
27
27
  setWorkingWorkspaceConfig,
28
28
  syncWorkspace,
29
29
  workingWorkspaceService
30
- } from "./chunk-5336MTXD.js";
30
+ } from "./chunk-DULUHQ5S.js";
31
31
  import {
32
32
  AuthServiceDefinition,
33
33
  AuthServiceFacade,
@@ -57,7 +57,7 @@ import {
57
57
  krnlStorageServiceFacade,
58
58
  krnlWorkspaceServiceDefinition,
59
59
  krnlWorkspaceServiceFacade
60
- } from "./chunk-KI3LHMUN.js";
60
+ } from "./chunk-ZRYACED2.js";
61
61
  import {
62
62
  getPrimarySrklDeploymentUrl,
63
63
  getSrklAccounts,
@@ -115,7 +115,7 @@ import {
115
115
  syncWorkspaceDeleteToBucket,
116
116
  updateWorkspace,
117
117
  writeWorkspaceFile
118
- } from "./chunk-JXUSBKJ2.js";
118
+ } from "./chunk-ZO3PZGNQ.js";
119
119
  import {
120
120
  BaseApiRoute,
121
121
  createSSEResponse,
@@ -27,11 +27,11 @@ import {
27
27
  krnlStorageServiceFacade,
28
28
  krnlWorkspaceServiceDefinition,
29
29
  krnlWorkspaceServiceFacade
30
- } from "./chunk-KI3LHMUN.js";
30
+ } from "./chunk-ZRYACED2.js";
31
31
  import "./chunk-VDROUXFT.js";
32
32
  import "./chunk-J2J24JVC.js";
33
33
  import "./chunk-4QEMALXF.js";
34
- import "./chunk-JXUSBKJ2.js";
34
+ import "./chunk-ZO3PZGNQ.js";
35
35
  import "./chunk-ZDH4XI7W.js";
36
36
  import "./chunk-TY32TUNI.js";
37
37
  export {
@@ -6,11 +6,11 @@ import {
6
6
  WorkspaceFS,
7
7
  remoteWorkspaceService,
8
8
  workingWorkspaceService
9
- } from "../chunk-5336MTXD.js";
9
+ } from "../chunk-DULUHQ5S.js";
10
10
  import {
11
11
  formatCanonicalWorkspaceFolderName,
12
12
  sanitizeWorkspaceName
13
- } from "../chunk-JXUSBKJ2.js";
13
+ } from "../chunk-ZO3PZGNQ.js";
14
14
  export {
15
15
  RemoteWorkspaceService,
16
16
  SyncEngine,