@schoolai/shipyard 3.34.0-rc.20260924.0 → 3.34.0

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.
@@ -3,7 +3,7 @@ import {
3
3
  detectCapabilities,
4
4
  refreshMcpServers,
5
5
  registerBuiltInProfiles
6
- } from "./chunk-XTFGUW7P.js";
6
+ } from "./chunk-ACNO5PVJ.js";
7
7
  import "./chunk-BNPSL6S4.js";
8
8
  import "./chunk-EM3SPYXE.js";
9
9
  import "./chunk-OZVA4QIX.js";
@@ -13,7 +13,7 @@ import {
13
13
  import "./chunk-4T2OQAVL.js";
14
14
  import {
15
15
  MCPTokenStore
16
- } from "./chunk-PXPGMWVP.js";
16
+ } from "./chunk-LBIOF4SI.js";
17
17
  import "./chunk-VHPNDDB5.js";
18
18
  import "./chunk-ZFKJAYAN.js";
19
19
  import "./chunk-6PQS5HFO.js";
@@ -26,7 +26,7 @@ import {
26
26
  CURSOR_RUNTIME_ID,
27
27
  DEVIN_RUNTIME_ID,
28
28
  detectMCPServers
29
- } from "./chunk-PXPGMWVP.js";
29
+ } from "./chunk-LBIOF4SI.js";
30
30
  import {
31
31
  isEnoent
32
32
  } from "./chunk-VHPNDDB5.js";
@@ -8861,4 +8861,4 @@ export {
8861
8861
  refreshInstalledAgents,
8862
8862
  refreshCodexAuthSlice
8863
8863
  };
8864
- //# sourceMappingURL=chunk-XTFGUW7P.js.map
8864
+ //# sourceMappingURL=chunk-ACNO5PVJ.js.map
@@ -1254,6 +1254,21 @@ async function readMCPConfig(filePath, source, log, metadataOrNow = {}, now = Da
1254
1254
  effectiveNow
1255
1255
  );
1256
1256
  }
1257
+ function claudeJsonMcpSlice(raw) {
1258
+ let json;
1259
+ try {
1260
+ json = JSON.parse(raw);
1261
+ } catch {
1262
+ return null;
1263
+ }
1264
+ if (!isObjectRecord(json)) return null;
1265
+ const projects = isObjectRecord(json.projects) ? json.projects : {};
1266
+ const projectServers = Object.keys(projects).sort().flatMap((cwd) => {
1267
+ const project = projects[cwd];
1268
+ return isObjectRecord(project) && project.mcpServers !== void 0 ? [[cwd, project.mcpServers]] : [];
1269
+ });
1270
+ return JSON.stringify({ mcpServers: json.mcpServers ?? null, projectServers });
1271
+ }
1257
1272
  function parseClaudeJsonLocalEntries(json, envPaths, metadata) {
1258
1273
  const projects = isObjectRecord(json.projects) ? json.projects : null;
1259
1274
  if (!projects) return { servers: [], invalid: [] };
@@ -1810,6 +1825,7 @@ export {
1810
1825
  redactEnv,
1811
1826
  resetMCPConfigCaches,
1812
1827
  readMCPConfig,
1828
+ claudeJsonMcpSlice,
1813
1829
  readClaudeJsonLocalMcpServers,
1814
1830
  readCodexMCPConfig,
1815
1831
  readCursorMCPConfig,
@@ -1822,4 +1838,4 @@ export {
1822
1838
  resolveAuthStatuses,
1823
1839
  detectMCPServers
1824
1840
  };
1825
- //# sourceMappingURL=chunk-PXPGMWVP.js.map
1841
+ //# sourceMappingURL=chunk-LBIOF4SI.js.map