@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/dist/cron.js CHANGED
@@ -19883,7 +19883,11 @@ var Agent = class _Agent {
19883
19883
  * @public
19884
19884
  */
19885
19885
  static async compact(agentId, options = {}) {
19886
- const reg = getRegisteredAgent(agentId);
19886
+ let reg = getRegisteredAgent(agentId);
19887
+ if (reg === void 0) {
19888
+ await hydrateRegistryFromDisk(process.cwd());
19889
+ reg = getRegisteredAgent(agentId);
19890
+ }
19887
19891
  if (reg === void 0 || reg.runtime !== "local") {
19888
19892
  throw new UnknownAgentError(`No local agent "${agentId}" registered \u2014 compact targets local sessions.`);
19889
19893
  }