@wonderwhy-er/desktop-commander 0.2.43 → 0.2.45

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 (41) hide show
  1. package/dist/bootstrap.d.ts +1 -0
  2. package/dist/bootstrap.js +22 -0
  3. package/dist/config-manager.d.ts +30 -1
  4. package/dist/config-manager.js +55 -8
  5. package/dist/handlers/filesystem-handlers.js +86 -53
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +3 -0
  8. package/dist/remote-device/desktop-commander-integration.js +8 -2
  9. package/dist/remote-device/remote-channel.d.ts +1 -0
  10. package/dist/remote-device/remote-channel.js +34 -4
  11. package/dist/server.js +63 -22
  12. package/dist/tools/edit.d.ts +1 -1
  13. package/dist/tools/edit.js +30 -23
  14. package/dist/tools/filesystem.d.ts +1 -0
  15. package/dist/tools/filesystem.js +23 -13
  16. package/dist/tools/schemas.d.ts +19 -7
  17. package/dist/tools/schemas.js +20 -5
  18. package/dist/ui/config-editor/config-editor-runtime.js +49 -49
  19. package/dist/ui/config-editor/src/app.js +2 -11
  20. package/dist/ui/file-preview/preview-runtime.js +147 -146
  21. package/dist/ui/file-preview/src/app.js +172 -53
  22. package/dist/ui/file-preview/src/directory-controller.js +1 -1
  23. package/dist/ui/file-preview/src/markdown/controller.js +1 -0
  24. package/dist/ui/file-preview/src/panel-actions.js +2 -2
  25. package/dist/ui/file-preview/src/payload-utils.js +23 -7
  26. package/dist/utils/capture.d.ts +2 -0
  27. package/dist/utils/capture.js +19 -0
  28. package/dist/utils/files/base.d.ts +2 -0
  29. package/dist/utils/files/image.js +1 -1
  30. package/dist/utils/files/text.js +24 -19
  31. package/dist/utils/open-browser.d.ts +1 -1
  32. package/dist/utils/open-browser.js +5 -2
  33. package/dist/utils/usageTracker.d.ts +5 -1
  34. package/dist/utils/usageTracker.js +14 -3
  35. package/dist/utils/welcome-onboarding.d.ts +1 -1
  36. package/dist/utils/welcome-onboarding.js +2 -2
  37. package/dist/utils/withTimeout.d.ts +17 -0
  38. package/dist/utils/withTimeout.js +33 -0
  39. package/dist/version.d.ts +1 -1
  40. package/dist/version.js +1 -1
  41. package/package.json +1 -1
@@ -364,7 +364,7 @@ export function createConfigEditorController(callTool, trackConfigUiEvent) {
364
364
  valueType: selected.valueType,
365
365
  }),
366
366
  });
367
- const refreshed = await callTool('get_config', {});
367
+ const refreshed = await callTool('get_config', { origin: 'ui' });
368
368
  if (isToolErrorResult(refreshed)) {
369
369
  const errorMessage = extractToolText(refreshed) ?? 'Value was updated but config refresh failed.';
370
370
  return {
@@ -691,7 +691,6 @@ export function bootstrapConfigEditorApp() {
691
691
  compact: false,
692
692
  expanded: true,
693
693
  };
694
- let configEditorShownEventSent = false;
695
694
  let quietContextSupported = true;
696
695
  let tooltipHideTimer = null;
697
696
  const clearTooltipTimer = () => {
@@ -772,18 +771,10 @@ export function bootstrapConfigEditorApp() {
772
771
  controller.setPayload(payload);
773
772
  widgetState.write(payload);
774
773
  scheduleRender();
775
- if (!configEditorShownEventSent) {
776
- configEditorShownEventSent = true;
777
- // One-shot impression event for get_config UI card visibility.
778
- trackConfigUiEvent('config_editor_shown', {
779
- tool_name: GET_CONFIG_TOOL_NAME,
780
- entry_count: payload.entries.length,
781
- });
782
- }
783
774
  };
784
775
  const refreshConfigFromServer = async () => {
785
776
  try {
786
- const result = await bridge.callTool('get_config', {});
777
+ const result = await bridge.callTool('get_config', { origin: 'ui' });
787
778
  const payload = controller.extractPayload(result);
788
779
  if (payload) {
789
780
  applyPayload(payload);