10749summary: "Run a command in a visible pane and wait for it",
L10750: description: "Opens one pane (split of this window, never a new window) FIRST and runs the command in it as the child of `pai pane exec`, which shows the live output and its exit c...
L10751: options: [{
•Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/cli/index.mjs:
import { appendFileSync, chmodSync, closeSync, copyFileSync, cpSync, createReadStream, createWriteStream, existsSync, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, readS...
import { createInterface } from "node:readline";
for (const p of pages) writeFileSync(join(dir, p.name), p.markdown);
writeFileSync(file, md + "\n");
writeFileSync(routerPidFile(), String(process.pid));
writeFileSync(routerHandoverFile(), String(process.pid));
writeFileSync(tmp, JSON.stringify(out), "utf-8");
* actual ~/.claude/projects/ (a live directory this very session writes to). */
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/cli/index.mjsView on unpkg •Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
mplate.md");
if (!existssync(templatepath)) {
console.log(c.warn("skill template not found: " + templatepath));
console.log(c.dim(" skipping pai skill installation."));
return false;
}
const skilldir = join(homedir(), ".claude", "skills", "pai");
const skillfile = join(skilldir, "skill.md");
if (existssync(skillfile)) {
const content = readfilesync(skillfile, "utf-8");
const isgenerated = content.includes("generated by pai setup");
if (isgenerated) console.log(c.dim(" found existing pai-generated skill.md."));
else {
console.log(c.yellow(" found existing skill.md (not pai-generated)."));
console.log(c.dim(" a backup will be created before overwriting
HighTrigger Reachable External Ai Agent Control Surface Mutation
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/cli/index.mjsView on unpkg 43Cross-file remote execution chain: dist/cli/index.mjs spawns dist/daemon-mcp/index.mjs; helper contains network access plus dynamic code execution.
L43: import { A as routerPidFile, B as usageContextTokens, D as routerHandoverFile, E as probeRouter, F as startHandover, I as paneWaiver, L as launchPane, M as routerSwapArgs, P as spa...
L44: import { C as readRunLog, D as resumeState, E as requestPlanStop, F as runLogPath, I as PlanTracker, M as dirtyConflicts, O as runExitCode, P as loadPlan, S as planStopPath, T as r...
L45: import "../endreason-BC-v05H_.mjs";
...
L68: import { cpus, homedir, platform, userInfo } from "node:os";
L69: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L70: import { fileURLToPath } from "node:url";
L71: import http from
HighCross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/cli/index.mjsView on unpkg · L43 43Trigger-reachable persistence chain: manifest.bin -> dist/cli/index.mjs
L43: import { A as routerPidFile, B as usageContextTokens, D as routerHandoverFile, E as probeRouter, F as startHandover, I as paneWaiver, L as launchPane, M as routerSwapArgs, P as spa...
L44: import { C as readRunLog, D as resumeState, E as requestPlanStop, F as runLogPath, I as PlanTracker, M as dirtyConflicts, O as runExitCode, P as loadPlan, S as planStopPath, T as r...
L45: import "../endreason-BC-v05H_.mjs";
...
L68: import { cpus, homedir, platform, userInfo } from "node:os";
L69: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L70: import { fileURLToPath } from "node:url";
L71: import http from "node:http";
L72: import { createServer } from "node:net";
...
L107: stream.
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/cli/index.mjsView on unpkg · L43 43import { A as routerPidFile, B as usageContextTokens, D as routerHandoverFile, E as probeRouter, F as startHandover, I as paneWaiver, L as launchPane, M as routerSwapArgs, P as spa...
L44: import { C as readRunLog, D as resumeState, E as requestPlanStop, F as runLogPath, I as PlanTracker, M as dirtyConflicts, O as runExitCode, P as loadPlan, S as planStopPath, T as r...
L45: import "../endreason-BC-v05H_.mjs";
...
L68: import { cpus, homedir, platform, userInfo } from "node:os";
L69: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L70: import { fileURLToPath } from "node:url";
L71: import http from "node:http";
L72: import { createServer } from "node:net";
...
L107: stream.once("close", () => resolve());
L108: stream.write("", () => resolve());
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/cli/index.mjsView on unpkg · L43