create-githolon 0.52.0 → 0.54.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/index.mjs +1 -1
- package/package.json +1 -1
- package/template/CLAUDE.md +36 -0
package/index.mjs
CHANGED
|
@@ -70,7 +70,7 @@ if (existsSync(path.join(targetDir, "vscode"))) {
|
|
|
70
70
|
// client FACTORY (`todoClient`) is named off the DOMAIN key, which stays `todo`.
|
|
71
71
|
const appHash = `${appName.replace(/[-\s]+/g, "_").replace(/([a-z0-9])([A-Z])/g, "$1_$2").toUpperCase()}_DOMAIN_HASH`;
|
|
72
72
|
const subst = (s) => s.replaceAll("__APP_NAME__", appName).replaceAll("__APP_HASH__", appHash);
|
|
73
|
-
for (const f of ["package.json", "README.md", "nomos.package.mjs", "domains/todo.ts", "test/e2e.mts"]) {
|
|
73
|
+
for (const f of ["package.json", "README.md", "nomos.package.mjs", "CLAUDE.md", "domains/todo.ts", "test/e2e.mts"]) {
|
|
74
74
|
const p = path.join(targetDir, f);
|
|
75
75
|
if (existsSync(p)) writeFileSync(p, subst(readFileSync(p, "utf8")), "utf8");
|
|
76
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-githolon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Scaffold a Nomos domain package: the starter domain + compile config + live e2e. `npm create githolon my-app`.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# __APP_NAME__ — Nomos domain package
|
|
2
|
+
|
|
3
|
+
A local-first Nomos domain: law authored in the `@githolon/dsl` TypeScript DSL under
|
|
4
|
+
`domains/`, compiled into ONE deterministic GitHolon artifact, deployed to a workspace.
|
|
5
|
+
Read `docs/01-mental-model.md` first — the docs travel with this repo, offline.
|
|
6
|
+
|
|
7
|
+
## For AI agents
|
|
8
|
+
|
|
9
|
+
This project's law is guarded by an author-time gate (static twins). Use it:
|
|
10
|
+
|
|
11
|
+
- **Lint the law** — before compiling or deploying, run the gate over `nomos.package.mjs`:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx githolon check # human report; exits non-zero on any REFUSE
|
|
15
|
+
npx githolon check --json # the findings as a machine-readable array (file:line)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- **Preview a law evolution** — before deploying a change to already-deployed law, diff
|
|
19
|
+
against the prior deployed law and paste any generated `dispositions` block:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx githolon check --against build/<name>.deploy.json
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- **Editor / agent diagnostics** — `npx githolon lsp` is a standard stdio Language Server
|
|
26
|
+
(red squiggles as you write law). For Claude Code, the `nomos-law` plugin ships it as a
|
|
27
|
+
plugin LSP; for Codex or other MCP clients, `githolon mcp` exposes the same gate as the
|
|
28
|
+
`nomos_check` and `nomos_evolve_preview` tools (`codex mcp add nomos -- githolon mcp`).
|
|
29
|
+
|
|
30
|
+
## The loop
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx githolon compile # → build/: deployable package + typed client + a generated proof
|
|
34
|
+
npx githolon proof # run that proof offline on a local holon
|
|
35
|
+
npx githolon deploy <ws>
|
|
36
|
+
```
|