@oisin-ee/pi-todo 0.10.0 → 0.10.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/package.json +1 -1
- package/src/gate.ts +1 -0
- package/src/generated/todo_core.d.ts +4 -0
- package/src/generated/todo_core_bg.wasm +0 -0
- package/src/guidance.ts +1 -1
- package/src/index.ts +1 -1
package/package.json
CHANGED
package/src/gate.ts
CHANGED
|
Binary file
|
package/src/guidance.ts
CHANGED
|
@@ -7,7 +7,7 @@ const workUnitGuidance =
|
|
|
7
7
|
"Supply deliverable, repository-relative scope, acceptance, prerequisite IDs, and self or worker/profile assignment. " +
|
|
8
8
|
"Use local keys for new prerequisites and the optional start selector for atomic creation and activation. " +
|
|
9
9
|
"Use returned IDs after creation. Update drafts before start; only one complete self leaf executes locally. " +
|
|
10
|
-
"
|
|
10
|
+
"The lead closes any open leaf with done and a short note, or with drop. " +
|
|
11
11
|
"Keep content a short headline (aim under 60 characters, imperative, no trailing detail); " +
|
|
12
12
|
"put context, approach, or acceptance detail in the optional description (one or two sentences).";
|
|
13
13
|
|
package/src/index.ts
CHANGED
|
@@ -39,7 +39,7 @@ export default function piTodo(pi: TodoAPI): void {
|
|
|
39
39
|
provider.register();
|
|
40
40
|
registerGate(pi, provider);
|
|
41
41
|
pi.registerTool({
|
|
42
|
-
description: `Keep branch-local outcomes and executable contracts. Use returned IDs, not labels. Draft creation is pending. Start one complete self-assigned leaf; workers require their assigned profile through the executor. Update replaces pending contract fields and may set or clear an open item's description. Done
|
|
42
|
+
description: `Keep branch-local outcomes and executable contracts. Use returned IDs, not labels. Draft creation is pending. Start one complete self-assigned leaf; workers require their assigned profile through the executor. Update replaces pending contract fields and may set or clear an open item's description. Done takes a short note. Parents require explicit integration review after children close. ${workUnitGuidance}`,
|
|
43
43
|
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
|
44
44
|
const result = provider.run(params, ctx);
|
|
45
45
|
work.publish(ctx);
|