@dimina-kit/devtools 0.4.0-dev.20260616024534 → 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.
@@ -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-7uwimev-.js"></script>
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-BKWkvwKK.js">
11
- <link rel="modulepreload" crossorigin href="../../assets/input-hGF71bn3.js">
12
- <link rel="modulepreload" crossorigin href="../../assets/settings-api-DkrPHroq.js">
13
- <link rel="stylesheet" crossorigin href="../../assets/ipc-transport-Cg1q1gwD.css">
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-EaMYvKHG.js"></script>
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-BKWkvwKK.js">
12
- <link rel="modulepreload" crossorigin href="../../assets/settings-api-DkrPHroq.js">
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-Cg1q1gwD.css">
14
+ <link rel="stylesheet" crossorigin href="../../assets/ipc-transport-9agi76dX.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
@@ -111,9 +111,14 @@ export interface WorkbenchWindowConfig {
111
111
  /**
112
112
  * Auto-show the main window on `ready-to-show`. Defaults to `true`. Set
113
113
  * `false` when the host gates the window behind its own startup flow (e.g. a
114
- * login screen) and wants to call `mainWindow.show()` itself once ready —
115
- * avoids an un-authed window flashing on screen. Does not affect the test
116
- * environment, which always uses `showInactive()` (e2e depends on it).
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.
117
122
  */
118
123
  autoShow?: boolean;
119
124
  }
@@ -220,6 +225,11 @@ export interface WorkbenchAppConfig extends WorkbenchConfig {
220
225
  * error }`, leaves any currently-active session untouched, and never spins
221
226
  * up the adapter. Resolve normally (or omit) to allow the open. The
222
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.
223
233
  */
224
234
  onBeforeOpenProject?: (projectPath: string) => void | Promise<void>;
225
235
  /** Custom update checker. If provided, enables the check-for-updates feature. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimina-kit/devtools",
3
- "version": "0.4.0-dev.20260616024534",
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.20260616024534",
90
- "@dimina-kit/view-anchor": "0.1.0-dev.20260616024534",
91
- "@dimina-kit/electron-deck": "0.1.0-dev.20260616024534"
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",