@github/copilot-linux-arm64
Advanced tools
+1
-1
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
| var mn=Object.create;var ne=Object.defineProperty;var gn=Object.getOwnPropertyDescriptor;var hn=Object.getOwnPropertyNames;var yn=Object.getPrototypeOf,_n=Object.prototype.hasOwnProperty;var te=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,t)=>(typeof require<"u"?require:n)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var I=(e,n)=>()=>{try{return n||e((n={exports:{}}).exports,n),n.exports}catch(t){throw n=0,t}};var bn=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of hn(n))!_n.call(e,o)&&o!==t&&ne(e,o,{get:()=>n[o],enumerable:!(r=gn(n,o))||r.enumerable});return e};var wn=(e,n,t)=>(t=e!=null?mn(yn(e)):{},bn(n||!e||!e.__esModule?ne(t,"default",{value:e,enumerable:!0}):t,e));var pe=I(($t,de)=>{"use strict";var fe=()=>process.platform==="linux",D=null,Pn=()=>{if(!D)if(fe()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,D=process.report.getReport(),process.report.excludeNetwork=e}else D={};return D};de.exports={isLinux:fe,getReport:Pn}});var ge=I((Wt,me)=>{"use strict";var k=te("fs"),Nn="/usr/bin/ldd",kn="/proc/self/exe",H=2048,Tn=e=>{let n=k.openSync(e,"r"),t=Buffer.alloc(H),r=k.readSync(n,t,0,H,0);return k.close(n,()=>{}),t.subarray(0,r)},Ln=e=>new Promise((n,t)=>{k.open(e,"r",(r,o)=>{if(r)t(r);else{let i=Buffer.alloc(H);k.read(o,i,0,H,0,(c,p)=>{n(i.subarray(0,p)),k.close(o,()=>{})})}})});me.exports={LDD_PATH:Nn,SELF_PATH:kn,readFileSync:Tn,readFile:Ln}});var ye=I((Jt,he)=>{"use strict";var Cn=e=>{if(e.length<64||e.readUInt32BE(0)!==2135247942||e.readUInt8(4)!==2||e.readUInt8(5)!==1)return null;let n=e.readUInt32LE(32),t=e.readUInt16LE(54),r=e.readUInt16LE(56);for(let o=0;o<r;o++){let i=n+o*t;if(e.readUInt32LE(i)===3){let p=e.readUInt32LE(i+8),h=e.readUInt32LE(i+32);return e.subarray(p,p+h).toString().replace(/\0.*$/g,"")}}return null};he.exports={interpreterPath:Cn}});var He=I((Gt,De)=>{"use strict";var be=te("child_process"),{isLinux:T,getReport:we}=pe(),{LDD_PATH:F,SELF_PATH:ve,readFile:W,readFileSync:J}=ge(),{interpreterPath:Re}=ye(),b,w,v,Ee="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",S="",Se=()=>S||new Promise(e=>{be.exec(Ee,(n,t)=>{S=n?" ":t,e(S)})}),xe=()=>{if(!S)try{S=be.execSync(Ee,{encoding:"utf8"})}catch{S=" "}return S},R="glibc",Pe=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,N="musl",On=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),Ne=()=>{let e=we();return e.header&&e.header.glibcVersionRuntime?R:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(On)?N:null},ke=e=>{let[n,t]=e.split(/[\r\n]+/);return n&&n.includes(R)?R:t&&t.includes(N)?N:null},Te=e=>{if(e){if(e.includes("/ld-musl-"))return N;if(e.includes("/ld-linux-"))return R}return null},Le=e=>(e=e.toString(),e.includes("musl")?N:e.includes("GNU C Library")?R:null),In=async()=>{if(w!==void 0)return w;w=null;try{let e=await W(F);w=Le(e)}catch{}return w},An=()=>{if(w!==void 0)return w;w=null;try{let e=J(F);w=Le(e)}catch{}return w},Dn=async()=>{if(b!==void 0)return b;b=null;try{let e=await W(ve),n=Re(e);b=Te(n)}catch{}return b},Hn=()=>{if(b!==void 0)return b;b=null;try{let e=J(ve),n=Re(e);b=Te(n)}catch{}return b},Ce=async()=>{let e=null;if(T()&&(e=await Dn(),!e&&(e=await In(),e||(e=Ne()),!e))){let n=await Se();e=ke(n)}return e},Oe=()=>{let e=null;if(T()&&(e=Hn(),!e&&(e=An(),e||(e=Ne()),!e))){let n=xe();e=ke(n)}return e},Fn=async()=>T()&&await Ce()!==R,jn=()=>T()&&Oe()!==R,qn=async()=>{if(v!==void 0)return v;v=null;try{let n=(await W(F)).match(Pe);n&&(v=n[1])}catch{}return v},Bn=()=>{if(v!==void 0)return v;v=null;try{let n=J(F).match(Pe);n&&(v=n[1])}catch{}return v},Ie=()=>{let e=we();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},_e=e=>e.trim().split(/\s+/)[1],Ae=e=>{let[n,t,r]=e.split(/[\r\n]+/);return n&&n.includes(R)?_e(n):t&&r&&t.includes(N)?_e(r):null},Mn=async()=>{let e=null;if(T()&&(e=await qn(),e||(e=Ie()),!e)){let n=await Se();e=Ae(n)}return e},Vn=()=>{let e=null;if(T()&&(e=Bn(),e||(e=Ie()),!e)){let n=xe();e=Ae(n)}return e};De.exports={GLIBC:R,MUSL:N,family:Ce,familySync:Oe,isNonGlibcLinux:Fn,isNonGlibcLinuxSync:jn,version:Mn,versionSync:Vn}});import It from"node:module";import{dirname as At,join as Dt}from"node:path";import*as dn from"node:sea";import{fileURLToPath as Ht,pathToFileURL as Z}from"node:url";import{basename as Un,join as K}from"node:path";var re="0.0.1";import{readdir as vn,access as Rn,constants as En}from"node:fs/promises";import{join as g,basename as oe}from"node:path";import{homedir as A}from"node:os";function se(){return process.env.XDG_CACHE_HOME||g(A(),".cache")}function ae(){if(process.argv.includes("--no-auto-update")||process.argv.includes("--prefer-version"))return!1;let e=process.env.COPILOT_AUTO_UPDATE;return!(e&&e.toLowerCase()==="false")}function ce(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Sn(){if(process.platform==="darwin")return g(A(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||g(A(),".cache");return g(e,"copilot")}return g(se(),"copilot")}function ue(){let e=[];return process.env.COPILOT_PKG_CACHE_HOME&&e.push(g(process.env.COPILOT_PKG_CACHE_HOME,"pkg")),process.env.COPILOT_CACHE_HOME&&e.push(g(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(g(Sn(),"pkg")),e.push(g(se(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(g(process.env.COPILOT_HOME,"pkg")),e.push(g(A(),".copilot","pkg")),[...new Set(e)]}function ie(e){let n=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function xn(e,n){let t=ie(e),r=ie(n);if(!t&&!r)return 0;if(!t)return-1;if(!r)return 1;for(let c=0;c<3;c++)if(t[c]!==r[c])return t[c]-r[c];let o=e.includes("-"),i=n.includes("-");return o!==i?o?-1:1:e.localeCompare(n)}async function le(e,...n){let t=[];for(let r of n){let o;try{o=await vn(r)}catch{continue}for(let i of o){let c=g(r,i);try{await Rn(g(c,e),En.R_OK),t.push(c)}catch{continue}}}return t.sort((r,o)=>{let i=xn(oe(o),oe(r));return i!==0?i:r.localeCompare(o)}),t}import{join as je}from"node:path";var j=wn(He(),1);function q(e={}){return(e.platform??process.platform)!=="linux"?"gnu":e.detectLibcFamily?e.detectLibcFamily()==="musl"?"musl":"gnu":(0,j.familySync)()===j.MUSL?"musl":"gnu"}function G(e=process.platform,n){let t=n??(e==="linux"?q():"gnu");return e==="linux"&&t==="musl"?"linuxmusl":e}function Fe(e=process.platform,n,t=process.arch){return`${G(e,n)}-${t}`}function qe(){let e=Fe();return ue().flatMap(n=>[je(n,"universal"),je(n,e)])}function $n(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.80-0"}async function Be(e,n){let t=K(e,"app.js"),r=$n()===re,o=ce();if(n&&(o||ae()&&!r)){let i=qe(),c=await le("app.js",...i);if(o){let p=c.find(h=>Un(h)===o);p?t=K(p,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version | ||
| var mn=Object.create;var ne=Object.defineProperty;var gn=Object.getOwnPropertyDescriptor;var hn=Object.getOwnPropertyNames;var yn=Object.getPrototypeOf,_n=Object.prototype.hasOwnProperty;var te=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,t)=>(typeof require<"u"?require:n)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var I=(e,n)=>()=>{try{return n||e((n={exports:{}}).exports,n),n.exports}catch(t){throw n=0,t}};var bn=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of hn(n))!_n.call(e,o)&&o!==t&&ne(e,o,{get:()=>n[o],enumerable:!(r=gn(n,o))||r.enumerable});return e};var wn=(e,n,t)=>(t=e!=null?mn(yn(e)):{},bn(n||!e||!e.__esModule?ne(t,"default",{value:e,enumerable:!0}):t,e));var pe=I(($t,de)=>{"use strict";var fe=()=>process.platform==="linux",D=null,Pn=()=>{if(!D)if(fe()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,D=process.report.getReport(),process.report.excludeNetwork=e}else D={};return D};de.exports={isLinux:fe,getReport:Pn}});var ge=I((Wt,me)=>{"use strict";var k=te("fs"),Nn="/usr/bin/ldd",kn="/proc/self/exe",H=2048,Tn=e=>{let n=k.openSync(e,"r"),t=Buffer.alloc(H),r=k.readSync(n,t,0,H,0);return k.close(n,()=>{}),t.subarray(0,r)},Ln=e=>new Promise((n,t)=>{k.open(e,"r",(r,o)=>{if(r)t(r);else{let i=Buffer.alloc(H);k.read(o,i,0,H,0,(c,p)=>{n(i.subarray(0,p)),k.close(o,()=>{})})}})});me.exports={LDD_PATH:Nn,SELF_PATH:kn,readFileSync:Tn,readFile:Ln}});var ye=I((Jt,he)=>{"use strict";var Cn=e=>{if(e.length<64||e.readUInt32BE(0)!==2135247942||e.readUInt8(4)!==2||e.readUInt8(5)!==1)return null;let n=e.readUInt32LE(32),t=e.readUInt16LE(54),r=e.readUInt16LE(56);for(let o=0;o<r;o++){let i=n+o*t;if(e.readUInt32LE(i)===3){let p=e.readUInt32LE(i+8),h=e.readUInt32LE(i+32);return e.subarray(p,p+h).toString().replace(/\0.*$/g,"")}}return null};he.exports={interpreterPath:Cn}});var He=I((Gt,De)=>{"use strict";var be=te("child_process"),{isLinux:T,getReport:we}=pe(),{LDD_PATH:F,SELF_PATH:ve,readFile:W,readFileSync:J}=ge(),{interpreterPath:Re}=ye(),b,w,v,Ee="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",S="",Se=()=>S||new Promise(e=>{be.exec(Ee,(n,t)=>{S=n?" ":t,e(S)})}),xe=()=>{if(!S)try{S=be.execSync(Ee,{encoding:"utf8"})}catch{S=" "}return S},R="glibc",Pe=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,N="musl",On=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),Ne=()=>{let e=we();return e.header&&e.header.glibcVersionRuntime?R:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(On)?N:null},ke=e=>{let[n,t]=e.split(/[\r\n]+/);return n&&n.includes(R)?R:t&&t.includes(N)?N:null},Te=e=>{if(e){if(e.includes("/ld-musl-"))return N;if(e.includes("/ld-linux-"))return R}return null},Le=e=>(e=e.toString(),e.includes("musl")?N:e.includes("GNU C Library")?R:null),In=async()=>{if(w!==void 0)return w;w=null;try{let e=await W(F);w=Le(e)}catch{}return w},An=()=>{if(w!==void 0)return w;w=null;try{let e=J(F);w=Le(e)}catch{}return w},Dn=async()=>{if(b!==void 0)return b;b=null;try{let e=await W(ve),n=Re(e);b=Te(n)}catch{}return b},Hn=()=>{if(b!==void 0)return b;b=null;try{let e=J(ve),n=Re(e);b=Te(n)}catch{}return b},Ce=async()=>{let e=null;if(T()&&(e=await Dn(),!e&&(e=await In(),e||(e=Ne()),!e))){let n=await Se();e=ke(n)}return e},Oe=()=>{let e=null;if(T()&&(e=Hn(),!e&&(e=An(),e||(e=Ne()),!e))){let n=xe();e=ke(n)}return e},Fn=async()=>T()&&await Ce()!==R,jn=()=>T()&&Oe()!==R,qn=async()=>{if(v!==void 0)return v;v=null;try{let n=(await W(F)).match(Pe);n&&(v=n[1])}catch{}return v},Bn=()=>{if(v!==void 0)return v;v=null;try{let n=J(F).match(Pe);n&&(v=n[1])}catch{}return v},Ie=()=>{let e=we();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},_e=e=>e.trim().split(/\s+/)[1],Ae=e=>{let[n,t,r]=e.split(/[\r\n]+/);return n&&n.includes(R)?_e(n):t&&r&&t.includes(N)?_e(r):null},Mn=async()=>{let e=null;if(T()&&(e=await qn(),e||(e=Ie()),!e)){let n=await Se();e=Ae(n)}return e},Vn=()=>{let e=null;if(T()&&(e=Bn(),e||(e=Ie()),!e)){let n=xe();e=Ae(n)}return e};De.exports={GLIBC:R,MUSL:N,family:Ce,familySync:Oe,isNonGlibcLinux:Fn,isNonGlibcLinuxSync:jn,version:Mn,versionSync:Vn}});import It from"node:module";import{dirname as At,join as Dt}from"node:path";import*as dn from"node:sea";import{fileURLToPath as Ht,pathToFileURL as Z}from"node:url";import{basename as Un,join as K}from"node:path";var re="0.0.1";import{readdir as vn,access as Rn,constants as En}from"node:fs/promises";import{join as g,basename as oe}from"node:path";import{homedir as A}from"node:os";function se(){return process.env.XDG_CACHE_HOME||g(A(),".cache")}function ae(){if(process.argv.includes("--no-auto-update")||process.argv.includes("--prefer-version"))return!1;let e=process.env.COPILOT_AUTO_UPDATE;return!(e&&e.toLowerCase()==="false")}function ce(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Sn(){if(process.platform==="darwin")return g(A(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||g(A(),".cache");return g(e,"copilot")}return g(se(),"copilot")}function ue(){let e=[];return process.env.COPILOT_PKG_CACHE_HOME&&e.push(g(process.env.COPILOT_PKG_CACHE_HOME,"pkg")),process.env.COPILOT_CACHE_HOME&&e.push(g(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(g(Sn(),"pkg")),e.push(g(se(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(g(process.env.COPILOT_HOME,"pkg")),e.push(g(A(),".copilot","pkg")),[...new Set(e)]}function ie(e){let n=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function xn(e,n){let t=ie(e),r=ie(n);if(!t&&!r)return 0;if(!t)return-1;if(!r)return 1;for(let c=0;c<3;c++)if(t[c]!==r[c])return t[c]-r[c];let o=e.includes("-"),i=n.includes("-");return o!==i?o?-1:1:e.localeCompare(n)}async function le(e,...n){let t=[];for(let r of n){let o;try{o=await vn(r)}catch{continue}for(let i of o){let c=g(r,i);try{await Rn(g(c,e),En.R_OK),t.push(c)}catch{continue}}}return t.sort((r,o)=>{let i=xn(oe(o),oe(r));return i!==0?i:r.localeCompare(o)}),t}import{join as je}from"node:path";var j=wn(He(),1);function q(e={}){return(e.platform??process.platform)!=="linux"?"gnu":e.detectLibcFamily?e.detectLibcFamily()==="musl"?"musl":"gnu":(0,j.familySync)()===j.MUSL?"musl":"gnu"}function G(e=process.platform,n){let t=n??(e==="linux"?q():"gnu");return e==="linux"&&t==="musl"?"linuxmusl":e}function Fe(e=process.platform,n,t=process.arch){return`${G(e,n)}-${t}`}function qe(){let e=Fe();return ue().flatMap(n=>[je(n,"universal"),je(n,e)])}function $n(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.80-1"}async function Be(e,n){let t=K(e,"app.js"),r=$n()===re,o=ce();if(n&&(o||ae()&&!r)){let i=qe(),c=await le("app.js",...i);if(o){let p=c.find(h=>Un(h)===o);p?t=K(p,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version | ||
| `)}else c.length>0&&(t=K(c[0],"app.js"))}return t}import nn from"node:path";import{fileURLToPath as Rt}from"node:url";import Y from"node:path";import{createRequire as et}from"node:module";import{fileURLToPath as nt}from"node:url";var Q=class{initialQueue=[];initialQueueResolvers=Promise.withResolvers();logWriter=null;cachedOutputPath;writePromise=this.initialQueueResolvers.promise;setLogWriter(n){this.logWriter=n,this.cachedOutputPath=void 0;for(let t of this.initialQueue)this.writeTo(n,t.method,t.message);this.initialQueue=[],this.initialQueueResolvers.resolve()}async flush(){if(!this.logWriter)return;let n=this.logWriter,t=(async()=>{try{await this.writePromise,await n.flush?.()}catch{}})(),r,o=new Promise(i=>{r=setTimeout(i,5e3),r.unref?.()});try{await Promise.race([t,o])}finally{r&&clearTimeout(r)}}async dispose(){await this.flush()}outputPath(){return this.cachedOutputPath??=this.logWriter?.outputPath()}logToLevel(n,t){this.logWriter?this.writeTo(this.logWriter,n,t):this.initialQueue.push({method:n,message:t})}writeTo(n,t,r){if(n.write&&n.flush){n.write(t,r),this.writePromise=n.flush().catch(()=>{});return}this.writePromise=n.writeLog(t,r).catch(()=>{})}info(n){this.logToLevel("info",n)}debug(n){this.logToLevel("debug",n)}warning(n){this.logToLevel("warning",n)}error(n){this.logToLevel("error",n instanceof Error?n.message:n)}log(n){this.error(n)}isDebug(){return!1}shouldLog(n){return!0}notice(n){this.info(n instanceof Error?n.message:n)}startGroup(n,t){this.info(`--- Start of group: ${n} ---`)}endGroup(n){this.info("--- End of group ---")}},B=new Q;import{createRequire as Wn}from"node:module";import{platform as Jn,type as Gn}from"node:os";import{join as Me,resolve as Kn}from"node:path";import{fileURLToPath as Qn}from"node:url";function Yn(){let e=Ue(),n=e==="linux"?q({platform:e}):"gnu";return`${G(e,n)}-${process.arch}`}function zn(){let e=Ue(),{arch:n}=process;switch(e){case"win32":return`win32-${n}-msvc`;case"darwin":return`darwin-${n}`;case"linux":return`linux-${n}-${q({platform:e})}`;default:throw new Error(`Unsupported platform: ${e}/${n}`)}}var y;function Ue(){if(y!==void 0)return y;switch(Gn()){case"Windows_NT":y="win32";break;case"Darwin":y="darwin";break;case"Linux":y="linux";break;case"AIX":y="aix";break;case"FreeBSD":case"DragonFly":y="freebsd";break;case"OpenBSD":y="openbsd";break;case"NetBSD":y="netbsd";break;case"SunOS":y="sunos";break;default:y=Jn();break}return y}function M(e,n){let t=Yn(),r=`${e}.node`,o=`${e}.${zn()}.node`,i=[];for(let p of n){let h=Kn(p),f=Me(h,"prebuilds",t,r),s=Ve(f);if(s.ok)return s.value;i.push({path:f,err:s.err});let m=Me(h,o),u=Ve(m);if(u.ok)return u.value;i.push({path:m,err:u.err})}let c=i.map(p=>` ${p.path}: ${Xn(p.err)}`).join(` | ||
@@ -12,0 +12,0 @@ `);throw new Error(`Native addon "${e}" not found for ${t}. Tried: |
+1
-1
| { | ||
| "name": "@github/copilot-linux-arm64", | ||
| "version": "1.0.80-0", | ||
| "version": "1.0.80-1", | ||
| "description": "GitHub Copilot CLI for linux-arm64", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 6 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 7 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
405561799
0.09%288
-0.35%177473
-0.04%