@wonderwhy-er/desktop-commander 0.2.43 → 0.2.44
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/dist/bootstrap.d.ts +1 -0
- package/dist/bootstrap.js +22 -0
- package/dist/config-manager.d.ts +30 -1
- package/dist/config-manager.js +55 -8
- package/dist/handlers/filesystem-handlers.js +86 -53
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -0
- package/dist/remote-device/desktop-commander-integration.js +8 -2
- package/dist/remote-device/remote-channel.d.ts +1 -0
- package/dist/remote-device/remote-channel.js +34 -4
- package/dist/server.js +62 -22
- package/dist/tools/edit.d.ts +1 -1
- package/dist/tools/edit.js +30 -23
- package/dist/tools/filesystem.d.ts +1 -0
- package/dist/tools/filesystem.js +23 -13
- package/dist/tools/schemas.d.ts +19 -7
- package/dist/tools/schemas.js +20 -5
- package/dist/ui/config-editor/config-editor-runtime.js +49 -49
- package/dist/ui/config-editor/src/app.js +2 -11
- package/dist/ui/file-preview/preview-runtime.js +147 -146
- package/dist/ui/file-preview/src/app.js +172 -53
- package/dist/ui/file-preview/src/directory-controller.js +1 -1
- package/dist/ui/file-preview/src/markdown/controller.js +1 -0
- package/dist/ui/file-preview/src/panel-actions.js +2 -2
- package/dist/ui/file-preview/src/payload-utils.js +23 -7
- package/dist/utils/capture.d.ts +2 -0
- package/dist/utils/capture.js +19 -0
- package/dist/utils/files/base.d.ts +2 -0
- package/dist/utils/files/image.js +1 -1
- package/dist/utils/files/text.js +24 -19
- package/dist/utils/open-browser.d.ts +1 -1
- package/dist/utils/open-browser.js +5 -2
- package/dist/utils/usageTracker.d.ts +5 -1
- package/dist/utils/usageTracker.js +14 -3
- package/dist/utils/welcome-onboarding.d.ts +1 -1
- package/dist/utils/welcome-onboarding.js +2 -2
- package/dist/utils/withTimeout.d.ts +17 -0
- package/dist/utils/withTimeout.js +33 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- 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);
|