@dimina-kit/devtools 0.4.0 → 0.5.0
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/README.md +51 -660
- package/dist/main/api.d.ts +2 -1
- package/dist/main/app/app.d.ts +41 -12
- package/dist/main/app/app.js +299 -514
- package/dist/main/app/bootstrap.d.ts +8 -5
- package/dist/main/app/bootstrap.js +15 -15
- package/dist/main/app/editor-view.d.ts +21 -0
- package/dist/main/app/editor-view.js +71 -0
- package/dist/main/app/global-mirrors.d.ts +23 -0
- package/dist/main/app/global-mirrors.js +37 -0
- package/dist/main/app/host-sidebar-default.d.ts +19 -0
- package/dist/main/app/host-sidebar-default.js +44 -0
- package/dist/main/app/lifecycle.d.ts +12 -1
- package/dist/main/app/lifecycle.js +27 -1
- package/dist/main/app/menu-setup.d.ts +13 -0
- package/dist/main/app/menu-setup.js +49 -0
- package/dist/main/app/native-overview.d.ts +1 -1
- package/dist/main/app/open-project-ipc.d.ts +13 -0
- package/dist/main/app/open-project-ipc.js +21 -0
- package/dist/main/app/project-list-surface.d.ts +31 -0
- package/dist/main/app/project-list-surface.js +20 -0
- package/dist/main/app/project-window.d.ts +36 -0
- package/dist/main/app/project-window.js +93 -0
- package/dist/main/app/servers.d.ts +17 -0
- package/dist/main/app/servers.js +60 -0
- package/dist/main/app/ui-extension-targets.d.ts +42 -0
- package/dist/main/app/ui-extension-targets.js +101 -0
- package/dist/main/app/window-close-reveal.harness.d.ts +34 -0
- package/dist/main/app/window-close-reveal.harness.js +65 -0
- package/dist/main/app/window-events.d.ts +15 -0
- package/dist/main/app/window-events.js +45 -0
- package/dist/main/app/window-runtime-services.d.ts +41 -0
- package/dist/main/app/window-runtime-services.js +197 -0
- package/dist/main/app/workbench-modules.d.ts +24 -0
- package/dist/main/app/workbench-modules.js +51 -0
- package/dist/main/app/workbench-window.d.ts +85 -0
- package/dist/main/app/workbench-window.js +310 -0
- package/dist/main/index.bundle.js +11712 -9986
- package/dist/main/index.js +49 -1
- package/dist/main/ipc/app-lifecycle.d.ts +1 -31
- package/dist/main/ipc/app-lifecycle.js +1 -53
- package/dist/main/ipc/app.d.ts +4 -1
- package/dist/main/ipc/app.js +4 -3
- package/dist/main/ipc/bridge-router.d.ts +19 -116
- package/dist/main/ipc/bridge-router.js +28 -2128
- package/dist/main/ipc/device-picker.d.ts +16 -0
- package/dist/main/ipc/device-picker.js +27 -0
- package/dist/main/ipc/index.d.ts +5 -0
- package/dist/main/ipc/index.js +5 -0
- package/dist/main/ipc/internal-devtools.d.ts +16 -0
- package/dist/main/ipc/internal-devtools.js +10 -0
- package/dist/main/ipc/page-scroll.d.ts +1 -13
- package/dist/main/ipc/page-scroll.js +1 -16
- package/dist/main/ipc/popover.d.ts +4 -1
- package/dist/main/ipc/popover.js +26 -19
- package/dist/main/ipc/project-create.d.ts +16 -0
- package/dist/main/ipc/project-create.js +27 -0
- package/dist/main/ipc/project-fs.d.ts +38 -3
- package/dist/main/ipc/project-fs.js +53 -22
- package/dist/main/ipc/projects.d.ts +3 -3
- package/dist/main/ipc/projects.js +47 -11
- package/dist/main/ipc/session-listener-bag.d.ts +1 -40
- package/dist/main/ipc/session-listener-bag.js +1 -39
- package/dist/main/ipc/session.d.ts +4 -1
- package/dist/main/ipc/session.js +26 -26
- package/dist/main/ipc/settings.d.ts +4 -1
- package/dist/main/ipc/settings.js +17 -19
- package/dist/main/ipc/simulator-module.d.ts +9 -3
- package/dist/main/ipc/simulator-module.js +13 -10
- package/dist/main/ipc/simulator.d.ts +4 -1
- package/dist/main/ipc/simulator.js +12 -18
- package/dist/main/ipc/tooltip.d.ts +14 -0
- package/dist/main/ipc/tooltip.js +29 -0
- package/dist/main/ipc/views.d.ts +19 -2
- package/dist/main/ipc/views.js +76 -8
- package/dist/main/runtime/devtools-backend-before-quit.harness.d.ts +43 -0
- package/dist/main/runtime/devtools-backend-before-quit.harness.js +87 -0
- package/dist/main/runtime/devtools-backend.js +60 -4
- package/dist/main/runtime/devtools-runtime-mock.harness.d.ts +21 -0
- package/dist/main/runtime/devtools-runtime-mock.harness.js +313 -0
- package/dist/main/runtime/miniapp-runtime.d.ts +91 -22
- package/dist/main/services/app-services.d.ts +62 -0
- package/dist/main/services/app-services.js +64 -0
- package/dist/main/services/automation/connection-target.d.ts +36 -0
- package/dist/main/services/automation/connection-target.js +29 -0
- package/dist/main/services/automation/console-bridge.d.ts +28 -0
- package/dist/main/services/automation/console-bridge.js +91 -0
- package/dist/main/services/automation/handlers/app.js +4 -4
- package/dist/main/services/automation/handlers/element.js +55 -21
- package/dist/main/services/automation/index.d.ts +12 -1
- package/dist/main/services/automation/index.js +54 -133
- package/dist/main/services/cdp-session/index.d.ts +87 -0
- package/dist/main/services/cdp-session/index.js +173 -0
- package/dist/main/services/compile-standby.js +4 -0
- package/dist/main/services/console-forward/cdp-inject.d.ts +18 -0
- package/dist/main/services/console-forward/cdp-inject.js +30 -0
- package/dist/main/services/console-forward/global-console-mirror.d.ts +33 -0
- package/dist/main/services/console-forward/global-console-mirror.js +71 -0
- package/dist/main/services/console-forward/global-diagnostics-mirror.d.ts +33 -0
- package/dist/main/services/console-forward/global-diagnostics-mirror.js +73 -0
- package/dist/main/services/console-forward/index.d.ts +1 -46
- package/dist/main/services/console-forward/index.js +1 -185
- package/dist/main/services/console-forward/internal-log.d.ts +2 -0
- package/dist/main/services/console-forward/internal-log.js +2 -0
- package/dist/main/services/console-forward/open-gated-relay.d.ts +67 -0
- package/dist/main/services/console-forward/open-gated-relay.js +55 -0
- package/dist/main/services/default-adapter.js +1 -1
- package/dist/main/services/diagnostics/index.d.ts +1 -48
- package/dist/main/services/diagnostics/index.js +1 -60
- package/dist/main/services/dimina-resource-server.d.ts +1 -6
- package/dist/main/services/dimina-resource-server.js +1 -98
- package/dist/main/services/elements-forward/index.d.ts +132 -15
- package/dist/main/services/elements-forward/index.js +155 -304
- package/dist/main/services/fs-bridge-protocol.d.ts +61 -0
- package/dist/main/services/fs-bridge-protocol.js +34 -0
- package/dist/main/services/fs-watch-sse.d.ts +40 -0
- package/dist/main/services/fs-watch-sse.js +113 -0
- package/dist/main/services/http-json.d.ts +9 -0
- package/dist/main/services/http-json.js +6 -0
- package/dist/main/services/layout/index.d.ts +11 -0
- package/dist/main/services/layout/index.js +23 -0
- package/dist/main/services/mcp/connection-owner.d.ts +38 -0
- package/dist/main/services/mcp/connection-owner.js +79 -0
- package/dist/main/services/mcp/index.d.ts +3 -1
- package/dist/main/services/mcp/index.js +4 -3
- package/dist/main/services/mcp/opened-project.d.ts +88 -0
- package/dist/main/services/mcp/opened-project.js +60 -0
- package/dist/main/services/mcp/server.d.ts +2 -1
- package/dist/main/services/mcp/server.js +29 -4
- package/dist/main/services/mcp/target-manager.d.ts +71 -23
- package/dist/main/services/mcp/target-manager.js +269 -138
- package/dist/main/services/mcp/target-selection.d.ts +47 -0
- package/dist/main/services/mcp/target-selection.js +71 -0
- package/dist/main/services/mcp/tools/context-tools.js +20 -5
- package/dist/main/services/mcp/tools/project-tools.d.ts +72 -0
- package/dist/main/services/mcp/tools/project-tools.js +133 -0
- package/dist/main/services/module.d.ts +13 -5
- package/dist/main/services/network-forward/body-cache.d.ts +72 -0
- package/dist/main/services/network-forward/body-cache.js +179 -0
- package/dist/main/services/network-forward/frontend-dispatch.d.ts +91 -0
- package/dist/main/services/network-forward/frontend-dispatch.js +148 -0
- package/dist/main/services/network-forward/global-body-gate.d.ts +46 -0
- package/dist/main/services/network-forward/global-body-gate.js +93 -0
- package/dist/main/services/network-forward/global-mirror-test-fixtures.d.ts +48 -0
- package/dist/main/services/network-forward/global-mirror-test-fixtures.js +96 -0
- package/dist/main/services/network-forward/http.d.ts +47 -0
- package/dist/main/services/network-forward/http.js +162 -0
- package/dist/main/services/network-forward/index.d.ts +135 -15
- package/dist/main/services/network-forward/index.js +854 -224
- package/dist/main/services/network-forward/request-ids.d.ts +5 -0
- package/dist/main/services/network-forward/request-ids.js +5 -0
- package/dist/main/services/network-forward/user-facing.d.ts +21 -0
- package/dist/main/services/network-forward/user-facing.js +50 -0
- package/dist/main/services/network-forward/websocket.d.ts +36 -0
- package/dist/main/services/network-forward/websocket.js +120 -0
- package/dist/main/services/notifications/renderer-notifier.d.ts +71 -9
- package/dist/main/services/notifications/renderer-notifier.js +45 -8
- package/dist/main/services/projects/create-project-service.js +19 -5
- package/dist/main/services/projects/local-provider.js +8 -4
- package/dist/main/services/projects/project-repository.d.ts +59 -7
- package/dist/main/services/projects/project-repository.js +285 -51
- package/dist/main/services/projects/types.d.ts +44 -34
- package/dist/main/services/render-inspect/index.d.ts +12 -2
- package/dist/main/services/render-inspect/index.js +21 -102
- package/dist/main/services/safe-area/index.d.ts +21 -6
- package/dist/main/services/safe-area/index.js +92 -46
- package/dist/main/services/service-host-pool/pool.d.ts +1 -196
- package/dist/main/services/service-host-pool/pool.js +1 -363
- package/dist/main/services/settings/index.d.ts +7 -1
- package/dist/main/services/settings/index.js +22 -2
- package/dist/main/services/simulator/custom-apis.d.ts +1 -42
- package/dist/main/services/simulator/custom-apis.js +1 -46
- package/dist/main/services/simulator/referer.d.ts +1 -9
- package/dist/main/services/simulator/referer.js +1 -19
- package/dist/main/services/simulator/ui-extensions.d.ts +21 -0
- package/dist/main/services/simulator/ui-extensions.js +176 -0
- package/dist/main/services/simulator-appdata/index.d.ts +6 -0
- package/dist/main/services/simulator-appdata/index.js +21 -2
- package/dist/main/services/simulator-current-page/index.d.ts +5 -3
- package/dist/main/services/simulator-current-page/index.js +8 -1
- package/dist/main/services/simulator-storage/index.d.ts +34 -5
- package/dist/main/services/simulator-storage/index.js +73 -71
- package/dist/main/services/simulator-storage/service-storage-ops.d.ts +1 -39
- package/dist/main/services/simulator-storage/service-storage-ops.js +1 -66
- package/dist/main/services/simulator-storage/window-scope.d.ts +20 -0
- package/dist/main/services/simulator-storage/window-scope.js +20 -0
- package/dist/main/services/simulator-temp-files/disk.d.ts +1 -54
- package/dist/main/services/simulator-temp-files/disk.js +1 -237
- package/dist/main/services/simulator-temp-files/fs-channels.d.ts +1 -68
- package/dist/main/services/simulator-temp-files/fs-channels.js +1 -107
- package/dist/main/services/simulator-temp-files/index.d.ts +1 -32
- package/dist/main/services/simulator-temp-files/index.js +1 -181
- package/dist/main/services/simulator-temp-files/request-handler.d.ts +1 -29
- package/dist/main/services/simulator-temp-files/request-handler.js +1 -177
- package/dist/main/services/simulator-temp-files/resolver.d.ts +1 -21
- package/dist/main/services/simulator-temp-files/resolver.js +1 -21
- package/dist/main/services/simulator-temp-files/store.d.ts +1 -13
- package/dist/main/services/simulator-temp-files/store.js +1 -23
- package/dist/main/services/update/github-release-checker.js +22 -3
- package/dist/main/services/update/update-manager.d.ts +21 -4
- package/dist/main/services/update/update-manager.js +55 -11
- package/dist/main/services/views/clear-console-filter.d.ts +44 -0
- package/dist/main/services/views/clear-console-filter.js +86 -0
- package/dist/main/services/views/console-filter-test-fixtures.d.ts +94 -0
- package/dist/main/services/views/console-filter-test-fixtures.js +82 -0
- package/dist/main/services/views/console-filter.d.ts +94 -0
- package/dist/main/services/views/console-filter.js +190 -0
- package/dist/main/services/views/devtools-tabs.d.ts +24 -4
- package/dist/main/services/views/devtools-tabs.js +40 -21
- package/dist/main/services/views/frontend-bootstrap-gate.d.ts +59 -0
- package/dist/main/services/views/frontend-bootstrap-gate.js +117 -0
- package/dist/main/services/views/host-dialog-port-channel.d.ts +18 -0
- package/dist/main/services/views/host-dialog-port-channel.js +15 -0
- package/dist/main/services/views/host-dialog-session-runtime.d.ts +10 -0
- package/dist/main/services/views/host-dialog-session-runtime.js +17 -0
- package/dist/main/services/views/host-dialog-view.d.ts +95 -0
- package/dist/main/services/views/host-dialog-view.js +147 -0
- package/dist/main/services/views/host-sidebar-port-channel.d.ts +18 -0
- package/dist/main/services/views/host-sidebar-port-channel.js +15 -0
- package/dist/main/services/views/host-sidebar-session-runtime.d.ts +10 -0
- package/dist/main/services/views/host-sidebar-session-runtime.js +17 -0
- package/dist/main/services/views/host-sidebar-view.d.ts +59 -0
- package/dist/main/services/views/host-sidebar-view.js +44 -0
- package/dist/main/services/views/host-slot-port-channel.d.ts +124 -0
- package/dist/main/services/views/host-slot-port-channel.js +289 -0
- package/dist/main/services/views/host-slot-session-runtime.d.ts +40 -0
- package/dist/main/services/views/host-slot-session-runtime.js +50 -0
- package/dist/main/services/views/host-slot-view.d.ts +109 -0
- package/dist/main/services/views/host-slot-view.js +147 -0
- package/dist/main/services/views/host-toolbar-port-channel.d.ts +6 -91
- package/dist/main/services/views/host-toolbar-port-channel.js +10 -243
- package/dist/main/services/views/host-toolbar-session-runtime.d.ts +5 -30
- package/dist/main/services/views/host-toolbar-session-runtime.js +9 -47
- package/dist/main/services/views/host-toolbar-view.d.ts +34 -7
- package/dist/main/services/views/host-toolbar-view.js +30 -237
- package/dist/main/services/views/managed-web-contents-view.d.ts +48 -0
- package/dist/main/services/views/managed-web-contents-view.js +143 -0
- package/dist/main/services/views/miniapp-partition.d.ts +1 -89
- package/dist/main/services/views/miniapp-partition.js +1 -158
- package/dist/main/services/views/native-simulator-devtools-host.js +206 -68
- package/dist/main/services/views/native-simulator-view.d.ts +6 -0
- package/dist/main/services/views/native-simulator-view.js +47 -40
- package/dist/main/services/views/native-view-tree.d.ts +25 -0
- package/dist/main/services/views/native-view-tree.js +69 -0
- package/dist/main/services/views/overlay-panels-view.d.ts +63 -4
- package/dist/main/services/views/overlay-panels-view.js +257 -108
- package/dist/main/services/views/placement-reconciler.d.ts +18 -18
- package/dist/main/services/views/placement-reconciler.js +91 -29
- package/dist/main/services/views/placement-test-driver.d.ts +27 -0
- package/dist/main/services/views/placement-test-driver.js +29 -0
- package/dist/main/services/views/refresh-styles.d.ts +10 -0
- package/dist/main/services/views/refresh-styles.js +57 -0
- package/dist/main/services/views/simulator-session-policy.d.ts +1 -27
- package/dist/main/services/views/simulator-session-policy.js +1 -98
- package/dist/main/services/views/view-manager-devtools-host-test-fixtures.d.ts +76 -0
- package/dist/main/services/views/view-manager-devtools-host-test-fixtures.js +184 -0
- package/dist/main/services/views/view-manager.d.ts +69 -88
- package/dist/main/services/views/view-manager.js +62 -7
- package/dist/main/services/views/workbench-view.d.ts +2 -0
- package/dist/main/services/views/workbench-view.js +104 -17
- package/dist/main/services/window-contexts/context-router.d.ts +36 -0
- package/dist/main/services/window-contexts/context-router.js +55 -0
- package/dist/main/services/workbench-coi-host.d.ts +52 -0
- package/dist/main/services/workbench-coi-host.js +227 -0
- package/dist/main/services/workbench-coi-server.d.ts +11 -0
- package/dist/main/services/workbench-coi-server.js +126 -126
- package/dist/main/services/workbench-coi-shutdown.d.ts +40 -0
- package/dist/main/services/workbench-coi-shutdown.js +69 -0
- package/dist/main/services/workbench-coi-static.d.ts +23 -0
- package/dist/main/services/workbench-coi-static.js +87 -0
- package/dist/main/services/workbench-context.d.ts +88 -8
- package/dist/main/services/workbench-context.js +54 -6
- package/dist/main/services/workspace/compile-log-buffer.d.ts +40 -0
- package/dist/main/services/workspace/compile-log-buffer.js +41 -0
- package/dist/main/services/workspace/compile-mode-adapter.d.ts +18 -0
- package/dist/main/services/workspace/compile-mode-adapter.js +57 -0
- package/dist/main/services/workspace/compile-mode-store.d.ts +25 -0
- package/dist/main/services/workspace/compile-mode-store.js +71 -0
- package/dist/main/services/workspace/open-project-guards.d.ts +16 -0
- package/dist/main/services/workspace/open-project-guards.js +42 -0
- package/dist/main/services/workspace/rebuild-status.d.ts +37 -0
- package/dist/main/services/workspace/rebuild-status.js +36 -0
- package/dist/main/services/workspace/session-status-store.d.ts +47 -0
- package/dist/main/services/workspace/session-status-store.js +73 -0
- package/dist/main/services/workspace/status-tap.d.ts +20 -0
- package/dist/main/services/workspace/status-tap.js +32 -0
- package/dist/main/services/workspace/workspace-compile-modes.d.ts +59 -0
- package/dist/main/services/workspace/workspace-compile-modes.js +93 -0
- package/dist/main/services/workspace/workspace-lifecycle-race.testutil.d.ts +22 -0
- package/dist/main/services/workspace/workspace-lifecycle-race.testutil.js +62 -0
- package/dist/main/services/workspace/workspace-referer.d.ts +17 -0
- package/dist/main/services/workspace/workspace-referer.js +26 -0
- package/dist/main/services/workspace/workspace-service.d.ts +7 -5
- package/dist/main/services/workspace/workspace-service.js +96 -135
- package/dist/main/services/workspace/workspace-thumbnails.d.ts +22 -0
- package/dist/main/services/workspace/workspace-thumbnails.js +67 -0
- package/dist/main/utils/ipc-context-source.d.ts +40 -0
- package/dist/main/utils/ipc-context-source.js +23 -0
- package/dist/main/utils/ipc-registry.d.ts +46 -21
- package/dist/main/utils/ipc-registry.js +166 -76
- package/dist/main/utils/paths.d.ts +18 -0
- package/dist/main/utils/paths.js +18 -0
- package/dist/main/utils/sender-policy.d.ts +10 -1
- package/dist/main/utils/sender-policy.js +42 -4
- package/dist/main/utils/theme.d.ts +18 -8
- package/dist/main/utils/theme.js +19 -9
- package/dist/main/windows/internal-devtools-window/index.d.ts +66 -0
- package/dist/main/windows/internal-devtools-window/index.js +160 -0
- package/dist/main/windows/main-window/create.d.ts +16 -0
- package/dist/main/windows/main-window/create.js +19 -11
- package/dist/main/windows/main-window/events.d.ts +1 -1
- package/dist/main/windows/main-window/events.js +26 -13
- package/dist/main/windows/main-window/index.d.ts +1 -1
- package/dist/main/windows/main-window/index.js +1 -1
- package/dist/main/windows/service-host-window/create.d.ts +1 -92
- package/dist/main/windows/service-host-window/create.js +1 -154
- package/dist/native-host/common/common.js +173 -53
- package/dist/native-host/container/pageFrame.css +1 -1
- package/dist/native-host/render/render.js +8278 -3659
- package/dist/native-host/service/service.js +2 -2
- package/dist/preload/index.d.ts +2 -0
- package/dist/preload/index.js +1 -0
- package/dist/preload/instrumentation/app-data.d.ts +2 -2
- package/dist/preload/instrumentation/app-data.js +1 -1
- package/dist/preload/instrumentation/wxml.js +1 -1
- package/dist/preload/runtime/bridge.d.ts +3 -3
- package/dist/preload/runtime/bridge.js +2 -2
- package/dist/preload/runtime/clipboard.d.ts +6 -0
- package/dist/preload/runtime/clipboard.js +12 -0
- package/dist/preload/runtime/host-dialog-advertiser.d.ts +22 -0
- package/dist/preload/runtime/host-dialog-advertiser.js +37 -0
- package/dist/preload/runtime/host-dialog-port.d.ts +44 -0
- package/dist/preload/runtime/host-dialog-port.js +53 -0
- package/dist/preload/runtime/host-dialog-runtime.d.ts +28 -0
- package/dist/preload/runtime/host-dialog-runtime.js +36 -0
- package/dist/preload/runtime/host-sidebar-advertiser.d.ts +19 -0
- package/dist/preload/runtime/host-sidebar-advertiser.js +35 -0
- package/dist/preload/runtime/host-sidebar-port.d.ts +44 -0
- package/dist/preload/runtime/host-sidebar-port.js +53 -0
- package/dist/preload/runtime/host-sidebar-runtime.d.ts +28 -0
- package/dist/preload/runtime/host-sidebar-runtime.js +36 -0
- package/dist/preload/runtime/host-slot-port-bridge.d.ts +18 -0
- package/dist/preload/runtime/host-slot-port-bridge.js +112 -0
- package/dist/preload/runtime/host-toolbar-advertiser.d.ts +5 -13
- package/dist/preload/runtime/host-toolbar-advertiser.js +18 -38
- package/dist/preload/runtime/host-toolbar-port.d.ts +9 -0
- package/dist/preload/runtime/host-toolbar-port.js +11 -95
- package/dist/preload/runtime/native-host.d.ts +14 -0
- package/dist/preload/runtime/native-host.js +5 -8
- package/dist/preload/runtime/node-bindings.d.ts +18 -0
- package/dist/preload/runtime/node-bindings.js +44 -0
- package/dist/preload/runtime/temp-files.js +9 -2
- package/dist/preload/runtime/wait-for-slot-root.d.ts +23 -0
- package/dist/preload/runtime/wait-for-slot-root.js +80 -0
- package/dist/preload/shared/api-compat.js +63 -41
- package/dist/preload/windows/host-dialog-runtime.cjs +360 -0
- package/dist/preload/windows/host-dialog-runtime.cjs.map +7 -0
- package/dist/preload/windows/host-dialog-runtime.d.ts +2 -0
- package/dist/preload/windows/host-dialog-runtime.js +13 -0
- package/dist/preload/windows/host-sidebar-runtime.cjs +361 -0
- package/dist/preload/windows/host-sidebar-runtime.cjs.map +7 -0
- package/dist/preload/windows/host-sidebar-runtime.d.ts +2 -0
- package/dist/preload/windows/host-sidebar-runtime.js +13 -0
- package/dist/preload/windows/host-toolbar-runtime.cjs +142 -52
- package/dist/preload/windows/host-toolbar-runtime.cjs.map +3 -3
- package/dist/preload/windows/main.cjs +4922 -1246
- package/dist/preload/windows/main.cjs.map +4 -4
- package/dist/preload/windows/main.css +428 -0
- package/dist/preload/windows/main.css.map +7 -0
- package/dist/preload/windows/simulator.cjs +376 -322
- package/dist/preload/windows/simulator.cjs.map +4 -4
- package/dist/preload/windows/simulator.js +376 -322
- package/dist/render-host/pageFrame.html +4 -4
- package/dist/render-host/preload.cjs +30 -0
- package/dist/render-host/render-inspect.js +184 -115
- package/dist/renderer/assets/button-CB2MWjHY.js +2 -0
- package/dist/renderer/assets/constants-CkoGPQTS.js +2 -0
- package/dist/renderer/assets/constants-zQZ2-y21.js +2 -0
- package/dist/renderer/assets/createLucideIcon-cZ9FlZZw.js +2 -0
- package/dist/renderer/assets/devicePicker-H2eIO4e1.js +2 -0
- package/dist/renderer/assets/dialog-pHzEA8Vx.js +46 -0
- package/dist/renderer/assets/dist-B5HADirS.js +2 -0
- package/dist/renderer/assets/dist-DIFlRMKe.js +2 -0
- package/dist/renderer/assets/hostSidebarDefault-DRWh6OCt.js +2 -0
- package/dist/renderer/assets/index-CEL_XFge.js +2 -0
- package/dist/renderer/assets/input-CAObw95L.js +2 -0
- package/dist/renderer/assets/ipc-channels-overlays-gIPUFnqc.js +2 -0
- package/dist/renderer/assets/jsx-runtime-DICEQH_0.css +1 -0
- package/dist/renderer/assets/jsx-runtime-DIw5wnYl.js +9 -0
- package/dist/renderer/assets/plus-BQ9u5EbL.js +2 -0
- package/dist/renderer/assets/popover-Cw7G2Ctp.js +2 -0
- package/dist/renderer/assets/presets-DMZOb9ay.js +2 -0
- package/dist/renderer/assets/project-api-YTOr_Yvo.js +2 -0
- package/dist/renderer/assets/projectCreateDialog-BmLqiYxn.js +2 -0
- package/dist/renderer/assets/search-BMvuYF48.js +2 -0
- package/dist/renderer/assets/select-nFP95TxM.js +2 -0
- package/dist/renderer/assets/settings-CnpVfSWt.js +2 -0
- package/dist/renderer/assets/settings-api-Ccsf-Nsj.js +2 -0
- package/dist/renderer/assets/settings-tab-bar-CAzrv32m.js +2 -0
- package/dist/renderer/assets/smartphone-Bb2GdIKy.js +2 -0
- package/dist/renderer/assets/tabs-CPKN3Mmq.js +2 -0
- package/dist/renderer/assets/tooltip-D6AxXRk5.js +2 -0
- package/dist/renderer/assets/types-Bh0hA7El.js +2 -0
- package/dist/renderer/assets/updateDialog-CwndJ0Bl.js +2 -0
- package/dist/renderer/assets/utils-sEB5OZEQ.js +2 -0
- package/dist/renderer/assets/view-api-B-2zPBR5.js +2 -0
- package/dist/renderer/assets/view-ids-BfaDVV5P.js +2 -0
- package/dist/renderer/assets/workbench-C0Jkdlps.js +5 -0
- package/dist/renderer/assets/workbenchSettings-YD0Ctbm_.js +8 -0
- package/dist/renderer/entries/device-picker/index.html +28 -0
- package/dist/renderer/entries/host-sidebar-default/index.html +22 -0
- package/dist/renderer/entries/main/index.html +16 -7
- package/dist/renderer/entries/popover/index.html +16 -6
- package/dist/renderer/entries/project-create-dialog/index.html +27 -0
- package/dist/renderer/entries/settings/index.html +10 -5
- package/dist/renderer/entries/tooltip/index.html +21 -0
- package/dist/renderer/entries/update-dialog/index.html +25 -0
- package/dist/renderer/entries/workbench/index.html +49 -0
- package/dist/renderer/entries/workbench-settings/index.html +12 -5
- package/dist/service-host/appdata-set-data.cjs +39 -0
- package/dist/service-host/host-env-update.cjs +23 -0
- package/dist/service-host/preload.cjs +54 -48
- package/dist/service-host/service-message-queue.cjs +71 -0
- package/dist/service-host/sync-impls/menu-button-geometry.js +16 -5
- package/dist/service-host/sync-impls/menu-button.js +5 -3
- package/dist/service-host/sync-impls/system-info.js +31 -9
- package/dist/shared/bridge-channels.d.ts +1 -416
- package/dist/shared/bridge-channels.js +1 -89
- package/dist/shared/compile-mode-state.d.ts +73 -0
- package/dist/shared/compile-mode-state.js +100 -0
- package/dist/shared/compile-modes.d.ts +152 -0
- package/dist/shared/compile-modes.js +237 -0
- package/dist/shared/constants.d.ts +22 -0
- package/dist/shared/constants.js +22 -0
- package/dist/shared/dmb-resource-url.d.ts +2 -0
- package/dist/shared/dmb-resource-url.js +2 -0
- package/dist/shared/ipc-channels-overlays.d.ts +162 -0
- package/dist/shared/ipc-channels-overlays.js +203 -0
- package/dist/shared/ipc-channels.d.ts +24 -154
- package/dist/shared/ipc-channels.js +48 -96
- package/dist/shared/ipc-schemas.d.ts +143 -54
- package/dist/shared/ipc-schemas.js +137 -45
- package/dist/shared/node-bindings.d.ts +2 -0
- package/dist/shared/node-bindings.js +2 -0
- package/dist/shared/project-window-types.d.ts +42 -0
- package/dist/shared/project-window-types.js +2 -0
- package/dist/shared/simulator-route.d.ts +8 -0
- package/dist/shared/simulator-route.js +15 -0
- package/dist/shared/simulator-ui.d.ts +61 -0
- package/dist/shared/simulator-ui.js +12 -0
- package/dist/shared/types.d.ts +126 -41
- package/dist/shared/view-ids.d.ts +10 -0
- package/dist/shared/view-ids.js +23 -0
- package/dist/simulator/assets/bridge-channels-B3JAmRfl.js +2 -0
- package/dist/simulator/assets/device-shell-ATEhHV2_.css +1 -0
- package/dist/simulator/assets/device-shell-DucLepkm.js +431 -0
- package/dist/simulator/assets/simulator-B4rbcOVt.js +10 -0
- package/dist/simulator/assets/simulator-mini-app-DFo7fhi5.js +2 -0
- package/dist/simulator/assets/simulator-ui-BupATgKo.css +1 -0
- package/dist/simulator/assets/simulator-ui-i3GCc7YJ.js +2 -0
- package/dist/simulator/simulator.html +4 -3
- package/dist/simulator/temp-files.d.ts +35 -0
- package/dist/simulator/temp-files.js +121 -0
- package/dist/simulator/types.d.ts +50 -0
- package/dist/simulator/types.js +2 -0
- package/dist/vscode-workbench/assets/__vite-browser-external-JIkWewFf.js +1 -0
- package/dist/vscode-workbench/assets/{dist-TpGpmMGi.js → dist-CXG-u1VB.js} +3 -3
- package/dist/vscode-workbench/assets/fs-core-worker-urls-DZ1nod84.js +1 -0
- package/dist/vscode-workbench/assets/fs-core.worker-Bnmpp6fo.js +1 -0
- package/dist/vscode-workbench/assets/fs-query.worker-cZ-7Fjch.js +2 -0
- package/dist/vscode-workbench/assets/{iconv-lite-umd-C9tiCAJa.js → iconv-lite-umd-Dxx9Qyb4.js} +1 -1
- package/dist/vscode-workbench/assets/{index-DJ1HyMZ7.js → index-6VJMsaWj.js} +475 -475
- package/dist/vscode-workbench/assets/{jschardet-DE1jV513.js → jschardet-Ba3D16vt.js} +1 -1
- package/dist/vscode-workbench/index.html +21 -1
- package/package.json +23 -13
- package/dist/main/services/views/destroy-child-view.d.ts +0 -9
- package/dist/main/services/views/destroy-child-view.js +0 -23
- package/dist/preload/instrumentation/wxml-extract.d.ts +0 -11
- package/dist/preload/instrumentation/wxml-extract.js +0 -382
- package/dist/preload/shared/sid-registry.d.ts +0 -11
- package/dist/preload/shared/sid-registry.js +0 -38
- package/dist/renderer/assets/constants-EAMiwL9_.js +0 -2
- package/dist/renderer/assets/index-BMqyDx71.js +0 -49
- package/dist/renderer/assets/input-CDAEwpBO.js +0 -2
- package/dist/renderer/assets/ipc-transport-B7eFOR68.css +0 -1
- package/dist/renderer/assets/ipc-transport-_G1k5V1p.js +0 -9
- package/dist/renderer/assets/popover-DEdjK14m.js +0 -2
- package/dist/renderer/assets/select-DpKPCh3y.js +0 -2
- package/dist/renderer/assets/settings-M5q2elUr.js +0 -2
- package/dist/renderer/assets/settings-api-CDlZoHiO.js +0 -2
- package/dist/renderer/assets/workbenchSettings-CT_H1WhV.js +0 -8
- package/dist/shared/appdata-accumulator.d.ts +0 -95
- package/dist/shared/appdata-accumulator.js +0 -218
- package/dist/shared/request-core.d.ts +0 -84
- package/dist/shared/request-core.js +0 -168
- package/dist/shared/simulator-api-metadata.d.ts +0 -26
- package/dist/shared/simulator-api-metadata.js +0 -59
- package/dist/shared/vpath.d.ts +0 -42
- package/dist/shared/vpath.js +0 -105
- package/dist/simulator/assets/bridge-channels-zhsumfky.js +0 -2
- package/dist/simulator/assets/device-shell-C-wcFq3Z.js +0 -2
- package/dist/simulator/assets/device-shell-CS1rqAQz.css +0 -1
- package/dist/simulator/assets/jsx-runtime-BDTY6fEq.js +0 -2
- package/dist/simulator/assets/simulator-DU3-fS3v.js +0 -10
- package/dist/simulator/assets/simulator-mini-app-DzfMfnVM.js +0 -2
- package/dist/simulator/device-shell/menu-button-geometry.js +0 -8
- package/dist/vscode-workbench/assets/__vite-browser-external-CXi6Kz9W.js +0 -1
|
@@ -25,19 +25,23 @@ export const SimulatorChannel = {
|
|
|
25
25
|
Detach: 'simulator:detach',
|
|
26
26
|
Console: 'simulator:console',
|
|
27
27
|
// Main → renderer push of the visible top-of-stack page route whenever the
|
|
28
|
-
// mini-app navigates (navigateTo / switchTab / back). Payload: the page
|
|
29
|
-
// string (
|
|
28
|
+
// mini-app navigates (navigateTo / switchTab / back). Payload: the page
|
|
29
|
+
// route string (`pagePath` + `?k=v&…` query, same format as
|
|
30
|
+
// `encodePageSpec`/`decodePageSpec`), or '' when unknown. The query lets the
|
|
31
|
+
// page-path bar show params (WeChat DevTools parity) and a recompile restore
|
|
32
|
+
// the current page's params.
|
|
30
33
|
CurrentPage: 'simulator:current-page',
|
|
31
34
|
};
|
|
32
35
|
// ── Service host (main → hidden service-host window) ─────────────────────
|
|
33
36
|
export const ServiceHostChannel = {
|
|
34
37
|
/**
|
|
35
|
-
* NATIVE-HOST ONLY.
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
38
|
+
* NATIVE-HOST ONLY. Deliver an AppData-panel edit (`{bridgeId, data}`) into
|
|
39
|
+
* the service-host window. The preload resolves the page instance via
|
|
40
|
+
* `getCurrentPages()` and calls `page.setData(data)`, so the resulting `ub`
|
|
41
|
+
* publish flows back through the normal service→render tap — the panel
|
|
42
|
+
* refreshes from the runtime's own state, not an optimistic local echo.
|
|
39
43
|
*/
|
|
40
|
-
|
|
44
|
+
AppDataSetData: 'service-host:appdata:set-data',
|
|
41
45
|
};
|
|
42
46
|
// ── Custom simulator APIs (downstream-registered, main-process handlers) ──
|
|
43
47
|
// invoke: forwards an API call to the registry; result/reject propagates.
|
|
@@ -60,11 +64,8 @@ export const SimulatorCustomApiChannel = {
|
|
|
60
64
|
// `<webview>.send`, no longer exists — native-host is the sole runtime.)
|
|
61
65
|
//
|
|
62
66
|
// Request/response are correlated by `id` so multiple concurrent invokes can
|
|
63
|
-
// be in flight at once.
|
|
64
|
-
export
|
|
65
|
-
Request: 'simulator:custom-apis:bridge-request',
|
|
66
|
-
Response: 'simulator:custom-apis:bridge-response',
|
|
67
|
-
};
|
|
67
|
+
// be in flight at once. The standalone runtime owns the wire contract.
|
|
68
|
+
export { SimulatorCustomApiBridgeChannel, } from '@dimina-kit/electron-runtime/shared/bridge-channels';
|
|
68
69
|
// ── Storage (CDP-backed; main process attaches the debugger to the
|
|
69
70
|
// simulator guest and forwards DOMStorage events to the renderer) ──
|
|
70
71
|
export const SimulatorStorageChannel = {
|
|
@@ -98,12 +99,16 @@ export const SimulatorWxmlChannel = {
|
|
|
98
99
|
export const SimulatorAppDataChannel = {
|
|
99
100
|
GetSnapshot: 'simulator:appdata:snapshot',
|
|
100
101
|
Event: 'simulator:appdata:event',
|
|
102
|
+
// renderer → main invoke: write an AppData-panel edit back into the running
|
|
103
|
+
// page (forwarded to the service host via ServiceHostChannel.AppDataSetData).
|
|
104
|
+
SetData: 'simulator:appdata:set-data',
|
|
101
105
|
};
|
|
102
106
|
// ── Workbench settings ───────────────────────────────────────────────────
|
|
103
107
|
export const WorkbenchSettingsChannel = {
|
|
104
108
|
Get: 'workbenchSettings:get',
|
|
105
109
|
Save: 'workbenchSettings:save',
|
|
106
110
|
SetTheme: 'workbenchSettings:setTheme',
|
|
111
|
+
Restart: 'workbenchSettings:restart',
|
|
107
112
|
GetCdpStatus: 'workbenchSettings:getCdpStatus',
|
|
108
113
|
GetMcpStatus: 'workbenchSettings:getMcpStatus',
|
|
109
114
|
Init: 'workbenchSettings:init',
|
|
@@ -119,9 +124,26 @@ export const WorkbenchSettingsChannel = {
|
|
|
119
124
|
export const ProjectChannel = {
|
|
120
125
|
Open: 'project:open',
|
|
121
126
|
Close: 'project:close',
|
|
127
|
+
// Renderer → main invoke: run one real recompile of the active session
|
|
128
|
+
// (the popover 重新编译 button). Resolves `{ supported: boolean }`; rejects
|
|
129
|
+
// on build failure or when no session is active.
|
|
130
|
+
Rebuild: 'project:rebuild',
|
|
122
131
|
GetPages: 'project:getPages',
|
|
123
132
|
GetCompileConfig: 'project:getCompileConfig',
|
|
124
133
|
SaveCompileConfig: 'project:saveCompileConfig',
|
|
134
|
+
// Renderer → main invoke: the id-based in-memory snapshot for the
|
|
135
|
+
// currently open project's `CompileModeStore`. There is no
|
|
136
|
+
// `SaveCompileModes` counterpart any more — the store is main's alone to
|
|
137
|
+
// mutate, via `PopoverChannel.Apply`'s command.
|
|
138
|
+
GetCompileModeState: 'project:getCompileModeState',
|
|
139
|
+
// Main → renderer push: the open project's `CompileModeStore` advanced —
|
|
140
|
+
// via the popover, or any other command source. Carries the full
|
|
141
|
+
// `CompileModeChange` (revision, state, relaunch).
|
|
142
|
+
CompileModesChanged: 'project:compileModesChanged',
|
|
143
|
+
// Main → renderer push: an `applyCompileModeCommand` rejected (e.g. a
|
|
144
|
+
// failed persist). Carries `{ message }`; the renderer surfaces it as a
|
|
145
|
+
// compile-status error without touching `compileModes`.
|
|
146
|
+
CompileModesApplyFailed: 'project:compileModesApplyFailed',
|
|
125
147
|
Status: 'project:status',
|
|
126
148
|
// Main → renderer push of per-line dmcc compile logs (devkit `onLog`).
|
|
127
149
|
// Dedicated channel: `project:status` keeps its one-event-per-payload
|
|
@@ -129,10 +151,6 @@ export const ProjectChannel = {
|
|
|
129
151
|
CompileLog: 'project:compileLog',
|
|
130
152
|
CaptureThumbnail: 'project:captureThumbnail',
|
|
131
153
|
GetThumbnail: 'project:getThumbnail',
|
|
132
|
-
GetLaunchConfigs: 'project:getLaunchConfigs',
|
|
133
|
-
SaveLaunchConfigs: 'project:saveLaunchConfigs',
|
|
134
|
-
GetActiveLaunchConfigId: 'project:getActiveLaunchConfigId',
|
|
135
|
-
SaveActiveLaunchConfigId: 'project:saveActiveLaunchConfigId',
|
|
136
154
|
};
|
|
137
155
|
// ── Session runtime status ───────────────────────────────────────────────
|
|
138
156
|
//
|
|
@@ -181,10 +199,14 @@ export const ProjectsChannel = {
|
|
|
181
199
|
List: 'projects:list',
|
|
182
200
|
Add: 'projects:add',
|
|
183
201
|
Remove: 'projects:remove',
|
|
202
|
+
/** Edit an existing record's name / icon; its path stays the identity. */
|
|
203
|
+
Update: 'projects:update',
|
|
184
204
|
/** Merged + sanitized template catalog for the create-project dialog. */
|
|
185
205
|
ListTemplates: 'projects:listTemplates',
|
|
186
206
|
/** Host-supplied create-project dialog hook (returns input or null). */
|
|
187
207
|
OpenCreateDialog: 'projects:openCreateDialog',
|
|
208
|
+
/** Host-supplied edit-project dialog hook; `null` means no hook is configured. */
|
|
209
|
+
OpenEditDialog: 'projects:openEditDialog',
|
|
188
210
|
/** Server-side scaffold + register (delegates to create-project-service). */
|
|
189
211
|
Create: 'projects:create',
|
|
190
212
|
/** Default values used to pre-fill the create-project dialog (baseDir). */
|
|
@@ -194,72 +216,14 @@ export const ProjectsChannel = {
|
|
|
194
216
|
export const DialogChannel = {
|
|
195
217
|
OpenDirectory: 'dialog:openDirectory',
|
|
196
218
|
};
|
|
197
|
-
// ── Embedded views (renderer → main) ─────────────────────────────────────
|
|
198
|
-
//
|
|
199
|
-
// The main window's React layout owns the *positions* of the editor +
|
|
200
|
-
// simulator-DevTools WebContentsView overlays — each visible placeholder
|
|
201
|
-
// `<div>` measures its client rect via ResizeObserver and pushes the
|
|
202
|
-
// rectangle to the main process. The view manager caches the latest
|
|
203
|
-
// payload per kind and applies it to the overlay; no payload means the
|
|
204
|
-
// overlay is hidden.
|
|
205
|
-
//
|
|
206
|
-
// Payload (after schema validation): `{ x, y, width, height }` in CSS
|
|
207
|
-
// pixels relative to the window's content area (origin = top-left,
|
|
208
|
-
// not including the OS chrome).
|
|
209
|
-
export const ViewChannel = {
|
|
210
|
-
/**
|
|
211
|
-
* Reverse size-advertiser: the host-toolbar WCV's OWN renderer advertises its
|
|
212
|
-
* intrinsic content height so main reserves exactly that much. Payload
|
|
213
|
-
* `{ axis: 'block', extent }`. fire-and-forget (send), NOT invoke.
|
|
214
|
-
*/
|
|
215
|
-
HostToolbarAdvertiseHeight: 'view:host-toolbar:advertise-height',
|
|
216
|
-
/**
|
|
217
|
-
* main → host-toolbar WCV renderer: per-load MessagePort handshake for the
|
|
218
|
-
* gated narrow channel. On every toolbar `did-finish-load` main creates a
|
|
219
|
-
* `MessageChannelMain` and transfers port2 here
|
|
220
|
-
* (`wc.postMessage(HostToolbarPort, null, [port2])`); the session-resident
|
|
221
|
-
* toolbar runtime preload receives it via `event.ports[0]` and bridges it to
|
|
222
|
-
* the page as `window.diminaHostToolbar`. Envelope both directions:
|
|
223
|
-
* `{ channel: string, payload: unknown }`.
|
|
224
|
-
*/
|
|
225
|
-
HostToolbarPort: 'view:host-toolbar:port',
|
|
226
|
-
/**
|
|
227
|
-
* main → main-window renderer: push the reserved host-toolbar height so the
|
|
228
|
-
* renderer placeholder div resizes (closing the dynamic-height loop).
|
|
229
|
-
*/
|
|
230
|
-
HostToolbarHeightChanged: 'view:host-toolbar:height-changed',
|
|
231
|
-
/**
|
|
232
|
-
* main ← main-window renderer (invoke): pull the last NOTIFIED toolbar
|
|
233
|
-
* height retained in main. Mount-time replay companion to
|
|
234
|
-
* `HostToolbarHeightChanged`: the push listener mounts with the project
|
|
235
|
-
* view and the toolbar's size-advertiser deduplicates (never re-reports),
|
|
236
|
-
* so a height pushed while no project view was mounted would otherwise be
|
|
237
|
-
* lost forever (cold start on the project list races it; close-project →
|
|
238
|
-
* reopen hits it deterministically). No payload; resolves a number.
|
|
239
|
-
*/
|
|
240
|
-
HostToolbarGetHeight: 'view:host-toolbar:get-height',
|
|
241
|
-
/**
|
|
242
|
-
* Renderer → main: the window-level placement snapshot (one monotonic epoch
|
|
243
|
-
* per commit tick, one generation per renderer lifetime) that drives the view
|
|
244
|
-
* reconciler. The single source of truth for every managed native view's
|
|
245
|
-
* bounds/visibility/z-order — supersedes the per-view bounds channels above.
|
|
246
|
-
* invoke.
|
|
247
|
-
*/
|
|
248
|
-
PlacementSnapshot: 'view:placement-snapshot',
|
|
249
|
-
};
|
|
250
|
-
// ── Popover ──────────────────────────────────────────────────────────────
|
|
251
|
-
export const PopoverChannel = {
|
|
252
|
-
Show: 'popover:show',
|
|
253
|
-
Hide: 'popover:hide',
|
|
254
|
-
Relaunch: 'popover:relaunch',
|
|
255
|
-
Closed: 'popover:closed',
|
|
256
|
-
Init: 'popover:init',
|
|
257
|
-
SwitchLaunchConfig: 'popover:switchLaunchConfig',
|
|
258
|
-
UpdateLaunchConfigs: 'popover:updateLaunchConfigs',
|
|
259
|
-
};
|
|
260
219
|
// ── Window ───────────────────────────────────────────────────────────────
|
|
261
220
|
export const WindowChannel = {
|
|
262
221
|
NavigateBack: 'window:navigateBack',
|
|
222
|
+
OpenProject: 'window:openProject',
|
|
223
|
+
// Renderer → main invoke: open `project` in its own standalone workbench
|
|
224
|
+
// window (`entries/workbench/`), replacing the old in-place `page: 'project'`
|
|
225
|
+
// switch inside the list window's React tree.
|
|
226
|
+
OpenProjectWindow: 'window:openProjectWindow',
|
|
263
227
|
};
|
|
264
228
|
// ── App ──────────────────────────────────────────────────────────────────
|
|
265
229
|
export const AppChannel = {
|
|
@@ -279,21 +243,9 @@ export const MiniappSnapshotChannel = {
|
|
|
279
243
|
export const AutomationChannel = {
|
|
280
244
|
GetPort: 'automation:port',
|
|
281
245
|
};
|
|
282
|
-
// ──
|
|
283
|
-
export const
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
Init: 'settings:init',
|
|
288
|
-
};
|
|
289
|
-
// ── Updates (UpdateManager) ──────────────────────────────────────────────
|
|
290
|
-
//
|
|
291
|
-
// String values are FROZEN: shipped builds key off them. Add new entries
|
|
292
|
-
// here, never rename existing ones.
|
|
293
|
-
export const UpdateChannel = {
|
|
294
|
-
Check: 'updates:check',
|
|
295
|
-
Download: 'updates:download',
|
|
296
|
-
Install: 'updates:install',
|
|
297
|
-
DownloadProgress: 'updates:downloadProgress',
|
|
298
|
-
Available: 'updates:available',
|
|
246
|
+
// ── Standalone internal (app-wide) DevTools debug window ─────────────────
|
|
247
|
+
export const InternalDevtoolsChannel = {
|
|
248
|
+
// Open (or focus, if already open) the internal debug DevTools, hosted in
|
|
249
|
+
// its own dedicated window (see internal-devtools-window/index.ts).
|
|
250
|
+
Open: 'internal-devtools:open',
|
|
299
251
|
};
|
|
@@ -21,8 +21,109 @@ export declare const ProjectSaveCompileConfigSchema: z.ZodTuple<[z.ZodString, z.
|
|
|
21
21
|
value: z.ZodString;
|
|
22
22
|
}, z.core.$loose>>>;
|
|
23
23
|
}, z.core.$loose>], null>;
|
|
24
|
+
/** project:getCompileModeState — absolute project path. */
|
|
25
|
+
export declare const ProjectGetCompileModeStateSchema: z.ZodTuple<[z.ZodString], null>;
|
|
26
|
+
/**
|
|
27
|
+
* The single command shape the popover sends instead of a whole new list —
|
|
28
|
+
* main is the only thing that interprets it against the live store. Mirrors
|
|
29
|
+
* `CompileModeCommand` in `compile-mode-state.ts`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const CompileModeCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"select">;
|
|
33
|
+
id: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<"add">;
|
|
36
|
+
mode: z.ZodObject<{
|
|
37
|
+
name: z.ZodDefault<z.ZodString>;
|
|
38
|
+
pathName: z.ZodString;
|
|
39
|
+
query: z.ZodDefault<z.ZodString>;
|
|
40
|
+
scene: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
41
|
+
}, z.core.$loose>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<"update">;
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
mode: z.ZodObject<{
|
|
46
|
+
name: z.ZodDefault<z.ZodString>;
|
|
47
|
+
pathName: z.ZodString;
|
|
48
|
+
query: z.ZodDefault<z.ZodString>;
|
|
49
|
+
scene: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
}, z.core.$loose>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"remove">;
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
}, z.core.$strip>], "type">;
|
|
55
|
+
/** popover:apply — the command to interpret against the open project's store. */
|
|
56
|
+
export declare const PopoverApplySchema: z.ZodTuple<[z.ZodObject<{
|
|
57
|
+
command: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
+
type: z.ZodLiteral<"select">;
|
|
59
|
+
id: z.ZodNullable<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"add">;
|
|
62
|
+
mode: z.ZodObject<{
|
|
63
|
+
name: z.ZodDefault<z.ZodString>;
|
|
64
|
+
pathName: z.ZodString;
|
|
65
|
+
query: z.ZodDefault<z.ZodString>;
|
|
66
|
+
scene: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
67
|
+
}, z.core.$loose>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"update">;
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
mode: z.ZodObject<{
|
|
72
|
+
name: z.ZodDefault<z.ZodString>;
|
|
73
|
+
pathName: z.ZodString;
|
|
74
|
+
query: z.ZodDefault<z.ZodString>;
|
|
75
|
+
scene: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<"remove">;
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
}, z.core.$strip>], "type">;
|
|
81
|
+
}, z.core.$strip>], null>;
|
|
24
82
|
/** popover:show — must be an object (not undefined/null/string). */
|
|
25
83
|
export declare const PopoverShowSchema: z.ZodTuple<[z.ZodObject<{}, z.core.$loose>], null>;
|
|
84
|
+
/**
|
|
85
|
+
* tooltip:show — the trigger's own bounding rect (CSS px, main-window content
|
|
86
|
+
* coordinates — same space `getBoundingClientRect()` reports, no conversion,
|
|
87
|
+
* mirrors the base-view placement snapshot's Bounds) plus the label text.
|
|
88
|
+
*/
|
|
89
|
+
export declare const TooltipShowSchema: z.ZodTuple<[z.ZodObject<{
|
|
90
|
+
anchor: z.ZodObject<{
|
|
91
|
+
x: z.ZodNumber;
|
|
92
|
+
y: z.ZodNumber;
|
|
93
|
+
width: z.ZodNumber;
|
|
94
|
+
height: z.ZodNumber;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
text: z.ZodString;
|
|
97
|
+
}, z.core.$strip>], null>;
|
|
98
|
+
export declare const TooltipMeasuredSchema: z.ZodTuple<[z.ZodObject<{
|
|
99
|
+
requestId: z.ZodNumber;
|
|
100
|
+
width: z.ZodNumber;
|
|
101
|
+
height: z.ZodNumber;
|
|
102
|
+
}, z.core.$strip>], null>;
|
|
103
|
+
/**
|
|
104
|
+
* projectCreate:show — the merged template catalog + suggested base dir
|
|
105
|
+
* main.tsx already resolved before asking main to show the overlay panel.
|
|
106
|
+
* Templates are re-validated loosely (they only round-trip back into the
|
|
107
|
+
* panel's own render, never interpreted main-side).
|
|
108
|
+
*/
|
|
109
|
+
export declare const ProjectCreateShowSchema: z.ZodTuple<[z.ZodObject<{
|
|
110
|
+
templates: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
111
|
+
defaultBaseDir: z.ZodString;
|
|
112
|
+
}, z.core.$strip>], null>;
|
|
113
|
+
/** projectCreate:submit — the collected create-project form. */
|
|
114
|
+
export declare const ProjectCreateSubmitSchema: z.ZodTuple<[z.ZodObject<{
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
path: z.ZodString;
|
|
117
|
+
templateId: z.ZodString;
|
|
118
|
+
}, z.core.$strip>], null>;
|
|
119
|
+
/**
|
|
120
|
+
* devicePicker:show / devicePicker:select — the device name only. The panel
|
|
121
|
+
* reads the device table from `@devicekit/devices` itself, the same source the
|
|
122
|
+
* toolbar reads, so the catalog never crosses IPC.
|
|
123
|
+
*/
|
|
124
|
+
export declare const DevicePickerDeviceSchema: z.ZodTuple<[z.ZodObject<{
|
|
125
|
+
deviceName: z.ZodString;
|
|
126
|
+
}, z.core.$strip>], null>;
|
|
26
127
|
/**
|
|
27
128
|
* simulator:attach-native (native-host only) — the simulator URL to load into
|
|
28
129
|
* the top-level WebContentsView + simulator width. The URL is the dev-server
|
|
@@ -44,19 +145,23 @@ export declare const SimulatorSoftReloadSchema: z.ZodTuple<[z.ZodString], null>;
|
|
|
44
145
|
* payload small. Matches `NativeDeviceInfo` in ipc-channels.ts.
|
|
45
146
|
*/
|
|
46
147
|
export declare const SimulatorSetDeviceInfoSchema: z.ZodTuple<[z.ZodObject<{
|
|
148
|
+
device: z.ZodOptional<z.ZodString>;
|
|
47
149
|
brand: z.ZodString;
|
|
48
150
|
model: z.ZodString;
|
|
49
151
|
system: z.ZodString;
|
|
50
|
-
platform: z.
|
|
152
|
+
platform: z.ZodEnum<{
|
|
153
|
+
ios: "ios";
|
|
154
|
+
android: "android";
|
|
155
|
+
harmony: "harmony";
|
|
156
|
+
}>;
|
|
157
|
+
orientation: z.ZodEnum<{
|
|
158
|
+
portrait: "portrait";
|
|
159
|
+
landscape: "landscape";
|
|
160
|
+
}>;
|
|
51
161
|
pixelRatio: z.ZodNumber;
|
|
52
162
|
screenWidth: z.ZodNumber;
|
|
53
163
|
screenHeight: z.ZodNumber;
|
|
54
164
|
statusBarHeight: z.ZodNumber;
|
|
55
|
-
notchType: z.ZodEnum<{
|
|
56
|
-
none: "none";
|
|
57
|
-
notch: "notch";
|
|
58
|
-
"dynamic-island": "dynamic-island";
|
|
59
|
-
}>;
|
|
60
165
|
safeAreaInsets: z.ZodObject<{
|
|
61
166
|
top: z.ZodNumber;
|
|
62
167
|
right: z.ZodNumber;
|
|
@@ -95,6 +200,23 @@ export declare const HostToolbarAdvertiseHeightSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
95
200
|
axis: z.ZodLiteral<"block">;
|
|
96
201
|
extent: z.ZodNumber;
|
|
97
202
|
}, z.core.$strip>], null>;
|
|
203
|
+
/**
|
|
204
|
+
* host-sidebar reverse size-advertiser payload — mirrors
|
|
205
|
+
* `HostToolbarAdvertiseHeightSchema` on the inline (width) axis.
|
|
206
|
+
*/
|
|
207
|
+
export declare const HostSidebarAdvertiseWidthSchema: z.ZodTuple<[z.ZodObject<{
|
|
208
|
+
axis: z.ZodLiteral<"inline">;
|
|
209
|
+
extent: z.ZodNumber;
|
|
210
|
+
}, z.core.$strip>], null>;
|
|
211
|
+
/**
|
|
212
|
+
* host-dialog reverse size-advertiser payload. Unlike the single-axis
|
|
213
|
+
* toolbar/sidebar, the dialog's content advertises BOTH axes over the same
|
|
214
|
+
* channel — `axis` distinguishes which report this is.
|
|
215
|
+
*/
|
|
216
|
+
export declare const HostDialogAdvertiseSizeSchema: z.ZodTuple<[z.ZodObject<{
|
|
217
|
+
axis: z.ZodUnion<readonly [z.ZodLiteral<"block">, z.ZodLiteral<"inline">]>;
|
|
218
|
+
extent: z.ZodNumber;
|
|
219
|
+
}, z.core.$strip>], null>;
|
|
98
220
|
/**
|
|
99
221
|
* simulator:custom-apis:invoke — API name + arbitrary JSON-serialisable params.
|
|
100
222
|
*
|
|
@@ -106,8 +228,19 @@ export declare const SimulatorCustomApiInvokeSchema: z.ZodTuple<[z.ZodString, z.
|
|
|
106
228
|
export declare const ProjectGetPagesSchema: z.ZodTuple<[z.ZodString], null>;
|
|
107
229
|
/** project:getCompileConfig — absolute project path. */
|
|
108
230
|
export declare const ProjectGetCompileConfigSchema: z.ZodTuple<[z.ZodString], null>;
|
|
231
|
+
/**
|
|
232
|
+
* projects:update — absolute project directory path + the editable subset of
|
|
233
|
+
* its record. The path is the identity of the record being edited, never a
|
|
234
|
+
* field of the patch.
|
|
235
|
+
*/
|
|
236
|
+
export declare const ProjectsUpdateSchema: z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
237
|
+
name: z.ZodOptional<z.ZodString>;
|
|
238
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>], null>;
|
|
109
240
|
/** projects:remove — absolute project directory path. */
|
|
110
241
|
export declare const ProjectsRemoveSchema: z.ZodTuple<[z.ZodString], null>;
|
|
242
|
+
/** projects:openEditDialog — absolute project directory path. */
|
|
243
|
+
export declare const ProjectsOpenEditDialogSchema: z.ZodTuple<[z.ZodString], null>;
|
|
111
244
|
/**
|
|
112
245
|
* workbenchSettings:save — full WorkbenchSettings object.
|
|
113
246
|
*
|
|
@@ -126,7 +259,10 @@ export declare const WorkbenchSettingsSaveSchema: z.ZodTuple<[z.ZodObject<{
|
|
|
126
259
|
port: z.ZodNumber;
|
|
127
260
|
}, z.core.$loose>;
|
|
128
261
|
compile: z.ZodObject<{
|
|
129
|
-
|
|
262
|
+
autoBuild: z.ZodBoolean;
|
|
263
|
+
}, z.core.$loose>;
|
|
264
|
+
preview: z.ZodObject<{
|
|
265
|
+
autoReload: z.ZodBoolean;
|
|
130
266
|
}, z.core.$loose>;
|
|
131
267
|
theme: z.ZodEnum<{
|
|
132
268
|
system: "system";
|
|
@@ -143,24 +279,6 @@ export declare const WorkbenchSettingsSetThemeSchema: z.ZodTuple<[z.ZodEnum<{
|
|
|
143
279
|
}>], null>;
|
|
144
280
|
/** settings:setVisible — boolean. */
|
|
145
281
|
export declare const SettingsSetVisibleSchema: z.ZodTuple<[z.ZodBoolean], null>;
|
|
146
|
-
/** settings:configChanged — full CompileConfig object (see shared/types.ts). */
|
|
147
|
-
export declare const SettingsConfigChangedSchema: z.ZodTuple<[z.ZodObject<{
|
|
148
|
-
startPage: z.ZodOptional<z.ZodString>;
|
|
149
|
-
scene: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
queryParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
151
|
-
key: z.ZodString;
|
|
152
|
-
value: z.ZodString;
|
|
153
|
-
}, z.core.$loose>>>;
|
|
154
|
-
}, z.core.$loose>], null>;
|
|
155
|
-
/** popover:relaunch — full CompileConfig object pushed back to main on relaunch. */
|
|
156
|
-
export declare const PopoverRelaunchSchema: z.ZodTuple<[z.ZodObject<{
|
|
157
|
-
startPage: z.ZodOptional<z.ZodString>;
|
|
158
|
-
scene: z.ZodOptional<z.ZodNumber>;
|
|
159
|
-
queryParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
|
-
key: z.ZodString;
|
|
161
|
-
value: z.ZodString;
|
|
162
|
-
}, z.core.$loose>>>;
|
|
163
|
-
}, z.core.$loose>], null>;
|
|
164
282
|
/**
|
|
165
283
|
* settings:projectSettingsChanged — Partial<ProjectSettings>.
|
|
166
284
|
*
|
|
@@ -175,33 +293,4 @@ export declare const SettingsProjectSettingsChangedSchema: z.ZodTuple<[z.ZodObje
|
|
|
175
293
|
export declare const ProjectCaptureThumbnailSchema: z.ZodTuple<[z.ZodString], null>;
|
|
176
294
|
/** project:getThumbnail — absolute project path. */
|
|
177
295
|
export declare const ProjectGetThumbnailSchema: z.ZodTuple<[z.ZodString], null>;
|
|
178
|
-
/** project:getLaunchConfigs — absolute project path. */
|
|
179
|
-
export declare const ProjectGetLaunchConfigsSchema: z.ZodTuple<[z.ZodString], null>;
|
|
180
|
-
export declare const ProjectSaveLaunchConfigsSchema: z.ZodTuple<[z.ZodString, z.ZodArray<z.ZodObject<{
|
|
181
|
-
id: z.ZodString;
|
|
182
|
-
name: z.ZodString;
|
|
183
|
-
startPage: z.ZodOptional<z.ZodString>;
|
|
184
|
-
scene: z.ZodOptional<z.ZodNumber>;
|
|
185
|
-
queryParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
186
|
-
key: z.ZodString;
|
|
187
|
-
value: z.ZodString;
|
|
188
|
-
}, z.core.$loose>>>;
|
|
189
|
-
}, z.core.$loose>>], null>;
|
|
190
|
-
/** project:getActiveLaunchConfigId — absolute project path. */
|
|
191
|
-
export declare const ProjectGetActiveLaunchConfigIdSchema: z.ZodTuple<[z.ZodString], null>;
|
|
192
|
-
/** project:saveActiveLaunchConfigId — absolute path + id (string or null). */
|
|
193
|
-
export declare const ProjectSaveActiveLaunchConfigIdSchema: z.ZodTuple<[z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNull]>], null>;
|
|
194
|
-
/** popover:switchLaunchConfig — id (string) or null for normal mode. */
|
|
195
|
-
export declare const PopoverSwitchLaunchConfigSchema: z.ZodTuple<[z.ZodUnion<readonly [z.ZodString, z.ZodNull]>], null>;
|
|
196
|
-
/** popover:updateLaunchConfigs — full launch config array. */
|
|
197
|
-
export declare const PopoverUpdateLaunchConfigsSchema: z.ZodTuple<[z.ZodArray<z.ZodObject<{
|
|
198
|
-
id: z.ZodString;
|
|
199
|
-
name: z.ZodString;
|
|
200
|
-
startPage: z.ZodOptional<z.ZodString>;
|
|
201
|
-
scene: z.ZodOptional<z.ZodNumber>;
|
|
202
|
-
queryParams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
-
key: z.ZodString;
|
|
204
|
-
value: z.ZodString;
|
|
205
|
-
}, z.core.$loose>>>;
|
|
206
|
-
}, z.core.$loose>>], null>;
|
|
207
296
|
//# sourceMappingURL=ipc-schemas.d.ts.map
|