codechart 1.0.0 → 1.0.2
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/LICENSE +1 -1
- package/README.md +50 -39
- package/config.schema.json +10 -0
- package/dist/cli.js +1054 -4027
- package/dist/server.js +8 -16
- package/package.json +14 -37
- package/skills/codechart/pr-maps.md +1 -1
- package/templates/codechart.yaml +2 -0
- package/CHANGELOG.md +0 -166
package/dist/server.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { homedir } from "os";
|
|
5
5
|
import { join as join5, resolve as resolve2 } from "path";
|
|
6
6
|
|
|
7
|
-
// src/config/repo-root.ts
|
|
7
|
+
// ../core/src/config/repo-root.ts
|
|
8
8
|
import { existsSync } from "fs";
|
|
9
9
|
import { dirname, join, resolve } from "path";
|
|
10
10
|
function findRepoRoot(cwd) {
|
|
@@ -17,26 +17,14 @@ function findRepoRoot(cwd) {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
// src/
|
|
21
|
-
import { lstatSync as lstatSync2, mkdirSync, readdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
|
|
22
|
-
import { join as join3 } from "path";
|
|
23
|
-
|
|
24
|
-
// src/rules/git-files.ts
|
|
20
|
+
// ../core/src/rules/git-files.ts
|
|
25
21
|
import { existsSync as existsSync3, lstatSync } from "fs";
|
|
26
22
|
import { join as join2 } from "path";
|
|
27
23
|
|
|
28
|
-
// src/rules/git-run.ts
|
|
24
|
+
// ../core/src/rules/git-run.ts
|
|
29
25
|
import { execFileSync } from "child_process";
|
|
30
26
|
import { existsSync as existsSync2 } from "fs";
|
|
31
27
|
import { win32 } from "path";
|
|
32
|
-
|
|
33
|
-
// src/render/strip.ts
|
|
34
|
-
var EXTRA = "\\u00ad\\u034f\\u061c\\u115f\\u1160\\u17b4\\u17b5\\u180b-\\u180e\\u3164\\ufe00-\\ufe0e\\uffa0\\ufff9-\\ufffb\\u{e0000}-\\u{e007f}\\u{e0100}-\\u{e01ef}";
|
|
35
|
-
var INVISIBLE = new RegExp(`[\\u200b\\u200c\\u200e\\u200f\\u202a-\\u202e\\u2060-\\u2069\\ufeff${EXTRA}]`, "gu");
|
|
36
|
-
var JSON_ESCAPE = new RegExp(`[\\u007f-\\u009f\\u200b-\\u200f\\u2028\\u2029\\u202a-\\u202e\\u2060-\\u2069\\ufeff${EXTRA}]`, "gu");
|
|
37
|
-
var HIDDEN = new RegExp(`[\\u0000-\\u001f\\u007f-\\u009f\\u200b-\\u200f\\u202a-\\u202e\\u2060-\\u2069\\ufeff${EXTRA}]`, "u");
|
|
38
|
-
|
|
39
|
-
// src/rules/git-run.ts
|
|
40
28
|
function trustedBinary(name, platform = process.platform, env = process.env, exists = existsSync2) {
|
|
41
29
|
if (platform !== "win32") return name;
|
|
42
30
|
for (const raw of (env.PATH ?? env.Path ?? "").split(";")) {
|
|
@@ -104,7 +92,7 @@ function repoConfigKeys(cwd) {
|
|
|
104
92
|
return keys;
|
|
105
93
|
}
|
|
106
94
|
|
|
107
|
-
// src/rules/git-files.ts
|
|
95
|
+
// ../core/src/rules/git-files.ts
|
|
108
96
|
var nulList = (out) => out.split("\0").filter(Boolean);
|
|
109
97
|
var porcelainStatus = (x, y) => {
|
|
110
98
|
if (x === "?") return "A";
|
|
@@ -156,6 +144,10 @@ function gitDiffFiles(cwd, from, to) {
|
|
|
156
144
|
return nulList(git(cwd, ["diff", "--no-renames", "--name-only", "-z", from, to, "--"]));
|
|
157
145
|
}
|
|
158
146
|
|
|
147
|
+
// src/commands/hook-core.ts
|
|
148
|
+
import { lstatSync as lstatSync2, mkdirSync, readdirSync, readFileSync, unlinkSync, writeFileSync } from "fs";
|
|
149
|
+
import { join as join3 } from "path";
|
|
150
|
+
|
|
159
151
|
// src/commands/transcript.ts
|
|
160
152
|
var DIAGRAM = /\*\*(Map|Flow)\*\*/;
|
|
161
153
|
var CODECHART_RUN = /\bcodechart\s+(check|render)\b/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codechart",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Agent skill + CLI: maps and flowcharts of code changes, and of how existing code works, for AI coding agents, in terminal, chat and HTML",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-skills",
|
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
20
|
"license": "MIT",
|
|
21
|
-
"author": "
|
|
21
|
+
"author": "MiscomLab",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/
|
|
24
|
+
"url": "git+https://github.com/MiscomLab/codechart.git",
|
|
25
|
+
"directory": "packages/cli"
|
|
25
26
|
},
|
|
26
27
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/
|
|
28
|
+
"url": "https://github.com/MiscomLab/codechart/issues"
|
|
28
29
|
},
|
|
29
|
-
"homepage": "https://github.com/
|
|
30
|
+
"homepage": "https://github.com/MiscomLab/codechart#readme",
|
|
30
31
|
"publishConfig": {
|
|
31
32
|
"access": "public",
|
|
32
33
|
"provenance": true
|
|
@@ -39,7 +40,8 @@
|
|
|
39
40
|
"skills",
|
|
40
41
|
"templates",
|
|
41
42
|
"config.schema.json",
|
|
42
|
-
"
|
|
43
|
+
"LICENSE",
|
|
44
|
+
"README.md",
|
|
43
45
|
"THIRD_PARTY_NOTICES.md"
|
|
44
46
|
],
|
|
45
47
|
"engines": {
|
|
@@ -47,40 +49,15 @@
|
|
|
47
49
|
},
|
|
48
50
|
"scripts": {
|
|
49
51
|
"build": "tsup",
|
|
50
|
-
"prepack": "npm run build"
|
|
51
|
-
"typecheck": "tsc --noEmit",
|
|
52
|
-
"test": "tsc --noEmit && vitest run",
|
|
53
|
-
"lint": "eslint .",
|
|
54
|
-
"measure": "tsx scripts/measure.ts",
|
|
55
|
-
"bench:tokens": "tsx scripts/token-bench.ts",
|
|
56
|
-
"gen:config-schema": "tsx scripts/gen-config-schema.ts",
|
|
57
|
-
"complexity": "node scripts/complexity.mjs",
|
|
58
|
-
"dup": "jscpd src --threshold 1 && jscpd tests --threshold 3",
|
|
59
|
-
"knip": "knip",
|
|
60
|
-
"gen:client": "tsx scripts/gen-client.ts"
|
|
52
|
+
"prepack": "npm run build && node ../../scripts/pack-readme.mjs"
|
|
61
53
|
},
|
|
62
54
|
"dependencies": {
|
|
63
|
-
"
|
|
55
|
+
"@codechart/core": "0.3.0",
|
|
56
|
+
"commander": "15.1.0",
|
|
64
57
|
"elkjs": "0.12.1",
|
|
65
58
|
"picomatch": "4.0.7",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
59
|
+
"zod": "4.6.7",
|
|
60
|
+
"yaml": "2.9.1"
|
|
68
61
|
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@types/node": "^26.6.5",
|
|
71
|
-
"@types/picomatch": "^4.0.3",
|
|
72
|
-
"eslint": "^10.14.0",
|
|
73
|
-
"fast-check": "4.10.2",
|
|
74
|
-
"happy-dom": "21.0.4",
|
|
75
|
-
"jscpd": "5.4.2",
|
|
76
|
-
"knip": "6.44.1",
|
|
77
|
-
"tsup": "^9.0.0",
|
|
78
|
-
"tsx": "4.23.15",
|
|
79
|
-
"typescript": "^6.0.3",
|
|
80
|
-
"typescript-eslint": "^8.72.1",
|
|
81
|
-
"vitest": "^5.1.0"
|
|
82
|
-
},
|
|
83
|
-
"overrides": {
|
|
84
|
-
"minimatch": "^11.0.1"
|
|
85
|
-
}
|
|
62
|
+
"devDependencies": {}
|
|
86
63
|
}
|
|
@@ -10,4 +10,4 @@ Only when the user asks for it ("set up codechart PR maps", "keep the map in my
|
|
|
10
10
|
4. GitLab: the job needs a masked CI/CD variable `CODECHART_GITLAB_TOKEN`. Give the user the two links the command printed (create an access token with `api` scope, then add it under Settings > CI/CD > Variables). Never ask for the token or set it yourself.
|
|
11
11
|
5. Say what happens next: from then on, PR/MR descriptions you write for a mapped change get the map section (SKILL.md step 4), and CI redraws it on every push.
|
|
12
12
|
|
|
13
|
-
Output `PR maps are already set up`: tell the user, nothing to do. `the setup pull request already exists` (or merge request, or `the codechart/pr-maps branch already exists`): give the user the link; they merge it, or delete that branch for a new one. `can't tell whether … is GitHub or GitLab`: ask which, then add `--host github` or `--host gitlab`. `can't tell which repo`: tell the user the origin URL doesn't name a repo (owner/repo on GitHub, group/project on GitLab) and stop. `… already exists and is not codechart's` or `lists no stage codechart's job can run in`: show the message; the user sets it up by hand: https://github.com/
|
|
13
|
+
Output `PR maps are already set up`: tell the user, nothing to do. `the setup pull request already exists` (or merge request, or `the codechart/pr-maps branch already exists`): give the user the link; they merge it, or delete that branch for a new one. `can't tell whether … is GitHub or GitLab`: ask which, then add `--host github` or `--host gitlab`. `can't tell which repo`: tell the user the origin URL doesn't name a repo (owner/repo on GitHub, group/project on GitLab) and stop. `… already exists and is not codechart's` or `lists no stage codechart's job can run in`: show the message; the user sets it up by hand: https://github.com/MiscomLab/codechart/blob/main/docs/pr-maps.md#by-hand
|
package/templates/codechart.yaml
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
# auto: suggest # suggest | draw | off: offer a release map, draw it, or stay quiet on those branches
|
|
23
23
|
# Global only: release.browser: /path/to/chrome # Chromium-based browser that prints the PDF (default: Chrome, Chromium, Edge or Brave where they are usually installed)
|
|
24
24
|
|
|
25
|
+
# ignore: ["generated/**"] # files the desktop app's live map never reads (the CLI doesn't use it)
|
|
26
|
+
|
|
25
27
|
# useBuiltinRules: true # common migration and model paths, "more than 2 changed files depend on each other", and behaviour-flow
|
|
26
28
|
|
|
27
29
|
# Rules run top-down, before the built-in ones; per diagram type, for each file the first matching path rule wins.
|
package/CHANGELOG.md
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
58
|
-
## 0.9.0 (2026-11-10)
|
|
59
|
-
|
|
60
|
-
### New
|
|
61
|
-
|
|
62
|
-
- Release map: ask your agent for a PDF of what's new in a release, a plain-words section per feature for sales and stakeholders, with only facts checked in the code.
|
|
63
|
-
- The PDF is printed with the Chrome, Chromium, Edge or Brave you already have; without one you get the page to Save as PDF yourself.
|
|
64
|
-
- On a release branch (`v1.2.0`, `release-1.2.0`, `release/1.2`) the agent offers a release map. Set `release.auto: draw` to have it made once per version.
|
|
65
|
-
- Your product name and logo on the cover: `release.product` and `release.logo` in the config.
|
|
66
|
-
- `codechart release-context` lists what was merged since the last `v*` tag, with each PR's text and map, for the agent writing the release map.
|
|
67
|
-
|
|
68
|
-
## 0.8.0 (2026-11-08)
|
|
69
|
-
|
|
70
|
-
### New
|
|
71
|
-
|
|
72
|
-
- Business map: ask your agent for a plain-words page of a change for a product owner with no repo access: journeys today and after, rules before and after, saved data, questions.
|
|
73
|
-
- The owner answers, says Yes or No to the agent's guesses, adds notes and presses *Send back to developer*, even days later; paste the text to your agent.
|
|
74
|
-
- Review on the page: comment on any node, diff line or arrow, ask a question or ask for a deletion. *Finish review* copies your notes; paste them into your agent chat.
|
|
75
|
-
- Review in the terminal: `codechart review` opens the map in your editor as a diff. Write notes under any line, save, and tell your agent "review done".
|
|
76
|
-
- Plan vs built: when the work is done, the summary is compared with the saved plan. What was dropped, added or built differently is marked, each with the agent's reason.
|
|
77
|
-
- `codechart render --tech <spec.json>` names the technical map a business map links to; `codechart schema --business` prints the business map format.
|
|
78
|
-
|
|
79
|
-
### Fixed
|
|
80
|
-
|
|
81
|
-
- Plan vs built no longer compares an old plan with later, unrelated summaries on the same branch.
|
|
82
|
-
|
|
83
|
-
### Changed
|
|
84
|
-
|
|
85
|
-
- README is shorter, with a features table; details moved to pages under [docs](https://github.com/freeleex/codechart/tree/main/docs).
|
|
86
|
-
|
|
87
|
-
## 0.7.0 (2026-11-06)
|
|
88
|
-
|
|
89
|
-
### New
|
|
90
|
-
|
|
91
|
-
- HTML: Focus button (◎, or `f`) zooms in on the node you are reviewing and centres it; that node now has a soft blue glow so you can tell it from its lit neighbours.
|
|
92
|
-
- HTML diffs: long runs of unchanged lines fold into "⋯ N unchanged lines" (click to open), and "⋯ N lines not in the diff" marks code between hunks.
|
|
93
|
-
|
|
94
|
-
### Changed
|
|
95
|
-
|
|
96
|
-
- HTML diffs look like GitHub's: full-row red/green tints, line numbers, a quiet header per hunk. Every hunk starts collapsed.
|
|
97
|
-
- HTML: the Light/Full switch from 0.6.0 is gone; every page shows the full diff.
|
|
98
|
-
- HTML panel: the review tickbox sits left of the node title, the file path shows once, and relations are two columns (← Used by, Uses →).
|
|
99
|
-
- HTML header: the build time reads like `6 Nov 2026, 19:44`.
|
|
100
|
-
|
|
101
|
-
## 0.6.0 (2026-11-06)
|
|
102
|
-
|
|
103
|
-
### New
|
|
104
|
-
|
|
105
|
-
- HTML: Light/Full switch in the header, remembered per browser. Light keeps the short diff preview; Full shows every change of a node so you can review without going back to your IDE.
|
|
106
|
-
- HTML Full: hunks are foldable per file, with a `‹ 4 / 7 ›` stepper, `+ all` / `− all`; keys `n`/`p` hunk, `]`/`[` unreviewed node, `r` reviewed, `o`/`O` fold, `?` help.
|
|
107
|
-
- HTML: review ticks, the `Reviewed` box and the `x/y reviewed` bar now live in Full mode.
|
|
108
|
-
|
|
109
|
-
### Changed
|
|
110
|
-
|
|
111
|
-
- Lockfiles, minified bundles, `dist/` and files marked `linguist-generated` show "generated file, not shown" instead of their diff. Full mode shows up to 1000 lines per file.
|
|
112
|
-
- HTML diffs: the `+`/`−` sign has its own column and long lines wrap under the code, keeping their indent.
|
|
113
|
-
|
|
114
|
-
## 0.5.0 (2026-11-05)
|
|
115
|
-
|
|
116
|
-
### New
|
|
117
|
-
|
|
118
|
-
- `codechart doctor` checks your setup for each agent (skill, reminder line, Stop hook, OpenCode plugin, CLI version); `--fix` repairs what's broken, `--last` explains why the last turn got no diagram.
|
|
119
|
-
- OpenCode plugin: OpenCode 2 now gets the same "3+ files changed and no map" nudge as Claude Code. `install-skill` adds it, `--no-plugin` skips it.
|
|
120
|
-
- HTML: selecting a node lights up its neighbours and dims the rest; the side panel lists its relations, each one a link.
|
|
121
|
-
- HTML: status chips under the header are the legend and a filter; click one to fade that status, `Δ changes only` fades unchanged nodes.
|
|
122
|
-
- HTML: tick nodes as reviewed, with an `x/y reviewed` count and `Next ▸`; ticks are kept per browser and reset when a node's diff changes.
|
|
123
|
-
|
|
124
|
-
## 0.4.0 (2026-11-05)
|
|
125
|
-
|
|
126
|
-
### New
|
|
127
|
-
|
|
128
|
-
- Maps in pull and merge requests: the map and its check overview in the description, re-rendered by CI on every push (GitHub and GitLab); set up with `setup-pr-maps`, see [PR maps](https://github.com/freeleex/codechart/blob/main/docs/pr-maps.md).
|
|
129
|
-
- `codechart update` installs the newest version and refreshes your skill copies and reminder lines; a once-a-day notice says when there is one (off with `updateCheck: false`).
|
|
130
|
-
- Summary maps flag changed files that no node covers, and say when the diff wasn't checked.
|
|
131
|
-
- HTML: browser Back/Forward and ← → buttons walk the nodes you opened; `#node=<id>` links open a node.
|
|
132
|
-
- Terminal map: status marker in a gutter (`+ invoices`), one block per node, and `--md` uses a `diff` fence so agents' chats colour new and removed lines.
|
|
133
|
-
- `install-skill` adds the reminder line and Claude Code hook by default (`--no-reminder`, `--no-hook` to skip) and updates older codechart skill copies in place.
|
|
134
|
-
|
|
135
|
-
### Fixed
|
|
136
|
-
|
|
137
|
-
- File and class nodes no longer look the same: map cards show the kind and a shape per kind.
|
|
138
|
-
- Labels that read as code (`_l([...])`) fail validation with a request to use plain words.
|
|
139
|
-
- Each check mismatch now says in plain words what it means.
|
|
140
|
-
|
|
141
|
-
## 0.3.1 (2026-11-03)
|
|
142
|
-
|
|
143
|
-
Not published to npm; these changes shipped in 0.4.0.
|
|
144
|
-
|
|
145
|
-
### Changed
|
|
146
|
-
|
|
147
|
-
- Security review fixes; see [security review](https://github.com/freeleex/codechart/blob/main/docs/security-review.md).
|
|
148
|
-
- Faster previews on big diffs (100 files: 1.8 s → 0.1 s) and shorter agent output (one error per missing file).
|
|
149
|
-
|
|
150
|
-
## 0.3.0 (2026-11-03)
|
|
151
|
-
|
|
152
|
-
### New
|
|
153
|
-
|
|
154
|
-
- Infrastructure maps: Terraform, OpenTofu, Terragrunt, Helm, Kustomize and Kubernetes changes get a map through the built-in `infrastructure` path rule.
|
|
155
|
-
- Now/After pages show two panes only when they differ, with a `Panes: linked/separate` toggle.
|
|
156
|
-
- Listed on skills.sh; the skill says to run `npm i -g codechart` when the CLI is missing.
|
|
157
|
-
|
|
158
|
-
## 0.2.0 (2026-11-03)
|
|
159
|
-
|
|
160
|
-
### New
|
|
161
|
-
|
|
162
|
-
- Map nodes are checked against the code (file exists, quoted line matches, in the diff for summaries); output leads with the check result.
|
|
163
|
-
- Plans that change existing code render Now and After side by side, for maps and flows.
|
|
164
|
-
- Node panel shows the file's diff; the panel is wider, resizable and wraps code.
|
|
165
|
-
- Each map picks top-down or left-to-right layout, whichever fits.
|
|
166
|
-
- Opt-in reminder line and Claude Code Stop hook (`install-skill --hook`).
|