@nanobpm/nano-coder 0.4.1 → 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.
Files changed (2) hide show
  1. package/README.md +11 -8
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -20,7 +20,7 @@ cargo install nano-coder # or build from source
20
20
  - **Sessions**: Append-only JSONL session logs with resume and input-ID deduplication
21
21
  - **Lifecycle Hooks**: 6 hook events for observing/intercepting agent behavior
22
22
  - **Configuration**: TOML-based config file at `~/.config/nano-coder/config.toml`
23
- - **Commands**: `/help`, `/compact`, `/context`, `/verbosity`, `/settings`, `/tools`, `/skills`, `/exit`
23
+ - **Commands**: `/help`, `/compact`, `/context`, `/verbosity`, `/settings`, `/tools`, `/skills`, `/restart`, `/exit`
24
24
  - **Streaming output**: answers stream in, thinking shows collapsed (Ctrl-O expands it), tool calls show inline
25
25
  - **Status line** pinned to the bottom of the terminal, plus manual and automatic context compaction
26
26
  - **Task plans**: `plan_*` tools keep a plan with notes outside the conversation, so long tasks survive compaction, resume and a change of worker
@@ -287,6 +287,7 @@ list is built from the same table as `/help` (`src/commands.rs`).
287
287
  - `/model [provider/model]` - Show or switch the model (conversation is kept)
288
288
  - `/providers` - List providers, endpoints and whether their API key is available
289
289
  - `/session` - Show the session ID and log path
290
+ - `/restart` - Start a fresh session (clean context) without exiting
290
291
  - `/exit` - Exit the agent
291
292
 
292
293
  ## Building and Running
@@ -441,11 +442,14 @@ List a provider's models with `--list-models <provider>` (OpenAI-compatible endp
441
442
 
442
443
  The `github-copilot` provider uses a GitHub Copilot subscription by authenticating **as the
443
444
  VS Code Copilot Chat extension**: a device-flow login with VS Code's OAuth client ID, an
444
- exchange for a short-lived Copilot session token, and Chat Completions calls with VS Code's
445
- editor headers. This is the approach several open-source agents (e.g. pi) take, but it is
446
- **not a GitHub-sanctioned integration**. It may breach GitHub's terms or your organisation's
447
- Copilot policy, it can break without notice, and misuse could get an account flagged. It is
448
- never used unless you select it.
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.
449
453
 
450
454
  ```bash
451
455
  nano-coder --login github-copilot # interactive; saves the OAuth token (0600)
@@ -456,8 +460,7 @@ nano-coder --model github-copilot/gpt-4.1
456
460
  Headless workers can't do the device flow; set `GITHUB_COPILOT_OAUTH_TOKEN` to a token from a
457
461
  previous login instead (credentials live in `<data dir>/nano-coder/github-copilot.json`).
458
462
  Tool follow-ups are sent with `X-Initiator: agent`, so a turn is billed like one VS Code
459
- request. `GITHUB_COPILOT_DOMAIN` selects a GHE.com host. Models that Copilot serves only
460
- through its Responses API are not supported.
463
+ request. `GITHUB_COPILOT_DOMAIN` selects a GHE.com host.
461
464
 
462
465
  The sanctioned route is the [Copilot SDK](https://github.com/github/copilot-sdk), which
463
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.4.1",
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.4.1",
35
- "@nanobpm/nano-coder-darwin-x64": "0.4.1",
36
- "@nanobpm/nano-coder-linux-arm64": "0.4.1",
37
- "@nanobpm/nano-coder-linux-x64": "0.4.1"
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
  }