@taptap/maker 0.0.17-beta.2 → 0.0.17-beta.3

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
@@ -26,4 +26,4 @@ This package contains only the Maker CLI/MCP bundle and Maker workflow skills.
26
26
  It does not include the legacy TapTap Open API MCP server, proxy, native signer,
27
27
  or OpenClaw plugin package contents.
28
28
 
29
- Version: 0.0.17-beta.2
29
+ Version: 0.0.17-beta.3
package/dist/maker.js CHANGED
@@ -28392,7 +28392,13 @@ function positiveInteger(value) {
28392
28392
  }
28393
28393
 
28394
28394
  // src/maker/lifecycle.ts
28395
- var DISCONNECTED_STDIO_CODES = /* @__PURE__ */ new Set(["EPIPE", "ERR_STREAM_DESTROYED", "ECONNRESET"]);
28395
+ var DISCONNECTED_STDIO_CODES = /* @__PURE__ */ new Set([
28396
+ "EPIPE",
28397
+ "ERR_STREAM_DESTROYED",
28398
+ "ECONNRESET",
28399
+ "EIO",
28400
+ "ENXIO"
28401
+ ]);
28396
28402
  function isDisconnectedStdioError(error2) {
28397
28403
  if (!error2 || typeof error2 !== "object") {
28398
28404
  return false;
@@ -33029,7 +33035,7 @@ function extensionFromUrl(url2) {
33029
33035
  }
33030
33036
 
33031
33037
  // src/maker/server/mcp.ts
33032
- var VERSION = true ? "0.0.17-beta.2" : "dev";
33038
+ var VERSION = true ? "0.0.17-beta.3" : "dev";
33033
33039
  var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
33034
33040
  var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
33035
33041
  var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
@@ -35085,6 +35091,10 @@ async function runMakerCli(argv) {
35085
35091
  printHelp();
35086
35092
  return;
35087
35093
  }
35094
+ if (parsed.options.help || parsed.options.h) {
35095
+ printHelp();
35096
+ return;
35097
+ }
35088
35098
  if (command === "init") {
35089
35099
  await runInit(parsed, ctx);
35090
35100
  return;
@@ -36463,13 +36473,22 @@ async function promptRequired(label) {
36463
36473
  throw new Error(`${label} is required in non-interactive mode.`);
36464
36474
  }
36465
36475
  const rl = readline.createInterface({ input, output });
36476
+ let settled = false;
36477
+ const closed = new Promise((_, reject) => {
36478
+ rl.once("close", () => {
36479
+ if (!settled) {
36480
+ reject(new Error(`${label} input closed before a value was provided.`));
36481
+ }
36482
+ });
36483
+ });
36466
36484
  try {
36467
- const answer = await rl.question(`${label}: `);
36485
+ const answer = await Promise.race([rl.question(`${label}: `), closed]);
36468
36486
  if (!answer.trim()) {
36469
36487
  throw new Error(`${label} cannot be empty.`);
36470
36488
  }
36471
36489
  return answer.trim();
36472
36490
  } finally {
36491
+ settled = true;
36473
36492
  rl.close();
36474
36493
  }
36475
36494
  }
@@ -39258,6 +39277,7 @@ main().catch((error2) => {
39258
39277
  function installCrashLogging() {
39259
39278
  installStdioErrorHandler(process.stdout, "stdout-error");
39260
39279
  installStdioErrorHandler(process.stderr, "stderr-error");
39280
+ installStdinErrorHandler();
39261
39281
  let handlingFatalError = false;
39262
39282
  process.on("uncaughtException", (error2) => {
39263
39283
  logCrash("uncaughtException", error2);
@@ -39300,6 +39320,15 @@ function installStdioErrorHandler(stream, source) {
39300
39320
  }
39301
39321
  });
39302
39322
  }
39323
+ function installStdinErrorHandler() {
39324
+ process.stdin.on("error", (error2) => {
39325
+ logCrash("stdin-error", error2);
39326
+ if (isDisconnectedStdioError(error2)) {
39327
+ logLifecycleEvent("stdin-error-disconnected", "Maker stdin became unreadable; exiting.");
39328
+ process.exit(0);
39329
+ }
39330
+ });
39331
+ }
39303
39332
  function safeWriteStderr(message) {
39304
39333
  try {
39305
39334
  process.stderr.write(message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.17-beta.2",
3
+ "version": "0.0.17-beta.3",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",