@lssm-tech/example.ai-chat-assistantexample.ai-chat-assistant
Focused AI chat assistant template with MCP tools, reasoning, chain of thought, sources, and suggestions.
@lssm-tech/example.ai-chat-assistantSource, release and verification context
Source snapshot bcc79fcc · Declared package version 5.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
See where this package fits.
Follow a declared connection, inspect an import, then open the source guide when you need the detail.
Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.
@lssm-tech/example.ai-chat-assistant
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
Utiliser @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, ...
Declared capabilities.
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Imports and export paths.
11 entriesThese are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.
11 imports
@lssm-tech/example.ai-chat-assistant/ai-chat-assistant.feature@lssm-tech/example.ai-chat-assistant/contracts@lssm-tech/example.ai-chat-assistant/contracts/assistant.operation@lssm-tech/example.ai-chat-assistant/docs@lssm-tech/example.ai-chat-assistant/docs/ai-chat-assistant.docblock@lssm-tech/example.ai-chat-assistant/example@lssm-tech/example.ai-chat-assistant/handlers@lssm-tech/example.ai-chat-assistant/handlers/assistant.handlers@lssm-tech/example.ai-chat-assistant/ui@lssm-tech/example.ai-chat-assistant/ui/AiChatAssistantDashboardNo export paths match this search.
Dependencies and related packages.
Runtime dependencies 7
- @lssm-tech/lib.ai-agent
- workspace:^
- @lssm-tech/lib.contracts-spec
- workspace:^
- @lssm-tech/lib.design-system
- workspace:^
- @lssm-tech/lib.schema
- workspace:^
- @lssm-tech/module.ai-chat
- workspace:^
- react
- catalog:
- react-dom
- catalog:
Development dependencies 5
- @lssm-tech/tool.bun
- workspace:*
- @lssm-tech/tool.typescript
- workspace:*
- @types/react
- catalog:types
- @types/react-dom
- catalog:types
- typescript
- catalog:
Package scripts.
Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.
bun publish --tolerate-republish --ignore-scripts --verbosebun publish:pkg --tag canarycontractspec-bun-build buildcontractspec-bun-build transpilecontractspec-bun-build typescontractspec-bun-build devrimraf dist .turbobun run lint:fixnode ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .node ../../scripts/biome.cjs check .bun testbun test src/example.smoke.test.tscontractspec-bun-build prebuildtsgo --noEmit