poe-code 3.0.196 → 3.0.198
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/dist/cli/commands/configure.d.ts +0 -7
- package/dist/cli/commands/configure.js +11 -14
- package/dist/cli/commands/configure.js.map +1 -1
- package/dist/cli/commands/provider.js +8 -1
- package/dist/cli/commands/provider.js.map +1 -1
- package/dist/index.js +263 -269
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +6 -20
- package/dist/providers/claude-code.js.map +3 -3
- package/dist/providers/codex.js +6 -20
- package/dist/providers/codex.js.map +3 -3
- package/dist/providers/create-provider.js +0 -2
- package/dist/providers/create-provider.js.map +1 -1
- package/dist/providers/goose.js +14 -25
- package/dist/providers/goose.js.map +3 -3
- package/dist/providers/kimi.js +6 -20
- package/dist/providers/kimi.js.map +3 -3
- package/dist/providers/opencode.js +6 -20
- package/dist/providers/opencode.js.map +3 -3
- package/dist/providers/poe-agent.js +66 -84
- package/dist/providers/poe-agent.js.map +4 -4
- package/dist/utils/command-checks.d.ts +2 -1
- package/dist/utils/command-checks.js +3 -1
- package/dist/utils/command-checks.js.map +1 -1
- package/package.json +4 -1
- package/packages/memory/dist/cache.js +1 -1
- package/packages/memory/dist/explain.js +1 -1
- package/packages/memory/dist/index.js +18 -7
- package/packages/memory/dist/index.js.map +3 -3
- package/packages/memory/dist/query.js +1 -1
- package/packages/memory/dist/tokens.js +1 -1
- package/packages/superintendent/dist/cli.d.ts +2 -0
- package/packages/superintendent/dist/cli.js +41 -0
- package/packages/superintendent/dist/commands/builder-group.d.ts +52 -0
- package/packages/superintendent/dist/commands/builder-group.js +73 -0
- package/packages/superintendent/dist/commands/complete.d.ts +19 -0
- package/packages/superintendent/dist/commands/complete.js +54 -0
- package/packages/superintendent/dist/commands/index.d.ts +4 -0
- package/packages/superintendent/dist/commands/index.js +4 -0
- package/packages/superintendent/dist/commands/inspector-group.d.ts +115 -0
- package/packages/superintendent/dist/commands/inspector-group.js +133 -0
- package/packages/superintendent/dist/commands/install.d.ts +31 -0
- package/packages/superintendent/dist/commands/install.js +148 -0
- package/packages/superintendent/dist/commands/plan-path.d.ts +9 -0
- package/packages/superintendent/dist/commands/plan-path.js +40 -0
- package/packages/superintendent/dist/commands/poe-agent-runner.d.ts +5 -0
- package/packages/superintendent/dist/commands/poe-agent-runner.js +27 -0
- package/packages/superintendent/dist/commands/run.d.ts +86 -0
- package/packages/superintendent/dist/commands/run.js +945 -0
- package/packages/superintendent/dist/commands/superintendent-group.d.ts +325 -0
- package/packages/superintendent/dist/commands/superintendent-group.js +238 -0
- package/packages/superintendent/dist/config-scope.d.ts +8 -0
- package/packages/superintendent/dist/config-scope.js +9 -0
- package/packages/superintendent/dist/direct-execution.d.ts +1 -0
- package/packages/superintendent/dist/direct-execution.js +20 -0
- package/packages/superintendent/dist/document/parse.d.ts +59 -0
- package/packages/superintendent/dist/document/parse.js +409 -0
- package/packages/superintendent/dist/document/tasks.d.ts +12 -0
- package/packages/superintendent/dist/document/tasks.js +96 -0
- package/packages/superintendent/dist/document/write.d.ts +6 -0
- package/packages/superintendent/dist/document/write.js +156 -0
- package/packages/superintendent/dist/index.d.ts +12 -0
- package/packages/superintendent/dist/index.js +15 -0
- package/packages/superintendent/dist/mcp.d.ts +24 -0
- package/packages/superintendent/dist/mcp.js +202 -0
- package/packages/superintendent/dist/runtime/agentic-tools.d.ts +33 -0
- package/packages/superintendent/dist/runtime/agentic-tools.js +74 -0
- package/packages/superintendent/dist/runtime/loop.d.ts +88 -0
- package/packages/superintendent/dist/runtime/loop.js +446 -0
- package/packages/superintendent/dist/runtime/resolve-cwd.d.ts +2 -0
- package/packages/superintendent/dist/runtime/resolve-cwd.js +10 -0
- package/packages/superintendent/dist/runtime/run-builder.d.ts +13 -0
- package/packages/superintendent/dist/runtime/run-builder.js +102 -0
- package/packages/superintendent/dist/runtime/run-inspector.d.ts +16 -0
- package/packages/superintendent/dist/runtime/run-inspector.js +119 -0
- package/packages/superintendent/dist/runtime/run-owner-review.d.ts +18 -0
- package/packages/superintendent/dist/runtime/run-owner-review.js +208 -0
- package/packages/superintendent/dist/runtime/run-superintendent.d.ts +13 -0
- package/packages/superintendent/dist/runtime/run-superintendent.js +208 -0
- package/packages/superintendent/dist/runtime/system-prompt.d.ts +17 -0
- package/packages/superintendent/dist/runtime/system-prompt.js +54 -0
- package/packages/superintendent/dist/runtime/templates.d.ts +22 -0
- package/packages/superintendent/dist/runtime/templates.js +23 -0
- package/packages/superintendent/dist/runtime/types.d.ts +4 -0
- package/packages/superintendent/dist/runtime/types.js +1 -0
- package/packages/superintendent/dist/runtime/workflow-tool.d.ts +29 -0
- package/packages/superintendent/dist/runtime/workflow-tool.js +83 -0
- package/packages/superintendent/dist/state/machine.d.ts +14 -0
- package/packages/superintendent/dist/state/machine.js +53 -0
- package/packages/superintendent/dist/templates/SKILL_superintendent.md +193 -0
- package/packages/superintendent/dist/testing/index.d.ts +2 -0
- package/packages/superintendent/dist/testing/index.js +1 -0
- package/packages/superintendent/dist/testing/simulation.d.ts +57 -0
- package/packages/superintendent/dist/testing/simulation.js +346 -0
- package/dist/providers/tiny-http-mcp-server.d.ts +0 -22
- package/dist/providers/tiny-http-mcp-server.js +0 -1471
- package/dist/providers/tiny-http-mcp-server.js.map +0 -7
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { type BuilderGroupRunners } from "./builder-group.js";
|
|
2
|
+
import { type InspectorGroupRunners } from "./inspector-group.js";
|
|
3
|
+
import { type RunMcpCommandRunners } from "./run.js";
|
|
4
|
+
export type ValidationProblem = {
|
|
5
|
+
level: "error" | "warning";
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
export type ValidationResult = {
|
|
9
|
+
valid: boolean;
|
|
10
|
+
problems: ValidationProblem[];
|
|
11
|
+
};
|
|
12
|
+
export declare const validateCommand: import("toolcraft").Command<{
|
|
13
|
+
[x: string]: never;
|
|
14
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
15
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
16
|
+
}>, undefined, ValidationResult> & {
|
|
17
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"validate", import("toolcraft-schema").ObjectSchema<{
|
|
18
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
19
|
+
}>, ValidationResult, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
20
|
+
};
|
|
21
|
+
export declare const superintendentGroup: import("toolcraft").Group<{
|
|
22
|
+
[x: string]: never;
|
|
23
|
+
}> & {
|
|
24
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
25
|
+
[x: string]: never;
|
|
26
|
+
}, "superintendent", ((import("toolcraft").Group<{
|
|
27
|
+
[x: string]: never;
|
|
28
|
+
}> & {
|
|
29
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
30
|
+
[x: string]: never;
|
|
31
|
+
}, "builder", (import("toolcraft").Command<{
|
|
32
|
+
[x: string]: never;
|
|
33
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
34
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
35
|
+
}>, undefined, import("../index.js").BuilderResult> & {
|
|
36
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
37
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
38
|
+
}>, import("../index.js").BuilderResult, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
39
|
+
})[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
40
|
+
}) | (import("toolcraft").Command<{
|
|
41
|
+
[x: string]: never;
|
|
42
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
43
|
+
readonly agent: import("toolcraft-schema").StringSchema;
|
|
44
|
+
readonly scope: import("toolcraft-schema").EnumSchema<readonly ["local", "global"]>;
|
|
45
|
+
}>, undefined, {
|
|
46
|
+
agent: string;
|
|
47
|
+
scope: import("@poe-code/agent-skill-config").SkillScope;
|
|
48
|
+
skillPath: string;
|
|
49
|
+
planDirectory: string;
|
|
50
|
+
planDirectoryCreated: boolean;
|
|
51
|
+
}> & {
|
|
52
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"install", import("toolcraft-schema").ObjectSchema<{
|
|
53
|
+
readonly agent: import("toolcraft-schema").StringSchema;
|
|
54
|
+
readonly scope: import("toolcraft-schema").EnumSchema<readonly ["local", "global"]>;
|
|
55
|
+
}>, {
|
|
56
|
+
agent: string;
|
|
57
|
+
scope: import("@poe-code/agent-skill-config").SkillScope;
|
|
58
|
+
skillPath: string;
|
|
59
|
+
planDirectory: string;
|
|
60
|
+
planDirectoryCreated: boolean;
|
|
61
|
+
}, ("cli" | "sdk")[], undefined>;
|
|
62
|
+
}) | (import("toolcraft").Group<{
|
|
63
|
+
[x: string]: never;
|
|
64
|
+
}> & {
|
|
65
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
66
|
+
[x: string]: never;
|
|
67
|
+
}, "inspector", ((import("toolcraft").Command<{
|
|
68
|
+
[x: string]: never;
|
|
69
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
70
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
71
|
+
}>, undefined, {
|
|
72
|
+
name: string;
|
|
73
|
+
agent: string;
|
|
74
|
+
mode: string | undefined;
|
|
75
|
+
}[]> & {
|
|
76
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"list", import("toolcraft-schema").ObjectSchema<{
|
|
77
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
78
|
+
}>, {
|
|
79
|
+
name: string;
|
|
80
|
+
agent: string;
|
|
81
|
+
mode: string | undefined;
|
|
82
|
+
}[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
83
|
+
}) | (import("toolcraft").Command<{
|
|
84
|
+
[x: string]: never;
|
|
85
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
86
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
87
|
+
readonly name: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
88
|
+
}>, undefined, import("../index.js").InspectorResult[]> & {
|
|
89
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
90
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
91
|
+
readonly name: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
92
|
+
}>, import("../index.js").InspectorResult[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
93
|
+
}))[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
94
|
+
}) | (import("toolcraft").Command<{
|
|
95
|
+
[x: string]: never;
|
|
96
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
97
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
98
|
+
readonly reason: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
99
|
+
}>, undefined, {
|
|
100
|
+
path: string;
|
|
101
|
+
state: "completed";
|
|
102
|
+
reason: string | undefined;
|
|
103
|
+
}> & {
|
|
104
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"complete", import("toolcraft-schema").ObjectSchema<{
|
|
105
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
106
|
+
readonly reason: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
107
|
+
}>, {
|
|
108
|
+
path: string;
|
|
109
|
+
state: "completed";
|
|
110
|
+
reason: string | undefined;
|
|
111
|
+
}, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
112
|
+
}) | (import("toolcraft").Command<{
|
|
113
|
+
[x: string]: never;
|
|
114
|
+
}, import("toolcraft-schema").ObjectSchema<{}>, undefined, {
|
|
115
|
+
planDirectory: string;
|
|
116
|
+
}> & {
|
|
117
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"plan-path", import("toolcraft-schema").ObjectSchema<{}>, {
|
|
118
|
+
planDirectory: string;
|
|
119
|
+
}, ("cli" | "sdk")[], undefined>;
|
|
120
|
+
}) | (import("toolcraft").Command<{
|
|
121
|
+
[x: string]: never;
|
|
122
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
123
|
+
readonly doc: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
124
|
+
readonly agent: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
125
|
+
readonly tui: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
126
|
+
}>, undefined, import("./run.js").SuperintendentRunCommandResult> & {
|
|
127
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
128
|
+
readonly doc: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
129
|
+
readonly agent: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
130
|
+
readonly tui: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
131
|
+
}>, import("./run.js").SuperintendentRunCommandResult, ("cli" | "sdk")[], undefined>;
|
|
132
|
+
}) | (import("toolcraft").Command<{
|
|
133
|
+
[x: string]: never;
|
|
134
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
135
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
136
|
+
}>, undefined, ValidationResult> & {
|
|
137
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"validate", import("toolcraft-schema").ObjectSchema<{
|
|
138
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
139
|
+
}>, ValidationResult, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
140
|
+
}))[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
141
|
+
};
|
|
142
|
+
export type SuperintendentMcpGroupRunners = RunMcpCommandRunners & BuilderGroupRunners & InspectorGroupRunners;
|
|
143
|
+
export declare function createSuperintendentMcpGroup(runners?: SuperintendentMcpGroupRunners): import("toolcraft").Group<{
|
|
144
|
+
[x: string]: never;
|
|
145
|
+
}> & {
|
|
146
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
147
|
+
[x: string]: never;
|
|
148
|
+
}, "superintendent", ((import("toolcraft").Group<{
|
|
149
|
+
[x: string]: never;
|
|
150
|
+
}> & {
|
|
151
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
152
|
+
[x: string]: never;
|
|
153
|
+
}, "builder", (import("toolcraft").Command<{
|
|
154
|
+
[x: string]: never;
|
|
155
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
156
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
157
|
+
}>, undefined, import("../index.js").BuilderResult> & {
|
|
158
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
159
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
160
|
+
}>, import("../index.js").BuilderResult, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
161
|
+
})[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
162
|
+
}) | (import("toolcraft").Group<{
|
|
163
|
+
[x: string]: never;
|
|
164
|
+
}> & {
|
|
165
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
166
|
+
[x: string]: never;
|
|
167
|
+
}, "inspector", ((import("toolcraft").Command<{
|
|
168
|
+
[x: string]: never;
|
|
169
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
170
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
171
|
+
}>, undefined, {
|
|
172
|
+
name: string;
|
|
173
|
+
agent: string;
|
|
174
|
+
mode: string | undefined;
|
|
175
|
+
}[]> & {
|
|
176
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"list", import("toolcraft-schema").ObjectSchema<{
|
|
177
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
178
|
+
}>, {
|
|
179
|
+
name: string;
|
|
180
|
+
agent: string;
|
|
181
|
+
mode: string | undefined;
|
|
182
|
+
}[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
183
|
+
}) | (import("toolcraft").Command<{
|
|
184
|
+
[x: string]: never;
|
|
185
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
186
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
187
|
+
readonly name: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
188
|
+
}>, undefined, import("../index.js").InspectorResult[]> & {
|
|
189
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
190
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
191
|
+
readonly name: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
192
|
+
}>, import("../index.js").InspectorResult[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
193
|
+
}))[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
194
|
+
}) | (import("toolcraft").Command<{
|
|
195
|
+
[x: string]: never;
|
|
196
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
197
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
198
|
+
readonly reason: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
199
|
+
}>, undefined, {
|
|
200
|
+
path: string;
|
|
201
|
+
state: "completed";
|
|
202
|
+
reason: string | undefined;
|
|
203
|
+
}> & {
|
|
204
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"complete", import("toolcraft-schema").ObjectSchema<{
|
|
205
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
206
|
+
readonly reason: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
207
|
+
}>, {
|
|
208
|
+
path: string;
|
|
209
|
+
state: "completed";
|
|
210
|
+
reason: string | undefined;
|
|
211
|
+
}, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
212
|
+
}) | (import("toolcraft").Command<{
|
|
213
|
+
[x: string]: never;
|
|
214
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
215
|
+
readonly doc: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
216
|
+
readonly agent: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
217
|
+
readonly tui: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
218
|
+
}>, undefined, import("./run.js").SuperintendentRunCommandResult> & {
|
|
219
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
220
|
+
readonly doc: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
221
|
+
readonly agent: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
222
|
+
readonly tui: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
223
|
+
}>, import("./run.js").SuperintendentRunCommandResult, "mcp"[], undefined>;
|
|
224
|
+
}) | (import("toolcraft").Command<{
|
|
225
|
+
[x: string]: never;
|
|
226
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
227
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
228
|
+
}>, undefined, ValidationResult> & {
|
|
229
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"validate", import("toolcraft-schema").ObjectSchema<{
|
|
230
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
231
|
+
}>, ValidationResult, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
232
|
+
}))[], "mcp"[], undefined>;
|
|
233
|
+
};
|
|
234
|
+
export declare const superintendentMcpGroup: import("toolcraft").Group<{
|
|
235
|
+
[x: string]: never;
|
|
236
|
+
}> & {
|
|
237
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
238
|
+
[x: string]: never;
|
|
239
|
+
}, "superintendent", ((import("toolcraft").Group<{
|
|
240
|
+
[x: string]: never;
|
|
241
|
+
}> & {
|
|
242
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
243
|
+
[x: string]: never;
|
|
244
|
+
}, "builder", (import("toolcraft").Command<{
|
|
245
|
+
[x: string]: never;
|
|
246
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
247
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
248
|
+
}>, undefined, import("../index.js").BuilderResult> & {
|
|
249
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
250
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
251
|
+
}>, import("../index.js").BuilderResult, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
252
|
+
})[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
253
|
+
}) | (import("toolcraft").Group<{
|
|
254
|
+
[x: string]: never;
|
|
255
|
+
}> & {
|
|
256
|
+
readonly __agentKitGroupTypeInfo: import("toolcraft").GroupTypeInfo<{
|
|
257
|
+
[x: string]: never;
|
|
258
|
+
}, "inspector", ((import("toolcraft").Command<{
|
|
259
|
+
[x: string]: never;
|
|
260
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
261
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
262
|
+
}>, undefined, {
|
|
263
|
+
name: string;
|
|
264
|
+
agent: string;
|
|
265
|
+
mode: string | undefined;
|
|
266
|
+
}[]> & {
|
|
267
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"list", import("toolcraft-schema").ObjectSchema<{
|
|
268
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
269
|
+
}>, {
|
|
270
|
+
name: string;
|
|
271
|
+
agent: string;
|
|
272
|
+
mode: string | undefined;
|
|
273
|
+
}[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
274
|
+
}) | (import("toolcraft").Command<{
|
|
275
|
+
[x: string]: never;
|
|
276
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
277
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
278
|
+
readonly name: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
279
|
+
}>, undefined, import("../index.js").InspectorResult[]> & {
|
|
280
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
281
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
282
|
+
readonly name: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
283
|
+
}>, import("../index.js").InspectorResult[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
284
|
+
}))[], ("mcp" | "cli" | "sdk")[], undefined>;
|
|
285
|
+
}) | (import("toolcraft").Command<{
|
|
286
|
+
[x: string]: never;
|
|
287
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
288
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
289
|
+
readonly reason: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
290
|
+
}>, undefined, {
|
|
291
|
+
path: string;
|
|
292
|
+
state: "completed";
|
|
293
|
+
reason: string | undefined;
|
|
294
|
+
}> & {
|
|
295
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"complete", import("toolcraft-schema").ObjectSchema<{
|
|
296
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
297
|
+
readonly reason: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
298
|
+
}>, {
|
|
299
|
+
path: string;
|
|
300
|
+
state: "completed";
|
|
301
|
+
reason: string | undefined;
|
|
302
|
+
}, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
303
|
+
}) | (import("toolcraft").Command<{
|
|
304
|
+
[x: string]: never;
|
|
305
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
306
|
+
readonly doc: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
307
|
+
readonly agent: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
308
|
+
readonly tui: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
309
|
+
}>, undefined, import("./run.js").SuperintendentRunCommandResult> & {
|
|
310
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"run", import("toolcraft-schema").ObjectSchema<{
|
|
311
|
+
readonly doc: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
312
|
+
readonly agent: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").StringSchema>;
|
|
313
|
+
readonly tui: import("toolcraft-schema").OptionalSchema<import("toolcraft-schema").BooleanSchema>;
|
|
314
|
+
}>, import("./run.js").SuperintendentRunCommandResult, "mcp"[], undefined>;
|
|
315
|
+
}) | (import("toolcraft").Command<{
|
|
316
|
+
[x: string]: never;
|
|
317
|
+
}, import("toolcraft-schema").ObjectSchema<{
|
|
318
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
319
|
+
}>, undefined, ValidationResult> & {
|
|
320
|
+
readonly __agentKitCommandTypeInfo: import("toolcraft").CommandTypeInfo<"validate", import("toolcraft-schema").ObjectSchema<{
|
|
321
|
+
readonly path: import("toolcraft-schema").StringSchema;
|
|
322
|
+
}>, ValidationResult, ("mcp" | "cli" | "sdk")[], undefined>;
|
|
323
|
+
}))[], "mcp"[], undefined>;
|
|
324
|
+
};
|
|
325
|
+
export declare function validateSuperintendentDocument(filePath: string, content: string): ValidationResult;
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { S, UserError, defineCommand, defineGroup } from "toolcraft";
|
|
2
|
+
import { text } from "@poe-code/design-system";
|
|
3
|
+
import { parseSuperintendentDoc } from "../document/parse.js";
|
|
4
|
+
import { hasTaskBoard, parseTaskBoard } from "../document/tasks.js";
|
|
5
|
+
import { builderGroup, createBuilderGroup } from "./builder-group.js";
|
|
6
|
+
import { completeCommand } from "./complete.js";
|
|
7
|
+
import { installCommand } from "./install.js";
|
|
8
|
+
import { inspectorGroup, createInspectorGroup } from "./inspector-group.js";
|
|
9
|
+
import { planPathCommand } from "./plan-path.js";
|
|
10
|
+
import { runCommand, createRunMcpCommand } from "./run.js";
|
|
11
|
+
const validateParams = S.Object({
|
|
12
|
+
path: S.String({ description: "Path to the superintendent markdown document" })
|
|
13
|
+
});
|
|
14
|
+
export const validateCommand = defineCommand({
|
|
15
|
+
name: "validate",
|
|
16
|
+
description: "Validate a superintendent markdown document.",
|
|
17
|
+
positional: ["path"],
|
|
18
|
+
params: validateParams,
|
|
19
|
+
scope: ["cli", "mcp", "sdk"],
|
|
20
|
+
handler: async ({ params, fs }) => {
|
|
21
|
+
const content = await readDocument(params.path, fs);
|
|
22
|
+
return validateSuperintendentDocument(params.path, content);
|
|
23
|
+
},
|
|
24
|
+
render: {
|
|
25
|
+
rich: (result, { logger }) => {
|
|
26
|
+
const errors = result.problems.filter((problem) => problem.level === "error");
|
|
27
|
+
const warnings = result.problems.filter((problem) => problem.level === "warning");
|
|
28
|
+
if (result.valid) {
|
|
29
|
+
logger.success("Superintendent document is valid.");
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
logger.error(`Superintendent document is invalid (${errors.length} error${errors.length === 1 ? "" : "s"}).`);
|
|
33
|
+
}
|
|
34
|
+
if (warnings.length > 0) {
|
|
35
|
+
logger.warn(`${warnings.length} warning${warnings.length === 1 ? "" : "s"} found.`);
|
|
36
|
+
}
|
|
37
|
+
if (result.problems.length === 0) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
logger.message(text.section("Problems:"));
|
|
41
|
+
for (const problem of result.problems) {
|
|
42
|
+
logger.message(`- ${capitalize(problem.level)}: ${problem.message}`);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
markdown: (result) => renderValidationMarkdown(result),
|
|
46
|
+
json: (result) => result
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export const superintendentGroup = defineGroup({
|
|
50
|
+
name: "superintendent",
|
|
51
|
+
description: "Superintendent workflow commands.",
|
|
52
|
+
scope: ["cli", "mcp", "sdk"],
|
|
53
|
+
children: [runCommand, validateCommand, completeCommand, installCommand, planPathCommand, builderGroup, inspectorGroup]
|
|
54
|
+
});
|
|
55
|
+
export function createSuperintendentMcpGroup(runners) {
|
|
56
|
+
return defineGroup({
|
|
57
|
+
name: "superintendent",
|
|
58
|
+
description: "Superintendent workflow commands.",
|
|
59
|
+
scope: ["mcp"],
|
|
60
|
+
children: [
|
|
61
|
+
createRunMcpCommand(runners),
|
|
62
|
+
validateCommand,
|
|
63
|
+
completeCommand,
|
|
64
|
+
createBuilderGroup(runners),
|
|
65
|
+
createInspectorGroup(runners)
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
export const superintendentMcpGroup = createSuperintendentMcpGroup();
|
|
70
|
+
export function validateSuperintendentDocument(filePath, content) {
|
|
71
|
+
const problems = [];
|
|
72
|
+
let document;
|
|
73
|
+
try {
|
|
74
|
+
document = parseSuperintendentDoc(filePath, content);
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
problems.push({
|
|
78
|
+
level: "error",
|
|
79
|
+
message: readErrorMessage(error)
|
|
80
|
+
});
|
|
81
|
+
return toValidationResult(problems);
|
|
82
|
+
}
|
|
83
|
+
if (!hasTaskBoard(document.body)) {
|
|
84
|
+
problems.push({
|
|
85
|
+
level: "error",
|
|
86
|
+
message: 'Missing "## Task Board" section'
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
try {
|
|
91
|
+
const taskBoard = parseTaskBoard(document.body);
|
|
92
|
+
if (taskBoard.tasks.length === 0) {
|
|
93
|
+
problems.push({
|
|
94
|
+
level: "error",
|
|
95
|
+
message: "Task Board must contain markdown checkbox items"
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
problems.push({
|
|
101
|
+
level: "error",
|
|
102
|
+
message: readErrorMessage(error)
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
problems.push(...validatePromptVariables(document));
|
|
107
|
+
return toValidationResult(problems);
|
|
108
|
+
}
|
|
109
|
+
async function readDocument(filePath, fs) {
|
|
110
|
+
try {
|
|
111
|
+
return await fs.readFile(filePath, "utf8");
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
if (hasCode(error, "ENOENT")) {
|
|
115
|
+
throw new UserError(`Superintendent document not found: ${filePath}`);
|
|
116
|
+
}
|
|
117
|
+
throw error;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function validatePromptVariables(document) {
|
|
121
|
+
const allowedVariables = new Set([
|
|
122
|
+
"plan.path",
|
|
123
|
+
"builder.summary",
|
|
124
|
+
"builder.log",
|
|
125
|
+
"builder.log_path",
|
|
126
|
+
"superintendent.summary",
|
|
127
|
+
"superintendent.log_path",
|
|
128
|
+
"owner.feedback",
|
|
129
|
+
"owner.log_path"
|
|
130
|
+
]);
|
|
131
|
+
for (const inspectorName of Object.keys(document.frontmatter.inspectors ?? {})) {
|
|
132
|
+
allowedVariables.add(`inspectors.${inspectorName}`);
|
|
133
|
+
allowedVariables.add(`inspector_logs.${inspectorName}`);
|
|
134
|
+
}
|
|
135
|
+
const problems = [];
|
|
136
|
+
for (const prompt of collectPrompts(document)) {
|
|
137
|
+
const seenUnknownVariables = new Set();
|
|
138
|
+
for (const variableName of scanPromptVariables(prompt.value)) {
|
|
139
|
+
if (allowedVariables.has(variableName) || seenUnknownVariables.has(variableName)) {
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
seenUnknownVariables.add(variableName);
|
|
143
|
+
problems.push({
|
|
144
|
+
level: "warning",
|
|
145
|
+
message: `Unknown prompt variable "${variableName}" in ${prompt.path}`
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return problems;
|
|
150
|
+
}
|
|
151
|
+
function collectPrompts(document) {
|
|
152
|
+
const prompts = [
|
|
153
|
+
{ path: "builder.prompt", value: document.frontmatter.builder.prompt },
|
|
154
|
+
{
|
|
155
|
+
path: "superintendent.prompt",
|
|
156
|
+
value: document.frontmatter.superintendent.prompt
|
|
157
|
+
},
|
|
158
|
+
{ path: "owner.prompt", value: document.frontmatter.owner.prompt }
|
|
159
|
+
];
|
|
160
|
+
for (const [name, inspector] of Object.entries(document.frontmatter.inspectors ?? {})) {
|
|
161
|
+
prompts.push({
|
|
162
|
+
path: `inspectors.${name}.prompt`,
|
|
163
|
+
value: inspector.prompt
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
return prompts;
|
|
167
|
+
}
|
|
168
|
+
function scanPromptVariables(prompt) {
|
|
169
|
+
const variables = [];
|
|
170
|
+
let index = 0;
|
|
171
|
+
while (index < prompt.length) {
|
|
172
|
+
const opening = prompt.indexOf("{{", index);
|
|
173
|
+
if (opening === -1) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
const triple = prompt[opening + 2] === "{";
|
|
177
|
+
const closing = prompt.indexOf(triple ? "}}}" : "}}", opening + (triple ? 3 : 2));
|
|
178
|
+
if (closing === -1) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
const rawToken = prompt.slice(opening + (triple ? 3 : 2), closing);
|
|
182
|
+
const variableName = normalizeMustacheToken(rawToken);
|
|
183
|
+
if (variableName !== undefined) {
|
|
184
|
+
variables.push(variableName);
|
|
185
|
+
}
|
|
186
|
+
index = closing + (triple ? 3 : 2);
|
|
187
|
+
}
|
|
188
|
+
return variables;
|
|
189
|
+
}
|
|
190
|
+
function normalizeMustacheToken(token) {
|
|
191
|
+
const trimmed = token.trim();
|
|
192
|
+
if (trimmed.length === 0) {
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
const prefix = trimmed[0];
|
|
196
|
+
if (prefix === undefined ||
|
|
197
|
+
prefix === "!" ||
|
|
198
|
+
prefix === "#" ||
|
|
199
|
+
prefix === "/" ||
|
|
200
|
+
prefix === ">" ||
|
|
201
|
+
prefix === "^" ||
|
|
202
|
+
prefix === "&") {
|
|
203
|
+
return undefined;
|
|
204
|
+
}
|
|
205
|
+
return trimmed;
|
|
206
|
+
}
|
|
207
|
+
function toValidationResult(problems) {
|
|
208
|
+
return {
|
|
209
|
+
valid: !problems.some((problem) => problem.level === "error"),
|
|
210
|
+
problems
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function renderValidationMarkdown(result) {
|
|
214
|
+
const lines = [
|
|
215
|
+
"## Validation result",
|
|
216
|
+
"",
|
|
217
|
+
`- Status: ${result.valid ? "valid" : "invalid"}`,
|
|
218
|
+
`- Problems: ${result.problems.length}`
|
|
219
|
+
];
|
|
220
|
+
if (result.problems.length === 0) {
|
|
221
|
+
return lines.join("\n");
|
|
222
|
+
}
|
|
223
|
+
lines.push("", "### Problems", "");
|
|
224
|
+
for (const problem of result.problems) {
|
|
225
|
+
lines.push(`- **${capitalize(problem.level)}:** ${problem.message}`);
|
|
226
|
+
}
|
|
227
|
+
return lines.join("\n");
|
|
228
|
+
}
|
|
229
|
+
function readErrorMessage(error) {
|
|
230
|
+
return error instanceof Error ? error.message : String(error);
|
|
231
|
+
}
|
|
232
|
+
function hasCode(error, code) {
|
|
233
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === code;
|
|
234
|
+
}
|
|
235
|
+
function capitalize(value) {
|
|
236
|
+
const firstCharacter = value[0] ?? "";
|
|
237
|
+
return `${firstCharacter.toUpperCase()}${value.slice(1)}`;
|
|
238
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const superintendentConfigScope: import("@poe-code/poe-code-config").ScopeDefinition<{
|
|
2
|
+
readonly tui: {
|
|
3
|
+
readonly type: "boolean";
|
|
4
|
+
readonly default: false;
|
|
5
|
+
readonly env: "POE_SUPERINTENDENT_TUI";
|
|
6
|
+
readonly doc: "Enable the Superintendent dashboard by default for terminal TTY runs";
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { defineScope } from "@poe-code/poe-code-config";
|
|
2
|
+
export const superintendentConfigScope = defineScope("superintendent", {
|
|
3
|
+
tui: {
|
|
4
|
+
type: "boolean",
|
|
5
|
+
default: false,
|
|
6
|
+
env: "POE_SUPERINTENDENT_TUI",
|
|
7
|
+
doc: "Enable the Superintendent dashboard by default for terminal TTY runs"
|
|
8
|
+
}
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isDirectExecution(moduleUrl: string, argv: string[]): Promise<boolean>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { realpath } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
export async function isDirectExecution(moduleUrl, argv) {
|
|
5
|
+
const entryPoint = argv[1];
|
|
6
|
+
if (typeof entryPoint !== "string" || entryPoint.length === 0) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
const modulePath = fileURLToPath(moduleUrl);
|
|
11
|
+
const [resolvedEntryPoint, resolvedModulePath] = await Promise.all([
|
|
12
|
+
realpath(path.resolve(entryPoint)),
|
|
13
|
+
realpath(modulePath)
|
|
14
|
+
]);
|
|
15
|
+
return resolvedEntryPoint === resolvedModulePath;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export type { TaskBoard, TaskItem } from "./tasks.js";
|
|
2
|
+
type JsonSchemaType = "string" | "number" | "integer" | "boolean" | "array" | "object" | "null";
|
|
3
|
+
type JsonSchema = {
|
|
4
|
+
$schema?: string;
|
|
5
|
+
$id?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
type?: JsonSchemaType | readonly JsonSchemaType[];
|
|
9
|
+
const?: unknown;
|
|
10
|
+
default?: unknown;
|
|
11
|
+
enum?: readonly unknown[];
|
|
12
|
+
minimum?: number;
|
|
13
|
+
exclusiveMinimum?: number;
|
|
14
|
+
minLength?: number;
|
|
15
|
+
minItems?: number;
|
|
16
|
+
items?: JsonSchema;
|
|
17
|
+
properties?: Record<string, JsonSchema>;
|
|
18
|
+
required?: readonly string[];
|
|
19
|
+
additionalProperties?: boolean | JsonSchema;
|
|
20
|
+
};
|
|
21
|
+
export type SuperintendentDoc = {
|
|
22
|
+
frontmatter: SuperintendentFrontmatter;
|
|
23
|
+
body: string;
|
|
24
|
+
filePath: string;
|
|
25
|
+
};
|
|
26
|
+
export type SuperintendentFrontmatter = {
|
|
27
|
+
kind: "superintendent";
|
|
28
|
+
version: number;
|
|
29
|
+
mcp?: Record<string, McpConfig>;
|
|
30
|
+
builder: AgentRoleConfig;
|
|
31
|
+
inspectors?: Record<string, AgentRoleConfig>;
|
|
32
|
+
superintendent: AgentRoleConfig;
|
|
33
|
+
owner: AgentRoleConfig;
|
|
34
|
+
max_rounds?: number;
|
|
35
|
+
status: StatusBlock;
|
|
36
|
+
};
|
|
37
|
+
export type AgentRoleConfig = {
|
|
38
|
+
agent: string;
|
|
39
|
+
mode?: string;
|
|
40
|
+
cwd?: string;
|
|
41
|
+
mcp?: Record<string, McpConfig>;
|
|
42
|
+
prompt: string;
|
|
43
|
+
};
|
|
44
|
+
export type McpConfig = {
|
|
45
|
+
command: string;
|
|
46
|
+
args?: string[];
|
|
47
|
+
timeout?: number;
|
|
48
|
+
};
|
|
49
|
+
export type StatusBlock = {
|
|
50
|
+
state: "in_progress" | "review" | "completed";
|
|
51
|
+
round: number;
|
|
52
|
+
review_turn: number;
|
|
53
|
+
};
|
|
54
|
+
export declare const superintendentDocumentSchemaId = "https://poe-platform.github.io/poe-code/schemas/plans/superintendent.schema.json";
|
|
55
|
+
export declare const superintendentBaseDocumentSchemaId = "https://poe-platform.github.io/poe-code/schemas/plans/superintendent-base.schema.json";
|
|
56
|
+
export declare const superintendentDocumentSchema: JsonSchema;
|
|
57
|
+
export declare const superintendentBaseDocumentSchema: JsonSchema;
|
|
58
|
+
export declare function parseSuperintendentDoc(filePath: string, content: string): SuperintendentDoc;
|
|
59
|
+
export declare function readExplicitBuilderAgent(filePath: string, content: string): string | undefined;
|