@harness-fe/vite 4.0.0-next.0 → 4.0.0-next.11
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/LICENSE +1 -1
- package/README.md +7 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -29,9 +29,15 @@ The plugin auto-disables in production builds — zero overhead in your shipped
|
|
|
29
29
|
|
|
30
30
|
| Option | Type | Default | Description |
|
|
31
31
|
|--------|------|---------|-------------|
|
|
32
|
+
| `projectId` | `string` | auto (package name) | Stable id this app reports under. **Fix it in team mode** so the app shows up as a distinct project in the shared daemon — required for [project→agent binding](https://github.com/Morphicai/harness-fe/blob/main/docs/gateway-team-mode.md#project-agent-binding) |
|
|
33
|
+
| `mcpUrl` | `string` | `ws://127.0.0.1:47729` | Daemon WebSocket URL the runtime connects to. Point at a shared central daemon in team mode (or set `HARNESS_FE_URL`) |
|
|
34
|
+
| `token` | `string` | — | Auth token for the daemon WS (or `HARNESS_FE_TOKEN`). Needed when the central daemon runs with `--token` |
|
|
35
|
+
| `parentProjectId` | `string` | — | Host project id for a sub-app / micro-frontend (host owner sees the sub-app's data) |
|
|
32
36
|
| `include` | `FilterPattern` | `/\.(jsx?\|tsx?\|vue)$/` | Files to transform |
|
|
33
37
|
| `exclude` | `FilterPattern` | `/node_modules/` | Files to skip |
|
|
34
|
-
| `wsPort` | `number` | `47729` |
|
|
38
|
+
| `wsPort` | `number` | `47729` | Daemon WebSocket port (legacy; `mcpUrl` takes precedence) |
|
|
39
|
+
|
|
40
|
+
> **Solo vs team:** with no `mcpUrl`/`token` the runtime connects to a loopback daemon (zero config). In **team mode** set `projectId` + `mcpUrl` (+ `token`) so many apps report into one shared daemon as distinct projects. See [gateway-team-mode.md](https://github.com/Morphicai/harness-fe/blob/main/docs/gateway-team-mode.md).
|
|
35
41
|
|
|
36
42
|
## Docs
|
|
37
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-fe/vite",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.11",
|
|
4
4
|
"description": "Vite plugin for Harness-FE: source-aware transforms, runtime injection, and MCP bridge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"LICENSE"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@harness-fe/unplugin": "4.0.0-next.
|
|
31
|
+
"@harness-fe/unplugin": "4.0.0-next.11"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|