@apmantza/greedysearch-pi 1.0.7 → 1.0.8
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.
|
@@ -11,11 +11,10 @@
|
|
|
11
11
|
import { readFileSync, existsSync } from 'fs';
|
|
12
12
|
import { spawn } from 'child_process';
|
|
13
13
|
import { tmpdir, homedir } from 'os';
|
|
14
|
-
import { join
|
|
15
|
-
import {
|
|
16
|
-
import { dismissConsent } from './consent.mjs';
|
|
14
|
+
import { join } from 'path';
|
|
15
|
+
import { dismissConsent, handleVerification } from './consent.mjs';
|
|
17
16
|
|
|
18
|
-
const CDP = join(
|
|
17
|
+
const CDP = join(homedir(), '.claude', 'skills', 'chrome-cdp', 'scripts', 'cdp.mjs');
|
|
19
18
|
const PAGES_CACHE = `${tmpdir().replace(/\\/g, '/')}/cdp-pages.json`;
|
|
20
19
|
|
|
21
20
|
const STREAM_POLL_INTERVAL = 700; // ms between checks
|
|
@@ -130,7 +129,9 @@ async function main() {
|
|
|
130
129
|
|
|
131
130
|
// Navigate to Copilot homepage and use the chat input
|
|
132
131
|
await cdp(['nav', tab, 'https://copilot.microsoft.com/'], 35000);
|
|
132
|
+
await new Promise(r => setTimeout(r, 1500));
|
|
133
133
|
await dismissConsent(tab, cdp);
|
|
134
|
+
await handleVerification(tab, cdp, 60000);
|
|
134
135
|
|
|
135
136
|
// Wait for React app to mount #userInput (up to 8s)
|
|
136
137
|
const deadline = Date.now() + 8000;
|
package/package.json
CHANGED