@patze/code-cli 0.55.1 → 0.55.3

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/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to `@patze/code-cli` are documented here.
4
4
 
5
5
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [0.55.3] - 2026-05-31
8
+
9
+ ### Changed
10
+
11
+ - **README** — removed UI mockup / “What you see” section (npm page stays install + commands only).
12
+
13
+ ## [0.55.2] - 2026-05-31
14
+
15
+ ### Docs
16
+
17
+ - **README** — Codex-style rewrite: install/start/auth/commands only; moved maintainer tables to `docs/`.
18
+ - **`docs/install-beta.md`** + **`beta-tester-checklist.md`** — synced to 0.55.x; `--pair` install path.
19
+
7
20
  ## [0.55.1] - 2026-05-31
8
21
 
9
22
  ### Fixed (Codex-clean composer)
package/README.md CHANGED
@@ -1,248 +1,91 @@
1
1
  # Patze Code CLI
2
2
 
3
- Professional local terminal client for Patze Code / PatzeAgents.
3
+ Terminal coding agent for [PatzeAgents](https://github.com/patzelife/patzelife-plugin-agentdiscord). Runs in your workspace; server handles auth, policy, runs, and artifacts.
4
4
 
5
- Patze Code runs coding tasks against your workspace while keeping **PatzeAgents server** as the authority for auth, entitlements, run records, artifacts, verification, and policy.
5
+ **Internal beta** install `@beta`, not `latest`. Details: [`docs/internal-beta.md`](docs/internal-beta.md).
6
6
 
7
- > **Internal beta (0.55.x):** Codex/cookbook-style composer, trust loop, runs automation, and gated agent execute. See [`docs/internal-beta.md`](docs/internal-beta.md) and [`docs/known-limitations.md`](docs/known-limitations.md). Not yet `npm latest` / 1.0.
8
-
9
- ## Requirements
10
-
11
- - **Node.js** 20+
12
- - Patze API reachable from your machine (optional — for server-backed preview)
13
-
14
- ## Install (internal beta)
7
+ ## Install
15
8
 
16
9
  ```bash
17
- # Helper script (monorepo)
18
- cd packages/patze-code-cli
19
- ./scripts/install-beta.sh local
20
-
21
- # Or manual tarball
22
- npm run build && npm pack
23
- npm install -g ./patze-code-cli-0.55.0.tgz
10
+ npm install -g @patze/code-cli@beta
24
11
  patze --version
25
12
  ```
26
13
 
27
- Registry:
14
+ Pinned release: `@patze/code-cli@0.55.3`
15
+
16
+ Requires **Node.js 20+**.
17
+
18
+ ## Start
28
19
 
29
20
  ```bash
30
- npm install -g @patze/code-cli@beta
31
- # or pinned: @patze/code-cli@0.10.5
32
- patze --version
21
+ cd your-project
22
+ patze
33
23
  ```
34
24
 
35
- Full guide: [`docs/install-beta.md`](docs/install-beta.md) · Checklist: [`docs/beta-tester-checklist.md`](docs/beta-tester-checklist.md)
36
-
37
- ## Quick start (beta tester)
25
+ One-shot (non-interactive):
38
26
 
39
27
  ```bash
40
- # 1. Clean fixture workspace
41
- mkdir -p /tmp/patze-beta && cd /tmp/patze-beta
42
- git init
28
+ patze "summarize this repo in one paragraph"
29
+ patze exec "fix the typo in README" --json # JSONL stream for scripts
30
+ ```
43
31
 
44
- # 2. Optional — server auth (use env, never commit secrets)
45
- export PATZE_CODE_API=https://api.example.com
46
- export PATZE_CODE_TOKEN=<internal-api-key>
47
- export PATZE_CODE_USER_ID=<user-uuid>
32
+ ## Sign in
48
33
 
49
- # Or dashboard pairing (recommended for humans)
50
- # patze login --pair --api https://api.example.com [--web https://app.example.com]
34
+ Agent tasks need Patze API credentials.
51
35
 
52
- # Optional — live Cursor model list in /model picker (OpenTUI + TTY)
53
- # export CURSOR_API_KEY=crsr_...
36
+ ```bash
37
+ patze login --pair --api https://api.example.com
38
+ ```
54
39
 
55
- # 3. Read-only checks
56
- patze status
57
- patze doctor
58
- patze code inspect
59
- patze goal "Review README" --dry-run
40
+ Or inside the shell: `/login`. Manual: `patze login <api> <token> [userId]`.
60
41
 
61
- # 4. Interactive trust loop
62
- patze
63
- ```
42
+ Env vars (optional): `PATZE_CODE_API`, `PATZE_CODE_TOKEN`, `PATZE_CODE_USER_ID`.
64
43
 
65
- Running `patze` shows a status card and tips:
44
+ Optional: `CURSOR_API_KEY` adds live models to `/model` (bundled catalog always available).
66
45
 
67
- ```text
68
- ╭─ Patze Code · v0.55.0 ────────────────────────────────────╮
69
- │ workspace /mnt/d/pat-test │
70
- │ auth incomplete │
71
- │ permission Read-only │
72
- │ safety preview-first · read-only │
73
- ╰───────────────────────────────────────────────────────────╯
74
- Beta · Dev demo — for internal testing only
75
-
76
- ! auth incomplete — run `patze login --pair --api <url>` or set PATZE_CODE_* env
77
-
78
- Type a task, or /help for commands.
79
- Tips
80
- • /inspect scans the workspace (read-only)
81
- • /plan then /diff previews changes before any write
82
- • /apply needs typed approval — it never auto-applies
83
- Type / for commands · ↑↓ to navigate · Tab/Enter to select
84
-
85
-
86
- ```
46
+ ## Commands
87
47
 
88
- Type `/` to open a live command palette that filters as you type:
48
+ **Shell (`patze`)** `/help`, `/status`, `/login`, `/logout`, `/model`, `/local`, `/cloud`, `/reset`, `/clear`, `/runs`, `/inspect`, `/goal`, `/plan`, `/diff`, `/permissions`, `/tools`, `/approve`, `/apply`, `/verify`, `/reject`, `/exit`
89
49
 
90
- ```text
91
- › /p
92
- /plan Server preview only (no apply)
93
- ❯ /permissions Open permission mode selector
94
- /help Show slash commands
95
-
96
- ```
50
+ **CLI** — `patze status`, `patze doctor`, `patze config`, `patze runs list|open|cancel`, `patze goal … --dry-run`, `patze code inspect|plan|diff`
97
51
 
98
- Navigate with ↑↓, complete with Tab, run with Enter. Commands that need an
99
- argument (e.g. `/goal <task>`) complete to `/goal ` and wait for your input.
100
- When the palette is closed, ↑↓ recalls in-session history. The composer is
101
- TTY-only; piped / scripted input stays on readline and remains deterministic.
102
-
103
- Authenticate with **`patze login --pair --api <url>`** (dashboard device-code), **`/login`**
104
- inside the shell, or **`patze login <api> <token> [userId]`**. Environment variables
105
- `PATZE_CODE_API` / `PATZE_CODE_TOKEN` / `PATZE_CODE_USER_ID` also work. Tokens are
106
- masked in output and never kept in transcript or recall history.
107
-
108
- ## Cookbook parity ([Cursor coding-agent-cli](https://github.com/cursor/cookbook/tree/main/sdk/coding-agent-cli))
109
-
110
- Patze Code is a **PatzeAgents-backed** hybrid (server authority + Codex/cookbook UX):
111
-
112
- | Cookbook capability | Patze CLI |
113
- |---------------------|-----------|
114
- | Interactive TUI (`patze`) | ✅ OpenTUI (Bun) or Node TTY fallback |
115
- | One-shot + stdin pipe | ✅ `patze "task"`, `patze agent`, `patze exec` |
116
- | `/` slash menu (inline palette) | ✅ filter-as-you-type; composer stays focused |
117
- | `/local`, `/cloud`, `/model`, `/reset` | ✅ + Patze trust loop commands |
118
- | Model picker search + T/F prefs | ✅ OpenTUI + Node TTY |
119
- | Live model catalog | ✅ bundled + `Cursor.models.list` when `CURSOR_API_KEY` set |
120
- | Plain pipe feed (stderr meta) | ✅ Codex feed on `patze exec` / non-TTY agent |
121
- | Direct `@cursor/sdk` runtime | ⚠️ Patze uses FastAPI execute + policy (by design) |
122
-
123
- ## Command status (0.55.0)
124
-
125
- ### Interactive (`patze` shell)
126
-
127
- | Command | Status | Notes |
128
- |---------|--------|-------|
129
- | free-text prompt | ✅ | Agent execute + SSE when auth ready |
130
- | `/help` | ✅ | |
131
- | `/status [--check]` | ✅ | Trust-loop snapshot + auth posture |
132
- | `/login`, `/logout` | ✅ | Save or clear credentials |
133
- | `/local`, `/cloud` | ✅ | Execution mode (cloud gated by server) |
134
- | `/model` | ✅ | Searchable picker + T/F thinking/fast (TTY + OpenTUI) |
135
- | `/runs`, `/run` | ✅ | List/open/cancel server runs |
136
- | `/reset`, `/clear` | ✅ | Fresh agent / clear transcript |
137
- | `/context` | ✅ | Session state (digests masked) |
138
- | `/goal`, `/inspect`, `/plan` | ✅ | Trust loop + preview |
139
- | `/permissions`, `/tools` | ✅ | Mode selector + tool catalog |
140
- | `/diff`, `/approve`, `/apply`, `/verify`, `/reject` | ✅ | Gated local apply loop |
141
- | `/exit` | ✅ | |
142
-
143
- ### Top-level CLI
144
-
145
- | Command | Status | Notes |
146
- |---------|--------|-------|
147
- | `patze` | ✅ | Interactive shell (OpenTUI or Node TTY) |
148
- | `patze "<task>"` / `patze agent` | ✅ | One-shot agent; pipe uses Codex plain feed |
149
- | `patze exec "<task>" [--json]` | ✅ | CI/automation JSONL stream |
150
- | `patze --version` | ✅ | |
151
- | `patze status [--check]` | ✅ | |
152
- | `patze doctor [--check]` | ✅ | Read-only; e2e + cloud hints when dev env present |
153
- | `patze login --pair --api <url>` | ✅ | Dashboard device-code (recommended) |
154
- | `patze login <api> <token> [id]` | ✅ | Manual token paste |
155
- | `patze goal "<task>" --dry-run` | ✅ | Non-interactive plan |
156
- | `patze code inspect|plan|diff` | ✅ | Workspace / preview commands |
157
- | `patze code apply` | 🚫 disabled | Interactive `/apply` only |
158
- | `patze code verify` | ℹ️ help-only | No session apply → summary only |
159
- | `patze runs list|open|cancel` | ✅ | Server run history; `--json` on list/open |
160
- | `patze config` | ✅ | Resolved config paths + `web` URL |
161
-
162
- ### Permission modes
163
-
164
- | Mode | Status | Capabilities |
165
- |------|--------|--------------|
166
- | `read-only` | ✅ | inspect, plan, diff |
167
- | `suggest` | ✅ | + approval gate |
168
- | `edit-with-approval` | ✅ | + gated `/apply` |
169
- | `full-auto` | 🚫 forbidden | Never enabled |
170
-
171
- Legend: ✅ implemented · 🚫 explicitly disabled · ℹ️ informational only
172
-
173
- ## Trust loop
52
+ **Disabled by design** `patze code apply` (use interactive `/apply`), `full-auto` permission mode
174
53
 
175
- ```
176
- prompt → inspect → plan → diff → permissions → approve → apply → verify
177
- ```
54
+ ## Local apply (trust loop)
178
55
 
179
- Example inside `patze`:
56
+ Preview first, then gated write:
180
57
 
181
58
  ```text
182
- /goal Update README quickstart
59
+ /goal <task>
183
60
  /plan
184
61
  /diff
185
- /permissions suggest
186
- /approve
187
62
  /permissions edit-with-approval
63
+ /approve
188
64
  /apply
189
- APPLY artifa…90ab
65
+ APPLY <masked-digest>
190
66
  /verify
191
- /status
192
67
  ```
193
68
 
194
- Docs: [`docs/trust-loop.md`](docs/trust-loop.md) · [`docs/safety-model.md`](docs/safety-model.md)
69
+ No auto-apply. No `--yes`. Verify does not run shell tests.
195
70
 
196
- ## Safety model (summary)
71
+ More: [`docs/trust-loop.md`](docs/trust-loop.md) · [`docs/safety-model.md`](docs/safety-model.md)
197
72
 
198
- - No auto-apply, no `--yes`, no shell execution from verify
199
- - Apply is interactive-only with explicit `APPLY <masked-digest>` confirmation
200
- - All session digests masked; tokens never printed in full
201
- - Verify fail-closed; drift recovery blocks stale approve/apply
202
- - **`full-auto` forbidden permanently**
73
+ ## Limits
203
74
 
204
- Full detail: [`docs/safety-model.md`](docs/safety-model.md)
205
-
206
- ## Development & release verify
207
-
208
- ```bash
209
- cd packages/patze-code-cli
210
- npm run verify # version + pack + typecheck + tests + smoke + PTY suite
211
- npm run verify:all # verify + gated verify:e2e (needs dev API up)
212
- npm run verify:pack # tarball audit (--verbose for JSON summary)
213
- npm run smoke # temp workspace + local npm pack install
214
- ```
215
-
216
- Optional live-agent checks (repo root API + `server/.env`):
217
-
218
- ```bash
219
- npm run verify:e2e # smart-agent smoke when /health is up
220
- npm run e2e:cloud # cloud preview → execute → SSE (GitHub origin required)
221
- npm run e2e:cloud:interactive # /cloud flow inside interactive shell
222
- npm run verify:ci-e2e-cloud # CI gate for cloud execute (skip when API/cloud flag absent)
223
- ```
75
+ Session transcript is in-memory. Cloud execute needs GitHub `origin` + server flag. Not production `latest` yet.
224
76
 
225
- ## Release blockers (before npm `latest` / 1.0)
77
+ Full list: [`docs/known-limitations.md`](docs/known-limitations.md)
226
78
 
227
- - [ ] Public npm publish policy + scoped access review
228
- - [ ] Shell-based verify (npm test/lint) as optional gated capability
229
- - [ ] Server apply receipt correlation (read-only)
230
- - [ ] Cross-restart session persistence decision
231
- - [ ] OAuth polish beyond `login --pair` (token refresh, production redirect UX)
232
- - [ ] Production error telemetry without leaking secrets
233
- - [x] Cloud execute e2e in CI (optional gated job `cloud-e2e-gated`; needs secrets + `FEATURE_PATZE_CODE_CLI_CLOUD_EXECUTE`)
79
+ ## More docs
234
80
 
235
- ## Documentation
81
+ | Topic | Doc |
82
+ |-------|-----|
83
+ | Install & testers | [`docs/install-beta.md`](docs/install-beta.md) |
84
+ | Architecture | [`docs/patze-cli-architecture.md`](docs/patze-cli-architecture.md) |
85
+ | Changelog | [`CHANGELOG.md`](CHANGELOG.md) |
236
86
 
237
- - Architecture: [`docs/patze-cli-architecture.md`](docs/patze-cli-architecture.md)
238
- - Internal beta: [`docs/internal-beta.md`](docs/internal-beta.md)
239
- - Install: [`docs/install-beta.md`](docs/install-beta.md)
240
- - Beta checklist: [`docs/beta-tester-checklist.md`](docs/beta-tester-checklist.md)
241
- - Feedback template: [`docs/beta-feedback-template.md`](docs/beta-feedback-template.md)
242
- - Known limits: [`docs/known-limitations.md`](docs/known-limitations.md)
243
- - Release checklist: [`docs/release-checklist.md`](docs/release-checklist.md)
244
- - Changelog: [`CHANGELOG.md`](CHANGELOG.md)
87
+ Maintainers: [`docs/beta-release-handoff.md`](docs/beta-release-handoff.md) · [`docs/release-checklist.md`](docs/release-checklist.md)
245
88
 
246
89
  ## License
247
90
 
248
- Proprietary — see [`NOTICE.md`](NOTICE.md).
91
+ Proprietary — [`NOTICE.md`](NOTICE.md)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.55.1
1
+ 0.55.3
@@ -95,7 +95,7 @@ npm install -g ./patze-code-cli-<version>.tgz
95
95
  ```bash
96
96
  npm install -g @patze/code-cli@beta
97
97
  # or pinned:
98
- npm install -g @patze/code-cli@0.55.0
98
+ npm install -g @patze/code-cli@0.55.2
99
99
 
100
100
  patze --version
101
101
  patze doctor
@@ -1,11 +1,11 @@
1
1
  # Beta tester checklist
2
2
 
3
- Use this before reporting feedback. Safety posture must match **0.10.1+** — no new mutation shortcuts.
3
+ Use this before reporting feedback. Safety posture matches **0.55.x** — no auto-apply, no `--yes`, no `full-auto`.
4
4
 
5
5
  ## Environment
6
6
 
7
7
  - [ ] Node 20+ (`node --version`)
8
- - [ ] `@patze/code-cli` 0.10.x (`patze --version`)
8
+ - [ ] `@patze/code-cli` 0.55.x (`patze --version`)
9
9
  - [ ] Clean git workspace for apply tests (`git init` in a temp dir is fine)
10
10
  - [ ] `patze doctor` — dist ok, trust loop posture lines present
11
11
 
@@ -1,57 +1,69 @@
1
1
  # Install — internal beta
2
2
 
3
- Audience: Patze team and trusted beta testers. Package: `@patze/code-cli@0.10.x`.
3
+ For Patze team and trusted testers. Current line: **`@patze/code-cli@0.55.x`** (`@beta` on npm).
4
+
5
+ Overview: [README](../README.md) · Limits: [`known-limitations.md`](known-limitations.md)
4
6
 
5
7
  ## Prerequisites
6
8
 
7
- - **Node.js 20+**
8
- - Optional: PatzeAgents API credentials via env (never commit secrets)
9
+ - Node.js **20+**
10
+ - A git workspace (recommended for apply tests)
11
+ - Patze API access for agent tasks (optional for read-only smoke)
9
12
 
10
- ## Option A npm registry (when published)
13
+ ## Install from npm
11
14
 
12
15
  ```bash
13
16
  npm install -g @patze/code-cli@beta
14
- # or pinned:
15
- npm install -g @patze/code-cli@0.10.2
17
+ patze --version
16
18
  ```
17
19
 
18
- ## Option B — local tarball (maintainers / monorepo)
20
+ Pinned example:
21
+
22
+ ```bash
23
+ npm install -g @patze/code-cli@0.55.3
24
+ ```
25
+
26
+ Use `@beta`, not `latest` — `latest` is an older stable tag until 1.0.
27
+
28
+ ## Install from monorepo (maintainers)
19
29
 
20
30
  ```bash
21
31
  cd packages/patze-code-cli
22
32
  ./scripts/install-beta.sh local
23
33
  ```
24
34
 
25
- Manual equivalent:
35
+ Manual:
26
36
 
27
37
  ```bash
28
38
  cd packages/patze-code-cli
29
- npm run build
30
- npm pack
31
- npm install -g ./patze-code-cli-0.10.2.tgz
39
+ npm run build && npm pack
40
+ npm install -g ./patze-code-cli-0.55.3.tgz
32
41
  ```
33
42
 
34
- ## Option C — development link
43
+ Dev link:
35
44
 
36
45
  ```bash
37
46
  cd packages/patze-code-cli
38
- npm run build
39
- npm link
47
+ npm run build && npm link
40
48
  ```
41
49
 
42
- ## Verify install
50
+ ## Sign in
51
+
52
+ Recommended (dashboard device code):
43
53
 
44
54
  ```bash
45
- patze --version # expect @patze/code-cli 0.10.x
46
- patze status # auth may be incomplete (exit 1) — OK for first run
47
- patze doctor # read-only diagnostics, no network
48
- patze doctor --check # optional /health probe (needs auth + api)
49
- patze # interactive shell — trust loop entry
55
+ patze login --pair --api https://api.example.com
50
56
  ```
51
57
 
52
- ## Optional auth (server preview)
58
+ Inside `patze`: `/login`
53
59
 
54
- Use env vars — do not paste tokens into issue reports:
60
+ Manual:
61
+
62
+ ```bash
63
+ patze login <api-url> <token> [user-uuid]
64
+ ```
65
+
66
+ Env (never paste into issues):
55
67
 
56
68
  ```bash
57
69
  export PATZE_CODE_API=https://api.example.com
@@ -60,18 +72,23 @@ export PATZE_CODE_USER_ID=<user-uuid>
60
72
  patze status --check
61
73
  ```
62
74
 
63
- Or one-time local config:
75
+ Optional live models in `/model`: `CURSOR_API_KEY`
76
+
77
+ ## Verify install
64
78
 
65
79
  ```bash
66
- patze login <api-url> <token> <user-uuid>
80
+ patze --version # expect 0.55.x
81
+ patze doctor # read-only; no network required
82
+ patze status # exit 1 without auth is OK on first run
83
+ patze # interactive shell
67
84
  ```
68
85
 
69
- ## Uninstall / reset
86
+ ## Uninstall
70
87
 
71
- See [`uninstall-reset.md`](uninstall-reset.md).
88
+ [`uninstall-reset.md`](uninstall-reset.md)
72
89
 
73
- ## Related
90
+ ## Next steps
74
91
 
75
- - [`beta-tester-checklist.md`](beta-tester-checklist.md)
76
- - [`internal-beta.md`](internal-beta.md)
77
- - [`known-limitations.md`](known-limitations.md)
92
+ - Tester checklist: [`beta-tester-checklist.md`](beta-tester-checklist.md)
93
+ - Feedback template: [`beta-feedback-template.md`](beta-feedback-template.md)
94
+ - Maintainer publish: [`beta-release-handoff.md`](beta-release-handoff.md)
@@ -1,7 +1,7 @@
1
1
  # Known limitations — Patze Code CLI (0.55.x)
2
2
 
3
3
  These are **intentional** for the current slice unless behavior contradicts this list.
4
- Last aligned with **`npm run verify`** (unit + smoke + PTY suite) at **0.55.0**.
4
+ Last aligned with **`npm run verify`** at **0.55.2** (README + install docs).
5
5
 
6
6
  ## Authentication
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patze/code-cli",
3
- "version": "0.55.1",
3
+ "version": "0.55.3",
4
4
  "description": "Patze Code — local terminal coding agent client for PatzeAgents",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",