•Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
cli/commands/init.js:
isValidBaseUrl,
saveClaudeBaseUrl,
[redacted],
saveCodexBaseUrl,
saveCodexBaseUrlToEnv,
* ~/.claude/bin, ~/baize/bin (components), ~/.local/node/bin.
* ~/.local/bin, ~/.claude/bin, ~/baize/bin, ~/.local/node/bin.
fs.writeFileSync(envPath, content);
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
cli/commands/init.jsView on unpkg 9import fs from 'node:fs';
L10: import https from 'node:https';
L11: import os from 'node:os';
...
L13: import { createRequire } from 'node:module';
L14: import { execSync, execFileSync, spawnSync, spawn } from 'node:child_process';
L15: import { BAIZE_DIR, SKILLS_DIR, CONFIG_DIR, COMPONENTS_DIR, LOCKS_DIR, COMPONENTS_FILE, BIN_DIR, HTTP_DIR, CADDYFILE, CADDY_BIN, getBaizeConfig, updateBaizeConfig } from '../lib/co...
...
L85: function installSystemPackage(pkg) {
L86: const platform = process.platform;
L87: const sudo = process.getuid?.() === 0 ? '' : 'sudo ';
...
L134: *
L135: * D61 fix: (1) bash login shells read ~/.profile (NOT ~/.bashrc), zsh login
L136: * shells read ~/.zprofile (NOT ~/.zshrc) — write BOTH files per shell so
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
cli/commands/init.jsView on unpkg · L9 •Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
function verifysetuptoken() {
try {
const result = spawnsync('claude', ['-p', 'hi', '--max-turns', '1'], {
timeout: 30000,
env: { ...process.env, path: completebinpath() },
stdio: ['pipe', 'pipe', 'pipe'],
});
if (result.status === 0) {
return { valid: true };
}
const output = ((result.stdout?.tostring() || '') + (result.stderr?.tostring() || '')).trim();
const lower = output.tolowercase();
const isautherror = lower.includes('401') || lower.includes('unauthorized') ||
lower.includes('authentication') || lower.includes('invalid token') ||
lower.includes('invalid key') || lower.includes('expired') ||
lower.i
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.
cli/commands/init.jsView on unpkg 9Trigger-reachable persistence chain: manifest.main -> cli/baize.js -> cli/commands/init.js
L9: import fs from 'node:fs';
L10: import https from 'node:https';
L11: import os from 'node:os';
...
L13: import { createRequire } from 'node:module';
L14: import { execSync, execFileSync, spawnSync, spawn } from 'node:child_process';
L15: import { BAIZE_DIR, SKILLS_DIR, CONFIG_DIR, COMPONENTS_DIR, LOCKS_DIR, COMPONENTS_FILE, BIN_DIR, HTTP_DIR, CADDYFILE, CADDY_BIN, getBaizeConfig, updateBaizeConfig } from '../lib/co...
...
L85: function installSystemPackage(pkg) {
L86: const platform = process.platform;
L87: const sudo = process.getuid?.() === 0 ? '' : 'sudo ';
...
L134: *
L135: * D61 fix: (1) bash login shells read ~/.profile (NOT ~/.bashrc), zsh login
L136: * shells read ~/.zprofile (NOT ~/.zshrc
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
cli/commands/init.jsView on unpkg · L9 64try {
L65: const require = createRequire(import.meta.url);
L66: // Clear cache so re-reads pick up updates from deployTemplates()
MediumDynamic Require
Package source references dynamic require/import behavior.
cli/commands/init.jsView on unpkg · L64 9import fs from 'node:fs';
L10: import https from 'node:https';
L11: import os from 'node:os';
...
L13: import { createRequire } from 'node:module';
L14: import { execSync, execFileSync, spawnSync, spawn } from 'node:child_process';
L15: import { BAIZE_DIR, SKILLS_DIR, CONFIG_DIR, COMPONENTS_DIR, LOCKS_DIR, COMPONENTS_FILE, BIN_DIR, HTTP_DIR, CADDYFILE, CADDY_BIN, getBaizeConfig, updateBaizeConfig } from '../lib/co...
...
L85: function installSystemPackage(pkg) {
L86: const platform = process.platform;
L87: const sudo = process.getuid?.() === 0 ? '' : 'sudo ';
...
L134: *
L135: * D61 fix: (1) bash login shells read ~/.profile (NOT ~/.bashrc), zsh login
L136: * shells read ~/.zprofile (NOT ~/.zshrc) — write BOTH files per shell so
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
cli/commands/init.jsView on unpkg · L9