@robota-sdk/agent-cli 3.0.0-beta.47 → 3.0.0-beta.48

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/node/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startCli
4
- } from "./chunk-74WEPZG2.js";
4
+ } from "./chunk-QNBFMSI5.js";
5
5
 
6
6
  // src/bin.ts
7
7
  process.on("uncaughtException", (err) => {
@@ -196,9 +196,12 @@ var TuiStateManager = class {
196
196
  this.notify();
197
197
  };
198
198
  onToolEnd = (state) => {
199
- this.activeTools = this.activeTools.map(
200
- (t) => t.toolName === state.toolName && t.isRunning ? state : t
201
- );
199
+ const idx = this.activeTools.findIndex((t) => t.toolName === state.toolName && t.isRunning);
200
+ if (idx !== -1) {
201
+ const updated = [...this.activeTools];
202
+ updated[idx] = state;
203
+ this.activeTools = updated;
204
+ }
202
205
  this.notify();
203
206
  };
204
207
  onThinking = (thinking) => {
@@ -791,6 +794,9 @@ function EntryItem({ entry }) {
791
794
  if (entry.type === "tool-summary") {
792
795
  return /* @__PURE__ */ jsx(ToolSummaryEntry, { entry });
793
796
  }
797
+ if (entry.type === "tool-start" || entry.type === "tool-end") {
798
+ return /* @__PURE__ */ jsx(Fragment, {});
799
+ }
794
800
  return /* @__PURE__ */ jsx(EventEntry, { entry });
795
801
  }
796
802
  function MessageList({ history }) {
@@ -224,9 +224,12 @@ var TuiStateManager = class {
224
224
  this.notify();
225
225
  };
226
226
  onToolEnd = (state) => {
227
- this.activeTools = this.activeTools.map(
228
- (t) => t.toolName === state.toolName && t.isRunning ? state : t
229
- );
227
+ const idx = this.activeTools.findIndex((t) => t.toolName === state.toolName && t.isRunning);
228
+ if (idx !== -1) {
229
+ const updated = [...this.activeTools];
230
+ updated[idx] = state;
231
+ this.activeTools = updated;
232
+ }
230
233
  this.notify();
231
234
  };
232
235
  onThinking = (thinking) => {
@@ -814,6 +817,9 @@ function EntryItem({ entry }) {
814
817
  if (entry.type === "tool-summary") {
815
818
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ToolSummaryEntry, { entry });
816
819
  }
820
+ if (entry.type === "tool-start" || entry.type === "tool-end") {
821
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
822
+ }
817
823
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EventEntry, { entry });
818
824
  }
819
825
  function MessageList({ history }) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startCli
3
- } from "./chunk-74WEPZG2.js";
3
+ } from "./chunk-QNBFMSI5.js";
4
4
  export {
5
5
  startCli
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-cli",
3
- "version": "3.0.0-beta.47",
3
+ "version": "3.0.0-beta.48",
4
4
  "description": "AI coding assistant CLI built on Robota SDK",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@robota-sdk/agent-sessions": "3.0.0-beta.47",
28
+ "@robota-sdk/agent-sessions": "3.0.0-beta.48",
29
29
  "chalk": "^5.3.0",
30
30
  "cli-highlight": "^2.1.0",
31
31
  "ink": "^6.8.0",
@@ -36,10 +36,10 @@
36
36
  "marked-terminal": "^7.3.0",
37
37
  "react": "19.2.4",
38
38
  "string-width": "^8.2.0",
39
- "@robota-sdk/agent-core": "3.0.0-beta.47",
40
- "@robota-sdk/agent-sdk": "3.0.0-beta.47",
41
- "@robota-sdk/agent-provider-anthropic": "3.0.0-beta.47",
42
- "@robota-sdk/agent-transport-headless": "3.0.0-beta.47"
39
+ "@robota-sdk/agent-core": "3.0.0-beta.48",
40
+ "@robota-sdk/agent-provider-anthropic": "3.0.0-beta.48",
41
+ "@robota-sdk/agent-transport-headless": "3.0.0-beta.48",
42
+ "@robota-sdk/agent-sdk": "3.0.0-beta.48"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/marked": "^6.0.0",