create-promptex-js 1.1.1-rc.2 → 1.2.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/README.md CHANGED
@@ -84,7 +84,7 @@ pnpm,再退回 npm。已有 `package.json` 時下一步改成先加依賴,
84
84
  (create-promptex-py、create-promptex-rs)相同,只有 `package` 與 `language` 不同:
85
85
 
86
86
  ```json
87
- {"formatVersion":"1.1","package":{"name":"create-promptex-js","version":"1.0.1"},"language":"ts",
87
+ {"formatVersion":"1.2","package":{"name":"create-promptex-js","version":"1.0.1"},"language":"ts",
88
88
  "mode":"init","alreadyInitialized":false,"existingConfig":null,"target":"/work/app",
89
89
  "template":"project","name":"app",
90
90
  "files":{"create":["promptex.config.ts","prompts/example-skill.ts","prompts/example.ts"],
@@ -104,7 +104,7 @@ pnpm,再退回 npm。已有 `package.json` 時下一步改成先加依賴,
104
104
  失敗時 stdout 是一份錯誤 JSON,stderr 另寫一行同文的訊息:
105
105
 
106
106
  ```json
107
- {"formatVersion":"1.1","error":{"code":"USAGE_TEMPLATE_NEEDS_EMPTY_DIR","message":"…","details":{"template":"plugin","path":"/work/app","entries":["src"]}}}
107
+ {"formatVersion":"1.2","error":{"code":"USAGE_TEMPLATE_NEEDS_EMPTY_DIR","message":"…","details":{"template":"plugin","path":"/work/app","entries":["src"]}}}
108
108
  ```
109
109
 
110
110
  結束碼是 0 成功(含已初始化)、1 執行失敗、2 用法錯誤。程式只比對 `error.code`:
@@ -1,5 +1,5 @@
1
1
  /** 機器可讀輸出的格式版本(ADR-041)。 */
2
- export declare const FORMAT_VERSION = "1.1";
2
+ export declare const FORMAT_VERSION = "1.2";
3
3
  /** `.gitignore` 區塊的標記行。已有這一行就不再追加。 */
4
4
  export declare const GITIGNORE_MARKER = "# === promptex init \u7522\u751F\u7684\u5FFD\u7565\u898F\u5247\uFF08\u91CD\u8DD1\u4EE5\u672C\u884C\u5224\u5B9A\uFF0C\u52FF\u6539\u5BEB\uFF09===";
5
5
  /** 任一存在就判定目標已初始化。 */
@@ -4,7 +4,7 @@
4
4
  // 格式版本取自 crates/promptex-core/src/graph.rs 的 FORMAT_VERSION。要改內容就改來源,
5
5
  // 再跑 `pnpm --filter promptex-js run gen:messages` 重新生成;直接改本檔會被核對閘擋下。
6
6
  /** 機器可讀輸出的格式版本(ADR-041)。 */
7
- export const FORMAT_VERSION = "1.1";
7
+ export const FORMAT_VERSION = "1.2";
8
8
  /** `.gitignore` 區塊的標記行。已有這一行就不再追加。 */
9
9
  export const GITIGNORE_MARKER = "# === promptex init 產生的忽略規則(重跑以本行判定,勿改寫)===";
10
10
  /** 任一存在就判定目標已初始化。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-promptex-js",
3
- "version": "1.1.1-rc.2",
3
+ "version": "1.2.0",
4
4
  "description": "Scaffold a promptex TypeScript project, plugin or adapter.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "homepage": "https://github.com/promptex-ai/promptex/tree/main/packages/create-promptex-js#readme",