@theokit/sdk 4.7.1 → 4.8.0
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/agent.d.ts +8 -0
- package/dist/cron.cjs +15 -0
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +15 -0
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +15 -0
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +15 -0
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cron.js
CHANGED
|
@@ -17807,6 +17807,11 @@ async function setArchivedFlag(agentId, archived) {
|
|
|
17807
17807
|
updateRegisteredAgent(agentId, { archived });
|
|
17808
17808
|
await flushRegistrySaves();
|
|
17809
17809
|
}
|
|
17810
|
+
async function setAgentName(agentId, name) {
|
|
17811
|
+
await getRegisteredAgentOrThrow(agentId);
|
|
17812
|
+
updateRegisteredAgent(agentId, { name });
|
|
17813
|
+
await flushRegistrySaves();
|
|
17814
|
+
}
|
|
17810
17815
|
async function getRegisteredAgentOrThrow(agentId) {
|
|
17811
17816
|
let agent = getRegisteredAgent(agentId);
|
|
17812
17817
|
if (agent === void 0) {
|
|
@@ -18086,6 +18091,16 @@ var Agent = class _Agent {
|
|
|
18086
18091
|
static unarchive(agentId, _options = {}) {
|
|
18087
18092
|
return setArchivedFlag(agentId, false);
|
|
18088
18093
|
}
|
|
18094
|
+
/**
|
|
18095
|
+
* Set the human-facing `name` of a registered agent (the label `Agent.list()` returns). The registry
|
|
18096
|
+
* already carries a `name` field; this is the missing public mutator for it. Runtime-agnostic (mutates
|
|
18097
|
+
* the local per-cwd registry for local agents; the cloud registry for cloud agents).
|
|
18098
|
+
*
|
|
18099
|
+
* @public
|
|
18100
|
+
*/
|
|
18101
|
+
static async rename(agentId, name, _options = {}) {
|
|
18102
|
+
await setAgentName(agentId, name);
|
|
18103
|
+
}
|
|
18089
18104
|
/**
|
|
18090
18105
|
* Permanently delete a cloud agent.
|
|
18091
18106
|
*
|