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/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<h1 align="center"><img src="docs/images/logo.svg" alt="" width="40" height="40" align="top"> codechart</h1>
|
|
1
|
+
<h1 align="center"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/logo.svg" alt="" width="40" height="40" align="top"> codechart</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
4
|
<b>See the shape of a change before you read it.</b><br>
|
|
@@ -7,18 +7,18 @@
|
|
|
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
|
-
<a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
|
|
13
|
+
<a href="https://github.com/MiscomLab/codechart/blob/main/LICENSE"><img alt="MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<a href="#install">Install</a> · <a href="#features">Features</a> · <a href="#why-you-can-trust-the-diagram">Trust</a> · <a href="#cost">Cost</a> · <a href="docs/configuration.md">Configure</a> · <a href="docs/README.md">Docs</a>
|
|
17
|
+
<a href="#install">Install</a> · <a href="#features">Features</a> · <a href="#why-you-can-trust-the-diagram">Trust</a> · <a href="#cost">Cost</a> · <a href="https://github.com/MiscomLab/codechart/blob/main/docs/configuration.md">Configure</a> · <a href="https://github.com/MiscomLab/codechart/blob/main/docs/README.md">Docs</a>
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
21
|
-
<img src="docs/images/demo.gif" alt="An agent finishes a change and its reply starts with a map of it; the full page shows each node's diff" width="960">
|
|
21
|
+
<img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/demo.gif" alt="An agent finishes a change and its reply starts with a map of it; the full page shows each node's diff" width="960">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
---
|
|
@@ -68,7 +68,7 @@ New things are `+`, changed ones `~`, removed ones `-`, config `◆`; anything u
|
|
|
68
68
|
|
|
69
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:
|
|
70
70
|
|
|
71
|
-

|
|
71
|
+

|
|
72
72
|
|
|
73
73
|
You don't need to ask for any of this. The skill fires when the agent summarizes changes, writes a plan, or explains how code behaves, and stays quiet for typo fixes.
|
|
74
74
|
|
|
@@ -78,7 +78,7 @@ You don't need to ask for any of this. The skill fires when the agent summarizes
|
|
|
78
78
|
npm i -g codechart && codechart install-skill
|
|
79
79
|
```
|
|
80
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.
|
|
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](https://github.com/MiscomLab/codechart/blob/main/docs/install.md) says what each adds.
|
|
82
82
|
|
|
83
83
|
That's it. Open your coding agent in any repo and try:
|
|
84
84
|
|
|
@@ -88,7 +88,7 @@ That's it. Open your coding agent in any repo and try:
|
|
|
88
88
|
> show me the flow of accepting an invite
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
Works with Claude Code, Codex, Gemini CLI, GitHub Copilot, Cursor, OpenCode and any other agent that supports [Agent Skills](https://agentskills.io). Reminders that keep agents using it, updating, `codechart doctor` when no diagram appears, and uninstalling: [Install and agents](docs/install.md).
|
|
91
|
+
Works with Claude Code, Codex, Gemini CLI, GitHub Copilot, Cursor, OpenCode and any other agent that supports [Agent Skills](https://agentskills.io). Reminders that keep agents using it, updating, `codechart doctor` when no diagram appears, and uninstalling: [Install and agents](https://github.com/MiscomLab/codechart/blob/main/docs/install.md).
|
|
92
92
|
|
|
93
93
|
## Features
|
|
94
94
|
|
|
@@ -100,10 +100,10 @@ Works with Claude Code, Codex, Gemini CLI, GitHub Copilot, Cursor, OpenCode and
|
|
|
100
100
|
|
|
101
101
|
Ask how something works and get its decisions, edge cases and outcomes as a flow. Every step is tied to a real line of code; click one on the page to see it.
|
|
102
102
|
|
|
103
|
-
More: [Flows](docs/flows.md)
|
|
103
|
+
More: [Flows](https://github.com/MiscomLab/codechart/blob/main/docs/flows.md)
|
|
104
104
|
|
|
105
105
|
</td>
|
|
106
|
-
<td width="54%" valign="middle"><img src="docs/images/flow.gif" alt="On the flow page, clicking a decision step shows its source line and the code behind each branch, then a second step is clicked"></td>
|
|
106
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/flow.gif" alt="On the flow page, clicking a decision step shows its source line and the code behind each branch, then a second step is clicked"></td>
|
|
107
107
|
</tr>
|
|
108
108
|
<tr>
|
|
109
109
|
<td width="46%" valign="middle">
|
|
@@ -112,10 +112,10 @@ More: [Flows](docs/flows.md)
|
|
|
112
112
|
|
|
113
113
|
A plan that touches existing code opens as two panes side by side. What it removes is red in Now; what it adds is green in After.
|
|
114
114
|
|
|
115
|
-
More: [Plans](docs/plans.md)
|
|
115
|
+
More: [Plans](https://github.com/MiscomLab/codechart/blob/main/docs/plans.md)
|
|
116
116
|
|
|
117
117
|
</td>
|
|
118
|
-
<td width="54%" valign="middle"><img src="docs/images/plan-map.png" alt="Plan map: Now pane with the removed env var in red, After pane with the new table and migration in green"></td>
|
|
118
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/plan-map.png" alt="Plan map: Now pane with the removed env var in red, After pane with the new table and migration in green"></td>
|
|
119
119
|
</tr>
|
|
120
120
|
<tr>
|
|
121
121
|
<td width="46%" valign="middle">
|
|
@@ -124,10 +124,10 @@ More: [Plans](docs/plans.md)
|
|
|
124
124
|
|
|
125
125
|
When the work is done, the summary is compared with the plan. What was dropped, added or built differently is marked, each with the agent's reason.
|
|
126
126
|
|
|
127
|
-
More: [Plan vs built](docs/plans.md#plan-vs-built)
|
|
127
|
+
More: [Plan vs built](https://github.com/MiscomLab/codechart/blob/main/docs/plans.md#plan-vs-built)
|
|
128
128
|
|
|
129
129
|
</td>
|
|
130
|
-
<td width="54%" valign="middle"><img src="docs/images/plan-vs-built.gif" alt="The header's differences-from-the-plan link opens the list; clicking an item shows its plan-vs-built box with the agent's reason, and a dashed NOT BUILT box marks what was planned but not built"></td>
|
|
130
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/plan-vs-built.gif" alt="The header's differences-from-the-plan link opens the list; clicking an item shows its plan-vs-built box with the agent's reason, and a dashed NOT BUILT box marks what was planned but not built"></td>
|
|
131
131
|
</tr>
|
|
132
132
|
<tr>
|
|
133
133
|
<td width="46%" valign="middle">
|
|
@@ -136,10 +136,10 @@ More: [Plan vs built](docs/plans.md#plan-vs-built)
|
|
|
136
136
|
|
|
137
137
|
Terraform, OpenTofu, Helm, Kustomize and Kubernetes changes get a map of resources and what they reference. Built in, no rule to write.
|
|
138
138
|
|
|
139
|
-
More: [Infrastructure maps](docs/infrastructure.md)
|
|
139
|
+
More: [Infrastructure maps](https://github.com/MiscomLab/codechart/blob/main/docs/infrastructure.md)
|
|
140
140
|
|
|
141
141
|
</td>
|
|
142
|
-
<td width="54%" valign="middle"><img src="docs/images/infra.png" alt="Infrastructure map in light theme: the changed load balancer shows its Terraform diff and new access_logs attributes"></td>
|
|
142
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/infra.png" alt="Infrastructure map in light theme: the changed load balancer shows its Terraform diff and new access_logs attributes"></td>
|
|
143
143
|
</tr>
|
|
144
144
|
<tr>
|
|
145
145
|
<td width="46%" valign="middle">
|
|
@@ -148,10 +148,10 @@ More: [Infrastructure maps](docs/infrastructure.md)
|
|
|
148
148
|
|
|
149
149
|
Comment on any node, line or arrow, ask a question, or ask for a deletion. *Finish review* copies your notes; paste them into your agent chat.
|
|
150
150
|
|
|
151
|
-
More: [Review on the page](docs/review.md#on-the-page)
|
|
151
|
+
More: [Review on the page](https://github.com/MiscomLab/codechart/blob/main/docs/review.md#on-the-page)
|
|
152
152
|
|
|
153
153
|
</td>
|
|
154
|
-
<td width="54%" valign="middle"><img src="docs/images/page-review.gif" alt="On the map page the user adds a comment under a new line and a delete note under a removed line, clicks Finish review, then Copy and close, and the sent notes turn dimmed"></td>
|
|
154
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/page-review.gif" alt="On the map page the user adds a comment under a new line and a delete note under a removed line, clicks Finish review, then Copy and close, and the sent notes turn dimmed"></td>
|
|
155
155
|
</tr>
|
|
156
156
|
<tr>
|
|
157
157
|
<td width="46%" valign="middle">
|
|
@@ -160,10 +160,10 @@ More: [Review on the page](docs/review.md#on-the-page)
|
|
|
160
160
|
|
|
161
161
|
`codechart review` opens the map in your editor as a diff. Write notes under any line, save, and tell your agent "review done".
|
|
162
162
|
|
|
163
|
-
More: [Review in the terminal](docs/review.md#in-the-terminal)
|
|
163
|
+
More: [Review in the terminal](https://github.com/MiscomLab/codechart/blob/main/docs/review.md#in-the-terminal)
|
|
164
164
|
|
|
165
165
|
</td>
|
|
166
|
-
<td width="54%" valign="middle"><img src="docs/images/console-review-short.gif" alt="codechart review opens the map's diffs in vim, the user writes a comment and a question under diff lines, saves, and codechart feedback --take prints them"></td>
|
|
166
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/console-review-short.gif" alt="codechart review opens the map's diffs in vim, the user writes a comment and a question under diff lines, saves, and codechart feedback --take prints them"></td>
|
|
167
167
|
</tr>
|
|
168
168
|
<tr>
|
|
169
169
|
<td width="46%" valign="middle">
|
|
@@ -172,10 +172,10 @@ More: [Review in the terminal](docs/review.md#in-the-terminal)
|
|
|
172
172
|
|
|
173
173
|
PR and MR descriptions end with a collapsed map, and CI redraws it on every push. No AI or tokens in CI. Turn it on once per repo.
|
|
174
174
|
|
|
175
|
-
More: [Maps in pull requests](docs/pr-maps.md)
|
|
175
|
+
More: [Maps in pull requests](https://github.com/MiscomLab/codechart/blob/main/docs/pr-maps.md)
|
|
176
176
|
|
|
177
177
|
</td>
|
|
178
|
-
<td width="54%" valign="middle"><img src="docs/images/pr-map.png" alt="PR description with the Map section open: check line, the map image, what was left out or not read, collapsed node details and the key"></td>
|
|
178
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/pr-map.png" alt="PR description with the Map section open: check line, the map image, what was left out or not read, collapsed node details and the key"></td>
|
|
179
179
|
</tr>
|
|
180
180
|
<tr>
|
|
181
181
|
<td width="46%" valign="middle">
|
|
@@ -184,10 +184,10 @@ More: [Maps in pull requests](docs/pr-maps.md)
|
|
|
184
184
|
|
|
185
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
186
|
|
|
187
|
-
More: [Explain map](docs/explain-map.md)
|
|
187
|
+
More: [Explain map](https://github.com/MiscomLab/codechart/blob/main/docs/explain-map.md)
|
|
188
188
|
|
|
189
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>
|
|
190
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/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
191
|
</tr>
|
|
192
192
|
<tr>
|
|
193
193
|
<td width="46%" valign="middle">
|
|
@@ -196,10 +196,10 @@ More: [Explain map](docs/explain-map.md)
|
|
|
196
196
|
|
|
197
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).
|
|
198
198
|
|
|
199
|
-
More: [Business map](docs/business-map.md)
|
|
199
|
+
More: [Business map](https://github.com/MiscomLab/codechart/blob/main/docs/business-map.md)
|
|
200
200
|
|
|
201
201
|
</td>
|
|
202
|
-
<td width="54%" valign="middle"><img src="docs/images/business-map.png" alt="Business page: a journey with Now and After columns, rule cards, one dashed card asking for a yes or no, and a question with an answer box"></td>
|
|
202
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/business-map.png" alt="Business page: a journey with Now and After columns, rule cards, one dashed card asking for a yes or no, and a question with an answer box"></td>
|
|
203
203
|
</tr>
|
|
204
204
|
<tr>
|
|
205
205
|
<td width="46%" valign="middle">
|
|
@@ -208,20 +208,20 @@ More: [Business map](docs/business-map.md)
|
|
|
208
208
|
|
|
209
209
|
On request, a PDF of what's new in a release, in plain words, for sales: a cover, then a section per feature. It only holds what the agent checked in the code, so nobody has to review it.
|
|
210
210
|
|
|
211
|
-
More: [Release map](docs/release-map.md)
|
|
211
|
+
More: [Release map](https://github.com/MiscomLab/codechart/blob/main/docs/release-map.md)
|
|
212
212
|
|
|
213
213
|
</td>
|
|
214
|
-
<td width="54%" valign="middle"><img src="docs/images/release-map.gif" alt="The PDF of a release map: a cover with the logo, product name, version and summary, then the features one after another"></td>
|
|
214
|
+
<td width="54%" valign="middle"><img src="https://raw.githubusercontent.com/MiscomLab/codechart/main/docs/images/release-map.gif" alt="The PDF of a release map: a cover with the logo, product name, version and summary, then the features one after another"></td>
|
|
215
215
|
</tr>
|
|
216
216
|
</table>
|
|
217
217
|
|
|
218
218
|
## The full page
|
|
219
219
|
|
|
220
|
-
Big diagrams also get a self-contained HTML page: click a node for its summary and diff, read straight from git, tick nodes as reviewed, and move around with the keyboard. Nothing is loaded from the internet. More: [The full page](docs/page.md).
|
|
220
|
+
Big diagrams also get a self-contained HTML page: click a node for its summary and diff, read straight from git, tick nodes as reviewed, and move around with the keyboard. Nothing is loaded from the internet. More: [The full page](https://github.com/MiscomLab/codechart/blob/main/docs/page.md).
|
|
221
221
|
|
|
222
222
|
## When it fires
|
|
223
223
|
|
|
224
|
-
When the agent summarizes a change, writes a plan or explains how code behaves: migrations and models, infrastructure, 3+ related files (map), 2+ decisions or edge cases (flow). One-file text, comment, formatting or version-bump changes are skipped. Your own rules run first: [Configuration](docs/configuration.md).
|
|
224
|
+
When the agent summarizes a change, writes a plan or explains how code behaves: migrations and models, infrastructure, 3+ related files (map), 2+ decisions or edge cases (flow). One-file text, comment, formatting or version-bump changes are skipped. Your own rules run first: [Configuration](https://github.com/MiscomLab/codechart/blob/main/docs/configuration.md).
|
|
225
225
|
|
|
226
226
|
## Why you can trust the diagram
|
|
227
227
|
|
|
@@ -230,20 +230,20 @@ When the agent summarizes a change, writes a plan or explains how code behaves:
|
|
|
230
230
|
- **Nothing left off quietly:** every changed file is on the map or listed as left out.
|
|
231
231
|
- **Flows are tied to real lines,** and whatever the agent didn't read is listed under `gaps`.
|
|
232
232
|
|
|
233
|
-
More: [Why you can trust the diagram](docs/trust.md).
|
|
233
|
+
More: [Why you can trust the diagram](https://github.com/MiscomLab/codechart/blob/main/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
|
|
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 165.8 kB package, plus the 395.3 kB [`@codechart/core`](https://www.npmjs.com/package/@codechart/core) it depends on. Measured runs: [Efficiency](https://github.com/MiscomLab/codechart/blob/main/docs/efficiency.md).
|
|
238
238
|
|
|
239
239
|
## Safe to run
|
|
240
240
|
|
|
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).
|
|
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).
|
|
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](https://github.com/MiscomLab/codechart/blob/main/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](https://github.com/MiscomLab/codechart/blob/main/docs/install.md#updating)); `codechart update`; `release-context`, through your own `gh` or `glab`; and opt-in [PR maps](https://github.com/MiscomLab/codechart/blob/main/docs/pr-maps.md).
|
|
242
|
+
- Audited before release across 8 areas, including untrusted repos and prompt-injected specs: [SECURITY.md](https://github.com/MiscomLab/codechart/blob/main/SECURITY.md) and [docs/security-review.md](https://github.com/MiscomLab/codechart/blob/main/docs/security-review.md).
|
|
243
243
|
|
|
244
244
|
## Configure
|
|
245
245
|
|
|
246
|
-
Works with zero config. `codechart init` writes a commented `.codechart.yaml` for your own rules, and `codechart config` shows what's in effect: [Configuration](docs/configuration.md), [CLI](docs/cli.md).
|
|
246
|
+
Works with zero config. `codechart init` writes a commented `.codechart.yaml` for your own rules, and `codechart config` shows what's in effect: [Configuration](https://github.com/MiscomLab/codechart/blob/main/docs/configuration.md), [CLI](https://github.com/MiscomLab/codechart/blob/main/docs/cli.md).
|
|
247
247
|
|
|
248
248
|
## FAQ
|
|
249
249
|
|
|
@@ -251,13 +251,24 @@ Works with zero config. `codechart init` writes a commented `.codechart.yaml` fo
|
|
|
251
251
|
No. One-file text, comment, formatting or version-bump changes are skipped. Flows only appear for logic with 2+ decisions or edge cases, or when you ask for one.
|
|
252
252
|
|
|
253
253
|
**Does my code leave my machine?**
|
|
254
|
-
Not because of codechart. The diagram is built from what your agent already read, and the daily version check sends nothing but the request for the newest version number. Only with [PR maps](docs/pr-maps.md) on does CI send the map image and description to your own GitHub or GitLab, where the PR already lives.
|
|
254
|
+
Not because of codechart. The diagram is built from what your agent already read, and the daily version check sends nothing but the request for the newest version number. Only with [PR maps](https://github.com/MiscomLab/codechart/blob/main/docs/pr-maps.md) on does CI send the map image and description to your own GitHub or GitLab, where the PR already lives.
|
|
255
255
|
|
|
256
256
|
**Where do the HTML pages go?**
|
|
257
257
|
`~/.cache/codechart`. It keeps the newest 20 per repo, plus anything under 7 days old.
|
|
258
258
|
|
|
259
|
-
More questions (permissions prompts, editors that open HTML as text, agents not on the list): [Install and agents](docs/install.md). All docs: [docs/](docs/README.md).
|
|
259
|
+
More questions (permissions prompts, editors that open HTML as text, agents not on the list): [Install and agents](https://github.com/MiscomLab/codechart/blob/main/docs/install.md). All docs: [docs/](https://github.com/MiscomLab/codechart/blob/main/docs/README.md).
|
|
260
|
+
|
|
261
|
+
## Packages
|
|
262
|
+
|
|
263
|
+
This repo is an npm workspaces monorepo with two packages:
|
|
264
|
+
|
|
265
|
+
| Package | Path | What |
|
|
266
|
+
|---|---|---|
|
|
267
|
+
| [`codechart`](https://github.com/MiscomLab/codechart/blob/main/packages/cli) | `packages/cli` | The CLI: commands, terminal and HTML renderers, PR maps, update check and the OpenCode plugin. |
|
|
268
|
+
| [`@codechart/core`](https://github.com/MiscomLab/codechart/blob/main/packages/core) | `packages/core` | The MIT engine: specs, truth checks, layout, git rules, review notes, config and agent presets. |
|
|
269
|
+
|
|
270
|
+
The desktop app depends on a pinned core version, `"@codechart/core": "0.1.x"`, so app releases are independent of CLI releases. To test unreleased core from the app, build it (`npm run build -w @codechart/core`) and either `npm link` it or point the app at `file:../codechart/packages/core`.
|
|
260
271
|
|
|
261
272
|
## License
|
|
262
273
|
|
|
263
|
-
MIT. Depends on elkjs (EPL-2.0): see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
274
|
+
MIT. Depends on elkjs (EPL-2.0): see [THIRD_PARTY_NOTICES.md](https://github.com/MiscomLab/codechart/blob/main/packages/cli/THIRD_PARTY_NOTICES.md).
|
package/config.schema.json
CHANGED
|
@@ -128,6 +128,16 @@
|
|
|
128
128
|
"useBuiltinRules": {
|
|
129
129
|
"type": "boolean"
|
|
130
130
|
},
|
|
131
|
+
"ignore": {
|
|
132
|
+
"description": "Paths the desktop app's live map never reads, as globs, on top of .gitignore, dependencies and build output. The CLI doesn't use it.",
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"maxLength": 200,
|
|
138
|
+
"pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f\\u200b\\u200c\\u200e\\u200f\\u2028-\\u202e\\u2060-\\u2069\\ufeff]*$"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
131
141
|
"updateCheck": {
|
|
132
142
|
"description": "Global only: look up the newest codechart on npm at most once a day and say when there is one (default true)",
|
|
133
143
|
"type": "boolean"
|