@wonderwhy-er/desktop-commander 0.3.1-alpha.0 → 0.3.1-alpha.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.
- package/LICENSE +20 -20
- package/README.md +1152 -1152
- package/dist/bootstrap.js +0 -0
- package/dist/command-manager.js +0 -0
- package/dist/config-field-definitions.js +0 -0
- package/dist/config-manager.d.ts +6 -0
- package/dist/config-manager.js +1 -1
- package/dist/config-recovery.js +0 -0
- package/dist/config.js +0 -0
- package/dist/custom-stdio.js +0 -0
- package/dist/data/onboarding-prompts.json +70 -70
- package/dist/error-handlers.js +0 -0
- package/dist/handlers/filesystem-handlers.js +2 -2
- package/dist/index.js +0 -0
- package/dist/npm-scripts/remote.js +34 -19
- package/dist/remote-device/diagnostics/device-log.d.ts +63 -0
- package/dist/remote-device/diagnostics/device-log.js +219 -0
- package/dist/remote-device/diagnostics/redact.d.ts +1 -0
- package/dist/remote-device/diagnostics/redact.js +76 -0
- package/dist/remote-device/diagnostics/report.d.ts +118 -0
- package/dist/remote-device/diagnostics/report.js +748 -0
- package/dist/remote-device/diagnostics/upload.d.ts +11 -0
- package/dist/remote-device/diagnostics/upload.js +59 -0
- package/dist/remote-device/scripts/blocking-offline-update.js +133 -133
- package/dist/search-manager.js +0 -0
- package/dist/server.js +610 -610
- package/dist/setup-claude-server.js +942 -942
- package/dist/terminal-manager.js +0 -0
- package/dist/tools/edit.js +2 -2
- package/dist/tools/fuzzySearch.js +9 -9
- package/dist/tools/improved-process-tools.js +10 -10
- package/dist/tools/pdf/extract-images.js +1 -1
- package/dist/tools/prompts.js +1 -1
- package/dist/track-installation.js +387 -387
- package/dist/types.js +0 -0
- package/dist/ui/config-editor/index.html +13 -13
- package/dist/ui/config-editor/src/app.js +30 -30
- package/dist/ui/config-editor/src/array-modal.js +32 -32
- package/dist/ui/config-editor/styles.css +586 -586
- package/dist/ui/file-preview/index.html +16 -16
- package/dist/ui/file-preview/src/app.js +8 -8
- package/dist/ui/file-preview/src/document-layout.js +31 -31
- package/dist/ui/file-preview/src/document-outline.js +8 -8
- package/dist/ui/file-preview/src/markdown/conflict-dialog.js +33 -33
- package/dist/ui/file-preview/src/markdown/controller.js +9 -9
- package/dist/ui/file-preview/src/markdown/editor.js +31 -31
- package/dist/ui/file-preview/styles.css +1630 -1630
- package/dist/uninstall-claude-server.js +745 -745
- package/dist/utils/files/binary.js +4 -4
- package/dist/utils/files/excel.js +3 -3
- package/dist/utils/lazy-package.d.ts +5 -3
- package/dist/utils/lazy-package.js +6 -4
- package/dist/utils/system-info.js +90 -90
- package/dist/utils/usageTracker.js +49 -49
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/node_modules/@desktop-commander/telemetry-contract/README.md +56 -56
- package/node_modules/@desktop-commander/telemetry-contract/package.json +32 -32
- package/node_modules/@desktop-commander/telemetry-contract/transport.d.ts +38 -38
- package/node_modules/@desktop-commander/telemetry-contract/transport.js +164 -164
- package/package.json +29 -15
- package/vendor/telemetry-contract/README.md +56 -56
- package/vendor/telemetry-contract/package.json +32 -32
- package/vendor/telemetry-contract/transport.d.ts +38 -38
- package/vendor/telemetry-contract/transport.js +164 -164
- package/vendor/telemetry-contract/transport.test.js +39 -39
- package/dist/remote-device/broadcast-analytics.d.ts +0 -28
- package/dist/remote-device/broadcast-analytics.js +0 -41
- package/dist/remote-device/mqtt-enrollment.d.ts +0 -16
- package/dist/remote-device/mqtt-enrollment.js +0 -162
- package/dist/remote-device/mqtt-transport.d.ts +0 -44
- package/dist/remote-device/mqtt-transport.js +0 -197
- package/dist/remote-device/transport-analytics.d.ts +0 -29
- package/dist/remote-device/transport-analytics.js +0 -44
- package/dist/tools/search.d.ts +0 -32
- package/dist/tools/search.js +0 -202
package/dist/terminal-manager.js
CHANGED
|
File without changes
|
package/dist/tools/edit.js
CHANGED
|
@@ -153,8 +153,8 @@ export async function performSearchReplace(filePath, block, expectedReplacements
|
|
|
153
153
|
let warningMessage = "";
|
|
154
154
|
if (maxLines > MAX_LINES) {
|
|
155
155
|
const problemText = searchLines > replaceLines ? 'search text' : 'replacement text';
|
|
156
|
-
warningMessage = `\n\nWARNING: The ${problemText} has ${maxLines} lines (maximum: ${MAX_LINES}).
|
|
157
|
-
|
|
156
|
+
warningMessage = `\n\nWARNING: The ${problemText} has ${maxLines} lines (maximum: ${MAX_LINES}).
|
|
157
|
+
|
|
158
158
|
RECOMMENDATION: For large search/replace operations, consider breaking them into smaller chunks with fewer lines.`;
|
|
159
159
|
}
|
|
160
160
|
await writeFile(filePath, newContent);
|
|
@@ -11,15 +11,15 @@ export const FUZZY_SEARCH_TIMEOUT_MS = 30000;
|
|
|
11
11
|
* worker would boot the whole server per search. Kept as an eval'd snippet so
|
|
12
12
|
* the worker needs no separate file to ship alongside the compiled output.
|
|
13
13
|
*/
|
|
14
|
-
const WORKER_CODE = `
|
|
15
|
-
const { workerData, parentPort } = require('worker_threads');
|
|
16
|
-
import(workerData.moduleUrl)
|
|
17
|
-
.then((m) => {
|
|
18
|
-
parentPort.postMessage({ ok: true, ...m.runFuzzySearch(workerData.text, workerData.query) });
|
|
19
|
-
})
|
|
20
|
-
.catch((err) => {
|
|
21
|
-
parentPort.postMessage({ ok: false, error: String(err && err.stack || err) });
|
|
22
|
-
});
|
|
14
|
+
const WORKER_CODE = `
|
|
15
|
+
const { workerData, parentPort } = require('worker_threads');
|
|
16
|
+
import(workerData.moduleUrl)
|
|
17
|
+
.then((m) => {
|
|
18
|
+
parentPort.postMessage({ ok: true, ...m.runFuzzySearch(workerData.text, workerData.query) });
|
|
19
|
+
})
|
|
20
|
+
.catch((err) => {
|
|
21
|
+
parentPort.postMessage({ ok: false, error: String(err && err.stack || err) });
|
|
22
|
+
});
|
|
23
23
|
`;
|
|
24
24
|
const CORE_MODULE_URL = new URL('./fuzzySearchCore.js', import.meta.url).href;
|
|
25
25
|
/**
|
|
@@ -160,16 +160,16 @@ export async function startProcess(args, maxWaitMs = MAX_PROCESS_WAIT_MS) {
|
|
|
160
160
|
return {
|
|
161
161
|
content: [{
|
|
162
162
|
type: "text",
|
|
163
|
-
text: `Node.js session started with PID ${virtualPid} (MCP server execution)
|
|
164
|
-
|
|
165
|
-
IMPORTANT: Each interact_with_process call runs as a FRESH script.
|
|
166
|
-
State is NOT preserved between calls. Include ALL code in ONE call:
|
|
167
|
-
- imports, file reading, processing, and output together.
|
|
168
|
-
|
|
169
|
-
Available libraries:
|
|
170
|
-
- ExcelJS for Excel files: import ExcelJS from 'exceljs'
|
|
171
|
-
- All Node.js built-ins: fs, path, http, crypto, etc.
|
|
172
|
-
|
|
163
|
+
text: `Node.js session started with PID ${virtualPid} (MCP server execution)
|
|
164
|
+
|
|
165
|
+
IMPORTANT: Each interact_with_process call runs as a FRESH script.
|
|
166
|
+
State is NOT preserved between calls. Include ALL code in ONE call:
|
|
167
|
+
- imports, file reading, processing, and output together.
|
|
168
|
+
|
|
169
|
+
Available libraries:
|
|
170
|
+
- ExcelJS for Excel files: import ExcelJS from 'exceljs'
|
|
171
|
+
- All Node.js built-ins: fs, path, http, crypto, etc.
|
|
172
|
+
|
|
173
173
|
🔄 Ready for code - send complete self-contained script via interact_with_process.`
|
|
174
174
|
}],
|
|
175
175
|
structuredContent: { pid: virtualPid, status: 'waiting_for_input' },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LazyPackage } from '../../utils/lazy-package.js';
|
|
2
2
|
// import(): unpdf is an ES module only. If it fails, Node keeps it failed until a restart.
|
|
3
|
-
export const unpdfPackage = new LazyPackage('unpdf', 'PDF reading support', () => import('unpdf'));
|
|
3
|
+
export const unpdfPackage = new LazyPackage('unpdf', 'PDF reading support', () => import('unpdf'), true);
|
|
4
4
|
/**
|
|
5
5
|
* Optimized image extraction from PDF using unpdf's built-in extractImages method
|
|
6
6
|
* @param pdfBuffer PDF file as Uint8Array
|
package/dist/tools/prompts.js
CHANGED
|
@@ -224,7 +224,7 @@ function formatPromptsListResponse(prompts, category) {
|
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
response += `Say "Try #3" or "Let's do #1" to start any example.\n\n`;
|
|
227
|
-
response += `<INSTRUCTION>Output options for user exactly as provided without missing numbers.
|
|
227
|
+
response += `<INSTRUCTION>Output options for user exactly as provided without missing numbers.
|
|
228
228
|
Its important so user can choose an options by entering number only. Also do not forget new lines between numbers for easy reading</INSTRUCTION>\n\n`;
|
|
229
229
|
// AI reference mapping (do not show to user):
|
|
230
230
|
response += `<!-- AI_PROMPT_MAP: `;
|