@ait-co/devtools 0.1.110 → 0.1.111

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
@@ -4736,7 +4736,7 @@ function listPages(connection, tunnel) {
4736
4736
  return {
4737
4737
  id: t.id,
4738
4738
  title: t.title,
4739
- url: t.url,
4739
+ url: redactAtParam(t.url),
4740
4740
  lastSeenAt: lastSeenMs !== null ? new Date(lastSeenMs).toISOString() : null
4741
4741
  };
4742
4742
  });
@@ -4838,9 +4838,17 @@ function getBrowserCandidates(httpUrl) {
4838
4838
  }
4839
4839
  ];
4840
4840
  }
4841
+ /**
4842
+ * Redacts ONLY the `at=<value>` (TOTP) query param to `at=<redacted>`, leaving
4843
+ * every other query param (_deploymentId, debug, relay) intact. SECRET-HANDLING:
4844
+ * the TOTP code is the single short-lived secret carried in a CDP page url.
4845
+ */
4846
+ function redactAtParam(text) {
4847
+ return text.replace(/\bat=([^&\s"']+)/g, "at=<redacted>");
4848
+ }
4841
4849
  /** stderr에서 at= TOTP 코드 값을 redact한다. */
4842
4850
  function redactSecrets(text) {
4843
- return text.replace(/\bat=([^&\s"']+)/g, "at=<redacted>");
4851
+ return redactAtParam(text);
4844
4852
  }
4845
4853
  /** spawnSync exit 0이어도 stderr에 launch 실패 시그널이 있으면 실패로 판단한다. */
4846
4854
  const LAUNCH_FAILURE_PATTERNS = [
@@ -5367,7 +5375,7 @@ async function readMcpSdkVersion() {
5367
5375
  * some test environments that skip the build step).
5368
5376
  */
5369
5377
  function readDevtoolsVersion() {
5370
- return "0.1.110";
5378
+ return "0.1.111";
5371
5379
  }
5372
5380
  /**
5373
5381
  * Derives the next recommended action from a completed diagnostics snapshot.
@@ -6287,7 +6295,7 @@ function createDebugServer(deps) {
6287
6295
  }
6288
6296
  const server = new Server({
6289
6297
  name: "ait-debug",
6290
- version: "0.1.110"
6298
+ version: "0.1.111"
6291
6299
  }, { capabilities: { tools: { listChanged: true } } });
6292
6300
  server.setRequestHandler(ListToolsRequestSchema, () => {
6293
6301
  const conn = router.active;
@@ -8187,7 +8195,7 @@ function createDevServer(deps = {}) {
8187
8195
  const aitSource = deps.aitSource ?? new HttpAitSource({ stateEndpoint });
8188
8196
  const server = new Server({
8189
8197
  name: "ait-devtools",
8190
- version: "0.1.110"
8198
+ version: "0.1.111"
8191
8199
  }, { capabilities: { tools: {} } });
8192
8200
  server.setRequestHandler(ListToolsRequestSchema, () => ({ tools: DEV_TOOL_DEFINITIONS.map((tool) => ({ ...tool })) }));
8193
8201
  server.setRequestHandler(CallToolRequestSchema, async (request) => {