@codeworksh/plugin 0.3.0-canary.87.1.gd08693c4 → 0.3.0-canary.89.1.g133d6521

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,30 +144,28 @@ 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: ({
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
163
  arguments: Record<string, any>;
166
164
  callID: string;
167
165
  name: string;
168
166
  namespace?: string;
169
- partial?: {
170
- content?: ({
167
+ result: {
168
+ content: ({
171
169
  type: "text";
172
170
  text: string;
173
171
  textSignature?: string;
@@ -177,8 +175,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
177
175
  mimeType: string;
178
176
  })[];
179
177
  details?: any;
178
+ isError: false;
180
179
  };
181
- status: "running";
180
+ status: "completed";
182
181
  thoughtSignature?: string;
183
182
  time: {
184
183
  start: number;
@@ -201,9 +200,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
201
200
  mimeType: string;
202
201
  })[];
203
202
  details?: any;
204
- isError: false;
203
+ isError: true;
205
204
  };
206
- status: "completed";
205
+ status: "error";
207
206
  thoughtSignature?: string;
208
207
  time: {
209
208
  start: number;
@@ -228,7 +227,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
228
227
  details?: any;
229
228
  isError: true;
230
229
  };
231
- status: "error";
230
+ status: "skipped";
232
231
  thoughtSignature?: string;
233
232
  time: {
234
233
  start: number;
@@ -253,20 +252,33 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
253
252
  details?: any;
254
253
  isError: true;
255
254
  };
256
- status: "skipped";
255
+ status: "aborted";
257
256
  thoughtSignature?: string;
258
257
  time: {
259
258
  start: number;
260
259
  end: number;
261
260
  };
262
261
  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;
263
275
  } | {
264
276
  arguments: Record<string, any>;
265
277
  callID: string;
266
278
  name: string;
267
279
  namespace?: string;
268
- result: {
269
- content: ({
280
+ partial?: {
281
+ content?: ({
270
282
  type: "text";
271
283
  text: string;
272
284
  textSignature?: string;
@@ -276,9 +288,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
276
288
  mimeType: string;
277
289
  })[];
278
290
  details?: any;
279
- isError: true;
280
291
  };
281
- status: "aborted";
292
+ status: "running";
282
293
  thoughtSignature?: string;
283
294
  time: {
284
295
  start: number;
@@ -440,30 +451,28 @@ 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: ({
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
470
  arguments: Record<string, any>;
462
471
  callID: string;
463
472
  name: string;
464
473
  namespace?: string;
465
- partial?: {
466
- content?: ({
474
+ result: {
475
+ content: ({
467
476
  type: "text";
468
477
  text: string;
469
478
  textSignature?: string;
@@ -473,8 +482,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
473
482
  mimeType: string;
474
483
  })[];
475
484
  details?: any;
485
+ isError: false;
476
486
  };
477
- status: "running";
487
+ status: "completed";
478
488
  thoughtSignature?: string;
479
489
  time: {
480
490
  start: number;
@@ -497,9 +507,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
497
507
  mimeType: string;
498
508
  })[];
499
509
  details?: any;
500
- isError: false;
510
+ isError: true;
501
511
  };
502
- status: "completed";
512
+ status: "error";
503
513
  thoughtSignature?: string;
504
514
  time: {
505
515
  start: number;
@@ -524,7 +534,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
524
534
  details?: any;
525
535
  isError: true;
526
536
  };
527
- status: "error";
537
+ status: "skipped";
528
538
  thoughtSignature?: string;
529
539
  time: {
530
540
  start: number;
@@ -549,20 +559,33 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
549
559
  details?: any;
550
560
  isError: true;
551
561
  };
552
- status: "skipped";
562
+ status: "aborted";
553
563
  thoughtSignature?: string;
554
564
  time: {
555
565
  start: number;
556
566
  end: number;
557
567
  };
558
568
  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;
559
582
  } | {
560
583
  arguments: Record<string, any>;
561
584
  callID: string;
562
585
  name: string;
563
586
  namespace?: string;
564
- result: {
565
- content: ({
587
+ partial?: {
588
+ content?: ({
566
589
  type: "text";
567
590
  text: string;
568
591
  textSignature?: string;
@@ -572,9 +595,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
572
595
  mimeType: string;
573
596
  })[];
574
597
  details?: any;
575
- isError: true;
576
598
  };
577
- status: "aborted";
599
+ status: "running";
578
600
  thoughtSignature?: string;
579
601
  time: {
580
602
  start: number;
@@ -602,25 +624,12 @@ 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<{
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
627
  arguments: Record<string, any>;
619
628
  callID: string;
620
629
  name: string;
621
630
  namespace?: string;
622
- partial?: {
623
- content?: ({
631
+ result: {
632
+ content: ({
624
633
  type: "text";
625
634
  text: string;
626
635
  textSignature?: string;
@@ -630,8 +639,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
630
639
  mimeType: string;
631
640
  })[];
632
641
  details?: any;
642
+ isError: false;
633
643
  };
634
- status: "running";
644
+ status: "completed";
635
645
  thoughtSignature?: string;
636
646
  time: {
637
647
  start: number;
@@ -654,9 +664,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
654
664
  mimeType: string;
655
665
  })[];
656
666
  details?: any;
657
- isError: false;
667
+ isError: true;
658
668
  };
659
- status: "completed";
669
+ status: "error";
660
670
  thoughtSignature?: string;
661
671
  time: {
662
672
  start: number;
@@ -681,7 +691,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
681
691
  details?: any;
682
692
  isError: true;
683
693
  };
684
- status: "error";
694
+ status: "skipped";
685
695
  thoughtSignature?: string;
686
696
  time: {
687
697
  start: number;
@@ -706,20 +716,33 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
706
716
  details?: any;
707
717
  isError: true;
708
718
  };
709
- status: "skipped";
719
+ status: "aborted";
710
720
  thoughtSignature?: string;
711
721
  time: {
712
722
  start: number;
713
723
  end: number;
714
724
  };
715
725
  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;
716
739
  } | {
717
740
  arguments: Record<string, any>;
718
741
  callID: string;
719
742
  name: string;
720
743
  namespace?: string;
721
- result: {
722
- content: ({
744
+ partial?: {
745
+ content?: ({
723
746
  type: "text";
724
747
  text: string;
725
748
  textSignature?: string;
@@ -729,9 +752,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
729
752
  mimeType: string;
730
753
  })[];
731
754
  details?: any;
732
- isError: true;
733
755
  };
734
- status: "aborted";
756
+ status: "running";
735
757
  thoughtSignature?: string;
736
758
  time: {
737
759
  start: number;
@@ -752,25 +774,12 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
752
774
  } & {
753
775
  status: "pending";
754
776
  }), {
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
777
  arguments: Record<string, any>;
769
778
  callID: string;
770
779
  name: string;
771
780
  namespace?: string;
772
- partial?: {
773
- content?: ({
781
+ result: {
782
+ content: ({
774
783
  type: "text";
775
784
  text: string;
776
785
  textSignature?: string;
@@ -780,8 +789,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
780
789
  mimeType: string;
781
790
  })[];
782
791
  details?: any;
792
+ isError: false;
783
793
  };
784
- status: "running";
794
+ status: "completed";
785
795
  thoughtSignature?: string;
786
796
  time: {
787
797
  start: number;
@@ -804,9 +814,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
804
814
  mimeType: string;
805
815
  })[];
806
816
  details?: any;
807
- isError: false;
817
+ isError: true;
808
818
  };
809
- status: "completed";
819
+ status: "error";
810
820
  thoughtSignature?: string;
811
821
  time: {
812
822
  start: number;
@@ -831,7 +841,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
831
841
  details?: any;
832
842
  isError: true;
833
843
  };
834
- status: "error";
844
+ status: "skipped";
835
845
  thoughtSignature?: string;
836
846
  time: {
837
847
  start: number;
@@ -856,20 +866,33 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
856
866
  details?: any;
857
867
  isError: true;
858
868
  };
859
- status: "skipped";
869
+ status: "aborted";
860
870
  thoughtSignature?: string;
861
871
  time: {
862
872
  start: number;
863
873
  end: number;
864
874
  };
865
875
  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;
866
889
  } | {
867
890
  arguments: Record<string, any>;
868
891
  callID: string;
869
892
  name: string;
870
893
  namespace?: string;
871
- result: {
872
- content: ({
894
+ partial?: {
895
+ content?: ({
873
896
  type: "text";
874
897
  text: string;
875
898
  textSignature?: string;
@@ -879,9 +902,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
879
902
  mimeType: string;
880
903
  })[];
881
904
  details?: any;
882
- isError: true;
883
905
  };
884
- status: "aborted";
906
+ status: "running";
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-CE0D5YvD.d.mts.map
1204
+ //# sourceMappingURL=event-4vpzqLAw.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-4vpzqLAw.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-B0F8Mw-9.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.87.1.gd08693c4",
3
+ "version": "0.3.0-canary.89.1.g133d6521",
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.87.1.gd08693c4",
176
+ "@codeworksh/aikit": "0.12.1-canary.89.1.g133d6521",
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-4vpzqLAw.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-B0F8Mw-9.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-B0F8Mw-9.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 };