@codeworksh/harness 0.2.0-dev.20261012163102 → 0.2.0-dev.20261013040429

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 +36 -36
  2. package/package.json +3 -3
package/effect.d.mts CHANGED
@@ -2715,6 +2715,21 @@ type AikitPart = Message.AssistantMessage["parts"][number] | Message.UserMessage
2715
2715
  declare const encodePart: (part: AikitPart) => Effect.Effect<AppendPart, ContextEncodeError, never>;
2716
2716
  declare const validateUserMessage: (value: unknown, entryId: string, type: string) => Effect.Effect<Message.UserMessage, ContextDecodeError>;
2717
2717
  declare const encodeMessage: (message: {
2718
+ messageId: string;
2719
+ role: "user";
2720
+ time: {
2721
+ created: number;
2722
+ };
2723
+ parts: ({
2724
+ type: "text";
2725
+ text: string;
2726
+ textSignature?: string;
2727
+ } | {
2728
+ type: "image";
2729
+ data: string;
2730
+ mimeType: string;
2731
+ })[];
2732
+ } | {
2718
2733
  role: "assistant";
2719
2734
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
2720
2735
  provider: {
@@ -2857,6 +2872,14 @@ declare const encodeMessage: (message: {
2857
2872
  completed: number;
2858
2873
  };
2859
2874
  parts: ({
2875
+ type: "text";
2876
+ text: string;
2877
+ textSignature?: string;
2878
+ } | {
2879
+ type: "image";
2880
+ data: string;
2881
+ mimeType: string;
2882
+ } | {
2860
2883
  addedToolNames?: string[];
2861
2884
  arguments: Record<string, any>;
2862
2885
  callID: string;
@@ -2960,14 +2983,6 @@ declare const encodeMessage: (message: {
2960
2983
  end: number;
2961
2984
  };
2962
2985
  type: "toolCall";
2963
- } | {
2964
- type: "text";
2965
- text: string;
2966
- textSignature?: string;
2967
- } | {
2968
- type: "image";
2969
- data: string;
2970
- mimeType: string;
2971
2986
  } | {
2972
2987
  type: "thinking";
2973
2988
  thinking: string;
@@ -3016,7 +3031,8 @@ declare const encodeMessage: (message: {
3016
3031
  responseId?: string;
3017
3032
  responseModel?: string;
3018
3033
  messageId: string;
3019
- } | {
3034
+ }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
3035
+ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
3020
3036
  messageId: string;
3021
3037
  role: "user";
3022
3038
  time: {
@@ -3031,8 +3047,8 @@ declare const encodeMessage: (message: {
3031
3047
  data: string;
3032
3048
  mimeType: string;
3033
3049
  })[];
3034
- }) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
3035
- declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
3050
+ }, ContextDecodeError, never>;
3051
+ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
3036
3052
  messageId: string;
3037
3053
  role: "user";
3038
3054
  time: {
@@ -3047,8 +3063,7 @@ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect
3047
3063
  data: string;
3048
3064
  mimeType: string;
3049
3065
  })[];
3050
- }, ContextDecodeError, never>;
3051
- declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
3066
+ } | {
3052
3067
  role: "assistant";
3053
3068
  protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
3054
3069
  provider: {
@@ -3191,6 +3206,14 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
3191
3206
  completed: number;
3192
3207
  };
3193
3208
  parts: ({
3209
+ type: "text";
3210
+ text: string;
3211
+ textSignature?: string;
3212
+ } | {
3213
+ type: "image";
3214
+ data: string;
3215
+ mimeType: string;
3216
+ } | {
3194
3217
  addedToolNames?: string[];
3195
3218
  arguments: Record<string, any>;
3196
3219
  callID: string;
@@ -3294,14 +3317,6 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
3294
3317
  end: number;
3295
3318
  };
3296
3319
  type: "toolCall";
3297
- } | {
3298
- type: "text";
3299
- text: string;
3300
- textSignature?: string;
3301
- } | {
3302
- type: "image";
3303
- data: string;
3304
- mimeType: string;
3305
3320
  } | {
3306
3321
  type: "thinking";
3307
3322
  thinking: string;
@@ -3350,21 +3365,6 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
3350
3365
  responseId?: string;
3351
3366
  responseModel?: string;
3352
3367
  messageId: string;
3353
- } | {
3354
- messageId: string;
3355
- role: "user";
3356
- time: {
3357
- created: number;
3358
- };
3359
- parts: ({
3360
- type: "text";
3361
- text: string;
3362
- textSignature?: string;
3363
- } | {
3364
- type: "image";
3365
- data: string;
3366
- mimeType: string;
3367
- })[];
3368
3368
  }, ContextDecodeError, never>;
3369
3369
  declare namespace context_d_exports {
3370
3370
  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$4 as layer, validateUserMessage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeworksh/harness",
3
- "version": "0.2.0-dev.20261012163102",
3
+ "version": "0.2.0-dev.20261013040429",
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.11.0-dev.20261012163102",
70
- "@codeworksh/plugin": "0.2.0-dev.20261012163102",
69
+ "@codeworksh/aikit": "0.11.0-dev.20261013040429",
70
+ "@codeworksh/plugin": "0.2.0-dev.20261013040429",
71
71
  "@effect/platform-node": "4.0.1",
72
72
  "@effect/sql-sqlite-node": "4.0.1",
73
73
  "@npmcli/arborist": "^10.0.2",