{"id":"@lssm-tech/module.company-metrics","slug":"module.company-metrics","name":"@lssm-tech/module.company-metrics","version":"2.1.4","path":"packages/domains/company/company-metrics","manifestPath":"packages/domains/company/company-metrics/package.json","manifestBlobSha":"b3547846275ecdd62333cf514c486904651997d8","layer":"domains","physicalArea":"company","primaryArea":"company-and-work","classification":{"privateDeclared":null,"catalogFamily":"solutions","catalogKind":"module","catalogStatus":"active","adoptionMode":"adoptable","stability":"experimental"},"description":"Governed CompanyOS metric definitions, deterministic aggregation, collection, alerts, digests, and publications.","descriptionOrigin":"package.json","catalog":{"family":"solutions","kind":"module","status":"active","adoptionMode":"adoptable","stability":"experimental","platforms":["server"],"runtimes":["node"],"entrypoints":[".","./peer-client","./persistence","./ui"],"documentation":[{"title":"Module Company Metrics documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fmodule.company-metrics","kind":"readme"}],"examples":[],"replacements":[],"capabilities":[{"id":"package.lssm.tech.module.company.metrics","title":"Module Company Metrics","description":"Governed CompanyOS metric definitions, deterministic aggregation, collection, alerts, digests, and publications.","status":"active","useCases":["Adopt governed companyos metric definitions, deterministic aggregation, collection, alerts, digests, and publications"],"aliases":["module","company","metrics"],"pythonEquivalents":[],"canonicalImports":[{"from":"@lssm-tech/module.company-metrics","symbols":[]},{"from":"@lssm-tech/module.company-metrics/peer-client","symbols":[]},{"from":"@lssm-tech/module.company-metrics/persistence","symbols":[]}],"constraints":{"platforms":["server"],"runtimes":["node"],"avoidWhen":["The @lssm-tech/module.company-metrics package constraints do not match the target runtime or platform."],"requires":["TypeScript"]},"alternatives":[],"relationships":[],"resolutionPriority":50}]},"canonicalImports":[{"capabilityId":"package.lssm.tech.module.company.metrics","from":"@lssm-tech/module.company-metrics","symbols":[]},{"capabilityId":"package.lssm.tech.module.company.metrics","from":"@lssm-tech/module.company-metrics/peer-client","symbols":[]},{"capabilityId":"package.lssm.tech.module.company.metrics","from":"@lssm-tech/module.company-metrics/persistence","symbols":[]}],"scripts":{"build":"contractspec-bun-build build","build:bundle":"contractspec-bun-build transpile","build:types":"contractspec-bun-build types","lint:check":"node ../../../../scripts/biome.cjs check .","test":"bun test","typecheck":"tsgo --noEmit"},"scriptStatus":"complete pinned manifest","dependencies":{"@lssm-tech/lib.companyos-spec":"workspace:^","@lssm-tech/lib.design-system":"workspace:^","react":"catalog:"},"devDependencies":{"@lssm-tech/tool.bun":"workspace:*","@lssm-tech/tool.typescript":"workspace:*","@types/bun":"catalog:types","@types/node":"catalog:types","typescript":"catalog:","@types/react":"catalog:types","react-dom":"catalog:"},"peerDependencies":{"react":"catalog:"},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts","./aggregation":"./src/aggregation.ts","./alerts":"./src/alerts.ts","./calculation":"./src/calculation.ts","./collection":"./src/collection.ts","./delivery":"./src/delivery.ts","./governance":"./src/governance.ts","./i18n":"./src/i18n.ts","./peer-client":"./src/peer-client.ts","./persistence":"./src/persistence.ts","./runtime":"./src/runtime.ts","./templates":"./src/templates.ts","./ui":"./src/ui/index.ts","./windows":"./src/windows.ts"},"publishExports":{".":{"types":"./dist/index.d.ts","bun":"./dist/index.js","node":"./dist/node/index.js","default":"./dist/index.js"},"./aggregation":{"types":"./dist/aggregation.d.ts","bun":"./dist/aggregation.js","node":"./dist/node/aggregation.js","default":"./dist/aggregation.js"},"./alerts":{"types":"./dist/alerts.d.ts","bun":"./dist/alerts.js","node":"./dist/node/alerts.js","default":"./dist/alerts.js"},"./calculation":{"types":"./dist/calculation.d.ts","bun":"./dist/calculation.js","node":"./dist/node/calculation.js","default":"./dist/calculation.js"},"./collection":{"types":"./dist/collection.d.ts","bun":"./dist/collection.js","node":"./dist/node/collection.js","default":"./dist/collection.js"},"./delivery":{"types":"./dist/delivery.d.ts","bun":"./dist/delivery.js","node":"./dist/node/delivery.js","default":"./dist/delivery.js"},"./governance":{"types":"./dist/governance.d.ts","bun":"./dist/governance.js","node":"./dist/node/governance.js","default":"./dist/governance.js"},"./i18n":{"types":"./dist/i18n.d.ts","bun":"./dist/i18n.js","node":"./dist/node/i18n.js","default":"./dist/i18n.js"},"./peer-client":{"types":"./dist/peer-client.d.ts","bun":"./dist/peer-client.js","node":"./dist/node/peer-client.js","default":"./dist/peer-client.js"},"./persistence":{"types":"./dist/persistence.d.ts","bun":"./dist/persistence.js","node":"./dist/node/persistence.js","default":"./dist/persistence.js"},"./runtime":{"types":"./dist/runtime.d.ts","bun":"./dist/runtime.js","node":"./dist/node/runtime.js","default":"./dist/runtime.js"},"./templates":{"types":"./dist/templates.d.ts","bun":"./dist/templates.js","node":"./dist/node/templates.js","default":"./dist/templates.js"},"./ui":{"types":"./dist/ui/index.d.ts","bun":"./dist/ui/index.js","node":"./dist/node/ui/index.js","default":"./dist/ui/index.js"},"./windows":{"types":"./dist/windows.d.ts","bun":"./dist/windows.js","node":"./dist/node/windows.js","default":"./dist/windows.js"}},"types":"./dist/index.d.ts","files":["dist","README.md"],"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/module.company-metrics","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"packages/domains/company/company-metrics/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./aggregation","importPath":"@lssm-tech/module.company-metrics/aggregation","target":"./src/aggregation.ts","targets":[{"conditions":[],"target":"./src/aggregation.ts","sourcePath":"packages/domains/company/company-metrics/src/aggregation.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/aggregation.ts","sourceStatus":"verified source file"}]},{"subpath":"./alerts","importPath":"@lssm-tech/module.company-metrics/alerts","target":"./src/alerts.ts","targets":[{"conditions":[],"target":"./src/alerts.ts","sourcePath":"packages/domains/company/company-metrics/src/alerts.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/alerts.ts","sourceStatus":"verified source file"}]},{"subpath":"./calculation","importPath":"@lssm-tech/module.company-metrics/calculation","target":"./src/calculation.ts","targets":[{"conditions":[],"target":"./src/calculation.ts","sourcePath":"packages/domains/company/company-metrics/src/calculation.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/calculation.ts","sourceStatus":"verified source file"}]},{"subpath":"./collection","importPath":"@lssm-tech/module.company-metrics/collection","target":"./src/collection.ts","targets":[{"conditions":[],"target":"./src/collection.ts","sourcePath":"packages/domains/company/company-metrics/src/collection.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/collection.ts","sourceStatus":"verified source file"}]},{"subpath":"./delivery","importPath":"@lssm-tech/module.company-metrics/delivery","target":"./src/delivery.ts","targets":[{"conditions":[],"target":"./src/delivery.ts","sourcePath":"packages/domains/company/company-metrics/src/delivery.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/delivery.ts","sourceStatus":"verified source file"}]},{"subpath":"./governance","importPath":"@lssm-tech/module.company-metrics/governance","target":"./src/governance.ts","targets":[{"conditions":[],"target":"./src/governance.ts","sourcePath":"packages/domains/company/company-metrics/src/governance.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/governance.ts","sourceStatus":"verified source file"}]},{"subpath":"./i18n","importPath":"@lssm-tech/module.company-metrics/i18n","target":"./src/i18n.ts","targets":[{"conditions":[],"target":"./src/i18n.ts","sourcePath":"packages/domains/company/company-metrics/src/i18n.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/i18n.ts","sourceStatus":"verified source file"}]},{"subpath":"./peer-client","importPath":"@lssm-tech/module.company-metrics/peer-client","target":"./src/peer-client.ts","targets":[{"conditions":[],"target":"./src/peer-client.ts","sourcePath":"packages/domains/company/company-metrics/src/peer-client.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/peer-client.ts","sourceStatus":"verified source file"}]},{"subpath":"./persistence","importPath":"@lssm-tech/module.company-metrics/persistence","target":"./src/persistence.ts","targets":[{"conditions":[],"target":"./src/persistence.ts","sourcePath":"packages/domains/company/company-metrics/src/persistence.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/persistence.ts","sourceStatus":"verified source file"}]},{"subpath":"./runtime","importPath":"@lssm-tech/module.company-metrics/runtime","target":"./src/runtime.ts","targets":[{"conditions":[],"target":"./src/runtime.ts","sourcePath":"packages/domains/company/company-metrics/src/runtime.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/runtime.ts","sourceStatus":"verified source file"}]},{"subpath":"./templates","importPath":"@lssm-tech/module.company-metrics/templates","target":"./src/templates.ts","targets":[{"conditions":[],"target":"./src/templates.ts","sourcePath":"packages/domains/company/company-metrics/src/templates.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/templates.ts","sourceStatus":"verified source file"}]},{"subpath":"./ui","importPath":"@lssm-tech/module.company-metrics/ui","target":"./src/ui/index.ts","targets":[{"conditions":[],"target":"./src/ui/index.ts","sourcePath":"packages/domains/company/company-metrics/src/ui/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/ui/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./windows","importPath":"@lssm-tech/module.company-metrics/windows","target":"./src/windows.ts","targets":[{"conditions":[],"target":"./src/windows.ts","sourcePath":"packages/domains/company/company-metrics/src/windows.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/src/windows.ts","sourceStatus":"verified source file"}]}],"entryCount":14,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[{"title":"Module Company Metrics documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fmodule.company-metrics","kind":"readme","pinnedUrl":null,"sourceStatus":"declared link; destination not verified"}],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.company-metrics.txt"},"readme":{"status":"available","body":"# `@lssm-tech/module.company-metrics`\n\nCompanyOS-owned, provider-neutral metrics domain. It defines deterministic comparison windows, core templates, source and persistence ports, governed discovery, polling safety, alerts, digests, access grants, immutable publications, and Pactena's scope-bound peer contract.\n\nAI may propose mappings and explain referenced snapshots. It never calculates values, changes approved bindings, or authorizes collection. Raw provider payloads, credentials, prompts, SQL, shell fragments, and direct personal identifiers are outside this package.\n\nThe feature is guarded by `company-metrics-v1`. Consumers must require fresh CompanyOS authority and one of `metrics.read_live`, `metrics.manage`, `metrics.collect`, `metrics.publish`, `metrics.deliver`, or `metrics.audit`.\n\nBrowser projection consumers can import `companyMetricsMessages` from the existing\n`/peer-client` subpath (en/fr/es: title, unavailable, provisional, stale, growthNew,\nconfigure, evidence, denied). It reuses the canonical display catalogs without importing\nserver governance or persistence. The root export remains compatible.\n\nThe `/ui` subpath is the reusable executive dashboard for hosts and bundles:\n`createCompanyMetricsBrowserClient({ basePath })` is the typed same-origin\noperation client (credentialed dashboard read; mutations send one idempotency\nkey in the `idempotency-key` header and body plus a correlation id; 401/403 map\nto `denied`, any other failure to `unavailable` without inferring values), and\n`CompanyMetricsLiveDashboard({ client, locale })` renders the live projection,\ncore-template enablement and governed discovery with en/fr/es copy\n(`companyMetricsLiveMessages`). Hosts keep only the route base path.\n","sourcePath":"packages/domains/company/company-metrics/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/company/company-metrics/README.md","blobSha":"48993a543c00417c4406546c3c2b75b536aa03ca","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","origin":"README recovered byte-for-byte from pinned aggregate guide","integrity":"exact Git blob match","executionStatus":"not executed"},"provenance":{"repository":"lssm-tech/contractspec","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","manifestOrigin":"pinned GitHub manifest fetch","manifestComplete":true,"publicationPolicyApplied":false},"areaSlug":"company-and-work","areaTitle":"Company, work and service operations","displayName":"module.company-metrics","runtimes":["node"],"platforms":["server"],"kind":"module","scope":"Package manifest","canonicalRoute":"/docs/packages/module.company-metrics/","contextUrl":"/docs/packages/module.company-metrics.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}