@blockyfy/stg-cli
v0.4.0
Published
AI firewall CLI — protect code before LLM API calls
Maintainers
Readme
@blockyfy/stg-cli (Pretest CLI)
AI firewall CLI that mutates proprietary code identifiers before sending to LLM APIs. Your code hits AI naked — Pretest fixes that.
Install
npm install -g @blockyfy/stg-cliQuickstart
# Initialize config in your project
pretest init
# Start the proxy (default port 9339)
pretest start
# Point your AI tools at the proxy
export ANTHROPIC_BASE_URL=http://localhost:9339
export OPENAI_BASE_URL=http://localhost:9339/v1
# Scan a file for identifiers and secrets
pretest scan src/
# Mutate a file and print to stdout
pretest mutate src/app.ts
# Reverse mutations using stored map
pretest reverse mutated-output.ts
# View audit log
pretest audit --jsonCommands
| Command | Description |
|---------|-------------|
| pretest init | Scan cwd, create .pretest/ config |
| pretest start | Start proxy on :9339 |
| pretest scan <file\|dir> | Scan for identifiers + secrets |
| pretest mutate <file> | Redact scanner hits (secrets/PII), then mutate identifiers; print to stdout |
| pretest reverse <file> | Reverse using stored map |
| pretest audit | Print audit log |
| pretest version | Print version |
Exit Codes
0-- Success1-- Error2-- Secrets found
Learn More
Package page and release notes: https://www.npmjs.com/package/@blockyfy/stg-cli.
