1861try {
L1862: return (await fetch(`http://127.0.0.1:${port}/v1/models`, { signal: AbortSignal.timeout(3e3) })).ok;
L1863: } catch {
...
L1872: const [cmd, ...args] = plan.argv;
L1873: const child = spawn(cmd, args, {
L1874: env: {
L1875: ...process.env,
L1876: ...plan.env
CriticalSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
dist/cli/index.mjsView on unpkg · L1861 •Trigger-reachable chain: manifest.bin -> dist/cli/index.mjs
Reachable file contains a blocking source-risk pattern.
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/cli/index.mjsView on unpkg •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");
if (!existsSync(envFile)) writeFileSync(envFile, "arm load thermal\n");
writeFileSync(file, `# A/B results\n\nGenerated by \`pai worker bench\`; void rows excluded from pass/total.\n\n${aggregate(rows)}\n`);
const SETTINGS_FILE = join(join(homedir(), ".claude"), "settings.json");
* ~/.cla
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.
dir(), "pai-sk[redacted]");
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 bef
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 3Cross-file remote execution chain: dist/cli/index.mjs spawns dist/daemon-mcp/index.mjs; helper contains network access plus dynamic code execution.
L3: import { a as slugify$1, i as parseSessionFilename } from "../migrate-B1t833CE.mjs";
L4: import { $ as workersYamlPath, A as nativeAnthropicProvider, At as resumeState, B as readWorkersSection, Dr as ledgerPath, Dt as renderSchedule, E as isLocalProvider, En as queueRo...
L5: import { a as schedulerLogPath, c as migratePaiFile, d as resolvePaiFile, i as paiSocketPath, l as paiHomeDir, n as daemonLogPath, o as PaiFileMigrationError, s as migratePaiDir, u...
...
L48: import chalk from "chalk";
L49: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L50: import { parseDocument } from "yaml";
L51: import {
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 · L3 3Trigger-reachable persistence chain: manifest.bin -> dist/cli/index.mjs
L3: import { a as slugify$1, i as parseSessionFilename } from "../migrate-B1t833CE.mjs";
L4: import { $ as workersYamlPath, A as nativeAnthropicProvider, At as resumeState, B as readWorkersSection, Dr as ledgerPath, Dt as renderSchedule, E as isLocalProvider, En as queueRo...
L5: import { a as schedulerLogPath, c as migratePaiFile, d as resolvePaiFile, i as paiSocketPath, l as paiHomeDir, n as daemonLogPath, o as PaiFileMigrationError, s as migratePaiDir, u...
...
L48: import chalk from "chalk";
L49: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L50: import { parseDocument } from "yaml";
L51: import { createHash, randomBytes, randomUUID } from "node:crypto";
L52: import http f
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/cli/index.mjsView on unpkg · L3