example.ai-chat-assistant
Focused AI chat assistant template with MCP tools, reasoning, chain of thought, sources, and suggestions.
@lssm-tech/example.ai-chat-assistantbun add @lssm-tech/example.ai-chat-assistantManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Website: https://contractspec.io
Focused AI chat assistant example with MCP tools, reasoning, sources, suggestions, and reusable dashboard UI.
What This Demonstrates
- Demonstrates how
@lssm-tech/module.ai-chatcan power a focused assistant experience. - Publishes feature, contracts, handlers, docs, example, and dashboard UI entrypoints.
- Provides a search-backed, source-aware assistant template for example consumers and docs.
src/contracts/contains contract specs, operations, entities, and registry exports.src/docs/contains docblocks and documentation-facing exports.src/handlers/contains handlers or demo adapters wired to contract surfaces.
Running Locally
From examples/ai-chat-assistant:
bun run devbun run buildbun run testbun run smokebun run typecheck
Usage
Use @lssm-tech/example.ai-chat-assistant as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.
Architecture
src/ai-chat-assistant.feature.tsdefines the example feature surface.src/contracts/contains the assistant operation contract exports.src/handlers/contains the demo assistant handlers wired to the example feature.src/ui/contains the packaged dashboard UI for embedding or demonstration.src/docs/andsrc/example.tsprovide docblock and runnable example entrypoints.src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Exports the feature surface, contract barrels, handlers, docs entrypoints, runnable example, and dashboard UI.
- Export
.resolves through./src/index.ts. - Export
./ai-chat-assistant.featureresolves through./src/ai-chat-assistant.feature.ts. - Export
./contractsresolves through./src/contracts/index.ts. - Export
./contracts/assistant.operationresolves through./src/contracts/assistant.operation.ts. - Export
./docsresolves through./src/docs/index.ts. - Export
./docs/ai-chat-assistant.docblockis an alias of./docsand resolves through./src/docs/index.ts. - Export
./exampleresolves through./src/example.ts. - Export
./handlersresolves through./src/handlers/index.ts. - Export
./handlers/assistant.handlersresolves through./src/handlers/assistant.handlers.ts. - Export
./uiresolves through./src/ui/index.ts. - The package publishes 11 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 smoke— bun test src/example.smoke.test.tsbun run lint— bun run 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.
- Vnext ai-native.
Notes
- Works alongside
@lssm-tech/lib.ai-agent,@lssm-tech/lib.contracts-spec,@lssm-tech/lib.schema,@lssm-tech/module.ai-chat,@lssm-tech/tool.bun, ...
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
7 declarations
@lssm-tech/lib.ai-agentworkspace:^
Read the package manual ↗@lssm-tech/lib.contracts-specworkspace:^
Read the package manual ↗@lssm-tech/lib.design-systemworkspace:^
Read the package manual ↗@lssm-tech/lib.schemaworkspace:^
Read the package manual ↗@lssm-tech/module.ai-chatworkspace:^
Read the package manual ↗reactcatalog:
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 run 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 testsmokebun test src/example.smoke.test.tsprebuildcontractspec-bun-build prebuildtypechecktsgo --noEmit