@codeworksh/plugin 0.3.0-canary.89.1.g133d6521 → 0.3.0-canary.90.1.gec09b058

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.
@@ -160,12 +160,25 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
160
160
  completed: number;
161
161
  };
162
162
  parts: ({
163
+ type: "text";
164
+ text: string;
165
+ textSignature?: string;
166
+ } | {
167
+ type: "image";
168
+ data: string;
169
+ mimeType: string;
170
+ } | {
171
+ type: "thinking";
172
+ thinking: string;
173
+ thinkingSignature?: string;
174
+ redacted?: boolean;
175
+ } | {
163
176
  arguments: Record<string, any>;
164
177
  callID: string;
165
178
  name: string;
166
179
  namespace?: string;
167
- result: {
168
- content: ({
180
+ partial?: {
181
+ content?: ({
169
182
  type: "text";
170
183
  text: string;
171
184
  textSignature?: string;
@@ -175,9 +188,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
175
188
  mimeType: string;
176
189
  })[];
177
190
  details?: any;
178
- isError: false;
179
191
  };
180
- status: "completed";
192
+ status: "running";
181
193
  thoughtSignature?: string;
182
194
  time: {
183
195
  start: number;
@@ -200,9 +212,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
200
212
  mimeType: string;
201
213
  })[];
202
214
  details?: any;
203
- isError: true;
215
+ isError: false;
204
216
  };
205
- status: "error";
217
+ status: "completed";
206
218
  thoughtSignature?: string;
207
219
  time: {
208
220
  start: number;
@@ -227,7 +239,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
227
239
  details?: any;
228
240
  isError: true;
229
241
  };
230
- status: "skipped";
242
+ status: "error";
231
243
  thoughtSignature?: string;
232
244
  time: {
233
245
  start: number;
@@ -252,33 +264,20 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
252
264
  details?: any;
253
265
  isError: true;
254
266
  };
255
- status: "aborted";
267
+ status: "skipped";
256
268
  thoughtSignature?: string;
257
269
  time: {
258
270
  start: number;
259
271
  end: number;
260
272
  };
261
273
  type: "toolCall";
262
- } | {
263
- type: "text";
264
- text: string;
265
- textSignature?: string;
266
- } | {
267
- type: "image";
268
- data: string;
269
- mimeType: string;
270
- } | {
271
- type: "thinking";
272
- thinking: string;
273
- thinkingSignature?: string;
274
- redacted?: boolean;
275
274
  } | {
276
275
  arguments: Record<string, any>;
277
276
  callID: string;
278
277
  name: string;
279
278
  namespace?: string;
280
- partial?: {
281
- content?: ({
279
+ result: {
280
+ content: ({
282
281
  type: "text";
283
282
  text: string;
284
283
  textSignature?: string;
@@ -288,8 +287,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
288
287
  mimeType: string;
289
288
  })[];
290
289
  details?: any;
290
+ isError: true;
291
291
  };
292
- status: "running";
292
+ status: "aborted";
293
293
  thoughtSignature?: string;
294
294
  time: {
295
295
  start: number;
@@ -467,12 +467,25 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
467
467
  completed: number;
468
468
  };
469
469
  parts: ({
470
+ type: "text";
471
+ text: string;
472
+ textSignature?: string;
473
+ } | {
474
+ type: "image";
475
+ data: string;
476
+ mimeType: string;
477
+ } | {
478
+ type: "thinking";
479
+ thinking: string;
480
+ thinkingSignature?: string;
481
+ redacted?: boolean;
482
+ } | {
470
483
  arguments: Record<string, any>;
471
484
  callID: string;
472
485
  name: string;
473
486
  namespace?: string;
474
- result: {
475
- content: ({
487
+ partial?: {
488
+ content?: ({
476
489
  type: "text";
477
490
  text: string;
478
491
  textSignature?: string;
@@ -482,9 +495,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
482
495
  mimeType: string;
483
496
  })[];
484
497
  details?: any;
485
- isError: false;
486
498
  };
487
- status: "completed";
499
+ status: "running";
488
500
  thoughtSignature?: string;
489
501
  time: {
490
502
  start: number;
@@ -507,9 +519,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
507
519
  mimeType: string;
508
520
  })[];
509
521
  details?: any;
510
- isError: true;
522
+ isError: false;
511
523
  };
512
- status: "error";
524
+ status: "completed";
513
525
  thoughtSignature?: string;
514
526
  time: {
515
527
  start: number;
@@ -534,7 +546,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
534
546
  details?: any;
535
547
  isError: true;
536
548
  };
537
- status: "skipped";
549
+ status: "error";
538
550
  thoughtSignature?: string;
539
551
  time: {
540
552
  start: number;
@@ -559,33 +571,20 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
559
571
  details?: any;
560
572
  isError: true;
561
573
  };
562
- status: "aborted";
574
+ status: "skipped";
563
575
  thoughtSignature?: string;
564
576
  time: {
565
577
  start: number;
566
578
  end: number;
567
579
  };
568
580
  type: "toolCall";
569
- } | {
570
- type: "text";
571
- text: string;
572
- textSignature?: string;
573
- } | {
574
- type: "image";
575
- data: string;
576
- mimeType: string;
577
- } | {
578
- type: "thinking";
579
- thinking: string;
580
- thinkingSignature?: string;
581
- redacted?: boolean;
582
581
  } | {
583
582
  arguments: Record<string, any>;
584
583
  callID: string;
585
584
  name: string;
586
585
  namespace?: string;
587
- partial?: {
588
- content?: ({
586
+ result: {
587
+ content: ({
589
588
  type: "text";
590
589
  text: string;
591
590
  textSignature?: string;
@@ -595,8 +594,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
595
594
  mimeType: string;
596
595
  })[];
597
596
  details?: any;
597
+ isError: true;
598
598
  };
599
- status: "running";
599
+ status: "aborted";
600
600
  thoughtSignature?: string;
601
601
  time: {
602
602
  start: number;
@@ -624,12 +624,25 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
624
624
  type AikitAssistantMessage = typeof AikitAssistantMessage.Type;
625
625
  /** One part of an aikit assistant message, streaming-only fields stripped like {@link AikitAssistantMessage}. */
626
626
  declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
627
+ type: "text";
628
+ text: string;
629
+ textSignature?: string;
630
+ } | {
631
+ type: "image";
632
+ data: string;
633
+ mimeType: string;
634
+ } | {
635
+ type: "thinking";
636
+ thinking: string;
637
+ thinkingSignature?: string;
638
+ redacted?: boolean;
639
+ } | {
627
640
  arguments: Record<string, any>;
628
641
  callID: string;
629
642
  name: string;
630
643
  namespace?: string;
631
- result: {
632
- content: ({
644
+ partial?: {
645
+ content?: ({
633
646
  type: "text";
634
647
  text: string;
635
648
  textSignature?: string;
@@ -639,9 +652,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
639
652
  mimeType: string;
640
653
  })[];
641
654
  details?: any;
642
- isError: false;
643
655
  };
644
- status: "completed";
656
+ status: "running";
645
657
  thoughtSignature?: string;
646
658
  time: {
647
659
  start: number;
@@ -664,9 +676,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
664
676
  mimeType: string;
665
677
  })[];
666
678
  details?: any;
667
- isError: true;
679
+ isError: false;
668
680
  };
669
- status: "error";
681
+ status: "completed";
670
682
  thoughtSignature?: string;
671
683
  time: {
672
684
  start: number;
@@ -691,7 +703,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
691
703
  details?: any;
692
704
  isError: true;
693
705
  };
694
- status: "skipped";
706
+ status: "error";
695
707
  thoughtSignature?: string;
696
708
  time: {
697
709
  start: number;
@@ -716,33 +728,20 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
716
728
  details?: any;
717
729
  isError: true;
718
730
  };
719
- status: "aborted";
731
+ status: "skipped";
720
732
  thoughtSignature?: string;
721
733
  time: {
722
734
  start: number;
723
735
  end: number;
724
736
  };
725
737
  type: "toolCall";
726
- } | {
727
- type: "text";
728
- text: string;
729
- textSignature?: string;
730
- } | {
731
- type: "image";
732
- data: string;
733
- mimeType: string;
734
- } | {
735
- type: "thinking";
736
- thinking: string;
737
- thinkingSignature?: string;
738
- redacted?: boolean;
739
738
  } | {
740
739
  arguments: Record<string, any>;
741
740
  callID: string;
742
741
  name: string;
743
742
  namespace?: string;
744
- partial?: {
745
- content?: ({
743
+ result: {
744
+ content: ({
746
745
  type: "text";
747
746
  text: string;
748
747
  textSignature?: string;
@@ -752,8 +751,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
752
751
  mimeType: string;
753
752
  })[];
754
753
  details?: any;
754
+ isError: true;
755
755
  };
756
- status: "running";
756
+ status: "aborted";
757
757
  thoughtSignature?: string;
758
758
  time: {
759
759
  start: number;
@@ -774,12 +774,25 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
774
774
  } & {
775
775
  status: "pending";
776
776
  }), {
777
+ type: "text";
778
+ text: string;
779
+ textSignature?: string;
780
+ } | {
781
+ type: "image";
782
+ data: string;
783
+ mimeType: string;
784
+ } | {
785
+ type: "thinking";
786
+ thinking: string;
787
+ thinkingSignature?: string;
788
+ redacted?: boolean;
789
+ } | {
777
790
  arguments: Record<string, any>;
778
791
  callID: string;
779
792
  name: string;
780
793
  namespace?: string;
781
- result: {
782
- content: ({
794
+ partial?: {
795
+ content?: ({
783
796
  type: "text";
784
797
  text: string;
785
798
  textSignature?: string;
@@ -789,9 +802,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
789
802
  mimeType: string;
790
803
  })[];
791
804
  details?: any;
792
- isError: false;
793
805
  };
794
- status: "completed";
806
+ status: "running";
795
807
  thoughtSignature?: string;
796
808
  time: {
797
809
  start: number;
@@ -814,9 +826,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
814
826
  mimeType: string;
815
827
  })[];
816
828
  details?: any;
817
- isError: true;
829
+ isError: false;
818
830
  };
819
- status: "error";
831
+ status: "completed";
820
832
  thoughtSignature?: string;
821
833
  time: {
822
834
  start: number;
@@ -841,7 +853,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
841
853
  details?: any;
842
854
  isError: true;
843
855
  };
844
- status: "skipped";
856
+ status: "error";
845
857
  thoughtSignature?: string;
846
858
  time: {
847
859
  start: number;
@@ -866,33 +878,20 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
866
878
  details?: any;
867
879
  isError: true;
868
880
  };
869
- status: "aborted";
881
+ status: "skipped";
870
882
  thoughtSignature?: string;
871
883
  time: {
872
884
  start: number;
873
885
  end: number;
874
886
  };
875
887
  type: "toolCall";
876
- } | {
877
- type: "text";
878
- text: string;
879
- textSignature?: string;
880
- } | {
881
- type: "image";
882
- data: string;
883
- mimeType: string;
884
- } | {
885
- type: "thinking";
886
- thinking: string;
887
- thinkingSignature?: string;
888
- redacted?: boolean;
889
888
  } | {
890
889
  arguments: Record<string, any>;
891
890
  callID: string;
892
891
  name: string;
893
892
  namespace?: string;
894
- partial?: {
895
- content?: ({
893
+ result: {
894
+ content: ({
896
895
  type: "text";
897
896
  text: string;
898
897
  textSignature?: string;
@@ -902,8 +901,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
902
901
  mimeType: string;
903
902
  })[];
904
903
  details?: any;
904
+ isError: true;
905
905
  };
906
- status: "running";
906
+ status: "aborted";
907
907
  thoughtSignature?: string;
908
908
  time: {
909
909
  start: number;
@@ -1201,4 +1201,4 @@ declare function durable<const Definitions extends ReadonlyArray<Definition>>(de
1201
1201
  declare function latest(definitions: ReadonlyArray<Definition>): ReadonlyMap<string, Definition<string, Schema.Codec<unknown, unknown, never, never>>>;
1202
1202
  //#endregion
1203
1203
  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 };
1204
- //# sourceMappingURL=event-4vpzqLAw.d.mts.map
1204
+ //# sourceMappingURL=event-CmzS4aGe.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-4vpzqLAw.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-CmzS4aGe.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-B0F8Mw-9.mjs";
3
+ import { t as plugin_d_exports } from "./plugin-aMOw2zJZ.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.89.1.g133d6521",
3
+ "version": "0.3.0-canary.90.1.gec09b058",
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.89.1.g133d6521",
176
+ "@codeworksh/aikit": "0.12.1-canary.90.1.gec09b058",
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-4vpzqLAw.mjs";
1
+ import { a as Definition, c as PublishOptions, i as Data, s as Payload } from "./event-CmzS4aGe.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-B0F8Mw-9.d.mts.map
167
+ //# sourceMappingURL=plugin-aMOw2zJZ.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-B0F8Mw-9.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-aMOw2zJZ.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 };