@github/copilot 1.0.115-6 → 1.0.115-8
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/README.md +6 -3
- package/npm-loader.js +2 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -125,18 +125,21 @@ By default, `copilot` utilizes Claude Sonnet 4.5. Run the `/model` slash command
|
|
|
125
125
|
|
|
126
126
|
The Copilot CLI is also available as a container image that runs the CLI as a headless server for Copilot SDK clients. Images are published to `ghcr.io/github/copilot-cli` for `linux/amd64` and `linux/arm64`. This image is for connecting SDK clients to a server, not for interactive terminal use.
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
Client apps use `COPILOT_CONNECTION_TOKEN` to connect to the Copilot server. Sessions use a separate GitHub token to access GitHub Copilot. To start the server, generate a random connection token:
|
|
129
129
|
|
|
130
130
|
```bash
|
|
131
131
|
export COPILOT_CONNECTION_TOKEN="$(openssl rand -hex 32)"
|
|
132
132
|
docker run --rm \
|
|
133
133
|
-p 127.0.0.1:4321:4321 \
|
|
134
134
|
-e COPILOT_CONNECTION_TOKEN \
|
|
135
|
-
-e COPILOT_GITHUB_TOKEN \
|
|
136
135
|
ghcr.io/github/copilot-cli:latest
|
|
137
136
|
```
|
|
138
137
|
|
|
139
|
-
|
|
138
|
+
On Windows, use the [PowerShell example](./container/README.md#quick-start).
|
|
139
|
+
|
|
140
|
+
For a local trial, set `COPILOT_CONNECTION_TOKEN_GENERATE=true` to print a generated connection token at startup. On [Kubernetes](./container/README.md#running-on-kubernetes), set `COPILOT_CONNECTION_TOKEN` from a Secret.
|
|
141
|
+
|
|
142
|
+
For GitHub authentication, your backend can pass each user's GitHub token when it creates or resumes an SDK session. To use one default identity instead, export `COPILOT_GITHUB_TOKEN` and add `-e COPILOT_GITHUB_TOKEN` before the image name. See the [container image guide](./container/README.md) for SDK examples, multi-user deployment, and release tags.
|
|
140
143
|
|
|
141
144
|
### Experimental Mode
|
|
142
145
|
|
package/npm-loader.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
|
|
7
|
-
import{spawn as f}from"node:child_process";import{writeSync as
|
|
8
|
-
`),new Error(`Native binary terminated by signal ${
|
|
7
|
+
import{spawn as f}from"node:child_process";import{writeSync as p}from"node:fs";import{constants as u}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 h(){for(const r of N())try{const e=d(import.meta.resolve(`@github/copilot-${r}-${process.arch}`)),o=await w(e,process.argv.slice(2));process.exit(await S(o,e))}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)}h().catch(()=>{});function w(r,e){let o;const s=new Set,a=x.map(n=>{const t=()=>{process.platform!=="win32"&&(s.add(n),o.kill(n))};return process.platform!=="win32"&&process.on(n,t),[n,t]}),l=()=>{for(const[n,t]of a)process.off(n,t)};try{o=f(r,e,{stdio:"inherit"})}catch(n){throw l(),n}if(process.platform==="win32")for(const[n,t]of a)process.on(n,t);return new Promise(n=>{const t=i=>{l(),n({...i,forwarded:s})};o.once("exit",(i,c)=>t({status:i,signal:c})),o.on("error",i=>{o.pid===void 0&&t({status:null,signal:null,error:i})})})}async function S(r,e){if(r.error)throw r.error;if((r.signal||r.status!==0)&&y(r.signal),r.signal&&r.forwarded.has(r.signal))return process.kill(process.pid,r.signal),await new Promise(o=>setTimeout(o,100)),128+(u.signals[r.signal]??0);if(r.signal)throw process.stderr.write(`GitHub Copilot native binary at ${e} was terminated by signal ${r.signal}.
|
|
8
|
+
`),new Error(`Native binary terminated by signal ${r.signal}`);return r.status??1}function y(r){if(!(!m(1)||process.env.TERM==="dumb"&&!r))try{p(1,g)}catch{}}function N(){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.115-
|
|
4
|
+
"version": "1.0.115-8",
|
|
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": "c05d4c449da"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@github/copilot-linux-x64": "1.0.115-
|
|
34
|
-
"@github/copilot-linux-arm64": "1.0.115-
|
|
35
|
-
"@github/copilot-linuxmusl-x64": "1.0.115-
|
|
36
|
-
"@github/copilot-linuxmusl-arm64": "1.0.115-
|
|
37
|
-
"@github/copilot-darwin-x64": "1.0.115-
|
|
38
|
-
"@github/copilot-darwin-arm64": "1.0.115-
|
|
39
|
-
"@github/copilot-win32-x64": "1.0.115-
|
|
40
|
-
"@github/copilot-win32-arm64": "1.0.115-
|
|
33
|
+
"@github/copilot-linux-x64": "1.0.115-8",
|
|
34
|
+
"@github/copilot-linux-arm64": "1.0.115-8",
|
|
35
|
+
"@github/copilot-linuxmusl-x64": "1.0.115-8",
|
|
36
|
+
"@github/copilot-linuxmusl-arm64": "1.0.115-8",
|
|
37
|
+
"@github/copilot-darwin-x64": "1.0.115-8",
|
|
38
|
+
"@github/copilot-darwin-arm64": "1.0.115-8",
|
|
39
|
+
"@github/copilot-win32-x64": "1.0.115-8",
|
|
40
|
+
"@github/copilot-win32-arm64": "1.0.115-8"
|
|
41
41
|
}
|
|
42
42
|
}
|