@codeworksh/plugin 0.3.0-canary.65.1.g856ff027 → 0.3.0-canary.67.1.g251f0966
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-6sTQ_4bq.d.mts → event-C6-oCzlq.d.mts} +1 -21
- package/event.d.mts +1 -1
- package/index.d.mts +1 -1
- package/package.json +2 -2
- package/plugin/tool.d.mts +1 -1
- package/{plugin-Swbzia99.d.mts → plugin-Cuz78r5j.d.mts} +5 -5
- package/plugin-XaYYRsX-.mjs.map +1 -1
- package/plugin.d.mts +2 -2
- package/{tool-Bz8XyBlE.d.mts → tool-D5487q-u.d.mts} +1 -9
|
@@ -162,7 +162,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
162
162
|
thinkingSignature?: string;
|
|
163
163
|
redacted?: boolean;
|
|
164
164
|
} | {
|
|
165
|
-
addedToolNames?: string[];
|
|
166
165
|
arguments: Record<string, any>;
|
|
167
166
|
callID: string;
|
|
168
167
|
name: string;
|
|
@@ -187,7 +186,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
187
186
|
};
|
|
188
187
|
type: "toolCall";
|
|
189
188
|
} | {
|
|
190
|
-
addedToolNames?: string[];
|
|
191
189
|
arguments: Record<string, any>;
|
|
192
190
|
callID: string;
|
|
193
191
|
name: string;
|
|
@@ -213,7 +211,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
213
211
|
};
|
|
214
212
|
type: "toolCall";
|
|
215
213
|
} | {
|
|
216
|
-
addedToolNames?: string[];
|
|
217
214
|
arguments: Record<string, any>;
|
|
218
215
|
callID: string;
|
|
219
216
|
name: string;
|
|
@@ -239,7 +236,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
239
236
|
};
|
|
240
237
|
type: "toolCall";
|
|
241
238
|
} | {
|
|
242
|
-
addedToolNames?: string[];
|
|
243
239
|
arguments: Record<string, any>;
|
|
244
240
|
callID: string;
|
|
245
241
|
name: string;
|
|
@@ -265,7 +261,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
265
261
|
};
|
|
266
262
|
type: "toolCall";
|
|
267
263
|
} | {
|
|
268
|
-
addedToolNames?: string[];
|
|
269
264
|
arguments: Record<string, any>;
|
|
270
265
|
callID: string;
|
|
271
266
|
name: string;
|
|
@@ -297,7 +292,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
297
292
|
arguments: Record<string, any>;
|
|
298
293
|
thoughtSignature?: string;
|
|
299
294
|
namespace?: string;
|
|
300
|
-
addedToolNames?: string[];
|
|
301
295
|
time: {
|
|
302
296
|
start: number;
|
|
303
297
|
end: number;
|
|
@@ -464,7 +458,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
464
458
|
thinkingSignature?: string;
|
|
465
459
|
redacted?: boolean;
|
|
466
460
|
} | {
|
|
467
|
-
addedToolNames?: string[];
|
|
468
461
|
arguments: Record<string, any>;
|
|
469
462
|
callID: string;
|
|
470
463
|
name: string;
|
|
@@ -489,7 +482,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
489
482
|
};
|
|
490
483
|
type: "toolCall";
|
|
491
484
|
} | {
|
|
492
|
-
addedToolNames?: string[];
|
|
493
485
|
arguments: Record<string, any>;
|
|
494
486
|
callID: string;
|
|
495
487
|
name: string;
|
|
@@ -515,7 +507,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
515
507
|
};
|
|
516
508
|
type: "toolCall";
|
|
517
509
|
} | {
|
|
518
|
-
addedToolNames?: string[];
|
|
519
510
|
arguments: Record<string, any>;
|
|
520
511
|
callID: string;
|
|
521
512
|
name: string;
|
|
@@ -541,7 +532,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
541
532
|
};
|
|
542
533
|
type: "toolCall";
|
|
543
534
|
} | {
|
|
544
|
-
addedToolNames?: string[];
|
|
545
535
|
arguments: Record<string, any>;
|
|
546
536
|
callID: string;
|
|
547
537
|
name: string;
|
|
@@ -567,7 +557,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
567
557
|
};
|
|
568
558
|
type: "toolCall";
|
|
569
559
|
} | {
|
|
570
|
-
addedToolNames?: string[];
|
|
571
560
|
arguments: Record<string, any>;
|
|
572
561
|
callID: string;
|
|
573
562
|
name: string;
|
|
@@ -599,7 +588,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
599
588
|
arguments: Record<string, any>;
|
|
600
589
|
thoughtSignature?: string;
|
|
601
590
|
namespace?: string;
|
|
602
|
-
addedToolNames?: string[];
|
|
603
591
|
time: {
|
|
604
592
|
start: number;
|
|
605
593
|
end: number;
|
|
@@ -613,7 +601,6 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
|
|
|
613
601
|
}>, Schema.Unknown, never, never>;
|
|
614
602
|
type AikitAssistantMessage = typeof AikitAssistantMessage.Type;
|
|
615
603
|
declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
616
|
-
addedToolNames?: string[];
|
|
617
604
|
arguments: Record<string, any>;
|
|
618
605
|
callID: string;
|
|
619
606
|
name: string;
|
|
@@ -639,7 +626,6 @@ declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
|
639
626
|
};
|
|
640
627
|
type: "toolCall";
|
|
641
628
|
} | {
|
|
642
|
-
addedToolNames?: string[];
|
|
643
629
|
arguments: Record<string, any>;
|
|
644
630
|
callID: string;
|
|
645
631
|
name: string;
|
|
@@ -665,7 +651,6 @@ declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
|
665
651
|
};
|
|
666
652
|
type: "toolCall";
|
|
667
653
|
} | {
|
|
668
|
-
addedToolNames?: string[];
|
|
669
654
|
arguments: Record<string, any>;
|
|
670
655
|
callID: string;
|
|
671
656
|
name: string;
|
|
@@ -691,7 +676,6 @@ declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
|
691
676
|
};
|
|
692
677
|
type: "toolCall";
|
|
693
678
|
} | {
|
|
694
|
-
addedToolNames?: string[];
|
|
695
679
|
arguments: Record<string, any>;
|
|
696
680
|
callID: string;
|
|
697
681
|
name: string;
|
|
@@ -717,7 +701,6 @@ declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
|
717
701
|
};
|
|
718
702
|
type: "toolCall";
|
|
719
703
|
}, {
|
|
720
|
-
addedToolNames?: string[];
|
|
721
704
|
arguments: Record<string, any>;
|
|
722
705
|
callID: string;
|
|
723
706
|
name: string;
|
|
@@ -743,7 +726,6 @@ declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
|
743
726
|
};
|
|
744
727
|
type: "toolCall";
|
|
745
728
|
} | {
|
|
746
|
-
addedToolNames?: string[];
|
|
747
729
|
arguments: Record<string, any>;
|
|
748
730
|
callID: string;
|
|
749
731
|
name: string;
|
|
@@ -769,7 +751,6 @@ declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
|
769
751
|
};
|
|
770
752
|
type: "toolCall";
|
|
771
753
|
} | {
|
|
772
|
-
addedToolNames?: string[];
|
|
773
754
|
arguments: Record<string, any>;
|
|
774
755
|
callID: string;
|
|
775
756
|
name: string;
|
|
@@ -795,7 +776,6 @@ declare const AikitToolCallTerminalPart: Schema.decodeTo<Schema.declare<{
|
|
|
795
776
|
};
|
|
796
777
|
type: "toolCall";
|
|
797
778
|
} | {
|
|
798
|
-
addedToolNames?: string[];
|
|
799
779
|
arguments: Record<string, any>;
|
|
800
780
|
callID: string;
|
|
801
781
|
name: string;
|
|
@@ -896,4 +876,4 @@ declare function durable<const Definitions extends ReadonlyArray<Definition>>(de
|
|
|
896
876
|
declare function latest(definitions: ReadonlyArray<Definition>): ReadonlyMap<string, Definition<string, Schema.Codec<unknown, unknown, never, never>>>;
|
|
897
877
|
//#endregion
|
|
898
878
|
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 };
|
|
899
|
-
//# sourceMappingURL=event-
|
|
879
|
+
//# sourceMappingURL=event-C6-oCzlq.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-C6-oCzlq.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
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as section_d_exports } from "./plugin/section.mjs";
|
|
2
2
|
import { g as tool_d_exports } from "./tool-B4nkpC9M.mjs";
|
|
3
|
-
import { t as plugin_d_exports } from "./plugin-
|
|
3
|
+
import { t as plugin_d_exports } from "./plugin-Cuz78r5j.mjs";
|
|
4
4
|
export { plugin_d_exports as Plugin, section_d_exports as Section, tool_d_exports as Tool };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeworksh/plugin",
|
|
3
|
-
"version": "0.3.0-canary.
|
|
3
|
+
"version": "0.3.0-canary.67.1.g251f0966",
|
|
4
4
|
"description": "SDK for building CodeWork plugins — the plugin, tool, and sandbox contracts shared with @codeworksh/harness.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"uuidv7": "^1.2.1"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
|
-
"@codeworksh/aikit": "0.12.1-canary.
|
|
171
|
+
"@codeworksh/aikit": "0.12.1-canary.67.1.g251f0966",
|
|
172
172
|
"effect": "4.0.5"
|
|
173
173
|
}
|
|
174
174
|
}
|
package/plugin/tool.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ToolAfterResult, c as ToolBeforeResult, d as ToolRegistry, f as ToolResultContent, i as ToolAfterFn, l as ToolDefPatch, n as ToolAddOptions, o as ToolBefore, r as ToolAfter, s as ToolBeforeFn, t as HookReturn, u as ToolRegistration } from "../tool-
|
|
1
|
+
import { a as ToolAfterResult, c as ToolBeforeResult, d as ToolRegistry, f as ToolResultContent, i as ToolAfterFn, l as ToolDefPatch, n as ToolAddOptions, o as ToolBefore, r as ToolAfter, s as ToolBeforeFn, t as HookReturn, u as ToolRegistration } from "../tool-D5487q-u.mjs";
|
|
2
2
|
export { HookReturn, ToolAddOptions, ToolAfter, ToolAfterFn, ToolAfterResult, ToolBefore, ToolBeforeFn, ToolBeforeResult, ToolDefPatch, ToolRegistration, ToolRegistry, ToolResultContent };
|
|
@@ -1,11 +1,11 @@
|
|
|
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-C6-oCzlq.mjs";
|
|
2
2
|
import { n as SessionID } from "./ids-CHjmAdTc.mjs";
|
|
3
3
|
import { o as Service, r as Info } from "./location-Q39els63.mjs";
|
|
4
4
|
import { f as io_d_exports, i as Identity, s as Provides } from "./io-Br9WZTsG.mjs";
|
|
5
5
|
import { i as Info$1 } from "./settings-DGYWREuu.mjs";
|
|
6
6
|
import { t as section_d_exports } from "./plugin/section.mjs";
|
|
7
7
|
import { n as prompt_d_exports, t as PromptRegistry } from "./prompt-DWaA5ZXj.mjs";
|
|
8
|
-
import { d as ToolRegistry, p as tool_d_exports } from "./tool-
|
|
8
|
+
import { d as ToolRegistry, p as tool_d_exports } from "./tool-D5487q-u.mjs";
|
|
9
9
|
import { Model } from "@codeworksh/aikit";
|
|
10
10
|
import { Effect } from "effect";
|
|
11
11
|
//#region src/plugin/registry.d.ts
|
|
@@ -48,7 +48,7 @@ interface Paths {
|
|
|
48
48
|
readonly data: string;
|
|
49
49
|
readonly log: string;
|
|
50
50
|
}
|
|
51
|
-
/** One object, shared by every plugin in one
|
|
51
|
+
/** One object, shared by every plugin in one turn. */
|
|
52
52
|
interface SharedPluginContext {
|
|
53
53
|
readonly sessionId: SessionID;
|
|
54
54
|
readonly sandbox: Identity;
|
|
@@ -145,7 +145,7 @@ interface Plugin {
|
|
|
145
145
|
* `options` is this plugin's own configuration block, `{}` when its entry carried none.
|
|
146
146
|
* Unvalidated: the harness never looks inside it, so a plugin checks whatever shape it
|
|
147
147
|
* documents. It is a second argument rather than a context field so `ctx` stays one object
|
|
148
|
-
* shared by every plugin in the
|
|
148
|
+
* shared by every plugin in the turn.
|
|
149
149
|
*/
|
|
150
150
|
readonly setup: (ctx: SharedPluginContext, options: PluginOptions) => void | Promise<void> | Effect.Effect<void, unknown, Mount>;
|
|
151
151
|
}
|
|
@@ -155,4 +155,4 @@ declare namespace plugin_d_exports {
|
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
export { PluginRegistry as _, define as a, PluginOptions as c, PluginSpec as d, Config as f, SharedPluginContext as g, PromptResolver as h, PluginKind as i, PluginPatch as l, Paths 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 };
|
|
158
|
-
//# sourceMappingURL=plugin-
|
|
158
|
+
//# sourceMappingURL=plugin-Cuz78r5j.d.mts.map
|
package/plugin-XaYYRsX-.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-XaYYRsX-.mjs","names":[],"sources":["../../src/plugin/plugin.ts","../../src/plugin.ts"],"sourcesContent":["import type { Effect } from \"effect\";\nimport type { Definition } from \"../event.ts\";\nimport type { Service as LocationService } from \"../location.ts\";\nimport type { SandboxIO } from \"../sandbox/io.ts\";\nimport type { SharedPluginContext } from \"./context.ts\";\nimport type { PluginOptions } from \"./ref.ts\";\n\n/**\n * The domains a plugin can extend, and the order the harness runs them in.\n *\n * Order is declared, not positional. A plugin's place used to come from where its entry sat in\n * the `plugins` array, which is unknowable when the entry is written: a user's settings file and\n * a project's are edited by different people at different times, and neither can see the other's\n * order. Since a prompt plugin indexes the tools registered before it, that made a tool added\n * from settings invisible in the system prompt, with no way to fix it from a settings file.\n *\n * A plugin instead says which domain it extends, and the harness runs the domains in this order.\n * Entries within one domain keep the order they were written in, because that is where\n * composition actually happens -- a plugin patching another's tool, or appending to the prompt a\n * previous one rendered, is written next to it and deliberately after it.\n *\n * Kept as data so a later release can add a domain, or make the order configurable, without\n * touching the loader: `{ tool: 1, skill: 2, prompt: 3 }` needs no code change here.\n */\nexport const domains = { tool: 1, prompt: 2 } as const;\n\nexport type PluginKind = keyof typeof domains;\n\n/** Sort key for a plugin: its domain first, then where it was written. */\nexport const rank = (kind: PluginKind) => domains[kind];\n\nexport type Mount = SandboxIO.Provides | LocationService;\nexport interface Plugin {\n\treadonly id: string;\n\t/**\n\t * The domain this plugin extends, which decides when it runs: every `tool` plugin is set up\n\t * before any `prompt` plugin, whichever settings layer each came from, so a prompt plugin\n\t * always sees the complete tool set. Plugins within one domain run in the order they were\n\t * written.\n\t */\n\treadonly kind: PluginKind;\n\t/**\n\t * Event definitions this plugin publishes. Declared rather than registered at\n\t * runtime so they are known before the event system builds, and so a bad type\n\t * fails the boot instead of the first publish. Types must be namespaced\n\t * `plugin.<id>.*`.\n\t */\n\treadonly events?: ReadonlyArray<Definition>;\n\t/**\n\t * Off until a user asks for it. An `optIn` plugin is selected like any other but runs only\n\t * when a settings entry turns it on: `{ \"plugin\": \"<id>\", \"enabled\": true }`.\n\t */\n\treadonly optIn?: boolean;\n\t/**\n\t * `options` is this plugin's own configuration block, `{}` when its entry carried none.\n\t * Unvalidated: the harness never looks inside it, so a plugin checks whatever shape it\n\t * documents. It is a second argument rather than a context field so `ctx` stays one object\n\t * shared by every plugin in the
|
|
1
|
+
{"version":3,"file":"plugin-XaYYRsX-.mjs","names":[],"sources":["../../src/plugin/plugin.ts","../../src/plugin.ts"],"sourcesContent":["import type { Effect } from \"effect\";\nimport type { Definition } from \"../event.ts\";\nimport type { Service as LocationService } from \"../location.ts\";\nimport type { SandboxIO } from \"../sandbox/io.ts\";\nimport type { SharedPluginContext } from \"./context.ts\";\nimport type { PluginOptions } from \"./ref.ts\";\n\n/**\n * The domains a plugin can extend, and the order the harness runs them in.\n *\n * Order is declared, not positional. A plugin's place used to come from where its entry sat in\n * the `plugins` array, which is unknowable when the entry is written: a user's settings file and\n * a project's are edited by different people at different times, and neither can see the other's\n * order. Since a prompt plugin indexes the tools registered before it, that made a tool added\n * from settings invisible in the system prompt, with no way to fix it from a settings file.\n *\n * A plugin instead says which domain it extends, and the harness runs the domains in this order.\n * Entries within one domain keep the order they were written in, because that is where\n * composition actually happens -- a plugin patching another's tool, or appending to the prompt a\n * previous one rendered, is written next to it and deliberately after it.\n *\n * Kept as data so a later release can add a domain, or make the order configurable, without\n * touching the loader: `{ tool: 1, skill: 2, prompt: 3 }` needs no code change here.\n */\nexport const domains = { tool: 1, prompt: 2 } as const;\n\nexport type PluginKind = keyof typeof domains;\n\n/** Sort key for a plugin: its domain first, then where it was written. */\nexport const rank = (kind: PluginKind) => domains[kind];\n\nexport type Mount = SandboxIO.Provides | LocationService;\nexport interface Plugin {\n\treadonly id: string;\n\t/**\n\t * The domain this plugin extends, which decides when it runs: every `tool` plugin is set up\n\t * before any `prompt` plugin, whichever settings layer each came from, so a prompt plugin\n\t * always sees the complete tool set. Plugins within one domain run in the order they were\n\t * written.\n\t */\n\treadonly kind: PluginKind;\n\t/**\n\t * Event definitions this plugin publishes. Declared rather than registered at\n\t * runtime so they are known before the event system builds, and so a bad type\n\t * fails the boot instead of the first publish. Types must be namespaced\n\t * `plugin.<id>.*`.\n\t */\n\treadonly events?: ReadonlyArray<Definition>;\n\t/**\n\t * Off until a user asks for it. An `optIn` plugin is selected like any other but runs only\n\t * when a settings entry turns it on: `{ \"plugin\": \"<id>\", \"enabled\": true }`.\n\t */\n\treadonly optIn?: boolean;\n\t/**\n\t * `options` is this plugin's own configuration block, `{}` when its entry carried none.\n\t * Unvalidated: the harness never looks inside it, so a plugin checks whatever shape it\n\t * documents. It is a second argument rather than a context field so `ctx` stays one object\n\t * shared by every plugin in the turn.\n\t */\n\treadonly setup: (\n\t\tctx: SharedPluginContext,\n\t\toptions: PluginOptions,\n\t) => void | Promise<void> | Effect.Effect<void, unknown, Mount>;\n}\n\nexport const define = (plugin: Plugin): Plugin => plugin;\n","/**\n * The plugin authoring surface.\n *\n * Everything a third-party plugin needs to describe itself and to write into the harness during\n * `setup`, and nothing about how the harness finds, installs or runs it. Loading, the store and\n * the `.npmrc` anchoring stay in `@codeworksh/harness`, which imports this same module — so a\n * plugin and its host agree on one set of types rather than two that happen to match.\n */\nexport type { Config, Events, Paths, PromptResolver, SharedPluginContext } from \"./plugin/context.ts\";\nexport { define, domains, type Mount, type Plugin, type PluginKind, rank } from \"./plugin/plugin.ts\";\nexport * as Prompt from \"./plugin/prompt.ts\";\nexport * as Section from \"./plugin/section.ts\";\nexport type { PluginOptions, PluginPatch, PluginRef, PluginSpec } from \"./plugin/ref.ts\";\nexport type { PluginRegistry } from \"./plugin/registry.ts\";\nexport * as Tool from \"./plugin/tool.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwBA,MAAa,UAAU;CAAE,MAAM;CAAG,QAAQ;AAAE;;AAK5C,MAAa,QAAQ,SAAqB,QAAQ;AAoClD,MAAa,UAAU,WAA2B"}
|
package/plugin.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as section_d_exports } from "./plugin/section.mjs";
|
|
2
2
|
import { n as prompt_d_exports } from "./prompt-DWaA5ZXj.mjs";
|
|
3
|
-
import { p as tool_d_exports } from "./tool-
|
|
4
|
-
import { _ as PluginRegistry, a as define, c as PluginOptions, d as PluginSpec, f as Config, g as SharedPluginContext, h as PromptResolver, i as PluginKind, l as PluginPatch, m as Paths, n as Mount, o as domains, p as Events, r as Plugin, s as rank, u as PluginRef } from "./plugin-
|
|
3
|
+
import { p as tool_d_exports } from "./tool-D5487q-u.mjs";
|
|
4
|
+
import { _ as PluginRegistry, a as define, c as PluginOptions, d as PluginSpec, f as Config, g as SharedPluginContext, h as PromptResolver, i as PluginKind, l as PluginPatch, m as Paths, n as Mount, o as domains, p as Events, r as Plugin, s as rank, u as PluginRef } from "./plugin-Cuz78r5j.mjs";
|
|
5
5
|
export { type Config, type Events, type Mount, type Paths, type Plugin, type PluginKind, type PluginOptions, type PluginPatch, type PluginRef, type PluginRegistry, type PluginSpec, prompt_d_exports as Prompt, type PromptResolver, section_d_exports as Section, type SharedPluginContext, tool_d_exports as Tool, define, domains, rank };
|
|
@@ -34,7 +34,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
34
34
|
};
|
|
35
35
|
readonly params: Schema.Unknown;
|
|
36
36
|
readonly terminal: Schema.decodeTo<Schema.declare<{
|
|
37
|
-
addedToolNames?: string[];
|
|
38
37
|
arguments: Record<string, any>;
|
|
39
38
|
callID: string;
|
|
40
39
|
name: string;
|
|
@@ -60,7 +59,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
60
59
|
};
|
|
61
60
|
type: "toolCall";
|
|
62
61
|
} | {
|
|
63
|
-
addedToolNames?: string[];
|
|
64
62
|
arguments: Record<string, any>;
|
|
65
63
|
callID: string;
|
|
66
64
|
name: string;
|
|
@@ -86,7 +84,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
86
84
|
};
|
|
87
85
|
type: "toolCall";
|
|
88
86
|
} | {
|
|
89
|
-
addedToolNames?: string[];
|
|
90
87
|
arguments: Record<string, any>;
|
|
91
88
|
callID: string;
|
|
92
89
|
name: string;
|
|
@@ -112,7 +109,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
112
109
|
};
|
|
113
110
|
type: "toolCall";
|
|
114
111
|
} | {
|
|
115
|
-
addedToolNames?: string[];
|
|
116
112
|
arguments: Record<string, any>;
|
|
117
113
|
callID: string;
|
|
118
114
|
name: string;
|
|
@@ -138,7 +134,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
138
134
|
};
|
|
139
135
|
type: "toolCall";
|
|
140
136
|
}, {
|
|
141
|
-
addedToolNames?: string[];
|
|
142
137
|
arguments: Record<string, any>;
|
|
143
138
|
callID: string;
|
|
144
139
|
name: string;
|
|
@@ -164,7 +159,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
164
159
|
};
|
|
165
160
|
type: "toolCall";
|
|
166
161
|
} | {
|
|
167
|
-
addedToolNames?: string[];
|
|
168
162
|
arguments: Record<string, any>;
|
|
169
163
|
callID: string;
|
|
170
164
|
name: string;
|
|
@@ -190,7 +184,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
190
184
|
};
|
|
191
185
|
type: "toolCall";
|
|
192
186
|
} | {
|
|
193
|
-
addedToolNames?: string[];
|
|
194
187
|
arguments: Record<string, any>;
|
|
195
188
|
callID: string;
|
|
196
189
|
name: string;
|
|
@@ -216,7 +209,6 @@ declare const ToolAfter: Schema.Struct<{
|
|
|
216
209
|
};
|
|
217
210
|
type: "toolCall";
|
|
218
211
|
} | {
|
|
219
|
-
addedToolNames?: string[];
|
|
220
212
|
arguments: Record<string, any>;
|
|
221
213
|
callID: string;
|
|
222
214
|
name: string;
|
|
@@ -286,4 +278,4 @@ interface ToolRegistry {
|
|
|
286
278
|
}
|
|
287
279
|
//#endregion
|
|
288
280
|
export { ToolAfterResult as a, ToolBeforeResult as c, ToolRegistry as d, ToolResultContent as f, ToolAfterFn as i, ToolDefPatch as l, ToolAddOptions as n, ToolBefore as o, tool_d_exports as p, ToolAfter as r, ToolBeforeFn as s, HookReturn as t, ToolRegistration as u };
|
|
289
|
-
//# sourceMappingURL=tool-
|
|
281
|
+
//# sourceMappingURL=tool-D5487q-u.d.mts.map
|