@taptap/maker 0.0.21-beta.3 → 0.0.21-beta.4

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 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.3
33
+ Version: 0.0.21-beta.4
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.3" : "dev";
34263
+ var VERSION = true ? "0.0.21-beta.4" : "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.3" : "dev";
36666
+ var VERSION2 = true ? "0.0.21-beta.4" : "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"]);
@@ -38269,7 +38269,7 @@ function readJsonObject(filePath, options = {}) {
38269
38269
  }
38270
38270
  const raw = fs15.readFileSync(filePath, "utf8");
38271
38271
  try {
38272
- const normalized = options.jsonc ? normalizeJsonc(raw) : raw;
38272
+ const normalized = normalizeJsonConfigContent(raw, options);
38273
38273
  const parsed = JSON.parse(normalized);
38274
38274
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
38275
38275
  throw new Error("top-level value must be an object");
@@ -38333,7 +38333,7 @@ function validateOpenCodeMcpConfig(content, options) {
38333
38333
  }
38334
38334
  }
38335
38335
  function parseGeneratedJsonObject(content) {
38336
- const parsed = JSON.parse(content);
38336
+ const parsed = JSON.parse(stripLeadingBom(content));
38337
38337
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
38338
38338
  throw new Error("Generated JSON config top-level value must be an object.");
38339
38339
  }
@@ -38342,6 +38342,13 @@ function parseGeneratedJsonObject(content) {
38342
38342
  function deepJsonEqual(left, right) {
38343
38343
  return JSON.stringify(left) === JSON.stringify(right);
38344
38344
  }
38345
+ function normalizeJsonConfigContent(content, options = {}) {
38346
+ const withoutBom = stripLeadingBom(content);
38347
+ return options.jsonc ? normalizeJsonc(withoutBom) : withoutBom;
38348
+ }
38349
+ function stripLeadingBom(content) {
38350
+ return content.charCodeAt(0) === 65279 ? content.slice(1) : content;
38351
+ }
38345
38352
  function normalizeJsonc(content) {
38346
38353
  return removeTrailingCommas(stripJsonComments(content));
38347
38354
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.21-beta.3",
3
+ "version": "0.0.21-beta.4",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",