@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 CHANGED
@@ -166,6 +166,14 @@ export declare class Agent {
166
166
  * @public
167
167
  */
168
168
  static unarchive(agentId: string, _options?: AgentOperationOptions): Promise<void>;
169
+ /**
170
+ * Set the human-facing `name` of a registered agent (the label `Agent.list()` returns). The registry
171
+ * already carries a `name` field; this is the missing public mutator for it. Runtime-agnostic (mutates
172
+ * the local per-cwd registry for local agents; the cloud registry for cloud agents).
173
+ *
174
+ * @public
175
+ */
176
+ static rename(agentId: string, name: string, _options?: AgentOperationOptions): Promise<void>;
169
177
  /**
170
178
  * Permanently delete a cloud agent.
171
179
  *
package/dist/cron.cjs CHANGED
@@ -17810,6 +17810,11 @@ async function setArchivedFlag(agentId, archived) {
17810
17810
  updateRegisteredAgent(agentId, { archived });
17811
17811
  await flushRegistrySaves();
17812
17812
  }
17813
+ async function setAgentName(agentId, name) {
17814
+ await getRegisteredAgentOrThrow(agentId);
17815
+ updateRegisteredAgent(agentId, { name });
17816
+ await flushRegistrySaves();
17817
+ }
17813
17818
  async function getRegisteredAgentOrThrow(agentId) {
17814
17819
  let agent = getRegisteredAgent(agentId);
17815
17820
  if (agent === void 0) {
@@ -18089,6 +18094,16 @@ var Agent = class _Agent {
18089
18094
  static unarchive(agentId, _options = {}) {
18090
18095
  return setArchivedFlag(agentId, false);
18091
18096
  }
18097
+ /**
18098
+ * Set the human-facing `name` of a registered agent (the label `Agent.list()` returns). The registry
18099
+ * already carries a `name` field; this is the missing public mutator for it. Runtime-agnostic (mutates
18100
+ * the local per-cwd registry for local agents; the cloud registry for cloud agents).
18101
+ *
18102
+ * @public
18103
+ */
18104
+ static async rename(agentId, name, _options = {}) {
18105
+ await setAgentName(agentId, name);
18106
+ }
18092
18107
  /**
18093
18108
  * Permanently delete a cloud agent.
18094
18109
  *