@codeworksh/plugin 0.3.0-canary.84.1.gce0dac2c → 0.3.0-canary.85.1.gcb2ed55e

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,12 +149,25 @@ 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
+ } | {
152
165
  arguments: Record<string, any>;
153
166
  callID: string;
154
167
  name: string;
155
168
  namespace?: string;
156
- result: {
157
- content: ({
169
+ partial?: {
170
+ content?: ({
158
171
  type: "text";
159
172
  text: string;
160
173
  textSignature?: string;
@@ -164,9 +177,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
164
177
  mimeType: string;
165
178
  })[];
166
179
  details?: any;
167
- isError: false;
168
180
  };
169
- status: "completed";
181
+ status: "running";
170
182
  thoughtSignature?: string;
171
183
  time: {
172
184
  start: number;
@@ -189,9 +201,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
189
201
  mimeType: string;
190
202
  })[];
191
203
  details?: any;
192
- isError: true;
204
+ isError: false;
193
205
  };
194
- status: "error";
206
+ status: "completed";
195
207
  thoughtSignature?: string;
196
208
  time: {
197
209
  start: number;
@@ -216,7 +228,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
216
228
  details?: any;
217
229
  isError: true;
218
230
  };
219
- status: "skipped";
231
+ status: "error";
220
232
  thoughtSignature?: string;
221
233
  time: {
222
234
  start: number;
@@ -241,33 +253,20 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
241
253
  details?: any;
242
254
  isError: true;
243
255
  };
244
- status: "aborted";
256
+ status: "skipped";
245
257
  thoughtSignature?: string;
246
258
  time: {
247
259
  start: number;
248
260
  end: number;
249
261
  };
250
262
  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
263
  } | {
265
264
  arguments: Record<string, any>;
266
265
  callID: string;
267
266
  name: string;
268
267
  namespace?: string;
269
- partial?: {
270
- content?: ({
268
+ result: {
269
+ content: ({
271
270
  type: "text";
272
271
  text: string;
273
272
  textSignature?: string;
@@ -277,8 +276,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
277
276
  mimeType: string;
278
277
  })[];
279
278
  details?: any;
279
+ isError: true;
280
280
  };
281
- status: "running";
281
+ status: "aborted";
282
282
  thoughtSignature?: string;
283
283
  time: {
284
284
  start: number;
@@ -445,12 +445,25 @@ 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
+ } | {
448
461
  arguments: Record<string, any>;
449
462
  callID: string;
450
463
  name: string;
451
464
  namespace?: string;
452
- result: {
453
- content: ({
465
+ partial?: {
466
+ content?: ({
454
467
  type: "text";
455
468
  text: string;
456
469
  textSignature?: string;
@@ -460,9 +473,8 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
460
473
  mimeType: string;
461
474
  })[];
462
475
  details?: any;
463
- isError: false;
464
476
  };
465
- status: "completed";
477
+ status: "running";
466
478
  thoughtSignature?: string;
467
479
  time: {
468
480
  start: number;
@@ -485,9 +497,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
485
497
  mimeType: string;
486
498
  })[];
487
499
  details?: any;
488
- isError: true;
500
+ isError: false;
489
501
  };
490
- status: "error";
502
+ status: "completed";
491
503
  thoughtSignature?: string;
492
504
  time: {
493
505
  start: number;
@@ -512,7 +524,7 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
512
524
  details?: any;
513
525
  isError: true;
514
526
  };
515
- status: "skipped";
527
+ status: "error";
516
528
  thoughtSignature?: string;
517
529
  time: {
518
530
  start: number;
@@ -537,33 +549,20 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
537
549
  details?: any;
538
550
  isError: true;
539
551
  };
540
- status: "aborted";
552
+ status: "skipped";
541
553
  thoughtSignature?: string;
542
554
  time: {
543
555
  start: number;
544
556
  end: number;
545
557
  };
546
558
  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
559
  } | {
561
560
  arguments: Record<string, any>;
562
561
  callID: string;
563
562
  name: string;
564
563
  namespace?: string;
565
- partial?: {
566
- content?: ({
564
+ result: {
565
+ content: ({
567
566
  type: "text";
568
567
  text: string;
569
568
  textSignature?: string;
@@ -573,8 +572,9 @@ declare const AikitAssistantMessage: Schema.decodeTo<Schema.declare<{
573
572
  mimeType: string;
574
573
  })[];
575
574
  details?: any;
575
+ isError: true;
576
576
  };
577
- status: "running";
577
+ status: "aborted";
578
578
  thoughtSignature?: string;
579
579
  time: {
580
580
  start: number;
@@ -602,12 +602,25 @@ 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
+ } | {
605
618
  arguments: Record<string, any>;
606
619
  callID: string;
607
620
  name: string;
608
621
  namespace?: string;
609
- result: {
610
- content: ({
622
+ partial?: {
623
+ content?: ({
611
624
  type: "text";
612
625
  text: string;
613
626
  textSignature?: string;
@@ -617,9 +630,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
617
630
  mimeType: string;
618
631
  })[];
619
632
  details?: any;
620
- isError: false;
621
633
  };
622
- status: "completed";
634
+ status: "running";
623
635
  thoughtSignature?: string;
624
636
  time: {
625
637
  start: number;
@@ -642,9 +654,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
642
654
  mimeType: string;
643
655
  })[];
644
656
  details?: any;
645
- isError: true;
657
+ isError: false;
646
658
  };
647
- status: "error";
659
+ status: "completed";
648
660
  thoughtSignature?: string;
649
661
  time: {
650
662
  start: number;
@@ -669,7 +681,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
669
681
  details?: any;
670
682
  isError: true;
671
683
  };
672
- status: "skipped";
684
+ status: "error";
673
685
  thoughtSignature?: string;
674
686
  time: {
675
687
  start: number;
@@ -694,33 +706,20 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
694
706
  details?: any;
695
707
  isError: true;
696
708
  };
697
- status: "aborted";
709
+ status: "skipped";
698
710
  thoughtSignature?: string;
699
711
  time: {
700
712
  start: number;
701
713
  end: number;
702
714
  };
703
715
  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
716
  } | {
718
717
  arguments: Record<string, any>;
719
718
  callID: string;
720
719
  name: string;
721
720
  namespace?: string;
722
- partial?: {
723
- content?: ({
721
+ result: {
722
+ content: ({
724
723
  type: "text";
725
724
  text: string;
726
725
  textSignature?: string;
@@ -730,8 +729,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
730
729
  mimeType: string;
731
730
  })[];
732
731
  details?: any;
732
+ isError: true;
733
733
  };
734
- status: "running";
734
+ status: "aborted";
735
735
  thoughtSignature?: string;
736
736
  time: {
737
737
  start: number;
@@ -752,12 +752,25 @@ 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
+ } | {
755
768
  arguments: Record<string, any>;
756
769
  callID: string;
757
770
  name: string;
758
771
  namespace?: string;
759
- result: {
760
- content: ({
772
+ partial?: {
773
+ content?: ({
761
774
  type: "text";
762
775
  text: string;
763
776
  textSignature?: string;
@@ -767,9 +780,8 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
767
780
  mimeType: string;
768
781
  })[];
769
782
  details?: any;
770
- isError: false;
771
783
  };
772
- status: "completed";
784
+ status: "running";
773
785
  thoughtSignature?: string;
774
786
  time: {
775
787
  start: number;
@@ -792,9 +804,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
792
804
  mimeType: string;
793
805
  })[];
794
806
  details?: any;
795
- isError: true;
807
+ isError: false;
796
808
  };
797
- status: "error";
809
+ status: "completed";
798
810
  thoughtSignature?: string;
799
811
  time: {
800
812
  start: number;
@@ -819,7 +831,7 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
819
831
  details?: any;
820
832
  isError: true;
821
833
  };
822
- status: "skipped";
834
+ status: "error";
823
835
  thoughtSignature?: string;
824
836
  time: {
825
837
  start: number;
@@ -844,33 +856,20 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
844
856
  details?: any;
845
857
  isError: true;
846
858
  };
847
- status: "aborted";
859
+ status: "skipped";
848
860
  thoughtSignature?: string;
849
861
  time: {
850
862
  start: number;
851
863
  end: number;
852
864
  };
853
865
  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
866
  } | {
868
867
  arguments: Record<string, any>;
869
868
  callID: string;
870
869
  name: string;
871
870
  namespace?: string;
872
- partial?: {
873
- content?: ({
871
+ result: {
872
+ content: ({
874
873
  type: "text";
875
874
  text: string;
876
875
  textSignature?: string;
@@ -880,8 +879,9 @@ declare const AikitAssistantPart: Schema.decodeTo<Schema.declare<{
880
879
  mimeType: string;
881
880
  })[];
882
881
  details?: any;
882
+ isError: true;
883
883
  };
884
- status: "running";
884
+ status: "aborted";
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-B4EXJQcU.d.mts.map
1182
+ //# sourceMappingURL=event-CE0D5YvD.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-CE0D5YvD.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-D_e29nKR.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.84.1.gce0dac2c",
3
+ "version": "0.3.0-canary.85.1.gcb2ed55e",
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.84.1.gce0dac2c",
176
+ "@codeworksh/aikit": "0.12.1-canary.85.1.gcb2ed55e",
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-CE0D5YvD.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-D_e29nKR.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-D_e29nKR.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 };