@github/copilot 1.0.106-9 → 1.0.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/npm-loader.js +2 -2
  2. package/package.json +10 -10
package/npm-loader.js CHANGED
@@ -4,5 +4,5 @@
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
5
5
  *--------------------------------------------------------------------------------------------*/
6
6
 
7
- import{spawnSync as i}from"node:child_process";import{writeSync as o}from"node:fs";import{isatty as e}from"node:tty";import{fileURLToPath as a}from"node:url";import{isNonGlibcLinuxSync as s}from"detect-libc";const l="\x1B[<u\x1B[?1049h\x1B[?1049l\x1B[?1006l\x1B[?1003l\x1B[?1002l\x1B[?1001l\x1B[?1000l\x1B[?9l\x1B[?1005l\x1B[?1015l\x1B[?1016l\x1B[?2004l\x1B[?1004l\x1B[?25h\x1B[?2026l";async function c(){for(const t of u())try{const n=a(import.meta.resolve(`@github/copilot-${t}-${process.arch}`)),r=i(n,process.argv.slice(2),{stdio:"inherit"});process.exit(p(r,n))}catch{}console.error("GitHub Copilot CLI: no platform package found. Reinstall with `npm install -g @github/copilot` to fetch the package for your platform."),process.exit(1)}c().catch(()=>{});function p(t,n){if(t.error)throw t.error;if((t.signal||t.status!==0)&&b(t.signal),t.signal)throw process.stderr.write(`GitHub Copilot native binary at ${n} was terminated by signal ${t.signal}.
8
- `),new Error(`Native binary terminated by signal ${t.signal}`);return t.status??1}function b(t){if(!(!e(1)||process.env.TERM==="dumb"&&!t))try{o(1,l)}catch{}}function u(){return process.platform==="linux"?f()?["linuxmusl","linux"]:["linux"]:[process.platform]}function f(){return s()}
7
+ import{spawn as f}from"node:child_process";import{writeSync as u}from"node:fs";import{constants as p}from"node:os";import{isatty as m}from"node:tty";import{fileURLToPath as d}from"node:url";import{isNonGlibcLinuxSync as b}from"detect-libc";const g="\x1B[<u\x1B[?1049h\x1B[?1049l\x1B[?1006l\x1B[?1003l\x1B[?1002l\x1B[?1001l\x1B[?1000l\x1B[?9l\x1B[?1005l\x1B[?1015l\x1B[?1016l\x1B[?2004l\x1B[?1004l\x1B[?25h\x1B[?2026l",x=["SIGINT","SIGTERM","SIGHUP","SIGQUIT"];async function S(){for(const n of y())try{const r=d(import.meta.resolve(`@github/copilot-${n}-${process.arch}`)),t=await h(r,process.argv.slice(2));process.exit(await w(t,r))}catch{}console.error("GitHub Copilot CLI: no platform package found. Reinstall with `npm install -g @github/copilot` to fetch the package for your platform."),process.exit(1)}S().catch(()=>{});function h(n,r){const t=f(n,r,{stdio:"inherit"}),a=new Set,l=x.map(o=>{const i=()=>{process.platform!=="win32"&&(a.add(o),t.kill(o))};return process.on(o,i),[o,i]});return new Promise(o=>{const i=e=>{for(const[s,c]of l)process.off(s,c);o({...e,forwarded:a})};t.once("exit",(e,s)=>i({status:e,signal:s})),t.on("error",e=>{t.pid===void 0&&i({status:null,signal:null,error:e})})})}async function w(n,r){if(n.error)throw n.error;if((n.signal||n.status!==0)&&N(n.signal),n.signal&&n.forwarded.has(n.signal))return process.kill(process.pid,n.signal),await new Promise(t=>setTimeout(t,100)),128+(p.signals[n.signal]??0);if(n.signal)throw process.stderr.write(`GitHub Copilot native binary at ${r} was terminated by signal ${n.signal}.
8
+ `),new Error(`Native binary terminated by signal ${n.signal}`);return n.status??1}function N(n){if(!(!m(1)||process.env.TERM==="dumb"&&!n))try{u(1,g)}catch{}}function y(){return process.platform==="linux"?R()?["linuxmusl","linux"]:["linux"]:[process.platform]}function R(){return b()}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@github/copilot",
3
3
  "description": "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.",
4
- "version": "1.0.106-9",
4
+ "version": "1.0.106",
5
5
  "copilotRuntime": {
6
6
  "linuxOpenSSL": "system"
7
7
  },
@@ -27,16 +27,16 @@
27
27
  "README.md"
28
28
  ],
29
29
  "buildMetadata": {
30
- "gitCommit": "748c6af611e"
30
+ "gitCommit": "2bfb456b9e0"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@github/copilot-linux-x64": "1.0.106-9",
34
- "@github/copilot-linux-arm64": "1.0.106-9",
35
- "@github/copilot-linuxmusl-x64": "1.0.106-9",
36
- "@github/copilot-linuxmusl-arm64": "1.0.106-9",
37
- "@github/copilot-darwin-x64": "1.0.106-9",
38
- "@github/copilot-darwin-arm64": "1.0.106-9",
39
- "@github/copilot-win32-x64": "1.0.106-9",
40
- "@github/copilot-win32-arm64": "1.0.106-9"
33
+ "@github/copilot-linux-x64": "1.0.106",
34
+ "@github/copilot-linux-arm64": "1.0.106",
35
+ "@github/copilot-linuxmusl-x64": "1.0.106",
36
+ "@github/copilot-linuxmusl-arm64": "1.0.106",
37
+ "@github/copilot-darwin-x64": "1.0.106",
38
+ "@github/copilot-darwin-arm64": "1.0.106",
39
+ "@github/copilot-win32-x64": "1.0.106",
40
+ "@github/copilot-win32-arm64": "1.0.106"
41
41
  }
42
42
  }