@opencode-ai/client 0.0.0-dev-18296 → 0.0.0-dev-18297

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.
@@ -827,6 +827,23 @@ export type SessionLogOutput = ({
827
827
  readonly model: Model.Ref;
828
828
  readonly snapshot?: (string & Brand.Brand<"Snapshot.ID">) | undefined;
829
829
  };
830
+ } | {
831
+ readonly id: Event.ID;
832
+ readonly created: number;
833
+ readonly metadata?: {
834
+ readonly [x: string]: unknown;
835
+ } | undefined;
836
+ readonly type: "session.step.streamed";
837
+ readonly durable: {
838
+ readonly aggregateID: string;
839
+ readonly seq: Event.Seq;
840
+ readonly version: Event.Version;
841
+ };
842
+ readonly location?: Location.Ref | undefined;
843
+ readonly data: {
844
+ readonly sessionID: Session.ID;
845
+ readonly assistantMessageID: SessionMessage.ID;
846
+ };
830
847
  } | {
831
848
  readonly id: Event.ID;
832
849
  readonly created: number;
@@ -1355,6 +1355,26 @@ export declare const make: (options?: {
1355
1355
  readonly metadata?: {
1356
1356
  readonly [x: string]: unknown;
1357
1357
  } | undefined;
1358
+ } | {
1359
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1360
+ readonly data: {
1361
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1362
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1363
+ };
1364
+ readonly durable: {
1365
+ readonly aggregateID: string;
1366
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1367
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1368
+ };
1369
+ readonly type: "session.step.streamed";
1370
+ readonly created: number;
1371
+ readonly location?: {
1372
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1373
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1374
+ } | undefined;
1375
+ readonly metadata?: {
1376
+ readonly [x: string]: unknown;
1377
+ } | undefined;
1358
1378
  } | {
1359
1379
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1360
1380
  readonly data: {
@@ -1139,6 +1139,24 @@ export type SessionStepStarted = {
1139
1139
  snapshot?: string;
1140
1140
  };
1141
1141
  };
1142
+ export type SessionStepStreamed = {
1143
+ id: string;
1144
+ created: number;
1145
+ metadata?: {
1146
+ [x: string]: any;
1147
+ };
1148
+ type: "session.step.streamed";
1149
+ durable: {
1150
+ aggregateID: string;
1151
+ seq: number;
1152
+ version: 1;
1153
+ };
1154
+ location?: LocationRef;
1155
+ data: {
1156
+ sessionID: string;
1157
+ assistantMessageID: string;
1158
+ };
1159
+ };
1142
1160
  export type SessionTextStarted = {
1143
1161
  id: string;
1144
1162
  created: number;
@@ -2956,6 +2974,7 @@ export type SessionMessageAssistant = {
2956
2974
  };
2957
2975
  time: {
2958
2976
  created: number;
2977
+ streamed?: number;
2959
2978
  completed?: number;
2960
2979
  };
2961
2980
  type: "assistant";
@@ -3045,7 +3064,7 @@ export type SessionMessagesResponse = {
3045
3064
  next?: string | null;
3046
3065
  };
3047
3066
  };
3048
- 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 | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionMessageContentUpdated | SessionUsageRecorded;
3067
+ 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;
3049
3068
  export type IntegrationInfo = {
3050
3069
  id: string;
3051
3070
  name: string;
@@ -3055,7 +3074,7 @@ export type IntegrationInfo = {
3055
3074
  methods: Array<IntegrationMethod>;
3056
3075
  connections: Array<ConnectionInfo>;
3057
3076
  };
3058
- 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 | 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 | PluginAdded | 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 | V2EventServerConnected;
3077
+ 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 | PluginAdded | 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 | V2EventServerConnected;
3059
3078
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
3060
3079
  export type UnauthorizedError = {
3061
3080
  readonly _tag: "UnauthorizedError";
@@ -3728,6 +3747,7 @@ export type SessionImportInput = {
3728
3747
  };
3729
3748
  readonly time: {
3730
3749
  readonly created: number;
3750
+ readonly streamed?: number;
3731
3751
  readonly completed?: number;
3732
3752
  };
3733
3753
  readonly type: "assistant";
@@ -4142,6 +4162,7 @@ export type SessionImportInput = {
4142
4162
  };
4143
4163
  readonly time: {
4144
4164
  readonly created: number;
4165
+ readonly streamed?: number;
4145
4166
  readonly completed?: number;
4146
4167
  };
4147
4168
  readonly type: "assistant";
@@ -4556,6 +4577,7 @@ export type SessionImportInput = {
4556
4577
  };
4557
4578
  readonly time: {
4558
4579
  readonly created: number;
4580
+ readonly streamed?: number;
4559
4581
  readonly completed?: number;
4560
4582
  };
4561
4583
  readonly type: "assistant";
@@ -615,6 +615,7 @@ export function createData(config) {
615
615
  existing.finish = undefined;
616
616
  existing.rawFinish = undefined;
617
617
  existing.providerState = undefined;
618
+ existing.time.streamed = undefined;
618
619
  existing.time.completed = undefined;
619
620
  if (event.data.snapshot)
620
621
  existing.snapshot = { ...existing.snapshot, start: event.data.snapshot };
@@ -637,6 +638,13 @@ export function createData(config) {
637
638
  });
638
639
  });
639
640
  return;
641
+ case "session.step.streamed":
642
+ message.update(event.data.sessionID, (draft, index) => {
643
+ const currentAssistant = message.assistant(draft, index, event.data.assistantMessageID);
644
+ if (currentAssistant)
645
+ currentAssistant.time.streamed = event.created;
646
+ });
647
+ return;
640
648
  case "session.step.ended": {
641
649
  message.update(event.data.sessionID, (draft, index) => {
642
650
  const currentAssistant = message.assistant(draft, index, 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-ai/client",
4
- "version": "0.0.0-dev-18296",
4
+ "version": "0.0.0-dev-18297",
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-ai/schema": "0.0.0-dev-18296",
61
- "@opencode-ai/protocol": "0.0.0-dev-18296"
60
+ "@opencode-ai/schema": "0.0.0-dev-18297",
61
+ "@opencode-ai/protocol": "0.0.0-dev-18297"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.111",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.111",
77
- "@opencode-ai/httpapi-codegen": "0.0.0-dev-18296",
77
+ "@opencode-ai/httpapi-codegen": "0.0.0-dev-18297",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.3.13",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",