@testmuai/kane-cli 0.2.3 → 0.2.5

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.
Files changed (35) hide show
  1. package/dist/{ChromeProfilePicker-SAXOTO5M.js → ChromeProfilePicker-J34PIRKT.js} +1 -1
  2. package/dist/{CliFeedbackPrompt-5CNRJ2AC.js → CliFeedbackPrompt-6BF5FIGV.js} +1 -1
  3. package/dist/{CliUploadProgress-7KUXH55I.js → CliUploadProgress-OLN4CLU7.js} +1 -1
  4. package/dist/{ConfigView-5A2DPQNW.js → ConfigView-P4W6OHZK.js} +1 -1
  5. package/dist/{FolderPicker-4RBXJLK2.js → FolderPicker-CJAJHSMM.js} +1 -1
  6. package/dist/HelpView-AZGTX7MR.js +2 -0
  7. package/dist/{LinksBox-JQ2MF2QZ.js → LinksBox-P7HGFKVG.js} +1 -1
  8. package/dist/{LoginWizard-AKV22AJ5.js → LoginWizard-LQKZ3AYY.js} +1 -1
  9. package/dist/{ProfilesView-WHPQWB42.js → ProfilesView-RXVSD4YZ.js} +1 -1
  10. package/dist/{ProjectPicker-UJUXK3UA.js → ProjectPicker-GFSQKLDY.js} +1 -1
  11. package/dist/{WhoamiView-6EWBKXAF.js → WhoamiView-GVVXM665.js} +1 -1
  12. package/dist/{changelog-E4BNKPYL.js → changelog-WS4VVR5W.js} +1 -1
  13. package/dist/{chunk-TENTBVGG.js → chunk-37E6GGJP.js} +1 -1
  14. package/dist/{chunk-JMFLXNAG.js → chunk-4XWNQQSQ.js} +1 -1
  15. package/dist/{chunk-PFVUFDRI.js → chunk-5DRGVR7L.js} +1 -1
  16. package/dist/{chunk-GNMGQOGV.js → chunk-6JF2T7BO.js} +1 -1
  17. package/dist/{chunk-6JPSYIY2.js → chunk-722N7IS6.js} +1 -1
  18. package/dist/{chunk-NRQDE7HH.js → chunk-C5U522LO.js} +1 -1
  19. package/dist/{chunk-GEG2YL4Q.js → chunk-CVDB2PVG.js} +1 -1
  20. package/dist/{chunk-BGUDP4VU.js → chunk-F5NOXQWP.js} +1 -1
  21. package/dist/{chunk-D3WSRUJS.js → chunk-F6J3XGBQ.js} +1 -1
  22. package/dist/{chunk-ISIBNO3G.js → chunk-FH54KGU4.js} +1 -1
  23. package/dist/{chunk-3CJ6IY5O.js → chunk-GPQFSC4B.js} +1 -1
  24. package/dist/{chunk-Q47TGXAH.js → chunk-I7KNK4LR.js} +1 -1
  25. package/dist/{chunk-54CAWEGK.js → chunk-UJP3DMYF.js} +1 -1
  26. package/dist/{chunk-TSMW6QW4.js → chunk-V77DQ5LB.js} +1 -1
  27. package/dist/{chunk-BZFESAZK.js → chunk-W22K4TDJ.js} +1 -1
  28. package/dist/{controller-client-PS5GDXE3.js → controller-client-VI55T5AT.js} +1 -1
  29. package/dist/index.js +41 -41
  30. package/dist/{pipeline-7NY333ZT.js → pipeline-ZLHWF3V7.js} +1 -1
  31. package/dist/{resolver-L3Z6FAOD.js → resolver-XLRER3KZ.js} +1 -1
  32. package/dist/{updater-5VMYLGW3.js → updater-KDWM6PUM.js} +1 -1
  33. package/dist/{version-check-54A7DQDT.js → version-check-YRWT2JIC.js} +1 -1
  34. package/package.json +4 -4
  35. package/dist/HelpView-DMXQKJYW.js +0 -2
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a}from"./chunk-GNMGQOGV.js";import"./chunk-3CJ6IY5O.js";import"./chunk-I7YWZ3D2.js";import"./chunk-UR6MHSHU.js";export{a as UploadPipeline};
2
+ import{a}from"./chunk-6JF2T7BO.js";import"./chunk-GPQFSC4B.js";import"./chunk-I7YWZ3D2.js";import"./chunk-UR6MHSHU.js";export{a as UploadPipeline};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a}from"./chunk-NRQDE7HH.js";import"./chunk-3CJ6IY5O.js";import"./chunk-UR6MHSHU.js";export{a as AuthResolver};
2
+ import{a}from"./chunk-C5U522LO.js";import"./chunk-GPQFSC4B.js";import"./chunk-UR6MHSHU.js";export{a as AuthResolver};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{c as a}from"./chunk-TSMW6QW4.js";import{a as s}from"./chunk-D3WSRUJS.js";import"./chunk-UR6MHSHU.js";import{execFile as l}from"child_process";async function p(i){let t=await a();if(!t)return{success:!0,fromVersion:s,toVersion:s};let o=`@testmuai/kane-cli@${t.latest}`;return new Promise(n=>{let r=l("npm",["install","-g",o],{timeout:12e4,env:{...process.env}});r.stdout?.on("data",e=>i?.(e)),r.stderr?.on("data",e=>i?.(e)),r.on("close",e=>{n(e===0?{success:!0,fromVersion:s,toVersion:t.latest}:{success:!1,fromVersion:s,toVersion:t.latest,error:`npm install exited with code ${e}. Try manually: npm install -g ${o}`})}),r.on("error",e=>{n({success:!1,fromVersion:s,toVersion:t.latest,error:`Failed to run npm: ${e.message}. Try manually: npm install -g ${o}`})})})}export{p as runSelfUpdate};
2
+ import{c as a}from"./chunk-V77DQ5LB.js";import{a as s}from"./chunk-F6J3XGBQ.js";import"./chunk-UR6MHSHU.js";import{execFile as l}from"child_process";async function p(i){let t=await a();if(!t)return{success:!0,fromVersion:s,toVersion:s};let o=`@testmuai/kane-cli@${t.latest}`;return new Promise(n=>{let r=l("npm",["install","-g",o],{timeout:12e4,env:{...process.env}});r.stdout?.on("data",e=>i?.(e)),r.stderr?.on("data",e=>i?.(e)),r.on("close",e=>{n(e===0?{success:!0,fromVersion:s,toVersion:t.latest}:{success:!1,fromVersion:s,toVersion:t.latest,error:`npm install exited with code ${e}. Try manually: npm install -g ${o}`})}),r.on("error",e=>{n({success:!1,fromVersion:s,toVersion:t.latest,error:`Failed to run npm: ${e.message}. Try manually: npm install -g ${o}`})})})}export{p as runSelfUpdate};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a,b,c}from"./chunk-TSMW6QW4.js";import"./chunk-D3WSRUJS.js";import"./chunk-UR6MHSHU.js";export{c as checkForUpdate,a as compareVersions,b as getSeverity};
2
+ import{a,b,c}from"./chunk-V77DQ5LB.js";import"./chunk-F6J3XGBQ.js";import"./chunk-UR6MHSHU.js";export{c as checkForUpdate,a as compareVersions,b as getSeverity};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testmuai/kane-cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "KaneAI Terminal UI — browser automation testing agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,9 +23,9 @@
23
23
  "sharp": "^0.34.5"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@testmuai/kane-cli-darwin-arm64": "0.2.3",
27
- "@testmuai/kane-cli-linux-x64": "0.2.3",
28
- "@testmuai/kane-cli-win-x64": "0.2.3"
26
+ "@testmuai/kane-cli-darwin-arm64": "0.2.5",
27
+ "@testmuai/kane-cli-linux-x64": "0.2.5",
28
+ "@testmuai/kane-cli-win-x64": "0.2.5"
29
29
  },
30
30
  "publishConfig": {
31
31
  "registry": "https://registry.npmjs.org",
@@ -1,2 +0,0 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as f}from"./chunk-HCBYKLMW.js";import{a as h,b as c,r as t}from"./chunk-D3WSRUJS.js";import{a as n,b as o,j as p,k as x}from"./chunk-Q7JVDEOV.js";import{a as T}from"./chunk-6YGTRKDT.js";import{e as u}from"./chunk-UR6MHSHU.js";var b=u(T(),1);var e=u(f(),1),w="https://www.testmuai.com/support/docs/kane-cli-introduction",B="https://github.com/LambdaTest/kane-cli/issues";function L(){let{exit:l}=p(),{stdout:i}=x(),s=i?.columns??80;return(0,b.useEffect)(()=>{let d=setTimeout(()=>l(),50);return()=>clearTimeout(d)},[l]),(0,e.jsxs)(n,{flexDirection:"column",children:[(0,e.jsxs)(n,{paddingX:1,paddingTop:1,flexDirection:"column",children:[(0,e.jsx)(o,{color:t.purple,bold:!0,children:c}),(0,e.jsxs)(n,{children:[(0,e.jsx)(o,{color:t.dimmed,children:"Browser automation powered by AI "}),(0,e.jsxs)(o,{color:t.muted,children:[" v",h]})]})]}),(0,e.jsx)(o,{children:" "}),(0,e.jsx)(m,{title:"USAGE",children:(0,e.jsxs)(o,{color:t.cyan,children:[" $ ",c," ","<command>"," [flags]"]})}),(0,e.jsxs)(m,{title:"COMMANDS",children:[(0,e.jsx)(a,{cmd:"run",args:"<objective>",desc:"Run a browser automation task",highlight:!0}),(0,e.jsx)(a,{cmd:"setup",desc:"First-time auth & configuration"}),(0,e.jsx)(a,{cmd:"login",desc:"OAuth PKCE login (opens browser)"}),(0,e.jsx)(a,{cmd:"logout",desc:"Revoke tokens + delete profile"}),(0,e.jsx)(a,{cmd:"whoami",desc:"Show authenticated identity"}),(0,e.jsx)(a,{cmd:"config",args:"show|set-\u2026|reset",desc:"Manage configuration"}),(0,e.jsx)(a,{cmd:"profiles",args:"list|switch|delete",desc:"Manage auth profiles"})]}),(0,e.jsxs)(m,{title:"RUN FLAGS",children:[(0,e.jsx)(r,{long:"--url",arg:"<url>",desc:"Target URL"}),(0,e.jsx)(r,{long:"--max-steps",arg:"<n>",desc:"Max agent steps (default: 30)"}),(0,e.jsx)(r,{long:"--timeout",arg:"<sec>",desc:"Kill run after N seconds"}),(0,e.jsx)(r,{long:"--headless",desc:"No visible browser window"}),(0,e.jsx)(r,{long:"--variables",arg:"<json>",desc:"Inline variables as JSON"}),(0,e.jsx)(r,{long:"--variables-file",arg:"<path>",desc:"Load variables from file"}),(0,e.jsx)(r,{long:"--ws-endpoint",arg:"<url>",desc:"Remote browser (LambdaTest)"}),(0,e.jsx)(r,{long:"--cdp-endpoint",arg:"<url>",desc:"Connect to existing Chrome CDP"}),(0,e.jsx)(r,{long:"--cft",desc:"Use Playwright Chromium instead of managed Chrome"}),(0,e.jsx)(r,{long:"--global-context",arg:"<file>",desc:"Override global context markdown"}),(0,e.jsx)(r,{long:"--local-context",arg:"<file>",desc:"Override local context markdown"}),(0,e.jsx)(r,{long:"--username",arg:"<user>",desc:"Basic auth (skip OAuth)"}),(0,e.jsx)(r,{long:"--access-key",arg:"<key>",desc:"Basic auth access key"}),(0,e.jsx)(r,{long:"--env",arg:"<name>",desc:"Environment (prod or stage)"}),(0,e.jsx)(r,{long:"--agent",desc:"NDJSON output (no UI)",highlight:!0})]}),(0,e.jsxs)(m,{title:"EXAMPLES",children:[(0,e.jsx)(g,{label:"Search",cmd:`${c} run "Search for laptop" --url https://amazon.in`}),(0,e.jsx)(g,{label:"Headless",cmd:`${c} run "Verify login" --url https://app.example.com --headless`}),(0,e.jsx)(g,{label:"Variables",cmd:`${c} run "Login as {{user}}" --url https://app.com --variables '{"user":{"value":"alice"}}'`}),(0,e.jsx)(g,{label:"Agent",cmd:`${c} run "Add to cart" --url https://shop.com --agent | jq .status`})]}),(0,e.jsxs)(n,{flexDirection:"column",marginTop:0,paddingX:1,children:[(0,e.jsx)(o,{color:t.muted,children:"\u2500".repeat(Math.min(s-2,70))}),(0,e.jsxs)(n,{gap:3,children:[(0,e.jsxs)(n,{children:[(0,e.jsx)(o,{color:t.dimmed,children:"Docs "}),(0,e.jsx)(o,{color:t.cyan,underline:!0,children:w})]}),(0,e.jsxs)(n,{children:[(0,e.jsx)(o,{color:t.dimmed,children:"Bugs "}),(0,e.jsx)(o,{color:t.cyan,underline:!0,children:B})]})]})]}),(0,e.jsx)(o,{children:" "})]})}function m({title:l,children:i}){return(0,e.jsxs)(n,{flexDirection:"column",marginBottom:1,children:[(0,e.jsx)(n,{marginLeft:1,children:(0,e.jsx)(o,{bold:!0,color:t.dimmed,children:l})}),i]})}function a({cmd:l,args:i,desc:s,highlight:d}){return(0,e.jsxs)(n,{marginLeft:2,children:[(0,e.jsx)(n,{width:12,children:(0,e.jsx)(o,{color:d?t.purple:t.green,bold:!0,children:l})}),(0,e.jsx)(n,{width:28,children:i?(0,e.jsx)(o,{color:t.dimmed,children:i}):null}),(0,e.jsx)(o,{color:t.dimmed,children:s})]})}function r({long:l,arg:i,desc:s,highlight:d}){return(0,e.jsxs)(n,{marginLeft:2,children:[(0,e.jsxs)(n,{width:26,children:[(0,e.jsx)(o,{color:d?t.purple:t.cyan,children:l}),i&&(0,e.jsxs)(o,{color:t.dimmed,children:[" ",i]})]}),(0,e.jsx)(o,{color:t.dimmed,children:s})]})}function g({label:l,cmd:i}){return(0,e.jsxs)(n,{marginLeft:2,flexDirection:"column",children:[(0,e.jsxs)(o,{color:t.dimmed,children:["# ",l]}),(0,e.jsxs)(o,{color:t.cyan,children:["$ ",i]})]})}export{L as HelpView};