@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
@@ -0,0 +1,118 @@
1
+ type NodeKind = 'nvm' | 'fnm' | 'Volta' | 'asdf' | 'mise' | 'Homebrew' | "Claude Desktop's bundled Node" | 'global install' | 'unknown';
2
+ interface HostTiming {
3
+ host: string;
4
+ dnsMs?: number;
5
+ /** TLS handshake for https, TCP connect for http. */
6
+ connect?: {
7
+ kind: 'TLS' | 'TCP';
8
+ ms: number;
9
+ };
10
+ error?: string;
11
+ }
12
+ export interface DiagnosticsReport {
13
+ format: 1;
14
+ createdAt: string;
15
+ versions: {
16
+ desktopCommander: string;
17
+ node: string;
18
+ /** null: npm not found */
19
+ npm: string | null;
20
+ os: {
21
+ name: string;
22
+ release: string;
23
+ arch: string;
24
+ };
25
+ /** process.execPath, home folder as ~ */
26
+ nodePath: string;
27
+ nodeKind: NodeKind;
28
+ /** process.argv[1], home folder as ~ */
29
+ entryPath: string;
30
+ runKind: 'MCPB' | 'npx' | 'dev checkout' | 'global npm' | 'unknown';
31
+ };
32
+ clock: {
33
+ serverAheadSeconds: number | null;
34
+ error?: string;
35
+ };
36
+ network: {
37
+ server: HostTiming & {
38
+ mcpInfo: {
39
+ ms: number[];
40
+ statuses: number[];
41
+ error?: string;
42
+ };
43
+ };
44
+ supabase: (HostTiming & {
45
+ rest: {
46
+ status?: number;
47
+ ms?: number;
48
+ error?: string;
49
+ };
50
+ realtime: {
51
+ openedMs?: number;
52
+ heartbeat: boolean;
53
+ heartbeatMs?: number;
54
+ error?: string;
55
+ };
56
+ }) | {
57
+ error: string;
58
+ };
59
+ proxy: {
60
+ httpsProxy: boolean;
61
+ httpProxy: boolean;
62
+ };
63
+ };
64
+ device: {
65
+ deviceJson: boolean;
66
+ parses: boolean;
67
+ /** In full: support finds the device by it. null if missing or not id-shaped. */
68
+ id: string | null;
69
+ session: boolean;
70
+ accessToken: boolean;
71
+ refreshToken: boolean;
72
+ /** When device.json was last saved (its modification time), ISO in UTC. */
73
+ savedAt: string | null;
74
+ };
75
+ settings: {
76
+ telemetryEnabled: boolean | null;
77
+ clientId: string | null;
78
+ };
79
+ deviceLog: {
80
+ files: number;
81
+ lines: number;
82
+ first: string | null;
83
+ last: string | null;
84
+ lastText: string | null;
85
+ };
86
+ /** Copies of the MCP server running now, and the earliest start (ISO). null: the process list failed. */
87
+ desktopCommanderMcp: {
88
+ running: number | null;
89
+ since: string | null;
90
+ error?: string;
91
+ };
92
+ }
93
+ interface LogPart {
94
+ name: string;
95
+ text: string;
96
+ }
97
+ /**
98
+ * Which installer the Node executable comes from, read from its path. A path
99
+ * none of these match is "unknown": the report shows the path itself anyway.
100
+ */
101
+ export declare function nodeKind(execPath: string): NodeKind;
102
+ export declare function collectReport(): Promise<{
103
+ report: DiagnosticsReport;
104
+ logParts: LogPart[];
105
+ diagnosticsUrl: string | null;
106
+ }>;
107
+ export declare function formatReport(report: DiagnosticsReport): string;
108
+ /** Collects the report and writes the zip to the home folder; returns its bytes for the upload too. */
109
+ export declare function writeReport(): Promise<{
110
+ file: string;
111
+ bytes: number;
112
+ zip: Buffer;
113
+ report: DiagnosticsReport;
114
+ diagnosticsUrl: string | null;
115
+ }>;
116
+ /** `remote --report`: the terminal side. */
117
+ export declare function runReport(): Promise<void>;
118
+ export {};