@typeonce/effect-machine-devtools 0.37.0 → 0.38.1
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 +2 -2
- package/dist/bin.js +7 -7
- package/dist/bin.js.map +1 -1
- package/dist/client/assets/index-De9zZEnz.js +37 -0
- package/dist/client/index.html +1 -1
- package/package.json +7 -7
- package/src/bin.ts +7 -7
- package/dist/client/assets/index-sLHK2z5M.js +0 -37
package/dist/client/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<meta name="description" content="Interactive statechart visualization for Effect Machine" />
|
|
7
7
|
<title>Effect Machine · Statechart</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-De9zZEnz.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="./assets/index-DkC3PbTy.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typeonce/effect-machine-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.1",
|
|
4
4
|
"description": "Local development tools for Effect Machine",
|
|
5
5
|
"author": "Sandro Maglione",
|
|
6
6
|
"repository": {
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"./internal/*": null
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@effect/platform-browser": "4.0.0-rc.
|
|
31
|
-
"@effect/platform-node": "4.0.0-rc.
|
|
32
|
-
"@effect/platform-node-shared": "4.0.0-rc.
|
|
30
|
+
"@effect/platform-browser": "4.0.0-rc.117",
|
|
31
|
+
"@effect/platform-node": "4.0.0-rc.117",
|
|
32
|
+
"@effect/platform-node-shared": "4.0.0-rc.117",
|
|
33
33
|
"chokidar": "4.0.3",
|
|
34
34
|
"elkjs": "0.12.0",
|
|
35
35
|
"typescript": "6.0.3",
|
|
36
36
|
"vite": "8.1.5",
|
|
37
|
-
"@typeonce/effect-machine": "^0.
|
|
37
|
+
"@typeonce/effect-machine": "^0.38.1"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"effect": "4.0.0-rc.
|
|
40
|
+
"effect": "4.0.0-rc.117"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "25.7.0",
|
|
44
|
-
"effect": "4.0.0-rc.
|
|
44
|
+
"effect": "4.0.0-rc.117",
|
|
45
45
|
"tsx": "4.21.0"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
package/src/bin.ts
CHANGED
|
@@ -12,37 +12,37 @@ import * as StaticSite from "./internal/staticSite.js"
|
|
|
12
12
|
import * as MachineRegistry from "./MachineRegistry.js"
|
|
13
13
|
import * as ProjectInspector from "./ProjectInspector.js"
|
|
14
14
|
|
|
15
|
-
const root = Flag.
|
|
15
|
+
const root = Flag.Directory("root", { mustExist: true }).pipe(
|
|
16
16
|
Flag.withDescription("Project root to inspect"),
|
|
17
17
|
Flag.withDefault(process.cwd())
|
|
18
18
|
)
|
|
19
19
|
|
|
20
|
-
const include = Flag.
|
|
20
|
+
const include = Flag.String("include").pipe(
|
|
21
21
|
Flag.withDescription("Machine source glob relative to the project root"),
|
|
22
22
|
Flag.withDefault("**/src/**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}")
|
|
23
23
|
)
|
|
24
24
|
|
|
25
|
-
const host = Flag.
|
|
25
|
+
const host = Flag.String("host").pipe(
|
|
26
26
|
Flag.withDescription("Host for the local visualizer"),
|
|
27
27
|
Flag.withDefault("127.0.0.1")
|
|
28
28
|
)
|
|
29
29
|
|
|
30
|
-
const port = Flag.
|
|
30
|
+
const port = Flag.Int("port").pipe(
|
|
31
31
|
Flag.withDescription("Port for the local visualizer"),
|
|
32
32
|
Flag.withDefault(5173)
|
|
33
33
|
)
|
|
34
34
|
|
|
35
|
-
const open = Flag.
|
|
35
|
+
const open = Flag.Boolean("open").pipe(
|
|
36
36
|
Flag.withDescription("Open the visualizer in the default browser"),
|
|
37
37
|
Flag.withDefault(false)
|
|
38
38
|
)
|
|
39
39
|
|
|
40
|
-
const watchPolling = Flag.
|
|
40
|
+
const watchPolling = Flag.Boolean("watch-polling").pipe(
|
|
41
41
|
Flag.withDescription("Use polling instead of native file-system events"),
|
|
42
42
|
Flag.withDefault(false)
|
|
43
43
|
)
|
|
44
44
|
|
|
45
|
-
const outputDirectory = Flag.
|
|
45
|
+
const outputDirectory = Flag.Directory("out-dir").pipe(
|
|
46
46
|
Flag.withAlias("o"),
|
|
47
47
|
Flag.withDescription("Directory to write the static website"),
|
|
48
48
|
Flag.withDefault(".effect-machine/site")
|