Repository navigation
feat(cli): ship a source-independent app starter - #26
Merged
Merged
Conversation
A new agent with only the published CLI could not build a house app: the guide pointed at templates/home, which needs the MiakAPI source tree and the unpublished @miakapp/app package. - init --starter app writes miakapp.yaml plus app/main.ts, app/miakapp.ts, package.json, tsconfig.json and app/README.md from the CLI's assets. Every target is checked first; any collision fails with exit 2 and writes nothing. The manifest is written last. Plain init still writes miakapp.yaml only. - app/miakapp.ts is byte-identical to packages/app/src/index.ts (tested), so the starter ships the canonical bridge, not a second protocol. - app/main.ts shows only what the home shares, grouped, with stale and empty states; it invents no value and calls nothing. Docs require inventory and adaptation before publication. - package.json builds a Bun IIFE to the manifest's artifact (custom --artifact limited to plain relative .js paths) and pins this CLI and TypeScript. - Help, MCP init schema, the bundled agent guide, CLI and root READMEs and the template README now separate the public starter from the optional source-tree developer example. - Tests: collisions per file, option combinations, custom artifact/release, context defaults, help, MCP, package inclusion, bridge sync, and the built bundle run against a fake host DOM. - Bump @miakapp/cli to 4.0.0-alpha.8. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
miakapp init --starter appwith a self-contained application and canonical resident bridge, without requiring the platform repository or an unpublished SDK.Verification
Scope
No platform deployment, home data, coordinator, physical-device or V3 changes. This fixes the public starter distribution gap; it does not claim live owner/guest acceptance or a complete personalized home from an unchanged empty starter.