@github/copilot 1.0.106-1 → 1.0.106-10
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.
- package/npm-loader.js +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{
|
|
8
|
-
`),new Error(`Native binary terminated by signal ${
|
|
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-
|
|
4
|
+
"version": "1.0.106-10",
|
|
5
5
|
"copilotRuntime": {
|
|
6
6
|
"linuxOpenSSL": "system"
|
|
7
7
|
},
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"buildMetadata": {
|
|
30
|
-
"gitCommit": "
|
|
30
|
+
"gitCommit": "b3da66080b3"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
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-
|
|
33
|
+
"@github/copilot-linux-x64": "1.0.106-10",
|
|
34
|
+
"@github/copilot-linux-arm64": "1.0.106-10",
|
|
35
|
+
"@github/copilot-linuxmusl-x64": "1.0.106-10",
|
|
36
|
+
"@github/copilot-linuxmusl-arm64": "1.0.106-10",
|
|
37
|
+
"@github/copilot-darwin-x64": "1.0.106-10",
|
|
38
|
+
"@github/copilot-darwin-arm64": "1.0.106-10",
|
|
39
|
+
"@github/copilot-win32-x64": "1.0.106-10",
|
|
40
|
+
"@github/copilot-win32-arm64": "1.0.106-10"
|
|
41
41
|
}
|
|
42
42
|
}
|