@crewhaus/target-claude-plugin 0.5.4 → 0.5.6

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -216,7 +216,11 @@ function renderMcpJson(ir) {
216
216
  // Claude Code resolves it on the user's machine); literals render as
217
217
  // their plain string.
218
218
  const rendered = {};
219
- for (const [name, cfg] of entries) {
219
+ for (const [name, entry] of entries) {
220
+ // #406 — `required` is a CrewHaus emit-time decision (which registration
221
+ // call a bundle makes); Claude Code's .mcp.json has no such field, so it
222
+ // must not ride along into the exported artifact.
223
+ const { required: _requiredFlag, ...cfg } = entry;
220
224
  rendered[name] =
221
225
  cfg.transport === "stdio"
222
226
  ? { ...cfg, ...(cfg.env !== undefined ? { env: renderSecretMap(cfg.env) } : {}) }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/target-claude-plugin",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "type": "module",
5
5
  "description": "Track H / §59 — emits an Anthropic-compatible Claude Code plugin directory from any CrewHaus IR variant. Source: claude-plugins-official (Anthropic).",
6
6
  "main": "dist/index.js",
@@ -15,8 +15,8 @@
15
15
  "test": "bun test src"
16
16
  },
17
17
  "dependencies": {
18
- "@crewhaus/errors": "0.5.4",
19
- "@crewhaus/ir": "0.5.4"
18
+ "@crewhaus/errors": "0.5.6",
19
+ "@crewhaus/ir": "0.5.6"
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "author": {