@imbrace/cli 0.4.0 → 0.4.1

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.
@@ -76,7 +76,7 @@ export async function updateAgent(id, body) {
76
76
  typeof body.show_thinking_process === "boolean" || body.mode ||
77
77
  ASSISTANT_FIELDS.some((f) => body[f] !== undefined));
78
78
  if (hasAssistantUpdate) {
79
- // chatAi.updateAssistant uses PUT (full replace) — fetch+merge so unchanged
79
+ // chatAi.updateAiAgent uses PUT (full replace) — fetch+merge so unchanged
80
80
  // fields aren't reset to null.
81
81
  const currentAssistant = await gatewayFetch(`/v3/ai/assistants/${assistantId}`);
82
82
  const aUpdate = {
@@ -101,7 +101,7 @@ export async function updateAgent(id, body) {
101
101
  if (body[f] !== undefined)
102
102
  aUpdate[f] = body[f];
103
103
  }
104
- results.assistant = await client.chatAi.updateAssistant(assistantId, aUpdate);
104
+ results.assistant = await client.chatAi.updateAiAgent(assistantId, aUpdate);
105
105
  }
106
106
  if (body.name || body.description) {
107
107
  const tUpdate = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imbrace/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "CLI tool for interacting with the Imbrace CRM platform from the terminal",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "prepack": "oclif manifest"
25
25
  },
26
26
  "dependencies": {
27
- "@imbrace/sdk": "^1.0.3",
27
+ "@imbrace/sdk": "^1.0.4",
28
28
  "@inquirer/prompts": "^7.10.1",
29
29
  "@oclif/core": "^4.2.0",
30
30
  "@oclif/plugin-autocomplete": "^3.2.0",