@github/copilot-linux-arm64
Advanced tools
+1
-1
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
| `);throw new Error(`Native addon "${e}" not found for ${t}. Tried: | ||
| ${c}`)}function Gn(e){if(e instanceof Error)return e.message;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return Object.prototype.toString.call(e)}}function Ie(e){try{return{ok:!0,value:Kn(e)}}catch(n){return{ok:!1,err:n}}}function Kn(e){return Un($n(import.meta.url))(e)}function De(e){if(!(e instanceof Error))return e;let n=q.sharedApiSqliteNativeErrorPayload(e.message);if(!n)return e;let t=new Error(n.message);return t.code="ERR_SQLITE_ERROR",t.errcode=n.errcode,t.errstr=n.errstr,t}var V="COPILOT_RUNTIME_OOP",Yn=new Set(["NativeRunnerLogger"]),Ve=new Set(["log","debug","info","notice","warning","error","startGroup","endGroup","write"]),O,Xn=new Set(["flush","dispose"]),Zn=new Set(["writeLog"]),He=5e3,et="dispose";function nt(e){let n,t=new Promise(r=>{n=setTimeout(()=>{A.debug(`[nativeRuntime] pipeline drain gave up after ${He}ms; trailing log lines were dropped`),r(void 0)},He),n.unref?.()});return Promise.race([e,t]).finally(()=>{n&&clearTimeout(n)})}function tt(){return typeof __napiOopRequire<"u"&&__napiOopRequire||Qn(import.meta.url)}function rt(){return process.env[V]==="1"||process.env[V]==="true"}var ot;function st(e,n,t){let r=new Set((e.classes??[]).map(s=>s.name)),o={};for(let s of e.classes??[]){let c=s.methods.find(i=>i.js_name==="constructor"),p=c?c.rust_name:`${s.name}.constructor`,h=Yn.has(s.name),f=class{__provider;__handle;constructor(...i){let m=i[i.length-1],u=i.slice(0,i.length-1);this.__provider=m,this.__handle=m.call(p,u),m.trackExternal(this.__handle)}};Object.defineProperty(f,"name",{value:s.name}),f.__fromHandle=function(i,m){let u=Object.create(f.prototype);return u.__provider=i,u.__handle=m,i.trackExternal(m),u};for(let i of s.methods){if(i.js_name==="constructor")continue;let m=r.has(i.ret),u=i.rust_name,x=(d,l)=>m?n[i.ret].__fromHandle(d.__provider,l):l;if(i.is_static){let d=l=>m?n[i.ret].__fromHandle(t,l):l;f[i.js_name]=i.is_async?async(...l)=>d(await t.callAsync(u,l)):(...l)=>d(t.call(u,l));continue}if(i.is_getter){Object.defineProperty(f.prototype,i.js_name,{configurable:!0,get(){return i.is_async?(async()=>x(this,await this.__provider.callAsync(u,[this.__handle])))():x(this,this.__provider.call(u,[this.__handle]))}});continue}if(h&&!i.is_async&&i.ret==="void"&&Ve.has(i.js_name)){f.prototype[i.js_name]=function(...d){let l=this.__provider,y=this.__handle;O=(O??Promise.resolve()).then(async()=>{try{await l.callAsync(u,[y,...d])}catch{}})};continue}if(h&&i.is_async&&Zn.has(i.js_name)){f.prototype[i.js_name]=function(...d){let l=this.__provider,y=this.__handle,a=(O??Promise.resolve()).then(()=>l.callAsync(u,[y,...d]));return O=a.then(()=>{},()=>{}),a.then(()=>{})};continue}if(h&&i.is_async&&Xn.has(i.js_name)){let d=i.js_name===et;f.prototype[i.js_name]=async function(...l){let y=a=>d?nt(a):a;return await y(O??Promise.resolve()),x(this,await y(this.__provider.callAsync(u,[this.__handle,...l])))};continue}f.prototype[i.js_name]=i.is_async?async function(...d){return x(this,await this.__provider.callAsync(u,[this.__handle,...d]))}:function(...d){return x(this,this.__provider.call(u,[this.__handle,...d]))}}o[s.name]=f,n[s.name]=f}return o}function it(){let{bindClasses:e,connectFromEnvSync:n,createSyncBinding:t,SOCKET_ENV:r}=tt()("napi-oop-runtime");if(!process.env[r])throw new Error(`${V} is set but ${r} is not; the out-of-process runtime must be launched by the Rust provider parent, which exports the connect-back socket.`);let o=n();if(ot=o,delete process.env[V],!o.manifest)throw new Error("out-of-process provider did not advertise a surface manifest in its handshake");let s=JSON.parse(o.manifest),c=new Set((s.classes??[]).map(a=>a.name)),p=s.functions.filter(a=>a.is_async).map(a=>a.js_name),h=s.functions.filter(a=>a.ret==="ExternalObject").map(a=>a.js_name),f={};for(let a of s.functions)f[a.js_name]=a.rust_name;let i=Object.fromEntries((s.host_functions??[]).map(a=>[a.js_name,{intrinsic:a.intrinsic,target:a.target}])),m=t(o,p,h,f,i),u={},x=st(s,u,o),d={};for(let a of s.functions)c.has(a.ret)&&(d[a.js_name]={cls:u[a.ret],isAsync:a.is_async,rustName:a.rust_name});let l=e(m,o,x,d),y=new Map((s.constants??[]).map(a=>[a.js_name,a.value]));return y.size===0?l:new Proxy(l,{get(a,S,gn){return typeof S=="string"&&y.has(S)?y.get(S):Reflect.get(a,S,gn)},has(a,S){return typeof S=="string"&&y.has(S)?!0:Reflect.has(a,S)}})}var Fe="__copilotRuntimeAddon__";function at(){let e=globalThis,n=e[Fe];return n||(n={addon:null},e[Fe]=n),n}function ct(){let e=at();if(e.addon)return e.addon;if(rt()){A.debug("[nativeRuntime] out-of-process mode: skipping the in-process runtime .node; all native calls are remoted to the Rust provider");let r=it();return e.addon=r,r}A.debug("[nativeRuntime] in-process mode: loading the native runtime .node addon into this process");let n=Y.dirname(zn(import.meta.url)),t=U("runtime",[n,Y.resolve(n,".."),Y.resolve(n,"..","..","native","runtime")]);return e.addon=t,t}var M;function ut(e,n,t){e.authInitializeProcessUserAgent?.(t);let r=n.COPILOT_DEBUG_ENTRA_BROKER_URL?.trim()||void 0;delete n.COPILOT_DEBUG_ENTRA_BROKER_URL,e.authInitializeDebugEntraBrokerUrl?.(r)}function L(){return M||(M=ct(),ut(M,process.env,process.version)),M}var Be="\0__copilot_git_structured_error__\0",je="__copilot_session_fs_error:";function lt(e){if(!(e instanceof Error)||!e.message.startsWith(Be))return e;let n;try{n=JSON.parse(e.message.slice(Be.length))}catch{return e}let t=new Error(typeof n.message=="string"?n.message:"");typeof n.name=="string"&&(t.name=n.name);for(let[r,o]of Object.entries(n))r!=="message"&&r!=="name"&&(t[r]=o);return t}function $e(e){if(!(e instanceof Error)||!e.message.startsWith(je))return e;let n;try{n=JSON.parse(e.message.slice(je.length))}catch{return e}let t=typeof n.code=="string"?n.code:"UNKNOWN",r=typeof n.path=="string"?n.path:"sqliteQuery",o=typeof n.message=="string"&&n.message?`: ${n.message}`:"",s=new Error(`${t}: ${r}${o}`);return s.code=t,s.path=r,s}function P(e){let n=De(e);return n!==e?n:$e(e)}function Ue(e){return e??void 0}function ft(e){class n{inner;constructor(...r){this.inner=new e(...r)}async execute(r,o,s){try{return Ue(await this.inner.execute(r,o,s))}catch(c){throw P(c)}}async batch(r){try{return(await this.inner.batch(r)).map(Ue)}catch(o){throw P(o)}}async transaction(r){try{return await this.inner.transaction(r)}catch(o){throw P(o)}}async getTableNames(){try{return await this.inner.getTableNames()}catch(r){throw P(r)}}async getTableNamesIfExists(){try{return await this.inner.getTableNamesIfExists()}catch(r){throw P(r)}}async getTodoStatus(){try{return await this.inner.getTodoStatus()}catch(r){throw P(r)}}async getCurrentIntent(){try{return await this.inner.getCurrentIntent()}catch(r){throw P(r)}}async closeAll(){try{await this.inner.closeAll()}catch(r){throw P(r)}}}return Object.defineProperty(n,"name",{value:"SessionDatabaseHandle"}),n}function qe(e){return JSON.stringify(e,(n,t)=>typeof t=="number"&&!Number.isFinite(t)?{__copilot_forge_number:String(t)}:t)??"null"}var dt=new Set(["runnerCreateNoopLogger","runnerCreateNoopExec"]);function pt(e){if(typeof e!="object"||e===null||!("__handle"in e)||!("__provider"in e))return e;let n=e,t=Object.create(n);t.__provider=n.__provider,t.__handle=n.__handle;for(let r of Ve)typeof n[r]=="function"&&(t[r]=()=>{});return t}var Me=new WeakMap;function mt(e,n,t){let r=Me.get(e);return r||(r=new Map,Me.set(e,r)),r.has(n)||r.set(n,t()),r.get(n)}function gt(e,n){let t=Reflect.get(e,n);if(typeof t=="function"&&n==="SessionDatabaseHandle")return ft(t);if(typeof t=="function"&&typeof n=="string"&&dt.has(n)){let r=t;return()=>mt(e,n,()=>{let o=r.call(e);return n==="runnerCreateNoopLogger"?pt(o):o})}if(typeof t=="function"&&n==="sessionStoreTrackingPostToolUsePlan"){let r=t;return(o,s,c)=>r.call(e,qe(o),qe(s),c)}if(typeof t=="function"&&typeof n=="string"&&/^git[A-Z]/.test(n)){let r=t;return(...o)=>{let s=r.apply(e,o);return s instanceof Promise?s.catch(c=>{throw lt(c)}):s}}if(typeof t=="function"&&typeof n=="string"&&/^sessionFs[A-Z]/.test(n)){let r=t;return(...o)=>{let s=r.apply(e,o);return s instanceof Promise?s.catch(c=>{throw $e(c)}):s}}return t}var q=new Proxy({},{get:(e,n)=>gt(L(),n),has:(e,n)=>Reflect.has(L(),n),set:(e,n,t)=>Reflect.set(L(),n,t),ownKeys:()=>Reflect.ownKeys(L()),getOwnPropertyDescriptor:(e,n)=>Reflect.getOwnPropertyDescriptor(L(),n),defineProperty:(e,n,t)=>Reflect.defineProperty(L(),n,t)});function $(e){return q.errorFormattingFormatUnknown(e)}import{basename as vt,join as X}from"node:path";var We="0.0.1";import{readdir as ht,access as _t,constants as yt}from"node:fs/promises";import{join as g,basename as Je}from"node:path";import{homedir as W}from"node:os";function Ke(){return process.env.XDG_CACHE_HOME||g(W(),".cache")}function Qe(){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 ze(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function bt(){if(process.platform==="darwin")return g(W(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||g(W(),".cache");return g(e,"copilot")}return g(Ke(),"copilot")}function Ye(){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(bt(),"pkg")),e.push(g(Ke(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(g(process.env.COPILOT_HOME,"pkg")),e.push(g(W(),".copilot","pkg")),[...new Set(e)]}function Ge(e){let n=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function wt(e,n){let t=Ge(e),r=Ge(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("-"),s=n.includes("-");return o!==s?o?-1:1:e.localeCompare(n)}async function Xe(e,...n){let t=[];for(let r of n){let o;try{o=await ht(r)}catch{continue}for(let s of o){let c=g(r,s);try{await _t(g(c,e),yt.R_OK),t.push(c)}catch{continue}}}return t.sort((r,o)=>{let s=wt(Je(o),Je(r));return s!==0?s:r.localeCompare(o)}),t}import{join as Ze}from"node:path";function en(){let e=Ce();return Ye().flatMap(n=>[Ze(n,"universal"),Ze(n,e)])}function Rt(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.81-3"}async function nn(e,n){let t=X(e,"app.js"),r=Rt()===We,o=ze();if(n&&(o||Qe()&&!r)){let s=en(),c=await Xe("app.js",...s);if(o){let p=c.find(h=>vt(h)===o);p?t=X(p,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version | ||
| ${c}`)}function Gn(e){if(e instanceof Error)return e.message;if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return Object.prototype.toString.call(e)}}function Ie(e){try{return{ok:!0,value:Kn(e)}}catch(n){return{ok:!1,err:n}}}function Kn(e){return Un($n(import.meta.url))(e)}function De(e){if(!(e instanceof Error))return e;let n=q.sharedApiSqliteNativeErrorPayload(e.message);if(!n)return e;let t=new Error(n.message);return t.code="ERR_SQLITE_ERROR",t.errcode=n.errcode,t.errstr=n.errstr,t}var V="COPILOT_RUNTIME_OOP",Yn=new Set(["NativeRunnerLogger"]),Ve=new Set(["log","debug","info","notice","warning","error","startGroup","endGroup","write"]),O,Xn=new Set(["flush","dispose"]),Zn=new Set(["writeLog"]),He=5e3,et="dispose";function nt(e){let n,t=new Promise(r=>{n=setTimeout(()=>{A.debug(`[nativeRuntime] pipeline drain gave up after ${He}ms; trailing log lines were dropped`),r(void 0)},He),n.unref?.()});return Promise.race([e,t]).finally(()=>{n&&clearTimeout(n)})}function tt(){return typeof __napiOopRequire<"u"&&__napiOopRequire||Qn(import.meta.url)}function rt(){return process.env[V]==="1"||process.env[V]==="true"}var ot;function st(e,n,t){let r=new Set((e.classes??[]).map(s=>s.name)),o={};for(let s of e.classes??[]){let c=s.methods.find(i=>i.js_name==="constructor"),p=c?c.rust_name:`${s.name}.constructor`,h=Yn.has(s.name),f=class{__provider;__handle;constructor(...i){let m=i[i.length-1],u=i.slice(0,i.length-1);this.__provider=m,this.__handle=m.call(p,u),m.trackExternal(this.__handle)}};Object.defineProperty(f,"name",{value:s.name}),f.__fromHandle=function(i,m){let u=Object.create(f.prototype);return u.__provider=i,u.__handle=m,i.trackExternal(m),u};for(let i of s.methods){if(i.js_name==="constructor")continue;let m=r.has(i.ret),u=i.rust_name,x=(d,l)=>m?n[i.ret].__fromHandle(d.__provider,l):l;if(i.is_static){let d=l=>m?n[i.ret].__fromHandle(t,l):l;f[i.js_name]=i.is_async?async(...l)=>d(await t.callAsync(u,l)):(...l)=>d(t.call(u,l));continue}if(i.is_getter){Object.defineProperty(f.prototype,i.js_name,{configurable:!0,get(){return i.is_async?(async()=>x(this,await this.__provider.callAsync(u,[this.__handle])))():x(this,this.__provider.call(u,[this.__handle]))}});continue}if(h&&!i.is_async&&i.ret==="void"&&Ve.has(i.js_name)){f.prototype[i.js_name]=function(...d){let l=this.__provider,y=this.__handle;O=(O??Promise.resolve()).then(async()=>{try{await l.callAsync(u,[y,...d])}catch{}})};continue}if(h&&i.is_async&&Zn.has(i.js_name)){f.prototype[i.js_name]=function(...d){let l=this.__provider,y=this.__handle,a=(O??Promise.resolve()).then(()=>l.callAsync(u,[y,...d]));return O=a.then(()=>{},()=>{}),a.then(()=>{})};continue}if(h&&i.is_async&&Xn.has(i.js_name)){let d=i.js_name===et;f.prototype[i.js_name]=async function(...l){let y=a=>d?nt(a):a;return await y(O??Promise.resolve()),x(this,await y(this.__provider.callAsync(u,[this.__handle,...l])))};continue}f.prototype[i.js_name]=i.is_async?async function(...d){return x(this,await this.__provider.callAsync(u,[this.__handle,...d]))}:function(...d){return x(this,this.__provider.call(u,[this.__handle,...d]))}}o[s.name]=f,n[s.name]=f}return o}function it(){let{bindClasses:e,connectFromEnvSync:n,createSyncBinding:t,SOCKET_ENV:r}=tt()("napi-oop-runtime");if(!process.env[r])throw new Error(`${V} is set but ${r} is not; the out-of-process runtime must be launched by the Rust provider parent, which exports the connect-back socket.`);let o=n();if(ot=o,delete process.env[V],!o.manifest)throw new Error("out-of-process provider did not advertise a surface manifest in its handshake");let s=JSON.parse(o.manifest),c=new Set((s.classes??[]).map(a=>a.name)),p=s.functions.filter(a=>a.is_async).map(a=>a.js_name),h=s.functions.filter(a=>a.ret==="ExternalObject").map(a=>a.js_name),f={};for(let a of s.functions)f[a.js_name]=a.rust_name;let i=Object.fromEntries((s.host_functions??[]).map(a=>[a.js_name,{intrinsic:a.intrinsic,target:a.target}])),m=t(o,p,h,f,i),u={},x=st(s,u,o),d={};for(let a of s.functions)c.has(a.ret)&&(d[a.js_name]={cls:u[a.ret],isAsync:a.is_async,rustName:a.rust_name});let l=e(m,o,x,d),y=new Map((s.constants??[]).map(a=>[a.js_name,a.value]));return y.size===0?l:new Proxy(l,{get(a,S,gn){return typeof S=="string"&&y.has(S)?y.get(S):Reflect.get(a,S,gn)},has(a,S){return typeof S=="string"&&y.has(S)?!0:Reflect.has(a,S)}})}var Fe="__copilotRuntimeAddon__";function at(){let e=globalThis,n=e[Fe];return n||(n={addon:null},e[Fe]=n),n}function ct(){let e=at();if(e.addon)return e.addon;if(rt()){A.debug("[nativeRuntime] out-of-process mode: skipping the in-process runtime .node; all native calls are remoted to the Rust provider");let r=it();return e.addon=r,r}A.debug("[nativeRuntime] in-process mode: loading the native runtime .node addon into this process");let n=Y.dirname(zn(import.meta.url)),t=U("runtime",[n,Y.resolve(n,".."),Y.resolve(n,"..","..","native","runtime")]);return e.addon=t,t}var M;function ut(e,n,t){e.authInitializeProcessUserAgent?.(t);let r=n.COPILOT_DEBUG_ENTRA_BROKER_URL?.trim()||void 0;delete n.COPILOT_DEBUG_ENTRA_BROKER_URL,e.authInitializeDebugEntraBrokerUrl?.(r)}function L(){return M||(M=ct(),ut(M,process.env,process.version)),M}var Be="\0__copilot_git_structured_error__\0",je="__copilot_session_fs_error:";function lt(e){if(!(e instanceof Error)||!e.message.startsWith(Be))return e;let n;try{n=JSON.parse(e.message.slice(Be.length))}catch{return e}let t=new Error(typeof n.message=="string"?n.message:"");typeof n.name=="string"&&(t.name=n.name);for(let[r,o]of Object.entries(n))r!=="message"&&r!=="name"&&(t[r]=o);return t}function $e(e){if(!(e instanceof Error)||!e.message.startsWith(je))return e;let n;try{n=JSON.parse(e.message.slice(je.length))}catch{return e}let t=typeof n.code=="string"?n.code:"UNKNOWN",r=typeof n.path=="string"?n.path:"sqliteQuery",o=typeof n.message=="string"&&n.message?`: ${n.message}`:"",s=new Error(`${t}: ${r}${o}`);return s.code=t,s.path=r,s}function P(e){let n=De(e);return n!==e?n:$e(e)}function Ue(e){return e??void 0}function ft(e){class n{inner;constructor(...r){this.inner=new e(...r)}async execute(r,o,s){try{return Ue(await this.inner.execute(r,o,s))}catch(c){throw P(c)}}async batch(r){try{return(await this.inner.batch(r)).map(Ue)}catch(o){throw P(o)}}async transaction(r){try{return await this.inner.transaction(r)}catch(o){throw P(o)}}async getTableNames(){try{return await this.inner.getTableNames()}catch(r){throw P(r)}}async getTableNamesIfExists(){try{return await this.inner.getTableNamesIfExists()}catch(r){throw P(r)}}async getTodoStatus(){try{return await this.inner.getTodoStatus()}catch(r){throw P(r)}}async getCurrentIntent(){try{return await this.inner.getCurrentIntent()}catch(r){throw P(r)}}async closeAll(){try{await this.inner.closeAll()}catch(r){throw P(r)}}}return Object.defineProperty(n,"name",{value:"SessionDatabaseHandle"}),n}function qe(e){return JSON.stringify(e,(n,t)=>typeof t=="number"&&!Number.isFinite(t)?{__copilot_forge_number:String(t)}:t)??"null"}var dt=new Set(["runnerCreateNoopLogger","runnerCreateNoopExec"]);function pt(e){if(typeof e!="object"||e===null||!("__handle"in e)||!("__provider"in e))return e;let n=e,t=Object.create(n);t.__provider=n.__provider,t.__handle=n.__handle;for(let r of Ve)typeof n[r]=="function"&&(t[r]=()=>{});return t}var Me=new WeakMap;function mt(e,n,t){let r=Me.get(e);return r||(r=new Map,Me.set(e,r)),r.has(n)||r.set(n,t()),r.get(n)}function gt(e,n){let t=Reflect.get(e,n);if(typeof t=="function"&&n==="SessionDatabaseHandle")return ft(t);if(typeof t=="function"&&typeof n=="string"&&dt.has(n)){let r=t;return()=>mt(e,n,()=>{let o=r.call(e);return n==="runnerCreateNoopLogger"?pt(o):o})}if(typeof t=="function"&&n==="sessionStoreTrackingPostToolUsePlan"){let r=t;return(o,s,c)=>r.call(e,qe(o),qe(s),c)}if(typeof t=="function"&&typeof n=="string"&&/^git[A-Z]/.test(n)){let r=t;return(...o)=>{let s=r.apply(e,o);return s instanceof Promise?s.catch(c=>{throw lt(c)}):s}}if(typeof t=="function"&&typeof n=="string"&&/^sessionFs[A-Z]/.test(n)){let r=t;return(...o)=>{let s=r.apply(e,o);return s instanceof Promise?s.catch(c=>{throw $e(c)}):s}}return t}var q=new Proxy({},{get:(e,n)=>gt(L(),n),has:(e,n)=>Reflect.has(L(),n),set:(e,n,t)=>Reflect.set(L(),n,t),ownKeys:()=>Reflect.ownKeys(L()),getOwnPropertyDescriptor:(e,n)=>Reflect.getOwnPropertyDescriptor(L(),n),defineProperty:(e,n,t)=>Reflect.defineProperty(L(),n,t)});function $(e){return q.errorFormattingFormatUnknown(e)}import{basename as vt,join as X}from"node:path";var We="0.0.1";import{readdir as ht,access as _t,constants as yt}from"node:fs/promises";import{join as g,basename as Je}from"node:path";import{homedir as W}from"node:os";function Ke(){return process.env.XDG_CACHE_HOME||g(W(),".cache")}function Qe(){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 ze(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function bt(){if(process.platform==="darwin")return g(W(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||g(W(),".cache");return g(e,"copilot")}return g(Ke(),"copilot")}function Ye(){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(bt(),"pkg")),e.push(g(Ke(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(g(process.env.COPILOT_HOME,"pkg")),e.push(g(W(),".copilot","pkg")),[...new Set(e)]}function Ge(e){let n=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(n)return[Number(n[1]),Number(n[2]),Number(n[3])]}function wt(e,n){let t=Ge(e),r=Ge(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("-"),s=n.includes("-");return o!==s?o?-1:1:e.localeCompare(n)}async function Xe(e,...n){let t=[];for(let r of n){let o;try{o=await ht(r)}catch{continue}for(let s of o){let c=g(r,s);try{await _t(g(c,e),yt.R_OK),t.push(c)}catch{continue}}}return t.sort((r,o)=>{let s=wt(Je(o),Je(r));return s!==0?s:r.localeCompare(o)}),t}import{join as Ze}from"node:path";function en(){let e=Ce();return Ye().flatMap(n=>[Ze(n,"universal"),Ze(n,e)])}function Rt(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.81-4"}async function nn(e,n){let t=X(e,"app.js"),r=Rt()===We,o=ze();if(n&&(o||Qe()&&!r)){let s=en(),c=await Xe("app.js",...s);if(o){let p=c.find(h=>vt(h)===o);p?t=X(p,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version | ||
| `)}else c.length>0&&(t=X(c[0],"app.js"))}return t}import rn from"node:path";import{fileURLToPath as St}from"node:url";var C,tn=rn.dirname(St(import.meta.url));function on(){if(C){if(C.kind==="ok")return C.addon;throw C.error}try{let e=U("cli-native",[tn,rn.resolve(tn,"..","native","cli")]);return C={kind:"ok",addon:e},e}catch(e){let n=e instanceof Error?e:new Error(`Failed to load cli-native addon: ${$(e)}`);throw C={kind:"error",error:n},n}}function J(){if(process.platform==="win32")return on()}var sn=Symbol.for("github.copilot.cli.cleanExit");function Et(){let e=Reflect.get(process,"exit");if(typeof e!="function")return;let n=Reflect.get(e,sn);return typeof n=="function"?n:void 0}function Pt(){let e;if(process.platform==="win32")try{e=J()}catch{e=void 0}let n=!1;return()=>{if(!n){n=!0;try{process.report.reportOnFatalError=!1}catch{}if(e){try{e.uninstallExceptionFilter()}catch{}try{e.disableCrashReporting()}catch{}}}}}function an(){let e=Et();if(e)return e;let n=process.exit.bind(process),t=Pt(),r=(...c)=>(t(),n(...c));process.once("exit",t);let o=!0,s=()=>{o&&(o=!1,process.exit===r&&(process.exit=n),process.removeListener("exit",t))};return Reflect.defineProperty(r,sn,{value:s}),process.exit=r,s}import{existsSync as xt}from"node:fs";import{basename as kt,resolve as Nt}from"node:path";var cn="extension_bootstrap.mjs";function un(e,n,t=xt){let r=e.find(c=>kt(c)===cn);if(!r)return;process.stderr.write(`[extension-fork] resolveBootstrapPath: __dir=${n}, argv-bootstrap=${r} | ||
@@ -14,0 +14,0 @@ `);let o=Nt(n,"preloads",cn),s=t(o);if(process.stderr.write(`[extension-fork] resolveBootstrapPath: localBootstrap=${o}, localExists=${s} |
+1
-1
| { | ||
| "name": "@github/copilot-linux-arm64", | ||
| "version": "1.0.81-3", | ||
| "version": "1.0.81-4", | ||
| "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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 9 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 9 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
148517
1.53%308437311
-1.5%