codechart 0.9.0 → 1.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,59 @@
2
2
 
3
3
  What's new in each codechart release. Update with `codechart update`; the [releases page](https://github.com/freeleex/codechart/releases) has the same notes.
4
4
 
5
+ ## 1.0.0 (2026-11-14)
6
+
7
+ 1.0: stable. Change maps, flows, explain maps, business pages, release maps and PR maps, all checked against your code.
8
+
9
+ ### New
10
+
11
+ - Explain map: ask your agent how an existing area works ("explain how billing works", "onboard me on checkout") and get a map of the code as it is, each box checked against your code.
12
+ - Explain maps have a *Flows* tab: up to five main behaviours of the area, step by step, each step on its line of code and linked to the box it happens in.
13
+ - *Side by side* on an explain map puts the components next to a flow: click a step and its box lights up, click a box and its steps light up. See [Explain map](https://github.com/freeleex/codechart/blob/main/docs/explain-map.md).
14
+ - Business page of how something works today, for a product owner, QA or support: who does what, every yes and no branch, rules, odd cases and saved data. Built from the area's explain map; read-only.
15
+ - Each kind of map box has its own outline and icon: an endpoint is a pill (⇄), a table has column ticks (▤), config is a tag (⚑), a file has a folded corner (≡). Colour still means only the status.
16
+ - Every map box and explain node has a short summary of what it does, at the top of its panel and inside the box.
17
+ - A *Not on map* entry that names paths and says why they are left out is drawn as a dashed *omitted* box in its area; its panel lists the changed files it covers.
18
+
19
+ ### Changed
20
+
21
+ - For a repo host other than github.com or gitlab.com, `gh` and `glab` get no token variables (`GH_TOKEN`, `GITLAB_TOKEN`…): log in once with `gh auth login --hostname` or `glab auth login --hostname`.
22
+ - Usage errors exit with code 2, other failures with 1: a bad flag value (unknown commit or agent), a flag on the wrong kind of map (`--git` on an explain map, `--pr` on a business map).
23
+ - Conflicting flags are refused with exit 2: `doctor --fix --last`, `update --check --skills-only`, `comment --side` without a line, `feedback --import --copy` without `--take`.
24
+ - `install-skill` outside a terminal without `--agent` installs only the skill and prints the flags that add the reminder line, Claude Code hook and OpenCode plugin; it used to add them all.
25
+ - `setup-pr-maps --pr` asks before it goes online or runs your git transport config. The GitHub workflow it writes pins `actions/checkout` and `actions/setup-node` to exact commits.
26
+ - The map check compares each new, changed and removed box with git's added, modified, deleted or renamed status, and warns, without failing, when a listed field or arrow isn't in the code.
27
+ - The check line in the terminal, the page header and PR or MR descriptions says how many boxes could not be checked: `✓ 10 nodes checked against the code · 2 not checkable`.
28
+ - Release maps say *Before* and *Now* with *New* and *Changed* badges; a feature of up to three cards moves to the next page whole; file names start with the version, like `v2-0-0--<title>`.
29
+
30
+ ### Fixed
31
+
32
+ - On Windows, the `gh`, `glab`, `powershell` and `opencode` commands codechart runs are looked up on PATH first, so a file inside your repo can't stand in for one of them.
33
+ - `setup-pr-maps` won't write through a symlinked `.github` or `.github/workflows` or use a remote URL with escape characters; it and `doctor --last` strip control characters from repo text.
34
+ - Flow steps and map boxes that point at a secret-looking file (like `.env`) show "not shown: looks like a secret" instead of the line.
35
+ - The map section in a PR or MR description handles file names with blank lines or escape characters safely.
36
+ - `--md` output for business and release maps keeps the page title inside the code block, so image Markdown or HTML in a title no longer shows up in chat.
37
+ - A note of several lines keeps all of them after `codechart review`; a later line that looked like a diff row could move the note to another line.
38
+ - Saving a map no longer loses a note added with `codechart comment` at the same moment.
39
+ - Two hook runs at the same moment no longer lose a turn's snapshot, and the hook no longer hangs when the transcript path is a pipe.
40
+ - Importing page notes: a note on an item with a colon in its text keeps its own words, a line starting with `>` keeps its `>`, and a note on a long flow gap no longer marks the review damaged.
41
+ - The map check no longer warns about Terraform nested blocks, references like `module.vpc` or `var.x`, Go packages, `index` files or two boxes in one file, and accepts the other box's name.
42
+ - Plan vs built no longer says "built in another file" when only the path is spelled differently (`src\db.ts`, `./src/db.ts`, or relative to where you ran it).
43
+ - The "did you mean" hint for a flow step's missing file also offers files not yet added to git, and works for an anchor written Windows-style (`src\b.py:2`).
44
+ - The page's check line keeps each claim's colour: a green ✓ next to a red ✗, amber warnings, a muted `diff not checked`. A box whose path is outside the repo is labelled "outside the repo".
45
+ - `--git` sees renames even when your git config turns rename detection off.
46
+ - A path rule's `context: short` wins over `defaults.context: full` when it is the only rule that fired.
47
+ - `render --tech` no longer accepts an explain map for a business page of a change; it says a change map is needed.
48
+ - The map image in a PR or MR description no longer shows the page's review tick boxes.
49
+ - `setup-pr-maps --pr` run again before the setup request is merged links that request; on GitLab, a `stages:` list without `test` puts the job in your first stage, so the file stays valid.
50
+ - `release-context` keeps the PR text it read when a `(#N)` isn't a PR; after a timeout it stops and says which PRs were not read. On Windows a missing `gh` or `glab` is reported as not installed.
51
+ - `release-context` with no tag before the release commit lists every commit, for a first release. Tags not starting with `v` or a shallow clone get a message saying what to do.
52
+ - Clearer errors: a damaged review file says what to do; an unwritable output folder names the setting; `install-skill --dir` says why it can't create the folder; a failed push or fetch gives git's reason.
53
+ - Clearer input errors: a missing spec file says "no such file", an empty stdin says to pipe the spec in, `check --since`/`--head` say "is not a commit", a missing `release.browser` path is named.
54
+ - `feedback --import` reads the clipboard when stdin is an empty file or `/dev/null`, instead of failing with "No codechart review found".
55
+ - `uninstall` also removes copies installed with `install-skill --dir`; with `XDG_CONFIG_HOME` set, OpenCode's skill, reminder line and plugin stay together under `$XDG_CONFIG_HOME/opencode`.
56
+ - A stalled network connection no longer keeps codechart running for 10 seconds or more after the update check times out.
57
+
5
58
  ## 0.9.0 (2026-11-10)
6
59
 
7
60
  ### New
@@ -87,6 +140,8 @@ What's new in each codechart release. Update with `codechart update`; the [relea
87
140
 
88
141
  ## 0.3.1 (2026-11-03)
89
142
 
143
+ Not published to npm; these changes shipped in 0.4.0.
144
+
90
145
  ### Changed
91
146
 
92
147
  - Security review fixes; see [security review](https://github.com/freeleex/codechart/blob/main/docs/security-review.md).
package/README.md CHANGED
@@ -52,18 +52,19 @@ backend
52
52
  ~ model PaymentMethod ─mirrors─▶ enum payment_method
53
53
 
54
54
  config
55
- + migration: backfill invoi… ─backfills─▶ invoices
56
- ◆ INVOICE_PREFIX ─read by─▶ migration: backfill invoices for paid orders
55
+ + migration: backfill invoi… ─reads─────▶ INVOICE_PREFIX
56
+ ─backfills─▶ invoices
57
+ ◆ INVOICE_PREFIX
57
58
  ◆ feature flag refundsEnabl… ─gates─▶ endpoint POST /orders/{id}/refund
58
59
 
59
- 12 nodes · 4 new · 5 changed · 2 config · ✓ 10 checked
60
+ 12 nodes · 4 new · 5 changed · 2 config · ✓ 10 checked · 2 not checkable
60
61
  gaps: customers: columns besides id not read
61
62
  not on map: tests: test_invoice_backfill.py · docs: CHANGELOG.md, .env.example
62
63
  ```
63
64
 
64
65
  Open full map
65
66
 
66
- New things are `+`, changed ones `~`, removed ones `-`, config `◆`; anything unmarked already existed. The block is a `diff` fence, so Claude Code, OpenCode, Codex, Gemini CLI, Cursor and GitHub colour the new and removed lines on their own. Layers are grouped, every relation is drawn, and `✓ 10 checked` means each claim on the map was verified against your files and the git diff. It takes ten seconds to read, and `gaps` tells you what the agent *didn't* look at.
67
+ New things are `+`, changed ones `~`, removed ones `-`, config `◆`; anything unmarked already existed. The block is a `diff` fence, so Claude Code, OpenCode, Codex, Gemini CLI, Cursor and GitHub colour the new and removed lines on their own. Layers are grouped, every relation is drawn, and `✓ 10 checked` counts the claims checked against your files and the git diff; boxes without a file (the two enums here) are counted separately as *not checkable*. It takes ten seconds to read, and `gaps` tells you what the agent *didn't* look at.
67
68
 
68
69
  **Open full map** opens an interactive page. Click any node for its summary, file, fields — and in a change summary, its diff, read straight from git:
69
70
 
@@ -77,6 +78,8 @@ You don't need to ask for any of this. The skill fires when the agent summarizes
77
78
  npm i -g codechart && codechart install-skill
78
79
  ```
79
80
 
81
+ Install may edit global files (`~/.claude/CLAUDE.md`, your agents' `AGENTS.md`/`GEMINI.md`, `~/.claude/settings.json`) when you accept its extras; [Install and agents](docs/install.md) says what each adds.
82
+
80
83
  That's it. Open your coding agent in any repo and try:
81
84
 
82
85
  ```text
@@ -177,9 +180,21 @@ More: [Maps in pull requests](docs/pr-maps.md)
177
180
  <tr>
178
181
  <td width="46%" valign="middle">
179
182
 
183
+ ### Explain map
184
+
185
+ On request, a map of how an existing area works, for someone new to the project: one box per table, service or endpoint, what each is for, and the neighbours it talks to. A Flows tab walks through its main behaviours step by step, each step linked to its box and to the line of code. Nothing changed, so no diff.
186
+
187
+ More: [Explain map](docs/explain-map.md)
188
+
189
+ </td>
190
+ <td width="54%" valign="middle"><img src="docs/images/explain-map.png" alt="Explain map of refunds and invoices: boxes for the refund endpoint, flags, orders, invoices and payment methods in the area, and dashed faded boxes for the customer model and PayPal it talks to"></td>
191
+ </tr>
192
+ <tr>
193
+ <td width="46%" valign="middle">
194
+
180
195
  ### Business map
181
196
 
182
- On request, a plain-words page for a product owner with no repo access: journeys, rules, saved data and questions. They answer, confirm and send it back.
197
+ On request, a plain-words page for a product owner with no repo access: journeys, rules, saved data and questions. They answer, confirm and send it back. It can also explain how an area works today, for a product owner, QA or support: one lane diagram of who does what, plus rules and odd cases (read-only).
183
198
 
184
199
  More: [Business map](docs/business-map.md)
185
200
 
@@ -211,7 +226,7 @@ When the agent summarizes a change, writes a plan or explains how code behaves:
211
226
  ## Why you can trust the diagram
212
227
 
213
228
  - **The agent writes data, codechart draws.** Layout is code, not hand-drawn ASCII.
214
- - **Claims are checked** against your files and the git diff: `✓ 10 checked`, or a `✗` that says what doesn't match.
229
+ - **Claims are checked** against your files and the git diff: each file exists, a quoted line is in it, and a new, changed or removed box matches git's added, modified, deleted or renamed status. A listed field or an arrow the code doesn't mention is a softer warning. Not checked: whether a label, summary or note is true, and boxes without a file (they show as *not checkable*). A `✓ 10 checked` or a `✗` says what matched or didn't.
215
230
  - **Nothing left off quietly:** every changed file is on the map or listed as left out.
216
231
  - **Flows are tied to real lines,** and whatever the agent didn't read is listed under `gaps`.
217
232
 
@@ -219,11 +234,11 @@ More: [Why you can trust the diagram](docs/trust.md).
219
234
 
220
235
  ## Cost
221
236
 
222
- A diagram is about **2–3 extra API calls**, roughly 2–3% of a long session's usage, and nothing for trivial changes. The CLI is a 170.0 kB package. Measured runs: [Efficiency](docs/efficiency.md).
237
+ A diagram is about **2–3 extra API calls**, roughly 2–3% of a long session's usage, and nothing for trivial changes. That figure was measured on 2026-10-28 with a skill of 7.1k chars; the skill is now 17.0k chars (about 4.2k tokens), so a diagram costs more than that, and the benchmark has not been re-run. The CLI is a 208.4 kB package. Measured runs: [Efficiency](docs/efficiency.md).
223
238
 
224
239
  ## Safe to run
225
240
 
226
- - No telemetry, no shell, read-only `git`. Pages load nothing external and are saved to `~/.cache/codechart`, never to your repo. The only network calls: a daily version check, plus that version's changelog from GitHub when there's a newer one ([off with one setting](docs/install.md#updating)), and opt-in [PR maps](docs/pr-maps.md).
241
+ - No telemetry, no shell except two fixed cases: `npm` on Windows during `codechart update`, and the editor you choose with `$VISUAL` or `$EDITOR` for `codechart review`. `git` is read-only, except the push of `setup-pr-maps --pr` and the [PR map](docs/pr-maps.md) CI job. Pages load nothing external and are saved to `~/.cache/codechart`, never to your repo. The only network calls: a daily version check, plus that version's changelog from GitHub when there's a newer one ([off with one setting](docs/install.md#updating)); `codechart update`; `release-context`, through your own `gh` or `glab`; and opt-in [PR maps](docs/pr-maps.md).
227
242
  - Audited before release across 8 areas, including untrusted repos and prompt-injected specs: [SECURITY.md](SECURITY.md) and [docs/security-review.md](docs/security-review.md).
228
243
 
229
244
  ## Configure
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- ## elkjs 0.12.0
3
+ ## elkjs 0.12.1
4
4
 
5
5
  Eclipse Layout Kernel compiled to JavaScript. A runtime dependency installed from npm; codechart runs it in Node to lay out HTML maps. None of its code is copied into codechart or the generated HTML.
6
6