@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.js
CHANGED
|
@@ -19878,7 +19878,11 @@ var Agent = class _Agent {
|
|
|
19878
19878
|
* @public
|
|
19879
19879
|
*/
|
|
19880
19880
|
static async compact(agentId, options = {}) {
|
|
19881
|
-
|
|
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
|
}
|