@prismer/runtime 1.9.7 → 1.9.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog — @prismer/runtime
2
2
 
3
+ ## v1.9.7 — 2026-05-12 — Device capacity fix + setup daemon auto-start
4
+
5
+ ### Fixed
6
+
7
+ - **`host.declare` now upserts `im_containers` row** so agent.register's
8
+ `assertDeviceCapacityAvailable` can find the daemon device. Previously only
9
+ Redis presence was written; the MySQL `im_containers` table was empty for
10
+ local daemons, causing `UNKNOWN_DAEMON` (409) on every agent create from
11
+ the workspace UI.
12
+ - **`prismer setup` auto-starts daemon when config already exists** — the
13
+ "Already configured" branch was returning early before `startDaemonDetached`,
14
+ leaving users with a working config but no running daemon (no device
15
+ appeared in the workspace).
16
+
17
+ ### Internal
18
+
19
+ - `src/im/ws/handler.ts` — upsert im_containers on host.declare, guarded
20
+ against empty daemonId; `startedAt` preserved across heartbeat redeclares.
21
+ - `src/im/api/register.ts` — `assertDeviceCapacityAvailable` matches by
22
+ `OR(agentImUserId, daemonId)` so both runtime-installation and local daemon
23
+ paths find the device row.
24
+ - `src/im/db/index.ts` — Prisma client re-export (unchanged, listed for audit
25
+ completeness).
26
+
3
27
  ## v1.9.6 — 2026-05-12 — Refactoring wave: register hardening + CLI version sync
4
28
 
5
29
  Batch delivery of §30 / §31 refactoring items affecting IM register flow,