@preapexis/piexis 0.2.5 → 0.2.7

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.
@@ -15,7 +15,7 @@ const workspace = path.resolve(value("--workspace") || process.cwd());
15
15
  const port = value("--port") || process.env.PIXIS_PORT || "4317";
16
16
  const token = value("--token") || process.env.PIXIS_TOKEN || randomBytes(32).toString("base64url");
17
17
  const server = path.join(root, "apps", "server", "src", "index.ts");
18
- const child = spawn(process.execPath, ["--import", "tsx", server], {
18
+ const child = spawn(process.execPath, ["--import", import.meta.resolve("tsx"), server], {
19
19
  cwd: workspace,
20
20
  env: { ...process.env, PIXIS_WORKSPACE: workspace, PIXIS_PORT: port, PIXIS_TOKEN: token, PIXIS_ORIGIN: `http://127.0.0.1:${port}` },
21
21
  stdio: "inherit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preapexis/piexis",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "description": "Extensions, skills, prompts, and themes for pi",
6
6
  "repository": {
@@ -29,7 +29,12 @@ export class PiRpcClient extends EventEmitter {
29
29
 
30
30
  start(): void {
31
31
  if (this.#child) return;
32
- const child = spawn(this.executable, [...this.executableArgs, "--mode", "rpc"], { cwd: this.cwd, stdio: ["pipe", "pipe", "pipe"], windowsHide: true });
32
+ const child = spawn(this.executable, [...this.executableArgs, "--mode", "rpc"], {
33
+ cwd: this.cwd,
34
+ shell: process.platform === "win32",
35
+ stdio: ["pipe", "pipe", "pipe"],
36
+ windowsHide: true
37
+ });
33
38
  this.#child = child;
34
39
  child.stdout?.on("data", (chunk: Buffer) => this.#consume(chunk.toString("utf8")));
35
40
  child.stderr?.on("data", (chunk: Buffer) => this.emit("diagnostic", chunk.toString("utf8")));