@opencode-ai/client 0.0.0-next-16024 → 0.0.0-next-16025

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.
@@ -2805,43 +2805,6 @@ export declare const make: (options?: {
2805
2805
  readonly metadata?: {
2806
2806
  readonly [x: string]: unknown;
2807
2807
  } | undefined;
2808
- } | {
2809
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2810
- readonly data: Schema.Struct.ReadonlySide<{
2811
- readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
2812
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2813
- readonly type: Schema.Literal<"text">;
2814
- readonly text: Schema.String;
2815
- }>, Schema.Struct<{
2816
- readonly type: Schema.Literal<"file">;
2817
- readonly uri: Schema.String;
2818
- readonly mime: Schema.String;
2819
- readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2820
- }>]>>;
2821
- readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
2822
- create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
2823
- fromEvent: (eventID: import("@opencode-ai/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
2824
- };
2825
- readonly callID: Schema.String;
2826
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2827
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2828
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2829
- };
2830
- }, "Type">;
2831
- readonly durable: Schema.Struct.ReadonlySide<{
2832
- readonly aggregateID: Schema.String;
2833
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2834
- readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2835
- }, "Type">;
2836
- readonly type: "session.tool.progress";
2837
- readonly created: import("effect/DateTime").Utc;
2838
- readonly location?: {
2839
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2840
- readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
2841
- } | undefined;
2842
- readonly metadata?: {
2843
- readonly [x: string]: unknown;
2844
- } | undefined;
2845
2808
  } | {
2846
2809
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2847
2810
  readonly data: {
@@ -2891,6 +2854,26 @@ export declare const make: (options?: {
2891
2854
  readonly callID: string;
2892
2855
  readonly executed: boolean;
2893
2856
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2857
+ readonly metadata?: {
2858
+ readonly [x: string]: unknown;
2859
+ } | undefined;
2860
+ readonly content?: readonly [Schema.Struct.ReadonlySide<{
2861
+ readonly type: Schema.Literal<"text">;
2862
+ readonly text: Schema.String;
2863
+ }, "Type"> | {
2864
+ readonly type: "file";
2865
+ readonly uri: string;
2866
+ readonly mime: string;
2867
+ readonly name?: string | undefined;
2868
+ }, ...(Schema.Struct.ReadonlySide<{
2869
+ readonly type: Schema.Literal<"text">;
2870
+ readonly text: Schema.String;
2871
+ }, "Type"> | {
2872
+ readonly type: "file";
2873
+ readonly uri: string;
2874
+ readonly mime: string;
2875
+ readonly name?: string | undefined;
2876
+ })[]] | undefined;
2894
2877
  readonly result?: unknown;
2895
2878
  readonly resultState?: {
2896
2879
  readonly [x: string]: unknown;
@@ -6554,11 +6537,6 @@ export declare const make: (options?: {
6554
6537
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6555
6538
  };
6556
6539
  }, "Type">;
6557
- readonly durable: Schema.Struct.ReadonlySide<{
6558
- readonly aggregateID: Schema.String;
6559
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
6560
- readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
6561
- }, "Type">;
6562
6540
  readonly type: "session.tool.progress";
6563
6541
  readonly created: import("effect/DateTime").Utc;
6564
6542
  readonly location?: {
@@ -6617,6 +6595,26 @@ export declare const make: (options?: {
6617
6595
  readonly callID: string;
6618
6596
  readonly executed: boolean;
6619
6597
  readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6598
+ readonly metadata?: {
6599
+ readonly [x: string]: unknown;
6600
+ } | undefined;
6601
+ readonly content?: readonly [Schema.Struct.ReadonlySide<{
6602
+ readonly type: Schema.Literal<"text">;
6603
+ readonly text: Schema.String;
6604
+ }, "Type"> | {
6605
+ readonly type: "file";
6606
+ readonly uri: string;
6607
+ readonly mime: string;
6608
+ readonly name?: string | undefined;
6609
+ }, ...(Schema.Struct.ReadonlySide<{
6610
+ readonly type: Schema.Literal<"text">;
6611
+ readonly text: Schema.String;
6612
+ }, "Type"> | {
6613
+ readonly type: "file";
6614
+ readonly uri: string;
6615
+ readonly mime: string;
6616
+ readonly name?: string | undefined;
6617
+ })[]] | undefined;
6620
6618
  readonly result?: unknown;
6621
6619
  readonly resultState?: {
6622
6620
  readonly [x: string]: unknown;
@@ -2076,29 +2076,6 @@ export type SessionToolCalled = {
2076
2076
  state?: SessionMessageProviderState5;
2077
2077
  };
2078
2078
  };
2079
- export type SessionToolFailed = {
2080
- id: string;
2081
- created: number;
2082
- metadata?: {
2083
- [x: string]: any;
2084
- };
2085
- type: "session.tool.failed";
2086
- durable: {
2087
- aggregateID: string;
2088
- seq: number;
2089
- version: 1;
2090
- };
2091
- location?: LocationRef;
2092
- data: {
2093
- sessionID: string;
2094
- assistantMessageID: string;
2095
- callID: string;
2096
- error: SessionStructuredError;
2097
- result?: any;
2098
- executed: boolean;
2099
- resultState?: SessionMessageProviderState7;
2100
- };
2101
- };
2102
2079
  export type ModelCompatibility = {
2103
2080
  reasoningField?: ModelReasoningField;
2104
2081
  };
@@ -2593,13 +2570,13 @@ export type SessionMessageToolStateError = {
2593
2570
  error: SessionStructuredError;
2594
2571
  result?: JsonValue;
2595
2572
  };
2596
- export type SessionToolProgress = {
2573
+ export type SessionToolSuccess = {
2597
2574
  id: string;
2598
2575
  created: number;
2599
2576
  metadata?: {
2600
2577
  [x: string]: any;
2601
2578
  };
2602
- type: "session.tool.progress";
2579
+ type: "session.tool.success";
2603
2580
  durable: {
2604
2581
  aggregateID: string;
2605
2582
  seq: number;
@@ -2614,15 +2591,18 @@ export type SessionToolProgress = {
2614
2591
  [x: string]: any;
2615
2592
  };
2616
2593
  content: Array<LLMToolContent>;
2594
+ result?: any;
2595
+ executed: boolean;
2596
+ resultState?: SessionMessageProviderState6;
2617
2597
  };
2618
2598
  };
2619
- export type SessionToolSuccess = {
2599
+ export type SessionToolFailed = {
2620
2600
  id: string;
2621
2601
  created: number;
2622
2602
  metadata?: {
2623
2603
  [x: string]: any;
2624
2604
  };
2625
- type: "session.tool.success";
2605
+ type: "session.tool.failed";
2626
2606
  durable: {
2627
2607
  aggregateID: string;
2628
2608
  seq: number;
@@ -2633,13 +2613,32 @@ export type SessionToolSuccess = {
2633
2613
  sessionID: string;
2634
2614
  assistantMessageID: string;
2635
2615
  callID: string;
2636
- structured: {
2616
+ error: SessionStructuredError;
2617
+ content?: [LLMToolContent, ...Array<LLMToolContent>];
2618
+ metadata?: {
2637
2619
  [x: string]: any;
2638
2620
  };
2639
- content: Array<LLMToolContent>;
2640
2621
  result?: any;
2641
2622
  executed: boolean;
2642
- resultState?: SessionMessageProviderState6;
2623
+ resultState?: SessionMessageProviderState7;
2624
+ };
2625
+ };
2626
+ export type SessionToolProgress = {
2627
+ id: string;
2628
+ created: number;
2629
+ metadata?: {
2630
+ [x: string]: any;
2631
+ };
2632
+ type: "session.tool.progress";
2633
+ location?: LocationRef;
2634
+ data: {
2635
+ sessionID: string;
2636
+ assistantMessageID: string;
2637
+ callID: string;
2638
+ structured: {
2639
+ [x: string]: any;
2640
+ };
2641
+ content: Array<LLMToolContent>;
2643
2642
  };
2644
2643
  };
2645
2644
  export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
@@ -3055,7 +3054,7 @@ export type FormCreated = {
3055
3054
  form: FormInfo1;
3056
3055
  };
3057
3056
  };
3058
- export type SessionEventDurable = SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded;
3057
+ export type SessionEventDurable = SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded;
3059
3058
  export type SessionMessagesResponse = {
3060
3059
  data: Array<SessionMessageInfo>;
3061
3060
  cursor: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/client",
4
- "version": "0.0.0-next-16024",
4
+ "version": "0.0.0-next-16025",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -53,8 +53,8 @@
53
53
  "typecheck": "tsgo --noEmit"
54
54
  },
55
55
  "dependencies": {
56
- "@opencode-ai/schema": "0.0.0-next-16024",
57
- "@opencode-ai/protocol": "0.0.0-next-16024"
56
+ "@opencode-ai/schema": "0.0.0-next-16025",
57
+ "@opencode-ai/protocol": "0.0.0-next-16025"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "effect": "4.0.0-beta.98"
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@effect/platform-node": "4.0.0-beta.98",
69
- "@opencode-ai/httpapi-codegen": "0.0.0-next-16024",
69
+ "@opencode-ai/httpapi-codegen": "0.0.0-next-16025",
70
70
  "@tsconfig/bun": "1.0.9",
71
71
  "@types/bun": "1.3.13",
72
72
  "@typescript/native-preview": "7.0.0-dev.20251207.1",