@phanthy/phanthy-code 0.1.1 → 0.1.2
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 +17 -2
- package/dist/cli.js +1634 -1631
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,11 +50,26 @@ Set authentication and service configuration through environment variables:
|
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
52
|
export PHANTHY_API_KEY="your-api-key"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`PHANTHY_API_KEY` is the developer-token path. When it is set, the CLI skips web
|
|
56
|
+
login and calls `https://router.phanthy.com` by default.
|
|
57
|
+
|
|
58
|
+
Without `PHANTHY_API_KEY`, the CLI signs in through `https://coding-plan.phanthy.com`
|
|
59
|
+
and sends model API requests to Code with the stored OAuth access token.
|
|
60
|
+
|
|
61
|
+
Useful endpoint overrides:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
export PHANTHY_CODE_BASE_URL="http://localhost:3001"
|
|
65
|
+
export PHANTHY_ROUTER_BASE_URL="https://router.phanthy.com"
|
|
53
66
|
export PHANTHY_BASE_URL="https://your-phanthy-api.example.com"
|
|
54
67
|
```
|
|
55
68
|
|
|
56
|
-
`
|
|
57
|
-
|
|
69
|
+
`PHANTHY_CODE_BASE_URL` points OAuth and normal logged-in API traffic at a local
|
|
70
|
+
or alternate Code deployment. `PHANTHY_ROUTER_BASE_URL` overrides the API-key
|
|
71
|
+
router endpoint. `PHANTHY_BASE_URL` is the strongest override and forces all
|
|
72
|
+
first-party API traffic to a custom endpoint.
|
|
58
73
|
|
|
59
74
|
---
|
|
60
75
|
|