@nwire/studio 0.9.1 → 0.10.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/package.json +2 -2
- package/tsconfig.json +1 -1
- package/vite.config.ts +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nwire/studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Nwire Studio — visual companion for the framework. Vue 3 + Vite + shadcn-vue + VueFlow. System topology, action runner, actor browser, projection viewer, DLQ inspector.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"devtools",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"vite": "npm:rolldown-vite@latest",
|
|
41
41
|
"vue": "^3.5.13",
|
|
42
42
|
"vue-router": "^4.5.0",
|
|
43
|
-
"@nwire/
|
|
43
|
+
"@nwire/supervisor": "0.10.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@playwright/test": "^1.60.0",
|
package/tsconfig.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -5,7 +5,7 @@ import vue from "@vitejs/plugin-vue";
|
|
|
5
5
|
import tailwindcss from "@tailwindcss/vite";
|
|
6
6
|
import { readFileSync, existsSync, readdirSync } from "node:fs";
|
|
7
7
|
import { spawnSync } from "node:child_process";
|
|
8
|
-
import { RunnerSupervisor, inspectHealthCheck } from "@nwire/
|
|
8
|
+
import { RunnerSupervisor, inspectHealthCheck } from "@nwire/supervisor";
|
|
9
9
|
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
10
10
|
import { request as httpRequest } from "node:http";
|
|
11
11
|
import { createConnection, createServer as createNetServer, type AddressInfo } from "node:net";
|
|
@@ -267,12 +267,14 @@ function nwireDataPlugin() {
|
|
|
267
267
|
}
|
|
268
268
|
const absolute = resolve(requested);
|
|
269
269
|
const allowedRoot = [...knownProjects].some((root) => absolute.startsWith(root));
|
|
270
|
-
// Use `path.sep` so the framework-source fallback works on
|
|
271
|
-
//
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
270
|
+
// Use `path.sep` so the framework-source fallback works on Windows too.
|
|
271
|
+
// Match the three workspace folder prefixes: core-, nwire-, tool-.
|
|
272
|
+
const frameworkSegments = [
|
|
273
|
+
`${sep}packages${sep}core-`,
|
|
274
|
+
`${sep}packages${sep}nwire-`,
|
|
275
|
+
`${sep}packages${sep}tool-`,
|
|
276
|
+
];
|
|
277
|
+
if (!allowedRoot && !frameworkSegments.some((seg) => absolute.includes(seg))) {
|
|
276
278
|
res.statusCode = 403;
|
|
277
279
|
res.end(
|
|
278
280
|
JSON.stringify({
|