@qoder-ai/qodercli 0.2.2-beta.14 → 0.2.2-beta.15
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/bundle/qodercli.js +1 -2
- package/package.json +1 -1
package/bundle/qodercli.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const __origEmit=process.emit;process.emit=function(e,w){if(e==="warning"&&w&&typeof w.message==="string"&&w.message.includes("unsettled top-level await"))return false;return __origEmit.apply(this,arguments)};const __origStderrWrite=process.stderr.write.bind(process.stderr);process.stderr.write=function(c,...a){if(typeof c==="string"&&c.includes("unsettled top-level await"))return true;return __origStderrWrite(c,...a)};
|
|
1
|
+
#!/usr/bin/env -S node --no-warnings
|
|
3
2
|
import { createRequire as __banner_createRequire } from 'node:module'; import { fileURLToPath as __banner_fileURLToPath } from 'node:url'; import { dirname as __banner_dirname } from 'node:path'; const require = __banner_createRequire(import.meta.url); const __chunk_filename = __banner_fileURLToPath(import.meta.url); const __chunk_dirname = __banner_dirname(__chunk_filename);
|
|
4
3
|
var NCo=Object.create;var AGe=Object.defineProperty;var MCo=Object.getOwnPropertyDescriptor;var OCo=Object.getOwnPropertyNames;var PCo=Object.getPrototypeOf,QCo=Object.prototype.hasOwnProperty;var Se=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var b=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ro=(t,e)=>{for(var r in e)AGe(t,r,{get:e[r],enumerable:!0})},GUr=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of OCo(e))!QCo.call(t,o)&&o!==r&&AGe(t,o,{get:()=>e[o],enumerable:!(n=MCo(e,o))||n.enumerable});return t};var V=(t,e,r)=>(r=t!=null?NCo(PCo(t)):{},GUr(e||!t||!t.__esModule?AGe(r,"default",{value:t,enumerable:!0}):r,t)),Fr=t=>GUr(AGe({},"__esModule",{value:!0}),t);var fGe=t=>new Uint8Array(Buffer.from(t,"base64"));var Tne,$Ur=b(()=>{"use strict";Tne={}});function LCo(){return process.versions.bun!==void 0}function OL(){return typeof Bun<"u"&&Array.isArray(Bun.embeddedFiles)&&Bun.embeddedFiles.length>0}function jUr(){return process.env.IS_BINARY==="true"&&!OL()}function qw(){return OL()||jUr()}var gGe=b(()=>{"use strict";});import{createHash as FCo}from"node:crypto";import{chmodSync as UCo,existsSync as YUr,mkdirSync as HUr,readFileSync as zUr,renameSync as GCo,rmSync as mGe,statSync as $Co,writeFileSync as qUr}from"node:fs";import{createRequire as Vwt}from"node:module";import{tmpdir as jCo,userInfo as HCo}from"node:os";import VE from"node:path";function VUr(t){return(t||"unknown").toString().replace(/[^a-zA-Z0-9.-]/g,"_")}function qCo(){let t=FCo("sha256"),e=Object.keys(Tne).sort();for(let r of e){let n=Tne[r];t.update(`${r}\0${n.path}\0${n.mode}
|
|
5
4
|
`)}return t.digest("hex").slice(0,16)}function VCo(t,e){try{let r=$Co(t);return!(!r.isDirectory()||e!=="unknown"&&r.uid!==e||process.platform!=="win32"&&(r.mode&511)!==448)}catch{return!1}}function WCo(t,e){let r=VE.dirname(t),n=VE.join(r,`.setup-${VE.basename(t)}-${process.pid}-${Date.now()}`);HUr(n,{recursive:!0,mode:448});try{for(let[o,s]of Object.entries(Tne)){let a=VE.join(n,o);HUr(VE.dirname(a),{recursive:!0,mode:448});let l=zUr(s.path);qUr(a,l,{mode:s.mode}),process.platform!=="win32"&&UCo(a,s.mode)}qUr(VE.join(n,qwt),e,{mode:384});try{GCo(n,t)}catch(o){let s=VE.join(t,qwt);if(YUr(s)&&KUr(s)===e){mGe(n,{recursive:!0,force:!0});return}throw o}}catch(o){try{mGe(n,{recursive:!0,force:!0})}catch{}throw o}}function KUr(t){try{return zUr(t,"utf8")}catch{return null}}function YCo(t,e){let r=Vwt(import.meta.url)("node:fs"),n=t.split("/"),o,s;if(t.startsWith("@")){if(n.length<2)return null;o=`${n[0]}/${n[1]}`,s=n.slice(2).join("/")||void 0}else o=n[0],s=n.slice(1).join("/")||void 0;let a=VE.join(e,o);if(!r.existsSync(a))return null;let l={};try{l=JSON.parse(r.readFileSync(VE.join(a,"package.json"),"utf8"))}catch{}if(!s){let u=l.main||"index.js",d=VE.join(a,u);return r.existsSync(d)?d:null}if(l.exports&&typeof l.exports=="object"){let u=`./${s}`,d=l.exports[u];if(typeof d=="string"){let p=VE.join(a,d);if(r.existsSync(p))return p}}let c=VE.join(a,s);if(r.existsSync(c)&&r.statSync(c).isFile())return c;for(let u of[".js",".json",".node"]){let d=c+u;if(r.existsSync(d))return d}return null}function WUr(t){let e=!!process.env.QODERCLI_DEBUG_NATIVES,r=s=>{e&&process.stderr.write(`[natives-debug] ${s}
|