@ironcode-ai/sdk 1.17.6 → 1.18.0

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.
@@ -456,12 +456,13 @@ export declare class Session extends HeyApiClient {
456
456
  sessionID: string;
457
457
  directory?: string;
458
458
  messageID?: string;
459
- model?: {
459
+ model?: string | {
460
460
  providerID: string;
461
461
  modelID: string;
462
462
  };
463
463
  agent?: string;
464
464
  noReply?: boolean;
465
+ thinking?: boolean;
465
466
  tools?: {
466
467
  [key: string]: boolean;
467
468
  };
@@ -488,12 +489,13 @@ export declare class Session extends HeyApiClient {
488
489
  sessionID: string;
489
490
  directory?: string;
490
491
  messageID?: string;
491
- model?: {
492
+ model?: string | {
492
493
  providerID: string;
493
494
  modelID: string;
494
495
  };
495
496
  agent?: string;
496
497
  noReply?: boolean;
498
+ thinking?: boolean;
497
499
  tools?: {
498
500
  [key: string]: boolean;
499
501
  };
@@ -888,6 +888,7 @@ export class Session extends HeyApiClient {
888
888
  { in: "body", key: "model" },
889
889
  { in: "body", key: "agent" },
890
890
  { in: "body", key: "noReply" },
891
+ { in: "body", key: "thinking" },
891
892
  { in: "body", key: "tools" },
892
893
  { in: "body", key: "system" },
893
894
  { in: "body", key: "variant" },
@@ -942,6 +943,7 @@ export class Session extends HeyApiClient {
942
943
  { in: "body", key: "model" },
943
944
  { in: "body", key: "agent" },
944
945
  { in: "body", key: "noReply" },
946
+ { in: "body", key: "thinking" },
945
947
  { in: "body", key: "tools" },
946
948
  { in: "body", key: "system" },
947
949
  { in: "body", key: "variant" },
@@ -98,15 +98,13 @@ export type UserMessage = {
98
98
  diffs: Array<FileDiff>;
99
99
  };
100
100
  agent: string;
101
- model: {
102
- providerID: string;
103
- modelID: string;
104
- };
101
+ model: string;
105
102
  system?: string;
106
103
  tools?: {
107
104
  [key: string]: boolean;
108
105
  };
109
106
  variant?: string;
107
+ thinking?: boolean;
110
108
  };
111
109
  export type ProviderAuthError = {
112
110
  name: "ProviderAuthError";
@@ -158,8 +156,7 @@ export type AssistantMessage = {
158
156
  };
159
157
  error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
160
158
  parentID: string;
161
- modelID: string;
162
- providerID: string;
159
+ model: string;
163
160
  mode: string;
164
161
  agent: string;
165
162
  path: {
@@ -218,10 +215,7 @@ export type SubtaskPart = {
218
215
  prompt: string;
219
216
  description: string;
220
217
  agent: string;
221
- model?: {
222
- providerID: string;
223
- modelID: string;
224
- };
218
+ model?: string;
225
219
  command?: string;
226
220
  };
227
221
  export type ReasoningPart = {
@@ -971,6 +965,10 @@ export type KeybindsConfig = {
971
965
  * Cycle model variants
972
966
  */
973
967
  variant_cycle?: string;
968
+ /**
969
+ * Toggle thinking/reasoning for current model
970
+ */
971
+ toggle_thinking?: string;
974
972
  /**
975
973
  * Clear input field
976
974
  */
@@ -1820,10 +1818,7 @@ export type SubtaskPartInput = {
1820
1818
  prompt: string;
1821
1819
  description: string;
1822
1820
  agent: string;
1823
- model?: {
1824
- providerID: string;
1825
- modelID: string;
1826
- };
1821
+ model?: string;
1827
1822
  command?: string;
1828
1823
  };
1829
1824
  export type ProviderAuthMethod = {
@@ -1928,10 +1923,7 @@ export type Agent = {
1928
1923
  temperature?: number;
1929
1924
  color?: string;
1930
1925
  permission: PermissionRuleset;
1931
- model?: {
1932
- modelID: string;
1933
- providerID: string;
1934
- };
1926
+ model?: string;
1935
1927
  variant?: string;
1936
1928
  prompt?: string;
1937
1929
  options: {
@@ -2949,12 +2941,16 @@ export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMess
2949
2941
  export type SessionPromptData = {
2950
2942
  body?: {
2951
2943
  messageID?: string;
2952
- model?: {
2944
+ model?: string | {
2953
2945
  providerID: string;
2954
2946
  modelID: string;
2955
2947
  };
2956
2948
  agent?: string;
2957
2949
  noReply?: boolean;
2950
+ /**
2951
+ * Enable or disable thinking/reasoning for this request
2952
+ */
2953
+ thinking?: boolean;
2958
2954
  /**
2959
2955
  * @deprecated tools and permissions have been merged, you can set permissions on the session itself now
2960
2956
  */
@@ -3116,12 +3112,16 @@ export type PartUpdateResponse = PartUpdateResponses[keyof PartUpdateResponses];
3116
3112
  export type SessionPromptAsyncData = {
3117
3113
  body?: {
3118
3114
  messageID?: string;
3119
- model?: {
3115
+ model?: string | {
3120
3116
  providerID: string;
3121
3117
  modelID: string;
3122
3118
  };
3123
3119
  agent?: string;
3124
3120
  noReply?: boolean;
3121
+ /**
3122
+ * Enable or disable thinking/reasoning for this request
3123
+ */
3124
+ thinking?: boolean;
3125
3125
  /**
3126
3126
  * @deprecated tools and permissions have been merged, you can set permissions on the session itself now
3127
3127
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ironcode-ai/sdk",
4
- "version": "1.17.6",
4
+ "version": "1.18.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {