@c4a/context-cli 0.5.38 → 0.5.39-beta.1
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 +1 -1
- package/cli.js +6039 -3768
- package/package.json +3 -1
- package/plugin/commands/align.md +17 -10
- package/plugin/commands/capture.md +2 -2
- package/plugin/commands/compile.md +7 -7
- package/plugin/skills/skill-align-workflow/SKILL.md +24 -10
- package/plugin/skills/skill-align-workflow/references/candidate-resolution.md +3 -3
- package/plugin/skills/skill-align-workflow/references/density-profile.md +1 -1
- package/plugin/skills/skill-align-workflow/references/gates.md +1 -1
- package/plugin/skills/skill-compile-draft/SKILL.md +7 -7
- package/plugin/skills/skill-compile-judge/SKILL.md +1 -1
- package/plugin/skills/skill-semantic-reconcile/references/temporal-and-evidence.md +4 -4
- package/scripts/build-aspect-runtime.ts +45 -0
- package/templates/aspect-runtime/aspectRunnerSdk.js +776 -0
- package/templates/aspects/README.md +7 -5
- package/templates/aspect-runtime/aspectRunnerSdk.ts +0 -749
- /package/templates/aspects/code/{prompt.md → README.md} +0 -0
- /package/templates/aspects/design-system/{prompt.md → README.md} +0 -0
- /package/templates/aspects/graphql/{prompt.md → README.md} +0 -0
- /package/templates/aspects/openapi/{prompt.md → README.md} +0 -0
|
@@ -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
|
-
│ └──
|
|
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
|
-
│ └──
|
|
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.
|
|
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
|
|
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 `
|
|
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
|
|