pi-maestro-teammate 0.4.2 → 0.4.3
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
CHANGED
|
@@ -15,6 +15,19 @@ export const TEAMMATE_TASK_TYPES = [
|
|
|
15
15
|
|
|
16
16
|
export type TeammateTaskType = (typeof TEAMMATE_TASK_TYPES)[number];
|
|
17
17
|
|
|
18
|
+
export const TEAMMATE_TASK_TYPE_META: Record<
|
|
19
|
+
TeammateTaskType,
|
|
20
|
+
{ label: string; roles: string; description: string }
|
|
21
|
+
> = {
|
|
22
|
+
explore: { label: "Explore", roles: "explorer", description: "File discovery, definitions, and call sites" },
|
|
23
|
+
analysis: { label: "Analysis", roles: "delegate / analyst", description: "Read-only tracing and technical investigation" },
|
|
24
|
+
debug: { label: "Debug", roles: "debugger", description: "Root-cause diagnosis and runtime debugging" },
|
|
25
|
+
planning: { label: "Planning", roles: "planner / architect", description: "Architecture and execution planning" },
|
|
26
|
+
development: { label: "Development", roles: "developer / worker", description: "Implementation and refactoring" },
|
|
27
|
+
review: { label: "Review", roles: "reviewer", description: "Correctness, quality, and security review" },
|
|
28
|
+
testing: { label: "Testing", roles: "tester / qa", description: "Tests, coverage, and regression validation" },
|
|
29
|
+
};
|
|
30
|
+
|
|
18
31
|
export interface ModelRoutingConfig {
|
|
19
32
|
version: 1;
|
|
20
33
|
mappings: Partial<Record<TeammateTaskType, string | null>>;
|
|
@@ -3,6 +3,7 @@ import { DynamicBorder } from "@earendil-works/pi-coding-agent";
|
|
|
3
3
|
import { Container, type SelectItem, SelectList, Text } from "@earendil-works/pi-tui";
|
|
4
4
|
import {
|
|
5
5
|
TEAMMATE_TASK_TYPES,
|
|
6
|
+
TEAMMATE_TASK_TYPE_META,
|
|
6
7
|
getProjectModelRoutingPath,
|
|
7
8
|
loadModelRoutingConfig,
|
|
8
9
|
saveProjectModelMapping,
|
|
@@ -55,11 +56,11 @@ export async function showModelMappingOverlay(
|
|
|
55
56
|
const config = loadModelRoutingConfig(ctx.cwd);
|
|
56
57
|
const taskType = await selectOverlay(
|
|
57
58
|
ctx,
|
|
58
|
-
"Teammate Model Routing",
|
|
59
|
+
"Teammate Role & Model Routing",
|
|
59
60
|
TEAMMATE_TASK_TYPES.map((type) => ({
|
|
60
61
|
value: type,
|
|
61
|
-
label: type
|
|
62
|
-
description:
|
|
62
|
+
label: `${TEAMMATE_TASK_TYPE_META[type].label} · ${config.mappings[type] ?? "auto"}`,
|
|
63
|
+
description: `${TEAMMATE_TASK_TYPE_META[type].roles} — ${TEAMMATE_TASK_TYPE_META[type].description}`,
|
|
63
64
|
})),
|
|
64
65
|
) as TeammateTaskType | null;
|
|
65
66
|
if (!taskType) return;
|
|
@@ -85,7 +86,11 @@ export async function showModelMappingOverlay(
|
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
const model = await selectOverlay(
|
|
89
|
+
const model = await selectOverlay(
|
|
90
|
+
ctx,
|
|
91
|
+
`Map ${TEAMMATE_TASK_TYPE_META[taskType].label} (${TEAMMATE_TASK_TYPE_META[taskType].roles})`,
|
|
92
|
+
modelItems,
|
|
93
|
+
);
|
|
89
94
|
if (model === null) return;
|
|
90
95
|
saveProjectModelMapping(ctx.cwd, taskType, model === "__auto__" ? null : model);
|
|
91
96
|
ctx.ui.notify(
|