@c4a/context-cli 0.5.39 → 0.5.41-beta.5
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 +28850 -26086
- package/package.json +1 -1
- package/plugin/README.md +17 -15
- package/plugin/README_CN.md +17 -15
- package/plugin/commands/align.md +14 -7
- package/plugin/commands/capture.md +6 -4
- package/plugin/commands/compile.md +18 -14
- package/plugin/commands/context.md +13 -11
- package/plugin/commands/init.md +7 -5
- package/plugin/skills/skill-align-workflow/SKILL.md +31 -10
- package/plugin/skills/skill-align-workflow/references/candidate-resolution.md +3 -3
- package/plugin/skills/skill-align-workflow/references/density-profile.md +3 -12
- package/plugin/skills/skill-align-workflow/references/gates.md +13 -5
- package/plugin/skills/skill-compile-close/SKILL.md +3 -3
- package/plugin/skills/skill-compile-draft/SKILL.md +30 -29
- package/plugin/skills/skill-compile-draft/references/action-domain-gates.md +1 -1
- package/plugin/skills/skill-compile-draft/references/refresh-and-update.md +4 -4
- package/plugin/skills/skill-compile-judge/SKILL.md +12 -10
- package/plugin/skills/skill-context-query/SKILL.md +2 -0
- package/plugin/skills/skill-semantic-reconcile/SKILL.md +3 -3
- package/plugin/skills/skill-semantic-reconcile/references/temporal-and-evidence.md +9 -17
- package/plugin/skills/skill-semantic-reconcile/references/user-confirmation.md +4 -4
package/README.md
CHANGED
|
@@ -133,7 +133,7 @@ Workflow payload exploration uses a single Agent-facing query protocol:
|
|
|
133
133
|
| `context capture <url \| ./path.md [./more.md...] \| --stdin \| --inbox \| --refresh \| --code [path]>` | CLI | Ingest external documents or code into the source registry. Feishu URLs use `lark-cli`; local `.md` files can be captured one at a time, as variadic paths, or as newline-separated paths from stdin. `--code` snapshots TypeScript packages/symbols/edges through the code aspect. For Agent interaction, run `context capture --code <path> --plan --format json` first, show only package name / module path / version, then capture with repeated `--module <path>`. After capture, continue with source ids and semantic handles, not storage paths. |
|
|
134
134
|
| `context extract <path>` | CLI | Read-only developer/debug print of an extraction; never writes workspace files and is not part of the production Agent workflow. |
|
|
135
135
|
| `context debug <workflow\|source\|workspace\|storage\|command\|snapshot> ...` | CLI | Developer/debug-only path diagnostics. Output is storage-coupled and not a production Agent workflow input. |
|
|
136
|
-
| `context align scan \| coarse-read --input - \| ops --input - \| validate --input - \| finalize --input - \| code [slug]` | CLI | Workflow helpers driven by the `/context:align` skill pipeline. `scan` returns workflow payload names, scopes, digests, route envelope, and budget-safe inspect commands; agents inspect `align-segments` through `context workflow show --payload align-segments --view blocks --token-budget 2000 --unwrap --format json`, then narrow with `--source`, `--heading`, or CLI-provided `how_to_explore[]`. `--unwrap` only removes the workflow metadata envelope. Validate before finalize
|
|
136
|
+
| `context align scan \| coarse-read --input - \| ops --input - \| validate --input - \| finalize --validated \| finalize --input - \| code [slug]` | CLI | Workflow helpers driven by the `/context:align` skill pipeline. `scan` returns workflow payload names, scopes, digests, route envelope, and budget-safe inspect commands; agents inspect `align-segments` through `context workflow show --payload align-segments --view blocks --token-budget 2000 --unwrap --format json`, then narrow with `--source`, `--heading`, or CLI-provided `how_to_explore[]`. `--unwrap` only removes the workflow metadata envelope. Validate before finalize; successful validate stores an `align-validated-decision` payload and returns the preferred `context align finalize --validated --payload-digest <digest>` command. `finalize --input -` remains for compatibility and advanced repair. Batched `coarse-read` / `ops` are only used when `next_action.command` asks for them. `code` is a dry-run deterministic code projection route and does not enter prose align. `context schema <name>` prints the exact align workflow input schemas. |
|
|
137
137
|
| `context compile scan \| context <slug> [--view source-refs] \| cycle <slug> --input - --accept-safe-defaults \| draft <slug> --input - --prepare \| close \| code [source-slug]` | CLI | `code` is the deterministic code projection route: it turns captured code snapshots into package/category/symbol knowledge Nodes and does not enter prose draft/reconcile. Workflow helpers driven by the `/context:compile` skill pipeline handle prose/doc knowledge. `scan` returns the incremental compile workset, resume point, and budget-safe source-ref prefetch commands. `context <slug> --view source-refs --token-budget 2000` is a budgeted projection of `NodeContext.raw_snippets[]` for copying citation handles into draft `source_refs[]`; it is not a separate data source. Coverage payloads are inspected with `context workflow show --payload coverage-candidates --view coverage-summary --token-budget 2000 --unwrap --format json` and narrowed with `--view coverage --type <issue-type>` or `--node <slug>`. `cycle <slug>` is the low-friction per-node path: it validates the submitted draft, prepares reconcile, accepts mechanically safe defaults, and applies only when no semantic judgment remains (`status: applied` / `partial-applied` / `review-required`). Manual `draft <slug> --prepare → reconcile review/apply` remains the fallback for questions and unsupported evidence. `--delegated` is a one-time, workflow-level authorization recorded on the initial scan/context/draft/cycle command; it lets the CLI auto-accept low-risk weak source support but never bypasses unsupported evidence, type drift, schema errors, or destructive gates. Normal handoff uses stdin and current workflow payloads; digest flags are optional stale guards, not values agents need to extract. `--save-input` is only an explicit debug scratch copy, not workspace truth. |
|
|
138
138
|
| `context workflow show --payload <name> --view <view> [--token-budget <n>]` | CLI | Inspect workflow payloads through semantic views. High-frequency views are `node-context --view source-refs`, `coverage-candidates --view coverage-summary`, `coverage-candidates --view coverage`, and `align-segments --view blocks`. Follow returned `how_to_explore[]` commands for narrowing or budget expansion. |
|
|
139
139
|
| `context mdrive <group> <verb>` | CLI | Knowledge primitive shell: node / section / edge / query / verify / glossary / workspace. Node/query results include `node_class` to distinguish concrete entities from term definitions. `context mdrive verify workspace --experimental` adds heuristic quality warnings for very thin concrete entities and terms that have grown beyond definition shape; these are warnings, not entity-count limits. `context mdrive query --stats-only` prints only workspace counts; run `context mdrive --help` for subcommands. |
|