qijiu-cli 1.0.7 → 1.0.9

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/bin/qijiu.cjs CHANGED
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env node
2
- // qijiu-agent-cli CommonJS bin wrapper
3
- // The ESM source lives in ../src/
4
- import("../src/index.js");
2
+ // qijiu-cli bin wrapper — CommonJS entry for npm global install
3
+ (async () => {
4
+ const { default: main } = await import("../src/index.js");
5
+ })().catch((err) => {
6
+ console.error("❌", err.message);
7
+ process.exit(1);
8
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qijiu-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "企久数据 CLI - 企业大数据智能查询工具",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "type": "module",
10
10
  "bin": {
11
- "qijiu": "./bin/qijiu.cjs"
11
+ "qijiu": "qijiu-cli.js"
12
12
  },
13
13
  "scripts": {
14
14
  "build": "node build.mjs && pkg dist/bundle.cjs --targets node18-linux-x64 --output dist/qijiu",
package/qijiu-cli.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import("./src/index.js");