Lines 1-21javascript
2import{defineCommand as e,renderUsage as t,runMain as n}from"citty";import*as r from"valibot";import*as i from"node:crypto";import{ECDH as a,createECDH as o,createHash as s,randomBytes as c}from"node:crypto";import{execFile as l,spawn as u}from"node:child_process";import{chmodSync as d,existsSync as f,mkdirSync as p,readFileSync as m,realpathSync as h,renameSync as g,rmSync as _,statSync as v,writeFileSync as y}from"node:fs";import{homedir as b}from"node:os";import{dirname as x,isAbsolute as S,join as C,resolve as w}from"node:path";import{createServer as T}from"node:http";import E from"semver" ...
3`}var fn=class{runSecurity;constructor(e={}){if((e.platform??process.platform)!==`darwin`)throw Error(`macOS Keychain credential storage is only supported on macOS`);this.runSecurity=e.runSecurity??nn}async save(e,t){let n=zt(t),r=Yt(e),i=await this.resolveLegacyChunkCount(r,64);if(await this.savePassword(r,Wt(n)),!Gt(await this.resolveDirectPassword(r),n))throw Error(`macOS Keychain credential save verification failed`);await this.deleteChunks(r,i)}async resolve(e){let t=Yt(e),n=await this.resolveKeychainItem(t);return n===null?null:n.kind===`direct`?n.payload:this.resolveLegacyPayload(t,n.ma ...
HighChild Process
Package source references child process execution.
dist/index.mjsView on unpkg · L1 HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.mjsView on unpkg · L1 4`,{encoding:`utf-8`,mode:384}),g(n,t)}function Mn(e,t){En(e);let n=r.parse(xn,t);_n(n.bank_url,`profile "${e}" bank_url`);let i=kn();jn({...i,profiles:{...i.profiles,[e]:n}})}function Nn(e){return e.status===`linked`
5
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index.mjsView on unpkg · L1 8Examples below use \`npx -y @catena/cli@latest ...\` so agents fetch the current
9CLI. If \`catena\` is already installed, use \`catena ...\` with the same
10arguments. Every non-\`link\` command resolves credentials from the selected
11profile and prints JSON on stdout; errors and upgrade notices go to stderr. The
12\`guide\` command is documentation, so it prints this Markdown guide on stdout.
14Every command supports \`--help\`; use it for exact syntax, choices, and
15defaults rather than guessing. This guide covers what \`--help\` cannot: when to
16run each command, how ids flow between them, and how to read the results.
201. Run \`npx -y @catena/cli@latest whoami\`. If it returns an agent, you are
21 linked and can continue.
Long lines were clipped for display.