@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/index.d.cts CHANGED
@@ -575,6 +575,14 @@ declare class Agent {
575
575
  * @public
576
576
  */
577
577
  static unarchive(agentId: string, _options?: AgentOperationOptions): Promise<void>;
578
+ /**
579
+ * Set the human-facing `name` of a registered agent (the label `Agent.list()` returns). The registry
580
+ * already carries a `name` field; this is the missing public mutator for it. Runtime-agnostic (mutates
581
+ * the local per-cwd registry for local agents; the cloud registry for cloud agents).
582
+ *
583
+ * @public
584
+ */
585
+ static rename(agentId: string, name: string, _options?: AgentOperationOptions): Promise<void>;
578
586
  /**
579
587
  * Permanently delete a cloud agent.
580
588
  *
package/dist/index.d.ts CHANGED
@@ -575,6 +575,14 @@ declare class Agent {
575
575
  * @public
576
576
  */
577
577
  static unarchive(agentId: string, _options?: AgentOperationOptions): Promise<void>;
578
+ /**
579
+ * Set the human-facing `name` of a registered agent (the label `Agent.list()` returns). The registry
580
+ * already carries a `name` field; this is the missing public mutator for it. Runtime-agnostic (mutates
581
+ * the local per-cwd registry for local agents; the cloud registry for cloud agents).
582
+ *
583
+ * @public
584
+ */
585
+ static rename(agentId: string, name: string, _options?: AgentOperationOptions): Promise<void>;
578
586
  /**
579
587
  * Permanently delete a cloud agent.
580
588
  *
package/dist/index.js CHANGED
@@ -19457,6 +19457,11 @@ async function setArchivedFlag(agentId, archived) {
19457
19457
  updateRegisteredAgent(agentId, { archived });
19458
19458
  await flushRegistrySaves();
19459
19459
  }
19460
+ async function setAgentName(agentId, name) {
19461
+ await getRegisteredAgentOrThrow(agentId);
19462
+ updateRegisteredAgent(agentId, { name });
19463
+ await flushRegistrySaves();
19464
+ }
19460
19465
  async function getRegisteredAgentOrThrow(agentId) {
19461
19466
  let agent = getRegisteredAgent(agentId);
19462
19467
  if (agent === void 0) {
@@ -19736,6 +19741,16 @@ var Agent = class _Agent {
19736
19741
  static unarchive(agentId, _options = {}) {
19737
19742
  return setArchivedFlag(agentId, false);
19738
19743
  }
19744
+ /**
19745
+ * Set the human-facing `name` of a registered agent (the label `Agent.list()` returns). The registry
19746
+ * already carries a `name` field; this is the missing public mutator for it. Runtime-agnostic (mutates
19747
+ * the local per-cwd registry for local agents; the cloud registry for cloud agents).
19748
+ *
19749
+ * @public
19750
+ */
19751
+ static async rename(agentId, name, _options = {}) {
19752
+ await setAgentName(agentId, name);
19753
+ }
19739
19754
  /**
19740
19755
  * Permanently delete a cloud agent.
19741
19756
  *