@pi-unipi/unipi 2.2.7 → 2.3.0

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 (37) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/package.json +31 -25
  3. package/packages/ask-user/package.json +2 -2
  4. package/packages/autocomplete/package.json +1 -1
  5. package/packages/btw/package.json +2 -2
  6. package/packages/cocoindex/package.json +2 -2
  7. package/packages/compactor/package.json +3 -3
  8. package/packages/compactor/src/info-screen.ts +4 -4
  9. package/packages/core/package.json +1 -1
  10. package/packages/core/utils.ts +37 -0
  11. package/packages/footer/package.json +2 -2
  12. package/packages/image/package.json +2 -2
  13. package/packages/info-screen/README.md +4 -4
  14. package/packages/info-screen/config.ts +28 -8
  15. package/packages/info-screen/core-groups.ts +5 -39
  16. package/packages/info-screen/index.ts +25 -10
  17. package/packages/info-screen/package.json +2 -2
  18. package/packages/info-screen/tui/info-overlay.ts +114 -38
  19. package/packages/info-screen/types.ts +20 -5
  20. package/packages/info-screen/usage-parser.ts +318 -128
  21. package/packages/input-shortcuts/package.json +2 -2
  22. package/packages/kanboard/package.json +2 -2
  23. package/packages/mcp/package.json +2 -2
  24. package/packages/memory/index.ts +60 -22
  25. package/packages/memory/mempalace.ts +66 -1
  26. package/packages/memory/package.json +3 -3
  27. package/packages/memory/storage.ts +75 -12
  28. package/packages/milestone/package.json +2 -2
  29. package/packages/notify/package.json +2 -2
  30. package/packages/ralph/package.json +3 -3
  31. package/packages/subagents/package.json +4 -4
  32. package/packages/unipi/bundled.js +37694 -0
  33. package/packages/updater/package.json +2 -2
  34. package/packages/utility/package.json +2 -2
  35. package/packages/utility/src/tools/env.ts +1 -22
  36. package/packages/web-api/package.json +2 -2
  37. package/packages/workflow/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/updater",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Auto-updater, changelog browser, and readme browser for Unipi — checks npm registry, renders CHANGELOG.md and README.md files in TUI overlays",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@pi-unipi/core": "2.2.0"
36
+ "@pi-unipi/core": "2.3.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@earendil-works/pi-coding-agent": "^0.80.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/utility",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Utility commands and tools for Pi coding agent — lifecycle, diagnostics, cache, analytics, display, batch execution",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@pi-unipi/core": "2.2.0",
37
+ "@pi-unipi/core": "2.3.0",
38
38
  "diff": "^7.0.0",
39
39
  "@shikijs/cli": "^4.0.2"
40
40
  },
@@ -7,6 +7,7 @@
7
7
  import { existsSync, readdirSync } from "node:fs";
8
8
  import { join, resolve } from "node:path";
9
9
  import { homedir } from "node:os";
10
+ import { getPiVersion } from "@pi-unipi/core";
10
11
  import type { EnvironmentInfo } from "../types.js";
11
12
 
12
13
  /** Collect environment information */
@@ -66,28 +67,6 @@ export function getEnvironmentInfo(): EnvironmentInfo {
66
67
  };
67
68
  }
68
69
 
69
- /** Try to determine Pi version */
70
- function getPiVersion(): string {
71
- try {
72
- // Try to read from pi's package
73
- const piPkg = resolve(
74
- process.cwd(),
75
- "node_modules",
76
- "@earendil-works",
77
- "pi-coding-agent",
78
- "package.json",
79
- );
80
- if (existsSync(piPkg)) {
81
- const { readFileSync } = require("node:fs");
82
- const pkg = JSON.parse(readFileSync(piPkg, "utf-8"));
83
- return pkg.version || "unknown";
84
- }
85
- } catch {
86
- // Best effort
87
- }
88
- return "unknown";
89
- }
90
-
91
70
  /** Format environment info as markdown */
92
71
  export function formatEnvironmentInfo(info: EnvironmentInfo): string {
93
72
  const lines = [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/web-api",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Web search, read, and summarize tools with provider-based backend selection for Pi coding agent",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -31,7 +31,7 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@pi-unipi/core": "2.2.0",
34
+ "@pi-unipi/core": "2.3.0",
35
35
  "defuddle": "^0.18.1",
36
36
  "linkedom": "^0.18.12",
37
37
  "lodash": "^4.17.21",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/workflow",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Structured development workflow commands for Pi coding agent",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@pi-unipi/core": "2.2.0"
29
+ "@pi-unipi/core": "2.3.0"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@earendil-works/pi-ai": "^0.80.0",