@pi-unipi/unipi 2.0.13 → 2.1.1
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 +0 -0
- package/package.json +28 -28
- package/packages/ask-user/handoff.ts +0 -0
- package/packages/ask-user/index.ts +3 -1
- package/packages/ask-user/launcher-ui.ts +0 -0
- package/packages/ask-user/package.json +5 -5
- package/packages/ask-user/tools.ts +20 -11
- package/packages/autocomplete/README.md +0 -0
- package/packages/autocomplete/package.json +4 -4
- package/packages/autocomplete/src/__tests__/command-registry.audit.test.ts +0 -0
- package/packages/autocomplete/src/__tests__/provider.sorting.test.ts +0 -0
- package/packages/autocomplete/src/constants.ts +0 -0
- package/packages/autocomplete/src/provider.ts +0 -0
- package/packages/autocomplete/src/sorting.ts +0 -0
- package/packages/btw/package.json +6 -6
- package/packages/cocoindex/README.md +0 -0
- package/packages/cocoindex/bridge.ts +0 -0
- package/packages/cocoindex/commands.ts +0 -0
- package/packages/cocoindex/index.ts +0 -0
- package/packages/cocoindex/installer.ts +0 -0
- package/packages/cocoindex/package.json +6 -6
- package/packages/cocoindex/skills/cocoindex/SKILL.md +0 -0
- package/packages/cocoindex/tools.ts +0 -0
- package/packages/compactor/package.json +7 -7
- package/packages/compactor/src/commands/index.ts +0 -0
- package/packages/compactor/src/compaction/auto-trigger.ts +0 -0
- package/packages/compactor/src/compaction/hooks.ts +0 -0
- package/packages/compactor/src/config/manager.ts +0 -0
- package/packages/compactor/src/config/presets.ts +0 -0
- package/packages/compactor/src/config/schema.ts +0 -0
- package/packages/compactor/src/display/diff-presentation.ts +0 -0
- package/packages/compactor/src/display/diff-renderer.ts +0 -0
- package/packages/compactor/src/display/diff-width-safety.ts +0 -0
- package/packages/compactor/src/display/line-width-safety.ts +0 -0
- package/packages/compactor/src/index.ts +0 -0
- package/packages/compactor/src/info-screen.ts +0 -0
- package/packages/compactor/src/session/analytics.ts +0 -0
- package/packages/compactor/src/session/db.ts +0 -0
- package/packages/compactor/src/session/recall-blocks.ts +0 -0
- package/packages/compactor/src/tools/ctx-batch-execute.ts +0 -0
- package/packages/compactor/src/tools/ctx-doctor.ts +0 -0
- package/packages/compactor/src/tools/ctx-stats.ts +0 -0
- package/packages/compactor/src/tools/register.ts +0 -0
- package/packages/compactor/src/tui/settings-overlay.ts +0 -0
- package/packages/compactor/src/types.ts +0 -0
- package/packages/core/constants.ts +0 -0
- package/packages/core/events.ts +0 -0
- package/packages/core/global-types.ts +0 -0
- package/packages/core/global.d.ts +0 -0
- package/packages/core/package.json +3 -3
- package/packages/core/sandbox.ts +0 -0
- package/packages/core/utils.ts +26 -0
- package/packages/footer/README.md +0 -0
- package/packages/footer/index.ts +0 -0
- package/packages/footer/package.json +5 -5
- package/packages/footer/src/commands.ts +0 -0
- package/packages/footer/src/config.ts +0 -0
- package/packages/footer/src/events.ts +0 -0
- package/packages/footer/src/help.ts +0 -0
- package/packages/footer/src/index.ts +71 -4
- package/packages/footer/src/presets.ts +0 -0
- package/packages/footer/src/registry/index.ts +0 -0
- package/packages/footer/src/rendering/icons.ts +0 -0
- package/packages/footer/src/rendering/renderer.ts +0 -0
- package/packages/footer/src/rendering/separators.ts +0 -0
- package/packages/footer/src/rendering/theme.ts +0 -0
- package/packages/footer/src/segments/compactor.ts +0 -0
- package/packages/footer/src/segments/core.ts +0 -0
- package/packages/footer/src/segments/kanboard.ts +0 -0
- package/packages/footer/src/segments/mcp.ts +0 -0
- package/packages/footer/src/segments/memory.ts +0 -0
- package/packages/footer/src/segments/notify.ts +0 -0
- package/packages/footer/src/segments/ralph.ts +0 -0
- package/packages/footer/src/segments/status-ext.ts +0 -0
- package/packages/footer/src/segments/workflow.ts +0 -0
- package/packages/footer/src/tps-tracker.ts +109 -33
- package/packages/footer/src/tui/settings-tui.ts +0 -0
- package/packages/footer/src/types.ts +0 -0
- package/packages/footer/types.ts +0 -0
- package/packages/info-screen/index.ts +3 -1
- package/packages/info-screen/package.json +5 -5
- package/packages/info-screen/tui/info-overlay.ts +16 -7
- package/packages/input-shortcuts/README.md +0 -0
- package/packages/input-shortcuts/index.ts +0 -0
- package/packages/input-shortcuts/package.json +5 -5
- package/packages/input-shortcuts/src/chord-overlay.ts +0 -0
- package/packages/input-shortcuts/src/clipboard.ts +0 -0
- package/packages/input-shortcuts/src/index.ts +0 -0
- package/packages/input-shortcuts/src/registers.ts +0 -0
- package/packages/input-shortcuts/src/settings-overlay.ts +0 -0
- package/packages/input-shortcuts/src/status.ts +0 -0
- package/packages/input-shortcuts/src/types.ts +0 -0
- package/packages/input-shortcuts/src/undo-redo.ts +0 -0
- package/packages/kanboard/index.ts +0 -0
- package/packages/kanboard/package.json +5 -5
- package/packages/mcp/package.json +5 -5
- package/packages/mcp/src/index.ts +3 -1
- package/packages/mcp/src/tui/settings-overlay.ts +0 -0
- package/packages/memory/README.md +51 -7
- package/packages/memory/index.ts +7 -4
- package/packages/memory/mempalace.ts +260 -0
- package/packages/memory/package.json +8 -5
- package/packages/memory/storage.ts +253 -22
- package/packages/memory/tools.ts +0 -0
- package/packages/milestone/commands.ts +3 -2
- package/packages/milestone/package.json +5 -5
- package/packages/notify/ask-user-prompt-message.ts +0 -0
- package/packages/notify/commands.ts +0 -0
- package/packages/notify/events.ts +0 -0
- package/packages/notify/index.ts +3 -1
- package/packages/notify/ntfy-config.ts +0 -0
- package/packages/notify/package.json +8 -6
- package/packages/notify/platforms/focus-win.ts +0 -0
- package/packages/notify/platforms/focus.ts +0 -0
- package/packages/notify/platforms/native.ts +0 -0
- package/packages/notify/settings.ts +0 -0
- package/packages/notify/src/__tests__/ask-user-prompt-message.test.ts +0 -0
- package/packages/notify/src/__tests__/event-bus.test.ts +0 -0
- package/packages/notify/tui/settings-overlay.ts +0 -0
- package/packages/notify/types.ts +0 -0
- package/packages/ralph/index.ts +3 -1
- package/packages/ralph/package.json +6 -6
- package/packages/subagents/package.json +8 -8
- package/packages/subagents/src/index.ts +27 -23
- package/packages/unipi/index.ts +0 -0
- package/packages/updater/README.md +0 -0
- package/packages/updater/index.ts +0 -0
- package/packages/updater/package.json +5 -5
- package/packages/updater/skills/configure-updater/SKILL.md +0 -0
- package/packages/updater/src/cache.ts +0 -0
- package/packages/updater/src/changelog.ts +0 -0
- package/packages/updater/src/checker.ts +0 -0
- package/packages/updater/src/commands.ts +0 -0
- package/packages/updater/src/installer.ts +0 -0
- package/packages/updater/src/markdown.ts +0 -0
- package/packages/updater/src/readme.ts +3 -1
- package/packages/updater/src/settings.ts +0 -0
- package/packages/updater/src/tui/changelog-overlay.ts +0 -0
- package/packages/updater/src/tui/readme-overlay.ts +0 -0
- package/packages/updater/src/tui/settings-overlay.ts +0 -0
- package/packages/updater/src/tui/update-overlay.ts +0 -0
- package/packages/updater/src/version.ts +0 -0
- package/packages/updater/types.ts +0 -0
- package/packages/utility/package.json +4 -4
- package/packages/utility/src/diff/renderer.ts +0 -0
- package/packages/utility/src/diff/theme.ts +0 -0
- package/packages/utility/src/diff/wrapper.ts +0 -0
- package/packages/utility/src/display/capabilities.ts +0 -0
- package/packages/utility/src/index.ts +3 -1
- package/packages/web-api/package.json +4 -4
- package/packages/web-api/skills/web/SKILL.md +0 -0
- package/packages/web-api/src/engine/constants.ts +0 -0
- package/packages/web-api/src/engine/dependencies.ts +0 -0
- package/packages/web-api/src/engine/dom.ts +0 -0
- package/packages/web-api/src/engine/extract.ts +0 -0
- package/packages/web-api/src/engine/format.ts +0 -0
- package/packages/web-api/src/engine/profiles.ts +0 -0
- package/packages/web-api/src/engine/types.ts +0 -0
- package/packages/web-api/src/index.ts +3 -1
- package/packages/web-api/src/providers/base.ts +0 -0
- package/packages/web-api/src/settings.ts +0 -0
- package/packages/web-api/src/tools.ts +0 -0
- package/packages/web-api/src/tui/progress.ts +0 -0
- package/packages/web-api/src/tui/result.ts +0 -0
- package/packages/web-api/src/tui/settings-dialog.ts +0 -0
- package/packages/workflow/commands.ts +0 -0
- package/packages/workflow/index.ts +3 -1
- package/packages/workflow/package.json +5 -5
|
@@ -12,7 +12,7 @@ import { Type } from "typebox";
|
|
|
12
12
|
import { existsSync, readdirSync } from "node:fs";
|
|
13
13
|
import { join } from "node:path";
|
|
14
14
|
import { homedir } from "node:os";
|
|
15
|
-
import { emitEvent, MODULES, UNIPI_EVENTS, type UnipiBadgeGenerateRequestEvent } from "@pi-unipi/core";
|
|
15
|
+
import { emitEvent, MODULES, UNIPI_EVENTS, withHerdrBlocked, type UnipiBadgeGenerateRequestEvent } from "@pi-unipi/core";
|
|
16
16
|
import { AgentManager } from "./agent-manager.js";
|
|
17
17
|
import { initConfig } from "./config.js";
|
|
18
18
|
import { type AgentActivity, type NotificationDetails, BUILTIN_TYPES } from "./types.js";
|
|
@@ -758,28 +758,32 @@ Guidelines:
|
|
|
758
758
|
// Open conversation viewer overlay if requested
|
|
759
759
|
if (params.view && record.session) {
|
|
760
760
|
const activity = agentActivity.get(record.id);
|
|
761
|
-
await
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
761
|
+
await withHerdrBlocked(
|
|
762
|
+
pi,
|
|
763
|
+
"helper viewer",
|
|
764
|
+
() => ctx.ui.custom<undefined>(
|
|
765
|
+
(tui, theme, _keybindings, done) => {
|
|
766
|
+
return new ConversationViewer(
|
|
767
|
+
tui,
|
|
768
|
+
record.session!,
|
|
769
|
+
{
|
|
770
|
+
type: record.type,
|
|
771
|
+
description: record.description,
|
|
772
|
+
status: record.status,
|
|
773
|
+
toolUses: record.toolUses,
|
|
774
|
+
startedAt: record.startedAt,
|
|
775
|
+
completedAt: record.completedAt,
|
|
776
|
+
},
|
|
777
|
+
activity,
|
|
778
|
+
theme,
|
|
779
|
+
done,
|
|
780
|
+
);
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
overlay: true,
|
|
784
|
+
overlayOptions: { anchor: "center", width: "90%" },
|
|
785
|
+
},
|
|
786
|
+
),
|
|
783
787
|
);
|
|
784
788
|
}
|
|
785
789
|
|
package/packages/unipi/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/updater",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Auto-updater, changelog browser, and readme browser for Unipi
|
|
3
|
+
"version": "2.1.1",
|
|
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",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@pi-unipi/core": "2.
|
|
36
|
+
"@pi-unipi/core": "2.1.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
40
|
-
"@earendil-works/pi-tui": "^0.
|
|
39
|
+
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
40
|
+
"@earendil-works/pi-tui": "^0.80.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^25.6.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* node_modules/@pi-unipi/{name}/README.md.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { dirname } from "node:path";
|
|
10
|
+
import { fileURLToPath } from "node:url";
|
|
9
11
|
import { existsSync, readFileSync } from "fs";
|
|
10
12
|
import { join } from "path";
|
|
11
13
|
import { findPackageRoot } from "@pi-unipi/core";
|
|
@@ -39,7 +41,7 @@ const PACKAGE_MAP: Record<string, string> = {
|
|
|
39
41
|
/** Resolve the unipi package root directory */
|
|
40
42
|
function resolveUnipiRoot(): string {
|
|
41
43
|
// Walk up from this file to find @pi-unipi/unipi by name
|
|
42
|
-
const dir =
|
|
44
|
+
const dir = dirname(fileURLToPath(import.meta.url));
|
|
43
45
|
const root = findPackageRoot(dir, "@pi-unipi/unipi");
|
|
44
46
|
return root ?? join(dir, ".."); // fallback to parent
|
|
45
47
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/utility",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Utility commands and tools for Pi coding agent
|
|
3
|
+
"version": "2.1.1",
|
|
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",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@pi-unipi/core": "2.
|
|
37
|
+
"@pi-unipi/core": "2.1.1",
|
|
38
38
|
"diff": "^7.0.0",
|
|
39
39
|
"@shikijs/cli": "^4.0.2"
|
|
40
40
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/diff": "^7.0.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
45
|
+
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
46
46
|
"typebox": "^1.1.38"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* - TUI: settings inspector pattern, name badge
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
import { dirname } from "node:path";
|
|
16
|
+
import { fileURLToPath } from "node:url";
|
|
15
17
|
import type { ExtensionAPI, InputEvent, AgentEndEvent } from "@earendil-works/pi-coding-agent";
|
|
16
18
|
import {
|
|
17
19
|
UNIPI_EVENTS,
|
|
@@ -35,7 +37,7 @@ import { registerInfoScreen } from "./info-screen.js";
|
|
|
35
37
|
export { readBadgeSettings } from "./tui/badge-settings.js";
|
|
36
38
|
|
|
37
39
|
/** Package version */
|
|
38
|
-
const VERSION = getPackageVersion(
|
|
40
|
+
const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
|
|
39
41
|
|
|
40
42
|
/** Whether we've seen the first user message (for auto badge generation) */
|
|
41
43
|
let firstMessageSeen = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/web-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
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.
|
|
34
|
+
"@pi-unipi/core": "2.1.1",
|
|
35
35
|
"defuddle": "^0.18.1",
|
|
36
36
|
"linkedom": "^0.18.12",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"wreq-js": "^2.3.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
43
|
-
"@earendil-works/pi-tui": "^0.
|
|
42
|
+
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
43
|
+
"@earendil-works/pi-tui": "^0.80.0",
|
|
44
44
|
"typebox": "^1.1.38"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Provides agent tools: web-search, multi-web-content-read, web-llm-summarize
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { dirname } from "node:path";
|
|
9
|
+
import { fileURLToPath } from "node:url";
|
|
8
10
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
9
11
|
import {
|
|
10
12
|
UNIPI_EVENTS,
|
|
@@ -27,7 +29,7 @@ import "./providers/perplexity.js";
|
|
|
27
29
|
import "./providers/llm-summarize.js";
|
|
28
30
|
|
|
29
31
|
/** Package version */
|
|
30
|
-
const VERSION = getPackageVersion(
|
|
32
|
+
const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
|
|
31
33
|
|
|
32
34
|
// Get info registry from global (avoids direct import issues with pi's extension loading)
|
|
33
35
|
function getInfoRegistry() {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* Applies sandbox (tool filtering) per command.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import { dirname } from "node:path";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
10
12
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
11
13
|
import {
|
|
12
14
|
UNIPI_EVENTS,
|
|
@@ -21,7 +23,7 @@ import {
|
|
|
21
23
|
import { registerWorkflowCommands } from "./commands.js";
|
|
22
24
|
|
|
23
25
|
/** Package version (read from package.json at load time) */
|
|
24
|
-
const VERSION = getPackageVersion(
|
|
26
|
+
const VERSION = getPackageVersion(dirname(fileURLToPath(import.meta.url)));
|
|
25
27
|
|
|
26
28
|
/** Whether ralph module is detected */
|
|
27
29
|
let ralphDetected = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/workflow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Structured development workflow commands for Pi coding agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pi-unipi/core": "2.
|
|
29
|
+
"@pi-unipi/core": "2.1.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@earendil-works/pi-ai": "^0.
|
|
33
|
-
"@earendil-works/pi-coding-agent": "^0.
|
|
34
|
-
"@earendil-works/pi-tui": "^0.
|
|
32
|
+
"@earendil-works/pi-ai": "^0.80.0",
|
|
33
|
+
"@earendil-works/pi-coding-agent": "^0.80.0",
|
|
34
|
+
"@earendil-works/pi-tui": "^0.80.0",
|
|
35
35
|
"typebox": "^1.1.38"
|
|
36
36
|
},
|
|
37
37
|
"pi": {
|