chromeflow 0.1.20 → 0.1.22
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/README.md +5 -6
- package/dist/setup.js +9 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,12 +25,11 @@ This:
|
|
|
25
25
|
- Adds a hint to `~/.claude/CLAUDE.md` so Claude will suggest `npx chromeflow setup` in any project that isn't yet configured
|
|
26
26
|
- Pre-approves Chromeflow tools in `.claude/settings.local.json` (no per-action prompts)
|
|
27
27
|
|
|
28
|
-
**2.
|
|
28
|
+
**2. Install the Chrome extension** (one time):
|
|
29
29
|
|
|
30
|
-
The setup wizard opens
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
3. Select the path printed by the setup wizard
|
|
30
|
+
The setup wizard opens the Chrome Web Store for you — click **Add to Chrome**.
|
|
31
|
+
|
|
32
|
+
Or install directly: [chromewebstore.google.com/detail/chromeflow/lkdchdgkbkodliefobkkhiegjdiidime](https://chromewebstore.google.com/detail/chromeflow/lkdchdgkbkodliefobkkhiegjdiidime)
|
|
34
33
|
|
|
35
34
|
The extension persists across Chrome restarts. You only do this once.
|
|
36
35
|
|
|
@@ -88,7 +87,7 @@ npm run dev:mcp # watches mcp-server
|
|
|
88
87
|
npm run dev:ext # watches extension
|
|
89
88
|
```
|
|
90
89
|
|
|
91
|
-
After rebuilding the extension,
|
|
90
|
+
After rebuilding the extension, reload it from `chrome://extensions`.
|
|
92
91
|
|
|
93
92
|
## Requirements
|
|
94
93
|
|
package/dist/setup.js
CHANGED
|
@@ -183,13 +183,14 @@ function patchSettingsLocalJson(cwd) {
|
|
|
183
183
|
writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + "\n");
|
|
184
184
|
return "updated";
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
const STORE_URL = "https://chromewebstore.google.com/detail/chromeflow/lkdchdgkbkodliefobkkhiegjdiidime";
|
|
187
|
+
function tryOpenStorePage() {
|
|
187
188
|
try {
|
|
188
|
-
execSync(
|
|
189
|
+
execSync(`open "${STORE_URL}"`, { stdio: "ignore" });
|
|
189
190
|
return true;
|
|
190
191
|
} catch {
|
|
191
192
|
try {
|
|
192
|
-
execSync(
|
|
193
|
+
execSync(`xdg-open "${STORE_URL}"`, { stdio: "ignore" });
|
|
193
194
|
return true;
|
|
194
195
|
} catch {
|
|
195
196
|
return false;
|
|
@@ -241,17 +242,14 @@ async function runSetup() {
|
|
|
241
242
|
} else {
|
|
242
243
|
console.log("\u2713 Added chromeflow tools to .claude/settings.local.json (no approval prompts)");
|
|
243
244
|
}
|
|
244
|
-
console.log("\nChrome extension (one-time
|
|
245
|
-
const opened =
|
|
245
|
+
console.log("\nChrome extension (one-time step):");
|
|
246
|
+
const opened = tryOpenStorePage();
|
|
246
247
|
if (opened) {
|
|
247
|
-
console.log(" Opened
|
|
248
|
+
console.log(" Opened Chrome Web Store \u2014 click 'Add to Chrome' to install.");
|
|
248
249
|
} else {
|
|
249
|
-
console.log(
|
|
250
|
+
console.log(` Install from the Chrome Web Store:
|
|
251
|
+
${STORE_URL}`);
|
|
250
252
|
}
|
|
251
|
-
const extensionDistPath = resolve(dirname(fileURLToPath(import.meta.url)), "..", "..", "extension", "dist");
|
|
252
|
-
console.log(" 1. Enable Developer mode (top-right toggle)");
|
|
253
|
-
console.log(" 2. Click 'Load unpacked'");
|
|
254
|
-
console.log(` 3. Select: ${extensionDistPath}`);
|
|
255
253
|
const globalResult = patchGlobalClaudeMd();
|
|
256
254
|
if (globalResult === "already-present") {
|
|
257
255
|
console.log("\u2713 ~/.claude/CLAUDE.md already has chromeflow hint");
|
package/package.json
CHANGED