@nikcli-ai/sdk 1.182.0 → 1.184.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.
@@ -1187,7 +1187,7 @@ export declare class Session2 extends HeyApiClient {
1187
1187
  /**
1188
1188
  * Send async message
1189
1189
  *
1190
- * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
1190
+ * Create and send a new message to a session asynchronously. Persists the user message before returning 204, then runs the model loop in the background.
1191
1191
  */
1192
1192
  promptAsync<ThrowOnError extends boolean = false>(parameters: {
1193
1193
  sessionID: string;
@@ -2272,7 +2272,7 @@ export class Session2 extends HeyApiClient {
2272
2272
  /**
2273
2273
  * Send async message
2274
2274
  *
2275
- * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
2275
+ * Create and send a new message to a session asynchronously. Persists the user message before returning 204, then runs the model loop in the background.
2276
2276
  */
2277
2277
  promptAsync(parameters, options) {
2278
2278
  const params = buildClientParams([parameters], [
@@ -2360,11 +2360,12 @@ export type Config = {
2360
2360
  */
2361
2361
  command?: {
2362
2362
  [key: string]: {
2363
- template: string;
2363
+ template?: string;
2364
2364
  description?: string;
2365
2365
  agent?: string;
2366
2366
  model?: string;
2367
2367
  subtask?: boolean;
2368
+ aliases?: Array<string>;
2368
2369
  };
2369
2370
  };
2370
2371
  /**
@@ -2591,6 +2592,14 @@ export type Config = {
2591
2592
  * Timeout in milliseconds for model context protocol (MCP) requests
2592
2593
  */
2593
2594
  mcp_timeout?: number;
2595
+ /**
2596
+ * Outer timeout in milliseconds for non-task tool executions. Default 600000 (10 minutes). Set to false to disable. Tools that manage their own timeout (bash) still honor this as a hard outer bound when set.
2597
+ */
2598
+ tool_timeout?: number | false;
2599
+ /**
2600
+ * Timeout in milliseconds for foreground (non-background) task tool runs. Default 1800000 (30 minutes). Set to false to disable. Background tasks are unaffected.
2601
+ */
2602
+ task_timeout?: number | false;
2594
2603
  /**
2595
2604
  * Enable native @nikcli-ai/llm route streaming (requires resolvable ModelRef; falls back to AI SDK). Default off.
2596
2605
  */
@@ -3795,6 +3804,7 @@ export type Command = {
3795
3804
  template: string;
3796
3805
  subtask?: boolean;
3797
3806
  hints: Array<string>;
3807
+ aliases?: Array<string>;
3798
3808
  };
3799
3809
  export type Agent = {
3800
3810
  name: string;
@@ -6762,7 +6772,7 @@ export type SessionPromptAsyncErrors = {
6762
6772
  export type SessionPromptAsyncError = SessionPromptAsyncErrors[keyof SessionPromptAsyncErrors];
6763
6773
  export type SessionPromptAsyncResponses = {
6764
6774
  /**
6765
- * Prompt accepted
6775
+ * Prompt accepted; user message is already persisted
6766
6776
  */
6767
6777
  204: void;
6768
6778
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/sdk",
4
- "version": "1.182.0",
4
+ "version": "1.184.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {