@c4a/context-cli 0.6.13 → 0.6.16

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 (52) hide show
  1. package/README.md +5 -0
  2. package/README.zh-CN.md +5 -0
  3. package/cli.js +6109 -3390
  4. package/docs/document-optimization.md +62 -0
  5. package/docs/document-optimization.zh-CN.md +54 -0
  6. package/package.json +3 -2
  7. package/plugins/VERSION +1 -1
  8. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  9. package/plugins/claude/commands/context.md +37 -2
  10. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  11. package/plugins/codex/skills/context/SKILL.md +37 -2
  12. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  13. package/plugins/cursor/commands/c4a-context.md +37 -2
  14. package/plugins/skills/c4a-context/SKILL.md +37 -2
  15. package/providers/context/actions/optimize-documents.yaml +6 -0
  16. package/providers/context/actions/preview-extraction-batch.yaml +5 -0
  17. package/providers/context/actions/revise-document.yaml +5 -0
  18. package/providers/context/codes.yaml +6 -0
  19. package/providers/context/graphs/workspace.yaml +118 -3
  20. package/providers/context/manifest.json +242 -26
  21. package/providers/context/provider.yaml +1 -1
  22. package/providers/context/resources/dialogue/code-extraction.md +39 -9
  23. package/providers/context/resources/dialogue/package-output.md +5 -8
  24. package/providers/context/resources/manuals/guides/package-outputs.md +14 -20
  25. package/providers/context/resources/manuals/reference/code-extractors.md +75 -18
  26. package/providers/context/resources/manuals/reference/package-templates.md +26 -33
  27. package/providers/context/resources/manuals/reference/project-api.md +156 -14
  28. package/providers/context/resources/manuals/reference/template-variables.md +4 -3
  29. package/providers/context/resources/procedures/close-and-build.md +5 -0
  30. package/providers/context/resources/procedures/code-extraction.md +86 -13
  31. package/providers/context/resources/procedures/document-optimization.md +43 -0
  32. package/providers/context/resources/procedures/document-revision.md +31 -0
  33. package/providers/context/resources/procedures/package-output.md +10 -34
  34. package/providers/context/resources/semantic/code-index/classification.md +267 -0
  35. package/providers/context/resources/semantic/code-index/templates/adapter.md +109 -0
  36. package/providers/context/resources/semantic/code-index/templates/api-service.md +116 -0
  37. package/providers/context/resources/semantic/code-index/templates/background-runtime.md +109 -0
  38. package/providers/context/resources/semantic/code-index/templates/cli-tool.md +129 -0
  39. package/providers/context/resources/semantic/code-index/templates/contract-source.md +73 -0
  40. package/providers/context/resources/semantic/code-index/templates/cross-module-chain.md +78 -0
  41. package/providers/context/resources/semantic/code-index/templates/derived-source.md +116 -0
  42. package/providers/context/resources/semantic/code-index/templates/domain-service.md +109 -0
  43. package/providers/context/resources/semantic/code-index/templates/event-flow.md +62 -0
  44. package/providers/context/resources/semantic/code-index/templates/monorepo-container.md +124 -0
  45. package/providers/context/resources/semantic/code-index/templates/persistence-boundary.md +56 -0
  46. package/providers/context/resources/semantic/code-index/templates/plugin-extension.md +52 -0
  47. package/providers/context/resources/semantic/code-index/templates/protocol-boundary.md +88 -0
  48. package/providers/context/resources/semantic/code-index/templates/sdk-library.md +132 -0
  49. package/providers/context/resources/semantic/code-index/templates/web-application.md +145 -0
  50. package/providers/context/resources/views/document-optimization-current.yaml +6 -0
  51. package/providers/context/resources/views/extraction-preview.yaml +6 -0
  52. package/providers/context/schemas/document-optimization-decisions.schema.json +34 -0
@@ -308,6 +308,7 @@ nodes:
308
308
  required:
309
309
  - resources/procedures/code-extraction.md
310
310
  - resources/dialogue/code-extraction.md
311
+ - resources/semantic/code-index/classification.md
311
312
  - resources/views/source-current.yaml
312
313
  recommended:
313
314
  - resources/procedures/source-capture-detailed.md
@@ -324,6 +325,7 @@ nodes:
324
325
  - resources/procedures/code-extraction.md
325
326
  - resources/dialogue/human-gates.md
326
327
  - resources/dialogue/code-extraction.md
328
+ - resources/semantic/code-index/classification.md
327
329
  - resources/dialogue/workflow-mode-after-capture.md
328
330
  - resources/views/source-current.yaml
329
331
  recommended:
@@ -336,11 +338,94 @@ nodes:
336
338
  satisfiedBy:
337
339
  - path: extract.declarations_complete
338
340
  equals: true
341
+ - path: extract.plans_complete
342
+ equals: true
339
343
  resources:
340
344
  required:
341
345
  - resources/procedures/project-configuration.md
346
+ - resources/procedures/code-extraction.md
347
+ - resources/semantic/code-index/classification.md
348
+ - resources/views/source-current.yaml
349
+ - resources/manuals/reference/code-extractors.md
350
+ recommended:
351
+ - resources/semantic/code-index/templates/web-application.md
352
+ - resources/semantic/code-index/templates/api-service.md
353
+ - resources/semantic/code-index/templates/domain-service.md
354
+ - resources/semantic/code-index/templates/background-runtime.md
355
+ - resources/semantic/code-index/templates/sdk-library.md
356
+ - resources/semantic/code-index/templates/cli-tool.md
357
+ - resources/semantic/code-index/templates/adapter.md
358
+ - resources/semantic/code-index/templates/monorepo-container.md
359
+ - resources/semantic/code-index/templates/contract-source.md
360
+ - resources/semantic/code-index/templates/derived-source.md
361
+ - resources/semantic/code-index/templates/protocol-boundary.md
362
+ - resources/semantic/code-index/templates/event-flow.md
363
+ - resources/semantic/code-index/templates/persistence-boundary.md
364
+ - resources/semantic/code-index/templates/plugin-extension.md
365
+ - resources/semantic/code-index/templates/cross-module-chain.md
366
+
367
+ - id: resolve-extraction-capability
368
+ kind: gate
369
+ reasonCode: route.extract.capability-required
370
+ resolutionAction: actions/configure-code-extraction.yaml
371
+ gate:
372
+ id: extraction-capability
373
+ prompt: Revise the batch index plan or provide the missing material required for reliable code knowledge.
374
+ authority: context.extraction-capability
375
+ delegatable: false
376
+ satisfiedBy:
377
+ - path: extract.capability_clear
378
+ equals: true
379
+ resources:
380
+ required:
342
381
  - resources/procedures/code-extraction.md
343
382
  - resources/views/source-current.yaml
383
+ recommended:
384
+ - resources/manuals/reference/code-extractors.md
385
+
386
+ - id: preview-extraction-batch
387
+ kind: action
388
+ reasonCode: route.extract.preview-required
389
+ action: actions/preview-extraction-batch.yaml
390
+ satisfiedBy:
391
+ - path: extract.preview_current
392
+ equals: true
393
+ resources:
394
+ required:
395
+ - resources/procedures/code-extraction.md
396
+ - resources/views/source-current.yaml
397
+
398
+ - id: repair-extraction-ownership
399
+ kind: action
400
+ reasonCode: route.extract.ownership-required
401
+ action: actions/configure-code-extraction.yaml
402
+ satisfiedBy:
403
+ - path: extract.ownership_clear
404
+ equals: true
405
+ resources:
406
+ required:
407
+ - resources/procedures/project-configuration.md
408
+ - resources/procedures/code-extraction.md
409
+ - resources/views/extraction-preview.yaml
410
+ - resources/manuals/reference/code-extractors.md
411
+
412
+ - id: revise-extraction-scale
413
+ kind: gate
414
+ reasonCode: route.extract.scale-limit-exceeded
415
+ resolutionAction: actions/configure-code-extraction.yaml
416
+ gate:
417
+ id: extraction-scale
418
+ prompt: Revise the affected index units before formal extraction writes candidates.
419
+ authority: context.extraction-scale
420
+ delegatable: false
421
+ satisfiedBy:
422
+ - path: extract.scale_clear
423
+ equals: true
424
+ resources:
425
+ required:
426
+ - resources/procedures/code-extraction.md
427
+ - resources/views/extraction-preview.yaml
428
+ recommended:
344
429
  - resources/manuals/reference/code-extractors.md
345
430
 
346
431
  - id: extract-next
@@ -538,6 +623,30 @@ nodes:
538
623
  - resources/views/package-current.yaml
539
624
  - resources/manuals/reference/package-templates.md
540
625
 
626
+ - id: optimize-documents
627
+ kind: action
628
+ reasonCode: route.document-optimization.pending
629
+ action: actions/optimize-documents.yaml
630
+ satisfiedBy:
631
+ - path: document_optimization.current
632
+ equals: true
633
+ resources:
634
+ required:
635
+ - resources/procedures/document-optimization.md
636
+ - resources/views/document-optimization-current.yaml
637
+
638
+ - id: revise-document
639
+ kind: action
640
+ reasonCode: route.document-revision.requested
641
+ action: actions/revise-document.yaml
642
+ satisfiedBy:
643
+ - path: document_optimization.revision_requested
644
+ exists: false
645
+ resources:
646
+ required:
647
+ - resources/procedures/document-revision.md
648
+ - resources/views/document-optimization-current.yaml
649
+
541
650
  - id: flush-logs-after-build
542
651
  kind: action
543
652
  reasonCode: route.logs.delivery-pending
@@ -567,14 +676,19 @@ edges:
567
676
  - { from: compile-next, to: resolve-review-identities }
568
677
  - { from: resolve-review-identities, to: resume-review-current-batch }
569
678
  - { from: resume-review-current-batch, to: apply-resumed-review, kind: gatedBy }
570
- - { from: apply-resumed-review, to: choose-source-boundary }
679
+ - { from: apply-resumed-review, to: revise-document }
680
+ - { from: revise-document, to: choose-source-boundary }
571
681
  - { from: choose-source-boundary, to: ensure-repository-sources, kind: gatedBy }
572
682
  - { from: ensure-repository-sources, to: configure-document-capture }
573
683
  - { from: configure-document-capture, to: authorize-document-capture }
574
684
  - { from: authorize-document-capture, to: capture-next, kind: gatedBy }
575
685
  - { from: capture-next, to: choose-extraction-scope }
576
686
  - { from: choose-extraction-scope, to: configure-code-extraction, kind: gatedBy }
577
- - { from: configure-code-extraction, to: extract-next }
687
+ - { from: configure-code-extraction, to: resolve-extraction-capability }
688
+ - { from: resolve-extraction-capability, to: preview-extraction-batch }
689
+ - { from: preview-extraction-batch, to: repair-extraction-ownership }
690
+ - { from: repair-extraction-ownership, to: revise-extraction-scale }
691
+ - { from: revise-extraction-scale, to: extract-next }
578
692
  - { from: extract-next, to: review-current-batch }
579
693
  - { from: review-current-batch, to: apply-managed-review, kind: gatedBy }
580
694
  - { from: apply-managed-review, to: classify-document }
@@ -583,6 +697,7 @@ edges:
583
697
  - { from: align-next, to: choose-package-output }
584
698
  - { from: choose-package-output, to: configure-package-output, kind: gatedBy }
585
699
  - { from: configure-package-output, to: review-package-template }
586
- - { from: review-package-template, to: build-next, kind: gatedBy }
700
+ - { from: review-package-template, to: optimize-documents, kind: gatedBy }
701
+ - { from: optimize-documents, to: build-next }
587
702
  - { from: build-next, to: flush-logs-after-build }
588
703
  - { from: flush-logs-after-build, to: current-scope-complete }
@@ -2,14 +2,14 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.6.13"
5
+ "version": "0.6.16"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
9
9
  {
10
10
  "id": "workspace",
11
11
  "path": "graphs/workspace.yaml",
12
- "digest": "sha256:cfc421a1bb645eac298883f59137e363d36d3c053a6e658324533eafaafea6c7"
12
+ "digest": "sha256:29a79bec9dd37dd9973fb43ab52090c90e4ba8cf734f85729a56ac1f0ec22f91"
13
13
  }
14
14
  ],
15
15
  "actions": [
@@ -118,6 +118,16 @@
118
118
  "path": "actions/materialize-context-view.yaml",
119
119
  "digest": "sha256:0ed6b73b6a31324575fd10fb8f2067c8381609ab272a031b326080506105d115"
120
120
  },
121
+ {
122
+ "id": "optimize-documents",
123
+ "path": "actions/optimize-documents.yaml",
124
+ "digest": "sha256:5fdd18379742c20af19e8a92e2591dd85270fa4a6af5d0adea6430b43049bebb"
125
+ },
126
+ {
127
+ "id": "preview-extraction-batch",
128
+ "path": "actions/preview-extraction-batch.yaml",
129
+ "digest": "sha256:45e6d8c60a56fde6f1049193b12b708da86a8a67a65b0b1f7cb6034faec44c57"
130
+ },
121
131
  {
122
132
  "id": "reconcile-review-identities",
123
133
  "path": "actions/reconcile-review-identities.yaml",
@@ -147,9 +157,24 @@
147
157
  "id": "restore-repository-sources",
148
158
  "path": "actions/restore-repository-sources.yaml",
149
159
  "digest": "sha256:8e44f0dc15ac9b0eea8af62dcefd315d7c03a52dab1cda373537d275ae7383dc"
160
+ },
161
+ {
162
+ "id": "revise-document",
163
+ "path": "actions/revise-document.yaml",
164
+ "digest": "sha256:605d3808670582da69881c9a2eb8b0de21b42fbdd04c1d04a8fa93513989a08e"
150
165
  }
151
166
  ],
152
167
  "resources": [
168
+ {
169
+ "id": "context.document-optimization-current",
170
+ "path": "resources/views/document-optimization-current.yaml",
171
+ "digest": "sha256:5c98530b9a33e09445ae5e0f18151f66975106b6a0d327ac27875497c2f7f76d"
172
+ },
173
+ {
174
+ "id": "context.extraction-preview",
175
+ "path": "resources/views/extraction-preview.yaml",
176
+ "digest": "sha256:a23c819c1bddd48485088897179c2487b7509ef25894480b64995a34c9f235be"
177
+ },
153
178
  {
154
179
  "id": "context.package-current",
155
180
  "path": "resources/views/package-current.yaml",
@@ -168,22 +193,22 @@
168
193
  {
169
194
  "id": "context.sdk.package-outputs",
170
195
  "path": "resources/manuals/guides/package-outputs.md",
171
- "digest": "sha256:dd3df4cb96de157a559218341c87220582467791fb343d8d3c69a3198f2bead0"
196
+ "digest": "sha256:c490d63f03b11c87e62a2e44b2338db04a08f62bdafccb044063a717895bbbf4"
172
197
  },
173
198
  {
174
199
  "id": "context.sdk.package-templates",
175
200
  "path": "resources/manuals/reference/package-templates.md",
176
- "digest": "sha256:e4052794b74c240c0de85d3ba89ba44144fd282426f478359b2defa4d0c6217b"
201
+ "digest": "sha256:c119fae47e848d5a0103bcc7215a1372515139896d5ca8a852ebd8e58b8c854a"
177
202
  },
178
203
  {
179
204
  "id": "context.sdk.project-api",
180
205
  "path": "resources/manuals/reference/project-api.md",
181
- "digest": "sha256:0e21f44f9c239abf176da0bcf4094f2b1d0085f31240b97b85a8b44d4633493e"
206
+ "digest": "sha256:27c0f9523fa747c9acf7438f8e05993a83ea9942e962bfa0dfb879c9f927cc28"
182
207
  },
183
208
  {
184
209
  "id": "context.sdk.template-variables",
185
210
  "path": "resources/manuals/reference/template-variables.md",
186
- "digest": "sha256:7986bb2604ea72fd485d9b6188974f225139a2c976b2bb37e28d2b43f09868d2"
211
+ "digest": "sha256:5087857c14f9c632aa2b942055cf47043de1e26a455cdec5796b690d41795074"
187
212
  },
188
213
  {
189
214
  "id": "context.semantic.align.align-gates",
@@ -253,7 +278,7 @@
253
278
  {
254
279
  "id": "dialogue.code-extraction",
255
280
  "path": "resources/dialogue/code-extraction.md",
256
- "digest": "sha256:5aa3b52dcf9cd9bd058baea7dadb123eead162a1ec7640cc63c7c359e71922e3"
281
+ "digest": "sha256:51e32fb63913c21e09c94df2d600d289ca60e248a760aa35eea246e8794dbc49"
257
282
  },
258
283
  {
259
284
  "id": "dialogue.document-capture",
@@ -283,7 +308,7 @@
283
308
  {
284
309
  "id": "dialogue.package-output",
285
310
  "path": "resources/dialogue/package-output.md",
286
- "digest": "sha256:fcf64598b9a505c764ae4984ff4d63a7010143f749ba454e220752f737306612"
311
+ "digest": "sha256:c1be66f24931afeed69877a22104146c5f2a5885c98b7ac7df02328f6f083a63"
287
312
  },
288
313
  {
289
314
  "id": "dialogue.repository-source-recovery",
@@ -313,17 +338,17 @@
313
338
  {
314
339
  "id": "manual.reference.code-extractors",
315
340
  "path": "resources/manuals/reference/code-extractors.md",
316
- "digest": "sha256:6af1a9ea24b59bd5cb2125296e04d19529c92be77910e5e768251e6c4bd7902a"
341
+ "digest": "sha256:1f5de051d819b29a6c8c2692f08cd8ce9556b6e36b83d1f0cad1295e03865f4f"
317
342
  },
318
343
  {
319
344
  "id": "procedure.close-and-build",
320
345
  "path": "resources/procedures/close-and-build.md",
321
- "digest": "sha256:752f44bbb939cfb2c48bf3900069412b7c8c0eb135bb2b539de6b1e6862e847c"
346
+ "digest": "sha256:bc7cc7aea9fd6796e71cc50c8ec44446fc7c576c9ddc3f6fe080d25488838592"
322
347
  },
323
348
  {
324
349
  "id": "procedure.code-extraction",
325
350
  "path": "resources/procedures/code-extraction.md",
326
- "digest": "sha256:dce77b35fffbba51cbc8d6bc9d2abe2924229a6248eb9585b90e63ab9e05e37a"
351
+ "digest": "sha256:b32901a9b4e68f4b8518e3bc6dfa00a010cc0a14ee2dbdf2b454948791c8a058"
327
352
  },
328
353
  {
329
354
  "id": "procedure.document-capture",
@@ -335,6 +360,16 @@
335
360
  "path": "resources/procedures/document-classification.md",
336
361
  "digest": "sha256:d248973ad671531334cd0c9f485183f40a9a78d0125186de5980d6b1099b940b"
337
362
  },
363
+ {
364
+ "id": "procedure.document-optimization",
365
+ "path": "resources/procedures/document-optimization.md",
366
+ "digest": "sha256:b8ede87f762fb75e9432c69a8c3e6f37ff4558cf3c29748b8fa3a7cc9be45860"
367
+ },
368
+ {
369
+ "id": "procedure.document-revision",
370
+ "path": "resources/procedures/document-revision.md",
371
+ "digest": "sha256:91fff957375ef933a4ae9a613c505c5e93b30474e46c6c1bc283ac9b15c70aa7"
372
+ },
338
373
  {
339
374
  "id": "procedure.evidence-maintenance",
340
375
  "path": "resources/procedures/evidence-maintenance.md",
@@ -348,7 +383,7 @@
348
383
  {
349
384
  "id": "procedure.package-output",
350
385
  "path": "resources/procedures/package-output.md",
351
- "digest": "sha256:d75ccce1f1eccff40c1d0d66319286d6a940ca0b83c185a1cee1bebd65b3af8e"
386
+ "digest": "sha256:8338cc65714380d0d340809f16b2ee1d92285a8a86f75396805d13021b450c96"
352
387
  },
353
388
  {
354
389
  "id": "procedure.project-configuration",
@@ -389,9 +424,94 @@
389
424
  "id": "procedure.verify-and-repair",
390
425
  "path": "resources/procedures/verify-and-repair.md",
391
426
  "digest": "sha256:177d6c1f1f263f5c502ad197067a7fdcd5165d7ce2ac778672201c9f90888589"
427
+ },
428
+ {
429
+ "id": "semantic.code-index.classification",
430
+ "path": "resources/semantic/code-index/classification.md",
431
+ "digest": "sha256:5a00d66a5703406531c4ff107eb416e3e825dc2413f394beef672fabb95e764d"
432
+ },
433
+ {
434
+ "id": "semantic.code-index.template.adapter",
435
+ "path": "resources/semantic/code-index/templates/adapter.md",
436
+ "digest": "sha256:7f54c6a4de6147f0ab0a28e013857210dc36b59e0e4b4593310b732aadbe2574"
437
+ },
438
+ {
439
+ "id": "semantic.code-index.template.api-service",
440
+ "path": "resources/semantic/code-index/templates/api-service.md",
441
+ "digest": "sha256:e9843ae065afe0f3f323c6c8c71c9c40cfbc400093f0d1495019446916d4b5b9"
442
+ },
443
+ {
444
+ "id": "semantic.code-index.template.background-runtime",
445
+ "path": "resources/semantic/code-index/templates/background-runtime.md",
446
+ "digest": "sha256:c55d2fcdc32c5d54e7dcafb62bfeac81df5c2b06a17c60173d7ef9664336a65c"
447
+ },
448
+ {
449
+ "id": "semantic.code-index.template.cli-tool",
450
+ "path": "resources/semantic/code-index/templates/cli-tool.md",
451
+ "digest": "sha256:3583ba14e27f64d72d9ddc8b9eb5dba26ab119600b4cb28b3cbb28d6edb55f63"
452
+ },
453
+ {
454
+ "id": "semantic.code-index.template.contract-source",
455
+ "path": "resources/semantic/code-index/templates/contract-source.md",
456
+ "digest": "sha256:a78950484eb39e3acbbfa7b69e3b8902224c93c72510bfcb181e2e4c7158206a"
457
+ },
458
+ {
459
+ "id": "semantic.code-index.template.cross-module-chain",
460
+ "path": "resources/semantic/code-index/templates/cross-module-chain.md",
461
+ "digest": "sha256:03dc0d936757a55b7c3cf75054a2694023064bed8032dee4d78e6d68a0d6c1bb"
462
+ },
463
+ {
464
+ "id": "semantic.code-index.template.derived-source",
465
+ "path": "resources/semantic/code-index/templates/derived-source.md",
466
+ "digest": "sha256:7d7e5b3f1fa1f958cd4fd30ae8c74e869c0d948dc6a2a36b92b8ebe2f7192be8"
467
+ },
468
+ {
469
+ "id": "semantic.code-index.template.domain-service",
470
+ "path": "resources/semantic/code-index/templates/domain-service.md",
471
+ "digest": "sha256:ce5dfc9e1db5f10efdd9b42cc80de6a5a18d44af9d7093f1defcd7547380f2a3"
472
+ },
473
+ {
474
+ "id": "semantic.code-index.template.event-flow",
475
+ "path": "resources/semantic/code-index/templates/event-flow.md",
476
+ "digest": "sha256:6688bf567042409e183b7dd7fc677c8b2c1c02066ac8a5b53cfaeadfc5cad6c0"
477
+ },
478
+ {
479
+ "id": "semantic.code-index.template.monorepo-container",
480
+ "path": "resources/semantic/code-index/templates/monorepo-container.md",
481
+ "digest": "sha256:f53271c2725322a003d44a40109d1a36e345ea4646f3bfb0cbd80c260dc1de78"
482
+ },
483
+ {
484
+ "id": "semantic.code-index.template.persistence-boundary",
485
+ "path": "resources/semantic/code-index/templates/persistence-boundary.md",
486
+ "digest": "sha256:f25ddc9529c3ccc3c62969c1c3263db674dc307402a73884832c750287eefe67"
487
+ },
488
+ {
489
+ "id": "semantic.code-index.template.plugin-extension",
490
+ "path": "resources/semantic/code-index/templates/plugin-extension.md",
491
+ "digest": "sha256:c804e6dab4ef46761d1cf66fdf8713944d0af48156b8ddefd1f0288f2d0c56af"
492
+ },
493
+ {
494
+ "id": "semantic.code-index.template.protocol-boundary",
495
+ "path": "resources/semantic/code-index/templates/protocol-boundary.md",
496
+ "digest": "sha256:2057242d57d92cf17a98f2148fe6cd7bde3d3f6a9d49288bab21b26e1f0d40cf"
497
+ },
498
+ {
499
+ "id": "semantic.code-index.template.sdk-library",
500
+ "path": "resources/semantic/code-index/templates/sdk-library.md",
501
+ "digest": "sha256:a14f7b006512c00b20194460914aeb2a3e3e345a7ad70859797f4da62bcd265e"
502
+ },
503
+ {
504
+ "id": "semantic.code-index.template.web-application",
505
+ "path": "resources/semantic/code-index/templates/web-application.md",
506
+ "digest": "sha256:44af201561876b8f97ee18284ca76dd1aa8ce8db7800639adacaca49c4bf7dc3"
392
507
  }
393
508
  ],
394
509
  "schemas": [
510
+ {
511
+ "id": "schemas/document-optimization-decisions.schema.json",
512
+ "path": "schemas/document-optimization-decisions.schema.json",
513
+ "digest": "sha256:a21e84dbdcc2bad85970ebc3171f58176b480f751076745424c7f9742b972f5c"
514
+ },
395
515
  {
396
516
  "id": "schemas/evidence-maintenance-input.schema.json",
397
517
  "path": "schemas/evidence-maintenance-input.schema.json",
@@ -498,6 +618,14 @@
498
618
  "path": "actions/materialize-context-view.yaml",
499
619
  "digest": "sha256:0ed6b73b6a31324575fd10fb8f2067c8381609ab272a031b326080506105d115"
500
620
  },
621
+ {
622
+ "path": "actions/optimize-documents.yaml",
623
+ "digest": "sha256:5fdd18379742c20af19e8a92e2591dd85270fa4a6af5d0adea6430b43049bebb"
624
+ },
625
+ {
626
+ "path": "actions/preview-extraction-batch.yaml",
627
+ "digest": "sha256:45e6d8c60a56fde6f1049193b12b708da86a8a67a65b0b1f7cb6034faec44c57"
628
+ },
501
629
  {
502
630
  "path": "actions/reconcile-review-identities.yaml",
503
631
  "digest": "sha256:aac95cc46ab8a872bdd1cc53cf64e3bbde8cf8dc2d6e9ac2da82bb378fcfe09a"
@@ -522,17 +650,21 @@
522
650
  "path": "actions/restore-repository-sources.yaml",
523
651
  "digest": "sha256:8e44f0dc15ac9b0eea8af62dcefd315d7c03a52dab1cda373537d275ae7383dc"
524
652
  },
653
+ {
654
+ "path": "actions/revise-document.yaml",
655
+ "digest": "sha256:605d3808670582da69881c9a2eb8b0de21b42fbdd04c1d04a8fa93513989a08e"
656
+ },
525
657
  {
526
658
  "path": "codes.yaml",
527
- "digest": "sha256:407f6e1db47a4248f082cb347058a76547c0c6888511de5e49182afcd7a78eb6"
659
+ "digest": "sha256:d2edb3ac2599e5a5acfa1ef3bd807f23dd743d4cce10a53113a511eaf314c927"
528
660
  },
529
661
  {
530
662
  "path": "graphs/workspace.yaml",
531
- "digest": "sha256:cfc421a1bb645eac298883f59137e363d36d3c053a6e658324533eafaafea6c7"
663
+ "digest": "sha256:29a79bec9dd37dd9973fb43ab52090c90e4ba8cf734f85729a56ac1f0ec22f91"
532
664
  },
533
665
  {
534
666
  "path": "provider.yaml",
535
- "digest": "sha256:bd0a404a8371bc9641e21e54e8ebcaf5bedfa508ee8ab378db127d91413c3930"
667
+ "digest": "sha256:a718b8f16af0967f020ef9211a3da1507369a0889d7faf88beeaed536a0256ce"
536
668
  },
537
669
  {
538
670
  "path": "resources/diagnostics/projection-stale.md",
@@ -548,7 +680,7 @@
548
680
  },
549
681
  {
550
682
  "path": "resources/dialogue/code-extraction.md",
551
- "digest": "sha256:5aa3b52dcf9cd9bd058baea7dadb123eead162a1ec7640cc63c7c359e71922e3"
683
+ "digest": "sha256:51e32fb63913c21e09c94df2d600d289ca60e248a760aa35eea246e8794dbc49"
552
684
  },
553
685
  {
554
686
  "path": "resources/dialogue/document-capture.md",
@@ -572,7 +704,7 @@
572
704
  },
573
705
  {
574
706
  "path": "resources/dialogue/package-output.md",
575
- "digest": "sha256:fcf64598b9a505c764ae4984ff4d63a7010143f749ba454e220752f737306612"
707
+ "digest": "sha256:c1be66f24931afeed69877a22104146c5f2a5885c98b7ac7df02328f6f083a63"
576
708
  },
577
709
  {
578
710
  "path": "resources/dialogue/repository-source-recovery.md",
@@ -600,31 +732,31 @@
600
732
  },
601
733
  {
602
734
  "path": "resources/manuals/guides/package-outputs.md",
603
- "digest": "sha256:dd3df4cb96de157a559218341c87220582467791fb343d8d3c69a3198f2bead0"
735
+ "digest": "sha256:c490d63f03b11c87e62a2e44b2338db04a08f62bdafccb044063a717895bbbf4"
604
736
  },
605
737
  {
606
738
  "path": "resources/manuals/reference/code-extractors.md",
607
- "digest": "sha256:6af1a9ea24b59bd5cb2125296e04d19529c92be77910e5e768251e6c4bd7902a"
739
+ "digest": "sha256:1f5de051d819b29a6c8c2692f08cd8ce9556b6e36b83d1f0cad1295e03865f4f"
608
740
  },
609
741
  {
610
742
  "path": "resources/manuals/reference/package-templates.md",
611
- "digest": "sha256:e4052794b74c240c0de85d3ba89ba44144fd282426f478359b2defa4d0c6217b"
743
+ "digest": "sha256:c119fae47e848d5a0103bcc7215a1372515139896d5ca8a852ebd8e58b8c854a"
612
744
  },
613
745
  {
614
746
  "path": "resources/manuals/reference/project-api.md",
615
- "digest": "sha256:0e21f44f9c239abf176da0bcf4094f2b1d0085f31240b97b85a8b44d4633493e"
747
+ "digest": "sha256:27c0f9523fa747c9acf7438f8e05993a83ea9942e962bfa0dfb879c9f927cc28"
616
748
  },
617
749
  {
618
750
  "path": "resources/manuals/reference/template-variables.md",
619
- "digest": "sha256:7986bb2604ea72fd485d9b6188974f225139a2c976b2bb37e28d2b43f09868d2"
751
+ "digest": "sha256:5087857c14f9c632aa2b942055cf47043de1e26a455cdec5796b690d41795074"
620
752
  },
621
753
  {
622
754
  "path": "resources/procedures/close-and-build.md",
623
- "digest": "sha256:752f44bbb939cfb2c48bf3900069412b7c8c0eb135bb2b539de6b1e6862e847c"
755
+ "digest": "sha256:bc7cc7aea9fd6796e71cc50c8ec44446fc7c576c9ddc3f6fe080d25488838592"
624
756
  },
625
757
  {
626
758
  "path": "resources/procedures/code-extraction.md",
627
- "digest": "sha256:dce77b35fffbba51cbc8d6bc9d2abe2924229a6248eb9585b90e63ab9e05e37a"
759
+ "digest": "sha256:b32901a9b4e68f4b8518e3bc6dfa00a010cc0a14ee2dbdf2b454948791c8a058"
628
760
  },
629
761
  {
630
762
  "path": "resources/procedures/document-capture.md",
@@ -634,6 +766,14 @@
634
766
  "path": "resources/procedures/document-classification.md",
635
767
  "digest": "sha256:d248973ad671531334cd0c9f485183f40a9a78d0125186de5980d6b1099b940b"
636
768
  },
769
+ {
770
+ "path": "resources/procedures/document-optimization.md",
771
+ "digest": "sha256:b8ede87f762fb75e9432c69a8c3e6f37ff4558cf3c29748b8fa3a7cc9be45860"
772
+ },
773
+ {
774
+ "path": "resources/procedures/document-revision.md",
775
+ "digest": "sha256:91fff957375ef933a4ae9a613c505c5e93b30474e46c6c1bc283ac9b15c70aa7"
776
+ },
637
777
  {
638
778
  "path": "resources/procedures/evidence-maintenance.md",
639
779
  "digest": "sha256:2bceea12b4430586e0b6bbaef46dc32ad999f9d2cc373b7db77a88f5fca93ccc"
@@ -644,7 +784,7 @@
644
784
  },
645
785
  {
646
786
  "path": "resources/procedures/package-output.md",
647
- "digest": "sha256:d75ccce1f1eccff40c1d0d66319286d6a940ca0b83c185a1cee1bebd65b3af8e"
787
+ "digest": "sha256:8338cc65714380d0d340809f16b2ee1d92285a8a86f75396805d13021b450c96"
648
788
  },
649
789
  {
650
790
  "path": "resources/procedures/project-configuration.md",
@@ -694,10 +834,82 @@
694
834
  "path": "resources/semantic/align/structure-planning.md",
695
835
  "digest": "sha256:73d7d1cb49ad27691e7baa29003fa1736fc8a7036c6094f40f733e62fd3c1aad"
696
836
  },
837
+ {
838
+ "path": "resources/semantic/code-index/classification.md",
839
+ "digest": "sha256:5a00d66a5703406531c4ff107eb416e3e825dc2413f394beef672fabb95e764d"
840
+ },
841
+ {
842
+ "path": "resources/semantic/code-index/templates/adapter.md",
843
+ "digest": "sha256:7f54c6a4de6147f0ab0a28e013857210dc36b59e0e4b4593310b732aadbe2574"
844
+ },
845
+ {
846
+ "path": "resources/semantic/code-index/templates/api-service.md",
847
+ "digest": "sha256:e9843ae065afe0f3f323c6c8c71c9c40cfbc400093f0d1495019446916d4b5b9"
848
+ },
849
+ {
850
+ "path": "resources/semantic/code-index/templates/background-runtime.md",
851
+ "digest": "sha256:c55d2fcdc32c5d54e7dcafb62bfeac81df5c2b06a17c60173d7ef9664336a65c"
852
+ },
853
+ {
854
+ "path": "resources/semantic/code-index/templates/cli-tool.md",
855
+ "digest": "sha256:3583ba14e27f64d72d9ddc8b9eb5dba26ab119600b4cb28b3cbb28d6edb55f63"
856
+ },
857
+ {
858
+ "path": "resources/semantic/code-index/templates/contract-source.md",
859
+ "digest": "sha256:a78950484eb39e3acbbfa7b69e3b8902224c93c72510bfcb181e2e4c7158206a"
860
+ },
861
+ {
862
+ "path": "resources/semantic/code-index/templates/cross-module-chain.md",
863
+ "digest": "sha256:03dc0d936757a55b7c3cf75054a2694023064bed8032dee4d78e6d68a0d6c1bb"
864
+ },
865
+ {
866
+ "path": "resources/semantic/code-index/templates/derived-source.md",
867
+ "digest": "sha256:7d7e5b3f1fa1f958cd4fd30ae8c74e869c0d948dc6a2a36b92b8ebe2f7192be8"
868
+ },
869
+ {
870
+ "path": "resources/semantic/code-index/templates/domain-service.md",
871
+ "digest": "sha256:ce5dfc9e1db5f10efdd9b42cc80de6a5a18d44af9d7093f1defcd7547380f2a3"
872
+ },
873
+ {
874
+ "path": "resources/semantic/code-index/templates/event-flow.md",
875
+ "digest": "sha256:6688bf567042409e183b7dd7fc677c8b2c1c02066ac8a5b53cfaeadfc5cad6c0"
876
+ },
877
+ {
878
+ "path": "resources/semantic/code-index/templates/monorepo-container.md",
879
+ "digest": "sha256:f53271c2725322a003d44a40109d1a36e345ea4646f3bfb0cbd80c260dc1de78"
880
+ },
881
+ {
882
+ "path": "resources/semantic/code-index/templates/persistence-boundary.md",
883
+ "digest": "sha256:f25ddc9529c3ccc3c62969c1c3263db674dc307402a73884832c750287eefe67"
884
+ },
885
+ {
886
+ "path": "resources/semantic/code-index/templates/plugin-extension.md",
887
+ "digest": "sha256:c804e6dab4ef46761d1cf66fdf8713944d0af48156b8ddefd1f0288f2d0c56af"
888
+ },
889
+ {
890
+ "path": "resources/semantic/code-index/templates/protocol-boundary.md",
891
+ "digest": "sha256:2057242d57d92cf17a98f2148fe6cd7bde3d3f6a9d49288bab21b26e1f0d40cf"
892
+ },
893
+ {
894
+ "path": "resources/semantic/code-index/templates/sdk-library.md",
895
+ "digest": "sha256:a14f7b006512c00b20194460914aeb2a3e3e345a7ad70859797f4da62bcd265e"
896
+ },
897
+ {
898
+ "path": "resources/semantic/code-index/templates/web-application.md",
899
+ "digest": "sha256:44af201561876b8f97ee18284ca76dd1aa8ce8db7800639adacaca49c4bf7dc3"
900
+ },
697
901
  {
698
902
  "path": "resources/semantic/compile/index.md",
699
903
  "digest": "sha256:4145f6bdc2855e354d00d311448584c3ed4b73849fc1277a2ed72d7be84e9e7c"
700
904
  },
905
+ {
906
+ "path": "resources/views/document-optimization-current.yaml",
907
+ "digest": "sha256:5c98530b9a33e09445ae5e0f18151f66975106b6a0d327ac27875497c2f7f76d"
908
+ },
909
+ {
910
+ "path": "resources/views/extraction-preview.yaml",
911
+ "digest": "sha256:a23c819c1bddd48485088897179c2487b7509ef25894480b64995a34c9f235be"
912
+ },
701
913
  {
702
914
  "path": "resources/views/package-current.yaml",
703
915
  "digest": "sha256:c7910ed553b962612159700cb05f81cd01e03f72facc1a60bc2603698702ecb6"
@@ -726,6 +938,10 @@
726
938
  "path": "resources/views/workspace-current.yaml",
727
939
  "digest": "sha256:712d146a1538e47d09c0cfad9961c5ad1c7ebb7e9796a52c0b0bdb6007f50dc1"
728
940
  },
941
+ {
942
+ "path": "schemas/document-optimization-decisions.schema.json",
943
+ "digest": "sha256:a21e84dbdcc2bad85970ebc3171f58176b480f751076745424c7f9742b972f5c"
944
+ },
729
945
  {
730
946
  "path": "schemas/evidence-maintenance-input.schema.json",
731
947
  "digest": "sha256:7d1c0a9cc20200b90495bea82337d2c0e42d9eff3c1e3eeeb7258226fd96c542"
@@ -750,5 +966,5 @@
750
966
  "graphDependencies": {
751
967
  "workspace": []
752
968
  },
753
- "digest": "sha256:b327de9553d4b71e182a98f87dd48e39ed5d24cb4f6aeaf50b7373b75368bf9a"
969
+ "digest": "sha256:4f5bf521512a167b2e78c2649deeffa11f2dff07a137970bb1027b164697bc6f"
754
970
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.6.13
3
+ version: 0.6.16
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs: