diff --git a/CHANGELOG.md b/CHANGELOG.md index c82c9dc..41bc3c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ version and its date. Versions follow semantic versioning: a major version when people have to change their setup, a minor one for new skills or abilities, a patch for fixes. +## 1.1.30 - 2026-12-01 + +- In the hosted IDE, `ironflock-dev-run` can discover the current app’s DEV tools and use them on the selected development device when the workspace MCP connection offers them. + ## 1.1.29 - 2026-11-30 - The new `ironflock-app-store` skill writes a buyer-facing app README and creates a themed hero from populated DEV board screenshots. It includes a collage template and the upload workflow for public store images. diff --git a/VERSION b/VERSION index ad7bb75..40e713d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.29 +1.1.30 diff --git a/plugins/ironflock-appliance/.claude-plugin/plugin.json b/plugins/ironflock-appliance/.claude-plugin/plugin.json index 14a8e9a..1b21088 100644 --- a/plugins/ironflock-appliance/.claude-plugin/plugin.json +++ b/plugins/ironflock-appliance/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ironflock-appliance", "displayName": "IronFlock Appliance", - "version": "1.1.29", + "version": "1.1.30", "description": "Add a direct connection from Claude Code to your IronFlock appliance. Configure the appliance’s HTTPS MCP address and sign in to that installation.", "author": { "name": "IronFlock", diff --git a/plugins/ironflock-dev/.claude-plugin/plugin.json b/plugins/ironflock-dev/.claude-plugin/plugin.json index 20ea18c..c073442 100644 --- a/plugins/ironflock-dev/.claude-plugin/plugin.json +++ b/plugins/ironflock-dev/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ironflock-dev", "displayName": "IronFlock Dev", - "version": "1.1.29", + "version": "1.1.30", "description": "Build on IronFlock: design and scaffold edge apps that keep their state in the app's tables and embed their devices' web UIs in the board, write and validate their .ironflock templates (boards and widgets, data tables, app parameters, remote-access ports, AI agents), and create, change and check the board widgets themselves (@ironflock/widget-* Lit components). Needs the ironflock plugin, which Claude Code installs with it.", "author": { "name": "IronFlock", diff --git a/plugins/ironflock-dev/skills/ironflock-dev-run/SKILL.md b/plugins/ironflock-dev/skills/ironflock-dev-run/SKILL.md index 130d4f4..266c8f1 100644 --- a/plugins/ironflock-dev/skills/ironflock-dev-run/SKILL.md +++ b/plugins/ironflock-dev/skills/ironflock-dev-run/SKILL.md @@ -1,8 +1,8 @@ --- name: ironflock-dev-run -description: Use in the hosted IronFlock IDE for requests about the current app’s development run, including “build the app”, “show the app logs”, “show the build logs”, “start the app” and “is it running?”. Builds the IDE working copy on a development device and checks its DEV stage through IronFlock MCP. +description: Use in the hosted IronFlock IDE to build, start or inspect the current app’s development run, read its app or build logs, and list or call its DEV app tools on a development device. metadata: - mcp-tools: list_my_apps get_app_repository list_dev_devices build_dev_app list_builds get_build set_app_state get_app_logs check_app_status + mcp-tools: list_my_apps get_app_repository list_dev_devices build_dev_app list_builds get_build set_app_state get_app_logs check_app_status list_app_tools read_app_tool call_app_tool --- # Work with the development run @@ -39,6 +39,16 @@ device is offline, report that. - **Start or stop.** A successful development build leaves the app stopped. When asked to start or stop it, use `set_app_state` with explicit `stage: "DEV"` and only the selected device. +- **Run an app tool.** To create a demo connection through the collector, + for example, call `list_app_tools` with `app_key`, `swarm_key` and explicit + `stage: "DEV"`. Choose the tool whose description and argument schema match + the request. Use `read_app_tool` for a developer-marked read-only tool + when available. For a requested change, call `call_app_tool` with the same app, + project and stage, the selected `device_key`, the listed `tool` name and + its declared `arguments`. If the requested change is ambiguous, confirm + the device, arguments and effect before calling. Report the app’s + result. If the outcome is uncertain, check whether the connection exists + before retrying. Local editing, tests and template validation belong in the workspace. Building an image locally or accessing an installed release requires an explicit request. diff --git a/plugins/ironflock-dev/skills/ironflock-templates/SKILL.md b/plugins/ironflock-dev/skills/ironflock-templates/SKILL.md index 39f1480..a325ace 100644 --- a/plugins/ironflock-dev/skills/ironflock-templates/SKILL.md +++ b/plugins/ironflock-dev/skills/ironflock-templates/SKILL.md @@ -341,17 +341,14 @@ complete reference. segment of the current address, so it only works on the type's page and the asset's own page: on an asset's tab page it opens a page that does not exist, and the list highlights nothing. -- **Refresh the transforms your code changes.** A widget that needs a - transform (a join, an aggregate, an overview of each asset's state and - counts) gets its rows on the transform's schedule tick. When the app's code - writes rows that such a transform reads, it calls - `refresh_transform("")` once after the batch (`ironflock` 1.11.0 - and later; `refreshTransform` in JavaScript, `RefreshTransform` in Go): the - data backend refreshes the view and pushes its rows to every open board, so - those widgets update at once. For a table the board's forms write, the - container that follows the table refreshes after applying the change. - app-architecture.md, "Reading and writing state with the SDK", has the - details. +- **Refresh a transform through the SDK when a board needs the result of a write.** + Wait for the write or batch to finish, then call `refreshTransform` in + JavaScript (`refresh_transform` in Python) once per affected transform. + For a board form, the app container following the table can make the call + after applying the change. Keep the existing cron interval for periodic + updates. Shortening it to make a board respond to a write adds recurring + ticks even between writes. See [Reading and writing state with the SDK](references/app-architecture.md#reading-and-writing-state-with-the-sdk) + for materialized and plain views. - **Deleted entities stay out of every list.** When an entity table has a delete flag (its `deleted` column, the column a delete form writes), every widget that lists the table's entities filters on that flag: the diff --git a/plugins/ironflock-dev/skills/ironflock-templates/references/app-architecture.md b/plugins/ironflock-dev/skills/ironflock-templates/references/app-architecture.md index d548421..7dd67c8 100644 --- a/plugins/ironflock-dev/skills/ironflock-templates/references/app-architecture.md +++ b/plugins/ironflock-dev/skills/ironflock-templates/references/app-architecture.md @@ -370,16 +370,16 @@ the connection, so a program that runs until it is stopped never returns from `RuntimeError` when the platform does not come back or refuses the row. Catch `RuntimeError` in a loop that must keep running, and buffer the rows if none may be lost. Send high-rate readings in batches with `append_rows_to_table`. -- **Refresh the transforms your writes change.** A transform reaches the board - on its `schedule` tick. When the code writes rows that a transform reads, and - a widget shows that transform (an aggregate, a join, an overview of each - stream's state and counts), call `refresh_transform("")` right - after the writes (`ironflock` 1.11.0 and later; `refreshTransform` in - JavaScript, `RefreshTransform(ctx, name)` in Go). It runs the transform's - refresh now and pushes its rows (up to 3000) to every open board, so the - widgets bound to it show the change at once instead of at the next tick. - - Call it once after a batch of writes, not once per row. A write has been - stored when it returns, so the refresh includes it. +- **Refresh a board's calculated values after writing their inputs.** Once the + SDK confirms the write or batch, call `await ironflock.refresh_transform("station_state")` + in Python (`ironflock` 1.11.0 and later), `await ironflock.refreshTransform("station_state")` + in JavaScript, or `RefreshTransform(ctx, name)` in Go. Use the transform's + declared `tablename`. One call covers the whole batch. + - With `materialize: false`, the backend reads the plain view when it has + subscribers. With `materialize: true`, it first refreshes the stored + result if needed, which can take time. In both cases it publishes up to + 3000 rows to subscribed boards. The call works independently of the cron + interval. Set that interval for the app's periodic work. - Refresh a stack of transforms from the bottom up: each one reads the one below as of that one's last refresh. - Rows the board's forms write reach a transform at once when a container diff --git a/plugins/ironflock-dev/skills/ironflock-templates/references/app-templates.md b/plugins/ironflock-dev/skills/ironflock-templates/references/app-templates.md index ff74b34..166fa63 100644 --- a/plugins/ironflock-dev/skills/ironflock-templates/references/app-templates.md +++ b/plugins/ironflock-dev/skills/ironflock-templates/references/app-templates.md @@ -103,17 +103,16 @@ read them. transforms a schedule at least as frequent as the ones on top, and when the code refreshes a stack (`refresh_transform`), refresh it from the bottom up. - **A transform reaches open boards on its `schedule` tick, or when the app's - code refreshes it.** By itself it does not notice a change in the tables - underneath: with `* * * * *` a new record shows up up to a minute late. Code - that writes the tables a transform reads calls `refresh_transform("")` + code refreshes it.** When a board needs the result of a write, the app + that owns the transform calls `refresh_transform("")` right after the batch (app-architecture.md, "Reading and writing state with - the SDK"), and the boards bound to the transform show the change at once. Still + the SDK"), so subscribed boards receive the result when the refresh finishes. Still bind menus, lists and states to tables wherever filters can express what they show (current state and deleted records are filters, see above): a table follows every write, the board's own forms included, with no code in between. - Refresh the transforms that remain behind menus, lists and live states from - the code that writes, and give them a seconds tick for writes no code sees - (a sixth, leading field is seconds: `*/5 * * * * *`). + For writes made by a board form, the app container following the source + table can request the refresh. Choose the cron interval for periodic updates + such as a time-based calculation that changes even when no rows are written. - **Mark app-internal tables and transforms `private: true`.** Decide this for every table. Users of the app should see only data that means something to them: values they analyze, chart, alarm on or build dashboards with. Internal details diff --git a/plugins/ironflock-dev/skills/ironflock-templates/references/board-assets.md b/plugins/ironflock-dev/skills/ironflock-templates/references/board-assets.md index d472edc..2d155c4 100644 --- a/plugins/ironflock-dev/skills/ironflock-templates/references/board-assets.md +++ b/plugins/ironflock-dev/skills/ironflock-templates/references/board-assets.md @@ -241,8 +241,9 @@ asset type (all stations of all lines, at `/station`). When the sub-asset table lacks a parent's key, add the column to the table. Only where the table cannot be changed, compute the route in a transform (`'/line/' || line_id || '/station/' || station_id AS route`) and bind the -item's route to that column; that list then shows new and deleted sub-assets -only on the transform's schedule tick, so keep that schedule short. +item's route to that column. To update the list after a sub-asset is created +or deleted, have the app container that writes or follows the table call the +SDK's transform refresh after the change is stored. ## 10. Pages without the list: an explicit back button diff --git a/plugins/ironflock-dev/skills/ironflock-templates/references/board-route-tree.md b/plugins/ironflock-dev/skills/ironflock-templates/references/board-route-tree.md index 0849c74..5a81bfa 100644 --- a/plugins/ironflock-dev/skills/ironflock-templates/references/board-route-tree.md +++ b/plugins/ironflock-dev/skills/ironflock-templates/references/board-route-tree.md @@ -192,4 +192,5 @@ Two things follow: schedule tick or when the app's code refreshes it, never by itself. Only where the table cannot be changed, compute the route in a transform (`'/line/' || line_id || '/station/' || station_id AS route`), bind the - item's route to that column, and keep the transform's schedule short. + item's route to that column, and have the app refresh the transform through + the SDK after an entity is created or deleted. diff --git a/plugins/ironflock/.claude-plugin/plugin.json b/plugins/ironflock/.claude-plugin/plugin.json index dd72026..5f61a57 100644 --- a/plugins/ironflock/.claude-plugin/plugin.json +++ b/plugins/ironflock/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "ironflock", "displayName": "IronFlock", - "version": "1.1.29", + "version": "1.1.30", "description": "Connect Claude to IronFlock in the cloud with browser sign-in. Work with devices, apps, alarms, logs and project data. Add the optional IronFlock Appliance plugin for a direct connection to a local installation.", "author": { "name": "IronFlock",