@ultrst-armada/kloks 1.24.4 → 1.24.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.krusbl-release-attestation.json +3 -3
- package/README.md +11 -0
- package/package.json +15 -12
- package/packages/audio-midi/dist/index.js +16 -16
- package/packages/backend/dist/ai-inference/index.js +0 -1
- package/packages/backend/dist/ai-keys/index.js +0 -1
- package/packages/backend/dist/ai-models/index.js +0 -1
- package/packages/backend/dist/ai-provider/index.js +0 -1
- package/packages/backend/dist/ai-routing/index.js +0 -1
- package/packages/backend/dist/ai-tools/index.js +0 -1
- package/packages/backend/dist/api/index.js +0 -1
- package/packages/backend/dist/auth/index.d.ts +5 -74
- package/packages/backend/dist/auth/index.js +16 -19
- package/packages/backend/dist/{chunk-2OPIDIIB.js → chunk-3VWBZEMG.js} +26 -2
- package/packages/backend/dist/{chunk-AHJ2EWQW.js → chunk-6D55GT3L.js} +9 -28
- package/packages/backend/dist/chunk-ED32WV3T.js +75 -0
- package/packages/backend/dist/chunk-EO5VUYYU.js +20 -0
- package/packages/backend/dist/{chunk-B3VJ4HDV.js → chunk-JOTDEFRG.js} +1 -1
- package/packages/backend/dist/{chunk-OB65KZ2M.js → chunk-M45KQRPR.js} +1 -1
- package/packages/backend/dist/chunk-SXDYW3QA.js +579 -0
- package/packages/backend/dist/client/index.js +0 -1
- package/packages/backend/dist/connectivity/index.js +0 -1
- package/packages/backend/dist/control-plane/index.d.ts +3 -3
- package/packages/backend/dist/control-plane/index.js +0 -1
- package/packages/backend/dist/development/client.d.ts +20 -6
- package/packages/backend/dist/development/client.js +42 -28
- package/packages/backend/dist/development/index.d.ts +20 -6
- package/packages/backend/dist/development/index.js +652 -30
- package/packages/backend/dist/development/playwrightInspectionService.js +2 -3
- package/packages/backend/dist/development/playwrightInspectionTypes.d.ts +1 -0
- package/packages/backend/dist/index.d.ts +3 -57
- package/packages/backend/dist/index.js +44 -188
- package/packages/backend/dist/krnl-ai-services.js +2 -3
- package/packages/backend/dist/krnl-services.js +6 -7
- package/packages/backend/dist/services/index.js +4 -5
- package/packages/backend/dist/srkl/index.js +1 -2
- package/packages/backend/dist/storage/index.js +0 -1
- package/packages/backend/dist/workspace/index.js +0 -1
- package/packages/backend/package.json +3 -10
- package/packages/client/dist/index.d.ts +2 -0
- package/packages/client/dist/index.js +29 -1
- package/packages/client/package.json +2 -1
- package/packages/fod/dist/index.d.ts +11 -1
- package/packages/fod/dist/index.js +2 -0
- package/packages/fod/package.json +2 -3
- package/packages/functions/dist/index.js +16 -16
- package/packages/functions/package.json +2 -1
- package/packages/services/dist/index.d.ts +46 -1
- package/packages/services/dist/index.js +96 -18
- package/packages/services/kloks.manifest.json +19 -0
- package/packages/state-graph/dist/index.js +25 -25
- package/packages/backend/dist/BaseAccountProvider-DduKf5HG.d.ts +0 -66
- package/packages/backend/dist/chunk-2HCQ2SIR.js +0 -213
- package/packages/backend/dist/chunk-A3BE6ROS.js +0 -180
- package/packages/backend/dist/chunk-FJ5LZFBV.js +0 -667
- package/packages/backend/dist/chunk-MWSYNRNZ.js +0 -871
- package/packages/backend/dist/chunk-QGM4M3NI.js +0 -37
- package/packages/backend/dist/dist-XMSSRYDR.js +0 -899
- package/packages/backend/dist/transformers.node-HWHOAE4H.js +0 -43879
- package/packages/backend/dist/{chunk-IGZB4RYT.js → chunk-R6ZNF6FW.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kloks/backend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Kloks Backend Services — Auth, Storage, Workspace, Control Plane, API, Connectivity & Execution built on KrnlTS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -110,11 +110,12 @@
|
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"scripts": {
|
|
113
|
-
"build": "tsup src/index.ts src/krnl-services.ts src/krnl-ai-services.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/development/playwrightInspectionService.ts src/development/playwrightInspectionTypes.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts --format esm --dts --clean --external @kloks/functions --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external
|
|
113
|
+
"build": "tsup src/index.ts src/krnl-services.ts src/krnl-ai-services.ts src/services/index.ts src/auth/index.ts src/storage/index.ts src/workspace/index.ts src/control-plane/index.ts src/api/index.ts src/connectivity/index.ts src/client/index.ts src/srkl/index.ts src/development/index.ts src/development/playwrightInspectionService.ts src/development/playwrightInspectionTypes.ts src/ai-provider/index.ts src/ai-inference/index.ts src/ai-models/index.ts src/ai-routing/index.ts src/ai-keys/index.ts src/ai-tools/index.ts --format esm --dts --clean --external @kloks/functions --external react --external @kloks/state-graph --external @neondatabase/serverless --external @supabase/supabase-js --external @aws-sdk/client-s3 --external @aws-sdk/lib-storage --external zod --external ws --external @webcontainer/api --external playwright && tsup src/development/client.ts --format esm --dts --out-dir dist/development --splitting false --platform browser --external @ultrst-armada/krnl",
|
|
114
114
|
"typecheck": "tsc --noEmit",
|
|
115
115
|
"clean": "rm -rf dist"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
+
"@dinilmusick/gutts": "^1.4.3",
|
|
118
119
|
"@kloks/functions": "workspace:*",
|
|
119
120
|
"@kloks/state-graph": "workspace:*",
|
|
120
121
|
"@webcontainer/api": "^1.6.4"
|
|
@@ -124,15 +125,10 @@
|
|
|
124
125
|
"@aws-sdk/lib-storage": "^3.600.0",
|
|
125
126
|
"@neondatabase/serverless": "^0.10.0",
|
|
126
127
|
"@supabase/supabase-js": "^2.45.0",
|
|
127
|
-
"bcryptjs": "^2.4.3",
|
|
128
|
-
"better-sqlite3": "^11.0.0",
|
|
129
128
|
"react": "^18.0.0 || ^19.0.0",
|
|
130
129
|
"zod": "^3.22.0"
|
|
131
130
|
},
|
|
132
131
|
"peerDependenciesMeta": {
|
|
133
|
-
"better-sqlite3": {
|
|
134
|
-
"optional": true
|
|
135
|
-
},
|
|
136
132
|
"@aws-sdk/client-s3": {
|
|
137
133
|
"optional": true
|
|
138
134
|
},
|
|
@@ -145,9 +141,6 @@
|
|
|
145
141
|
"@neondatabase/serverless": {
|
|
146
142
|
"optional": true
|
|
147
143
|
},
|
|
148
|
-
"bcryptjs": {
|
|
149
|
-
"optional": true
|
|
150
|
-
},
|
|
151
144
|
"zod": {
|
|
152
145
|
"optional": true
|
|
153
146
|
},
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { LuthAuthClient as CanonicalAuthClient, DEFAULT_LUTH_URL, DeploymentEnvironment, EmailSignInCredentials, EmailSignUpData, GoogleSignInOptions, LuthAuthClient, LuthAuthClientConfig, LuthAuthError, LuthAuthTokenStore, LuthSession, LuthSessionResult, LuthUser, RegisterApplicationResult, createLuthAuthClient as createCanonicalAuthClient, createLuthAuthClient, hydrateLuthTokenFromUrl, resolveClientEnvironment, resolveClientOrigin } from '@dinilmusick/gutts/auth';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @file queueContracts.ts
|
|
3
5
|
* @description Pure browser-safe command, job, queue, and execution contracts.
|
|
@@ -170,9 +170,37 @@ var OPFSWorkspaceStorage = class {
|
|
|
170
170
|
return result;
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
|
+
|
|
174
|
+
// src/canonicalAuthClient.ts
|
|
175
|
+
import {
|
|
176
|
+
LuthAuthClient,
|
|
177
|
+
createLuthAuthClient,
|
|
178
|
+
resolveClientOrigin,
|
|
179
|
+
resolveClientEnvironment
|
|
180
|
+
} from "@dinilmusick/gutts/auth";
|
|
181
|
+
import { LuthAuthError } from "@dinilmusick/gutts/auth";
|
|
182
|
+
import { LuthAuthClient as LuthAuthClient2 } from "@dinilmusick/gutts/auth";
|
|
183
|
+
import { createLuthAuthClient as createLuthAuthClient2 } from "@dinilmusick/gutts/auth";
|
|
184
|
+
|
|
185
|
+
// src/auth.ts
|
|
186
|
+
import {
|
|
187
|
+
LuthAuthClient as LuthAuthClient3,
|
|
188
|
+
createLuthAuthClient as createLuthAuthClient3,
|
|
189
|
+
hydrateLuthTokenFromUrl,
|
|
190
|
+
resolveClientOrigin as resolveClientOrigin2,
|
|
191
|
+
resolveClientEnvironment as resolveClientEnvironment2,
|
|
192
|
+
LuthAuthError as LuthAuthError2,
|
|
193
|
+
DEFAULT_LUTH_URL
|
|
194
|
+
} from "@dinilmusick/gutts/auth";
|
|
195
|
+
import {
|
|
196
|
+
LuthAuthClient as LuthAuthClient4,
|
|
197
|
+
createLuthAuthClient as createLuthAuthClient4
|
|
198
|
+
} from "@dinilmusick/gutts/auth";
|
|
173
199
|
export {
|
|
174
200
|
BrowserExecutionClient,
|
|
201
|
+
DEFAULT_LUTH_URL,
|
|
175
202
|
OPFSWorkspaceStorage,
|
|
176
203
|
WorkspaceAutosaveController,
|
|
177
|
-
createBrowserExecutionClient
|
|
204
|
+
createBrowserExecutionClient,
|
|
205
|
+
hydrateLuthTokenFromUrl
|
|
178
206
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kloks/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Kloks Browser-Safe Execution Client & Shared Contracts with Zero Server Closure",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"clean": "rm -rf dist"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@dinilmusick/gutts": "^1.4.3",
|
|
28
29
|
"zod": "^3.24.1"
|
|
29
30
|
},
|
|
30
31
|
"peerDependencies": {
|
|
@@ -151,5 +151,15 @@ declare function createFodServiceFacadeForWorkspace(buildRuntime: (workspaceId:
|
|
|
151
151
|
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
152
152
|
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
153
153
|
};
|
|
154
|
+
declare const FodServiceFacade: {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
version: string;
|
|
158
|
+
runtime: "server";
|
|
159
|
+
deployment: "local";
|
|
160
|
+
definition: ServiceDefinition<Record<string, unknown>, Record<string, unknown>>;
|
|
161
|
+
createInstance: () => _ultrst_armada_krnl.ServiceInstance<Record<string, unknown>, Record<string, unknown>>;
|
|
162
|
+
execute: <TIn = unknown, TOut = unknown>(op: string, input?: TIn) => Promise<TOut>;
|
|
163
|
+
};
|
|
154
164
|
|
|
155
|
-
export { type FodEndpointDescriptor, type FodExecutionEvent, type FodExecutionResult, type FodFlow, type FodFlowEdge, type FodFlowNode, FodFlowStore, type FodNodeCategory, type FodNodeDefinition, type FodPort, type FodPortDirection, FodRuntime, type FodRuntimeOptions, createFodServiceFacade, createFodServiceFacadeForWorkspace, endpointToNode, executeFodFlow, scanBackendFacade, scanBackendFacadeToNodes };
|
|
165
|
+
export { type FodEndpointDescriptor, type FodExecutionEvent, type FodExecutionResult, type FodFlow, type FodFlowEdge, type FodFlowNode, FodFlowStore, type FodNodeCategory, type FodNodeDefinition, type FodPort, type FodPortDirection, FodRuntime, type FodRuntimeOptions, FodServiceFacade, createFodServiceFacade, createFodServiceFacadeForWorkspace, endpointToNode, executeFodFlow, scanBackendFacade, scanBackendFacadeToNodes };
|
|
@@ -249,9 +249,11 @@ function createFodServiceFacadeForWorkspace(buildRuntime) {
|
|
|
249
249
|
return service.call(op, input);
|
|
250
250
|
} };
|
|
251
251
|
}
|
|
252
|
+
var FodServiceFacade = createFodServiceFacade(new FodRuntime({ workspaceId: "default", workspaceService: null }));
|
|
252
253
|
export {
|
|
253
254
|
FodFlowStore,
|
|
254
255
|
FodRuntime,
|
|
256
|
+
FodServiceFacade,
|
|
255
257
|
createFodServiceFacade,
|
|
256
258
|
createFodServiceFacadeForWorkspace,
|
|
257
259
|
endpointToNode,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@kloks
|
|
2
|
+
"name": "@ultrst-armada/kloks-fod",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"description": "Embedded FOD workflow orchestration module for Skipo applications.",
|
|
5
5
|
"type": "module",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"clean": "rm -rf dist"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@kloks
|
|
29
|
-
"@kloks/state-graph": "workspace:*"
|
|
28
|
+
"@ultrst-armada/kloks": "workspace:*"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@ultrst-armada/krnl": "^1.0.9",
|
|
@@ -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.
|
|
6
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
27
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
38
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
47
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
56
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
64
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
80
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
89
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
120
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
125
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
157
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
187
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
222
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
253
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
269
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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.
|
|
285
|
+
// ../../node_modules/.pnpm/@dinilmusick+gutts@1.4.3_@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,
|
|
@@ -524,6 +524,51 @@ declare class CommandVerificationProvider {
|
|
|
524
524
|
verify(steps: readonly VerificationStep[]): Promise<VerificationReport>;
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
+
type ServiceMatchClass = 'exact' | 'compatible' | 'related' | 'none';
|
|
528
|
+
interface ServiceOperationIdentity {
|
|
529
|
+
id?: string;
|
|
530
|
+
name: string;
|
|
531
|
+
description?: string;
|
|
532
|
+
inputs?: Record<string, string>;
|
|
533
|
+
outputs?: Record<string, string>;
|
|
534
|
+
}
|
|
535
|
+
interface ServiceIdentity {
|
|
536
|
+
id: string;
|
|
537
|
+
name: string;
|
|
538
|
+
version: string;
|
|
539
|
+
description: string;
|
|
540
|
+
operations: ServiceOperationIdentity[];
|
|
541
|
+
capabilities?: string[];
|
|
542
|
+
source?: {
|
|
543
|
+
repository?: string;
|
|
544
|
+
path?: string;
|
|
545
|
+
sha?: string;
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
interface ServiceMatchEvidence {
|
|
549
|
+
kind: 'identity' | 'operations' | 'inputs' | 'outputs' | 'text' | 'version';
|
|
550
|
+
score: number;
|
|
551
|
+
detail: string;
|
|
552
|
+
}
|
|
553
|
+
interface ServiceMatch {
|
|
554
|
+
candidate: ServiceIdentity;
|
|
555
|
+
similarity: number;
|
|
556
|
+
matchClass: ServiceMatchClass;
|
|
557
|
+
reuseRecommendation: 'reuse-exact' | 'reuse-compatible' | 'inspect-related' | 'implement-new';
|
|
558
|
+
evidence: ServiceMatchEvidence[];
|
|
559
|
+
}
|
|
560
|
+
declare const buildServiceIdentity: (service: ServiceIdentity) => ServiceIdentity;
|
|
561
|
+
declare const compareServices: (query: ServiceIdentity, candidate: ServiceIdentity) => ServiceMatch;
|
|
562
|
+
declare class KLOKSServiceIndex {
|
|
563
|
+
private readonly services;
|
|
564
|
+
register(service: ServiceIdentity): ServiceIdentity;
|
|
565
|
+
registerMany(services: ServiceIdentity[]): void;
|
|
566
|
+
get(id: string): ServiceIdentity | undefined;
|
|
567
|
+
list(): ServiceIdentity[];
|
|
568
|
+
findMatches(query: ServiceIdentity, minimumClass?: ServiceMatchClass): ServiceMatch[];
|
|
569
|
+
recommendReuse(query: ServiceIdentity): ServiceMatch | null;
|
|
570
|
+
}
|
|
571
|
+
|
|
527
572
|
interface ServiceFacade<TState extends Record<string, unknown> = Record<string, unknown>, TEvents extends Record<string, unknown> = Record<string, unknown>> {
|
|
528
573
|
readonly id: string;
|
|
529
574
|
readonly name: string;
|
|
@@ -580,4 +625,4 @@ declare const krnlServiceDDefinition: ServiceDefinition<Record<string, unknown>,
|
|
|
580
625
|
declare const krnlServiceDFacade: ServiceFacade<Record<string, unknown>, Record<string, unknown>>;
|
|
581
626
|
declare const krnlExposeServiceD: typeof exposeServiceD;
|
|
582
627
|
|
|
583
|
-
export { AuthClientServiceDefinition, AuthClientServiceFacade, type AuthListener, AuthService, AuthServiceUISchema, CLEAN_DATABASE_CLUSTER, CommandVerificationProvider, type CounterState, DEFAULT_CONNECTIONS, type EcosystemServiceCategory, type GitHubFile, GitHubVcsProvider, type GitHubVcsProviderOptions, type IAuthStore, LocalExecutionProvider, type LocalExecutionRequest, type LocalExecutionResult, LocalWorkspaceProvider, type MathInput, MonacoIdeServiceDefinition, MonacoIdeServiceFacade, type ProtocolExposureHandle, STORAGE_KEY_CONNECTIONS, ServiceADefinition, ServiceAFacade, ServiceBDefinition, ServiceBFacade, ServiceCDefinition, ServiceCFacade, ServiceDDefinition, ServiceDFacade, type ServiceFacade, type SrklAccount, SrklAccountClient, type SrklAccountClientOptions, type SrklAccountManifest, type SrklAccountSyncResult, StorageClientServiceDefinition, StorageClientServiceFacade, StorageService, StorageServiceUISchema, SystemDbClientServiceDefinition, SystemDbClientServiceFacade, SystemDbService, SystemDbServiceUISchema, type SystemEnvironmentStatus, type SystemTelemetry, type TelemetryEvents, UIAuthoringServiceDefinition, UIAuthoringServiceFacade, type VerificationReport, type VerificationStep, type Workspace, authService, clearSession, createMonacoIdeService, createServiceB, createServiceC, createSrklAccountClient, createUIAuthoringService, createWorkspace, deleteWorkspace, exposeServiceD, fetchWorkspaces, krnlAuthClientServiceDefinition, krnlAuthClientServiceFacade, krnlCreateServiceB, krnlCreateServiceC, krnlExposeServiceD, krnlServiceADefinition, krnlServiceAFacade, krnlServiceBDefinition, krnlServiceBFacade, krnlServiceCDefinition, krnlServiceCFacade, krnlServiceDDefinition, krnlServiceDFacade, krnlStorageClientServiceDefinition, krnlStorageClientServiceFacade, krnlSystemDbClientServiceDefinition, krnlSystemDbClientServiceFacade, loadDatabase, loginAdmin, loginUser, mergeSrklAccounts, persistDatabase, register, restoreSession, setActiveWorkspace, setSession, storageService, systemDbService, updateWorkspace, verifyPassword };
|
|
628
|
+
export { AuthClientServiceDefinition, AuthClientServiceFacade, type AuthListener, AuthService, AuthServiceUISchema, CLEAN_DATABASE_CLUSTER, CommandVerificationProvider, type CounterState, DEFAULT_CONNECTIONS, type EcosystemServiceCategory, type GitHubFile, GitHubVcsProvider, type GitHubVcsProviderOptions, type IAuthStore, KLOKSServiceIndex, LocalExecutionProvider, type LocalExecutionRequest, type LocalExecutionResult, LocalWorkspaceProvider, type MathInput, MonacoIdeServiceDefinition, MonacoIdeServiceFacade, type ProtocolExposureHandle, STORAGE_KEY_CONNECTIONS, ServiceADefinition, ServiceAFacade, ServiceBDefinition, ServiceBFacade, ServiceCDefinition, ServiceCFacade, ServiceDDefinition, ServiceDFacade, type ServiceFacade, type ServiceIdentity, type ServiceMatch, type ServiceMatchClass, type ServiceMatchEvidence, type ServiceOperationIdentity, type SrklAccount, SrklAccountClient, type SrklAccountClientOptions, type SrklAccountManifest, type SrklAccountSyncResult, StorageClientServiceDefinition, StorageClientServiceFacade, StorageService, StorageServiceUISchema, SystemDbClientServiceDefinition, SystemDbClientServiceFacade, SystemDbService, SystemDbServiceUISchema, type SystemEnvironmentStatus, type SystemTelemetry, type TelemetryEvents, UIAuthoringServiceDefinition, UIAuthoringServiceFacade, type VerificationReport, type VerificationStep, type Workspace, authService, buildServiceIdentity, clearSession, compareServices, createMonacoIdeService, createServiceB, createServiceC, createSrklAccountClient, createUIAuthoringService, createWorkspace, deleteWorkspace, exposeServiceD, fetchWorkspaces, krnlAuthClientServiceDefinition, krnlAuthClientServiceFacade, krnlCreateServiceB, krnlCreateServiceC, krnlExposeServiceD, krnlServiceADefinition, krnlServiceAFacade, krnlServiceBDefinition, krnlServiceBFacade, krnlServiceCDefinition, krnlServiceCFacade, krnlServiceDDefinition, krnlServiceDFacade, krnlStorageClientServiceDefinition, krnlStorageClientServiceFacade, krnlSystemDbClientServiceDefinition, krnlSystemDbClientServiceFacade, loadDatabase, loginAdmin, loginUser, mergeSrklAccounts, persistDatabase, register, restoreSession, setActiveWorkspace, setSession, storageService, systemDbService, updateWorkspace, verifyPassword };
|