@ultrst-armada/kloks 2.1.1 → 2.2.0

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 (32) hide show
  1. package/package.json +3 -3
  2. package/packages/backend/dist/{chunk-6BL5DXFZ.js → chunk-CTBVXX5C.js} +1 -1
  3. package/packages/backend/dist/{chunk-3UZFKB4M.js → chunk-DMBDZHJF.js} +1 -1
  4. package/packages/backend/dist/{chunk-OT2PSPBK.js → chunk-F6CHRGJ6.js} +3 -3
  5. package/packages/backend/dist/{chunk-5UVJDX7Q.js → chunk-HJE4CVKY.js} +3 -10
  6. package/packages/backend/dist/{chunk-QYWVZBI6.js → chunk-HYSBT3MP.js} +1 -1
  7. package/packages/backend/dist/{chunk-JGR6BJVX.js → chunk-O25T5KCE.js} +1 -1
  8. package/packages/backend/dist/{chunk-5GW5PJWQ.js → chunk-PECE5QKV.js} +4 -9
  9. package/packages/backend/dist/{chunk-HRJCGJTR.js → chunk-SR3DALCH.js} +4 -4
  10. package/packages/backend/dist/{chunk-IKDYKRVH.js → chunk-T7R6Q7TZ.js} +4 -4
  11. package/packages/backend/dist/{chunk-EQFZX3JT.js → chunk-UVNKDM7N.js} +1 -1
  12. package/packages/backend/dist/{chunk-NZWCPJDJ.js → chunk-WPN3SMIT.js} +2 -2
  13. package/packages/backend/dist/{chunk-YFMHT77Z.js → chunk-X57LLCAQ.js} +2 -5
  14. package/packages/backend/dist/{chunk-NFK6YFTA.js → chunk-YZNQA3FU.js} +1 -1
  15. package/packages/backend/dist/{client-JXGCPWEA.js → client-5SGUJCV5.js} +1 -1
  16. package/packages/backend/dist/index.js +12 -12
  17. package/packages/backend/dist/node.js +13 -13
  18. package/packages/backend/dist/provider-services/google/drive.js +2 -2
  19. package/packages/backend/dist/provider-services/google/gemini.js +2 -2
  20. package/packages/backend/dist/provider-services/google/index.js +2 -2
  21. package/packages/backend/dist/provider-services/index.js +11 -11
  22. package/packages/backend/dist/provider-services/node.js +13 -13
  23. package/packages/backend/dist/provider-services/storage/backblaze-b2.js +2 -2
  24. package/packages/backend/dist/provider-services/storage/contract.d.ts +1 -1
  25. package/packages/backend/dist/provider-services/storage/dropbox.js +4 -4
  26. package/packages/backend/dist/provider-services/storage/github.js +4 -4
  27. package/packages/backend/dist/provider-services/storage/node.js +9 -9
  28. package/packages/backend/dist/provider-services/storage.js +8 -8
  29. package/packages/backend/package.json +1 -1
  30. package/packages/state-graph/dist/browser.js +24 -24
  31. package/packages/state-graph/dist/index.js +24 -24
  32. package/packages/state-graph/dist/{chunk-YUJC367F.js → chunk-UKTICGGV.js} +3 -3
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ultrst-armada/kloks",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
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",
@@ -346,7 +346,7 @@
346
346
  "verify:package-exports": "node scripts/verify-package-exports.mjs"
347
347
  },
348
348
  "dependencies": {
349
- "@dinilmusick/gutts": "^2.1.0",
349
+ "@dinilmusick/gutts": "2.2.0",
350
350
  "@webcontainer/api": "^1.6.4",
351
351
  "ws": "^8.18.0",
352
352
  "zod": "^3.24.1",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeStoragePath
3
- } from "./chunk-5UVJDX7Q.js";
3
+ } from "./chunk-HJE4CVKY.js";
4
4
  import {
5
5
  GoogleDriveWorkspaceService
6
6
  } from "./chunk-EMSSTOOK.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderClient
3
- } from "./chunk-YFMHT77Z.js";
3
+ } from "./chunk-X57LLCAQ.js";
4
4
 
5
5
  // src/provider-services/gemini.ts
6
6
  async function listGeminiModels(connection, transport = fetch) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  continueDropboxFolder,
3
3
  listDropboxFolder
4
- } from "./chunk-5GW5PJWQ.js";
4
+ } from "./chunk-PECE5QKV.js";
5
5
  import {
6
6
  normalizeStoragePath
7
- } from "./chunk-5UVJDX7Q.js";
7
+ } from "./chunk-HJE4CVKY.js";
8
8
 
9
9
  // src/provider-services/storage/dropbox.ts
10
10
  function toDropboxPath(path) {
@@ -59,7 +59,7 @@ function createDropboxStorageService(connection, transport = fetch) {
59
59
  async delete(path) {
60
60
  const target = toDropboxPath(path);
61
61
  if (!target) throw new Error("Refusing to delete the Dropbox root");
62
- const { createProviderClient } = await import("./client-JXGCPWEA.js");
62
+ const { createProviderClient } = await import("./client-5SGUJCV5.js");
63
63
  await createProviderClient(connection, transport).request({
64
64
  path: "/2/files/delete_v2",
65
65
  method: "POST",
@@ -1,4 +1,5 @@
1
1
  // src/provider-services/storage/contract.ts
2
+ import { normalizeStoragePath } from "@dinilmusick/gutts/urls/safety";
2
3
  var UnsupportedStorageOperation = class extends Error {
3
4
  constructor(providerId, operation) {
4
5
  super(`Storage provider ${providerId} does not support ${operation} through this adapter`);
@@ -14,14 +15,6 @@ function assertStorageOperation(service, operation) {
14
15
  if (!service.capabilities[operation])
15
16
  throw new UnsupportedStorageOperation(service.providerId, operation);
16
17
  }
17
- function normalizeStoragePath(path = "") {
18
- if (path.includes("\\") || path.includes("?") || path.includes("#") || /[\x00-\x1f]/.test(path))
19
- throw new Error("Invalid storage path");
20
- const parts = path.replace(/^\/+|\/+$/g, "").split("/").filter(Boolean);
21
- if (parts.some((p) => p === "." || p === ".." || p === "%2e" || p === "%2e%2e"))
22
- throw new Error("Storage path traversal is not permitted");
23
- return parts.join("/");
24
- }
25
18
  function readOnlyService(id) {
26
19
  return {
27
20
  read: async () => {
@@ -39,6 +32,6 @@ function readOnlyService(id) {
39
32
  export {
40
33
  UnsupportedStorageOperation,
41
34
  assertStorageOperation,
42
- normalizeStoragePath,
43
- readOnlyService
35
+ readOnlyService,
36
+ normalizeStoragePath
44
37
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCanonicalStorageService
3
- } from "./chunk-IKDYKRVH.js";
3
+ } from "./chunk-T7R6Q7TZ.js";
4
4
 
5
5
  // src/provider-services/storage-node.ts
6
6
  import { createService, createServiceDefinition } from "@ultrst-armada/krnl";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  UnsupportedStorageOperation,
3
3
  normalizeStoragePath
4
- } from "./chunk-5UVJDX7Q.js";
4
+ } from "./chunk-HJE4CVKY.js";
5
5
  import {
6
6
  b2DownloadFile,
7
7
  b2ListBuckets,
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  createProviderClient
3
- } from "./chunk-YFMHT77Z.js";
3
+ } from "./chunk-X57LLCAQ.js";
4
4
  import {
5
5
  resolveProviderServiceId
6
6
  } from "./chunk-FKK23J2A.js";
7
7
 
8
8
  // src/provider-services/storage-providers.ts
9
+ import { encodeSafePathSegments } from "@dinilmusick/gutts/urls/safety";
9
10
  function serviceConnection(connection, provider) {
10
11
  if (resolveProviderServiceId(connection.providerId) !== provider)
11
12
  throw new Error("Credential provider does not match the requested service");
@@ -16,12 +17,6 @@ function githubName(value) {
16
17
  throw new Error("Invalid GitHub repository owner or name");
17
18
  return value;
18
19
  }
19
- function safeRepositoryPath(path) {
20
- const parts = path.split("/");
21
- if (parts.some((part) => part === "" || part === "." || part === ".."))
22
- throw new Error("Invalid repository path");
23
- return parts.map(encodeURIComponent).join("/");
24
- }
25
20
  async function listGitHubRepositories(connection, transport = fetch, page = 1) {
26
21
  if (!Number.isSafeInteger(page) || page < 1 || page > 1e4)
27
22
  throw new Error("Invalid GitHub repositories page");
@@ -37,7 +32,7 @@ async function listGitHubRepositories(connection, transport = fetch, page = 1) {
37
32
  return data;
38
33
  }
39
34
  async function listGitHubRepositoryContents(connection, owner, repo, path = "", transport = fetch) {
40
- const suffix = path ? "/" + safeRepositoryPath(path) : "";
35
+ const suffix = path ? "/" + encodeSafePathSegments(path) : "";
41
36
  const { data } = await createProviderClient(serviceConnection(connection, "github"), transport).request({
42
37
  path: `/repos/${githubName(owner)}/${githubName(repo)}/contents${suffix}`
43
38
  });
@@ -54,7 +49,7 @@ async function listGitLabProjects(connection, transport = fetch) {
54
49
  async function listGitLabRepositoryTree(connection, project, path = "", transport = fetch) {
55
50
  const key = String(project).trim();
56
51
  if (!key || key.includes("?") || key.includes("#")) throw new Error("GitLab project required");
57
- if (path) safeRepositoryPath(path);
52
+ if (path) encodeSafePathSegments(path);
58
53
  const { data } = await createProviderClient(serviceConnection(connection, "gitlab"), transport).request({
59
54
  path: `/api/v4/projects/${encodeURIComponent(key)}/repository/tree`,
60
55
  query: { per_page: 100, ...path ? { path } : {} }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  fetchCloudflareCapacity,
3
3
  fetchVercelCapacity
4
- } from "./chunk-NFK6YFTA.js";
4
+ } from "./chunk-YZNQA3FU.js";
5
5
  import {
6
6
  getGeminiQuotaStatus,
7
7
  listGeminiModels
8
- } from "./chunk-3UZFKB4M.js";
8
+ } from "./chunk-DMBDZHJF.js";
9
9
  import {
10
10
  getGoogleAccountProfile,
11
11
  listCloudflareAccounts,
@@ -13,7 +13,7 @@ import {
13
13
  listCloudflareWorkers,
14
14
  listVercelDeployments,
15
15
  listVercelProjects
16
- } from "./chunk-EQFZX3JT.js";
16
+ } from "./chunk-UVNKDM7N.js";
17
17
  import {
18
18
  continueDropboxFolder,
19
19
  listDropboxFolder,
@@ -21,7 +21,7 @@ import {
21
21
  listGitHubRepositoryContents,
22
22
  listGitLabProjects,
23
23
  listGitLabRepositoryTree
24
- } from "./chunk-5GW5PJWQ.js";
24
+ } from "./chunk-PECE5QKV.js";
25
25
  import {
26
26
  b2ListBuckets,
27
27
  b2ListFileNames
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createDropboxStorageService
3
- } from "./chunk-OT2PSPBK.js";
3
+ } from "./chunk-F6CHRGJ6.js";
4
4
  import {
5
5
  createGitHubStorageService
6
- } from "./chunk-NZWCPJDJ.js";
6
+ } from "./chunk-WPN3SMIT.js";
7
7
  import {
8
8
  createGoogleDriveStorageService
9
- } from "./chunk-6BL5DXFZ.js";
9
+ } from "./chunk-CTBVXX5C.js";
10
10
  import {
11
11
  createBackblazeB2StorageService
12
- } from "./chunk-JGR6BJVX.js";
12
+ } from "./chunk-O25T5KCE.js";
13
13
 
14
14
  // src/provider-services/storage/service.ts
15
15
  var CONTRACTS = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderClient
3
- } from "./chunk-YFMHT77Z.js";
3
+ } from "./chunk-X57LLCAQ.js";
4
4
 
5
5
  // src/provider-services/operations.ts
6
6
  async function cfGet(connection, path, transport = fetch) {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  listGitHubRepositories,
3
3
  listGitHubRepositoryContents
4
- } from "./chunk-5GW5PJWQ.js";
4
+ } from "./chunk-PECE5QKV.js";
5
5
  import {
6
6
  UnsupportedStorageOperation,
7
7
  normalizeStoragePath
8
- } from "./chunk-5UVJDX7Q.js";
8
+ } from "./chunk-HJE4CVKY.js";
9
9
 
10
10
  // src/provider-services/storage/github.ts
11
11
  function splitRepo(path) {
@@ -4,6 +4,7 @@ import {
4
4
  } from "./chunk-FKK23J2A.js";
5
5
 
6
6
  // src/provider-services/client.ts
7
+ import { resolveTrustedApiUrl } from "@dinilmusick/gutts/urls/safety";
7
8
  var origins = {
8
9
  cloudflare: "https://api.cloudflare.com",
9
10
  vercel: "https://api.vercel.com",
@@ -23,11 +24,7 @@ function createProviderClient(connection, transport = fetch) {
23
24
  if (!connection.accountId || !connection.credential?.trim())
24
25
  throw new Error("A vault account and credential are required");
25
26
  async function request(options) {
26
- if (!options.path.startsWith("/") || options.path.startsWith("//") || options.path.includes("\\") || options.path.includes("#"))
27
- throw new Error("Only provider-relative API paths are permitted");
28
- const target = new URL(options.path, origin);
29
- if (target.origin !== origin || /(?:^|\/)\.\.(?:\/|$)/.test(decodeURIComponent(target.pathname)))
30
- throw new Error("Provider URL crossed the allowed origin");
27
+ const target = resolveTrustedApiUrl(origin, options.path);
31
28
  for (const [key, value] of Object.entries(options.query || {}))
32
29
  target.searchParams.set(key, String(value));
33
30
  const headers = { Accept: "application/json" };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderClient
3
- } from "./chunk-YFMHT77Z.js";
3
+ } from "./chunk-X57LLCAQ.js";
4
4
 
5
5
  // src/provider-services/cloudflare.ts
6
6
  var QUERY = `query WorkersToday($account: string, $start: string, $end: string) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderClient
3
- } from "./chunk-YFMHT77Z.js";
3
+ } from "./chunk-X57LLCAQ.js";
4
4
  import "./chunk-FKK23J2A.js";
5
5
  export {
6
6
  createProviderClient
@@ -1,6 +1,6 @@
1
- import "./chunk-GVMVYC6C.js";
2
1
  import "./chunk-2Y2EXYDK.js";
3
2
  import "./chunk-RABSY2JU.js";
3
+ import "./chunk-GVMVYC6C.js";
4
4
  import {
5
5
  calculateProviderCapacity
6
6
  } from "./chunk-5SXOQAAX.js";
@@ -19,11 +19,11 @@ import {
19
19
  import {
20
20
  fetchCloudflareCapacity,
21
21
  fetchVercelCapacity
22
- } from "./chunk-NFK6YFTA.js";
22
+ } from "./chunk-YZNQA3FU.js";
23
23
  import {
24
24
  getGeminiQuotaStatus,
25
25
  listGeminiModels
26
- } from "./chunk-3UZFKB4M.js";
26
+ } from "./chunk-DMBDZHJF.js";
27
27
  import {
28
28
  getGoogleAccountProfile,
29
29
  listCloudflareAccounts,
@@ -31,18 +31,18 @@ import {
31
31
  listCloudflareWorkers,
32
32
  listVercelDeployments,
33
33
  listVercelProjects
34
- } from "./chunk-EQFZX3JT.js";
34
+ } from "./chunk-UVNKDM7N.js";
35
35
  import {
36
36
  createCanonicalStorageService,
37
37
  getCanonicalStorageCapabilities,
38
38
  listCanonicalStorageProviders
39
- } from "./chunk-IKDYKRVH.js";
39
+ } from "./chunk-T7R6Q7TZ.js";
40
40
  import {
41
41
  createDropboxStorageService
42
- } from "./chunk-OT2PSPBK.js";
42
+ } from "./chunk-F6CHRGJ6.js";
43
43
  import {
44
44
  createGitHubStorageService
45
- } from "./chunk-NZWCPJDJ.js";
45
+ } from "./chunk-WPN3SMIT.js";
46
46
  import {
47
47
  continueDropboxFolder,
48
48
  listDropboxFolder,
@@ -50,13 +50,13 @@ import {
50
50
  listGitHubRepositoryContents,
51
51
  listGitLabProjects,
52
52
  listGitLabRepositoryTree
53
- } from "./chunk-5GW5PJWQ.js";
53
+ } from "./chunk-PECE5QKV.js";
54
54
  import {
55
55
  createGoogleDriveStorageService
56
- } from "./chunk-6BL5DXFZ.js";
56
+ } from "./chunk-CTBVXX5C.js";
57
57
  import {
58
58
  createProviderClient
59
- } from "./chunk-YFMHT77Z.js";
59
+ } from "./chunk-X57LLCAQ.js";
60
60
  import {
61
61
  getProviderService,
62
62
  getProviderServicePath,
@@ -68,13 +68,13 @@ import {
68
68
  } from "./chunk-FKK23J2A.js";
69
69
  import {
70
70
  createBackblazeB2StorageService
71
- } from "./chunk-JGR6BJVX.js";
71
+ } from "./chunk-O25T5KCE.js";
72
72
  import {
73
73
  UnsupportedStorageOperation,
74
74
  assertStorageOperation,
75
75
  normalizeStoragePath,
76
76
  readOnlyService
77
- } from "./chunk-5UVJDX7Q.js";
77
+ } from "./chunk-HJE4CVKY.js";
78
78
  import {
79
79
  BaseApiRoute,
80
80
  createSSEResponse,
@@ -72,10 +72,10 @@ import {
72
72
  GoogleAccountProviderService,
73
73
  GoogleDriveProviderService,
74
74
  VercelProviderService
75
- } from "./chunk-HRJCGJTR.js";
75
+ } from "./chunk-SR3DALCH.js";
76
76
  import {
77
77
  CanonicalStorageProviderService
78
- } from "./chunk-QYWVZBI6.js";
78
+ } from "./chunk-HYSBT3MP.js";
79
79
  import "./chunk-LV55WKZR.js";
80
80
  import "./chunk-WVDSMTW3.js";
81
81
  import {
@@ -108,18 +108,18 @@ import {
108
108
  import {
109
109
  WorkspaceCloneSyncEngine
110
110
  } from "./chunk-CDRHYO44.js";
111
- import "./chunk-NFK6YFTA.js";
112
- import "./chunk-3UZFKB4M.js";
113
- import "./chunk-EQFZX3JT.js";
114
- import "./chunk-IKDYKRVH.js";
115
- import "./chunk-OT2PSPBK.js";
116
- import "./chunk-NZWCPJDJ.js";
117
- import "./chunk-5GW5PJWQ.js";
118
- import "./chunk-6BL5DXFZ.js";
119
- import "./chunk-YFMHT77Z.js";
111
+ import "./chunk-YZNQA3FU.js";
112
+ import "./chunk-DMBDZHJF.js";
113
+ import "./chunk-UVNKDM7N.js";
114
+ import "./chunk-T7R6Q7TZ.js";
115
+ import "./chunk-F6CHRGJ6.js";
116
+ import "./chunk-WPN3SMIT.js";
117
+ import "./chunk-PECE5QKV.js";
118
+ import "./chunk-CTBVXX5C.js";
119
+ import "./chunk-X57LLCAQ.js";
120
120
  import "./chunk-FKK23J2A.js";
121
- import "./chunk-JGR6BJVX.js";
122
- import "./chunk-5UVJDX7Q.js";
121
+ import "./chunk-O25T5KCE.js";
122
+ import "./chunk-HJE4CVKY.js";
123
123
  import {
124
124
  BaseApiRoute,
125
125
  createSSEResponse,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createGoogleDriveStorageService
3
- } from "../../chunk-6BL5DXFZ.js";
3
+ } from "../../chunk-CTBVXX5C.js";
4
4
  import {
5
5
  getProviderService
6
6
  } from "../../chunk-FKK23J2A.js";
7
- import "../../chunk-5UVJDX7Q.js";
7
+ import "../../chunk-HJE4CVKY.js";
8
8
  import {
9
9
  GOOGLE_DRIVE_WORKSPACE_SCOPE,
10
10
  GoogleDriveWorkspaceService
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getGeminiQuotaStatus,
3
3
  listGeminiModels
4
- } from "../../chunk-3UZFKB4M.js";
5
- import "../../chunk-YFMHT77Z.js";
4
+ } from "../../chunk-DMBDZHJF.js";
5
+ import "../../chunk-X57LLCAQ.js";
6
6
  import "../../chunk-FKK23J2A.js";
7
7
  export {
8
8
  getGeminiQuotaStatus,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getGoogleAccountProfile
3
- } from "../../chunk-EQFZX3JT.js";
4
- import "../../chunk-YFMHT77Z.js";
3
+ } from "../../chunk-UVNKDM7N.js";
4
+ import "../../chunk-X57LLCAQ.js";
5
5
  import {
6
6
  getProviderService,
7
7
  listProviderServiceChildren
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  fetchCloudflareCapacity,
6
6
  fetchVercelCapacity
7
- } from "../chunk-NFK6YFTA.js";
7
+ } from "../chunk-YZNQA3FU.js";
8
8
  import {
9
9
  getGeminiQuotaStatus,
10
10
  listGeminiModels
11
- } from "../chunk-3UZFKB4M.js";
11
+ } from "../chunk-DMBDZHJF.js";
12
12
  import {
13
13
  getGoogleAccountProfile,
14
14
  listCloudflareAccounts,
@@ -16,18 +16,18 @@ import {
16
16
  listCloudflareWorkers,
17
17
  listVercelDeployments,
18
18
  listVercelProjects
19
- } from "../chunk-EQFZX3JT.js";
19
+ } from "../chunk-UVNKDM7N.js";
20
20
  import {
21
21
  createCanonicalStorageService,
22
22
  getCanonicalStorageCapabilities,
23
23
  listCanonicalStorageProviders
24
- } from "../chunk-IKDYKRVH.js";
24
+ } from "../chunk-T7R6Q7TZ.js";
25
25
  import {
26
26
  createDropboxStorageService
27
- } from "../chunk-OT2PSPBK.js";
27
+ } from "../chunk-F6CHRGJ6.js";
28
28
  import {
29
29
  createGitHubStorageService
30
- } from "../chunk-NZWCPJDJ.js";
30
+ } from "../chunk-WPN3SMIT.js";
31
31
  import {
32
32
  continueDropboxFolder,
33
33
  listDropboxFolder,
@@ -35,13 +35,13 @@ import {
35
35
  listGitHubRepositoryContents,
36
36
  listGitLabProjects,
37
37
  listGitLabRepositoryTree
38
- } from "../chunk-5GW5PJWQ.js";
38
+ } from "../chunk-PECE5QKV.js";
39
39
  import {
40
40
  createGoogleDriveStorageService
41
- } from "../chunk-6BL5DXFZ.js";
41
+ } from "../chunk-CTBVXX5C.js";
42
42
  import {
43
43
  createProviderClient
44
- } from "../chunk-YFMHT77Z.js";
44
+ } from "../chunk-X57LLCAQ.js";
45
45
  import {
46
46
  getProviderService,
47
47
  getProviderServicePath,
@@ -53,13 +53,13 @@ import {
53
53
  } from "../chunk-FKK23J2A.js";
54
54
  import {
55
55
  createBackblazeB2StorageService
56
- } from "../chunk-JGR6BJVX.js";
56
+ } from "../chunk-O25T5KCE.js";
57
57
  import {
58
58
  UnsupportedStorageOperation,
59
59
  assertStorageOperation,
60
60
  normalizeStoragePath,
61
61
  readOnlyService
62
- } from "../chunk-5UVJDX7Q.js";
62
+ } from "../chunk-HJE4CVKY.js";
63
63
  import {
64
64
  authorizeB2,
65
65
  b2DownloadFile,
@@ -8,22 +8,22 @@ import {
8
8
  GoogleAccountProviderService,
9
9
  GoogleDriveProviderService,
10
10
  VercelProviderService
11
- } from "../chunk-HRJCGJTR.js";
11
+ } from "../chunk-SR3DALCH.js";
12
12
  import {
13
13
  CanonicalStorageProviderService
14
- } from "../chunk-QYWVZBI6.js";
15
- import "../chunk-NFK6YFTA.js";
16
- import "../chunk-3UZFKB4M.js";
17
- import "../chunk-EQFZX3JT.js";
18
- import "../chunk-IKDYKRVH.js";
19
- import "../chunk-OT2PSPBK.js";
20
- import "../chunk-NZWCPJDJ.js";
21
- import "../chunk-5GW5PJWQ.js";
22
- import "../chunk-6BL5DXFZ.js";
23
- import "../chunk-YFMHT77Z.js";
14
+ } from "../chunk-HYSBT3MP.js";
15
+ import "../chunk-YZNQA3FU.js";
16
+ import "../chunk-DMBDZHJF.js";
17
+ import "../chunk-UVNKDM7N.js";
18
+ import "../chunk-T7R6Q7TZ.js";
19
+ import "../chunk-F6CHRGJ6.js";
20
+ import "../chunk-WPN3SMIT.js";
21
+ import "../chunk-PECE5QKV.js";
22
+ import "../chunk-CTBVXX5C.js";
23
+ import "../chunk-X57LLCAQ.js";
24
24
  import "../chunk-FKK23J2A.js";
25
- import "../chunk-JGR6BJVX.js";
26
- import "../chunk-5UVJDX7Q.js";
25
+ import "../chunk-O25T5KCE.js";
26
+ import "../chunk-HJE4CVKY.js";
27
27
  import "../chunk-I6T64MLT.js";
28
28
  import "../chunk-EMSSTOOK.js";
29
29
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createBackblazeB2StorageService
3
- } from "../../chunk-JGR6BJVX.js";
4
- import "../../chunk-5UVJDX7Q.js";
3
+ } from "../../chunk-O25T5KCE.js";
4
+ import "../../chunk-HJE4CVKY.js";
5
5
  import "../../chunk-I6T64MLT.js";
6
6
  export {
7
7
  createBackblazeB2StorageService
@@ -1,3 +1,4 @@
1
+ export { normalizeStoragePath } from '@dinilmusick/gutts/urls/safety';
1
2
  /** Provider-neutral storage APIs. Credential and tenant authorization remain caller-owned. */
2
3
  export type StorageProviderId = 'github' | 'backblaze-b2' | 'dropbox' | 'google-drive';
3
4
  export type StorageKind = 'bucket' | 'repository' | 'folder' | 'file';
@@ -37,7 +38,6 @@ export declare class UnsupportedStorageOperation extends Error {
37
38
  }
38
39
  /** Check capability before performing an operation; no stubs or false support. */
39
40
  export declare function assertStorageOperation(service: CanonicalStorageService, operation: StorageOperation): void;
40
- export declare function normalizeStoragePath(path?: string): string;
41
41
  export declare function readOnlyService(id: StorageProviderId): {
42
42
  read: (path: string) => Promise<Uint8Array>;
43
43
  write: (path: string, content: Uint8Array | string) => Promise<void>;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createDropboxStorageService
3
- } from "../../chunk-OT2PSPBK.js";
4
- import "../../chunk-5GW5PJWQ.js";
5
- import "../../chunk-YFMHT77Z.js";
3
+ } from "../../chunk-F6CHRGJ6.js";
4
+ import "../../chunk-PECE5QKV.js";
5
+ import "../../chunk-X57LLCAQ.js";
6
6
  import "../../chunk-FKK23J2A.js";
7
- import "../../chunk-5UVJDX7Q.js";
7
+ import "../../chunk-HJE4CVKY.js";
8
8
  import "../../chunk-I6T64MLT.js";
9
9
  import "../../chunk-EMSSTOOK.js";
10
10
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createGitHubStorageService
3
- } from "../../chunk-NZWCPJDJ.js";
4
- import "../../chunk-5GW5PJWQ.js";
5
- import "../../chunk-YFMHT77Z.js";
3
+ } from "../../chunk-WPN3SMIT.js";
4
+ import "../../chunk-PECE5QKV.js";
5
+ import "../../chunk-X57LLCAQ.js";
6
6
  import "../../chunk-FKK23J2A.js";
7
- import "../../chunk-5UVJDX7Q.js";
7
+ import "../../chunk-HJE4CVKY.js";
8
8
  import "../../chunk-I6T64MLT.js";
9
9
  import "../../chunk-EMSSTOOK.js";
10
10
  export {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  CanonicalStorageProviderService
3
- } from "../../chunk-QYWVZBI6.js";
4
- import "../../chunk-IKDYKRVH.js";
5
- import "../../chunk-OT2PSPBK.js";
6
- import "../../chunk-NZWCPJDJ.js";
7
- import "../../chunk-5GW5PJWQ.js";
8
- import "../../chunk-6BL5DXFZ.js";
9
- import "../../chunk-YFMHT77Z.js";
3
+ } from "../../chunk-HYSBT3MP.js";
4
+ import "../../chunk-T7R6Q7TZ.js";
5
+ import "../../chunk-F6CHRGJ6.js";
6
+ import "../../chunk-WPN3SMIT.js";
7
+ import "../../chunk-PECE5QKV.js";
8
+ import "../../chunk-CTBVXX5C.js";
9
+ import "../../chunk-X57LLCAQ.js";
10
10
  import "../../chunk-FKK23J2A.js";
11
- import "../../chunk-JGR6BJVX.js";
12
- import "../../chunk-5UVJDX7Q.js";
11
+ import "../../chunk-O25T5KCE.js";
12
+ import "../../chunk-HJE4CVKY.js";
13
13
  import "../../chunk-I6T64MLT.js";
14
14
  import "../../chunk-EMSSTOOK.js";
15
15
  export {
@@ -2,20 +2,20 @@ import {
2
2
  createCanonicalStorageService,
3
3
  getCanonicalStorageCapabilities,
4
4
  listCanonicalStorageProviders
5
- } from "../chunk-IKDYKRVH.js";
6
- import "../chunk-OT2PSPBK.js";
7
- import "../chunk-NZWCPJDJ.js";
8
- import "../chunk-5GW5PJWQ.js";
9
- import "../chunk-6BL5DXFZ.js";
10
- import "../chunk-YFMHT77Z.js";
5
+ } from "../chunk-T7R6Q7TZ.js";
6
+ import "../chunk-F6CHRGJ6.js";
7
+ import "../chunk-WPN3SMIT.js";
8
+ import "../chunk-PECE5QKV.js";
9
+ import "../chunk-CTBVXX5C.js";
10
+ import "../chunk-X57LLCAQ.js";
11
11
  import "../chunk-FKK23J2A.js";
12
- import "../chunk-JGR6BJVX.js";
12
+ import "../chunk-O25T5KCE.js";
13
13
  import {
14
14
  UnsupportedStorageOperation,
15
15
  assertStorageOperation,
16
16
  normalizeStoragePath,
17
17
  readOnlyService
18
- } from "../chunk-5UVJDX7Q.js";
18
+ } from "../chunk-HJE4CVKY.js";
19
19
  import "../chunk-I6T64MLT.js";
20
20
  import "../chunk-EMSSTOOK.js";
21
21
  export {
@@ -220,7 +220,7 @@
220
220
  "clean": "rm -rf dist"
221
221
  },
222
222
  "dependencies": {
223
- "@dinilmusick/gutts": "^2.1.0",
223
+ "@dinilmusick/gutts": "2.2.0",
224
224
  "@kloks/functions": "workspace:*",
225
225
  "@kloks/state-graph": "workspace:*",
226
226
  "@webcontainer/api": "^1.6.4",
@@ -252,7 +252,7 @@ import {
252
252
  validateProjectGraph,
253
253
  validateUniversalConnection,
254
254
  zoomAtPoint
255
- } from "./chunk-YUJC367F.js";
255
+ } from "./chunk-UKTICGGV.js";
256
256
  import {
257
257
  BaseHandle,
258
258
  DataHandle,
@@ -262,6 +262,29 @@ import {
262
262
  instantiateSubgraph
263
263
  } from "./chunk-OXUDG6HE.js";
264
264
  import "./chunk-RHRXPY2U.js";
265
+ import {
266
+ CommandApi,
267
+ GhostStore,
268
+ GraphStore
269
+ } from "./chunk-LVULR5M4.js";
270
+ import {
271
+ BaseGraph,
272
+ BaseNode,
273
+ BaseViewWindow,
274
+ CustomGraph,
275
+ CustomNode,
276
+ CustomViewWindow,
277
+ DEFAULT_GRAPH_SETTINGS
278
+ } from "./chunk-5KP74NMF.js";
279
+ import {
280
+ LifecycleCycleError,
281
+ LifecycleGraph,
282
+ SKIPO_STATE,
283
+ SkipoStateEngine,
284
+ useLifecycleScope,
285
+ useSkipoBind,
286
+ useSkipoState
287
+ } from "./chunk-EW4ACSZB.js";
265
288
  import {
266
289
  AttractionEngine,
267
290
  GhostInferenceEngine,
@@ -277,20 +300,6 @@ import {
277
300
  WireTypeRegistry,
278
301
  initializeDefaultGraphRules
279
302
  } 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";
294
303
  import {
295
304
  AutoSolidify,
296
305
  SpatialEngine,
@@ -304,15 +313,6 @@ import {
304
313
  import {
305
314
  CompatibilityMatrix
306
315
  } 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-YUJC367F.js";
255
+ } from "./chunk-UKTICGGV.js";
256
256
  import {
257
257
  BaseHandle,
258
258
  DataHandle,
@@ -262,6 +262,29 @@ import {
262
262
  instantiateSubgraph
263
263
  } from "./chunk-OXUDG6HE.js";
264
264
  import "./chunk-RHRXPY2U.js";
265
+ import {
266
+ CommandApi,
267
+ GhostStore,
268
+ GraphStore
269
+ } from "./chunk-LVULR5M4.js";
270
+ import {
271
+ BaseGraph,
272
+ BaseNode,
273
+ BaseViewWindow,
274
+ CustomGraph,
275
+ CustomNode,
276
+ CustomViewWindow,
277
+ DEFAULT_GRAPH_SETTINGS
278
+ } from "./chunk-5KP74NMF.js";
279
+ import {
280
+ LifecycleCycleError,
281
+ LifecycleGraph,
282
+ SKIPO_STATE,
283
+ SkipoStateEngine,
284
+ useLifecycleScope,
285
+ useSkipoBind,
286
+ useSkipoState
287
+ } from "./chunk-EW4ACSZB.js";
265
288
  import {
266
289
  AttractionEngine,
267
290
  GhostInferenceEngine,
@@ -277,20 +300,6 @@ import {
277
300
  WireTypeRegistry,
278
301
  initializeDefaultGraphRules
279
302
  } 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";
294
303
  import {
295
304
  AutoSolidify,
296
305
  SpatialEngine,
@@ -304,15 +313,6 @@ import {
304
313
  import {
305
314
  CompatibilityMatrix
306
315
  } 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,6 +1,9 @@
1
1
  import {
2
2
  DataHandle
3
3
  } from "./chunk-OXUDG6HE.js";
4
+ import {
5
+ BaseNode
6
+ } from "./chunk-5KP74NMF.js";
4
7
  import {
5
8
  AttractionEngine
6
9
  } from "./chunk-JXDJZSFW.js";
@@ -8,9 +11,6 @@ import {
8
11
  HandleTypeRegistry,
9
12
  WireTypeRegistry
10
13
  } from "./chunk-TZOL3RN7.js";
11
- import {
12
- BaseNode
13
- } from "./chunk-5KP74NMF.js";
14
14
  import {
15
15
  AutoSolidify,
16
16
  TraceEngine