slab-mcp 0.1.0 → 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 +22 -9
- package/dist/client.d.ts +3 -1
- package/dist/client.js +3 -1
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -226,15 +226,28 @@ There is **no `NPM_TOKEN` anywhere in this repo** — the workflow mints a short
|
|
|
226
226
|
that npm exchanges for a credential good for one publish, and attaches a provenance attestation
|
|
227
227
|
linking the tarball to the exact commit that built it. Nothing long-lived exists to leak.
|
|
228
228
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
229
|
+
The trusted publisher is configured as:
|
|
230
|
+
|
|
231
|
+
```
|
|
232
|
+
dev-jeb/slab-community -> slab-mcp-publish.yml -> env npm-publish -> npm publish
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**All four of those must agree**, and the workflow filename is load-bearing: npm matches on the
|
|
236
|
+
filename alone (no path, and it must live directly in `.github/workflows/`). Renaming or moving
|
|
237
|
+
`slab-mcp-publish.yml` breaks publishing with an auth error that never mentions the filename, so
|
|
238
|
+
change the npm side first. The `environment: npm-publish` line in the publish job is what puts the
|
|
239
|
+
environment claim in the OIDC token — remove it and npm rejects the publish.
|
|
240
|
+
|
|
241
|
+
One publish workflow per tool, matching this repo's one-directory-one-tool rule: a new publishable
|
|
242
|
+
tool gets its own `<tool>-publish.yml` and its own trusted publisher, and nothing here changes.
|
|
243
|
+
|
|
244
|
+
Two remaining one-time steps:
|
|
245
|
+
|
|
246
|
+
1. **OIDC cannot perform a package's first publish** — npm requires the package to exist before a
|
|
247
|
+
trusted publisher can be attached. Run `cd slab-mcp && npm publish` once by hand, logged in as
|
|
248
|
+
the package owner. Every release after that goes through CI.
|
|
249
|
+
2. GitHub → **Settings → Environments → `npm-publish`** → add yourself as a required reviewer, so
|
|
250
|
+
each release pauses for a human click and a mistaken tag cannot ship on its own.
|
|
238
251
|
|
|
239
252
|
After that, releasing is:
|
|
240
253
|
|
package/dist/client.d.ts
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* nothing about cards. Endpoint knowledge lives in the tool modules, so adding
|
|
6
6
|
* an endpoint never means touching this file.
|
|
7
7
|
*
|
|
8
|
-
* The response types are declared structurally in `types.ts` rather
|
|
8
|
+
* The response types are declared structurally in `types.ts` rather thanß
|
|
9
9
|
* generated, because a generated client would have to be regenerated to stay
|
|
10
10
|
* honest. `GET /openapi.json` is the authoritative contract and is exposed to
|
|
11
11
|
* the model as a resource — see src/resources/index.ts.
|
|
12
|
+
*
|
|
13
|
+
* deploy
|
|
12
14
|
*/
|
|
13
15
|
import type { Config } from './config.js';
|
|
14
16
|
export interface RequestOptions {
|
package/dist/client.js
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* nothing about cards. Endpoint knowledge lives in the tool modules, so adding
|
|
6
6
|
* an endpoint never means touching this file.
|
|
7
7
|
*
|
|
8
|
-
* The response types are declared structurally in `types.ts` rather
|
|
8
|
+
* The response types are declared structurally in `types.ts` rather thanß
|
|
9
9
|
* generated, because a generated client would have to be regenerated to stay
|
|
10
10
|
* honest. `GET /openapi.json` is the authoritative contract and is exposed to
|
|
11
11
|
* the model as a resource — see src/resources/index.ts.
|
|
12
|
+
*
|
|
13
|
+
* deploy
|
|
12
14
|
*/
|
|
13
15
|
import { ApiConnectionError, ApiError } from './errors.js';
|
|
14
16
|
/** Strip undefined values so we never send `{"brand": undefined}` -> `{"brand": null}`. */
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;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