@opencode-ai/sdk 0.0.0-snapshot-start-screen-tips-202512221907 → 0.0.0-snapshot-terminal-title-animation-202512222037

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.
@@ -719,6 +719,14 @@ export type KeybindsConfig = {
719
719
  * Navigate to last message
720
720
  */
721
721
  messages_last?: string;
722
+ /**
723
+ * Navigate to next message
724
+ */
725
+ messages_next?: string;
726
+ /**
727
+ * Navigate to previous message
728
+ */
729
+ messages_previous?: string;
722
730
  /**
723
731
  * Navigate to last user message
724
732
  */
@@ -811,6 +819,10 @@ export type KeybindsConfig = {
811
819
  * Suspend terminal
812
820
  */
813
821
  terminal_suspend?: string;
822
+ /**
823
+ * Toggle terminal title
824
+ */
825
+ terminal_title_toggle?: string;
814
826
  };
815
827
  export type AgentConfig = {
816
828
  model?: string;
@@ -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, Auth as Auth2, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiToastShow, FileListResponses, FilePartInput, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalDisposeResponses, GlobalEventResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, PathGetResponses, PermissionRespondErrors, PermissionRespondResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffErrors, 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, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses } from "./types.gen.js";
2
+ import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, Auth as Auth2, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiToastShow, FileListResponses, FilePartInput, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalDisposeResponses, GlobalEventResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionRespondErrors, PermissionRespondResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffErrors, 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, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses } 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
@@ -359,6 +359,7 @@ export declare class Session extends HeyApiClient {
359
359
  directory?: string;
360
360
  providerID?: string;
361
361
  modelID?: string;
362
+ auto?: boolean;
362
363
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionSummarizeResponses, SessionSummarizeErrors, ThrowOnError, "fields">;
363
364
  /**
364
365
  * Get session messages
@@ -472,6 +473,27 @@ export declare class Session extends HeyApiClient {
472
473
  directory?: string;
473
474
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
474
475
  }
476
+ export declare class Part extends HeyApiClient {
477
+ /**
478
+ * Delete a part from a message
479
+ */
480
+ delete<ThrowOnError extends boolean = false>(parameters: {
481
+ sessionID: string;
482
+ messageID: string;
483
+ partID: string;
484
+ directory?: string;
485
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartDeleteResponses, PartDeleteErrors, ThrowOnError, "fields">;
486
+ /**
487
+ * Update a part in a message
488
+ */
489
+ update<ThrowOnError extends boolean = false>(parameters: {
490
+ sessionID: string;
491
+ messageID: string;
492
+ partID: string;
493
+ directory?: string;
494
+ part?: Part2;
495
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
496
+ }
475
497
  export declare class Permission extends HeyApiClient {
476
498
  /**
477
499
  * Respond to permission
@@ -857,6 +879,7 @@ export declare class OpencodeClient extends HeyApiClient {
857
879
  path: Path;
858
880
  vcs: Vcs;
859
881
  session: Session;
882
+ part: Part;
860
883
  permission: Permission;
861
884
  command: Command;
862
885
  provider: Provider;
@@ -673,6 +673,7 @@ export class Session extends HeyApiClient {
673
673
  { in: "query", key: "directory" },
674
674
  { in: "body", key: "providerID" },
675
675
  { in: "body", key: "modelID" },
676
+ { in: "body", key: "auto" },
676
677
  ],
677
678
  },
678
679
  ]);
@@ -899,6 +900,54 @@ export class Session extends HeyApiClient {
899
900
  });
900
901
  }
901
902
  }
903
+ export class Part extends HeyApiClient {
904
+ /**
905
+ * Delete a part from a message
906
+ */
907
+ delete(parameters, options) {
908
+ const params = buildClientParams([parameters], [
909
+ {
910
+ args: [
911
+ { in: "path", key: "sessionID" },
912
+ { in: "path", key: "messageID" },
913
+ { in: "path", key: "partID" },
914
+ { in: "query", key: "directory" },
915
+ ],
916
+ },
917
+ ]);
918
+ return (options?.client ?? this.client).delete({
919
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
920
+ ...options,
921
+ ...params,
922
+ });
923
+ }
924
+ /**
925
+ * Update a part in a message
926
+ */
927
+ update(parameters, options) {
928
+ const params = buildClientParams([parameters], [
929
+ {
930
+ args: [
931
+ { in: "path", key: "sessionID" },
932
+ { in: "path", key: "messageID" },
933
+ { in: "path", key: "partID" },
934
+ { in: "query", key: "directory" },
935
+ { key: "part", map: "body" },
936
+ ],
937
+ },
938
+ ]);
939
+ return (options?.client ?? this.client).patch({
940
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
941
+ ...options,
942
+ ...params,
943
+ headers: {
944
+ "Content-Type": "application/json",
945
+ ...options?.headers,
946
+ ...params.headers,
947
+ },
948
+ });
949
+ }
950
+ }
902
951
  export class Permission extends HeyApiClient {
903
952
  /**
904
953
  * Respond to permission
@@ -1650,6 +1699,7 @@ export class OpencodeClient extends HeyApiClient {
1650
1699
  path = new Path({ client: this.client });
1651
1700
  vcs = new Vcs({ client: this.client });
1652
1701
  session = new Session({ client: this.client });
1702
+ part = new Part({ client: this.client });
1653
1703
  permission = new Permission({ client: this.client });
1654
1704
  command = new Command({ client: this.client });
1655
1705
  provider = new Provider({ client: this.client });
@@ -700,6 +700,14 @@ export type KeybindsConfig = {
700
700
  * Show session timeline
701
701
  */
702
702
  session_timeline?: string;
703
+ /**
704
+ * Fork session from message
705
+ */
706
+ session_fork?: string;
707
+ /**
708
+ * Rename session
709
+ */
710
+ session_rename?: string;
703
711
  /**
704
712
  * Share current session
705
713
  */
@@ -740,6 +748,14 @@ export type KeybindsConfig = {
740
748
  * Navigate to last message
741
749
  */
742
750
  messages_last?: string;
751
+ /**
752
+ * Navigate to next message
753
+ */
754
+ messages_next?: string;
755
+ /**
756
+ * Navigate to previous message
757
+ */
758
+ messages_previous?: string;
743
759
  /**
744
760
  * Navigate to last user message
745
761
  */
@@ -968,6 +984,10 @@ export type KeybindsConfig = {
968
984
  * Suspend terminal
969
985
  */
970
986
  terminal_suspend?: string;
987
+ /**
988
+ * Toggle terminal title
989
+ */
990
+ terminal_title_toggle?: string;
971
991
  };
972
992
  export type AgentConfig = {
973
993
  model?: string;
@@ -1231,6 +1251,10 @@ export type Config = {
1231
1251
  * Small model to use for tasks like title generation in the format of provider/model
1232
1252
  */
1233
1253
  small_model?: string;
1254
+ /**
1255
+ * Default agent to use when none is specified. Must be a primary agent. Falls back to 'build' if not set or if the specified agent is invalid.
1256
+ */
1257
+ default_agent?: string;
1234
1258
  /**
1235
1259
  * Custom username to display in conversations instead of system username
1236
1260
  */
@@ -1553,6 +1577,7 @@ export type Agent = {
1553
1577
  mode: "subagent" | "primary" | "all";
1554
1578
  native?: boolean;
1555
1579
  hidden?: boolean;
1580
+ default?: boolean;
1556
1581
  topP?: number;
1557
1582
  temperature?: number;
1558
1583
  color?: string;
@@ -2375,6 +2400,7 @@ export type SessionSummarizeData = {
2375
2400
  body?: {
2376
2401
  providerID: string;
2377
2402
  modelID: string;
2403
+ auto?: boolean;
2378
2404
  };
2379
2405
  path: {
2380
2406
  /**
@@ -2525,6 +2551,84 @@ export type SessionMessageResponses = {
2525
2551
  };
2526
2552
  };
2527
2553
  export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses];
2554
+ export type PartDeleteData = {
2555
+ body?: never;
2556
+ path: {
2557
+ /**
2558
+ * Session ID
2559
+ */
2560
+ sessionID: string;
2561
+ /**
2562
+ * Message ID
2563
+ */
2564
+ messageID: string;
2565
+ /**
2566
+ * Part ID
2567
+ */
2568
+ partID: string;
2569
+ };
2570
+ query?: {
2571
+ directory?: string;
2572
+ };
2573
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}";
2574
+ };
2575
+ export type PartDeleteErrors = {
2576
+ /**
2577
+ * Bad request
2578
+ */
2579
+ 400: BadRequestError;
2580
+ /**
2581
+ * Not found
2582
+ */
2583
+ 404: NotFoundError;
2584
+ };
2585
+ export type PartDeleteError = PartDeleteErrors[keyof PartDeleteErrors];
2586
+ export type PartDeleteResponses = {
2587
+ /**
2588
+ * Successfully deleted part
2589
+ */
2590
+ 200: boolean;
2591
+ };
2592
+ export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses];
2593
+ export type PartUpdateData = {
2594
+ body?: Part;
2595
+ path: {
2596
+ /**
2597
+ * Session ID
2598
+ */
2599
+ sessionID: string;
2600
+ /**
2601
+ * Message ID
2602
+ */
2603
+ messageID: string;
2604
+ /**
2605
+ * Part ID
2606
+ */
2607
+ partID: string;
2608
+ };
2609
+ query?: {
2610
+ directory?: string;
2611
+ };
2612
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}";
2613
+ };
2614
+ export type PartUpdateErrors = {
2615
+ /**
2616
+ * Bad request
2617
+ */
2618
+ 400: BadRequestError;
2619
+ /**
2620
+ * Not found
2621
+ */
2622
+ 404: NotFoundError;
2623
+ };
2624
+ export type PartUpdateError = PartUpdateErrors[keyof PartUpdateErrors];
2625
+ export type PartUpdateResponses = {
2626
+ /**
2627
+ * Successfully updated part
2628
+ */
2629
+ 200: Part;
2630
+ };
2631
+ export type PartUpdateResponse = PartUpdateResponses[keyof PartUpdateResponses];
2528
2632
  export type SessionPromptAsyncData = {
2529
2633
  body?: {
2530
2634
  messageID?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "0.0.0-snapshot-start-screen-tips-202512221907",
4
+ "version": "0.0.0-snapshot-terminal-title-animation-202512222037",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsgo --noEmit",