aipeek 0.1.1 → 0.1.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.
@@ -455,12 +455,18 @@ var clientPath = _path.resolve.call(void 0, __dirname, "client.ts");
455
455
  var AIPEEK_SNIPPET = `
456
456
  # aipeek \u2014 Runtime Browser Inspector
457
457
 
458
- When debugging UI issues, checking errors, or inspecting app state, fetch runtime info from the dev server:
458
+ IMPORTANT: Before debugging any UI issue, visual bug, or runtime error, ALWAYS fetch the live app state first. Do NOT guess \u2014 look at the actual browser state.
459
459
 
460
- - \`curl http://localhost:5195/__aipeek\` \u2014 summary (UI tree, console, network, errors, state)
461
- - \`curl http://localhost:5195/__aipeek/{section}\` \u2014 detail for one section
462
- - \`curl http://localhost:5195/__aipeek/{section}/{index}\` \u2014 specific item
463
- - Append \`?full\` for untruncated output
460
+ \`\`\`bash
461
+ curl http://localhost:5195/__aipeek # full summary: UI tree + console + network + errors + state
462
+ curl http://localhost:5195/__aipeek/ui # React component tree with props and DOM semantics
463
+ curl http://localhost:5195/__aipeek/console # console logs (errors, warnings, info)
464
+ curl http://localhost:5195/__aipeek/network # fetch/XHR requests with status and timing
465
+ curl http://localhost:5195/__aipeek/errors # uncaught errors and unhandled rejections
466
+ curl http://localhost:5195/__aipeek/state # registered store snapshots
467
+ \`\`\`
468
+
469
+ Append \`?full\` for untruncated output. Append \`/{index}\` for a specific item's detail.
464
470
  `;
465
471
  function injectClaudeMd(root) {
466
472
  const path = _path.resolve.call(void 0, root, "CLAUDE.md");
@@ -455,12 +455,18 @@ var clientPath = resolve(__dirname, "client.ts");
455
455
  var AIPEEK_SNIPPET = `
456
456
  # aipeek \u2014 Runtime Browser Inspector
457
457
 
458
- When debugging UI issues, checking errors, or inspecting app state, fetch runtime info from the dev server:
458
+ IMPORTANT: Before debugging any UI issue, visual bug, or runtime error, ALWAYS fetch the live app state first. Do NOT guess \u2014 look at the actual browser state.
459
459
 
460
- - \`curl http://localhost:5195/__aipeek\` \u2014 summary (UI tree, console, network, errors, state)
461
- - \`curl http://localhost:5195/__aipeek/{section}\` \u2014 detail for one section
462
- - \`curl http://localhost:5195/__aipeek/{section}/{index}\` \u2014 specific item
463
- - Append \`?full\` for untruncated output
460
+ \`\`\`bash
461
+ curl http://localhost:5195/__aipeek # full summary: UI tree + console + network + errors + state
462
+ curl http://localhost:5195/__aipeek/ui # React component tree with props and DOM semantics
463
+ curl http://localhost:5195/__aipeek/console # console logs (errors, warnings, info)
464
+ curl http://localhost:5195/__aipeek/network # fetch/XHR requests with status and timing
465
+ curl http://localhost:5195/__aipeek/errors # uncaught errors and unhandled rejections
466
+ curl http://localhost:5195/__aipeek/state # registered store snapshots
467
+ \`\`\`
468
+
469
+ Append \`?full\` for untruncated output. Append \`/{index}\` for a specific item's detail.
464
470
  `;
465
471
  function injectClaudeMd(root) {
466
472
  const path = resolve(root, "CLAUDE.md");
package/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkQXCVA2LUcjs = require('./chunk-QXCVA2LU.cjs');
11
+ var _chunkFT6I36X4cjs = require('./chunk-FT6I36X4.cjs');
12
12
 
13
13
 
14
14
 
@@ -19,4 +19,4 @@ var _chunkQXCVA2LUcjs = require('./chunk-QXCVA2LU.cjs');
19
19
 
20
20
 
21
21
 
22
- exports.aipeekPlugin = _chunkQXCVA2LUcjs.aipeekPlugin; exports.compact = _chunkQXCVA2LUcjs.compact; exports.compactConsole = _chunkQXCVA2LUcjs.compactConsole; exports.compactErrors = _chunkQXCVA2LUcjs.compactErrors; exports.compactNetwork = _chunkQXCVA2LUcjs.compactNetwork; exports.compactState = _chunkQXCVA2LUcjs.compactState; exports.compactUI = _chunkQXCVA2LUcjs.compactUI; exports.detail = _chunkQXCVA2LUcjs.detail; exports.emit = _chunkQXCVA2LUcjs.emit;
22
+ exports.aipeekPlugin = _chunkFT6I36X4cjs.aipeekPlugin; exports.compact = _chunkFT6I36X4cjs.compact; exports.compactConsole = _chunkFT6I36X4cjs.compactConsole; exports.compactErrors = _chunkFT6I36X4cjs.compactErrors; exports.compactNetwork = _chunkFT6I36X4cjs.compactNetwork; exports.compactState = _chunkFT6I36X4cjs.compactState; exports.compactUI = _chunkFT6I36X4cjs.compactUI; exports.detail = _chunkFT6I36X4cjs.detail; exports.emit = _chunkFT6I36X4cjs.emit;
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  compactUI,
9
9
  detail,
10
10
  emit
11
- } from "./chunk-5SM5A2YR.js";
11
+ } from "./chunk-PKX22B5X.js";
12
12
  export {
13
13
  aipeekPlugin,
14
14
  compact,
package/dist/plugin.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQXCVA2LUcjs = require('./chunk-QXCVA2LU.cjs');
3
+ var _chunkFT6I36X4cjs = require('./chunk-FT6I36X4.cjs');
4
4
 
5
5
 
6
- exports.aipeekPlugin = _chunkQXCVA2LUcjs.aipeekPlugin;
6
+ exports.aipeekPlugin = _chunkFT6I36X4cjs.aipeekPlugin;
package/dist/plugin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  aipeekPlugin
3
- } from "./chunk-5SM5A2YR.js";
3
+ } from "./chunk-PKX22B5X.js";
4
4
  export {
5
5
  aipeekPlugin
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aipeek",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Gives AI a peek into your running browser app — UI tree, console, network, errors, state",
5
5
  "license": "MIT",
6
6
  "repository": {