•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,
fs.writeFileSync(envPath, content);
fs.writeFileSync(envPath, content);
* Save an Anthropic API key to ~/.claude/settings.json and process.env.
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...
...
L84: function installSystemPackage(pkg) {
L85: const platform = process.platform;
L86: const sudo = process.getuid?.() === 0 ? '' : 'sudo ';
...
L121: function ensureLocalBinInProfile() {
L122: const homedir = os.homedir();
L123: const shell = (process.env.SHELL || '').split('/').pop();
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 },
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.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...
...
L84: function installSystemPackage(pkg) {
L85: const platform = process.platform;
L86: const sudo = process.getuid?.() === 0 ? '' : 'sudo ';
...
L121: function ensureLocalBinInProfile() {
L122: const homedir = os.homedir();
L123: const shell = (process.env.SHELL || '').split('/')
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
cli/commands/init.jsView on unpkg · L9 63try {
L64: const require = createRequire(import.meta.url);
L65: // 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 · L63 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...
...
L84: function installSystemPackage(pkg) {
L85: const platform = process.platform;
L86: const sudo = process.getuid?.() === 0 ? '' : 'sudo ';
...
L121: function ensureLocalBinInProfile() {
L122: const homedir = os.homedir();
L123: const shell = (process.env.SHELL || '').split('/').pop();
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
cli/commands/init.jsView on unpkg · L9