@nikcli-ai/sdk 1.205.0 → 1.207.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.
@@ -19,9 +19,9 @@ type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
19
19
  interface SerializePrimitiveParam extends SerializePrimitiveOptions {
20
20
  value: string;
21
21
  }
22
- export declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "." | ";" | "," | "&";
23
- export declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
24
- export declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "." | ";" | "," | "&";
22
+ export declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "&" | "," | "." | ";";
23
+ export declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "%20" | "," | "|";
24
+ export declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "&" | "," | "." | ";";
25
25
  export declare const serializeArrayParam: ({ allowReserved, explode, name, style, value, }: SerializeOptions<ArraySeparatorStyle> & {
26
26
  value: unknown[];
27
27
  }) => string;
@@ -2362,6 +2362,10 @@ export type Config = {
2362
2362
  * Enable animated background pulse behind the home logo (default: false)
2363
2363
  */
2364
2364
  bg_pulse?: boolean;
2365
+ /**
2366
+ * Show a per-turn token breakdown after each answer, with a warning when the prompt cache is invalidated (default: false)
2367
+ */
2368
+ turn_tokens?: boolean;
2365
2369
  };
2366
2370
  ads?: AdsConfig;
2367
2371
  server?: ServerConfig;
@@ -2498,6 +2502,27 @@ export type Config = {
2498
2502
  extensions?: Array<string>;
2499
2503
  };
2500
2504
  };
2505
+ /**
2506
+ * Web search provider configuration for the websearch tool
2507
+ */
2508
+ websearch?: {
2509
+ /**
2510
+ * Web search backend. Defaults to "exa" (hosted endpoint, no key required).
2511
+ */
2512
+ provider?: "exa" | "parallel" | "mcp";
2513
+ /**
2514
+ * API key for the selected provider. Falls back to EXA_API_KEY or PARALLEL_API_KEY. Optional for exa, required for parallel.
2515
+ */
2516
+ apiKey?: string;
2517
+ /**
2518
+ * MCP endpoint to query. Required for the "mcp" provider; overrides the default endpoint otherwise.
2519
+ */
2520
+ url?: string;
2521
+ /**
2522
+ * MCP tool name to call. Defaults to the provider's own search tool.
2523
+ */
2524
+ tool?: string;
2525
+ };
2501
2526
  lsp?: false | {
2502
2527
  [key: string]: {
2503
2528
  disabled: true;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/sdk",
4
- "version": "1.205.0",
4
+ "version": "1.207.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
8
- "typecheck": "tsgo --noEmit",
8
+ "typecheck": "tsc --noEmit",
9
9
  "build": "./script/build.ts",
10
10
  "generate:httpapi": "bun run --cwd ../../nikcli generate:httpapi-clients"
11
11
  },
@@ -55,7 +55,7 @@
55
55
  "@tsconfig/node22": "22.0.2",
56
56
  "@types/node": "22.13.9",
57
57
  "typescript": "5.8.2",
58
- "@typescript/native-preview": "7.0.0-dev.20260707.2"
58
+ "@typescript/native": "npm:typescript@7.0.2"
59
59
  },
60
60
  "dependencies": {},
61
61
  "publishConfig": {