@phosphorco/bb-thread-metrics 0.0.0-stage → 0.2.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.
@@ -0,0 +1,21 @@
1
+ import type { BbPluginApi } from '@get-bb/plugin-sdk';
2
+ import type { RecentSnapshotInput, ReadInput, DetailInput } from './index.js';
3
+ export interface ConformanceOptions {
4
+ pluginId: string;
5
+ /** The adopter's real factory/registration, never a second implementation. */
6
+ register(bb: BbPluginApi): void | Promise<void>;
7
+ readCases: readonly ReadInput[];
8
+ detailCases?: readonly DetailInput[];
9
+ recentCases?: readonly RecentSnapshotInput[];
10
+ deadlineMs?: number;
11
+ }
12
+ export interface ConformanceReport {
13
+ passed: boolean;
14
+ checks: {
15
+ name: string;
16
+ passed: boolean;
17
+ error?: string;
18
+ }[];
19
+ proof: 'source-conformance';
20
+ }
21
+ export declare function runSupplierConformance(options: ConformanceOptions): Promise<ConformanceReport>;
package/package.json CHANGED
@@ -1,6 +1,24 @@
1
1
  {
2
2
  "name": "@phosphorco/bb-thread-metrics",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Bounded thread dollar metrics contracts and pure family and heat operations.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {"type":"git","url":"git+https://github.com/phosphorco/bb-community-plugins.git","directory":"packages/bb-thread-metrics"},
8
+ "exports": {
9
+ ".": {"types":"./dist/types/index.d.ts","import":"./dist/index.js"},
10
+ "./bb": {"types":"./dist/types/bb.d.ts","import":"./dist/bb.js"},
11
+ "./testing": {"types":"./dist/types/testing.d.ts","import":"./dist/testing.js"}
12
+ },
13
+ "files": ["dist/", "CONTRACT.md", "README.md", "LICENSE"],
14
+ "publishConfig": {"access":"public"},
15
+ "dependencies": {"zod":"^4.3.6","@phosphorco/bb-usage-algebra":"0.1.0"},
16
+ "peerDependencies": {"@get-bb/plugin-sdk":">=0.5.29 <0.6 || ^0.6.29"},
17
+ "peerDependenciesMeta": {"@get-bb/plugin-sdk":{"optional":true}},
18
+ "devDependencies": {"@get-bb/plugin-sdk":"0.6.52","@types/bun":"1.3.14","bun":"1.3.14","typescript":"^5.9.3"},
19
+ "scripts": {
20
+ "build":"node tools/build-dependency.mjs && bun tools/build.mjs && tsc --project tsconfig.declarations.json",
21
+ "typecheck":"tsc --noEmit",
22
+ "test":"node tools/test.mjs"
23
+ }
24
+ }