codechart 1.0.0 → 1.0.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.
- package/CHANGELOG.md +11 -5
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/cli.js +4 -4
- package/package.json +8 -8
- package/skills/codechart/pr-maps.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
What's new in each codechart release. Update with `codechart update`; the [releases page](https://github.com/
|
|
3
|
+
What's new in each codechart release. Update with `codechart update`; the [releases page](https://github.com/MiscomLab/codechart/releases) has the same notes.
|
|
4
|
+
|
|
5
|
+
## 1.0.1 (2026-11-19)
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- codechart moved to [github.com/MiscomLab/codechart](https://github.com/MiscomLab/codechart). Old links redirect. With the skills CLI, use `npx skills add MiscomLab/codechart`.
|
|
4
10
|
|
|
5
11
|
## 1.0.0 (2026-11-14)
|
|
6
12
|
|
|
@@ -10,7 +16,7 @@ What's new in each codechart release. Update with `codechart update`; the [relea
|
|
|
10
16
|
|
|
11
17
|
- 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
18
|
- 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/
|
|
19
|
+
- *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/MiscomLab/codechart/blob/main/docs/explain-map.md).
|
|
14
20
|
- 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
21
|
- 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
22
|
- Every map box and explain node has a short summary of what it does, at the top of its panel and inside the box.
|
|
@@ -82,7 +88,7 @@ What's new in each codechart release. Update with `codechart update`; the [relea
|
|
|
82
88
|
|
|
83
89
|
### Changed
|
|
84
90
|
|
|
85
|
-
- README is shorter, with a features table; details moved to pages under [docs](https://github.com/
|
|
91
|
+
- README is shorter, with a features table; details moved to pages under [docs](https://github.com/MiscomLab/codechart/tree/main/docs).
|
|
86
92
|
|
|
87
93
|
## 0.7.0 (2026-11-06)
|
|
88
94
|
|
|
@@ -125,7 +131,7 @@ What's new in each codechart release. Update with `codechart update`; the [relea
|
|
|
125
131
|
|
|
126
132
|
### New
|
|
127
133
|
|
|
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/
|
|
134
|
+
- 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/MiscomLab/codechart/blob/main/docs/pr-maps.md).
|
|
129
135
|
- `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
136
|
- Summary maps flag changed files that no node covers, and say when the diff wasn't checked.
|
|
131
137
|
- HTML: browser Back/Forward and ← → buttons walk the nodes you opened; `#node=<id>` links open a node.
|
|
@@ -144,7 +150,7 @@ Not published to npm; these changes shipped in 0.4.0.
|
|
|
144
150
|
|
|
145
151
|
### Changed
|
|
146
152
|
|
|
147
|
-
- Security review fixes; see [security review](https://github.com/
|
|
153
|
+
- Security review fixes; see [security review](https://github.com/MiscomLab/codechart/blob/main/docs/security-review.md).
|
|
148
154
|
- Faster previews on big diffs (100 files: 1.8 s → 0.1 s) and shorter agent output (one error per missing file).
|
|
149
155
|
|
|
150
156
|
## 0.3.0 (2026-11-03)
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
9
|
<a href="https://www.npmjs.com/package/codechart"><img alt="npm" src="https://img.shields.io/npm/v/codechart"></a>
|
|
10
|
-
<a href="https://github.com/
|
|
11
|
-
<a href="https://skills.sh/
|
|
10
|
+
<a href="https://github.com/MiscomLab/codechart/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/MiscomLab/codechart/actions/workflows/ci.yml/badge.svg"></a>
|
|
11
|
+
<a href="https://skills.sh/MiscomLab/codechart"><img alt="skills.sh" src="https://skills.sh/b/MiscomLab/codechart"></a>
|
|
12
12
|
<img alt="Node 22.12+" src="https://img.shields.io/badge/node-%3E%3D22.12-339933">
|
|
13
13
|
<a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
|
|
14
14
|
</p>
|
|
@@ -234,7 +234,7 @@ More: [Why you can trust the diagram](docs/trust.md).
|
|
|
234
234
|
|
|
235
235
|
## Cost
|
|
236
236
|
|
|
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.
|
|
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.5 kB package. Measured runs: [Efficiency](docs/efficiency.md).
|
|
238
238
|
|
|
239
239
|
## Safe to run
|
|
240
240
|
|
package/dist/cli.js
CHANGED
|
@@ -1642,8 +1642,8 @@ async function writeHtml(build2, o) {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
|
|
1644
1644
|
// src/update/changelog.ts
|
|
1645
|
-
var NOTES_URL = "https://github.com/
|
|
1646
|
-
var RAW = "https://raw.githubusercontent.com/
|
|
1645
|
+
var NOTES_URL = "https://github.com/MiscomLab/codechart/blob/main/CHANGELOG.md";
|
|
1646
|
+
var RAW = "https://raw.githubusercontent.com/MiscomLab/codechart";
|
|
1647
1647
|
var VERSION2 = /^\d+\.\d+\.\d+$/;
|
|
1648
1648
|
var MAX_BYTES2 = 256 * 1024;
|
|
1649
1649
|
var MAX_CHARS = 200;
|
|
@@ -1997,7 +1997,7 @@ function readSettings(file) {
|
|
|
1997
1997
|
try {
|
|
1998
1998
|
settings = text3 === void 0 || text3.trim() === "" ? {} : JSON.parse(text3);
|
|
1999
1999
|
} catch {
|
|
2000
|
-
throw new Error(`${file}: not valid JSON; edit the hooks by hand: https://github.com/
|
|
2000
|
+
throw new Error(`${file}: not valid JSON; edit the hooks by hand: https://github.com/MiscomLab/codechart/blob/main/docs/install.md#help-agents-remember-it`);
|
|
2001
2001
|
}
|
|
2002
2002
|
if (!isObject(settings)) throw new Error(`${file}: not a JSON object`);
|
|
2003
2003
|
settings.hooks ??= {};
|
|
@@ -10746,7 +10746,7 @@ function appendedStage(existing2) {
|
|
|
10746
10746
|
if (stage === void 0) throw new Error(`.gitlab-ci.yml lists no stage codechart's job can run in; set PR maps up by hand: ${BY_HAND}`);
|
|
10747
10747
|
return stage;
|
|
10748
10748
|
}
|
|
10749
|
-
var BY_HAND = "https://github.com/
|
|
10749
|
+
var BY_HAND = "https://github.com/MiscomLab/codechart/blob/main/docs/pr-maps.md#by-hand";
|
|
10750
10750
|
function conflict(file) {
|
|
10751
10751
|
throw new Error(`${file} already exists and is not codechart's; move it or set PR maps up by hand: ${BY_HAND}`);
|
|
10752
10752
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codechart",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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,15 @@
|
|
|
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
25
|
},
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/
|
|
27
|
+
"url": "https://github.com/MiscomLab/codechart/issues"
|
|
28
28
|
},
|
|
29
|
-
"homepage": "https://github.com/
|
|
29
|
+
"homepage": "https://github.com/MiscomLab/codechart#readme",
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public",
|
|
32
32
|
"provenance": true
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"gen:client": "tsx scripts/gen-client.ts"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"commander": "15.
|
|
63
|
+
"commander": "15.1.0",
|
|
64
64
|
"elkjs": "0.12.1",
|
|
65
65
|
"picomatch": "4.0.7",
|
|
66
66
|
"yaml": "2.9.1",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"eslint": "^10.14.0",
|
|
73
73
|
"fast-check": "4.10.2",
|
|
74
74
|
"happy-dom": "21.0.4",
|
|
75
|
-
"jscpd": "5.4.
|
|
76
|
-
"knip": "6.
|
|
75
|
+
"jscpd": "5.4.3",
|
|
76
|
+
"knip": "6.45.1",
|
|
77
77
|
"tsup": "^9.0.0",
|
|
78
78
|
"tsx": "4.23.15",
|
|
79
79
|
"typescript": "^6.0.3",
|
|
@@ -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
|