@c4a/context-cli 0.6.18 → 0.6.19
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 +6 -2
- package/README.zh-CN.md +5 -2
- package/cli.js +8551 -5388
- package/docs/document-optimization.md +35 -11
- package/docs/document-optimization.zh-CN.md +29 -9
- package/package.json +2 -2
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +36 -6
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +36 -6
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +36 -6
- package/plugins/skills/c4a-context/SKILL.md +36 -6
- package/providers/context/actions/apply-code-index-guidance.yaml +5 -0
- package/providers/context/actions/maintain-evidence.yaml +1 -1
- package/providers/context/actions/migrate-codeindex.yaml +5 -0
- package/providers/context/actions/register-source-batch.yaml +1 -1
- package/providers/context/actions/restore-repository-sources.yaml +1 -1
- package/providers/context/codes.yaml +2 -0
- package/providers/context/graphs/workspace.yaml +32 -2
- package/providers/context/manifest.json +76 -58
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/dialogue/code-extraction.md +12 -0
- package/providers/context/resources/dialogue/document-classification.md +1 -1
- package/providers/context/resources/dialogue/knowledge-review.md +7 -1
- package/providers/context/resources/dialogue/source-boundary.md +9 -1
- package/providers/context/resources/dialogue/workflow-mode-after-capture.md +11 -8
- package/providers/context/resources/dialogue/workflow-mode-after-creation.md +6 -4
- package/providers/context/resources/manuals/guides/lark-resources.md +7 -0
- package/providers/context/resources/manuals/guides/package-outputs.md +3 -3
- package/providers/context/resources/manuals/reference/code-extractors.md +5 -4
- package/providers/context/resources/manuals/reference/package-templates.md +18 -10
- package/providers/context/resources/manuals/reference/project-api.md +47 -22
- package/providers/context/resources/procedures/close-and-build.md +24 -9
- package/providers/context/resources/procedures/code-extraction.md +35 -11
- package/providers/context/resources/procedures/code-index-audit.md +53 -13
- package/providers/context/resources/procedures/document-capture.md +9 -0
- package/providers/context/resources/procedures/document-optimization.md +69 -21
- package/providers/context/resources/procedures/document-revision.md +11 -6
- package/providers/context/resources/procedures/knowledge-review.md +4 -1
- package/providers/context/resources/procedures/source-boundary.md +20 -8
- package/providers/context/resources/semantic/align/structure-planning.md +4 -4
- package/providers/context/resources/semantic/code-index/classification.md +8 -5
- package/providers/context/schemas/document-optimization-decisions.schema.json +29 -6
- package/providers/context/schemas/source-batch-input.schema.json +18 -3
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"schema": "agent-graph.bundle.v1",
|
|
3
3
|
"provider": {
|
|
4
4
|
"id": "c4a/context",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.19"
|
|
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:
|
|
12
|
+
"digest": "sha256:25a7b3e87b8052cdb82bccc4b91753ff9974876498d7e44781d1238c49d80925"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"actions": [
|
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
"path": "actions/align-next.yaml",
|
|
24
24
|
"digest": "sha256:8f2a7203d5b631c0b1e6cc14d4d70acbf8ac0197b3cfd19fa3111212ffb47498"
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
"id": "apply-code-index-guidance",
|
|
28
|
+
"path": "actions/apply-code-index-guidance.yaml",
|
|
29
|
+
"digest": "sha256:42dd7e82813d31421078cb977e125ffae1ec219f9512a0e3ac32f1d2aff8041a"
|
|
30
|
+
},
|
|
26
31
|
{
|
|
27
32
|
"id": "apply-forced-review",
|
|
28
33
|
"path": "actions/apply-forced-review.yaml",
|
|
@@ -116,13 +121,18 @@
|
|
|
116
121
|
{
|
|
117
122
|
"id": "maintain-evidence",
|
|
118
123
|
"path": "actions/maintain-evidence.yaml",
|
|
119
|
-
"digest": "sha256:
|
|
124
|
+
"digest": "sha256:aad5a46717dada265d01caa9f6c872ffe9428b18e7b04450a506966574448aa5"
|
|
120
125
|
},
|
|
121
126
|
{
|
|
122
127
|
"id": "materialize-context-view",
|
|
123
128
|
"path": "actions/materialize-context-view.yaml",
|
|
124
129
|
"digest": "sha256:0ed6b73b6a31324575fd10fb8f2067c8381609ab272a031b326080506105d115"
|
|
125
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"id": "migrate-codeindex",
|
|
133
|
+
"path": "actions/migrate-codeindex.yaml",
|
|
134
|
+
"digest": "sha256:984316fa010f8ce570b4c9c3db8945e0e80f7a1dfb48c3db5ba3a1bcf6383a9a"
|
|
135
|
+
},
|
|
126
136
|
{
|
|
127
137
|
"id": "optimize-documents",
|
|
128
138
|
"path": "actions/optimize-documents.yaml",
|
|
@@ -141,7 +151,7 @@
|
|
|
141
151
|
{
|
|
142
152
|
"id": "register-source-batch",
|
|
143
153
|
"path": "actions/register-source-batch.yaml",
|
|
144
|
-
"digest": "sha256:
|
|
154
|
+
"digest": "sha256:506cd677d79363035040b83c30f3444e9d41a886e9532023db6b8a17444ad951"
|
|
145
155
|
},
|
|
146
156
|
{
|
|
147
157
|
"id": "repair-project-entry",
|
|
@@ -161,7 +171,7 @@
|
|
|
161
171
|
{
|
|
162
172
|
"id": "restore-repository-sources",
|
|
163
173
|
"path": "actions/restore-repository-sources.yaml",
|
|
164
|
-
"digest": "sha256:
|
|
174
|
+
"digest": "sha256:58e40ee93d6bd1a9fe11d208fe771b576f8c5ceb05105d3e92a9aecc6b4a7fd8"
|
|
165
175
|
},
|
|
166
176
|
{
|
|
167
177
|
"id": "revise-code-index-audit",
|
|
@@ -208,22 +218,22 @@
|
|
|
208
218
|
{
|
|
209
219
|
"id": "context.sdk.lark-resources",
|
|
210
220
|
"path": "resources/manuals/guides/lark-resources.md",
|
|
211
|
-
"digest": "sha256:
|
|
221
|
+
"digest": "sha256:953950412d35dc842be1d0bcdcf6c39bd3a7d78ad0a1b6e3f66f82ca1c5f476e"
|
|
212
222
|
},
|
|
213
223
|
{
|
|
214
224
|
"id": "context.sdk.package-outputs",
|
|
215
225
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
216
|
-
"digest": "sha256:
|
|
226
|
+
"digest": "sha256:d9a279e2a683802f838d9ff1cf49a84de703e9aef7a610cb08ef04ad91bbb88a"
|
|
217
227
|
},
|
|
218
228
|
{
|
|
219
229
|
"id": "context.sdk.package-templates",
|
|
220
230
|
"path": "resources/manuals/reference/package-templates.md",
|
|
221
|
-
"digest": "sha256:
|
|
231
|
+
"digest": "sha256:9da4ee1684ffc0e1345d95567bb30566104140eb979269d3982f32f8c865eb64"
|
|
222
232
|
},
|
|
223
233
|
{
|
|
224
234
|
"id": "context.sdk.project-api",
|
|
225
235
|
"path": "resources/manuals/reference/project-api.md",
|
|
226
|
-
"digest": "sha256:
|
|
236
|
+
"digest": "sha256:b46ba47f9f0e5212c7633f9711074ee8cddbd75de50ebfab6198a9fc1aea5ee8"
|
|
227
237
|
},
|
|
228
238
|
{
|
|
229
239
|
"id": "context.sdk.template-variables",
|
|
@@ -248,7 +258,7 @@
|
|
|
248
258
|
{
|
|
249
259
|
"id": "context.semantic.align.structure-planning",
|
|
250
260
|
"path": "resources/semantic/align/structure-planning.md",
|
|
251
|
-
"digest": "sha256:
|
|
261
|
+
"digest": "sha256:2930594fe849d3e70d2746c7619cff3ebbe70851c1f00ef3396f3cdf3860949a"
|
|
252
262
|
},
|
|
253
263
|
{
|
|
254
264
|
"id": "context.semantic.compile.index",
|
|
@@ -298,7 +308,7 @@
|
|
|
298
308
|
{
|
|
299
309
|
"id": "dialogue.code-extraction",
|
|
300
310
|
"path": "resources/dialogue/code-extraction.md",
|
|
301
|
-
"digest": "sha256:
|
|
311
|
+
"digest": "sha256:be355208daf818ec81c0521f0ca0e2a05b5229531b1b9259e06afaadab17a879"
|
|
302
312
|
},
|
|
303
313
|
{
|
|
304
314
|
"id": "dialogue.document-capture",
|
|
@@ -308,7 +318,7 @@
|
|
|
308
318
|
{
|
|
309
319
|
"id": "dialogue.document-classification",
|
|
310
320
|
"path": "resources/dialogue/document-classification.md",
|
|
311
|
-
"digest": "sha256:
|
|
321
|
+
"digest": "sha256:b26f23c9d99a1287f7fd8e59f5700cdeeafca015d731455fa518825c64477f86"
|
|
312
322
|
},
|
|
313
323
|
{
|
|
314
324
|
"id": "dialogue.evidence-maintenance",
|
|
@@ -323,7 +333,7 @@
|
|
|
323
333
|
{
|
|
324
334
|
"id": "dialogue.knowledge-review",
|
|
325
335
|
"path": "resources/dialogue/knowledge-review.md",
|
|
326
|
-
"digest": "sha256:
|
|
336
|
+
"digest": "sha256:d26107888fa81b1deb664377c0486de37dd72fd6bf23330deddc835f51bafcc8"
|
|
327
337
|
},
|
|
328
338
|
{
|
|
329
339
|
"id": "dialogue.package-output",
|
|
@@ -338,7 +348,7 @@
|
|
|
338
348
|
{
|
|
339
349
|
"id": "dialogue.source-boundary",
|
|
340
350
|
"path": "resources/dialogue/source-boundary.md",
|
|
341
|
-
"digest": "sha256:
|
|
351
|
+
"digest": "sha256:15d37249d1cb2a8921247c689d81c135911b9933550120fadd8c17237c2c2c29"
|
|
342
352
|
},
|
|
343
353
|
{
|
|
344
354
|
"id": "dialogue.structure-confirmation",
|
|
@@ -348,37 +358,37 @@
|
|
|
348
358
|
{
|
|
349
359
|
"id": "dialogue.workflow-mode-after-capture",
|
|
350
360
|
"path": "resources/dialogue/workflow-mode-after-capture.md",
|
|
351
|
-
"digest": "sha256:
|
|
361
|
+
"digest": "sha256:4a7ba14b78519ee2486361641342c20ad54a2587571eb1ae1755a5a924ff9903"
|
|
352
362
|
},
|
|
353
363
|
{
|
|
354
364
|
"id": "dialogue.workflow-mode-after-creation",
|
|
355
365
|
"path": "resources/dialogue/workflow-mode-after-creation.md",
|
|
356
|
-
"digest": "sha256:
|
|
366
|
+
"digest": "sha256:37a4c4766c530baa5b7f52e543b702bed6de6506c6360a041de60571af2292ac"
|
|
357
367
|
},
|
|
358
368
|
{
|
|
359
369
|
"id": "manual.reference.code-extractors",
|
|
360
370
|
"path": "resources/manuals/reference/code-extractors.md",
|
|
361
|
-
"digest": "sha256:
|
|
371
|
+
"digest": "sha256:9d8e26914576e6d56f505520590874aabbe29c6f8ee17812bce9a5235d4a24a7"
|
|
362
372
|
},
|
|
363
373
|
{
|
|
364
374
|
"id": "procedure.close-and-build",
|
|
365
375
|
"path": "resources/procedures/close-and-build.md",
|
|
366
|
-
"digest": "sha256:
|
|
376
|
+
"digest": "sha256:cf3c635f49f42e86348009b49dcc1a6b9ee31492106419adf2bd7211c42cf469"
|
|
367
377
|
},
|
|
368
378
|
{
|
|
369
379
|
"id": "procedure.code-extraction",
|
|
370
380
|
"path": "resources/procedures/code-extraction.md",
|
|
371
|
-
"digest": "sha256:
|
|
381
|
+
"digest": "sha256:7901ad3cce9e59a7e8883ec0005883e665c1b287cca2dd1434ffaa8d833986aa"
|
|
372
382
|
},
|
|
373
383
|
{
|
|
374
384
|
"id": "procedure.code-index-audit",
|
|
375
385
|
"path": "resources/procedures/code-index-audit.md",
|
|
376
|
-
"digest": "sha256:
|
|
386
|
+
"digest": "sha256:57ceabbcd98edc1ba32e4ed45e7de7e65866d1ebee71b778f453738a8dfac7c0"
|
|
377
387
|
},
|
|
378
388
|
{
|
|
379
389
|
"id": "procedure.document-capture",
|
|
380
390
|
"path": "resources/procedures/document-capture.md",
|
|
381
|
-
"digest": "sha256:
|
|
391
|
+
"digest": "sha256:46a8231e92fcb19db7918938970ace8b4e4c22153fa8cbf0bb8100275bfbbfcf"
|
|
382
392
|
},
|
|
383
393
|
{
|
|
384
394
|
"id": "procedure.document-classification",
|
|
@@ -388,12 +398,12 @@
|
|
|
388
398
|
{
|
|
389
399
|
"id": "procedure.document-optimization",
|
|
390
400
|
"path": "resources/procedures/document-optimization.md",
|
|
391
|
-
"digest": "sha256:
|
|
401
|
+
"digest": "sha256:be1be830d2f7cc5409fcac47a43fd85c745056d705dac7c817f50bfe67ba15b3"
|
|
392
402
|
},
|
|
393
403
|
{
|
|
394
404
|
"id": "procedure.document-revision",
|
|
395
405
|
"path": "resources/procedures/document-revision.md",
|
|
396
|
-
"digest": "sha256:
|
|
406
|
+
"digest": "sha256:a46498f66070485c019ed70c84640ed12f6374371ca9e6df0f42b93da69c051b"
|
|
397
407
|
},
|
|
398
408
|
{
|
|
399
409
|
"id": "procedure.evidence-maintenance",
|
|
@@ -403,7 +413,7 @@
|
|
|
403
413
|
{
|
|
404
414
|
"id": "procedure.knowledge-review",
|
|
405
415
|
"path": "resources/procedures/knowledge-review.md",
|
|
406
|
-
"digest": "sha256:
|
|
416
|
+
"digest": "sha256:ced7bb8dec7315e7f025df5492caab7f34b1134a6f476ca0e096a436ad956e36"
|
|
407
417
|
},
|
|
408
418
|
{
|
|
409
419
|
"id": "procedure.package-output",
|
|
@@ -438,7 +448,7 @@
|
|
|
438
448
|
{
|
|
439
449
|
"id": "procedure.source-boundary",
|
|
440
450
|
"path": "resources/procedures/source-boundary.md",
|
|
441
|
-
"digest": "sha256:
|
|
451
|
+
"digest": "sha256:de7e9c274cb180295a65c494abadf0d78cce864c5770fe77f481567339d36d31"
|
|
442
452
|
},
|
|
443
453
|
{
|
|
444
454
|
"id": "procedure.source-capture-detailed",
|
|
@@ -453,7 +463,7 @@
|
|
|
453
463
|
{
|
|
454
464
|
"id": "semantic.code-index.classification",
|
|
455
465
|
"path": "resources/semantic/code-index/classification.md",
|
|
456
|
-
"digest": "sha256:
|
|
466
|
+
"digest": "sha256:6b76d21d95da84938a0cd044734befefe7a72cc05f2222ef95ff1f8ade982da1"
|
|
457
467
|
},
|
|
458
468
|
{
|
|
459
469
|
"id": "semantic.code-index.template.adapter",
|
|
@@ -540,7 +550,7 @@
|
|
|
540
550
|
{
|
|
541
551
|
"id": "schemas/document-optimization-decisions.schema.json",
|
|
542
552
|
"path": "schemas/document-optimization-decisions.schema.json",
|
|
543
|
-
"digest": "sha256:
|
|
553
|
+
"digest": "sha256:6cf551aba82ff2a2ffcb575994c5c87974c3eb30a71dad74c0c5cbaaab445cfb"
|
|
544
554
|
},
|
|
545
555
|
{
|
|
546
556
|
"id": "schemas/evidence-maintenance-input.schema.json",
|
|
@@ -560,7 +570,7 @@
|
|
|
560
570
|
{
|
|
561
571
|
"id": "schemas/source-batch-input.schema.json",
|
|
562
572
|
"path": "schemas/source-batch-input.schema.json",
|
|
563
|
-
"digest": "sha256:
|
|
573
|
+
"digest": "sha256:0788501d70073a93c9d6d652bc85d806ea2e71abb2e9cfb6ad70e566e2675abf"
|
|
564
574
|
}
|
|
565
575
|
],
|
|
566
576
|
"files": [
|
|
@@ -572,6 +582,10 @@
|
|
|
572
582
|
"path": "actions/align-next.yaml",
|
|
573
583
|
"digest": "sha256:8f2a7203d5b631c0b1e6cc14d4d70acbf8ac0197b3cfd19fa3111212ffb47498"
|
|
574
584
|
},
|
|
585
|
+
{
|
|
586
|
+
"path": "actions/apply-code-index-guidance.yaml",
|
|
587
|
+
"digest": "sha256:42dd7e82813d31421078cb977e125ffae1ec219f9512a0e3ac32f1d2aff8041a"
|
|
588
|
+
},
|
|
575
589
|
{
|
|
576
590
|
"path": "actions/apply-forced-review.yaml",
|
|
577
591
|
"digest": "sha256:ed530819831b68824bd373dec399c73a30d7eeebd2ef72ae0eab3e7a60cad80f"
|
|
@@ -646,12 +660,16 @@
|
|
|
646
660
|
},
|
|
647
661
|
{
|
|
648
662
|
"path": "actions/maintain-evidence.yaml",
|
|
649
|
-
"digest": "sha256:
|
|
663
|
+
"digest": "sha256:aad5a46717dada265d01caa9f6c872ffe9428b18e7b04450a506966574448aa5"
|
|
650
664
|
},
|
|
651
665
|
{
|
|
652
666
|
"path": "actions/materialize-context-view.yaml",
|
|
653
667
|
"digest": "sha256:0ed6b73b6a31324575fd10fb8f2067c8381609ab272a031b326080506105d115"
|
|
654
668
|
},
|
|
669
|
+
{
|
|
670
|
+
"path": "actions/migrate-codeindex.yaml",
|
|
671
|
+
"digest": "sha256:984316fa010f8ce570b4c9c3db8945e0e80f7a1dfb48c3db5ba3a1bcf6383a9a"
|
|
672
|
+
},
|
|
655
673
|
{
|
|
656
674
|
"path": "actions/optimize-documents.yaml",
|
|
657
675
|
"digest": "sha256:5fdd18379742c20af19e8a92e2591dd85270fa4a6af5d0adea6430b43049bebb"
|
|
@@ -666,7 +684,7 @@
|
|
|
666
684
|
},
|
|
667
685
|
{
|
|
668
686
|
"path": "actions/register-source-batch.yaml",
|
|
669
|
-
"digest": "sha256:
|
|
687
|
+
"digest": "sha256:506cd677d79363035040b83c30f3444e9d41a886e9532023db6b8a17444ad951"
|
|
670
688
|
},
|
|
671
689
|
{
|
|
672
690
|
"path": "actions/repair-project-entry.yaml",
|
|
@@ -682,7 +700,7 @@
|
|
|
682
700
|
},
|
|
683
701
|
{
|
|
684
702
|
"path": "actions/restore-repository-sources.yaml",
|
|
685
|
-
"digest": "sha256:
|
|
703
|
+
"digest": "sha256:58e40ee93d6bd1a9fe11d208fe771b576f8c5ceb05105d3e92a9aecc6b4a7fd8"
|
|
686
704
|
},
|
|
687
705
|
{
|
|
688
706
|
"path": "actions/revise-code-index-audit.yaml",
|
|
@@ -698,15 +716,15 @@
|
|
|
698
716
|
},
|
|
699
717
|
{
|
|
700
718
|
"path": "codes.yaml",
|
|
701
|
-
"digest": "sha256:
|
|
719
|
+
"digest": "sha256:a140c4c9dedb927f52aa76a292d6bf4ac12f34434d3e2882d6aa7fbe8b629971"
|
|
702
720
|
},
|
|
703
721
|
{
|
|
704
722
|
"path": "graphs/workspace.yaml",
|
|
705
|
-
"digest": "sha256:
|
|
723
|
+
"digest": "sha256:25a7b3e87b8052cdb82bccc4b91753ff9974876498d7e44781d1238c49d80925"
|
|
706
724
|
},
|
|
707
725
|
{
|
|
708
726
|
"path": "provider.yaml",
|
|
709
|
-
"digest": "sha256:
|
|
727
|
+
"digest": "sha256:80803dc4dc1d18647fb988ae3b02693775a30af3be5e4fe824c96e68c1dc2d43"
|
|
710
728
|
},
|
|
711
729
|
{
|
|
712
730
|
"path": "resources/diagnostics/projection-stale.md",
|
|
@@ -722,7 +740,7 @@
|
|
|
722
740
|
},
|
|
723
741
|
{
|
|
724
742
|
"path": "resources/dialogue/code-extraction.md",
|
|
725
|
-
"digest": "sha256:
|
|
743
|
+
"digest": "sha256:be355208daf818ec81c0521f0ca0e2a05b5229531b1b9259e06afaadab17a879"
|
|
726
744
|
},
|
|
727
745
|
{
|
|
728
746
|
"path": "resources/dialogue/document-capture.md",
|
|
@@ -730,7 +748,7 @@
|
|
|
730
748
|
},
|
|
731
749
|
{
|
|
732
750
|
"path": "resources/dialogue/document-classification.md",
|
|
733
|
-
"digest": "sha256:
|
|
751
|
+
"digest": "sha256:b26f23c9d99a1287f7fd8e59f5700cdeeafca015d731455fa518825c64477f86"
|
|
734
752
|
},
|
|
735
753
|
{
|
|
736
754
|
"path": "resources/dialogue/evidence-maintenance.md",
|
|
@@ -742,7 +760,7 @@
|
|
|
742
760
|
},
|
|
743
761
|
{
|
|
744
762
|
"path": "resources/dialogue/knowledge-review.md",
|
|
745
|
-
"digest": "sha256:
|
|
763
|
+
"digest": "sha256:d26107888fa81b1deb664377c0486de37dd72fd6bf23330deddc835f51bafcc8"
|
|
746
764
|
},
|
|
747
765
|
{
|
|
748
766
|
"path": "resources/dialogue/package-output.md",
|
|
@@ -754,7 +772,7 @@
|
|
|
754
772
|
},
|
|
755
773
|
{
|
|
756
774
|
"path": "resources/dialogue/source-boundary.md",
|
|
757
|
-
"digest": "sha256:
|
|
775
|
+
"digest": "sha256:15d37249d1cb2a8921247c689d81c135911b9933550120fadd8c17237c2c2c29"
|
|
758
776
|
},
|
|
759
777
|
{
|
|
760
778
|
"path": "resources/dialogue/structure-confirmation.md",
|
|
@@ -762,31 +780,31 @@
|
|
|
762
780
|
},
|
|
763
781
|
{
|
|
764
782
|
"path": "resources/dialogue/workflow-mode-after-capture.md",
|
|
765
|
-
"digest": "sha256:
|
|
783
|
+
"digest": "sha256:4a7ba14b78519ee2486361641342c20ad54a2587571eb1ae1755a5a924ff9903"
|
|
766
784
|
},
|
|
767
785
|
{
|
|
768
786
|
"path": "resources/dialogue/workflow-mode-after-creation.md",
|
|
769
|
-
"digest": "sha256:
|
|
787
|
+
"digest": "sha256:37a4c4766c530baa5b7f52e543b702bed6de6506c6360a041de60571af2292ac"
|
|
770
788
|
},
|
|
771
789
|
{
|
|
772
790
|
"path": "resources/manuals/guides/lark-resources.md",
|
|
773
|
-
"digest": "sha256:
|
|
791
|
+
"digest": "sha256:953950412d35dc842be1d0bcdcf6c39bd3a7d78ad0a1b6e3f66f82ca1c5f476e"
|
|
774
792
|
},
|
|
775
793
|
{
|
|
776
794
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
777
|
-
"digest": "sha256:
|
|
795
|
+
"digest": "sha256:d9a279e2a683802f838d9ff1cf49a84de703e9aef7a610cb08ef04ad91bbb88a"
|
|
778
796
|
},
|
|
779
797
|
{
|
|
780
798
|
"path": "resources/manuals/reference/code-extractors.md",
|
|
781
|
-
"digest": "sha256:
|
|
799
|
+
"digest": "sha256:9d8e26914576e6d56f505520590874aabbe29c6f8ee17812bce9a5235d4a24a7"
|
|
782
800
|
},
|
|
783
801
|
{
|
|
784
802
|
"path": "resources/manuals/reference/package-templates.md",
|
|
785
|
-
"digest": "sha256:
|
|
803
|
+
"digest": "sha256:9da4ee1684ffc0e1345d95567bb30566104140eb979269d3982f32f8c865eb64"
|
|
786
804
|
},
|
|
787
805
|
{
|
|
788
806
|
"path": "resources/manuals/reference/project-api.md",
|
|
789
|
-
"digest": "sha256:
|
|
807
|
+
"digest": "sha256:b46ba47f9f0e5212c7633f9711074ee8cddbd75de50ebfab6198a9fc1aea5ee8"
|
|
790
808
|
},
|
|
791
809
|
{
|
|
792
810
|
"path": "resources/manuals/reference/template-variables.md",
|
|
@@ -794,19 +812,19 @@
|
|
|
794
812
|
},
|
|
795
813
|
{
|
|
796
814
|
"path": "resources/procedures/close-and-build.md",
|
|
797
|
-
"digest": "sha256:
|
|
815
|
+
"digest": "sha256:cf3c635f49f42e86348009b49dcc1a6b9ee31492106419adf2bd7211c42cf469"
|
|
798
816
|
},
|
|
799
817
|
{
|
|
800
818
|
"path": "resources/procedures/code-extraction.md",
|
|
801
|
-
"digest": "sha256:
|
|
819
|
+
"digest": "sha256:7901ad3cce9e59a7e8883ec0005883e665c1b287cca2dd1434ffaa8d833986aa"
|
|
802
820
|
},
|
|
803
821
|
{
|
|
804
822
|
"path": "resources/procedures/code-index-audit.md",
|
|
805
|
-
"digest": "sha256:
|
|
823
|
+
"digest": "sha256:57ceabbcd98edc1ba32e4ed45e7de7e65866d1ebee71b778f453738a8dfac7c0"
|
|
806
824
|
},
|
|
807
825
|
{
|
|
808
826
|
"path": "resources/procedures/document-capture.md",
|
|
809
|
-
"digest": "sha256:
|
|
827
|
+
"digest": "sha256:46a8231e92fcb19db7918938970ace8b4e4c22153fa8cbf0bb8100275bfbbfcf"
|
|
810
828
|
},
|
|
811
829
|
{
|
|
812
830
|
"path": "resources/procedures/document-classification.md",
|
|
@@ -814,11 +832,11 @@
|
|
|
814
832
|
},
|
|
815
833
|
{
|
|
816
834
|
"path": "resources/procedures/document-optimization.md",
|
|
817
|
-
"digest": "sha256:
|
|
835
|
+
"digest": "sha256:be1be830d2f7cc5409fcac47a43fd85c745056d705dac7c817f50bfe67ba15b3"
|
|
818
836
|
},
|
|
819
837
|
{
|
|
820
838
|
"path": "resources/procedures/document-revision.md",
|
|
821
|
-
"digest": "sha256:
|
|
839
|
+
"digest": "sha256:a46498f66070485c019ed70c84640ed12f6374371ca9e6df0f42b93da69c051b"
|
|
822
840
|
},
|
|
823
841
|
{
|
|
824
842
|
"path": "resources/procedures/evidence-maintenance.md",
|
|
@@ -826,7 +844,7 @@
|
|
|
826
844
|
},
|
|
827
845
|
{
|
|
828
846
|
"path": "resources/procedures/knowledge-review.md",
|
|
829
|
-
"digest": "sha256:
|
|
847
|
+
"digest": "sha256:ced7bb8dec7315e7f025df5492caab7f34b1134a6f476ca0e096a436ad956e36"
|
|
830
848
|
},
|
|
831
849
|
{
|
|
832
850
|
"path": "resources/procedures/package-output.md",
|
|
@@ -854,7 +872,7 @@
|
|
|
854
872
|
},
|
|
855
873
|
{
|
|
856
874
|
"path": "resources/procedures/source-boundary.md",
|
|
857
|
-
"digest": "sha256:
|
|
875
|
+
"digest": "sha256:de7e9c274cb180295a65c494abadf0d78cce864c5770fe77f481567339d36d31"
|
|
858
876
|
},
|
|
859
877
|
{
|
|
860
878
|
"path": "resources/procedures/source-capture-detailed.md",
|
|
@@ -878,11 +896,11 @@
|
|
|
878
896
|
},
|
|
879
897
|
{
|
|
880
898
|
"path": "resources/semantic/align/structure-planning.md",
|
|
881
|
-
"digest": "sha256:
|
|
899
|
+
"digest": "sha256:2930594fe849d3e70d2746c7619cff3ebbe70851c1f00ef3396f3cdf3860949a"
|
|
882
900
|
},
|
|
883
901
|
{
|
|
884
902
|
"path": "resources/semantic/code-index/classification.md",
|
|
885
|
-
"digest": "sha256:
|
|
903
|
+
"digest": "sha256:6b76d21d95da84938a0cd044734befefe7a72cc05f2222ef95ff1f8ade982da1"
|
|
886
904
|
},
|
|
887
905
|
{
|
|
888
906
|
"path": "resources/semantic/code-index/templates/adapter.md",
|
|
@@ -994,7 +1012,7 @@
|
|
|
994
1012
|
},
|
|
995
1013
|
{
|
|
996
1014
|
"path": "schemas/document-optimization-decisions.schema.json",
|
|
997
|
-
"digest": "sha256:
|
|
1015
|
+
"digest": "sha256:6cf551aba82ff2a2ffcb575994c5c87974c3eb30a71dad74c0c5cbaaab445cfb"
|
|
998
1016
|
},
|
|
999
1017
|
{
|
|
1000
1018
|
"path": "schemas/evidence-maintenance-input.schema.json",
|
|
@@ -1010,7 +1028,7 @@
|
|
|
1010
1028
|
},
|
|
1011
1029
|
{
|
|
1012
1030
|
"path": "schemas/source-batch-input.schema.json",
|
|
1013
|
-
"digest": "sha256:
|
|
1031
|
+
"digest": "sha256:0788501d70073a93c9d6d652bc85d806ea2e71abb2e9cfb6ad70e566e2675abf"
|
|
1014
1032
|
},
|
|
1015
1033
|
{
|
|
1016
1034
|
"path": "scripts/render-context-view.mjs",
|
|
@@ -1020,5 +1038,5 @@
|
|
|
1020
1038
|
"graphDependencies": {
|
|
1021
1039
|
"workspace": []
|
|
1022
1040
|
},
|
|
1023
|
-
"digest": "sha256:
|
|
1041
|
+
"digest": "sha256:c41605cbd86d4be02940c5f45ed8b7aaa189e7a5b3d3d7f1afc224a007afcbc8"
|
|
1024
1042
|
}
|
|
@@ -55,6 +55,12 @@ Treat those fields as structural scope evidence, not a semantic ranking. Stop
|
|
|
55
55
|
when the preview crosses the confirmed module boundary or the module
|
|
56
56
|
identity/path shape is wrong.
|
|
57
57
|
|
|
58
|
+
Also report the unit inventory: eligible/analyzed file and LOC counts,
|
|
59
|
+
discovered/read Markdown, target/exported symbols, stable entry and boundary
|
|
60
|
+
targets, exclusions and parser gaps. After extraction, read every independent
|
|
61
|
+
audit dimension and the exact uncovered identities. Use the CLI-selected
|
|
62
|
+
repair actions and matching templates; do not invent a total score.
|
|
63
|
+
|
|
58
64
|
Apply the per-index-unit policy exactly: up to 100 pages proceeds; 101–300 pages
|
|
59
65
|
warns and proceeds; more than 300 pages stops even in fully managed mode. Group
|
|
60
66
|
all oversized or capability-gap units into one explanation and one plan-revision
|
|
@@ -69,6 +75,12 @@ or mirrored areas, enable `exportedOnly`, change to an aggregate
|
|
|
69
75
|
`extractTs()` source into overlapping index units. Report a batch-total page
|
|
70
76
|
advisory as a cost signal, not a new Gate.
|
|
71
77
|
|
|
78
|
+
In fully managed mode, revise absolute failures automatically and aim for each
|
|
79
|
+
recommended target. After three attempts with the same unit/problem fingerprint,
|
|
80
|
+
stop at the single aggregated guidance Gate and report all failed modules,
|
|
81
|
+
dimensions, attempted actions, and likely missing material together. Ordinary
|
|
82
|
+
mode also makes one batch decision; it does not create one user Gate per module.
|
|
83
|
+
|
|
72
84
|
For a multi-module round, finish every pending extraction target before opening
|
|
73
85
|
one Review. For an unchanged repeat run, explain that no added, changed, or
|
|
74
86
|
removed symbols need a decision. Mention `extractTs`, `include`, `entries`,
|
|
@@ -23,7 +23,7 @@ recommendation, and describe its package root:
|
|
|
23
23
|
| `incident` | incident timelines, impact, causes, response, and prevention | `guides/` |
|
|
24
24
|
| `test` | test plans, validation scenarios, matrices, and acceptance cases | `rules/` |
|
|
25
25
|
|
|
26
|
-
`
|
|
26
|
+
`codeindex` comes from code extraction and `feats` is not a document mainline
|
|
27
27
|
collection. Filenames, URLs, titles, and example collection names are
|
|
28
28
|
insufficient evidence.
|
|
29
29
|
|
|
@@ -18,6 +18,12 @@ The user does not need to create a payload file; the Agent may write the pasted
|
|
|
18
18
|
payload to ignored scratch storage for the CLI command. Never derive a payload
|
|
19
19
|
from HTML, candidate ids, snapshots, or a default decision.
|
|
20
20
|
|
|
21
|
+
When the user completes a decision from the report, retain the exact report URL
|
|
22
|
+
or local report path and reviewed scope in the current conversation for the
|
|
23
|
+
final completion summary. Do not persist a separate workspace ledger or count a
|
|
24
|
+
report as user-reviewed when it was inaccessible, fully managed, or bypassed by
|
|
25
|
+
force approval.
|
|
26
|
+
|
|
21
27
|
Do not mention force approval when first presenting Review. If the user replies
|
|
22
28
|
without a Payload that they approve or want to continue, explain that the
|
|
23
29
|
report Payload remains the normal path. Only at that point, when the report is
|
|
@@ -28,7 +34,7 @@ that exact phrase appears in the current conversation. Phrases such as `我批
|
|
|
28
34
|
`继续`, or `全部通过` do not invoke this escape path.
|
|
29
35
|
|
|
30
36
|
Do not open Review for one page or module while another confirmed item in the
|
|
31
|
-
same round is still being generated. If a repeat
|
|
37
|
+
same round is still being generated. If a repeat codeindex run has no delta,
|
|
32
38
|
state that existing approvals were preserved and no Review gate remains.
|
|
33
39
|
|
|
34
40
|
When the user explicitly requested fully managed operation, use only the
|
|
@@ -17,11 +17,19 @@ Explain the observable impact:
|
|
|
17
17
|
- every confirmed source is a module inside that batch;
|
|
18
18
|
- several code and document modules may share the date;
|
|
19
19
|
- `date/module` appears in source refs and phase ids; and
|
|
20
|
-
- stable
|
|
20
|
+
- stable codeindex knowledge paths use the module name without the date.
|
|
21
21
|
|
|
22
22
|
Do not invent `-A`, `-B`, or sequence suffixes. If today's batch exists, append
|
|
23
23
|
the newly confirmed module to it.
|
|
24
24
|
|
|
25
|
+
When the current request already lists exact local modules or documents, do not
|
|
26
|
+
repeat the source-boundary question in either ordinary or fully managed mode.
|
|
27
|
+
Resolve each named module to one unique existing local path inside the
|
|
28
|
+
user-scoped root, then pass that path in the batch payload. Repository paths are
|
|
29
|
+
relative to the Context project root; the CLI may mechanically read their Git
|
|
30
|
+
root, `origin`, and current commit. Ask only when a name is ambiguous, no
|
|
31
|
+
matching path exists, or selecting one match would broaden the requested scope.
|
|
32
|
+
|
|
25
33
|
When inspection finds several package boundaries, show their paths and ask
|
|
26
34
|
which concrete boundaries should become sources. Explain that `include`
|
|
27
35
|
filters files inside a source and cannot select a monorepo package. Only after
|
|
@@ -6,17 +6,20 @@ mediaType: text/markdown
|
|
|
6
6
|
|
|
7
7
|
# Workflow mode after source capture
|
|
8
8
|
|
|
9
|
-
When source capture has completed
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
and
|
|
9
|
+
When source capture has completed, ask about execution mode only if the
|
|
10
|
+
conversation still has no explicit choice and no earlier mode question was
|
|
11
|
+
asked. If ordinary review or fully managed operation was already selected,
|
|
12
|
+
continue without a reminder or another confirmation. When a choice is still
|
|
13
|
+
needed, explain in the user's current conversation language that ordinary
|
|
14
|
+
review pauses at review decisions and provides HTML reports for inspection.
|
|
15
|
+
The current product estimate is that ordinary review makes the overall workflow
|
|
16
|
+
about 40% slower, with the exact difference depending on scope and response
|
|
17
|
+
time.
|
|
15
18
|
|
|
16
19
|
Offer fully managed operation for the rest of the current conversation. Explain
|
|
17
20
|
that it skips delegatable content-review surfaces and is faster, but reduces the
|
|
18
21
|
user's ability to control or adjust intermediate content. It does not bypass
|
|
19
22
|
source boundaries, external permissions, hard validation, evidence checks,
|
|
20
23
|
verification failures, or other non-delegatable safety boundaries. Do not ask
|
|
21
|
-
again
|
|
22
|
-
|
|
24
|
+
again after this one-time conversation choice, and never persist it in project
|
|
25
|
+
files.
|
|
@@ -6,9 +6,10 @@ mediaType: text/markdown
|
|
|
6
6
|
|
|
7
7
|
# Workflow mode after workspace creation
|
|
8
8
|
|
|
9
|
-
After the workspace is created,
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
After the workspace is created, explain the two execution modes only when the
|
|
10
|
+
conversation has not already selected a mode and no earlier mode question was
|
|
11
|
+
asked. If the entry plan or initialization confirmation already resolved this
|
|
12
|
+
choice, continue without asking again.
|
|
12
13
|
|
|
13
14
|
- Ordinary review mode is the default. Context pauses at review decisions and
|
|
14
15
|
provides HTML reports for the user to inspect. The current product estimate is
|
|
@@ -22,4 +23,5 @@ Make clear that fully managed mode does not bypass source boundaries, external
|
|
|
22
23
|
permissions, hard validation, evidence checks, verification failures, or other
|
|
23
24
|
non-delegatable safety boundaries. Ask whether the user wants to keep the
|
|
24
25
|
default ordinary review mode or authorize fully managed operation for the
|
|
25
|
-
current conversation.
|
|
26
|
+
current conversation. This is a one-time conversation choice: do not repeat it
|
|
27
|
+
after capture or resume, and do not persist it in project files.
|
|
@@ -39,6 +39,13 @@ resources remain explicit in the capture report. Unknown non-empty XML blocks
|
|
|
39
39
|
stay auditable in the raw XML and receive a warning; the CLI does not infer
|
|
40
40
|
their meaning.
|
|
41
41
|
|
|
42
|
+
Document and resource reads share one access identity. Context first uses the
|
|
43
|
+
user identity; it falls back to the bot identity only when user credentials
|
|
44
|
+
are unavailable, never when the source denies permission or reports missing
|
|
45
|
+
scopes. This prevents a capture from mixing document text read by one identity
|
|
46
|
+
with attachments read by another. A bot fallback is reported in the capture
|
|
47
|
+
result and remains subject to the bot's own access boundary.
|
|
48
|
+
|
|
42
49
|
## Storage lifecycle
|
|
43
50
|
|
|
44
51
|
Resources have three distinct locations:
|
|
@@ -111,8 +111,8 @@ capture reports are never distributed as reader assets. See
|
|
|
111
111
|
[Lark Resource Materialization](./lark-resources.md).
|
|
112
112
|
|
|
113
113
|
The same inventory exposes `structure.relationship_coverage`. It records
|
|
114
|
-
whether selected
|
|
115
|
-
metadata, how many
|
|
114
|
+
whether selected codeindex pages have current source-backed AST relationship
|
|
115
|
+
metadata, how many codeindex views were selected, and how many package-visible
|
|
116
116
|
edges were emitted. An empty edge list is therefore explicit evidence of a
|
|
117
117
|
coverage state, not permission to invent a dependency.
|
|
118
118
|
|
|
@@ -136,7 +136,7 @@ Current collection mapping:
|
|
|
136
136
|
|
|
137
137
|
| Internal collection | Package path | Role |
|
|
138
138
|
|---|---|---|
|
|
139
|
-
| `
|
|
139
|
+
| `codeindex` | `wikis/codeindex/` | Source-backed code indexes with optional structured relationships. |
|
|
140
140
|
| `business` | `wikis/business/` | Structured business entities and relationships. |
|
|
141
141
|
| `product` | `wikis/product/` | Structured product entities, behavior, and relationships. |
|
|
142
142
|
| `architecture` | `guides/architecture/` | Architecture explanations and design narratives. |
|