promptex-js 1.3.1 → 1.4.0-alpha.2

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/adapter.d.ts CHANGED
@@ -118,10 +118,13 @@ export interface AdapterTarget {
118
118
  * `Plugin.configSchema`;`emit` 帶函式本體、不進中介表示,不得寫進宣告。
119
119
  */
120
120
  readonly configSchema?: unknown;
121
+ /** 各語系的覆蓋層,形態見 `Plugin.configSchemaLocales`。 */
122
+ readonly configSchemaLocales?: Record<string, unknown>;
121
123
  }
122
124
  /** 第三方套件用本函式建構 target。 */
123
125
  export declare function defineTarget(platform: string, emit: AdapterEmit, options?: {
124
126
  readonly configSchema?: unknown;
127
+ readonly configSchemaLocales?: Record<string, unknown>;
125
128
  }): AdapterTarget;
126
129
  /**
127
130
  * 格式化為人讀文字:委派核心 `adapter::Report::format`(經
package/dist/adapter.js CHANGED
@@ -29,6 +29,7 @@ export function defineTarget(platform, emit, options = {}) {
29
29
  platform,
30
30
  emit,
31
31
  ...(options.configSchema !== undefined ? { configSchema: options.configSchema } : {}),
32
+ ...(options.configSchemaLocales ? { configSchemaLocales: options.configSchemaLocales } : {}),
32
33
  };
33
34
  }
34
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "promptex-js",
3
- "version": "1.3.1",
3
+ "version": "1.4.0-alpha.2",
4
4
  "description": "TypeScript SDK、核心的預編譯二進位綁定與命令列工具,三者為同一次發布產出",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "promptex-ai",
@@ -74,11 +74,11 @@
74
74
  "vitest": "^4.1.11"
75
75
  },
76
76
  "optionalDependencies": {
77
- "promptex-js-darwin-arm64": "1.3.1",
78
- "promptex-js-darwin-x64": "1.3.1",
79
- "promptex-js-linux-arm64-gnu": "1.3.1",
80
- "promptex-js-linux-x64-gnu": "1.3.1",
81
- "promptex-js-win32-arm64-msvc": "1.3.1",
82
- "promptex-js-win32-x64-msvc": "1.3.1"
77
+ "promptex-js-darwin-arm64": "1.4.0-alpha.2",
78
+ "promptex-js-darwin-x64": "1.4.0-alpha.2",
79
+ "promptex-js-linux-arm64-gnu": "1.4.0-alpha.2",
80
+ "promptex-js-linux-x64-gnu": "1.4.0-alpha.2",
81
+ "promptex-js-win32-arm64-msvc": "1.4.0-alpha.2",
82
+ "promptex-js-win32-x64-msvc": "1.4.0-alpha.2"
83
83
  }
84
84
  }