@nanobpm/nano-coder 0.5.0 → 0.6.0
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 +9 -7
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -442,11 +442,14 @@ List a provider's models with `--list-models <provider>` (OpenAI-compatible endp
|
|
|
442
442
|
|
|
443
443
|
The `github-copilot` provider uses a GitHub Copilot subscription by authenticating **as the
|
|
444
444
|
VS Code Copilot Chat extension**: a device-flow login with VS Code's OAuth client ID, an
|
|
445
|
-
exchange for a short-lived Copilot session token, and
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
445
|
+
exchange for a short-lived Copilot session token, and model calls with VS Code's editor
|
|
446
|
+
headers. Each model is routed to the upstream API Copilot serves it through — Chat
|
|
447
|
+
Completions by default, the OpenAI Responses endpoint for `gpt-*`/`grok-*`/`oswe*`/`mai-*`
|
|
448
|
+
models (e.g. `gpt-6-astra`, which Copilot serves *only* via Responses), and the Anthropic
|
|
449
|
+
Messages endpoint for Claude 4.x/5.x. This is the approach several open-source agents
|
|
450
|
+
(e.g. pi) take, but it is **not a GitHub-sanctioned integration**. It may breach GitHub's
|
|
451
|
+
terms or your organisation's Copilot policy, it can break without notice, and misuse could
|
|
452
|
+
get an account flagged. It is never used unless you select it.
|
|
450
453
|
|
|
451
454
|
```bash
|
|
452
455
|
nano-coder --login github-copilot # interactive; saves the OAuth token (0600)
|
|
@@ -457,8 +460,7 @@ nano-coder --model github-copilot/gpt-4.1
|
|
|
457
460
|
Headless workers can't do the device flow; set `GITHUB_COPILOT_OAUTH_TOKEN` to a token from a
|
|
458
461
|
previous login instead (credentials live in `<data dir>/nano-coder/github-copilot.json`).
|
|
459
462
|
Tool follow-ups are sent with `X-Initiator: agent`, so a turn is billed like one VS Code
|
|
460
|
-
request. `GITHUB_COPILOT_DOMAIN` selects a GHE.com host.
|
|
461
|
-
through its Responses API are not supported.
|
|
463
|
+
request. `GITHUB_COPILOT_DOMAIN` selects a GHE.com host.
|
|
462
464
|
|
|
463
465
|
The sanctioned route is the [Copilot SDK](https://github.com/github/copilot-sdk), which
|
|
464
466
|
drives the Copilot CLI's own agent loop rather than exposing the model.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-coder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "A 6MB coding agent. Run a fleet on your laptop.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"node": ">=18"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@nanobpm/nano-coder-darwin-arm64": "0.
|
|
35
|
-
"@nanobpm/nano-coder-darwin-x64": "0.
|
|
36
|
-
"@nanobpm/nano-coder-linux-arm64": "0.
|
|
37
|
-
"@nanobpm/nano-coder-linux-x64": "0.
|
|
34
|
+
"@nanobpm/nano-coder-darwin-arm64": "0.6.0",
|
|
35
|
+
"@nanobpm/nano-coder-darwin-x64": "0.6.0",
|
|
36
|
+
"@nanobpm/nano-coder-linux-arm64": "0.6.0",
|
|
37
|
+
"@nanobpm/nano-coder-linux-x64": "0.6.0"
|
|
38
38
|
}
|
|
39
39
|
}
|