@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 +6 -0
- package/dist/cron.cjs +5 -1
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +5 -1
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +5 -1
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +5 -1
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
}
|