@lincoln504/pi-research 0.1.7 → 0.1.9
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincoln504/pi-research",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Multi-agent research Deep Mode orchestration for pi. State-driven parallel researchers with web search, scraping, security databases, and Stack Exchange integration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
package/src/index.ts
CHANGED
|
@@ -45,10 +45,13 @@ export default function (pi: ExtensionAPI) {
|
|
|
45
45
|
|
|
46
46
|
// Notify user of Docker status and log file location when starting a new session
|
|
47
47
|
pi.on('session_start', async (_event, ctx) => {
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
if (!
|
|
51
|
-
|
|
48
|
+
// Skip Docker check during install to avoid errors on fresh systems
|
|
49
|
+
// Docker will be checked when research tool is first used
|
|
50
|
+
if (!process.env['PI_INSTALL_MODE']) {
|
|
51
|
+
const dockerCheck = await checkDockerAvailability();
|
|
52
|
+
if (!dockerCheck.running) {
|
|
53
|
+
ctx.ui.notify(`pi-research: ${dockerCheck.error}`, 'warning');
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
if (isVerboseFromEnv()) {
|
|
@@ -285,9 +285,19 @@ export async function verifyDockerInstalled(): Promise<{ installed: boolean; run
|
|
|
285
285
|
if (
|
|
286
286
|
lastError.includes('ENOENT') ||
|
|
287
287
|
lastError.includes('ECONNREFUSED') ||
|
|
288
|
-
lastError.includes('The system cannot find the file specified')
|
|
288
|
+
lastError.includes('The system cannot find the file specified') ||
|
|
289
|
+
lastError.includes('EACCES') ||
|
|
290
|
+
lastError.includes('permission')
|
|
289
291
|
) {
|
|
290
|
-
|
|
292
|
+
let errorMsg = 'Docker daemon is not running or inaccessible.';
|
|
293
|
+
if (process.platform === 'linux') {
|
|
294
|
+
errorMsg += ' On Linux, run: sudo systemctl start docker && sudo usermod -aG docker $USER. Then log out and back in.';
|
|
295
|
+
} else if (process.platform === 'darwin') {
|
|
296
|
+
errorMsg += ' Start Docker Desktop from Applications.';
|
|
297
|
+
} else if (process.platform === 'win32') {
|
|
298
|
+
errorMsg += ' Start Docker Desktop from the Start menu.';
|
|
299
|
+
}
|
|
300
|
+
return { installed: true, running: false, error: errorMsg };
|
|
291
301
|
}
|
|
292
302
|
|
|
293
303
|
return { installed: false, running: false, error: `Docker not found or inaccessible: ${lastError}` };
|