@c4a/context-cli 0.5.38 → 0.5.39-beta.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.
@@ -29,11 +29,11 @@ Unlike the align/compile pipeline (LLM-driven, designed for unstructured documen
29
29
  ├── README.md ← This file
30
30
  ├── code/
31
31
  │ ├── aspect.yaml # Built-in code aspect (generated when selected during init)
32
- │ └── prompt.md # Agent/human hint only; CLI does not read it
32
+ │ └── README.md # Aspect maintainer guide; CLI does not read it
33
33
  ├── <your-aspect>/
34
34
  │ ├── aspect.yaml # Required: aspect definition
35
35
  │ ├── extract.ts # Aspect plugin module (local mode)
36
- │ └── prompt.md # Optional: hint for humans/agents
36
+ │ └── README.md # Optional: maintainer guide for humans/agents
37
37
  └── <another-aspect>/
38
38
  └── ...
39
39
 
@@ -199,7 +199,7 @@ export default defineAspect({
199
199
  node_slug: "target-node",
200
200
  kind: "description",
201
201
  summary: doc.title,
202
- content: doc.markdown,
202
+ content: doc.bodyMarkdown,
203
203
  source: file,
204
204
  artifact: artifactFromRelPath(file.path),
205
205
  });
@@ -208,6 +208,8 @@ export default defineAspect({
208
208
  });
209
209
  ```
210
210
 
211
+ Use `doc.bodyMarkdown` for Section content. It removes a leading document title when it matches `doc.title`, then shifts remaining headings under the rendered Section container. The renderer applies the final heading offset again from the actual node depth, so nested child-node Sections stay structurally valid. `doc.markdown` remains available when a plugin needs the full normalized document.
212
+
211
213
  ---
212
214
 
213
215
  ## Section Projection Protocol (`section-projection.v2`)
@@ -468,14 +470,14 @@ When the user chooses to install the code aspect, `context init` generates `aspe
468
470
  # View the current CLI-bundled template (read-only):
469
471
  context aspect template code
470
472
 
471
- # Write the latest template to aspects/code/ (overwrites aspect.yaml, preserves prompt.md):
473
+ # Write the latest template to aspects/code/ (overwrites aspect.yaml, preserves README.md):
472
474
  context aspect template code --write
473
475
 
474
476
  # Diff current file against the latest template:
475
477
  context aspect template code --diff
476
478
  ```
477
479
 
478
- > `--write` will not overwrite `prompt.md` (user-edited agent hints). To reset prompt.md, delete it first, then `--write`.
480
+ > `--write` will not overwrite `README.md` (user-edited maintainer guide). To reset README.md, delete it first, then `--write`.
479
481
 
480
482
  ---
481
483