copilot-relay 0.0.8 → 0.1.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 +5 -1
- package/dist/main.js +504 -178
- package/dist/main.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -44,6 +44,8 @@ Routing:
|
|
|
44
44
|
```sh
|
|
45
45
|
npx copilot-relay@latest auth
|
|
46
46
|
npx copilot-relay@latest start
|
|
47
|
+
npx copilot-relay@latest restart
|
|
48
|
+
npx copilot-relay@latest stop
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
`start` writes `ANTHROPIC_BASE_URL` and a dummy `ANTHROPIC_AUTH_TOKEN` into `~/.claude/settings.json`.
|
|
@@ -69,7 +71,7 @@ webSearchBackend:
|
|
|
69
71
|
| Level | Logs |
|
|
70
72
|
| --- | --- |
|
|
71
73
|
| `error` | Startup, preflight, and request failures |
|
|
72
|
-
| `info` | Errors plus startup status, preflight status, and local HTTP status codes |
|
|
74
|
+
| `info` | Errors plus startup status, preflight status, request IDs, upstream lifecycle, and local HTTP status codes |
|
|
73
75
|
| `debug` | Info plus model routing summaries, Copilot upstream timings, and request payloads |
|
|
74
76
|
|
|
75
77
|
Any other `logLevel` value is invalid and stops startup.
|
|
@@ -90,6 +92,8 @@ The same folder stores `copilot_token.json` for the cached Copilot bearer token,
|
|
|
90
92
|
```sh
|
|
91
93
|
copilot-relay auth
|
|
92
94
|
copilot-relay start
|
|
95
|
+
copilot-relay restart
|
|
96
|
+
copilot-relay stop
|
|
93
97
|
```
|
|
94
98
|
|
|
95
99
|
## Logging
|