@taptap/maker 0.0.21-beta.4 → 0.0.21

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 (3) hide show
  1. package/README.md +1 -1
  2. package/dist/maker.js +10 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -30,4 +30,4 @@ This package contains only the Maker CLI/MCP bundle and Maker workflow skills.
30
30
  It does not include the legacy TapTap Open API MCP server, proxy, native signer,
31
31
  or OpenClaw plugin package contents.
32
32
 
33
- Version: 0.0.21-beta.4
33
+ Version: 0.0.21
package/dist/maker.js CHANGED
@@ -34260,7 +34260,7 @@ function applyDefaults(config2) {
34260
34260
  }
34261
34261
 
34262
34262
  // src/maker/server/mcp.ts
34263
- var VERSION = true ? "0.0.21-beta.4" : "dev";
34263
+ var VERSION = true ? "0.0.21" : "dev";
34264
34264
  var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
34265
34265
  var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
34266
34266
  var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
@@ -36663,7 +36663,7 @@ function formatError2(error2) {
36663
36663
  }
36664
36664
 
36665
36665
  // src/maker/cli/commands.ts
36666
- var VERSION2 = true ? "0.0.21-beta.4" : "dev";
36666
+ var VERSION2 = true ? "0.0.21" : "dev";
36667
36667
  var DEFAULT_MCP_NAME = "taptap-maker";
36668
36668
  var MAKER_NPM_PACKAGE = "@taptap/maker";
36669
36669
  var TWO_PART_COMMANDS = /* @__PURE__ */ new Set(["pat", "mcp", "dev-kit", "logs", "python", "lua-lsp", "agents"]);
@@ -37940,18 +37940,13 @@ function installMcpConfigUnsafe(ide, options) {
37940
37940
  }
37941
37941
  const write = mergeOpenCodeMcpConfig(configPath, options);
37942
37942
  const result = createMcpInstallResult(ide, "OpenCode", configPath, write);
37943
- if (write.changed) {
37943
+ if (write.rewroteJsonc) {
37944
37944
  result.message += "\n Note: OpenCode config was rewritten as standard JSON.";
37945
37945
  }
37946
37946
  return [result];
37947
37947
  }
37948
37948
  if (ide === "workbuddy") {
37949
- return installJsonMcpConfigTargets(
37950
- ide,
37951
- getWorkBuddyMcpInstallPaths(options.mcpName),
37952
- "WorkBuddy",
37953
- options
37954
- );
37949
+ return installJsonMcpConfigTargets(ide, getWorkBuddyMcpInstallPaths(), "WorkBuddy", options);
37955
37950
  }
37956
37951
  return [{ ide, ok: false, message: `Skipped unknown IDE: ${ide}` }];
37957
37952
  }
@@ -37991,7 +37986,7 @@ function getDefaultMcpInstallIdes() {
37991
37986
  if (fs15.existsSync(getOpenCodeMcpConfigPath())) {
37992
37987
  ides.push("opencode");
37993
37988
  }
37994
- if (getWorkBuddyMcpInstallPaths(DEFAULT_MCP_NAME).length > 0) {
37989
+ if (getWorkBuddyMcpInstallPaths().length > 0) {
37995
37990
  ides.push("workbuddy");
37996
37991
  }
37997
37992
  return ides;
@@ -38060,7 +38055,7 @@ function getTraeUnverifiedMcpConfigPaths() {
38060
38055
  function getOpenCodeMcpConfigPath() {
38061
38056
  return path16.join(os4.homedir(), ".config", "opencode", "opencode.jsonc");
38062
38057
  }
38063
- function getWorkBuddyMcpInstallPaths(_mcpName) {
38058
+ function getWorkBuddyMcpInstallPaths() {
38064
38059
  const primary = path16.join(os4.homedir(), ".workbuddy", "mcp.json");
38065
38060
  const runtime = path16.join(os4.homedir(), ".workbuddy", ".mcp.json");
38066
38061
  const preferred = process.platform === "win32" ? primary : runtime;
@@ -38087,6 +38082,8 @@ function mergeJsonMcpConfig(configPath, options) {
38087
38082
  );
38088
38083
  }
38089
38084
  function mergeOpenCodeMcpConfig(configPath, options) {
38085
+ const rawContent = fs15.readFileSync(configPath, "utf8");
38086
+ const rewroteJsonc = normalizeJsonConfigContent(rawContent, { jsonc: true }) !== rawContent;
38090
38087
  const existing = readJsonObject(configPath, { jsonc: true });
38091
38088
  const mcp = asObject(existing.mcp);
38092
38089
  mcp[options.mcpName] = createOpenCodeMcpServerConfig(options);
@@ -38103,12 +38100,13 @@ function mergeOpenCodeMcpConfig(configPath, options) {
38103
38100
  if (!existing.$schema) {
38104
38101
  existing.$schema = "https://opencode.ai/config.json";
38105
38102
  }
38106
- return writeConfigWithTapTapBackupIfChanged(
38103
+ const write = writeConfigWithTapTapBackupIfChanged(
38107
38104
  configPath,
38108
38105
  `${JSON.stringify(existing, null, 2)}
38109
38106
  `,
38110
38107
  (updated) => validateOpenCodeMcpConfig(updated, options)
38111
38108
  );
38109
+ return { ...write, rewroteJsonc: write.changed && rewroteJsonc };
38112
38110
  }
38113
38111
  function mergeCodexMcpConfig(configPath, options) {
38114
38112
  const existing = fs15.existsSync(configPath) ? fs15.readFileSync(configPath, "utf8") : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.21-beta.4",
3
+ "version": "0.0.21",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",