pi-extensible-workflows 0.3.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.
Files changed (47) hide show
  1. package/README.md +72 -0
  2. package/dist/src/agent-execution.d.ts +213 -0
  3. package/dist/src/agent-execution.js +537 -0
  4. package/dist/src/ambient-workflow-evals.d.ts +112 -0
  5. package/dist/src/ambient-workflow-evals.js +375 -0
  6. package/dist/src/cli.d.ts +6 -0
  7. package/dist/src/cli.js +26 -0
  8. package/dist/src/doctor.d.ts +59 -0
  9. package/dist/src/doctor.js +269 -0
  10. package/dist/src/eval-capture-extension.d.ts +5 -0
  11. package/dist/src/eval-capture-extension.js +48 -0
  12. package/dist/src/index.d.ts +362 -0
  13. package/dist/src/index.js +2839 -0
  14. package/dist/src/persistence.d.ts +90 -0
  15. package/dist/src/persistence.js +530 -0
  16. package/dist/src/session-inspector.d.ts +59 -0
  17. package/dist/src/session-inspector.js +396 -0
  18. package/dist/src/workflow-evals-child.d.ts +1 -0
  19. package/dist/src/workflow-evals-child.js +13 -0
  20. package/dist/src/workflow-evals.d.ts +290 -0
  21. package/dist/src/workflow-evals.js +1221 -0
  22. package/evals/cases/custom-model-read.yaml +15 -0
  23. package/evals/cases/direct-answer.yaml +6 -0
  24. package/evals/cases/mixed-parallel-pipeline.yaml +18 -0
  25. package/evals/cases/output-schema.yaml +22 -0
  26. package/evals/cases/parallel.yaml +15 -0
  27. package/evals/cases/pipeline.yaml +10 -0
  28. package/evals/cases/ready-for-agent-parallel-merge.yaml +32 -0
  29. package/evals/cases/required-role.yaml +14 -0
  30. package/evals/cases/role-model-mixed.yaml +18 -0
  31. package/evals/cases/two-agents.yaml +10 -0
  32. package/package.json +65 -0
  33. package/skills/pi-extensible-workflows/SKILL.md +109 -0
  34. package/src/agent-execution.ts +529 -0
  35. package/src/ambient-workflow-evals.ts +452 -0
  36. package/src/cli.ts +23 -0
  37. package/src/doctor.ts +285 -0
  38. package/src/eval-capture-extension.ts +54 -0
  39. package/src/index.ts +2519 -0
  40. package/src/persistence.ts +470 -0
  41. package/src/session-inspector.ts +370 -0
  42. package/src/workflow-evals-child.ts +15 -0
  43. package/src/workflow-evals.ts +876 -0
  44. package/test/fixtures/ready-for-agent-tasks.md +9 -0
  45. package/test/fixtures/workflow-eval-roles/developer.md +18 -0
  46. package/test/fixtures/workflow-eval-roles/reviewer.md +18 -0
  47. package/test/fixtures/workflow-eval-roles/scout.md +17 -0
@@ -0,0 +1,9 @@
1
+ # Ready-for-agent tasks
2
+
3
+ ## Issue 101: Document deterministic test behavior
4
+
5
+ Update the development verification documentation to state that `npm test` makes no model calls.
6
+
7
+ ## Issue 102: Cover canonical worktree scope expectations
8
+
9
+ Add focused coverage proving that prompt-to-workflow evaluation policies can require separate named `withWorktree` scopes.
@@ -0,0 +1,18 @@
1
+ ---
2
+ model: openai-codex/gpt-5.6-luna
3
+ thinking: xhigh
4
+ tools: [read, grep, find, bash]
5
+ description: Developer focused agent
6
+ ---
7
+
8
+ # Developer Role
9
+
10
+ Act as a senior developer. Apply the requested change with the smallest working diff.
11
+
12
+ Rules:
13
+ - Read the relevant flow before editing.
14
+ - Reuse existing project patterns before adding new helpers or dependencies.
15
+ - Keep changes surgical and self-contained.
16
+ - Do not broaden scope beyond the prompt.
17
+ - Run the smallest relevant verification command and report it.
18
+ - If blocked, state the blocker and the exact command or file that proves it.
@@ -0,0 +1,18 @@
1
+ ---
2
+ model: anthropic/claude-fable-5
3
+ thinking: medium
4
+ tools: [read, grep, find, bash]
5
+ description: Reviewer. Use when we need to review decisions or code changes
6
+ ---
7
+
8
+ # Reviewer
9
+
10
+ Review agent. Inspect a plan, diff, or implementation for correctness issues.
11
+
12
+ Rules:
13
+ - Do not edit files.
14
+ - Focus on bugs, missed callers, broken assumptions, regressions, security/data-loss risk, and missing verification.
15
+ - Ignore style unless it hides a real defect.
16
+ - Cite exact files and lines when possible.
17
+ - Return findings ranked by severity.
18
+ - If no real issue is found, say so directly.
@@ -0,0 +1,17 @@
1
+ ---
2
+ model: openai-codex/gpt-5.6-luna
3
+ thinking: medium
4
+ tools: [read, grep, find, bash]
5
+ description: Scouting agent. Use when we need to gather info to solve a task
6
+ ---
7
+
8
+ # Scout
9
+
10
+ Read-only discovery agent. Find the files, symbols, call paths, and existing patterns needed for the task.
11
+
12
+ Rules:
13
+ - Do not edit files.
14
+ - Prefer `grep`, `find`, `ls`, and targeted `read` calls.
15
+ - Return exact paths and line references if applicable.
16
+ - Report what is known, what is uncertain, and the smallest next step.
17
+ - Keep output concise; no implementation plan.