pi-goal-list-loop-audit 0.19.0 → 0.19.1
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/extensions/loops/goal.ts +2 -5
- package/package.json +1 -1
package/extensions/loops/goal.ts
CHANGED
|
@@ -1701,9 +1701,9 @@ function registerAgentTools(pi: any, ctx: ExtensionContext): void {
|
|
|
1701
1701
|
pi.registerTool(defineTool({
|
|
1702
1702
|
name: "list_add",
|
|
1703
1703
|
label: "Add to queue",
|
|
1704
|
-
description: "Add one or many objectives to the /list list (loop 2). Use when the user asks to queue work — 'add these to my list', 'queue these 10 things', 'put this on the backlog'. Each item becomes an audited goal; per-item 'Done when:' clauses are honored. The first queued item activates automatically when nothing is running.",
|
|
1704
|
+
description: "Add one or many objectives to the /list list (loop 2). Use when the user asks to queue work — 'add these to my list', 'queue these 10 things', 'put this on the backlog'. Each item becomes an audited goal; per-item 'Done when:' clauses are honored. The first queued item activates automatically when nothing is running. The list is UNBOUNDED — hundreds of small items are fine; propose them all.",
|
|
1705
1705
|
parameters: Type.Object({
|
|
1706
|
-
items: Type.Array(Type.String(), { description: "Objectives to enqueue
|
|
1706
|
+
items: Type.Array(Type.String(), { description: "Objectives to enqueue — no count limit; large plans belong in ONE call." }),
|
|
1707
1707
|
}),
|
|
1708
1708
|
async execute(_id, params, _signal, _onUpdate, execCtx) {
|
|
1709
1709
|
const p = params as { items: string[] };
|
|
@@ -1713,9 +1713,6 @@ function registerAgentTools(pi: any, ctx: ExtensionContext): void {
|
|
|
1713
1713
|
if (!Array.isArray(p.items) || p.items.length === 0) {
|
|
1714
1714
|
return { content: [{ type: "text", text: "No items given." }], details: {} };
|
|
1715
1715
|
}
|
|
1716
|
-
if (p.items.length > 100) {
|
|
1717
|
-
return { content: [{ type: "text", text: `Too many items at once (${p.items.length}); max 100 per call — batch larger plans across calls.` }], details: {} };
|
|
1718
|
-
}
|
|
1719
1716
|
const clean = p.items.map((t) => t.trim()).filter((t) => t.length > 0);
|
|
1720
1717
|
const liveCtx = (execCtx as ExtensionContext | undefined) ?? ctx;
|
|
1721
1718
|
const wasIdle = !state.goal || state.goal.status === "complete" || state.goal.status === "aborted";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goal-list-loop-audit",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Goal. Loop. Audit. Done. — a pi-coding-agent extension that supervises long-running work, with isolated auditor on each completion. Beat bamboozling by design: the auditor runs in a fresh session with no extensions, no skills, no editor — only the read tools needed to verify your goal.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dracon",
|