opencode-usage-coach 0.11.1 → 0.11.2
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/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1801,6 +1801,10 @@ Then: harness_done(). Follow the [usage-coach NEXT] directive each tool returns.
|
|
|
1801
1801
|
model: tool.schema.string().optional()
|
|
1802
1802
|
},
|
|
1803
1803
|
async execute(args, ctx) {
|
|
1804
|
+
const VALID_STATUSES = ["generating", "grading", "revising", "completed", "failed", "timed_out", "halted_quota"];
|
|
1805
|
+
if (!args.status || !VALID_STATUSES.includes(args.status)) {
|
|
1806
|
+
return `ERROR: task_update status must be one of: ${VALID_STATUSES.join(", ")}. Got: "${args.status}". Call task_update with a valid status.`;
|
|
1807
|
+
}
|
|
1804
1808
|
const cfg = readHarnessCfg(ctx.directory);
|
|
1805
1809
|
const h = readHarness(ctx.sessionID) ?? { name: "batch", total: 0, current: 0, tasks: [], usage: {}, active: true };
|
|
1806
1810
|
h.tasks = h.tasks.filter((x) => x.id !== args.id);
|
package/package.json
CHANGED