@forumone/throughline-plugin-contract 0.4.0 → 0.4.1

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/dist/mcp.d.ts CHANGED
@@ -17,16 +17,15 @@ export interface McpToolDefinition<Input extends z.ZodType = z.ZodType, Output =
17
17
  * decide. A tool with no `requiredScope` is callable by any authenticated
18
18
  * key, which is the right default for a read.
19
19
  *
20
- * **Nothing enforces this today.** The per-server JSON-RPC handler that read
21
- * it is gone, and `@payloadcms/plugin-mcp` gates on per-key checkboxes it
22
- * generates at config time instead — which this suite cannot fill, because
23
- * every tool is built at `onInit`. So a key that authenticates reaches every
24
- * collected tool.
20
+ * **Nothing reads this.** Enforcement is the per-key checkbox
21
+ * `@payloadcms/plugin-mcp` generates, one per tool, which a server makes
22
+ * possible by declaring its tools' names as the config is built — see
23
+ * `createMcpToolCollector`.
25
24
  *
26
- * Kept, rather than deleted with its enforcer, because this is the tool → scope
27
- * mapping those checkboxes need: it is the input to restoring gating, not a
28
- * leftover. Deleting it would mean re-deriving eleven declarations by hand.
29
- * Tracked as #78.
25
+ * Kept because it is the tool → scope mapping, and says which tools are
26
+ * consequential in a way a checkbox list does not: a scope-aware default
27
+ * (writes off until granted, reads on) would be built from exactly this.
28
+ * Deleting it would mean re-deriving eleven declarations by hand.
30
29
  */
31
30
  requiredScope?: string;
32
31
  /** Handler invoked with validated input plus per-request context. */
package/dist/mcp.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,KAAK,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IACtF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,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAA;IACZ,uFAAuF;IACvF,WAAW,EAAE,MAAM,CAAA;IACnB,4FAA4F;IAC5F,WAAW,EAAE,KAAK,CAAA;IAClB;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,qEAAqE;IACrE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CAC7E;AAED,MAAM,WAAW,cAAc;IAC7B,gEAAgE;IAChE,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9B,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAA;IAClB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forumone/throughline-plugin-contract",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Shared plugin and MCP contract types and the cross-plugin registry for @forumone/throughline core packages.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "zod": "^3.23.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^20.17.0",
32
+ "@types/node": "^24.13.2",
33
33
  "eslint": "^9.15.0",
34
34
  "typescript": "^5.6.0",
35
35
  "@forumone/throughline-eslint-config": "0.0.0",