@wonderwhy-er/desktop-commander 0.2.38 → 0.2.39

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 (364) hide show
  1. package/README.md +53 -2
  2. package/dist/handlers/filesystem-handlers.d.ts +5 -0
  3. package/dist/handlers/filesystem-handlers.js +14 -2
  4. package/dist/remote-device/desktop-commander-integration.js +1 -1
  5. package/dist/search-manager.js +31 -38
  6. package/dist/server.js +8 -3
  7. package/dist/terminal-manager.js +4 -2
  8. package/dist/tools/edit.js +34 -1
  9. package/dist/tools/filesystem.js +91 -3
  10. package/dist/tools/improved-process-tools.js +2 -1
  11. package/dist/ui/config-editor/app.js +840 -0
  12. package/dist/ui/config-editor/array-modal.d.ts +19 -0
  13. package/dist/ui/config-editor/array-modal.js +185 -0
  14. package/dist/ui/config-editor/config-editor-runtime.js +65 -14096
  15. package/dist/ui/config-editor/main.js +2 -0
  16. package/dist/ui/config-editor/src/App.d.ts +43 -0
  17. package/dist/ui/config-editor/src/components/layout.d.ts +4 -0
  18. package/dist/ui/config-editor/src/components/layout.js +83 -0
  19. package/dist/ui/config-editor/src/components/toolbar.d.ts +1 -0
  20. package/dist/ui/config-editor/src/components/toolbar.js +21 -0
  21. package/dist/ui/config-editor/src/config-values.d.ts +6 -0
  22. package/dist/ui/config-editor/src/config-values.js +61 -0
  23. package/dist/ui/config-editor/src/contracts.d.ts +14 -0
  24. package/dist/ui/config-editor/src/contracts.js +3 -0
  25. package/dist/ui/config-editor/src/directory-browser.d.ts +6 -0
  26. package/dist/ui/config-editor/src/directory-browser.js +71 -0
  27. package/dist/ui/config-editor/src/layout.d.ts +5 -0
  28. package/dist/ui/config-editor/src/layout.js +90 -0
  29. package/dist/ui/config-editor/src/parsing.d.ts +5 -0
  30. package/dist/ui/config-editor/src/parsing.js +50 -0
  31. package/dist/ui/config-editor/src/toolbar.d.ts +1 -0
  32. package/dist/ui/config-editor/src/toolbar.js +18 -0
  33. package/dist/ui/config-editor/src/types.d.ts +17 -0
  34. package/dist/ui/config-editor/src/types.js +3 -0
  35. package/dist/ui/config-editor/src/utils/config-values.d.ts +9 -0
  36. package/dist/ui/config-editor/src/utils/config-values.js +61 -0
  37. package/dist/ui/config-editor/src/utils/directory-browser.d.ts +31 -0
  38. package/dist/ui/config-editor/src/utils/directory-browser.js +201 -0
  39. package/dist/ui/config-editor/src/utils/parsing.d.ts +8 -0
  40. package/dist/ui/config-editor/src/utils/parsing.js +50 -0
  41. package/dist/ui/config-editor/styles.css +2 -1
  42. package/dist/ui/file-preview/{src/app.d.ts → app.d.ts} +1 -1
  43. package/dist/ui/file-preview/app.js +2020 -0
  44. package/dist/ui/file-preview/components/code-viewer.d.ts +6 -0
  45. package/dist/ui/file-preview/components/code-viewer.js +73 -0
  46. package/dist/ui/file-preview/components/highlighting.d.ts +2 -0
  47. package/dist/ui/file-preview/components/highlighting.js +54 -0
  48. package/dist/ui/file-preview/components/html-renderer.d.ts +5 -0
  49. package/dist/ui/file-preview/components/html-renderer.js +47 -0
  50. package/dist/ui/file-preview/components/markdown-renderer.d.ts +1 -0
  51. package/dist/ui/file-preview/components/markdown-renderer.js +67 -0
  52. package/dist/ui/file-preview/components/toolbar.d.ts +6 -0
  53. package/dist/ui/file-preview/components/toolbar.js +75 -0
  54. package/dist/ui/file-preview/image-preview.d.ts +3 -0
  55. package/dist/ui/file-preview/image-preview.js +21 -0
  56. package/dist/ui/file-preview/main.js +5 -0
  57. package/dist/ui/file-preview/markdown/editor.d.ts +36 -0
  58. package/dist/ui/file-preview/markdown/editor.js +643 -0
  59. package/dist/ui/file-preview/markdown/linking.d.ts +9 -0
  60. package/dist/ui/file-preview/markdown/linking.js +210 -0
  61. package/dist/ui/file-preview/markdown/outline.d.ts +7 -0
  62. package/dist/ui/file-preview/markdown/outline.js +40 -0
  63. package/dist/ui/file-preview/markdown/preview.d.ts +8 -0
  64. package/dist/ui/file-preview/markdown/preview.js +33 -0
  65. package/dist/ui/file-preview/markdown/slugify.d.ts +3 -0
  66. package/dist/ui/file-preview/markdown/slugify.js +31 -0
  67. package/dist/ui/file-preview/markdown/toc.d.ts +11 -0
  68. package/dist/ui/file-preview/markdown/toc.js +75 -0
  69. package/dist/ui/file-preview/markdown/utils.d.ts +1 -0
  70. package/dist/ui/file-preview/markdown/utils.js +15 -0
  71. package/dist/ui/file-preview/markdown/workspace-controller.d.ts +25 -0
  72. package/dist/ui/file-preview/markdown/workspace-controller.js +40 -0
  73. package/dist/ui/file-preview/preview-runtime.js +384 -26533
  74. package/dist/ui/file-preview/shared/preview-file-types.d.ts +1 -1
  75. package/dist/ui/file-preview/src/App.d.ts +4 -0
  76. package/dist/ui/file-preview/src/App.js +564 -0
  77. package/dist/ui/file-preview/src/components/CodeViewer.d.ts +6 -0
  78. package/dist/ui/file-preview/src/components/CodeViewer.js +60 -0
  79. package/dist/ui/file-preview/src/components/HtmlRenderer.d.ts +8 -0
  80. package/dist/ui/file-preview/src/components/HtmlRenderer.js +45 -0
  81. package/dist/ui/file-preview/src/components/MarkdownRenderer.d.ts +1 -0
  82. package/dist/ui/file-preview/src/components/MarkdownRenderer.js +15 -0
  83. package/dist/ui/file-preview/src/components/editor-toolbar.d.ts +15 -0
  84. package/dist/ui/file-preview/src/components/editor-toolbar.js +384 -0
  85. package/dist/ui/file-preview/src/components/markdown-editor.d.ts +29 -0
  86. package/dist/ui/file-preview/src/components/markdown-editor.js +535 -0
  87. package/dist/ui/file-preview/src/components/markdown-renderer.js +47 -9
  88. package/dist/ui/file-preview/src/directory-controller.d.ts +8 -0
  89. package/dist/ui/file-preview/src/directory-controller.js +233 -0
  90. package/dist/ui/file-preview/src/document-layout.d.ts +20 -0
  91. package/dist/ui/file-preview/src/document-layout.js +109 -0
  92. package/dist/ui/file-preview/src/document-outline.d.ts +17 -0
  93. package/dist/ui/file-preview/src/document-outline.js +97 -0
  94. package/dist/ui/file-preview/src/document-workspace.d.ts +19 -0
  95. package/dist/ui/file-preview/src/document-workspace.js +33 -0
  96. package/dist/ui/file-preview/src/file-type-handlers.d.ts +10 -0
  97. package/dist/ui/file-preview/src/file-type-handlers.js +98 -0
  98. package/dist/ui/file-preview/src/host/external-actions.d.ts +19 -0
  99. package/dist/ui/file-preview/src/host/external-actions.js +94 -0
  100. package/dist/ui/file-preview/src/host/selection-context.d.ts +9 -0
  101. package/dist/ui/file-preview/src/host/selection-context.js +106 -0
  102. package/dist/ui/file-preview/src/markdown/block-merge.d.ts +25 -0
  103. package/dist/ui/file-preview/src/markdown/block-merge.js +86 -0
  104. package/dist/ui/file-preview/src/markdown/conflict-dialog.d.ts +40 -0
  105. package/dist/ui/file-preview/src/markdown/conflict-dialog.js +163 -0
  106. package/dist/ui/file-preview/src/markdown/controller.d.ts +38 -0
  107. package/dist/ui/file-preview/src/markdown/controller.js +921 -0
  108. package/dist/ui/file-preview/src/markdown/editor.d.ts +35 -0
  109. package/dist/ui/file-preview/src/markdown/editor.js +691 -0
  110. package/dist/ui/file-preview/src/markdown/link-modal.d.ts +13 -0
  111. package/dist/ui/file-preview/src/markdown/link-modal.js +213 -0
  112. package/dist/ui/file-preview/src/markdown/linking.d.ts +16 -0
  113. package/dist/ui/file-preview/src/markdown/linking.js +228 -0
  114. package/dist/ui/file-preview/src/markdown/outline.d.ts +2 -0
  115. package/dist/ui/file-preview/src/markdown/outline.js +16 -0
  116. package/dist/ui/file-preview/src/markdown/parser.d.ts +30 -0
  117. package/dist/ui/file-preview/src/markdown/parser.js +38 -0
  118. package/dist/ui/file-preview/src/markdown/preview.d.ts +1 -0
  119. package/dist/ui/file-preview/src/markdown/preview.js +20 -0
  120. package/dist/ui/file-preview/src/markdown/raw-editor.d.ts +8 -0
  121. package/dist/ui/file-preview/src/markdown/raw-editor.js +61 -0
  122. package/dist/ui/file-preview/src/markdown/selection-toolbar.d.ts +14 -0
  123. package/dist/ui/file-preview/src/markdown/selection-toolbar.js +128 -0
  124. package/dist/ui/file-preview/src/markdown/slugify.d.ts +3 -0
  125. package/dist/ui/file-preview/src/markdown/slugify.js +31 -0
  126. package/dist/ui/file-preview/src/markdown/toc.d.ts +11 -0
  127. package/dist/ui/file-preview/src/markdown/toc.js +75 -0
  128. package/dist/ui/file-preview/src/markdown/utils.d.ts +1 -0
  129. package/dist/ui/file-preview/src/markdown/utils.js +15 -0
  130. package/dist/ui/file-preview/src/markdown-workspace/editor.d.ts +36 -0
  131. package/dist/ui/file-preview/src/markdown-workspace/editor.js +643 -0
  132. package/dist/ui/file-preview/src/markdown-workspace/linking.d.ts +9 -0
  133. package/dist/ui/file-preview/src/markdown-workspace/linking.js +210 -0
  134. package/dist/ui/file-preview/src/markdown-workspace/outline.d.ts +7 -0
  135. package/dist/ui/file-preview/src/markdown-workspace/outline.js +40 -0
  136. package/dist/ui/file-preview/src/markdown-workspace/preview.d.ts +8 -0
  137. package/dist/ui/file-preview/src/markdown-workspace/preview.js +33 -0
  138. package/dist/ui/file-preview/src/markdown-workspace/slugify.d.ts +3 -0
  139. package/dist/ui/file-preview/src/markdown-workspace/slugify.js +31 -0
  140. package/dist/ui/file-preview/src/markdown-workspace/toc.d.ts +11 -0
  141. package/dist/ui/file-preview/src/markdown-workspace/toc.js +75 -0
  142. package/dist/ui/file-preview/src/markdown-workspace/utils.d.ts +1 -0
  143. package/dist/ui/file-preview/src/markdown-workspace/utils.js +15 -0
  144. package/dist/ui/file-preview/src/markdown-workspace/workspace-controller.d.ts +25 -0
  145. package/dist/ui/file-preview/src/markdown-workspace/workspace-controller.js +40 -0
  146. package/dist/ui/file-preview/src/model.d.ts +34 -0
  147. package/dist/ui/file-preview/src/panel-actions.d.ts +17 -0
  148. package/dist/ui/file-preview/src/panel-actions.js +182 -0
  149. package/dist/ui/file-preview/src/path-utils.d.ts +6 -0
  150. package/dist/ui/file-preview/src/path-utils.js +64 -0
  151. package/dist/ui/file-preview/src/payload-utils.d.ts +11 -0
  152. package/dist/ui/file-preview/src/payload-utils.js +94 -0
  153. package/dist/ui/file-preview/styles.css +1066 -233
  154. package/dist/ui/file-preview/types.d.ts +1 -0
  155. package/dist/ui/server-integration.d.ts +13 -0
  156. package/dist/ui/server-integration.js +31 -0
  157. package/dist/ui/shared/ToolHeader.d.ts +9 -0
  158. package/dist/ui/shared/ToolHeader.js +29 -0
  159. package/dist/ui/shared/app-bootstrap.d.ts +9 -0
  160. package/dist/ui/shared/app-bootstrap.js +15 -0
  161. package/dist/ui/shared/guards.d.ts +1 -0
  162. package/dist/ui/shared/guards.js +3 -0
  163. package/dist/ui/shared/host-lifecycle.d.ts +1 -0
  164. package/dist/ui/shared/host-lifecycle.js +8 -2
  165. package/dist/ui/shared/widget-state.d.ts +6 -1
  166. package/dist/ui/shared/widget-state.js +102 -4
  167. package/dist/utils/files/base.d.ts +2 -0
  168. package/dist/utils/open-browser.js +1 -1
  169. package/dist/utils/ui-call-context.d.ts +8 -0
  170. package/dist/utils/ui-call-context.js +72 -0
  171. package/dist/version.d.ts +1 -1
  172. package/dist/version.js +1 -1
  173. package/package.json +6 -1
  174. package/dist/data/spec-kit-prompts.json +0 -123
  175. package/dist/handlers/macos-control-handlers.d.ts +0 -16
  176. package/dist/handlers/macos-control-handlers.js +0 -81
  177. package/dist/handlers/node-handlers.d.ts +0 -6
  178. package/dist/handlers/node-handlers.js +0 -73
  179. package/dist/handlers/test-crash-handler.d.ts +0 -11
  180. package/dist/handlers/test-crash-handler.js +0 -26
  181. package/dist/http-index.d.ts +0 -45
  182. package/dist/http-index.js +0 -51
  183. package/dist/http-server-auto-tunnel.js +0 -667
  184. package/dist/http-server-named-tunnel.d.ts +0 -2
  185. package/dist/http-server-named-tunnel.js +0 -167
  186. package/dist/http-server-tunnel.d.ts +0 -2
  187. package/dist/http-server-tunnel.js +0 -111
  188. package/dist/http-server.d.ts +0 -2
  189. package/dist/http-server.js +0 -270
  190. package/dist/index-oauth.d.ts +0 -2
  191. package/dist/index-oauth.js +0 -201
  192. package/dist/lib.d.ts +0 -10
  193. package/dist/lib.js +0 -10
  194. package/dist/oauth/auth-middleware.d.ts +0 -20
  195. package/dist/oauth/auth-middleware.js +0 -62
  196. package/dist/oauth/index.d.ts +0 -3
  197. package/dist/oauth/index.js +0 -3
  198. package/dist/oauth/oauth-manager.d.ts +0 -80
  199. package/dist/oauth/oauth-manager.js +0 -179
  200. package/dist/oauth/oauth-routes.d.ts +0 -3
  201. package/dist/oauth/oauth-routes.js +0 -377
  202. package/dist/oauth/provider.d.ts +0 -22
  203. package/dist/oauth/provider.js +0 -124
  204. package/dist/oauth/server.d.ts +0 -18
  205. package/dist/oauth/server.js +0 -160
  206. package/dist/oauth/types.d.ts +0 -54
  207. package/dist/oauth/types.js +0 -2
  208. package/dist/remote-device/templates/auth-success.d.ts +0 -1
  209. package/dist/remote-device/templates/auth-success.js +0 -30
  210. package/dist/setup.log +0 -275
  211. package/dist/test-setup.js +0 -14
  212. package/dist/tools/docx/builders/html-builder.d.ts +0 -17
  213. package/dist/tools/docx/builders/html-builder.js +0 -92
  214. package/dist/tools/docx/builders/image.d.ts +0 -14
  215. package/dist/tools/docx/builders/image.js +0 -84
  216. package/dist/tools/docx/builders/index.d.ts +0 -11
  217. package/dist/tools/docx/builders/index.js +0 -11
  218. package/dist/tools/docx/builders/markdown-builder.d.ts +0 -2
  219. package/dist/tools/docx/builders/markdown-builder.js +0 -260
  220. package/dist/tools/docx/builders/paragraph.d.ts +0 -12
  221. package/dist/tools/docx/builders/paragraph.js +0 -29
  222. package/dist/tools/docx/builders/table.d.ts +0 -10
  223. package/dist/tools/docx/builders/table.js +0 -138
  224. package/dist/tools/docx/builders/utils.d.ts +0 -5
  225. package/dist/tools/docx/builders/utils.js +0 -18
  226. package/dist/tools/docx/constants.d.ts +0 -32
  227. package/dist/tools/docx/constants.js +0 -61
  228. package/dist/tools/docx/converters/markdown-to-html.d.ts +0 -17
  229. package/dist/tools/docx/converters/markdown-to-html.js +0 -111
  230. package/dist/tools/docx/create.d.ts +0 -21
  231. package/dist/tools/docx/create.js +0 -386
  232. package/dist/tools/docx/dom.d.ts +0 -139
  233. package/dist/tools/docx/dom.js +0 -448
  234. package/dist/tools/docx/errors.d.ts +0 -28
  235. package/dist/tools/docx/errors.js +0 -48
  236. package/dist/tools/docx/extractors/images.d.ts +0 -14
  237. package/dist/tools/docx/extractors/images.js +0 -40
  238. package/dist/tools/docx/extractors/metadata.d.ts +0 -14
  239. package/dist/tools/docx/extractors/metadata.js +0 -64
  240. package/dist/tools/docx/extractors/sections.d.ts +0 -14
  241. package/dist/tools/docx/extractors/sections.js +0 -61
  242. package/dist/tools/docx/html.d.ts +0 -17
  243. package/dist/tools/docx/html.js +0 -111
  244. package/dist/tools/docx/index.d.ts +0 -10
  245. package/dist/tools/docx/index.js +0 -10
  246. package/dist/tools/docx/markdown.d.ts +0 -84
  247. package/dist/tools/docx/markdown.js +0 -507
  248. package/dist/tools/docx/modify.d.ts +0 -28
  249. package/dist/tools/docx/modify.js +0 -271
  250. package/dist/tools/docx/operations/handlers/index.d.ts +0 -39
  251. package/dist/tools/docx/operations/handlers/index.js +0 -152
  252. package/dist/tools/docx/operations/html-manipulator.d.ts +0 -24
  253. package/dist/tools/docx/operations/html-manipulator.js +0 -352
  254. package/dist/tools/docx/operations/index.d.ts +0 -14
  255. package/dist/tools/docx/operations/index.js +0 -61
  256. package/dist/tools/docx/operations/operation-handlers.d.ts +0 -3
  257. package/dist/tools/docx/operations/operation-handlers.js +0 -67
  258. package/dist/tools/docx/operations/preprocessor.d.ts +0 -14
  259. package/dist/tools/docx/operations/preprocessor.js +0 -44
  260. package/dist/tools/docx/operations/xml-replacer.d.ts +0 -9
  261. package/dist/tools/docx/operations/xml-replacer.js +0 -35
  262. package/dist/tools/docx/operations.d.ts +0 -13
  263. package/dist/tools/docx/operations.js +0 -13
  264. package/dist/tools/docx/ops/delete-paragraph-at-body-index.d.ts +0 -11
  265. package/dist/tools/docx/ops/delete-paragraph-at-body-index.js +0 -23
  266. package/dist/tools/docx/ops/header-replace-text-exact.d.ts +0 -13
  267. package/dist/tools/docx/ops/header-replace-text-exact.js +0 -55
  268. package/dist/tools/docx/ops/index.d.ts +0 -17
  269. package/dist/tools/docx/ops/index.js +0 -70
  270. package/dist/tools/docx/ops/insert-image-after-text.d.ts +0 -24
  271. package/dist/tools/docx/ops/insert-image-after-text.js +0 -128
  272. package/dist/tools/docx/ops/insert-paragraph-after-text.d.ts +0 -12
  273. package/dist/tools/docx/ops/insert-paragraph-after-text.js +0 -74
  274. package/dist/tools/docx/ops/insert-table-after-text.d.ts +0 -19
  275. package/dist/tools/docx/ops/insert-table-after-text.js +0 -57
  276. package/dist/tools/docx/ops/replace-hyperlink-url.d.ts +0 -12
  277. package/dist/tools/docx/ops/replace-hyperlink-url.js +0 -37
  278. package/dist/tools/docx/ops/replace-paragraph-at-body-index.d.ts +0 -9
  279. package/dist/tools/docx/ops/replace-paragraph-at-body-index.js +0 -25
  280. package/dist/tools/docx/ops/replace-paragraph-text-exact.d.ts +0 -21
  281. package/dist/tools/docx/ops/replace-paragraph-text-exact.js +0 -36
  282. package/dist/tools/docx/ops/replace-table-cell-text.d.ts +0 -25
  283. package/dist/tools/docx/ops/replace-table-cell-text.js +0 -85
  284. package/dist/tools/docx/ops/set-color-for-paragraph-exact.d.ts +0 -9
  285. package/dist/tools/docx/ops/set-color-for-paragraph-exact.js +0 -24
  286. package/dist/tools/docx/ops/set-color-for-style.d.ts +0 -13
  287. package/dist/tools/docx/ops/set-color-for-style.js +0 -31
  288. package/dist/tools/docx/ops/set-paragraph-style-at-body-index.d.ts +0 -8
  289. package/dist/tools/docx/ops/set-paragraph-style-at-body-index.js +0 -57
  290. package/dist/tools/docx/ops/table-set-cell-text.d.ts +0 -9
  291. package/dist/tools/docx/ops/table-set-cell-text.js +0 -40
  292. package/dist/tools/docx/parsers/image-extractor.d.ts +0 -18
  293. package/dist/tools/docx/parsers/image-extractor.js +0 -61
  294. package/dist/tools/docx/parsers/index.d.ts +0 -9
  295. package/dist/tools/docx/parsers/index.js +0 -9
  296. package/dist/tools/docx/parsers/paragraph-parser.d.ts +0 -2
  297. package/dist/tools/docx/parsers/paragraph-parser.js +0 -88
  298. package/dist/tools/docx/parsers/table-parser.d.ts +0 -9
  299. package/dist/tools/docx/parsers/table-parser.js +0 -72
  300. package/dist/tools/docx/parsers/xml-parser.d.ts +0 -25
  301. package/dist/tools/docx/parsers/xml-parser.js +0 -71
  302. package/dist/tools/docx/parsers/zip-reader.d.ts +0 -23
  303. package/dist/tools/docx/parsers/zip-reader.js +0 -52
  304. package/dist/tools/docx/read.d.ts +0 -27
  305. package/dist/tools/docx/read.js +0 -308
  306. package/dist/tools/docx/relationships.d.ts +0 -22
  307. package/dist/tools/docx/relationships.js +0 -76
  308. package/dist/tools/docx/structure.d.ts +0 -25
  309. package/dist/tools/docx/structure.js +0 -102
  310. package/dist/tools/docx/styled-html-parser.d.ts +0 -23
  311. package/dist/tools/docx/styled-html-parser.js +0 -1262
  312. package/dist/tools/docx/types.d.ts +0 -213
  313. package/dist/tools/docx/types.js +0 -5
  314. package/dist/tools/docx/utils/escaping.d.ts +0 -13
  315. package/dist/tools/docx/utils/escaping.js +0 -26
  316. package/dist/tools/docx/utils/images.d.ts +0 -9
  317. package/dist/tools/docx/utils/images.js +0 -26
  318. package/dist/tools/docx/utils/index.d.ts +0 -12
  319. package/dist/tools/docx/utils/index.js +0 -17
  320. package/dist/tools/docx/utils/markdown.d.ts +0 -13
  321. package/dist/tools/docx/utils/markdown.js +0 -32
  322. package/dist/tools/docx/utils/paths.d.ts +0 -15
  323. package/dist/tools/docx/utils/paths.js +0 -27
  324. package/dist/tools/docx/utils/versioning.d.ts +0 -25
  325. package/dist/tools/docx/utils/versioning.js +0 -55
  326. package/dist/tools/docx/utils.d.ts +0 -101
  327. package/dist/tools/docx/utils.js +0 -299
  328. package/dist/tools/docx/validate.d.ts +0 -33
  329. package/dist/tools/docx/validate.js +0 -49
  330. package/dist/tools/docx/validators.d.ts +0 -13
  331. package/dist/tools/docx/validators.js +0 -40
  332. package/dist/tools/docx/write.d.ts +0 -17
  333. package/dist/tools/docx/write.js +0 -88
  334. package/dist/tools/docx/xml-view-test.js +0 -63
  335. package/dist/tools/docx/xml-view.d.ts +0 -56
  336. package/dist/tools/docx/xml-view.js +0 -169
  337. package/dist/tools/docx/zip.d.ts +0 -21
  338. package/dist/tools/docx/zip.js +0 -35
  339. package/dist/tools/macos-control/ax-adapter.d.ts +0 -55
  340. package/dist/tools/macos-control/ax-adapter.js +0 -438
  341. package/dist/tools/macos-control/cdp-adapter.d.ts +0 -23
  342. package/dist/tools/macos-control/cdp-adapter.js +0 -402
  343. package/dist/tools/macos-control/orchestrator.d.ts +0 -77
  344. package/dist/tools/macos-control/orchestrator.js +0 -136
  345. package/dist/tools/macos-control/role-aliases.d.ts +0 -5
  346. package/dist/tools/macos-control/role-aliases.js +0 -34
  347. package/dist/tools/macos-control/types.d.ts +0 -129
  348. package/dist/tools/pdf-processor.d.ts +0 -1
  349. package/dist/tools/pdf-processor.js +0 -3
  350. package/dist/tools/search.d.ts +0 -32
  351. package/dist/tools/search.js +0 -202
  352. package/dist/ui/file-preview/src/app.js +0 -714
  353. package/dist/utils/crash-logger.d.ts +0 -18
  354. package/dist/utils/crash-logger.js +0 -44
  355. package/dist/utils/dedent.d.ts +0 -8
  356. package/dist/utils/dedent.js +0 -38
  357. /package/dist/ui/config-editor/{src/app.d.ts → app.d.ts} +0 -0
  358. /package/dist/{http-server-auto-tunnel.d.ts → ui/config-editor/main.d.ts} +0 -0
  359. /package/dist/ui/config-editor/src/{app.js → App.js} +0 -0
  360. /package/dist/{test-docx.d.ts → ui/file-preview/main.d.ts} +0 -0
  361. /package/dist/ui/file-preview/src/components/{toolbar.d.ts → Toolbar.d.ts} +0 -0
  362. /package/dist/ui/file-preview/src/components/{toolbar.js → Toolbar.js} +0 -0
  363. /package/dist/{tools/docx/xml-view-test.d.ts → ui/file-preview/src/model.js} +0 -0
  364. /package/dist/{tools/macos-control → ui/file-preview}/types.js +0 -0
@@ -1,667 +0,0 @@
1
- var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
2
- if (value !== null && value !== void 0) {
3
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
4
- var dispose, inner;
5
- if (async) {
6
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
7
- dispose = value[Symbol.asyncDispose];
8
- }
9
- if (dispose === void 0) {
10
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
11
- dispose = value[Symbol.dispose];
12
- if (async) inner = dispose;
13
- }
14
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
15
- if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
16
- env.stack.push({ value: value, dispose: dispose, async: async });
17
- }
18
- else if (async) {
19
- env.stack.push({ async: true });
20
- }
21
- return value;
22
- };
23
- var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
24
- return function (env) {
25
- function fail(e) {
26
- env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
27
- env.hasError = true;
28
- }
29
- var r, s = 0;
30
- function next() {
31
- while (r = env.stack.pop()) {
32
- try {
33
- if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
34
- if (r.dispose) {
35
- var result = r.dispose.call(r.value);
36
- if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
37
- }
38
- else s |= 1;
39
- }
40
- catch (e) {
41
- fail(e);
42
- }
43
- }
44
- if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
45
- if (env.hasError) throw env.error;
46
- }
47
- return next();
48
- };
49
- })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
50
- var e = new Error(message);
51
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
52
- });
53
- #;
54
- Tunnel;
55
- Options;
56
- for (Desktop; Commander; #)
57
- #;
58
- The;
59
- Problem;
60
- Currently;
61
- Desktop;
62
- Commander;
63
- requires: -;
64
- Named;
65
- tunnel(stable, URL) - `https://mcp.desktopcommander.app`
66
- - ;
67
- Requires;
68
- own;
69
- domain + Cloudflare;
70
- account
71
- - ;
72
- Not;
73
- accessible;
74
- for (all; users
75
- ** Goal; )
76
- : ** Make;
77
- Desktop;
78
- Commander;
79
- work;
80
- for (users; without; their)
81
- own;
82
- infrastructure.
83
- ;
84
- -- - ;
85
- #;
86
- Solution;
87
- Options;
88
- #;
89
- #;
90
- #;
91
- Option;
92
- 1;
93
- Random;
94
- Cloudflare;
95
- Tunnels(Quick, Start)
96
- ** Best;
97
- for (; ; )
98
- : ** Testing, development, personal;
99
- use
100
- ** How;
101
- it;
102
- works: **
103
- -Run `cloudflared tunnel --url http://localhost:3000`
104
- - Get;
105
- random;
106
- URL: `https://random-words-1234.trycloudflare.com`
107
- - ** Changes;
108
- every;
109
- restart **
110
- ** Pros;
111
- **
112
- -;
113
- No;
114
- domain;
115
- needed
116
- - ;
117
- No;
118
- Cloudflare;
119
- account;
120
- needed
121
- - ;
122
- Free
123
- - ;
124
- Works;
125
- immediately
126
- ** Cons;
127
- **
128
- -;
129
- URL;
130
- changes;
131
- on;
132
- restart
133
- - ;
134
- Must;
135
- reconfigure;
136
- clients;
137
- after;
138
- restart
139
- - ;
140
- OAuth;
141
- redirect;
142
- URIs;
143
- break ;
144
- (need);
145
- new URL;
146
- each;
147
- time;
148
- ** Implementation;
149
- **
150
- `` `bash
151
- # Already supported!
152
- npm run start:tunnel
153
-
154
- # Or manually:
155
- cloudflared tunnel --url http://localhost:3000 &
156
- node dist/http-server.js
157
- ` ``
158
- ** For;
159
- OAuth: **
160
- -;
161
- Not;
162
- viable(redirect, URIs, must, be, stable)
163
- - ;
164
- Works;
165
- without;
166
- auth;
167
- -- - ;
168
- #;
169
- #;
170
- Option;
171
- 2;
172
- Desktop;
173
- Commander;
174
- Cloud;
175
- Service(Recommended)
176
- ** Best;
177
- for (; ; )
178
- : ** Production;
179
- use, end;
180
- users
181
- ** How;
182
- it;
183
- works: **
184
- 1.;
185
- Desktop;
186
- Commander;
187
- hosts;
188
- a;
189
- proxy;
190
- service;
191
- 2.;
192
- Users;
193
- run;
194
- local;
195
- server;
196
- 3.;
197
- Proxy;
198
- connects;
199
- local;
200
- cloud;
201
- 4.;
202
- Users;
203
- get;
204
- stable;
205
- subdomain: `https://username.dc.run/mcp`
206
- ** Pros;
207
- **
208
- -;
209
- No;
210
- domain;
211
- needed
212
- - ;
213
- Stable;
214
- URLs(survives, restarts)
215
- - ;
216
- OAuth;
217
- works(stable, redirect, URIs)
218
- - ;
219
- Easy;
220
- user;
221
- experience
222
- - ;
223
- Can;
224
- manage;
225
- auth / quotas;
226
- centrally
227
- ** Cons;
228
- **
229
- -;
230
- Requires;
231
- building;
232
- proxy;
233
- service
234
- - ;
235
- Hosting;
236
- costs
237
- - ;
238
- Privacy;
239
- concerns(traffic, goes, through, proxy)
240
- ** Architecture;
241
- **
242
- `` `
243
- User's Computer Desktop Commander Cloud AI Client
244
- ┌──────────────┐ ┌─────────────────────┐ ┌──────────┐
245
- │ │ │ │ │ │
246
- │ DC Server │─────────────▶│ Proxy Service │◀────────│ Claude/ │
247
- │ (local:3000) │ WebSocket │ username.dc.run │ HTTPS │ ChatGPT │
248
- │ │ │ │ │ │
249
- └──────────────┘ └─────────────────────┘ └──────────┘
250
- ` ``
251
- ** Implementation;
252
- Plan: **
253
- -Build;
254
- proxy;
255
- service(Node.js + WebSocket)
256
- - Deploy;
257
- to;
258
- cloud(Vercel / Railway / Fly.io)
259
- - Users;
260
- register;
261
- for (subdomain
262
- - Local; client; connects)
263
- to;
264
- proxy;
265
- -- - ;
266
- #;
267
- #;
268
- Option;
269
- 3;
270
- ngrok;
271
- Integration
272
- ** Best;
273
- for (; ; )
274
- : ** Users;
275
- already;
276
- /**
277
- * Start Desktop Commander with auto-detected tunnel
278
- *
279
- * Usage:
280
- * node http-server-auto-tunnel.js
281
- *
282
- * This script:
283
- * 1. Checks for TUNNEL_URL env var (named tunnel)
284
- * 2. If not set, starts random Cloudflare tunnel
285
- * 3. Extracts tunnel URL from cloudflared output
286
- * 4. Starts HTTP server with detected URL
287
- */
288
- import { spawn } from 'child_process';
289
- import { fileURLToPath } from 'url';
290
- import { dirname } from 'path';
291
- function startRandomTunnel() {
292
- console.log('🌐 Starting random Cloudflare Tunnel...');
293
- console.log('⏳ Waiting for tunnel URL...\n');
294
- const tunnel = spawn('cloudflared', ['tunnel', '--url', 'http://localhost:3000']);
295
- let tunnelURL = null;
296
- let server = null;
297
- tunnel.stdout.on('data', (data) => {
298
- const output = data.toString();
299
- process.stdout.write(data);
300
- // Look for the tunnel URL
301
- const urlMatch = output.match(/https:\/\/[a-z0-9-]+\.trycloudflare\.com/i);
302
- if (urlMatch && !tunnelURL) {
303
- tunnelURL = urlMatch[0];
304
- console.log('\n✅ Random Tunnel URL detected:', tunnelURL);
305
- if (process.env.REQUIRE_AUTH === 'true') {
306
- console.log('\n⚠️ WARNING: OAuth with random tunnels is not recommended!');
307
- console.log(' The URL will change on restart, breaking OAuth redirects.');
308
- console.log(' Consider using REQUIRE_AUTH=false or setting up a named tunnel.\n');
309
- }
310
- console.log('📝 To use this URL:');
311
- console.log(` Add to Claude/ChatGPT: ${tunnelURL}/mcp`);
312
- console.log(` This URL expires when the tunnel stops!\n`);
313
- server = startServer(tunnelURL);
314
- }
315
- });
316
- tunnel.stderr.on('data', (data) => {
317
- const output = data.toString();
318
- process.stderr.write(data);
319
- // Also check stderr
320
- const urlMatch = output.match(/https:\/\/[a-z0-9-]+\.trycloudflare\.com/i);
321
- if (urlMatch && !tunnelURL) {
322
- tunnelURL = urlMatch[0];
323
- console.log('\n✅ Random Tunnel URL detected:', tunnelURL);
324
- server = startServer(tunnelURL);
325
- }
326
- });
327
- tunnel.on('error', (err) => {
328
- console.error('❌ Tunnel failed to start:', err);
329
- console.error('\nMake sure cloudflared is installed:');
330
- console.error(' brew install cloudflare/cloudflare/cloudflared');
331
- process.exit(1);
332
- });
333
- tunnel.on('close', (code) => {
334
- console.log('\n🛑 Tunnel closed with code:', code);
335
- if (server)
336
- server.kill();
337
- process.exit(code);
338
- });
339
- // Cleanup
340
- process.on('SIGINT', () => {
341
- console.log('\n🛑 Shutting down...');
342
- tunnel.kill();
343
- if (server)
344
- server.kill();
345
- process.exit(0);
346
- });
347
- }
348
- function startServer(baseUrl) {
349
- console.log('\n📡 Starting Desktop Commander HTTP server...');
350
- const env = {
351
- ...process.env,
352
- BASE_URL: baseUrl,
353
- PORT: '3000'
354
- };
355
- const server = spawn('node', ['dist/http-server.js'], {
356
- cwd: __dirname,
357
- env,
358
- stdio: 'inherit'
359
- });
360
- server.on('error', (err) => {
361
- console.error('❌ Server failed to start:', err);
362
- process.exit(1);
363
- });
364
- server.on('close', (code) => {
365
- console.log('🔴 Server closed with code:', code);
366
- process.exit(code);
367
- });
368
- return server;
369
- }
370
- var ngrok, __filename, __dirname;
371
- const env_1 = { stack: [], error: void 0, hasError: false };
372
- try {
373
- ngrok = __addDisposableResource(env_1, void 0, false);
374
- ** How;
375
- it;
376
- works: **
377
- -Use;
378
- ngrok;
379
- instead;
380
- of;
381
- Cloudflare;
382
- tunnels
383
- - Get;
384
- stable;
385
- URLs;
386
- with (ngrok)
387
- paid;
388
- plan
389
- - Free;
390
- tier;
391
- has;
392
- random;
393
- URLs;
394
- like;
395
- Cloudflare
396
- ** Pros;
397
- **
398
- -;
399
- Well - known;
400
- tool
401
- - ;
402
- Good;
403
- documentation
404
- - ;
405
- Paid;
406
- plan = stable;
407
- URLs
408
- ** Cons;
409
- **
410
- -;
411
- Free;
412
- tier = random;
413
- URLs(same, problem)
414
- - ;
415
- Paid;
416
- plan = $8 - 10 / month;
417
- per;
418
- user
419
- - ;
420
- Not
421
- ** Implementation;
422
- **
423
- `` `typescript
424
- // Add to package.json
425
- "scripts": {
426
- "start:ngrok": "node dist/http-server-ngrok.js"
427
- }
428
- ` `` `` `typescript
429
- // src/http-server-ngrok.ts
430
- import ngrok from 'ngrok';
431
-
432
- async function startWithNgrok() {
433
- const url = await ngrok.connect({
434
- addr: 3000,
435
- authtoken: process.env.NGROK_AUTH_TOKEN
436
- });
437
-
438
- console.log(`;
439
- ngrok;
440
- tunnel: $;
441
- {
442
- url;
443
- }
444
- `);
445
- process.env.BASE_URL = url;
446
-
447
- // Start server...
448
- }
449
- ` ``;
450
- -- - ;
451
- #;
452
- #;
453
- Option;
454
- 4;
455
- Hybrid;
456
- Approach(Best, Balance)
457
- ** Best;
458
- for (; ; )
459
- : ** Supporting;
460
- all;
461
- user;
462
- types
463
- ** How;
464
- it;
465
- works: **
466
- -Offer;
467
- multiple;
468
- tunnel;
469
- options
470
- - Users;
471
- choose;
472
- based;
473
- on;
474
- their;
475
- needs `` `bash
476
- # Option A: Random tunnel (no setup)
477
- npm run start:tunnel
478
-
479
- # Option B: Named tunnel (own domain)
480
- TUNNEL_URL=https://mcp.yourname.com npm run start:named-tunnel
481
-
482
- # Option C: Cloud service (future)
483
- npm run start:cloud -- --username yourname
484
-
485
- # Option D: Local only (no tunnel)
486
- npm run start:local
487
- ` ``
488
- ** Configuration;
489
- **
490
- `` `typescript
491
- // Auto-detect best option
492
- export async function startServer(options) {
493
- if (options.cloudUsername) {
494
- // Use DC cloud proxy
495
- return startWithCloudProxy(options.cloudUsername);
496
- } else if (options.namedTunnel) {
497
- // Use named Cloudflare tunnel
498
- return startWithNamedTunnel(options.namedTunnel);
499
- } else if (options.ngrokToken) {
500
- // Use ngrok
501
- return startWithNgrok(options.ngrokToken);
502
- } else {
503
- // Random Cloudflare tunnel
504
- return startWithRandomTunnel();
505
- }
506
- }
507
- ` ``;
508
- -- - ;
509
- #;
510
- #;
511
- Option;
512
- 5;
513
- Local;
514
- Network;
515
- Only(No, Tunnel)
516
- ** Best;
517
- for (; ; )
518
- : ** Privacy - conscious;
519
- users, local;
520
- testing
521
- ** How;
522
- it;
523
- works: **
524
- -Server;
525
- runs;
526
- on;
527
- local;
528
- network;
529
- only
530
- - Access;
531
- via `http://192.168.x.x:3000`
532
- - No;
533
- internet;
534
- exposure
535
- ** Pros;
536
- **
537
- -;
538
- Maximum;
539
- privacy
540
- - ;
541
- No;
542
- external;
543
- dependencies
544
- - ;
545
- Free
546
- ** Cons;
547
- **
548
- -;
549
- Only;
550
- works;
551
- on;
552
- same;
553
- network
554
- - ;
555
- Can;
556
- 't use with cloud AI services
557
- - ;
558
- Must;
559
- use;
560
- Claude;
561
- Desktop(not, claude.ai)
562
- ** Implementation;
563
- **
564
- `` `bash
565
- # Already works!
566
- npm run start
567
-
568
- # Claude Desktop config:
569
- {
570
- "mcpServers": {
571
- "desktop-commander": {
572
- "command": "node",
573
- "args": ["/path/to/dist/index.js"]
574
- }
575
- }
576
- }
577
- ` ``;
578
- -- - ;
579
- #;
580
- Recommended;
581
- Architecture;
582
- #;
583
- #;
584
- #;
585
- Phase;
586
- 1;
587
- Current(Multiple, Options);
588
- Offer;
589
- all;
590
- tunnel;
591
- methods, let;
592
- users;
593
- choose: `` `markdown
594
- # Installation Methods
595
-
596
- ## Quick Start (No Setup)
597
- npm run start:tunnel
598
- → Random URL, changes on restart
599
-
600
- ## Production (Own Domain)
601
- TUNNEL_URL=https://mcp.yourname.com npm run start:named-tunnel
602
- → Stable URL, requires Cloudflare
603
-
604
- ## Local Only (Claude Desktop)
605
- npm run start
606
- → No tunnel, configure in Claude Desktop
607
- ` ``;
608
- #;
609
- #;
610
- #;
611
- Phase;
612
- 2;
613
- Cloud;
614
- Service(Future);
615
- Build;
616
- Desktop;
617
- Commander;
618
- Cloud: `` `bash
619
- # User experience
620
- npm install -g desktop-commander
621
- dc login
622
- dc start
623
-
624
- # Behind the scenes:
625
- # - Authenticates with DC Cloud
626
- # - Gets stable subdomain: https://yourname.dc.run
627
- # - Starts local server
628
- # - Connects to cloud proxy
629
- # - OAuth redirect: https://yourname.dc.run/oauth/callback
630
- ` ``;
631
- -- - ;
632
- #;
633
- Quick;
634
- Implementation: Support;
635
- Random;
636
- Tunnels;
637
- Let;
638
- 's make random tunnels work better:
639
- < function_calls >
640
- name;
641
- "desktop-commander-host:write_file" >
642
- name;
643
- "content" > ;
644
- !/usr/bin / env;
645
- node;
646
- __filename = fileURLToPath(import.meta.url);
647
- __dirname = dirname(__filename);
648
- console.log('🚀 Starting Desktop Commander with Auto Tunnel Detection\n');
649
- // Check if named tunnel is configured
650
- if (process.env.TUNNEL_URL) {
651
- console.log('✅ Using named tunnel from TUNNEL_URL');
652
- console.log(` URL: ${process.env.TUNNEL_URL}\n`);
653
- startServer(process.env.TUNNEL_URL);
654
- }
655
- else {
656
- console.log('⚠️ No TUNNEL_URL configured, using random Cloudflare tunnel');
657
- console.log(' Note: URL will change on restart!\n');
658
- startRandomTunnel();
659
- }
660
- }
661
- catch (e_1) {
662
- env_1.error = e_1;
663
- env_1.hasError = true;
664
- }
665
- finally {
666
- __disposeResources(env_1);
667
- }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};