@quspect/qupai 0.7.7 → 0.7.11
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/qupai.js +3 -1
- package/package.json +7 -7
- package/tui/qupai-tui.mjs +63 -60
package/bin/qupai.js
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
// It also tells the binary where the full-screen app is (this package's tui/qupai-tui.mjs) and which Node.js runs it
|
|
8
8
|
// (the one running this file), so `qupai` alone on a terminal opens it: QUPAI_TUI_ENTRY, QUPAI_TUI_NODE and
|
|
9
9
|
// QUPAI_TUI_NODE_VERSION, none of them secret. The binary checks the version (pi-tui needs Node.js 22.19 or later).
|
|
10
|
+
// QUPAI_NPM_ROOT is this package's folder: `qupai update` installs the newest version over it, with the npm beside
|
|
11
|
+
// this Node.js, when it is npm's global install.
|
|
10
12
|
const { spawnSync } = require("node:child_process");
|
|
11
13
|
const { existsSync } = require("node:fs");
|
|
12
14
|
const path = require("node:path");
|
|
@@ -23,7 +25,7 @@ try {
|
|
|
23
25
|
process.exit(1);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
const env = { ...process.env };
|
|
28
|
+
const env = { ...process.env, QUPAI_NPM_ROOT: path.join(__dirname, "..") };
|
|
27
29
|
const tui = path.join(__dirname, "..", "tui", "qupai-tui.mjs");
|
|
28
30
|
if (existsSync(tui)) {
|
|
29
31
|
env.QUPAI_TUI_ENTRY = tui;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quspect/qupai",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"description": "QuPai's command line: sign in to a QuPai platform and ask its agents from a terminal, or from Codex and Claude Code",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Quspect",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"node": ">=18"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@quspect/qupai-darwin-arm64": "0.7.
|
|
33
|
-
"@quspect/qupai-darwin-x64": "0.7.
|
|
34
|
-
"@quspect/qupai-linux-x64": "0.7.
|
|
35
|
-
"@quspect/qupai-linux-arm64": "0.7.
|
|
36
|
-
"@quspect/qupai-win32-x64": "0.7.
|
|
37
|
-
"@quspect/qupai-win32-arm64": "0.7.
|
|
32
|
+
"@quspect/qupai-darwin-arm64": "0.7.11",
|
|
33
|
+
"@quspect/qupai-darwin-x64": "0.7.11",
|
|
34
|
+
"@quspect/qupai-linux-x64": "0.7.11",
|
|
35
|
+
"@quspect/qupai-linux-arm64": "0.7.11",
|
|
36
|
+
"@quspect/qupai-win32-x64": "0.7.11",
|
|
37
|
+
"@quspect/qupai-win32-arm64": "0.7.11"
|
|
38
38
|
}
|
|
39
39
|
}
|