agent-lyceum 0.49.1 → 0.50.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/dist/cli.js +2 -1
- package/dist/run-session.d.ts +2 -0
- package/dist/run-session.js +1 -0
- package/dist/run-store.d.ts +2 -0
- package/dist/run-store.js +1 -0
- package/dist/status.d.ts +2 -0
- package/dist/status.js +1 -0
- package/package.json +1 -1
- package/web/dist/commands.js +3 -0
- package/web/dist/public/assets/index-C92kC3HN.js +87 -0
- package/web/dist/public/assets/index-DvGpGOU4.css +2 -0
- package/web/dist/public/index.html +2 -2
- package/web/dist/server/brief.js +1 -1
- package/web/dist/public/assets/index-CIhG3w6-.js +0 -86
- package/web/dist/public/assets/index-CRaET7tg.css +0 -2
package/dist/cli.js
CHANGED
|
@@ -285,6 +285,7 @@ program
|
|
|
285
285
|
.option("--task-file <path>", "read the task from a file")
|
|
286
286
|
.option("--agent <name>", "run only this member of the project, alone: it cannot mail teammates or ask you, and its own `done` ends the run")
|
|
287
287
|
.option("--name <name>", "name for this run (default: made from the task)")
|
|
288
|
+
.option("--tidy", "mark this run as a commit tidy (the web console shows a tag on it)")
|
|
288
289
|
.option("--assume-defaults", "when the run stops to ask, use the suggested answer for every question that has one")
|
|
289
290
|
.action(async (task, opts) => {
|
|
290
291
|
try {
|
|
@@ -325,7 +326,7 @@ program
|
|
|
325
326
|
for (const w of lintTaskContent(prepared.content))
|
|
326
327
|
console.error(`warning: task file ${w}`);
|
|
327
328
|
const name = opts.name ?? uniqueName(slugify(taskMessageBody(prepared).subject), taken);
|
|
328
|
-
summary = await runTeam({ project: pr, name, plan, task: prepared, runDir, soloAgent: opts.agent, signal: cancel.signal });
|
|
329
|
+
summary = await runTeam({ project: pr, name, plan, task: prepared, runDir, soloAgent: opts.agent, tidy: opts.tidy, signal: cancel.signal });
|
|
329
330
|
}
|
|
330
331
|
finally {
|
|
331
332
|
cancel.dispose();
|
package/dist/run-session.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export interface RunOptions {
|
|
|
49
49
|
name?: string;
|
|
50
50
|
/** Run only this member of the project, alone (`run --agent`). A resumed run uses the one recorded in its state. */
|
|
51
51
|
soloAgent?: string;
|
|
52
|
+
/** Mark a new run as a commit tidy (`run --tidy`). */
|
|
53
|
+
tidy?: boolean;
|
|
52
54
|
/** The task for a new run; omit when resuming. */
|
|
53
55
|
task?: PreparedTask;
|
|
54
56
|
/** Continue this earlier run (same run dir, sessions and counters) instead of starting a new one. */
|
package/dist/run-session.js
CHANGED
package/dist/run-store.d.ts
CHANGED
|
@@ -187,6 +187,8 @@ export interface RunState {
|
|
|
187
187
|
step_base?: Step[];
|
|
188
188
|
/** Readable name; lets `resume`, `clear` and `status` find the run without its id. Absent on runs from older versions. */
|
|
189
189
|
name?: string;
|
|
190
|
+
/** Set by `run --tidy`: this run only tidies existing commits. The web console marks such runs. */
|
|
191
|
+
tidy?: boolean;
|
|
190
192
|
/** One entry per time a finished run was reopened with a follow-up. */
|
|
191
193
|
reopened?: {
|
|
192
194
|
at: string;
|
package/dist/run-store.js
CHANGED
|
@@ -82,6 +82,7 @@ const WireState = z
|
|
|
82
82
|
cooldowns: z.unknown().transform(lenientCooldowns).optional(),
|
|
83
83
|
step_base: z.array(z.object({ text: z.string(), done: z.boolean() })).optional(),
|
|
84
84
|
name: z.string().optional(),
|
|
85
|
+
tidy: z.boolean().optional(),
|
|
85
86
|
reopened: z.array(z.object({ at: z.string() })).optional(),
|
|
86
87
|
round_floor: nonNeg.optional(),
|
|
87
88
|
instances: z.object({ roles: z.record(z.string(), z.array(z.string()).min(1)) }).optional(),
|
package/dist/status.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ export interface RunReport {
|
|
|
60
60
|
run_id: string;
|
|
61
61
|
/** Absent on runs from older versions. */
|
|
62
62
|
name?: string;
|
|
63
|
+
/** Started with `run --tidy`. */
|
|
64
|
+
tidy?: boolean;
|
|
63
65
|
dir: string;
|
|
64
66
|
/** running: its dispatcher is alive; interrupted: it died mid-run; ended: it stopped (see end_reason). */
|
|
65
67
|
state: "running" | "interrupted" | "ended" | "waiting";
|
package/dist/status.js
CHANGED
|
@@ -231,6 +231,7 @@ export function buildRunReport(run, project, opts = {}) {
|
|
|
231
231
|
const report = {
|
|
232
232
|
run_id: s.run_id,
|
|
233
233
|
name: s.name,
|
|
234
|
+
...(s.tidy ? { tidy: true } : {}),
|
|
234
235
|
dir: run.dir,
|
|
235
236
|
state: s.end_reason === "waiting" ? "waiting" : s.end_reason ? "ended" : live ? "running" : "interrupted",
|
|
236
237
|
live,
|
package/package.json
CHANGED
package/web/dist/commands.js
CHANGED
|
@@ -116,6 +116,7 @@ export const COMMANDS = {
|
|
|
116
116
|
{ name: "task", label: "任務", kind: "textarea", required: true },
|
|
117
117
|
{ name: "name", label: "任務名稱(可留空)", kind: "text", help: "小寫英數與 -,最多 30 字。" },
|
|
118
118
|
{ name: "agent", label: "只交給這一位 agent(可留空)", kind: "text" },
|
|
119
|
+
{ name: "tidy", label: "標記為 tidy(整理 commit 的任務)", kind: "checkbox" },
|
|
119
120
|
{ name: "assumeDefaults", label: "有建議值的問題直接採用,不暫停", kind: "checkbox" },
|
|
120
121
|
],
|
|
121
122
|
mode: always("detached"),
|
|
@@ -129,6 +130,8 @@ export const COMMANDS = {
|
|
|
129
130
|
const agent = text(b, "agent", { re: NAME_RE, what: "agent" });
|
|
130
131
|
if (agent)
|
|
131
132
|
out.push("--agent", agent);
|
|
133
|
+
if (flag(b, "tidy"))
|
|
134
|
+
out.push("--tidy");
|
|
132
135
|
if (flag(b, "assumeDefaults"))
|
|
133
136
|
out.push("--assume-defaults");
|
|
134
137
|
out.push("--", need(text(b, "task", { required: true, what: "任務", max: TEXT_LIMIT })));
|