phonton-cli 0.12.6 → 0.13.1

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.
Files changed (2) hide show
  1. package/README.md +14 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <img src="assets/readme/phonton-cli-logo.png" width="112" alt="Phonton CLI logo">
3
3
  </p>
4
4
 
5
- <h1 align="center">Phonton CLI · v0.12.6</h1>
5
+ <h1 align="center">Phonton CLI · v0.13.1</h1>
6
6
 
7
7
  <p align="center">
8
8
  <strong>Verified code changes with repo memory.</strong><br>
@@ -12,7 +12,7 @@
12
12
  <p align="center">
13
13
  <a href="https://github.com/phonton-dev/phonton-cli/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/phonton-dev/phonton-cli/actions/workflows/ci.yml/badge.svg"></a>
14
14
  <a href="https://github.com/phonton-dev/phonton-cli/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/phonton-dev/phonton-cli?style=flat&label=stars"></a>
15
- <img alt="release" src="https://img.shields.io/badge/release-v0.12.6-6c63ff">
15
+ <img alt="release" src="https://img.shields.io/badge/release-v0.13.1-6c63ff">
16
16
  <img alt="license" src="https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue">
17
17
  <img alt="status" src="https://img.shields.io/badge/status-public_alpha-f97316">
18
18
  </p>
@@ -69,12 +69,14 @@ It walks through the evidence trail a real run should expose: GoalContract, plan
69
69
  ## What Works Today
70
70
 
71
71
  - Interactive Ratatui TUI with goal, task, ask, settings, git, and flight-log surfaces.
72
- - Unified slash commands in the TUI: `/settings`, `/config`, `/status`, `/context`, `/compact`, `/compress`, `/problems`, `/diagnostics`, `/retry`, `/repair`, `/why-tokens`, `/ask`, `/goals`, `/switch`, `/focus`, `/copy`, `/rerun`, `/stats`, `/stop`, `/review`, `/memory`, `/permissions`, `/trust`, `/model`, `/commands`, `/run`, and `!` all route through the same command registry and prompt drawer.
72
+ - Unified slash commands in the TUI: `/settings`, `/config`, `/status`, `/context`, `/compact`, `/compress`, `/problems`, `/diagnostics`, `/retry`, `/repair`, `/why-tokens`, `/ask`, `/goals`, `/switch`, `/focus`, `/diff`, `/code`, `/copy`, `/rerun`, `/stats`, `/stop`, `/review`, `/memory`, `/permissions`, `/trust`, `/model`, `/commands`, `/run`, and `!` all route through the same command registry and prompt drawer.
73
73
  - Static syntax verification now covers Rust, Python, JavaScript, TypeScript, JSON, TOML, YAML, HTML, and CSS changed files before review-ready status. Generated code that cannot parse stays failed/unverified instead of becoming a receipt.
74
74
  - Failed goals default to a Problems focus view with grouped verifier/provider/quality diagnostics, compact repair hints, and `p` / `r` keyboard shortcuts for inspection and repair.
75
75
  - `/why-tokens` and `phonton why-tokens --by-source` explain the latest prompt manifest in plain language, including first-attempt, repair-attempt, context/artifact, system, goal, memory, attachment, repo-code, MCP/tool, retry, compaction, dedupe, and cached-token buckets.
76
76
  - v0.11 context planning builds a compact repo map, selects only the highest-value code slices under a target budget, exposes omitted code tokens, and labels target-exceeded prompts honestly when one required slice must go over budget.
77
77
  - v0.12 enforces lower spend before the provider call: generated app/game goals dispatch as acceptance-slice subtasks, simple/docs/test prompts use small task-class budgets, generated repairs use a sub-1k context target, semantic retrieval top-k and repo maps shrink by task class, MCP result context is capped, and provider output ceilings are lower.
78
+ - v0.13.1 hardens generated web-app token behavior: Vite/React chess prompts stay on compact acceptance slices even in partial workspaces, and first-attempt TSX/HTML syntax failures stop before automatic repair.
79
+ - v0.13.0 makes Ask workspace-aware under a bounded context budget, freezes the compact TUI header after goals exist, and carries forward verified diff export: `phonton diff`, `--stat`, `--name-only`, `/diff`, `/code`, and `d`.
78
80
  - v0.12.6 hardens provider contracts further: DeepSeek V4/reasoner routes disable provider thinking for diff-only worker calls, stale v0.12.5 canary cache entries are invalidated, reasoning-only replies fail clearly, and provider tests time out quickly instead of hanging.
79
81
  - v0.12.5 blocks bad provider/model routes before goal dispatch: provider readiness now uses a parseable unified-diff canary, empty OpenAI-compatible responses fail immediately, OpenCode/OpenCode Go routes work through `OPENCODE_API_KEY`, and `phonton providers` can list/sync the Models.dev catalog.
80
82
  - v0.12.4 cuts wasted repair tokens in generated-app failures: workers stop after repeated verifier/parser diagnostics, redispatch prompts start with prior verifier evidence, stale hunk repairs get explicit guidance, and the Flight Log shows compact `repair` events before bounded retries.
@@ -82,9 +84,9 @@ It walks through the evidence trail a real run should expose: GoalContract, plan
82
84
  - v0.12.2 fixes early generated Vite/React chess slices so Vitest does not fail before test files exist: scaffold slices now request a starter rules module and smoke test, and npm verification waits to run Vitest/Jest discovery scripts until a test file exists.
83
85
  - v0.12.1 fixes the playable chess benchmark path: explicit Vite/TypeScript/React prompts now scaffold an npm app contract, use chess.js-backed rules/test slices, carry current artifact snapshots between slices, use compact slice labels instead of repeating the full pasted prompt, and run npm install/test/build verification before review-ready status.
84
86
  - `phonton proof export --latest --format json` exports the latest proof bundle from the OutcomeLedger, and `phonton context eval|diff` evaluates deterministic context-selection fixtures before benchmark runs.
85
- - Ask mode supports `/ask <question>`, scrollable answers, and lightweight markdown-style rendering without mixing Ask into goal memory.
87
+ - Ask mode supports `/ask <question>`, scrollable answers, lightweight markdown-style rendering, and bounded read-only workspace context with visible `ctx:` token/file summaries. `phonton ask --no-workspace` keeps the old stateless behavior.
86
88
  - Faster multi-goal navigation: the sidebar shows stable goal indexes, `Alt+Up` / `Alt+Down` switches goals even while drafting text, `Alt+1` through `Alt+9` jumps directly, and `/goals` opens a searchable switcher.
87
- - Review-ready goals now default to a Code focus view when diff hunks are available, with Receipt, Problems, Code, Commands, and Log tabs in the Active panel plus `p` / `r` / `f` / `[` / `]` keyboard navigation.
89
+ - Review-ready goals now default to a Code focus view when diff hunks are available, with Receipt, Problems, Code, Commands, and Log tabs in the Active panel plus `p` / `r` / `f` / `d` / `[` / `]` keyboard navigation.
88
90
  - Command run receipts stay collapsed by default; the Commands focus view shows status, exit code, duration, and short stdout/stderr previews. `/rerun` repeats the latest command through the same sandbox path and `/copy` copies the current focus view to the Windows clipboard.
89
91
  - Saved workspace sessions: use `phonton -r` or `phonton --resume` to reopen the last saved TUI conversation for the current repo.
90
92
  - Prompt bar paste artifacts: long or multiline pasted text collapses into a compact colored chip while the full content stays attached to the submitted goal; credential-looking pasted blocks are blocked before they can reach the model.
@@ -97,7 +99,7 @@ It walks through the evidence trail a real run should expose: GoalContract, plan
97
99
  - Sandboxed command runs from the prompt bar with `/run <cmd>` or `!<cmd>`, plus command status, output previews, context meters, and permission mode controls in the TUI and Flight Log.
98
100
  - `phonton doctor` setup diagnostics for config, provider key, store, trust, git, cargo, and Nexus config.
99
101
  - `phonton plan` preview for task DAGs and the visible GoalContract before edits happen.
100
- - `phonton review` surfaces for verified diff review payloads, approvals, rejections, rollback, and Markdown receipt export. Failed runs can still export a failed/unverified Markdown receipt with diagnostics.
102
+ - `phonton review` surfaces for verified diff review payloads, approvals, rejections, rollback, and Markdown receipt export. `phonton diff` exports the verified unified diff or compact file/stat views without opening the TUI. Failed runs can still export a failed/unverified Markdown receipt with diagnostics.
101
103
  - `phonton run latest` executes the latest receipt-suggested run command through the sandbox.
102
104
  - TUI goal prompts can mention workspace files and images with `@path`; text files become bounded context and image metadata/payloads flow to compatible providers.
103
105
  - Review-ready runs now show a handoff receipt in the TUI and persist a minimal outcome ledger for history/review evidence.
@@ -149,7 +151,7 @@ Windows PowerShell:
149
151
  Direct Cargo install:
150
152
 
151
153
  ```bash
152
- cargo install --git https://github.com/phonton-dev/phonton-cli --tag v0.12.6 phonton-cli --locked --force
154
+ cargo install --git https://github.com/phonton-dev/phonton-cli --tag v0.13.1 phonton-cli --locked --force
153
155
  ```
154
156
 
155
157
  Check the install:
@@ -165,7 +167,7 @@ Phonton uses GitHub branches and releases as install channels:
165
167
 
166
168
  | Channel | Install | Use when |
167
169
  |---|---|---|
168
- | Stable | `cargo install --git https://github.com/phonton-dev/phonton-cli --tag v0.12.6 phonton-cli --locked --force` | You want the best validated public alpha |
170
+ | Stable | `cargo install --git https://github.com/phonton-dev/phonton-cli --tag v0.13.1 phonton-cli --locked --force` | You want the best validated public alpha |
169
171
  | Dev | `cargo install --git https://github.com/phonton-dev/phonton-cli --branch dev phonton-cli --locked --force` | You want next-release integration changes |
170
172
  | Nightly | `cargo install --git https://github.com/phonton-dev/phonton-cli --branch nightly phonton-cli --locked --force` | You want daily snapshots and can tolerate breakage |
171
173
  | Main | `cargo install --git https://github.com/phonton-dev/phonton-cli --branch main phonton-cli --locked --force` | You want the current release branch tip |
@@ -248,11 +250,12 @@ phonton doctor --provider
248
250
  phonton Launch the interactive TUI
249
251
  phonton -r Resume the saved TUI session for this workspace
250
252
  phonton init Create ~/.phonton/config.toml if it is missing
251
- phonton ask <question> One-shot Q&A using the configured provider
253
+ phonton ask [flags] <q> Workspace-aware Q&A using the configured provider
252
254
  phonton demo trust-loop Print the evidence-trail demo loop
253
255
  phonton doctor Check config, store, trust, git, cargo, and Nexus
254
256
  phonton plan <goal> Preview the task DAG and GoalContract without changing files
255
257
  phonton review Show verified diff review payloads
258
+ phonton diff Print verified unified diffs from review-ready tasks
256
259
  phonton run latest Run the latest receipt-suggested command
257
260
  phonton memory list Inspect local decision memory
258
261
  phonton extensions list Inspect skills, steering, MCP servers, and profiles
@@ -268,7 +271,8 @@ Inside the TUI prompt bar:
268
271
  /settings, /config Open provider/model/budget settings
269
272
  /status Show version, provider, model, workspace, and token state
270
273
  /review Show review receipt guidance for the selected goal
271
- /ask <question> Ask a stateless question without queueing a goal
274
+ /ask <question> Ask a bounded workspace question without queueing a goal
275
+ /diff, /code, d Jump to verified Code/Diff focus
272
276
  /memory Inspect local decision memory
273
277
  /permissions Show sandbox, trust, and approval status
274
278
  /trust Show or revoke workspace trust records
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonton-cli",
3
- "version": "0.12.6",
3
+ "version": "0.13.1",
4
4
  "description": "Local-first agentic development terminal with context packs, source handles, and verification gates.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "homepage": "https://github.com/phonton-dev/phonton-cli#readme",