@wonderwhy-er/desktop-commander 0.3.1-alpha.0 → 0.3.1-alpha.1

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 (73) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +1152 -1152
  3. package/dist/bootstrap.js +0 -0
  4. package/dist/command-manager.js +0 -0
  5. package/dist/config-field-definitions.js +0 -0
  6. package/dist/config-manager.d.ts +6 -0
  7. package/dist/config-manager.js +1 -1
  8. package/dist/config-recovery.js +0 -0
  9. package/dist/config.js +0 -0
  10. package/dist/custom-stdio.js +0 -0
  11. package/dist/data/onboarding-prompts.json +70 -70
  12. package/dist/error-handlers.js +0 -0
  13. package/dist/handlers/filesystem-handlers.js +2 -2
  14. package/dist/index.js +0 -0
  15. package/dist/npm-scripts/remote.js +34 -19
  16. package/dist/remote-device/diagnostics/device-log.d.ts +63 -0
  17. package/dist/remote-device/diagnostics/device-log.js +219 -0
  18. package/dist/remote-device/diagnostics/redact.d.ts +1 -0
  19. package/dist/remote-device/diagnostics/redact.js +76 -0
  20. package/dist/remote-device/diagnostics/report.d.ts +118 -0
  21. package/dist/remote-device/diagnostics/report.js +748 -0
  22. package/dist/remote-device/diagnostics/upload.d.ts +11 -0
  23. package/dist/remote-device/diagnostics/upload.js +59 -0
  24. package/dist/remote-device/scripts/blocking-offline-update.js +133 -133
  25. package/dist/search-manager.js +0 -0
  26. package/dist/server.js +610 -610
  27. package/dist/setup-claude-server.js +942 -942
  28. package/dist/terminal-manager.js +0 -0
  29. package/dist/tools/edit.js +2 -2
  30. package/dist/tools/fuzzySearch.js +9 -9
  31. package/dist/tools/improved-process-tools.js +10 -10
  32. package/dist/tools/prompts.js +1 -1
  33. package/dist/track-installation.js +387 -387
  34. package/dist/types.js +0 -0
  35. package/dist/ui/config-editor/index.html +13 -13
  36. package/dist/ui/config-editor/src/app.js +30 -30
  37. package/dist/ui/config-editor/src/array-modal.js +32 -32
  38. package/dist/ui/config-editor/styles.css +586 -586
  39. package/dist/ui/file-preview/index.html +16 -16
  40. package/dist/ui/file-preview/src/app.js +8 -8
  41. package/dist/ui/file-preview/src/document-layout.js +31 -31
  42. package/dist/ui/file-preview/src/document-outline.js +8 -8
  43. package/dist/ui/file-preview/src/markdown/conflict-dialog.js +33 -33
  44. package/dist/ui/file-preview/src/markdown/controller.js +9 -9
  45. package/dist/ui/file-preview/src/markdown/editor.js +31 -31
  46. package/dist/ui/file-preview/styles.css +1630 -1630
  47. package/dist/uninstall-claude-server.js +745 -745
  48. package/dist/utils/files/binary.js +4 -4
  49. package/dist/utils/files/excel.js +3 -3
  50. package/dist/utils/system-info.js +90 -90
  51. package/dist/utils/usageTracker.js +49 -49
  52. package/dist/version.d.ts +1 -1
  53. package/dist/version.js +1 -1
  54. package/node_modules/@desktop-commander/telemetry-contract/README.md +56 -56
  55. package/node_modules/@desktop-commander/telemetry-contract/package.json +32 -32
  56. package/node_modules/@desktop-commander/telemetry-contract/transport.d.ts +38 -38
  57. package/node_modules/@desktop-commander/telemetry-contract/transport.js +164 -164
  58. package/package.json +3 -2
  59. package/vendor/telemetry-contract/README.md +56 -56
  60. package/vendor/telemetry-contract/package.json +32 -32
  61. package/vendor/telemetry-contract/transport.d.ts +38 -38
  62. package/vendor/telemetry-contract/transport.js +164 -164
  63. package/vendor/telemetry-contract/transport.test.js +39 -39
  64. package/dist/remote-device/broadcast-analytics.d.ts +0 -28
  65. package/dist/remote-device/broadcast-analytics.js +0 -41
  66. package/dist/remote-device/mqtt-enrollment.d.ts +0 -16
  67. package/dist/remote-device/mqtt-enrollment.js +0 -162
  68. package/dist/remote-device/mqtt-transport.d.ts +0 -44
  69. package/dist/remote-device/mqtt-transport.js +0 -197
  70. package/dist/remote-device/transport-analytics.d.ts +0 -29
  71. package/dist/remote-device/transport-analytics.js +0 -44
  72. package/dist/tools/search.d.ts +0 -32
  73. package/dist/tools/search.js +0 -202
File without changes
@@ -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' },
@@ -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: `;