@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.
- package/dist/assets/github-workflows/prism-ai-metrics.yml +83 -122
- package/dist/assets/github-workflows/prism-eval-gate-kiro.yml +66 -0
- package/dist/assets/github-workflows/prism-eval-gate.yml +1 -1
- package/dist/assets/gitlab-workflows/.gitlab-ci.yml +0 -3
- package/dist/assets/gitlab-workflows/prism-ai-metrics.yml +53 -56
- package/dist/assets/infra/bin/app.ts +1 -0
- package/dist/assets/infra/lib/constructs/otel-collector-construct.ts +4 -0
- package/dist/assets/infra/lib/dashboard-stack.ts +378 -1235
- package/dist/assets/infra/lib/lambda/event-schema.ts +144 -0
- package/dist/assets/infra/lib/lambda/metrics-processor.ts +124 -36
- package/dist/assets/infra/lib/lambda/otel-receiver.ts +249 -35
- package/dist/assets/infra/lib/lambda/security-remediation-tracker.ts +17 -2
- package/dist/assets/infra/lib/lambda/velocity-widget.ts +1483 -0
- package/dist/assets/infra/lib/metrics-pipeline-stack.ts +111 -119
- package/dist/assets/infra/package.json +2 -1
- package/dist/assets/infra/tsconfig.json +9 -2
- package/dist/src/commands/assessment/web.d.ts.map +1 -1
- package/dist/src/commands/assessment/web.js +25 -2
- package/dist/src/commands/assessment/web.js.map +1 -1
- package/dist/src/commands/bootstrapper/install-eval-harness.d.ts +8 -2
- package/dist/src/commands/bootstrapper/install-eval-harness.d.ts.map +1 -1
- package/dist/src/commands/bootstrapper/install-eval-harness.js +46 -36
- package/dist/src/commands/bootstrapper/install-eval-harness.js.map +1 -1
- package/dist/src/commands/bootstrapper/install-git-hooks.d.ts.map +1 -1
- package/dist/src/commands/bootstrapper/install-git-hooks.js +10 -14
- package/dist/src/commands/bootstrapper/install-git-hooks.js.map +1 -1
- package/dist/src/commands/bootstrapper/install-github-workflows.d.ts.map +1 -1
- package/dist/src/commands/bootstrapper/install-github-workflows.js +7 -2
- package/dist/src/commands/bootstrapper/install-github-workflows.js.map +1 -1
- package/dist/src/commands/bootstrapper/install-gitlab-workflows.d.ts.map +1 -1
- package/dist/src/commands/bootstrapper/install-gitlab-workflows.js +7 -1
- package/dist/src/commands/bootstrapper/install-gitlab-workflows.js.map +1 -1
- package/dist/src/commands/bootstrapper/setup-github-oidc.d.ts.map +1 -1
- package/dist/src/commands/bootstrapper/setup-github-oidc.js +50 -27
- package/dist/src/commands/bootstrapper/setup-github-oidc.js.map +1 -1
- package/dist/src/commands/bootstrapper/setup-gitlab-oidc.d.ts.map +1 -1
- package/dist/src/commands/bootstrapper/setup-gitlab-oidc.js +69 -25
- package/dist/src/commands/bootstrapper/setup-gitlab-oidc.js.map +1 -1
- package/dist/src/commands/bootstrapper/setup-otel-sync.d.ts.map +1 -1
- package/dist/src/commands/bootstrapper/setup-otel-sync.js +145 -53
- package/dist/src/commands/bootstrapper/setup-otel-sync.js.map +1 -1
- package/dist/src/commands/workshop/generate-demo-data.d.ts +41 -2
- package/dist/src/commands/workshop/generate-demo-data.d.ts.map +1 -1
- package/dist/src/commands/workshop/generate-demo-data.js +391 -167
- package/dist/src/commands/workshop/generate-demo-data.js.map +1 -1
- package/dist/src/commands/workshop/verify-setup.d.ts.map +1 -1
- package/dist/src/commands/workshop/verify-setup.js +75 -14
- package/dist/src/commands/workshop/verify-setup.js.map +1 -1
- package/dist/src/utils/exec.d.ts +56 -0
- package/dist/src/utils/exec.d.ts.map +1 -0
- package/dist/src/utils/exec.js +72 -0
- package/dist/src/utils/exec.js.map +1 -0
- package/dist/src/utils/region.d.ts +50 -0
- package/dist/src/utils/region.d.ts.map +1 -0
- package/dist/src/utils/region.js +62 -0
- package/dist/src/utils/region.js.map +1 -0
- package/dist/src/utils/tempfile.d.ts +19 -0
- package/dist/src/utils/tempfile.d.ts.map +1 -0
- package/dist/src/utils/tempfile.js +32 -0
- package/dist/src/utils/tempfile.js.map +1 -0
- package/dist/src/utils/validate.d.ts +54 -0
- package/dist/src/utils/validate.d.ts.map +1 -0
- package/dist/src/utils/validate.js +143 -0
- package/dist/src/utils/validate.js.map +1 -0
- package/package.json +2 -2
- package/dist/assets/eval-harness/README.md +0 -144
- package/dist/assets/github-workflows/README.md +0 -110
- package/dist/assets/github-workflows/prism-dora-weekly.yml +0 -334
- package/dist/assets/gitlab-workflows/prism-dora-weekly.yml +0 -181
- package/dist/assets/infra/lib/lambda/defect-correlator.ts +0 -142
- package/dist/assets/infra/lib/lambda/spec-to-code-calculator.ts +0 -123
- 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":"
|
|
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"}
|