@codeworksh/plugin 0.3.0-canary.88.1.g2a3bcb6e → 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.
@@ -144,17 +144,41 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
144
144
  retryAfterMs?: number;
145
145
  _tag: "Unknown";
146
146
  };
147
+ diagnostics?: {
148
+ type: string;
149
+ timestamp: number;
150
+ error?: {
151
+ name?: string;
152
+ message: string;
153
+ stack?: string;
154
+ code?: string | number;
155
+ };
156
+ details?: Record<string, unknown>;
157
+ }[];
147
158
  time: {
148
159
  created: number;
149
160
  completed: number;
150
161
  };
151
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
+ } | {
152
176
  arguments: Record<string, any>;
153
177
  callID: string;
154
178
  name: string;
155
179
  namespace?: string;
156
- result: {
157
- content: ({
180
+ partial?: {
181
+ content?: ({
158
182
  type: "text";
159
183
  text: string;
160
184
  textSignature?: string;
@@ -164,9 +188,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
164
188
  mimeType: string;
165
189
  })[];
166
190
  details?: any;
167
- isError: false;
168
191
  };
169
- status: "completed";
192
+ status: "running";
170
193
  thoughtSignature?: string;
171
194
  time: {
172
195
  start: number;
@@ -189,9 +212,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
189
212
  mimeType: string;
190
213
  })[];
191
214
  details?: any;
192
- isError: true;
215
+ isError: false;
193
216
  };
194
- status: "error";
217
+ status: "completed";
195
218
  thoughtSignature?: string;
196
219
  time: {
197
220
  start: number;
@@ -216,7 +239,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
216
239
  details?: any;
217
240
  isError: true;
218
241
  };
219
- status: "skipped";
242
+ status: "error";
220
243
  thoughtSignature?: string;
221
244
  time: {
222
245
  start: number;
@@ -241,33 +264,20 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
241
264
  details?: any;
242
265
  isError: true;
243
266
  };
244
- status: "aborted";
267
+ status: "skipped";
245
268
  thoughtSignature?: string;
246
269
  time: {
247
270
  start: number;
248
271
  end: number;
249
272
  };
250
273
  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;
264
274
  } | {
265
275
  arguments: Record<string, any>;
266
276
  callID: string;
267
277
  name: string;
268
278
  namespace?: string;
269
- partial?: {
270
- content?: ({
279
+ result: {
280
+ content: ({
271
281
  type: "text";
272
282
  text: string;
273
283
  textSignature?: string;
@@ -277,8 +287,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
277
287
  mimeType: string;
278
288
  })[];
279
289
  details?: any;
290
+ isError: true;
280
291
  };
281
- status: "running";
292
+ status: "aborted";
282
293
  thoughtSignature?: string;
283
294
  time: {
284
295
  start: number;
@@ -440,17 +451,41 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
440
451
  retryAfterMs?: number;
441
452
  _tag: "Unknown";
442
453
  };
454
+ diagnostics?: {
455
+ type: string;
456
+ timestamp: number;
457
+ error?: {
458
+ name?: string;
459
+ message: string;
460
+ stack?: string;
461
+ code?: string | number;
462
+ };
463
+ details?: Record<string, unknown>;
464
+ }[];
443
465
  time: {
444
466
  created: number;
445
467
  completed: number;
446
468
  };
447
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
+ } | {
448
483
  arguments: Record<string, any>;
449
484
  callID: string;
450
485
  name: string;
451
486
  namespace?: string;
452
- result: {
453
- content: ({
487
+ partial?: {
488
+ content?: ({
454
489
  type: "text";
455
490
  text: string;
456
491
  textSignature?: string;
@@ -460,9 +495,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
460
495
  mimeType: string;
461
496
  })[];
462
497
  details?: any;
463
- isError: false;
464
498
  };
465
- status: "completed";
499
+ status: "running";
466
500
  thoughtSignature?: string;
467
501
  time: {
468
502
  start: number;
@@ -485,9 +519,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
485
519
  mimeType: string;
486
520
  })[];
487
521
  details?: any;
488
- isError: true;
522
+ isError: false;
489
523
  };
490
- status: "error";
524
+ status: "completed";
491
525
  thoughtSignature?: string;
492
526
  time: {
493
527
  start: number;
@@ -512,7 +546,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
512
546
  details?: any;
513
547
  isError: true;
514
548
  };
515
- status: "skipped";
549
+ status: "error";
516
550
  thoughtSignature?: string;
517
551
  time: {
518
552
  start: number;
@@ -537,33 +571,20 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
537
571
  details?: any;
538
572
  isError: true;
539
573
  };
540
- status: "aborted";
574
+ status: "skipped";
541
575
  thoughtSignature?: string;
542
576
  time: {
543
577
  start: number;
544
578
  end: number;
545
579
  };
546
580
  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;
560
581
  } | {
561
582
  arguments: Record<string, any>;
562
583
  callID: string;
563
584
  name: string;
564
585
  namespace?: string;
565
- partial?: {
566
- content?: ({
586
+ result: {
587
+ content: ({
567
588
  type: "text";
568
589
  text: string;
569
590
  textSignature?: string;
@@ -573,8 +594,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
573
594
  mimeType: string;
574
595
  })[];
575
596
  details?: any;
597
+ isError: true;
576
598
  };
577
- status: "running";
599
+ status: "aborted";
578
600
  thoughtSignature?: string;
579
601
  time: {
580
602
  start: number;
@@ -602,12 +624,25 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
602
624
  type AikitAssistantMessage = typeof AikitAssistantMessage.Type;
603
625
  /** One part of an aikit assistant message, streaming-only fields stripped like {@link AikitAssistantMessage}. */
604
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
+ } | {
605
640
  arguments: Record<string, any>;
606
641
  callID: string;
607
642
  name: string;
608
643
  namespace?: string;
609
- result: {
610
- content: ({
644
+ partial?: {
645
+ content?: ({
611
646
  type: "text";
612
647
  text: string;
613
648
  textSignature?: string;
@@ -617,9 +652,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
617
652
  mimeType: string;
618
653
  })[];
619
654
  details?: any;
620
- isError: false;
621
655
  };
622
- status: "completed";
656
+ status: "running";
623
657
  thoughtSignature?: string;
624
658
  time: {
625
659
  start: number;
@@ -642,9 +676,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
642
676
  mimeType: string;
643
677
  })[];
644
678
  details?: any;
645
- isError: true;
679
+ isError: false;
646
680
  };
647
- status: "error";
681
+ status: "completed";
648
682
  thoughtSignature?: string;
649
683
  time: {
650
684
  start: number;
@@ -669,7 +703,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
669
703
  details?: any;
670
704
  isError: true;
671
705
  };
672
- status: "skipped";
706
+ status: "error";
673
707
  thoughtSignature?: string;
674
708
  time: {
675
709
  start: number;
@@ -694,33 +728,20 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
694
728
  details?: any;
695
729
  isError: true;
696
730
  };
697
- status: "aborted";
731
+ status: "skipped";
698
732
  thoughtSignature?: string;
699
733
  time: {
700
734
  start: number;
701
735
  end: number;
702
736
  };
703
737
  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;
717
738
  } | {
718
739
  arguments: Record<string, any>;
719
740
  callID: string;
720
741
  name: string;
721
742
  namespace?: string;
722
- partial?: {
723
- content?: ({
743
+ result: {
744
+ content: ({
724
745
  type: "text";
725
746
  text: string;
726
747
  textSignature?: string;
@@ -730,8 +751,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
730
751
  mimeType: string;
731
752
  })[];
732
753
  details?: any;
754
+ isError: true;
733
755
  };
734
- status: "running";
756
+ status: "aborted";
735
757
  thoughtSignature?: string;
736
758
  time: {
737
759
  start: number;
@@ -752,12 +774,25 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
752
774
  } & {
753
775
  status: "pending";
754
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
+ } | {
755
790
  arguments: Record<string, any>;
756
791
  callID: string;
757
792
  name: string;
758
793
  namespace?: string;
759
- result: {
760
- content: ({
794
+ partial?: {
795
+ content?: ({
761
796
  type: "text";
762
797
  text: string;
763
798
  textSignature?: string;
@@ -767,9 +802,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
767
802
  mimeType: string;
768
803
  })[];
769
804
  details?: any;
770
- isError: false;
771
805
  };
772
- status: "completed";
806
+ status: "running";
773
807
  thoughtSignature?: string;
774
808
  time: {
775
809
  start: number;
@@ -792,9 +826,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
792
826
  mimeType: string;
793
827
  })[];
794
828
  details?: any;
795
- isError: true;
829
+ isError: false;
796
830
  };
797
- status: "error";
831
+ status: "completed";
798
832
  thoughtSignature?: string;
799
833
  time: {
800
834
  start: number;
@@ -819,7 +853,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
819
853
  details?: any;
820
854
  isError: true;
821
855
  };
822
- status: "skipped";
856
+ status: "error";
823
857
  thoughtSignature?: string;
824
858
  time: {
825
859
  start: number;
@@ -844,33 +878,20 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
844
878
  details?: any;
845
879
  isError: true;
846
880
  };
847
- status: "aborted";
881
+ status: "skipped";
848
882
  thoughtSignature?: string;
849
883
  time: {
850
884
  start: number;
851
885
  end: number;
852
886
  };
853
887
  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;
867
888
  } | {
868
889
  arguments: Record<string, any>;
869
890
  callID: string;
870
891
  name: string;
871
892
  namespace?: string;
872
- partial?: {
873
- content?: ({
893
+ result: {
894
+ content: ({
874
895
  type: "text";
875
896
  text: string;
876
897
  textSignature?: string;
@@ -880,8 +901,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
880
901
  mimeType: string;
881
902
  })[];
882
903
  details?: any;
904
+ isError: true;
883
905
  };
884
- status: "running";
906
+ status: "aborted";
885
907
  thoughtSignature?: string;
886
908
  time: {
887
909
  start: number;
@@ -1179,4 +1201,4 @@ declare function durable<const Definitions extends ReadonlyArray<Definition>>(de
1179
1201
  declare function latest(definitions: ReadonlyArray<Definition>): ReadonlyMap<string, Definition<string, Schema.Codec<unknown, unknown, never, never>>>;
1180
1202
  //#endregion
1181
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 };
1182
- //# sourceMappingURL=event-B4EXJQcU.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-B4EXJQcU.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-DWhny4p-.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.88.1.g2a3bcb6e",
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.88.1.g2a3bcb6e",
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-B4EXJQcU.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-DWhny4p-.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-DWhny4p-.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 };