@c4a/context-cli 0.6.1 → 0.6.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.
- package/README.md +48 -10
- package/README.zh-CN.md +176 -0
- package/cli.js +60700 -35477
- package/docs/quickstart.md +23 -5
- package/package.json +4 -2
- package/plugins/README.md +60 -118
- package/plugins/README_CN.md +51 -102
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/continue.md +56 -10
- package/plugins/claude/commands/init.md +24 -11
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/continue/SKILL.md +56 -11
- package/plugins/codex/skills/init/SKILL.md +23 -11
- package/plugins/cursor/.cursor-plugin/plugin.json +2 -3
- package/plugins/cursor/README.md +2 -2
- package/plugins/cursor/commands/context-continue.md +56 -10
- package/plugins/cursor/commands/context-init.md +24 -11
- package/plugins/skills/context-continue/SKILL.md +56 -11
- package/plugins/skills/context-init/SKILL.md +23 -11
- package/providers/context/actions/accept-package-templates.yaml +5 -0
- package/providers/context/actions/align-next.yaml +6 -0
- package/providers/context/actions/apply-managed-review.yaml +5 -0
- package/providers/context/actions/apply-structure-confirmation.yaml +5 -0
- package/providers/context/actions/build-next.yaml +5 -0
- package/providers/context/actions/capture-next.yaml +5 -0
- package/providers/context/actions/close-approved-knowledge.yaml +5 -0
- package/providers/context/actions/compile-next.yaml +5 -0
- package/providers/context/actions/configure-code-extraction.yaml +5 -0
- package/providers/context/actions/configure-document-capture.yaml +5 -0
- package/providers/context/actions/configure-package-output.yaml +5 -0
- package/providers/context/actions/configure-prose-lifecycle.yaml +5 -0
- package/providers/context/actions/ensure-repository-sources.yaml +5 -0
- package/providers/context/actions/extract-next.yaml +5 -0
- package/providers/context/actions/inspect-document-classification.yaml +5 -0
- package/providers/context/actions/inspect-review.yaml +5 -0
- package/providers/context/actions/inspect-structure.yaml +5 -0
- package/providers/context/actions/maintain-evidence.yaml +6 -0
- package/providers/context/actions/materialize-context-view.yaml +8 -0
- package/providers/context/actions/register-source-batch.yaml +7 -0
- package/providers/context/actions/repair-project-entry.yaml +5 -0
- package/providers/context/actions/repair-verification.yaml +5 -0
- package/providers/context/actions/repair-workspace-state.yaml +5 -0
- package/providers/context/codes.yaml +40 -0
- package/providers/context/graphs/workspace.yaml +494 -0
- package/providers/context/manifest.json +637 -0
- package/providers/context/provider.yaml +12 -0
- package/providers/context/resources/diagnostics/projection-stale.md +13 -0
- package/providers/context/resources/diagnostics/verification.md +21 -0
- package/providers/context/resources/diagnostics/workspace-state.md +27 -0
- package/providers/context/resources/dialogue/code-extraction.md +34 -0
- package/providers/context/resources/dialogue/document-capture.md +29 -0
- package/providers/context/resources/dialogue/document-classification.md +33 -0
- package/providers/context/resources/dialogue/evidence-maintenance.md +26 -0
- package/providers/context/resources/dialogue/human-gates.md +34 -0
- package/providers/context/resources/dialogue/knowledge-review.md +27 -0
- package/providers/context/resources/dialogue/package-output.md +30 -0
- package/providers/context/resources/dialogue/source-boundary.md +29 -0
- package/providers/context/resources/dialogue/structure-confirmation.md +44 -0
- package/providers/context/resources/manuals/guides/package-outputs.md +259 -0
- package/providers/context/resources/manuals/reference/package-templates.md +378 -0
- package/providers/context/resources/manuals/reference/project-api.md +789 -0
- package/providers/context/resources/manuals/reference/template-variables.md +248 -0
- package/providers/context/resources/procedures/close-and-build.md +21 -0
- package/providers/context/resources/procedures/code-extraction.md +50 -0
- package/providers/context/resources/procedures/document-capture.md +45 -0
- package/providers/context/resources/procedures/document-classification.md +22 -0
- package/providers/context/resources/procedures/evidence-maintenance.md +20 -0
- package/providers/context/resources/procedures/knowledge-review.md +24 -0
- package/providers/context/resources/procedures/package-output.md +37 -0
- package/providers/context/resources/procedures/project-configuration.md +21 -0
- package/providers/context/resources/procedures/prose-align.md +68 -0
- package/providers/context/resources/procedures/prose-compile.md +23 -0
- package/providers/context/resources/procedures/source-boundary.md +48 -0
- package/{plugins/codex/skills/init/references/internal-procedures/skill-source-scope/references/capture-source.md → providers/context/resources/procedures/source-capture-detailed.md} +41 -19
- package/providers/context/resources/procedures/verify-and-repair.md +19 -0
- package/{plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning/references → providers/context/resources/semantic/align}/candidate-resolution.md +17 -2
- package/{plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning/references → providers/context/resources/semantic/align}/density-profile.md +11 -0
- package/{plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references → providers/context/resources/semantic/align}/gates.md +13 -0
- package/{plugins/cursor/skills/skill-prose-align/references/internal-procedures → providers/context/resources/semantic/align}/structure-planning.md +62 -12
- package/providers/context/resources/semantic/compile/index.md +31 -0
- package/providers/context/resources/views/package-current.yaml +6 -0
- package/providers/context/resources/views/review-current.yaml +6 -0
- package/providers/context/resources/views/source-current.yaml +6 -0
- package/providers/context/resources/views/structure-current.yaml +6 -0
- package/providers/context/resources/views/verification-current.yaml +6 -0
- package/providers/context/resources/views/workspace-current.yaml +6 -0
- package/providers/context/schemas/evidence-maintenance-input.schema.json +30 -0
- package/providers/context/schemas/prose-structure-batch.schema.json +35 -0
- package/providers/context/schemas/source-batch-input.schema.json +189 -0
- package/providers/context/scripts/render-context-view.mjs +21 -0
- package/plugins/claude/skills/skill-continue-workflow/SKILL.md +0 -235
- package/plugins/claude/skills/skill-init-workspace/SKILL.md +0 -74
- package/plugins/claude/skills/skill-package-output/SKILL.md +0 -180
- package/plugins/claude/skills/skill-prose-align/SKILL.md +0 -322
- package/plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
- package/plugins/claude/skills/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
- package/plugins/claude/skills/skill-prose-compile/SKILL.md +0 -287
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
- package/plugins/claude/skills/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
- package/plugins/claude/skills/skill-review-gate/SKILL.md +0 -138
- package/plugins/claude/skills/skill-source-scope/SKILL.md +0 -525
- package/plugins/claude/skills/skill-source-scope/references/capture-source.md +0 -201
- package/plugins/codex/skills/continue/references/internal-procedures/skill-continue-workflow.md +0 -235
- package/plugins/codex/skills/continue/references/internal-procedures/skill-init-workspace.md +0 -74
- package/plugins/codex/skills/continue/references/internal-procedures/skill-package-output.md +0 -180
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-align.md +0 -322
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
- package/plugins/codex/skills/continue/references/internal-procedures/skill-prose-compile.md +0 -287
- package/plugins/codex/skills/continue/references/internal-procedures/skill-review-gate.md +0 -138
- package/plugins/codex/skills/continue/references/internal-procedures/skill-source-scope/references/capture-source.md +0 -201
- package/plugins/codex/skills/continue/references/internal-procedures/skill-source-scope.md +0 -525
- package/plugins/codex/skills/init/references/internal-procedures/skill-continue-workflow.md +0 -235
- package/plugins/codex/skills/init/references/internal-procedures/skill-init-workspace.md +0 -74
- package/plugins/codex/skills/init/references/internal-procedures/skill-package-output.md +0 -180
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-align.md +0 -322
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
- package/plugins/codex/skills/init/references/internal-procedures/skill-prose-compile.md +0 -287
- package/plugins/codex/skills/init/references/internal-procedures/skill-review-gate.md +0 -138
- package/plugins/codex/skills/init/references/internal-procedures/skill-source-scope.md +0 -525
- package/plugins/cursor/skills/skill-continue-workflow/SKILL.md +0 -235
- package/plugins/cursor/skills/skill-init-workspace/SKILL.md +0 -74
- package/plugins/cursor/skills/skill-package-output/SKILL.md +0 -180
- package/plugins/cursor/skills/skill-prose-align/SKILL.md +0 -322
- package/plugins/cursor/skills/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
- package/plugins/cursor/skills/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
- package/plugins/cursor/skills/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
- package/plugins/cursor/skills/skill-prose-compile/SKILL.md +0 -287
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
- package/plugins/cursor/skills/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
- package/plugins/cursor/skills/skill-review-gate/SKILL.md +0 -138
- package/plugins/cursor/skills/skill-source-scope/SKILL.md +0 -525
- package/plugins/cursor/skills/skill-source-scope/references/capture-source.md +0 -201
- package/plugins/skills/context-continue/references/internal-procedures/skill-continue-workflow.md +0 -235
- package/plugins/skills/context-continue/references/internal-procedures/skill-init-workspace.md +0 -74
- package/plugins/skills/context-continue/references/internal-procedures/skill-package-output.md +0 -180
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-align.md +0 -322
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
- package/plugins/skills/context-continue/references/internal-procedures/skill-prose-compile.md +0 -287
- package/plugins/skills/context-continue/references/internal-procedures/skill-review-gate.md +0 -138
- package/plugins/skills/context-continue/references/internal-procedures/skill-source-scope/references/capture-source.md +0 -201
- package/plugins/skills/context-continue/references/internal-procedures/skill-source-scope.md +0 -525
- package/plugins/skills/context-init/references/internal-procedures/skill-continue-workflow.md +0 -235
- package/plugins/skills/context-init/references/internal-procedures/skill-init-workspace.md +0 -74
- package/plugins/skills/context-init/references/internal-procedures/skill-package-output.md +0 -180
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/candidate-resolution.md +0 -91
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/density-profile.md +0 -30
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning/references/gates.md +0 -263
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-align/references/internal-procedures/structure-planning.md +0 -282
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-align.md +0 -322
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/close-gate.md +0 -132
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/action-domain-gates.md +0 -52
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/notes.md +0 -48
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/refresh-and-update.md +0 -85
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions/references/structural-challenges.md +0 -73
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-actions.md +0 -413
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/compile-judgment.md +0 -123
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/disposition-semantics.md +0 -81
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/leakage-and-ownership.md +0 -55
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/scope-review-and-omit.md +0 -93
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/temporal-and-evidence.md +0 -79
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment/references/user-confirmation.md +0 -111
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile/references/internal-procedures/semantic-judgment.md +0 -194
- package/plugins/skills/context-init/references/internal-procedures/skill-prose-compile.md +0 -287
- package/plugins/skills/context-init/references/internal-procedures/skill-review-gate.md +0 -138
- package/plugins/skills/context-init/references/internal-procedures/skill-source-scope/references/capture-source.md +0 -201
- package/plugins/skills/context-init/references/internal-procedures/skill-source-scope.md +0 -525
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "context",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Maintain a project-local knowledge workspace through init and next-step agent guidance.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "c4a"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"skills": "./skills/",
|
|
19
19
|
"interface": {
|
|
20
20
|
"displayName": "C4A Context",
|
|
21
|
-
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.6.
|
|
21
|
+
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.6.2",
|
|
22
22
|
"longDescription": "Create a Context workspace and use agent-guided next steps to register sources, run extraction, review candidates, build package outputs, and verify health without silently mutating source repositories.",
|
|
23
23
|
"developerName": "c4a",
|
|
24
24
|
"category": "Productivity",
|
|
@@ -13,33 +13,78 @@ Public Context entry for agents that expose skills instead of slash commands.
|
|
|
13
13
|
- Public entry: `continue`
|
|
14
14
|
- Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
|
|
15
15
|
- CLI primitive prefix: `context ...`
|
|
16
|
-
- Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
20
19
|
## Workflow
|
|
21
20
|
|
|
22
|
-
Use this as the conversational entry for an existing Context workspace. There
|
|
23
|
-
no `context continue` CLI primitive
|
|
24
|
-
|
|
21
|
+
Use this as the conversational entry for an existing Context workspace. There
|
|
22
|
+
is no `context continue` CLI primitive. Start with:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
context status --format json
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Use `context status --managed --format json` only when the user explicitly
|
|
29
|
+
requested fully managed operation in this conversation. Never persist or reuse
|
|
30
|
+
that authority in another conversation. While the request remains active, use
|
|
31
|
+
`--managed` for every status evaluation; stop using it when the conversation
|
|
32
|
+
ends or the user revokes it.
|
|
25
33
|
|
|
26
34
|
If the user is starting a new workspace or a new batch from a raw repository
|
|
27
35
|
root, do not run `context status` first. Use the public Context init entry or
|
|
28
36
|
`context init` to create the workspace, complete the init setup command, then
|
|
29
37
|
return here from the initialized workspace.
|
|
30
38
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
For an explicitly managed conversation, the CLI can collapse consecutive
|
|
40
|
+
mechanical routes:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
context run --managed --until blocked-or-complete --format json
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Pass an additional `--authority` only when the user explicitly granted that
|
|
47
|
+
non-managed authority in this conversation. This loop executes only one
|
|
48
|
+
revision-bound command at a time and re-evaluates after every receipt. It stops
|
|
49
|
+
before read-only interpretation, project configuration, unresolved authority,
|
|
50
|
+
diagnostics, or a non-unique command plan. On stop, resume from the returned
|
|
51
|
+
`workflow.current`; do not derive a command from earlier steps.
|
|
35
52
|
|
|
36
53
|
Language policy: explain, ask, confirm, and summarize in the user's current
|
|
37
54
|
conversation language. Keep CLI commands, flags, paths, ids, status enum values,
|
|
38
55
|
JSONL payload keys, `source_ref` values, and copied CLI output tokens unchanged.
|
|
39
56
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
57
|
+
Treat `workflow.current` as the current-step authority:
|
|
58
|
+
|
|
59
|
+
1. Read every `resources.required` item whose `read_state` is
|
|
60
|
+
`read-required`. Read a `path` directly; for a resource with `command`,
|
|
61
|
+
execute that command and read the returned file. Keep read receipts only in
|
|
62
|
+
the current conversation and pass the merged receipt set back with
|
|
63
|
+
`context status --resource-receipts @<file>`; an unchanged static digest or
|
|
64
|
+
matching dynamic Route revision then returns `read_state: current`.
|
|
65
|
+
Materializing a resource is not a read: use the returned
|
|
66
|
+
`after_read_receipts` only after reading the complete returned file. A
|
|
67
|
+
`context.source-body/*` resource is the complete captured Markdown body;
|
|
68
|
+
source indexes and heading metadata never replace it. The exact
|
|
69
|
+
`resources.after_read.command` returns the re-evaluated `workflow.current`;
|
|
70
|
+
continue from that response without an additional status call.
|
|
71
|
+
2. At a Gate, keep conditional context phase-local. An `inspection_action`
|
|
72
|
+
Skill or Schema is read only when performing that pre-decision inspection;
|
|
73
|
+
a `resolution_action` Skill or Schema is read only after the user confirms
|
|
74
|
+
the Gate. Neither replaces ordinary `resources.required`.
|
|
75
|
+
3. Execute only `commands` returned by the Route, preserving revision and
|
|
76
|
+
authority flags exactly. A command marked `after-human-confirmation` must
|
|
77
|
+
wait for the current Gate decision. Run a command whose
|
|
78
|
+
`execution.target` is `agent-host` as a top-level host action with the
|
|
79
|
+
host's external and credential access, not inside a restricted child
|
|
80
|
+
sandbox. Request host approval when required; never weaken credential
|
|
81
|
+
storage as a workaround.
|
|
82
|
+
4. If `configuration` is present, edit only the named project file using the
|
|
83
|
+
selected resources as its contract.
|
|
84
|
+
5. After every action or configuration change, run status again. The managed
|
|
85
|
+
`--until` loop performs this re-evaluation internally. A phase-local
|
|
86
|
+
`next_action` can continue that operation but never replaces the workspace
|
|
87
|
+
Route.
|
|
43
88
|
|
|
44
89
|
Do not infer repo sources, extraction scope, review decisions, or package output
|
|
45
90
|
choices from surrounding files. Do not call source-repo operations such as
|
|
@@ -13,22 +13,34 @@ Public Context entry for agents that expose skills instead of slash commands.
|
|
|
13
13
|
- Public entry: `init`
|
|
14
14
|
- Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
|
|
15
15
|
- CLI primitive prefix: `context ...`
|
|
16
|
-
- Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
20
19
|
## Workflow
|
|
21
20
|
|
|
22
|
-
Initialize a Context workspace with the global CLI,
|
|
23
|
-
|
|
21
|
+
Initialize a Context workspace with the global CLI, complete the returned setup
|
|
22
|
+
step, then hand control to the current workflow route.
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
enum values, payload keys, and copied CLI output tokens unchanged.
|
|
24
|
+
Use the user's language for conversation. Keep command and payload tokens
|
|
25
|
+
unchanged.
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`
|
|
27
|
+
Run `context init [project-dir] [--name <name>] --language <language>`. Use the
|
|
28
|
+
user's explicit language choice when present; otherwise pass `zh-CN` for a
|
|
29
|
+
Chinese conversation and `en` for an English conversation. This explicit CLI
|
|
30
|
+
value controls generated workspace instructions and starter templates. Never
|
|
31
|
+
substitute `.` when `project-dir` was omitted; the default is `context/`. Use
|
|
32
|
+
`--dev` only for an explicitly requested local-link test.
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
If init reports `init-target-nonempty`, explain that existing files would share
|
|
35
|
+
the workspace root. Run the returned `--allow-nonempty` command only after
|
|
36
|
+
explicit confirmation.
|
|
37
|
+
|
|
38
|
+
Execute the returned setup command, enter the project root, and read its
|
|
39
|
+
generated `AGENTS.md`. Then run `context status --format json`, adding
|
|
40
|
+
`--managed` only for fully managed operation explicitly authorized in this
|
|
41
|
+
conversation. Treat `workflow.current` as authoritative: read its required
|
|
42
|
+
resources, execute only exact commands, honor unresolved human gates, and
|
|
43
|
+
reevaluate status after each action.
|
|
44
|
+
|
|
45
|
+
Do not add extra project-local agent setup or infer sources from the surrounding
|
|
46
|
+
monorepo.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "context",
|
|
3
3
|
"displayName": "C4A Context",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"description": "Maintain a project-local knowledge workspace through init and next-step agent guidance.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Context4AI",
|
|
@@ -24,6 +24,5 @@
|
|
|
24
24
|
"agent-skills",
|
|
25
25
|
"citations"
|
|
26
26
|
],
|
|
27
|
-
"commands": "./commands/"
|
|
28
|
-
"skills": "./skills/"
|
|
27
|
+
"commands": "./commands/"
|
|
29
28
|
}
|
package/plugins/cursor/README.md
CHANGED
|
@@ -6,8 +6,8 @@ Edit `packages/context-cli/plugin/` and rerun the build instead.
|
|
|
6
6
|
|
|
7
7
|
Install shape:
|
|
8
8
|
|
|
9
|
-
- Marketplace/GitHub plugin shape: this directory is a plugin root with `.cursor-plugin/plugin.json
|
|
9
|
+
- Marketplace/GitHub plugin shape: this directory is a plugin root with `.cursor-plugin/plugin.json` and `commands/`.
|
|
10
10
|
- User entries are under `commands/`; Cursor command files are prefixed as `context-*` to avoid global slash-command collisions.
|
|
11
11
|
- Local plugin fallback: symlink or copy this directory to `~/.cursor/plugins/local/context/` only when Marketplace import is unavailable.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Cursor Marketplace installs this plugin root directly.
|
|
@@ -10,27 +10,73 @@ Continue the Context workflow from the current workspace state.
|
|
|
10
10
|
|
|
11
11
|
## Workflow
|
|
12
12
|
|
|
13
|
-
Use this as the conversational entry for an existing Context workspace. There
|
|
14
|
-
no `context continue` CLI primitive
|
|
15
|
-
|
|
13
|
+
Use this as the conversational entry for an existing Context workspace. There
|
|
14
|
+
is no `context continue` CLI primitive. Start with:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
context status --format json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Use `context status --managed --format json` only when the user explicitly
|
|
21
|
+
requested fully managed operation in this conversation. Never persist or reuse
|
|
22
|
+
that authority in another conversation. While the request remains active, use
|
|
23
|
+
`--managed` for every status evaluation; stop using it when the conversation
|
|
24
|
+
ends or the user revokes it.
|
|
16
25
|
|
|
17
26
|
If the user is starting a new workspace or a new batch from a raw repository
|
|
18
27
|
root, do not run `context status` first. Use the public Context init entry or
|
|
19
28
|
`context init` to create the workspace, complete the init setup command, then
|
|
20
29
|
return here from the initialized workspace.
|
|
21
30
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
For an explicitly managed conversation, the CLI can collapse consecutive
|
|
32
|
+
mechanical routes:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
context run --managed --until blocked-or-complete --format json
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Pass an additional `--authority` only when the user explicitly granted that
|
|
39
|
+
non-managed authority in this conversation. This loop executes only one
|
|
40
|
+
revision-bound command at a time and re-evaluates after every receipt. It stops
|
|
41
|
+
before read-only interpretation, project configuration, unresolved authority,
|
|
42
|
+
diagnostics, or a non-unique command plan. On stop, resume from the returned
|
|
43
|
+
`workflow.current`; do not derive a command from earlier steps.
|
|
26
44
|
|
|
27
45
|
Language policy: explain, ask, confirm, and summarize in the user's current
|
|
28
46
|
conversation language. Keep CLI commands, flags, paths, ids, status enum values,
|
|
29
47
|
JSONL payload keys, `source_ref` values, and copied CLI output tokens unchanged.
|
|
30
48
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
49
|
+
Treat `workflow.current` as the current-step authority:
|
|
50
|
+
|
|
51
|
+
1. Read every `resources.required` item whose `read_state` is
|
|
52
|
+
`read-required`. Read a `path` directly; for a resource with `command`,
|
|
53
|
+
execute that command and read the returned file. Keep read receipts only in
|
|
54
|
+
the current conversation and pass the merged receipt set back with
|
|
55
|
+
`context status --resource-receipts @<file>`; an unchanged static digest or
|
|
56
|
+
matching dynamic Route revision then returns `read_state: current`.
|
|
57
|
+
Materializing a resource is not a read: use the returned
|
|
58
|
+
`after_read_receipts` only after reading the complete returned file. A
|
|
59
|
+
`context.source-body/*` resource is the complete captured Markdown body;
|
|
60
|
+
source indexes and heading metadata never replace it. The exact
|
|
61
|
+
`resources.after_read.command` returns the re-evaluated `workflow.current`;
|
|
62
|
+
continue from that response without an additional status call.
|
|
63
|
+
2. At a Gate, keep conditional context phase-local. An `inspection_action`
|
|
64
|
+
Skill or Schema is read only when performing that pre-decision inspection;
|
|
65
|
+
a `resolution_action` Skill or Schema is read only after the user confirms
|
|
66
|
+
the Gate. Neither replaces ordinary `resources.required`.
|
|
67
|
+
3. Execute only `commands` returned by the Route, preserving revision and
|
|
68
|
+
authority flags exactly. A command marked `after-human-confirmation` must
|
|
69
|
+
wait for the current Gate decision. Run a command whose
|
|
70
|
+
`execution.target` is `agent-host` as a top-level host action with the
|
|
71
|
+
host's external and credential access, not inside a restricted child
|
|
72
|
+
sandbox. Request host approval when required; never weaken credential
|
|
73
|
+
storage as a workaround.
|
|
74
|
+
4. If `configuration` is present, edit only the named project file using the
|
|
75
|
+
selected resources as its contract.
|
|
76
|
+
5. After every action or configuration change, run status again. The managed
|
|
77
|
+
`--until` loop performs this re-evaluation internally. A phase-local
|
|
78
|
+
`next_action` can continue that operation but never replaces the workspace
|
|
79
|
+
Route.
|
|
34
80
|
|
|
35
81
|
Do not infer repo sources, extraction scope, review decisions, or package output
|
|
36
82
|
choices from surrounding files. Do not call source-repo operations such as
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: "Initialize a Context knowledge workspace."
|
|
3
|
-
argument-hint: "[project-dir] [--name <name>]"
|
|
3
|
+
argument-hint: "[project-dir] [--name <name>] [--language en|zh-CN]"
|
|
4
4
|
allowed-tools: Bash(context:*), Bash(bun:*), Bash(cd *)
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,16 +10,29 @@ Initialize a Context knowledge workspace.
|
|
|
10
10
|
|
|
11
11
|
## Workflow
|
|
12
12
|
|
|
13
|
-
Initialize a Context workspace with the global CLI,
|
|
14
|
-
|
|
13
|
+
Initialize a Context workspace with the global CLI, complete the returned setup
|
|
14
|
+
step, then hand control to the current workflow route.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enum values, payload keys, and copied CLI output tokens unchanged.
|
|
16
|
+
Use the user's language for conversation. Keep command and payload tokens
|
|
17
|
+
unchanged.
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
`
|
|
19
|
+
Run `context init [project-dir] [--name <name>] --language <language>`. Use the
|
|
20
|
+
user's explicit language choice when present; otherwise pass `zh-CN` for a
|
|
21
|
+
Chinese conversation and `en` for an English conversation. This explicit CLI
|
|
22
|
+
value controls generated workspace instructions and starter templates. Never
|
|
23
|
+
substitute `.` when `project-dir` was omitted; the default is `context/`. Use
|
|
24
|
+
`--dev` only for an explicitly requested local-link test.
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
If init reports `init-target-nonempty`, explain that existing files would share
|
|
27
|
+
the workspace root. Run the returned `--allow-nonempty` command only after
|
|
28
|
+
explicit confirmation.
|
|
29
|
+
|
|
30
|
+
Execute the returned setup command, enter the project root, and read its
|
|
31
|
+
generated `AGENTS.md`. Then run `context status --format json`, adding
|
|
32
|
+
`--managed` only for fully managed operation explicitly authorized in this
|
|
33
|
+
conversation. Treat `workflow.current` as authoritative: read its required
|
|
34
|
+
resources, execute only exact commands, honor unresolved human gates, and
|
|
35
|
+
reevaluate status after each action.
|
|
36
|
+
|
|
37
|
+
Do not add extra project-local agent setup or infer sources from the surrounding
|
|
38
|
+
monorepo.
|
|
@@ -13,33 +13,78 @@ Public Context entry for agents that expose skills instead of slash commands.
|
|
|
13
13
|
- Public entry: `context-continue`
|
|
14
14
|
- Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
|
|
15
15
|
- CLI primitive prefix: `context ...`
|
|
16
|
-
- Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
20
19
|
## Workflow
|
|
21
20
|
|
|
22
|
-
Use this as the conversational entry for an existing Context workspace. There
|
|
23
|
-
no `context continue` CLI primitive
|
|
24
|
-
|
|
21
|
+
Use this as the conversational entry for an existing Context workspace. There
|
|
22
|
+
is no `context continue` CLI primitive. Start with:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
context status --format json
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Use `context status --managed --format json` only when the user explicitly
|
|
29
|
+
requested fully managed operation in this conversation. Never persist or reuse
|
|
30
|
+
that authority in another conversation. While the request remains active, use
|
|
31
|
+
`--managed` for every status evaluation; stop using it when the conversation
|
|
32
|
+
ends or the user revokes it.
|
|
25
33
|
|
|
26
34
|
If the user is starting a new workspace or a new batch from a raw repository
|
|
27
35
|
root, do not run `context status` first. Use the public Context init entry or
|
|
28
36
|
`context init` to create the workspace, complete the init setup command, then
|
|
29
37
|
return here from the initialized workspace.
|
|
30
38
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
For an explicitly managed conversation, the CLI can collapse consecutive
|
|
40
|
+
mechanical routes:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
context run --managed --until blocked-or-complete --format json
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Pass an additional `--authority` only when the user explicitly granted that
|
|
47
|
+
non-managed authority in this conversation. This loop executes only one
|
|
48
|
+
revision-bound command at a time and re-evaluates after every receipt. It stops
|
|
49
|
+
before read-only interpretation, project configuration, unresolved authority,
|
|
50
|
+
diagnostics, or a non-unique command plan. On stop, resume from the returned
|
|
51
|
+
`workflow.current`; do not derive a command from earlier steps.
|
|
35
52
|
|
|
36
53
|
Language policy: explain, ask, confirm, and summarize in the user's current
|
|
37
54
|
conversation language. Keep CLI commands, flags, paths, ids, status enum values,
|
|
38
55
|
JSONL payload keys, `source_ref` values, and copied CLI output tokens unchanged.
|
|
39
56
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
57
|
+
Treat `workflow.current` as the current-step authority:
|
|
58
|
+
|
|
59
|
+
1. Read every `resources.required` item whose `read_state` is
|
|
60
|
+
`read-required`. Read a `path` directly; for a resource with `command`,
|
|
61
|
+
execute that command and read the returned file. Keep read receipts only in
|
|
62
|
+
the current conversation and pass the merged receipt set back with
|
|
63
|
+
`context status --resource-receipts @<file>`; an unchanged static digest or
|
|
64
|
+
matching dynamic Route revision then returns `read_state: current`.
|
|
65
|
+
Materializing a resource is not a read: use the returned
|
|
66
|
+
`after_read_receipts` only after reading the complete returned file. A
|
|
67
|
+
`context.source-body/*` resource is the complete captured Markdown body;
|
|
68
|
+
source indexes and heading metadata never replace it. The exact
|
|
69
|
+
`resources.after_read.command` returns the re-evaluated `workflow.current`;
|
|
70
|
+
continue from that response without an additional status call.
|
|
71
|
+
2. At a Gate, keep conditional context phase-local. An `inspection_action`
|
|
72
|
+
Skill or Schema is read only when performing that pre-decision inspection;
|
|
73
|
+
a `resolution_action` Skill or Schema is read only after the user confirms
|
|
74
|
+
the Gate. Neither replaces ordinary `resources.required`.
|
|
75
|
+
3. Execute only `commands` returned by the Route, preserving revision and
|
|
76
|
+
authority flags exactly. A command marked `after-human-confirmation` must
|
|
77
|
+
wait for the current Gate decision. Run a command whose
|
|
78
|
+
`execution.target` is `agent-host` as a top-level host action with the
|
|
79
|
+
host's external and credential access, not inside a restricted child
|
|
80
|
+
sandbox. Request host approval when required; never weaken credential
|
|
81
|
+
storage as a workaround.
|
|
82
|
+
4. If `configuration` is present, edit only the named project file using the
|
|
83
|
+
selected resources as its contract.
|
|
84
|
+
5. After every action or configuration change, run status again. The managed
|
|
85
|
+
`--until` loop performs this re-evaluation internally. A phase-local
|
|
86
|
+
`next_action` can continue that operation but never replaces the workspace
|
|
87
|
+
Route.
|
|
43
88
|
|
|
44
89
|
Do not infer repo sources, extraction scope, review decisions, or package output
|
|
45
90
|
choices from surrounding files. Do not call source-repo operations such as
|
|
@@ -13,22 +13,34 @@ Public Context entry for agents that expose skills instead of slash commands.
|
|
|
13
13
|
- Public entry: `context-init`
|
|
14
14
|
- Host command names are installation-specific; use the command or skill surfaced by the current host instead of deriving a filesystem path from an example name.
|
|
15
15
|
- CLI primitive prefix: `context ...`
|
|
16
|
-
- Internal procedures live under `references/internal-procedures/`; read each referenced file in full before following that step.
|
|
17
16
|
|
|
18
17
|
---
|
|
19
18
|
|
|
20
19
|
## Workflow
|
|
21
20
|
|
|
22
|
-
Initialize a Context workspace with the global CLI,
|
|
23
|
-
|
|
21
|
+
Initialize a Context workspace with the global CLI, complete the returned setup
|
|
22
|
+
step, then hand control to the current workflow route.
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
enum values, payload keys, and copied CLI output tokens unchanged.
|
|
24
|
+
Use the user's language for conversation. Keep command and payload tokens
|
|
25
|
+
unchanged.
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`
|
|
27
|
+
Run `context init [project-dir] [--name <name>] --language <language>`. Use the
|
|
28
|
+
user's explicit language choice when present; otherwise pass `zh-CN` for a
|
|
29
|
+
Chinese conversation and `en` for an English conversation. This explicit CLI
|
|
30
|
+
value controls generated workspace instructions and starter templates. Never
|
|
31
|
+
substitute `.` when `project-dir` was omitted; the default is `context/`. Use
|
|
32
|
+
`--dev` only for an explicitly requested local-link test.
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
If init reports `init-target-nonempty`, explain that existing files would share
|
|
35
|
+
the workspace root. Run the returned `--allow-nonempty` command only after
|
|
36
|
+
explicit confirmation.
|
|
37
|
+
|
|
38
|
+
Execute the returned setup command, enter the project root, and read its
|
|
39
|
+
generated `AGENTS.md`. Then run `context status --format json`, adding
|
|
40
|
+
`--managed` only for fully managed operation explicitly authorized in this
|
|
41
|
+
conversation. Treat `workflow.current` as authoritative: read its required
|
|
42
|
+
resources, execute only exact commands, honor unresolved human gates, and
|
|
43
|
+
reevaluate status after each action.
|
|
44
|
+
|
|
45
|
+
Do not add extra project-local agent setup or infer sources from the surrounding
|
|
46
|
+
monorepo.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
schema: agent-graph.action.v1
|
|
2
|
+
id: register-source-batch
|
|
3
|
+
description: Register the source batch explicitly confirmed in the current conversation.
|
|
4
|
+
runner: command
|
|
5
|
+
effect: write
|
|
6
|
+
command: context source add batch --input - --format json
|
|
7
|
+
inputSchema: schemas/source-batch-input.schema.json
|