@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/index.cjs CHANGED
@@ -21501,7 +21501,11 @@ var Agent = class _Agent {
21501
21501
  * @public
21502
21502
  */
21503
21503
  static async compact(agentId, options = {}) {
21504
- const reg = getRegisteredAgent(agentId);
21504
+ let reg = getRegisteredAgent(agentId);
21505
+ if (reg === void 0) {
21506
+ await hydrateRegistryFromDisk(process.cwd());
21507
+ reg = getRegisteredAgent(agentId);
21508
+ }
21505
21509
  if (reg === void 0 || reg.runtime !== "local") {
21506
21510
  throw new exports.UnknownAgentError(`No local agent "${agentId}" registered \u2014 compact targets local sessions.`);
21507
21511
  }