@gotgenes/pi-subagents 6.17.1 → 6.17.2
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/CHANGELOG.md +15 -0
- package/docs/architecture/architecture.md +8 -9
- package/docs/plans/0164-reorganize-into-domain-directories.md +409 -0
- package/docs/retro/0164-reorganize-into-domain-directories.md +46 -0
- package/package.json +5 -1
- package/src/{agent-types.ts → config/agent-types.ts} +2 -2
- package/src/{custom-agents.ts → config/custom-agents.ts} +3 -3
- package/src/{default-agents.ts → config/default-agents.ts} +1 -1
- package/src/{invocation-config.ts → config/invocation-config.ts} +1 -1
- package/src/handlers/index.ts +2 -2
- package/src/index.ts +26 -26
- package/src/{agent-manager.ts → lifecycle/agent-manager.ts} +11 -11
- package/src/{agent-record.ts → lifecycle/agent-record.ts} +6 -6
- package/src/{agent-runner.ts → lifecycle/agent-runner.ts} +6 -6
- package/src/{parent-snapshot.ts → lifecycle/parent-snapshot.ts} +1 -1
- package/src/{worktree-state.ts → lifecycle/worktree-state.ts} +1 -1
- package/src/{worktree.ts → lifecycle/worktree.ts} +1 -1
- package/src/{notification.ts → observation/notification.ts} +4 -4
- package/src/{record-observer.ts → observation/record-observer.ts} +2 -2
- package/src/{renderer.ts → observation/renderer.ts} +2 -2
- package/src/runtime.ts +2 -2
- package/src/{service-adapter.ts → service/service-adapter.ts} +5 -5
- package/src/{service.ts → service/service.ts} +1 -1
- package/src/{env.ts → session/env.ts} +2 -2
- package/src/{memory.ts → session/memory.ts} +2 -2
- package/src/{prompts.ts → session/prompts.ts} +2 -2
- package/src/{session-config.ts → session/session-config.ts} +5 -5
- package/src/{skill-loader.ts → session/skill-loader.ts} +2 -2
- package/src/tools/agent-tool.ts +11 -12
- package/src/tools/background-spawner.ts +8 -8
- package/src/tools/foreground-runner.ts +14 -14
- package/src/tools/get-result-tool.ts +5 -5
- package/src/tools/helpers.ts +4 -4
- package/src/tools/spawn-config.ts +6 -6
- package/src/tools/steer-tool.ts +3 -3
- package/src/types.ts +1 -1
- package/src/ui/agent-activity-tracker.ts +1 -1
- package/src/ui/agent-config-editor.ts +4 -4
- package/src/ui/agent-creation-wizard.ts +5 -5
- package/src/ui/agent-menu.ts +9 -9
- package/src/ui/agent-widget.ts +5 -5
- package/src/ui/conversation-viewer.ts +6 -6
- package/src/ui/display.ts +2 -2
- package/src/ui/ui-observer.ts +1 -1
- package/src/ui/widget-renderer.ts +5 -5
- /package/src/{execution-state.ts → lifecycle/execution-state.ts} +0 -0
- /package/src/{usage.ts → lifecycle/usage.ts} +0 -0
- /package/src/{notification-state.ts → observation/notification-state.ts} +0 -0
- /package/src/{context.ts → session/context.ts} +0 -0
- /package/src/{model-resolver.ts → session/model-resolver.ts} +0 -0
- /package/src/{session-dir.ts → session/session-dir.ts} +0 -0
package/src/ui/ui-observer.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* turn count, lifetime usage).
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { AgentActivityTracker } from "
|
|
9
|
+
import type { AgentActivityTracker } from "#src/ui/agent-activity-tracker";
|
|
10
10
|
|
|
11
11
|
/** Narrow session interface — only the subscribe method needed by the observer. */
|
|
12
12
|
interface SubscribableSession {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { truncateToWidth } from "@earendil-works/pi-tui";
|
|
9
|
-
import type { AgentConfigLookup } from "
|
|
10
|
-
import type {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
9
|
+
import type { AgentConfigLookup } from "#src/config/agent-types";
|
|
10
|
+
import type { LifetimeUsage, SessionLike } from "#src/lifecycle/usage";
|
|
11
|
+
import { getLifetimeTotal, getSessionContextPercent } from "#src/lifecycle/usage";
|
|
12
|
+
import type { SubagentType } from "#src/types";
|
|
13
13
|
import {
|
|
14
14
|
describeActivity,
|
|
15
15
|
formatMs,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getPromptModeLabel,
|
|
20
20
|
SPINNER,
|
|
21
21
|
type Theme,
|
|
22
|
-
} from "
|
|
22
|
+
} from "#src/ui/display";
|
|
23
23
|
|
|
24
24
|
// ── Data interfaces ──────────────────────────────────────────────────────────
|
|
25
25
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|