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