magickit_cli 1.2.0
magickit_cli: ^1.2.0 copied to clipboard
MagicKit CLI — development tools & code generator untuk Flutter.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased] #
1.2.0 - 2026-09-26 #
Added #
- storage — optional relation
backlinkgenerates ObjectBox@Backlink, with lookup and setter helpers, id-based export/import, and optionalonDelete(cascadeornullify).
Fixed #
- storage —
magickit initgenerates an asyncconfigureDependencies(), andmainawaits it.storage initandstorage generateupgrade existing apps that still use the synchronous signature. - storage —
storageInjector()skips GetIt types that are already registered, andObjectBoxStore.close()clears the singleton. - storage — invalid schemas (broken JSON, unknown types, Dart keywords, illegal indexes, bad relations, missing targets) fail before files are written. Indexed
DateTimehelpers useequalsDate. - storage — regeneration reports skips instead of claiming a write, leaves files alone unless they are generated or
--forceis set, and deletes stale generated models and helpers whose JSON was removed. - storage —
build_runnerfailures print stdout and stderr and exit non-zero.--delete-conflicting-outputsis passed only for build_runner older than 2.7.0. - storage —
getDatabaseSize()returns the main database file size in bytes.storage infono longer prints guessed device paths.
Changed #
- storage — documented as Android and iOS only.
- README aligned with the current CLI commands.
1.1.0 - 2026-05-10 #
Added #
- version —
magickit versionprints the UI kit and CLI versions - Version helpers that read and write the version in
pubspec.yaml - snippets —
magickit snippetsinstalls VS Code snippets for MagicKit componentssnippets installwrites.vscode/magickit.code-snippets(--globalwrites the VS Code user snippets directory)snippets listprints the snippet catalog
Changed #
- slicing — bundle lookup, with errors when the bundle cannot be read
- Bundle discovery through
package_config.json - Usage guidelines embedded in slicing prompts
1.0.3 - 2026-04-06 #
Added #
- storage —
magickit storagefor ObjectBox local storagestorage initinjects dependencies and generates the store, injector, database manager, and an example entity, then runsflutter pub getandbuild_runnerstorage generategenerates entity models, helpers, the store, and the injector from thestorage/folderstorage generate --build-runnergenerates files and runsbuild_runnerstorage infoprints the database path, entities, and generated filesDatabaseManagerexports and imports the database as JSONstorageInjector()initializes ObjectBox and registers helpers withget_it- Updates
injector.dartbetween theMAGICKIT:IMPORTandMAGICKIT:INJECTORmarkers
Fixed #
toPascalCasekeeps input that is already PascalCasefromJsonusesDateTime.now()when a non-nullableDateTimeis missing- Generated helpers import
objectbox.g.dartsoEntity_query classes resolve
1.0.2 - 2026-04-05 #
1.0.1 - 2026-04-05 #
Tagged as magickit-cli-v1.0.1. This version was not published to pub.dev.
Added #
- slicing subcommands
prompt,image, andfigma - slicing prompt writes one
.mdprompt file to upload with a screenshot - slicing image sends a UI image to the AI provider
- slicing figma sends a Figma MCP selection JSON file to the AI provider
- registry writes
ai_context_bundle.mdwith constructor signatures, types, default values, tags, and file paths - registry discovers the magickit package bundle from
package_config.jsonand merges it with local components
Changed #
- Slicing output paths and component-bundle switches use CLI defaults. The task text is the positional argument, for example
magickit slicing prompt "slicing ui home page"