@github/copilot 1.0.105 → 1.0.106-1

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 (3) hide show
  1. package/README.md +17 -0
  2. package/npm-loader.js +2 -2
  3. package/package.json +13 -10
package/README.md CHANGED
@@ -121,6 +121,23 @@ Launch `copilot` in a folder that contains code you want to work with.
121
121
 
122
122
  By default, `copilot` utilizes Claude Sonnet 4.5. Run the `/model` slash command to choose from other available models, including Claude Sonnet 4 and GPT-5.
123
123
 
124
+ ### Container image
125
+
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
+
128
+ Set a connection token and a GitHub token, then start the server:
129
+
130
+ ```bash
131
+ export COPILOT_CONNECTION_TOKEN="$(openssl rand -hex 32)"
132
+ docker run --rm \
133
+ -p 127.0.0.1:4321:4321 \
134
+ -e COPILOT_CONNECTION_TOKEN \
135
+ -e COPILOT_GITHUB_TOKEN \
136
+ ghcr.io/github/copilot-cli:latest
137
+ ```
138
+
139
+ Set `COPILOT_GITHUB_TOKEN` in your environment before running the command. For version-pinned deployments, use a release tag instead of `latest`. See the [container image guide](./container/README.md) for SDK connection examples, configuration, security considerations, and build instructions.
140
+
124
141
  ### Experimental Mode
125
142
 
126
143
  Experimental mode enables access to new features that are still in development. You can activate experimental mode by:
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 o}from"node:child_process";import{fileURLToPath as i}from"node:url";import{isNonGlibcLinuxSync as e}from"detect-libc";async function a(){for(const t of c())try{const n=i(import.meta.resolve(`@github/copilot-${t}-${process.arch}`)),r=o(n,process.argv.slice(2),{stdio:"inherit"});process.exit(s(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)}a().catch(()=>{});function s(t,n){if(t.error)throw t.error;if(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 c(){return process.platform==="linux"?l()?["linuxmusl","linux"]:["linux"]:[process.platform]}function l(){return e()}
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()}
package/package.json CHANGED
@@ -1,7 +1,10 @@
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.105",
4
+ "version": "1.0.106-1",
5
+ "copilotRuntime": {
6
+ "linuxOpenSSL": "system"
7
+ },
5
8
  "license": "SEE LICENSE IN LICENSE.md",
6
9
  "type": "module",
7
10
  "repository": {
@@ -24,16 +27,16 @@
24
27
  "README.md"
25
28
  ],
26
29
  "buildMetadata": {
27
- "gitCommit": "845c22879d4"
30
+ "gitCommit": "1fb35cfaf22"
28
31
  },
29
32
  "optionalDependencies": {
30
- "@github/copilot-linux-x64": "1.0.105",
31
- "@github/copilot-linux-arm64": "1.0.105",
32
- "@github/copilot-linuxmusl-x64": "1.0.105",
33
- "@github/copilot-linuxmusl-arm64": "1.0.105",
34
- "@github/copilot-darwin-x64": "1.0.105",
35
- "@github/copilot-darwin-arm64": "1.0.105",
36
- "@github/copilot-win32-x64": "1.0.105",
37
- "@github/copilot-win32-arm64": "1.0.105"
33
+ "@github/copilot-linux-x64": "1.0.106-1",
34
+ "@github/copilot-linux-arm64": "1.0.106-1",
35
+ "@github/copilot-linuxmusl-x64": "1.0.106-1",
36
+ "@github/copilot-linuxmusl-arm64": "1.0.106-1",
37
+ "@github/copilot-darwin-x64": "1.0.106-1",
38
+ "@github/copilot-darwin-arm64": "1.0.106-1",
39
+ "@github/copilot-win32-x64": "1.0.106-1",
40
+ "@github/copilot-win32-arm64": "1.0.106-1"
38
41
  }
39
42
  }