@codeworksh/harness 0.0.1-dev.20260922184400 → 0.0.1-dev.20260923035712

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.
Files changed (2) hide show
  1. package/effect.d.mts +52 -52
  2. package/package.json +3 -3
package/effect.d.mts CHANGED
@@ -2306,6 +2306,21 @@ type AikitPart = Message.AssistantMessage["parts"][number] | Message.UserMessage
2306
2306
  declare const encodePart: (part: AikitPart) => Effect.Effect<AppendPart, ContextEncodeError, never>;
2307
2307
  declare const validateUserMessage: (value: unknown, entryId: string, type: string) => Effect.Effect<Message.UserMessage, ContextDecodeError>;
2308
2308
  declare const encodeMessage: (message: {
2309
+ messageId: string;
2310
+ role: "user";
2311
+ time: {
2312
+ created: number;
2313
+ };
2314
+ parts: ({
2315
+ type: "text";
2316
+ text: string;
2317
+ textSignature?: string;
2318
+ } | {
2319
+ type: "image";
2320
+ data: string;
2321
+ mimeType: string;
2322
+ })[];
2323
+ } | {
2309
2324
  role: "assistant";
2310
2325
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
2311
2326
  provider: {
@@ -2453,19 +2468,14 @@ declare const encodeMessage: (message: {
2453
2468
  type: "image";
2454
2469
  data: string;
2455
2470
  mimeType: string;
2456
- } | {
2457
- type: "thinking";
2458
- thinking: string;
2459
- thinkingSignature?: string;
2460
- redacted?: boolean;
2461
2471
  } | {
2462
2472
  addedToolNames?: string[];
2463
2473
  arguments: Record<string, any>;
2464
2474
  callID: string;
2465
2475
  name: string;
2466
2476
  namespace?: string;
2467
- partial?: {
2468
- content?: ({
2477
+ result: {
2478
+ content: ({
2469
2479
  type: "text";
2470
2480
  text: string;
2471
2481
  textSignature?: string;
@@ -2475,8 +2485,9 @@ declare const encodeMessage: (message: {
2475
2485
  mimeType: string;
2476
2486
  })[];
2477
2487
  details?: any;
2488
+ isError: false;
2478
2489
  };
2479
- status: "running";
2490
+ status: "completed";
2480
2491
  thoughtSignature?: string;
2481
2492
  time: {
2482
2493
  start: number;
@@ -2500,9 +2511,9 @@ declare const encodeMessage: (message: {
2500
2511
  mimeType: string;
2501
2512
  })[];
2502
2513
  details?: any;
2503
- isError: false;
2514
+ isError: true;
2504
2515
  };
2505
- status: "completed";
2516
+ status: "error";
2506
2517
  thoughtSignature?: string;
2507
2518
  time: {
2508
2519
  start: number;
@@ -2528,7 +2539,7 @@ declare const encodeMessage: (message: {
2528
2539
  details?: any;
2529
2540
  isError: true;
2530
2541
  };
2531
- status: "error";
2542
+ status: "skipped";
2532
2543
  thoughtSignature?: string;
2533
2544
  time: {
2534
2545
  start: number;
@@ -2554,21 +2565,26 @@ declare const encodeMessage: (message: {
2554
2565
  details?: any;
2555
2566
  isError: true;
2556
2567
  };
2557
- status: "skipped";
2568
+ status: "aborted";
2558
2569
  thoughtSignature?: string;
2559
2570
  time: {
2560
2571
  start: number;
2561
2572
  end: number;
2562
2573
  };
2563
2574
  type: "toolCall";
2575
+ } | {
2576
+ type: "thinking";
2577
+ thinking: string;
2578
+ thinkingSignature?: string;
2579
+ redacted?: boolean;
2564
2580
  } | {
2565
2581
  addedToolNames?: string[];
2566
2582
  arguments: Record<string, any>;
2567
2583
  callID: string;
2568
2584
  name: string;
2569
2585
  namespace?: string;
2570
- result: {
2571
- content: ({
2586
+ partial?: {
2587
+ content?: ({
2572
2588
  type: "text";
2573
2589
  text: string;
2574
2590
  textSignature?: string;
@@ -2578,9 +2594,8 @@ declare const encodeMessage: (message: {
2578
2594
  mimeType: string;
2579
2595
  })[];
2580
2596
  details?: any;
2581
- isError: true;
2582
2597
  };
2583
- status: "aborted";
2598
+ status: "running";
2584
2599
  thoughtSignature?: string;
2585
2600
  time: {
2586
2601
  start: number;
@@ -2605,7 +2620,8 @@ declare const encodeMessage: (message: {
2605
2620
  responseId?: string;
2606
2621
  responseModel?: string;
2607
2622
  messageId: string;
2608
- } | {
2623
+ }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
2624
+ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2609
2625
  messageId: string;
2610
2626
  role: "user";
2611
2627
  time: {
@@ -2620,8 +2636,8 @@ declare const encodeMessage: (message: {
2620
2636
  data: string;
2621
2637
  mimeType: string;
2622
2638
  })[];
2623
- }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
2624
- declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2639
+ }, ContextDecodeError, never>;
2640
+ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2625
2641
  messageId: string;
2626
2642
  role: "user";
2627
2643
  time: {
@@ -2636,8 +2652,7 @@ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect
2636
2652
  data: string;
2637
2653
  mimeType: string;
2638
2654
  })[];
2639
- }, ContextDecodeError, never>;
2640
- declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2655
+ } | {
2641
2656
  role: "assistant";
2642
2657
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
2643
2658
  provider: {
@@ -2785,19 +2800,14 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2785
2800
  type: "image";
2786
2801
  data: string;
2787
2802
  mimeType: string;
2788
- } | {
2789
- type: "thinking";
2790
- thinking: string;
2791
- thinkingSignature?: string;
2792
- redacted?: boolean;
2793
2803
  } | {
2794
2804
  addedToolNames?: string[];
2795
2805
  arguments: Record<string, any>;
2796
2806
  callID: string;
2797
2807
  name: string;
2798
2808
  namespace?: string;
2799
- partial?: {
2800
- content?: ({
2809
+ result: {
2810
+ content: ({
2801
2811
  type: "text";
2802
2812
  text: string;
2803
2813
  textSignature?: string;
@@ -2807,8 +2817,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2807
2817
  mimeType: string;
2808
2818
  })[];
2809
2819
  details?: any;
2820
+ isError: false;
2810
2821
  };
2811
- status: "running";
2822
+ status: "completed";
2812
2823
  thoughtSignature?: string;
2813
2824
  time: {
2814
2825
  start: number;
@@ -2832,9 +2843,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2832
2843
  mimeType: string;
2833
2844
  })[];
2834
2845
  details?: any;
2835
- isError: false;
2846
+ isError: true;
2836
2847
  };
2837
- status: "completed";
2848
+ status: "error";
2838
2849
  thoughtSignature?: string;
2839
2850
  time: {
2840
2851
  start: number;
@@ -2860,7 +2871,7 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2860
2871
  details?: any;
2861
2872
  isError: true;
2862
2873
  };
2863
- status: "error";
2874
+ status: "skipped";
2864
2875
  thoughtSignature?: string;
2865
2876
  time: {
2866
2877
  start: number;
@@ -2886,21 +2897,26 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2886
2897
  details?: any;
2887
2898
  isError: true;
2888
2899
  };
2889
- status: "skipped";
2900
+ status: "aborted";
2890
2901
  thoughtSignature?: string;
2891
2902
  time: {
2892
2903
  start: number;
2893
2904
  end: number;
2894
2905
  };
2895
2906
  type: "toolCall";
2907
+ } | {
2908
+ type: "thinking";
2909
+ thinking: string;
2910
+ thinkingSignature?: string;
2911
+ redacted?: boolean;
2896
2912
  } | {
2897
2913
  addedToolNames?: string[];
2898
2914
  arguments: Record<string, any>;
2899
2915
  callID: string;
2900
2916
  name: string;
2901
2917
  namespace?: string;
2902
- result: {
2903
- content: ({
2918
+ partial?: {
2919
+ content?: ({
2904
2920
  type: "text";
2905
2921
  text: string;
2906
2922
  textSignature?: string;
@@ -2910,9 +2926,8 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2910
2926
  mimeType: string;
2911
2927
  })[];
2912
2928
  details?: any;
2913
- isError: true;
2914
2929
  };
2915
- status: "aborted";
2930
+ status: "running";
2916
2931
  thoughtSignature?: string;
2917
2932
  time: {
2918
2933
  start: number;
@@ -2937,21 +2952,6 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2937
2952
  responseId?: string;
2938
2953
  responseModel?: string;
2939
2954
  messageId: string;
2940
- } | {
2941
- messageId: string;
2942
- role: "user";
2943
- time: {
2944
- created: number;
2945
- };
2946
- parts: ({
2947
- type: "text";
2948
- text: string;
2949
- textSignature?: string;
2950
- } | {
2951
- type: "image";
2952
- data: string;
2953
- mimeType: string;
2954
- })[];
2955
2955
  }, ContextDecodeError, never>;
2956
2956
  declare namespace context_d_exports {
2957
2957
  export { context_d_exports as Context, assemble_d_exports as ContextAssembly, codec_d_exports as ContextCodec, ContextDecodeError, ContextEncodeError, ContextInvariantError, ContextReadError, EncodedMessage, Interface$1 as Interface, Service$2 as Service, Snapshot, assemblePath, decodeMessage, decodeSyntheticMessage, encodeMessage, encodePart, layer$2 as layer, validateUserMessage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeworksh/harness",
3
- "version": "0.0.1-dev.20260922184400",
3
+ "version": "0.0.1-dev.20260923035712",
4
4
  "description": "AI agent harness — agent loop, tools, plugins, sandbox, and more.",
5
5
  "keywords": [
6
6
  "agent",
@@ -66,8 +66,8 @@
66
66
  "node": ">=24.14.1"
67
67
  },
68
68
  "dependencies": {
69
- "@codeworksh/aikit": "0.8.0-dev.20260905193244",
70
- "@codeworksh/plugin": "0.0.1-dev.20260922135956",
69
+ "@codeworksh/aikit": "0.9.0",
70
+ "@codeworksh/plugin": "0.0.1-dev.20260923022514",
71
71
  "@effect/platform-node": "4.0.0-rc.115",
72
72
  "@effect/platform-node-shared": "4.0.0-rc.115",
73
73
  "@effect/sql-sqlite-node": "4.0.0-rc.115",