Add BlockSense business workflow functions #286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add BlockSense business workflow functions
Summary
Added a new MDX file (
examples/startups/blocksense.mdx) that implements comprehensive business workflow functions for BlockSense, a fictional predictive maintenance platform for concrete block and brick manufacturing plants. The file demonstrates the "business-as-code" concept by encoding an entire business model as executable TypeScript functions.The implementation includes:
All functions are properly typed with comprehensive TypeScript interfaces and follow async/await patterns with error handling. The business logic is based on the provided lean canvas data for a predictive maintenance solution targeting the concrete block/brick manufacturing industry.
Review & Testing Checklist for Human
mdxeon the file to confirm it can be parsed and executed by the MDX toolchainRecommended test plan: Try running
mdxe examples/startups/blocksense.mdxto verify the file processes correctly within the MDX ecosystem.Diagram
%%{ init : { "theme" : "default" }}%% flowchart TD subgraph "Examples Directory" StartupDir["examples/startups/"]:::context ReadmeMd["examples/startups/README.md"]:::context BlocksenseMdx["examples/startups/blocksense.mdx"]:::major-edit end subgraph "MDX Ecosystem" MdxeEngine["mdxe execution engine"]:::context MdxaiPackage["@mdxai package"]:::context TypescriptTypes["TypeScript type system"]:::context end subgraph "Business Functions" CustomerAcq["Customer Acquisition"]:::major-edit ProductDev["Product Development"]:::major-edit RevenueGen["Revenue Generation"]:::major-edit Operations["Operational Procedures"]:::major-edit end StartupDir --> BlocksenseMdx BlocksenseMdx --> MdxeEngine BlocksenseMdx --> CustomerAcq BlocksenseMdx --> ProductDev BlocksenseMdx --> RevenueGen BlocksenseMdx --> Operations MdxeEngine --> TypescriptTypes subgraph Legend L1[Major Edit]:::major-edit L2[Minor Edit]:::minor-edit L3[Context/No Edit]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes
Link to Devin run: https://app.devin.ai/sessions/eb003f2e48b6415c9e379ee99252db57
Requested by: unknown user