@henryqw/pi-subagent 29.1.2 → 29.2.0
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/CONTEXT.md +1 -1
- package/README.md +1 -1
- package/dist/schema.d.ts +16 -16
- package/dist/schema.js +2 -6
- package/dist/workspace-schema.d.ts +8 -8
- package/dist/workspace.d.ts +3 -3
- package/docs/orchestration.md +2 -2
- package/extensions/isolated.ts +1 -1
- package/package.json +2 -2
package/CONTEXT.md
CHANGED
|
@@ -13,7 +13,7 @@ The Pi session and checkout that coordinate delegated work.
|
|
|
13
13
|
A named capability definition with instructions, tools, trusted extension sources, Skills, optional MCP servers, and an optional Model Class default. A Role does not select isolation.
|
|
14
14
|
|
|
15
15
|
**Model Class**:
|
|
16
|
-
A `fast`, `balanced`, `frontier`, or `fav` choice resolved through Pi Task Models.
|
|
16
|
+
A `fast`, `balanced`, `frontier`, `ultra`, or `fav` choice resolved through Pi Task Models.
|
|
17
17
|
|
|
18
18
|
**Direct task**:
|
|
19
19
|
A bounded task in Main's shared checkout with declared `read` or `write` access. Authorized writes take effect immediately, without rollback or checked integration.
|
package/README.md
CHANGED
|
@@ -211,7 +211,7 @@ Role Markdown files in `~/.pi/agent/config/pi-subagent/` require frontmatter and
|
|
|
211
211
|
| Field | Requirement |
|
|
212
212
|
| --- | --- |
|
|
213
213
|
| `name`, `description` | Required non-empty text without terminal control characters |
|
|
214
|
-
| `modelClass` | Optional `fast`, `balanced`, `frontier`, or `fav` default |
|
|
214
|
+
| `modelClass` | Optional `fast`, `balanced`, `frontier`, `ultra`, or `fav` default |
|
|
215
215
|
| `tools` | Required base or internal tool-name array; `[]` selects none. Name `codemode` or `git_read` to activate it. |
|
|
216
216
|
| `extensions` | Required array of trusted absolute paths, supported package sources, or Pi built-ins such as `builtin:codemode` |
|
|
217
217
|
| `skills` | Required array of effective Pi Skill names |
|
package/dist/schema.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const MAX_EXECUTE_REQUEST_BYTES: number;
|
|
|
5
5
|
export declare const MAX_PERSISTED_RUNTIME_TEXT_BYTES: number;
|
|
6
6
|
export declare const MAX_POSSIBLE_RESOURCES = 32;
|
|
7
7
|
export type ModelClass = Static<typeof ModelClassSchema>;
|
|
8
|
-
declare const ModelClassSchema: Type.
|
|
8
|
+
declare const ModelClassSchema: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
9
9
|
export declare const CheckCommandSchema: Type.TObject<{
|
|
10
10
|
command: Type.TString;
|
|
11
11
|
args: Type.TArray<Type.TString>;
|
|
@@ -17,12 +17,12 @@ export declare function formatCheckCommand({ command, args }: {
|
|
|
17
17
|
}): string;
|
|
18
18
|
export declare const JudgmentSchema: Type.TObject<{
|
|
19
19
|
role: Type.TString;
|
|
20
|
-
modelClass: Type.
|
|
20
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
21
21
|
criterion: Type.TString;
|
|
22
22
|
}>;
|
|
23
23
|
declare const TextTaskRequestSchema: Type.TObject<{
|
|
24
24
|
role: Type.TString;
|
|
25
|
-
modelClass: Type.
|
|
25
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
26
26
|
requirements: Type.TString;
|
|
27
27
|
deliverable: Type.TString;
|
|
28
28
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -32,7 +32,7 @@ declare const TextTaskRequestSchema: Type.TObject<{
|
|
|
32
32
|
}>;
|
|
33
33
|
declare const ChangesetTaskRequestSchema: Type.TObject<{
|
|
34
34
|
role: Type.TString;
|
|
35
|
-
modelClass: Type.
|
|
35
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
36
36
|
requirements: Type.TString;
|
|
37
37
|
deliverable: Type.TString;
|
|
38
38
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -45,13 +45,13 @@ declare const ChangesetTaskRequestSchema: Type.TObject<{
|
|
|
45
45
|
}>>;
|
|
46
46
|
judgment: Type.TOptional<Type.TObject<{
|
|
47
47
|
role: Type.TString;
|
|
48
|
-
modelClass: Type.
|
|
48
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
49
49
|
criterion: Type.TString;
|
|
50
50
|
}>>;
|
|
51
51
|
}>;
|
|
52
52
|
export declare const TaskRequestSchema: Type.TUnion<[Type.TObject<{
|
|
53
53
|
role: Type.TString;
|
|
54
|
-
modelClass: Type.
|
|
54
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
55
55
|
requirements: Type.TString;
|
|
56
56
|
deliverable: Type.TString;
|
|
57
57
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -60,7 +60,7 @@ export declare const TaskRequestSchema: Type.TUnion<[Type.TObject<{
|
|
|
60
60
|
kind: Type.TLiteral<"text">;
|
|
61
61
|
}>, Type.TObject<{
|
|
62
62
|
role: Type.TString;
|
|
63
|
-
modelClass: Type.
|
|
63
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
64
64
|
requirements: Type.TString;
|
|
65
65
|
deliverable: Type.TString;
|
|
66
66
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -73,7 +73,7 @@ export declare const TaskRequestSchema: Type.TUnion<[Type.TObject<{
|
|
|
73
73
|
}>>;
|
|
74
74
|
judgment: Type.TOptional<Type.TObject<{
|
|
75
75
|
role: Type.TString;
|
|
76
|
-
modelClass: Type.
|
|
76
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
77
77
|
criterion: Type.TString;
|
|
78
78
|
}>>;
|
|
79
79
|
}>]>;
|
|
@@ -83,7 +83,7 @@ export declare const ExecuteRequestSchema: Type.TObject<{
|
|
|
83
83
|
goal: Type.TString;
|
|
84
84
|
tasks: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
85
85
|
role: Type.TString;
|
|
86
|
-
modelClass: Type.
|
|
86
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
87
87
|
requirements: Type.TString;
|
|
88
88
|
deliverable: Type.TString;
|
|
89
89
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -92,7 +92,7 @@ export declare const ExecuteRequestSchema: Type.TObject<{
|
|
|
92
92
|
kind: Type.TLiteral<"text">;
|
|
93
93
|
}>, Type.TObject<{
|
|
94
94
|
role: Type.TString;
|
|
95
|
-
modelClass: Type.
|
|
95
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
96
96
|
requirements: Type.TString;
|
|
97
97
|
deliverable: Type.TString;
|
|
98
98
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -105,7 +105,7 @@ export declare const ExecuteRequestSchema: Type.TObject<{
|
|
|
105
105
|
}>>;
|
|
106
106
|
judgment: Type.TOptional<Type.TObject<{
|
|
107
107
|
role: Type.TString;
|
|
108
|
-
modelClass: Type.
|
|
108
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
109
109
|
criterion: Type.TString;
|
|
110
110
|
}>>;
|
|
111
111
|
}>]>>;
|
|
@@ -115,7 +115,7 @@ export declare const ExecuteRequestSchema: Type.TObject<{
|
|
|
115
115
|
}>>>;
|
|
116
116
|
finalJudgment: Type.TOptional<Type.TObject<{
|
|
117
117
|
role: Type.TString;
|
|
118
|
-
modelClass: Type.
|
|
118
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
119
119
|
criterion: Type.TString;
|
|
120
120
|
}>>;
|
|
121
121
|
}>;
|
|
@@ -1763,7 +1763,7 @@ declare const RunStateSchema: Type.TObject<{
|
|
|
1763
1763
|
goal: Type.TString;
|
|
1764
1764
|
tasks: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
1765
1765
|
role: Type.TString;
|
|
1766
|
-
modelClass: Type.
|
|
1766
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
1767
1767
|
requirements: Type.TString;
|
|
1768
1768
|
deliverable: Type.TString;
|
|
1769
1769
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -1772,7 +1772,7 @@ declare const RunStateSchema: Type.TObject<{
|
|
|
1772
1772
|
kind: Type.TLiteral<"text">;
|
|
1773
1773
|
}>, Type.TObject<{
|
|
1774
1774
|
role: Type.TString;
|
|
1775
|
-
modelClass: Type.
|
|
1775
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
1776
1776
|
requirements: Type.TString;
|
|
1777
1777
|
deliverable: Type.TString;
|
|
1778
1778
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -1785,7 +1785,7 @@ declare const RunStateSchema: Type.TObject<{
|
|
|
1785
1785
|
}>>;
|
|
1786
1786
|
judgment: Type.TOptional<Type.TObject<{
|
|
1787
1787
|
role: Type.TString;
|
|
1788
|
-
modelClass: Type.
|
|
1788
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
1789
1789
|
criterion: Type.TString;
|
|
1790
1790
|
}>>;
|
|
1791
1791
|
}>]>>;
|
|
@@ -1795,7 +1795,7 @@ declare const RunStateSchema: Type.TObject<{
|
|
|
1795
1795
|
}>>>;
|
|
1796
1796
|
finalJudgment: Type.TOptional<Type.TObject<{
|
|
1797
1797
|
role: Type.TString;
|
|
1798
|
-
modelClass: Type.
|
|
1798
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
1799
1799
|
criterion: Type.TString;
|
|
1800
1800
|
}>>;
|
|
1801
1801
|
}>;
|
package/dist/schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isAbsolute } from "node:path";
|
|
2
|
+
import { PROFILE_NAMES } from "@henryqw/pi-task-models";
|
|
2
3
|
import { parseRoleName } from "./index.js";
|
|
3
4
|
import { Type } from "typebox";
|
|
4
5
|
import { Check, Errors } from "typebox/value";
|
|
@@ -16,12 +17,7 @@ const RoleNameSchema = Type.String({ minLength: 1, maxLength: 32_000 });
|
|
|
16
17
|
const RuntimeTextSchema = Type.String({ minLength: 1, maxLength: MAX_PERSISTED_RUNTIME_TEXT_BYTES });
|
|
17
18
|
const OptionalRuntimeTextSchema = Type.Optional(Type.String({ maxLength: MAX_PERSISTED_RUNTIME_TEXT_BYTES }));
|
|
18
19
|
const TimestampSchema = Type.Integer({ minimum: 0 });
|
|
19
|
-
const ModelClassSchema = Type.
|
|
20
|
-
Type.Literal("fast"),
|
|
21
|
-
Type.Literal("balanced"),
|
|
22
|
-
Type.Literal("frontier"),
|
|
23
|
-
Type.Literal("fav"),
|
|
24
|
-
]);
|
|
20
|
+
const ModelClassSchema = Type.Enum(PROFILE_NAMES, { type: "string" });
|
|
25
21
|
export const CheckCommandSchema = Type.Object({
|
|
26
22
|
command: TextSchema,
|
|
27
23
|
args: Type.Array(Type.String({ maxLength: 16_000 }), { maxItems: 128 }),
|
|
@@ -7,7 +7,7 @@ export declare const WorkspaceCheckSchema: Type.TObject<{
|
|
|
7
7
|
}>;
|
|
8
8
|
export declare const WorkspaceTaskSchema: Type.TObject<{
|
|
9
9
|
role: Type.TString;
|
|
10
|
-
modelClass: Type.
|
|
10
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
11
11
|
requirements: Type.TString;
|
|
12
12
|
deliverable: Type.TString;
|
|
13
13
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -16,7 +16,7 @@ export declare const WorkspaceTaskSchema: Type.TObject<{
|
|
|
16
16
|
kind: Type.TLiteral<"changeset">;
|
|
17
17
|
judgment: Type.TOptional<Type.TObject<{
|
|
18
18
|
role: Type.TString;
|
|
19
|
-
modelClass: Type.
|
|
19
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
20
20
|
criterion: Type.TString;
|
|
21
21
|
}>>;
|
|
22
22
|
checks: Type.TArray<Type.TObject<{
|
|
@@ -32,13 +32,13 @@ export declare const WorkspaceRequestSchema: Type.TObject<{
|
|
|
32
32
|
goal: Type.TString;
|
|
33
33
|
finalJudgment: Type.TOptional<Type.TObject<{
|
|
34
34
|
role: Type.TString;
|
|
35
|
-
modelClass: Type.
|
|
35
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
36
36
|
criterion: Type.TString;
|
|
37
37
|
}>>;
|
|
38
38
|
repositories: Type.TRecord<"^.*$", Type.TString>;
|
|
39
39
|
tasks: Type.TArray<Type.TObject<{
|
|
40
40
|
role: Type.TString;
|
|
41
|
-
modelClass: Type.
|
|
41
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
42
42
|
requirements: Type.TString;
|
|
43
43
|
deliverable: Type.TString;
|
|
44
44
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -47,7 +47,7 @@ export declare const WorkspaceRequestSchema: Type.TObject<{
|
|
|
47
47
|
kind: Type.TLiteral<"changeset">;
|
|
48
48
|
judgment: Type.TOptional<Type.TObject<{
|
|
49
49
|
role: Type.TString;
|
|
50
|
-
modelClass: Type.
|
|
50
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
51
51
|
criterion: Type.TString;
|
|
52
52
|
}>>;
|
|
53
53
|
checks: Type.TArray<Type.TObject<{
|
|
@@ -95,13 +95,13 @@ export declare const WorkspaceStateSchema: Type.TObject<{
|
|
|
95
95
|
goal: Type.TString;
|
|
96
96
|
finalJudgment: Type.TOptional<Type.TObject<{
|
|
97
97
|
role: Type.TString;
|
|
98
|
-
modelClass: Type.
|
|
98
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
99
99
|
criterion: Type.TString;
|
|
100
100
|
}>>;
|
|
101
101
|
repositories: Type.TRecord<"^.*$", Type.TString>;
|
|
102
102
|
tasks: Type.TArray<Type.TObject<{
|
|
103
103
|
role: Type.TString;
|
|
104
|
-
modelClass: Type.
|
|
104
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
105
105
|
requirements: Type.TString;
|
|
106
106
|
deliverable: Type.TString;
|
|
107
107
|
dependsOn: Type.TArray<Type.TString>;
|
|
@@ -110,7 +110,7 @@ export declare const WorkspaceStateSchema: Type.TObject<{
|
|
|
110
110
|
kind: Type.TLiteral<"changeset">;
|
|
111
111
|
judgment: Type.TOptional<Type.TObject<{
|
|
112
112
|
role: Type.TString;
|
|
113
|
-
modelClass: Type.
|
|
113
|
+
modelClass: Type.TEnum<["fast", "balanced", "frontier", "ultra", "fav"]>;
|
|
114
114
|
criterion: Type.TString;
|
|
115
115
|
}>>;
|
|
116
116
|
checks: Type.TArray<Type.TObject<{
|
package/dist/workspace.d.ts
CHANGED
|
@@ -39,13 +39,13 @@ export declare class WorkspaceRunner {
|
|
|
39
39
|
goal: string;
|
|
40
40
|
finalJudgment?: {
|
|
41
41
|
role: string;
|
|
42
|
-
modelClass: "balanced" | "fast" | "fav" | "frontier";
|
|
42
|
+
modelClass: "balanced" | "fast" | "fav" | "frontier" | "ultra";
|
|
43
43
|
criterion: string;
|
|
44
44
|
} | undefined;
|
|
45
45
|
repositories: Record<string, string>;
|
|
46
46
|
tasks: {
|
|
47
47
|
role: string;
|
|
48
|
-
modelClass: "balanced" | "fast" | "fav" | "frontier";
|
|
48
|
+
modelClass: "balanced" | "fast" | "fav" | "frontier" | "ultra";
|
|
49
49
|
requirements: string;
|
|
50
50
|
deliverable: string;
|
|
51
51
|
dependsOn: string[];
|
|
@@ -54,7 +54,7 @@ export declare class WorkspaceRunner {
|
|
|
54
54
|
kind: "changeset";
|
|
55
55
|
judgment?: {
|
|
56
56
|
role: string;
|
|
57
|
-
modelClass: "balanced" | "fast" | "fav" | "frontier";
|
|
57
|
+
modelClass: "balanced" | "fast" | "fav" | "frontier" | "ultra";
|
|
58
58
|
criterion: string;
|
|
59
59
|
} | undefined;
|
|
60
60
|
checks: {
|
package/docs/orchestration.md
CHANGED
|
@@ -72,7 +72,7 @@ Each entry has:
|
|
|
72
72
|
| `paths` | no | Write tasks only: 1 to 32 repo-relative globs (`path.matchesGlob` syntax, such as `src/**`). The change report flags changed paths outside them. A report only, not enforced |
|
|
73
73
|
| `continueFrom` | no | Direct reference such as `D7.1`; continues that finished worker's Pi session. `role` must equal the recorded Role |
|
|
74
74
|
| `kind` | no | `text` only (default); direct `changeset` is rejected |
|
|
75
|
-
| `modelClass` | no | `fast`, `balanced`, `frontier`, or `fav` route |
|
|
75
|
+
| `modelClass` | no | `fast`, `balanced`, `frontier`, `ultra`, or `fav` route |
|
|
76
76
|
| `model` | no | `provider/modelId`; replaces only the route model |
|
|
77
77
|
|
|
78
78
|
An explicit model must support the route's thinking level. A launched child is never retried automatically after provider or process failure.
|
|
@@ -221,7 +221,7 @@ Outside a Git repository, the extension makes no report and the task continues.
|
|
|
221
221
|
|
|
222
222
|
### Status widgets
|
|
223
223
|
|
|
224
|
-
The TUI has two separate compact status widgets. Each widget has one row for each visible worker or task. `D` marks direct work, and `I` marks isolated work. Badges such as `[S]` and `[I3]` identify the Role initial. Isolated badges also include the model class: `1` fast, `2` balanced, `3` frontier, `*` fav.
|
|
224
|
+
The TUI has two separate compact status widgets. Each widget has one row for each visible worker or task. `D` marks direct work, and `I` marks isolated work. Badges such as `[S]` and `[I3]` identify the Role initial. Isolated badges also include the model class: `1` fast, `2` balanced, `3` frontier, `4` ultra, `*` fav.
|
|
225
225
|
|
|
226
226
|
Each direct row starts with a saved direct reference such as `D7.1`. `D7` is the workflow number in this Pi session, and `.1` is the position of the worker in the original request. `/subagent` uses the same reference and name. The Herdr tab label shows them at launch. Numbers continue after reload, and the session never uses a number again.
|
|
227
227
|
|
package/extensions/isolated.ts
CHANGED
|
@@ -111,7 +111,7 @@ function compactWidgetField(value: string): string {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
function workspaceBadge(role: string, modelClass: ModelClass): string {
|
|
114
|
-
const modelCode = { fast: "1", balanced: "2", frontier: "3", fav: "*" }[modelClass];
|
|
114
|
+
const modelCode = { fast: "1", balanced: "2", frontier: "3", ultra: "4", fav: "*" }[modelClass];
|
|
115
115
|
return `[${Array.from(role)[0]!.toUpperCase()}${modelCode}]`;
|
|
116
116
|
}
|
|
117
117
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@henryqw/pi-subagent",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.2.0",
|
|
4
4
|
"description": "Delegate bounded direct work or durable checked isolated task graphs to Pi roles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@henryqw/pi-herdr": "^0.7.0",
|
|
75
75
|
"@henryqw/pi-multi-codex": "^3.0.0",
|
|
76
76
|
"@henryqw/pi-process": "^0.2.0",
|
|
77
|
-
"@henryqw/pi-task-models": "^9.
|
|
77
|
+
"@henryqw/pi-task-models": "^9.6.0",
|
|
78
78
|
"proper-lockfile": "^4.1.2"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|