@codeworksh/plugin 0.0.1-dev.20260923022514 → 0.0.1-dev.20260925150557
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-9PbbjnHJ.d.mts → event-BnLveFBB.d.mts} +49 -49
- package/event.d.mts +1 -1
- package/index.d.mts +1 -1
- package/package.json +3 -9
- package/{plugin-BS9CqRBg.d.mts → plugin-B1M3SjEb.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-CNJSIAlf.d.mts → settings-bbJi7FiQ.d.mts} +15 -1
- 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
|
@@ -147,26 +147,13 @@ 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
|
-
} | {
|
|
158
|
-
type: "thinking";
|
|
159
|
-
thinking: string;
|
|
160
|
-
thinkingSignature?: string;
|
|
161
|
-
redacted?: boolean;
|
|
162
|
-
} | {
|
|
163
150
|
addedToolNames?: string[];
|
|
164
151
|
arguments: Record<string, any>;
|
|
165
152
|
callID: string;
|
|
166
153
|
name: string;
|
|
167
154
|
namespace?: string;
|
|
168
|
-
|
|
169
|
-
content
|
|
155
|
+
result: {
|
|
156
|
+
content: ({
|
|
170
157
|
type: "text";
|
|
171
158
|
text: string;
|
|
172
159
|
textSignature?: string;
|
|
@@ -176,8 +163,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
176
163
|
mimeType: string;
|
|
177
164
|
})[];
|
|
178
165
|
details?: any;
|
|
166
|
+
isError: false;
|
|
179
167
|
};
|
|
180
|
-
status: "
|
|
168
|
+
status: "completed";
|
|
181
169
|
thoughtSignature?: string;
|
|
182
170
|
time: {
|
|
183
171
|
start: number;
|
|
@@ -201,9 +189,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
201
189
|
mimeType: string;
|
|
202
190
|
})[];
|
|
203
191
|
details?: any;
|
|
204
|
-
isError:
|
|
192
|
+
isError: true;
|
|
205
193
|
};
|
|
206
|
-
status: "
|
|
194
|
+
status: "error";
|
|
207
195
|
thoughtSignature?: string;
|
|
208
196
|
time: {
|
|
209
197
|
start: number;
|
|
@@ -229,7 +217,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
229
217
|
details?: any;
|
|
230
218
|
isError: true;
|
|
231
219
|
};
|
|
232
|
-
status: "
|
|
220
|
+
status: "skipped";
|
|
233
221
|
thoughtSignature?: string;
|
|
234
222
|
time: {
|
|
235
223
|
start: number;
|
|
@@ -255,21 +243,34 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
255
243
|
details?: any;
|
|
256
244
|
isError: true;
|
|
257
245
|
};
|
|
258
|
-
status: "
|
|
246
|
+
status: "aborted";
|
|
259
247
|
thoughtSignature?: string;
|
|
260
248
|
time: {
|
|
261
249
|
start: number;
|
|
262
250
|
end: number;
|
|
263
251
|
};
|
|
264
252
|
type: "toolCall";
|
|
253
|
+
} | {
|
|
254
|
+
type: "text";
|
|
255
|
+
text: string;
|
|
256
|
+
textSignature?: string;
|
|
257
|
+
} | {
|
|
258
|
+
type: "image";
|
|
259
|
+
data: string;
|
|
260
|
+
mimeType: string;
|
|
261
|
+
} | {
|
|
262
|
+
type: "thinking";
|
|
263
|
+
thinking: string;
|
|
264
|
+
thinkingSignature?: string;
|
|
265
|
+
redacted?: boolean;
|
|
265
266
|
} | {
|
|
266
267
|
addedToolNames?: string[];
|
|
267
268
|
arguments: Record<string, any>;
|
|
268
269
|
callID: string;
|
|
269
270
|
name: string;
|
|
270
271
|
namespace?: string;
|
|
271
|
-
|
|
272
|
-
content
|
|
272
|
+
partial?: {
|
|
273
|
+
content?: ({
|
|
273
274
|
type: "text";
|
|
274
275
|
text: string;
|
|
275
276
|
textSignature?: string;
|
|
@@ -279,9 +280,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
279
280
|
mimeType: string;
|
|
280
281
|
})[];
|
|
281
282
|
details?: any;
|
|
282
|
-
isError: true;
|
|
283
283
|
};
|
|
284
|
-
status: "
|
|
284
|
+
status: "running";
|
|
285
285
|
thoughtSignature?: string;
|
|
286
286
|
time: {
|
|
287
287
|
start: number;
|
|
@@ -447,26 +447,13 @@ 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
|
-
} | {
|
|
458
|
-
type: "thinking";
|
|
459
|
-
thinking: string;
|
|
460
|
-
thinkingSignature?: string;
|
|
461
|
-
redacted?: boolean;
|
|
462
|
-
} | {
|
|
463
450
|
addedToolNames?: string[];
|
|
464
451
|
arguments: Record<string, any>;
|
|
465
452
|
callID: string;
|
|
466
453
|
name: string;
|
|
467
454
|
namespace?: string;
|
|
468
|
-
|
|
469
|
-
content
|
|
455
|
+
result: {
|
|
456
|
+
content: ({
|
|
470
457
|
type: "text";
|
|
471
458
|
text: string;
|
|
472
459
|
textSignature?: string;
|
|
@@ -476,8 +463,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
476
463
|
mimeType: string;
|
|
477
464
|
})[];
|
|
478
465
|
details?: any;
|
|
466
|
+
isError: false;
|
|
479
467
|
};
|
|
480
|
-
status: "
|
|
468
|
+
status: "completed";
|
|
481
469
|
thoughtSignature?: string;
|
|
482
470
|
time: {
|
|
483
471
|
start: number;
|
|
@@ -501,9 +489,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
501
489
|
mimeType: string;
|
|
502
490
|
})[];
|
|
503
491
|
details?: any;
|
|
504
|
-
isError:
|
|
492
|
+
isError: true;
|
|
505
493
|
};
|
|
506
|
-
status: "
|
|
494
|
+
status: "error";
|
|
507
495
|
thoughtSignature?: string;
|
|
508
496
|
time: {
|
|
509
497
|
start: number;
|
|
@@ -529,7 +517,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
529
517
|
details?: any;
|
|
530
518
|
isError: true;
|
|
531
519
|
};
|
|
532
|
-
status: "
|
|
520
|
+
status: "skipped";
|
|
533
521
|
thoughtSignature?: string;
|
|
534
522
|
time: {
|
|
535
523
|
start: number;
|
|
@@ -555,21 +543,34 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
555
543
|
details?: any;
|
|
556
544
|
isError: true;
|
|
557
545
|
};
|
|
558
|
-
status: "
|
|
546
|
+
status: "aborted";
|
|
559
547
|
thoughtSignature?: string;
|
|
560
548
|
time: {
|
|
561
549
|
start: number;
|
|
562
550
|
end: number;
|
|
563
551
|
};
|
|
564
552
|
type: "toolCall";
|
|
553
|
+
} | {
|
|
554
|
+
type: "text";
|
|
555
|
+
text: string;
|
|
556
|
+
textSignature?: string;
|
|
557
|
+
} | {
|
|
558
|
+
type: "image";
|
|
559
|
+
data: string;
|
|
560
|
+
mimeType: string;
|
|
561
|
+
} | {
|
|
562
|
+
type: "thinking";
|
|
563
|
+
thinking: string;
|
|
564
|
+
thinkingSignature?: string;
|
|
565
|
+
redacted?: boolean;
|
|
565
566
|
} | {
|
|
566
567
|
addedToolNames?: string[];
|
|
567
568
|
arguments: Record<string, any>;
|
|
568
569
|
callID: string;
|
|
569
570
|
name: string;
|
|
570
571
|
namespace?: string;
|
|
571
|
-
|
|
572
|
-
content
|
|
572
|
+
partial?: {
|
|
573
|
+
content?: ({
|
|
573
574
|
type: "text";
|
|
574
575
|
text: string;
|
|
575
576
|
textSignature?: string;
|
|
@@ -579,9 +580,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
579
580
|
mimeType: string;
|
|
580
581
|
})[];
|
|
581
582
|
details?: any;
|
|
582
|
-
isError: true;
|
|
583
583
|
};
|
|
584
|
-
status: "
|
|
584
|
+
status: "running";
|
|
585
585
|
thoughtSignature?: string;
|
|
586
586
|
time: {
|
|
587
587
|
start: number;
|
|
@@ -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-BnLveFBB.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-BnLveFBB.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.20260925150557",
|
|
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",
|
|
@@ -161,15 +156,14 @@
|
|
|
161
156
|
"access": "public"
|
|
162
157
|
},
|
|
163
158
|
"engines": {
|
|
164
|
-
"node": ">=
|
|
159
|
+
"node": ">=22.0.0"
|
|
165
160
|
},
|
|
166
161
|
"dependencies": {
|
|
167
|
-
"@codeworksh/aikit": "0.9.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-BnLveFBB.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-B1M3SjEb.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-B1M3SjEb.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":""}
|
|
@@ -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\tthinkingLevel: \"high\",\n\t\ttoolExecution: \"sequential\",\n\t\toptions: { timeoutMs: 3_600_000, maxRetries: 3 },\n\t},\n};\n"],"mappings":";;;AAGA,MAAa,gBAAgB,OAAO,SAAS,OAAO,OAAOA,QAAW,iBAAiB,CAAC;AACxF,MAAa,gBAAgB,OAAO,SAAS,CAAC,cAAc,UAAU,CAAC;AAEvE,MAAM,UAAU,OAAO,OACtB,OAAO,SAAS,OAAO,OAAOA,Q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G,CAAC,KAAK,6CACrE,CACD;AAGA,MAAa,QAAQ,OAAO,OAAO;CAClC,UAAU,OAAO,SAAS,OAAO,MAAM;CACvC,IAAI,OAAO,SAAS,OAAO,MAAM;CACjC,eAAe,OAAO,SAAS,aAAa;CAC5C,eAAe,OAAO,SAAS,aAAa;CAC5C,iBAAiB,OAAO,SAAS,OAAO;CACxC,SAAS,OAAO,SAAS,KAAK;CAC9B,iBAAiB,OAAO,SAAS,OAAO,OAAO,OAAO,QAAQ,OAAO,OAAO,OAAO,QAAQ,KAAK,CAAC,CAAC;AACnG,CAAC;;AAED,MAAM,kBAAkB,OAAO,OAAO,MAAM,OAAO,WAAW,CAAC;;;;;;AAM/D,MAAM,SAAS;CACd,SAAS,OAAO,SAAS,OAAO,OAAO;CACvC,SAAS,OAAO,SAAS,OAAO,OAAO,OAAO,QAAQ,OAAO,OAAO,CAAC;AACtE;AACA,MAAa,cAAc,OAAO,MACjC,CAAC,OAAO,OAAO;CAAE,QAAQ;CAAiB,GAAG;AAAO,CAAC,GAAG,OAAO,OAAO;CAAE,SAAS;CAAiB,GAAG;AAAO,CAAC,CAAC,GAG9G,EAAE,MAAM,QAAQ,CACjB;AACA,MAAa,cAAc,OAAO,MAAM,CAAC,iBAAiB,WAAW,CAAC;AAGtE,MAAa,QAAQ,OAAO,OAAO;CAClC,SAAS,OAAO,SAAS,OAAO,MAAM;CACtC,SAAS,OAAO,SAAS,OAAO,MAAM,WAAW,CAAC;CAClD,OAAO,OAAO,SAAS,KAAK;AAC7B,CAAC;;
|
|
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\t\tid: \"gpt-5.6-luna\",\n\t\tthinkingLevel: \"high\",\n\t\ttoolExecution: \"sequential\",\n\t\toptions: { timeoutMs: 3_600_000, maxRetries: 3 },\n\t},\n};\n"],"mappings":";;;AAGA,MAAa,gBAAgB,OAAO,SAAS,OAAO,OAAOA,QAAW,iBAAiB,CAAC;AACxF,MAAa,gBAAgB,OAAO,SAAS,CAAC,cAAc,UAAU,CAAC;AAEvE,MAAM,UAAU,OAAO,OAC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izeError, 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":""}
|