npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ectropy/construction-commercial-context

v0.4.0

Published

Public construction-commercial domain context schemas for @ectropy/schemas universal decision log

Readme

@ectropy/construction-commercial-context

License: Apache-2.0

Public TypeScript type contracts for the construction-commercial domain, published for use with @ectropy/schemas' universal decision log. This package ships types only — no runtime code, no JSON Schema files — as .ts source consumed directly by peers of @ectropy/schemas.

What's here

All types are exported from a single entrypoint, types/index.ts, grouped below by what they model:

Decision domain & authority

  • construction-commercial-domain.types.ts — the construction-commercial domain identifier
  • construction-commercial-authority.types.ts — 7-tier authority cascade (FIELD → REGULATORY) per AIA / IPD / GMP / Design-Build conventions
  • construction-decision-type.types.ts — semantic decision classification (APPROVAL, REJECTION, DEFERRAL, ESCALATION, PROPOSAL, CONSEQUENCE)

Decision event context

  • voxel-attachment.types.ts — spatial/BIM voxel references attachable to a decision event
  • construction-trigger-context.types.ts, construction-action.types.ts, construction-evidence.types.ts, construction-participants.types.ts, construction-outcome-context.types.ts — the trigger/action/evidence/participants/outcome shapes that compose a construction-commercial decision event

BPC (Building Product Catalog) intelligence

  • bpc-enums.types.ts — enums mirrored from the bpc Postgres schema in cis_intelligence (quantity units, assembly categories, etc.)
  • bpc-assembly-bom.types.ts, bpc-labor-schedule.types.ts, bpc-product-price.types.ts — bill-of-materials, labor, and pricing shapes
  • bpc-cost-composite.types.ts, bpc-cost-grounded.types.ts — dual-channel assembly cost types (PPI-composite vs. product-grounded)

Cost Intelligence Service (mirrors the service on port 5009)

  • cost-response.types.ts — consumer-facing response shapes for the cost routes, including the combined DualChannelPricingResponse
  • cost-ppi.types.ts, cost-regional.types.ts, cost-material-signal.types.ts, cost-data-provenance.types.ts — PPI, regional-factor, material-signal, and provenance shapes feeding those responses

Carbon Intelligence Service (mirrors cis-carbon)

  • carbon-response.types.ts, carbon-epd.types.ts — Environmental Product Declaration (EPD) response shapes, e.g. ProductEpdResponse

Jurisdiction Service (mirrors cis-jurisdiction)

  • jurisdiction-response.types.ts — site point → administrative and market keys (county FIPS, CBSA, municipality, Canadian census division / economic region / CMA, IANA time zone) with per-source provenance, e.g. JurisdictionResolutionResponse

Install

pnpm add @ectropy/construction-commercial-context

Requires @ectropy/schemas as a peer dependency (^0.4.0) — several types (e.g. AuthorityLabelMap, Urn) are imported from it.

Development

pnpm install
pnpm typecheck   # tsc --noEmit
pnpm test        # vitest run, against __tests__/

There is no build step: the package is consumed as TypeScript source (main/types both point at types/index.ts).

Versioning

Current version: 0.4.0. See git log for the type-contract history (cost types landed in v0.2.0, carbon types in v0.3.0, jurisdiction types in v0.4.0).

License

Apache-2.0 — see LICENSE.