@ultrst-armada/kloks 1.24.9 → 1.25.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "packageName": "@ultrst-armada/kloks",
4
- "version": "1.24.9",
5
- "sourceCommit": "2c99e2a0cb282fdd6bfcb2c2be9e84f1f239ffe9",
4
+ "version": "1.25.0",
5
+ "sourceCommit": "06b060da4edadee7e3ffe2fd79e503d675c2da5b",
6
6
  "releaseWorkflow": "npm Release",
7
- "workflowRunId": "41843163999"
7
+ "workflowRunId": "41989086753"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/kloks",
3
- "version": "1.24.9",
3
+ "version": "1.25.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -192,7 +192,7 @@
192
192
  "clean": "pnpm -r run clean"
193
193
  },
194
194
  "dependencies": {
195
- "@dinilmusick/gutts": "^1.4.3",
195
+ "@dinilmusick/gutts": "^1.4.4",
196
196
  "@aws-sdk/client-s3": "^3.600.0",
197
197
  "@webcontainer/api": "^1.6.4",
198
198
  "ws": "^8.18.0",
@@ -202,7 +202,7 @@
202
202
  "peerDependencies": {
203
203
  "@neondatabase/serverless": "^0.10.0 || ^1.0.0",
204
204
  "@supabase/supabase-js": "^2.45.0",
205
- "@ultrst-armada/krnl": "^1.0.9",
205
+ "@ultrst-armada/krnl": "^1.0.11",
206
206
  "react": "^18.0.0 || ^19.0.0"
207
207
  },
208
208
  "peerDependenciesMeta": {
@@ -226,7 +226,7 @@
226
226
  "@supabase/supabase-js": "^2.45.0",
227
227
  "@types/node": "^22.0.0",
228
228
  "@types/react": "^19.0.0",
229
- "@ultrst-armada/krnl": "^1.0.9",
229
+ "@ultrst-armada/krnl": "^1.0.11",
230
230
  "playwright": "^1.64.1",
231
231
  "react": "^19.0.1",
232
232
  "tsup": "^8.4.0",
@@ -41,7 +41,7 @@ import "./chunk-QGM4M3NI.js";
41
41
  // ../../node_modules/.pnpm/@ultrst-armada+krnl@1.0.9_@types+node@22.20.5/node_modules/@ultrst-armada/krnl/packages/core/dist/index.js
42
42
  import { randomUUID } from "crypto";
43
43
 
44
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
44
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
45
45
  function defineApi(definition) {
46
46
  const properties = Object.fromEntries(definition.parameters.map((parameter) => [
47
47
  parameter.name,
@@ -62,7 +62,7 @@ function defineApi(definition) {
62
62
  });
63
63
  }
64
64
 
65
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
65
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
66
66
  var array = { type: "array" };
67
67
  var integer = { type: "integer" };
68
68
  var arrayApis = [
@@ -73,7 +73,7 @@ var arrayApis = [
73
73
  defineApi({ id: "gutts.arrays.last", name: "last", category: "arrays", description: "Returns the final element of an array, or undefined when the array is empty.", parameters: [{ name: "values", description: "The array whose final element should be returned.", required: true, schema: array }], output: { description: "The final array element, or undefined for an empty array." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
74
74
  ];
75
75
 
76
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
76
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
77
77
  var json = { type: "object", description: "A JSON-compatible value." };
78
78
  var jsonApis = [
79
79
  defineApi({ id: "gutts.json.isJsonValue", name: "isJsonValue", category: "json", description: "Checks whether an unknown value can be represented as a finite JSON value.", parameters: [{ name: "value", description: "The value to validate as JSON-compatible data.", required: true, schema: {} }], output: { type: "boolean", description: "True when the value is a valid JSON value." }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -82,7 +82,7 @@ var jsonApis = [
82
82
  defineApi({ id: "gutts.json.stringifyJson", name: "stringifyJson", category: "json", description: "Serializes a JSON-compatible value into JSON text, optionally using indentation.", parameters: [{ name: "value", description: "The JSON-compatible value to serialize.", required: true, schema: {} }, { name: "space", description: "Optional number of indentation spaces to use in the serialized output.", required: false, schema: { type: "number" } }], output: { type: "string", description: "The serialized JSON text." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws TypeError when the value cannot be serialized as JSON."] })
83
83
  ];
84
84
 
85
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
85
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
86
86
  var numberApis = [
87
87
  defineApi({ id: "gutts.numbers.clamp", name: "clamp", category: "numbers", description: "Restricts a numeric value to an inclusive minimum and maximum range.", parameters: [{ name: "value", description: "The numeric value to constrain.", required: true, schema: { type: "number" } }, { name: "min", description: "The inclusive lower bound.", required: true, schema: { type: "number" } }, { name: "max", description: "The inclusive upper bound.", required: true, schema: { type: "number" } }], output: { type: "number", description: "The value constrained to the inclusive range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
88
88
  defineApi({ id: "gutts.numbers.inRange", name: "inRange", category: "numbers", description: "Checks whether a numeric value falls within the configured range.", parameters: [{ name: "value", description: "The numeric value to test.", required: true, schema: { type: "number" } }, { name: "min", description: "The lower range boundary.", required: true, schema: { type: "number" } }, { name: "max", description: "The upper range boundary.", required: true, schema: { type: "number" } }], output: { type: "boolean", description: "Whether the value is inside the range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
@@ -91,7 +91,7 @@ var numberApis = [
91
91
  defineApi({ id: "gutts.numbers.sum", name: "sum", category: "numbers", description: "Adds all numbers in an array and returns their total.", parameters: [{ name: "values", description: "The numeric values to add.", required: true, schema: { type: "array", items: { type: "number" } } }], output: { type: "number", description: "The sum of all input numbers." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
92
92
  ];
93
93
 
94
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
94
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
95
95
  var objectApis = [
96
96
  defineApi({ id: "gutts.objects.hasOwn", name: "hasOwn", category: "objects", description: "Checks whether an object contains a requested property.", parameters: [{ name: "value", description: "The object to inspect.", required: true, schema: { type: "object" } }, { name: "key", description: "The property key to look for.", required: true, schema: { type: "string" } }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
97
97
  defineApi({ id: "gutts.objects.pick", name: "pick", category: "objects", description: "Creates an object containing only requested properties.", parameters: [{ name: "value", description: "The source object.", required: true, schema: { type: "object" } }, { name: "keys", description: "The property keys to retain.", required: true, schema: { type: "array", items: { type: "string" } } }], output: { type: "object" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -99,7 +99,7 @@ var objectApis = [
99
99
  defineApi({ id: "gutts.objects.isPlainObject", name: "isPlainObject", category: "objects", description: "Checks whether a value is a plain JavaScript object.", parameters: [{ name: "value", description: "The value to classify.", required: true, schema: {} }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } })
100
100
  ];
101
101
 
102
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
102
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
103
103
  var string = { type: "string" };
104
104
  var stringApis = [
105
105
  defineApi({ id: "gutts.strings.isBlank", name: "isBlank", category: "strings", description: "Checks whether a string contains no non-whitespace characters.", parameters: [{ name: "value", description: "The string to inspect.", required: true, schema: string }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -115,7 +115,7 @@ var stringApis = [
115
115
  defineApi({ id: "gutts.strings.truncateWords", name: "truncateWords", category: "strings", description: "Shortens a string to a maximum number of words and appends a suffix when truncation is required.", parameters: [{ name: "value", description: "The string to shorten.", required: true, schema: string }, { name: "maxWords", description: "The non-negative maximum number of words.", required: true, schema: { type: "number" } }, { name: "suffix", description: "The suffix used when truncation occurs.", required: false, schema: string }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when maxWords is negative."] })
116
116
  ];
117
117
 
118
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
118
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
119
119
  var string2 = { type: "string" };
120
120
  var urlApis = [
121
121
  defineApi({ id: "gutts.urls.isUrl", name: "isUrl", category: "urls", description: "Checks whether a string can be parsed as a URL by the standard URL constructor.", parameters: [{ name: "value", description: "The string to validate.", required: true, schema: string2 }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -124,7 +124,7 @@ var urlApis = [
124
124
  defineApi({ id: "gutts.urls.setQueryParam", name: "setQueryParam", category: "urls", description: "Returns a URL with one query-string parameter set to the supplied value.", parameters: [{ name: "url", description: "The URL to modify.", required: true, schema: string2 }, { name: "key", description: "The query parameter name.", required: true, schema: string2 }, { name: "value", description: "The query parameter value.", required: true, schema: string2 }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws when url cannot be parsed as a URL."] })
125
125
  ];
126
126
 
127
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
127
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
128
128
  var needle3Metadata = {
129
129
  id: "model.cactus-needle3",
130
130
  name: "Needle 3",
@@ -155,12 +155,12 @@ var needle3CompleteApi = defineApi({
155
155
  semantics: { deterministic: false, pure: false, sideEffects: false }
156
156
  });
157
157
 
158
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
158
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
159
159
  import fs from "fs";
160
160
  import path from "path";
161
161
  import os from "os";
162
162
 
163
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
163
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
164
164
  var smolLM2Metadata = {
165
165
  id: "model.smollm2-135m-instruct",
166
166
  name: "SmolLM2-135M-Instruct",
@@ -192,7 +192,7 @@ var smolLM2GenerateApi = defineApi({
192
192
  errors: ["Model load failure", "Inference failure"]
193
193
  });
194
194
 
195
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
195
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
196
196
  var whistleMetadata = {
197
197
  id: "model.cactus-whistle",
198
198
  name: "Whistle",
@@ -222,7 +222,7 @@ var whistleTranscribeApi = defineApi({
222
222
  semantics: { deterministic: true, pure: false, sideEffects: false }
223
223
  });
224
224
 
225
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
225
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
226
226
  var defineEttin = (id2, name, parameters, description) => ({
227
227
  id: id2,
228
228
  name,
@@ -257,7 +257,7 @@ var ettinRerankApi = defineApi({
257
257
  semantics: { deterministic: true, pure: false, sideEffects: false }
258
258
  });
259
259
 
260
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
260
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
261
261
  var miniLML6Metadata = {
262
262
  id: "model.minilm-l6-v2",
263
263
  name: "MiniLM-L6-v2",
@@ -288,7 +288,7 @@ var miniLMSimilarityApi = defineApi({
288
288
  semantics: { deterministic: true, pure: false, sideEffects: false }
289
289
  });
290
290
 
291
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
291
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
292
292
  var guttsApiDefinitions = Object.freeze([
293
293
  ...arrayApis,
294
294
  ...jsonApis,
@@ -304,7 +304,7 @@ var guttsApiDefinitions = Object.freeze([
304
304
  ]);
305
305
  var guttsApiById = Object.freeze(Object.fromEntries(guttsApiDefinitions.map((api) => [api.id, api])));
306
306
 
307
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
307
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
308
308
  var schemaType = (schema) => String(schema?.type ?? "any");
309
309
  function guttsApiToFodNode(api) {
310
310
  return {
@@ -320,7 +320,7 @@ function guttsApiToFodNode(api) {
320
320
  }
321
321
  var guttsFodNodeDefinitions = Object.freeze(guttsApiDefinitions.map(guttsApiToFodNode));
322
322
 
323
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
323
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
324
324
  var guttsModelDefinitions = Object.freeze([
325
325
  smolLM2Metadata,
326
326
  needle3Metadata,
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  loginSystemUser,
12
12
  resolveUserFromToken
13
- } from "../chunk-ED32WV3T.js";
13
+ } from "../chunk-SNKPYPDW.js";
14
14
  export {
15
15
  LuthAuthClient2 as CanonicalAuthClient,
16
16
  LuthAuthClient,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getSrklAccounts,
6
6
  srklListBackblazeBuckets
7
- } from "./chunk-XHADDA75.js";
7
+ } from "./chunk-RIOYKF3X.js";
8
8
  import {
9
9
  StorageAdapterFactory
10
10
  } from "./chunk-SHZAQTIT.js";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  loginSystemUser,
30
30
  resolveUserFromToken
31
- } from "./chunk-ED32WV3T.js";
31
+ } from "./chunk-SNKPYPDW.js";
32
32
  import {
33
33
  createService,
34
34
  createServiceDefinition
@@ -3,27 +3,35 @@ import {
3
3
  } from "./chunk-4QEMALXF.js";
4
4
 
5
5
  // src/srkl/SrklDiscoveryService.ts
6
- var cachedSrklUrl = null;
7
- async function getPrimarySrklDeploymentUrl(queryDb) {
8
- if (cachedSrklUrl && Date.now() < cachedSrklUrl.expiresAt) return cachedSrklUrl.url;
6
+ var cachedSrklUrls = null;
7
+ async function getRegisteredSrklDeploymentUrls(queryDb) {
8
+ if (cachedSrklUrls && Date.now() < cachedSrklUrls.expiresAt && cachedSrklUrls.urls.length > 0) {
9
+ return cachedSrklUrls.urls;
10
+ }
9
11
  if (queryDb) {
10
12
  try {
11
13
  const res = await queryDb(
12
- `SELECT url FROM "ultrst-srkl-deployments" WHERE is_active = true ORDER BY is_primary DESC, priority DESC, created_at ASC LIMIT 1`,
14
+ `SELECT url FROM "ultrst-srkl-deployments" WHERE is_active = true ORDER BY is_primary DESC, priority DESC, created_at ASC`,
13
15
  []
14
16
  );
15
- if (res.rows.length > 0 && res.rows[0].url) {
16
- const url = res.rows[0].url.trim().replace(/\/+$/, "");
17
- cachedSrklUrl = { url, expiresAt: Date.now() + 10 * 60 * 1e3 };
18
- return url;
17
+ if (res.rows.length > 0) {
18
+ const urls = res.rows.map((r) => String(r.url || "").trim().replace(/\/+$/, "")).filter(Boolean);
19
+ if (urls.length > 0) {
20
+ cachedSrklUrls = { urls, expiresAt: Date.now() + 10 * 60 * 1e3 };
21
+ return urls;
22
+ }
19
23
  }
20
24
  } catch {
21
25
  }
22
26
  }
23
- const fallback = "https://srkl-engine.vercel.app";
24
- cachedSrklUrl = { url: fallback, expiresAt: Date.now() + 10 * 60 * 1e3 };
27
+ const fallback = ["https://srkl-engine.vercel.app"];
28
+ cachedSrklUrls = { urls: fallback, expiresAt: Date.now() + 10 * 60 * 1e3 };
25
29
  return fallback;
26
30
  }
31
+ async function getPrimarySrklDeploymentUrl(queryDb) {
32
+ const urls = await getRegisteredSrklDeploymentUrls(queryDb);
33
+ return urls[0] || "https://srkl-engine.vercel.app";
34
+ }
27
35
  async function getSrklAccounts(userId, service, queryDb) {
28
36
  const srklUrl = await getPrimarySrklDeploymentUrl(queryDb);
29
37
  const accounts = [];
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  LuthAuthClient,
4
4
  DEFAULT_LUTH_URL
5
- } from "@dinilmusick/gutts";
5
+ } from "@dinilmusick/gutts/auth";
6
6
  function tokenStore(initial = "") {
7
7
  let token = initial;
8
8
  return {
@@ -15,7 +15,7 @@ function tokenStore(initial = "") {
15
15
  }
16
16
  };
17
17
  }
18
- function createClient(env, token = "") {
18
+ function createClient(_env, token = "") {
19
19
  return new LuthAuthClient({
20
20
  ecosystemId: "ultrst-armada",
21
21
  applicationId: "kloks-backend",
@@ -34,6 +34,7 @@ function toSystemUser(user) {
34
34
  }
35
35
  async function loginSystemUser(email, rawPass, isAdmin, _queryDb, env) {
36
36
  if (!email?.trim() || !rawPass) return { success: false, status: 400, error: "Email and password are required" };
37
+ if (isAdmin) return { success: false, status: 403, error: "Administrative authentication is not provided by canonical Luth user login." };
37
38
  try {
38
39
  const client = createClient(env);
39
40
  await client.signInWithEmail({ email: email.trim(), password: rawPass });
@@ -42,17 +43,18 @@ async function loginSystemUser(email, rawPass, isAdmin, _queryDb, env) {
42
43
  return { success: false, status: 401, error: "Canonical authentication service did not establish a session." };
43
44
  }
44
45
  const user = toSystemUser(session.user);
45
- if (isAdmin) {
46
- return { success: false, status: 403, error: "Administrative authentication is not provided by canonical Luth user login." };
47
- }
46
+ const authorization = client.getAuthHeaders().Authorization || "";
47
+ const token = authorization.replace(/^Bearer\s+/i, "").trim();
48
+ if (!token) return { success: false, status: 502, error: "Luth did not return a usable bearer session token." };
48
49
  return {
49
50
  success: true,
50
51
  status: 200,
51
52
  user,
52
- token: session.session.token
53
+ token
53
54
  };
54
55
  } catch (error) {
55
- return { success: false, status: 503, error: error instanceof Error ? error.message : "Canonical authentication service unavailable" };
56
+ const status = error && typeof error === "object" && "status" in error && typeof error.status === "number" ? error.status : 503;
57
+ return { success: false, status, error: error instanceof Error ? error.message : "Canonical authentication service unavailable" };
56
58
  }
57
59
  }
58
60
  async function resolveUserFromToken(tokenOrUserId, _queryDb, env) {
@@ -69,6 +69,22 @@ declare class FunctionalityTable<T extends {
69
69
  count(filters?: QueryFilter[]): Promise<number>;
70
70
  }
71
71
 
72
+ /**
73
+ * @file LuthDiscoveryService.ts
74
+ * @description Universal Luth Auth Service Discovery with multi-deployment fallback and round-robin.
75
+ * Runs identically in Node.js, Vercel Serverless, and Cloudflare Workers (< 200 lines).
76
+ */
77
+ declare function getRegisteredLuthDeploymentUrls(queryDb?: (sql: string, params?: unknown[]) => Promise<{
78
+ rows: any[];
79
+ }>): Promise<string[]>;
80
+ declare function getPrimaryLuthDeploymentUrl(queryDb?: (sql: string, params?: unknown[]) => Promise<{
81
+ rows: any[];
82
+ }>): Promise<string>;
83
+ declare function getNextLuthDeploymentUrl(queryDb?: (sql: string, params?: unknown[]) => Promise<{
84
+ rows: any[];
85
+ }>): Promise<string>;
86
+ declare function clearLuthDiscoveryCache(): void;
87
+
72
88
  /**
73
89
  * @file types.ts
74
90
  * @description Formal TypeScript types and contracts for APP_ARCHITECTURE_SPEC.
@@ -1636,4 +1652,4 @@ declare function resolveSystemDatabaseUrl(env?: Record<string, string | undefine
1636
1652
  */
1637
1653
  declare function tryResolveSystemDatabaseUrl(env?: Record<string, string | undefined>): string | null;
1638
1654
 
1639
- export { type AssetChannelType, type AssetDataType, type AssetFolderInfo, type AssetPoolItem, type AssetPoolScope, type B2AuthData, type BackendFacade, BaseDataProvider, BaseResourceFetcher, type CloudflareObservability, type CloudflarePagesPauseState, type CloudflarePagesPreviewSetting, type CloudflareProjectItem, CloudflareResourceFetcher, type CloudflareUsageMetrics, type CredentialEntry, type CredentialManifest, type Deployment, type DeploymentControlResult, type FunctionSet, FunctionalityTable, GRAPHS_ROOT, type IDataProvider, LEGACY_PROJECTS_ROOT, type OrchestrationFn, PROJECTS_ROOT, type ProjectMetadata, type PublicRouteRecord, type QueryFilter, ResourceFetcherRegistry, type Runtime, SAMPLES_GLOBAL_ROOT, SUPPORTED_AUDIO_EXTS, SUPPORTED_MIDI_EXTS, type ServerAudioSampleItem, type ServiceFacade, type ServiceRegistryRecord, type SortOrder, type SrklB2Account, SrklStorageService, type SyncFileResult, type UnifiedQueryResult, type UnifiedResourceMetricItem, type UnifiedResourceMetrics, VercelResourceFetcher, WORKSPACE_ASSETS_ROOT, WORKSPACE_ROOT, type WorkingWorkspaceConfig, type WorkspaceFolderResolution, type WorkspaceStorageConfig, b2DeleteFileVersion, b2DeleteFolder, buildProjectObservability, buildProjectsList, cleanDbUrl, computeDeploymentFinalWeight, computeUsageWeightScore, configureStarterProjectTemplate, createAssetSubfolder, createCredential, createGraphAssetFolder, createGraphAssetFolder as createGraphAssetSubfolder, createGraphPackage, createWavBuffer, createWorkspace, createWorkspaceGraph, decryptSecretFromBlob, deleteAssetFromGraph, deleteAssetFromPool, deleteCredential, deleteGlobalSample, deleteGraphPackage, deleteProject, deleteProjectSample, deleteRoute, deleteWorkspace, deleteWorkspaceFile, deleteWorkspaceFolder, deleteWorkspaceGraph, encryptSecretToBlob, ensureAssetPoolDirectories, ensureGlobalSamples, ensureGraphAssetDirectories, ensureProjectAssets, ensureProjectsRoot, ensureWorkspaceStructure, exportEncryptedCredentials, fetchCloudflareData, fetchVercelData, findUserWorkspace, findWorkspaceRecord, formatRelativeCreated, getAllRoutes, getAssetPoolLocationPath, getAssetPoolPublicUrl, getB2BucketId, getConnectedDeploymentNode, getConnectedWeightModifiers, getCredential, getDefaultWorkingWorkspaceDir, getExecutions, getGatewayConfig, getGraphPackageById, getPrimarySrklDeploymentUrl as getPrimarySrklCoreDeploymentUrl, getProjectById, getPublicRouteByPath, getPublicRoutes, getSrklAccounts as getSrklCoreAccounts, getSrklStatus, getUnifiedDbUrl, getWeightModifierScore, getWorkingWorkspaceConfig, getWorkingWorkspaceDir, getWorkspaceFolderKey, getWorkspaceFolderPrefix, getWorkspaceGraph, getWorkspaceStorageDetails, getWorkspaces, importEncryptedCredentials, importGraphDependency, initGlobalSamplesDirectory, isB2Workspace, listAllGraphPackages, listAllProjects, listBackblazeBuckets, listCredentials, listGlobalSamples, listProjectSamples, listWorkspaceFiles, listWorkspaceGraphs, loadCredentialManifest, loadWorkspaceData, matchGatewayIngress, matchGatewayIngressAsync, pauseCloudflarePagesProject, pauseVercelProject, queryUnifiedDb, readWorkspaceFile, recordExecution, removeGraphDependency, renameAppInWorkspaceData, resolveDynamicRouteFromDb, resolveSystemDatabaseUrl, resolveWorkspaceConnection, resolveWorkspaceDir, resumeCloudflarePagesProject, resumeVercelProject, saveAssetToGraph, saveAssetToPool, saveCredentialManifest, saveGlobalSample, saveGraphPackage, saveProject, saveProjectSample, saveWorkspaceData, saveWorkspaceGraph, scanAssetPool, scanGraphAssets, seedDefaultAssets, seedStarterGraphAssets, serverPublicRoutes, setServerPublicRoutes, setWorkingWorkspaceConfig, srklListBackblazeBuckets as srklCoreListBackblazeBuckets, syncWorkspace, syncWorkspaceCreateToBucket, syncWorkspaceDataToBucket, syncWorkspaceDeleteToBucket, tryResolveSystemDatabaseUrl, updateCredential, updateWorkspace, upsertRoute, validateServiceDefinition, writeWorkspaceFile };
1655
+ export { type AssetChannelType, type AssetDataType, type AssetFolderInfo, type AssetPoolItem, type AssetPoolScope, type B2AuthData, type BackendFacade, BaseDataProvider, BaseResourceFetcher, type CloudflareObservability, type CloudflarePagesPauseState, type CloudflarePagesPreviewSetting, type CloudflareProjectItem, CloudflareResourceFetcher, type CloudflareUsageMetrics, type CredentialEntry, type CredentialManifest, type Deployment, type DeploymentControlResult, type FunctionSet, FunctionalityTable, GRAPHS_ROOT, type IDataProvider, LEGACY_PROJECTS_ROOT, type OrchestrationFn, PROJECTS_ROOT, type ProjectMetadata, type PublicRouteRecord, type QueryFilter, ResourceFetcherRegistry, type Runtime, SAMPLES_GLOBAL_ROOT, SUPPORTED_AUDIO_EXTS, SUPPORTED_MIDI_EXTS, type ServerAudioSampleItem, type ServiceFacade, type ServiceRegistryRecord, type SortOrder, type SrklB2Account, SrklStorageService, type SyncFileResult, type UnifiedQueryResult, type UnifiedResourceMetricItem, type UnifiedResourceMetrics, VercelResourceFetcher, WORKSPACE_ASSETS_ROOT, WORKSPACE_ROOT, type WorkingWorkspaceConfig, type WorkspaceFolderResolution, type WorkspaceStorageConfig, b2DeleteFileVersion, b2DeleteFolder, buildProjectObservability, buildProjectsList, cleanDbUrl, clearLuthDiscoveryCache, computeDeploymentFinalWeight, computeUsageWeightScore, configureStarterProjectTemplate, createAssetSubfolder, createCredential, createGraphAssetFolder, createGraphAssetFolder as createGraphAssetSubfolder, createGraphPackage, createWavBuffer, createWorkspace, createWorkspaceGraph, decryptSecretFromBlob, deleteAssetFromGraph, deleteAssetFromPool, deleteCredential, deleteGlobalSample, deleteGraphPackage, deleteProject, deleteProjectSample, deleteRoute, deleteWorkspace, deleteWorkspaceFile, deleteWorkspaceFolder, deleteWorkspaceGraph, encryptSecretToBlob, ensureAssetPoolDirectories, ensureGlobalSamples, ensureGraphAssetDirectories, ensureProjectAssets, ensureProjectsRoot, ensureWorkspaceStructure, exportEncryptedCredentials, fetchCloudflareData, fetchVercelData, findUserWorkspace, findWorkspaceRecord, formatRelativeCreated, getAllRoutes, getAssetPoolLocationPath, getAssetPoolPublicUrl, getB2BucketId, getConnectedDeploymentNode, getConnectedWeightModifiers, getCredential, getDefaultWorkingWorkspaceDir, getExecutions, getGatewayConfig, getGraphPackageById, getNextLuthDeploymentUrl, getPrimaryLuthDeploymentUrl, getPrimarySrklDeploymentUrl as getPrimarySrklCoreDeploymentUrl, getProjectById, getPublicRouteByPath, getPublicRoutes, getRegisteredLuthDeploymentUrls, getSrklAccounts as getSrklCoreAccounts, getSrklStatus, getUnifiedDbUrl, getWeightModifierScore, getWorkingWorkspaceConfig, getWorkingWorkspaceDir, getWorkspaceFolderKey, getWorkspaceFolderPrefix, getWorkspaceGraph, getWorkspaceStorageDetails, getWorkspaces, importEncryptedCredentials, importGraphDependency, initGlobalSamplesDirectory, isB2Workspace, listAllGraphPackages, listAllProjects, listBackblazeBuckets, listCredentials, listGlobalSamples, listProjectSamples, listWorkspaceFiles, listWorkspaceGraphs, loadCredentialManifest, loadWorkspaceData, matchGatewayIngress, matchGatewayIngressAsync, pauseCloudflarePagesProject, pauseVercelProject, queryUnifiedDb, readWorkspaceFile, recordExecution, removeGraphDependency, renameAppInWorkspaceData, resolveDynamicRouteFromDb, resolveSystemDatabaseUrl, resolveWorkspaceConnection, resolveWorkspaceDir, resumeCloudflarePagesProject, resumeVercelProject, saveAssetToGraph, saveAssetToPool, saveCredentialManifest, saveGlobalSample, saveGraphPackage, saveProject, saveProjectSample, saveWorkspaceData, saveWorkspaceGraph, scanAssetPool, scanGraphAssets, seedDefaultAssets, seedStarterGraphAssets, serverPublicRoutes, setServerPublicRoutes, setWorkingWorkspaceConfig, srklListBackblazeBuckets as srklCoreListBackblazeBuckets, syncWorkspace, syncWorkspaceCreateToBucket, syncWorkspaceDataToBucket, syncWorkspaceDeleteToBucket, tryResolveSystemDatabaseUrl, updateCredential, updateWorkspace, upsertRoute, validateServiceDefinition, writeWorkspaceFile };
@@ -157,7 +157,7 @@ import {
157
157
  krnlWorkspaceGraphServiceFacade,
158
158
  krnlWorkspaceServiceDefinition,
159
159
  krnlWorkspaceServiceFacade
160
- } from "./chunk-Q7ZJSEII.js";
160
+ } from "./chunk-COA3ABWL.js";
161
161
  import {
162
162
  workspaceGraphService
163
163
  } from "./chunk-IGZB4RYT.js";
@@ -165,7 +165,7 @@ import {
165
165
  getPrimarySrklDeploymentUrl,
166
166
  getSrklAccounts,
167
167
  srklListBackblazeBuckets
168
- } from "./chunk-XHADDA75.js";
168
+ } from "./chunk-RIOYKF3X.js";
169
169
  import {
170
170
  BackblazeB2Adapter,
171
171
  LocalFSAdapter,
@@ -230,7 +230,7 @@ import {
230
230
  import {
231
231
  loginSystemUser,
232
232
  resolveUserFromToken
233
- } from "./chunk-ED32WV3T.js";
233
+ } from "./chunk-SNKPYPDW.js";
234
234
  import "./chunk-SXDYW3QA.js";
235
235
  import {
236
236
  DeterministicEndpointExecutor,
@@ -336,6 +336,62 @@ var FunctionalityTable = class extends BaseDataProvider {
336
336
  }
337
337
  };
338
338
 
339
+ // src/luth/LuthDiscoveryService.ts
340
+ import { DEFAULT_LUTH_URL } from "@dinilmusick/gutts/auth";
341
+ var cachedLuthUrls = null;
342
+ var roundRobinIndex = 0;
343
+ async function getRegisteredLuthDeploymentUrls(queryDb) {
344
+ if (cachedLuthUrls && Date.now() < cachedLuthUrls.expiresAt && cachedLuthUrls.urls.length > 0) {
345
+ return cachedLuthUrls.urls;
346
+ }
347
+ if (queryDb) {
348
+ try {
349
+ const res = await queryDb(
350
+ `SELECT url FROM "ultrst-luth-deployments" WHERE is_active = true ORDER BY is_primary DESC, priority DESC, created_at ASC`,
351
+ []
352
+ );
353
+ if (res.rows.length > 0) {
354
+ const urls = res.rows.map((r) => String(r.url || "").trim().replace(/\/+$/, "")).filter(Boolean);
355
+ if (urls.length > 0) {
356
+ cachedLuthUrls = { urls, expiresAt: Date.now() + 5 * 60 * 1e3 };
357
+ return urls;
358
+ }
359
+ }
360
+ } catch {
361
+ try {
362
+ const res2 = await queryDb(
363
+ `SELECT origin FROM "ultrst-apps" WHERE app_id = 'luth' AND status = 'active' AND origin IS NOT NULL LIMIT 1`,
364
+ []
365
+ );
366
+ if (res2.rows.length > 0 && res2.rows[0].origin) {
367
+ const u = String(res2.rows[0].origin).trim().replace(/\/+$/, "");
368
+ cachedLuthUrls = { urls: [u], expiresAt: Date.now() + 5 * 60 * 1e3 };
369
+ return [u];
370
+ }
371
+ } catch {
372
+ }
373
+ }
374
+ }
375
+ const fallback = [DEFAULT_LUTH_URL];
376
+ cachedLuthUrls = { urls: fallback, expiresAt: Date.now() + 5 * 60 * 1e3 };
377
+ return fallback;
378
+ }
379
+ async function getPrimaryLuthDeploymentUrl(queryDb) {
380
+ const urls = await getRegisteredLuthDeploymentUrls(queryDb);
381
+ return urls[0] || DEFAULT_LUTH_URL;
382
+ }
383
+ async function getNextLuthDeploymentUrl(queryDb) {
384
+ const urls = await getRegisteredLuthDeploymentUrls(queryDb);
385
+ if (urls.length === 0) return DEFAULT_LUTH_URL;
386
+ const next = urls[roundRobinIndex % urls.length];
387
+ roundRobinIndex = (roundRobinIndex + 1) % urls.length;
388
+ return next;
389
+ }
390
+ function clearLuthDiscoveryCache() {
391
+ cachedLuthUrls = null;
392
+ roundRobinIndex = 0;
393
+ }
394
+
339
395
  // src/architecture/types.ts
340
396
  function validateServiceDefinition(def) {
341
397
  if (def.deployment === "remote" && def.runtime !== "server") {
@@ -4425,6 +4481,7 @@ export {
4425
4481
  buildProjectsList,
4426
4482
  classifyAndFormatError,
4427
4483
  cleanDbUrl,
4484
+ clearLuthDiscoveryCache,
4428
4485
  computeDeploymentFinalWeight,
4429
4486
  computeUsageWeightScore,
4430
4487
  configureStarterProjectTemplate,
@@ -4493,12 +4550,15 @@ export {
4493
4550
  getExecutions,
4494
4551
  getGatewayConfig,
4495
4552
  getGraphPackageById,
4553
+ getNextLuthDeploymentUrl,
4554
+ getPrimaryLuthDeploymentUrl,
4496
4555
  getPrimarySrklDeploymentUrl2 as getPrimarySrklCoreDeploymentUrl,
4497
4556
  getPrimarySrklDeploymentUrl,
4498
4557
  getProjectById,
4499
4558
  getProviderMeta,
4500
4559
  getPublicRouteByPath,
4501
4560
  getPublicRoutes,
4561
+ getRegisteredLuthDeploymentUrls,
4502
4562
  getSrklAccounts,
4503
4563
  getSrklAccounts2 as getSrklCoreAccounts,
4504
4564
  getSrklStatus,
@@ -31,16 +31,16 @@ import {
31
31
  krnlWorkspaceGraphServiceFacade,
32
32
  krnlWorkspaceServiceDefinition,
33
33
  krnlWorkspaceServiceFacade
34
- } from "./chunk-Q7ZJSEII.js";
34
+ } from "./chunk-COA3ABWL.js";
35
35
  import "./chunk-IGZB4RYT.js";
36
- import "./chunk-XHADDA75.js";
36
+ import "./chunk-RIOYKF3X.js";
37
37
  import "./chunk-SHZAQTIT.js";
38
38
  import "./chunk-4QEMALXF.js";
39
39
  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-ED32WV3T.js";
43
+ import "./chunk-SNKPYPDW.js";
44
44
  import "./chunk-SXDYW3QA.js";
45
45
  export {
46
46
  AuthServiceDefinition,
@@ -174,11 +174,6 @@ declare class SrklClient {
174
174
  }
175
175
  declare function createSrklClient(options?: SrklClientOptions): SrklClient;
176
176
 
177
- /**
178
- * @file SrklDiscoveryService.ts
179
- * @description Universal SRKL Service Discovery and Backblaze B2 account federation.
180
- * Runs identically in Node.js, Vercel Serverless, and Cloudflare Workers (< 200 lines).
181
- */
182
177
  declare function getPrimarySrklDeploymentUrl(queryDb?: (sql: string, params?: unknown[]) => Promise<{
183
178
  rows: any[];
184
179
  }>): Promise<string>;
@@ -15,7 +15,7 @@ import {
15
15
  getPrimarySrklDeploymentUrl,
16
16
  getSrklAccounts,
17
17
  srklListBackblazeBuckets
18
- } from "../chunk-XHADDA75.js";
18
+ } from "../chunk-RIOYKF3X.js";
19
19
  import "../chunk-4QEMALXF.js";
20
20
  import "../chunk-JCMB7BIM.js";
21
21
  export {
@@ -115,7 +115,7 @@
115
115
  "clean": "rm -rf dist"
116
116
  },
117
117
  "dependencies": {
118
- "@dinilmusick/gutts": "^1.4.3",
118
+ "@dinilmusick/gutts": "^1.4.4",
119
119
  "@kloks/functions": "workspace:*",
120
120
  "@kloks/state-graph": "workspace:*",
121
121
  "@webcontainer/api": "^1.6.4"
@@ -1 +1,14 @@
1
+ import { DeploymentEnvironment } from '@dinilmusick/gutts/auth';
1
2
  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';
3
+
4
+ interface LuthDeploymentRecord {
5
+ id: string;
6
+ url: string;
7
+ label?: string;
8
+ environment?: DeploymentEnvironment;
9
+ isActive: boolean;
10
+ isPrimary?: boolean;
11
+ priority?: number;
12
+ }
13
+
14
+ export type { LuthDeploymentRecord };
@@ -1,3 +1,4 @@
1
+ export { LuthDeploymentRecord } from './auth.js';
1
2
  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
3
 
3
4
  /**
@@ -1,6 +1,13 @@
1
1
  import {
2
2
  DEFAULT_LUTH_URL,
3
- hydrateLuthTokenFromUrl
3
+ LuthAuthClient,
4
+ LuthAuthClient2,
5
+ LuthAuthError,
6
+ createLuthAuthClient,
7
+ createLuthAuthClient2,
8
+ hydrateLuthTokenFromUrl,
9
+ resolveClientEnvironment,
10
+ resolveClientOrigin
4
11
  } from "./chunk-B4WOPCRZ.js";
5
12
 
6
13
  // src/browserExecutionClient.ts
@@ -175,22 +182,18 @@ var OPFSWorkspaceStorage = class {
175
182
  return result;
176
183
  }
177
184
  };
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";
189
185
  export {
190
186
  BrowserExecutionClient,
187
+ LuthAuthClient2 as CanonicalAuthClient,
191
188
  DEFAULT_LUTH_URL,
189
+ LuthAuthClient,
190
+ LuthAuthError,
192
191
  OPFSWorkspaceStorage,
193
192
  WorkspaceAutosaveController,
194
193
  createBrowserExecutionClient,
195
- hydrateLuthTokenFromUrl
194
+ createLuthAuthClient2 as createCanonicalAuthClient,
195
+ createLuthAuthClient,
196
+ hydrateLuthTokenFromUrl,
197
+ resolveClientEnvironment,
198
+ resolveClientOrigin
196
199
  };
@@ -30,7 +30,7 @@
30
30
  "clean": "rm -rf dist"
31
31
  },
32
32
  "dependencies": {
33
- "@dinilmusick/gutts": "^1.4.3",
33
+ "@dinilmusick/gutts": "^1.4.4",
34
34
  "zod": "^3.24.1"
35
35
  },
36
36
  "peerDependencies": {
@@ -3,7 +3,7 @@ import "./chunk-QGM4M3NI.js";
3
3
  // ../../node_modules/.pnpm/@ultrst-armada+krnl@1.0.9_@types+node@22.20.5/node_modules/@ultrst-armada/krnl/packages/core/dist/index.js
4
4
  import { randomUUID } from "crypto";
5
5
 
6
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
6
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
7
7
  function defineApi(definition) {
8
8
  const properties = Object.fromEntries(definition.parameters.map((parameter) => [
9
9
  parameter.name,
@@ -24,7 +24,7 @@ function defineApi(definition) {
24
24
  });
25
25
  }
26
26
 
27
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
27
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
28
28
  var array = { type: "array" };
29
29
  var integer = { type: "integer" };
30
30
  var arrayApis = [
@@ -35,7 +35,7 @@ var arrayApis = [
35
35
  defineApi({ id: "gutts.arrays.last", name: "last", category: "arrays", description: "Returns the final element of an array, or undefined when the array is empty.", parameters: [{ name: "values", description: "The array whose final element should be returned.", required: true, schema: array }], output: { description: "The final array element, or undefined for an empty array." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
36
36
  ];
37
37
 
38
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
38
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
39
39
  var json = { type: "object", description: "A JSON-compatible value." };
40
40
  var jsonApis = [
41
41
  defineApi({ id: "gutts.json.isJsonValue", name: "isJsonValue", category: "json", description: "Checks whether an unknown value can be represented as a finite JSON value.", parameters: [{ name: "value", description: "The value to validate as JSON-compatible data.", required: true, schema: {} }], output: { type: "boolean", description: "True when the value is a valid JSON value." }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -44,7 +44,7 @@ var jsonApis = [
44
44
  defineApi({ id: "gutts.json.stringifyJson", name: "stringifyJson", category: "json", description: "Serializes a JSON-compatible value into JSON text, optionally using indentation.", parameters: [{ name: "value", description: "The JSON-compatible value to serialize.", required: true, schema: {} }, { name: "space", description: "Optional number of indentation spaces to use in the serialized output.", required: false, schema: { type: "number" } }], output: { type: "string", description: "The serialized JSON text." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws TypeError when the value cannot be serialized as JSON."] })
45
45
  ];
46
46
 
47
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
47
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
48
48
  var numberApis = [
49
49
  defineApi({ id: "gutts.numbers.clamp", name: "clamp", category: "numbers", description: "Restricts a numeric value to an inclusive minimum and maximum range.", parameters: [{ name: "value", description: "The numeric value to constrain.", required: true, schema: { type: "number" } }, { name: "min", description: "The inclusive lower bound.", required: true, schema: { type: "number" } }, { name: "max", description: "The inclusive upper bound.", required: true, schema: { type: "number" } }], output: { type: "number", description: "The value constrained to the inclusive range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
50
50
  defineApi({ id: "gutts.numbers.inRange", name: "inRange", category: "numbers", description: "Checks whether a numeric value falls within the configured range.", parameters: [{ name: "value", description: "The numeric value to test.", required: true, schema: { type: "number" } }, { name: "min", description: "The lower range boundary.", required: true, schema: { type: "number" } }, { name: "max", description: "The upper range boundary.", required: true, schema: { type: "number" } }], output: { type: "boolean", description: "Whether the value is inside the range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
@@ -53,7 +53,7 @@ var numberApis = [
53
53
  defineApi({ id: "gutts.numbers.sum", name: "sum", category: "numbers", description: "Adds all numbers in an array and returns their total.", parameters: [{ name: "values", description: "The numeric values to add.", required: true, schema: { type: "array", items: { type: "number" } } }], output: { type: "number", description: "The sum of all input numbers." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
54
54
  ];
55
55
 
56
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
56
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
57
57
  var objectApis = [
58
58
  defineApi({ id: "gutts.objects.hasOwn", name: "hasOwn", category: "objects", description: "Checks whether an object contains a requested property.", parameters: [{ name: "value", description: "The object to inspect.", required: true, schema: { type: "object" } }, { name: "key", description: "The property key to look for.", required: true, schema: { type: "string" } }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
59
59
  defineApi({ id: "gutts.objects.pick", name: "pick", category: "objects", description: "Creates an object containing only requested properties.", parameters: [{ name: "value", description: "The source object.", required: true, schema: { type: "object" } }, { name: "keys", description: "The property keys to retain.", required: true, schema: { type: "array", items: { type: "string" } } }], output: { type: "object" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -61,7 +61,7 @@ var objectApis = [
61
61
  defineApi({ id: "gutts.objects.isPlainObject", name: "isPlainObject", category: "objects", description: "Checks whether a value is a plain JavaScript object.", parameters: [{ name: "value", description: "The value to classify.", required: true, schema: {} }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } })
62
62
  ];
63
63
 
64
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
64
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
65
65
  var string = { type: "string" };
66
66
  var stringApis = [
67
67
  defineApi({ id: "gutts.strings.isBlank", name: "isBlank", category: "strings", description: "Checks whether a string contains no non-whitespace characters.", parameters: [{ name: "value", description: "The string to inspect.", required: true, schema: string }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -77,7 +77,7 @@ var stringApis = [
77
77
  defineApi({ id: "gutts.strings.truncateWords", name: "truncateWords", category: "strings", description: "Shortens a string to a maximum number of words and appends a suffix when truncation is required.", parameters: [{ name: "value", description: "The string to shorten.", required: true, schema: string }, { name: "maxWords", description: "The non-negative maximum number of words.", required: true, schema: { type: "number" } }, { name: "suffix", description: "The suffix used when truncation occurs.", required: false, schema: string }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when maxWords is negative."] })
78
78
  ];
79
79
 
80
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
80
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
81
81
  var string2 = { type: "string" };
82
82
  var urlApis = [
83
83
  defineApi({ id: "gutts.urls.isUrl", name: "isUrl", category: "urls", description: "Checks whether a string can be parsed as a URL by the standard URL constructor.", parameters: [{ name: "value", description: "The string to validate.", required: true, schema: string2 }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -86,7 +86,7 @@ var urlApis = [
86
86
  defineApi({ id: "gutts.urls.setQueryParam", name: "setQueryParam", category: "urls", description: "Returns a URL with one query-string parameter set to the supplied value.", parameters: [{ name: "url", description: "The URL to modify.", required: true, schema: string2 }, { name: "key", description: "The query parameter name.", required: true, schema: string2 }, { name: "value", description: "The query parameter value.", required: true, schema: string2 }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws when url cannot be parsed as a URL."] })
87
87
  ];
88
88
 
89
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
89
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
90
90
  var needle3Metadata = {
91
91
  id: "model.cactus-needle3",
92
92
  name: "Needle 3",
@@ -117,12 +117,12 @@ var needle3CompleteApi = defineApi({
117
117
  semantics: { deterministic: false, pure: false, sideEffects: false }
118
118
  });
119
119
 
120
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
120
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
121
121
  import fs from "fs";
122
122
  import path from "path";
123
123
  import os from "os";
124
124
 
125
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
125
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
126
126
  var smolLM2Metadata = {
127
127
  id: "model.smollm2-135m-instruct",
128
128
  name: "SmolLM2-135M-Instruct",
@@ -154,7 +154,7 @@ var smolLM2GenerateApi = defineApi({
154
154
  errors: ["Model load failure", "Inference failure"]
155
155
  });
156
156
 
157
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
157
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
158
158
  var whistleMetadata = {
159
159
  id: "model.cactus-whistle",
160
160
  name: "Whistle",
@@ -184,7 +184,7 @@ var whistleTranscribeApi = defineApi({
184
184
  semantics: { deterministic: true, pure: false, sideEffects: false }
185
185
  });
186
186
 
187
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
187
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
188
188
  var defineEttin = (id2, name, parameters, description) => ({
189
189
  id: id2,
190
190
  name,
@@ -219,7 +219,7 @@ var ettinRerankApi = defineApi({
219
219
  semantics: { deterministic: true, pure: false, sideEffects: false }
220
220
  });
221
221
 
222
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
222
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
223
223
  var miniLML6Metadata = {
224
224
  id: "model.minilm-l6-v2",
225
225
  name: "MiniLM-L6-v2",
@@ -250,7 +250,7 @@ var miniLMSimilarityApi = defineApi({
250
250
  semantics: { deterministic: true, pure: false, sideEffects: false }
251
251
  });
252
252
 
253
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
253
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
254
254
  var guttsApiDefinitions = Object.freeze([
255
255
  ...arrayApis,
256
256
  ...jsonApis,
@@ -266,7 +266,7 @@ var guttsApiDefinitions = Object.freeze([
266
266
  ]);
267
267
  var guttsApiById = Object.freeze(Object.fromEntries(guttsApiDefinitions.map((api) => [api.id, api])));
268
268
 
269
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
269
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
270
270
  var schemaType = (schema) => String(schema?.type ?? "any");
271
271
  function guttsApiToFodNode(api) {
272
272
  return {
@@ -282,7 +282,7 @@ function guttsApiToFodNode(api) {
282
282
  }
283
283
  var guttsFodNodeDefinitions = Object.freeze(guttsApiDefinitions.map(guttsApiToFodNode));
284
284
 
285
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
285
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
286
286
  var guttsModelDefinitions = Object.freeze([
287
287
  smolLM2Metadata,
288
288
  needle3Metadata,
@@ -4,7 +4,7 @@ import "./chunk-QGM4M3NI.js";
4
4
  import { randomUUID } from "crypto";
5
5
  import http from "http";
6
6
 
7
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
7
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
8
8
  function defineApi(definition) {
9
9
  const properties = Object.fromEntries(definition.parameters.map((parameter) => [
10
10
  parameter.name,
@@ -25,7 +25,7 @@ function defineApi(definition) {
25
25
  });
26
26
  }
27
27
 
28
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
28
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
29
29
  var array = { type: "array" };
30
30
  var integer = { type: "integer" };
31
31
  var arrayApis = [
@@ -36,7 +36,7 @@ var arrayApis = [
36
36
  defineApi({ id: "gutts.arrays.last", name: "last", category: "arrays", description: "Returns the final element of an array, or undefined when the array is empty.", parameters: [{ name: "values", description: "The array whose final element should be returned.", required: true, schema: array }], output: { description: "The final array element, or undefined for an empty array." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
37
37
  ];
38
38
 
39
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
39
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
40
40
  var json = { type: "object", description: "A JSON-compatible value." };
41
41
  var jsonApis = [
42
42
  defineApi({ id: "gutts.json.isJsonValue", name: "isJsonValue", category: "json", description: "Checks whether an unknown value can be represented as a finite JSON value.", parameters: [{ name: "value", description: "The value to validate as JSON-compatible data.", required: true, schema: {} }], output: { type: "boolean", description: "True when the value is a valid JSON value." }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -45,7 +45,7 @@ var jsonApis = [
45
45
  defineApi({ id: "gutts.json.stringifyJson", name: "stringifyJson", category: "json", description: "Serializes a JSON-compatible value into JSON text, optionally using indentation.", parameters: [{ name: "value", description: "The JSON-compatible value to serialize.", required: true, schema: {} }, { name: "space", description: "Optional number of indentation spaces to use in the serialized output.", required: false, schema: { type: "number" } }], output: { type: "string", description: "The serialized JSON text." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws TypeError when the value cannot be serialized as JSON."] })
46
46
  ];
47
47
 
48
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
48
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
49
49
  var numberApis = [
50
50
  defineApi({ id: "gutts.numbers.clamp", name: "clamp", category: "numbers", description: "Restricts a numeric value to an inclusive minimum and maximum range.", parameters: [{ name: "value", description: "The numeric value to constrain.", required: true, schema: { type: "number" } }, { name: "min", description: "The inclusive lower bound.", required: true, schema: { type: "number" } }, { name: "max", description: "The inclusive upper bound.", required: true, schema: { type: "number" } }], output: { type: "number", description: "The value constrained to the inclusive range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
51
51
  defineApi({ id: "gutts.numbers.inRange", name: "inRange", category: "numbers", description: "Checks whether a numeric value falls within the configured range.", parameters: [{ name: "value", description: "The numeric value to test.", required: true, schema: { type: "number" } }, { name: "min", description: "The lower range boundary.", required: true, schema: { type: "number" } }, { name: "max", description: "The upper range boundary.", required: true, schema: { type: "number" } }], output: { type: "boolean", description: "Whether the value is inside the range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
@@ -54,7 +54,7 @@ var numberApis = [
54
54
  defineApi({ id: "gutts.numbers.sum", name: "sum", category: "numbers", description: "Adds all numbers in an array and returns their total.", parameters: [{ name: "values", description: "The numeric values to add.", required: true, schema: { type: "array", items: { type: "number" } } }], output: { type: "number", description: "The sum of all input numbers." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
55
55
  ];
56
56
 
57
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
57
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
58
58
  var objectApis = [
59
59
  defineApi({ id: "gutts.objects.hasOwn", name: "hasOwn", category: "objects", description: "Checks whether an object contains a requested property.", parameters: [{ name: "value", description: "The object to inspect.", required: true, schema: { type: "object" } }, { name: "key", description: "The property key to look for.", required: true, schema: { type: "string" } }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
60
60
  defineApi({ id: "gutts.objects.pick", name: "pick", category: "objects", description: "Creates an object containing only requested properties.", parameters: [{ name: "value", description: "The source object.", required: true, schema: { type: "object" } }, { name: "keys", description: "The property keys to retain.", required: true, schema: { type: "array", items: { type: "string" } } }], output: { type: "object" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -62,7 +62,7 @@ var objectApis = [
62
62
  defineApi({ id: "gutts.objects.isPlainObject", name: "isPlainObject", category: "objects", description: "Checks whether a value is a plain JavaScript object.", parameters: [{ name: "value", description: "The value to classify.", required: true, schema: {} }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } })
63
63
  ];
64
64
 
65
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
65
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
66
66
  var string = { type: "string" };
67
67
  var stringApis = [
68
68
  defineApi({ id: "gutts.strings.isBlank", name: "isBlank", category: "strings", description: "Checks whether a string contains no non-whitespace characters.", parameters: [{ name: "value", description: "The string to inspect.", required: true, schema: string }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -78,7 +78,7 @@ var stringApis = [
78
78
  defineApi({ id: "gutts.strings.truncateWords", name: "truncateWords", category: "strings", description: "Shortens a string to a maximum number of words and appends a suffix when truncation is required.", parameters: [{ name: "value", description: "The string to shorten.", required: true, schema: string }, { name: "maxWords", description: "The non-negative maximum number of words.", required: true, schema: { type: "number" } }, { name: "suffix", description: "The suffix used when truncation occurs.", required: false, schema: string }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when maxWords is negative."] })
79
79
  ];
80
80
 
81
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
81
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
82
82
  var string2 = { type: "string" };
83
83
  var urlApis = [
84
84
  defineApi({ id: "gutts.urls.isUrl", name: "isUrl", category: "urls", description: "Checks whether a string can be parsed as a URL by the standard URL constructor.", parameters: [{ name: "value", description: "The string to validate.", required: true, schema: string2 }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -87,7 +87,7 @@ var urlApis = [
87
87
  defineApi({ id: "gutts.urls.setQueryParam", name: "setQueryParam", category: "urls", description: "Returns a URL with one query-string parameter set to the supplied value.", parameters: [{ name: "url", description: "The URL to modify.", required: true, schema: string2 }, { name: "key", description: "The query parameter name.", required: true, schema: string2 }, { name: "value", description: "The query parameter value.", required: true, schema: string2 }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws when url cannot be parsed as a URL."] })
88
88
  ];
89
89
 
90
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
90
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
91
91
  var needle3Metadata = {
92
92
  id: "model.cactus-needle3",
93
93
  name: "Needle 3",
@@ -118,12 +118,12 @@ var needle3CompleteApi = defineApi({
118
118
  semantics: { deterministic: false, pure: false, sideEffects: false }
119
119
  });
120
120
 
121
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
121
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
122
122
  import fs from "fs";
123
123
  import path from "path";
124
124
  import os from "os";
125
125
 
126
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
126
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
127
127
  var smolLM2Metadata = {
128
128
  id: "model.smollm2-135m-instruct",
129
129
  name: "SmolLM2-135M-Instruct",
@@ -155,7 +155,7 @@ var smolLM2GenerateApi = defineApi({
155
155
  errors: ["Model load failure", "Inference failure"]
156
156
  });
157
157
 
158
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
158
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
159
159
  var whistleMetadata = {
160
160
  id: "model.cactus-whistle",
161
161
  name: "Whistle",
@@ -185,7 +185,7 @@ var whistleTranscribeApi = defineApi({
185
185
  semantics: { deterministic: true, pure: false, sideEffects: false }
186
186
  });
187
187
 
188
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
188
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
189
189
  var defineEttin = (id2, name, parameters, description) => ({
190
190
  id: id2,
191
191
  name,
@@ -220,7 +220,7 @@ var ettinRerankApi = defineApi({
220
220
  semantics: { deterministic: true, pure: false, sideEffects: false }
221
221
  });
222
222
 
223
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
223
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
224
224
  var miniLML6Metadata = {
225
225
  id: "model.minilm-l6-v2",
226
226
  name: "MiniLM-L6-v2",
@@ -251,7 +251,7 @@ var miniLMSimilarityApi = defineApi({
251
251
  semantics: { deterministic: true, pure: false, sideEffects: false }
252
252
  });
253
253
 
254
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
254
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
255
255
  var guttsApiDefinitions = Object.freeze([
256
256
  ...arrayApis,
257
257
  ...jsonApis,
@@ -267,7 +267,7 @@ var guttsApiDefinitions = Object.freeze([
267
267
  ]);
268
268
  var guttsApiById = Object.freeze(Object.fromEntries(guttsApiDefinitions.map((api) => [api.id, api])));
269
269
 
270
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
270
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
271
271
  var schemaType = (schema) => String(schema?.type ?? "any");
272
272
  function guttsApiToFodNode(api) {
273
273
  return {
@@ -283,7 +283,7 @@ function guttsApiToFodNode(api) {
283
283
  }
284
284
  var guttsFodNodeDefinitions = Object.freeze(guttsApiDefinitions.map(guttsApiToFodNode));
285
285
 
286
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
286
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
287
287
  var guttsModelDefinitions = Object.freeze([
288
288
  smolLM2Metadata,
289
289
  needle3Metadata,
@@ -22,6 +22,15 @@ import {
22
22
  WireTypeRegistry,
23
23
  initializeDefaultGraphRules
24
24
  } from "./chunk-TZOL3RN7.js";
25
+ import {
26
+ LifecycleCycleError,
27
+ LifecycleGraph,
28
+ SKIPO_STATE,
29
+ SkipoStateEngine,
30
+ useLifecycleScope,
31
+ useSkipoBind,
32
+ useSkipoState
33
+ } from "./chunk-EW4ACSZB.js";
25
34
  import {
26
35
  CommandApi,
27
36
  GhostStore,
@@ -49,21 +58,12 @@ import {
49
58
  import {
50
59
  CompatibilityMatrix
51
60
  } from "./chunk-ISFNY7EZ.js";
52
- import {
53
- LifecycleCycleError,
54
- LifecycleGraph,
55
- SKIPO_STATE,
56
- SkipoStateEngine,
57
- useLifecycleScope,
58
- useSkipoBind,
59
- useSkipoState
60
- } from "./chunk-EW4ACSZB.js";
61
61
  import "./chunk-QGM4M3NI.js";
62
62
 
63
63
  // ../../node_modules/.pnpm/@ultrst-armada+krnl@1.0.9_@types+node@22.20.5/node_modules/@ultrst-armada/krnl/packages/core/dist/index.js
64
64
  import { randomUUID } from "crypto";
65
65
 
66
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
66
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/define-api.js
67
67
  function defineApi(definition) {
68
68
  const properties = Object.fromEntries(definition.parameters.map((parameter) => [
69
69
  parameter.name,
@@ -84,7 +84,7 @@ function defineApi(definition) {
84
84
  });
85
85
  }
86
86
 
87
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
87
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/array-apis.js
88
88
  var array = { type: "array" };
89
89
  var integer = { type: "integer" };
90
90
  var arrayApis = [
@@ -95,7 +95,7 @@ var arrayApis = [
95
95
  defineApi({ id: "gutts.arrays.last", name: "last", category: "arrays", description: "Returns the final element of an array, or undefined when the array is empty.", parameters: [{ name: "values", description: "The array whose final element should be returned.", required: true, schema: array }], output: { description: "The final array element, or undefined for an empty array." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
96
96
  ];
97
97
 
98
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
98
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/json-apis.js
99
99
  var json = { type: "object", description: "A JSON-compatible value." };
100
100
  var jsonApis = [
101
101
  defineApi({ id: "gutts.json.isJsonValue", name: "isJsonValue", category: "json", description: "Checks whether an unknown value can be represented as a finite JSON value.", parameters: [{ name: "value", description: "The value to validate as JSON-compatible data.", required: true, schema: {} }], output: { type: "boolean", description: "True when the value is a valid JSON value." }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -104,7 +104,7 @@ var jsonApis = [
104
104
  defineApi({ id: "gutts.json.stringifyJson", name: "stringifyJson", category: "json", description: "Serializes a JSON-compatible value into JSON text, optionally using indentation.", parameters: [{ name: "value", description: "The JSON-compatible value to serialize.", required: true, schema: {} }, { name: "space", description: "Optional number of indentation spaces to use in the serialized output.", required: false, schema: { type: "number" } }], output: { type: "string", description: "The serialized JSON text." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws TypeError when the value cannot be serialized as JSON."] })
105
105
  ];
106
106
 
107
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
107
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/number-apis.js
108
108
  var numberApis = [
109
109
  defineApi({ id: "gutts.numbers.clamp", name: "clamp", category: "numbers", description: "Restricts a numeric value to an inclusive minimum and maximum range.", parameters: [{ name: "value", description: "The numeric value to constrain.", required: true, schema: { type: "number" } }, { name: "min", description: "The inclusive lower bound.", required: true, schema: { type: "number" } }, { name: "max", description: "The inclusive upper bound.", required: true, schema: { type: "number" } }], output: { type: "number", description: "The value constrained to the inclusive range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
110
110
  defineApi({ id: "gutts.numbers.inRange", name: "inRange", category: "numbers", description: "Checks whether a numeric value falls within the configured range.", parameters: [{ name: "value", description: "The numeric value to test.", required: true, schema: { type: "number" } }, { name: "min", description: "The lower range boundary.", required: true, schema: { type: "number" } }, { name: "max", description: "The upper range boundary.", required: true, schema: { type: "number" } }], output: { type: "boolean", description: "Whether the value is inside the range." }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when min exceeds max."] }),
@@ -113,7 +113,7 @@ var numberApis = [
113
113
  defineApi({ id: "gutts.numbers.sum", name: "sum", category: "numbers", description: "Adds all numbers in an array and returns their total.", parameters: [{ name: "values", description: "The numeric values to add.", required: true, schema: { type: "array", items: { type: "number" } } }], output: { type: "number", description: "The sum of all input numbers." }, semantics: { deterministic: true, pure: true, sideEffects: false } })
114
114
  ];
115
115
 
116
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
116
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/object-apis.js
117
117
  var objectApis = [
118
118
  defineApi({ id: "gutts.objects.hasOwn", name: "hasOwn", category: "objects", description: "Checks whether an object contains a requested property.", parameters: [{ name: "value", description: "The object to inspect.", required: true, schema: { type: "object" } }, { name: "key", description: "The property key to look for.", required: true, schema: { type: "string" } }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
119
119
  defineApi({ id: "gutts.objects.pick", name: "pick", category: "objects", description: "Creates an object containing only requested properties.", parameters: [{ name: "value", description: "The source object.", required: true, schema: { type: "object" } }, { name: "keys", description: "The property keys to retain.", required: true, schema: { type: "array", items: { type: "string" } } }], output: { type: "object" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -121,7 +121,7 @@ var objectApis = [
121
121
  defineApi({ id: "gutts.objects.isPlainObject", name: "isPlainObject", category: "objects", description: "Checks whether a value is a plain JavaScript object.", parameters: [{ name: "value", description: "The value to classify.", required: true, schema: {} }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } })
122
122
  ];
123
123
 
124
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
124
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/string-apis.js
125
125
  var string = { type: "string" };
126
126
  var stringApis = [
127
127
  defineApi({ id: "gutts.strings.isBlank", name: "isBlank", category: "strings", description: "Checks whether a string contains no non-whitespace characters.", parameters: [{ name: "value", description: "The string to inspect.", required: true, schema: string }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -137,7 +137,7 @@ var stringApis = [
137
137
  defineApi({ id: "gutts.strings.truncateWords", name: "truncateWords", category: "strings", description: "Shortens a string to a maximum number of words and appends a suffix when truncation is required.", parameters: [{ name: "value", description: "The string to shorten.", required: true, schema: string }, { name: "maxWords", description: "The non-negative maximum number of words.", required: true, schema: { type: "number" } }, { name: "suffix", description: "The suffix used when truncation occurs.", required: false, schema: string }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws RangeError when maxWords is negative."] })
138
138
  ];
139
139
 
140
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
140
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/url-apis.js
141
141
  var string2 = { type: "string" };
142
142
  var urlApis = [
143
143
  defineApi({ id: "gutts.urls.isUrl", name: "isUrl", category: "urls", description: "Checks whether a string can be parsed as a URL by the standard URL constructor.", parameters: [{ name: "value", description: "The string to validate.", required: true, schema: string2 }], output: { type: "boolean" }, semantics: { deterministic: true, pure: true, sideEffects: false } }),
@@ -146,7 +146,7 @@ var urlApis = [
146
146
  defineApi({ id: "gutts.urls.setQueryParam", name: "setQueryParam", category: "urls", description: "Returns a URL with one query-string parameter set to the supplied value.", parameters: [{ name: "url", description: "The URL to modify.", required: true, schema: string2 }, { name: "key", description: "The query parameter name.", required: true, schema: string2 }, { name: "value", description: "The query parameter value.", required: true, schema: string2 }], output: { type: "string" }, semantics: { deterministic: true, pure: true, sideEffects: false }, errors: ["Throws when url cannot be parsed as a URL."] })
147
147
  ];
148
148
 
149
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
149
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/needle3/index.js
150
150
  var needle3Metadata = {
151
151
  id: "model.cactus-needle3",
152
152
  name: "Needle 3",
@@ -177,12 +177,12 @@ var needle3CompleteApi = defineApi({
177
177
  semantics: { deterministic: false, pure: false, sideEffects: false }
178
178
  });
179
179
 
180
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
180
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/runtimes/ettin-head.js
181
181
  import fs from "fs";
182
182
  import path from "path";
183
183
  import os from "os";
184
184
 
185
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
185
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/smollm2/index.js
186
186
  var smolLM2Metadata = {
187
187
  id: "model.smollm2-135m-instruct",
188
188
  name: "SmolLM2-135M-Instruct",
@@ -214,7 +214,7 @@ var smolLM2GenerateApi = defineApi({
214
214
  errors: ["Model load failure", "Inference failure"]
215
215
  });
216
216
 
217
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
217
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/whistle/index.js
218
218
  var whistleMetadata = {
219
219
  id: "model.cactus-whistle",
220
220
  name: "Whistle",
@@ -244,7 +244,7 @@ var whistleTranscribeApi = defineApi({
244
244
  semantics: { deterministic: true, pure: false, sideEffects: false }
245
245
  });
246
246
 
247
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
247
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/ettin/index.js
248
248
  var defineEttin = (id2, name, parameters, description) => ({
249
249
  id: id2,
250
250
  name,
@@ -279,7 +279,7 @@ var ettinRerankApi = defineApi({
279
279
  semantics: { deterministic: true, pure: false, sideEffects: false }
280
280
  });
281
281
 
282
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
282
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/minilm/index.js
283
283
  var miniLML6Metadata = {
284
284
  id: "model.minilm-l6-v2",
285
285
  name: "MiniLM-L6-v2",
@@ -310,7 +310,7 @@ var miniLMSimilarityApi = defineApi({
310
310
  semantics: { deterministic: true, pure: false, sideEffects: false }
311
311
  });
312
312
 
313
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
313
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/api-registry.js
314
314
  var guttsApiDefinitions = Object.freeze([
315
315
  ...arrayApis,
316
316
  ...jsonApis,
@@ -326,7 +326,7 @@ var guttsApiDefinitions = Object.freeze([
326
326
  ]);
327
327
  var guttsApiById = Object.freeze(Object.fromEntries(guttsApiDefinitions.map((api) => [api.id, api])));
328
328
 
329
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
329
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/api/fod-node-provider.js
330
330
  var schemaType = (schema) => String(schema?.type ?? "any");
331
331
  function guttsApiToFodNode(api) {
332
332
  return {
@@ -342,7 +342,7 @@ function guttsApiToFodNode(api) {
342
342
  }
343
343
  var guttsFodNodeDefinitions = Object.freeze(guttsApiDefinitions.map(guttsApiToFodNode));
344
344
 
345
- // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
345
+ // ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.4_@types+node@22.20.5/node_modules/@dinilmusick/gutts/dist/models/model-registry.js
346
346
  var guttsModelDefinitions = Object.freeze([
347
347
  smolLM2Metadata,
348
348
  needle3Metadata,