@codeworksh/plugin 0.0.1-dev.20260922135956 → 0.0.1-dev.20260923022514

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.
@@ -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,13 +147,26 @@ 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
+ } | {
150
163
  addedToolNames?: string[];
151
164
  arguments: Record<string, any>;
152
165
  callID: string;
153
166
  name: string;
154
167
  namespace?: string;
155
- result: {
156
- content: ({
168
+ partial?: {
169
+ content?: ({
157
170
  type: "text";
158
171
  text: string;
159
172
  textSignature?: string;
@@ -163,9 +176,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
163
176
  mimeType: string;
164
177
  })[];
165
178
  details?: any;
166
- isError: false;
167
179
  };
168
- status: "completed";
180
+ status: "running";
169
181
  thoughtSignature?: string;
170
182
  time: {
171
183
  start: number;
@@ -189,9 +201,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
189
201
  mimeType: string;
190
202
  })[];
191
203
  details?: any;
192
- isError: true;
204
+ isError: false;
193
205
  };
194
- status: "error";
206
+ status: "completed";
195
207
  thoughtSignature?: string;
196
208
  time: {
197
209
  start: number;
@@ -217,7 +229,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
217
229
  details?: any;
218
230
  isError: true;
219
231
  };
220
- status: "skipped";
232
+ status: "error";
221
233
  thoughtSignature?: string;
222
234
  time: {
223
235
  start: number;
@@ -243,34 +255,21 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
243
255
  details?: any;
244
256
  isError: true;
245
257
  };
246
- status: "aborted";
258
+ status: "skipped";
247
259
  thoughtSignature?: string;
248
260
  time: {
249
261
  start: number;
250
262
  end: number;
251
263
  };
252
264
  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;
266
265
  } | {
267
266
  addedToolNames?: string[];
268
267
  arguments: Record<string, any>;
269
268
  callID: string;
270
269
  name: string;
271
270
  namespace?: string;
272
- partial?: {
273
- content?: ({
271
+ result: {
272
+ content: ({
274
273
  type: "text";
275
274
  text: string;
276
275
  textSignature?: string;
@@ -280,8 +279,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
280
279
  mimeType: string;
281
280
  })[];
282
281
  details?: any;
282
+ isError: true;
283
283
  };
284
- status: "running";
284
+ status: "aborted";
285
285
  thoughtSignature?: string;
286
286
  time: {
287
287
  start: number;
@@ -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,13 +447,26 @@ 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
+ } | {
450
463
  addedToolNames?: string[];
451
464
  arguments: Record<string, any>;
452
465
  callID: string;
453
466
  name: string;
454
467
  namespace?: string;
455
- result: {
456
- content: ({
468
+ partial?: {
469
+ content?: ({
457
470
  type: "text";
458
471
  text: string;
459
472
  textSignature?: string;
@@ -463,9 +476,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
463
476
  mimeType: string;
464
477
  })[];
465
478
  details?: any;
466
- isError: false;
467
479
  };
468
- status: "completed";
480
+ status: "running";
469
481
  thoughtSignature?: string;
470
482
  time: {
471
483
  start: number;
@@ -489,9 +501,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
489
501
  mimeType: string;
490
502
  })[];
491
503
  details?: any;
492
- isError: true;
504
+ isError: false;
493
505
  };
494
- status: "error";
506
+ status: "completed";
495
507
  thoughtSignature?: string;
496
508
  time: {
497
509
  start: number;
@@ -517,7 +529,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
517
529
  details?: any;
518
530
  isError: true;
519
531
  };
520
- status: "skipped";
532
+ status: "error";
521
533
  thoughtSignature?: string;
522
534
  time: {
523
535
  start: number;
@@ -543,34 +555,21 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
543
555
  details?: any;
544
556
  isError: true;
545
557
  };
546
- status: "aborted";
558
+ status: "skipped";
547
559
  thoughtSignature?: string;
548
560
  time: {
549
561
  start: number;
550
562
  end: number;
551
563
  };
552
564
  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;
566
565
  } | {
567
566
  addedToolNames?: string[];
568
567
  arguments: Record<string, any>;
569
568
  callID: string;
570
569
  name: string;
571
570
  namespace?: string;
572
- partial?: {
573
- content?: ({
571
+ result: {
572
+ content: ({
574
573
  type: "text";
575
574
  text: string;
576
575
  textSignature?: string;
@@ -580,8 +579,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
580
579
  mimeType: string;
581
580
  })[];
582
581
  details?: any;
582
+ isError: true;
583
583
  };
584
- status: "running";
584
+ status: "aborted";
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-D3SNh03N.d.mts.map
895
+ //# sourceMappingURL=event-9PbbjnHJ.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-D3SNh03N.mjs";
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-9PbbjnHJ.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,3 +1,3 @@
1
1
  import { g as tool_d_exports } from "./tool-DuYBgiJf.mjs";
2
- import { t as plugin_d_exports } from "./plugin-CxD9ZR7B.mjs";
2
+ import { t as plugin_d_exports } from "./plugin-BS9CqRBg.mjs";
3
3
  export { plugin_d_exports as Plugin, tool_d_exports as Tool };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeworksh/plugin",
3
- "version": "0.0.1-dev.20260922135956",
3
+ "version": "0.0.1-dev.20260923022514",
4
4
  "description": "SDK for building CodeWork plugins — the plugin, tool, and sandbox contracts shared with @codeworksh/harness.",
5
5
  "keywords": [
6
6
  "agent",
@@ -164,7 +164,7 @@
164
164
  "node": ">=24.14.1"
165
165
  },
166
166
  "dependencies": {
167
- "@codeworksh/aikit": "0.8.0",
167
+ "@codeworksh/aikit": "0.9.0",
168
168
  "tslib": "^2.8.1",
169
169
  "typebox": "^1.3.30",
170
170
  "uuidv7": "^1.2.1"
@@ -1,8 +1,8 @@
1
- import { i as Definition, o as Payload, r as Data, s as PublishOptions } from "./event-D3SNh03N.mjs";
1
+ import { i as Definition, o as Payload, r as Data, s as PublishOptions } from "./event-9PbbjnHJ.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-CYL6yyDD.mjs";
5
+ import { r as Info$1 } from "./settings-CNJSIAlf.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-CxD9ZR7B.d.mts.map
140
+ //# sourceMappingURL=plugin-BS9CqRBg.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-CxD9ZR7B.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-BS9CqRBg.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 };
@@ -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>;
@@ -190,4 +190,4 @@ interface Info {
190
190
  declare const defaults: Info;
191
191
  //#endregion
192
192
  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-CYL6yyDD.d.mts.map
193
+ //# sourceMappingURL=settings-CNJSIAlf.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-CYL6yyDD.mjs";
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-CNJSIAlf.mjs";
2
2
  export { Block, Declared, Info, Model, ModelProtocol, Patch, PluginEntry, PluginPatch, ThinkingLevel, ToolExecution, defaults, requestFields };