@theokit/sdk 4.16.1 → 4.16.2

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.16.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(session): `Agent.compact` hydrates the per-cwd registry from disk on a miss (same D21 path as `Agent.resume`) — a fresh process compacting a persisted session no longer fails with UnknownAgentError. Found live in the M50 probe.
8
+
3
9
  ## 4.16.1
4
10
 
5
11
  ### Patch Changes
package/dist/cron.cjs CHANGED
@@ -19886,7 +19886,11 @@ var Agent = class _Agent {
19886
19886
  * @public
19887
19887
  */
19888
19888
  static async compact(agentId, options = {}) {
19889
- const reg = getRegisteredAgent(agentId);
19889
+ let reg = getRegisteredAgent(agentId);
19890
+ if (reg === void 0) {
19891
+ await hydrateRegistryFromDisk(process.cwd());
19892
+ reg = getRegisteredAgent(agentId);
19893
+ }
19890
19894
  if (reg === void 0 || reg.runtime !== "local") {
19891
19895
  throw new UnknownAgentError(`No local agent "${agentId}" registered \u2014 compact targets local sessions.`);
19892
19896
  }