@robota-sdk/agent-cli 3.0.5 → 3.0.7
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/CHANGELOG.md +7 -0
- package/dist/node/bin.js +1 -1
- package/dist/node/{cli-core-DDwaU887.js → cli-core-uMmBjzq6.js} +40 -40
- package/dist/node/desktop-host.js +1 -1
- package/dist/node/headless.js +1 -1
- package/dist/node/host.js +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/{node-TUI6iwZA.js → node-CrF8rjSF.js} +21 -21
- package/dist/node/node-D_40SJP5.js +67 -0
- package/dist/node/node-D_40SJP5.js.map +1 -0
- package/dist/node/{product-host-D08dCAW1.js → product-host-B8DMD7JU.js} +42 -42
- package/dist/node/{product-host-D08dCAW1.js.map → product-host-B8DMD7JU.js.map} +1 -1
- package/dist/node/product-host-SaMRTzxB.d.ts.map +1 -1
- package/dist/node/{src-B9UMvThT-C7tdUtnO.js → src-B9UMvThT-Bvb_feFE.js} +2 -2
- package/dist/node/{src-B9UMvThT-C7tdUtnO.js.map → src-B9UMvThT-Bvb_feFE.js.map} +1 -1
- package/dist/node/{src-B9UMvThT-B2KTGTWN.js → src-B9UMvThT-DhB2-iRi.js} +1 -1
- package/dist/node/{src-BzaNFPZx-DElk_FSv.js → src-BzaNFPZx-DXOf5aSE.js} +1 -1
- package/dist/node/{src-BzaNFPZx-BhNHy6VF.js → src-BzaNFPZx-abBvWnS7.js} +2 -2
- package/dist/node/{src-BzaNFPZx-BhNHy6VF.js.map → src-BzaNFPZx-abBvWnS7.js.map} +1 -1
- package/dist/node/{src-DwAfU-9z-DeVCAItW.js → src-DwAfU-9z-Cssq0Qlg.js} +2 -2
- package/dist/node/{src-DwAfU-9z-DeVCAItW.js.map → src-DwAfU-9z-Cssq0Qlg.js.map} +1 -1
- package/dist/node/{src-DwAfU-9z-CONMoS5Y.js → src-DwAfU-9z-DSvw43GT.js} +1 -1
- package/dist/node/{src-UPsd6jNY-DNJ5Z5Eu.js → src-UPsd6jNY-CBY_FIuS.js} +2 -2
- package/dist/node/{src-UPsd6jNY-DNJ5Z5Eu.js.map → src-UPsd6jNY-CBY_FIuS.js.map} +1 -1
- package/dist/node/{src-UPsd6jNY-DI_aEmty.js → src-UPsd6jNY-DgP2halC.js} +1 -1
- package/package.json +37 -37
- package/dist/node/node-DwQY2ITL.js +0 -67
- package/dist/node/node-DwQY2ITL.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @robota-sdk/agent-cli
|
|
2
2
|
|
|
3
|
+
## 3.0.7
|
|
4
|
+
|
|
5
|
+
## 3.0.6
|
|
6
|
+
### Patch Changes
|
|
7
|
+
|
|
8
|
+
- Launch supervised runtimes, including the workspace daemon, with `--disable-sigusr1` where Node supports it, so another program of the same user cannot open their inspector, and redact `authToken` values from persisted session logs and share artifacts.
|
|
9
|
+
|
|
3
10
|
## 3.0.5
|
|
4
11
|
### Patch Changes
|
|
5
12
|
|
package/dist/node/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
;(function(){var v=parseInt(process.versions.node.split('.')[0],10);if(v<22){process.stderr.write('\n✗ Node.js 22+ is required (current: '+process.version+')\n\nUpgrade:\n nvm: nvm install 22 && nvm use 22\n Volta: volta install node@22\n Download: https://nodejs.org/en/download\n\n');process.exit(1);}})();
|
|
3
|
-
import{D as e,Et as t,Ft as n,Rt as r,Vt as i,Y as a,nt as o,ut as s}from"./node-PhNl8kvo.js";import{A as c,C as l,D as u,E as d,F as f,H as p,I as m,L as h,M as g,N as _,O as v,P as ee,R as y,S as te,T as b,_ as ne,b as re,d as ie,g as ae,h as oe,j as se,k as ce,m as x,p as le,t as S,u as ue,v as de,w as C,x as w,y as fe,z as T}from"./cli-core-
|
|
3
|
+
import{D as e,Et as t,Ft as n,Rt as r,Vt as i,Y as a,nt as o,ut as s}from"./node-PhNl8kvo.js";import{A as c,C as l,D as u,E as d,F as f,H as p,I as m,L as h,M as g,N as _,O as v,P as ee,R as y,S as te,T as b,_ as ne,b as re,d as ie,g as ae,h as oe,j as se,k as ce,m as x,p as le,t as S,u as ue,v as de,w as C,x as w,y as fe,z as T}from"./cli-core-uMmBjzq6.js";import{watch as pe}from"node:fs";import{basename as me,dirname as he,join as ge}from"node:path";import{mkdir as _e,readFile as E,writeFile as ve}from"node:fs/promises";import{Readable as ye}from"node:stream";import D,{Chalk as be,backgroundColorNames as xe,foregroundColorNames as O}from"chalk";import{Box as k,Static as Se,Text as A,render as Ce,useApp as we,useBoxMetrics as j,useCursor as Te,useInput as Ee,usePaste as De,useStdout as Oe,useWindowSize as ke}from"ink";import M,{createContext as N,useCallback as P,useContext as F,useEffect as I,useLayoutEffect as Ae,useMemo as L,useRef as R,useState as z}from"react";import{Fragment as B,jsx as V,jsxs as H}from"react/jsx-runtime";import je from"string-width";import{marked as Me}from"marked";import Ne from"marked-terminal";let Pe=null,Fe=!1,Ie=`robota`;function Le(){return Fe}const U=[`string-width`,`setCursorPosition`,`getStringWidth`,`slice`,`charCodeAt`];function Re(e,t){if(!t)return`rethrow`;let n=e.message??``;return U.some(e=>n.includes(e))?`ime-hint`:`guard-owned`}function ze(e){Pe=e}function Be(e,t){try{if(Pe){Pe.getSession().reportBackgroundError(e,t);return}}catch{}process.stderr.write(`\n[${Ie}] ${t}: ${e.message}\n`)}function Ve(e=`robota`){Ie=e,!Fe&&(Fe=!0,process.on(`unhandledRejection`,e=>{Be(e instanceof Error?e:Error(String(e)),`unhandled rejection`)}),process.on(`uncaughtException`,e=>{Be(e instanceof Error?e:Error(String(e)),`uncaught exception`)}))}let He=!1,Ue=`CLI`;function We(e){return`\n[${e}] CJK/IME input error — this is a known issue with macOS Terminal.app.\n Workaround: use iTerm2 (https://iterm2.com) or input your prompt in English.
|
|
4
4
|
Alternatively, use headless mode: -p "your prompt here"
|
|
5
5
|
|
|
6
6
|
`}function Ge(e){Ue=e,!He&&(He=!0,process.on(`uncaughtException`,e=>{let t=Re(e,Le());if(t===`ime-hint`){process.stderr.write(We(Ue));return}if(t!==`guard-owned`)throw e}))}const Ke=e=>typeof e==`string`,qe=e=>t=>t===void 0||e(t),Je={user:!0,"agent-wakeup":!0,peer:!0,external:!0},Ye={driverId:qe(Ke)};({...Ye}),{...Ye},{...Ye},{...Ye},{...Ye},{...Ye},{...Ye},{...Ye},{...Ye},Object.keys(Je);const Xe=new Set([`get-messages`,`get-history`,`get-context`,`get-status`,`get-commands`,`list-models`,`get-executing`,`get-pending`,`get-execution-workspace`,`read-execution-detail`,`get-agent-definitions`,`get-usage-report`,`list-sessions`,`get-background-tasks`,`get-background-task`,`get-background-job-groups`,`get-background-job-group`,`wait-background-job-group`,`read-background-task-log`,`get-settings`,`project-status`,`project-diff`,`project-memory`]);function Ze(e){return Xe.has(e)}const Qe=new Set([` `,`
|