@averyyy/pi-client 0.80.3-piclient.9 → 0.80.6-piclient.4

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/CHANGELOG.md CHANGED
@@ -11,3 +11,7 @@
11
11
  ### Fixed
12
12
 
13
13
  - Used `--legacy-peer-deps` for npm-global fork updates and documented installs so existing upstream Pi installs do not trigger peer override warnings for forked prerelease aliases.
14
+
15
+ ### Changed
16
+
17
+ - Rebased the client on upstream Pi `0.80.6`, including GPT-5.6 model metadata and `max` thinking support.
package/bin/web.js CHANGED
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { spawn } from "node:child_process";
2
+ import { spawn, spawnSync } from "node:child_process";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { homedir } from "node:os";
5
5
  import { dirname, join } from "node:path";
6
+ import { createInterface } from "node:readline/promises";
6
7
  import { fileURLToPath } from "node:url";
7
8
 
8
9
  const defaultPort = "1838";
@@ -19,8 +20,7 @@ export async function runPiClientWeb(args = process.argv.slice(2)) {
19
20
  }
20
21
 
21
22
  if (!hasTauCodexExtensionInstalled(process.env)) {
22
- printInstallRequired();
23
- return 1;
23
+ if (!await offerTauCodexInstall()) return 1;
24
24
  }
25
25
 
26
26
  process.title = "pi-client web";
@@ -42,6 +42,23 @@ export async function runPiClientWeb(args = process.argv.slice(2)) {
42
42
  });
43
43
  }
44
44
 
45
+ export async function offerTauCodexInstall(env = process.env, input = process.stdin, output = process.stdout) {
46
+ printInstallRequired();
47
+ if (!input.isTTY || !output.isTTY) return false;
48
+
49
+ const rl = createInterface({ input, output });
50
+ const answer = (await rl.question("现在安装吗? [y/N] ")).trim().toLowerCase();
51
+ rl.close();
52
+ if (answer !== "y" && answer !== "yes") return false;
53
+
54
+ const result = spawnSync(process.execPath, [join(dirname(fileURLToPath(import.meta.url)), "pi-client.js"), "install", tauCodexInstallTarget], {
55
+ env,
56
+ stdio: "inherit",
57
+ });
58
+ if (result.error) throw result.error;
59
+ return result.status === 0 && hasTauCodexExtensionInstalled(env);
60
+ }
61
+
45
62
  export function piClientWebEnv(env = process.env, options) {
46
63
  return {
47
64
  ...env,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@averyyy/pi-client",
3
- "version": "0.80.3-piclient.9",
3
+ "version": "0.80.6-piclient.4",
4
4
  "description": "Lightweight CLI wrapper that connects to a pi-server instance",
5
5
  "type": "module",
6
6
  "piClient": {
7
- "basePiVersion": "0.80.3",
8
- "basePiCommit": "85b7c247"
7
+ "basePiVersion": "0.80.6",
8
+ "basePiCommit": "2b3fda99"
9
9
  },
10
10
  "bin": {
11
11
  "pi-client": "bin/pi-client.js"
@@ -25,7 +25,7 @@
25
25
  "prepublishOnly": "npm run build"
26
26
  },
27
27
  "dependencies": {
28
- "@earendil-works/pi-coding-agent": "npm:@averyyy/pi-coding-agent@0.80.3-piclient.9"
28
+ "@earendil-works/pi-coding-agent": "npm:@averyyy/pi-coding-agent@0.80.6-piclient.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "shx": "0.4.0",