🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@github/copilot-linuxmusl-arm64

Package Overview
Dependencies
Maintainers
23
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version
1.0.64-2
to
1.0.64-3
+2
-2
conpty_console_list_agent.js

@@ -1,2 +0,2 @@

(()=>{const stack=new Error().stack;stack&&(globalThis._sentryDebugIds=globalThis._sentryDebugIds||{},globalThis._sentryDebugIds[stack]="7e888984-6fb9-5170-a11d-68d699424dce",globalThis._sentryDebugIdIdentifier="sentry-dbid-7e888984-6fb9-5170-a11d-68d699424dce");})();
(()=>{const stack=new Error().stack;stack&&(globalThis._sentryDebugIds=globalThis._sentryDebugIds||{},globalThis._sentryDebugIds[stack]="011c5fd9-bc4b-52ad-9e73-35f9453c610c",globalThis._sentryDebugIdIdentifier="sentry-dbid-011c5fd9-bc4b-52ad-9e73-35f9453c610c");})();

@@ -53,3 +53,3 @@ /*---------------------------------------------------------------------------------------------

const __dirname = __path.dirname(__filename);
var d=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var v=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var f=v(s=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});s.assign=m;s.loadNativeModule=y;function m(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return r.forEach(function(c){return Object.keys(c).forEach(function(t){return e[t]=c[t]})}),e}function y(e){for(var r=["build/Release","build/Debug","prebuilds/".concat(process.platform,"-").concat(process.arch)],o=["..","."],c,t=0,l=r;t<l.length;t++)for(var g=l[t],a=0,u=o;a<u.length;a++){var b=u[a],i="".concat(b,"/").concat(g);try{return{dir:i,module:d("".concat(i,"/").concat(e,".node"))}}catch(P){c=P}}throw new Error("Failed to load native module: ".concat(e,".node, checked: ").concat(r.join(", "),": ").concat(c))}});var E=v(p=>{Object.defineProperty(p,"__esModule",{value:!0});var M=f(),j=(0,M.loadNativeModule)("conpty_console_list").module.getConsoleProcessList,h=parseInt(process.argv[2],10),n=[];if(h>0)try{n=j(h)}catch{n=[]}process.send({consoleProcessList:n});process.exit(0)});export default E();
var d=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var v=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(o){throw r=0,o}};var f=v(s=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});s.assign=m;s.loadNativeModule=y;function m(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];return r.forEach(function(c){return Object.keys(c).forEach(function(t){return e[t]=c[t]})}),e}function y(e){for(var r=["build/Release","build/Debug","prebuilds/".concat(process.platform,"-").concat(process.arch)],o=["..","."],c,t=0,l=r;t<l.length;t++)for(var g=l[t],a=0,u=o;a<u.length;a++){var b=u[a],i="".concat(b,"/").concat(g);try{return{dir:i,module:d("".concat(i,"/").concat(e,".node"))}}catch(P){c=P}}throw new Error("Failed to load native module: ".concat(e,".node, checked: ").concat(r.join(", "),": ").concat(c))}});var E=v(p=>{Object.defineProperty(p,"__esModule",{value:!0});var M=f(),j=(0,M.loadNativeModule)("conpty_console_list").module.getConsoleProcessList,h=parseInt(process.argv[2],10),n=[];if(h>0)try{n=j(h)}catch{n=[]}process.send({consoleProcessList:n});process.exit(0)});export default E();
//# sourceMappingURL=conpty_console_list_agent.js.map

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

var He=Object.create;var D=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var je=Object.getOwnPropertyNames;var Me=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var j=(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 v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ve=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of je(t))!Ue.call(e,n)&&n!==r&&D(e,n,{get:()=>t[n],enumerable:!(o=De(t,n))||o.enumerable});return e};var Be=(e,t,r)=>(r=e!=null?He(Me(e)):{},Ve(t||!e||!e.__esModule?D(r,"default",{value:e,enumerable:!0}):r,e));var X=v((Mt,K)=>{"use strict";var Y=()=>process.platform==="linux",_=null,Ke=()=>{if(!_)if(Y()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,_=process.report.getReport(),process.report.excludeNetwork=e}else _={};return _};K.exports={isLinux:Y,getReport:Ke}});var Q=v((Ut,z)=>{"use strict";var y=j("fs"),Xe="/usr/bin/ldd",ze="/proc/self/exe",C=2048,Qe=e=>{let t=y.openSync(e,"r"),r=Buffer.alloc(C),o=y.readSync(t,r,0,C,0);return y.close(t,()=>{}),r.subarray(0,o)},Ze=e=>new Promise((t,r)=>{y.open(e,"r",(o,n)=>{if(o)r(o);else{let s=Buffer.alloc(C);y.read(n,s,0,C,0,(i,c)=>{t(s.subarray(0,c)),y.close(n,()=>{})})}})});z.exports={LDD_PATH:Xe,SELF_PATH:ze,readFileSync:Qe,readFile:Ze}});var ee=v((Vt,Z)=>{"use strict";var et=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 n=0;n<o;n++){let s=t+n*r;if(e.readUInt32LE(s)===3){let c=e.readUInt32LE(s+8),h=e.readUInt32LE(s+32);return e.subarray(c,c+h).toString().replace(/\0.*$/g,"")}}return null};Z.exports={interpreterPath:et}});var Ee=v((Bt,be)=>{"use strict";var re=j("child_process"),{isLinux:b,getReport:ne}=X(),{LDD_PATH:w,SELF_PATH:oe,readFile:A,readFileSync:I}=Q(),{interpreterPath:se}=ee(),l,f,d,ie="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",m="",ce=()=>m||new Promise(e=>{re.exec(ie,(t,r)=>{m=t?" ":r,e(m)})}),ae=()=>{if(!m)try{m=re.execSync(ie,{encoding:"utf8"})}catch{m=" "}return m},p="glibc",ue=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,g="musl",tt=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),le=()=>{let e=ne();return e.header&&e.header.glibcVersionRuntime?p:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(tt)?g:null},fe=e=>{let[t,r]=e.split(/[\r\n]+/);return t&&t.includes(p)?p:r&&r.includes(g)?g:null},de=e=>{if(e){if(e.includes("/ld-musl-"))return g;if(e.includes("/ld-linux-"))return p}return null},pe=e=>(e=e.toString(),e.includes("musl")?g:e.includes("GNU C Library")?p:null),rt=async()=>{if(f!==void 0)return f;f=null;try{let e=await A(w);f=pe(e)}catch{}return f},nt=()=>{if(f!==void 0)return f;f=null;try{let e=I(w);f=pe(e)}catch{}return f},ot=async()=>{if(l!==void 0)return l;l=null;try{let e=await A(oe),t=se(e);l=de(t)}catch{}return l},st=()=>{if(l!==void 0)return l;l=null;try{let e=I(oe),t=se(e);l=de(t)}catch{}return l},me=async()=>{let e=null;if(b()&&(e=await ot(),!e&&(e=await rt(),e||(e=le()),!e))){let t=await ce();e=fe(t)}return e},ge=()=>{let e=null;if(b()&&(e=st(),!e&&(e=nt(),e||(e=le()),!e))){let t=ae();e=fe(t)}return e},it=async()=>b()&&await me()!==p,ct=()=>b()&&ge()!==p,at=async()=>{if(d!==void 0)return d;d=null;try{let t=(await A(w)).match(ue);t&&(d=t[1])}catch{}return d},ut=()=>{if(d!==void 0)return d;d=null;try{let t=I(w).match(ue);t&&(d=t[1])}catch{}return d},he=()=>{let e=ne();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},te=e=>e.trim().split(/\s+/)[1],ye=e=>{let[t,r,o]=e.split(/[\r\n]+/);return t&&t.includes(p)?te(t):r&&o&&r.includes(g)?te(o):null},lt=async()=>{let e=null;if(b()&&(e=await at(),e||(e=he()),!e)){let t=await ce();e=ye(t)}return e},ft=()=>{let e=null;if(b()&&(e=ut(),e||(e=he()),!e)){let t=ae();e=ye(t)}return e};be.exports={GLIBC:p,MUSL:g,family:me,familySync:ge,isNonGlibcLinux:it,isNonGlibcLinuxSync:ct,version:lt,versionSync:ft}});import St from"node:module";import{basename as kt,dirname as Tt,join as At}from"node:path";import*as $e from"node:sea";import{fileURLToPath as It,pathToFileURL as P}from"node:url";import{basename as dt,join as N}from"node:path";var M="0.0.1";import{readdir as qe,access as Ge,constants as We}from"node:fs/promises";import{join as a,basename as U}from"node:path";import{homedir as x}from"node:os";function B(){return process.env.XDG_CACHE_HOME||a(x(),".cache")}function q(){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 G(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Je(){if(process.platform==="darwin")return a(x(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||a(x(),".cache");return a(e,"copilot")}return a(B(),"copilot")}function W(){let e=[];return process.env.COPILOT_CACHE_HOME&&e.push(a(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(a(Je(),"pkg")),e.push(a(B(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(a(process.env.COPILOT_HOME,"pkg")),e.push(a(x(),".copilot","pkg")),[...new Set(e)]}function V(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(t)return[Number(t[1]),Number(t[2]),Number(t[3])]}function Ye(e,t){let r=V(e),o=V(t);if(!r&&!o)return 0;if(!r)return-1;if(!o)return 1;for(let i=0;i<3;i++)if(r[i]!==o[i])return r[i]-o[i];let n=e.includes("-"),s=t.includes("-");return n!==s?n?-1:1:e.localeCompare(t)}async function J(e,...t){let r=[];for(let o of t){let n;try{n=await qe(o)}catch{continue}for(let s of n){let i=a(o,s);try{await Ge(a(i,e),We.R_OK),r.push(i)}catch{continue}}}return r.sort((o,n)=>{let s=Ye(U(n),U(o));return s!==0?s:o.localeCompare(n)}),r}import{join as xe}from"node:path";var O=Be(Ee(),1);function L(e={}){return(e.platform??process.platform)!=="linux"?"gnu":(e.detectLibcFamily??O.familySync)()===O.MUSL?"musl":"gnu"}function F(e=process.platform,t){let r=t??(e==="linux"?L():"gnu");return e==="linux"&&r==="musl"?"linuxmusl":e}function ve(e=process.platform,t,r=process.arch){return`${F(e,t)}-${r}`}function _e(){let e=ve();return W().flatMap(t=>[xe(t,"universal"),xe(t,e)])}function pt(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.64-2"}async function Ce(e,t){let r=N(e,"app.js"),o=pt()===M,n=G();if(t&&(n||q()&&!o)){let s=_e(),i=await J("app.js",...s);if(n){let c=i.find(h=>dt(h)===n);c?r=N(c,"app.js"):process.stderr.write(`Warning: preferred version ${n} not found in package cache, using built-in version
var He=Object.create;var D=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var je=Object.getOwnPropertyNames;var Me=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var j=(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 v=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ve=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of je(t))!Ue.call(e,n)&&n!==r&&D(e,n,{get:()=>t[n],enumerable:!(o=De(t,n))||o.enumerable});return e};var Be=(e,t,r)=>(r=e!=null?He(Me(e)):{},Ve(t||!e||!e.__esModule?D(r,"default",{value:e,enumerable:!0}):r,e));var X=v((Mt,K)=>{"use strict";var Y=()=>process.platform==="linux",_=null,Ke=()=>{if(!_)if(Y()&&process.report){let e=process.report.excludeNetwork;process.report.excludeNetwork=!0,_=process.report.getReport(),process.report.excludeNetwork=e}else _={};return _};K.exports={isLinux:Y,getReport:Ke}});var Q=v((Ut,z)=>{"use strict";var y=j("fs"),Xe="/usr/bin/ldd",ze="/proc/self/exe",C=2048,Qe=e=>{let t=y.openSync(e,"r"),r=Buffer.alloc(C),o=y.readSync(t,r,0,C,0);return y.close(t,()=>{}),r.subarray(0,o)},Ze=e=>new Promise((t,r)=>{y.open(e,"r",(o,n)=>{if(o)r(o);else{let s=Buffer.alloc(C);y.read(n,s,0,C,0,(i,c)=>{t(s.subarray(0,c)),y.close(n,()=>{})})}})});z.exports={LDD_PATH:Xe,SELF_PATH:ze,readFileSync:Qe,readFile:Ze}});var ee=v((Vt,Z)=>{"use strict";var et=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 n=0;n<o;n++){let s=t+n*r;if(e.readUInt32LE(s)===3){let c=e.readUInt32LE(s+8),h=e.readUInt32LE(s+32);return e.subarray(c,c+h).toString().replace(/\0.*$/g,"")}}return null};Z.exports={interpreterPath:et}});var Ee=v((Bt,be)=>{"use strict";var re=j("child_process"),{isLinux:b,getReport:ne}=X(),{LDD_PATH:w,SELF_PATH:oe,readFile:A,readFileSync:I}=Q(),{interpreterPath:se}=ee(),l,f,d,ie="getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true",m="",ce=()=>m||new Promise(e=>{re.exec(ie,(t,r)=>{m=t?" ":r,e(m)})}),ae=()=>{if(!m)try{m=re.execSync(ie,{encoding:"utf8"})}catch{m=" "}return m},p="glibc",ue=/LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i,g="musl",tt=e=>e.includes("libc.musl-")||e.includes("ld-musl-"),le=()=>{let e=ne();return e.header&&e.header.glibcVersionRuntime?p:Array.isArray(e.sharedObjects)&&e.sharedObjects.some(tt)?g:null},fe=e=>{let[t,r]=e.split(/[\r\n]+/);return t&&t.includes(p)?p:r&&r.includes(g)?g:null},de=e=>{if(e){if(e.includes("/ld-musl-"))return g;if(e.includes("/ld-linux-"))return p}return null},pe=e=>(e=e.toString(),e.includes("musl")?g:e.includes("GNU C Library")?p:null),rt=async()=>{if(f!==void 0)return f;f=null;try{let e=await A(w);f=pe(e)}catch{}return f},nt=()=>{if(f!==void 0)return f;f=null;try{let e=I(w);f=pe(e)}catch{}return f},ot=async()=>{if(l!==void 0)return l;l=null;try{let e=await A(oe),t=se(e);l=de(t)}catch{}return l},st=()=>{if(l!==void 0)return l;l=null;try{let e=I(oe),t=se(e);l=de(t)}catch{}return l},me=async()=>{let e=null;if(b()&&(e=await ot(),!e&&(e=await rt(),e||(e=le()),!e))){let t=await ce();e=fe(t)}return e},ge=()=>{let e=null;if(b()&&(e=st(),!e&&(e=nt(),e||(e=le()),!e))){let t=ae();e=fe(t)}return e},it=async()=>b()&&await me()!==p,ct=()=>b()&&ge()!==p,at=async()=>{if(d!==void 0)return d;d=null;try{let t=(await A(w)).match(ue);t&&(d=t[1])}catch{}return d},ut=()=>{if(d!==void 0)return d;d=null;try{let t=I(w).match(ue);t&&(d=t[1])}catch{}return d},he=()=>{let e=ne();return e.header&&e.header.glibcVersionRuntime?e.header.glibcVersionRuntime:null},te=e=>e.trim().split(/\s+/)[1],ye=e=>{let[t,r,o]=e.split(/[\r\n]+/);return t&&t.includes(p)?te(t):r&&o&&r.includes(g)?te(o):null},lt=async()=>{let e=null;if(b()&&(e=await at(),e||(e=he()),!e)){let t=await ce();e=ye(t)}return e},ft=()=>{let e=null;if(b()&&(e=ut(),e||(e=he()),!e)){let t=ae();e=ye(t)}return e};be.exports={GLIBC:p,MUSL:g,family:me,familySync:ge,isNonGlibcLinux:it,isNonGlibcLinuxSync:ct,version:lt,versionSync:ft}});import St from"node:module";import{basename as kt,dirname as Tt,join as At}from"node:path";import*as $e from"node:sea";import{fileURLToPath as It,pathToFileURL as P}from"node:url";import{basename as dt,join as N}from"node:path";var M="0.0.1";import{readdir as qe,access as Ge,constants as We}from"node:fs/promises";import{join as a,basename as U}from"node:path";import{homedir as x}from"node:os";function B(){return process.env.XDG_CACHE_HOME||a(x(),".cache")}function q(){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 G(){let e=process.argv.indexOf("--prefer-version");if(!(e===-1||e+1>=process.argv.length))return process.argv[e+1]}function Je(){if(process.platform==="darwin")return a(x(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||a(x(),".cache");return a(e,"copilot")}return a(B(),"copilot")}function W(){let e=[];return process.env.COPILOT_CACHE_HOME&&e.push(a(process.env.COPILOT_CACHE_HOME,"pkg")),e.push(a(Je(),"pkg")),e.push(a(B(),"copilot","pkg")),process.env.COPILOT_HOME&&e.push(a(process.env.COPILOT_HOME,"pkg")),e.push(a(x(),".copilot","pkg")),[...new Set(e)]}function V(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(t)return[Number(t[1]),Number(t[2]),Number(t[3])]}function Ye(e,t){let r=V(e),o=V(t);if(!r&&!o)return 0;if(!r)return-1;if(!o)return 1;for(let i=0;i<3;i++)if(r[i]!==o[i])return r[i]-o[i];let n=e.includes("-"),s=t.includes("-");return n!==s?n?-1:1:e.localeCompare(t)}async function J(e,...t){let r=[];for(let o of t){let n;try{n=await qe(o)}catch{continue}for(let s of n){let i=a(o,s);try{await Ge(a(i,e),We.R_OK),r.push(i)}catch{continue}}}return r.sort((o,n)=>{let s=Ye(U(n),U(o));return s!==0?s:o.localeCompare(n)}),r}import{join as xe}from"node:path";var O=Be(Ee(),1);function L(e={}){return(e.platform??process.platform)!=="linux"?"gnu":(e.detectLibcFamily??O.familySync)()===O.MUSL?"musl":"gnu"}function F(e=process.platform,t){let r=t??(e==="linux"?L():"gnu");return e==="linux"&&r==="musl"?"linuxmusl":e}function ve(e=process.platform,t,r=process.arch){return`${F(e,t)}-${r}`}function _e(){let e=ve();return W().flatMap(t=>[xe(t,"universal"),xe(t,e)])}function pt(){return process.env.COPILOT_CLI_VERSION?process.env.COPILOT_CLI_VERSION:"1.0.64-3"}async function Ce(e,t){let r=N(e,"app.js"),o=pt()===M,n=G();if(t&&(n||q()&&!o)){let s=_e(),i=await J("app.js",...s);if(n){let c=i.find(h=>dt(h)===n);c?r=N(c,"app.js"):process.stderr.write(`Warning: preferred version ${n} not found in package cache, using built-in version
`)}else i.length>0&&(r=N(i[0],"app.js"))}return r}import{existsSync as mt}from"node:fs";import{basename as gt,resolve as ht}from"node:path";var we="extension_bootstrap.mjs";function Oe(e,t,r=mt){let o=e.find(i=>gt(i)===we);if(!o)return;process.stderr.write(`[extension-fork] resolveBootstrapPath: __dir=${t}, argv-bootstrap=${o}

@@ -12,0 +12,0 @@ `);let n=ht(t,"preloads",we),s=r(n);if(process.stderr.write(`[extension-fork] resolveBootstrapPath: localBootstrap=${n}, localExists=${s}

{
"name": "@github/copilot-linuxmusl-arm64",
"version": "1.0.64-2",
"version": "1.0.64-3",
"description": "GitHub Copilot CLI for linuxmusl-arm64",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md",

@@ -1,2 +0,2 @@

(()=>{const stack=new Error().stack;stack&&(globalThis._sentryDebugIds=globalThis._sentryDebugIds||{},globalThis._sentryDebugIds[stack]="49025cfe-73d3-5d32-8006-df3826a84f3a",globalThis._sentryDebugIdIdentifier="sentry-dbid-49025cfe-73d3-5d32-8006-df3826a84f3a");})();
(()=>{const stack=new Error().stack;stack&&(globalThis._sentryDebugIds=globalThis._sentryDebugIds||{},globalThis._sentryDebugIds[stack]="8987d944-b2b4-510a-b7c6-388a2de1a1ea",globalThis._sentryDebugIdIdentifier="sentry-dbid-8987d944-b2b4-510a-b7c6-388a2de1a1ea");})();

@@ -53,4 +53,4 @@ /*---------------------------------------------------------------------------------------------

const __dirname = __path.dirname(__filename);
import{parentPort as T,workerData as B}from"node:worker_threads";var m=class{initialQueue=[];initialQueueResolvers=Promise.withResolvers();logWriter=null;writePromise=this.initialQueueResolvers.promise;setLogWriter(r){this.logWriter=r;for(let t of this.initialQueue)this.writePromise=this.logWriter.writeLog(t.method,t.message);this.initialQueue=[],this.initialQueueResolvers.resolve()}async flush(){await this.writePromise}async dispose(){await this.flush()}outputPath(){return this.logWriter?.outputPath()}logToLevel(r,t){this.logWriter?this.writePromise=this.logWriter.writeLog(r,t):this.initialQueue.push({method:r,message:t})}info(r){this.logToLevel("info",r)}debug(r){this.logToLevel("debug",r)}warning(r){this.logToLevel("warning",r)}error(r){this.logToLevel("error",r instanceof Error?r.message:r)}log(r){this.error(r)}isDebug(){return!1}shouldLog(r){return!0}notice(r){this.info(r instanceof Error?r.message:r)}startGroup(r,t){this.info(`--- Start of group: ${r} ---`)}endGroup(r){this.info("--- End of group ---")}},u=new m;import{createRequire as j}from"node:module";import*as o from"node:fs/promises";import*as a from"node:path";import{createHash as W}from"node:crypto";import{join as l,basename as ne}from"node:path";import{homedir as h}from"node:os";function F(){return process.env.XDG_CACHE_HOME||l(h(),".cache")}function b(){if(process.platform==="darwin")return l(h(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||l(h(),".cache");return l(e,"copilot")}return l(F(),"copilot")}function D(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 y(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 D(r)}var H=1,S=".complete";var w={"win32-x64":"win-x64","win32-arm64":"win-arm64","linux-x64":"linux-x64","darwin-arm64":"osx-arm64"};function I(){return typeof __foundryRequire<"u"&&__foundryRequire||j(import.meta.url)}var f;function U(){if(f)return f;try{let e=I()("foundry-local-sdk/script/install-utils.cjs");if(typeof e.runInstall!="function")throw new Error(`Expected exports {runInstall: function}, got: ${JSON.stringify(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,typeof t])))}`);return f=e,f}catch(e){throw new Error(`Failed to load foundry-local-sdk/script/install-utils.cjs: ${y(e)}. The upstream foundry-local-sdk installer may have changed shape \u2014 re-run the audit checklist in src/cli/voice/foundry/installer/nativeLoader.ts and update accordingly.`)}}var g;function J(){if(g)return g;try{let e=I()("foundry-local-sdk/deps_versions.json");if(typeof e["foundry-local-core"]?.nuget!="string"||typeof e.onnxruntime?.version!="string"||typeof e["onnxruntime-genai"]?.version!="string")throw new Error('deps_versions.json is missing one of the expected version keys: ["foundry-local-core"].nuget, .onnxruntime.version, ["onnxruntime-genai"].version');return g=e,g}catch(e){throw new Error(`Failed to load foundry-local-sdk/deps_versions.json: ${y(e)}. The upstream foundry-local-sdk installer may have changed shape \u2014 re-run the audit checklist in src/cli/voice/foundry/installer/nativeLoader.ts and update accordingly.`)}}function O(e=process.platform){let r=J();return[{name:"Microsoft.AI.Foundry.Local.Core",version:r["foundry-local-core"].nuget},{name:e==="linux"?"Microsoft.ML.OnnxRuntime.Gpu.Linux":"Microsoft.ML.OnnxRuntime.Foundry",version:r.onnxruntime.version},{name:"Microsoft.ML.OnnxRuntimeGenAI.Foundry",version:r["onnxruntime-genai"].version}]}function C(e){return e==="win32"?".dll":e==="darwin"?".dylib":".so"}function G(e,r){return a.join(e,`Microsoft.AI.Foundry.Local.Core${C(r)}`)}function V(e){let r=C(e),t=e==="win32"?"":"lib";return[`Microsoft.AI.Foundry.Local.Core${r}`,`${t}onnxruntime${r}`,`${t}onnxruntime-genai${r}`]}function q(e,r=process.platform,t=process.arch){let n=w[`${r}-${t}`];if(!n)throw new Error(`Voice mode not supported on ${r}-${t}`);let s=e??process.env.COPILOT_CACHE_HOME??b(),i=O(r),c=W("sha256").update(JSON.stringify({schema:H,artifacts:i})).digest("hex").slice(0,12);return a.join(s,"foundry",c,n)}async function _(e={}){let r=e.platform??process.platform,t=e.arch??process.arch,n=`${r}-${t}`;if(!w[n])throw new Error(`Voice mode is not supported on ${n}. Supported platforms: ${Object.keys(w).join(", ")}.`);let i=q(e.cacheRoot,r,t),c=G(i,r),d=V(r);return await R(i,d)?{corePath:c}:(e.onDownloadStart?.(),await Y(i,r,d,e.runInstall),{corePath:c})}async function R(e,r){return await v(a.join(e,S))?(await Promise.all(r.map(n=>v(a.join(e,n))))).every(Boolean):!1}async function v(e){try{return await o.access(e),!0}catch{return!1}}async function Y(e,r,t,n){let s=a.dirname(e);await o.mkdir(s,{recursive:!0});let i=a.join(s,`.tmp-${a.basename(e)}-${process.pid}-${Date.now()}`);await o.mkdir(i,{recursive:!0});try{let c=n??U().runInstall,d=O(r);await X(()=>c(d,{binDir:i}));for(let P of t)if(!await v(a.join(i,P)))throw new Error(`Foundry runtime download finished but required file is missing: ${P}. RID for ${r} may not be supported by the published packages.`);await o.writeFile(a.join(i,S),""),await K(i,e,t)}catch(c){throw await o.rm(i,{recursive:!0,force:!0}).catch(()=>{}),c}}async function K(e,r,t){try{await o.rename(e,r)}catch(n){let s=n.code;if(s==="ENOTEMPTY"||s==="EEXIST"||s==="EPERM"){if(await R(r,t)){await o.rm(e,{recursive:!0,force:!0}).catch(()=>{});return}await o.rm(r,{recursive:!0,force:!0}),await o.rename(e,r);return}throw n}}async function X(e){let r=process.stdout.write.bind(process.stdout),t=process.stderr.write.bind(process.stderr);process.stdout.write=(()=>!0),process.stderr.write=(()=>!0);try{return await e()}finally{process.stdout.write=r,process.stderr.write=t}}var E=class extends Error{constructor(t,n,s){super(t,s);this.code=n;this.name="VoiceBackendError"}};function $(e){return e instanceof E?{message:e.message,code:e.code}:e instanceof Error?{message:e.message}:{message:String(e)}}function M(e){return e instanceof Error?e:new Error(String(e))}var z=16;function k(e){return N(e,new WeakSet,0)}function N(e,r,t){if(t>=z)return"<cause chain truncated>";if(typeof e=="object"&&e!==null){if(r.has(e))return"<cyclic cause>";r.add(e)}if(!(e instanceof Error))return String(e);let n=e.stack??`${e.name}: ${e.message}`;if(e.cause===void 0)return n;let s=N(e.cause,r,t+1);return`${n}
Caused by: ${s}`}var x=16*1024,L=class{constructor(r){this.port=r}writeLog(r,t){let n={kind:"log",level:r,message:Q(t)};try{this.port.postMessage(n)}catch{}return Promise.resolve()}outputPath(){return"<voice-worker>"}};function A(e,r=u){r.setLogWriter(new L(e))}function Q(e){return e.length<=x?e:`${e.slice(0,x)}\u2026 [truncated, ${e.length-x} more chars]`}if(!T)throw new Error("voice-installer.worker.js must be loaded as a worker thread.");var p=T;A(p);var Z=B??{};async function ee(){try{let r={kind:"ok",location:await _({cacheRoot:Z.cacheRoot,onDownloadStart:()=>{let t={kind:"download-started"};p.postMessage(t)}})};p.postMessage(r)}catch(e){let r=M(e);u.error(`[voice-installer worker] install failed: ${k(r)}`);let t={kind:"error",error:$(r)};p.postMessage(t)}finally{setImmediate(()=>process.exit(0))}}ee().catch(e=>{u.error(`[voice-installer worker] fatal: ${k(e)}`),process.exit(1)});
import{parentPort as T,workerData as B}from"node:worker_threads";var m=class{initialQueue=[];initialQueueResolvers=Promise.withResolvers();logWriter=null;writePromise=this.initialQueueResolvers.promise;setLogWriter(r){this.logWriter=r;for(let t of this.initialQueue)this.writePromise=this.logWriter.writeLog(t.method,t.message);this.initialQueue=[],this.initialQueueResolvers.resolve()}async flush(){await this.writePromise}async dispose(){await this.flush()}outputPath(){return this.logWriter?.outputPath()}logToLevel(r,t){this.logWriter?this.writePromise=this.logWriter.writeLog(r,t):this.initialQueue.push({method:r,message:t})}info(r){this.logToLevel("info",r)}debug(r){this.logToLevel("debug",r)}warning(r){this.logToLevel("warning",r)}error(r){this.logToLevel("error",r instanceof Error?r.message:r)}log(r){this.error(r)}isDebug(){return!1}shouldLog(r){return!0}notice(r){this.info(r instanceof Error?r.message:r)}startGroup(r,t){this.info(`--- Start of group: ${r} ---`)}endGroup(r){this.info("--- End of group ---")}},u=new m;import{createRequire as j}from"node:module";import*as o from"node:fs/promises";import*as a from"node:path";import{createHash as W}from"node:crypto";import{join as l,basename as ne}from"node:path";import{homedir as h}from"node:os";function F(){return process.env.XDG_CACHE_HOME||l(h(),".cache")}function b(){if(process.platform==="darwin")return l(h(),"Library","Caches","copilot");if(process.platform==="win32"){let e=process.env.LOCALAPPDATA||l(h(),".cache");return l(e,"copilot")}return l(F(),"copilot")}function D(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 y(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 D(r)}var H=1,S=".complete";var w={"win32-x64":"win-x64","win32-arm64":"win-arm64","linux-x64":"linux-x64","darwin-arm64":"osx-arm64"};function I(){return typeof __foundryRequire<"u"&&__foundryRequire||j(import.meta.url)}var f;function U(){if(f)return f;try{let e=I()("foundry-local-sdk/script/install-utils.cjs");if(typeof e.runInstall!="function")throw new Error(`Expected exports {runInstall: function}, got: ${JSON.stringify(Object.fromEntries(Object.entries(e).map(([r,t])=>[r,typeof t])))}`);return f=e,f}catch(e){throw new Error(`Failed to load foundry-local-sdk/script/install-utils.cjs: ${y(e)}. The upstream foundry-local-sdk installer may have changed shape \u2014 re-run the audit checklist in src/cli/voice/foundry/installer/nativeLoader.ts and update accordingly.`)}}var g;function J(){if(g)return g;try{let e=I()("foundry-local-sdk/deps_versions.json");if(typeof e["foundry-local-core"]?.nuget!="string"||typeof e.onnxruntime?.version!="string"||typeof e["onnxruntime-genai"]?.version!="string")throw new Error('deps_versions.json is missing one of the expected version keys: ["foundry-local-core"].nuget, .onnxruntime.version, ["onnxruntime-genai"].version');return g=e,g}catch(e){throw new Error(`Failed to load foundry-local-sdk/deps_versions.json: ${y(e)}. The upstream foundry-local-sdk installer may have changed shape \u2014 re-run the audit checklist in src/cli/voice/foundry/installer/nativeLoader.ts and update accordingly.`)}}function O(e=process.platform){let r=J();return[{name:"Microsoft.AI.Foundry.Local.Core",version:r["foundry-local-core"].nuget},{name:e==="linux"?"Microsoft.ML.OnnxRuntime.Gpu.Linux":"Microsoft.ML.OnnxRuntime.Foundry",version:r.onnxruntime.version},{name:"Microsoft.ML.OnnxRuntimeGenAI.Foundry",version:r["onnxruntime-genai"].version}]}function C(e){return e==="win32"?".dll":e==="darwin"?".dylib":".so"}function G(e,r){return a.join(e,`Microsoft.AI.Foundry.Local.Core${C(r)}`)}function V(e){let r=C(e),t=e==="win32"?"":"lib";return[`Microsoft.AI.Foundry.Local.Core${r}`,`${t}onnxruntime${r}`,`${t}onnxruntime-genai${r}`]}function q(e,r=process.platform,t=process.arch){let n=w[`${r}-${t}`];if(!n)throw new Error(`Voice mode not supported on ${r}-${t}`);let s=e??process.env.COPILOT_CACHE_HOME??b(),i=O(r),c=W("sha256").update(JSON.stringify({schema:H,artifacts:i})).digest("hex").slice(0,12);return a.join(s,"foundry",c,n)}async function _(e={}){let r=e.platform??process.platform,t=e.arch??process.arch,n=`${r}-${t}`;if(!w[n])throw new Error(`Voice mode is not supported on ${n}. Supported platforms: ${Object.keys(w).join(", ")}.`);let i=q(e.cacheRoot,r,t),c=G(i,r),d=V(r);return await R(i,d)?{corePath:c}:(e.onDownloadStart?.(),await Y(i,r,d,e.runInstall),{corePath:c})}async function R(e,r){return await v(a.join(e,S))?(await Promise.all(r.map(n=>v(a.join(e,n))))).every(Boolean):!1}async function v(e){try{return await o.access(e),!0}catch{return!1}}async function Y(e,r,t,n){let s=a.dirname(e);await o.mkdir(s,{recursive:!0});let i=a.join(s,`.tmp-${a.basename(e)}-${process.pid}-${Date.now()}`);await o.mkdir(i,{recursive:!0});try{let c=n??U().runInstall,d=O(r);await X(()=>c(d,{binDir:i}));for(let P of t)if(!await v(a.join(i,P)))throw new Error(`Foundry runtime download finished but required file is missing: ${P}. RID for ${r} may not be supported by the published packages.`);await o.writeFile(a.join(i,S),""),await K(i,e,t)}catch(c){throw await o.rm(i,{recursive:!0,force:!0}).catch(()=>{}),c}}async function K(e,r,t){try{await o.rename(e,r)}catch(n){let s=n.code;if(s==="ENOTEMPTY"||s==="EEXIST"||s==="EPERM"){if(await R(r,t)){await o.rm(e,{recursive:!0,force:!0}).catch(()=>{});return}await o.rm(r,{recursive:!0,force:!0}),await o.rename(e,r);return}throw n}}async function X(e){let r=process.stdout.write.bind(process.stdout),t=process.stderr.write.bind(process.stderr);process.stdout.write=(()=>!0),process.stderr.write=(()=>!0);try{return await e()}finally{process.stdout.write=r,process.stderr.write=t}}var E=class extends Error{constructor(t,n,s){super(t,s);this.code=n;this.name="VoiceBackendError"}code};function $(e){return e instanceof E?{message:e.message,code:e.code}:e instanceof Error?{message:e.message}:{message:String(e)}}function M(e){return e instanceof Error?e:new Error(String(e))}var z=16;function k(e){return N(e,new WeakSet,0)}function N(e,r,t){if(t>=z)return"<cause chain truncated>";if(typeof e=="object"&&e!==null){if(r.has(e))return"<cyclic cause>";r.add(e)}if(!(e instanceof Error))return String(e);let n=e.stack??`${e.name}: ${e.message}`;if(e.cause===void 0)return n;let s=N(e.cause,r,t+1);return`${n}
Caused by: ${s}`}var x=16*1024,L=class{constructor(r){this.port=r}port;writeLog(r,t){let n={kind:"log",level:r,message:Q(t)};try{this.port.postMessage(n)}catch{}return Promise.resolve()}outputPath(){return"<voice-worker>"}};function A(e,r=u){r.setLogWriter(new L(e))}function Q(e){return e.length<=x?e:`${e.slice(0,x)}\u2026 [truncated, ${e.length-x} more chars]`}if(!T)throw new Error("voice-installer.worker.js must be loaded as a worker thread.");var p=T;A(p);var Z=B??{};async function ee(){try{let r={kind:"ok",location:await _({cacheRoot:Z.cacheRoot,onDownloadStart:()=>{let t={kind:"download-started"};p.postMessage(t)}})};p.postMessage(r)}catch(e){let r=M(e);u.error(`[voice-installer worker] install failed: ${k(r)}`);let t={kind:"error",error:$(r)};p.postMessage(t)}finally{setImmediate(()=>process.exit(0))}}ee().catch(e=>{u.error(`[voice-installer worker] fatal: ${k(e)}`),process.exit(1)});
//# sourceMappingURL=voice-installer.worker.js.map

@@ -1,2 +0,2 @@

(()=>{const stack=new Error().stack;stack&&(globalThis._sentryDebugIds=globalThis._sentryDebugIds||{},globalThis._sentryDebugIds[stack]="148ffc1d-a79c-5ba4-881a-37f8b4d1d4f0",globalThis._sentryDebugIdIdentifier="sentry-dbid-148ffc1d-a79c-5ba4-881a-37f8b4d1d4f0");})();
(()=>{const stack=new Error().stack;stack&&(globalThis._sentryDebugIds=globalThis._sentryDebugIds||{},globalThis._sentryDebugIds[stack]="49560a38-1aaa-597b-a986-1f298c8b0774",globalThis._sentryDebugIdIdentifier="sentry-dbid-49560a38-1aaa-597b-a986-1f298c8b0774");})();

@@ -53,3 +53,3 @@ /*---------------------------------------------------------------------------------------------

const __dirname = __path.dirname(__filename);
var a=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,v)=>(typeof require<"u"?require:r)[v]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var i=u(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getWorkerPipeName=P;function P(e){return"".concat(e,"-worker")}});var _=u(p=>{Object.defineProperty(p,"__esModule",{value:!0});var o=a("worker_threads"),s=a("net"),k=i(),c=o.workerData.conoutPipeName,n=new s.Socket;n.setEncoding("utf8");n.connect(c,function(){var e=(0,s.createServer)(function(r){n.pipe(r)});if(e.listen((0,k.getWorkerPipeName)(c)),!o.parentPort)throw new Error("worker_threads parentPort is null");o.parentPort.postMessage(1)})});export default _();
var u=(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 i=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var c=i(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});o.getWorkerPipeName=P;function P(e){return"".concat(e,"-worker")}});var _=i(v=>{Object.defineProperty(v,"__esModule",{value:!0});var n=u("worker_threads"),p=u("net"),k=c(),s=n.workerData.conoutPipeName,a=new p.Socket;a.setEncoding("utf8");a.connect(s,function(){var e=(0,p.createServer)(function(r){a.pipe(r)});if(e.listen((0,k.getWorkerPipeName)(s)),!n.parentPort)throw new Error("worker_threads parentPort is null");n.parentPort.postMessage(1)})});export default _();
//# sourceMappingURL=conoutSocketWorker.js.map

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 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

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