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