Add 5 pi extensions: pi-subagents, pi-crew, rpiv-pi, pi-interactive-shell, pi-intercom

This commit is contained in:
2026-05-08 15:59:25 +10:00
parent d0d1d9b045
commit 31b4110c87
457 changed files with 85157 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import test from "node:test";
import assert from "node:assert/strict";
import { getBrokerSocketPath } from "./paths.js";
test("getBrokerSocketPath uses named pipe on Windows", () => {
const pipePath = getBrokerSocketPath("win32", "C:/Users/rcroh");
assert.match(pipePath, /^\\\\\.\\pipe\\pi-intercom-/);
assert.doesNotMatch(pipePath, /broker\.sock$/);
});
test("getBrokerSocketPath uses broker.sock on non-Windows", () => {
const socketPath = getBrokerSocketPath("linux", "/home/rcroh");
assert.match(socketPath, /broker\.sock$/);
assert.match(socketPath, /rcroh/);
});