@nikcli-ai/sdk 1.183.0 → 1.185.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.
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -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,
|
|
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;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -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,
|
|
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], [
|
|
@@ -1990,6 +1990,10 @@ export type ProviderConfig = {
|
|
|
1990
1990
|
[key: string]: unknown;
|
|
1991
1991
|
};
|
|
1992
1992
|
};
|
|
1993
|
+
/**
|
|
1994
|
+
* Hide this model from the picker (opencode #21038). Useful when a provider exposes models you don't have access to on your subscription tier.
|
|
1995
|
+
*/
|
|
1996
|
+
disabled?: boolean;
|
|
1993
1997
|
};
|
|
1994
1998
|
};
|
|
1995
1999
|
whitelist?: Array<string>;
|
|
@@ -2365,6 +2369,7 @@ export type Config = {
|
|
|
2365
2369
|
agent?: string;
|
|
2366
2370
|
model?: string;
|
|
2367
2371
|
subtask?: boolean;
|
|
2372
|
+
aliases?: Array<string>;
|
|
2368
2373
|
};
|
|
2369
2374
|
};
|
|
2370
2375
|
/**
|
|
@@ -2498,6 +2503,10 @@ export type Config = {
|
|
|
2498
2503
|
initialization?: {
|
|
2499
2504
|
[key: string]: unknown;
|
|
2500
2505
|
};
|
|
2506
|
+
/**
|
|
2507
|
+
* Minimum diagnostic severity: 1=Error (default), 2=Warning, 3=Info, 4=Hint.
|
|
2508
|
+
*/
|
|
2509
|
+
min_severity?: number;
|
|
2501
2510
|
};
|
|
2502
2511
|
};
|
|
2503
2512
|
/**
|
|
@@ -2591,6 +2600,14 @@ export type Config = {
|
|
|
2591
2600
|
* Timeout in milliseconds for model context protocol (MCP) requests
|
|
2592
2601
|
*/
|
|
2593
2602
|
mcp_timeout?: number;
|
|
2603
|
+
/**
|
|
2604
|
+
* 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.
|
|
2605
|
+
*/
|
|
2606
|
+
tool_timeout?: number | false;
|
|
2607
|
+
/**
|
|
2608
|
+
* Timeout in milliseconds for foreground (non-background) task tool runs. Default 1800000 (30 minutes). Set to false to disable. Background tasks are unaffected.
|
|
2609
|
+
*/
|
|
2610
|
+
task_timeout?: number | false;
|
|
2594
2611
|
/**
|
|
2595
2612
|
* Enable native @nikcli-ai/llm route streaming (requires resolvable ModelRef; falls back to AI SDK). Default off.
|
|
2596
2613
|
*/
|
|
@@ -3795,6 +3812,7 @@ export type Command = {
|
|
|
3795
3812
|
template: string;
|
|
3796
3813
|
subtask?: boolean;
|
|
3797
3814
|
hints: Array<string>;
|
|
3815
|
+
aliases?: Array<string>;
|
|
3798
3816
|
};
|
|
3799
3817
|
export type Agent = {
|
|
3800
3818
|
name: string;
|
|
@@ -6762,7 +6780,7 @@ export type SessionPromptAsyncErrors = {
|
|
|
6762
6780
|
export type SessionPromptAsyncError = SessionPromptAsyncErrors[keyof SessionPromptAsyncErrors];
|
|
6763
6781
|
export type SessionPromptAsyncResponses = {
|
|
6764
6782
|
/**
|
|
6765
|
-
* Prompt accepted
|
|
6783
|
+
* Prompt accepted; user message is already persisted
|
|
6766
6784
|
*/
|
|
6767
6785
|
204: void;
|
|
6768
6786
|
};
|