@prism-d1/cli 1.0.79 → 1.0.81

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 (72) hide show
  1. package/dist/assets/github-workflows/prism-ai-metrics.yml +83 -122
  2. package/dist/assets/github-workflows/prism-eval-gate-kiro.yml +66 -0
  3. package/dist/assets/github-workflows/prism-eval-gate.yml +1 -1
  4. package/dist/assets/gitlab-workflows/.gitlab-ci.yml +0 -3
  5. package/dist/assets/gitlab-workflows/prism-ai-metrics.yml +53 -56
  6. package/dist/assets/infra/bin/app.ts +1 -0
  7. package/dist/assets/infra/lib/constructs/otel-collector-construct.ts +4 -0
  8. package/dist/assets/infra/lib/dashboard-stack.ts +378 -1235
  9. package/dist/assets/infra/lib/lambda/event-schema.ts +144 -0
  10. package/dist/assets/infra/lib/lambda/metrics-processor.ts +124 -36
  11. package/dist/assets/infra/lib/lambda/otel-receiver.ts +249 -35
  12. package/dist/assets/infra/lib/lambda/security-remediation-tracker.ts +17 -2
  13. package/dist/assets/infra/lib/lambda/velocity-widget.ts +1483 -0
  14. package/dist/assets/infra/lib/metrics-pipeline-stack.ts +111 -119
  15. package/dist/assets/infra/package.json +2 -1
  16. package/dist/assets/infra/tsconfig.json +9 -2
  17. package/dist/src/commands/assessment/web.d.ts.map +1 -1
  18. package/dist/src/commands/assessment/web.js +25 -2
  19. package/dist/src/commands/assessment/web.js.map +1 -1
  20. package/dist/src/commands/bootstrapper/install-eval-harness.d.ts +8 -2
  21. package/dist/src/commands/bootstrapper/install-eval-harness.d.ts.map +1 -1
  22. package/dist/src/commands/bootstrapper/install-eval-harness.js +46 -36
  23. package/dist/src/commands/bootstrapper/install-eval-harness.js.map +1 -1
  24. package/dist/src/commands/bootstrapper/install-git-hooks.d.ts.map +1 -1
  25. package/dist/src/commands/bootstrapper/install-git-hooks.js +10 -14
  26. package/dist/src/commands/bootstrapper/install-git-hooks.js.map +1 -1
  27. package/dist/src/commands/bootstrapper/install-github-workflows.d.ts.map +1 -1
  28. package/dist/src/commands/bootstrapper/install-github-workflows.js +7 -2
  29. package/dist/src/commands/bootstrapper/install-github-workflows.js.map +1 -1
  30. package/dist/src/commands/bootstrapper/install-gitlab-workflows.d.ts.map +1 -1
  31. package/dist/src/commands/bootstrapper/install-gitlab-workflows.js +7 -1
  32. package/dist/src/commands/bootstrapper/install-gitlab-workflows.js.map +1 -1
  33. package/dist/src/commands/bootstrapper/setup-github-oidc.d.ts.map +1 -1
  34. package/dist/src/commands/bootstrapper/setup-github-oidc.js +50 -27
  35. package/dist/src/commands/bootstrapper/setup-github-oidc.js.map +1 -1
  36. package/dist/src/commands/bootstrapper/setup-gitlab-oidc.d.ts.map +1 -1
  37. package/dist/src/commands/bootstrapper/setup-gitlab-oidc.js +69 -25
  38. package/dist/src/commands/bootstrapper/setup-gitlab-oidc.js.map +1 -1
  39. package/dist/src/commands/bootstrapper/setup-otel-sync.d.ts.map +1 -1
  40. package/dist/src/commands/bootstrapper/setup-otel-sync.js +145 -53
  41. package/dist/src/commands/bootstrapper/setup-otel-sync.js.map +1 -1
  42. package/dist/src/commands/workshop/generate-demo-data.d.ts +41 -2
  43. package/dist/src/commands/workshop/generate-demo-data.d.ts.map +1 -1
  44. package/dist/src/commands/workshop/generate-demo-data.js +391 -167
  45. package/dist/src/commands/workshop/generate-demo-data.js.map +1 -1
  46. package/dist/src/commands/workshop/verify-setup.d.ts.map +1 -1
  47. package/dist/src/commands/workshop/verify-setup.js +75 -14
  48. package/dist/src/commands/workshop/verify-setup.js.map +1 -1
  49. package/dist/src/utils/exec.d.ts +56 -0
  50. package/dist/src/utils/exec.d.ts.map +1 -0
  51. package/dist/src/utils/exec.js +72 -0
  52. package/dist/src/utils/exec.js.map +1 -0
  53. package/dist/src/utils/region.d.ts +50 -0
  54. package/dist/src/utils/region.d.ts.map +1 -0
  55. package/dist/src/utils/region.js +62 -0
  56. package/dist/src/utils/region.js.map +1 -0
  57. package/dist/src/utils/tempfile.d.ts +19 -0
  58. package/dist/src/utils/tempfile.d.ts.map +1 -0
  59. package/dist/src/utils/tempfile.js +32 -0
  60. package/dist/src/utils/tempfile.js.map +1 -0
  61. package/dist/src/utils/validate.d.ts +54 -0
  62. package/dist/src/utils/validate.d.ts.map +1 -0
  63. package/dist/src/utils/validate.js +143 -0
  64. package/dist/src/utils/validate.js.map +1 -0
  65. package/package.json +2 -2
  66. package/dist/assets/eval-harness/README.md +0 -144
  67. package/dist/assets/github-workflows/README.md +0 -110
  68. package/dist/assets/github-workflows/prism-dora-weekly.yml +0 -334
  69. package/dist/assets/gitlab-workflows/prism-dora-weekly.yml +0 -181
  70. package/dist/assets/infra/lib/lambda/defect-correlator.ts +0 -142
  71. package/dist/assets/infra/lib/lambda/spec-to-code-calculator.ts +0 -123
  72. package/dist/assets/metric-hooks/README.md +0 -107
@@ -1,15 +1,54 @@
1
+ /**
2
+ * PRISM D1 — workshop demo data generator.
3
+ *
4
+ * The dashboards read TWO stores, and a generator that fills only one leaves
5
+ * roughly half of every view blank:
6
+ *
7
+ * EventBridge → metrics-processor → events table + CloudWatch
8
+ * Delivery KPIs, eval gates, governance, agent ops, security, most of CISO.
9
+ *
10
+ * AI-usage table (attribution) → otel-receiver GET routes
11
+ * AI share, merge rate, defect rate, $/shipped commit, Attribution
12
+ * Coverage, Repository Breakdown, the observed PRISM level, and the whole
13
+ * Developer Productivity dashboard.
14
+ *
15
+ * Attribution is written directly to DynamoDB rather than POSTed to
16
+ * /v1/traces because the receiver derives the owning developer from the
17
+ * caller's JWT claim. Every seeded commit would land under the single
18
+ * participant running this command, and a one-developer fleet cannot
19
+ * demonstrate the per-developer view or a coverage shortfall. Direct writes
20
+ * are the only way to seed a multi-developer fleet.
21
+ *
22
+ * The cost of that choice is schema coupling. Item shapes below must match
23
+ * infra/lib/lambda/otel-receiver.ts — specifically writeCommitAttribution,
24
+ * writeSpanIfNew and bumpDailyAggregate. If those change, this changes too.
25
+ *
26
+ * Guardrails, because this writes fabricated facts into a metrics store:
27
+ * - every seeded item carries demo_seed=true and a seed_run_id
28
+ * - seeding refuses to run when the table already holds real attribution,
29
+ * unless --force is passed
30
+ * - --purge-demo removes seeded items and leaves real ones alone
31
+ */
1
32
  declare const _default: {
2
33
  description: string;
3
- options: {
34
+ options: ({
4
35
  flags: string;
5
36
  description: string;
6
37
  default: string;
7
- }[];
38
+ } | {
39
+ flags: string;
40
+ description: string;
41
+ default?: undefined;
42
+ })[];
8
43
  action(options: {
9
44
  region: string;
10
45
  bus: string;
11
46
  team: string;
12
47
  repo: string;
48
+ table: string;
49
+ attribution: boolean;
50
+ purgeDemo?: boolean;
51
+ force?: boolean;
13
52
  }): void;
14
53
  };
15
54
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"generate-demo-data.d.ts","sourceRoot":"","sources":["../../../../src/commands/workshop/generate-demo-data.ts"],"names":[],"mappings":";;;;;;;oBA+CkB;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;;AAR7E,wBA8VE"}
1
+ {"version":3,"file":"generate-demo-data.d.ts","sourceRoot":"","sources":["../../../../src/commands/workshop/generate-demo-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;;;;;;;;;;oBA+Ie;QACd,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;;AArBH,wBAqeE"}