example.product-intent
Product intent example: evidence ingestion and prompt-ready outputs.
@lssm-tech/example.product-intentbun add @lssm-tech/example.product-intentManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Website: https://contractspec.io
Product intent example: evidence ingestion and prompt-ready outputs.
What This Demonstrates
- Canonical
product-intentexport viaProductIntentDiscoverySpec. - Evidence loading and ingestion pipeline.
- PostHog signal extraction for product analytics.
- Action synchronization across tools.
- Script-based execution pattern.
src/docs/contains docblocks and documentation-facing exports.
Running Locally
From examples/product-intent:
bun run devbun run buildbun run testbun run typecheck
Usage
Use @lssm-tech/example.product-intent as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.
Architecture
src/docs/contains docblocks and documentation-facing exports.src/example.tsis the runnable example entrypoint.src/index.tsis the root public barrel and package entrypoint.src/load-evidence.test.tsis part of the package's public or composition surface.src/load-evidence.tsis part of the package's public or composition surface.src/posthog-signals.tsis part of the package's public or composition surface.src/product-intent.discovery.tsdefines the exported product-intent spec.src/product-intent.feature.tsdefines a feature entrypoint.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./docsresolves through./src/docs/index.ts. - Export
./docs/product-intent.docblockis an alias of./docsand resolves through./src/docs/index.ts. - Export
./exampleresolves through./src/example.ts. - Export
./load-evidenceresolves through./src/load-evidence.ts. - Export
./posthog-signalsresolves through./src/posthog-signals.ts. - Export
./product-intent.discoveryresolves through./src/product-intent.discovery.ts. - Export
./product-intent.featureresolves through./src/product-intent.feature.ts. - Export
./scriptresolves through./src/script.ts. - Export
./sync-actionsresolves through./src/sync-actions.ts. - The package publishes 9 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— contractspec-bun-build buildbun run test— bun testbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsgo --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Stability.
- Missing contract layers.
Notes
- Works alongside
@lssm-tech/integration.provider-analytics,@lssm-tech/integration.provider-project-management,@lssm-tech/lib.ai-agent,@lssm-tech/lib.analytics,@lssm-tech/lib.contracts-integrations,@lssm-tech/lib.contracts-spec, ...
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
7 declarations
@lssm-tech/integration.provider-analyticsworkspace:^
Read the package manual ↗@lssm-tech/integration.provider-project-managementworkspace:^
Read the package manual ↗@lssm-tech/lib.ai-agentworkspace:^
Read the package manual ↗@lssm-tech/lib.analyticsworkspace:^
Read the package manual ↗@lssm-tech/lib.contracts-integrationsworkspace:^
Read the package manual ↗@lssm-tech/lib.contracts-specworkspace:^
Read the package manual ↗
Declared capabilities
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devcleanrimraf dist .turbolintbun lint:fixlint:fixnode ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .lint:checknode ../../scripts/biome.cjs check .testbun testprebuildcontractspec-bun-build prebuildtypechecktsgo --noEmit