cherry-works 0.2.1 → 0.3.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/README.md +11 -8
- package/dist/cw.js +1 -1
- package/dist/main.js +2477 -2315
- package/dist/portal/main.js +14 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@ markdown files, and `cw` checks them, tests them and compiles them into the
|
|
|
5
5
|
files your coding agent actually reads.
|
|
6
6
|
|
|
7
7
|
```text
|
|
8
|
-
.cw/charter/guide/no-any.md ──cw build──▶ CLAUDE.md
|
|
9
|
-
.cw/charter/sensor/lint.md .claude/rules/…
|
|
10
|
-
.cw/charter/posture/secrets.md .claude/settings.json (hooks, permissions)
|
|
11
|
-
…
|
|
12
|
-
|
|
8
|
+
.cw/charter/guide/no-any/index.md ──cw build──▶ CLAUDE.md
|
|
9
|
+
.cw/charter/sensor/lint/index.md .claude/rules/…
|
|
10
|
+
.cw/charter/posture/secrets/index.md .claude/settings.json (hooks, permissions)
|
|
11
|
+
… .claude/skills/…, .claude/agents/…
|
|
12
|
+
.mcp.json (cw mcp serve)
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Why
|
|
@@ -125,10 +125,13 @@ Each kind comes up at a different time:
|
|
|
125
125
|
`cw kinds <kind>` gives the exact fields each kind takes. An identity is
|
|
126
126
|
`kind:id`, and it names exactly one primitive across the whole charter. If two
|
|
127
127
|
files claim the same identity, the build is refused and both files are named.
|
|
128
|
-
|
|
129
|
-
is
|
|
128
|
+
Every primitive is a folder holding its `index.md`, and any other file in that
|
|
129
|
+
folder is one of its assets, reached from the body as `./<file>`. An id is at
|
|
130
|
+
most 40 characters, and may be grouped with `/`: `mcp:mfbs/billing` is kept at
|
|
131
|
+
`.cw/charter/mcp/mfbs/billing/index.md`.
|
|
130
132
|
|
|
131
|
-
`cw build` compiles every primitive to `.cw/out/<kind>/<id
|
|
133
|
+
`cw build` compiles every primitive to `.cw/out/<kind>/<id>/index.md`, with its
|
|
134
|
+
assets copied beside it: its headers,
|
|
132
135
|
then the bodies of the mixins it pulls in, then its own. What your agent's host
|
|
133
136
|
is given points to that document, so you can open any primitive exactly as the
|
|
134
137
|
agent reads it.
|
package/dist/cw.js
CHANGED