@oisin-ee/pi-todo 0.10.0 → 0.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oisin-ee/pi-todo",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "A todo tool for pi with a Rust core: one active task, state on the session branch.",
5
5
  "keywords": [
6
6
  "pi-extension",
@@ -339,6 +339,10 @@ export interface Unit {
339
339
  */
340
340
  attemptedRevision?: number;
341
341
  imported?: ImportedUnit;
342
+ /**
343
+ * Executions whose binding the owning lead released by closing the unit.
344
+ */
345
+ released?: ExecutionRef[];
342
346
  }
343
347
 
344
348
  /**
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
- "Done requires concrete acceptance evidence; worker exit alone is not acceptance. " +
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 requires acceptance evidence. Parents require explicit integration review after children close. ${workUnitGuidance}`,
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);