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