@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/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
  *