@c4a/context-cli 0.7.10-alpha.2 → 0.7.11
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 +2 -2
- package/README.zh-CN.md +3 -3
- package/cli.js +2034 -925
- package/indexers/bundles/context-code-indexer/references/indexer.md +25 -1
- package/indexers/bundles/context-code-indexer/templates/adapter-integration.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/api-service.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/background-runtime.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/cli-tool.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/component-library.md +4 -4
- package/indexers/bundles/context-code-indexer/templates/contract-source.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +6 -8
- package/indexers/bundles/context-code-indexer/templates/domain-service.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/monorepo-container.md +1 -1
- package/indexers/bundles/context-code-indexer/templates/sdk-library.md +1 -2
- package/indexers/bundles/context-code-indexer/templates/web-application.md +1 -1
- package/indexers/bundles/context-markdown-indexer/references/indexer.md +7 -2
- package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +9 -6
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +17 -17
- package/package.json +12 -12
- package/parserEntryWorker.js +43 -10
- package/plugins/README.md +1 -1
- package/plugins/README_CN.md +1 -1
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +37 -73
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +37 -73
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +37 -73
- package/plugins/skills/context/SKILL.md +37 -73
- package/plugins/skills/context-code-indexer/references/indexer.md +25 -1
- package/plugins/skills/context-code-indexer/templates/adapter-integration.md +1 -1
- package/plugins/skills/context-code-indexer/templates/api-service.md +1 -1
- package/plugins/skills/context-code-indexer/templates/background-runtime.md +1 -1
- package/plugins/skills/context-code-indexer/templates/cli-tool.md +1 -1
- package/plugins/skills/context-code-indexer/templates/component-library.md +4 -4
- package/plugins/skills/context-code-indexer/templates/contract-source.md +1 -1
- package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +6 -8
- package/plugins/skills/context-code-indexer/templates/domain-service.md +1 -1
- package/plugins/skills/context-code-indexer/templates/monorepo-container.md +1 -1
- package/plugins/skills/context-code-indexer/templates/sdk-library.md +1 -2
- package/plugins/skills/context-code-indexer/templates/web-application.md +1 -1
- package/plugins/skills/context-markdown-indexer/references/indexer.md +7 -2
- package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +9 -6
- package/providers/context/graphs/workspace.yaml +1 -22
- package/providers/context/manifest.json +34 -70
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/indexer-provider-and-customization.md +0 -2
- package/providers/context/resources/manuals/guides/knowledge-updates.md +108 -5
- package/providers/context/resources/manuals/guides/package-outputs.md +39 -1
- package/providers/context/resources/manuals/guides/workspace-prepare.md +17 -0
- package/providers/context/resources/manuals/reference/project-api.md +58 -19
- package/providers/context/resources/procedures/close-and-build.md +21 -0
- package/providers/context/resources/procedures/knowledge-review.md +18 -2
- package/providers/context/resources/procedures/knowledge-updates.md +108 -5
- package/providers/context/resources/procedures/package-output.md +18 -0
- package/providers/context/resources/procedures/production-stage-files.md +35 -0
- package/providers/context/resources/procedures/repository-source-recovery.md +5 -3
- package/providers/context/resources/procedures/source-capture-detailed.md +16 -2
- package/providers/context/resources/procedures/task-recovery.md +6 -0
- package/providers/context/resources/procedures/work-start-report.md +24 -11
- package/providers/context/resources/procedures/workspace-prepare.md +17 -0
- package/providers/context/resources/templates/work-start-report.md +11 -6
- package/providers/context/actions/inspect-repository-recovery.yaml +0 -6
- package/providers/context/actions/restore-repository-sources.yaml +0 -7
- package/providers/context/resources/dialogue/repository-source-recovery.md +0 -23
- package/providers/context/schemas/repository-source-recovery.schema.json +0 -40
|
@@ -7,6 +7,9 @@ and file navigation is a starting point, not a semantic grouping or a complete
|
|
|
7
7
|
feature inventory. Inspect relevant manifests, public entry files, registrations,
|
|
8
8
|
maintained documentation or a few representative declarations to understand
|
|
9
9
|
which kinds of reader topics the module can support.
|
|
10
|
+
For broad work, identify the main capability families across the authorized
|
|
11
|
+
range before treating investigation as finished. A representative implementation
|
|
12
|
+
can establish how to investigate a family, not that every family is covered.
|
|
10
13
|
|
|
11
14
|
Technology-specific investigation may be direct Agent reading or a bounded
|
|
12
15
|
helper from an available skill. A helper should expose feature names, counts
|
|
@@ -51,6 +54,9 @@ supply better business names and rationale; code paths are structural hints,
|
|
|
51
54
|
not immutable topic names. Preserve stable article identity when the reader
|
|
52
55
|
task is unchanged. Different platforms or deprecated entrypoints may need
|
|
53
56
|
separate treatment even when names match.
|
|
57
|
+
Before consolidating existing articles, read their relevant content. Preserve
|
|
58
|
+
checked interfaces, relationships and examples; a shorter map must not replace
|
|
59
|
+
them with instructions to rediscover the same knowledge.
|
|
54
60
|
|
|
55
61
|
Submit article targets, reader questions, sources and batches with the current
|
|
56
62
|
plan schema. Keep pending scope explicit when only part is investigated.
|
|
@@ -61,11 +67,29 @@ returned action; accepted content needs a revision task.
|
|
|
61
67
|
|
|
62
68
|
## Writing follows actual behavior
|
|
63
69
|
|
|
70
|
+
For a large module, divide work by reader question or capability family, not
|
|
71
|
+
by an exhaustive symbol list. Put useful directory and entrypoint hints in the
|
|
72
|
+
task brief. Investigate one bounded slice first and keep remaining scope in the
|
|
73
|
+
existing plan; do not wait for a module-wide catalog before writing. Reuse shared
|
|
74
|
+
findings in temporary files across related tasks, checking source evidence for
|
|
75
|
+
new claims. If a task proves too broad, amend unfinished tasks rather than
|
|
76
|
+
expanding every dependency recursively. A complete component manual still needs
|
|
77
|
+
coverage of its agreed components, spread across manageable tasks.
|
|
78
|
+
|
|
79
|
+
Use explicit file selections for optional deep analysis. Package export tracing
|
|
80
|
+
can still follow other files to establish public identity, so selected output
|
|
81
|
+
does not guarantee a cheap scan. Prefer direct reading when that traversal is
|
|
82
|
+
unnecessary; stop or narrow a helper that exceeds the useful time/output budget.
|
|
83
|
+
|
|
64
84
|
Explain what the module is responsible for, when and how to enter it through
|
|
65
85
|
stable interfaces, what it hands off, and the relevant state and failure
|
|
66
86
|
boundaries. A directory summary or symbol list is not an explanation.
|
|
67
87
|
An integration guide focuses on consumption; a maintenance guide may need
|
|
68
|
-
internal transformations and recovery.
|
|
88
|
+
internal transformations and recovery. For an entry-first task, provide a checked
|
|
89
|
+
file or symbol, why it is relevant and a concrete next hop; a package name or
|
|
90
|
+
generic instruction to search pages/handlers is not a problem-level entry.
|
|
91
|
+
For an explanation, read the conditions, callers and implementation needed to
|
|
92
|
+
answer it instead of substituting that investigation route for the answer.
|
|
69
93
|
|
|
70
94
|
Read the source that establishes the claim. An outbound client is not an
|
|
71
95
|
inbound service; host and remote declarations do not prove loading behavior.
|
|
@@ -11,7 +11,7 @@ compatibility layers, gateways, and translators whose stable responsibility is
|
|
|
11
11
|
to connect two boundaries. An ordinary internal helper that converts one object
|
|
12
12
|
is not automatically an adapter module.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Follow the current task.md, sources.md and submission schema. For
|
|
15
15
|
an inbound operation surface, combine this template with the selected gateway
|
|
16
16
|
or protocol evidence without creating a second operation registry.
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ surface as `api-service`. A module that only calls a remote API is a protocol
|
|
|
11
11
|
consumer, not automatically an API service. Gateways that translate to another
|
|
12
12
|
protocol normally also selects `adapter-integration`.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Follow the current task.md, sources.md and submission schema. If
|
|
15
15
|
the reader goal is primarily the transformation between inbound and outbound
|
|
16
16
|
boundaries, use the selected adapter-integration profile and retain one
|
|
17
17
|
canonical operation registry.
|
|
@@ -10,7 +10,7 @@ Use for `background-runtime`: queue or stream consumers, scheduled jobs,
|
|
|
10
10
|
pipelines, functions, controllers, watchers, and long-running agents activated
|
|
11
11
|
by a trigger instead of an interactive request.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Follow the current task.md, sources.md and submission schema.
|
|
14
14
|
|
|
15
15
|
## Evidence pass
|
|
16
16
|
|
|
@@ -11,7 +11,7 @@ executables, generators, and command-driven plugin hosts. A build script used
|
|
|
11
11
|
only internally does not need a CLI knowledge unit unless it is a supported
|
|
12
12
|
operator or contributor surface.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Follow the current task.md, sources.md and submission schema.
|
|
15
15
|
|
|
16
16
|
## Evidence pass
|
|
17
17
|
|
|
@@ -12,7 +12,7 @@ imports and component contracts. A web application that happens to contain
|
|
|
12
12
|
shared components remains a `web-application` unless the component surface is
|
|
13
13
|
published as an independent consumer boundary.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Follow the current task.md, sources.md and submission schema.
|
|
16
16
|
|
|
17
17
|
## Evidence pass
|
|
18
18
|
|
|
@@ -30,10 +30,10 @@ Treat stories and examples as usage evidence, not as authority for unsupported
|
|
|
30
30
|
props or behavior. When generated declarations disagree with source, identify
|
|
31
31
|
the authoritative source and record the gap.
|
|
32
32
|
|
|
33
|
-
When the
|
|
33
|
+
When the task's authorized sources supply a public declaration together with
|
|
34
34
|
structured props, events, defaults, variants, maintained examples, or source
|
|
35
|
-
roles, the
|
|
36
|
-
|
|
35
|
+
roles, use the relevant facts in the reader section and explain essential
|
|
36
|
+
missing material. Do not replace available
|
|
37
37
|
contract facts with a generic statement about the component directory. A component group
|
|
38
38
|
without a reader-authorizing public declaration remains catalog-only and does
|
|
39
39
|
not produce an empty component page. Library and system subjects may instead be
|
|
@@ -11,7 +11,7 @@ IDL, OpenAPI document, schema registry, message contract, or equivalent
|
|
|
11
11
|
machine-readable interface definition. It defines contracts consumed by other
|
|
12
12
|
modules but does not need to execute or dispatch them itself.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Follow the current task.md, sources.md and submission schema.
|
|
15
15
|
Generated projections must point back to this authority and remain supporting
|
|
16
16
|
evidence rather than a second contract authority.
|
|
17
17
|
|
|
@@ -52,16 +52,14 @@ Examples include application-to-client-to-endpoint, endpoint-to-service-to-
|
|
|
52
52
|
repository, producer-to-event-to-consumer, command-to-remote-operation, and
|
|
53
53
|
plugin-host-to-provider.
|
|
54
54
|
|
|
55
|
-
##
|
|
55
|
+
## Article scope and source reuse
|
|
56
56
|
|
|
57
|
-
A flow
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
the same inventory members as a second primary owner.
|
|
57
|
+
A flow may reuse sources cited by module articles. Give the flow one stable
|
|
58
|
+
article identity and use the current task's authorized sources. No primary
|
|
59
|
+
owner or inventory membership is required; avoid duplicating existing prose.
|
|
61
60
|
|
|
62
|
-
The
|
|
63
|
-
|
|
64
|
-
one page may cover several probes when it carries each exact evidence locator.
|
|
61
|
+
The article may cite every authorized participating source. Cover the reader
|
|
62
|
+
question and relevant handoffs defined in the task brief.
|
|
65
63
|
Explain operations and handoffs in reader prose, links or diagrams, citing the
|
|
66
64
|
actual source regions for each fragment (at most three locations per fragment).
|
|
67
65
|
Do not emit graph edges, classify nodes or create a relationship ledger.
|
|
@@ -11,7 +11,7 @@ reusable service contract and its first-level orchestration. Do not classify a
|
|
|
11
11
|
directory as a service merely because it contains classes or functions named
|
|
12
12
|
`Service`.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Follow the current task.md, sources.md and submission schema.
|
|
15
15
|
|
|
16
16
|
## Evidence pass
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ registration, ownership, dependency, build, or release topology of multiple
|
|
|
11
11
|
child modules. Do not treat the physical repository as one application merely
|
|
12
12
|
because it has one Git remote.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Follow the current task.md, sources.md and submission schema.
|
|
15
15
|
|
|
16
16
|
## Evidence pass
|
|
17
17
|
|
|
@@ -11,8 +11,7 @@ SDKs, public framework extensions, or shared runtimes consumed through a
|
|
|
11
11
|
deliberately supported interface. A package being imported elsewhere is not
|
|
12
12
|
enough; confirm its supported entry and consumer contract.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
variant supplied by the workset.
|
|
14
|
+
Follow the current task.md, sources.md and submission schema.
|
|
16
15
|
|
|
17
16
|
## Evidence pass
|
|
18
17
|
|
|
@@ -15,7 +15,7 @@ only browser code. It does
|
|
|
15
15
|
not automatically cover every package containing UI components; a reusable
|
|
16
16
|
component package is usually `sdk-library`.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Follow the current task.md, sources.md and submission schema.
|
|
19
19
|
|
|
20
20
|
## Evidence pass
|
|
21
21
|
|
|
@@ -9,7 +9,10 @@ contracts, conditions, examples, compatibility limits, images and uncertainty.
|
|
|
9
9
|
An inventory of headings, a generic summary or a link back to the source does
|
|
10
10
|
not replace an article that answers the reader. Preserve exact commands,
|
|
11
11
|
identifiers, numbers and destinations where they matter; do not reproduce
|
|
12
|
-
secrets or incidental conversion metadata.
|
|
12
|
+
secrets or incidental conversion metadata. For an entry-first request, identify
|
|
13
|
+
the relevant source section and concrete next step; for an operational guide,
|
|
14
|
+
retain what lets the reader execute it. Do not replace available instructions
|
|
15
|
+
with a generic suggestion to consult the original document.
|
|
13
16
|
|
|
14
17
|
Use [editorial guidance](editorial-policy.md) for a concrete presentation
|
|
15
18
|
problem. It is advice for the Agent and user, not a signal-clearing protocol or
|
|
@@ -47,7 +50,9 @@ the same article; no primary/extension ownership is required.
|
|
|
47
50
|
|
|
48
51
|
Correct misleading knowledge through a revision. Correct an inaccurate source
|
|
49
52
|
through its authorized import flow, not by editing evidence from this skill.
|
|
50
|
-
|
|
53
|
+
When merging or shortening existing articles, retain still-valid steps, examples
|
|
54
|
+
and constraints in the article or a linked topic, not just their source links.
|
|
55
|
+
Keep real gaps visible; material not yet obtained is not a permanent exclusion.
|
|
51
56
|
|
|
52
57
|
## Visual material
|
|
53
58
|
|
|
@@ -14,15 +14,18 @@ Document business definitions may correct a mechanical code-topic name; explain
|
|
|
14
14
|
the proposed change in the plan instead of forcing the document into a path
|
|
15
15
|
mirror. This does not authorize renaming formal files outside the current task.
|
|
16
16
|
|
|
17
|
-
A coherent document can directly suggest one target.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
A coherent document can directly suggest one target. Split distinct reader tasks
|
|
18
|
+
or lifecycles; combine sources when they answer the same task. A shared broad
|
|
19
|
+
label such as development or operations does not make all its procedures one
|
|
20
|
+
summary. Neither file nor heading count determines article count. Choose batches
|
|
21
|
+
by dependencies and useful shared reading, not source or skill identity. Do not
|
|
22
|
+
create per-member dispositions or a separate semantic graph.
|
|
22
23
|
|
|
23
24
|
Submit article targets, questions, authorized sources and batches through the
|
|
24
25
|
current planning schema. Keep remaining investigation in pending_scopes when
|
|
25
|
-
only part is ready.
|
|
26
|
+
only part is ready. Referencing one section does not settle a source's other
|
|
27
|
+
useful tasks; describe those in the existing plan. An unread source is unfinished,
|
|
28
|
+
not implicitly excluded.
|
|
26
29
|
Missing essential evidence remains a scoped gap. Long-term exclusions need
|
|
27
30
|
the applicable user authorization.
|
|
28
31
|
|