@peekdev/cli 0.1.0-alpha.1 → 0.1.0-alpha.10

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.
Files changed (54) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +90 -0
  3. package/dist/commands/audit.d.ts.map +1 -1
  4. package/dist/commands/audit.js +10 -0
  5. package/dist/commands/audit.js.map +1 -1
  6. package/dist/commands/init.d.ts.map +1 -1
  7. package/dist/commands/init.js +97 -3
  8. package/dist/commands/init.js.map +1 -1
  9. package/dist/commands/sessions.d.ts.map +1 -1
  10. package/dist/commands/sessions.js +129 -11
  11. package/dist/commands/sessions.js.map +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +11 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/lib/db.d.ts +46 -5
  16. package/dist/lib/db.d.ts.map +1 -1
  17. package/dist/lib/db.js +78 -7
  18. package/dist/lib/db.js.map +1 -1
  19. package/dist/lib/extension-id.d.ts +30 -0
  20. package/dist/lib/extension-id.d.ts.map +1 -0
  21. package/dist/lib/extension-id.js +78 -0
  22. package/dist/lib/extension-id.js.map +1 -0
  23. package/dist/lib/format/index.d.ts +11 -1
  24. package/dist/lib/format/index.d.ts.map +1 -1
  25. package/dist/lib/format/index.js +22 -20
  26. package/dist/lib/format/index.js.map +1 -1
  27. package/dist/lib/format/json.d.ts +26 -1
  28. package/dist/lib/format/json.d.ts.map +1 -1
  29. package/dist/lib/format/json.js +39 -2
  30. package/dist/lib/format/json.js.map +1 -1
  31. package/dist/lib/format/markdown.d.ts.map +1 -1
  32. package/dist/lib/format/markdown.js +17 -0
  33. package/dist/lib/format/markdown.js.map +1 -1
  34. package/dist/lib/format/playwright.d.ts +13 -0
  35. package/dist/lib/format/playwright.d.ts.map +1 -0
  36. package/dist/lib/format/playwright.js +37 -0
  37. package/dist/lib/format/playwright.js.map +1 -0
  38. package/dist/lib/native-host-wrapper.d.ts +23 -0
  39. package/dist/lib/native-host-wrapper.d.ts.map +1 -0
  40. package/dist/lib/native-host-wrapper.js +45 -0
  41. package/dist/lib/native-host-wrapper.js.map +1 -0
  42. package/dist/lib/peek-home.d.ts +8 -0
  43. package/dist/lib/peek-home.d.ts.map +1 -1
  44. package/dist/lib/peek-home.js +10 -0
  45. package/dist/lib/peek-home.js.map +1 -1
  46. package/dist/lib/prompt.d.ts +13 -0
  47. package/dist/lib/prompt.d.ts.map +1 -1
  48. package/dist/lib/prompt.js +40 -0
  49. package/dist/lib/prompt.js.map +1 -1
  50. package/dist/version.d.ts +1 -1
  51. package/dist/version.d.ts.map +1 -1
  52. package/dist/version.js +14 -5
  53. package/dist/version.js.map +1 -1
  54. package/package.json +16 -12
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # @peekdev/cli
2
+
3
+ > Your real browser, exposed to your AI coding agent over MCP — capture once, query forever, never leaves your machine.
4
+
5
+ [![npm](https://img.shields.io/npm/v/@peekdev/cli.svg)](https://www.npmjs.com/package/@peekdev/cli)
6
+ [![downloads](https://img.shields.io/npm/dw/@peekdev/cli.svg)](https://www.npmjs.com/package/@peekdev/cli)
7
+ [![license](https://img.shields.io/npm/l/@peekdev/cli.svg)](https://github.com/Cubenest/rrweb-stack/blob/main/LICENSE)
8
+ [![CI](https://github.com/Cubenest/rrweb-stack/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Cubenest/rrweb-stack/actions/workflows/ci.yml)
9
+
10
+ <!-- Hero GIF lands in Week 3-4 per docs/PHASE_5_LAUNCH_PLAN.md — `npx peek init` → MCP visible in Claude Code → "what's in my latest session?" returning real data. See assets/README.md. -->
11
+
12
+ ```sh
13
+ npm install -g @peekdev/cli
14
+ peek init
15
+ ```
16
+
17
+ `peek init` is an interactive wizard. It:
18
+
19
+ 1. Installs the native messaging host for the **Peek** Chrome extension (writes `~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.peekdev.peek.json` on macOS, equivalent on Linux + Windows).
20
+ 2. Detects your AI coding-agent client (Claude Code, Cursor, Cline, Windsurf, Continue, Zed) and adds the `peek-mcp` server to its MCP configuration.
21
+ 3. Prints a one-line "install the extension" link.
22
+
23
+ Then you install the [Peek Chrome extension](https://chromewebstore.google.com/) (CWS submission pending), open the side panel on the site you want to capture, and click **Enable on this site**. Your AI agent can now query the recording.
24
+
25
+ ## What this is NOT
26
+
27
+ - Not a session-replay product for production traffic. Peek is a **developer-side** tool — captures happen on your machine, in your browser, when you explicitly enable them per site.
28
+ - Not Sentry, LogRocket, or FullStory. There is no cloud, no upload, no telemetry, no signup. Captures live in `~/.peek/sessions.db` until you delete them.
29
+ - Not a screen recorder. Peek captures structured DOM/console/network via rrweb, not pixels. AI agents query JSON, not video frames.
30
+
31
+ ## Commands
32
+
33
+ ```sh
34
+ peek init # interactive install (see above)
35
+ peek status # health check — extension connected? DB writable?
36
+ peek sessions list [--json] # list recent recording sessions
37
+ peek sessions show <id> # show one session's metadata + counts
38
+ peek sessions export <id> --format <html|json|playwright> # export for sharing
39
+ peek sessions delete <id> # delete one session + its on-disk events
40
+ peek audit [--json] # show the destructive-action audit log
41
+ peek <cmd> --help # usage for any subcommand
42
+ ```
43
+
44
+ All commands operate read-only on `~/.peek/sessions.db` except `sessions delete` (and `peek init` which writes the install config). Nothing leaves your machine.
45
+
46
+ ## Querying from an AI agent
47
+
48
+ After `peek init`, the `peek-mcp` server is available to your AI client as an MCP toolset. Sample queries:
49
+
50
+ - "what's in my latest peek session?"
51
+ - "show me the console errors from session `abc123` between t=10s and t=15s"
52
+ - "find network requests with status >= 400 from the last 5 minutes of recording on `example.com`"
53
+ - "generate a Playwright reproduction script from session `abc123`"
54
+
55
+ The MCP server exposes ~20 tools — listing, querying, exporting, DOM reconstruction, console/network drill-down, and (with explicit per-action authorization) destructive actions like clicks/inputs/navigation. See [`@peekdev/mcp`](https://github.com/Cubenest/rrweb-stack/tree/main/packages/peek-mcp) for the tool reference.
56
+
57
+ ## Privacy
58
+
59
+ Peek is **local-first**. The CLI reads from `~/.peek/sessions.db` (SQLite); the extension records into it; the MCP server queries it. There is no network destination. There is no telemetry. There is no auto-update channel. The native host runs as your user, not as a daemon.
60
+
61
+ The extension uses per-origin host permissions — recording is **off** for every site by default. You enable it explicitly from the side panel for each origin you care about. The five-level permission model (read-only → read-with-confirmation → constrained-write → broad-write → destructive) is enforced server-side, not just in the UI.
62
+
63
+ Full data-handling policy: [`docs/peek/PRIVACY_POLICY.md`](https://github.com/Cubenest/rrweb-stack/blob/main/docs/peek/PRIVACY_POLICY.md). Chrome Web Store permission justifications: [`docs/peek/PERMISSION_JUSTIFICATION.md`](https://github.com/Cubenest/rrweb-stack/blob/main/docs/peek/PERMISSION_JUSTIFICATION.md).
64
+
65
+ ## Supported AI clients
66
+
67
+ `peek init` configures the MCP server into:
68
+
69
+ | Client | Detection |
70
+ |---|---|
71
+ | Claude Code (CLI) | `~/.claude/` |
72
+ | Cursor | `~/Library/Application Support/Cursor/User/` (macOS) |
73
+ | Cline (VS Code) | VS Code workspace settings |
74
+ | Continue (VS Code) | `~/.continue/` |
75
+ | Windsurf | `~/.codeium/windsurf/` |
76
+ | Zed | `~/.config/zed/` |
77
+
78
+ If your client isn't auto-detected, `peek init` prints the JSON config you can paste manually. The MCP server speaks the standard stdio protocol (spec 2025-11-25 + 2025-03-26 back-compat).
79
+
80
+ ## Versioning & compatibility
81
+
82
+ Semantic Versioning. Currently `0.1.0-alpha.x` — pre-release; the CLI surface is stable in spirit but flags may rename. See [SUPPORTED.md](https://github.com/Cubenest/rrweb-stack/blob/main/SUPPORTED.md) for the compatibility matrix.
83
+
84
+ `@peekdev/cli` depends on `@peekdev/mcp` as a workspace peer. Both are versioned and published together via Changesets + OIDC Trusted Publishing.
85
+
86
+ ## License
87
+
88
+ Apache 2.0. The bundled rrweb engine remains MIT-licensed; see `NOTICE`.
89
+
90
+ Contributions are accepted under the [Developer Certificate of Origin (DCO)](https://developercertificate.org/) — sign your commits with `git commit -s`. See [CONTRIBUTING.md](https://github.com/Cubenest/rrweb-stack/blob/main/CONTRIBUTING.md) + [SECURITY.md](https://github.com/Cubenest/rrweb-stack/blob/main/SECURITY.md).
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/commands/audit.ts"],"names":[],"mappings":"AA8CA,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CA6D/C"}
1
+ {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/commands/audit.ts"],"names":[],"mappings":"AA+CA,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAsE/C"}
@@ -16,6 +16,7 @@ function printUsage() {
16
16
  ' --tool <name> Filter by tool (e.g. execute_action)',
17
17
  ' --client <name> Filter by MCP client (e.g. cursor, claude-code)',
18
18
  ' --json Emit matching entries as JSON instead of a table',
19
+ ' --help Show this help and exit',
19
20
  '',
20
21
  ].join('\n'));
21
22
  }
@@ -44,6 +45,10 @@ export function runAudit(argv) {
44
45
  process.stderr.write(`peek audit: unknown subcommand '${sub}' (did you mean 'log'?)\n`);
45
46
  return 1;
46
47
  }
48
+ // P-18 (alpha.7): declare `--help` as a known option so passing it doesn't
49
+ // crash parseArgs with `TypeError: Unknown option`. Short-circuit to usage
50
+ // BEFORE any DB / log read so `peek audit log --help` always works even on
51
+ // a broken install.
47
52
  const { values } = parseArgs({
48
53
  args: argv.slice(1),
49
54
  options: {
@@ -51,9 +56,14 @@ export function runAudit(argv) {
51
56
  tool: { type: 'string' },
52
57
  client: { type: 'string' },
53
58
  json: { type: 'boolean' },
59
+ help: { type: 'boolean' },
54
60
  },
55
61
  allowPositionals: false,
56
62
  });
63
+ if (values.help) {
64
+ printUsage();
65
+ return 0;
66
+ }
57
67
  const filter = {
58
68
  ...(values.tool !== undefined ? { tool: values.tool } : {}),
59
69
  ...(values.client !== undefined ? { client: values.client } : {}),
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../src/commands/audit.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,6EAA6E;AAC7E,8EAA8E;AAC9E,kCAAkC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAGL,kBAAkB,EAClB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,SAAS,UAAU;IACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB;QACE,iCAAiC;QACjC,EAAE;QACF,UAAU;QACV,8DAA8D;QAC9D,0DAA0D;QAC1D,qEAAqE;QACrE,sEAAsE;QACtE,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,CAAa;IAChC,MAAM,KAAK,GAAG;QACZ,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,IAAI,IAAI,WAAW;QACrB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QACpC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE;KAC5C,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAClB,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,CAA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AC,MAAM,CAAC,KAAK,CAAC,qBAAqB,IAAI,MAAM,CAAC,CAAC;QACtD,OAAO,CAAC,CAAC;IACX,CAAC;IAED,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;IACpD,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAEpD,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;QAChB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;SAAM,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;IACvD,CAAC;SAAM,CAAC;QACN,KAAK,MAAM,CAAC,IAAI,OAAO;YAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,6BAA6B,MAAM,CAAC,MAAM,qCAAqC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,MAAM,CACrG,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAsMA,+DAA+D;AAC/D,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAgC7D"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AA8SA,+DAA+D;AAC/D,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAgC7D"}
@@ -5,13 +5,16 @@
5
5
  // messaging host — the consent step the Phase 3a postinstall deliberately
6
6
  // defers to (it dry-runs unless PEEK_INSTALL_NATIVE_HOST is set; here the user
7
7
  // affirmatively opts in, so we call the installer directly with realSink).
8
- import { existsSync, readFileSync } from 'node:fs';
8
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
9
9
  import { homedir } from 'node:os';
10
10
  import { parseArgs } from 'node:util';
11
11
  import { buildManifest, hostBinaryPath, installManifests, loadExtensionIds, realSink, resolveInstallTargets, } from '@peekdev/mcp/native-host';
12
+ import { chromeExtensionOrigin, extractDevId, validateChromeExtensionId, } from '../lib/extension-id.js';
12
13
  import { atomicWriteFileSync } from '../lib/fs-atomic.js';
13
14
  import { PEEK_BLOCK_SNIPPET, containsJsonComments, detectClients, hasPeekServer, mergePeekConfig, serializeConfig, } from '../lib/init-config.js';
14
- import { confirm, multiSelect } from '../lib/prompt.js';
15
+ import { wrapperContent, wrapperPath } from '../lib/native-host-wrapper.js';
16
+ import { peekHomeDir } from '../lib/peek-home.js';
17
+ import { confirm, multiSelect, promptText } from '../lib/prompt.js';
15
18
  const SUPPORTED = ['darwin', 'linux', 'win32'];
16
19
  /** Thrown by `readConfig` when the file is JSONC (comments) — we won't rewrite it. */
17
20
  class JsoncConfigError extends Error {
@@ -104,6 +107,34 @@ async function configureClients(homeDir, cwd) {
104
107
  }
105
108
  }
106
109
  }
110
+ /**
111
+ * P-13 (2026-05-28 QA walk): read the first existing native-host manifest from
112
+ * the candidate targets so a re-run of `peek init` can offer to reuse the
113
+ * previously-captured dev extension ID. Returns the parsed JSON (or
114
+ * `undefined` if no target had a readable manifest); the caller passes the
115
+ * result to `extractDevId` and decides what to do.
116
+ *
117
+ * Windows targets have `registryKey` instead of `manifestPath`; reading the
118
+ * registry would need a `reg.exe query` shell-out — out of scope here. The
119
+ * common case (darwin/linux) is plain JSON on disk; on win32 we fall through
120
+ * to a fresh prompt, which is acceptable.
121
+ */
122
+ function readExistingManifest(targets) {
123
+ for (const target of targets) {
124
+ const path = target.manifestPath;
125
+ if (!path)
126
+ continue;
127
+ if (!existsSync(path))
128
+ continue;
129
+ try {
130
+ return JSON.parse(readFileSync(path, 'utf8'));
131
+ }
132
+ catch {
133
+ // Try the next target on parse failure (truncated/corrupt manifest).
134
+ }
135
+ }
136
+ return undefined;
137
+ }
107
138
  async function registerNativeHost(platform, homeDir) {
108
139
  const proceed = await confirm('\nRegister the native messaging host now? (writes a manifest into your browser dirs, with your consent)', true);
109
140
  if (!proceed) {
@@ -118,7 +149,54 @@ async function registerNativeHost(platform, homeDir) {
118
149
  process.stdout.write(`Could not load extension IDs (${err instanceof Error ? err.message : String(err)}); skipping native-host registration.\n`);
119
150
  return;
120
151
  }
152
+ // P-10 (2026-05-28 QA walk): the shipped extension-ids.json carries
153
+ // `PLACEHOLDER_*` strings for every slot until the extension is in the
154
+ // Chrome Web Store / Edge Add-ons, and `allowedOrigins()` (correctly) drops
155
+ // those. With nothing else to fill in, the written manifest ends up with
156
+ // `"allowed_origins": []` and Chrome silently blocks
157
+ // `chrome.runtime.connectNative()` — zero sessions ever reach the host.
158
+ //
159
+ // The fix: prompt for the locally-loaded extension's ID (the per-machine
160
+ // 32-char a–p string Chrome assigns to an unpacked extension), validate
161
+ // its shape, and override extensionIds.dev with the captured value before
162
+ // building the manifest. An empty submission is OK — only sensible for a
163
+ // user loading the published CWS build, where the chromeWebStore slot is
164
+ // populated and the `dev` placeholder doesn't matter.
165
+ //
166
+ // P-13 (2026-05-28 QA walk): on re-runs, read the existing manifest's
167
+ // `allowed_origins` and offer to reuse any previously-captured dev ID
168
+ // instead of re-prompting from scratch. Confirms B.4 idempotency.
121
169
  const allTargets = resolveInstallTargets(platform, homeDir);
170
+ const existingDevId = extractDevId(readExistingManifest(allTargets));
171
+ let captured;
172
+ if (existingDevId) {
173
+ const reuse = await confirm(`\nFound previously-saved extension ID: ${existingDevId}\nReuse this ID?`, true);
174
+ if (reuse) {
175
+ captured = existingDevId;
176
+ process.stdout.write(`Reusing: ${chromeExtensionOrigin(existingDevId)}\n`);
177
+ }
178
+ }
179
+ if (captured === undefined) {
180
+ process.stdout.write([
181
+ '',
182
+ 'Paste your unpacked extension ID (from chrome://extensions/, Developer mode toggle ON).',
183
+ "Leave empty to skip — only do this if you're loading the published CWS build.",
184
+ '',
185
+ ].join('\n'));
186
+ captured = await promptText('Extension ID: ', {
187
+ validate: validateChromeExtensionId,
188
+ allowEmpty: true,
189
+ });
190
+ if (captured) {
191
+ process.stdout.write(`allowed_origins includes: ${chromeExtensionOrigin(captured)}\n`);
192
+ }
193
+ else {
194
+ process.stdout.write('No extension ID provided — `allowed_origins` will only include published IDs (if any).\n');
195
+ }
196
+ }
197
+ if (captured) {
198
+ extensionIds = { ...extensionIds, dev: captured };
199
+ }
122
200
  const chosen = await multiSelect('Register native messaging host for:', allTargets.map((t) => ({
123
201
  value: t,
124
202
  label: t.browser,
@@ -129,7 +207,23 @@ async function registerNativeHost(platform, homeDir) {
129
207
  process.stdout.write('No browsers selected; skipping native-host registration.\n');
130
208
  return;
131
209
  }
132
- const manifest = buildManifest(hostBinaryPath(), extensionIds);
210
+ // P-16 (2026-05-28 QA walk): write a tiny shell wrapper at ~/.peek/ that
211
+ // hardcodes `process.execPath`, then point the manifest at the wrapper
212
+ // instead of the raw .js. Chrome spawns the manifest's `path` via the GUI
213
+ // launcher's $PATH, NOT the shell's — on macOS with both a legacy
214
+ // /usr/local/bin/node (v14, x86_64) and a current /opt/homebrew/bin/node
215
+ // (arm64), the system PATH resolves `#!/usr/bin/env node` to the older
216
+ // binary and `better-sqlite3.node` dlopen-fails with an architecture
217
+ // mismatch, crashing the host before Chrome reads any output. The wrapper
218
+ // is the standard fix for Node-based native messaging hosts.
219
+ const home = peekHomeDir();
220
+ mkdirSync(home, { recursive: true });
221
+ const wrapper = wrapperPath(home, platform);
222
+ writeFileSync(wrapper, wrapperContent(process.execPath, hostBinaryPath(), platform), {
223
+ mode: 0o755,
224
+ });
225
+ process.stdout.write(` ✔ Wrote native-host wrapper: ${wrapper}\n`);
226
+ const manifest = buildManifest(wrapper, extensionIds);
133
227
  const results = installManifests([...chosen], manifest, { sink: realSink });
134
228
  for (const r of results) {
135
229
  const where = r.manifestPath ?? r.registryKey ?? '(unknown)';
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,+EAA+E;AAC/E,6EAA6E;AAC7E,wEAAwE;AACxE,0EAA0E;AAC1E,+EAA+E;AAC/E,2EAA2E;AAE3E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAGL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAEL,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,SAAS,GAAiC,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAE7E,sFAAsF;AACtF,MAAM,gBAAiB,SAAQ,KAAK;IAClC;QACE,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AAED;;;;;GAKG;AACH,SAAS,UAAU,CAAC,IAAY;IAC9B,IAAI,CAAC,UAA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AC;YACN,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,mDAAmD,QAAQ,gBAAgB,CAC5E,CAAC;QACJ,CAAC;IACH,CAAC;IAED,SAAS,EAAE,CAAC;IACZ,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/commands/sessions.ts"],"names":[],"mappings":"AAyNA,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAuBlD"}
1
+ {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/commands/sessions.ts"],"names":[],"mappings":"AA0XA,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAuBlD"}