@robota-sdk/agent-cli 3.0.0-beta.53 → 3.0.0-beta.54

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-CXBD4JNS.js";
4
+ } from "./chunk-ASBCJDLC.js";
5
5
 
6
6
  // src/bin.ts
7
7
  process.on("uncaughtException", (err) => {
@@ -1972,7 +1972,15 @@ function PluginTUI({ callbacks, onClose, addMessage }) {
1972
1972
  const refresh = useCallback8(() => {
1973
1973
  setRefreshCounter((c) => c + 1);
1974
1974
  }, []);
1975
- const nav = { push, pop, popN, notify, setConfirm, refresh };
1975
+ const setConfirmNav = useCallback8(
1976
+ (state) => setConfirm(state),
1977
+ [setConfirm]
1978
+ );
1979
+ const pushNav = useCallback8(
1980
+ (state) => push({ screen: state.screen, context: state.context }),
1981
+ [push]
1982
+ );
1983
+ const nav = { push: pushNav, pop, popN, notify, setConfirm: setConfirmNav, refresh };
1976
1984
  const { items, loading, error } = usePluginScreenData(
1977
1985
  current.screen,
1978
1986
  current.context?.marketplace,
@@ -1996,7 +1996,15 @@ function PluginTUI({ callbacks, onClose, addMessage }) {
1996
1996
  const refresh = (0, import_react15.useCallback)(() => {
1997
1997
  setRefreshCounter((c) => c + 1);
1998
1998
  }, []);
1999
- const nav = { push, pop, popN, notify, setConfirm, refresh };
1999
+ const setConfirmNav = (0, import_react15.useCallback)(
2000
+ (state) => setConfirm(state),
2001
+ [setConfirm]
2002
+ );
2003
+ const pushNav = (0, import_react15.useCallback)(
2004
+ (state) => push({ screen: state.screen, context: state.context }),
2005
+ [push]
2006
+ );
2007
+ const nav = { push: pushNav, pop, popN, notify, setConfirm: setConfirmNav, refresh };
2000
2008
  const { items, loading, error } = usePluginScreenData(
2001
2009
  current.screen,
2002
2010
  current.context?.marketplace,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startCli
3
- } from "./chunk-CXBD4JNS.js";
3
+ } from "./chunk-ASBCJDLC.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.53",
3
+ "version": "3.0.0-beta.54",
4
4
  "description": "AI coding assistant CLI built on Robota SDK",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@robota-sdk/agent-sessions": "3.0.0-beta.53",
36
+ "@robota-sdk/agent-sessions": "3.0.0-beta.54",
37
37
  "chalk": "^5.3.0",
38
38
  "cli-highlight": "^2.1.0",
39
39
  "ink": "^6.8.0",
@@ -44,10 +44,10 @@
44
44
  "marked-terminal": "^7.3.0",
45
45
  "react": "19.2.4",
46
46
  "string-width": "^8.2.0",
47
- "@robota-sdk/agent-core": "3.0.0-beta.53",
48
- "@robota-sdk/agent-provider-anthropic": "3.0.0-beta.53",
49
- "@robota-sdk/agent-sdk": "3.0.0-beta.53",
50
- "@robota-sdk/agent-transport-headless": "3.0.0-beta.53"
47
+ "@robota-sdk/agent-core": "3.0.0-beta.54",
48
+ "@robota-sdk/agent-provider-anthropic": "3.0.0-beta.54",
49
+ "@robota-sdk/agent-sdk": "3.0.0-beta.54",
50
+ "@robota-sdk/agent-transport-headless": "3.0.0-beta.54"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/marked": "^6.0.0",
@@ -65,6 +65,8 @@
65
65
  },
66
66
  "scripts": {
67
67
  "build": "tsup src/index.ts src/bin.ts --format esm,cjs --dts --out-dir dist/node --clean && rm -f dist/node/bin.cjs dist/node/bin.d.cts",
68
+ "build:js": "tsup src/index.ts src/bin.ts --format esm,cjs --out-dir dist/node --clean && rm -f dist/node/bin.cjs",
69
+ "build:types": "tsup src/index.ts src/bin.ts --format esm,cjs --dts-only --out-dir dist/node && rm -f dist/node/bin.d.cts",
68
70
  "dev": "tsx --env-file=.env src/bin.ts",
69
71
  "start": "node --env-file=.env dist/node/bin.js",
70
72
  "test": "vitest run --passWithNoTests",