@pi-harness/pi-harness 0.1.102 → 0.1.103

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.
@@ -15,7 +15,7 @@
15
15
  <link rel="apple-touch-icon" href="/icons/app/apple-touch-icon-180.png" sizes="180x180" />
16
16
  <link rel="manifest" href="/manifest.webmanifest" />
17
17
  <title>Pi Harness / Control Room</title>
18
- <script type="module" crossorigin src="/assets/index-CSo9nUZf.js"></script>
18
+ <script type="module" crossorigin src="/assets/index-ClWSDXip.js"></script>
19
19
  <link rel="modulepreload" crossorigin href="/assets/react-vendor-BxoMtjVy.js">
20
20
  <link rel="modulepreload" crossorigin href="/assets/markdown-vendor-DUdMWn0M.js">
21
21
  <link rel="stylesheet" crossorigin href="/assets/index-CLo26FPf.css">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/web",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Browser application entry for Pi Harness",
6
6
  "type": "module",
@@ -0,0 +1,9 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { describe, expect, test } from "vitest";
3
+
4
+ describe("web React build configuration", () => {
5
+ test("deduplicates React packages so hooks share the renderer dispatcher", async () => {
6
+ const source = await readFile(new URL("../vite.config.ts", import.meta.url), "utf8");
7
+ expect(source).toMatch(/resolve:\s*\{[\s\S]*dedupe:\s*\[\s*"react"\s*,\s*"react-dom"\s*\]/u);
8
+ });
9
+ });
@@ -4,6 +4,7 @@ import packageMetadata from "./package.json" with { type: "json" };
4
4
 
5
5
  export default defineConfig({
6
6
  define: { __PI_HARNESS_VERSION__: JSON.stringify(packageMetadata.version) },
7
+ resolve: { dedupe: ["react", "react-dom"] },
7
8
  build: {
8
9
  rolldownOptions: {
9
10
  output: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "session-insights",
3
3
  "packageName": "@pi-harness/plugin-session-insights",
4
- "version": "0.1.32",
4
+ "version": "0.1.33",
5
5
  "name": "Session Insights",
6
6
  "description": "发布经过校验并缓存的会话统计;压缩只在会话空闲且确认后执行,并给出模型用量与费用提示,可取消。",
7
7
  "author": "Pi Harness",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/api-gateway",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Cordis HTTP API routes for the Pi Harness browser client",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/cli",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Plugin-first Pi Harness CLI",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/host-webserver",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Cordis route-registration service for the Pi Harness web host",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/web-app",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Patchable Web application bundle for Pi Harness",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/pi-harness",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/pi-harness/pi-harness/issues"
@@ -58,11 +58,11 @@
58
58
  "@earendil-works/pi-agent-core": "0.84.4",
59
59
  "@earendil-works/pi-ai": "0.84.4",
60
60
  "@earendil-works/pi-coding-agent": "0.84.4",
61
- "@pi-harness/api-gateway": "0.1.102",
62
- "@pi-harness/cli": "0.1.102",
63
- "@pi-harness/core": "^0.1.102",
64
- "@pi-harness/host-webserver": "0.1.102",
65
- "@pi-harness/web-app": "0.1.102",
61
+ "@pi-harness/api-gateway": "0.1.103",
62
+ "@pi-harness/cli": "0.1.103",
63
+ "@pi-harness/core": "^0.1.103",
64
+ "@pi-harness/host-webserver": "0.1.103",
65
+ "@pi-harness/web-app": "0.1.103",
66
66
  "semver": "7.8.5"
67
67
  },
68
68
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "session-insights",
3
3
  "packageName": "@pi-harness/plugin-session-insights",
4
- "version": "0.1.32",
4
+ "version": "0.1.33",
5
5
  "name": "Session Insights",
6
6
  "description": "发布经过校验并缓存的会话统计;压缩只在会话空闲且确认后执行,并给出模型用量与费用提示,可取消。",
7
7
  "author": "Pi Harness",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/api-gateway",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Cordis HTTP API routes for the Pi Harness browser client",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "session-insights",
3
3
  "packageName": "@pi-harness/plugin-session-insights",
4
- "version": "0.1.32",
4
+ "version": "0.1.33",
5
5
  "name": "Session Insights",
6
6
  "description": "发布经过校验并缓存的会话统计;压缩只在会话空闲且确认后执行,并给出模型用量与费用提示,可取消。",
7
7
  "author": "Pi Harness",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/web-app",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Patchable Web application bundle for Pi Harness",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/cli",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Plugin-first Pi Harness CLI",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/host-webserver",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "private": true,
5
5
  "description": "Cordis route-registration service for the Pi Harness web host",
6
6
  "homepage": "https://github.com/pi-harness/pi-harness#readme",