pi-maestro-teammate 0.4.4 → 0.4.6
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/package.json +20 -2
- package/src/agents/agents.ts +14 -3
- package/src/extension/index.ts +1348 -245
- package/src/extension/schemas.ts +6 -6
- package/src/extension/structured-output.ts +75 -2
- package/src/index.ts +5 -0
- package/src/public/v1/agents.ts +2 -0
- package/src/public/v1/child-extensions.ts +2 -0
- package/src/public/v1/execution.ts +16 -0
- package/src/public/v1/extension.ts +7 -0
- package/src/public/v1/index.ts +9 -0
- package/src/public/v1/model-routing.ts +2 -0
- package/src/public/v1/progress-tree.ts +13 -0
- package/src/public/v1/prompts.ts +2 -0
- package/src/public/v1/types.ts +2 -0
- package/src/runs/child-extensions.ts +163 -2
- package/src/runs/execution.ts +844 -315
- package/src/runs/session-handoff.ts +27 -0
- package/src/shared/types.ts +36 -10
- package/src/tui/attach-overlay.ts +42 -1
- package/src/tui/progress-tree.ts +41 -30
- package/src/tui/render.ts +73 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-maestro-teammate",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Pi extension — teammate agent dispatch with DAG task graphs, RPC messaging, and compact TUI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -13,6 +13,24 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"test": "node --experimental-transform-types --test \"test/*.test.ts\""
|
|
15
15
|
},
|
|
16
|
+
"main": "./src/index.ts",
|
|
17
|
+
"types": "./src/index.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./src/index.ts",
|
|
20
|
+
"./v1": "./src/public/v1/index.ts",
|
|
21
|
+
"./v1/agents": "./src/public/v1/agents.ts",
|
|
22
|
+
"./v1/child-extensions": "./src/public/v1/child-extensions.ts",
|
|
23
|
+
"./v1/execution": "./src/public/v1/execution.ts",
|
|
24
|
+
"./v1/extension": "./src/public/v1/extension.ts",
|
|
25
|
+
"./v1/model-routing": "./src/public/v1/model-routing.ts",
|
|
26
|
+
"./v1/prompts": "./src/public/v1/prompts.ts",
|
|
27
|
+
"./v1/progress-tree": "./src/public/v1/progress-tree.ts",
|
|
28
|
+
"./v1/types": "./src/public/v1/types.ts",
|
|
29
|
+
"./src/*": "./src/*"
|
|
30
|
+
},
|
|
31
|
+
"deprecatedSubpaths": {
|
|
32
|
+
"./src/*": "Compatibility only; use the versioned ./v1/* public API."
|
|
33
|
+
},
|
|
16
34
|
"files": [
|
|
17
35
|
"src/**/*.ts",
|
|
18
36
|
"agents/",
|
|
@@ -45,6 +63,7 @@
|
|
|
45
63
|
}
|
|
46
64
|
},
|
|
47
65
|
"dependencies": {
|
|
66
|
+
"cross-spawn": "7.0.6",
|
|
48
67
|
"typebox": "^1.1.24"
|
|
49
68
|
},
|
|
50
69
|
"devDependencies": {
|
|
@@ -53,7 +72,6 @@
|
|
|
53
72
|
"@earendil-works/pi-coding-agent": "0.80.3",
|
|
54
73
|
"@earendil-works/pi-tui": "0.80.3"
|
|
55
74
|
},
|
|
56
|
-
"main": "index.js",
|
|
57
75
|
"directories": {
|
|
58
76
|
"test": "test"
|
|
59
77
|
},
|
package/src/agents/agents.ts
CHANGED
|
@@ -15,8 +15,19 @@ import { parseTeammateThinkingLevel, type TeammateThinkingLevel } from "../share
|
|
|
15
15
|
type SystemPromptMode = "append" | "replace";
|
|
16
16
|
export type AgentSource = "builtin" | "user" | "project";
|
|
17
17
|
|
|
18
|
-
export const BUILTIN_AGENT_NAMES = [
|
|
18
|
+
export const BUILTIN_AGENT_NAMES = [
|
|
19
|
+
"delegate",
|
|
20
|
+
"explorer",
|
|
21
|
+
"goal-verifier",
|
|
22
|
+
"workflow",
|
|
23
|
+
] as const;
|
|
19
24
|
export type BuiltinAgentName = (typeof BUILTIN_AGENT_NAMES)[number];
|
|
25
|
+
export const PUBLIC_BUILTIN_AGENT_NAMES = [
|
|
26
|
+
"delegate",
|
|
27
|
+
"explorer",
|
|
28
|
+
"goal-verifier",
|
|
29
|
+
"workflow",
|
|
30
|
+
] as const satisfies readonly BuiltinAgentName[];
|
|
20
31
|
|
|
21
32
|
const LEGACY_AGENT_ALIASES: Readonly<Record<string, BuiltinAgentName>> = {
|
|
22
33
|
coordinator: "workflow",
|
|
@@ -200,7 +211,7 @@ export function discoverAgents(cwd: string, homeDir = os.homedir()): AgentConfig
|
|
|
200
211
|
.filter((agent) => isBuiltinAgentName(agent.name))
|
|
201
212
|
.map((agent) => [agent.name, agent]),
|
|
202
213
|
);
|
|
203
|
-
const builtinAgents =
|
|
214
|
+
const builtinAgents = PUBLIC_BUILTIN_AGENT_NAMES
|
|
204
215
|
.map((name) => builtinByName.get(name))
|
|
205
216
|
.filter((agent): agent is AgentConfig => agent !== undefined);
|
|
206
217
|
const loadCustomAgents = (dir: string, source: AgentSource): AgentConfig[] =>
|
|
@@ -280,7 +291,7 @@ export function createAgentCatalogSnapshot(
|
|
|
280
291
|
): AgentCatalogSnapshot {
|
|
281
292
|
const summaries = listAgentSummaries(cwd);
|
|
282
293
|
const byName = new Map(summaries.map((agent) => [agent.name, agent]));
|
|
283
|
-
const builtins =
|
|
294
|
+
const builtins = PUBLIC_BUILTIN_AGENT_NAMES
|
|
284
295
|
.map((name) => byName.get(name))
|
|
285
296
|
.filter((agent): agent is AgentSummary => agent !== undefined);
|
|
286
297
|
const discovered = summaries
|