@c4a/context-cli 0.6.2 → 0.6.4

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.
Files changed (50) hide show
  1. package/README.md +51 -3
  2. package/README.zh-CN.md +43 -3
  3. package/cli.js +32849 -28177
  4. package/docs/context-debug-event-v1.schema.json +31 -0
  5. package/docs/context-debug-replay-v1.schema.json +33 -0
  6. package/docs/debug-tracing.md +94 -0
  7. package/docs/quickstart.md +1 -1
  8. package/package.json +6 -3
  9. package/plugins/VERSION +1 -1
  10. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  11. package/plugins/claude/commands/continue.md +19 -14
  12. package/plugins/claude/commands/init.md +3 -1
  13. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  14. package/plugins/codex/skills/continue/SKILL.md +19 -14
  15. package/plugins/codex/skills/init/SKILL.md +2 -0
  16. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  17. package/plugins/cursor/commands/context-continue.md +19 -14
  18. package/plugins/cursor/commands/context-init.md +3 -1
  19. package/plugins/skills/context-continue/SKILL.md +19 -14
  20. package/plugins/skills/context-init/SKILL.md +2 -0
  21. package/providers/context/actions/inspect-code-extraction.yaml +5 -0
  22. package/providers/context/actions/inspect-repository-recovery.yaml +6 -0
  23. package/providers/context/actions/reconcile-review-identities.yaml +5 -0
  24. package/providers/context/actions/repair-verification.yaml +3 -3
  25. package/providers/context/actions/restore-repository-sources.yaml +7 -0
  26. package/providers/context/codes.yaml +2 -1
  27. package/providers/context/graphs/workspace.yaml +51 -8
  28. package/providers/context/manifest.json +126 -45
  29. package/providers/context/provider.yaml +1 -1
  30. package/providers/context/resources/dialogue/code-extraction.md +11 -0
  31. package/providers/context/resources/dialogue/package-output.md +9 -0
  32. package/providers/context/resources/dialogue/repository-source-recovery.md +23 -0
  33. package/providers/context/resources/manuals/guides/lark-resources.md +121 -0
  34. package/providers/context/resources/manuals/guides/package-outputs.md +22 -0
  35. package/providers/context/resources/manuals/reference/code-extractors.md +94 -0
  36. package/providers/context/resources/manuals/reference/package-templates.md +52 -0
  37. package/providers/context/resources/manuals/reference/project-api.md +78 -7
  38. package/providers/context/resources/procedures/close-and-build.md +5 -3
  39. package/providers/context/resources/procedures/code-extraction.md +23 -0
  40. package/providers/context/resources/procedures/document-capture.md +5 -1
  41. package/providers/context/resources/procedures/knowledge-review.md +10 -0
  42. package/providers/context/resources/procedures/package-output.md +21 -0
  43. package/providers/context/resources/procedures/repository-source-recovery.md +43 -0
  44. package/providers/context/resources/procedures/source-capture-detailed.md +13 -0
  45. package/providers/context/resources/procedures/verify-and-repair.md +12 -0
  46. package/providers/context/resources/semantic/align/gates.md +2 -2
  47. package/providers/context/resources/semantic/align/structure-planning.md +8 -3
  48. package/providers/context/resources/views/source-boundary.yaml +6 -0
  49. package/providers/context/schemas/repository-source-recovery.schema.json +40 -0
  50. package/providers/context/actions/ensure-repository-sources.yaml +0 -5
@@ -256,9 +256,14 @@ It splits non-contiguous Section mirrors and can expand a broad cross-heading
256
256
  Section into Markdown structural groups within the same View. Apply the
257
257
  non-blocking repair hint when the groups should be independently retrievable;
258
258
  otherwise keep the Section and explain the grouping in structure review.
259
- Oversized Views still require the Agent to apply the returned child-View and contains-edge suggestions while
260
- classifying every child Node from evidence. The repair command does not resolve
261
- orphan ownership, unsupported evidence, or competing semantic groupings.
259
+ Oversized Views still require the Agent to apply the returned child-View and
260
+ contains-edge suggestions while classifying every child Node from evidence.
261
+ Those suggestions preserve Section order and place adjacent Sections into
262
+ bounded groups; `part-N` names are placeholders, not semantic titles. Rename
263
+ and classify each child from evidence instead of expanding one child View per
264
+ Section or treating the suggested grouping as a content decision. The repair
265
+ command does not resolve orphan ownership, unsupported evidence, or competing
266
+ semantic groupings.
262
267
 
263
268
  When the cited source sentence itself is uncertain, preserve that uncertainty on
264
269
  the edge with `confidence: possible` or `confidence: hypothesis`. This is only
@@ -0,0 +1,6 @@
1
+ schema: agent-graph.resource.v1
2
+ id: context.source-boundary
3
+ kind: context-view
4
+ mediaType: text/markdown
5
+ description: Stable registered source identities and boundaries without lifecycle progress.
6
+ materializer: actions/materialize-context-view.yaml
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "context.repository-source-recovery.v1",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema", "repositories"],
7
+ "properties": {
8
+ "schema": {
9
+ "const": "context.repository-source-recovery.v1"
10
+ },
11
+ "repositories": {
12
+ "type": "array",
13
+ "minItems": 1,
14
+ "items": {
15
+ "oneOf": [
16
+ {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "required": ["source", "mode", "path"],
20
+ "properties": {
21
+ "source": { "type": "string", "minLength": 1 },
22
+ "mode": { "const": "local" },
23
+ "path": { "type": "string", "minLength": 1 }
24
+ }
25
+ },
26
+ {
27
+ "type": "object",
28
+ "additionalProperties": false,
29
+ "required": ["source", "mode"],
30
+ "properties": {
31
+ "source": { "type": "string", "minLength": 1 },
32
+ "mode": { "const": "clone" },
33
+ "path": { "type": "string", "minLength": 1 }
34
+ }
35
+ }
36
+ ]
37
+ }
38
+ }
39
+ }
40
+ }
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: ensure-repository-sources
3
- runner: command
4
- effect: external
5
- command: context source ensure --format json