@easysociable/cli 0.1.36 → 0.1.37
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 +19 -1
- package/dist/easysociable.js +270 -4
- package/dist/easysociable.js.map +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -120,12 +120,30 @@ re-read on each tool call, so no host restart is needed after login
|
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
122
|
easysociable auth login # opens the browser; approve and the key is stored automatically
|
|
123
|
-
easysociable auth login --api-key <key>
|
|
123
|
+
easysociable auth login --api-key <key> # headless / CI
|
|
124
124
|
easysociable auth status
|
|
125
125
|
easysociable templates list --json
|
|
126
126
|
easysociable mcp serve --transport stdio
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
+
The gateway resolves in this order: `EASYSOCIABLE_GATEWAY_URL` (or legacy `EASYSOCIABLE_API_URL`)
|
|
130
|
+
env → the `baseUrl` stored by `auth login` → the build default. The npm package is a production
|
|
131
|
+
build (`https://gateway.easysociable.com`, site `https://easysociable.com`) and never uses a local
|
|
132
|
+
gateway unless you export `EASYSOCIABLE_GATEWAY_URL` for that shell: it ignores a stored
|
|
133
|
+
`127.0.0.1` / `localhost` `baseUrl` (e.g. `http://127.0.0.1:8787` written by CLI ≤ 0.1.36, which
|
|
134
|
+
recovers without re-login) and refuses `auth login --gateway-url http://127.0.0.1:…`.
|
|
135
|
+
|
|
136
|
+
### Building: production vs development
|
|
137
|
+
|
|
138
|
+
Environment defaults are baked at build time from `build-envs.mjs`; a bundle carries exactly one profile.
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
pnpm --filter @easysociable/cli build # production (what prepack/npm publish ships)
|
|
142
|
+
pnpm --filter @easysociable/cli build:dev # development: gateway 127.0.0.1:8787, site 127.0.0.1:5175
|
|
143
|
+
pnpm --filter @easysociable/cli dev # development, watch mode
|
|
144
|
+
pnpm --filter @easysociable/cli check:dist # fails unless dist is a production build (runs in prepack)
|
|
145
|
+
```
|
|
146
|
+
|
|
129
147
|
## Other commands
|
|
130
148
|
|
|
131
149
|
| Command | Purpose |
|