@harness-fe/vite 3.2.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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +7 -1
  3. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 MorphixAI
3
+ Copyright (c) 2026 MorphixAI
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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` | MCP server WebSocket port |
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": "3.2.0",
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": "3.2.0"
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"