@pi-harness/pi-harness 0.1.71 → 0.1.72

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 (28) hide show
  1. package/apps/web/dist/assets/{index-D5XWIVC5.js → index-Du2_aaZA.js} +9 -9
  2. package/apps/web/dist/index.html +1 -1
  3. package/apps/web/package.json +1 -1
  4. package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/context-doctor.json +1 -1
  5. package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/context.json +1 -1
  6. package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/history-compressor.json +1 -1
  7. package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/session-insights.json +1 -1
  8. package/node_modules/@pi-harness/api-gateway/dist/marketplace-entries/official/theme-studio.json +1 -1
  9. package/node_modules/@pi-harness/api-gateway/package.json +1 -1
  10. package/node_modules/@pi-harness/cli/package.json +1 -1
  11. package/node_modules/@pi-harness/host-webserver/package.json +1 -1
  12. package/node_modules/@pi-harness/web-app/package.json +1 -1
  13. package/package.json +6 -6
  14. package/packages/api-gateway/dist/marketplace-entries/official/context-doctor.json +1 -1
  15. package/packages/api-gateway/dist/marketplace-entries/official/context.json +1 -1
  16. package/packages/api-gateway/dist/marketplace-entries/official/history-compressor.json +1 -1
  17. package/packages/api-gateway/dist/marketplace-entries/official/session-insights.json +1 -1
  18. package/packages/api-gateway/dist/marketplace-entries/official/theme-studio.json +1 -1
  19. package/packages/api-gateway/package.json +1 -1
  20. package/packages/api-gateway/src/marketplace-entries/official/context-doctor.json +1 -1
  21. package/packages/api-gateway/src/marketplace-entries/official/context.json +1 -1
  22. package/packages/api-gateway/src/marketplace-entries/official/history-compressor.json +1 -1
  23. package/packages/api-gateway/src/marketplace-entries/official/session-insights.json +1 -1
  24. package/packages/api-gateway/src/marketplace-entries/official/theme-studio.json +1 -1
  25. package/packages/api-gateway/test/index.test.ts +2 -0
  26. package/packages/bundle-web-app/package.json +1 -1
  27. package/packages/cli/package.json +1 -1
  28. package/packages/host-webserver/package.json +1 -1
@@ -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-D5XWIVC5.js"></script>
18
+ <script type="module" crossorigin src="/assets/index-Du2_aaZA.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-WeLAcuZi.css">
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/web",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "private": true,
5
5
  "description": "Browser application entry for Pi Harness",
6
6
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "context-doctor",
3
3
  "packageName": "@pi-harness/plugin-context-doctor",
4
- "version": "0.1.30",
4
+ "version": "0.1.31",
5
5
  "name": "Context Doctor",
6
6
  "description": "体检当前上下文:找出压力来源、超大或读不出的消息以及工具报错。压缩请求会排到 agent 空闲后,确认后才调用模型(会产生费用),等待可取消。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "context-insights",
3
3
  "packageName": "@pi-harness/plugin-context",
4
- "version": "0.1.29",
4
+ "version": "0.1.30",
5
5
  "name": "Context Insights",
6
6
  "description": "查看上下文占用与消息构成,带缓存的会话计数和固定上限的面板。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "history-compressor",
3
3
  "packageName": "@pi-harness/plugin-history-compressor",
4
- "version": "0.1.31",
4
+ "version": "0.1.32",
5
5
  "name": "History Compressor",
6
6
  "description": "上下文占用接近设定阈值时,自动压缩当前 Pi 会话。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "session-insights",
3
3
  "packageName": "@pi-harness/plugin-session-insights",
4
- "version": "0.1.31",
4
+ "version": "0.1.32",
5
5
  "name": "Session Insights",
6
6
  "description": "发布经过校验并缓存的会话统计;压缩只在会话空闲且确认后执行,并给出模型用量与费用提示,可取消。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "theme-studio",
3
3
  "packageName": "@pi-harness/plugin-theme-studio",
4
- "version": "0.1.30",
4
+ "version": "0.1.31",
5
5
  "name": "Theme Studio",
6
6
  "description": "为 Pi Harness 控制台切换浅色、午夜、纸张和高对比四套主题。",
7
7
  "author": "Pi Harness",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/api-gateway",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
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.71",
3
+ "version": "0.1.72",
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.71",
3
+ "version": "0.1.72",
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.71",
3
+ "version": "0.1.72",
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.71",
3
+ "version": "0.1.72",
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.71",
62
- "@pi-harness/cli": "0.1.71",
63
- "@pi-harness/core": "^0.1.71",
64
- "@pi-harness/host-webserver": "0.1.71",
65
- "@pi-harness/web-app": "0.1.71",
61
+ "@pi-harness/api-gateway": "0.1.72",
62
+ "@pi-harness/cli": "0.1.72",
63
+ "@pi-harness/core": "^0.1.72",
64
+ "@pi-harness/host-webserver": "0.1.72",
65
+ "@pi-harness/web-app": "0.1.72",
66
66
  "semver": "7.8.5"
67
67
  },
68
68
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "context-doctor",
3
3
  "packageName": "@pi-harness/plugin-context-doctor",
4
- "version": "0.1.30",
4
+ "version": "0.1.31",
5
5
  "name": "Context Doctor",
6
6
  "description": "体检当前上下文:找出压力来源、超大或读不出的消息以及工具报错。压缩请求会排到 agent 空闲后,确认后才调用模型(会产生费用),等待可取消。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "context-insights",
3
3
  "packageName": "@pi-harness/plugin-context",
4
- "version": "0.1.29",
4
+ "version": "0.1.30",
5
5
  "name": "Context Insights",
6
6
  "description": "查看上下文占用与消息构成,带缓存的会话计数和固定上限的面板。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "history-compressor",
3
3
  "packageName": "@pi-harness/plugin-history-compressor",
4
- "version": "0.1.31",
4
+ "version": "0.1.32",
5
5
  "name": "History Compressor",
6
6
  "description": "上下文占用接近设定阈值时,自动压缩当前 Pi 会话。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "session-insights",
3
3
  "packageName": "@pi-harness/plugin-session-insights",
4
- "version": "0.1.31",
4
+ "version": "0.1.32",
5
5
  "name": "Session Insights",
6
6
  "description": "发布经过校验并缓存的会话统计;压缩只在会话空闲且确认后执行,并给出模型用量与费用提示,可取消。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "theme-studio",
3
3
  "packageName": "@pi-harness/plugin-theme-studio",
4
- "version": "0.1.30",
4
+ "version": "0.1.31",
5
5
  "name": "Theme Studio",
6
6
  "description": "为 Pi Harness 控制台切换浅色、午夜、纸张和高对比四套主题。",
7
7
  "author": "Pi Harness",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/api-gateway",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
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": "context-doctor",
3
3
  "packageName": "@pi-harness/plugin-context-doctor",
4
- "version": "0.1.30",
4
+ "version": "0.1.31",
5
5
  "name": "Context Doctor",
6
6
  "description": "体检当前上下文:找出压力来源、超大或读不出的消息以及工具报错。压缩请求会排到 agent 空闲后,确认后才调用模型(会产生费用),等待可取消。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "context-insights",
3
3
  "packageName": "@pi-harness/plugin-context",
4
- "version": "0.1.29",
4
+ "version": "0.1.30",
5
5
  "name": "Context Insights",
6
6
  "description": "查看上下文占用与消息构成,带缓存的会话计数和固定上限的面板。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "history-compressor",
3
3
  "packageName": "@pi-harness/plugin-history-compressor",
4
- "version": "0.1.31",
4
+ "version": "0.1.32",
5
5
  "name": "History Compressor",
6
6
  "description": "上下文占用接近设定阈值时,自动压缩当前 Pi 会话。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "session-insights",
3
3
  "packageName": "@pi-harness/plugin-session-insights",
4
- "version": "0.1.31",
4
+ "version": "0.1.32",
5
5
  "name": "Session Insights",
6
6
  "description": "发布经过校验并缓存的会话统计;压缩只在会话空闲且确认后执行,并给出模型用量与费用提示,可取消。",
7
7
  "author": "Pi Harness",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "theme-studio",
3
3
  "packageName": "@pi-harness/plugin-theme-studio",
4
- "version": "0.1.30",
4
+ "version": "0.1.31",
5
5
  "name": "Theme Studio",
6
6
  "description": "为 Pi Harness 控制台切换浅色、午夜、纸张和高对比四套主题。",
7
7
  "author": "Pi Harness",
@@ -1548,6 +1548,7 @@ describe("API gateway plugin", () => {
1548
1548
  await context.plugin(webServerPlugin, { host: "127.0.0.1", port: 0 });
1549
1549
  context.provide("piRuntime", {
1550
1550
  session: {
1551
+ sessionId: "context-doctor-session",
1551
1552
  isIdle: true,
1552
1553
  messages: [
1553
1554
  { role: "user", content: "x".repeat(2_000) },
@@ -1580,6 +1581,7 @@ describe("API gateway plugin", () => {
1580
1581
  pluginId: "@pi-harness/plugin-context-doctor",
1581
1582
  title: "Context Doctor",
1582
1583
  data: {
1584
+ sessionId: "context-doctor-session",
1583
1585
  status: "warning",
1584
1586
  usagePercent: 82,
1585
1587
  tokens: 820,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/web-app",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
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.71",
3
+ "version": "0.1.72",
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.71",
3
+ "version": "0.1.72",
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",