@xevy/cli 0.1.24 → 0.1.25

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/xevy.mjs +14 -3
  2. package/package.json +2 -2
package/bin/xevy.mjs CHANGED
@@ -33,7 +33,8 @@ const DEFAULT_AGENTS = ["cursor", "claude-code", "codex"];
33
33
  const SETUP_COMPONENTS = ["credentials", "pi", "skills", "mcp"];
34
34
  const isWindows = process.platform === "win32";
35
35
 
36
- const PI_PACKAGE = "@mariozechner/pi-coding-agent";
36
+ const PI_VERSION = "0.73.1";
37
+ const PI_PACKAGE = `@mariozechner/pi-coding-agent@${PI_VERSION}`;
37
38
  const PI_BIN = isWindows ? "pi.cmd" : "pi";
38
39
 
39
40
  // Where `xevy setup` installs the extension and `xevy` loads it from.
@@ -260,8 +261,15 @@ function hasPi() {
260
261
  return !r.error && r.status === 0;
261
262
  }
262
263
 
264
+ function supportedPi() {
265
+ const result = spawnSync(PI_BIN, ["--version"], { encoding: "utf8", shell: isWindows });
266
+ const reported = [result.stdout, result.stderr].map(value => String(value ?? "")).join("\n")
267
+ .split(/\r?\n/).map(line => line.trim()).find(line => /^\d+\.\d+\.\d+$/.test(line));
268
+ return !result.error && result.status === 0 && reported === PI_VERSION;
269
+ }
270
+
263
271
  function ensurePi() {
264
- if (hasPi()) {
272
+ if (supportedPi()) {
265
273
  console.log("→ pi agent already installed");
266
274
  return;
267
275
  }
@@ -708,6 +716,7 @@ async function open(opts) {
708
716
  if (!hasPi()) {
709
717
  die("pi is not installed. Run `xevy setup` first.");
710
718
  }
719
+ if (!supportedPi()) die(`Xevy requires pi ${PI_VERSION}. Run \`xevy setup\` to install the supported runtime.`);
711
720
  let files = [];
712
721
  if (fs.existsSync(XEVY_EXTENSIONS_DIR)) {
713
722
  files = fs
@@ -727,7 +736,9 @@ async function open(opts) {
727
736
 
728
737
  const piArgs = [];
729
738
  for (const f of files) piArgs.push("-e", f);
730
- piArgs.push(...opts.piArgs);
739
+ const overrides = opts.piArgs.some((arg) => /^(?:--model|--provider|--thinking|-m)(?:=|$)/.test(arg));
740
+ if (overrides) die("Xevy selects models and reasoning automatically. Remove model/provider/thinking options and try again.");
741
+ piArgs.push(...opts.piArgs, "--provider", "xevy", "--model", "auto");
731
742
 
732
743
  const r = spawnSync(PI_BIN, piArgs, { stdio: "inherit", shell: isWindows, env: process.env });
733
744
  if (r.error) die(r.error.message);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xevy/cli",
3
- "version": "0.1.24",
4
- "description": "Xevy CLI — connect to remote Dev Sessions, configure credentials, pi, coding-agent skills, and MCP, and keep integrations current.",
3
+ "version": "0.1.25",
4
+ "description": "Xevy CLI \u2014 connect to remote Dev Sessions, configure credentials, pi, coding-agent skills, and MCP, and keep integrations current.",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "xevy",