@kb-labs/qa-entry 2.109.0 → 2.111.0

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 (59) hide show
  1. package/dist/cli/commands/baseline-diff.d.ts +1 -3
  2. package/dist/cli/commands/baseline-diff.js +3 -3
  3. package/dist/cli/commands/baseline-diff.js.map +1 -1
  4. package/dist/cli/commands/baseline-status.d.ts +1 -3
  5. package/dist/cli/commands/baseline-status.js +1 -1
  6. package/dist/cli/commands/baseline-status.js.map +1 -1
  7. package/dist/cli/commands/baseline-update.d.ts +1 -3
  8. package/dist/cli/commands/baseline-update.js +1 -1
  9. package/dist/cli/commands/baseline-update.js.map +1 -1
  10. package/dist/cli/commands/flags.d.ts +70 -1
  11. package/dist/cli/commands/flags.js +67 -1
  12. package/dist/cli/commands/flags.js.map +1 -1
  13. package/dist/cli/commands/qa-check.d.ts +1 -3
  14. package/dist/cli/commands/qa-check.js +1 -1
  15. package/dist/cli/commands/qa-check.js.map +1 -1
  16. package/dist/cli/commands/qa-ci-evidence-capture.d.ts +29 -0
  17. package/dist/cli/commands/qa-ci-evidence-capture.js +59 -0
  18. package/dist/cli/commands/qa-ci-evidence-capture.js.map +1 -0
  19. package/dist/cli/commands/qa-ci-evidence-sync.d.ts +31 -0
  20. package/dist/cli/commands/qa-ci-evidence-sync.js +51 -0
  21. package/dist/cli/commands/qa-ci-evidence-sync.js.map +1 -0
  22. package/dist/cli/commands/qa-ci-overview.d.ts +21 -0
  23. package/dist/cli/commands/qa-ci-overview.js +49 -0
  24. package/dist/cli/commands/qa-ci-overview.js.map +1 -0
  25. package/dist/cli/commands/qa-e2e-flaky.d.ts +1 -3
  26. package/dist/cli/commands/qa-e2e-flaky.js +6 -6
  27. package/dist/cli/commands/qa-e2e-flaky.js.map +1 -1
  28. package/dist/cli/commands/qa-gate.d.ts +1 -3
  29. package/dist/cli/commands/qa-gate.js +1 -1
  30. package/dist/cli/commands/qa-gate.js.map +1 -1
  31. package/dist/cli/commands/qa-history.d.ts +1 -3
  32. package/dist/cli/commands/qa-history.js +1 -1
  33. package/dist/cli/commands/qa-history.js.map +1 -1
  34. package/dist/cli/commands/qa-regressions.d.ts +1 -3
  35. package/dist/cli/commands/qa-regressions.js +1 -1
  36. package/dist/cli/commands/qa-regressions.js.map +1 -1
  37. package/dist/cli/commands/qa-run.d.ts +1 -3
  38. package/dist/cli/commands/qa-run.js +1 -1
  39. package/dist/cli/commands/qa-run.js.map +1 -1
  40. package/dist/cli/commands/qa-stats.d.ts +1 -3
  41. package/dist/cli/commands/qa-stats.js +1 -1
  42. package/dist/cli/commands/qa-stats.js.map +1 -1
  43. package/dist/cli/commands/qa-trends.d.ts +1 -3
  44. package/dist/cli/commands/qa-trends.js +1 -1
  45. package/dist/cli/commands/qa-trends.js.map +1 -1
  46. package/dist/index.js +99 -3
  47. package/dist/index.js.map +1 -1
  48. package/dist/manifest.d.ts +4 -0
  49. package/dist/manifest.js +99 -3
  50. package/dist/manifest.js.map +1 -1
  51. package/dist/manifest.json +245 -12
  52. package/dist/rest/handlers/ci-overview-handler.d.ts +7 -0
  53. package/dist/rest/handlers/ci-overview-handler.js +19 -0
  54. package/dist/rest/handlers/ci-overview-handler.js.map +1 -0
  55. package/dist/widgets/__federation_expose_QADashboard.js +1 -1
  56. package/dist/widgets/mf-manifest.json +12 -12
  57. package/dist/widgets/mf-stats.json +12 -12
  58. package/dist/widgets/remoteEntry.js +2 -2
  59. package/package.json +4 -4
@@ -31,6 +31,14 @@
31
31
  {
32
32
  "path": "qa baseline",
33
33
  "describe": "Baseline management"
34
+ },
35
+ {
36
+ "path": "qa ci",
37
+ "describe": "CI evidence and reliability analysis"
38
+ },
39
+ {
40
+ "path": "qa ci evidence",
41
+ "describe": "Immutable CI evidence capture"
34
42
  }
35
43
  ],
36
44
  "commands": [
@@ -83,7 +91,8 @@
83
91
  "shell": {
84
92
  "allow": [
85
93
  "kb-devkit",
86
- "git"
94
+ "git",
95
+ "gh"
87
96
  ]
88
97
  },
89
98
  "platform": {
@@ -139,7 +148,8 @@
139
148
  "shell": {
140
149
  "allow": [
141
150
  "kb-devkit",
142
- "git"
151
+ "git",
152
+ "gh"
143
153
  ]
144
154
  },
145
155
  "platform": {
@@ -195,7 +205,8 @@
195
205
  "shell": {
196
206
  "allow": [
197
207
  "kb-devkit",
198
- "git"
208
+ "git",
209
+ "gh"
199
210
  ]
200
211
  },
201
212
  "platform": {
@@ -251,7 +262,8 @@
251
262
  "shell": {
252
263
  "allow": [
253
264
  "kb-devkit",
254
- "git"
265
+ "git",
266
+ "gh"
255
267
  ]
256
268
  },
257
269
  "platform": {
@@ -307,7 +319,8 @@
307
319
  "shell": {
308
320
  "allow": [
309
321
  "kb-devkit",
310
- "git"
322
+ "git",
323
+ "gh"
311
324
  ]
312
325
  },
313
326
  "platform": {
@@ -363,7 +376,8 @@
363
376
  "shell": {
364
377
  "allow": [
365
378
  "kb-devkit",
366
- "git"
379
+ "git",
380
+ "gh"
367
381
  ]
368
382
  },
369
383
  "platform": {
@@ -441,7 +455,216 @@
441
455
  "shell": {
442
456
  "allow": [
443
457
  "kb-devkit",
444
- "git"
458
+ "git",
459
+ "gh"
460
+ ]
461
+ },
462
+ "platform": {
463
+ "analytics": true
464
+ },
465
+ "quotas": {
466
+ "timeoutMs": 600000,
467
+ "memoryMb": 512
468
+ }
469
+ }
470
+ },
471
+ {
472
+ "path": "qa ci evidence capture",
473
+ "category": "CI",
474
+ "describe": "Capture a GitHub Actions run dossier (CI producer command)",
475
+ "operationType": "execute",
476
+ "handler": "./cli/commands/qa-ci-evidence-capture.js#default",
477
+ "flags": [
478
+ {
479
+ "name": "runId",
480
+ "type": "string",
481
+ "description": "GitHub Actions run ID (defaults to GITHUB_RUN_ID)"
482
+ },
483
+ {
484
+ "name": "repository",
485
+ "type": "string",
486
+ "description": "GitHub repository in owner/name form (defaults to GITHUB_REPOSITORY)"
487
+ },
488
+ {
489
+ "name": "output",
490
+ "type": "string",
491
+ "default": ".kb/qa/ci/dossier.json",
492
+ "description": "Path for the immutable dossier JSON"
493
+ },
494
+ {
495
+ "name": "excludeJob",
496
+ "type": "string",
497
+ "description": "Comma-separated job names to exclude from evidence (for example, the collector job itself)"
498
+ },
499
+ {
500
+ "name": "json",
501
+ "type": "boolean",
502
+ "default": false,
503
+ "description": "Output the captured dossier as JSON"
504
+ }
505
+ ],
506
+ "permissions": {
507
+ "fs": {
508
+ "read": [
509
+ ".kb/**",
510
+ "**"
511
+ ],
512
+ "write": [
513
+ ".kb/**",
514
+ "**"
515
+ ]
516
+ },
517
+ "env": {
518
+ "read": [
519
+ "HOME",
520
+ "USER",
521
+ "PATH",
522
+ "TMPDIR",
523
+ "NODE_ENV",
524
+ "KB_*"
525
+ ]
526
+ },
527
+ "shell": {
528
+ "allow": [
529
+ "kb-devkit",
530
+ "git",
531
+ "gh"
532
+ ]
533
+ },
534
+ "platform": {
535
+ "analytics": true
536
+ },
537
+ "quotas": {
538
+ "timeoutMs": 600000,
539
+ "memoryMb": 512
540
+ }
541
+ }
542
+ },
543
+ {
544
+ "path": "qa ci evidence sync",
545
+ "category": "CI",
546
+ "describe": "Download new CI evidence artifacts into a local cache",
547
+ "operationType": "execute",
548
+ "handler": "./cli/commands/qa-ci-evidence-sync.js#default",
549
+ "flags": [
550
+ {
551
+ "name": "repository",
552
+ "type": "string",
553
+ "description": "GitHub repository in owner/name form (defaults to config or GITHUB_REPOSITORY)"
554
+ },
555
+ {
556
+ "name": "workflow",
557
+ "type": "string",
558
+ "default": "e2e-platform.yml",
559
+ "description": "GitHub Actions workflow file or name"
560
+ },
561
+ {
562
+ "name": "limit",
563
+ "type": "number",
564
+ "default": 50,
565
+ "description": "Recent workflow runs to inspect for evidence artifacts"
566
+ },
567
+ {
568
+ "name": "output",
569
+ "type": "string",
570
+ "default": ".kb/qa/ci/evidence",
571
+ "description": "Local evidence cache directory"
572
+ },
573
+ {
574
+ "name": "json",
575
+ "type": "boolean",
576
+ "default": false,
577
+ "description": "Output sync details as JSON"
578
+ }
579
+ ],
580
+ "permissions": {
581
+ "fs": {
582
+ "read": [
583
+ ".kb/**",
584
+ "**"
585
+ ],
586
+ "write": [
587
+ ".kb/**",
588
+ "**"
589
+ ]
590
+ },
591
+ "env": {
592
+ "read": [
593
+ "HOME",
594
+ "USER",
595
+ "PATH",
596
+ "TMPDIR",
597
+ "NODE_ENV",
598
+ "KB_*"
599
+ ]
600
+ },
601
+ "shell": {
602
+ "allow": [
603
+ "kb-devkit",
604
+ "git",
605
+ "gh"
606
+ ]
607
+ },
608
+ "platform": {
609
+ "analytics": true
610
+ },
611
+ "quotas": {
612
+ "timeoutMs": 600000,
613
+ "memoryMb": 512
614
+ }
615
+ }
616
+ },
617
+ {
618
+ "path": "qa ci overview",
619
+ "category": "CI",
620
+ "describe": "Show a compact CI reliability overview",
621
+ "operationType": "read",
622
+ "handler": "./cli/commands/qa-ci-overview.js#default",
623
+ "flags": [
624
+ {
625
+ "name": "input",
626
+ "type": "string",
627
+ "default": ".kb/qa/ci",
628
+ "description": "Dossier JSON file or directory containing dossier.json files"
629
+ },
630
+ {
631
+ "name": "output",
632
+ "type": "string",
633
+ "description": "Optional file to receive the compact agent-ready JSON overview"
634
+ },
635
+ {
636
+ "name": "json",
637
+ "type": "boolean",
638
+ "default": false,
639
+ "description": "Output the agent-ready reliability overview as JSON"
640
+ }
641
+ ],
642
+ "permissions": {
643
+ "fs": {
644
+ "read": [
645
+ ".kb/**",
646
+ "**"
647
+ ],
648
+ "write": [
649
+ ".kb/**",
650
+ "**"
651
+ ]
652
+ },
653
+ "env": {
654
+ "read": [
655
+ "HOME",
656
+ "USER",
657
+ "PATH",
658
+ "TMPDIR",
659
+ "NODE_ENV",
660
+ "KB_*"
661
+ ]
662
+ },
663
+ "shell": {
664
+ "allow": [
665
+ "kb-devkit",
666
+ "git",
667
+ "gh"
445
668
  ]
446
669
  },
447
670
  "platform": {
@@ -491,7 +714,8 @@
491
714
  "shell": {
492
715
  "allow": [
493
716
  "kb-devkit",
494
- "git"
717
+ "git",
718
+ "gh"
495
719
  ]
496
720
  },
497
721
  "platform": {
@@ -541,7 +765,8 @@
541
765
  "shell": {
542
766
  "allow": [
543
767
  "kb-devkit",
544
- "git"
768
+ "git",
769
+ "gh"
545
770
  ]
546
771
  },
547
772
  "platform": {
@@ -591,7 +816,8 @@
591
816
  "shell": {
592
817
  "allow": [
593
818
  "kb-devkit",
594
- "git"
819
+ "git",
820
+ "gh"
595
821
  ]
596
822
  },
597
823
  "platform": {
@@ -641,7 +867,8 @@
641
867
  "shell": {
642
868
  "allow": [
643
869
  "kb-devkit",
644
- "git"
870
+ "git",
871
+ "gh"
645
872
  ]
646
873
  },
647
874
  "platform": {
@@ -722,6 +949,11 @@
722
949
  "method": "GET",
723
950
  "path": "/tasks",
724
951
  "handler": "./rest/handlers/tasks-handler.js#default"
952
+ },
953
+ {
954
+ "method": "GET",
955
+ "path": "/ci/overview",
956
+ "handler": "./rest/handlers/ci-overview-handler.js#default"
725
957
  }
726
958
  ]
727
959
  },
@@ -772,7 +1004,8 @@
772
1004
  "shell": {
773
1005
  "allow": [
774
1006
  "kb-devkit",
775
- "git"
1007
+ "git",
1008
+ "gh"
776
1009
  ]
777
1010
  },
778
1011
  "platform": {
@@ -0,0 +1,7 @@
1
+ import * as _kb_labs_shared_command_kit from '@kb-labs/shared-command-kit';
2
+ import * as _kb_labs_qa_contracts from '@kb-labs/qa-contracts';
3
+
4
+ /** Read-only agent surface. It intentionally returns findings, not raw GitHub logs. */
5
+ declare const _default: _kb_labs_shared_command_kit.Handler<unknown, unknown, _kb_labs_qa_contracts.CiReliabilityOverview>;
6
+
7
+ export { _default as default };
@@ -0,0 +1,19 @@
1
+ import { join } from 'path';
2
+ import { defineHandler, rethrowForRest } from '@kb-labs/sdk';
3
+ import { analyzeCiReliability, loadCiDossiers } from '@kb-labs/qa-core';
4
+
5
+ // src/rest/handlers/ci-overview-handler.ts
6
+ var ci_overview_handler_default = defineHandler({
7
+ async execute(ctx) {
8
+ try {
9
+ const cwd = ctx.cwd ?? process.cwd();
10
+ return analyzeCiReliability(loadCiDossiers(join(cwd, ".kb/qa/ci/evidence")));
11
+ } catch (error) {
12
+ rethrowForRest(error);
13
+ }
14
+ }
15
+ });
16
+
17
+ export { ci_overview_handler_default as default };
18
+ //# sourceMappingURL=ci-overview-handler.js.map
19
+ //# sourceMappingURL=ci-overview-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/rest/handlers/ci-overview-handler.ts"],"names":[],"mappings":";;;;;AAKA,IAAO,8BAAQ,aAAA,CAAc;AAAA,EAC3B,MAAM,QAAQ,GAAA,EAAsB;AAClC,IAAA,IAAI;AACF,MAAA,MAAM,GAAA,GAAM,GAAA,CAAI,GAAA,IAAO,OAAA,CAAQ,GAAA,EAAI;AACnC,MAAA,OAAO,qBAAqB,cAAA,CAAe,IAAA,CAAK,GAAA,EAAK,oBAAoB,CAAC,CAAC,CAAA;AAAA,IAC7E,SAAS,KAAA,EAAO;AACd,MAAA,cAAA,CAAe,KAAK,CAAA;AAAA,IACtB;AAAA,EACF;AACF,CAAC","file":"ci-overview-handler.js","sourcesContent":["import { join } from 'node:path';\nimport { defineHandler, rethrowForRest, type PluginContextV3 } from '@kb-labs/sdk';\nimport { analyzeCiReliability, loadCiDossiers } from '@kb-labs/qa-core';\n\n/** Read-only agent surface. It intentionally returns findings, not raw GitHub logs. */\nexport default defineHandler({\n async execute(ctx: PluginContextV3) {\n try {\n const cwd = ctx.cwd ?? process.cwd();\n return analyzeCiReliability(loadCiDossiers(join(cwd, '.kb/qa/ci/evidence')));\n } catch (error) {\n rethrowForRest(error);\n }\n },\n});\n"]}