@ait-co/devtools 0.1.71 → 0.1.73
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/dist/{deeplink-CaO6hZVG.js → deeplink-B-94XmWA.js} +19 -3
- package/dist/deeplink-B-94XmWA.js.map +1 -0
- package/dist/{deeplink-BONXxWEO.cjs → deeplink-BLU2_hg6.cjs} +19 -3
- package/dist/deeplink-BLU2_hg6.cjs.map +1 -0
- package/dist/{deeplink-CCGiyoHq.cjs → deeplink-CU6opogq.cjs} +19 -3
- package/dist/deeplink-CU6opogq.cjs.map +1 -0
- package/dist/{deeplink-Cqli4qzm.js → deeplink-CYqDwVYs.js} +19 -3
- package/dist/deeplink-CYqDwVYs.js.map +1 -0
- package/dist/devtools-opener-BbUXBzgA.js.map +1 -1
- package/dist/devtools-opener-Bp671YXu.cjs.map +1 -1
- package/dist/devtools-opener-D84kZFtR.js.map +1 -1
- package/dist/devtools-opener-h6A-UjzC.cjs.map +1 -1
- package/dist/mcp/cli.js +75 -42
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.js +2 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/panel/index.js +18 -10
- package/dist/panel/index.js.map +1 -1
- package/dist/{qr-http-server-BIIMOcuU.cjs → qr-http-server-0uN5jxLW.cjs} +19 -11
- package/dist/qr-http-server-0uN5jxLW.cjs.map +1 -0
- package/dist/{qr-http-server-ClakYBO9.cjs → qr-http-server-BTjpFS3p.cjs} +19 -11
- package/dist/qr-http-server-BTjpFS3p.cjs.map +1 -0
- package/dist/{qr-http-server-JjGU81q7.js → qr-http-server-Ditd2ndz.js} +19 -11
- package/dist/qr-http-server-Ditd2ndz.js.map +1 -0
- package/dist/{qr-http-server-CeEzLS3g.js → qr-http-server-TQG61eI4.js} +19 -11
- package/dist/qr-http-server-TQG61eI4.js.map +1 -0
- package/dist/{relay-secret-store-CLkF8Pa0.cjs → relay-secret-store-BFOEhsLO.cjs} +2 -2
- package/dist/{relay-secret-store-CLkF8Pa0.cjs.map → relay-secret-store-BFOEhsLO.cjs.map} +1 -1
- package/dist/{relay-secret-store-DBcKWUl9.js → relay-secret-store-C_LUxvAp.js} +2 -2
- package/dist/{relay-secret-store-DBcKWUl9.js.map → relay-secret-store-C_LUxvAp.js.map} +1 -1
- package/dist/{relay-secret-store-C4QQN5NA.js → relay-secret-store-D-W-WaSx.js} +2 -2
- package/dist/{relay-secret-store-C4QQN5NA.js.map → relay-secret-store-D-W-WaSx.js.map} +1 -1
- package/dist/{relay-url-store-COG2dSql.cjs → relay-url-store-2sy_l2bf.cjs} +2 -2
- package/dist/{relay-url-store-COG2dSql.cjs.map → relay-url-store-2sy_l2bf.cjs.map} +1 -1
- package/dist/{relay-url-store-WKfo0VQV.js → relay-url-store-DAh5KiJi.js} +2 -2
- package/dist/{relay-url-store-WKfo0VQV.js.map → relay-url-store-DAh5KiJi.js.map} +1 -1
- package/dist/{relay-url-store-Dq3vpd95.js → relay-url-store-DjKJJZ0d.js} +2 -2
- package/dist/{relay-url-store-Dq3vpd95.js.map → relay-url-store-DjKJJZ0d.js.map} +1 -1
- package/dist/{totp-D0a8VwoR.js → totp-BfVk8gQe.js} +6 -3
- package/dist/{totp-D0a8VwoR.js.map → totp-BfVk8gQe.js.map} +1 -1
- package/dist/totp-BxtxuEt4.js.map +1 -1
- package/dist/{totp-DA8vjAi7.cjs → totp-D4iTMA9U.cjs} +6 -3
- package/dist/{totp-DA8vjAi7.cjs.map → totp-D4iTMA9U.cjs.map} +1 -1
- package/dist/totp-D8f6qAEu.js +3 -0
- package/dist/totp-D9rndqg_.cjs.map +1 -1
- package/dist/{totp-BjtKFt88.js → totp-DbEfKQRi.js} +6 -3
- package/dist/{totp-BjtKFt88.js.map → totp-DbEfKQRi.js.map} +1 -1
- package/dist/{tunnel-DwVrcZ56.cjs → tunnel-BXAWl2tI.cjs} +22 -11
- package/dist/tunnel-BXAWl2tI.cjs.map +1 -0
- package/dist/{tunnel-aIy_7nWm.js → tunnel-BxGnLAat.js} +22 -11
- package/dist/tunnel-BxGnLAat.js.map +1 -0
- package/dist/unplugin/index.cjs +17 -7
- package/dist/unplugin/index.cjs.map +1 -1
- package/dist/unplugin/index.d.cts.map +1 -1
- package/dist/unplugin/index.d.ts.map +1 -1
- package/dist/unplugin/index.js +17 -7
- package/dist/unplugin/index.js.map +1 -1
- package/dist/unplugin/tunnel.cjs +20 -9
- package/dist/unplugin/tunnel.cjs.map +1 -1
- package/dist/unplugin/tunnel.d.cts +36 -3
- package/dist/unplugin/tunnel.d.cts.map +1 -1
- package/dist/unplugin/tunnel.d.ts +36 -3
- package/dist/unplugin/tunnel.d.ts.map +1 -1
- package/dist/unplugin/tunnel.js +20 -9
- package/dist/unplugin/tunnel.js.map +1 -1
- package/package.json +1 -1
- package/dist/deeplink-BONXxWEO.cjs.map +0 -1
- package/dist/deeplink-CCGiyoHq.cjs.map +0 -1
- package/dist/deeplink-CaO6hZVG.js.map +0 -1
- package/dist/deeplink-Cqli4qzm.js.map +0 -1
- package/dist/qr-http-server-BIIMOcuU.cjs.map +0 -1
- package/dist/qr-http-server-CeEzLS3g.js.map +0 -1
- package/dist/qr-http-server-ClakYBO9.cjs.map +0 -1
- package/dist/qr-http-server-JjGU81q7.js.map +0 -1
- package/dist/totp-CQFmgOhM.js +0 -3
- package/dist/tunnel-DwVrcZ56.cjs.map +0 -1
- package/dist/tunnel-aIy_7nWm.js.map +0 -1
package/dist/mcp/server.js
CHANGED
|
@@ -288,7 +288,7 @@ new Set([
|
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
name: "build_attach_url",
|
|
291
|
-
description: "The tool result already shows the QR to the user directly (Claude Code renders MCP tool output to the user's screen; they press Ctrl+O to expand if it's collapsed). Do NOT re-print or re-render the QR in your reply — that just wastes output tokens. Simply tell the user to scan the QR shown in this tool's output with their phone camera. Builds a self-attaching deep link for the active relay environment and returns a QR code. Scan the QR with the phone camera to open the mini-app and attach it to this debug session (QR is the single entry path — no USB cable or platform CLI needed). Call list_pages first to confirm the relay/tunnel is up. If the tunnel is not up, restart: `npx @ait-co/devtools devtools-mcp`.\n\nEnvironment-specific behaviour:\n • env 3 / relay-staging (start_debug mode=\"relay-staging\"): requires scheme_url — the intoss-private://…?_deploymentId=<uuid> URL from `ait deploy --scheme-only`. Splices debug=1 + relay URL into the scheme URL to produce a self-attach deep link.\n • env 2 / relay-sandbox (start_debug mode=\"relay-sandbox\"): scheme_url is NOT used. Instead, reads AIT_TUNNEL_BASE_URL (the https://*.trycloudflare.com app tunnel from `tunnel:{cdp:true}`) and builds a launcher PWA deep-link (https://devtools.aitc.dev/launcher/?url=…&debug=1&relay=…). Scan the QR with the phone to open the launcher, which frames the tunnel URL and attaches CDP.\n\nSet wait_for_attach=true to block until a page attaches (polls up to 30 s). On timeout, call build_attach_url again to resume polling. When open_in_browser=true (default), saves the QR as a PNG and opens it in the OS default browser — only works when the MCP server runs on a local GUI machine (not headless/remote containers). \n\nTOTP auth: when AIT_DEBUG_TOTP_SECRET is set on the MCP server, the returned attachUrl automatically includes the current one-time code (at=<code>)
|
|
291
|
+
description: "The tool result already shows the QR to the user directly (Claude Code renders MCP tool output to the user's screen; they press Ctrl+O to expand if it's collapsed). Do NOT re-print or re-render the QR in your reply — that just wastes output tokens. Simply tell the user to scan the QR shown in this tool's output with their phone camera. Builds a self-attaching deep link for the active relay environment and returns a QR code. Scan the QR with the phone camera to open the mini-app and attach it to this debug session (QR is the single entry path — no USB cable or platform CLI needed). Call list_pages first to confirm the relay/tunnel is up. If the tunnel is not up, restart: `npx @ait-co/devtools devtools-mcp`.\n\nEnvironment-specific behaviour:\n • env 3 / relay-staging (start_debug mode=\"relay-staging\"): requires scheme_url — the intoss-private://…?_deploymentId=<uuid> URL from `ait deploy --scheme-only`. Splices debug=1 + relay URL into the scheme URL to produce a self-attach deep link.\n • env 2 / relay-sandbox (start_debug mode=\"relay-sandbox\"): scheme_url is NOT used. Instead, reads AIT_TUNNEL_BASE_URL (the https://*.trycloudflare.com app tunnel from `tunnel:{cdp:true}`) and builds a launcher PWA deep-link (https://devtools.aitc.dev/launcher/?url=…&debug=1&relay=…). When projectRoot is given, the app name from <projectRoot>/package.json is automatically added as name= so the launcher partner bar shows it. Scan the QR with the phone to open the launcher, which frames the tunnel URL and attaches CDP.\n\nSet wait_for_attach=true to block until a page attaches (polls up to 30 s). On timeout, call build_attach_url again to resume polling. When open_in_browser=true (default), saves the QR as a PNG and opens it in the OS default browser — only works when the MCP server runs on a local GUI machine (not headless/remote containers). \n\nTOTP auth: when AIT_DEBUG_TOTP_SECRET is set on the MCP server, the returned attachUrl automatically includes the current one-time code (at=<code>). The code is valid for ~3 minutes (the relay gate accepts ±6 TOTP steps = 180–210 s of backwards acceptance). The response includes a `totp` field with `expiresAt` (ISO timestamp, ~3 min from issuance). If the phone scan happens after expiresAt, the relay will reject the code — just call build_attach_url again to get a fresh URL. Without AIT_DEBUG_TOTP_SECRET, the attachUrl has no expiry.",
|
|
292
292
|
inputSchema: {
|
|
293
293
|
type: "object",
|
|
294
294
|
properties: {
|
|
@@ -964,7 +964,7 @@ function createDevServer(deps = {}) {
|
|
|
964
964
|
const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
|
|
965
965
|
const server = new Server({
|
|
966
966
|
name: "ait-devtools",
|
|
967
|
-
version: "0.1.
|
|
967
|
+
version: "0.1.73"
|
|
968
968
|
}, { capabilities: { tools: {} } });
|
|
969
969
|
server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
|
|
970
970
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|