@codeworksh/plugin 0.0.1-dev.20260922135956 → 0.0.1-dev.20260925125033
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/{event-D3SNh03N.d.mts → event-BixB94Zu.d.mts} +19 -19
- package/event.d.mts +1 -1
- package/index.d.mts +1 -1
- package/package.json +2 -8
- package/{plugin-CxD9ZR7B.d.mts → plugin-Cj0MJjZG.d.mts} +3 -3
- package/plugin.d.mts +1 -1
- package/sandbox.d.mts +5 -3
- package/sandbox.mjs +12 -2
- package/sandbox.mjs.map +1 -1
- package/{settings-CYL6yyDD.d.mts → settings-bbJi7FiQ.d.mts} +21 -7
- package/settings.d.mts +1 -1
- package/settings.mjs.map +1 -1
- package/sandbox/error.d.mts +0 -7
- package/sandbox/error.mjs +0 -15
- package/sandbox/error.mjs.map +0 -1
|
@@ -8,7 +8,7 @@ declare namespace event_d_exports {
|
|
|
8
8
|
*/
|
|
9
9
|
declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
10
10
|
role: "assistant";
|
|
11
|
-
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
11
|
+
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
12
12
|
provider: {
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
@@ -147,6 +147,14 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
147
147
|
completed: number;
|
|
148
148
|
};
|
|
149
149
|
parts: ({
|
|
150
|
+
type: "text";
|
|
151
|
+
text: string;
|
|
152
|
+
textSignature?: string;
|
|
153
|
+
} | {
|
|
154
|
+
type: "image";
|
|
155
|
+
data: string;
|
|
156
|
+
mimeType: string;
|
|
157
|
+
} | {
|
|
150
158
|
addedToolNames?: string[];
|
|
151
159
|
arguments: Record<string, any>;
|
|
152
160
|
callID: string;
|
|
@@ -250,14 +258,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
250
258
|
end: number;
|
|
251
259
|
};
|
|
252
260
|
type: "toolCall";
|
|
253
|
-
} | {
|
|
254
|
-
type: "text";
|
|
255
|
-
text: string;
|
|
256
|
-
textSignature?: string;
|
|
257
|
-
} | {
|
|
258
|
-
type: "image";
|
|
259
|
-
data: string;
|
|
260
|
-
mimeType: string;
|
|
261
261
|
} | {
|
|
262
262
|
type: "thinking";
|
|
263
263
|
thinking: string;
|
|
@@ -308,7 +308,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
308
308
|
messageId: string;
|
|
309
309
|
}, {
|
|
310
310
|
role: "assistant";
|
|
311
|
-
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
311
|
+
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
312
312
|
provider: {
|
|
313
313
|
id: string;
|
|
314
314
|
name: string;
|
|
@@ -447,6 +447,14 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
447
447
|
completed: number;
|
|
448
448
|
};
|
|
449
449
|
parts: ({
|
|
450
|
+
type: "text";
|
|
451
|
+
text: string;
|
|
452
|
+
textSignature?: string;
|
|
453
|
+
} | {
|
|
454
|
+
type: "image";
|
|
455
|
+
data: string;
|
|
456
|
+
mimeType: string;
|
|
457
|
+
} | {
|
|
450
458
|
addedToolNames?: string[];
|
|
451
459
|
arguments: Record<string, any>;
|
|
452
460
|
callID: string;
|
|
@@ -550,14 +558,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
550
558
|
end: number;
|
|
551
559
|
};
|
|
552
560
|
type: "toolCall";
|
|
553
|
-
} | {
|
|
554
|
-
type: "text";
|
|
555
|
-
text: string;
|
|
556
|
-
textSignature?: string;
|
|
557
|
-
} | {
|
|
558
|
-
type: "image";
|
|
559
|
-
data: string;
|
|
560
|
-
mimeType: string;
|
|
561
561
|
} | {
|
|
562
562
|
type: "thinking";
|
|
563
563
|
thinking: string;
|
|
@@ -892,4 +892,4 @@ declare function durable<const Definitions extends ReadonlyArray<Definition>>(de
|
|
|
892
892
|
declare function latest(definitions: ReadonlyArray<Definition>): ReadonlyMap<string, Definition<string, Schema.Codec<unknown, unknown, never, never>>>;
|
|
893
893
|
//#endregion
|
|
894
894
|
export { ID as a, define as c, inventory as d, latest as f, Definition as i, durable as l, AikitToolCallTerminalPart as n, Payload as o, versionedType as p, Data as r, PublishOptions as s, AikitAssistantMessage as t, event_d_exports as u };
|
|
895
|
-
//# sourceMappingURL=event-
|
|
895
|
+
//# sourceMappingURL=event-BixB94Zu.d.mts.map
|
package/event.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ID, c as define, d as inventory, f as latest, i as Definition, l as durable, n as AikitToolCallTerminalPart, o as Payload, p as versionedType, r as Data, s as PublishOptions, t as AikitAssistantMessage, u as event_d_exports } from "./event-
|
|
1
|
+
import { a as ID, c as define, d as inventory, f as latest, i as Definition, l as durable, n as AikitToolCallTerminalPart, o as Payload, p as versionedType, r as Data, s as PublishOptions, t as AikitAssistantMessage, u as event_d_exports } from "./event-BixB94Zu.mjs";
|
|
2
2
|
export { AikitAssistantMessage, AikitToolCallTerminalPart, Data, Definition, event_d_exports as EventSchema, ID, Payload, PublishOptions, define, durable, inventory, latest, versionedType };
|
package/index.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeworksh/plugin",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.20260925125033",
|
|
4
4
|
"description": "SDK for building CodeWork plugins — the plugin, tool, and sandbox contracts shared with @codeworksh/harness.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -65,11 +65,6 @@
|
|
|
65
65
|
"import": "./sandbox/errors.mjs",
|
|
66
66
|
"default": "./sandbox/errors.mjs"
|
|
67
67
|
},
|
|
68
|
-
"./sandbox/error": {
|
|
69
|
-
"types": "./sandbox/error.d.mts",
|
|
70
|
-
"import": "./sandbox/error.mjs",
|
|
71
|
-
"default": "./sandbox/error.mjs"
|
|
72
|
-
},
|
|
73
68
|
"./sandbox/instance": {
|
|
74
69
|
"types": "./sandbox/instance.d.mts",
|
|
75
70
|
"import": "./sandbox/instance.mjs",
|
|
@@ -164,12 +159,11 @@
|
|
|
164
159
|
"node": ">=24.14.1"
|
|
165
160
|
},
|
|
166
161
|
"dependencies": {
|
|
167
|
-
"@codeworksh/aikit": "0.8.0",
|
|
168
|
-
"tslib": "^2.8.1",
|
|
169
162
|
"typebox": "^1.3.30",
|
|
170
163
|
"uuidv7": "^1.2.1"
|
|
171
164
|
},
|
|
172
165
|
"peerDependencies": {
|
|
166
|
+
"@codeworksh/aikit": "^0.9.2",
|
|
173
167
|
"effect": "4.0.0-rc.115"
|
|
174
168
|
}
|
|
175
169
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as Definition, o as Payload, r as Data, s as PublishOptions } from "./event-
|
|
1
|
+
import { i as Definition, o as Payload, r as Data, s as PublishOptions } from "./event-BixB94Zu.mjs";
|
|
2
2
|
import { n as SessionID } from "./ids-CHjmAdTc.mjs";
|
|
3
3
|
import { r as Info, s as Service } from "./location-D4hAfuXF.mjs";
|
|
4
4
|
import { a as Provides, r as Identity, u as io_d_exports } from "./io-BYs7hbiY.mjs";
|
|
5
|
-
import { r as Info$1 } from "./settings-
|
|
5
|
+
import { r as Info$1 } from "./settings-bbJi7FiQ.mjs";
|
|
6
6
|
import { n as prompt_d_exports, t as PromptRegistry } from "./prompt-BcpagjGh.mjs";
|
|
7
7
|
import { d as ToolRegistry, p as tool_d_exports } from "./tool-BoVqkYvL.mjs";
|
|
8
8
|
import { Model } from "@codeworksh/aikit";
|
|
@@ -137,4 +137,4 @@ declare namespace plugin_d_exports {
|
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
139
|
export { define as a, PluginOptions as c, PluginSpec as d, Config as f, PluginRegistry as g, SharedPluginContext as h, PluginKind as i, PluginPatch as l, PromptResolver as m, Mount as n, domains as o, Events as p, Plugin as r, rank as s, plugin_d_exports as t, PluginRef as u };
|
|
140
|
-
//# sourceMappingURL=plugin-
|
|
140
|
+
//# sourceMappingURL=plugin-Cj0MJjZG.d.mts.map
|
package/plugin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as prompt_d_exports } from "./prompt-BcpagjGh.mjs";
|
|
2
2
|
import { p as tool_d_exports } from "./tool-BoVqkYvL.mjs";
|
|
3
|
-
import { a as define, c as PluginOptions, d as PluginSpec, f as Config, g as PluginRegistry, h as SharedPluginContext, i as PluginKind, l as PluginPatch, m as PromptResolver, n as Mount, o as domains, p as Events, r as Plugin, s as rank, u as PluginRef } from "./plugin-
|
|
3
|
+
import { a as define, c as PluginOptions, d as PluginSpec, f as Config, g as PluginRegistry, h as SharedPluginContext, i as PluginKind, l as PluginPatch, m as PromptResolver, n as Mount, o as domains, p as Events, r as Plugin, s as rank, u as PluginRef } from "./plugin-Cj0MJjZG.mjs";
|
|
4
4
|
export { type Config, type Events, type Mount, type Plugin, type PluginKind, type PluginOptions, type PluginPatch, type PluginRef, type PluginRegistry, type PluginSpec, prompt_d_exports as Prompt, type PromptResolver, type SharedPluginContext, tool_d_exports as Tool, define, domains, rank };
|
package/sandbox.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { A as apiVersion, C as Observed, D as RuntimeConfigBase, E as Registration, M as driver, O as RuntimeInput, S as Name, _ as Capabilities, a as Provides, b as Module, g as ApiVersion, h as AbsolutePath, i as Layer, j as defineModule, n as FileSystem, o as Shell, r as Identity, t as Current, v as Definition, vt as instance_d_exports, w as Provisioned, x as ModuleDefinition, y as Driver } from "./io-BYs7hbiY.mjs";
|
|
1
|
+
import { A as apiVersion, C as Observed, D as RuntimeConfigBase, E as Registration, I as Redactor, M as driver, O as RuntimeInput, S as Name, _ as Capabilities, a as Provides, at as providerError, b as Module, ct as sanitizeError, g as ApiVersion, h as AbsolutePath, i as Layer, it as makeRedactor, j as defineModule, n as FileSystem, o as Shell, ot as providerErrorCause, q as SandboxProviderError, r as Identity, st as providerErrorIsNotFound, t as Current, v as Definition, vt as instance_d_exports, w as Provisioned, x as ModuleDefinition, y as Driver } from "./io-BYs7hbiY.mjs";
|
|
2
2
|
import { c as filesystem_d_exports } from "./filesystem-Cp-KapCE.mjs";
|
|
3
3
|
import { a as ShellError, i as Shell$1, l as quote, n as ExecResult, o as ShellOptions, r as ISandboxExe, s as fromExec, t as ExecChunk, u as quoteArgv } from "./shell-CZ6Y4lNU.mjs";
|
|
4
|
-
import { t as error_d_exports } from "./sandbox/error.mjs";
|
|
5
4
|
import { SandboxResource as resource_d_exports } from "./sandbox/resource.mjs";
|
|
6
5
|
declare namespace driver_d_exports {
|
|
7
6
|
export { AbsolutePath, ApiVersion, Capabilities, Definition, Driver, Module, ModuleDefinition, Name, Observed, Provisioned, Registration, RuntimeConfigBase as RuntimeConfig, RuntimeConfigBase, RuntimeInput, driver_d_exports as SandboxDriver, apiVersion, driver, defineModule as module };
|
|
@@ -9,9 +8,12 @@ declare namespace driver_d_exports {
|
|
|
9
8
|
declare namespace io_d_exports {
|
|
10
9
|
export { Current, FileSystem, Identity, Layer, Provides, io_d_exports as SandboxIO, Shell };
|
|
11
10
|
}
|
|
11
|
+
declare namespace provider_d_exports {
|
|
12
|
+
export { Redactor, SandboxProviderError, makeRedactor, providerError, providerErrorCause, providerErrorIsNotFound, sanitizeError };
|
|
13
|
+
}
|
|
12
14
|
declare namespace shell_d_exports {
|
|
13
15
|
export { ExecChunk, ExecResult, ISandboxExe, Shell$1 as Shell, ShellError, ShellOptions, fromExec, quote, quoteArgv };
|
|
14
16
|
}
|
|
15
17
|
//#endregion
|
|
16
|
-
export { driver_d_exports as SandboxDriver, filesystem_d_exports as SandboxFileSystem, io_d_exports as SandboxIO, instance_d_exports as SandboxInstance,
|
|
18
|
+
export { driver_d_exports as SandboxDriver, filesystem_d_exports as SandboxFileSystem, io_d_exports as SandboxIO, instance_d_exports as SandboxInstance, provider_d_exports as SandboxProvider, resource_d_exports as SandboxResource, shell_d_exports as SandboxShell };
|
|
17
19
|
//# sourceMappingURL=sandbox.d.mts.map
|
package/sandbox.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { SandboxFileSystem as filesystem_exports } from "./sandbox/filesystem.mj
|
|
|
4
4
|
import { Shell, ShellError, fromExec, quote, quoteArgv } from "./sandbox/shell.mjs";
|
|
5
5
|
import { Current, FileSystem, Shell as Shell$1 } from "./sandbox/io.mjs";
|
|
6
6
|
import { AbsolutePath, Name, RuntimeConfigBase, driver, module as defineModule } from "./sandbox/driver.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { SandboxProviderError, makeRedactor, providerError, providerErrorCause, providerErrorIsNotFound, sanitizeError } from "./sandbox/errors.mjs";
|
|
8
8
|
import { SandboxResource as resource_exports } from "./sandbox/resource.mjs";
|
|
9
9
|
//#region src/sandbox/public/driver.ts
|
|
10
10
|
var driver_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -25,6 +25,16 @@ var io_exports = /* @__PURE__ */ __exportAll({
|
|
|
25
25
|
Shell: () => Shell$1
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
|
+
//#region src/sandbox/provider.ts
|
|
29
|
+
var provider_exports = /* @__PURE__ */ __exportAll({
|
|
30
|
+
SandboxProviderError: () => SandboxProviderError,
|
|
31
|
+
makeRedactor: () => makeRedactor,
|
|
32
|
+
providerError: () => providerError,
|
|
33
|
+
providerErrorCause: () => providerErrorCause,
|
|
34
|
+
providerErrorIsNotFound: () => providerErrorIsNotFound,
|
|
35
|
+
sanitizeError: () => sanitizeError
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
28
38
|
//#region src/sandbox/public/shell.ts
|
|
29
39
|
var shell_exports = /* @__PURE__ */ __exportAll({
|
|
30
40
|
Shell: () => Shell,
|
|
@@ -34,6 +44,6 @@ var shell_exports = /* @__PURE__ */ __exportAll({
|
|
|
34
44
|
quoteArgv: () => quoteArgv
|
|
35
45
|
});
|
|
36
46
|
//#endregion
|
|
37
|
-
export { driver_exports as SandboxDriver, filesystem_exports as SandboxFileSystem, io_exports as SandboxIO, instance_exports as SandboxInstance,
|
|
47
|
+
export { driver_exports as SandboxDriver, filesystem_exports as SandboxFileSystem, io_exports as SandboxIO, instance_exports as SandboxInstance, provider_exports as SandboxProvider, resource_exports as SandboxResource, shell_exports as SandboxShell };
|
|
38
48
|
|
|
39
49
|
//# sourceMappingURL=sandbox.mjs.map
|
package/sandbox.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.mjs","names":[],"sources":["../../src/sandbox/public/driver.ts","../../src/sandbox/public/io.ts","../../src/sandbox/public/shell.ts"],"sourcesContent":["export { AbsolutePath, apiVersion, driver, module, Name, RuntimeConfigBase } from \"../driver.ts\";\nexport type {\n\tApiVersion,\n\tCapabilities,\n\tDefinition,\n\tDriver,\n\tModule,\n\tModuleDefinition,\n\tObserved,\n\tProvisioned,\n\tRegistration,\n\tRuntimeConfigBase as RuntimeConfig,\n\tRuntimeInput,\n} from \"../driver.ts\";\n\nexport * as SandboxDriver from \"./driver.ts\";\n","export { Current, FileSystem, Shell } from \"../io.ts\";\nexport type { Identity, Layer, Provides } from \"../io.ts\";\n\nexport * as SandboxIO from \"./io.ts\";\n","export { fromExec, quote, quoteArgv, Shell, ShellError } from \"../shell.ts\";\nexport type { ExecChunk, ExecResult, ISandboxExe, ShellOptions } from \"../shell.ts\";\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"sandbox.mjs","names":[],"sources":["../../src/sandbox/public/driver.ts","../../src/sandbox/public/io.ts","../../src/sandbox/provider.ts","../../src/sandbox/public/shell.ts"],"sourcesContent":["export { AbsolutePath, apiVersion, driver, module, Name, RuntimeConfigBase } from \"../driver.ts\";\nexport type {\n\tApiVersion,\n\tCapabilities,\n\tDefinition,\n\tDriver,\n\tModule,\n\tModuleDefinition,\n\tObserved,\n\tProvisioned,\n\tRegistration,\n\tRuntimeConfigBase as RuntimeConfig,\n\tRuntimeInput,\n} from \"../driver.ts\";\n\nexport * as SandboxDriver from \"./driver.ts\";\n","export { Current, FileSystem, Shell } from \"../io.ts\";\nexport type { Identity, Layer, Provides } from \"../io.ts\";\n\nexport * as SandboxIO from \"./io.ts\";\n","export {\n\tmakeRedactor,\n\tproviderError,\n\tproviderErrorCause,\n\tproviderErrorIsNotFound,\n\tSandboxProviderError,\n\tsanitizeError,\n} from \"./errors.ts\";\nexport type { Redactor } from \"./errors.ts\";\n","export { fromExec, quote, quoteArgv, Shell, ShellError } from \"../shell.ts\";\nexport type { ExecChunk, ExecResult, ISandboxExe, ShellOptions } from \"../shell.ts\";\n"],"mappings":""}
|
|
@@ -18,7 +18,7 @@ declare const requestFields: {
|
|
|
18
18
|
method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
19
19
|
};
|
|
20
20
|
/** The wire protocol a model speaks, which a catalog entry may have wrong for a local endpoint. */
|
|
21
|
-
declare const ModelProtocol: Schema.Literals<("anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>;
|
|
21
|
+
declare const ModelProtocol: Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>;
|
|
22
22
|
declare const Block: Schema.StructWithRest<Schema.Struct<{
|
|
23
23
|
readonly temperature: Schema.optional<Schema.Finite>;
|
|
24
24
|
readonly maxTokens: Schema.optional<Schema.Finite>;
|
|
@@ -30,7 +30,7 @@ declare const Block: Schema.StructWithRest<Schema.Struct<{
|
|
|
30
30
|
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
31
31
|
readonly baseURL: Schema.optional<Schema.String>;
|
|
32
32
|
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
33
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
33
|
+
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
34
34
|
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
35
35
|
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
36
36
|
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
@@ -54,7 +54,7 @@ declare const Model$1: Schema.Struct<{
|
|
|
54
54
|
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
55
55
|
readonly baseURL: Schema.optional<Schema.String>;
|
|
56
56
|
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
57
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
57
|
+
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
58
58
|
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
59
59
|
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
60
60
|
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
@@ -71,7 +71,7 @@ declare const Model$1: Schema.Struct<{
|
|
|
71
71
|
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
72
72
|
readonly baseURL: Schema.optional<Schema.String>;
|
|
73
73
|
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
74
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
74
|
+
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
75
75
|
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
76
76
|
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
77
77
|
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
@@ -125,7 +125,7 @@ declare const Patch: Schema.Struct<{
|
|
|
125
125
|
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
126
126
|
readonly baseURL: Schema.optional<Schema.String>;
|
|
127
127
|
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
128
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
128
|
+
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
129
129
|
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
130
130
|
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
131
131
|
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
@@ -142,7 +142,7 @@ declare const Patch: Schema.Struct<{
|
|
|
142
142
|
readonly thinkingBudgets: Schema.optional<Schema.$Record<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "xhigh")[]>, Schema.optional<Schema.Finite>>>;
|
|
143
143
|
readonly baseURL: Schema.optional<Schema.String>;
|
|
144
144
|
readonly method: Schema.optional<Schema.Literals<("chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses")[]>>;
|
|
145
|
-
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
145
|
+
readonly protocol: Schema.optional<Schema.Literals<("anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai")[]>>;
|
|
146
146
|
readonly thinkingLevel: Schema.optional<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>;
|
|
147
147
|
readonly toolExecution: Schema.optional<Schema.Literals<readonly ["sequential", "parallel"]>>;
|
|
148
148
|
readonly contextWindow: Schema.optional<Schema.Finite>;
|
|
@@ -159,6 +159,20 @@ type Patch = typeof Patch.Type;
|
|
|
159
159
|
* genuinely gone rather than merely inconvenient. Three things need it -- anchoring a relative
|
|
160
160
|
* path, naming the declaring layer in `plugin list`, and the missing-plugin diagnostic -- so the
|
|
161
161
|
* loaded shape carries it from the start.
|
|
162
|
+
*
|
|
163
|
+
* In simple terms:
|
|
164
|
+
* `written` - is what module the developer is declaring - what
|
|
165
|
+
* `file` - where the module is being declared - where
|
|
166
|
+
* `entry` - the resolved path of the module, relative to the `file`; especially needed for local.
|
|
167
|
+
*
|
|
168
|
+
* Example:
|
|
169
|
+
* written: "@acme/x@^1"
|
|
170
|
+
* entry: "@acme/x@^1"
|
|
171
|
+
* file: "/Users/me/.codework/settings.jsonc"
|
|
172
|
+
*
|
|
173
|
+
* written: "./plugins/mine.mjs"
|
|
174
|
+
* entry: "/Users/me/.codework/plugins/mine.mjs"
|
|
175
|
+
* file: "/Users/me/.codework/settings.jsonc"
|
|
162
176
|
*/
|
|
163
177
|
interface Declared {
|
|
164
178
|
/** The entry exactly as the file spells it, which is the string a person will search for. */
|
|
@@ -190,4 +204,4 @@ interface Info {
|
|
|
190
204
|
declare const defaults: Info;
|
|
191
205
|
//#endregion
|
|
192
206
|
export { ModelProtocol as a, PluginPatch as c, defaults as d, requestFields as f, Model$1 as i, ThinkingLevel as l, Declared as n, Patch as o, Info as r, PluginEntry as s, Block as t, ToolExecution as u };
|
|
193
|
-
//# sourceMappingURL=settings-
|
|
207
|
+
//# sourceMappingURL=settings-bbJi7FiQ.d.mts.map
|
package/settings.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ModelProtocol, c as PluginPatch, d as defaults, f as requestFields, i as Model, l as ThinkingLevel, n as Declared, o as Patch, r as Info, s as PluginEntry, t as Block, u as ToolExecution } from "./settings-
|
|
1
|
+
import { a as ModelProtocol, c as PluginPatch, d as defaults, f as requestFields, i as Model, l as ThinkingLevel, n as Declared, o as Patch, r as Info, s as PluginEntry, t as Block, u as ToolExecution } from "./settings-bbJi7FiQ.mjs";
|
|
2
2
|
export { Block, Declared, Info, Model, ModelProtocol, Patch, PluginEntry, PluginPatch, ThinkingLevel, ToolExecution, defaults, requestFields };
|
package/settings.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.mjs","names":["AikitModel"],"sources":["../../src/settings.ts"],"sourcesContent":["import { Model as AikitModel, type Protocol } from \"@codeworksh/aikit\";\nimport { Schema } from \"effect\";\n\nexport const ThinkingLevel = Schema.Literals(Object.values(AikitModel.ThinkingLevelEnum));\nexport const ToolExecution = Schema.Literals([\"sequential\", \"parallel\"]);\nexport type ToolExecution = typeof ToolExecution.Type;\nconst Budgets = Schema.Record(\n\tSchema.Literals(Object.values(AikitModel.ThinkingLevelEnum).filter((level) => level !== \"off\")),\n\tSchema.optional(Schema.Finite),\n);\n\n/** Aikit does not export its request schema; keep this routing surface checked against its public types. */\nexport const requestFields = {\n\ttemperature: Schema.optional(Schema.Finite),\n\tmaxTokens: Schema.optional(Schema.Finite),\n\tcacheRetention: Schema.optional(Schema.Literals([\"none\", \"short\", \"long\"])),\n\theaders: Schema.optional(Schema.Record(Schema.String, Schema.String)),\n\ttimeoutMs: Schema.optional(Schema.Finite),\n\tmaxRetries: Schema.optional(Schema.Finite),\n\tmetadata: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n\tthinkingBudgets: Schema.optional(Budgets),\n\tbaseURL: Schema.optional(Schema.String),\n\tmethod: Schema.optional(Schema.Literals(Object.values(AikitModel.APIMethodEnum))),\n} satisfies Record<\n\t| Exclude<keyof Protocol.CommonOptions, \"signal\" | \"sessionId\" | \"reasoning\" | \"apiKey\" | \"onPayload\">\n\t| \"baseURL\"\n\t| \"method\",\n\tSchema.Top\n>;\n\nconst reserved = new Set([\n\t\"toolChoice\",\n\t\"activeTools\",\n\t\"provider\",\n\t\"id\",\n\t\"signal\",\n\t\"sessionId\",\n\t\"reasoning\",\n\t\"modelId\",\n\t\"apiKey\",\n\t\"onPayload\",\n\t\"api\",\n\t\"npm\",\n\t\"providerOptionsKey\",\n\t\"compat\",\n\t\"thinkingLevelMap\",\n]);\n\n/** The wire protocol a model speaks, which a catalog entry may have wrong for a local endpoint. */\nexport const ModelProtocol = Schema.Literals(Object.values(AikitModel.KnownProviderEnum));\n\nexport const Block = Schema.StructWithRest(\n\tSchema.Struct({\n\t\t...requestFields,\n\t\tprotocol: Schema.optional(ModelProtocol),\n\t\tthinkingLevel: Schema.optional(ThinkingLevel),\n\t\ttoolExecution: Schema.optional(ToolExecution),\n\t\tcontextWindow: Schema.optional(Schema.Finite),\n\t\textras: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n\t}),\n\t[Schema.Record(Schema.String, Schema.Unknown)],\n).check(\n\tSchema.makeFilter(\n\t\t(value) => Object.keys(value).every((key) => !reserved.has(key)) || \"Reserved configuration key in model options\",\n\t),\n);\nexport type Block = typeof Block.Type;\n\nexport const Model = Schema.Struct({\n\tprovider: Schema.optional(Schema.String),\n\tid: Schema.optional(Schema.String),\n\tthinkingLevel: Schema.optional(ThinkingLevel),\n\ttoolExecution: Schema.optional(ToolExecution),\n\tthinkingBudgets: Schema.optional(Budgets),\n\toptions: Schema.optional(Block),\n\tproviderOptions: Schema.optional(Schema.Record(Schema.String, Schema.Record(Schema.String, Block))),\n});\n/** A module to load: a path, a `file:` URL, or a package spec. */\nconst PluginReference = Schema.String.check(Schema.isNonEmpty());\n/**\n * Configuration for a plugin something else already selected, named by its ID (`plugin`) or by\n * its registered module string (`package`). It never loads anything: an entry naming a plugin\n * that is not in the selection is ignored.\n */\nconst config = {\n\tenabled: Schema.optional(Schema.Boolean),\n\toptions: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n};\nexport const PluginPatch = Schema.Union(\n\t[Schema.Struct({ plugin: PluginReference, ...config }), Schema.Struct({ package: PluginReference, ...config })],\n\t// `oneOf`, so an entry carrying both keys is a decode failure rather than one of them being\n\t// quietly dropped -- naming a plugin two ways at once says two different things.\n\t{ mode: \"oneOf\" },\n);\nexport const PluginEntry = Schema.Union([PluginReference, PluginPatch]);\nexport type PluginEntry = typeof PluginEntry.Type;\n\nexport const Patch = Schema.Struct({\n\t$schema: Schema.optional(Schema.String),\n\tplugins: Schema.optional(Schema.Array(PluginEntry)),\n\tmodel: Schema.optional(Model),\n});\nexport type Patch = typeof Patch.Type;\n\n/**\n * One plugin entry, and where it came from.\n *\n * Flattening every layer's `plugins` into one array loses the file that declared each entry, and\n * that cannot be recovered afterwards: two layers may declare the same string, so attribution is\n * genuinely gone rather than merely inconvenient. Three things need it -- anchoring a relative\n * path, naming the declaring layer in `plugin list`, and the missing-plugin diagnostic -- so the\n * loaded shape carries it from the start.\n */\nexport interface Declared {\n\t/** The entry exactly as the file spells it, which is the string a person will search for. */\n\treadonly written: PluginEntry;\n\t/** The same entry with any relative path anchored to the directory of its declaring file. */\n\treadonly entry: PluginEntry;\n\t/** The settings file that declared it. */\n\treadonly file: string;\n}\n\nexport interface Info {\n\t/**\n\t * Plugin entries added to the harness selection, in order: every layer's entries, lowest\n\t * priority first, so a project's list extends the user's rather than replacing it.\n\t *\n\t * Anchored, and stripped of provenance: this is the list the loader consumes. {@link Info.declared}\n\t * is the same list with the file each entry came from.\n\t */\n\treadonly plugins: ReadonlyArray<PluginEntry>;\n\t/** {@link Info.plugins}, with the origin of each entry. Same order, same length. */\n\treadonly declared: ReadonlyArray<Declared>;\n\treadonly model: typeof Model.Type & {\n\t\treadonly provider: string;\n\t\treadonly id: string;\n\t\treadonly thinkingLevel: AikitModel.ThinkingLevel;\n\t\treadonly toolExecution: ToolExecution;\n\t};\n}\n\n/** Let aikit supply model-aware generation defaults. */\nexport const defaults: Info = {\n\tplugins: [],\n\tdeclared: [],\n\tmodel: {\n\t\tprovider: \"openai\",\n\t\tid: \"gpt-5.6-luna\",\n\t\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C;;
|
|
1
|
+
{"version":3,"file":"settings.mjs","names":["AikitModel"],"sources":["../../src/settings.ts"],"sourcesContent":["import { Model as AikitModel, type Protocol } from \"@codeworksh/aikit\";\nimport { Schema } from \"effect\";\n\nexport const ThinkingLevel = Schema.Literals(Object.values(AikitModel.ThinkingLevelEnum));\nexport const ToolExecution = Schema.Literals([\"sequential\", \"parallel\"]);\nexport type ToolExecution = typeof ToolExecution.Type;\nconst Budgets = Schema.Record(\n\tSchema.Literals(Object.values(AikitModel.ThinkingLevelEnum).filter((level) => level !== \"off\")),\n\tSchema.optional(Schema.Finite),\n);\n\n/** Aikit does not export its request schema; keep this routing surface checked against its public types. */\nexport const requestFields = {\n\ttemperature: Schema.optional(Schema.Finite),\n\tmaxTokens: Schema.optional(Schema.Finite),\n\tcacheRetention: Schema.optional(Schema.Literals([\"none\", \"short\", \"long\"])),\n\theaders: Schema.optional(Schema.Record(Schema.String, Schema.String)),\n\ttimeoutMs: Schema.optional(Schema.Finite),\n\tmaxRetries: Schema.optional(Schema.Finite),\n\tmetadata: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n\tthinkingBudgets: Schema.optional(Budgets),\n\tbaseURL: Schema.optional(Schema.String),\n\tmethod: Schema.optional(Schema.Literals(Object.values(AikitModel.APIMethodEnum))),\n} satisfies Record<\n\t| Exclude<keyof Protocol.CommonOptions, \"signal\" | \"sessionId\" | \"reasoning\" | \"apiKey\" | \"onPayload\">\n\t| \"baseURL\"\n\t| \"method\",\n\tSchema.Top\n>;\n\nconst reserved = new Set([\n\t\"toolChoice\",\n\t\"activeTools\",\n\t\"provider\",\n\t\"id\",\n\t\"signal\",\n\t\"sessionId\",\n\t\"reasoning\",\n\t\"modelId\",\n\t\"apiKey\",\n\t\"onPayload\",\n\t\"api\",\n\t\"npm\",\n\t\"providerOptionsKey\",\n\t\"compat\",\n\t\"thinkingLevelMap\",\n]);\n\n/** The wire protocol a model speaks, which a catalog entry may have wrong for a local endpoint. */\nexport const ModelProtocol = Schema.Literals(Object.values(AikitModel.KnownProviderEnum));\n\nexport const Block = Schema.StructWithRest(\n\tSchema.Struct({\n\t\t...requestFields,\n\t\tprotocol: Schema.optional(ModelProtocol),\n\t\tthinkingLevel: Schema.optional(ThinkingLevel),\n\t\ttoolExecution: Schema.optional(ToolExecution),\n\t\tcontextWindow: Schema.optional(Schema.Finite),\n\t\textras: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n\t}),\n\t[Schema.Record(Schema.String, Schema.Unknown)],\n).check(\n\tSchema.makeFilter(\n\t\t(value) => Object.keys(value).every((key) => !reserved.has(key)) || \"Reserved configuration key in model options\",\n\t),\n);\nexport type Block = typeof Block.Type;\n\nexport const Model = Schema.Struct({\n\tprovider: Schema.optional(Schema.String),\n\tid: Schema.optional(Schema.String),\n\tthinkingLevel: Schema.optional(ThinkingLevel),\n\ttoolExecution: Schema.optional(ToolExecution),\n\tthinkingBudgets: Schema.optional(Budgets),\n\toptions: Schema.optional(Block),\n\tproviderOptions: Schema.optional(Schema.Record(Schema.String, Schema.Record(Schema.String, Block))),\n});\n/** A module to load: a path, a `file:` URL, or a package spec. */\nconst PluginReference = Schema.String.check(Schema.isNonEmpty());\n/**\n * Configuration for a plugin something else already selected, named by its ID (`plugin`) or by\n * its registered module string (`package`). It never loads anything: an entry naming a plugin\n * that is not in the selection is ignored.\n */\nconst config = {\n\tenabled: Schema.optional(Schema.Boolean),\n\toptions: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),\n};\nexport const PluginPatch = Schema.Union(\n\t[Schema.Struct({ plugin: PluginReference, ...config }), Schema.Struct({ package: PluginReference, ...config })],\n\t// `oneOf`, so an entry carrying both keys is a decode failure rather than one of them being\n\t// quietly dropped -- naming a plugin two ways at once says two different things.\n\t{ mode: \"oneOf\" },\n);\nexport const PluginEntry = Schema.Union([PluginReference, PluginPatch]);\nexport type PluginEntry = typeof PluginEntry.Type;\n\nexport const Patch = Schema.Struct({\n\t$schema: Schema.optional(Schema.String),\n\tplugins: Schema.optional(Schema.Array(PluginEntry)),\n\tmodel: Schema.optional(Model),\n});\nexport type Patch = typeof Patch.Type;\n\n/**\n * One plugin entry, and where it came from.\n *\n * Flattening every layer's `plugins` into one array loses the file that declared each entry, and\n * that cannot be recovered afterwards: two layers may declare the same string, so attribution is\n * genuinely gone rather than merely inconvenient. Three things need it -- anchoring a relative\n * path, naming the declaring layer in `plugin list`, and the missing-plugin diagnostic -- so the\n * loaded shape carries it from the start.\n *\n * In simple terms:\n * `written` - is what module the developer is declaring - what\n * `file` - where the module is being declared - where\n * `entry` - the resolved path of the module, relative to the `file`; especially needed for local.\n *\n * Example:\n * written: \"@acme/x@^1\"\n * entry: \"@acme/x@^1\"\n * file: \"/Users/me/.codework/settings.jsonc\"\n *\n * written: \"./plugins/mine.mjs\"\n * entry: \"/Users/me/.codework/plugins/mine.mjs\"\n * file: \"/Users/me/.codework/settings.jsonc\"\n */\nexport interface Declared {\n\t/** The entry exactly as the file spells it, which is the string a person will search for. */\n\treadonly written: PluginEntry;\n\t/** The same entry with any relative path anchored to the directory of its declaring file. */\n\treadonly entry: PluginEntry;\n\t/** The settings file that declared it. */\n\treadonly file: string;\n}\n\nexport interface Info {\n\t/**\n\t * Plugin entries added to the harness selection, in order: every layer's entries, lowest\n\t * priority first, so a project's list extends the user's rather than replacing it.\n\t *\n\t * Anchored, and stripped of provenance: this is the list the loader consumes. {@link Info.declared}\n\t * is the same list with the file each entry came from.\n\t */\n\treadonly plugins: ReadonlyArray<PluginEntry>;\n\t/** {@link Info.plugins}, with the origin of each entry. Same order, same length. */\n\treadonly declared: ReadonlyArray<Declared>;\n\treadonly model: typeof Model.Type & {\n\t\treadonly provider: string;\n\t\treadonly id: string;\n\t\treadonly thinkingLevel: AikitModel.ThinkingLevel;\n\t\treadonly toolExecution: ToolExecution;\n\t};\n}\n\n/** Let aikit supply model-aware generation defaults. */\nexport const defaults: Info = {\n\tplugins: [],\n\tdeclared: [],\n\tmodel: {\n\t\tprovider: \"openai\",\n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,OAAO,SAAS,KAAK;AAC7B,CAAC;;AAuDD,MAAa,WAAiB;CAC7B,SAAS,CAAC;CACV,UAAU,CAAC;CACX,OAAO;EACN,UAAU;EACV,IAAI;EACJ,eAAe;EACf,eAAe;EACf,SAAS;GAAE,WAAW;GAAW,YAAY;EAAE;CAChD;AACD"}
|
package/sandbox/error.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { I as Redactor, at as providerError, ct as sanitizeError, it as makeRedactor, ot as providerErrorCause, q as SandboxProviderError, st as providerErrorIsNotFound } from "../io-BYs7hbiY.mjs";
|
|
2
|
-
declare namespace error_d_exports {
|
|
3
|
-
export { Redactor, SandboxProviderError, makeRedactor, providerError, providerErrorCause, providerErrorIsNotFound, sanitizeError };
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
export { type Redactor, SandboxProviderError, makeRedactor, providerError, providerErrorCause, providerErrorIsNotFound, sanitizeError, error_d_exports as t };
|
|
7
|
-
//# sourceMappingURL=error.d.mts.map
|
package/sandbox/error.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { SandboxProviderError, makeRedactor, providerError, providerErrorCause, providerErrorIsNotFound, sanitizeError } from "./errors.mjs";
|
|
3
|
-
//#region src/sandbox/error.ts
|
|
4
|
-
var error_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
-
SandboxProviderError: () => SandboxProviderError,
|
|
6
|
-
makeRedactor: () => makeRedactor,
|
|
7
|
-
providerError: () => providerError,
|
|
8
|
-
providerErrorCause: () => providerErrorCause,
|
|
9
|
-
providerErrorIsNotFound: () => providerErrorIsNotFound,
|
|
10
|
-
sanitizeError: () => sanitizeError
|
|
11
|
-
});
|
|
12
|
-
//#endregion
|
|
13
|
-
export { SandboxProviderError, makeRedactor, providerError, providerErrorCause, providerErrorIsNotFound, sanitizeError, error_exports as t };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=error.mjs.map
|
package/sandbox/error.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.mjs","names":[],"sources":["../../../src/sandbox/error.ts"],"sourcesContent":["export {\n\tmakeRedactor,\n\tproviderError,\n\tproviderErrorCause,\n\tproviderErrorIsNotFound,\n\tSandboxProviderError,\n\tsanitizeError,\n} from \"./errors.ts\";\nexport type { Redactor } from \"./errors.ts\";\n"],"mappings":""}
|