@epoch-ai/sdk 2.1.1 → 2.2.1

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.
@@ -1913,6 +1913,7 @@ export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
1913
1913
  export type SessionUpdateData = {
1914
1914
  body?: {
1915
1915
  title?: string;
1916
+ yolo?: boolean;
1916
1917
  };
1917
1918
  path: {
1918
1919
  id: string;
@@ -2247,6 +2248,7 @@ export type SessionPromptData = {
2247
2248
  };
2248
2249
  agent?: string;
2249
2250
  noReply?: boolean;
2251
+ yolo?: boolean;
2250
2252
  system?: string;
2251
2253
  tools?: {
2252
2254
  [key: string]: boolean;
@@ -2332,6 +2334,7 @@ export type SessionPromptAsyncData = {
2332
2334
  };
2333
2335
  agent?: string;
2334
2336
  noReply?: boolean;
2337
+ yolo?: boolean;
2335
2338
  system?: string;
2336
2339
  tools?: {
2337
2340
  [key: string]: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
- import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalSyncEventSubscribeResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsDiffResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
2
+ import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalSyncEventSubscribeResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsDiffResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -480,6 +480,7 @@ export declare class Session2 extends HeyApiClient {
480
480
  title?: string;
481
481
  permission?: PermissionRuleset;
482
482
  workspaceID?: string;
483
+ yolo?: boolean;
483
484
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCreateResponses, SessionCreateErrors, ThrowOnError, "fields">;
484
485
  /**
485
486
  * Get session status
@@ -520,6 +521,7 @@ export declare class Session2 extends HeyApiClient {
520
521
  directory?: string;
521
522
  workspace?: string;
522
523
  title?: string;
524
+ yolo?: boolean;
523
525
  time?: {
524
526
  archived?: number;
525
527
  };
@@ -578,26 +580,6 @@ export declare class Session2 extends HeyApiClient {
578
580
  directory?: string;
579
581
  workspace?: string;
580
582
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionAbortResponses, SessionAbortErrors, ThrowOnError, "fields">;
581
- /**
582
- * Unshare session
583
- *
584
- * Remove the shareable link for a session, making it private again.
585
- */
586
- unshare<ThrowOnError extends boolean = false>(parameters: {
587
- sessionID: string;
588
- directory?: string;
589
- workspace?: string;
590
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnshareResponses, SessionUnshareErrors, ThrowOnError, "fields">;
591
- /**
592
- * Share session
593
- *
594
- * Create a shareable link for a session, allowing others to view the conversation.
595
- */
596
- share<ThrowOnError extends boolean = false>(parameters: {
597
- sessionID: string;
598
- directory?: string;
599
- workspace?: string;
600
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShareResponses, SessionShareErrors, ThrowOnError, "fields">;
601
583
  /**
602
584
  * Get message diff
603
585
  *
@@ -657,6 +639,7 @@ export declare class Session2 extends HeyApiClient {
657
639
  format?: OutputFormat;
658
640
  system?: string;
659
641
  variant?: string;
642
+ yolo?: boolean;
660
643
  parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
661
644
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
662
645
  /**
@@ -704,6 +687,7 @@ export declare class Session2 extends HeyApiClient {
704
687
  format?: OutputFormat;
705
688
  system?: string;
706
689
  variant?: string;
690
+ yolo?: boolean;
707
691
  parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
708
692
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
709
693
  /**
@@ -721,6 +705,7 @@ export declare class Session2 extends HeyApiClient {
721
705
  arguments?: string;
722
706
  command?: string;
723
707
  variant?: string;
708
+ yolo?: boolean;
724
709
  parts?: Array<{
725
710
  id?: string;
726
711
  type: "file";
@@ -932,6 +932,7 @@ export class Session2 extends HeyApiClient {
932
932
  { in: "body", key: "title" },
933
933
  { in: "body", key: "permission" },
934
934
  { in: "body", key: "workspaceID" },
935
+ { in: "body", key: "yolo" },
935
936
  ],
936
937
  },
937
938
  ]);
@@ -1021,6 +1022,7 @@ export class Session2 extends HeyApiClient {
1021
1022
  { in: "query", key: "directory" },
1022
1023
  { in: "query", key: "workspace" },
1023
1024
  { in: "body", key: "title" },
1025
+ { in: "body", key: "yolo" },
1024
1026
  { in: "body", key: "time" },
1025
1027
  ],
1026
1028
  },
@@ -1155,48 +1157,6 @@ export class Session2 extends HeyApiClient {
1155
1157
  ...params,
1156
1158
  });
1157
1159
  }
1158
- /**
1159
- * Unshare session
1160
- *
1161
- * Remove the shareable link for a session, making it private again.
1162
- */
1163
- unshare(parameters, options) {
1164
- const params = buildClientParams([parameters], [
1165
- {
1166
- args: [
1167
- { in: "path", key: "sessionID" },
1168
- { in: "query", key: "directory" },
1169
- { in: "query", key: "workspace" },
1170
- ],
1171
- },
1172
- ]);
1173
- return (options?.client ?? this.client).delete({
1174
- url: "/session/{sessionID}/share",
1175
- ...options,
1176
- ...params,
1177
- });
1178
- }
1179
- /**
1180
- * Share session
1181
- *
1182
- * Create a shareable link for a session, allowing others to view the conversation.
1183
- */
1184
- share(parameters, options) {
1185
- const params = buildClientParams([parameters], [
1186
- {
1187
- args: [
1188
- { in: "path", key: "sessionID" },
1189
- { in: "query", key: "directory" },
1190
- { in: "query", key: "workspace" },
1191
- ],
1192
- },
1193
- ]);
1194
- return (options?.client ?? this.client).post({
1195
- url: "/session/{sessionID}/share",
1196
- ...options,
1197
- ...params,
1198
- });
1199
- }
1200
1160
  /**
1201
1161
  * Get message diff
1202
1162
  *
@@ -1292,6 +1252,7 @@ export class Session2 extends HeyApiClient {
1292
1252
  { in: "body", key: "format" },
1293
1253
  { in: "body", key: "system" },
1294
1254
  { in: "body", key: "variant" },
1255
+ { in: "body", key: "yolo" },
1295
1256
  { in: "body", key: "parts" },
1296
1257
  ],
1297
1258
  },
@@ -1372,6 +1333,7 @@ export class Session2 extends HeyApiClient {
1372
1333
  { in: "body", key: "format" },
1373
1334
  { in: "body", key: "system" },
1374
1335
  { in: "body", key: "variant" },
1336
+ { in: "body", key: "yolo" },
1375
1337
  { in: "body", key: "parts" },
1376
1338
  ],
1377
1339
  },
@@ -1405,6 +1367,7 @@ export class Session2 extends HeyApiClient {
1405
1367
  { in: "body", key: "arguments" },
1406
1368
  { in: "body", key: "command" },
1407
1369
  { in: "body", key: "variant" },
1370
+ { in: "body", key: "yolo" },
1408
1371
  { in: "body", key: "parts" },
1409
1372
  ],
1410
1373
  },
@@ -40,6 +40,12 @@ export type EventInstallationUpdateAvailable = {
40
40
  version: string;
41
41
  };
42
42
  };
43
+ export type EventFileEdited = {
44
+ type: "file.edited";
45
+ properties: {
46
+ file: string;
47
+ };
48
+ };
43
49
  export type EventServerInstanceDisposed = {
44
50
  type: "server.instance.disposed";
45
51
  properties: {
@@ -117,7 +123,7 @@ export type EventTuiPromptAppend = {
117
123
  export type EventTuiCommandExecute = {
118
124
  type: "tui.command.execute";
119
125
  properties: {
120
- command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string;
126
+ command: "session.list" | "session.new" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | string;
121
127
  };
122
128
  };
123
129
  export type EventTuiToastShow = {
@@ -154,27 +160,13 @@ export type EventMcpBrowserOpenFailed = {
154
160
  url: string;
155
161
  };
156
162
  };
157
- export type SessionStatus = {
158
- type: "idle";
159
- } | {
160
- type: "retry";
161
- attempt: number;
162
- message: string;
163
- next: number;
164
- } | {
165
- type: "busy";
166
- };
167
- export type EventSessionStatus = {
168
- type: "session.status";
169
- properties: {
170
- sessionID: string;
171
- status: SessionStatus;
172
- };
173
- };
174
- export type EventSessionIdle = {
175
- type: "session.idle";
163
+ export type EventCommandExecuted = {
164
+ type: "command.executed";
176
165
  properties: {
166
+ name: string;
177
167
  sessionID: string;
168
+ arguments: string;
169
+ messageID: string;
178
170
  };
179
171
  };
180
172
  export type QuestionOption = {
@@ -241,18 +233,6 @@ export type EventQuestionRejected = {
241
233
  requestID: string;
242
234
  };
243
235
  };
244
- export type EventSessionCompacted = {
245
- type: "session.compacted";
246
- properties: {
247
- sessionID: string;
248
- };
249
- };
250
- export type EventFileEdited = {
251
- type: "file.edited";
252
- properties: {
253
- file: string;
254
- };
255
- };
256
236
  export type EventFileWatcherUpdated = {
257
237
  type: "file.watcher.updated";
258
238
  properties: {
@@ -281,13 +261,33 @@ export type EventTodoUpdated = {
281
261
  todos: Array<Todo>;
282
262
  };
283
263
  };
284
- export type EventCommandExecuted = {
285
- type: "command.executed";
264
+ export type SessionStatus = {
265
+ type: "idle";
266
+ } | {
267
+ type: "retry";
268
+ attempt: number;
269
+ message: string;
270
+ next: number;
271
+ } | {
272
+ type: "busy";
273
+ };
274
+ export type EventSessionStatus = {
275
+ type: "session.status";
276
+ properties: {
277
+ sessionID: string;
278
+ status: SessionStatus;
279
+ };
280
+ };
281
+ export type EventSessionIdle = {
282
+ type: "session.idle";
283
+ properties: {
284
+ sessionID: string;
285
+ };
286
+ };
287
+ export type EventSessionTransitioned = {
288
+ type: "session.transitioned";
286
289
  properties: {
287
- name: string;
288
290
  sessionID: string;
289
- arguments: string;
290
- messageID: string;
291
291
  };
292
292
  };
293
293
  export type FileDiff = {
@@ -305,6 +305,13 @@ export type EventSessionDiff = {
305
305
  diff: Array<FileDiff>;
306
306
  };
307
307
  };
308
+ export type EventSessionEpochTransition = {
309
+ type: "session.epoch_transition";
310
+ properties: {
311
+ sessionID?: string;
312
+ reason: string;
313
+ };
314
+ };
308
315
  export type ProviderAuthError = {
309
316
  name: "ProviderAuthError";
310
317
  data: {
@@ -359,11 +366,17 @@ export type ApiError = {
359
366
  };
360
367
  };
361
368
  };
369
+ export type MessageRamblingError = {
370
+ name: "MessageRamblingError";
371
+ data: {
372
+ reason: string;
373
+ };
374
+ };
362
375
  export type EventSessionError = {
363
376
  type: "session.error";
364
377
  properties: {
365
378
  sessionID?: string;
366
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
379
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError | MessageRamblingError;
367
380
  };
368
381
  };
369
382
  export type EventVcsBranchUpdated = {
@@ -476,7 +489,7 @@ export type AssistantMessage = {
476
489
  created: number;
477
490
  completed?: number;
478
491
  };
479
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
492
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError | MessageRamblingError;
480
493
  parentID: string;
481
494
  modelID: string;
482
495
  providerID: string;
@@ -618,6 +631,7 @@ export type ToolStateRunning = {
618
631
  input: {
619
632
  [key: string]: unknown;
620
633
  };
634
+ raw?: string;
621
635
  title?: string;
622
636
  metadata?: {
623
637
  [key: string]: unknown;
@@ -648,6 +662,7 @@ export type ToolStateError = {
648
662
  input: {
649
663
  [key: string]: unknown;
650
664
  };
665
+ raw?: string;
651
666
  error: string;
652
667
  metadata?: {
653
668
  [key: string]: unknown;
@@ -734,15 +749,15 @@ export type RetryPart = {
734
749
  created: number;
735
750
  };
736
751
  };
737
- export type CompactionPart = {
752
+ export type TransitionPart = {
738
753
  id: string;
739
754
  sessionID: string;
740
755
  messageID: string;
741
- type: "compaction";
756
+ type: "transition";
742
757
  auto: boolean;
743
758
  overflow?: boolean;
744
759
  };
745
- export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
760
+ export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | TransitionPart;
746
761
  export type EventMessagePartUpdated = {
747
762
  type: "message.part.updated";
748
763
  properties: {
@@ -779,9 +794,6 @@ export type Session = {
779
794
  files: number;
780
795
  diffs?: Array<FileDiff>;
781
796
  };
782
- share?: {
783
- url: string;
784
- };
785
797
  title: string;
786
798
  version: string;
787
799
  time: {
@@ -790,6 +802,9 @@ export type Session = {
790
802
  compacting?: number;
791
803
  archived?: number;
792
804
  };
805
+ yolo?: boolean;
806
+ interventionRequested?: boolean;
807
+ interventionHint?: string;
793
808
  permission?: PermissionRuleset;
794
809
  revert?: {
795
810
  messageID: string;
@@ -819,7 +834,7 @@ export type EventSessionDeleted = {
819
834
  info: Session;
820
835
  };
821
836
  };
822
- export type Event = EventProjectUpdated | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileEdited | EventFileWatcherUpdated | EventTodoUpdated | EventCommandExecuted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
837
+ export type Event = EventProjectUpdated | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventFileWatcherUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionTransitioned | EventSessionDiff | EventSessionEpochTransition | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
823
838
  export type GlobalEvent = {
824
839
  directory: string;
825
840
  payload: Event;
@@ -884,9 +899,6 @@ export type SyncEventSessionUpdated = {
884
899
  files: number;
885
900
  diffs?: Array<FileDiff>;
886
901
  } | null;
887
- share?: {
888
- url: string | null;
889
- };
890
902
  title: string | null;
891
903
  version: string | null;
892
904
  time?: {
@@ -895,6 +907,9 @@ export type SyncEventSessionUpdated = {
895
907
  compacting: number | null;
896
908
  archived: number | null;
897
909
  };
910
+ yolo: boolean | null;
911
+ interventionRequested: boolean | null;
912
+ interventionHint: string | null;
898
913
  permission: PermissionRuleset | null;
899
914
  revert: {
900
915
  messageID: string;
@@ -1053,9 +1068,9 @@ export type ProviderConfig = {
1053
1068
  };
1054
1069
  };
1055
1070
  limit?: {
1056
- context: number;
1071
+ context?: number;
1057
1072
  input?: number;
1058
- output: number;
1073
+ output?: number;
1059
1074
  };
1060
1075
  modalities?: {
1061
1076
  input: Array<"text" | "audio" | "image" | "video" | "pdf">;
@@ -1177,6 +1192,19 @@ export type McpRemoteConfig = {
1177
1192
  */
1178
1193
  timeout?: number;
1179
1194
  };
1195
+ /**
1196
+ * mcpx CLI utility configuration
1197
+ */
1198
+ export type McpxConfig = {
1199
+ /**
1200
+ * Path to the mcpx binary
1201
+ */
1202
+ binaryPath?: string;
1203
+ /**
1204
+ * Enable mcpx-based tool discovery and execution
1205
+ */
1206
+ enabled?: boolean;
1207
+ };
1180
1208
  /**
1181
1209
  * @deprecated Always uses stretch layout.
1182
1210
  */
@@ -1226,14 +1254,6 @@ export type Config = {
1226
1254
  [key: string]: unknown;
1227
1255
  }
1228
1256
  ]>;
1229
- /**
1230
- * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
1231
- */
1232
- share?: "manual" | "auto" | "disabled";
1233
- /**
1234
- * @deprecated Use 'share' field instead. Share newly created sessions automatically
1235
- */
1236
- autoshare?: boolean;
1237
1257
  /**
1238
1258
  * Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications
1239
1259
  */
@@ -1297,6 +1317,7 @@ export type Config = {
1297
1317
  enabled: boolean;
1298
1318
  };
1299
1319
  };
1320
+ mcpx?: McpxConfig;
1300
1321
  formatter?: false | {
1301
1322
  [key: string]: {
1302
1323
  disabled?: boolean;
@@ -1546,9 +1567,6 @@ export type GlobalSession = {
1546
1567
  files: number;
1547
1568
  diffs?: Array<FileDiff>;
1548
1569
  };
1549
- share?: {
1550
- url: string;
1551
- };
1552
1570
  title: string;
1553
1571
  version: string;
1554
1572
  time: {
@@ -1557,6 +1575,9 @@ export type GlobalSession = {
1557
1575
  compacting?: number;
1558
1576
  archived?: number;
1559
1577
  };
1578
+ yolo?: boolean;
1579
+ interventionRequested?: boolean;
1580
+ interventionHint?: string;
1560
1581
  permission?: PermissionRuleset;
1561
1582
  revert?: {
1562
1583
  messageID: string;
@@ -2637,6 +2658,7 @@ export type SessionCreateData = {
2637
2658
  title?: string;
2638
2659
  permission?: PermissionRuleset;
2639
2660
  workspaceID?: string;
2661
+ yolo?: boolean;
2640
2662
  };
2641
2663
  path?: never;
2642
2664
  query?: {
@@ -2745,6 +2767,7 @@ export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
2745
2767
  export type SessionUpdateData = {
2746
2768
  body?: {
2747
2769
  title?: string;
2770
+ yolo?: boolean;
2748
2771
  time?: {
2749
2772
  archived?: number;
2750
2773
  };
@@ -2916,64 +2939,6 @@ export type SessionAbortResponses = {
2916
2939
  200: boolean;
2917
2940
  };
2918
2941
  export type SessionAbortResponse = SessionAbortResponses[keyof SessionAbortResponses];
2919
- export type SessionUnshareData = {
2920
- body?: never;
2921
- path: {
2922
- sessionID: string;
2923
- };
2924
- query?: {
2925
- directory?: string;
2926
- workspace?: string;
2927
- };
2928
- url: "/session/{sessionID}/share";
2929
- };
2930
- export type SessionUnshareErrors = {
2931
- /**
2932
- * Bad request
2933
- */
2934
- 400: BadRequestError;
2935
- /**
2936
- * Not found
2937
- */
2938
- 404: NotFoundError;
2939
- };
2940
- export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors];
2941
- export type SessionUnshareResponses = {
2942
- /**
2943
- * Successfully unshared session
2944
- */
2945
- 200: Session;
2946
- };
2947
- export type SessionUnshareResponse = SessionUnshareResponses[keyof SessionUnshareResponses];
2948
- export type SessionShareData = {
2949
- body?: never;
2950
- path: {
2951
- sessionID: string;
2952
- };
2953
- query?: {
2954
- directory?: string;
2955
- workspace?: string;
2956
- };
2957
- url: "/session/{sessionID}/share";
2958
- };
2959
- export type SessionShareErrors = {
2960
- /**
2961
- * Bad request
2962
- */
2963
- 400: BadRequestError;
2964
- /**
2965
- * Not found
2966
- */
2967
- 404: NotFoundError;
2968
- };
2969
- export type SessionShareError = SessionShareErrors[keyof SessionShareErrors];
2970
- export type SessionShareResponses = {
2971
- /**
2972
- * Successfully shared session
2973
- */
2974
- 200: Session;
2975
- };
2976
- export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses];
2977
2942
  export type SessionDiffData = {
2978
2943
  body?: never;
2979
2944
  path: {
@@ -3082,6 +3047,7 @@ export type SessionPromptData = {
3082
3047
  format?: OutputFormat;
3083
3048
  system?: string;
3084
3049
  variant?: string;
3050
+ yolo?: boolean;
3085
3051
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
3086
3052
  };
3087
3053
  path: {
@@ -3258,6 +3224,7 @@ export type SessionPromptAsyncData = {
3258
3224
  format?: OutputFormat;
3259
3225
  system?: string;
3260
3226
  variant?: string;
3227
+ yolo?: boolean;
3261
3228
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
3262
3229
  };
3263
3230
  path: {
@@ -3295,6 +3262,7 @@ export type SessionCommandData = {
3295
3262
  arguments: string;
3296
3263
  command: string;
3297
3264
  variant?: string;
3265
+ yolo?: boolean;
3298
3266
  parts?: Array<{
3299
3267
  id?: string;
3300
3268
  type: "file";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@epoch-ai/sdk",
4
- "version": "2.1.1",
4
+ "version": "2.2.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {