@github/copilot-linux-arm64
Advanced tools
+1
-1
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
| var je=Object.create;var B=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ge=Object.getPrototypeOf,Ke=Object.prototype.hasOwnProperty;var V=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var b=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var Ye=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of qe(r))!Ke.call(e,o)&&o!==t&&B(e,o,{get:()=>r[o],enumerable:!(n=We(r,o))||n.enumerable});return e};var Je=(e,r,t)=>(t=e!=null?je(Ge(e)):{},Ye(r||!e||!e.__esModule?B(t,"default",{value:e,enumerable:!0}):t,e));var Q=b((Qr,X)=>{"use strict";var z=()=>process.platform==="linux",C=null,rr=()=>{if(!C)if(z()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,C=process.report.getReport(),process.report.excludeNetwork=e}else C={};return C};X.exports={isLinux:z,getReport:rr}});var ee=b((Zr,Z)=>{"use strict";var x=V("fs"),tr="/usr/bin/ldd",nr="/proc/self/exe",P=2048,or=e=>{let r=x.openSync(e,"r"),t=Buffer.alloc(P),n=x.readSync(r,t,0,P,0);return x.close(r,()=>{}),t.subarray(0,n)},ir=e=>new Promise((r,t)=>{x.open(e,"r",(n,o)=>{if(n)t(n);else{let i=Buffer.alloc(P);x.read(o,i,0,P,0,(s,c)=>{r(i.subarray(0,c)),x.close(o,()=>{})})}})});Z.exports={LDD_PATH:tr,SELF_PATH:nr,readFileSync:or,readFile:ir}});var te=b((et,re)=>{"use strict";var sr=e=>{if(e.length<64||e.readUInt32BE(0)!==2135247942||e.readUInt8(4)!==2||e.readUInt8(5)!==1)return null;let r=e.readUInt32LE(32),t=e.readUInt16LE(54),n=e.readUInt16LE(56);for(let o=0;o<n;o++){let i=r+o*t;if(e.readUInt32LE(i)===3){let c=e.readUInt32LE(i+8),h=e.readUInt32LE(i+32);return e.subarray(c,c+h).toString().replace(/\0.*$/g,"")}}return null};re.exports={interpreterPath:sr}});var Ee=b((rt,be)=>{"use strict";var oe=V("child_process"),{isLinux:y,getReport:ie}=Q(),{LDD_PATH:L,SELF_PATH:se,readFile:A,readFileSync:I}=ee(),{interpreterPath:ae}=te(),u,f,p,ce="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",m="",le=()=>m||new Promise(e=>{oe.exec(ce,(r,t)=>{m=r?" ":t,e(m)})}),ue=()=>{if(!m)try{m=oe.execSync(ce,{encoding:"utf8"})}catch{m=" "}return m},d="glibc",fe=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,g="musl",ar=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),pe=()=>{let e=ie();return e.header&&e.header.glibcVersionRuntime?d:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(ar)?g:null},de=e=>{let[r,t]=e.split(/[\r\n]+/);return r&&r.includes(d)?d:t&&t.includes(g)?g:null},me=e=>{if(e){if(e.includes("/ld-musl-"))return g;if(e.includes("/ld-linux-"))return d}return null},ge=e=>(e=e.toString(),e.includes("musl")?g:e.includes("GNU C Library")?d:null),cr=async()=>{if(f!==void 0)return f;f=null;try{let e=await A(L);f=ge(e)}catch{}return f},lr=()=>{if(f!==void 0)return f;f=null;try{let e=I(L);f=ge(e)}catch{}return f},ur=async()=>{if(u!==void 0)return u;u=null;try{let e=await A(se),r=ae(e);u=me(r)}catch{}return u},fr=()=>{if(u!==void 0)return u;u=null;try{let e=I(se),r=ae(e);u=me(r)}catch{}return u},he=async()=>{let e=null;if(y()&&(e=await ur(),!e&&(e=await cr(),e||(e=pe()),!e))){let r=await le();e=de(r)}return e},xe=()=>{let e=null;if(y()&&(e=fr(),!e&&(e=lr(),e||(e=pe()),!e))){let r=ue();e=de(r)}return e},pr=async()=>y()&&await he()!==d,dr=()=>y()&&xe()!==d,mr=async()=>{if(p!==void 0)return p;p=null;try{let r=(await A(L)).match(fe);r&&(p=r[1])}catch{}return p},gr=()=>{if(p!==void 0)return p;p=null;try{let r=I(L).match(fe);r&&(p=r[1])}catch{}return p},ye=()=>{let e=ie();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},ne=e=>e.trim().split(/\s+/)[1],ve=e=>{let[r,t,n]=e.split(/[\r\n]+/);return r&&r.includes(d)?ne(r):t&&n&&t.includes(g)?ne(n):null},hr=async()=>{let e=null;if(y()&&(e=await mr(),e||(e=ye()),!e)){let r=await le();e=ve(r)}return e},xr=()=>{let e=null;if(y()&&(e=gr(),e||(e=ye()),!e)){let r=ue();e=ve(r)}return e};be.exports={GLIBC:d,MUSL:g,family:he,familySync:xe,isNonGlibcLinux:pr,isNonGlibcLinuxSync:dr,version:hr,versionSync:xr}});import Vr from"node:module";import{dirname as Ur,join as jr}from"node:path";import*as Ue from"node:sea";import{fileURLToPath as Wr,pathToFileURL as H}from"node:url";import{basename as yr,join as N}from"node:path";var U="0.0.1";import{readdir as ze,access as Xe,constants as Qe}from"node:fs/promises";import{join as a,basename as j}from"node:path";import{homedir as E}from"node:os";function q(){return process.env.XDG_CACHE_HOME||a(E(),".cache")}function G(){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 K(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Ze(){if(process.platform==="darwin")return a(E(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||a(E(),".cache");return a(e,"copilot")}return a(q(),"copilot")}function Y(){let e=[];return process.env.COPILOT_PKG_CACHE_HOME&&e.push(a(process.env.COPILOT_PKG_CACHE_HOME,"pkg")),process.env.COPILOT_CACHE_HOME&&e.push(a(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(a(Ze(),"pkg")),e.push(a(q(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(a(process.env.COPILOT_HOME,"pkg")),e.push(a(E(),".copilot","pkg")),[...new Set(e)]}function W(e){let r=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(r)return[Number(r[1]),Number(r[2]),Number(r[3])]}function er(e,r){let t=W(e),n=W(r);if(!t&&!n)return 0;if(!t)return-1;if(!n)return 1;for(let s=0;s<3;s++)if(t[s]!==n[s])return t[s]-n[s];let o=e.includes("-"),i=r.includes("-");return o!==i?o?-1:1:e.localeCompare(r)}async function J(e,...r){let t=[];for(let n of r){let o;try{o=await ze(n)}catch{continue}for(let i of o){let s=a(n,i);try{await Xe(a(s,e),Qe.R_OK),t.push(s)}catch{continue}}}return t.sort((n,o)=>{let i=er(j(o),j(n));return i!==0?i:n.localeCompare(o)}),t}import{join as Pe}from"node:path";var O=Je(Ee(),1);function S(e={}){return(e.platform??process.platform)!=="linux"?"gnu":e.detectLibcFamily?e.detectLibcFamily()==="musl"?"musl":"gnu":(0,O.familySync)()===O.MUSL?"musl":"gnu"}function R(e=process.platform,r){let t=r??(e==="linux"?S():"gnu");return e==="linux"&&t==="musl"?"linuxmusl":e}function Ce(e=process.platform,r,t=process.arch){return`${R(e,r)}-${t}`}function Le(){let e=Ce();return Y().flatMap(r=>[Pe(r,"universal"),Pe(r,e)])}function vr(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.79-6"}async function Oe(e,r){let t=N(e,"app.js"),n=vr()===U,o=K();if(r&&(o||G()&&!n)){let i=Le(),s=await J("app.js",...i);if(o){let c=s.find(h=>yr(h)===o);c?t=N(c,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version | ||
| var je=Object.create;var B=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var Ge=Object.getPrototypeOf,Ke=Object.prototype.hasOwnProperty;var V=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var b=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var Ye=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of qe(r))!Ke.call(e,o)&&o!==t&&B(e,o,{get:()=>r[o],enumerable:!(n=We(r,o))||n.enumerable});return e};var Je=(e,r,t)=>(t=e!=null?je(Ge(e)):{},Ye(r||!e||!e.__esModule?B(t,"default",{value:e,enumerable:!0}):t,e));var Q=b((Qr,X)=>{"use strict";var z=()=>process.platform==="linux",C=null,rr=()=>{if(!C)if(z()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,C=process.report.getReport(),process.report.excludeNetwork=e}else C={};return C};X.exports={isLinux:z,getReport:rr}});var ee=b((Zr,Z)=>{"use strict";var x=V("fs"),tr="/usr/bin/ldd",nr="/proc/self/exe",P=2048,or=e=>{let r=x.openSync(e,"r"),t=Buffer.alloc(P),n=x.readSync(r,t,0,P,0);return x.close(r,()=>{}),t.subarray(0,n)},ir=e=>new Promise((r,t)=>{x.open(e,"r",(n,o)=>{if(n)t(n);else{let i=Buffer.alloc(P);x.read(o,i,0,P,0,(s,c)=>{r(i.subarray(0,c)),x.close(o,()=>{})})}})});Z.exports={LDD_PATH:tr,SELF_PATH:nr,readFileSync:or,readFile:ir}});var te=b((et,re)=>{"use strict";var sr=e=>{if(e.length<64||e.readUInt32BE(0)!==2135247942||e.readUInt8(4)!==2||e.readUInt8(5)!==1)return null;let r=e.readUInt32LE(32),t=e.readUInt16LE(54),n=e.readUInt16LE(56);for(let o=0;o<n;o++){let i=r+o*t;if(e.readUInt32LE(i)===3){let c=e.readUInt32LE(i+8),h=e.readUInt32LE(i+32);return e.subarray(c,c+h).toString().replace(/\0.*$/g,"")}}return null};re.exports={interpreterPath:sr}});var Ee=b((rt,be)=>{"use strict";var oe=V("child_process"),{isLinux:y,getReport:ie}=Q(),{LDD_PATH:L,SELF_PATH:se,readFile:A,readFileSync:I}=ee(),{interpreterPath:ae}=te(),u,f,p,ce="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",m="",le=()=>m||new Promise(e=>{oe.exec(ce,(r,t)=>{m=r?" ":t,e(m)})}),ue=()=>{if(!m)try{m=oe.execSync(ce,{encoding:"utf8"})}catch{m=" "}return m},d="glibc",fe=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,g="musl",ar=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),pe=()=>{let e=ie();return e.header&&e.header.glibcVersionRuntime?d:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(ar)?g:null},de=e=>{let[r,t]=e.split(/[\r\n]+/);return r&&r.includes(d)?d:t&&t.includes(g)?g:null},me=e=>{if(e){if(e.includes("/ld-musl-"))return g;if(e.includes("/ld-linux-"))return d}return null},ge=e=>(e=e.toString(),e.includes("musl")?g:e.includes("GNU C Library")?d:null),cr=async()=>{if(f!==void 0)return f;f=null;try{let e=await A(L);f=ge(e)}catch{}return f},lr=()=>{if(f!==void 0)return f;f=null;try{let e=I(L);f=ge(e)}catch{}return f},ur=async()=>{if(u!==void 0)return u;u=null;try{let e=await A(se),r=ae(e);u=me(r)}catch{}return u},fr=()=>{if(u!==void 0)return u;u=null;try{let e=I(se),r=ae(e);u=me(r)}catch{}return u},he=async()=>{let e=null;if(y()&&(e=await ur(),!e&&(e=await cr(),e||(e=pe()),!e))){let r=await le();e=de(r)}return e},xe=()=>{let e=null;if(y()&&(e=fr(),!e&&(e=lr(),e||(e=pe()),!e))){let r=ue();e=de(r)}return e},pr=async()=>y()&&await he()!==d,dr=()=>y()&&xe()!==d,mr=async()=>{if(p!==void 0)return p;p=null;try{let r=(await A(L)).match(fe);r&&(p=r[1])}catch{}return p},gr=()=>{if(p!==void 0)return p;p=null;try{let r=I(L).match(fe);r&&(p=r[1])}catch{}return p},ye=()=>{let e=ie();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},ne=e=>e.trim().split(/\s+/)[1],ve=e=>{let[r,t,n]=e.split(/[\r\n]+/);return r&&r.includes(d)?ne(r):t&&n&&t.includes(g)?ne(n):null},hr=async()=>{let e=null;if(y()&&(e=await mr(),e||(e=ye()),!e)){let r=await le();e=ve(r)}return e},xr=()=>{let e=null;if(y()&&(e=gr(),e||(e=ye()),!e)){let r=ue();e=ve(r)}return e};be.exports={GLIBC:d,MUSL:g,family:he,familySync:xe,isNonGlibcLinux:pr,isNonGlibcLinuxSync:dr,version:hr,versionSync:xr}});import Vr from"node:module";import{dirname as Ur,join as jr}from"node:path";import*as Ue from"node:sea";import{fileURLToPath as Wr,pathToFileURL as H}from"node:url";import{basename as yr,join as N}from"node:path";var U="0.0.1";import{readdir as ze,access as Xe,constants as Qe}from"node:fs/promises";import{join as a,basename as j}from"node:path";import{homedir as E}from"node:os";function q(){return process.env.XDG_CACHE_HOME||a(E(),".cache")}function G(){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 K(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Ze(){if(process.platform==="darwin")return a(E(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||a(E(),".cache");return a(e,"copilot")}return a(q(),"copilot")}function Y(){let e=[];return process.env.COPILOT_PKG_CACHE_HOME&&e.push(a(process.env.COPILOT_PKG_CACHE_HOME,"pkg")),process.env.COPILOT_CACHE_HOME&&e.push(a(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(a(Ze(),"pkg")),e.push(a(q(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(a(process.env.COPILOT_HOME,"pkg")),e.push(a(E(),".copilot","pkg")),[...new Set(e)]}function W(e){let r=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(r)return[Number(r[1]),Number(r[2]),Number(r[3])]}function er(e,r){let t=W(e),n=W(r);if(!t&&!n)return 0;if(!t)return-1;if(!n)return 1;for(let s=0;s<3;s++)if(t[s]!==n[s])return t[s]-n[s];let o=e.includes("-"),i=r.includes("-");return o!==i?o?-1:1:e.localeCompare(r)}async function J(e,...r){let t=[];for(let n of r){let o;try{o=await ze(n)}catch{continue}for(let i of o){let s=a(n,i);try{await Xe(a(s,e),Qe.R_OK),t.push(s)}catch{continue}}}return t.sort((n,o)=>{let i=er(j(o),j(n));return i!==0?i:n.localeCompare(o)}),t}import{join as Pe}from"node:path";var O=Je(Ee(),1);function S(e={}){return(e.platform??process.platform)!=="linux"?"gnu":e.detectLibcFamily?e.detectLibcFamily()==="musl"?"musl":"gnu":(0,O.familySync)()===O.MUSL?"musl":"gnu"}function R(e=process.platform,r){let t=r??(e==="linux"?S():"gnu");return e==="linux"&&t==="musl"?"linuxmusl":e}function Ce(e=process.platform,r,t=process.arch){return`${R(e,r)}-${t}`}function Le(){let e=Ce();return Y().flatMap(r=>[Pe(r,"universal"),Pe(r,e)])}function vr(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.79-7"}async function Oe(e,r){let t=N(e,"app.js"),n=vr()===U,o=K();if(r&&(o||G()&&!n)){let i=Le(),s=await J("app.js",...i);if(o){let c=s.find(h=>yr(h)===o);c?t=N(c,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version | ||
| `)}else s.length>0&&(t=N(s[0],"app.js"))}return t}import Re from"node:path";import{fileURLToPath as Ar}from"node:url";function br(e){if(e.includes("<!DOCTYPE")||e.includes("<html")){let r=Math.min(e.indexOf("<!DOCTYPE")!==-1?e.indexOf("<!DOCTYPE"):1/0,e.indexOf("<html")!==-1?e.indexOf("<html"):1/0),t=e.substring(0,r).trim();return t?`${t} [HTML error page omitted]`:"[HTML error page omitted]"}return e}function Se(e){let r;if(e instanceof Error)r=String(e);else if(typeof e=="object"&&e!==null)try{r=JSON.stringify(e)??"[object]"}catch{return"[object with circular reference]"}else r=String(e);return br(r)}import{createRequire as Er}from"node:module";import{platform as Cr,type as Pr}from"node:os";import{join as Te,resolve as Lr}from"node:path";import{fileURLToPath as Or}from"node:url";function Sr(){let e=we(),r=e==="linux"?S({platform:e}):"gnu";return`${R(e,r)}-${process.arch}`}function Tr(){let e=we(),{arch:r}=process;switch(e){case"win32":return`win32-${r}-msvc`;case"darwin":return`darwin-${r}`;case"linux":return`linux-${r}-${S({platform:e})}`;default:throw new Error(`Unsupported platform: ${e}/${r}`)}}var l;function we(){if(l!==void 0)return l;switch(Pr()){case"Windows_NT":l="win32";break;case"Darwin":l="darwin";break;case"Linux":l="linux";break;case"AIX":l="aix";break;case"FreeBSD":case"DragonFly":l="freebsd";break;case"OpenBSD":l="openbsd";break;case"NetBSD":l="netbsd";break;case"SunOS":l="sunos";break;default:l=Cr();break}return l}function Ae(e,r){let t=Sr(),n=`${e}.node`,o=`${e}.${Tr()}.node`,i=[];for(let c of r){let h=Lr(c),M=Te(h,"prebuilds",t,n),_=_e(M);if(_.ok)return _.value;i.push({path:M,err:_.err});let $=Te(h,o),w=_e($);if(w.ok)return w.value;i.push({path:$,err:w.err})}let s=i.map(c=>` ${c.path}: ${_r(c.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.79-6", | ||
| "version": "1.0.79-7", | ||
| "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
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 7 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.
185002
0.17%380360821
-0.12%