@robota-sdk/agent-cli 3.0.0-beta.86 → 3.0.0-beta.87
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 +88 -48
- package/README.md +265 -39
- package/bin/{robota.cjs → agent.cjs} +1 -1
- package/dist/node/bin.js +23 -23
- package/dist/node/{bounded-output-Bgx2Cgkx-28em7iHq.js → bounded-output-BdWv9SX3-28em7iHq.js} +1 -1
- package/dist/node/{bounded-output-Bgx2Cgkx-28em7iHq.js.map → bounded-output-BdWv9SX3-28em7iHq.js.map} +1 -1
- package/dist/node/cli-core-6GIkeGqT.js +2911 -0
- package/dist/node/{command-executor-d6DdfUTD-DhFSDHvb.js → command-executor-D_UBZHxh-CVZipoOV.js} +2 -2
- package/dist/node/{command-executor-d6DdfUTD-DhFSDHvb.js.map → command-executor-D_UBZHxh-CVZipoOV.js.map} +1 -1
- package/dist/node/{command-executor-d6DdfUTD-3KEnsTnN.js → command-executor-D_UBZHxh-D7UrdAlN.js} +1 -1
- package/dist/node/headless.js +2 -2
- package/dist/node/index.d.ts +2423 -166
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +605 -581
- package/dist/node/index.js.map +1 -1
- package/dist/node/node-BUERQysz.js +15 -0
- package/dist/node/node-BWNobqRD.js +15 -0
- package/dist/node/node-BWNobqRD.js.map +1 -0
- package/dist/node/{node-BfqR16CD.js → node-BbADaLn-.js} +1 -1
- package/dist/node/node-C4_FOvnk.js.map +1 -1
- package/dist/node/node-Cjb1v2Jw.js +165 -0
- package/dist/node/node-DENLEmMT.js.map +1 -1
- package/dist/node/node-DGvY0f9e.js +165 -0
- package/dist/node/node-DGvY0f9e.js.map +1 -0
- package/dist/web/assets/index-BSxTg2Py.css +1 -0
- package/dist/web/assets/index-BpCxNRj_.js +309 -0
- package/dist/web/index.html +3 -3
- package/package.json +46 -44
- package/dist/node/cli-core-DOdGt9XE.js +0 -2891
- package/dist/node/node-B48couEE.js +0 -14
- package/dist/node/node-B48couEE.js.map +0 -1
- package/dist/node/node-CgLYctGm.js +0 -67
- package/dist/node/node-CgLYctGm.js.map +0 -1
- package/dist/node/node-DAOCaE6N.js +0 -67
- package/dist/node/node-DlLm_kxn.js +0 -14
- package/dist/web/assets/index-DSLs7oij.js +0 -309
- package/dist/web/assets/index-OqCBtMJ2.css +0 -1
- /package/dist/node/{bounded-output-Bgx2Cgkx-C4ucXwLR.js → bounded-output-BdWv9SX3-C4ucXwLR.js} +0 -0
package/dist/node/{command-executor-d6DdfUTD-DhFSDHvb.js → command-executor-D_UBZHxh-CVZipoOV.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-C9xYM0wc.js";import{r as t,s as n,w as r}from"./bounded-output-
|
|
2
|
-
//# sourceMappingURL=command-executor-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-C9xYM0wc.js";import{r as t,s as n,w as r}from"./bounded-output-BdWv9SX3-28em7iHq.js";import{t as i}from"./rolldown-runtime-DK3Fl9T5-DK3Fl9T5.js";import{spawn as a}from"node:child_process";var o=e({n:()=>s,t:()=>d}),s=i({CommandExecutor:()=>d});const c=1e6;function l(e,n){let r=t({maxBytes:c}),i=t({maxBytes:c,retain:`tail`});return e.stdout?.on(`data`,e=>r.append(e)),e.stderr?.on(`data`,e=>i.append(e)),e.stdin?.on(`error`,()=>{}),e.stdin?.write(n),e.stdin?.end(),{stdoutOutput:r,stderrOutput:i}}function u(e,t,n,r){if(e===0)return{outcome:`allow`,source:`command`,stdout:n};if(e===2)return{outcome:`deny`,source:`command`,reason:r.trim()||`Blocked by hook`};let i=r.trim()?`: ${r.trim()}`:``;return{outcome:`error`,source:`command`,kind:`nonzero-exit`,reason:e===null?`Hook terminated by signal ${t??`unknown`}${i}`:`Hook exited ${e}${i}`}}var d=class{shellExecutable;type=`command`;constructor(e){this.shellExecutable=e}execute(e,t,i){let o=e.timeout??600,s=o*1e3,c=JSON.stringify(t);return new Promise(d=>{let f=!1,p=r({executable:this.shellExecutable}),m=a(p.command,p.commandArgs(e.command),{cwd:t.cwd,env:n(process.env,i,t.env)}),{stdoutOutput:h,stderrOutput:g}=l(m,c),_=setTimeout(()=>{f||(f=!0,m.kill(`SIGTERM`),d({outcome:`error`,source:`command`,kind:`timeout`,reason:`Hook timed out after ${o}s`}))},s);m.on(`close`,(e,t)=>{f||(f=!0,clearTimeout(_),d(u(e,t,h.toString(),g.toString())))}),m.on(`error`,e=>{f||(f=!0,clearTimeout(_),d({outcome:`error`,source:`command`,kind:`spawn-failure`,reason:e.message}))})})}};export{d as n,o as t};
|
|
2
|
+
//# sourceMappingURL=command-executor-D_UBZHxh-CVZipoOV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-executor-
|
|
1
|
+
{"version":3,"file":"command-executor-D_UBZHxh-CVZipoOV.js","names":["e","r","t","i","n"],"sources":["../../../agent-core/dist/node/command-executor-D_UBZHxh.js"],"sourcesContent":["import{t as e}from\"./rolldown-runtime-DK3Fl9T5.js\";import{f as t,s as n,t as r}from\"./bounded-output-BdWv9SX3.js\";import{spawn as i}from\"node:child_process\";var a=e({CommandExecutor:()=>l});const o=1e6;function s(e,t){let n=r({maxBytes:o}),i=r({maxBytes:o,retain:`tail`});return e.stdout?.on(`data`,e=>n.append(e)),e.stderr?.on(`data`,e=>i.append(e)),e.stdin?.on(`error`,()=>{}),e.stdin?.write(t),e.stdin?.end(),{stdoutOutput:n,stderrOutput:i}}function c(e,t,n,r){if(e===0)return{outcome:`allow`,source:`command`,stdout:n};if(e===2)return{outcome:`deny`,source:`command`,reason:r.trim()||`Blocked by hook`};let i=r.trim()?`: ${r.trim()}`:``;return{outcome:`error`,source:`command`,kind:`nonzero-exit`,reason:e===null?`Hook terminated by signal ${t??`unknown`}${i}`:`Hook exited ${e}${i}`}}var l=class{shellExecutable;type=`command`;constructor(e){this.shellExecutable=e}execute(e,r,a){let o=e.timeout??600,l=o*1e3,u=JSON.stringify(r);return new Promise(d=>{let f=!1,p=t({executable:this.shellExecutable}),m=i(p.command,p.commandArgs(e.command),{cwd:r.cwd,env:n(process.env,a,r.env)}),{stdoutOutput:h,stderrOutput:g}=s(m,u),_=setTimeout(()=>{f||(f=!0,m.kill(`SIGTERM`),d({outcome:`error`,source:`command`,kind:`timeout`,reason:`Hook timed out after ${o}s`}))},l);m.on(`close`,(e,t)=>{f||(f=!0,clearTimeout(_),d(c(e,t,h.toString(),g.toString())))}),m.on(`error`,e=>{f||(f=!0,clearTimeout(_),d({outcome:`error`,source:`command`,kind:`spawn-failure`,reason:e.message}))})})}};export{a as n,l as t};\n//# sourceMappingURL=command-executor-D_UBZHxh.js.map"],"mappings":"6PAAiK,EAAEA,EAAE,CAAC,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,SAAS,EAAE,EAAE,EAAE,CAAC,IAAI,EAAEC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,EAAEA,EAAE,CAAC,SAAS,EAAE,OAAO,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,EAAE,EAAE,QAAQ,GAAG,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,EAAE,EAAE,OAAO,GAAG,YAAY,CAAC,CAAC,EAAE,EAAE,OAAO,MAAM,CAAC,EAAE,EAAE,OAAO,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,QAAQ,QAAQ,OAAO,UAAU,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,QAAQ,OAAO,OAAO,UAAU,OAAO,EAAE,KAAK,GAAG,iBAAiB,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,GAAG,MAAM,CAAC,QAAQ,QAAQ,OAAO,UAAU,KAA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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);}})();
|
|
2
|
-
import{n as e}from"./rolldown-runtime-rs7quPpn.js";import{r as t,s as n,w as r}from"./bounded-output-
|
|
2
|
+
import{n as e}from"./rolldown-runtime-rs7quPpn.js";import{r as t,s as n,w as r}from"./bounded-output-BdWv9SX3-C4ucXwLR.js";import{t as i}from"./rolldown-runtime-DK3Fl9T5-BeX3Bzvn.js";import{spawn as a}from"node:child_process";var o=e({n:()=>s,t:()=>d}),s=i({CommandExecutor:()=>d});const c=1e6;function l(e,n){let r=t({maxBytes:c}),i=t({maxBytes:c,retain:`tail`});return e.stdout?.on(`data`,e=>r.append(e)),e.stderr?.on(`data`,e=>i.append(e)),e.stdin?.on(`error`,()=>{}),e.stdin?.write(n),e.stdin?.end(),{stdoutOutput:r,stderrOutput:i}}function u(e,t,n,r){if(e===0)return{outcome:`allow`,source:`command`,stdout:n};if(e===2)return{outcome:`deny`,source:`command`,reason:r.trim()||`Blocked by hook`};let i=r.trim()?`: ${r.trim()}`:``;return{outcome:`error`,source:`command`,kind:`nonzero-exit`,reason:e===null?`Hook terminated by signal ${t??`unknown`}${i}`:`Hook exited ${e}${i}`}}var d=class{shellExecutable;type=`command`;constructor(e){this.shellExecutable=e}execute(e,t,i){let o=e.timeout??600,s=o*1e3,c=JSON.stringify(t);return new Promise(d=>{let f=!1,p=r({executable:this.shellExecutable}),m=a(p.command,p.commandArgs(e.command),{cwd:t.cwd,env:n(process.env,i,t.env)}),{stdoutOutput:h,stderrOutput:g}=l(m,c),_=setTimeout(()=>{f||(f=!0,m.kill(`SIGTERM`),d({outcome:`error`,source:`command`,kind:`timeout`,reason:`Hook timed out after ${o}s`}))},s);m.on(`close`,(e,t)=>{f||(f=!0,clearTimeout(_),d(u(e,t,h.toString(),g.toString())))}),m.on(`error`,e=>{f||(f=!0,clearTimeout(_),d({outcome:`error`,source:`command`,kind:`spawn-failure`,reason:e.message}))})})}};export{d as n,o as t};
|
package/dist/node/headless.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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{
|
|
4
|
-
`),process.exitCode=2):
|
|
3
|
+
import{I as e,L as t,c as n,l as r,m as i,o as a,p as o,s,t as c,u as l}from"./cli-core-6GIkeGqT.js";if(t(),o(s(process.argv)))try{let e=l({});r(e.environment),i(a(e))}catch(e){process.stderr.write(`${e instanceof Error?e.message:String(e)}\n`),process.exitCode=1}else try{let t=n();!t.serve||t.printMode||t.goal!==void 0||t.positional.length>0||t.reset||t.configure||t.configureProvider!==void 0||t.checkUpdate||t.help||t.version?(process.stderr.write(`This headless runtime accepts only --serve.
|
|
4
|
+
`),process.exitCode=2):c({},e).catch(e=>{process.stderr.write(`${e instanceof Error?e.message:String(e)}\n`),process.exitCode=1})}catch(e){process.stderr.write(`${e instanceof Error?e.message:String(e)}\n`),process.exitCode=2}export{};
|