@ait-co/devtools 0.1.59 → 0.1.60

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/mcp/cli.js CHANGED
@@ -1837,9 +1837,8 @@ const en = {
1837
1837
  "attach.faq.totp": "<strong>TOTP gate Layer C is inactive</strong> — check that <code>AIT_DEBUG_TOTP_SECRET</code> is set on the relay server",
1838
1838
  "attach.url.section": "URL (fallback)",
1839
1839
  "launcher.title": "AITC DevTools Launcher",
1840
- "launcher.description": "Point your camera at the QR shown in your dev server’s terminal, or paste the https://…trycloudflare.com URL below. The dev app then opens full-screen inside this launcher.",
1840
+ "launcher.description": "Scan the terminal QR code or paste the tunnel URL.",
1841
1841
  "launcher.installCta": "Install launcher to your phone",
1842
- "launcher.openOnce": "Open this once without installing",
1843
1842
  "launcher.urlPlaceholder": "https://example.trycloudflare.com",
1844
1843
  "launcher.openBtn": "Open",
1845
1844
  "launcher.scanBtn": "Scan QR with camera",
@@ -2058,9 +2057,8 @@ const tables = {
2058
2057
  "attach.faq.totp": "<strong>TOTP gate Layer C가 비활성인 경우</strong> — relay 서버에 <code>AIT_DEBUG_TOTP_SECRET</code>이 설정돼 있는지 확인",
2059
2058
  "attach.url.section": "URL (fallback)",
2060
2059
  "launcher.title": "AITC DevTools Launcher",
2061
- "launcher.description": "카메라를 개발 서버 터미널의 QR 대거나, 아래에 https://….trycloudflare.com URL을 붙여넣으세요. 개발 앱이 이 런처 안에서 전체 화면으로 열립니다.",
2060
+ "launcher.description": "터미널 QR 스캔하거나 URL을 입력하세요.",
2062
2061
  "launcher.installCta": "폰에 런처 설치하기",
2063
- "launcher.openOnce": "설치 없이 한 번만 열기",
2064
2062
  "launcher.urlPlaceholder": "https://example.trycloudflare.com",
2065
2063
  "launcher.openBtn": "Open",
2066
2064
  "launcher.scanBtn": "QR 카메라로 스캔",
@@ -2926,6 +2924,10 @@ const DEBUG_TOOL_DEFINITIONS = [
2926
2924
  open_in_browser: {
2927
2925
  type: "boolean",
2928
2926
  description: "If true (default), render the QR as a PNG and open it in the OS default browser. Only works when the MCP server is running on a local GUI machine — headless or remote container environments should set this to false to use the text QR fallback."
2927
+ },
2928
+ projectRoot: {
2929
+ type: "string",
2930
+ description: "Absolute path to the mini-app project root (the directory containing its package.json and .ait_urls). When AIT_TUNNEL_BASE_URL is unset (env 2 / relay-mobile only), the daemon reads the app tunnel URL from <projectRoot>/.ait_urls written by the dev server (tunnel:{cdp:true}). Pass this because the daemon's own cwd is fixed at launch. Omit when AIT_TUNNEL_BASE_URL is set explicitly."
2929
2931
  }
2930
2932
  },
2931
2933
  required: []
@@ -3909,7 +3911,7 @@ async function readMcpSdkVersion() {
3909
3911
  * some test environments that skip the build step).
3910
3912
  */
3911
3913
  function readDevtoolsVersion() {
3912
- return "0.1.59";
3914
+ return "0.1.60";
3913
3915
  }
3914
3916
  /**
3915
3917
  * Derives the next recommended action from a completed diagnostics snapshot.
@@ -4397,7 +4399,7 @@ function createDebugServer(deps) {
4397
4399
  const collector = collectorDep ?? new InMemoryDiagnosticsCollector();
4398
4400
  const server = new Server({
4399
4401
  name: "ait-debug",
4400
- version: "0.1.59"
4402
+ version: "0.1.60"
4401
4403
  }, { capabilities: { tools: { listChanged: true } } });
4402
4404
  server.setRequestHandler(ListToolsRequestSchema, () => {
4403
4405
  const conn = router.active;
@@ -6215,7 +6217,7 @@ function createDevServer(deps = {}) {
6215
6217
  const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
6216
6218
  const server = new Server({
6217
6219
  name: "ait-devtools",
6218
- version: "0.1.59"
6220
+ version: "0.1.60"
6219
6221
  }, { capabilities: { tools: {} } });
6220
6222
  server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
6221
6223
  server.setRequestHandler(CallToolRequestSchema, async (request) => {