@codeworksh/plugin 0.2.1-dev.20261013131320 → 0.2.1

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.
@@ -149,26 +149,13 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
149
149
  completed: number;
150
150
  };
151
151
  parts: ({
152
- type: "text";
153
- text: string;
154
- textSignature?: string;
155
- } | {
156
- type: "image";
157
- data: string;
158
- mimeType: string;
159
- } | {
160
- type: "thinking";
161
- thinking: string;
162
- thinkingSignature?: string;
163
- redacted?: boolean;
164
- } | {
165
152
  addedToolNames?: string[];
166
153
  arguments: Record<string, any>;
167
154
  callID: string;
168
155
  name: string;
169
156
  namespace?: string;
170
- partial?: {
171
- content?: ({
157
+ result: {
158
+ content: ({
172
159
  type: "text";
173
160
  text: string;
174
161
  textSignature?: string;
@@ -178,8 +165,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
178
165
  mimeType: string;
179
166
  })[];
180
167
  details?: any;
168
+ isError: false;
181
169
  };
182
- status: "running";
170
+ status: "completed";
183
171
  thoughtSignature?: string;
184
172
  time: {
185
173
  start: number;
@@ -203,9 +191,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
203
191
  mimeType: string;
204
192
  })[];
205
193
  details?: any;
206
- isError: false;
194
+ isError: true;
207
195
  };
208
- status: "completed";
196
+ status: "error";
209
197
  thoughtSignature?: string;
210
198
  time: {
211
199
  start: number;
@@ -231,7 +219,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
231
219
  details?: any;
232
220
  isError: true;
233
221
  };
234
- status: "error";
222
+ status: "skipped";
235
223
  thoughtSignature?: string;
236
224
  time: {
237
225
  start: number;
@@ -257,21 +245,34 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
257
245
  details?: any;
258
246
  isError: true;
259
247
  };
260
- status: "skipped";
248
+ status: "aborted";
261
249
  thoughtSignature?: string;
262
250
  time: {
263
251
  start: number;
264
252
  end: number;
265
253
  };
266
254
  type: "toolCall";
255
+ } | {
256
+ type: "text";
257
+ text: string;
258
+ textSignature?: string;
259
+ } | {
260
+ type: "image";
261
+ data: string;
262
+ mimeType: string;
263
+ } | {
264
+ type: "thinking";
265
+ thinking: string;
266
+ thinkingSignature?: string;
267
+ redacted?: boolean;
267
268
  } | {
268
269
  addedToolNames?: string[];
269
270
  arguments: Record<string, any>;
270
271
  callID: string;
271
272
  name: string;
272
273
  namespace?: string;
273
- result: {
274
- content: ({
274
+ partial?: {
275
+ content?: ({
275
276
  type: "text";
276
277
  text: string;
277
278
  textSignature?: string;
@@ -281,9 +282,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
281
282
  mimeType: string;
282
283
  })[];
283
284
  details?: any;
284
- isError: true;
285
285
  };
286
- status: "aborted";
286
+ status: "running";
287
287
  thoughtSignature?: string;
288
288
  time: {
289
289
  start: number;
@@ -451,26 +451,13 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
451
451
  completed: number;
452
452
  };
453
453
  parts: ({
454
- type: "text";
455
- text: string;
456
- textSignature?: string;
457
- } | {
458
- type: "image";
459
- data: string;
460
- mimeType: string;
461
- } | {
462
- type: "thinking";
463
- thinking: string;
464
- thinkingSignature?: string;
465
- redacted?: boolean;
466
- } | {
467
454
  addedToolNames?: string[];
468
455
  arguments: Record<string, any>;
469
456
  callID: string;
470
457
  name: string;
471
458
  namespace?: string;
472
- partial?: {
473
- content?: ({
459
+ result: {
460
+ content: ({
474
461
  type: "text";
475
462
  text: string;
476
463
  textSignature?: string;
@@ -480,8 +467,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
480
467
  mimeType: string;
481
468
  })[];
482
469
  details?: any;
470
+ isError: false;
483
471
  };
484
- status: "running";
472
+ status: "completed";
485
473
  thoughtSignature?: string;
486
474
  time: {
487
475
  start: number;
@@ -505,9 +493,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
505
493
  mimeType: string;
506
494
  })[];
507
495
  details?: any;
508
- isError: false;
496
+ isError: true;
509
497
  };
510
- status: "completed";
498
+ status: "error";
511
499
  thoughtSignature?: string;
512
500
  time: {
513
501
  start: number;
@@ -533,7 +521,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
533
521
  details?: any;
534
522
  isError: true;
535
523
  };
536
- status: "error";
524
+ status: "skipped";
537
525
  thoughtSignature?: string;
538
526
  time: {
539
527
  start: number;
@@ -559,21 +547,34 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
559
547
  details?: any;
560
548
  isError: true;
561
549
  };
562
- status: "skipped";
550
+ status: "aborted";
563
551
  thoughtSignature?: string;
564
552
  time: {
565
553
  start: number;
566
554
  end: number;
567
555
  };
568
556
  type: "toolCall";
557
+ } | {
558
+ type: "text";
559
+ text: string;
560
+ textSignature?: string;
561
+ } | {
562
+ type: "image";
563
+ data: string;
564
+ mimeType: string;
565
+ } | {
566
+ type: "thinking";
567
+ thinking: string;
568
+ thinkingSignature?: string;
569
+ redacted?: boolean;
569
570
  } | {
570
571
  addedToolNames?: string[];
571
572
  arguments: Record<string, any>;
572
573
  callID: string;
573
574
  name: string;
574
575
  namespace?: string;
575
- result: {
576
- content: ({
576
+ partial?: {
577
+ content?: ({
577
578
  type: "text";
578
579
  text: string;
579
580
  textSignature?: string;
@@ -583,9 +584,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
583
584
  mimeType: string;
584
585
  })[];
585
586
  details?: any;
586
- isError: true;
587
587
  };
588
- status: "aborted";
588
+ status: "running";
589
589
  thoughtSignature?: string;
590
590
  time: {
591
591
  start: number;
@@ -896,4 +896,4 @@ declare function durable<const Definitions extends ReadonlyArray<Definition>>(de
896
896
  declare function latest(definitions: ReadonlyArray<Definition>): ReadonlyMap<string, Definition<string, Schema.Codec<unknown, unknown, never, never>>>;
897
897
  //#endregion
898
898
  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-6sTQ_4bq.d.mts.map
899
+ //# sourceMappingURL=event-COPs5rMu.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-6sTQ_4bq.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-COPs5rMu.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-_ajVYIY5.mjs";
3
- import { t as plugin_d_exports } from "./plugin-Deb2QWIP.mjs";
3
+ import { t as plugin_d_exports } from "./plugin-BHF7bHpt.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.2.1-dev.20261013131320",
3
+ "version": "0.2.1",
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.11.0-dev.20261013131320",
171
+ "@codeworksh/aikit": "^0.11.0",
172
172
  "effect": "4.0.1"
173
173
  }
174
174
  }
@@ -1,4 +1,4 @@
1
- import { i as Definition, o as Payload, r as Data, s as PublishOptions } from "./event-6sTQ_4bq.mjs";
1
+ import { i as Definition, o as Payload, r as Data, s as PublishOptions } from "./event-COPs5rMu.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-nhvNKC33.mjs";
@@ -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-Deb2QWIP.d.mts.map
158
+ //# sourceMappingURL=plugin-BHF7bHpt.d.mts.map
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
3
  import { p as tool_d_exports } from "./tool-D4_I_rzy.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-Deb2QWIP.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-BHF7bHpt.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 };