Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@github/copilot

Package Overview
Dependencies
Maintainers
22
Versions
721
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@github/copilot - npm Package Compare versions

Comparing version
1.0.55-5
to
1.0.55-6
voice-server.js

Sorry, the diff of this file is too big to display

+11
-10

@@ -9,8 +9,9 @@ #!/usr/bin/env node

var Qe=Object.create;var J=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var Ze=Object.getOwnPropertyNames;var et=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty;var Y=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var rt=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ze(t))!tt.call(e,o)&&o!==r&&J(e,o,{get:()=>t[o],enumerable:!(s=Xe(t,o))||s.enumerable});return e};var nt=(e,t,r)=>(r=e!=null?Qe(et(e)):{},rt(t||!e||!e.__esModule?J(r,"default",{value:e,enumerable:!0}):r,e));var ue=R((vr,ae)=>{"use strict";var ce=()=>process.platform==="linux",C=null,bt=()=>{if(!C)if(ce()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,C=process.report.getReport(),process.report.excludeNetwork=e}else C={};return C};ae.exports={isLinux:ce,getReport:bt}});var de=R((Sr,le)=>{"use strict";var x=Y("fs"),vt="/usr/bin/ldd",St="/proc/self/exe",N=2048,Ot=e=>{let t=x.openSync(e,"r"),r=Buffer.alloc(N),s=x.readSync(t,r,0,N,0);return x.close(t,()=>{}),r.subarray(0,s)},Et=e=>new Promise((t,r)=>{x.open(e,"r",(s,o)=>{if(s)r(s);else{let n=Buffer.alloc(N);x.read(o,n,0,N,0,(c,d)=>{t(n.subarray(0,d)),x.close(o,()=>{})})}})});le.exports={LDD_PATH:vt,SELF_PATH:St,readFileSync:Ot,readFile:Et}});var pe=R((Or,fe)=>{"use strict";var Pt=e=>{if(e.length<64||e.readUInt32BE(0)!==2135247942||e.readUInt8(4)!==2||e.readUInt8(5)!==1)return null;let t=e.readUInt32LE(32),r=e.readUInt16LE(54),s=e.readUInt16LE(56);for(let o=0;o<s;o++){let n=t+o*r;if(e.readUInt32LE(n)===3){let d=e.readUInt32LE(n+8),E=e.readUInt32LE(n+32);return e.subarray(d,d+E).toString().replace(/\0.*$/g,"")}}return null};fe.exports={interpreterPath:Pt}});var Ae=R((Er,Re)=>{"use strict";var ge=Y("child_process"),{isLinux:L,getReport:he}=ue(),{LDD_PATH:k,SELF_PATH:ye,readFile:D,readFileSync:G}=de(),{interpreterPath:be}=pe(),h,y,b,ve="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",T="",Se=()=>T||new Promise(e=>{ge.exec(ve,(t,r)=>{T=t?" ":r,e(T)})}),Oe=()=>{if(!T)try{T=ge.execSync(ve,{encoding:"utf8"})}catch{T=" "}return T},O="glibc",Ee=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,I="musl",wt=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),Pe=()=>{let e=he();return e.header&&e.header.glibcVersionRuntime?O:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(wt)?I:null},we=e=>{let[t,r]=e.split(/[\r\n]+/);return t&&t.includes(O)?O:r&&r.includes(I)?I:null},Te=e=>{if(e){if(e.includes("/ld-musl-"))return I;if(e.includes("/ld-linux-"))return O}return null},Ie=e=>(e=e.toString(),e.includes("musl")?I:e.includes("GNU C Library")?O:null),Tt=async()=>{if(y!==void 0)return y;y=null;try{let e=await D(k);y=Ie(e)}catch{}return y},It=()=>{if(y!==void 0)return y;y=null;try{let e=G(k);y=Ie(e)}catch{}return y},xt=async()=>{if(h!==void 0)return h;h=null;try{let e=await D(ye),t=be(e);h=Te(t)}catch{}return h},Lt=()=>{if(h!==void 0)return h;h=null;try{let e=G(ye),t=be(e);h=Te(t)}catch{}return h},xe=async()=>{let e=null;if(L()&&(e=await xt(),!e&&(e=await Tt(),e||(e=Pe()),!e))){let t=await Se();e=we(t)}return e},Le=()=>{let e=null;if(L()&&(e=Lt(),!e&&(e=It(),e||(e=Pe()),!e))){let t=Oe();e=we(t)}return e},Ft=async()=>L()&&await xe()!==O,_t=()=>L()&&Le()!==O,Rt=async()=>{if(b!==void 0)return b;b=null;try{let t=(await D(k)).match(Ee);t&&(b=t[1])}catch{}return b},At=()=>{if(b!==void 0)return b;b=null;try{let t=G(k).match(Ee);t&&(b=t[1])}catch{}return b},Fe=()=>{let e=he();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},me=e=>e.trim().split(/\s+/)[1],_e=e=>{let[t,r,s]=e.split(/[\r\n]+/);return t&&t.includes(O)?me(t):r&&s&&r.includes(I)?me(s):null},Ct=async()=>{let e=null;if(L()&&(e=await Rt(),e||(e=Fe()),!e)){let t=await Se();e=_e(t)}return e},Nt=()=>{let e=null;if(L()&&(e=At(),e||(e=Fe()),!e)){let t=Oe();e=_e(t)}return e};Re.exports={GLIBC:O,MUSL:I,family:xe,familySync:Le,isNonGlibcLinux:Ft,isNonGlibcLinuxSync:_t,version:Ct,versionSync:Nt}});import Bt from"node:module";import{spawn as qt}from"node:child_process";import{chmodSync as Me,copyFileSync as je,mkdirSync as Vt,readFileSync as De,realpathSync as Jt,rmSync as B,statSync as Yt,writeFileSync as Ge,writeSync as Kt}from"node:fs";import{basename as Je,dirname as zt,join as u,sep as We}from"node:path";import{createInterface as Qt}from"node:readline";import*as Ye from"node:sea";import{fileURLToPath as Ke,pathToFileURL as q}from"node:url";var ot=new Set;function K(e,t){let r=Object.create(null);if(e)for(let[o,n]of Object.entries(e))r[o]=n;let s=t??ot;return new Proxy(process.env,{get(o,n){if(typeof n=="string"){if(Object.hasOwn(r,n))return r[n];if(!s.has(n))return process.env[n]}},set(o,n,c){return r[n]=c,!0},has(o,n){return typeof n!="string"?!1:Object.hasOwn(r,n)?r[n]!==void 0:s.has(n)?!1:n in process.env},ownKeys(o){let n=new Set(Object.keys(process.env));for(let c of s)n.delete(c);for(let c of Object.keys(r))r[c]!==void 0?n.add(c):n.delete(c);return[...n]},getOwnPropertyDescriptor(o,n){if(typeof n!="string")return;let c;if(Object.hasOwn(r,n))c=r[n];else{if(s.has(n))return;c=process.env[n]}if(c!==void 0)return{value:c,writable:!0,enumerable:!0,configurable:!0}},deleteProperty(o,n){return r[n]=void 0,!0}})}import{existsSync as st}from"node:fs";import{basename as it,resolve as ct}from"node:path";var z="extension_bootstrap.mjs";function Q(e,t,r=st){if(!e.find(n=>it(n)===z))return;let o=ct(t,"preloads",z);if(r(o))return o}var at=new Set(["--server","--headless","--acp"]),ut=new Set(["completion","help","init","login","mcp","plugin","update","version"]);function lt(e){return e==="--prompt"||e.startsWith("--prompt=")||e==="-p"||e.startsWith("-p")&&e.length>2}function dt(e){if(e.some(r=>at.has(r)||lt(r)))return!0;let t=e.find(r=>!r.startsWith("-"));return t!==void 0&&ut.has(t)}function X(e){return dt(e)}import{readdir as ft,access as pt,constants as mt}from"node:fs/promises";import{join as f,basename as Z}from"node:path";import{homedir as A}from"node:os";function te(){return process.env.XDG_CACHE_HOME||f(A(),".cache")}function re(){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 ne(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function gt(){if(process.platform==="darwin")return f(A(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||f(A(),".cache");return f(e,"copilot")}return f(te(),"copilot")}function oe(){let e=[];return process.env.COPILOT_CACHE_HOME&&e.push(f(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(f(gt(),"pkg")),e.push(f(te(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(f(process.env.COPILOT_HOME,"pkg")),e.push(f(A(),".copilot","pkg")),[...new Set(e)]}function ee(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(t)return[Number(t[1]),Number(t[2]),Number(t[3])]}function ht(e,t){let r=ee(e),s=ee(t);if(!r&&!s)return 0;if(!r)return-1;if(!s)return 1;for(let c=0;c<3;c++)if(r[c]!==s[c])return r[c]-s[c];let o=e.includes("-"),n=t.includes("-");return o!==n?o?-1:1:e.localeCompare(t)}async function se(e,...t){let r=[];for(let s of t){let o;try{o=await ft(s)}catch{continue}for(let n of o){let c=f(s,n);try{await pt(f(c,e),mt.R_OK),r.push(c)}catch{continue}}}return r.sort((s,o)=>{let n=ht(Z(o),Z(s));return n!==0?n:s.localeCompare(o)}),r}import He from"node:path";import{fileURLToPath as Gt}from"node:url";function yt(e){if(e.includes("<!DOCTYPE")||e.includes("<html")){let t=Math.min(e.indexOf("<!DOCTYPE")!==-1?e.indexOf("<!DOCTYPE"):1/0,e.indexOf("<html")!==-1?e.indexOf("<html"):1/0),r=e.substring(0,t).trim();return r?`${r} [HTML error page omitted]`:"[HTML error page omitted]"}return e}function ie(e){let t;if(e instanceof Error)t=String(e);else if(typeof e=="object"&&e!==null)try{t=JSON.stringify(e)??"[object]"}catch{return"[object with circular reference]"}else t=String(e);return yt(t)}import{createRequire as kt}from"node:module";import{join as Ne,resolve as $t}from"node:path";import{fileURLToPath as Ht}from"node:url";var $=nt(Ae(),1);function W(e={}){return(e.platform??process.platform)!=="linux"?"gnu":(e.detectLibcFamily??$.familySync)()===$.MUSL?"musl":"gnu"}function Ce(e=process.platform,t){let r=t??(e==="linux"?W():"gnu");return e==="linux"&&r==="musl"?"linuxmusl":e}function Ut(){return`${Ce()}-${process.arch}`}function Mt(){let{platform:e,arch:t}=process;switch(e){case"win32":return`win32-${t}-msvc`;case"darwin":return`darwin-${t}`;case"linux":return`linux-${t}-${W()}`;default:throw new Error(`Unsupported platform: ${e}/${t}`)}}function $e(e,t){let r=Ut(),s=`${e}.node`,o=`${e}.${Mt()}.node`,n=[];for(let d of t){let E=$t(d),_=Ne(E,"prebuilds",r,s),P=ke(_);if(P.ok)return P.value;n.push({path:_,err:P.err});let i=Ne(E,o),a=ke(i);if(a.ok)return a.value;n.push({path:i,err:a.err})}let c=n.map(d=>` ${d.path}: ${jt(d.err)}`).join(`
var Qe=Object.create;var Y=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var Ze=Object.getOwnPropertyNames;var et=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty;var K=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var rt=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ze(t))!tt.call(e,s)&&s!==r&&Y(e,s,{get:()=>t[s],enumerable:!(o=Xe(t,s))||o.enumerable});return e};var nt=(e,t,r)=>(r=e!=null?Qe(et(e)):{},rt(t||!e||!e.__esModule?Y(r,"default",{value:e,enumerable:!0}):r,e));var le=R((br,ue)=>{"use strict";var ae=()=>process.platform==="linux",A=null,vt=()=>{if(!A)if(ae()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,A=process.report.getReport(),process.report.excludeNetwork=e}else A={};return A};ue.exports={isLinux:ae,getReport:vt}});var fe=R((Sr,de)=>{"use strict";var x=K("fs"),bt="/usr/bin/ldd",St="/proc/self/exe",N=2048,Et=e=>{let t=x.openSync(e,"r"),r=Buffer.alloc(N),o=x.readSync(t,r,0,N,0);return x.close(t,()=>{}),r.subarray(0,o)},Ot=e=>new Promise((t,r)=>{x.open(e,"r",(o,s)=>{if(o)r(o);else{let n=Buffer.alloc(N);x.read(s,n,0,N,0,(c,d)=>{t(n.subarray(0,d)),x.close(s,()=>{})})}})});de.exports={LDD_PATH:bt,SELF_PATH:St,readFileSync:Et,readFile:Ot}});var me=R((Er,pe)=>{"use strict";var Pt=e=>{if(e.length<64||e.readUInt32BE(0)!==2135247942||e.readUInt8(4)!==2||e.readUInt8(5)!==1)return null;let t=e.readUInt32LE(32),r=e.readUInt16LE(54),o=e.readUInt16LE(56);for(let s=0;s<o;s++){let n=t+s*r;if(e.readUInt32LE(n)===3){let d=e.readUInt32LE(n+8),O=e.readUInt32LE(n+32);return e.subarray(d,d+O).toString().replace(/\0.*$/g,"")}}return null};pe.exports={interpreterPath:Pt}});var Ae=R((Or,Ce)=>{"use strict";var he=K("child_process"),{isLinux:L,getReport:ye}=le(),{LDD_PATH:k,SELF_PATH:ve,readFile:G,readFileSync:W}=fe(),{interpreterPath:be}=me(),h,y,v,Se="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",T="",Ee=()=>T||new Promise(e=>{he.exec(Se,(t,r)=>{T=t?" ":r,e(T)})}),Oe=()=>{if(!T)try{T=he.execSync(Se,{encoding:"utf8"})}catch{T=" "}return T},E="glibc",Pe=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,I="musl",wt=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),we=()=>{let e=ye();return e.header&&e.header.glibcVersionRuntime?E:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(wt)?I:null},Te=e=>{let[t,r]=e.split(/[\r\n]+/);return t&&t.includes(E)?E:r&&r.includes(I)?I:null},Ie=e=>{if(e){if(e.includes("/ld-musl-"))return I;if(e.includes("/ld-linux-"))return E}return null},xe=e=>(e=e.toString(),e.includes("musl")?I:e.includes("GNU C Library")?E:null),Tt=async()=>{if(y!==void 0)return y;y=null;try{let e=await G(k);y=xe(e)}catch{}return y},It=()=>{if(y!==void 0)return y;y=null;try{let e=W(k);y=xe(e)}catch{}return y},xt=async()=>{if(h!==void 0)return h;h=null;try{let e=await G(ve),t=be(e);h=Ie(t)}catch{}return h},Lt=()=>{if(h!==void 0)return h;h=null;try{let e=W(ve),t=be(e);h=Ie(t)}catch{}return h},Le=async()=>{let e=null;if(L()&&(e=await xt(),!e&&(e=await Tt(),e||(e=we()),!e))){let t=await Ee();e=Te(t)}return e},_e=()=>{let e=null;if(L()&&(e=Lt(),!e&&(e=It(),e||(e=we()),!e))){let t=Oe();e=Te(t)}return e},_t=async()=>L()&&await Le()!==E,Ft=()=>L()&&_e()!==E,Rt=async()=>{if(v!==void 0)return v;v=null;try{let t=(await G(k)).match(Pe);t&&(v=t[1])}catch{}return v},Ct=()=>{if(v!==void 0)return v;v=null;try{let t=W(k).match(Pe);t&&(v=t[1])}catch{}return v},Fe=()=>{let e=ye();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},ge=e=>e.trim().split(/\s+/)[1],Re=e=>{let[t,r,o]=e.split(/[\r\n]+/);return t&&t.includes(E)?ge(t):r&&o&&r.includes(I)?ge(o):null},At=async()=>{let e=null;if(L()&&(e=await Rt(),e||(e=Fe()),!e)){let t=await Ee();e=Re(t)}return e},Nt=()=>{let e=null;if(L()&&(e=Ct(),e||(e=Fe()),!e)){let t=Oe();e=Re(t)}return e};Ce.exports={GLIBC:E,MUSL:I,family:Le,familySync:_e,isNonGlibcLinux:_t,isNonGlibcLinuxSync:Ft,version:At,versionSync:Nt}});import Bt from"node:module";import{spawn as Vt}from"node:child_process";import{chmodSync as je,copyFileSync as De,mkdirSync as qt,readFileSync as Ge,realpathSync as Jt,rmSync as V,statSync as Yt,writeFileSync as We,writeSync as Kt}from"node:fs";import{basename as Ye,dirname as zt,join as u,sep as Be}from"node:path";import{createInterface as Qt}from"node:readline";import*as Ke from"node:sea";import{fileURLToPath as ze,pathToFileURL as H}from"node:url";var st=new Set;function z(e,t){let r=Object.create(null);if(e)for(let[s,n]of Object.entries(e))r[s]=n;let o=t??st;return new Proxy(process.env,{get(s,n){if(typeof n=="string"){if(Object.hasOwn(r,n))return r[n];if(!o.has(n))return process.env[n]}},set(s,n,c){return r[n]=c,!0},has(s,n){return typeof n!="string"?!1:Object.hasOwn(r,n)?r[n]!==void 0:o.has(n)?!1:n in process.env},ownKeys(s){let n=new Set(Object.keys(process.env));for(let c of o)n.delete(c);for(let c of Object.keys(r))r[c]!==void 0?n.add(c):n.delete(c);return[...n]},getOwnPropertyDescriptor(s,n){if(typeof n!="string")return;let c;if(Object.hasOwn(r,n))c=r[n];else{if(o.has(n))return;c=process.env[n]}if(c!==void 0)return{value:c,writable:!0,enumerable:!0,configurable:!0}},deleteProperty(s,n){return r[n]=void 0,!0}})}import{existsSync as ot}from"node:fs";import{basename as it,resolve as ct}from"node:path";var Q="extension_bootstrap.mjs";function X(e,t,r=ot){if(!e.find(n=>it(n)===Q))return;let s=ct(t,"preloads",Q);if(r(s))return s}var at=new Set(["--server","--headless","--acp"]),ut=new Set(["completion","help","init","login","mcp","plugin","update","version"]);function lt(e){return e==="--prompt"||e.startsWith("--prompt=")||e==="-p"||e.startsWith("-p")&&e.length>2}function dt(e){if(e.some(r=>at.has(r)||lt(r)))return!0;let t=e.find(r=>!r.startsWith("-"));return t!==void 0&&ut.has(t)}function Z(e){return dt(e)}import{readdir as ft,access as pt,constants as mt}from"node:fs/promises";import{join as f,basename as ee}from"node:path";import{homedir as C}from"node:os";function re(){return process.env.XDG_CACHE_HOME||f(C(),".cache")}function ne(){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 se(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function gt(){if(process.platform==="darwin")return f(C(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||f(C(),".cache");return f(e,"copilot")}return f(re(),"copilot")}function oe(){let e=[];return process.env.COPILOT_CACHE_HOME&&e.push(f(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(f(gt(),"pkg")),e.push(f(re(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(f(process.env.COPILOT_HOME,"pkg")),e.push(f(C(),".copilot","pkg")),[...new Set(e)]}function te(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(t)return[Number(t[1]),Number(t[2]),Number(t[3])]}function ht(e,t){let r=te(e),o=te(t);if(!r&&!o)return 0;if(!r)return-1;if(!o)return 1;for(let c=0;c<3;c++)if(r[c]!==o[c])return r[c]-o[c];let s=e.includes("-"),n=t.includes("-");return s!==n?s?-1:1:e.localeCompare(t)}async function ie(e,...t){let r=[];for(let o of t){let s;try{s=await ft(o)}catch{continue}for(let n of s){let c=f(o,n);try{await pt(f(c,e),mt.R_OK),r.push(c)}catch{continue}}}return r.sort((o,s)=>{let n=ht(ee(s),ee(o));return n!==0?n:o.localeCompare(s)}),r}import Ue from"node:path";import{fileURLToPath as Gt}from"node:url";function yt(e){if(e.includes("<!DOCTYPE")||e.includes("<html")){let t=Math.min(e.indexOf("<!DOCTYPE")!==-1?e.indexOf("<!DOCTYPE"):1/0,e.indexOf("<html")!==-1?e.indexOf("<html"):1/0),r=e.substring(0,t).trim();return r?`${r} [HTML error page omitted]`:"[HTML error page omitted]"}return e}function ce(e){let t;if(e instanceof Error)t=String(e);else if(typeof e=="object"&&e!==null)try{t=JSON.stringify(e)??"[object]"}catch{return"[object with circular reference]"}else t=String(e);return yt(t)}import{createRequire as kt}from"node:module";import{join as ke,resolve as $t}from"node:path";import{fileURLToPath as Ht}from"node:url";var $=nt(Ae(),1);function B(e={}){return(e.platform??process.platform)!=="linux"?"gnu":(e.detectLibcFamily??$.familySync)()===$.MUSL?"musl":"gnu"}function Ne(e=process.platform,t){let r=t??(e==="linux"?B():"gnu");return e==="linux"&&r==="musl"?"linuxmusl":e}function Ut(){return`${Ne()}-${process.arch}`}function Mt(){let{platform:e,arch:t}=process;switch(e){case"win32":return`win32-${t}-msvc`;case"darwin":return`darwin-${t}`;case"linux":return`linux-${t}-${B()}`;default:throw new Error(`Unsupported platform: ${e}/${t}`)}}function He(e,t){let r=Ut(),o=`${e}.node`,s=`${e}.${Mt()}.node`,n=[];for(let d of t){let O=$t(d),F=ke(O,"prebuilds",r,o),P=$e(F);if(P.ok)return P.value;n.push({path:F,err:P.err});let i=ke(O,s),a=$e(i);if(a.ok)return a.value;n.push({path:i,err:a.err})}let c=n.map(d=>` ${d.path}: ${jt(d.err)}`).join(`
`);throw new Error(`Native addon "${e}" not found for ${r}. Tried:
${c}`)}function jt(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 ke(e){try{return{ok:!0,value:Dt(e)}}catch(t){return{ok:!1,err:t}}}function Dt(e){return kt(Ht(import.meta.url))(e)}var F;function Ue(){if(process.platform==="win32"){if(F){if(F.kind==="ok")return F.addon;throw F.error}try{let e=Wt();return F={kind:"ok",addon:e},e}catch(e){let t=e instanceof Error?e:new Error(`Failed to load Win32 native addon: ${ie(e)}`);throw F={kind:"error",error:t},t}}}function Wt(){let e=He.dirname(Gt(import.meta.url));return $e("cli-native",[e,He.resolve(e,"..","native","cli")])}try{Bt.enableCompileCache?.()}catch{}var Xt=75;function Be(){if(process.stdin.isTTY&&typeof process.stdin.setRawMode=="function")try{process.stdin.setRawMode(!1)}catch{}if(process.stdout.isTTY)try{Kt(1,"\x1B[<u\x1B[?1049h\x1B[?1049l\x1B[?1006l\x1B[?1003l\x1B[?1002l\x1B[?2004l\x1B[?1004l\x1B[?25h\x1B[?2026l"+(process.env.TERM!=="dumb"?"\x1B[23;2t":""))}catch{}}var ze=zt(Ke(import.meta.url)),qe=Ye.isSea();process.report.reportOnFatalError=!0;process.report.excludeEnv=!0;if(process.platform==="win32")try{let e=Ue();if(!e)throw new Error("loadWin32NativeAddon returned undefined on win32");e.enableCrashReporting(),e.installExceptionFilter()}catch{}var H=process.argv.find(e=>Je(e).startsWith("conpty_console_list_agent")),Ve=Q(process.argv,ze);if(H){let e=H.endsWith(".js")?H:H+".js";await import(q(e).href)}else if(Ve)await import(q(Ve).href);else if(process.env.COPILOT_SHUTDOWN_FLUSH){try{let{url:e,headers:t,body:r}=JSON.parse(process.env.COPILOT_SHUTDOWN_FLUSH);await fetch(e,{method:"POST",headers:t,body:r,signal:AbortSignal.timeout(3e4)})}catch{}process.exit(0)}else if(process.env.COPILOT_RUN_APP==="1"||X(process.argv.slice(2))){let e=u(ze,"app.js"),t=ne();if(qe&&(re()||t)){let r=oe().flatMap(o=>[u(o,"universal"),u(o,`${process.platform}-${process.arch}`)]),s=await se("app.js",...r);if(t){let o=s.find(n=>Je(n)===t);o?e=u(o,"app.js"):process.stderr.write(`Warning: preferred version ${t} not found in package cache, using built-in version
`)}else s.length>0&&(e=u(s[0],"app.js"))}await import(q(e).href)}else{let t=function(){let i=process.env.COPILOT_HOME||u(process.env.HOME||process.env.USERPROFILE||"",".copilot");return u(i,"restart",`${e}.json`)},r=function(){let i=t();try{let a=De(i,"utf-8");return B(i,{force:!0}),JSON.parse(a)}catch{return}},s=function(){try{B(t(),{force:!0})}catch{}},o=function(){let i=process.env.COPILOT_HOME||u(process.env.HOME||process.env.USERPROFILE||"",".copilot");return u(i,"crash-context",`${e}.json`)},n=function(){try{let i=De(o(),"utf-8");return JSON.parse(i)}catch{return}},c=function(){try{B(o(),{force:!0})}catch{}},d=function(i,a){return new Promise(g=>{let p=Qt({input:process.stdin,output:process.stdout}),l=i.toString(16).toUpperCase();if(process.stdout.write(`
${c}`)}function jt(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 $e(e){try{return{ok:!0,value:Dt(e)}}catch(t){return{ok:!1,err:t}}}function Dt(e){return kt(Ht(import.meta.url))(e)}var _;function Me(){if(process.platform==="win32"){if(_){if(_.kind==="ok")return _.addon;throw _.error}try{let e=Wt();return _={kind:"ok",addon:e},e}catch(e){let t=e instanceof Error?e:new Error(`Failed to load Win32 native addon: ${ce(e)}`);throw _={kind:"error",error:t},t}}}function Wt(){let e=Ue.dirname(Gt(import.meta.url));return He("cli-native",[e,Ue.resolve(e,"..","native","cli")])}try{Bt.enableCompileCache?.()}catch{}var Xt=75;function Ve(){if(process.stdin.isTTY&&typeof process.stdin.setRawMode=="function")try{process.stdin.setRawMode(!1)}catch{}if(process.stdout.isTTY)try{Kt(1,"\x1B[<u\x1B[?1049h\x1B[?1049l\x1B[?1006l\x1B[?1003l\x1B[?1002l\x1B[?2004l\x1B[?1004l\x1B[?25h\x1B[?2026l"+(process.env.TERM!=="dumb"?"\x1B[23;2t":""))}catch{}}var q=zt(ze(import.meta.url)),qe=Ke.isSea();process.report.reportOnFatalError=!0;process.report.excludeEnv=!0;if(process.platform==="win32")try{let e=Me();if(!e)throw new Error("loadWin32NativeAddon returned undefined on win32");e.enableCrashReporting(),e.installExceptionFilter()}catch{}var U=process.argv.find(e=>Ye(e).startsWith("conpty_console_list_agent")),Je=X(process.argv,q);if(U){let e=U.endsWith(".js")?U:U+".js";await import(H(e).href)}else if(Je)await import(H(Je).href);else if(process.env.COPILOT_VOICE_SERVER_MODE==="1"){let e=u(q,"voice-server.js");try{let{runVoiceServer:t}=await import(H(e).href);await t()}catch(t){process.stderr.write(`voice server: fatal at ${e}: ${t.stack??String(t)}
`),process.exit(1)}}else if(process.env.COPILOT_SHUTDOWN_FLUSH){try{let{url:e,headers:t,body:r}=JSON.parse(process.env.COPILOT_SHUTDOWN_FLUSH);await fetch(e,{method:"POST",headers:t,body:r,signal:AbortSignal.timeout(3e4)})}catch{}process.exit(0)}else if(process.env.COPILOT_RUN_APP==="1"||Z(process.argv.slice(2))){let e=u(q,"app.js"),t=se();if(qe&&(ne()||t)){let r=oe().flatMap(s=>[u(s,"universal"),u(s,`${process.platform}-${process.arch}`)]),o=await ie("app.js",...r);if(t){let s=o.find(n=>Ye(n)===t);s?e=u(s,"app.js"):process.stderr.write(`Warning: preferred version ${t} not found in package cache, using built-in version
`)}else o.length>0&&(e=u(o[0],"app.js"))}await import(H(e).href)}else{let t=function(){let i=process.env.COPILOT_HOME||u(process.env.HOME||process.env.USERPROFILE||"",".copilot");return u(i,"restart",`${e}.json`)},r=function(){let i=t();try{let a=Ge(i,"utf-8");return V(i,{force:!0}),JSON.parse(a)}catch{return}},o=function(){try{V(t(),{force:!0})}catch{}},s=function(){let i=process.env.COPILOT_HOME||u(process.env.HOME||process.env.USERPROFILE||"",".copilot");return u(i,"crash-context",`${e}.json`)},n=function(){try{let i=Ge(s(),"utf-8");return JSON.parse(i)}catch{return}},c=function(){try{V(s(),{force:!0})}catch{}},d=function(i,a){return new Promise(g=>{let p=Qt({input:process.stdin,output:process.stdout}),l=i.toString(16).toUpperCase();if(process.stdout.write(`
*** Copilot exited unexpectedly (exit code ${i} = 0x${l}) ***
`),a){let v=a.length>200?a.slice(0,200)+"\u2026":a;process.stdout.write(`Error: ${v}
`),a){let b=a.length>200?a.slice(0,200)+"\u2026":a;process.stdout.write(`Error: ${b}
`)}process.stdout.write(`

@@ -21,5 +22,5 @@ A crash report can be saved locally.

`),p.question("Save crash report? [y/N] ",v=>{p.close(),g(v.trim().toLowerCase()==="y")})})},E=function(i,a){try{let g=Jt(i);return g.startsWith(a+We)?Yt(g).isFile():!1}catch{return!1}},P=function(i,a){let g=qe?i:[...process.execArgv,Ke(import.meta.url),...i],p=qt(process.execPath,g,{stdio:"inherit",cwd:a,env:K({COPILOT_RUN_APP:"1",COPILOT_LOADER_PID:e})});process.env.COPILOT_LOADER_DEBUG&&process.stderr.write(`[loader] spawned app child: pid=${p.pid} (loader pid=${e})
`);let l=m=>{try{p.kill(m)}catch{}},v=()=>l("SIGINT"),S=()=>l("SIGTERM"),U=()=>l("SIGHUP"),M=()=>l("SIGQUIT");process.on("SIGINT",v),process.on("SIGTERM",S),process.on("SIGHUP",U),process.on("SIGQUIT",M),p.on("error",m=>{process.off("SIGINT",v),process.off("SIGTERM",S),process.off("SIGHUP",U),process.off("SIGQUIT",M),s(),process.stderr.write(`Failed to start: ${m.message}
`),process.exit(1)}),p.on("exit",(m,V)=>{if(process.off("SIGINT",v),process.off("SIGTERM",S),process.off("SIGHUP",U),process.off("SIGQUIT",M),m===Xt){let w=r();if(w){let j=[...w.argv,"--session-id",w.sessionId];P(j,w.cwd||a)}else P(i,a);return}if(s(),V)c(),Be(),process.kill(process.pid,V);else if(m!==0){Be();let w=n();w&&process.stdin.isTTY?d(m??1,w.lastError).then(async j=>{j&&await _(w,m??1),c(),process.exit(m??1)}).catch(()=>{c(),process.exit(m??1)}):(c(),process.exit(m??1))}else c(),process.exit(0)})};Zt=t,er=r,tr=s,rr=o,nr=n,or=c,sr=d,ir=E,cr=P;let e=String(process.pid);async function _(i,a){try{let g=new Date().toISOString().replace(/[:.]/g,"-"),p=process.env.COPILOT_HOME||u(process.env.HOME||process.env.USERPROFILE||"",".copilot"),l=u(p,"crash-reports",`crash-${i.sessionId}-${g}`);Vt(l,{recursive:!0,mode:448}),Ge(u(l,"crash-context.json"),JSON.stringify(i,null,2),{mode:384});let v=["# Crash Report","",`**Exit code**: ${a}`,i.errorType?`**Error type**: ${i.errorType}`:"",i.lastError?`**Error**: ${i.lastError}`:"",`**Timestamp**: ${new Date().toISOString()}`,`**Session ID**: ${i.sessionId}`,`**Working directory**: ${i.cwd}`,i.stackTrace?`
`),p.question("Save crash report? [y/N] ",b=>{p.close(),g(b.trim().toLowerCase()==="y")})})},O=function(i,a){try{let g=Jt(i);return g.startsWith(a+Be)?Yt(g).isFile():!1}catch{return!1}},P=function(i,a){let g=qe?i:[...process.execArgv,ze(import.meta.url),...i],p=Vt(process.execPath,g,{stdio:"inherit",cwd:a,env:z({COPILOT_RUN_APP:"1",COPILOT_LOADER_PID:e})});process.env.COPILOT_LOADER_DEBUG&&process.stderr.write(`[loader] spawned app child: pid=${p.pid} (loader pid=${e})
`);let l=m=>{try{p.kill(m)}catch{}},b=()=>l("SIGINT"),S=()=>l("SIGTERM"),M=()=>l("SIGHUP"),j=()=>l("SIGQUIT");process.on("SIGINT",b),process.on("SIGTERM",S),process.on("SIGHUP",M),process.on("SIGQUIT",j),p.on("error",m=>{process.off("SIGINT",b),process.off("SIGTERM",S),process.off("SIGHUP",M),process.off("SIGQUIT",j),o(),process.stderr.write(`Failed to start: ${m.message}
`),process.exit(1)}),p.on("exit",(m,J)=>{if(process.off("SIGINT",b),process.off("SIGTERM",S),process.off("SIGHUP",M),process.off("SIGQUIT",j),m===Xt){let w=r();if(w){let D=[...w.argv,"--session-id",w.sessionId];P(D,w.cwd||a)}else P(i,a);return}if(o(),J)c(),Ve(),process.kill(process.pid,J);else if(m!==0){Ve();let w=n();w&&process.stdin.isTTY?d(m??1,w.lastError).then(async D=>{D&&await F(w,m??1),c(),process.exit(m??1)}).catch(()=>{c(),process.exit(m??1)}):(c(),process.exit(m??1))}else c(),process.exit(0)})};Zt=t,er=r,tr=o,rr=s,nr=n,sr=c,or=d,ir=O,cr=P;let e=String(process.pid);async function F(i,a){try{let g=new Date().toISOString().replace(/[:.]/g,"-"),p=process.env.COPILOT_HOME||u(process.env.HOME||process.env.USERPROFILE||"",".copilot"),l=u(p,"crash-reports",`crash-${i.sessionId}-${g}`);qt(l,{recursive:!0,mode:448}),We(u(l,"crash-context.json"),JSON.stringify(i,null,2),{mode:384});let b=["# Crash Report","",`**Exit code**: ${a}`,i.errorType?`**Error type**: ${i.errorType}`:"",i.lastError?`**Error**: ${i.lastError}`:"",`**Timestamp**: ${new Date().toISOString()}`,`**Session ID**: ${i.sessionId}`,`**Working directory**: ${i.cwd}`,i.stackTrace?`
## Stack Trace

@@ -30,5 +31,5 @@

\`\`\``:"",""].filter(Boolean).join(`
`);if(Ge(u(l,"feedback.md"),v,{mode:384}),i.sessionFilePath&&E(i.sessionFilePath,p))try{let S=u(l,"events.jsonl");je(i.sessionFilePath,S),Me(S,384)}catch{}if(i.logFilePath&&E(i.logFilePath,p))try{let S=u(l,"process.log");je(i.logFilePath,S),Me(S,384)}catch{}process.stdout.write(`
Crash report saved to: ${l}${We}
`);if(We(u(l,"feedback.md"),b,{mode:384}),i.sessionFilePath&&O(i.sessionFilePath,p))try{let S=u(l,"events.jsonl");De(i.sessionFilePath,S),je(S,384)}catch{}if(i.logFilePath&&O(i.logFilePath,p))try{let S=u(l,"process.log");De(i.logFilePath,S),je(S,384)}catch{}process.stdout.write(`
Crash report saved to: ${l}${Be}
`)}catch(g){process.stderr.write(`Failed to create crash report: ${String(g)}
`)}}P(process.argv.slice(2),process.cwd())}var Zt,er,tr,rr,nr,or,sr,ir,cr;
`)}}P(process.argv.slice(2),process.cwd())}var Zt,er,tr,rr,nr,sr,or,ir,cr;
{
"name": "@github/copilot",
"description": "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.",
"version": "1.0.55-5",
"version": "1.0.55-6",
"license": "SEE LICENSE IN LICENSE.md",

@@ -31,2 +31,3 @@ "type": "module",

"app.js",
"voice-server.js",
"npm-loader.js",

@@ -73,14 +74,14 @@ "changelog.json",

"buildMetadata": {
"gitCommit": "529b38c"
"gitCommit": "1807189"
},
"optionalDependencies": {
"@github/copilot-linux-x64": "1.0.55-5",
"@github/copilot-linux-arm64": "1.0.55-5",
"@github/copilot-linuxmusl-x64": "1.0.55-5",
"@github/copilot-linuxmusl-arm64": "1.0.55-5",
"@github/copilot-darwin-x64": "1.0.55-5",
"@github/copilot-darwin-arm64": "1.0.55-5",
"@github/copilot-win32-x64": "1.0.55-5",
"@github/copilot-win32-arm64": "1.0.55-5"
"@github/copilot-linux-x64": "1.0.55-6",
"@github/copilot-linux-arm64": "1.0.55-6",
"@github/copilot-linuxmusl-x64": "1.0.55-6",
"@github/copilot-linuxmusl-arm64": "1.0.55-6",
"@github/copilot-darwin-x64": "1.0.55-6",
"@github/copilot-darwin-arm64": "1.0.55-6",
"@github/copilot-win32-x64": "1.0.55-6",
"@github/copilot-win32-arm64": "1.0.55-6"
}
}

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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 not supported yet

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