New:Socket for Asana Is Now Available.Learn more
Get Started

@github/copilot-linux-arm64

Package Overview
Dependencies
Maintainers
24
Versions
359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/copilot-linux-arm64 - npm Package Compare versions

Comparing version
1.0.82-2
to
1.0.82
+1
-1
index.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

`);throw new Error(`Native addon "${e}" not found for ${n}. Tried:
${s}`)}function Bt(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 xe(e){try{return{ok:!0,value:Ut(e)}}catch(t){return{ok:!1,err:t}}}function Ut(e){return Ot(Dt(import.meta.url))(e)}function Ne(e){if(!(e instanceof Error))return e;let t=C.sharedApiSqliteNativeErrorPayload(e.message);if(!t)return e;let n=new Error(t.message);return n.code="ERR_SQLITE_ERROR",n.errcode=t.errcode,n.errstr=t.errstr,n}var Te="__copilotRuntimeAddon__";function Ie(){let e=globalThis,t=e[Te];return t||(t={addon:null,processStateInitialized:!1},e[Te]=t),t}function qt(){let e=Ie();if(e.addon)return e.addon;Q.debug("[nativeRuntime] in-process mode: loading the native runtime .node addon");let t=_.dirname(Ae(import.meta.url)),n=L("runtime",[t,_.resolve(t,".."),_.resolve(t,"..","..","native","runtime")]);return e.addon=n,n}var O;function Vt(e){let t=_.dirname(Ae(e));return e.endsWith(".ts")?_.resolve(t,"..","..","..","dist-cli"):t}function Mt(e,t,n,r=import.meta.url){e.toolsInitializeBundledBinaryRoot?.(Vt(r)),e.authInitializeProcessUserAgent?.(n);let o=t.COPILOT_DEBUG_ENTRA_BROKER_URL?.trim()||void 0;delete t.COPILOT_DEBUG_ENTRA_BROKER_URL,e.authInitializeDebugEntraBrokerUrl?.(o)}function R(){O||(O=qt());let e=Ie();return e.processStateInitialized||(e.processStateInitialized=!0,Mt(O,process.env,process.version)),O}var Le="\0__copilot_git_structured_error__\0",Ce="__copilot_session_fs_error:";function $t(e){if(!(e instanceof Error)||!e.message.startsWith(Le))return e;let t;try{t=JSON.parse(e.message.slice(Le.length))}catch{return e}let n=new Error(typeof t.message=="string"?t.message:"");typeof t.name=="string"&&(n.name=t.name);for(let[r,o]of Object.entries(t))r!=="message"&&r!=="name"&&(n[r]=o);return n}function De(e){if(!(e instanceof Error)||!e.message.startsWith(Ce))return e;let t;try{t=JSON.parse(e.message.slice(Ce.length))}catch{return e}let n=typeof t.code=="string"?t.code:"UNKNOWN",r=typeof t.path=="string"?t.path:"sqliteQuery",o=typeof t.message=="string"&&t.message?`: ${t.message}`:"",i=new Error(`${n}: ${r}${o}`);return i.code=n,i.path=r,i}function h(e){let t=Ne(e);return t!==e?t:De(e)}function Oe(e){return e??void 0}function jt(e){class t{inner;constructor(...r){this.inner=new e(...r)}async execute(r,o,i){try{return Oe(await this.inner.execute(r,o,i))}catch(s){throw h(s)}}async batch(r){try{return(await this.inner.batch(r)).map(Oe)}catch(o){throw h(o)}}async transaction(r){try{return await this.inner.transaction(r)}catch(o){throw h(o)}}async getTableNames(){try{return await this.inner.getTableNames()}catch(r){throw h(r)}}async getTableNamesIfExists(){try{return await this.inner.getTableNamesIfExists()}catch(r){throw h(r)}}async getTodoStatus(){try{return await this.inner.getTodoStatus()}catch(r){throw h(r)}}async getCurrentIntent(){try{return await this.inner.getCurrentIntent()}catch(r){throw h(r)}}async closeAll(){try{await this.inner.closeAll()}catch(r){throw h(r)}}}return Object.defineProperty(t,"name",{value:"SessionDatabaseHandle"}),t}var Wt=new Set(["runnerCreateNoopLogger","runnerCreateNoopExec"]),ke=new WeakMap;function Jt(e,t,n){let r=ke.get(e);return r||(r=new Map,ke.set(e,r)),r.has(t)||r.set(t,n()),r.get(t)}function Gt(e,t){let n=Reflect.get(e,t);if(typeof n=="function"&&t==="SessionDatabaseHandle")return jt(n);if(typeof n=="function"&&typeof t=="string"&&Wt.has(t)){let r=n;return()=>Jt(e,t,()=>r.call(e))}if(typeof n=="function"&&typeof t=="string"&&/^git[A-Z]/.test(t)){let r=n;return(...o)=>{let i=r.apply(e,o);return i instanceof Promise?i.catch(s=>{throw $t(s)}):i}}if(typeof n=="function"&&typeof t=="string"&&/^sessionFs[A-Z]/.test(t)){let r=n;return(...o)=>{let i=r.apply(e,o);return i instanceof Promise?i.catch(s=>{throw De(s)}):i}}return n}var C=new Proxy({},{get:(e,t)=>Gt(R(),t),has:(e,t)=>Reflect.has(R(),t),set:(e,t,n)=>Reflect.set(R(),t,n),ownKeys:()=>Reflect.ownKeys(R()),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(R(),t),defineProperty:(e,t,n)=>Reflect.defineProperty(R(),t,n)});function k(e){return C.errorFormattingFormatUnknown(e)}import{basename as en,join as V}from"node:path";var He="0.0.1";function Fe(e){return e===He||e.startsWith(`${He}-`)}import{readdir as zt,access as Kt,constants as Qt}from"node:fs/promises";import{join as u,basename as Be}from"node:path";import{homedir as A}from"node:os";function Ve(){return process.env.XDG_CACHE_HOME||u(A(),".cache")}function Me(){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 $e(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Yt(){if(process.platform==="darwin")return u(A(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||u(A(),".cache");return u(e,"copilot")}return u(Ve(),"copilot")}function je(){let e=[];return process.env.COPILOT_PKG_CACHE_HOME&&e.push(u(process.env.COPILOT_PKG_CACHE_HOME,"pkg")),process.env.COPILOT_CACHE_HOME&&e.push(u(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(u(Yt(),"pkg")),e.push(u(Ve(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(u(process.env.COPILOT_HOME,"pkg")),e.push(u(A(),".copilot","pkg")),[...new Set(e)]}function Ue(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(t)return[Number(t[1]),Number(t[2]),Number(t[3])]}function qe(e){let t=e.match(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([^+]+))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/);if(!t)return;let n=t[4];if(n===void 0)return[];let r=n.split(".");for(let o of r)if(!/^[0-9A-Za-z-]+$/.test(o)||/^\d+$/.test(o)&&o.length>1&&o.startsWith("0"))return;return r}function Zt(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){let r=e[n],o=t[n];if(r===o)continue;let i=/^\d+$/.test(r),s=/^\d+$/.test(o);return i!==s?i?-1:1:i&&r.length!==o.length?r.length-o.length:r<o?-1:1}return e.length-t.length}function Xt(e,t){let n=Ue(e),r=Ue(t);if(!n&&!r)return 0;if(!n)return-1;if(!r)return 1;for(let c=0;c<3;c++)if(n[c]!==r[c])return n[c]-r[c];let o=qe(e),i=qe(t);if(o!==void 0&&i!==void 0)return o.length===0||i.length===0?o.length!==i.length?o.length===0?1:-1:0:Zt(o,i);let s=e.includes("-"),a=t.includes("-");return s!==a?s?-1:1:e.localeCompare(t)}async function We(e,...t){let n=[];for(let r of t){let o;try{o=await zt(r)}catch{continue}for(let i of o){let s=u(r,i);try{await Kt(u(s,e),Qt.R_OK),n.push(s)}catch{continue}}}return n.sort((r,o)=>{let i=Xt(Be(o),Be(r));return i!==0?i:r.localeCompare(o)}),n}import{join as Je}from"node:path";function Ge(){let e=Ee();return je().flatMap(t=>[Je(t,"universal"),Je(t,e)])}function tn(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.82-2"}async function ze(e,t){let n=V(e,"app.js"),r=!process.env.COPILOT_CLI_VERSION&&Fe(tn()),o=$e();if(o||t&&Me()&&!r){let i=Ge(),s=await We("app.js",...i);if(o){let a=s.find(c=>en(c)===o);a?n=V(a,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version
${s}`)}function Bt(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 xe(e){try{return{ok:!0,value:Ut(e)}}catch(t){return{ok:!1,err:t}}}function Ut(e){return Ot(Dt(import.meta.url))(e)}function Ne(e){if(!(e instanceof Error))return e;let t=C.sharedApiSqliteNativeErrorPayload(e.message);if(!t)return e;let n=new Error(t.message);return n.code="ERR_SQLITE_ERROR",n.errcode=t.errcode,n.errstr=t.errstr,n}var Te="__copilotRuntimeAddon__";function Ie(){let e=globalThis,t=e[Te];return t||(t={addon:null,processStateInitialized:!1},e[Te]=t),t}function qt(){let e=Ie();if(e.addon)return e.addon;Q.debug("[nativeRuntime] in-process mode: loading the native runtime .node addon");let t=_.dirname(Ae(import.meta.url)),n=L("runtime",[t,_.resolve(t,".."),_.resolve(t,"..","..","native","runtime")]);return e.addon=n,n}var O;function Vt(e){let t=_.dirname(Ae(e));return e.endsWith(".ts")?_.resolve(t,"..","..","..","dist-cli"):t}function Mt(e,t,n,r=import.meta.url){e.toolsInitializeBundledBinaryRoot?.(Vt(r)),e.authInitializeProcessUserAgent?.(n);let o=t.COPILOT_DEBUG_ENTRA_BROKER_URL?.trim()||void 0;delete t.COPILOT_DEBUG_ENTRA_BROKER_URL,e.authInitializeDebugEntraBrokerUrl?.(o)}function R(){O||(O=qt());let e=Ie();return e.processStateInitialized||(e.processStateInitialized=!0,Mt(O,process.env,process.version)),O}var Le="\0__copilot_git_structured_error__\0",Ce="__copilot_session_fs_error:";function $t(e){if(!(e instanceof Error)||!e.message.startsWith(Le))return e;let t;try{t=JSON.parse(e.message.slice(Le.length))}catch{return e}let n=new Error(typeof t.message=="string"?t.message:"");typeof t.name=="string"&&(n.name=t.name);for(let[r,o]of Object.entries(t))r!=="message"&&r!=="name"&&(n[r]=o);return n}function De(e){if(!(e instanceof Error)||!e.message.startsWith(Ce))return e;let t;try{t=JSON.parse(e.message.slice(Ce.length))}catch{return e}let n=typeof t.code=="string"?t.code:"UNKNOWN",r=typeof t.path=="string"?t.path:"sqliteQuery",o=typeof t.message=="string"&&t.message?`: ${t.message}`:"",i=new Error(`${n}: ${r}${o}`);return i.code=n,i.path=r,i}function h(e){let t=Ne(e);return t!==e?t:De(e)}function Oe(e){return e??void 0}function jt(e){class t{inner;constructor(...r){this.inner=new e(...r)}async execute(r,o,i){try{return Oe(await this.inner.execute(r,o,i))}catch(s){throw h(s)}}async batch(r){try{return(await this.inner.batch(r)).map(Oe)}catch(o){throw h(o)}}async transaction(r){try{return await this.inner.transaction(r)}catch(o){throw h(o)}}async getTableNames(){try{return await this.inner.getTableNames()}catch(r){throw h(r)}}async getTableNamesIfExists(){try{return await this.inner.getTableNamesIfExists()}catch(r){throw h(r)}}async getTodoStatus(){try{return await this.inner.getTodoStatus()}catch(r){throw h(r)}}async getCurrentIntent(){try{return await this.inner.getCurrentIntent()}catch(r){throw h(r)}}async closeAll(){try{await this.inner.closeAll()}catch(r){throw h(r)}}}return Object.defineProperty(t,"name",{value:"SessionDatabaseHandle"}),t}var Wt=new Set(["runnerCreateNoopLogger","runnerCreateNoopExec"]),ke=new WeakMap;function Jt(e,t,n){let r=ke.get(e);return r||(r=new Map,ke.set(e,r)),r.has(t)||r.set(t,n()),r.get(t)}function Gt(e,t){let n=Reflect.get(e,t);if(typeof n=="function"&&t==="SessionDatabaseHandle")return jt(n);if(typeof n=="function"&&typeof t=="string"&&Wt.has(t)){let r=n;return()=>Jt(e,t,()=>r.call(e))}if(typeof n=="function"&&typeof t=="string"&&/^git[A-Z]/.test(t)){let r=n;return(...o)=>{let i=r.apply(e,o);return i instanceof Promise?i.catch(s=>{throw $t(s)}):i}}if(typeof n=="function"&&typeof t=="string"&&/^sessionFs[A-Z]/.test(t)){let r=n;return(...o)=>{let i=r.apply(e,o);return i instanceof Promise?i.catch(s=>{throw De(s)}):i}}return n}var C=new Proxy({},{get:(e,t)=>Gt(R(),t),has:(e,t)=>Reflect.has(R(),t),set:(e,t,n)=>Reflect.set(R(),t,n),ownKeys:()=>Reflect.ownKeys(R()),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(R(),t),defineProperty:(e,t,n)=>Reflect.defineProperty(R(),t,n)});function k(e){return C.errorFormattingFormatUnknown(e)}import{basename as en,join as V}from"node:path";var He="0.0.1";function Fe(e){return e===He||e.startsWith(`${He}-`)}import{readdir as zt,access as Kt,constants as Qt}from"node:fs/promises";import{join as u,basename as Be}from"node:path";import{homedir as A}from"node:os";function Ve(){return process.env.XDG_CACHE_HOME||u(A(),".cache")}function Me(){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 $e(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Yt(){if(process.platform==="darwin")return u(A(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||u(A(),".cache");return u(e,"copilot")}return u(Ve(),"copilot")}function je(){let e=[];return process.env.COPILOT_PKG_CACHE_HOME&&e.push(u(process.env.COPILOT_PKG_CACHE_HOME,"pkg")),process.env.COPILOT_CACHE_HOME&&e.push(u(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(u(Yt(),"pkg")),e.push(u(Ve(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(u(process.env.COPILOT_HOME,"pkg")),e.push(u(A(),".copilot","pkg")),[...new Set(e)]}function Ue(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(t)return[Number(t[1]),Number(t[2]),Number(t[3])]}function qe(e){let t=e.match(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([^+]+))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/);if(!t)return;let n=t[4];if(n===void 0)return[];let r=n.split(".");for(let o of r)if(!/^[0-9A-Za-z-]+$/.test(o)||/^\d+$/.test(o)&&o.length>1&&o.startsWith("0"))return;return r}function Zt(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){let r=e[n],o=t[n];if(r===o)continue;let i=/^\d+$/.test(r),s=/^\d+$/.test(o);return i!==s?i?-1:1:i&&r.length!==o.length?r.length-o.length:r<o?-1:1}return e.length-t.length}function Xt(e,t){let n=Ue(e),r=Ue(t);if(!n&&!r)return 0;if(!n)return-1;if(!r)return 1;for(let c=0;c<3;c++)if(n[c]!==r[c])return n[c]-r[c];let o=qe(e),i=qe(t);if(o!==void 0&&i!==void 0)return o.length===0||i.length===0?o.length!==i.length?o.length===0?1:-1:0:Zt(o,i);let s=e.includes("-"),a=t.includes("-");return s!==a?s?-1:1:e.localeCompare(t)}async function We(e,...t){let n=[];for(let r of t){let o;try{o=await zt(r)}catch{continue}for(let i of o){let s=u(r,i);try{await Kt(u(s,e),Qt.R_OK),n.push(s)}catch{continue}}}return n.sort((r,o)=>{let i=Xt(Be(o),Be(r));return i!==0?i:r.localeCompare(o)}),n}import{join as Je}from"node:path";function Ge(){let e=Ee();return je().flatMap(t=>[Je(t,"universal"),Je(t,e)])}function tn(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.82"}async function ze(e,t){let n=V(e,"app.js"),r=!process.env.COPILOT_CLI_VERSION&&Fe(tn()),o=$e();if(o||t&&Me()&&!r){let i=Ge(),s=await We("app.js",...i);if(o){let a=s.find(c=>en(c)===o);a?n=V(a,"app.js"):process.stderr.write(`Warning: preferred version ${o} not found in package cache, using built-in version
`)}else s.length>0&&(n=V(s[0],"app.js"))}return n}import Qe from"node:path";import{fileURLToPath as nn}from"node:url";var w,Ke=Qe.dirname(nn(import.meta.url));function Ye(){if(w){if(w.kind==="ok")return w.addon;throw w.error}try{let e=L("cli-native",[Ke,Qe.resolve(Ke,"..","native","cli")]);return w={kind:"ok",addon:e},e}catch(e){let t=e instanceof Error?e:new Error(`Failed to load cli-native addon: ${k(e)}`);throw w={kind:"error",error:t},t}}function I(){if(process.platform==="win32")return Ye()}var Ze=Symbol.for("github.copilot.cli.cleanExit");function rn(){let e=Reflect.get(process,"exit");if(typeof e!="function")return;let t=Reflect.get(e,Ze);return typeof t=="function"?t:void 0}function on(){let e;if(process.platform==="win32")try{e=I()}catch{e=void 0}let t=!1;return()=>{if(!t){t=!0;try{process.report.reportOnFatalError=!1}catch{}if(e){try{e.uninstallExceptionFilter()}catch{}try{e.disableCrashReporting()}catch{}}}}}function Xe(){let e=rn();if(e)return e;let t=process.exit.bind(process),n=on(),r=(...s)=>(n(),t(...s));process.once("exit",n);let o=!0,i=()=>{o&&(o=!1,process.exit===r&&(process.exit=t),process.removeListener("exit",n))};return Reflect.defineProperty(r,Ze,{value:i}),process.exit=r,i}import{existsSync as sn}from"node:fs";import{basename as an,resolve as cn}from"node:path";var et="extension_bootstrap.mjs";function tt(e,t,n=sn){let r=e.find(s=>an(s)===et);if(!r)return;process.stderr.write(`[extension-fork] resolveBootstrapPath: __dir=${t}, argv-bootstrap=${r}

@@ -14,0 +14,0 @@ `);let o=cn(t,"preloads",et),i=n(o);if(process.stderr.write(`[extension-fork] resolveBootstrapPath: localBootstrap=${o}, localExists=${i}

{
"name": "@github/copilot-linux-arm64",
"version": "1.0.82-2",
"version": "1.0.82",
"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