@codechart/core 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +29 -2
- package/dist/index.d.ts +1769 -0
- package/dist/index.js +3360 -0
- package/package.json +46 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MiscomLab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @codechart/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The engine shared by the [codechart CLI](https://www.npmjs.com/package/codechart) and the codechart desktop app.
|
|
4
|
+
|
|
5
|
+
It is the part both products must agree on:
|
|
6
|
+
|
|
7
|
+
- **Specs** — the map, flow, business, release and explain schemas, their zod validation and generated JSON schemas.
|
|
8
|
+
- **Truth checks** — anchor reading, mention checks and the checks that compare a claim with the code and the git diff; map layout (elkjs).
|
|
9
|
+
- **Git rules** — changed files, log, preview and diff, and which diagram a change should produce.
|
|
10
|
+
- **Review notes** — the note format, parser, merge, carry-over and storage, plus shared page and review file naming.
|
|
11
|
+
- **Config** — the `.codechart.yaml` schema, loader and repo-root lookup.
|
|
12
|
+
- **Agent presets** — the agents codechart knows, their skill folders, and commander-free helpers to install and remove the skill.
|
|
13
|
+
|
|
14
|
+
The CLI owns everything that talks to a user or an agent: commands, terminal and HTML renderers, PR maps, the update check and the OpenCode plugin.
|
|
15
|
+
|
|
16
|
+
## Stability
|
|
17
|
+
|
|
18
|
+
Version `0.x`: the API may change between minor versions. The app pins a version (`"@codechart/core": "0.1.x"`) so it stays on a range it was built and tested against.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { validateSpec, checkMapNodes, layoutSpec, loadConfig } from '@codechart/core';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Node 22.12 or later, ESM.
|
|
27
|
+
|
|
28
|
+
## Licence
|
|
29
|
+
|
|
30
|
+
MIT. The map layout uses [elkjs](https://github.com/kieler/elkjs) at runtime, under the EPL-2.0 licence; see the notice in the [CLI package](https://github.com/MiscomLab/codechart/blob/main/packages/cli/THIRD_PARTY_NOTICES.md).
|