@pretense/cli 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # @pretense/cli
2
+
3
+ AI firewall CLI that mutates proprietary code identifiers before sending to LLM APIs. Your code hits AI naked -- Pretense fixes that.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @pretense/cli
9
+ ```
10
+
11
+ ## Quickstart
12
+
13
+ ```bash
14
+ # Initialize config in your project
15
+ pretense init
16
+
17
+ # Start the proxy (default port 9339)
18
+ pretense start
19
+
20
+ # Point your AI tools at the proxy
21
+ export ANTHROPIC_BASE_URL=http://localhost:9339
22
+ export OPENAI_BASE_URL=http://localhost:9339/v1
23
+
24
+ # Scan a file for identifiers and secrets
25
+ pretense scan src/
26
+
27
+ # Mutate a file and print to stdout
28
+ pretense mutate src/app.ts
29
+
30
+ # Reverse mutations using stored map
31
+ pretense reverse mutated-output.ts
32
+
33
+ # View audit log
34
+ pretense audit --json
35
+ ```
36
+
37
+ ## Commands
38
+
39
+ | Command | Description |
40
+ |---------|-------------|
41
+ | `pretense init` | Scan cwd, create .pretense/ config |
42
+ | `pretense start` | Start proxy on :9339 |
43
+ | `pretense scan <file\|dir>` | Scan for identifiers + secrets |
44
+ | `pretense mutate <file>` | Mutate and print to stdout |
45
+ | `pretense reverse <file>` | Reverse using stored map |
46
+ | `pretense audit` | Print audit log |
47
+ | `pretense version` | Print version |
48
+
49
+ ## Exit Codes
50
+
51
+ - `0` -- Success
52
+ - `1` -- Error
53
+ - `2` -- Secrets found
54
+
55
+ ## Learn More
56
+
57
+ Visit [pretense.ai](https://pretense.ai) for documentation and enterprise features.
package/bin/pretense ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import '../dist/index.js';
@@ -0,0 +1,2 @@
1
+
2
+ export { }