@wonderwhy-er/desktop-commander 0.3.1-alpha.2 → 0.3.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.
- 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.js +0 -0
- 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 +25 -23
- package/dist/remote-device/desktop-commander-integration.d.ts +1 -0
- package/dist/remote-device/device.js +14 -2
- package/dist/remote-device/realtime-health-telemetry.d.ts +35 -0
- package/dist/remote-device/realtime-health-telemetry.js +110 -0
- package/dist/remote-device/remote-channel.d.ts +66 -55
- package/dist/remote-device/remote-channel.js +336 -389
- package/dist/remote-device/rollouts.d.ts +48 -0
- package/dist/remote-device/rollouts.js +105 -0
- package/dist/remote-device/scripts/blocking-offline-update.js +135 -133
- package/dist/search-manager.js +0 -0
- package/dist/server.js +581 -712
- 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 +2 -6
- package/dist/tools/pdf/lib/pdf2md.js +28 -33
- package/dist/tools/pdf/utils.d.ts +10 -0
- package/dist/tools/pdf/utils.js +11 -0
- package/dist/tools/prompts.js +1 -1
- package/dist/tools/schemas.d.ts +0 -10
- package/dist/tools/schemas.js +0 -8
- package/dist/track-installation.js +387 -387
- package/dist/types.js +0 -0
- package/dist/ui/config-editor/config-editor-runtime.js +53 -53
- 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/contracts.d.ts +27 -0
- package/dist/ui/contracts.js +36 -0
- package/dist/ui/file-preview/index.html +16 -16
- package/dist/ui/file-preview/preview-runtime.js +190 -182
- package/dist/ui/file-preview/src/app.js +8 -8
- package/dist/ui/file-preview/src/components/html-renderer.js +4 -2
- 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/ui/resources.js +11 -4
- 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/files/text.d.ts +7 -0
- package/dist/utils/files/text.js +40 -21
- package/dist/utils/system-info.d.ts +1 -0
- package/dist/utils/system-info.js +110 -97
- package/dist/utils/terminal-timestamps.d.ts +2 -0
- package/dist/utils/terminal-timestamps.js +18 -0
- package/dist/utils/usageTracker.d.ts +0 -39
- package/dist/utils/usageTracker.js +16 -176
- 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 +6 -10
- 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
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>Desktop Commander Config Editor</title>
|
|
7
|
-
<link rel="stylesheet" href="./styles.css" />
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="app"></div>
|
|
11
|
-
<script src="./config-editor-runtime.js"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Desktop Commander Config Editor</title>
|
|
7
|
+
<link rel="stylesheet" href="./styles.css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script src="./config-editor-runtime.js"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -431,14 +431,14 @@ function render(container, controller, chrome, hooks = {}) {
|
|
|
431
431
|
const options = shellOptions
|
|
432
432
|
.map((shell) => `<option value="${escapeHtml(shell)}" ${shell === currentShell ? 'selected' : ''}>${escapeHtml(shell)}</option>`)
|
|
433
433
|
.join('');
|
|
434
|
-
controlHtml = `
|
|
435
|
-
<div class="setting-shell-control">
|
|
436
|
-
<select class="setting-inline-select" data-action="shell-select" data-key-index="${index}">
|
|
437
|
-
${options}
|
|
438
|
-
<option value="__custom__" ${isCustomShell ? 'selected' : ''}>Custom...</option>
|
|
439
|
-
</select>
|
|
440
|
-
<input class="setting-inline-input setting-shell-custom${isCustomShell ? '' : ' hidden'}" data-action="shell-custom" data-key-index="${index}" type="text" value="${escapeHtml(currentShell)}" placeholder="Type custom shell path"/>
|
|
441
|
-
</div>
|
|
434
|
+
controlHtml = `
|
|
435
|
+
<div class="setting-shell-control">
|
|
436
|
+
<select class="setting-inline-select" data-action="shell-select" data-key-index="${index}">
|
|
437
|
+
${options}
|
|
438
|
+
<option value="__custom__" ${isCustomShell ? 'selected' : ''}>Custom...</option>
|
|
439
|
+
</select>
|
|
440
|
+
<input class="setting-inline-input setting-shell-custom${isCustomShell ? '' : ' hidden'}" data-action="shell-custom" data-key-index="${index}" type="text" value="${escapeHtml(currentShell)}" placeholder="Type custom shell path"/>
|
|
441
|
+
</div>
|
|
442
442
|
`;
|
|
443
443
|
}
|
|
444
444
|
else if (entry.valueType === 'boolean') {
|
|
@@ -457,30 +457,30 @@ function render(container, controller, chrome, hooks = {}) {
|
|
|
457
457
|
else {
|
|
458
458
|
controlHtml = `<input class="setting-inline-input" data-action="edit-string" data-key-index="${index}" type="text" value="${escapeHtml(String(entry.value ?? ''))}"/>`;
|
|
459
459
|
}
|
|
460
|
-
return `
|
|
461
|
-
<section class="setting-row">
|
|
462
|
-
<div class="setting-info">
|
|
463
|
-
<h3>${escapeHtml(keyTitle)}</h3>
|
|
464
|
-
${description ? `<p>${escapeHtml(description)}</p>` : ''}
|
|
465
|
-
<p class="setting-summary${summary ? '' : ' hidden'}" data-setting-summary-key="${escapeHtml(entry.key)}">${summary ? escapeHtml(summary) : ''}</p>
|
|
466
|
-
</div>
|
|
467
|
-
<div class="setting-control">${controlHtml}</div>
|
|
468
|
-
</section>
|
|
460
|
+
return `
|
|
461
|
+
<section class="setting-row">
|
|
462
|
+
<div class="setting-info">
|
|
463
|
+
<h3>${escapeHtml(keyTitle)}</h3>
|
|
464
|
+
${description ? `<p>${escapeHtml(description)}</p>` : ''}
|
|
465
|
+
<p class="setting-summary${summary ? '' : ' hidden'}" data-setting-summary-key="${escapeHtml(entry.key)}">${summary ? escapeHtml(summary) : ''}</p>
|
|
466
|
+
</div>
|
|
467
|
+
<div class="setting-control">${controlHtml}</div>
|
|
468
|
+
</section>
|
|
469
469
|
`;
|
|
470
470
|
}).join('');
|
|
471
|
-
container.innerHTML = `
|
|
472
|
-
<main id="tool-shell" class="${shellClasses}">
|
|
473
|
-
${renderCompactRow({ id: 'compact-toggle', label: 'View config', filename: 'Desktop Commander', variant: 'ready', expandable: true, expanded: chrome.expanded, interactive: true })}
|
|
474
|
-
|
|
475
|
-
<section class="panel config-card">
|
|
476
|
-
<div class="panel-content-wrapper">
|
|
477
|
-
<div class="settings-stack" aria-label="Desktop Commander settings">${settingsHtml}</div>
|
|
478
|
-
</div>
|
|
479
|
-
</section>
|
|
480
|
-
|
|
481
|
-
${renderArrayModalMarkup('List Setting')}
|
|
482
|
-
</main>
|
|
483
|
-
<div id="config-tooltip" class="config-tooltip" role="status" aria-live="polite" hidden></div>
|
|
471
|
+
container.innerHTML = `
|
|
472
|
+
<main id="tool-shell" class="${shellClasses}">
|
|
473
|
+
${renderCompactRow({ id: 'compact-toggle', label: 'View config', filename: 'Desktop Commander', variant: 'ready', expandable: true, expanded: chrome.expanded, interactive: true })}
|
|
474
|
+
|
|
475
|
+
<section class="panel config-card">
|
|
476
|
+
<div class="panel-content-wrapper">
|
|
477
|
+
<div class="settings-stack" aria-label="Desktop Commander settings">${settingsHtml}</div>
|
|
478
|
+
</div>
|
|
479
|
+
</section>
|
|
480
|
+
|
|
481
|
+
${renderArrayModalMarkup('List Setting')}
|
|
482
|
+
</main>
|
|
483
|
+
<div id="config-tooltip" class="config-tooltip" role="status" aria-live="polite" hidden></div>
|
|
484
484
|
`;
|
|
485
485
|
const toolShell = container.querySelector('#tool-shell');
|
|
486
486
|
const compactRow = container.querySelector('.compact-row--ready');
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { escapeHtml } from '../../shared/escape-html.js';
|
|
2
2
|
export function renderArrayModalMarkup(initialTitle) {
|
|
3
|
-
return `
|
|
4
|
-
<div class="array-modal" id="array-modal" hidden>
|
|
5
|
-
<div class="array-modal-card">
|
|
6
|
-
<header>
|
|
7
|
-
<h3 id="array-modal-title">${escapeHtml(initialTitle)}</h3>
|
|
8
|
-
<div class="array-modal-actions">
|
|
9
|
-
<button type="button" id="array-modal-save" aria-label="Save list changes">
|
|
10
|
-
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 13l4 4L19 7"></path></svg>
|
|
11
|
-
</button>
|
|
12
|
-
<button type="button" id="array-modal-close" aria-label="Close list editor">
|
|
13
|
-
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M7 7l10 10M17 7L7 17"></path></svg>
|
|
14
|
-
</button>
|
|
15
|
-
</div>
|
|
16
|
-
</header>
|
|
17
|
-
<p class="array-modal-description" id="array-modal-description"></p>
|
|
18
|
-
<p class="array-modal-hint">Type an item, then press Enter (or click away) to add it. A new empty row appears automatically.</p>
|
|
19
|
-
<p class="array-modal-error hidden" id="array-modal-error" role="status" aria-live="polite"></p>
|
|
20
|
-
<div class="array-modal-list" id="array-modal-list"></div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
3
|
+
return `
|
|
4
|
+
<div class="array-modal" id="array-modal" hidden>
|
|
5
|
+
<div class="array-modal-card">
|
|
6
|
+
<header>
|
|
7
|
+
<h3 id="array-modal-title">${escapeHtml(initialTitle)}</h3>
|
|
8
|
+
<div class="array-modal-actions">
|
|
9
|
+
<button type="button" id="array-modal-save" aria-label="Save list changes">
|
|
10
|
+
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5 13l4 4L19 7"></path></svg>
|
|
11
|
+
</button>
|
|
12
|
+
<button type="button" id="array-modal-close" aria-label="Close list editor">
|
|
13
|
+
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M7 7l10 10M17 7L7 17"></path></svg>
|
|
14
|
+
</button>
|
|
15
|
+
</div>
|
|
16
|
+
</header>
|
|
17
|
+
<p class="array-modal-description" id="array-modal-description"></p>
|
|
18
|
+
<p class="array-modal-hint">Type an item, then press Enter (or click away) to add it. A new empty row appears automatically.</p>
|
|
19
|
+
<p class="array-modal-error hidden" id="array-modal-error" role="status" aria-live="polite"></p>
|
|
20
|
+
<div class="array-modal-list" id="array-modal-list"></div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
23
|
`;
|
|
24
24
|
}
|
|
25
25
|
export function createArrayModalController(options) {
|
|
@@ -65,18 +65,18 @@ export function createArrayModalController(options) {
|
|
|
65
65
|
if (!modalList) {
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
modalList.innerHTML = `
|
|
69
|
-
<div class="array-modal-row array-modal-row--new">
|
|
70
|
-
<input id="array-modal-new-item" type="text" placeholder="Add item" aria-label="Add new item" />
|
|
71
|
-
</div>
|
|
72
|
-
${modalItems.map((item, index) => `
|
|
73
|
-
<div class="array-modal-row" data-modal-index="${index}">
|
|
74
|
-
<input class="array-modal-item-input" type="text" value="${escapeHtml(item)}" aria-label="Item ${index + 1}" />
|
|
75
|
-
<button type="button" class="array-modal-item-remove" aria-label="Remove item ${index + 1}">
|
|
76
|
-
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 10v7M14 10v7"></path></svg>
|
|
77
|
-
</button>
|
|
78
|
-
</div>
|
|
79
|
-
`).join('')}
|
|
68
|
+
modalList.innerHTML = `
|
|
69
|
+
<div class="array-modal-row array-modal-row--new">
|
|
70
|
+
<input id="array-modal-new-item" type="text" placeholder="Add item" aria-label="Add new item" />
|
|
71
|
+
</div>
|
|
72
|
+
${modalItems.map((item, index) => `
|
|
73
|
+
<div class="array-modal-row" data-modal-index="${index}">
|
|
74
|
+
<input class="array-modal-item-input" type="text" value="${escapeHtml(item)}" aria-label="Item ${index + 1}" />
|
|
75
|
+
<button type="button" class="array-modal-item-remove" aria-label="Remove item ${index + 1}">
|
|
76
|
+
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 10v7M14 10v7"></path></svg>
|
|
77
|
+
</button>
|
|
78
|
+
</div>
|
|
79
|
+
`).join('')}
|
|
80
80
|
`;
|
|
81
81
|
const addModalItem = (value) => {
|
|
82
82
|
const normalized = value.trim();
|