@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.cjs
CHANGED
|
@@ -21501,7 +21501,11 @@ var Agent = class _Agent {
|
|
|
21501
21501
|
* @public
|
|
21502
21502
|
*/
|
|
21503
21503
|
static async compact(agentId, options = {}) {
|
|
21504
|
-
|
|
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
|
}
|