@robota-sdk/agent-cli 3.0.0-beta.23 → 3.0.0-beta.24

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.cjs CHANGED
@@ -1302,7 +1302,15 @@ function App(props) {
1302
1302
  const registry = useCommandRegistry(props.cwd ?? process.cwd());
1303
1303
  const pendingModelChangeRef = (0, import_react11.useRef)(null);
1304
1304
  const [pendingModelId, setPendingModelId] = (0, import_react11.useState)(null);
1305
- const handleSlashCommand = useSlashCommands(session, addMessage, setMessages, exit, registry, pendingModelChangeRef, setPendingModelId);
1305
+ const handleSlashCommand = useSlashCommands(
1306
+ session,
1307
+ addMessage,
1308
+ setMessages,
1309
+ exit,
1310
+ registry,
1311
+ pendingModelChangeRef,
1312
+ setPendingModelId
1313
+ );
1306
1314
  const handleSubmit = useSubmitHandler(
1307
1315
  session,
1308
1316
  addMessage,
@@ -1349,10 +1357,16 @@ function App(props) {
1349
1357
  try {
1350
1358
  const settingsPath = getUserSettingsPath();
1351
1359
  updateModelInSettings(settingsPath, pendingModelId);
1352
- addMessage({ role: "system", content: `Model changed to ${(0, import_agent_core3.getModelName)(pendingModelId)}. Restarting...` });
1360
+ addMessage({
1361
+ role: "system",
1362
+ content: `Model changed to ${(0, import_agent_core3.getModelName)(pendingModelId)}. Restarting...`
1363
+ });
1353
1364
  setTimeout(() => exit(), EXIT_DELAY_MS2);
1354
1365
  } catch (err) {
1355
- addMessage({ role: "system", content: `Failed: ${err instanceof Error ? err.message : String(err)}` });
1366
+ addMessage({
1367
+ role: "system",
1368
+ content: `Failed: ${err instanceof Error ? err.message : String(err)}`
1369
+ });
1356
1370
  }
1357
1371
  } else {
1358
1372
  addMessage({ role: "system", content: "Model change cancelled." });
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-EFSOR6D7.js";
4
+ } from "./chunk-AKNLV5UA.js";
5
5
 
6
6
  // src/bin.ts
7
7
  process.on("uncaughtException", (err) => {
@@ -1285,7 +1285,15 @@ function App(props) {
1285
1285
  const registry = useCommandRegistry(props.cwd ?? process.cwd());
1286
1286
  const pendingModelChangeRef = useRef5(null);
1287
1287
  const [pendingModelId, setPendingModelId] = useState7(null);
1288
- const handleSlashCommand = useSlashCommands(session, addMessage, setMessages, exit, registry, pendingModelChangeRef, setPendingModelId);
1288
+ const handleSlashCommand = useSlashCommands(
1289
+ session,
1290
+ addMessage,
1291
+ setMessages,
1292
+ exit,
1293
+ registry,
1294
+ pendingModelChangeRef,
1295
+ setPendingModelId
1296
+ );
1289
1297
  const handleSubmit = useSubmitHandler(
1290
1298
  session,
1291
1299
  addMessage,
@@ -1332,10 +1340,16 @@ function App(props) {
1332
1340
  try {
1333
1341
  const settingsPath = getUserSettingsPath();
1334
1342
  updateModelInSettings(settingsPath, pendingModelId);
1335
- addMessage({ role: "system", content: `Model changed to ${getModelName(pendingModelId)}. Restarting...` });
1343
+ addMessage({
1344
+ role: "system",
1345
+ content: `Model changed to ${getModelName(pendingModelId)}. Restarting...`
1346
+ });
1336
1347
  setTimeout(() => exit(), EXIT_DELAY_MS2);
1337
1348
  } catch (err) {
1338
- addMessage({ role: "system", content: `Failed: ${err instanceof Error ? err.message : String(err)}` });
1349
+ addMessage({
1350
+ role: "system",
1351
+ content: `Failed: ${err instanceof Error ? err.message : String(err)}`
1352
+ });
1339
1353
  }
1340
1354
  } else {
1341
1355
  addMessage({ role: "system", content: "Model change cancelled." });
@@ -1318,7 +1318,15 @@ function App(props) {
1318
1318
  const registry = useCommandRegistry(props.cwd ?? process.cwd());
1319
1319
  const pendingModelChangeRef = (0, import_react11.useRef)(null);
1320
1320
  const [pendingModelId, setPendingModelId] = (0, import_react11.useState)(null);
1321
- const handleSlashCommand = useSlashCommands(session, addMessage, setMessages, exit, registry, pendingModelChangeRef, setPendingModelId);
1321
+ const handleSlashCommand = useSlashCommands(
1322
+ session,
1323
+ addMessage,
1324
+ setMessages,
1325
+ exit,
1326
+ registry,
1327
+ pendingModelChangeRef,
1328
+ setPendingModelId
1329
+ );
1322
1330
  const handleSubmit = useSubmitHandler(
1323
1331
  session,
1324
1332
  addMessage,
@@ -1365,10 +1373,16 @@ function App(props) {
1365
1373
  try {
1366
1374
  const settingsPath = getUserSettingsPath();
1367
1375
  updateModelInSettings(settingsPath, pendingModelId);
1368
- addMessage({ role: "system", content: `Model changed to ${(0, import_agent_core3.getModelName)(pendingModelId)}. Restarting...` });
1376
+ addMessage({
1377
+ role: "system",
1378
+ content: `Model changed to ${(0, import_agent_core3.getModelName)(pendingModelId)}. Restarting...`
1379
+ });
1369
1380
  setTimeout(() => exit(), EXIT_DELAY_MS2);
1370
1381
  } catch (err) {
1371
- addMessage({ role: "system", content: `Failed: ${err instanceof Error ? err.message : String(err)}` });
1382
+ addMessage({
1383
+ role: "system",
1384
+ content: `Failed: ${err instanceof Error ? err.message : String(err)}`
1385
+ });
1372
1386
  }
1373
1387
  } else {
1374
1388
  addMessage({ role: "system", content: "Model change cancelled." });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startCli
3
- } from "./chunk-EFSOR6D7.js";
3
+ } from "./chunk-AKNLV5UA.js";
4
4
 
5
5
  // src/index.ts
6
6
  import { Session, SessionStore, query, TRUST_TO_MODE } from "@robota-sdk/agent-sdk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-cli",
3
- "version": "3.0.0-beta.23",
3
+ "version": "3.0.0-beta.24",
4
4
  "description": "AI coding assistant CLI built on Robota SDK",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,8 +35,8 @@
35
35
  "marked-terminal": "^7.3.0",
36
36
  "react": "19.2.4",
37
37
  "string-width": "^8.2.0",
38
- "@robota-sdk/agent-core": "3.0.0-beta.23",
39
- "@robota-sdk/agent-sdk": "3.0.0-beta.23"
38
+ "@robota-sdk/agent-core": "3.0.0-beta.24",
39
+ "@robota-sdk/agent-sdk": "3.0.0-beta.24"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/marked": "^6.0.0",