@c4a/context-cli 0.7.29 → 0.7.30
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 +12 -0
- package/README.zh-CN.md +8 -0
- package/cli.js +89 -10
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context-inspect-search.md +59 -21
- package/plugins/claude/skills/context-inspect-search/SKILL.md +59 -21
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context-inspect-search/SKILL.md +59 -21
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context-inspect-search.md +59 -21
- package/plugins/cursor/skills/context-inspect-search/SKILL.md +59 -21
- package/plugins/skills/context-inspect-search/SKILL.md +59 -21
- package/providers/context/manifest.json +11 -11
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/dialogue/document-capture.md +8 -0
- package/providers/context/resources/manuals/guides/lark-resources.md +17 -1
- package/providers/context/resources/procedures/document-capture.md +88 -14
- package/providers/context/resources/procedures/source-capture-detailed.md +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local runtime and Agent integration for traceable knowledge production",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@c4a/agent-graph": "0.3.0",
|
|
27
|
-
"@c4a/context": "0.7.
|
|
28
|
-
"@c4a/extract": "0.7.
|
|
29
|
-
"@c4a/extract-contract": "0.7.
|
|
30
|
-
"@c4a/extract-go": "0.7.
|
|
31
|
-
"@c4a/extract-mdx": "0.7.
|
|
32
|
-
"@c4a/extract-proto": "0.7.
|
|
33
|
-
"@c4a/extract-rush": "0.7.
|
|
34
|
-
"@c4a/extract-sql": "0.7.
|
|
35
|
-
"@c4a/extract-style": "0.7.
|
|
36
|
-
"@c4a/extract-thrift": "0.7.
|
|
37
|
-
"@c4a/extract-ts": "0.7.
|
|
27
|
+
"@c4a/context": "0.7.30",
|
|
28
|
+
"@c4a/extract": "0.7.30",
|
|
29
|
+
"@c4a/extract-contract": "0.7.30",
|
|
30
|
+
"@c4a/extract-go": "0.7.30",
|
|
31
|
+
"@c4a/extract-mdx": "0.7.30",
|
|
32
|
+
"@c4a/extract-proto": "0.7.30",
|
|
33
|
+
"@c4a/extract-rush": "0.7.30",
|
|
34
|
+
"@c4a/extract-sql": "0.7.30",
|
|
35
|
+
"@c4a/extract-style": "0.7.30",
|
|
36
|
+
"@c4a/extract-thrift": "0.7.30",
|
|
37
|
+
"@c4a/extract-ts": "0.7.30",
|
|
38
38
|
"@mermaid-js/layout-elk": "0.2.0",
|
|
39
39
|
"commander": "^11.0.0",
|
|
40
40
|
"fast-xml-parser": "^5.10.1",
|
package/plugins/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.30
|
|
@@ -29,9 +29,9 @@ registrations, snapshots, tasks, approvals or user checkouts.
|
|
|
29
29
|
Resolve `CONTEXT_QUERY_SOURCE_MODE` from the host or Bot instance configuration
|
|
30
30
|
before choosing the first retrieval path. Supported values are:
|
|
31
31
|
|
|
32
|
-
- `repo-first` (default):
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
- `repo-first` (default): search approved `knowledge/` in the configured knowledge
|
|
33
|
+
workspace first; trace authorized original sources only for material gaps.
|
|
34
|
+
Use an available package when approved knowledge is unavailable.
|
|
35
35
|
- `package-first`: inspect the selected package first, then use its recorded
|
|
36
36
|
workspace or repository sources for missing, stale or disputed evidence.
|
|
37
37
|
- `dual`: inspect the package and repository paths concurrently, then reconcile
|
|
@@ -45,8 +45,10 @@ sources and identify only gaps that affect the answer.
|
|
|
45
45
|
## Search available material according to the configured mode
|
|
46
46
|
|
|
47
47
|
Apply `CONTEXT_QUERY_SOURCE_MODE` before starting retrieval. In `repo-first`,
|
|
48
|
-
start with
|
|
49
|
-
|
|
48
|
+
start with approved knowledge, not original-code checkout preparation. With
|
|
49
|
+
readable `knowledge/`, do not probe `dist/`, build inventories or installed
|
|
50
|
+
packages: distribution output is not a query prerequisite. An explicit request
|
|
51
|
+
to investigate delivered content is an exception. In `package-first`, start with
|
|
50
52
|
the selected readable package. In `dual`, start both paths concurrently. Search
|
|
51
53
|
each selected path as soon as it is readable; tool checks and authorized
|
|
52
54
|
upgrades must not block independent reading. If a configured primary path is
|
|
@@ -66,9 +68,11 @@ missing, use the host's configured, authorized package retrieval mechanism while
|
|
|
66
68
|
other reading continues. Only check or prepare tools needed for the next actual
|
|
67
69
|
operation; installation failure does not block independent local retrieval.
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
use `knowledge/structure.yaml`
|
|
71
|
-
|
|
71
|
+
Search relevant `knowledge/` paths using business terms, symbols and synonyms,
|
|
72
|
+
then read matching sections in context; use `knowledge/structure.yaml` when
|
|
73
|
+
navigation or associations are needed, not as an exhaustive preflight. In
|
|
74
|
+
package-first or dual mode, approved knowledge can resolve gaps or freshness
|
|
75
|
+
questions in delivered material. Delivered
|
|
72
76
|
content may lag approved knowledge; they are not independent corroboration.
|
|
73
77
|
Candidates and temporary reports are not approved pages. A search miss does not
|
|
74
78
|
prove a capability is absent. Do not build merely to answer a query; a separately
|
|
@@ -78,8 +82,11 @@ When package or approved knowledge leaves a gap, directly trace relevant sources
|
|
|
78
82
|
without asking whether to deepen the query. Use available document, code-search
|
|
79
83
|
or extraction tools within the authorized scope, recording source identity and
|
|
80
84
|
version. Prepare sources while continuing other reading.
|
|
81
|
-
One failed source blocks only dependent claims.
|
|
82
|
-
|
|
85
|
+
One failed source blocks only dependent claims. If the read knowledge supports
|
|
86
|
+
the requested conclusion, its conditions and scope, answer without restoring
|
|
87
|
+
code or checking every associated source. Missing mechanisms, conflicting facts
|
|
88
|
+
or unsupported current-behavior claims still require targeted investigation;
|
|
89
|
+
an article title, search snippet or unread citation is not sufficient evidence.
|
|
83
90
|
|
|
84
91
|
## Trace and retrieve only relevant sources
|
|
85
92
|
|
|
@@ -90,18 +97,23 @@ registry is not a mandatory intermediate step. If the source identity or version
|
|
|
90
97
|
cannot be established, retain package-grounded findings and qualify attribution;
|
|
91
98
|
do not invent a repository or equate current source with the package's baseline.
|
|
92
99
|
|
|
93
|
-
|
|
100
|
+
Only when tracing a delivered page and a build inventory is already available, map its
|
|
94
101
|
`dist_path` through `approved_knowledge.files` to its `approved_path`, relative
|
|
95
|
-
to the workspace's `knowledge/` root.
|
|
96
|
-
`knowledge/structure.yaml`
|
|
102
|
+
to the workspace's `knowledge/` root. For directly read approved pages, skip this
|
|
103
|
+
mapping entirely. Follow relevant associations in `knowledge/structure.yaml`
|
|
104
|
+
and `sources/*/index.yaml` only when source tracing is needed. Without a reliable mapping,
|
|
97
105
|
continue package retrieval and follow explicit source references where available.
|
|
98
106
|
Do not guess originals from similar filenames or claim attribution without
|
|
99
107
|
checking the referenced material.
|
|
100
108
|
|
|
101
109
|
Use the repository and recorded commit identified by the package or workspace
|
|
102
110
|
as the source baseline.
|
|
103
|
-
|
|
104
|
-
and local changes
|
|
111
|
+
Before reusing a checkout for source reads, group checks of remote, commit,
|
|
112
|
+
module coverage and local changes. Reuse those findings within this response
|
|
113
|
+
instead of checking again before each search or file read. Recheck affected
|
|
114
|
+
facts if the checkout/ref changes, sparse scope expands or there is evidence of
|
|
115
|
+
concurrent edits; do not treat a previous response's checks as current. Do not
|
|
116
|
+
reset user checkouts or change their sparse configuration.
|
|
105
117
|
Missing code goes into a reusable query-owned path such as
|
|
106
118
|
`.tmp/context-inspect/<host>/<repository-path>/<commit>/`, separate from user
|
|
107
119
|
checkouts and production-managed sources. Use safe, credential-free path
|
|
@@ -130,10 +142,24 @@ capture/recovery actions. Production recovery gates do not block this independen
|
|
|
130
142
|
inspection. Preserve unavailable-evidence gaps rather than changing production
|
|
131
143
|
state to get past them.
|
|
132
144
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
Batch independent searches and related file reads once paths are known, such as
|
|
146
|
+
the entrypoint, state update and controlling render logic for one mechanism.
|
|
147
|
+
Read enough surrounding context and follow unresolved imports or calls; batching
|
|
148
|
+
must not truncate decisive evidence or turn a partial read into a complete audit.
|
|
149
|
+
Reuse already read evidence rather than rereading it to prepare each tool call.
|
|
150
|
+
|
|
151
|
+
Let evidence sufficiency determine whether a version comparison is needed.
|
|
152
|
+
When the available knowledge or identified baseline code resolves the question,
|
|
153
|
+
answer without fetching the default branch, recovering a second checkout or
|
|
154
|
+
reading history merely to confirm freshness. Compare narrowly when uncertainty,
|
|
155
|
+
conflicting evidence, suspected changes or an explicit version-comparison request
|
|
156
|
+
makes it useful. A question about current behavior requires judging whether the
|
|
157
|
+
available evidence supports that claim, not automatically comparing every branch.
|
|
158
|
+
Retain necessary source reads; do not equate a recorded baseline or branch HEAD
|
|
159
|
+
with a verified live deployment. When comparing, use actual relevant diffs,
|
|
160
|
+
including relevant local changes; current code is not a substitute for the baseline.
|
|
161
|
+
Mention a missing comparison only when it limits the answer.
|
|
162
|
+
For documents, notes and sessions, read saved bodies and necessary
|
|
137
163
|
attachments; fetch missing accessible material within scope. A summary is not a
|
|
138
164
|
full transcript, an unread link is not evidence, and current remote content does
|
|
139
165
|
not prove a historical snapshot.
|
|
@@ -166,13 +192,25 @@ limitation. Do not dump internal reasoning, runtime identifiers or routine
|
|
|
166
192
|
version comparisons. Explain only differences affecting the answer; hashes may
|
|
167
193
|
appear in source URLs without requiring a separate version audit in the prose.
|
|
168
194
|
|
|
169
|
-
|
|
170
|
-
|
|
195
|
+
Collect citation targets after the relevant evidence is established and resolve
|
|
196
|
+
them in one batch using the host's existing link resolver when available. Reuse
|
|
197
|
+
known workspace, repository and site parameters; do not rediscover them per link.
|
|
198
|
+
If later evidence adds targets, resolve only those missing from the results.
|
|
199
|
+
Without a host resolver, use an already available `context-site-map.json` from
|
|
200
|
+
the selected package or website output. Do not search for `dist/` merely to
|
|
201
|
+
obtain links for readable approved knowledge. Match `pages[].package_path` or `approved_path`, and
|
|
171
202
|
resolve `site_path` against `site_url` without prepending `base` again. Cite only
|
|
172
203
|
matched pages, deduplicate links and do not invent anchors. If mapping is absent
|
|
173
204
|
or invalid, retain local citations. Do not build, publish or probe remote sites
|
|
174
205
|
just to format citations; a local map is not proof of the current online content.
|
|
175
206
|
|
|
207
|
+
Once the requested questions are supported or genuinely unavailable evidence is
|
|
208
|
+
clearly bounded, synthesize the final answer directly. Do not add another planning,
|
|
209
|
+
freshness-audit or summary round just to prepare it. Preserve necessary mechanisms,
|
|
210
|
+
exceptions, citations and verification limits; fewer preparation steps must not
|
|
211
|
+
mean weaker evidence or omitted questions. Host delivery and receipt requirements
|
|
212
|
+
still apply, without repeating the completed investigation.
|
|
213
|
+
|
|
176
214
|
Suggest a knowledge update only with supporting evidence: identify the affected
|
|
177
215
|
page or gap, proposed change and bounded source scope. Check neighboring content
|
|
178
216
|
before proposing a new page. Only after user acceptance, hand the evidence and
|
|
@@ -28,9 +28,9 @@ registrations, snapshots, tasks, approvals or user checkouts.
|
|
|
28
28
|
Resolve `CONTEXT_QUERY_SOURCE_MODE` from the host or Bot instance configuration
|
|
29
29
|
before choosing the first retrieval path. Supported values are:
|
|
30
30
|
|
|
31
|
-
- `repo-first` (default):
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
- `repo-first` (default): search approved `knowledge/` in the configured knowledge
|
|
32
|
+
workspace first; trace authorized original sources only for material gaps.
|
|
33
|
+
Use an available package when approved knowledge is unavailable.
|
|
34
34
|
- `package-first`: inspect the selected package first, then use its recorded
|
|
35
35
|
workspace or repository sources for missing, stale or disputed evidence.
|
|
36
36
|
- `dual`: inspect the package and repository paths concurrently, then reconcile
|
|
@@ -44,8 +44,10 @@ sources and identify only gaps that affect the answer.
|
|
|
44
44
|
## Search available material according to the configured mode
|
|
45
45
|
|
|
46
46
|
Apply `CONTEXT_QUERY_SOURCE_MODE` before starting retrieval. In `repo-first`,
|
|
47
|
-
start with
|
|
48
|
-
|
|
47
|
+
start with approved knowledge, not original-code checkout preparation. With
|
|
48
|
+
readable `knowledge/`, do not probe `dist/`, build inventories or installed
|
|
49
|
+
packages: distribution output is not a query prerequisite. An explicit request
|
|
50
|
+
to investigate delivered content is an exception. In `package-first`, start with
|
|
49
51
|
the selected readable package. In `dual`, start both paths concurrently. Search
|
|
50
52
|
each selected path as soon as it is readable; tool checks and authorized
|
|
51
53
|
upgrades must not block independent reading. If a configured primary path is
|
|
@@ -65,9 +67,11 @@ missing, use the host's configured, authorized package retrieval mechanism while
|
|
|
65
67
|
other reading continues. Only check or prepare tools needed for the next actual
|
|
66
68
|
operation; installation failure does not block independent local retrieval.
|
|
67
69
|
|
|
68
|
-
|
|
69
|
-
use `knowledge/structure.yaml`
|
|
70
|
-
|
|
70
|
+
Search relevant `knowledge/` paths using business terms, symbols and synonyms,
|
|
71
|
+
then read matching sections in context; use `knowledge/structure.yaml` when
|
|
72
|
+
navigation or associations are needed, not as an exhaustive preflight. In
|
|
73
|
+
package-first or dual mode, approved knowledge can resolve gaps or freshness
|
|
74
|
+
questions in delivered material. Delivered
|
|
71
75
|
content may lag approved knowledge; they are not independent corroboration.
|
|
72
76
|
Candidates and temporary reports are not approved pages. A search miss does not
|
|
73
77
|
prove a capability is absent. Do not build merely to answer a query; a separately
|
|
@@ -77,8 +81,11 @@ When package or approved knowledge leaves a gap, directly trace relevant sources
|
|
|
77
81
|
without asking whether to deepen the query. Use available document, code-search
|
|
78
82
|
or extraction tools within the authorized scope, recording source identity and
|
|
79
83
|
version. Prepare sources while continuing other reading.
|
|
80
|
-
One failed source blocks only dependent claims.
|
|
81
|
-
|
|
84
|
+
One failed source blocks only dependent claims. If the read knowledge supports
|
|
85
|
+
the requested conclusion, its conditions and scope, answer without restoring
|
|
86
|
+
code or checking every associated source. Missing mechanisms, conflicting facts
|
|
87
|
+
or unsupported current-behavior claims still require targeted investigation;
|
|
88
|
+
an article title, search snippet or unread citation is not sufficient evidence.
|
|
82
89
|
|
|
83
90
|
## Trace and retrieve only relevant sources
|
|
84
91
|
|
|
@@ -89,18 +96,23 @@ registry is not a mandatory intermediate step. If the source identity or version
|
|
|
89
96
|
cannot be established, retain package-grounded findings and qualify attribution;
|
|
90
97
|
do not invent a repository or equate current source with the package's baseline.
|
|
91
98
|
|
|
92
|
-
|
|
99
|
+
Only when tracing a delivered page and a build inventory is already available, map its
|
|
93
100
|
`dist_path` through `approved_knowledge.files` to its `approved_path`, relative
|
|
94
|
-
to the workspace's `knowledge/` root.
|
|
95
|
-
`knowledge/structure.yaml`
|
|
101
|
+
to the workspace's `knowledge/` root. For directly read approved pages, skip this
|
|
102
|
+
mapping entirely. Follow relevant associations in `knowledge/structure.yaml`
|
|
103
|
+
and `sources/*/index.yaml` only when source tracing is needed. Without a reliable mapping,
|
|
96
104
|
continue package retrieval and follow explicit source references where available.
|
|
97
105
|
Do not guess originals from similar filenames or claim attribution without
|
|
98
106
|
checking the referenced material.
|
|
99
107
|
|
|
100
108
|
Use the repository and recorded commit identified by the package or workspace
|
|
101
109
|
as the source baseline.
|
|
102
|
-
|
|
103
|
-
and local changes
|
|
110
|
+
Before reusing a checkout for source reads, group checks of remote, commit,
|
|
111
|
+
module coverage and local changes. Reuse those findings within this response
|
|
112
|
+
instead of checking again before each search or file read. Recheck affected
|
|
113
|
+
facts if the checkout/ref changes, sparse scope expands or there is evidence of
|
|
114
|
+
concurrent edits; do not treat a previous response's checks as current. Do not
|
|
115
|
+
reset user checkouts or change their sparse configuration.
|
|
104
116
|
Missing code goes into a reusable query-owned path such as
|
|
105
117
|
`.tmp/context-inspect/<host>/<repository-path>/<commit>/`, separate from user
|
|
106
118
|
checkouts and production-managed sources. Use safe, credential-free path
|
|
@@ -129,10 +141,24 @@ capture/recovery actions. Production recovery gates do not block this independen
|
|
|
129
141
|
inspection. Preserve unavailable-evidence gaps rather than changing production
|
|
130
142
|
state to get past them.
|
|
131
143
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
144
|
+
Batch independent searches and related file reads once paths are known, such as
|
|
145
|
+
the entrypoint, state update and controlling render logic for one mechanism.
|
|
146
|
+
Read enough surrounding context and follow unresolved imports or calls; batching
|
|
147
|
+
must not truncate decisive evidence or turn a partial read into a complete audit.
|
|
148
|
+
Reuse already read evidence rather than rereading it to prepare each tool call.
|
|
149
|
+
|
|
150
|
+
Let evidence sufficiency determine whether a version comparison is needed.
|
|
151
|
+
When the available knowledge or identified baseline code resolves the question,
|
|
152
|
+
answer without fetching the default branch, recovering a second checkout or
|
|
153
|
+
reading history merely to confirm freshness. Compare narrowly when uncertainty,
|
|
154
|
+
conflicting evidence, suspected changes or an explicit version-comparison request
|
|
155
|
+
makes it useful. A question about current behavior requires judging whether the
|
|
156
|
+
available evidence supports that claim, not automatically comparing every branch.
|
|
157
|
+
Retain necessary source reads; do not equate a recorded baseline or branch HEAD
|
|
158
|
+
with a verified live deployment. When comparing, use actual relevant diffs,
|
|
159
|
+
including relevant local changes; current code is not a substitute for the baseline.
|
|
160
|
+
Mention a missing comparison only when it limits the answer.
|
|
161
|
+
For documents, notes and sessions, read saved bodies and necessary
|
|
136
162
|
attachments; fetch missing accessible material within scope. A summary is not a
|
|
137
163
|
full transcript, an unread link is not evidence, and current remote content does
|
|
138
164
|
not prove a historical snapshot.
|
|
@@ -165,13 +191,25 @@ limitation. Do not dump internal reasoning, runtime identifiers or routine
|
|
|
165
191
|
version comparisons. Explain only differences affecting the answer; hashes may
|
|
166
192
|
appear in source URLs without requiring a separate version audit in the prose.
|
|
167
193
|
|
|
168
|
-
|
|
169
|
-
|
|
194
|
+
Collect citation targets after the relevant evidence is established and resolve
|
|
195
|
+
them in one batch using the host's existing link resolver when available. Reuse
|
|
196
|
+
known workspace, repository and site parameters; do not rediscover them per link.
|
|
197
|
+
If later evidence adds targets, resolve only those missing from the results.
|
|
198
|
+
Without a host resolver, use an already available `context-site-map.json` from
|
|
199
|
+
the selected package or website output. Do not search for `dist/` merely to
|
|
200
|
+
obtain links for readable approved knowledge. Match `pages[].package_path` or `approved_path`, and
|
|
170
201
|
resolve `site_path` against `site_url` without prepending `base` again. Cite only
|
|
171
202
|
matched pages, deduplicate links and do not invent anchors. If mapping is absent
|
|
172
203
|
or invalid, retain local citations. Do not build, publish or probe remote sites
|
|
173
204
|
just to format citations; a local map is not proof of the current online content.
|
|
174
205
|
|
|
206
|
+
Once the requested questions are supported or genuinely unavailable evidence is
|
|
207
|
+
clearly bounded, synthesize the final answer directly. Do not add another planning,
|
|
208
|
+
freshness-audit or summary round just to prepare it. Preserve necessary mechanisms,
|
|
209
|
+
exceptions, citations and verification limits; fewer preparation steps must not
|
|
210
|
+
mean weaker evidence or omitted questions. Host delivery and receipt requirements
|
|
211
|
+
still apply, without repeating the completed investigation.
|
|
212
|
+
|
|
175
213
|
Suggest a knowledge update only with supporting evidence: identify the affected
|
|
176
214
|
page or gap, proposed change and bounded source scope. Check neighboring content
|
|
177
215
|
before proposing a new page. Only after user acceptance, hand the evidence and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c4a",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.30",
|
|
4
4
|
"description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
|
|
5
5
|
"author": { "name": "c4a" },
|
|
6
6
|
"homepage": "https://github.com/context4ai/c4a",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"skills": "./skills/",
|
|
11
11
|
"interface": {
|
|
12
12
|
"displayName": "C4A Context",
|
|
13
|
-
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.
|
|
13
|
+
"shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.30",
|
|
14
14
|
"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.",
|
|
15
15
|
"developerName": "c4a",
|
|
16
16
|
"category": "Productivity",
|
|
@@ -28,9 +28,9 @@ registrations, snapshots, tasks, approvals or user checkouts.
|
|
|
28
28
|
Resolve `CONTEXT_QUERY_SOURCE_MODE` from the host or Bot instance configuration
|
|
29
29
|
before choosing the first retrieval path. Supported values are:
|
|
30
30
|
|
|
31
|
-
- `repo-first` (default):
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
- `repo-first` (default): search approved `knowledge/` in the configured knowledge
|
|
32
|
+
workspace first; trace authorized original sources only for material gaps.
|
|
33
|
+
Use an available package when approved knowledge is unavailable.
|
|
34
34
|
- `package-first`: inspect the selected package first, then use its recorded
|
|
35
35
|
workspace or repository sources for missing, stale or disputed evidence.
|
|
36
36
|
- `dual`: inspect the package and repository paths concurrently, then reconcile
|
|
@@ -44,8 +44,10 @@ sources and identify only gaps that affect the answer.
|
|
|
44
44
|
## Search available material according to the configured mode
|
|
45
45
|
|
|
46
46
|
Apply `CONTEXT_QUERY_SOURCE_MODE` before starting retrieval. In `repo-first`,
|
|
47
|
-
start with
|
|
48
|
-
|
|
47
|
+
start with approved knowledge, not original-code checkout preparation. With
|
|
48
|
+
readable `knowledge/`, do not probe `dist/`, build inventories or installed
|
|
49
|
+
packages: distribution output is not a query prerequisite. An explicit request
|
|
50
|
+
to investigate delivered content is an exception. In `package-first`, start with
|
|
49
51
|
the selected readable package. In `dual`, start both paths concurrently. Search
|
|
50
52
|
each selected path as soon as it is readable; tool checks and authorized
|
|
51
53
|
upgrades must not block independent reading. If a configured primary path is
|
|
@@ -65,9 +67,11 @@ missing, use the host's configured, authorized package retrieval mechanism while
|
|
|
65
67
|
other reading continues. Only check or prepare tools needed for the next actual
|
|
66
68
|
operation; installation failure does not block independent local retrieval.
|
|
67
69
|
|
|
68
|
-
|
|
69
|
-
use `knowledge/structure.yaml`
|
|
70
|
-
|
|
70
|
+
Search relevant `knowledge/` paths using business terms, symbols and synonyms,
|
|
71
|
+
then read matching sections in context; use `knowledge/structure.yaml` when
|
|
72
|
+
navigation or associations are needed, not as an exhaustive preflight. In
|
|
73
|
+
package-first or dual mode, approved knowledge can resolve gaps or freshness
|
|
74
|
+
questions in delivered material. Delivered
|
|
71
75
|
content may lag approved knowledge; they are not independent corroboration.
|
|
72
76
|
Candidates and temporary reports are not approved pages. A search miss does not
|
|
73
77
|
prove a capability is absent. Do not build merely to answer a query; a separately
|
|
@@ -77,8 +81,11 @@ When package or approved knowledge leaves a gap, directly trace relevant sources
|
|
|
77
81
|
without asking whether to deepen the query. Use available document, code-search
|
|
78
82
|
or extraction tools within the authorized scope, recording source identity and
|
|
79
83
|
version. Prepare sources while continuing other reading.
|
|
80
|
-
One failed source blocks only dependent claims.
|
|
81
|
-
|
|
84
|
+
One failed source blocks only dependent claims. If the read knowledge supports
|
|
85
|
+
the requested conclusion, its conditions and scope, answer without restoring
|
|
86
|
+
code or checking every associated source. Missing mechanisms, conflicting facts
|
|
87
|
+
or unsupported current-behavior claims still require targeted investigation;
|
|
88
|
+
an article title, search snippet or unread citation is not sufficient evidence.
|
|
82
89
|
|
|
83
90
|
## Trace and retrieve only relevant sources
|
|
84
91
|
|
|
@@ -89,18 +96,23 @@ registry is not a mandatory intermediate step. If the source identity or version
|
|
|
89
96
|
cannot be established, retain package-grounded findings and qualify attribution;
|
|
90
97
|
do not invent a repository or equate current source with the package's baseline.
|
|
91
98
|
|
|
92
|
-
|
|
99
|
+
Only when tracing a delivered page and a build inventory is already available, map its
|
|
93
100
|
`dist_path` through `approved_knowledge.files` to its `approved_path`, relative
|
|
94
|
-
to the workspace's `knowledge/` root.
|
|
95
|
-
`knowledge/structure.yaml`
|
|
101
|
+
to the workspace's `knowledge/` root. For directly read approved pages, skip this
|
|
102
|
+
mapping entirely. Follow relevant associations in `knowledge/structure.yaml`
|
|
103
|
+
and `sources/*/index.yaml` only when source tracing is needed. Without a reliable mapping,
|
|
96
104
|
continue package retrieval and follow explicit source references where available.
|
|
97
105
|
Do not guess originals from similar filenames or claim attribution without
|
|
98
106
|
checking the referenced material.
|
|
99
107
|
|
|
100
108
|
Use the repository and recorded commit identified by the package or workspace
|
|
101
109
|
as the source baseline.
|
|
102
|
-
|
|
103
|
-
and local changes
|
|
110
|
+
Before reusing a checkout for source reads, group checks of remote, commit,
|
|
111
|
+
module coverage and local changes. Reuse those findings within this response
|
|
112
|
+
instead of checking again before each search or file read. Recheck affected
|
|
113
|
+
facts if the checkout/ref changes, sparse scope expands or there is evidence of
|
|
114
|
+
concurrent edits; do not treat a previous response's checks as current. Do not
|
|
115
|
+
reset user checkouts or change their sparse configuration.
|
|
104
116
|
Missing code goes into a reusable query-owned path such as
|
|
105
117
|
`.tmp/context-inspect/<host>/<repository-path>/<commit>/`, separate from user
|
|
106
118
|
checkouts and production-managed sources. Use safe, credential-free path
|
|
@@ -129,10 +141,24 @@ capture/recovery actions. Production recovery gates do not block this independen
|
|
|
129
141
|
inspection. Preserve unavailable-evidence gaps rather than changing production
|
|
130
142
|
state to get past them.
|
|
131
143
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
144
|
+
Batch independent searches and related file reads once paths are known, such as
|
|
145
|
+
the entrypoint, state update and controlling render logic for one mechanism.
|
|
146
|
+
Read enough surrounding context and follow unresolved imports or calls; batching
|
|
147
|
+
must not truncate decisive evidence or turn a partial read into a complete audit.
|
|
148
|
+
Reuse already read evidence rather than rereading it to prepare each tool call.
|
|
149
|
+
|
|
150
|
+
Let evidence sufficiency determine whether a version comparison is needed.
|
|
151
|
+
When the available knowledge or identified baseline code resolves the question,
|
|
152
|
+
answer without fetching the default branch, recovering a second checkout or
|
|
153
|
+
reading history merely to confirm freshness. Compare narrowly when uncertainty,
|
|
154
|
+
conflicting evidence, suspected changes or an explicit version-comparison request
|
|
155
|
+
makes it useful. A question about current behavior requires judging whether the
|
|
156
|
+
available evidence supports that claim, not automatically comparing every branch.
|
|
157
|
+
Retain necessary source reads; do not equate a recorded baseline or branch HEAD
|
|
158
|
+
with a verified live deployment. When comparing, use actual relevant diffs,
|
|
159
|
+
including relevant local changes; current code is not a substitute for the baseline.
|
|
160
|
+
Mention a missing comparison only when it limits the answer.
|
|
161
|
+
For documents, notes and sessions, read saved bodies and necessary
|
|
136
162
|
attachments; fetch missing accessible material within scope. A summary is not a
|
|
137
163
|
full transcript, an unread link is not evidence, and current remote content does
|
|
138
164
|
not prove a historical snapshot.
|
|
@@ -165,13 +191,25 @@ limitation. Do not dump internal reasoning, runtime identifiers or routine
|
|
|
165
191
|
version comparisons. Explain only differences affecting the answer; hashes may
|
|
166
192
|
appear in source URLs without requiring a separate version audit in the prose.
|
|
167
193
|
|
|
168
|
-
|
|
169
|
-
|
|
194
|
+
Collect citation targets after the relevant evidence is established and resolve
|
|
195
|
+
them in one batch using the host's existing link resolver when available. Reuse
|
|
196
|
+
known workspace, repository and site parameters; do not rediscover them per link.
|
|
197
|
+
If later evidence adds targets, resolve only those missing from the results.
|
|
198
|
+
Without a host resolver, use an already available `context-site-map.json` from
|
|
199
|
+
the selected package or website output. Do not search for `dist/` merely to
|
|
200
|
+
obtain links for readable approved knowledge. Match `pages[].package_path` or `approved_path`, and
|
|
170
201
|
resolve `site_path` against `site_url` without prepending `base` again. Cite only
|
|
171
202
|
matched pages, deduplicate links and do not invent anchors. If mapping is absent
|
|
172
203
|
or invalid, retain local citations. Do not build, publish or probe remote sites
|
|
173
204
|
just to format citations; a local map is not proof of the current online content.
|
|
174
205
|
|
|
206
|
+
Once the requested questions are supported or genuinely unavailable evidence is
|
|
207
|
+
clearly bounded, synthesize the final answer directly. Do not add another planning,
|
|
208
|
+
freshness-audit or summary round just to prepare it. Preserve necessary mechanisms,
|
|
209
|
+
exceptions, citations and verification limits; fewer preparation steps must not
|
|
210
|
+
mean weaker evidence or omitted questions. Host delivery and receipt requirements
|
|
211
|
+
still apply, without repeating the completed investigation.
|
|
212
|
+
|
|
175
213
|
Suggest a knowledge update only with supporting evidence: identify the affected
|
|
176
214
|
page or gap, proposed change and bounded source scope. Check neighboring content
|
|
177
215
|
before proposing a new page. Only after user acceptance, hand the evidence and
|