@minimax-ai/code 0.3.9 → 0.3.10

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.
@@ -27,4 +27,4 @@ Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,r=>{let
27
27
  `),i="natural"},runPlugin:async(s,l)=>{let a=o.runPlugin??gt;e.stdout.write(`${await a(s,y,l)}
28
28
  `),i="natural"}}).parseAsync(e.argv,{from:"node"}),i){let s=typeof e.exitCode=="number"?e.exitCode:0;await Promise.all([Me(e.stdout,o.outputDrainTimeoutMs??ke),Me(e.stderr,o.outputDrainTimeoutMs??ke)]),(o.platform??process.platform)==="win32"&&i==="natural"?e.exitCode=s:e.exit(s)}}catch(r){e.stderr.write(`${await ut(r)}
29
29
  `),e.exitCode=1}}async function ut(o){let e=ie(o);if(!/better[-_]sqlite3/iu.test(e)||!/Could not locate the bindings file|Cannot find (?:module|package)|NODE_MODULE_VERSION|Module did not self-register/iu.test(e))return e;let{buildMcodePackageManagerCommand:t}=await import("./install-source-6JLUO3MG.js");return["MCode could not load its native SQLite dependency.","If npm reported blocked install scripts, the installation needs explicit script approval.","Reinstall with the original installer. For npm installations, run:",` ${t("npm-global",y).display} --foreground-scripts`,"",`Original error: ${e}`].join(`
30
- `)}function Me(o,e){return o.destroyed||o.writableEnded?Promise.resolve():new Promise(t=>{let n=!1,i,r=()=>s(!0),s=(l=!1)=>{n||(n=!0,i&&clearTimeout(i),l||o.off?.("error",r),t())};i=setTimeout(s,e),i.unref?.(),o.once?.("error",r);try{o.write("",l=>s(!!l))}catch{s()}})}async function lt(o){let{launchTui:e}=await import("./launcher-CRWDSPMP.js");await e(o)}async function ct(o,e,t){let{runTuiExecCommand:n}=await import("./run-exec-command-WKCMWDQS.js");await n(o,e,t)}async function dt(o,e){let{runTuiAcpCommand:t}=await import("./run-acp-command-IRGYH5GM.js");await t(o,{},e)}async function ht(o,e=!0,t){let{runTuiLogin:n}=await import("./auth-command-ZGB3QKMA.js");return n({region:o,openBrowser:e,lane:t})}async function mt(o){let{runTuiLogout:e}=await import("./auth-command-ZGB3QKMA.js");return e({region:o})}async function pt(o){let{runMcodeUpdate:e}=await import("./update-HTLJYRQR.js");await e(o)}async function ft(o,e,t){let{runMcodeProviderCommand:n}=await import("./provider-command-DKDOT7OP.js");return n({request:o,version:e,lane:t})}async function gt(o,e,t){let{runMcodePluginCommand:n}=await import("./plugin-command-AKGMERKZ.js");return n({request:o,version:e,lane:t})}export{Me as drainTuiOutput,Kt as runTuiCli};
30
+ `)}function Me(o,e){return o.destroyed||o.writableEnded?Promise.resolve():new Promise(t=>{let n=!1,i,r=()=>s(!0),s=(l=!1)=>{n||(n=!0,i&&clearTimeout(i),l||o.off?.("error",r),t())};i=setTimeout(s,e),i.unref?.(),o.once?.("error",r);try{o.write("",l=>s(!!l))}catch{s()}})}async function lt(o){let{launchTui:e}=await import("./launcher-CVR77P3I.js");await e(o)}async function ct(o,e,t){let{runTuiExecCommand:n}=await import("./run-exec-command-WKCMWDQS.js");await n(o,e,t)}async function dt(o,e){let{runTuiAcpCommand:t}=await import("./run-acp-command-IRGYH5GM.js");await t(o,{},e)}async function ht(o,e=!0,t){let{runTuiLogin:n}=await import("./auth-command-ZGB3QKMA.js");return n({region:o,openBrowser:e,lane:t})}async function mt(o){let{runTuiLogout:e}=await import("./auth-command-ZGB3QKMA.js");return e({region:o})}async function pt(o){let{runMcodeUpdate:e}=await import("./update-HTLJYRQR.js");await e(o)}async function ft(o,e,t){let{runMcodeProviderCommand:n}=await import("./provider-command-DKDOT7OP.js");return n({request:o,version:e,lane:t})}async function gt(o,e,t){let{runMcodePluginCommand:n}=await import("./plugin-command-AKGMERKZ.js");return n({request:o,version:e,lane:t})}export{Me as drainTuiOutput,Kt as runTuiCli};
package/cli.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __mavis_cR } from "module"; import { basename as __mavis_basename, dirname as __mavis_dirname, join as __mavis_join } from "path"; import { fileURLToPath as __mavis_fileURLToPath, pathToFileURL as __mavis_pathToFileURL } from "url"; const __mavis_tuiCurrentModuleDir = __mavis_dirname(__mavis_fileURLToPath(import.meta.url)); const __mavis_tuiPackageRoot = __mavis_basename(__mavis_tuiCurrentModuleDir) === "chunks" ? __mavis_dirname(__mavis_tuiCurrentModuleDir) : __mavis_tuiCurrentModuleDir; const __mavis_tuiPackageEntryUrl = __mavis_pathToFileURL(__mavis_join(__mavis_tuiPackageRoot, "cli.js")).href; const require = __mavis_cR(__mavis_tuiPackageEntryUrl); const __dirname = __mavis_tuiPackageRoot;
3
3
  import{f as s}from"./chunks/chunk-UQHSY5YK.js";import{u as n,v as a}from"./chunks/chunk-NW6DSOE3.js";import"./chunks/chunk-O6RIRKRN.js";import"./chunks/chunk-HQ2U4QVQ.js";import{m as o,o as i}from"./chunks/chunk-SEVVS6ZS.js";import"./chunks/chunk-XO2KLR35.js";import"./chunks/chunk-ZITT4GJK.js";import"./chunks/chunk-MMRA4VD2.js";import"./chunks/chunk-CWWDVX6C.js";import"./chunks/chunk-D76SO2ME.js";import{fileURLToPath as u}from"node:url";async function l(){let c=n(u(__mavis_tuiPackageEntryUrl)),t=a(c),r;try{r=i(process.argv.slice(2),t)}catch(e){process.stderr.write(`${e instanceof Error?e.message:String(e)}
4
- `),process.exitCode=1;return}let{getTuiDataDirPath:m}=await import("./chunks/data-dir-BYKXIBNJ.js");o({dataDir:m(),...r?{startupBuildEnvironment:r}:{}});let p=await s();try{let{runTuiCli:e}=await import("./chunks/main-I2GTN2NG.js");await e({allowStartupEnvironmentSelection:t})}finally{p.remove()}}await l();
4
+ `),process.exitCode=1;return}let{getTuiDataDirPath:m}=await import("./chunks/data-dir-BYKXIBNJ.js");o({dataDir:m(),...r?{startupBuildEnvironment:r}:{}});let p=await s();try{let{runTuiCli:e}=await import("./chunks/main-2DGSNE4M.js");await e({allowStartupEnvironmentSelection:t})}finally{p.remove()}}await l();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minimax-ai/code",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Minimax Code — terminal coding agent",
5
5
  "type": "module",
6
6
  "bin": {