@easysociable/cli 0.1.35 → 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 +22 -2
- package/dist/easysociable.js +298 -11
- package/dist/easysociable.js.map +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -99,7 +99,9 @@ can be deleted. To register by hand:
|
|
|
99
99
|
claude mcp add -s user easysociable -- easysociable mcp serve --transport stdio
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
The server
|
|
102
|
+
The server starts without a stored key; until you run `easysociable auth login`,
|
|
103
|
+
every tool returns an `AUTH_REQUIRED` result telling you to log in. Credentials are
|
|
104
|
+
re-read on each tool call, so no host restart is needed after login
|
|
103
105
|
(`install` warns when you are not logged in).
|
|
104
106
|
|
|
105
107
|
### Cursor (`~/.cursor/mcp.json`)
|
|
@@ -118,12 +120,30 @@ The server exits without a stored key: run `easysociable auth login` first
|
|
|
118
120
|
|
|
119
121
|
```bash
|
|
120
122
|
easysociable auth login # opens the browser; approve and the key is stored automatically
|
|
121
|
-
easysociable auth login --api-key <key>
|
|
123
|
+
easysociable auth login --api-key <key> # headless / CI
|
|
122
124
|
easysociable auth status
|
|
123
125
|
easysociable templates list --json
|
|
124
126
|
easysociable mcp serve --transport stdio
|
|
125
127
|
```
|
|
126
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
|
+
|
|
127
147
|
## Other commands
|
|
128
148
|
|
|
129
149
|
| Command | Purpose |
|