@c4a/context-cli 0.6.0-beta.8 → 0.6.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/LICENSE +21 -0
- package/README.md +129 -137
- package/cli.js +1573 -3320
- package/package.json +18 -3
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/skills/skill-review-gate/SKILL.md +0 -3
- package/plugins/claude/skills/skill-source-scope/SKILL.md +0 -6
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/continue/references/internal-procedures/skill-review-gate.md +0 -3
- package/plugins/codex/skills/continue/references/internal-procedures/skill-source-scope.md +0 -6
- package/plugins/codex/skills/init/references/internal-procedures/skill-review-gate.md +0 -3
- package/plugins/codex/skills/init/references/internal-procedures/skill-source-scope.md +0 -6
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/skills/skill-review-gate/SKILL.md +0 -3
- package/plugins/cursor/skills/skill-source-scope/SKILL.md +0 -6
- package/plugins/skills/context-continue/references/internal-procedures/skill-review-gate.md +0 -3
- package/plugins/skills/context-continue/references/internal-procedures/skill-source-scope.md +0 -6
- package/plugins/skills/context-init/references/internal-procedures/skill-review-gate.md +0 -3
- package/plugins/skills/context-init/references/internal-procedures/skill-source-scope.md +0 -6
- package/plugin/.claude-plugin/plugin.json.template +0 -16
- package/plugin/.codex-plugin/plugin.json.template +0 -38
- package/plugin/.cursor-plugin/plugin.json.template +0 -29
- package/plugin/README.md +0 -158
- package/plugin/README_CN.md +0 -142
- package/plugin/assets/icon.svg +0 -3
- package/plugin/assets/logo.svg +0 -3
- package/plugin/assets/workflow-en.png +0 -0
- package/plugin/assets/workflow.png +0 -0
- package/plugin/commands/continue.md +0 -34
- package/plugin/commands/init.md +0 -21
- package/plugin/skills/skill-continue-workflow/SKILL.md +0 -235
- package/plugin/skills/skill-init-workspace/SKILL.md +0 -74
- package/plugin/skills/skill-package-output/SKILL.md +0 -180
- package/plugin/skills/skill-prose-align/SKILL.md +0 -322
- package/plugin/skills/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
- package/plugin/skills/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
- package/plugin/skills/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
- package/plugin/skills/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
- package/plugin/skills/skill-prose-compile/SKILL.md +0 -287
- package/plugin/skills/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
- package/plugin/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
- package/plugin/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
- package/plugin/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
- package/plugin/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
- package/plugin/skills/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
- package/plugin/skills/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
- package/plugin/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
- package/plugin/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
- package/plugin/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
- package/plugin/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
- package/plugin/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
- package/plugin/skills/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
- package/plugin/skills/skill-review-gate/SKILL.md +0 -141
- package/plugin/skills/skill-source-scope/SKILL.md +0 -531
- package/plugin/skills/skill-source-scope/references/capture-source.md +0 -201
- package/plugins/assets/icon.svg +0 -3
- package/plugins/assets/workflow-en.png +0 -0
- package/plugins/assets/workflow.png +0 -0
- package/plugins/codex/assets/workflow-en.png +0 -0
- package/plugins/codex/assets/workflow.png +0 -0
- package/plugins/cursor/assets/icon.svg +0 -3
- package/plugins/cursor/assets/workflow-en.png +0 -0
- package/plugins/cursor/assets/workflow.png +0 -0
- package/scripts/build-plugin.ts +0 -658
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 context4ai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,48 +1,64 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Context CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[简体中文](./README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
`@c4a/context-cli`
|
|
5
|
+
`@c4a/context-cli` provides the **Context CLI** and the global Agent plugin
|
|
6
|
+
installer. The CLI manages project-local workspace state; the Agent plugin
|
|
7
|
+
explains that state, asks for user decisions, and edits project configuration.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
The CLI is Node/Bun compatible and does not call an LLM. Mechanical work belongs
|
|
10
|
+
to the CLI, semantic judgment belongs to the Agent, and important decisions
|
|
11
|
+
belong to the user.
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
2. **Global plugin installer** — `context plugin install` installs and refreshes the package-bundled plugin marketplace globally for Claude and Codex. It materializes the Codex plugin copy under `~/.codex/plugins/cache/c4a/context/local/`. The public plugin entrypoints are `init` and `continue`; `continue` is agent guidance, not a CLI primitive.
|
|
11
|
-
3. **`plugin/` source** — human-maintained command/skill/manifest sources that `scripts/build-plugin.ts` compiles into installable marketplace trees.
|
|
13
|
+
## Install
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g @c4a/context-cli
|
|
17
|
+
context plugin install
|
|
18
|
+
```
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
Global package installation also attempts a best-effort plugin refresh. Run
|
|
21
|
+
`context plugin install` again after installing or upgrading Claude or Codex,
|
|
22
|
+
then restart the Agent.
|
|
18
23
|
|
|
19
|
-
|
|
24
|
+
The public Agent entries are:
|
|
20
25
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
- `/context:init` creates a project-local Context workspace.
|
|
27
|
+
- `/context:continue` reads the current workspace state and continues from the
|
|
28
|
+
next action.
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
context
|
|
30
|
+
`/context:continue` is Agent guidance, not a CLI subcommand. There is no
|
|
31
|
+
`context continue` command.
|
|
32
|
+
|
|
33
|
+
For the shortest installed-package walkthrough, read
|
|
34
|
+
[CLI Quickstart](./docs/quickstart.md).
|
|
35
|
+
|
|
36
|
+
## CLI And Agent Responsibilities
|
|
27
37
|
|
|
38
|
+
| Responsibility | Owner |
|
|
39
|
+
|---|---|
|
|
40
|
+
| Source registries, capture, extraction, review application, verify, and build | CLI |
|
|
41
|
+
| Explaining choices, editing `src/index.ts`, proposing structure, and generating candidates from evidence | Agent |
|
|
42
|
+
| Source permission, classification, review decisions, and package-output choice | User |
|
|
43
|
+
|
|
44
|
+
The Agent follows `context status` and CLI diagnostics rather than guessing the
|
|
45
|
+
next command. It may execute safe mechanical steps, but it stops at human gates
|
|
46
|
+
and external source-repository operations.
|
|
47
|
+
|
|
48
|
+
## Create Or Continue A Workspace
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Create a standalone workspace.
|
|
52
|
+
context init context
|
|
28
53
|
cd context
|
|
29
54
|
bun install
|
|
55
|
+
|
|
56
|
+
# Ask the Agent to continue from the current state.
|
|
30
57
|
/context:continue
|
|
31
58
|
```
|
|
32
59
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
make the CLI installation fail; rerun `context plugin install` manually after
|
|
36
|
-
installing an agent CLI. Set `CONTEXT_CLI_SKIP_PLUGIN_INSTALL=1` to opt out.
|
|
37
|
-
|
|
38
|
-
The global plugin calls `context ...` from the current project root.
|
|
39
|
-
Agent commands follow CLI `next:` hints: they execute safe mechanical steps and
|
|
40
|
-
stop at `Human gate:` / placeholder next steps, source registration, source scope
|
|
41
|
-
selection, review, package output choice, or source-repo operations outside the
|
|
42
|
-
CLI. Agents must not infer repo sources or extraction scope from the surrounding
|
|
43
|
-
monorepo.
|
|
44
|
-
|
|
45
|
-
After `bun install`, the workspace has an installed SDK manual:
|
|
60
|
+
The generated `AGENTS.md` is the Agent's project-local operating guide. After
|
|
61
|
+
dependency installation, SDK manuals are available at:
|
|
46
62
|
|
|
47
63
|
```text
|
|
48
64
|
node_modules/@c4a/context/docs/README.md
|
|
@@ -51,140 +67,116 @@ node_modules/@c4a/context/docs/reference/project-api.md
|
|
|
51
67
|
node_modules/@c4a/context/docs/reference/package-templates.md
|
|
52
68
|
```
|
|
53
69
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
```text
|
|
57
|
-
node_modules/@c4a/context/templates/package-templates/
|
|
58
|
-
```
|
|
70
|
+
The workspace state is split across:
|
|
59
71
|
|
|
60
|
-
|
|
61
|
-
|
|
72
|
+
- `src/` for project declarations and package templates.
|
|
73
|
+
- `sources/` for source registries and captured evidence.
|
|
74
|
+
- `unapproved/` for draft, rejected, or deprecated candidates.
|
|
75
|
+
- `knowledge/` for approved knowledge.
|
|
76
|
+
- `dist/` for generated package output.
|
|
77
|
+
- `.tmp/context-runtime/` for ignored logs, previews, reports, locks, and caches.
|
|
62
78
|
|
|
63
|
-
|
|
64
|
-
the
|
|
65
|
-
remain in this package's [DEVELOPMENT.md](./DEVELOPMENT.md).
|
|
79
|
+
Do not repair lifecycle state by manually deleting or rewriting these
|
|
80
|
+
directories. Use the command or next action returned by the CLI.
|
|
66
81
|
|
|
67
|
-
##
|
|
82
|
+
## Status-Driven Workflow
|
|
68
83
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
bunx @c4a/context-cli init context
|
|
72
|
-
cd context
|
|
73
|
-
bun install
|
|
84
|
+
The project workflow is declared in `src/index.ts` and routed by
|
|
85
|
+
`context status`:
|
|
74
86
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
87
|
+
| Stage | CLI surface |
|
|
88
|
+
|---|---|
|
|
89
|
+
| Source setup | `context source add repo/file/lark`, `context source add batch`, and `context source ensure` |
|
|
90
|
+
| Document capture | Declared capture phases through `context run <phase-id>` |
|
|
91
|
+
| Code extraction | Declared `extractTs` phases through `context run <phase-id>` |
|
|
92
|
+
| Prose structure | `context run align:<type>:<source>:<collection> ...` evidence and validation views |
|
|
93
|
+
| Prose compile | `context run compile:<type>:<source>:<collection> ...` evidence and validation views |
|
|
94
|
+
| Review | `context review html`, scoped decisions, and `context review apply` |
|
|
95
|
+
| Close and quality | `context close` and `context verify` |
|
|
96
|
+
| Package output | `context build` |
|
|
78
97
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
context source add repo sample-lib --local ../sample-lib
|
|
98
|
+
Building a package completes the currently active approved state; it does not
|
|
99
|
+
freeze the workspace. New sources can be added and processed later.
|
|
82
100
|
|
|
83
|
-
|
|
84
|
-
# Do not register the parent monorepo and use extractTs.include as a package selector.
|
|
85
|
-
context source add repo sample-lib --local ../packages/sample-lib
|
|
101
|
+
## Command Groups
|
|
86
102
|
|
|
87
|
-
|
|
88
|
-
#
|
|
89
|
-
|
|
90
|
-
|
|
103
|
+
```bash
|
|
104
|
+
# Plugin installation and diagnostics
|
|
105
|
+
context plugin install
|
|
106
|
+
context plugin status
|
|
91
107
|
|
|
92
|
-
#
|
|
93
|
-
context
|
|
94
|
-
|
|
95
|
-
--remote https://git.example.com/sample-lib.git \
|
|
96
|
-
--ref <commit-sha>
|
|
108
|
+
# Workspace state
|
|
109
|
+
context init [project-dir]
|
|
110
|
+
context status
|
|
97
111
|
|
|
98
|
-
#
|
|
99
|
-
|
|
100
|
-
context source
|
|
112
|
+
# Sources
|
|
113
|
+
context source add repo [YYYYMMDD] --module <module> --local <repo-or-subdir>
|
|
114
|
+
context source add file [YYYYMMDD] --module <module> --local <file-or-folder>
|
|
115
|
+
context source add lark [YYYYMMDD] --module <module> --url <lark-url>
|
|
116
|
+
context source add batch [YYYYMMDD] --input <yaml-or-json>
|
|
117
|
+
context source ensure [source]
|
|
118
|
+
context source inspect [source]
|
|
101
119
|
|
|
102
|
-
#
|
|
103
|
-
context status
|
|
120
|
+
# Declared phases and review
|
|
104
121
|
context run --list
|
|
105
|
-
context run
|
|
122
|
+
context run <phase-id> --dry-run
|
|
123
|
+
context run <phase-id>
|
|
124
|
+
context review html [collection] --open
|
|
125
|
+
context review apply <payload-file>
|
|
126
|
+
|
|
127
|
+
# Final quality and output
|
|
128
|
+
context close
|
|
129
|
+
context verify
|
|
130
|
+
context build
|
|
106
131
|
```
|
|
107
132
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Runtime scratch lives under `.tmp/context-runtime/` and is ignored. It may contain run logs, review HTML, previews, locks, and cache files; it is not the committed state source. Committed state is the combination of source registries and document snapshots under `sources/`, `unapproved/entities.jsonl`, approved Markdown under `knowledge/`, project code under `src/`, and project guidance in `README.md` / `AGENTS.md`.
|
|
133
|
+
Run `context <command> --help` for current flags. Commands that require a
|
|
134
|
+
workspace search upward for a `package.json` with `context.project=true` and a
|
|
135
|
+
configured `context.entry`.
|
|
112
136
|
|
|
113
|
-
##
|
|
137
|
+
## Human Gates And Evidence
|
|
114
138
|
|
|
115
|
-
The
|
|
116
|
-
|
|
139
|
+
- The CLI never silently clones, checks out, resets, fetches, installs, builds,
|
|
140
|
+
or runs scripts in a source repository.
|
|
141
|
+
- Source registration and source-body reading are separate permissions.
|
|
142
|
+
- Extraction scope and document classification are confirmed before candidate
|
|
143
|
+
writes.
|
|
144
|
+
- Review decisions come from the user. The Agent must not invent approval or
|
|
145
|
+
rejection payloads.
|
|
146
|
+
- Package output is chosen after approved knowledge exists; package templates
|
|
147
|
+
are project configuration, not a second factual source.
|
|
117
148
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
completed; they can be added without creating a new workspace.
|
|
149
|
+
CLI-returned source names, phase IDs, candidate IDs, diagnostics, and
|
|
150
|
+
`source_ref` values are workflow tokens. A `source_ref` is an opaque evidence
|
|
151
|
+
citation: copy it exactly and do not parse it as a filesystem path.
|
|
122
152
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Do not simulate lifecycle or retraction work by deleting files under `sources/`,
|
|
133
|
-
`knowledge/`, `unapproved/`, `dist/`, or `.tmp`. Status and plugin guidance must
|
|
134
|
-
route users back to the gate that owns the fix.
|
|
135
|
-
|
|
136
|
-
## Agent Contract
|
|
137
|
-
|
|
138
|
-
For project workflows, `context` is a semantic service. Agents should call the CLI and use returned source names, phase ids, candidate ids, package names, diagnostics, and `source_ref` values. They should not derive state by walking runtime cache directories.
|
|
139
|
-
|
|
140
|
-
`source_ref` is an opaque citation token. Copy it into citations and decisions exactly as printed; do not parse it or dereference it as a file path. Human/report views may show source locations for inspection, but those values are not production workflow inputs.
|
|
141
|
-
|
|
142
|
-
## Commands
|
|
143
|
-
|
|
144
|
-
| Command | Role | Notes |
|
|
145
|
-
|---|---|---|
|
|
146
|
-
| `context plugin path` | CLI | Print the bundled plugin marketplace root. Installed packages normally use `dist/plugins`; source checkouts use the same path after build. |
|
|
147
|
-
| `context plugin install [--agent claude\|codex\|all] [--dry-run]` | CLI | Install or refresh the bundled plugin marketplace globally for Claude and/or Codex. It replaces existing `context` marketplace entries and Codex cache owned by this package before reinstalling. |
|
|
148
|
-
| `context plugin status [--agent claude\|codex\|all]` | CLI | Inspect bundled plugin path and agent CLI availability. |
|
|
149
|
-
| `context init [project-dir] [--name <name>] [--dev]` | CLI | Create a project-local context workspace. Defaults to `context/`; use `.` to initialize the current directory. Use `--dev` for local checkout or prepared-pack testing before the matching `@c4a/context` version is published. |
|
|
150
|
-
| `context source add repo <name> --local <repo-or-subdir> [--remote <url>] [--ref <sha>]` | CLI | Register a repo source and pin it to a commit. Local paths may point at a monorepo subdirectory; the CLI stores the git root plus subpath, and materializes the source view to the subdirectory. Remote and ref are inferred from local origin / HEAD when omitted. Short SHAs are resolved to full commits when the local repo is available. |
|
|
151
|
-
| `context source ensure [name]` | CLI | Validate and materialize local source symlinks. Missing remotes only produce hints; the CLI does not clone or checkout automatically. |
|
|
152
|
-
| `context source add batch [date] --input <file|->` | CLI | Register multiple repo, file, or Lark modules under one project write lock from YAML/JSON input. Repo modules are explicit; file/Lark modules may be derived when omitted. |
|
|
153
|
-
| `context source list|get <name>` | CLI | Inspect the repo source registry and readiness metadata. |
|
|
154
|
-
| `context source inspect [name]` | CLI | Detect module/package boundaries in registered repo sources without extraction. Use this before extracting monorepo roots; it prints package names, paths, versions when available, and suggested source registration commands. |
|
|
155
|
-
| `context run --list` | CLI | List phases declared by `src/index.ts`. |
|
|
156
|
-
| `context run <phase-id> [--dry-run] [--auto-promote] [--managed]` | CLI | Inspect or run one declared phase. Extract dry-run separates discovered, AST-analyzed, skipped, symbol, and relation counts. Missing/empty entries fail with `NO_ENTRY_DETECTED`; TypeScript aliases come from tsconfig/jsconfig `baseUrl` and `paths`. Codegraph defaults to first-run full Review and later delta-only Review; `--auto-promote` applies deterministic codegraph deltas, refreshes deterministic close when needed, then verifies. `--managed` is current-conversation authority propagated by an Agent, never project policy. Existing package outputs become stale and remain an explicit downstream build step. |
|
|
157
|
-
| `context review html [collection] [--open]` | CLI | Render the local self-contained HTML review surface under `.tmp/context-runtime/review/`, emit a clickable `file://` URL, and optionally open it with the system browser. |
|
|
158
|
-
| `context review list [collection]` | CLI | List draft candidates for CLI-oriented review. |
|
|
159
|
-
| `context review apply <payload-file>` | CLI | Apply copied review decisions; approved entities materialize to `knowledge/`, rejected entities remain in `unapproved/entities.jsonl`. |
|
|
160
|
-
| `context review approve|reject <candidate-id> --collection <collection>` / `--all` | CLI | Scoped quick marking for a single draft candidate when the user explicitly authorizes an automated or quick path. |
|
|
161
|
-
| `context review approve-all [collection] --managed` / `--all --managed` | CLI | Atomically approve the current validated Review scope under explicit current-conversation fully managed authority. The flag is required and no policy is persisted. |
|
|
162
|
-
| `context review migrate-codegraph-refs` | CLI | Upgrade legacy approved codegraph refs to `src-N#symbol:<file>:<symbol>:<kind>@<digest>`, remove redundant `code_origin`, and verify. Rerun declared codegraph extraction first; this metadata migration does not repeat Review. |
|
|
163
|
-
| `context build` | CLI | Build declared project packages from approved knowledge into `dist/<package-name>/`. |
|
|
164
|
-
| `context verify [--format table\|json]` | CLI | Validate the project skeleton, registry, unapproved ledger, approved Markdown, source refs, and package outputs. |
|
|
165
|
-
| `context status [--managed] [--format json\|table]` | CLI | Workspace overview + a canonical `next:` hint. `--managed` resolves eligible human gates only for the explicitly authorized current conversation; source permission, external operations, validation, and verification remain enforced. Agent plugins expose this workflow as `/context:continue`; do not add or call `context continue`. |
|
|
166
|
-
|
|
167
|
-
Commands that require a project exit with a workspace-not-found error if run outside a directory tree containing a `package.json` `context.project=true` / `context.entry` marker. `context init` is the command that creates one.
|
|
168
|
-
|
|
169
|
-
For a beta.5 project that reports `approved-source-ref-ambiguous`, upgrade in
|
|
170
|
-
this order: rerun each declared codegraph extraction phase to create the current
|
|
171
|
-
file-aware symbol index, run `context review migrate-codegraph-refs`, then run
|
|
172
|
-
`context verify`. The migration preserves approved content and review decisions;
|
|
173
|
-
it changes only code evidence identity and removes the old `code_origin` copy.
|
|
153
|
+
## Further Reading
|
|
154
|
+
|
|
155
|
+
- [CLI Quickstart](./docs/quickstart.md)
|
|
156
|
+
- [SDK documentation index](../context/docs/README.md)
|
|
157
|
+
- [Getting Started](../context/docs/getting-started.md)
|
|
158
|
+
- [Agent Guide](../context/docs/guides/agent-guide.md)
|
|
159
|
+
- [Agent Dialogue](../context/docs/guides/agent-dialogue.md)
|
|
160
|
+
- [Project API](../context/docs/reference/project-api.md)
|
|
161
|
+
- [Package Templates](../context/docs/reference/package-templates.md)
|
|
174
162
|
|
|
175
163
|
## Development
|
|
176
164
|
|
|
177
|
-
|
|
165
|
+
For the complete source, link, plugin, and npm-mode workflow, see
|
|
166
|
+
[`DEVELOPMENT.md`](../../DEVELOPMENT.md) and this package's
|
|
167
|
+
[`DEVELOPMENT.md`](./DEVELOPMENT.md).
|
|
178
168
|
|
|
179
169
|
```bash
|
|
180
|
-
./start.sh link
|
|
181
|
-
bun run --filter @c4a/context-cli build
|
|
182
|
-
bun run --filter @c4a/context-cli test # unit + integration tests
|
|
170
|
+
./start.sh link
|
|
171
|
+
bun run --filter @c4a/context-cli build
|
|
183
172
|
bun run --filter @c4a/context-cli typecheck
|
|
184
173
|
bun run --filter @c4a/context-cli lint
|
|
174
|
+
bun run --filter @c4a/context-cli test
|
|
185
175
|
```
|
|
186
176
|
|
|
187
|
-
|
|
177
|
+
Build writes the installable Claude, Codex, Cursor, and skill-only trees to
|
|
178
|
+
`dist/plugins`. `context plugin install` installs from that package-bundled
|
|
179
|
+
output. Do not edit generated plugin trees directly.
|
|
188
180
|
|
|
189
181
|
## License
|
|
190
182
|
|