@gotgenes/pi-subagents 7.3.1 → 7.3.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 +13 -0
- package/docs/architecture/architecture.md +148 -60
- package/docs/architecture/history/phase-12-complexity-test-fixtures.md +55 -0
- package/docs/plans/0214-convert-remaining-closure-factories-to-classes.md +261 -0
- package/docs/retro/0208-extract-shared-test-fixtures.md +57 -0
- package/docs/retro/0214-convert-remaining-closure-factories-to-classes.md +40 -0
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/service/service-adapter.ts +76 -76
- package/src/ui/agent-config-editor.ts +56 -56
- package/src/ui/agent-creation-wizard.ts +28 -36
- package/src/ui/agent-menu.ts +7 -7
package/src/ui/agent-menu.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { type ModelRegistry, resolveModel } from "#src/session/model-resolver";
|
|
|
6
6
|
import { getModelLabelFromConfig } from "#src/tools/helpers";
|
|
7
7
|
import type { AgentConfig, AgentRecord } from "#src/types";
|
|
8
8
|
import type { AgentActivityTracker } from "#src/ui/agent-activity-tracker";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { AgentConfigEditor } from "#src/ui/agent-config-editor";
|
|
10
|
+
import { AgentCreationWizard } from "#src/ui/agent-creation-wizard";
|
|
11
11
|
import type { AgentFileOps } from "#src/ui/agent-file-ops";
|
|
12
12
|
import { formatDuration, getDisplayName } from "#src/ui/display";
|
|
13
13
|
|
|
@@ -64,8 +64,8 @@ export interface MenuUI {
|
|
|
64
64
|
* Call `handle(ctx)` from the Pi command registration to open the interactive menu.
|
|
65
65
|
*/
|
|
66
66
|
export class AgentsMenuHandler {
|
|
67
|
-
private readonly editor:
|
|
68
|
-
private readonly wizard:
|
|
67
|
+
private readonly editor: AgentConfigEditor;
|
|
68
|
+
private readonly wizard: AgentCreationWizard;
|
|
69
69
|
|
|
70
70
|
constructor(
|
|
71
71
|
private readonly manager: AgentMenuManager,
|
|
@@ -76,19 +76,19 @@ export class AgentsMenuHandler {
|
|
|
76
76
|
private readonly personalAgentsDir: string,
|
|
77
77
|
private readonly projectAgentsDir: string,
|
|
78
78
|
) {
|
|
79
|
-
this.editor =
|
|
79
|
+
this.editor = new AgentConfigEditor(
|
|
80
80
|
fileOps,
|
|
81
81
|
registry,
|
|
82
82
|
personalAgentsDir,
|
|
83
83
|
projectAgentsDir,
|
|
84
84
|
);
|
|
85
|
-
this.wizard =
|
|
85
|
+
this.wizard = new AgentCreationWizard(
|
|
86
86
|
fileOps,
|
|
87
87
|
manager,
|
|
88
88
|
registry,
|
|
89
89
|
personalAgentsDir,
|
|
90
90
|
projectAgentsDir,
|
|
91
|
-
|
|
91
|
+
);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
async handle({
|