@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/eval.js
CHANGED
|
@@ -17802,6 +17802,11 @@ async function setArchivedFlag(agentId, archived) {
|
|
|
17802
17802
|
updateRegisteredAgent(agentId, { archived });
|
|
17803
17803
|
await flushRegistrySaves();
|
|
17804
17804
|
}
|
|
17805
|
+
async function setAgentName(agentId, name) {
|
|
17806
|
+
await getRegisteredAgentOrThrow(agentId);
|
|
17807
|
+
updateRegisteredAgent(agentId, { name });
|
|
17808
|
+
await flushRegistrySaves();
|
|
17809
|
+
}
|
|
17805
17810
|
async function getRegisteredAgentOrThrow(agentId) {
|
|
17806
17811
|
let agent = getRegisteredAgent(agentId);
|
|
17807
17812
|
if (agent === void 0) {
|
|
@@ -18081,6 +18086,16 @@ var Agent = class _Agent {
|
|
|
18081
18086
|
static unarchive(agentId, _options = {}) {
|
|
18082
18087
|
return setArchivedFlag(agentId, false);
|
|
18083
18088
|
}
|
|
18089
|
+
/**
|
|
18090
|
+
* Set the human-facing `name` of a registered agent (the label `Agent.list()` returns). The registry
|
|
18091
|
+
* already carries a `name` field; this is the missing public mutator for it. Runtime-agnostic (mutates
|
|
18092
|
+
* the local per-cwd registry for local agents; the cloud registry for cloud agents).
|
|
18093
|
+
*
|
|
18094
|
+
* @public
|
|
18095
|
+
*/
|
|
18096
|
+
static async rename(agentId, name, _options = {}) {
|
|
18097
|
+
await setAgentName(agentId, name);
|
|
18098
|
+
}
|
|
18084
18099
|
/**
|
|
18085
18100
|
* Permanently delete a cloud agent.
|
|
18086
18101
|
*
|