@dimina-kit/devtools 0.4.0-dev.20260615083030 → 0.4.0-dev.20260616085026
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/main/app/app.js +11 -0
- package/dist/main/app/lifecycle.d.ts +1 -0
- package/dist/main/app/lifecycle.js +10 -0
- package/dist/main/index.bundle.js +71 -51
- package/dist/main/runtime/devtools-backend.d.ts +5 -0
- package/dist/main/runtime/devtools-backend.js +10 -3
- package/dist/main/runtime/miniapp-runtime.d.ts +4 -2
- package/dist/main/services/workbench-context.d.ts +9 -0
- package/dist/main/services/workbench-context.js +1 -0
- package/dist/main/services/workspace/workspace-service.js +21 -0
- package/dist/main/windows/main-window/create.d.ts +6 -0
- package/dist/main/windows/main-window/create.js +17 -10
- package/dist/renderer/assets/index-BYV0bEvB.js +50 -0
- package/dist/renderer/assets/{input-hGF71bn3.js → input-B8NDCYv3.js} +2 -2
- package/dist/renderer/assets/ipc-transport-9agi76dX.css +1 -0
- package/dist/renderer/assets/{ipc-transport-BKWkvwKK.js → ipc-transport-DhrajiC5.js} +1 -1
- package/dist/renderer/assets/{popover-NNQNyjgI.js → popover-CI5uE9ZZ.js} +2 -2
- package/dist/renderer/assets/{select-Bb1AKeSq.js → select-tInleY0z.js} +2 -2
- package/dist/renderer/assets/{settings-7uwimev-.js → settings-CZJOHt8b.js} +2 -2
- package/dist/renderer/assets/{settings-api-DkrPHroq.js → settings-api-BSKzKiWd.js} +2 -2
- package/dist/renderer/assets/{workbenchSettings-EaMYvKHG.js → workbenchSettings-BGxjl25x.js} +2 -2
- package/dist/renderer/entries/main/index.html +6 -6
- package/dist/renderer/entries/popover/index.html +5 -5
- package/dist/renderer/entries/settings/index.html +5 -5
- package/dist/renderer/entries/workbench-settings/index.html +4 -4
- package/dist/shared/types.d.ts +27 -0
- package/package.json +4 -4
- package/dist/renderer/assets/index-BFwsvw4p.js +0 -50
- package/dist/renderer/assets/ipc-transport-Cg1q1gwD.css +0 -1
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<!-- See main/index.html for CSP rationale. -->
|
|
6
6
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: http: https:; font-src 'self' data:; media-src 'self' blob: http: https:; connect-src 'self' http: https: ws: wss:;" />
|
|
7
7
|
<title>Settings</title>
|
|
8
|
-
<script type="module" crossorigin src="../../assets/settings-
|
|
8
|
+
<script type="module" crossorigin src="../../assets/settings-CZJOHt8b.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="../../assets/chunk-DPI0Y_ll.js">
|
|
10
|
-
<link rel="modulepreload" crossorigin href="../../assets/ipc-transport-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="../../assets/input-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="../../assets/settings-api-
|
|
13
|
-
<link rel="stylesheet" crossorigin href="../../assets/ipc-transport-
|
|
10
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-transport-DhrajiC5.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="../../assets/input-B8NDCYv3.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="../../assets/settings-api-BSKzKiWd.js">
|
|
13
|
+
<link rel="stylesheet" crossorigin href="../../assets/ipc-transport-9agi76dX.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="root"></div>
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
<!-- See entries/main/index.html for CSP rationale. -->
|
|
7
7
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: http: https:; font-src 'self' data:; media-src 'self' blob: http: https:; connect-src 'self' http: https: ws: wss:;" />
|
|
8
8
|
<title>开发工具设置</title>
|
|
9
|
-
<script type="module" crossorigin src="../../assets/workbenchSettings-
|
|
9
|
+
<script type="module" crossorigin src="../../assets/workbenchSettings-BGxjl25x.js"></script>
|
|
10
10
|
<link rel="modulepreload" crossorigin href="../../assets/chunk-DPI0Y_ll.js">
|
|
11
|
-
<link rel="modulepreload" crossorigin href="../../assets/ipc-transport-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="../../assets/settings-api-
|
|
11
|
+
<link rel="modulepreload" crossorigin href="../../assets/ipc-transport-DhrajiC5.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="../../assets/settings-api-BSKzKiWd.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="../../assets/constants-DI382mTP.js">
|
|
14
|
-
<link rel="stylesheet" crossorigin href="../../assets/ipc-transport-
|
|
14
|
+
<link rel="stylesheet" crossorigin href="../../assets/ipc-transport-9agi76dX.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -108,6 +108,19 @@ export interface WorkbenchWindowConfig {
|
|
|
108
108
|
height?: number;
|
|
109
109
|
minWidth?: number;
|
|
110
110
|
minHeight?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Auto-show the main window on `ready-to-show`. Defaults to `true`. Set
|
|
113
|
+
* `false` when the host gates the window behind its own startup flow (e.g. a
|
|
114
|
+
* login screen) and wants to reveal it itself once ready — avoids an
|
|
115
|
+
* un-authed window flashing on screen.
|
|
116
|
+
*
|
|
117
|
+
* Visibility is governed by this flag in BOTH the test and non-test
|
|
118
|
+
* environments; the environment only chooses HOW to show (non-test →
|
|
119
|
+
* `show()`, test → `showInactive()` so e2e windows don't steal focus). When
|
|
120
|
+
* `false`, the framework calls neither in either env — the host owns reveal,
|
|
121
|
+
* test included.
|
|
122
|
+
*/
|
|
123
|
+
autoShow?: boolean;
|
|
111
124
|
}
|
|
112
125
|
export interface UpdateInfo {
|
|
113
126
|
/** New version string (e.g. '1.2.0') */
|
|
@@ -205,6 +218,20 @@ export interface WorkbenchAppConfig extends WorkbenchConfig {
|
|
|
205
218
|
onSetup?: (instance: WorkbenchHostInstance) => void | Promise<void>;
|
|
206
219
|
/** Called before window close when a session is active. Session disposal happens automatically after this hook. */
|
|
207
220
|
onBeforeClose?: (instance: WorkbenchHostInstance) => void | Promise<void>;
|
|
221
|
+
/**
|
|
222
|
+
* Called before a project is opened, BEFORE any side effect (session
|
|
223
|
+
* teardown, compile, dev-server). Use to gate the open on login/permission
|
|
224
|
+
* state. THROW to veto: `openProject` then resolves `{ success: false,
|
|
225
|
+
* error }`, leaves any currently-active session untouched, and never spins
|
|
226
|
+
* up the adapter. Resolve normally (or omit) to allow the open. The
|
|
227
|
+
* declarative alternative to monkey-patching `workspace.openProject`.
|
|
228
|
+
*
|
|
229
|
+
* On veto the framework surfaces the thrown error to the status bar
|
|
230
|
+
* (`notify.projectStatus({ status: 'error', message })`), symmetric with its
|
|
231
|
+
* own validateProjectDir rejection — the host need not reach for `notify`
|
|
232
|
+
* just to report the denial; it may layer richer UX (e.g. a dialog) on top.
|
|
233
|
+
*/
|
|
234
|
+
onBeforeOpenProject?: (projectPath: string) => void | Promise<void>;
|
|
208
235
|
/** Custom update checker. If provided, enables the check-for-updates feature. */
|
|
209
236
|
updateChecker?: UpdateChecker;
|
|
210
237
|
/** Extra options applied when an updateChecker is provided. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimina-kit/devtools",
|
|
3
|
-
"version": "0.4.0-dev.
|
|
3
|
+
"version": "0.4.0-dev.20260616085026",
|
|
4
4
|
"description": "Dimina DevTools - modular developer tools for mini app debugging",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dimina",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"monaco-editor": "^0.55.1",
|
|
87
87
|
"ws": "^8.20.0",
|
|
88
88
|
"zod": "^4.3.6",
|
|
89
|
-
"@dimina-kit/devkit": "0.1.2-dev.
|
|
90
|
-
"@dimina-kit/view-anchor": "0.1.0-dev.
|
|
91
|
-
"@dimina-kit/electron-deck": "0.1.0-dev.
|
|
89
|
+
"@dimina-kit/devkit": "0.1.2-dev.20260616085026",
|
|
90
|
+
"@dimina-kit/view-anchor": "0.1.0-dev.20260616085026",
|
|
91
|
+
"@dimina-kit/electron-deck": "0.1.0-dev.20260616085026"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@playwright/test": "^1.59.1",
|