@c4a/context-cli 0.6.1-beta.3 → 0.6.1-beta.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.
- package/README.md +20 -9
- package/README.zh-CN.md +10 -8
- package/cli.js +71833 -69465
- package/docs/quickstart.md +7 -0
- package/package.json +3 -3
- package/plugins/README.md +7 -2
- package/plugins/README_CN.md +7 -2
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/continue.md +17 -3
- package/plugins/claude/commands/init.md +7 -4
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/continue/SKILL.md +17 -3
- package/plugins/codex/skills/init/SKILL.md +6 -3
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/context-continue.md +17 -3
- package/plugins/cursor/commands/context-init.md +7 -4
- package/plugins/skills/context-continue/SKILL.md +17 -3
- package/plugins/skills/context-init/SKILL.md +6 -3
- package/providers/context/actions/accept-package-templates.yaml +5 -0
- package/providers/context/actions/align-next.yaml +1 -0
- package/providers/context/codes.yaml +2 -0
- package/providers/context/graphs/workspace.yaml +26 -1
- package/providers/context/manifest.json +63 -36
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/diagnostics/projection-stale.md +13 -0
- package/providers/context/resources/dialogue/document-classification.md +2 -1
- package/providers/context/resources/dialogue/package-output.md +5 -7
- package/providers/context/resources/manuals/guides/package-outputs.md +40 -37
- package/providers/context/resources/manuals/reference/package-templates.md +36 -48
- package/providers/context/resources/manuals/reference/project-api.md +75 -12
- package/providers/context/resources/manuals/reference/template-variables.md +12 -11
- package/providers/context/resources/procedures/close-and-build.md +3 -1
- package/providers/context/resources/procedures/code-extraction.md +16 -2
- package/providers/context/resources/procedures/document-capture.md +14 -0
- package/providers/context/resources/procedures/document-classification.md +3 -0
- package/providers/context/resources/procedures/package-output.md +17 -11
- package/providers/context/resources/procedures/prose-align.md +45 -0
- package/providers/context/resources/semantic/align/candidate-resolution.md +4 -2
- package/providers/context/resources/semantic/align/structure-planning.md +8 -5
- package/providers/context/schemas/prose-structure-batch.schema.json +35 -0
|
@@ -2,21 +2,26 @@
|
|
|
2
2
|
"schema": "agent-graph.bundle.v1",
|
|
3
3
|
"provider": {
|
|
4
4
|
"id": "c4a/context",
|
|
5
|
-
"version": "0.6.1-beta.
|
|
5
|
+
"version": "0.6.1-beta.4"
|
|
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:9f434f63af920ad70aee7bb7b74c3a4be2ecfdad1c9c39a5ee0927f917857325"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"actions": [
|
|
16
|
+
{
|
|
17
|
+
"id": "accept-package-templates",
|
|
18
|
+
"path": "actions/accept-package-templates.yaml",
|
|
19
|
+
"digest": "sha256:e3de218f2dc37c9d3ab9546e408598c7b320f7151e8c520a00770919088a6a66"
|
|
20
|
+
},
|
|
16
21
|
{
|
|
17
22
|
"id": "align-next",
|
|
18
23
|
"path": "actions/align-next.yaml",
|
|
19
|
-
"digest": "sha256:
|
|
24
|
+
"digest": "sha256:8f2a7203d5b631c0b1e6cc14d4d70acbf8ac0197b3cfd19fa3111212ffb47498"
|
|
20
25
|
},
|
|
21
26
|
{
|
|
22
27
|
"id": "apply-managed-review",
|
|
@@ -138,22 +143,22 @@
|
|
|
138
143
|
{
|
|
139
144
|
"id": "context.sdk.package-outputs",
|
|
140
145
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
141
|
-
"digest": "sha256:
|
|
146
|
+
"digest": "sha256:bddba5a43edd230583dc286f74992e28a29bda73382799fa0ca0bf1a23014ec5"
|
|
142
147
|
},
|
|
143
148
|
{
|
|
144
149
|
"id": "context.sdk.package-templates",
|
|
145
150
|
"path": "resources/manuals/reference/package-templates.md",
|
|
146
|
-
"digest": "sha256:
|
|
151
|
+
"digest": "sha256:ea34fa9a683915c8508d95423e3d87111349fc927accad4761ecfa3bd3204db1"
|
|
147
152
|
},
|
|
148
153
|
{
|
|
149
154
|
"id": "context.sdk.project-api",
|
|
150
155
|
"path": "resources/manuals/reference/project-api.md",
|
|
151
|
-
"digest": "sha256:
|
|
156
|
+
"digest": "sha256:9156aeb7142cfe1412d20378564f6c04645015d86bde51d004852d3478c2013c"
|
|
152
157
|
},
|
|
153
158
|
{
|
|
154
159
|
"id": "context.sdk.template-variables",
|
|
155
160
|
"path": "resources/manuals/reference/template-variables.md",
|
|
156
|
-
"digest": "sha256:
|
|
161
|
+
"digest": "sha256:7986bb2604ea72fd485d9b6188974f225139a2c976b2bb37e28d2b43f09868d2"
|
|
157
162
|
},
|
|
158
163
|
{
|
|
159
164
|
"id": "context.semantic.align.align-gates",
|
|
@@ -163,7 +168,7 @@
|
|
|
163
168
|
{
|
|
164
169
|
"id": "context.semantic.align.candidate-resolution",
|
|
165
170
|
"path": "resources/semantic/align/candidate-resolution.md",
|
|
166
|
-
"digest": "sha256:
|
|
171
|
+
"digest": "sha256:5c34122ec74ebd33b99b73c6c23b11dc7d80bd370133ed5fc77dee7ddadb1598"
|
|
167
172
|
},
|
|
168
173
|
{
|
|
169
174
|
"id": "context.semantic.align.density-profile",
|
|
@@ -173,7 +178,7 @@
|
|
|
173
178
|
{
|
|
174
179
|
"id": "context.semantic.align.structure-planning",
|
|
175
180
|
"path": "resources/semantic/align/structure-planning.md",
|
|
176
|
-
"digest": "sha256:
|
|
181
|
+
"digest": "sha256:c6d8902f7f70857596d3486307bb5e58ffaac6efd6021451e487c92ceb86f87d"
|
|
177
182
|
},
|
|
178
183
|
{
|
|
179
184
|
"id": "context.semantic.compile.index",
|
|
@@ -200,6 +205,11 @@
|
|
|
200
205
|
"path": "resources/views/workspace-current.yaml",
|
|
201
206
|
"digest": "sha256:712d146a1538e47d09c0cfad9961c5ad1c7ebb7e9796a52c0b0bdb6007f50dc1"
|
|
202
207
|
},
|
|
208
|
+
{
|
|
209
|
+
"id": "diagnostic.projection-stale",
|
|
210
|
+
"path": "resources/diagnostics/projection-stale.md",
|
|
211
|
+
"digest": "sha256:7152211db8b97ab5b1982fec2a18954c4f04823ee383451a7fcc20713dbc567e"
|
|
212
|
+
},
|
|
203
213
|
{
|
|
204
214
|
"id": "diagnostic.verification",
|
|
205
215
|
"path": "resources/diagnostics/verification.md",
|
|
@@ -223,7 +233,7 @@
|
|
|
223
233
|
{
|
|
224
234
|
"id": "dialogue.document-classification",
|
|
225
235
|
"path": "resources/dialogue/document-classification.md",
|
|
226
|
-
"digest": "sha256:
|
|
236
|
+
"digest": "sha256:679db260d5c496fae2a1526ea27c76220e62e782259ef21a216a30cf868d791f"
|
|
227
237
|
},
|
|
228
238
|
{
|
|
229
239
|
"id": "dialogue.evidence-maintenance",
|
|
@@ -243,7 +253,7 @@
|
|
|
243
253
|
{
|
|
244
254
|
"id": "dialogue.package-output",
|
|
245
255
|
"path": "resources/dialogue/package-output.md",
|
|
246
|
-
"digest": "sha256:
|
|
256
|
+
"digest": "sha256:0ca7a9e56397f9acc62d92777d91e0203e2d6caa7f08268dca8037987e5911a5"
|
|
247
257
|
},
|
|
248
258
|
{
|
|
249
259
|
"id": "dialogue.source-boundary",
|
|
@@ -258,22 +268,22 @@
|
|
|
258
268
|
{
|
|
259
269
|
"id": "procedure.close-and-build",
|
|
260
270
|
"path": "resources/procedures/close-and-build.md",
|
|
261
|
-
"digest": "sha256:
|
|
271
|
+
"digest": "sha256:19c630e9c4c05f5b430df603fb705731427d2ef4bfcaf83a1b653d364164cae2"
|
|
262
272
|
},
|
|
263
273
|
{
|
|
264
274
|
"id": "procedure.code-extraction",
|
|
265
275
|
"path": "resources/procedures/code-extraction.md",
|
|
266
|
-
"digest": "sha256:
|
|
276
|
+
"digest": "sha256:35e32f68c2e3142271e178964fb08079e340cf2b7ea3f7714121e951248d2e08"
|
|
267
277
|
},
|
|
268
278
|
{
|
|
269
279
|
"id": "procedure.document-capture",
|
|
270
280
|
"path": "resources/procedures/document-capture.md",
|
|
271
|
-
"digest": "sha256:
|
|
281
|
+
"digest": "sha256:07f8ccfe3429c28f7dd6b732821911b9636e9a0a9f1b6034986dce669b416248"
|
|
272
282
|
},
|
|
273
283
|
{
|
|
274
284
|
"id": "procedure.document-classification",
|
|
275
285
|
"path": "resources/procedures/document-classification.md",
|
|
276
|
-
"digest": "sha256:
|
|
286
|
+
"digest": "sha256:d248973ad671531334cd0c9f485183f40a9a78d0125186de5980d6b1099b940b"
|
|
277
287
|
},
|
|
278
288
|
{
|
|
279
289
|
"id": "procedure.evidence-maintenance",
|
|
@@ -288,7 +298,7 @@
|
|
|
288
298
|
{
|
|
289
299
|
"id": "procedure.package-output",
|
|
290
300
|
"path": "resources/procedures/package-output.md",
|
|
291
|
-
"digest": "sha256:
|
|
301
|
+
"digest": "sha256:c088c2341fa64caa25a04c3cef75635b2f635a932bfc7326b35cff59fc390b29"
|
|
292
302
|
},
|
|
293
303
|
{
|
|
294
304
|
"id": "procedure.project-configuration",
|
|
@@ -298,7 +308,7 @@
|
|
|
298
308
|
{
|
|
299
309
|
"id": "procedure.prose-align",
|
|
300
310
|
"path": "resources/procedures/prose-align.md",
|
|
301
|
-
"digest": "sha256:
|
|
311
|
+
"digest": "sha256:e8357e1e0100d4de39a7c96bb910cdd14e806d0847153ffed6c9a5e784ab72b4"
|
|
302
312
|
},
|
|
303
313
|
{
|
|
304
314
|
"id": "procedure.prose-compile",
|
|
@@ -327,6 +337,11 @@
|
|
|
327
337
|
"path": "schemas/evidence-maintenance-input.schema.json",
|
|
328
338
|
"digest": "sha256:7d1c0a9cc20200b90495bea82337d2c0e42d9eff3c1e3eeeb7258226fd96c542"
|
|
329
339
|
},
|
|
340
|
+
{
|
|
341
|
+
"id": "schemas/prose-structure-batch.schema.json",
|
|
342
|
+
"path": "schemas/prose-structure-batch.schema.json",
|
|
343
|
+
"digest": "sha256:fc4ebbb5ee81ae77238cd60350ebac16f55e8a5adf3f5f5db411040474e01842"
|
|
344
|
+
},
|
|
330
345
|
{
|
|
331
346
|
"id": "schemas/source-batch-input.schema.json",
|
|
332
347
|
"path": "schemas/source-batch-input.schema.json",
|
|
@@ -334,9 +349,13 @@
|
|
|
334
349
|
}
|
|
335
350
|
],
|
|
336
351
|
"files": [
|
|
352
|
+
{
|
|
353
|
+
"path": "actions/accept-package-templates.yaml",
|
|
354
|
+
"digest": "sha256:e3de218f2dc37c9d3ab9546e408598c7b320f7151e8c520a00770919088a6a66"
|
|
355
|
+
},
|
|
337
356
|
{
|
|
338
357
|
"path": "actions/align-next.yaml",
|
|
339
|
-
"digest": "sha256:
|
|
358
|
+
"digest": "sha256:8f2a7203d5b631c0b1e6cc14d4d70acbf8ac0197b3cfd19fa3111212ffb47498"
|
|
340
359
|
},
|
|
341
360
|
{
|
|
342
361
|
"path": "actions/apply-managed-review.yaml",
|
|
@@ -424,15 +443,19 @@
|
|
|
424
443
|
},
|
|
425
444
|
{
|
|
426
445
|
"path": "codes.yaml",
|
|
427
|
-
"digest": "sha256:
|
|
446
|
+
"digest": "sha256:cee059821edb0cf7601189649172418031ec145438e0647a248813c6255f0d55"
|
|
428
447
|
},
|
|
429
448
|
{
|
|
430
449
|
"path": "graphs/workspace.yaml",
|
|
431
|
-
"digest": "sha256:
|
|
450
|
+
"digest": "sha256:9f434f63af920ad70aee7bb7b74c3a4be2ecfdad1c9c39a5ee0927f917857325"
|
|
432
451
|
},
|
|
433
452
|
{
|
|
434
453
|
"path": "provider.yaml",
|
|
435
|
-
"digest": "sha256:
|
|
454
|
+
"digest": "sha256:eeb8cce29af50ee696ff1594ab705992afac9c04ac2ad48831f0bd69aeb99f78"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"path": "resources/diagnostics/projection-stale.md",
|
|
458
|
+
"digest": "sha256:7152211db8b97ab5b1982fec2a18954c4f04823ee383451a7fcc20713dbc567e"
|
|
436
459
|
},
|
|
437
460
|
{
|
|
438
461
|
"path": "resources/diagnostics/verification.md",
|
|
@@ -452,7 +475,7 @@
|
|
|
452
475
|
},
|
|
453
476
|
{
|
|
454
477
|
"path": "resources/dialogue/document-classification.md",
|
|
455
|
-
"digest": "sha256:
|
|
478
|
+
"digest": "sha256:679db260d5c496fae2a1526ea27c76220e62e782259ef21a216a30cf868d791f"
|
|
456
479
|
},
|
|
457
480
|
{
|
|
458
481
|
"path": "resources/dialogue/evidence-maintenance.md",
|
|
@@ -468,7 +491,7 @@
|
|
|
468
491
|
},
|
|
469
492
|
{
|
|
470
493
|
"path": "resources/dialogue/package-output.md",
|
|
471
|
-
"digest": "sha256:
|
|
494
|
+
"digest": "sha256:0ca7a9e56397f9acc62d92777d91e0203e2d6caa7f08268dca8037987e5911a5"
|
|
472
495
|
},
|
|
473
496
|
{
|
|
474
497
|
"path": "resources/dialogue/source-boundary.md",
|
|
@@ -480,35 +503,35 @@
|
|
|
480
503
|
},
|
|
481
504
|
{
|
|
482
505
|
"path": "resources/manuals/guides/package-outputs.md",
|
|
483
|
-
"digest": "sha256:
|
|
506
|
+
"digest": "sha256:bddba5a43edd230583dc286f74992e28a29bda73382799fa0ca0bf1a23014ec5"
|
|
484
507
|
},
|
|
485
508
|
{
|
|
486
509
|
"path": "resources/manuals/reference/package-templates.md",
|
|
487
|
-
"digest": "sha256:
|
|
510
|
+
"digest": "sha256:ea34fa9a683915c8508d95423e3d87111349fc927accad4761ecfa3bd3204db1"
|
|
488
511
|
},
|
|
489
512
|
{
|
|
490
513
|
"path": "resources/manuals/reference/project-api.md",
|
|
491
|
-
"digest": "sha256:
|
|
514
|
+
"digest": "sha256:9156aeb7142cfe1412d20378564f6c04645015d86bde51d004852d3478c2013c"
|
|
492
515
|
},
|
|
493
516
|
{
|
|
494
517
|
"path": "resources/manuals/reference/template-variables.md",
|
|
495
|
-
"digest": "sha256:
|
|
518
|
+
"digest": "sha256:7986bb2604ea72fd485d9b6188974f225139a2c976b2bb37e28d2b43f09868d2"
|
|
496
519
|
},
|
|
497
520
|
{
|
|
498
521
|
"path": "resources/procedures/close-and-build.md",
|
|
499
|
-
"digest": "sha256:
|
|
522
|
+
"digest": "sha256:19c630e9c4c05f5b430df603fb705731427d2ef4bfcaf83a1b653d364164cae2"
|
|
500
523
|
},
|
|
501
524
|
{
|
|
502
525
|
"path": "resources/procedures/code-extraction.md",
|
|
503
|
-
"digest": "sha256:
|
|
526
|
+
"digest": "sha256:35e32f68c2e3142271e178964fb08079e340cf2b7ea3f7714121e951248d2e08"
|
|
504
527
|
},
|
|
505
528
|
{
|
|
506
529
|
"path": "resources/procedures/document-capture.md",
|
|
507
|
-
"digest": "sha256:
|
|
530
|
+
"digest": "sha256:07f8ccfe3429c28f7dd6b732821911b9636e9a0a9f1b6034986dce669b416248"
|
|
508
531
|
},
|
|
509
532
|
{
|
|
510
533
|
"path": "resources/procedures/document-classification.md",
|
|
511
|
-
"digest": "sha256:
|
|
534
|
+
"digest": "sha256:d248973ad671531334cd0c9f485183f40a9a78d0125186de5980d6b1099b940b"
|
|
512
535
|
},
|
|
513
536
|
{
|
|
514
537
|
"path": "resources/procedures/evidence-maintenance.md",
|
|
@@ -520,7 +543,7 @@
|
|
|
520
543
|
},
|
|
521
544
|
{
|
|
522
545
|
"path": "resources/procedures/package-output.md",
|
|
523
|
-
"digest": "sha256:
|
|
546
|
+
"digest": "sha256:c088c2341fa64caa25a04c3cef75635b2f635a932bfc7326b35cff59fc390b29"
|
|
524
547
|
},
|
|
525
548
|
{
|
|
526
549
|
"path": "resources/procedures/project-configuration.md",
|
|
@@ -528,7 +551,7 @@
|
|
|
528
551
|
},
|
|
529
552
|
{
|
|
530
553
|
"path": "resources/procedures/prose-align.md",
|
|
531
|
-
"digest": "sha256:
|
|
554
|
+
"digest": "sha256:e8357e1e0100d4de39a7c96bb910cdd14e806d0847153ffed6c9a5e784ab72b4"
|
|
532
555
|
},
|
|
533
556
|
{
|
|
534
557
|
"path": "resources/procedures/prose-compile.md",
|
|
@@ -548,7 +571,7 @@
|
|
|
548
571
|
},
|
|
549
572
|
{
|
|
550
573
|
"path": "resources/semantic/align/candidate-resolution.md",
|
|
551
|
-
"digest": "sha256:
|
|
574
|
+
"digest": "sha256:5c34122ec74ebd33b99b73c6c23b11dc7d80bd370133ed5fc77dee7ddadb1598"
|
|
552
575
|
},
|
|
553
576
|
{
|
|
554
577
|
"path": "resources/semantic/align/density-profile.md",
|
|
@@ -560,7 +583,7 @@
|
|
|
560
583
|
},
|
|
561
584
|
{
|
|
562
585
|
"path": "resources/semantic/align/structure-planning.md",
|
|
563
|
-
"digest": "sha256:
|
|
586
|
+
"digest": "sha256:c6d8902f7f70857596d3486307bb5e58ffaac6efd6021451e487c92ceb86f87d"
|
|
564
587
|
},
|
|
565
588
|
{
|
|
566
589
|
"path": "resources/semantic/compile/index.md",
|
|
@@ -594,6 +617,10 @@
|
|
|
594
617
|
"path": "schemas/evidence-maintenance-input.schema.json",
|
|
595
618
|
"digest": "sha256:7d1c0a9cc20200b90495bea82337d2c0e42d9eff3c1e3eeeb7258226fd96c542"
|
|
596
619
|
},
|
|
620
|
+
{
|
|
621
|
+
"path": "schemas/prose-structure-batch.schema.json",
|
|
622
|
+
"digest": "sha256:fc4ebbb5ee81ae77238cd60350ebac16f55e8a5adf3f5f5db411040474e01842"
|
|
623
|
+
},
|
|
597
624
|
{
|
|
598
625
|
"path": "schemas/source-batch-input.schema.json",
|
|
599
626
|
"digest": "sha256:aa5f1a1bf6a6573982e89e50c9d991f6aa72a5cbbda0867d1f483e30315c4409"
|
|
@@ -606,5 +633,5 @@
|
|
|
606
633
|
"graphDependencies": {
|
|
607
634
|
"workspace": []
|
|
608
635
|
},
|
|
609
|
-
"digest": "sha256:
|
|
636
|
+
"digest": "sha256:205b1a6b67593d9ef793fb6468bb5bb03f534bd37a16aa762cb6689a43bc2a00"
|
|
610
637
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
schema: agent-graph.resource.v1
|
|
3
|
+
id: diagnostic.projection-stale
|
|
4
|
+
kind: diagnostic
|
|
5
|
+
mediaType: text/markdown
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Approved projection is stale
|
|
9
|
+
|
|
10
|
+
Approved Markdown changed successfully. Its derived `knowledge/structure.yaml`
|
|
11
|
+
projection has not been rebuilt yet. Run only the revision-bound close command
|
|
12
|
+
selected by the current Route. This is an expected lifecycle transition, not a
|
|
13
|
+
content verification failure.
|
|
@@ -7,7 +7,8 @@ mediaType: text/markdown
|
|
|
7
7
|
# Document-classification dialogue
|
|
8
8
|
|
|
9
9
|
Do not recommend a collection before reading the collection-neutral evidence
|
|
10
|
-
view. Summarize the observed document
|
|
10
|
+
view and every required source-body resource. Summarize the observed document
|
|
11
|
+
shape, explain one evidence-backed
|
|
11
12
|
recommendation, and describe its package root:
|
|
12
13
|
|
|
13
14
|
| Collection | Use when the evidence primarily represents | Package root |
|
|
@@ -19,13 +19,11 @@ with more than the configured threshold gets its own child index. Templates
|
|
|
19
19
|
under `src/package-templates/` are editable presentation, not a second factual
|
|
20
20
|
source.
|
|
21
21
|
|
|
22
|
-
After the user chooses an Agent knowledge-base package, explain that
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
complete final names in the template. Do not expose downstream layout-version
|
|
28
|
-
terminology or ask for platform-specific identity fields.
|
|
22
|
+
After the user chooses an Agent knowledge-base package, explain that its
|
|
23
|
+
knowledge roots are flat inside `dist/<package-name>/`; do not ask for a second
|
|
24
|
+
package namespace. Ask whether Skills need a short optional prefix, then
|
|
25
|
+
maintain their complete final names in the template. Do not expose downstream
|
|
26
|
+
layout terminology or ask for platform-specific identity fields.
|
|
29
27
|
|
|
30
28
|
Do not offer a hidden `both` shortcut. If the user wants multiple outputs,
|
|
31
29
|
declare and inspect one first, then obtain confirmation for the next. Mention
|
|
@@ -49,8 +49,7 @@ least one `SKILL.md` and `wikis/index.md`.
|
|
|
49
49
|
The default `src/package-templates/kb/` template is only a starting point.
|
|
50
50
|
Inspect the generated `dist/<package-name>/` before calling it usable.
|
|
51
51
|
|
|
52
|
-
KB packages use
|
|
53
|
-
default:
|
|
52
|
+
KB packages use flat package-relative knowledge roots:
|
|
54
53
|
|
|
55
54
|
```ts
|
|
56
55
|
kbPackage({
|
|
@@ -59,44 +58,43 @@ kbPackage({
|
|
|
59
58
|
});
|
|
60
59
|
```
|
|
61
60
|
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
The package name already identifies the surrounding build folder, so the
|
|
62
|
+
output does not repeat it inside each root:
|
|
64
63
|
|
|
65
64
|
```text
|
|
66
65
|
skills/knowledge-query/SKILL.md
|
|
67
|
-
wikis/
|
|
68
|
-
guides
|
|
69
|
-
rules
|
|
70
|
-
feats
|
|
66
|
+
wikis/index.md
|
|
67
|
+
guides/...
|
|
68
|
+
rules/...
|
|
69
|
+
feats/...
|
|
71
70
|
```
|
|
72
71
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```ts
|
|
78
|
-
distribution: { knowledgeNamespace: "platform/component-lib" }
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Each segment may contain letters and numbers joined by hyphens or dots; keep
|
|
82
|
-
the complete value concise and stable. Context treats it as an opaque knowledge
|
|
83
|
-
path and does not infer downstream platform identifiers or classify package
|
|
84
|
-
content.
|
|
72
|
+
Do not ask for another distribution namespace. Older workspaces may still
|
|
73
|
+
contain `distribution.knowledgeNamespace`; Context accepts that legacy input
|
|
74
|
+
without using it to shape the package.
|
|
85
75
|
|
|
86
76
|
Skill names are separate. Ask whether the author wants a short optional Skill
|
|
87
77
|
prefix, then maintain the complete final template directory name directly—for
|
|
88
|
-
example `skills/android-query/SKILL.md`.
|
|
89
|
-
|
|
78
|
+
example `skills/android-query/SKILL.md`. Package-root layout never renames a
|
|
79
|
+
Skill.
|
|
90
80
|
|
|
91
|
-
The default `knowledge-query`
|
|
92
|
-
discipline: start from OKF directory indexes, use
|
|
81
|
+
The default `knowledge-query` Skill is a complete generic query entry. It
|
|
82
|
+
carries the structure-first query discipline: start from OKF directory indexes, use
|
|
93
83
|
`context-build-inventory.json` edge records for package-visible relationships,
|
|
94
84
|
inspect page `sources` / `context:section` source_ref metadata, cite
|
|
95
85
|
page/section evidence, and report explicit gaps when the package does not cover
|
|
96
86
|
a requested fact. It does not treat direct grep over bundled OKF root
|
|
97
|
-
directories as the primary discovery path.
|
|
98
|
-
|
|
99
|
-
|
|
87
|
+
directories as the primary discovery path. Its final template-author section
|
|
88
|
+
requires package authors to replace or edit the generic routing when the
|
|
89
|
+
package needs project-specific terminology, entry points, known limits, or
|
|
90
|
+
task workflows. Authors may explicitly accept the generic default when it is
|
|
91
|
+
intentionally sufficient.
|
|
92
|
+
|
|
93
|
+
The same inventory exposes `structure.relationship_coverage`. It records
|
|
94
|
+
whether selected codegraph pages have current source-backed AST relationship
|
|
95
|
+
metadata, how many codegraph views were selected, and how many package-visible
|
|
96
|
+
edges were emitted. An empty edge list is therefore explicit evidence of a
|
|
97
|
+
coverage state, not permission to invent a dependency.
|
|
100
98
|
|
|
101
99
|
The generated `wikis/` directory is the default OKF root and follows the C4A OKF
|
|
102
100
|
Profile. Internal production collections are mapped into package OKF roots such
|
|
@@ -109,9 +107,8 @@ contain Markdown with OKF fields and C4A extension fields at the top level, plus
|
|
|
109
107
|
`visibility`, and `code_symbols` are not nested under `context`, and page
|
|
110
108
|
frontmatter does not contain `source_refs`. The package root is an agent
|
|
111
109
|
package; the OKF-compatible interchange surface is the selected OKF root
|
|
112
|
-
subtrees under `dist/<package-name>/`. The required
|
|
113
|
-
`wikis/index.md
|
|
114
|
-
`wikis/<knowledge-namespace>/index.md`.
|
|
110
|
+
subtrees under `dist/<package-name>/`. The required template entry and final
|
|
111
|
+
output path are both `wikis/index.md`.
|
|
115
112
|
|
|
116
113
|
Current collection mapping:
|
|
117
114
|
|
|
@@ -142,7 +139,8 @@ occupies `wikis/**/index.md`.
|
|
|
142
139
|
Tell the user it can be edited before build to describe the package scope,
|
|
143
140
|
intended users, and query guidance.
|
|
144
141
|
|
|
145
|
-
The default root index is a
|
|
142
|
+
The default root index is a usable generic entry, not a project-specific
|
|
143
|
+
information architecture.
|
|
146
144
|
It links directly to pages in small child directories and to a child
|
|
147
145
|
`index.md` when that directory exceeds the configured navigation threshold.
|
|
148
146
|
The default threshold is 50 selected knowledge pages. Use Handlebars variables such as
|
|
@@ -150,6 +148,13 @@ The default threshold is 50 selected knowledge pages. Use Handlebars variables s
|
|
|
150
148
|
custom navigation. Before customizing it, read
|
|
151
149
|
`node_modules/@c4a/context/docs/reference/template-variables.md`.
|
|
152
150
|
|
|
151
|
+
Newly initialized generic templates must be replaced, edited, or explicitly
|
|
152
|
+
accepted before the first build. `context status` exposes that choice as a
|
|
153
|
+
package template Review Gate. Use only the revision-bound command returned by
|
|
154
|
+
that Route to accept an unchanged generic default; edit files under
|
|
155
|
+
`src/package-templates/` when customizing. Context compares file digests and
|
|
156
|
+
records the decision without evaluating the meaning of template prose.
|
|
157
|
+
|
|
153
158
|
Template paths are rendered before selected knowledge is copied. A rendered
|
|
154
159
|
template path must not collide with a selected knowledge path. If the build
|
|
155
160
|
reports a collision, rename the template file or exclude that knowledge path
|
|
@@ -236,12 +241,10 @@ We can also skip package output for now and keep only knowledge/.
|
|
|
236
241
|
Which one should I declare first?
|
|
237
242
|
```
|
|
238
243
|
|
|
239
|
-
If the user chooses the Agent knowledge-base package, explain that its
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
knowledge namespace controls only OKF roots, while the author maintains final
|
|
244
|
-
Skill names.
|
|
244
|
+
If the user chooses the Agent knowledge-base package, explain that its OKF
|
|
245
|
+
roots are flat within `dist/<package-name>/`; do not ask for a second namespace.
|
|
246
|
+
Ask whether its Skills need a short prefix. The author maintains final Skill
|
|
247
|
+
names independently from package paths.
|
|
245
248
|
|
|
246
249
|
Do not offer `both` as a shortcut. If the user wants multiple outputs, add one
|
|
247
250
|
package first, verify the shape, then add another package after confirmation.
|