@taptap/maker 0.0.31 → 0.0.32-beta.2
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
|
@@ -19,7 +19,7 @@ taptap-maker install
|
|
|
19
19
|
taptap-maker mcp verify
|
|
20
20
|
taptap-maker mcp install --launcher npx
|
|
21
21
|
taptap-maker mcp verify --mode npx
|
|
22
|
-
npx -y --package @taptap/maker@0.0.
|
|
22
|
+
npx -y --package @taptap/maker@0.0.32-beta.2 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
23
23
|
taptap-maker agents update
|
|
24
24
|
taptap-maker upgrade
|
|
25
25
|
taptap-maker dev-kit update
|
|
@@ -52,10 +52,10 @@ It does not include the legacy TapTap Open API MCP server, proxy, native signer,
|
|
|
52
52
|
or OpenClaw plugin package contents.
|
|
53
53
|
|
|
54
54
|
For likely Maker MCP/proxy infrastructure failures, the bundled workflow asks for user consent once
|
|
55
|
-
before running `npx -y --package @taptap/maker@0.0.
|
|
55
|
+
before running `npx -y --package @taptap/maker@0.0.32-beta.2 taptap-maker mcp report`. The command submits a sanitized GitHub Issue only with
|
|
56
56
|
`--consent`; unavailable GitHub CLI, auth, or network returns `manual_required` with a copyable
|
|
57
57
|
report and never blocks the original Maker task.
|
|
58
58
|
|
|
59
59
|
Full connection and tool-call troubleshooting guide: `docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md`.
|
|
60
60
|
|
|
61
|
-
Version: 0.0.
|
|
61
|
+
Version: 0.0.32-beta.2
|
package/dist/maker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// TapTap Maker MCP - Standalone Bundle
|
|
3
|
-
// TapTap Maker MCP version: 0.0.
|
|
3
|
+
// TapTap Maker MCP version: 0.0.32-beta.2
|
|
4
4
|
import { createRequire } from 'node:module';
|
|
5
5
|
const require = createRequire(import.meta.url);
|
|
6
6
|
const __MAKER_BUNDLE_URL__ = import.meta.url;
|
|
@@ -36682,7 +36682,7 @@ function createMakerAgentsPolicyBody() {
|
|
|
36682
36682
|
" `mcp report --ide <client> --target-dir <project> --context-stdin --consent --json`.",
|
|
36683
36683
|
"- This preserves the configured package version and the absolute Windows node.exe/npm-cli.js.",
|
|
36684
36684
|
"- Only with a known exact installed version, fallback to",
|
|
36685
|
-
" `npx -y --package @taptap/maker@0.0.
|
|
36685
|
+
" `npx -y --package @taptap/maker@0.0.32-beta.2 taptap-maker mcp report ...`.",
|
|
36686
36686
|
"- Never use an unversioned npm package, or assume `taptap-maker`/`npx` is globally available.",
|
|
36687
36687
|
"- Never include the complete conversation, project source, other MCP server entries, PAT/token",
|
|
36688
36688
|
" values, or full environment variables. Normalize the user home path to `~`.",
|
|
@@ -44379,7 +44379,7 @@ function validateConfig(config2) {
|
|
|
44379
44379
|
}
|
|
44380
44380
|
var DEFAULT_LOG_ROOT = "/tmp/taptap-mcp/logs";
|
|
44381
44381
|
function applyDefaults(config2) {
|
|
44382
|
-
var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
44382
|
+
var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
44383
44383
|
const verbose = ((_a3 = config2.options) == null ? void 0 : _a3.verbose) ?? false;
|
|
44384
44384
|
return {
|
|
44385
44385
|
server: {
|
|
@@ -44401,15 +44401,16 @@ function applyDefaults(config2) {
|
|
|
44401
44401
|
reset_timeout_on_progress: ((_e = config2.options) == null ? void 0 : _e.reset_timeout_on_progress) ?? true,
|
|
44402
44402
|
health_check_interval: ((_f = config2.options) == null ? void 0 : _f.health_check_interval) ?? 3e4,
|
|
44403
44403
|
enable_cookie_sticky: ((_g = config2.options) == null ? void 0 : _g.enable_cookie_sticky) ?? true,
|
|
44404
|
-
|
|
44405
|
-
|
|
44406
|
-
|
|
44404
|
+
disable_standalone_sse: ((_h = config2.options) == null ? void 0 : _h.disable_standalone_sse) ?? false,
|
|
44405
|
+
inject_params_per_call: ((_i = config2.options) == null ? void 0 : _i.inject_params_per_call) ?? true,
|
|
44406
|
+
force_inject_progress_token: ((_j = config2.options) == null ? void 0 : _j.force_inject_progress_token) ?? false,
|
|
44407
|
+
exposed_tools: (_k = config2.options) == null ? void 0 : _k.exposed_tools,
|
|
44407
44408
|
log: {
|
|
44408
|
-
root: ((
|
|
44409
|
-
enabled: ((
|
|
44409
|
+
root: ((_m = (_l = config2.options) == null ? void 0 : _l.log) == null ? void 0 : _m.root) ?? DEFAULT_LOG_ROOT,
|
|
44410
|
+
enabled: ((_o = (_n = config2.options) == null ? void 0 : _n.log) == null ? void 0 : _o.enabled) ?? false,
|
|
44410
44411
|
// verbose=true 时自动使用 debug 级别
|
|
44411
|
-
level: verbose ? "debug" : ((
|
|
44412
|
-
max_days: ((
|
|
44412
|
+
level: verbose ? "debug" : ((_q = (_p = config2.options) == null ? void 0 : _p.log) == null ? void 0 : _q.level) ?? "info",
|
|
44413
|
+
max_days: ((_s = (_r = config2.options) == null ? void 0 : _r.log) == null ? void 0 : _s.max_days) ?? 7
|
|
44413
44414
|
}
|
|
44414
44415
|
}
|
|
44415
44416
|
};
|
|
@@ -44419,7 +44420,7 @@ function applyDefaults(config2) {
|
|
|
44419
44420
|
var MAKER_MCP_TRACKING_ACTION = "tapmaker_mcp_call";
|
|
44420
44421
|
var MAKER_MCP_TRACKING_SOURCE = "local_mcp";
|
|
44421
44422
|
var MAKER_MCP_TRACKING_TIMEOUT_MS = 1500;
|
|
44422
|
-
var MAKER_MCP_VERSION = "0.0.
|
|
44423
|
+
var MAKER_MCP_VERSION = "0.0.32-beta.2".trim() ? "0.0.32-beta.2".trim() : "dev";
|
|
44423
44424
|
var TRACKING_ERROR_MAX_LENGTH = 500;
|
|
44424
44425
|
function buildMakerMcpTrackingPayload(event) {
|
|
44425
44426
|
var _a3, _b, _c;
|
|
@@ -44732,7 +44733,7 @@ function createMakerRemoteProxyManager(options = {}) {
|
|
|
44732
44733
|
}
|
|
44733
44734
|
|
|
44734
44735
|
// src/maker/server/mcp.ts
|
|
44735
|
-
var VERSION = true ? "0.0.
|
|
44736
|
+
var VERSION = true ? "0.0.32-beta.2" : "dev";
|
|
44736
44737
|
var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
44737
44738
|
var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
|
|
44738
44739
|
var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
|
|
@@ -46333,6 +46334,7 @@ function createRemoteProxyContext(options) {
|
|
|
46333
46334
|
verbose: true,
|
|
46334
46335
|
reset_timeout_on_progress: true,
|
|
46335
46336
|
force_inject_progress_token: true,
|
|
46337
|
+
disable_standalone_sse: true,
|
|
46336
46338
|
exposed_tools: options.exposedTools
|
|
46337
46339
|
}
|
|
46338
46340
|
};
|
|
@@ -49927,7 +49929,7 @@ function formatError3(error2) {
|
|
|
49927
49929
|
}
|
|
49928
49930
|
|
|
49929
49931
|
// src/maker/cli/commands.ts
|
|
49930
|
-
var VERSION2 = true ? "0.0.
|
|
49932
|
+
var VERSION2 = true ? "0.0.32-beta.2" : "dev";
|
|
49931
49933
|
var DEFAULT_MCP_NAME = "taptap-maker";
|
|
49932
49934
|
var MAKER_NPM_PACKAGE = "@taptap/maker";
|
|
49933
49935
|
var TWO_PART_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -53970,10 +53972,13 @@ var CookieJar = class {
|
|
|
53970
53972
|
return this.cookies.size > 0;
|
|
53971
53973
|
}
|
|
53972
53974
|
};
|
|
53973
|
-
function createCookieFetch(cookieJar) {
|
|
53975
|
+
function createCookieFetch(cookieJar, options = {}) {
|
|
53974
53976
|
return async (input2, init) => {
|
|
53977
|
+
if (options.rejectStandaloneSse && isStandaloneSseRequest(input2, init)) {
|
|
53978
|
+
return new Response(null, { status: 405, statusText: "Method Not Allowed" });
|
|
53979
|
+
}
|
|
53975
53980
|
const modifiedInit = { ...init };
|
|
53976
|
-
const cookieHeader = cookieJar.getCookieHeader();
|
|
53981
|
+
const cookieHeader = options.enableCookies === false ? void 0 : cookieJar.getCookieHeader();
|
|
53977
53982
|
if (cookieHeader) {
|
|
53978
53983
|
const headers = new Headers(modifiedInit.headers);
|
|
53979
53984
|
headers.set("Cookie", cookieHeader);
|
|
@@ -53984,6 +53989,17 @@ function createCookieFetch(cookieJar) {
|
|
|
53984
53989
|
return response;
|
|
53985
53990
|
};
|
|
53986
53991
|
}
|
|
53992
|
+
function isStandaloneSseRequest(input2, init) {
|
|
53993
|
+
var _a3;
|
|
53994
|
+
const method = ((init == null ? void 0 : init.method) || (input2 instanceof Request ? input2.method : "GET")).toUpperCase();
|
|
53995
|
+
if (method !== "GET") {
|
|
53996
|
+
return false;
|
|
53997
|
+
}
|
|
53998
|
+
const headers = new Headers(
|
|
53999
|
+
(init == null ? void 0 : init.headers) || (input2 instanceof Request ? input2.headers : void 0)
|
|
54000
|
+
);
|
|
54001
|
+
return ((_a3 = headers.get("accept")) == null ? void 0 : _a3.split(",").some((value) => value.trim().split(";", 1)[0].toLowerCase() === "text/event-stream")) === true;
|
|
54002
|
+
}
|
|
53987
54003
|
|
|
53988
54004
|
// src/core/utils/logWriter.ts
|
|
53989
54005
|
import * as fs26 from "node:fs";
|
|
@@ -54433,14 +54449,21 @@ var TapTapMCPProxy = class {
|
|
|
54433
54449
|
* 连接到 TapTap MCP Server
|
|
54434
54450
|
*/
|
|
54435
54451
|
async connectToServer() {
|
|
54436
|
-
var _a3, _b, _c;
|
|
54452
|
+
var _a3, _b, _c, _d, _e;
|
|
54437
54453
|
this.log("info", `Connecting to ${this.config.server.url}...`);
|
|
54438
54454
|
try {
|
|
54439
54455
|
const cookieEnabled = ((_a3 = this.config.options) == null ? void 0 : _a3.enable_cookie_sticky) ?? true;
|
|
54440
|
-
const
|
|
54441
|
-
|
|
54456
|
+
const standaloneSseDisabled = ((_b = this.config.options) == null ? void 0 : _b.disable_standalone_sse) ?? false;
|
|
54457
|
+
const customFetch = cookieEnabled || standaloneSseDisabled ? createCookieFetch(this.cookieJar, {
|
|
54458
|
+
enableCookies: cookieEnabled,
|
|
54459
|
+
rejectStandaloneSse: standaloneSseDisabled
|
|
54460
|
+
}) : void 0;
|
|
54461
|
+
if (cookieEnabled && ((_c = this.config.options) == null ? void 0 : _c.verbose)) {
|
|
54442
54462
|
this.log("debug", "Cookie sticky session enabled");
|
|
54443
54463
|
}
|
|
54464
|
+
if (standaloneSseDisabled && ((_d = this.config.options) == null ? void 0 : _d.verbose)) {
|
|
54465
|
+
this.log("debug", "Standalone SSE disabled; using POST response streams");
|
|
54466
|
+
}
|
|
54444
54467
|
const sessionHeaders = this.buildSessionHeaders();
|
|
54445
54468
|
const transport = new StreamableHTTPClientTransport(new URL(this.config.server.url), {
|
|
54446
54469
|
fetch: customFetch,
|
|
@@ -54454,7 +54477,7 @@ var TapTapMCPProxy = class {
|
|
|
54454
54477
|
this.connected = true;
|
|
54455
54478
|
this.sessionValidated = true;
|
|
54456
54479
|
this.lastValidationTime = Date.now();
|
|
54457
|
-
this.reconnectDelayMs = ((
|
|
54480
|
+
this.reconnectDelayMs = ((_e = this.config.options) == null ? void 0 : _e.reconnect_interval) ?? DEFAULT_RECONNECT_INTERVAL_MS;
|
|
54458
54481
|
this.log("info", "✅ Connected and session validated");
|
|
54459
54482
|
this.startHealthCheck();
|
|
54460
54483
|
if (this.reconnecting) {
|
|
@@ -141,7 +141,7 @@ macOS/Linux:
|
|
|
141
141
|
|
|
142
142
|
```text
|
|
143
143
|
command: npx
|
|
144
|
-
args: ["-y", "-p", "@taptap/maker@0.0.
|
|
144
|
+
args: ["-y", "-p", "@taptap/maker@0.0.32-beta.2", "taptap-maker"]
|
|
145
145
|
```
|
|
146
146
|
|
|
147
147
|
上面的 macOS/Linux npx 形式只是显式兼容模式;默认同样是绝对 Node + 版本化 self runtime。
|
|
@@ -246,7 +246,7 @@ stderr、尝试的编码和解码错误,不能把解码异常直接当成 Make
|
|
|
246
246
|
例如,配置使用 Windows 绝对 Node/npm CLI 时,按相同顺序复现:
|
|
247
247
|
|
|
248
248
|
```bat
|
|
249
|
-
"<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.
|
|
249
|
+
"<绝对 node.exe>" "<绝对 npm-cli.js>" exec --yes --package @taptap/maker@0.0.32-beta.2 -- taptap-maker
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
然后用该 CLI 执行 `mcp verify --json`;不要只用 `help` 代替 MCP 协议握手。
|
|
@@ -254,7 +254,7 @@ stderr、尝试的编码和解码错误,不能把解码异常直接当成 Make
|
|
|
254
254
|
配置使用 macOS/Linux 标准 argv 时:
|
|
255
255
|
|
|
256
256
|
```bash
|
|
257
|
-
npx -y -p @taptap/maker@0.0.
|
|
257
|
+
npx -y -p @taptap/maker@0.0.32-beta.2 taptap-maker help
|
|
258
258
|
```
|
|
259
259
|
|
|
260
260
|
如果终端成功而客户端失败,应继续排查客户端读取的配置、信任状态、PATH、cwd 和子进程启动方式,
|
|
@@ -277,7 +277,7 @@ npx -y -p @taptap/maker@0.0.31 taptap-maker help
|
|
|
277
277
|
作为可选恢复方式,并先备份实际生效的配置:
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
|
-
npx -y -p @taptap/maker@0.0.
|
|
280
|
+
npx -y -p @taptap/maker@0.0.32-beta.2 taptap-maker mcp install --launcher self
|
|
281
281
|
```
|
|
282
282
|
|
|
283
283
|
Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm 的绝对路径启动这一次 CLI;安装器
|
|
@@ -309,7 +309,7 @@ Windows 如无法从 PATH 运行上述恢复命令,应使用当前可用 npm
|
|
|
309
309
|
指纹打扰。用户明确同意后无需第二次确认,AI 将已脱敏的当前会话错误 JSON 通过 stdin 传入:
|
|
310
310
|
|
|
311
311
|
```text
|
|
312
|
-
npx -y --package @taptap/maker@0.0.
|
|
312
|
+
npx -y --package @taptap/maker@0.0.32-beta.2 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
313
313
|
```
|
|
314
314
|
|
|
315
315
|
优先原样复用当前客户端 Maker MCP 配置中的 command 和有序 args,再追加上述 `mcp report`
|
package/package.json
CHANGED
|
@@ -387,7 +387,7 @@ request/correlation ID, reproduction steps, visible Maker tools, client version,
|
|
|
387
387
|
Do not include the complete conversation. Send that JSON through stdin, never argv, while running:
|
|
388
388
|
|
|
389
389
|
```text
|
|
390
|
-
npx -y --package @taptap/maker@0.0.
|
|
390
|
+
npx -y --package @taptap/maker@0.0.32-beta.2 taptap-maker mcp report --ide <client> --target-dir <project> --context-stdin --consent --json
|
|
391
391
|
```
|
|
392
392
|
|
|
393
393
|
Prefer the active client's exact Maker MCP `command` plus ordered `args`, then append the `mcp
|