@codeworksh/plugin 0.3.0-canary.83.1.g5b425b57 → 0.3.0-canary.84.1.gce0dac2c

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,25 +149,12 @@ 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
  arguments: Record<string, any>;
166
153
  callID: string;
167
154
  name: string;
168
155
  namespace?: string;
169
- partial?: {
170
- content?: ({
156
+ result: {
157
+ content: ({
171
158
  type: "text";
172
159
  text: string;
173
160
  textSignature?: string;
@@ -177,8 +164,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
177
164
  mimeType: string;
178
165
  })[];
179
166
  details?: any;
167
+ isError: false;
180
168
  };
181
- status: "running";
169
+ status: "completed";
182
170
  thoughtSignature?: string;
183
171
  time: {
184
172
  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: false;
192
+ isError: true;
205
193
  };
206
- status: "completed";
194
+ status: "error";
207
195
  thoughtSignature?: string;
208
196
  time: {
209
197
  start: number;
@@ -228,7 +216,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
228
216
  details?: any;
229
217
  isError: true;
230
218
  };
231
- status: "error";
219
+ status: "skipped";
232
220
  thoughtSignature?: string;
233
221
  time: {
234
222
  start: number;
@@ -253,20 +241,33 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
253
241
  details?: any;
254
242
  isError: true;
255
243
  };
256
- status: "skipped";
244
+ status: "aborted";
257
245
  thoughtSignature?: string;
258
246
  time: {
259
247
  start: number;
260
248
  end: number;
261
249
  };
262
250
  type: "toolCall";
251
+ } | {
252
+ type: "text";
253
+ text: string;
254
+ textSignature?: string;
255
+ } | {
256
+ type: "image";
257
+ data: string;
258
+ mimeType: string;
259
+ } | {
260
+ type: "thinking";
261
+ thinking: string;
262
+ thinkingSignature?: string;
263
+ redacted?: boolean;
263
264
  } | {
264
265
  arguments: Record<string, any>;
265
266
  callID: string;
266
267
  name: string;
267
268
  namespace?: string;
268
- result: {
269
- content: ({
269
+ partial?: {
270
+ content?: ({
270
271
  type: "text";
271
272
  text: string;
272
273
  textSignature?: string;
@@ -276,9 +277,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
276
277
  mimeType: string;
277
278
  })[];
278
279
  details?: any;
279
- isError: true;
280
280
  };
281
- status: "aborted";
281
+ status: "running";
282
282
  thoughtSignature?: string;
283
283
  time: {
284
284
  start: number;
@@ -445,25 +445,12 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
445
445
  completed: number;
446
446
  };
447
447
  parts: ({
448
- type: "text";
449
- text: string;
450
- textSignature?: string;
451
- } | {
452
- type: "image";
453
- data: string;
454
- mimeType: string;
455
- } | {
456
- type: "thinking";
457
- thinking: string;
458
- thinkingSignature?: string;
459
- redacted?: boolean;
460
- } | {
461
448
  arguments: Record<string, any>;
462
449
  callID: string;
463
450
  name: string;
464
451
  namespace?: string;
465
- partial?: {
466
- content?: ({
452
+ result: {
453
+ content: ({
467
454
  type: "text";
468
455
  text: string;
469
456
  textSignature?: string;
@@ -473,8 +460,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
473
460
  mimeType: string;
474
461
  })[];
475
462
  details?: any;
463
+ isError: false;
476
464
  };
477
- status: "running";
465
+ status: "completed";
478
466
  thoughtSignature?: string;
479
467
  time: {
480
468
  start: number;
@@ -497,9 +485,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
497
485
  mimeType: string;
498
486
  })[];
499
487
  details?: any;
500
- isError: false;
488
+ isError: true;
501
489
  };
502
- status: "completed";
490
+ status: "error";
503
491
  thoughtSignature?: string;
504
492
  time: {
505
493
  start: number;
@@ -524,7 +512,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
524
512
  details?: any;
525
513
  isError: true;
526
514
  };
527
- status: "error";
515
+ status: "skipped";
528
516
  thoughtSignature?: string;
529
517
  time: {
530
518
  start: number;
@@ -549,20 +537,33 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
549
537
  details?: any;
550
538
  isError: true;
551
539
  };
552
- status: "skipped";
540
+ status: "aborted";
553
541
  thoughtSignature?: string;
554
542
  time: {
555
543
  start: number;
556
544
  end: number;
557
545
  };
558
546
  type: "toolCall";
547
+ } | {
548
+ type: "text";
549
+ text: string;
550
+ textSignature?: string;
551
+ } | {
552
+ type: "image";
553
+ data: string;
554
+ mimeType: string;
555
+ } | {
556
+ type: "thinking";
557
+ thinking: string;
558
+ thinkingSignature?: string;
559
+ redacted?: boolean;
559
560
  } | {
560
561
  arguments: Record<string, any>;
561
562
  callID: string;
562
563
  name: string;
563
564
  namespace?: string;
564
- result: {
565
- content: ({
565
+ partial?: {
566
+ content?: ({
566
567
  type: "text";
567
568
  text: string;
568
569
  textSignature?: string;
@@ -572,9 +573,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
572
573
  mimeType: string;
573
574
  })[];
574
575
  details?: any;
575
- isError: true;
576
576
  };
577
- status: "aborted";
577
+ status: "running";
578
578
  thoughtSignature?: string;
579
579
  time: {
580
580
  start: number;
@@ -602,25 +602,12 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
602
602
  type AikitAssistantMessage = typeof AikitAssistantMessage.Type;
603
603
  /** One part of an aikit assistant message, streaming-only fields stripped like {@link AikitAssistantMessage}. */
604
604
  declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
605
- type: "text";
606
- text: string;
607
- textSignature?: string;
608
- } | {
609
- type: "image";
610
- data: string;
611
- mimeType: string;
612
- } | {
613
- type: "thinking";
614
- thinking: string;
615
- thinkingSignature?: string;
616
- redacted?: boolean;
617
- } | {
618
605
  arguments: Record<string, any>;
619
606
  callID: string;
620
607
  name: string;
621
608
  namespace?: string;
622
- partial?: {
623
- content?: ({
609
+ result: {
610
+ content: ({
624
611
  type: "text";
625
612
  text: string;
626
613
  textSignature?: string;
@@ -630,8 +617,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
630
617
  mimeType: string;
631
618
  })[];
632
619
  details?: any;
620
+ isError: false;
633
621
  };
634
- status: "running";
622
+ status: "completed";
635
623
  thoughtSignature?: string;
636
624
  time: {
637
625
  start: number;
@@ -654,9 +642,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
654
642
  mimeType: string;
655
643
  })[];
656
644
  details?: any;
657
- isError: false;
645
+ isError: true;
658
646
  };
659
- status: "completed";
647
+ status: "error";
660
648
  thoughtSignature?: string;
661
649
  time: {
662
650
  start: number;
@@ -681,7 +669,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
681
669
  details?: any;
682
670
  isError: true;
683
671
  };
684
- status: "error";
672
+ status: "skipped";
685
673
  thoughtSignature?: string;
686
674
  time: {
687
675
  start: number;
@@ -706,20 +694,33 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
706
694
  details?: any;
707
695
  isError: true;
708
696
  };
709
- status: "skipped";
697
+ status: "aborted";
710
698
  thoughtSignature?: string;
711
699
  time: {
712
700
  start: number;
713
701
  end: number;
714
702
  };
715
703
  type: "toolCall";
704
+ } | {
705
+ type: "text";
706
+ text: string;
707
+ textSignature?: string;
708
+ } | {
709
+ type: "image";
710
+ data: string;
711
+ mimeType: string;
712
+ } | {
713
+ type: "thinking";
714
+ thinking: string;
715
+ thinkingSignature?: string;
716
+ redacted?: boolean;
716
717
  } | {
717
718
  arguments: Record<string, any>;
718
719
  callID: string;
719
720
  name: string;
720
721
  namespace?: string;
721
- result: {
722
- content: ({
722
+ partial?: {
723
+ content?: ({
723
724
  type: "text";
724
725
  text: string;
725
726
  textSignature?: string;
@@ -729,9 +730,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
729
730
  mimeType: string;
730
731
  })[];
731
732
  details?: any;
732
- isError: true;
733
733
  };
734
- status: "aborted";
734
+ status: "running";
735
735
  thoughtSignature?: string;
736
736
  time: {
737
737
  start: number;
@@ -752,25 +752,12 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
752
752
  } & {
753
753
  status: "pending";
754
754
  }), {
755
- type: "text";
756
- text: string;
757
- textSignature?: string;
758
- } | {
759
- type: "image";
760
- data: string;
761
- mimeType: string;
762
- } | {
763
- type: "thinking";
764
- thinking: string;
765
- thinkingSignature?: string;
766
- redacted?: boolean;
767
- } | {
768
755
  arguments: Record<string, any>;
769
756
  callID: string;
770
757
  name: string;
771
758
  namespace?: string;
772
- partial?: {
773
- content?: ({
759
+ result: {
760
+ content: ({
774
761
  type: "text";
775
762
  text: string;
776
763
  textSignature?: string;
@@ -780,8 +767,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
780
767
  mimeType: string;
781
768
  })[];
782
769
  details?: any;
770
+ isError: false;
783
771
  };
784
- status: "running";
772
+ status: "completed";
785
773
  thoughtSignature?: string;
786
774
  time: {
787
775
  start: number;
@@ -804,9 +792,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
804
792
  mimeType: string;
805
793
  })[];
806
794
  details?: any;
807
- isError: false;
795
+ isError: true;
808
796
  };
809
- status: "completed";
797
+ status: "error";
810
798
  thoughtSignature?: string;
811
799
  time: {
812
800
  start: number;
@@ -831,7 +819,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
831
819
  details?: any;
832
820
  isError: true;
833
821
  };
834
- status: "error";
822
+ status: "skipped";
835
823
  thoughtSignature?: string;
836
824
  time: {
837
825
  start: number;
@@ -856,20 +844,33 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
856
844
  details?: any;
857
845
  isError: true;
858
846
  };
859
- status: "skipped";
847
+ status: "aborted";
860
848
  thoughtSignature?: string;
861
849
  time: {
862
850
  start: number;
863
851
  end: number;
864
852
  };
865
853
  type: "toolCall";
854
+ } | {
855
+ type: "text";
856
+ text: string;
857
+ textSignature?: string;
858
+ } | {
859
+ type: "image";
860
+ data: string;
861
+ mimeType: string;
862
+ } | {
863
+ type: "thinking";
864
+ thinking: string;
865
+ thinkingSignature?: string;
866
+ redacted?: boolean;
866
867
  } | {
867
868
  arguments: Record<string, any>;
868
869
  callID: string;
869
870
  name: string;
870
871
  namespace?: string;
871
- result: {
872
- content: ({
872
+ partial?: {
873
+ content?: ({
873
874
  type: "text";
874
875
  text: string;
875
876
  textSignature?: string;
@@ -879,9 +880,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
879
880
  mimeType: string;
880
881
  })[];
881
882
  details?: any;
882
- isError: true;
883
883
  };
884
- status: "aborted";
884
+ status: "running";
885
885
  thoughtSignature?: string;
886
886
  time: {
887
887
  start: number;
@@ -1179,4 +1179,4 @@ declare function durable<const Definitions extends ReadonlyArray<Definition>>(de
1179
1179
  declare function latest(definitions: ReadonlyArray<Definition>): ReadonlyMap<string, Definition<string, Schema.Codec<unknown, unknown, never, never>>>;
1180
1180
  //#endregion
1181
1181
  export { Definition as a, PublishOptions as c, event_d_exports as d, inventory as f, Data as i, define as l, versionedType as m, AikitAssistantPart as n, ID as o, latest as p, AikitToolCallTerminalPart as r, Payload as s, AikitAssistantMessage as t, durable as u };
1182
- //# sourceMappingURL=event-CE0D5YvD.d.mts.map
1182
+ //# sourceMappingURL=event-B4EXJQcU.d.mts.map
package/event.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as Definition, c as PublishOptions, d as event_d_exports, f as inventory, i as Data, l as define, m as versionedType, n as AikitAssistantPart, o as ID, p as latest, r as AikitToolCallTerminalPart, s as Payload, t as AikitAssistantMessage, u as durable } from "./event-CE0D5YvD.mjs";
1
+ import { a as Definition, c as PublishOptions, d as event_d_exports, f as inventory, i as Data, l as define, m as versionedType, n as AikitAssistantPart, o as ID, p as latest, r as AikitToolCallTerminalPart, s as Payload, t as AikitAssistantMessage, u as durable } from "./event-B4EXJQcU.mjs";
2
2
  export { AikitAssistantMessage, AikitAssistantPart, 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 { b as tool_d_exports } from "./tool-C7gcMoga.mjs";
3
- import { t as plugin_d_exports } from "./plugin-D_e29nKR.mjs";
3
+ import { t as plugin_d_exports } from "./plugin-DWhny4p-.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.83.1.g5b425b57",
3
+ "version": "0.3.0-canary.84.1.gce0dac2c",
4
4
  "description": "SDK for building CodeWork plugins — the plugin, tool, and sandbox contracts shared with @codeworksh/harness.",
5
5
  "keywords": [
6
6
  "agent",
@@ -173,7 +173,7 @@
173
173
  "uuidv7": "^1.2.1"
174
174
  },
175
175
  "peerDependencies": {
176
- "@codeworksh/aikit": "0.12.1-canary.83.1.g5b425b57",
176
+ "@codeworksh/aikit": "0.12.1-canary.84.1.gce0dac2c",
177
177
  "effect": "4.0.5"
178
178
  }
179
179
  }
@@ -1,4 +1,4 @@
1
- import { a as Definition, c as PublishOptions, i as Data, s as Payload } from "./event-CE0D5YvD.mjs";
1
+ import { a as Definition, c as PublishOptions, i as Data, s as Payload } from "./event-B4EXJQcU.mjs";
2
2
  import { n as SessionID, r as ThreadID } from "./ids-CpPeP5Ks.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";
@@ -164,4 +164,4 @@ declare namespace plugin_d_exports {
164
164
  }
165
165
  //#endregion
166
166
  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 };
167
- //# sourceMappingURL=plugin-D_e29nKR.d.mts.map
167
+ //# sourceMappingURL=plugin-DWhny4p-.d.mts.map
package/plugin.d.mts CHANGED
@@ -2,5 +2,5 @@ import { l as mcp_d_exports } from "./mcp-DEWhnBQw.mjs";
2
2
  import { t as section_d_exports } from "./plugin/section.mjs";
3
3
  import { n as prompt_d_exports } from "./prompt-DWaA5ZXj.mjs";
4
4
  import { p as tool_d_exports } from "./tool-C9TzQ9nG.mjs";
5
- 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-D_e29nKR.mjs";
5
+ 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-DWhny4p-.mjs";
6
6
  export { type Config, type Events, mcp_d_exports as Mcp, 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 };