@codeworksh/harness 0.0.1-dev.20260925125142 → 0.0.1-dev.20260925151211

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 +55 -55
  2. package/package.json +3 -4
package/effect.d.mts CHANGED
@@ -2114,7 +2114,7 @@ rebuild: (root: string | undefined, current: Pool) => Effect.Effect<Pool, {
2114
2114
  readonly message: string;
2115
2115
  }>,
2116
2116
  /** The view a session in `hostDir` runs from: its project root, or the process view. */
2117
- viewOf?: (hostDir: string | undefined) => Effect.Effect<string | undefined>) => Layer.Layer<Service$5, never, Service$17 | Service$16 | Service$8 | Service$7 | Service$6>;
2117
+ viewOf?: (hostDir: string | undefined) => Effect.Effect<string | undefined>) => Layer.Layer<Service$5, never, Service$8 | Service$17 | Service$16 | Service$7 | Service$6>;
2118
2118
  declare namespace run_d_exports {
2119
2119
  export { Interface$3 as Interface, LLMStreamError, ModelCatalogError, ModelNotFoundError, ProviderAuthenticationError, ProviderAuthorizationError, ProviderConfigurationError, ProviderContentPolicyError, ProviderError, ProviderFailureReason, ProviderInvalidRequestError, ProviderInvalidResponseError, ProviderModelUnavailableError, ProviderQuotaError, ProviderRateLimitError, ProviderTimeoutError, ProviderTransportError, ProviderUnavailableError, ProviderUnknownError, RunError, run_d_exports as Runner, SandboxDirectoryNotFoundError, Service$4 as Service };
2120
2120
  }
@@ -2340,21 +2340,6 @@ type AikitPart = Message.AssistantMessage["parts"][number] | Message.UserMessage
2340
2340
  declare const encodePart: (part: AikitPart) => Effect.Effect<AppendPart, ContextEncodeError, never>;
2341
2341
  declare const validateUserMessage: (value: unknown, entryId: string, type: string) => Effect.Effect<Message.UserMessage, ContextDecodeError>;
2342
2342
  declare const encodeMessage: (message: {
2343
- messageId: string;
2344
- role: "user";
2345
- time: {
2346
- created: number;
2347
- };
2348
- parts: ({
2349
- type: "text";
2350
- text: string;
2351
- textSignature?: string;
2352
- } | {
2353
- type: "image";
2354
- data: string;
2355
- mimeType: string;
2356
- })[];
2357
- } | {
2358
2343
  role: "assistant";
2359
2344
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
2360
2345
  provider: {
@@ -2502,14 +2487,19 @@ declare const encodeMessage: (message: {
2502
2487
  type: "image";
2503
2488
  data: string;
2504
2489
  mimeType: string;
2490
+ } | {
2491
+ type: "thinking";
2492
+ thinking: string;
2493
+ thinkingSignature?: string;
2494
+ redacted?: boolean;
2505
2495
  } | {
2506
2496
  addedToolNames?: string[];
2507
2497
  arguments: Record<string, any>;
2508
2498
  callID: string;
2509
2499
  name: string;
2510
2500
  namespace?: string;
2511
- result: {
2512
- content: ({
2501
+ partial?: {
2502
+ content?: ({
2513
2503
  type: "text";
2514
2504
  text: string;
2515
2505
  textSignature?: string;
@@ -2519,9 +2509,8 @@ declare const encodeMessage: (message: {
2519
2509
  mimeType: string;
2520
2510
  })[];
2521
2511
  details?: any;
2522
- isError: false;
2523
2512
  };
2524
- status: "completed";
2513
+ status: "running";
2525
2514
  thoughtSignature?: string;
2526
2515
  time: {
2527
2516
  start: number;
@@ -2545,9 +2534,9 @@ declare const encodeMessage: (message: {
2545
2534
  mimeType: string;
2546
2535
  })[];
2547
2536
  details?: any;
2548
- isError: true;
2537
+ isError: false;
2549
2538
  };
2550
- status: "error";
2539
+ status: "completed";
2551
2540
  thoughtSignature?: string;
2552
2541
  time: {
2553
2542
  start: number;
@@ -2573,7 +2562,7 @@ declare const encodeMessage: (message: {
2573
2562
  details?: any;
2574
2563
  isError: true;
2575
2564
  };
2576
- status: "skipped";
2565
+ status: "error";
2577
2566
  thoughtSignature?: string;
2578
2567
  time: {
2579
2568
  start: number;
@@ -2599,26 +2588,21 @@ declare const encodeMessage: (message: {
2599
2588
  details?: any;
2600
2589
  isError: true;
2601
2590
  };
2602
- status: "aborted";
2591
+ status: "skipped";
2603
2592
  thoughtSignature?: string;
2604
2593
  time: {
2605
2594
  start: number;
2606
2595
  end: number;
2607
2596
  };
2608
2597
  type: "toolCall";
2609
- } | {
2610
- type: "thinking";
2611
- thinking: string;
2612
- thinkingSignature?: string;
2613
- redacted?: boolean;
2614
2598
  } | {
2615
2599
  addedToolNames?: string[];
2616
2600
  arguments: Record<string, any>;
2617
2601
  callID: string;
2618
2602
  name: string;
2619
2603
  namespace?: string;
2620
- partial?: {
2621
- content?: ({
2604
+ result: {
2605
+ content: ({
2622
2606
  type: "text";
2623
2607
  text: string;
2624
2608
  textSignature?: string;
@@ -2628,8 +2612,9 @@ declare const encodeMessage: (message: {
2628
2612
  mimeType: string;
2629
2613
  })[];
2630
2614
  details?: any;
2615
+ isError: true;
2631
2616
  };
2632
- status: "running";
2617
+ status: "aborted";
2633
2618
  thoughtSignature?: string;
2634
2619
  time: {
2635
2620
  start: number;
@@ -2654,8 +2639,7 @@ declare const encodeMessage: (message: {
2654
2639
  responseId?: string;
2655
2640
  responseModel?: string;
2656
2641
  messageId: string;
2657
- }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
2658
- declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2642
+ } | {
2659
2643
  messageId: string;
2660
2644
  role: "user";
2661
2645
  time: {
@@ -2670,8 +2654,8 @@ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect
2670
2654
  data: string;
2671
2655
  mimeType: string;
2672
2656
  })[];
2673
- }, ContextDecodeError, never>;
2674
- declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2657
+ }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
2658
+ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2675
2659
  messageId: string;
2676
2660
  role: "user";
2677
2661
  time: {
@@ -2686,7 +2670,8 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2686
2670
  data: string;
2687
2671
  mimeType: string;
2688
2672
  })[];
2689
- } | {
2673
+ }, ContextDecodeError, never>;
2674
+ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2690
2675
  role: "assistant";
2691
2676
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
2692
2677
  provider: {
@@ -2834,14 +2819,19 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2834
2819
  type: "image";
2835
2820
  data: string;
2836
2821
  mimeType: string;
2822
+ } | {
2823
+ type: "thinking";
2824
+ thinking: string;
2825
+ thinkingSignature?: string;
2826
+ redacted?: boolean;
2837
2827
  } | {
2838
2828
  addedToolNames?: string[];
2839
2829
  arguments: Record<string, any>;
2840
2830
  callID: string;
2841
2831
  name: string;
2842
2832
  namespace?: string;
2843
- result: {
2844
- content: ({
2833
+ partial?: {
2834
+ content?: ({
2845
2835
  type: "text";
2846
2836
  text: string;
2847
2837
  textSignature?: string;
@@ -2851,9 +2841,8 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2851
2841
  mimeType: string;
2852
2842
  })[];
2853
2843
  details?: any;
2854
- isError: false;
2855
2844
  };
2856
- status: "completed";
2845
+ status: "running";
2857
2846
  thoughtSignature?: string;
2858
2847
  time: {
2859
2848
  start: number;
@@ -2877,9 +2866,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2877
2866
  mimeType: string;
2878
2867
  })[];
2879
2868
  details?: any;
2880
- isError: true;
2869
+ isError: false;
2881
2870
  };
2882
- status: "error";
2871
+ status: "completed";
2883
2872
  thoughtSignature?: string;
2884
2873
  time: {
2885
2874
  start: number;
@@ -2905,7 +2894,7 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2905
2894
  details?: any;
2906
2895
  isError: true;
2907
2896
  };
2908
- status: "skipped";
2897
+ status: "error";
2909
2898
  thoughtSignature?: string;
2910
2899
  time: {
2911
2900
  start: number;
@@ -2931,26 +2920,21 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2931
2920
  details?: any;
2932
2921
  isError: true;
2933
2922
  };
2934
- status: "aborted";
2923
+ status: "skipped";
2935
2924
  thoughtSignature?: string;
2936
2925
  time: {
2937
2926
  start: number;
2938
2927
  end: number;
2939
2928
  };
2940
2929
  type: "toolCall";
2941
- } | {
2942
- type: "thinking";
2943
- thinking: string;
2944
- thinkingSignature?: string;
2945
- redacted?: boolean;
2946
2930
  } | {
2947
2931
  addedToolNames?: string[];
2948
2932
  arguments: Record<string, any>;
2949
2933
  callID: string;
2950
2934
  name: string;
2951
2935
  namespace?: string;
2952
- partial?: {
2953
- content?: ({
2936
+ result: {
2937
+ content: ({
2954
2938
  type: "text";
2955
2939
  text: string;
2956
2940
  textSignature?: string;
@@ -2960,8 +2944,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2960
2944
  mimeType: string;
2961
2945
  })[];
2962
2946
  details?: any;
2947
+ isError: true;
2963
2948
  };
2964
- status: "running";
2949
+ status: "aborted";
2965
2950
  thoughtSignature?: string;
2966
2951
  time: {
2967
2952
  start: number;
@@ -2986,6 +2971,21 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
2986
2971
  responseId?: string;
2987
2972
  responseModel?: string;
2988
2973
  messageId: string;
2974
+ } | {
2975
+ messageId: string;
2976
+ role: "user";
2977
+ time: {
2978
+ created: number;
2979
+ };
2980
+ parts: ({
2981
+ type: "text";
2982
+ text: string;
2983
+ textSignature?: string;
2984
+ } | {
2985
+ type: "image";
2986
+ data: string;
2987
+ mimeType: string;
2988
+ })[];
2989
2989
  }, ContextDecodeError, never>;
2990
2990
  declare namespace context_d_exports {
2991
2991
  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$3 as layer, validateUserMessage };
@@ -3241,7 +3241,7 @@ interface Options {
3241
3241
  */
3242
3242
  readonly watchModels?: boolean;
3243
3243
  }
3244
- declare const layer$1: (options?: Options) => Layer.Layer<Controller | Registry | Service$9 | Service$17 | Service$16 | Service$2 | Service$8 | Service$7 | Service$6 | Service$5 | Service$3 | Service$1 | SqlClient$1.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient, import("effect/Config").ConfigError | EventRegistrationError | InstallError | LoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverLoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverRegistrationError | SettingsError | SourceError | StoreError, never>;
3244
+ declare const layer$1: (options?: Options) => Layer.Layer<Controller | Registry | Service$9 | Service$8 | Service$17 | Service$16 | Service$7 | Service$6 | Service$5 | Service$3 | Service$1 | Service$2 | SqlClient$1.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient, import("effect/Config").ConfigError | EventRegistrationError | InstallError | LoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverLoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverRegistrationError | SettingsError | SourceError | StoreError, never>;
3245
3245
  declare namespace sandbox_d_exports {
3246
3246
  export { CreateInput$1 as CreateInput, Driver, DriverInfo, Info$2 as Info, RegisterInput, sandbox_d_exports as Sandbox, instance_d_exports.SandboxInstance as SandboxInstance, Selection, create$2 as create, destroy, drivers, get$1 as get, list, refresh$1 as refresh, register, resolve$1 as resolve, stop, wake };
3247
3247
  }
@@ -23530,8 +23530,8 @@ declare const update: <A>(target: Fetchable, cache: string, options: {
23530
23530
  readonly probe: Probe;
23531
23531
  readonly from: string;
23532
23532
  }) => Effect.Effect<{
23533
- readonly entry?: never;
23534
23533
  readonly _tag: "not-installed";
23534
+ readonly entry?: never;
23535
23535
  } | {
23536
23536
  readonly _tag: "unchanged";
23537
23537
  readonly entry: Entry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeworksh/harness",
3
- "version": "0.0.1-dev.20260925125142",
3
+ "version": "0.0.1-dev.20260925151211",
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.9.2",
70
- "@codeworksh/plugin": "0.0.1-dev.20260923022514",
69
+ "@codeworksh/aikit": "^0.9.2",
70
+ "@codeworksh/plugin": "dev",
71
71
  "@effect/platform-node": "4.0.0-rc.115",
72
72
  "@effect/sql-sqlite-node": "4.0.0-rc.115",
73
73
  "@npmcli/arborist": "^10.0.2",
@@ -77,7 +77,6 @@
77
77
  "just-bash": "^3.4.2",
78
78
  "npm-package-arg": "^14.0.0",
79
79
  "pacote": "^22.0.0",
80
- "typebox": "^1.3.30",
81
80
  "uuidv7": "^1.2.1"
82
81
  },
83
82
  "peerDependencies": {