@opencode/client 0.0.0-dev-19346 → 0.0.0-dev-19349

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.
@@ -1331,7 +1331,7 @@ export type SessionLogOutput = ({
1331
1331
  readonly metadata?: {
1332
1332
  readonly [x: string]: unknown;
1333
1333
  } | undefined;
1334
- readonly type: "session.message.content.updated";
1334
+ readonly type: "session.usage.recorded";
1335
1335
  readonly durable: {
1336
1336
  readonly aggregateID: string;
1337
1337
  readonly seq: Event.Seq;
@@ -1340,8 +1340,17 @@ export type SessionLogOutput = ({
1340
1340
  readonly location?: Location.Ref | undefined;
1341
1341
  readonly data: {
1342
1342
  readonly sessionID: Session.ID;
1343
- readonly messageID: SessionMessage.ID;
1344
- readonly content: ReadonlyArray<SessionMessage.AssistantContentEncoded>;
1343
+ readonly source: "title" | "compaction";
1344
+ readonly cost: number & Brand.Brand<"Money.USD">;
1345
+ readonly tokens: {
1346
+ readonly input: number;
1347
+ readonly output: number;
1348
+ readonly reasoning: number;
1349
+ readonly cache: {
1350
+ readonly read: number;
1351
+ readonly write: number;
1352
+ };
1353
+ };
1345
1354
  };
1346
1355
  } | {
1347
1356
  readonly id: Event.ID;
@@ -1349,7 +1358,7 @@ export type SessionLogOutput = ({
1349
1358
  readonly metadata?: {
1350
1359
  readonly [x: string]: unknown;
1351
1360
  } | undefined;
1352
- readonly type: "session.usage.recorded";
1361
+ readonly type: "session.message.content.updated";
1353
1362
  readonly durable: {
1354
1363
  readonly aggregateID: string;
1355
1364
  readonly seq: Event.Seq;
@@ -1358,17 +1367,8 @@ export type SessionLogOutput = ({
1358
1367
  readonly location?: Location.Ref | undefined;
1359
1368
  readonly data: {
1360
1369
  readonly sessionID: Session.ID;
1361
- readonly source: "title" | "compaction";
1362
- readonly cost: number & Brand.Brand<"Money.USD">;
1363
- readonly tokens: {
1364
- readonly input: number;
1365
- readonly output: number;
1366
- readonly reasoning: number;
1367
- readonly cache: {
1368
- readonly read: number;
1369
- readonly write: number;
1370
- };
1371
- };
1370
+ readonly messageID: SessionMessage.ID;
1371
+ readonly content: ReadonlyArray<SessionMessage.AssistantContentEncoded>;
1372
1372
  };
1373
1373
  }) | EventLog.Synced;
1374
1374
  export type SessionLogOperation<E = never> = (input: SessionLogInput) => Stream.Stream<SessionLogOutput, E>;
@@ -1391,13 +1391,6 @@ export type SessionMessageInput = {
1391
1391
  };
1392
1392
  export type SessionMessageOutput = SessionMessage.Info;
1393
1393
  export type SessionMessageOperation<E = never> = (input: SessionMessageInput) => Effect.Effect<SessionMessageOutput, E>;
1394
- export type SessionMessageUpdateInput = {
1395
- readonly sessionID: Session.ID;
1396
- readonly messageID: SessionMessage.ID;
1397
- readonly content: ReadonlyArray<SessionMessage.AssistantText | SessionMessage.AssistantReasoning | SessionMessage.AssistantTool>;
1398
- };
1399
- export type SessionMessageUpdateOutput = SessionMessage.Assistant;
1400
- export type SessionMessageUpdateOperation<E = never> = (input: SessionMessageUpdateInput) => Effect.Effect<SessionMessageUpdateOutput, E>;
1401
1394
  export type SessionEnvironmentInput = {
1402
1395
  readonly sessionID: Session.ID;
1403
1396
  readonly variables: {
@@ -1457,7 +1450,6 @@ export interface SessionApi<E = never> {
1457
1450
  readonly interrupt: SessionInterruptOperation<E>;
1458
1451
  readonly background: SessionBackgroundOperation<E>;
1459
1452
  readonly message: SessionMessageOperation<E>;
1460
- readonly messageUpdate: SessionMessageUpdateOperation<E>;
1461
1453
  readonly environment: SessionEnvironmentOperation<E>;
1462
1454
  readonly view: SessionViewOperation<E>;
1463
1455
  }
@@ -591,126 +591,6 @@ export declare const make: (options?: {
591
591
  readonly metadata?: {
592
592
  readonly [x: string]: unknown;
593
593
  } | undefined;
594
- } | {
595
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
596
- readonly data: {
597
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
598
- readonly content: readonly ({
599
- readonly id: string;
600
- readonly type: "tool";
601
- readonly name: string;
602
- readonly time: {
603
- readonly created: number;
604
- readonly completed?: number | undefined;
605
- readonly ran?: number | undefined;
606
- };
607
- readonly state: {
608
- readonly status: "streaming";
609
- readonly input: string;
610
- } | {
611
- readonly status: "running";
612
- readonly input: {
613
- readonly [x: string]: unknown;
614
- };
615
- readonly metadata: {
616
- readonly [x: string]: import("effect/Schema").Json;
617
- };
618
- } | {
619
- readonly content: readonly [{
620
- readonly type: "text";
621
- readonly text: string;
622
- } | {
623
- readonly type: "file";
624
- readonly uri: string;
625
- readonly mime: string;
626
- readonly name?: string | undefined;
627
- }, ...({
628
- readonly type: "text";
629
- readonly text: string;
630
- } | {
631
- readonly type: "file";
632
- readonly uri: string;
633
- readonly mime: string;
634
- readonly name?: string | undefined;
635
- })[]];
636
- readonly status: "completed";
637
- readonly input: {
638
- readonly [x: string]: unknown;
639
- };
640
- readonly metadata?: {
641
- readonly [x: string]: import("effect/Schema").Json;
642
- } | undefined;
643
- } | {
644
- readonly error: {
645
- readonly type: string;
646
- readonly message: string;
647
- readonly status?: number | undefined;
648
- };
649
- readonly status: "error";
650
- readonly input: {
651
- readonly [x: string]: unknown;
652
- };
653
- readonly metadata?: {
654
- readonly [x: string]: import("effect/Schema").Json;
655
- } | undefined;
656
- readonly content?: readonly [{
657
- readonly type: "text";
658
- readonly text: string;
659
- } | {
660
- readonly type: "file";
661
- readonly uri: string;
662
- readonly mime: string;
663
- readonly name?: string | undefined;
664
- }, ...({
665
- readonly type: "text";
666
- readonly text: string;
667
- } | {
668
- readonly type: "file";
669
- readonly uri: string;
670
- readonly mime: string;
671
- readonly name?: string | undefined;
672
- })[]] | undefined;
673
- };
674
- readonly executed?: boolean | undefined;
675
- readonly providerState?: {
676
- readonly [x: string]: unknown;
677
- } | undefined;
678
- readonly providerResultState?: {
679
- readonly [x: string]: unknown;
680
- } | undefined;
681
- } | {
682
- readonly type: "text";
683
- readonly text: string;
684
- readonly state?: {
685
- readonly [x: string]: unknown;
686
- } | undefined;
687
- } | {
688
- readonly type: "reasoning";
689
- readonly text: string;
690
- readonly time?: {
691
- readonly created: number;
692
- readonly completed?: number | undefined;
693
- } | undefined;
694
- readonly state?: {
695
- readonly [x: string]: unknown;
696
- } | undefined;
697
- })[];
698
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
699
- };
700
- readonly durable: {
701
- readonly aggregateID: string;
702
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
703
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
704
- };
705
- readonly type: "session.message.content.updated";
706
- readonly created: number;
707
- readonly location?: {
708
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
709
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
710
- } | undefined;
711
- readonly metadata?: {
712
- readonly [x: string]: unknown;
713
- } | undefined;
714
594
  } | {
715
595
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
716
596
  readonly data: {
@@ -2357,7 +2237,6 @@ export declare const make: (options?: {
2357
2237
  interrupt: (input: import("./api.js").SessionInterruptInput) => Effect.Effect<import("./api.js").SessionInterruptOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2358
2238
  background: (input: import("./api.js").SessionBackgroundInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2359
2239
  message: (input: import("./api.js").SessionMessageInput) => Effect.Effect<import("@opencode/schema/session-message").Info, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2360
- messageUpdate: (input: import("./api.js").SessionMessageUpdateInput) => Effect.Effect<import("@opencode/schema/session-message").Assistant, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2361
2240
  environment: (input: import("./api.js").SessionEnvironmentInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2362
2241
  view: (input: import("./api.js").SessionViewInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2363
2242
  };
@@ -1,7 +1,7 @@
1
1
  import { Effect, Stream, Schema } from "effect";
2
2
  import { Sse } from "effect/unstable/encoding";
3
3
  import { HttpClientError } from "effect/unstable/http";
4
- import type { HealthGetOutput, ServerGetOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginAwaitActivationInput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageInput, SessionMessageUpdateInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, ProjectCurrentInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormListOutput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, WorkspaceCreateInput, WorkspaceDestroyInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchesInput, VcsBranchesOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "../api/api.js";
4
+ import type { HealthGetOutput, ServerGetOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginAwaitActivationInput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, ProjectCurrentInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormListOutput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, WorkspaceCreateInput, WorkspaceDestroyInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchesInput, VcsBranchesOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "../api/api.js";
5
5
  import { ClientError } from "./client-error.js";
6
6
  export declare const make: (options?: {
7
7
  readonly baseUrl?: URL | string;
@@ -70,7 +70,6 @@ export declare const make: (options?: {
70
70
  interrupt: (input: SessionInterruptInput) => Effect.Effect<SessionInterruptOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
71
71
  background: (input: SessionBackgroundInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
72
72
  message: (input: SessionMessageInput) => Effect.Effect<import("@opencode/schema/session-message").Info, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
73
- messageUpdate: (input: SessionMessageUpdateInput) => Effect.Effect<import("@opencode/schema/session-message").Assistant, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
74
73
  environment: (input: SessionEnvironmentInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
75
74
  view: (input: SessionViewInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").SessionNotFoundError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
76
75
  };
@@ -759,126 +758,6 @@ export declare const make: (options?: {
759
758
  readonly metadata?: {
760
759
  readonly [x: string]: unknown;
761
760
  } | undefined;
762
- } | {
763
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
764
- readonly data: {
765
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
766
- readonly content: readonly ({
767
- readonly id: string;
768
- readonly type: "tool";
769
- readonly name: string;
770
- readonly time: {
771
- readonly created: number;
772
- readonly completed?: number | undefined;
773
- readonly ran?: number | undefined;
774
- };
775
- readonly state: {
776
- readonly status: "streaming";
777
- readonly input: string;
778
- } | {
779
- readonly status: "running";
780
- readonly input: {
781
- readonly [x: string]: unknown;
782
- };
783
- readonly metadata: {
784
- readonly [x: string]: Schema.Json;
785
- };
786
- } | {
787
- readonly content: readonly [{
788
- readonly type: "text";
789
- readonly text: string;
790
- } | {
791
- readonly type: "file";
792
- readonly uri: string;
793
- readonly mime: string;
794
- readonly name?: string | undefined;
795
- }, ...({
796
- readonly type: "text";
797
- readonly text: string;
798
- } | {
799
- readonly type: "file";
800
- readonly uri: string;
801
- readonly mime: string;
802
- readonly name?: string | undefined;
803
- })[]];
804
- readonly status: "completed";
805
- readonly input: {
806
- readonly [x: string]: unknown;
807
- };
808
- readonly metadata?: {
809
- readonly [x: string]: Schema.Json;
810
- } | undefined;
811
- } | {
812
- readonly error: {
813
- readonly type: string;
814
- readonly message: string;
815
- readonly status?: number | undefined;
816
- };
817
- readonly status: "error";
818
- readonly input: {
819
- readonly [x: string]: unknown;
820
- };
821
- readonly metadata?: {
822
- readonly [x: string]: Schema.Json;
823
- } | undefined;
824
- readonly content?: readonly [{
825
- readonly type: "text";
826
- readonly text: string;
827
- } | {
828
- readonly type: "file";
829
- readonly uri: string;
830
- readonly mime: string;
831
- readonly name?: string | undefined;
832
- }, ...({
833
- readonly type: "text";
834
- readonly text: string;
835
- } | {
836
- readonly type: "file";
837
- readonly uri: string;
838
- readonly mime: string;
839
- readonly name?: string | undefined;
840
- })[]] | undefined;
841
- };
842
- readonly executed?: boolean | undefined;
843
- readonly providerState?: {
844
- readonly [x: string]: unknown;
845
- } | undefined;
846
- readonly providerResultState?: {
847
- readonly [x: string]: unknown;
848
- } | undefined;
849
- } | {
850
- readonly type: "text";
851
- readonly text: string;
852
- readonly state?: {
853
- readonly [x: string]: unknown;
854
- } | undefined;
855
- } | {
856
- readonly type: "reasoning";
857
- readonly text: string;
858
- readonly time?: {
859
- readonly created: number;
860
- readonly completed?: number | undefined;
861
- } | undefined;
862
- readonly state?: {
863
- readonly [x: string]: unknown;
864
- } | undefined;
865
- })[];
866
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
867
- };
868
- readonly durable: {
869
- readonly aggregateID: string;
870
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
871
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
872
- };
873
- readonly type: "session.message.content.updated";
874
- readonly created: number;
875
- readonly location?: {
876
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
877
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
878
- } | undefined;
879
- readonly metadata?: {
880
- readonly [x: string]: unknown;
881
- } | undefined;
882
761
  } | {
883
762
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
884
763
  readonly data: {
@@ -155,10 +155,6 @@ const EndpointSessionInterrupt = (raw) => (input) => preserveEffect()(raw["sessi
155
155
  }).pipe(Effect.mapError(mapClientError)));
156
156
  const EndpointSessionBackground = (raw) => (input) => preserveEffect()(raw["session.background"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
157
157
  const EndpointSessionMessage = (raw) => (input) => preserveEffect()(raw["session.message"]({ params: { sessionID: input["sessionID"], messageID: input["messageID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
158
- const EndpointSessionMessageUpdate = (raw) => (input) => preserveEffect()(raw["session.messageUpdate"]({
159
- params: { sessionID: input["sessionID"], messageID: input["messageID"] },
160
- payload: { content: input["content"] },
161
- }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
162
158
  const EndpointSessionEnvironment = (raw) => (input) => preserveEffect()(raw["session.environment"]({
163
159
  params: { sessionID: input["sessionID"] },
164
160
  payload: { variables: input["variables"] },
@@ -209,7 +205,6 @@ const adaptGroupSession = (raw) => ({
209
205
  interrupt: EndpointSessionInterrupt(raw),
210
206
  background: EndpointSessionBackground(raw),
211
207
  message: EndpointSessionMessage(raw),
212
- messageUpdate: EndpointSessionMessageUpdate(raw),
213
208
  environment: EndpointSessionEnvironment(raw),
214
209
  view: EndpointSessionView(raw),
215
210
  });
@@ -78,7 +78,6 @@ export declare function make(options: ClientOptions): {
78
78
  interrupt: (input: import("./index.js").SessionInterruptInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionInterruptResponse>;
79
79
  background: (input: import("./index.js").SessionBackgroundInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
80
80
  message: (input: import("./index.js").SessionMessageInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").SessionMessageSynthetic | import("./index.js").SessionMessageSystem | import("./index.js").SessionMessageSkill | import("./index.js").SessionMessageShell | import("./index.js").SessionMessageCompactionRunning | import("./index.js").SessionMessageLocationSwitched | import("./index.js").SessionMessageModelSelected | import("./index.js").SessionMessageCompactionFailed | import("./index.js").SessionMessageUser | import("./index.js").SessionMessageCompactionCompleted | import("./index.js").SessionMessageAssistant>;
81
- messageUpdate: (input: import("./index.js").SessionMessageUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAssistant>;
82
81
  environment: (input: import("./index.js").SessionEnvironmentInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
83
82
  view: (input: import("./index.js").SessionViewInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
84
83
  };
@@ -1,4 +1,4 @@
1
- import type { ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginAwaitActivationInput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, SessionMessageUpdateInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, ProjectCurrentInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, WorkspaceCreateInput, WorkspaceDestroyInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchesInput, VcsBranchesOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types.js";
1
+ import type { ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginAwaitActivationInput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, ProjectCurrentInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, WorkspaceCreateInput, WorkspaceDestroyInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchesInput, VcsBranchesOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types.js";
2
2
  export interface ClientOptions {
3
3
  readonly baseUrl: string;
4
4
  readonly fetch?: typeof globalThis.fetch;
@@ -79,7 +79,6 @@ export declare function make(options: ClientOptions): {
79
79
  interrupt: (input: SessionInterruptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInterruptResponse>;
80
80
  background: (input: SessionBackgroundInput, requestOptions?: RequestOptions) => Promise<void>;
81
81
  message: (input: SessionMessageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").SessionMessageSynthetic | import("./types.js").SessionMessageSystem | import("./types.js").SessionMessageSkill | import("./types.js").SessionMessageShell | import("./types.js").SessionMessageCompactionRunning | import("./types.js").SessionMessageLocationSwitched | import("./types.js").SessionMessageModelSelected | import("./types.js").SessionMessageCompactionFailed | import("./types.js").SessionMessageUser | import("./types.js").SessionMessageCompactionCompleted | import("./types.js").SessionMessageAssistant>;
82
- messageUpdate: (input: SessionMessageUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAssistant>;
83
82
  environment: (input: SessionEnvironmentInput, requestOptions?: RequestOptions) => Promise<void>;
84
83
  view: (input: SessionViewInput, requestOptions?: RequestOptions) => Promise<void>;
85
84
  };
@@ -527,14 +527,6 @@ export function make(options) {
527
527
  declaredStatuses: [400, 401, 404],
528
528
  empty: false,
529
529
  }, requestOptions).then((value) => value.data),
530
- messageUpdate: (input, requestOptions) => request({
531
- method: "PATCH",
532
- path: `/api/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}`,
533
- body: { content: input["content"] },
534
- successStatus: 200,
535
- declaredStatuses: [400, 401, 404, 409],
536
- empty: false,
537
- }, requestOptions).then((value) => value.data),
538
530
  environment: (input, requestOptions) => request({
539
531
  method: "PUT",
540
532
  path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
@@ -3144,7 +3144,7 @@ export type SessionMessagesResponse = {
3144
3144
  next?: string | null;
3145
3145
  };
3146
3146
  };
3147
- export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionMessageContentUpdated | SessionUsageRecorded;
3147
+ export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
3148
3148
  export type IntegrationInfo = {
3149
3149
  id: string;
3150
3150
  name: string;
@@ -3154,7 +3154,7 @@ export type IntegrationInfo = {
3154
3154
  methods: Array<IntegrationMethod>;
3155
3155
  connections: Array<ConnectionInfo>;
3156
3156
  };
3157
- export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionMessageContentUpdated | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
3157
+ export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
3158
3158
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
3159
3159
  export type InvalidRequestError = {
3160
3160
  readonly _tag: "InvalidRequestError";
@@ -5882,127 +5882,6 @@ export type SessionMessageInput = {
5882
5882
  export type SessionMessageOutput = {
5883
5883
  data: SessionMessageInfo;
5884
5884
  }["data"];
5885
- export type SessionMessageUpdateInput = {
5886
- readonly sessionID: {
5887
- readonly sessionID: string;
5888
- readonly messageID: string;
5889
- }["sessionID"];
5890
- readonly messageID: {
5891
- readonly sessionID: string;
5892
- readonly messageID: string;
5893
- }["messageID"];
5894
- readonly content: {
5895
- readonly content: ReadonlyArray<{
5896
- readonly type: "text";
5897
- readonly text: string;
5898
- readonly state?: {
5899
- readonly [x: string]: JsonValue;
5900
- };
5901
- } | {
5902
- readonly type: "reasoning";
5903
- readonly text: string;
5904
- readonly state?: {
5905
- readonly [x: string]: JsonValue;
5906
- };
5907
- readonly time?: {
5908
- readonly created: number;
5909
- readonly completed?: number;
5910
- };
5911
- } | {
5912
- readonly type: "tool";
5913
- readonly id: string;
5914
- readonly name: string;
5915
- readonly executed?: boolean;
5916
- readonly providerState?: {
5917
- readonly [x: string]: JsonValue;
5918
- };
5919
- readonly providerResultState?: {
5920
- readonly [x: string]: JsonValue;
5921
- };
5922
- readonly state: {
5923
- readonly status: "streaming";
5924
- readonly input: string;
5925
- } | {
5926
- readonly status: "running";
5927
- readonly input: {
5928
- readonly [x: string]: JsonValue;
5929
- };
5930
- readonly metadata: {
5931
- readonly [x: string]: JsonValue;
5932
- };
5933
- } | {
5934
- readonly status: "completed";
5935
- readonly input: {
5936
- readonly [x: string]: JsonValue;
5937
- };
5938
- readonly content: readonly [
5939
- ({
5940
- readonly type: "text";
5941
- readonly text: string;
5942
- } | {
5943
- readonly type: "file";
5944
- readonly uri: string;
5945
- readonly mime: string;
5946
- readonly name?: string | null;
5947
- }),
5948
- ...Array<{
5949
- readonly type: "text";
5950
- readonly text: string;
5951
- } | {
5952
- readonly type: "file";
5953
- readonly uri: string;
5954
- readonly mime: string;
5955
- readonly name?: string | null;
5956
- }>
5957
- ];
5958
- readonly metadata?: {
5959
- readonly [x: string]: JsonValue;
5960
- };
5961
- } | {
5962
- readonly status: "error";
5963
- readonly input: {
5964
- readonly [x: string]: JsonValue;
5965
- };
5966
- readonly error: {
5967
- readonly type: string;
5968
- readonly message: string;
5969
- readonly status?: number;
5970
- };
5971
- readonly content?: readonly [
5972
- ({
5973
- readonly type: "text";
5974
- readonly text: string;
5975
- } | {
5976
- readonly type: "file";
5977
- readonly uri: string;
5978
- readonly mime: string;
5979
- readonly name?: string | null;
5980
- }),
5981
- ...Array<{
5982
- readonly type: "text";
5983
- readonly text: string;
5984
- } | {
5985
- readonly type: "file";
5986
- readonly uri: string;
5987
- readonly mime: string;
5988
- readonly name?: string | null;
5989
- }>
5990
- ];
5991
- readonly metadata?: {
5992
- readonly [x: string]: JsonValue;
5993
- };
5994
- };
5995
- readonly time: {
5996
- readonly created: number;
5997
- readonly ran?: number;
5998
- readonly completed?: number;
5999
- };
6000
- }>;
6001
- }["content"];
6002
- };
6003
- export type SessionMessageUpdateOutput = {
6004
- data: SessionMessageAssistant;
6005
- }["data"];
6006
5885
  export type SessionEnvironmentInput = {
6007
5886
  readonly sessionID: {
6008
5887
  readonly sessionID: string;
@@ -687,17 +687,6 @@ export function createData(config) {
687
687
  match.time.completed = event.created;
688
688
  });
689
689
  return;
690
- case "session.message.content.updated": {
691
- if (store.session.message[event.data.sessionID])
692
- message.editAssistant(event.data.sessionID, event.data.messageID, (assistant) => {
693
- assistant.content = [...event.data.content];
694
- });
695
- if (!sync.pending(`session.message:${event.data.sessionID}`))
696
- return;
697
- result.session.message.invalidate(event.data.sessionID);
698
- refresh(() => result.session.message.sync(event.data.sessionID));
699
- return;
700
- }
701
690
  case "session.step.started":
702
691
  message.update(event.data.sessionID, (draft, index) => {
703
692
  const position = index.get(event.data.assistantMessageID);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/client",
4
- "version": "0.0.0-dev-19346",
4
+ "version": "0.0.0-dev-19349",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -57,8 +57,8 @@
57
57
  "typecheck": "tsgo --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode/schema": "0.0.0-dev-19346",
61
- "@opencode/protocol": "0.0.0-dev-19346"
60
+ "@opencode/schema": "0.0.0-dev-19349",
61
+ "@opencode/protocol": "0.0.0-dev-19349"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode/httpapi-codegen": "0.0.0-dev-19346",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-19349",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.4.0",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",