@hupan56/wlkj 3.3.9 → 3.3.10

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.
Files changed (2) hide show
  1. package/bin/cli.js +7 -0
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1,6 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  // wlkj - workflow toolkit
3
3
 
4
+ // Windows 中文乱码修复:cmd/PowerShell 默认 GBK,cli.js 输出 UTF-8 → 乱码
5
+ if (process.platform === "win32") {
6
+ try { execSync("chcp 65001", { stdio: "ignore" }); } catch (e) {}
7
+ process.stdout.setDefaultEncoding("utf-8");
8
+ process.stderr.setDefaultEncoding("utf-8");
9
+ }
10
+
4
11
  const path = require("path");
5
12
  const fs = require("fs");
6
13
  const { execSync } = require("child_process");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hupan56/wlkj",
3
- "version": "3.3.9",
3
+ "version": "3.3.10",
4
4
  "description": "AI Product R&D Workflow - PRD/Prototype/Search/Task/Report",
5
5
  "bin": {
6
6
  "wlkj": "bin/cli.js"