wtf-p 0.8.1 → 0.8.3
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/README.md +33 -18
- package/bin/lib/adapter-compiler.js +274 -56
- package/package.json +1 -1
- package/protocol/actions/advance.json +232 -0
- package/protocol/actions/plan-revision.json +8 -3
- package/protocol/actions/verify-work.json +6 -2
- package/protocol/aliases.lock.json +1 -0
- package/protocol/catalog.json +4 -2
- package/protocol/project/README.md +2 -0
- package/protocol/roles/research-synthesizer.md +1 -1
- package/protocol/skills/wtfp-manage-project/SKILL.md +2 -1
- package/protocol/skills/wtfp-manage-project/references/actions.md +13 -1
- package/protocol/skills/wtfp-plan-section/references/actions.md +1 -1
- package/protocol/skills/wtfp-research-literature/references/actions.md +1 -1
- package/protocol/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/protocol/workflows/advance.md +38 -0
- package/protocol/workflows/discuss-section.md +1 -1
- package/protocol/workflows/plan-revision.md +3 -3
- package/protocol/workflows/plan-section.md +1 -1
- package/protocol/workflows/research-gap.md +3 -3
- package/protocol/workflows/review-section.md +2 -2
- package/protocol/workflows/verify-work.md +4 -2
- package/protocol/workflows/write-section.md +2 -2
- package/vendors/antigravity/.wtfp-generated.json +55 -43
- package/vendors/antigravity/actions/advance.json +232 -0
- package/vendors/antigravity/actions/plan-revision.json +8 -3
- package/vendors/antigravity/actions/verify-work.json +6 -2
- package/vendors/antigravity/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/antigravity/aliases.lock.json +1 -0
- package/vendors/antigravity/catalog.json +4 -2
- package/vendors/antigravity/compatibility/action-availability.json +13 -1
- package/vendors/antigravity/plugin.json +2 -2
- package/vendors/antigravity/project/README.md +2 -0
- package/vendors/antigravity/roles/research-synthesizer.md +1 -1
- package/vendors/antigravity/rules/wtfp-project-state.md +2 -0
- package/vendors/antigravity/skills/wtfp-add-todo/SKILL.md +0 -2
- package/vendors/antigravity/skills/wtfp-advance/SKILL.md +18 -0
- package/vendors/antigravity/skills/wtfp-checkpoint/SKILL.md +0 -14
- package/vendors/antigravity/skills/wtfp-create-outline/SKILL.md +0 -8
- package/vendors/antigravity/skills/wtfp-create-poster/SKILL.md +1 -6
- package/vendors/antigravity/skills/wtfp-create-slides/SKILL.md +1 -6
- package/vendors/antigravity/skills/wtfp-discuss-section/SKILL.md +1 -5
- package/vendors/antigravity/skills/wtfp-execute-outline/SKILL.md +0 -10
- package/vendors/antigravity/skills/wtfp-help/SKILL.md +1 -1
- package/vendors/antigravity/skills/wtfp-list-assumptions/SKILL.md +1 -10
- package/vendors/antigravity/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/antigravity/skills/wtfp-manage-project/references/actions.md +29 -1
- package/vendors/antigravity/skills/wtfp-pause-writing/SKILL.md +0 -6
- package/vendors/antigravity/skills/wtfp-plan-milestone-gaps/SKILL.md +0 -6
- package/vendors/antigravity/skills/wtfp-plan-revision/SKILL.md +5 -11
- package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/antigravity/skills/wtfp-polish-prose/SKILL.md +0 -6
- package/vendors/antigravity/skills/wtfp-progress/SKILL.md +1 -22
- package/vendors/antigravity/skills/wtfp-quick/SKILL.md +0 -4
- package/vendors/antigravity/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/antigravity/skills/wtfp-resume-writing/SKILL.md +0 -12
- package/vendors/antigravity/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/antigravity/skills/wtfp-review-section/SKILL.md +2 -10
- package/vendors/antigravity/skills/wtfp-submit-milestone/SKILL.md +0 -12
- package/vendors/antigravity/skills/wtfp-verify-work/SKILL.md +6 -4
- package/vendors/antigravity/tools/README.md +1 -1
- package/vendors/antigravity/workflows/advance.md +38 -0
- package/vendors/antigravity/workflows/discuss-section.md +1 -1
- package/vendors/antigravity/workflows/plan-revision.md +3 -3
- package/vendors/antigravity/workflows/plan-section.md +1 -1
- package/vendors/antigravity/workflows/research-gap.md +3 -3
- package/vendors/antigravity/workflows/review-section.md +2 -2
- package/vendors/antigravity/workflows/verify-work.md +4 -2
- package/vendors/antigravity/workflows/write-section.md +2 -2
- package/vendors/claude/.claude-plugin/marketplace.json +2 -2
- package/vendors/claude/.claude-plugin/plugin.json +1 -1
- package/vendors/claude/.wtfp-generated.json +109 -93
- package/vendors/claude/actions/advance.json +232 -0
- package/vendors/claude/actions/plan-revision.json +8 -3
- package/vendors/claude/actions/verify-work.json +6 -2
- package/vendors/claude/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-argument-verifier.md +4 -5
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-coherence-checker.md +6 -7
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-plan-checker.md +4 -5
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-reviewer.md +6 -7
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-writer.md +5 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/add-todo.md +0 -2
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/advance.md +15 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +4 -8
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +2 -16
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +4 -8
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-todos.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/checkpoint.md +2 -14
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +4 -10
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-poster.md +3 -6
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-slides.md +3 -6
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/discuss-section.md +3 -5
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +4 -12
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/export-latex.md +2 -8
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/insert-section.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +1 -10
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/new-paper.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/pause-writing.md +0 -6
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +2 -6
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-revision.md +7 -11
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +5 -15
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +4 -8
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/progress.md +3 -22
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +4 -6
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +12 -14
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/resume-writing.md +2 -12
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +6 -12
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/settings.md +2 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +2 -12
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/verify-work.md +8 -4
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +6 -14
- package/vendors/claude/aliases.lock.json +1 -0
- package/vendors/claude/catalog.json +4 -2
- package/vendors/claude/commands/add-todo.md +0 -2
- package/vendors/claude/commands/advance.md +16 -0
- package/vendors/claude/commands/analyze-bib.md +0 -6
- package/vendors/claude/commands/audit-milestone.md +0 -16
- package/vendors/claude/commands/check-refs.md +0 -6
- package/vendors/claude/commands/checkpoint.md +0 -14
- package/vendors/claude/commands/create-outline.md +0 -8
- package/vendors/claude/commands/create-poster.md +1 -6
- package/vendors/claude/commands/create-slides.md +1 -6
- package/vendors/claude/commands/discuss-section.md +1 -5
- package/vendors/claude/commands/execute-outline.md +0 -10
- package/vendors/claude/commands/export-latex.md +0 -8
- package/vendors/claude/commands/help.md +1 -1
- package/vendors/claude/commands/list-assumptions.md +1 -10
- package/vendors/claude/commands/pause-writing.md +0 -6
- package/vendors/claude/commands/plan-milestone-gaps.md +0 -6
- package/vendors/claude/commands/plan-revision.md +5 -11
- package/vendors/claude/commands/plan-section.md +1 -13
- package/vendors/claude/commands/polish-prose.md +0 -6
- package/vendors/claude/commands/progress.md +1 -22
- package/vendors/claude/commands/quick.md +0 -4
- package/vendors/claude/commands/research-gap.md +3 -11
- package/vendors/claude/commands/resume-writing.md +0 -12
- package/vendors/claude/commands/review-section.md +2 -10
- package/vendors/claude/commands/submit-milestone.md +0 -12
- package/vendors/claude/commands/verify-work.md +6 -4
- package/vendors/claude/commands/write-section.md +2 -12
- package/vendors/claude/compatibility/action-availability.json +10 -1
- package/vendors/claude/output-styles/wtfp-academic-writing.md +2 -2
- package/vendors/claude/plugin.json +15 -1
- package/vendors/claude/project/README.md +2 -0
- package/vendors/claude/roles/research-synthesizer.md +1 -1
- package/vendors/claude/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/claude/skills/wtfp-manage-project/references/actions.md +29 -1
- package/vendors/claude/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/claude/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/claude/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/claude/tools/README.md +1 -1
- package/vendors/claude/workflows/advance.md +38 -0
- package/vendors/claude/workflows/discuss-section.md +1 -1
- package/vendors/claude/workflows/plan-revision.md +3 -3
- package/vendors/claude/workflows/plan-section.md +1 -1
- package/vendors/claude/workflows/research-gap.md +3 -3
- package/vendors/claude/workflows/review-section.md +2 -2
- package/vendors/claude/workflows/verify-work.md +4 -2
- package/vendors/claude/workflows/write-section.md +2 -2
- package/vendors/clio-extension/.wtfp-generated.json +56 -8
- package/vendors/clio-extension/actions/advance.json +232 -0
- package/vendors/clio-extension/actions/plan-revision.json +8 -3
- package/vendors/clio-extension/actions/verify-work.json +6 -2
- package/vendors/clio-extension/clio-coder-extension.yaml +19 -4
- package/vendors/clio-extension/compatibility/action-availability.json +9 -3
- package/vendors/clio-extension/project/templates/checkpoint.json +25 -0
- package/vendors/clio-extension/project/templates/config.json +31 -0
- package/vendors/clio-extension/project/templates/decisions.json +35 -0
- package/vendors/clio-extension/project/templates/evidence.json +18 -0
- package/vendors/clio-extension/project/templates/interaction.json +16 -0
- package/vendors/clio-extension/project/templates/manifest.json +30 -0
- package/vendors/clio-extension/project/templates/outline.json +38 -0
- package/vendors/clio-extension/project/templates/section.json +32 -0
- package/vendors/clio-extension/project/templates/source.json +20 -0
- package/vendors/clio-extension/project/templates/state.json +22 -0
- package/vendors/clio-extension/project/templates/validation.json +32 -0
- package/vendors/clio-extension/runtime/extension.test.ts +724 -6
- package/vendors/clio-extension/runtime/extension.ts +1028 -42
- package/vendors/clio-extension/runtime/write-guard.json +66 -0
- package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/.wtfp-generated.json +32 -24
- package/vendors/codex/plugins/wtfp/actions/advance.json +232 -0
- package/vendors/codex/plugins/wtfp/actions/plan-revision.json +8 -3
- package/vendors/codex/plugins/wtfp/actions/verify-work.json +6 -2
- package/vendors/codex/plugins/wtfp/agents/wtfp-research-synthesizer.toml +1 -1
- package/vendors/codex/plugins/wtfp/aliases.lock.json +1 -0
- package/vendors/codex/plugins/wtfp/catalog.json +4 -2
- package/vendors/codex/plugins/wtfp/compatibility/action-availability.json +13 -1
- package/vendors/codex/plugins/wtfp/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/project/README.md +2 -0
- package/vendors/codex/plugins/wtfp/roles/research-synthesizer.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/codex/plugins/wtfp/tools/README.md +1 -1
- package/vendors/codex/plugins/wtfp/workflows/advance.md +38 -0
- package/vendors/codex/plugins/wtfp/workflows/discuss-section.md +1 -1
- package/vendors/codex/plugins/wtfp/workflows/plan-revision.md +3 -3
- package/vendors/codex/plugins/wtfp/workflows/plan-section.md +1 -1
- package/vendors/codex/plugins/wtfp/workflows/research-gap.md +3 -3
- package/vendors/codex/plugins/wtfp/workflows/review-section.md +2 -2
- package/vendors/codex/plugins/wtfp/workflows/verify-work.md +4 -2
- package/vendors/codex/plugins/wtfp/workflows/write-section.md +2 -2
- package/vendors/copilot/.wtfp-generated.json +44 -32
- package/vendors/copilot/marketplace.json +2 -2
- package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
- package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +56 -44
- package/vendors/copilot/plugins/wtfp/actions/advance.json +232 -0
- package/vendors/copilot/plugins/wtfp/actions/plan-revision.json +8 -3
- package/vendors/copilot/plugins/wtfp/actions/verify-work.json +6 -2
- package/vendors/copilot/plugins/wtfp/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/copilot/plugins/wtfp/aliases.lock.json +1 -0
- package/vendors/copilot/plugins/wtfp/catalog.json +4 -2
- package/vendors/copilot/plugins/wtfp/commands/wtfp-add-todo.md +0 -2
- package/vendors/copilot/plugins/wtfp/commands/wtfp-advance.md +17 -0
- package/vendors/copilot/plugins/wtfp/commands/wtfp-checkpoint.md +0 -14
- package/vendors/copilot/plugins/wtfp/commands/wtfp-create-outline.md +0 -8
- package/vendors/copilot/plugins/wtfp/commands/wtfp-create-poster.md +1 -6
- package/vendors/copilot/plugins/wtfp/commands/wtfp-create-slides.md +1 -6
- package/vendors/copilot/plugins/wtfp/commands/wtfp-discuss-section.md +1 -5
- package/vendors/copilot/plugins/wtfp/commands/wtfp-execute-outline.md +0 -10
- package/vendors/copilot/plugins/wtfp/commands/wtfp-help.md +1 -1
- package/vendors/copilot/plugins/wtfp/commands/wtfp-list-assumptions.md +1 -10
- package/vendors/copilot/plugins/wtfp/commands/wtfp-pause-writing.md +0 -6
- package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-milestone-gaps.md +0 -6
- package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-revision.md +5 -11
- package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +1 -13
- package/vendors/copilot/plugins/wtfp/commands/wtfp-polish-prose.md +0 -6
- package/vendors/copilot/plugins/wtfp/commands/wtfp-progress.md +1 -22
- package/vendors/copilot/plugins/wtfp/commands/wtfp-quick.md +0 -4
- package/vendors/copilot/plugins/wtfp/commands/wtfp-resume-writing.md +0 -12
- package/vendors/copilot/plugins/wtfp/commands/wtfp-review-section.md +2 -10
- package/vendors/copilot/plugins/wtfp/commands/wtfp-submit-milestone.md +0 -12
- package/vendors/copilot/plugins/wtfp/commands/wtfp-verify-work.md +6 -4
- package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +2 -12
- package/vendors/copilot/plugins/wtfp/compatibility/action-availability.json +13 -1
- package/vendors/copilot/plugins/wtfp/project/README.md +2 -0
- package/vendors/copilot/plugins/wtfp/roles/research-synthesizer.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-manage-project/references/actions.md +29 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/copilot/plugins/wtfp/tools/README.md +1 -1
- package/vendors/copilot/plugins/wtfp/workflows/advance.md +38 -0
- package/vendors/copilot/plugins/wtfp/workflows/discuss-section.md +1 -1
- package/vendors/copilot/plugins/wtfp/workflows/plan-revision.md +3 -3
- package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +1 -1
- package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +3 -3
- package/vendors/copilot/plugins/wtfp/workflows/review-section.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/verify-work.md +4 -2
- package/vendors/copilot/plugins/wtfp/workflows/write-section.md +2 -2
- package/vendors/copilot/project/.github/agents/wtfp-research-synthesizer.agent.md +1 -1
- package/vendors/copilot/project/.github/prompts/wtfp-add-todo.prompt.md +0 -2
- package/vendors/copilot/project/.github/prompts/wtfp-advance.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-help.prompt.md +1 -1
- package/vendors/copilot/project/.github/prompts/wtfp-list-assumptions.prompt.md +1 -10
- package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +0 -6
- package/vendors/copilot/project/.github/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/copilot/project/.github/skills/wtfp-manage-project/references/actions.md +25 -1
- package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/copilot/project/.github/wtfp/actions/advance.json +232 -0
- package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +8 -3
- package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +6 -2
- package/vendors/copilot/project/.github/wtfp/aliases.lock.json +1 -0
- package/vendors/copilot/project/.github/wtfp/catalog.json +4 -2
- package/vendors/copilot/project/.github/wtfp/compatibility/action-availability.json +14 -1
- package/vendors/copilot/project/.github/wtfp/project/README.md +2 -0
- package/vendors/copilot/project/.github/wtfp/roles/research-synthesizer.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/references/actions.md +13 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/copilot/project/.github/wtfp/workflows/advance.md +38 -0
- package/vendors/copilot/project/.github/wtfp/workflows/discuss-section.md +1 -1
- package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +3 -3
- package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +1 -1
- package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +3 -3
- package/vendors/copilot/project/.github/wtfp/workflows/review-section.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +4 -2
- package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +2 -2
- package/vendors/copilot/project/README.md +1 -1
- package/vendors/gemini/.wtfp-generated.json +61 -49
- package/vendors/gemini/actions/advance.json +232 -0
- package/vendors/gemini/actions/plan-revision.json +8 -3
- package/vendors/gemini/actions/verify-work.json +6 -2
- package/vendors/gemini/agents/wtfp-research-synthesizer.md +1 -1
- package/vendors/gemini/aliases.lock.json +1 -0
- package/vendors/gemini/catalog.json +4 -2
- package/vendors/gemini/commands/wtfp/add-todo.toml +17 -144
- package/vendors/gemini/commands/wtfp/advance.toml +14 -0
- package/vendors/gemini/commands/wtfp/check-todos.toml +17 -2
- package/vendors/gemini/commands/wtfp/checkpoint.toml +17 -735
- package/vendors/gemini/commands/wtfp/create-outline.toml +2 -431
- package/vendors/gemini/commands/wtfp/create-poster.toml +3 -296
- package/vendors/gemini/commands/wtfp/create-slides.toml +3 -296
- package/vendors/gemini/commands/wtfp/discuss-section.toml +4 -259
- package/vendors/gemini/commands/wtfp/execute-outline.toml +2 -480
- package/vendors/gemini/commands/wtfp/help.toml +7 -3
- package/vendors/gemini/commands/wtfp/insert-section.toml +3 -1
- package/vendors/gemini/commands/wtfp/list-assumptions.toml +4 -510
- package/vendors/gemini/commands/wtfp/map-project.toml +2 -0
- package/vendors/gemini/commands/wtfp/new-paper.toml +2 -0
- package/vendors/gemini/commands/wtfp/pause-writing.toml +17 -309
- package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +4 -369
- package/vendors/gemini/commands/wtfp/plan-revision.toml +76 -423
- package/vendors/gemini/commands/wtfp/plan-section.toml +4 -624
- package/vendors/gemini/commands/wtfp/polish-prose.toml +4 -329
- package/vendors/gemini/commands/wtfp/progress.toml +18 -1143
- package/vendors/gemini/commands/wtfp/quick.toml +2 -218
- package/vendors/gemini/commands/wtfp/resume-writing.toml +17 -698
- package/vendors/gemini/commands/wtfp/review-section.toml +6 -412
- package/vendors/gemini/commands/wtfp/settings.toml +17 -2
- package/vendors/gemini/commands/wtfp/submit-milestone.toml +2 -617
- package/vendors/gemini/commands/wtfp/verify-work.toml +123 -53
- package/vendors/gemini/commands/wtfp/write-section.toml +4 -482
- package/vendors/gemini/compatibility/action-availability.json +13 -1
- package/vendors/gemini/gemini-extension.json +1 -1
- package/vendors/gemini/project/README.md +2 -0
- package/vendors/gemini/roles/research-synthesizer.md +1 -1
- package/vendors/gemini/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/gemini/skills/wtfp-manage-project/references/actions.md +29 -1
- package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/gemini/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/gemini/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/gemini/tools/README.md +1 -1
- package/vendors/gemini/workflows/advance.md +38 -0
- package/vendors/gemini/workflows/discuss-section.md +1 -1
- package/vendors/gemini/workflows/plan-revision.md +3 -3
- package/vendors/gemini/workflows/plan-section.md +1 -1
- package/vendors/gemini/workflows/research-gap.md +3 -3
- package/vendors/gemini/workflows/review-section.md +2 -2
- package/vendors/gemini/workflows/verify-work.md +4 -2
- package/vendors/gemini/workflows/write-section.md +2 -2
- package/vendors/opencode/.wtfp-generated.json +60 -48
- package/vendors/opencode/actions/advance.json +232 -0
- package/vendors/opencode/actions/plan-revision.json +8 -3
- package/vendors/opencode/actions/verify-work.json +6 -2
- package/vendors/opencode/agents/wtfp/research-synthesizer.md +1 -1
- package/vendors/opencode/aliases.lock.json +1 -0
- package/vendors/opencode/catalog.json +4 -2
- package/vendors/opencode/commands/wtfp/add-todo.md +17 -144
- package/vendors/opencode/commands/wtfp/advance.md +16 -0
- package/vendors/opencode/commands/wtfp/check-todos.md +17 -2
- package/vendors/opencode/commands/wtfp/checkpoint.md +17 -735
- package/vendors/opencode/commands/wtfp/create-outline.md +2 -431
- package/vendors/opencode/commands/wtfp/create-poster.md +3 -296
- package/vendors/opencode/commands/wtfp/create-slides.md +3 -296
- package/vendors/opencode/commands/wtfp/discuss-section.md +4 -259
- package/vendors/opencode/commands/wtfp/execute-outline.md +2 -480
- package/vendors/opencode/commands/wtfp/help.md +7 -3
- package/vendors/opencode/commands/wtfp/insert-section.md +3 -1
- package/vendors/opencode/commands/wtfp/list-assumptions.md +4 -510
- package/vendors/opencode/commands/wtfp/map-project.md +2 -0
- package/vendors/opencode/commands/wtfp/new-paper.md +2 -0
- package/vendors/opencode/commands/wtfp/pause-writing.md +17 -309
- package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +4 -369
- package/vendors/opencode/commands/wtfp/plan-revision.md +76 -423
- package/vendors/opencode/commands/wtfp/plan-section.md +4 -624
- package/vendors/opencode/commands/wtfp/polish-prose.md +4 -329
- package/vendors/opencode/commands/wtfp/progress.md +18 -1143
- package/vendors/opencode/commands/wtfp/quick.md +2 -218
- package/vendors/opencode/commands/wtfp/resume-writing.md +17 -698
- package/vendors/opencode/commands/wtfp/review-section.md +6 -412
- package/vendors/opencode/commands/wtfp/settings.md +17 -2
- package/vendors/opencode/commands/wtfp/submit-milestone.md +2 -617
- package/vendors/opencode/commands/wtfp/verify-work.md +123 -53
- package/vendors/opencode/commands/wtfp/write-section.md +4 -482
- package/vendors/opencode/compatibility/action-availability.json +13 -1
- package/vendors/opencode/project/README.md +2 -0
- package/vendors/opencode/roles/research-synthesizer.md +1 -1
- package/vendors/opencode/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/opencode/skills/wtfp-manage-project/references/actions.md +29 -1
- package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/opencode/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/opencode/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/opencode/tools/README.md +1 -1
- package/vendors/opencode/workflows/advance.md +38 -0
- package/vendors/opencode/workflows/discuss-section.md +1 -1
- package/vendors/opencode/workflows/plan-revision.md +3 -3
- package/vendors/opencode/workflows/plan-section.md +1 -1
- package/vendors/opencode/workflows/research-gap.md +3 -3
- package/vendors/opencode/workflows/review-section.md +2 -2
- package/vendors/opencode/workflows/verify-work.md +4 -2
- package/vendors/opencode/workflows/write-section.md +2 -2
- package/vendors/plugin/.wtfp-generated.json +76 -64
- package/vendors/plugin/actions/advance.json +232 -0
- package/vendors/plugin/actions/plan-revision.json +8 -3
- package/vendors/plugin/actions/verify-work.json +6 -2
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-argument-verifier.md +4 -5
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-expert.md +5 -5
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-citation-formatter.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-coherence-checker.md +6 -7
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-outliner.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-plan-checker.md +4 -5
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-prose-polisher.md +4 -4
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-research-synthesizer.md +6 -6
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-planner.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-reviewer.md +6 -7
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-writer.md +5 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +7 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/advance.md +101 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +11 -19
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +12 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +11 -19
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-poster.md +18 -13
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-slides.md +18 -13
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +11 -5
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +12 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +4 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +15 -17
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +7 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +7 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +13 -7
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +13 -7
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +12 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +19 -30
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +12 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +20 -10
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +14 -8
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +10 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +12 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +14 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +15 -9
- package/vendors/plugin/aliases.lock.json +1 -0
- package/vendors/plugin/catalog.json +4 -2
- package/vendors/plugin/compatibility/action-availability.json +9 -3
- package/vendors/plugin/plugin.json +15 -1
- package/vendors/plugin/project/README.md +2 -0
- package/vendors/plugin/roles/research-synthesizer.md +1 -1
- package/vendors/plugin/skills/wtfp-manage-project/SKILL.md +2 -1
- package/vendors/plugin/skills/wtfp-manage-project/references/actions.md +13 -1
- package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +1 -1
- package/vendors/plugin/skills/wtfp-research-literature/references/actions.md +1 -1
- package/vendors/plugin/skills/wtfp-review-manuscript/references/actions.md +2 -1
- package/vendors/plugin/tools/README.md +1 -1
- package/vendors/plugin/workflows/advance.md +38 -0
- package/vendors/plugin/workflows/discuss-section.md +1 -1
- package/vendors/plugin/workflows/plan-revision.md +3 -3
- package/vendors/plugin/workflows/plan-section.md +1 -1
- package/vendors/plugin/workflows/research-gap.md +3 -3
- package/vendors/plugin/workflows/review-section.md +2 -2
- package/vendors/plugin/workflows/verify-work.md +4 -2
- package/vendors/plugin/workflows/write-section.md +2 -2
|
@@ -39,7 +39,8 @@ const CAPABILITY_IDS = Object.freeze([
|
|
|
39
39
|
'tool.execute',
|
|
40
40
|
'user.interaction',
|
|
41
41
|
'vcs.branch',
|
|
42
|
-
'vcs.commit'
|
|
42
|
+
'vcs.commit',
|
|
43
|
+
'workflow.drive'
|
|
43
44
|
]);
|
|
44
45
|
|
|
45
46
|
// Effects are portable semantic declarations. Each effect must have one exact
|
|
@@ -77,6 +78,11 @@ const EFFECT_CAPABILITY_BINDINGS = Object.freeze({
|
|
|
77
78
|
// Clio's `network.search` is bound to the same executor because the only
|
|
78
79
|
// scholarly search WTF-P declares is the bundled Semantic Scholar / Google
|
|
79
80
|
// Scholar client; Clio exposes `web_fetch` but no native web-search tool.
|
|
81
|
+
//
|
|
82
|
+
// `workflow.drive` is a host driver that selects each next step from portable
|
|
83
|
+
// project state and confines that step to its own action contract. Only the
|
|
84
|
+
// Clio desk provides one (`extension_wtfp__next_step`), so `advance` fails
|
|
85
|
+
// closed everywhere else instead of letting a model choose its own steps.
|
|
80
86
|
const TARGET_POLICIES = Object.freeze({
|
|
81
87
|
clio: Object.freeze({ capabilities: Object.freeze({
|
|
82
88
|
'agent.delegate': 'clio:plugin-agent',
|
|
@@ -91,7 +97,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
91
97
|
'tool.execute': 'clio:bash',
|
|
92
98
|
'user.interaction': 'clio:ask_user',
|
|
93
99
|
'vcs.branch': null,
|
|
94
|
-
'vcs.commit': null
|
|
100
|
+
'vcs.commit': null,
|
|
101
|
+
'workflow.drive': 'clio:wtfp-desk-driver'
|
|
95
102
|
}), approvals: Object.freeze({ none: 'clio:permission-policy', implicit: 'clio:permission-policy', explicit: 'clio:ask_user' }) }),
|
|
96
103
|
claude: Object.freeze({ capabilities: Object.freeze({
|
|
97
104
|
'agent.delegate': 'claude:Task',
|
|
@@ -106,7 +113,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
106
113
|
'tool.execute': 'claude:Bash',
|
|
107
114
|
'user.interaction': 'claude:AskUserQuestion',
|
|
108
115
|
'vcs.branch': null,
|
|
109
|
-
'vcs.commit': null
|
|
116
|
+
'vcs.commit': null,
|
|
117
|
+
'workflow.drive': null
|
|
110
118
|
}), approvals: Object.freeze({ none: 'claude:allowed-tools', implicit: 'claude:allowed-tools', explicit: 'claude:AskUserQuestion' }) }),
|
|
111
119
|
codex: Object.freeze({ capabilities: Object.freeze({
|
|
112
120
|
'agent.delegate': 'codex:subagent',
|
|
@@ -121,7 +129,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
121
129
|
'tool.execute': null,
|
|
122
130
|
'user.interaction': 'codex:conversation',
|
|
123
131
|
'vcs.branch': null,
|
|
124
|
-
'vcs.commit': null
|
|
132
|
+
'vcs.commit': null,
|
|
133
|
+
'workflow.drive': null
|
|
125
134
|
}), approvals: Object.freeze({ none: 'codex:sandbox-policy', implicit: 'codex:sandbox-policy', explicit: 'codex:conversation-confirmation' }) }),
|
|
126
135
|
copilot: Object.freeze({ capabilities: Object.freeze({
|
|
127
136
|
'agent.delegate': 'copilot:Task',
|
|
@@ -136,7 +145,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
136
145
|
'tool.execute': null,
|
|
137
146
|
'user.interaction': 'copilot:AskUserQuestion',
|
|
138
147
|
'vcs.branch': null,
|
|
139
|
-
'vcs.commit': null
|
|
148
|
+
'vcs.commit': null,
|
|
149
|
+
'workflow.drive': null
|
|
140
150
|
}), approvals: Object.freeze({ none: 'copilot:allowed-tools', implicit: 'copilot:allowed-tools', explicit: 'copilot:AskUserQuestion' }) }),
|
|
141
151
|
'copilot-cloud': Object.freeze({ capabilities: Object.freeze({
|
|
142
152
|
'agent.delegate': 'copilot-cloud:agent',
|
|
@@ -151,7 +161,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
151
161
|
'tool.execute': null,
|
|
152
162
|
'user.interaction': 'copilot-cloud:input-approval',
|
|
153
163
|
'vcs.branch': null,
|
|
154
|
-
'vcs.commit': null
|
|
164
|
+
'vcs.commit': null,
|
|
165
|
+
'workflow.drive': null
|
|
155
166
|
}), approvals: Object.freeze({ none: 'copilot-cloud:tool-policy', implicit: 'copilot-cloud:tool-policy', explicit: null }) }),
|
|
156
167
|
opencode: Object.freeze({ capabilities: Object.freeze({
|
|
157
168
|
'agent.delegate': 'opencode:agent',
|
|
@@ -166,7 +177,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
166
177
|
'tool.execute': null,
|
|
167
178
|
'user.interaction': 'opencode:conversation',
|
|
168
179
|
'vcs.branch': null,
|
|
169
|
-
'vcs.commit': null
|
|
180
|
+
'vcs.commit': null,
|
|
181
|
+
'workflow.drive': null
|
|
170
182
|
}), approvals: Object.freeze({ none: 'opencode:permission-policy', implicit: 'opencode:permission-policy', explicit: 'opencode:conversation-confirmation' }) }),
|
|
171
183
|
antigravity: Object.freeze({ capabilities: Object.freeze({
|
|
172
184
|
'agent.delegate': 'antigravity:Task',
|
|
@@ -181,7 +193,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
181
193
|
'tool.execute': null,
|
|
182
194
|
'user.interaction': 'antigravity:AskUserQuestion',
|
|
183
195
|
'vcs.branch': null,
|
|
184
|
-
'vcs.commit': null
|
|
196
|
+
'vcs.commit': null,
|
|
197
|
+
'workflow.drive': null
|
|
185
198
|
}), approvals: Object.freeze({ none: 'antigravity:allowed-tools', implicit: 'antigravity:allowed-tools', explicit: 'antigravity:AskUserQuestion' }) }),
|
|
186
199
|
gemini: Object.freeze({ capabilities: Object.freeze({
|
|
187
200
|
'agent.delegate': 'gemini:agent',
|
|
@@ -196,7 +209,8 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
196
209
|
'tool.execute': null,
|
|
197
210
|
'user.interaction': 'gemini:conversation',
|
|
198
211
|
'vcs.branch': null,
|
|
199
|
-
'vcs.commit': null
|
|
212
|
+
'vcs.commit': null,
|
|
213
|
+
'workflow.drive': null
|
|
200
214
|
}), approvals: Object.freeze({ none: 'gemini:permission-policy', implicit: 'gemini:permission-policy', explicit: 'gemini:conversation-confirmation' }) })
|
|
201
215
|
});
|
|
202
216
|
|
|
@@ -210,7 +224,9 @@ const TARGET_HOST_TOOL_ENFORCEMENT = Object.freeze({
|
|
|
210
224
|
clio: Object.freeze({
|
|
211
225
|
actionScoped: true,
|
|
212
226
|
surface: 'clio:template-allowed-tools',
|
|
213
|
-
|
|
227
|
+
// Clio 0.8 has two levels; the 0.6.3 read-only and suggest spellings it was
|
|
228
|
+
// certified under now read as `default`.
|
|
229
|
+
certificationAutonomy: Object.freeze(['default']),
|
|
214
230
|
undeclaredToolCall: 'fail'
|
|
215
231
|
})
|
|
216
232
|
});
|
|
@@ -480,27 +496,42 @@ function nativeWorkflowBody(workflowBody, target) {
|
|
|
480
496
|
return body;
|
|
481
497
|
}
|
|
482
498
|
|
|
499
|
+
// Schemas and templates shape writes. A record an action only reads describes
|
|
500
|
+
// itself, so a read-only action carries none, and an action carries only the
|
|
501
|
+
// record types it creates or updates. Authored artifacts under a section, such
|
|
502
|
+
// as plans and reviews, are Markdown and have no record schema.
|
|
503
|
+
const RECORD_SCHEMAS = [
|
|
504
|
+
[/^project:\/\/manifest$/, 'manifest'],
|
|
505
|
+
[/^project:\/\/config$/, 'config'],
|
|
506
|
+
[/^project:\/\/state$/, 'state'],
|
|
507
|
+
[/^project:\/\/decisions$/, 'decisions'],
|
|
508
|
+
[/^project:\/\/structure\/outline$/, 'outline'],
|
|
509
|
+
[/^project:\/\/sections\/[^/]+$/, 'section'],
|
|
510
|
+
[/^project:\/\/sources\/[^/]+$/, 'source'],
|
|
511
|
+
[/^project:\/\/evidence\/[^/]+$/, 'evidence'],
|
|
512
|
+
[/^project:\/\/checkpoints\/[^/]+$/, 'checkpoint'],
|
|
513
|
+
[/^project:\/\/validations\/[^/]+$/, 'validation']
|
|
514
|
+
];
|
|
515
|
+
|
|
483
516
|
function projectSchemasForAction(action) {
|
|
484
517
|
const schemas = new Set();
|
|
485
|
-
const
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
];
|
|
489
|
-
for (const uri of uris) {
|
|
490
|
-
if (uri === 'project://manifest') schemas.add('manifest');
|
|
491
|
-
else if (uri === 'project://config') schemas.add('config');
|
|
492
|
-
else if (uri === 'project://state') schemas.add('state');
|
|
493
|
-
else if (uri === 'project://decisions') schemas.add('decisions');
|
|
494
|
-
else if (uri === 'project://structure/outline') schemas.add('outline');
|
|
495
|
-
else if (uri.startsWith('project://sections/')) schemas.add('section');
|
|
496
|
-
else if (uri.startsWith('project://sources/')) schemas.add('source');
|
|
497
|
-
else if (uri.startsWith('project://evidence/')) schemas.add('evidence');
|
|
498
|
-
else if (uri.startsWith('project://checkpoints/')) schemas.add('checkpoint');
|
|
499
|
-
else if (uri.startsWith('project://validations/')) schemas.add('validation');
|
|
518
|
+
for (const output of action.produces) {
|
|
519
|
+
const match = RECORD_SCHEMAS.find(([pattern]) => pattern.test(output.uri));
|
|
520
|
+
if (match) schemas.add(match[1]);
|
|
500
521
|
}
|
|
501
522
|
return [...schemas].sort((left, right) => left.localeCompare(right));
|
|
502
523
|
}
|
|
503
524
|
|
|
525
|
+
// The desk enforces an action's contract, and the prompt already states its
|
|
526
|
+
// reads, outputs, conditions, gates and roles. Reading the file would cost Clio
|
|
527
|
+
// a round trip that resends the whole context for no new fact, so the prompt
|
|
528
|
+
// names it only for an exact lookup.
|
|
529
|
+
function clioBoundContract(action) {
|
|
530
|
+
return action.requirements.capabilities.includes('workflow.drive')
|
|
531
|
+
? `The desk enforces \`protocol://actions/${action.id}.json\`, the union of the actions it drives, through each step's own contract. Read it only when a refusal needs its exact terms.`
|
|
532
|
+
: `The desk enforces \`protocol://actions/${action.id}.json\`; this prompt states its reads, outputs, conditions, gates and roles. Read it only when a refusal needs its exact terms.`;
|
|
533
|
+
}
|
|
534
|
+
|
|
504
535
|
function nativeCommandBody(action, workflowBody, target, deskTools = false) {
|
|
505
536
|
const argumentToken = target === 'gemini'
|
|
506
537
|
? '{{args}}'
|
|
@@ -509,7 +540,9 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
|
|
|
509
540
|
: '$ARGUMENTS';
|
|
510
541
|
const schemas = projectSchemasForAction(action);
|
|
511
542
|
const protocolIncludes = [
|
|
512
|
-
|
|
543
|
+
deskTools
|
|
544
|
+
? clioBoundContract(action)
|
|
545
|
+
: `@protocol://actions/${action.id}.json`,
|
|
513
546
|
...(!deskTools && schemas.length > 0 ? ['@protocol://project/schemas/common.schema.json'] : []),
|
|
514
547
|
...(!deskTools ? schemas : []).flatMap((schema) => [
|
|
515
548
|
`@protocol://project/schemas/${schema}.schema.json`,
|
|
@@ -520,7 +553,7 @@ function nativeCommandBody(action, workflowBody, target, deskTools = false) {
|
|
|
520
553
|
nativeWorkflowBody([
|
|
521
554
|
deskTools ? clioDeskWorkflowBody(action, workflowBody) : workflowBody,
|
|
522
555
|
'',
|
|
523
|
-
deskTools ? '## Bound action contract' : '## Bound action contract and schemas',
|
|
556
|
+
deskTools || schemas.length === 0 ? '## Bound action contract' : '## Bound action contract and schemas',
|
|
524
557
|
'',
|
|
525
558
|
...protocolIncludes
|
|
526
559
|
].join('\n'), target),
|
|
@@ -603,39 +636,98 @@ function generatedScriptBanner(kind, id) {
|
|
|
603
636
|
return `// Generated by WTF-P adapter compiler v${GENERATOR_VERSION} from ${kind}/${id}; do not edit.`;
|
|
604
637
|
}
|
|
605
638
|
|
|
639
|
+
const CLIO_AUTHOR_QUESTIONS = 'Every question `ask_user` puts to the author here is the author\'s to answer: ask exactly one question per `ask_user` call, with its options and `operator_only: true`; Clio refuses an `operator_only` question sent with others. Clio never answers such a question for an absent author; an unanswered one ends the turn instead of taking a recommended option, so a timeout never becomes an author decision.';
|
|
640
|
+
|
|
606
641
|
function clioUserGateBody(action, deskTools = false) {
|
|
607
642
|
if (!action.effects.some((effect) => effect.id === 'user.gate')) return '';
|
|
643
|
+
// A local model tried every branch of a two-way rule in turn; state only the one this action can take.
|
|
644
|
+
const createsCheckpoint = action.produces.some((output) => output.uri === 'project://checkpoints/{checkpoint}' && output.mode === 'create');
|
|
645
|
+
const route = createsCheckpoint
|
|
646
|
+
? 'For a pending checkpoint in the declared gate\'s exact scope, call `extension_wtfp__gate` with its ID; the desk shows it to the author and seals the answer. When none exists yet, create it pending through `extension_wtfp__record`, then call `extension_wtfp__gate` with its ID. The gate is the only place its question is asked: never ask it, or a preview of it, with `ask_user`, or the author answers twice.'
|
|
647
|
+
: 'This action creates no checkpoint, so ask its gate question with `ask_user` and act on the structured answer; call `extension_wtfp__gate` only for a pending checkpoint `extension_wtfp__status` lists in the gate\'s exact scope, and never create one.';
|
|
608
648
|
if (deskTools) return [
|
|
609
649
|
'## Clio user-gate binding',
|
|
610
650
|
'',
|
|
611
|
-
|
|
651
|
+
route + ' Only the structured author answer satisfies the gate; cancelled, kept or expired checkpoints authorize nothing. Never write `resolution.resolved_by: author`, never resolve, unblock or expire a blocking checkpoint, and never infer approval from invocation text, prose or silence. A plan is approved only by an `approve` answer on a checkpoint scoped to that plan\'s URI, for its current bytes. Read back a persisted resolution with `extension_wtfp__read_record`, which reports whether the desk attests it, before applying its gated mutation. A record change that turns a gate off waits for the author\'s confirmation, which the record tool asks for itself.',
|
|
652
|
+
'',
|
|
653
|
+
CLIO_AUTHOR_QUESTIONS
|
|
612
654
|
].join('\n');
|
|
613
655
|
return [
|
|
614
656
|
'## Clio user-gate binding',
|
|
615
657
|
'',
|
|
616
|
-
'Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the structured value returned by that tool satisfies the gate. Invocation arguments, assistant prose, silence, or a report artifact do not count as a selection. Apply no gated mutation before `ask_user` returns. After any permitted mutation, perform the workflow-required readback before reporting success.'
|
|
658
|
+
'Call `ask_user` whenever this workflow reaches a declared `user.gate`; only the structured value returned by that tool satisfies the gate. Invocation arguments, assistant prose, silence, or a report artifact do not count as a selection. Apply no gated mutation before `ask_user` returns. After any permitted mutation, perform the workflow-required readback before reporting success.',
|
|
659
|
+
'',
|
|
660
|
+
CLIO_AUTHOR_QUESTIONS
|
|
617
661
|
].join('\n');
|
|
618
662
|
}
|
|
619
663
|
|
|
664
|
+
// Whether an action writes portable JSON records, which on Clio only the desk's
|
|
665
|
+
// record tool may do. An action that writes none reads records through the desk
|
|
666
|
+
// and needs neither the record tool nor the schemas a writer validates against.
|
|
667
|
+
function clioRecordWriter(action) {
|
|
668
|
+
return action.produces.some((output) =>
|
|
669
|
+
/^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// On the desk only the record tool writes JSON records, so a writing role of an
|
|
673
|
+
// action that produces no file has no root it may hold: Clio reads an empty
|
|
674
|
+
// write_roots as unbounded and the desk refuses it. The main agent does that
|
|
675
|
+
// role's work itself. Read-only reviewers still dispatch.
|
|
676
|
+
function clioInlineRoles(action, reviewers, deskTools) {
|
|
677
|
+
if (!deskTools) return [];
|
|
678
|
+
const recordOnly = action.produces.every((output) =>
|
|
679
|
+
/^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
|
|
680
|
+
return recordOnly ? action.delegation.map((entry) => entry.role).filter((role) => !reviewers.has(role)) : [];
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
// The desk tools one Clio prompt's turn holds: a record writer gets every
|
|
684
|
+
// record tool, a reader only what reads, and a gate only where it declares one.
|
|
685
|
+
const archives = (action) => action.produces.some((output) => output.mode === 'archive' && output.uri.startsWith('project://archives/'));
|
|
686
|
+
|
|
687
|
+
function clioDeskTools(action) {
|
|
688
|
+
if (clioRecordWriter(action)) return [...CLIO_DESK_TOOLS, ...(archives(action) ? ['extension_wtfp__archive'] : [])];
|
|
689
|
+
const tools = ['status', 'read_record', 'readiness'];
|
|
690
|
+
if (action.effects.some((effect) => effect.id === 'user.gate')) tools.push('gate');
|
|
691
|
+
return tools.map((tool) => `extension_wtfp__${tool}`);
|
|
692
|
+
}
|
|
693
|
+
|
|
620
694
|
// Only the canonical Clio namespace prefers the optional desk. The unrooted
|
|
621
695
|
// phase-1 projection remains intact for the Claude envelope and other hosts.
|
|
622
696
|
function clioDeskWorkflowBody(action, workflowBody) {
|
|
697
|
+
const writer = clioRecordWriter(action);
|
|
698
|
+
// Clio re-sends an inlined file with every request and never pins it across
|
|
699
|
+
// compaction; a skill loaded through context survives compaction, and a file
|
|
700
|
+
// read with the read tool can be evicted once used.
|
|
623
701
|
let body = workflowBody
|
|
624
702
|
.replace(/^@protocol:\/\/project\/README\.md\n/gm, '')
|
|
625
703
|
.replace(/^@protocol:\/\/skills\/[^\n]+\/references\/actions\.md\n/gm, '')
|
|
626
|
-
.replace(
|
|
627
|
-
'
|
|
704
|
+
.replace(/^@protocol:\/\/skills\/([a-z0-9-]+)\/SKILL\.md$/gm,
|
|
705
|
+
'Before acting, load the `$1` skill with `context(scope="skills", name="$1")`; it carries this action\'s method and stays loaded across compaction.')
|
|
706
|
+
.replace(/^Resolve every logical URI through the host adapter\.[^\n]+$/m, writer ? 'Use `extension_wtfp__record` for each declared JSON record write. Read an existing record first with `extension_wtfp__read_record` and pass back the version it returns: `expect_revision` for state, outline and decisions, `expect_sha256` for every other record; a create passes neither. When one transition changes several records, such as a checkpoint and the state that lists it, pass them together as `writes` so they commit together. The tool validates, bumps revisions and timestamps, commits under the project lock and reads back. It refuses author resolutions and any record this action does not declare; preserve stable IDs and author decisions.'
|
|
707
|
+
: 'Read each JSON record with `extension_wtfp__read_record` at its logical URI; it returns the record, its revision and SHA-256, and for a checkpoint whether the author\'s answer is attested. This action writes no JSON record.')
|
|
628
708
|
.replace(/^Manuscript prose and supporting context,[^\n]+$/m,
|
|
629
709
|
'Write prose and linked artifacts with native file tools; keep their authored formats. The record tool handles JSON records only, never manuscript text, deletion or archives.');
|
|
630
710
|
if (action.id === 'write-section') body = body.replace(/^3\. Read the persisted manuscript text back[^\n]+$/m,
|
|
631
|
-
'3. Read back the persisted manuscript, call `extension_wtfp__measure_section` with its section ID, and use the returned body count and target tolerance for validation and the summary; never use a worker self-report or hand-count words.')
|
|
711
|
+
'3. Read back the persisted manuscript, call `extension_wtfp__measure_section` with its section ID, and use the returned body count and target tolerance for validation and the summary; never use a worker self-report or hand-count words.')
|
|
712
|
+
.replace(/^4\. Create or update the required Markdown summary with that measured count,[^\n]+$/m,
|
|
713
|
+
'4. A dispatched writer has no word counter, so tell it to write the summary without a count; then add the measured count to the summary yourself and read back both manuscript and summary. Missing, empty, or inconsistent output is a failed completion condition, not permission to link a path that does not exist.');
|
|
632
714
|
if (action.id === 'check-todos') body = body
|
|
633
715
|
.replace(/^2\. Ask the user[^\n]+$/m, '2. Call `extension_wtfp__gate` for each selected pending checkpoint; the parked interview records the author\'s answer.')
|
|
634
716
|
.replace(/^3\. Apply only[^\n]+$/m, '3. Read back the resulting checkpoint and state; retained or cancelled gates remain pending.');
|
|
717
|
+
if (action.requirements.capabilities.includes('workflow.drive')) {
|
|
718
|
+
const contract = /^## Record contract\n[\s\S]*?(?=^## Procedure$)/m;
|
|
719
|
+
if (!contract.test(body)) throw new Error(`${action.id}: no record contract section to project`);
|
|
720
|
+
return `${body.replace(contract, '## Record contract\n\nThe driver writes nothing itself. Each step reads and writes only what its own prompt\'s record contract declares, for the section the desk names; the desk arms the write guard for that step alone.\n\n')}\n\n${clioDriverBinding()}`;
|
|
721
|
+
}
|
|
635
722
|
const bindings = [
|
|
636
|
-
|
|
723
|
+
clioDeskCalls(clioDeskTools(action)),
|
|
724
|
+
'Read a large source or manuscript by section with `grep` and a bounded `read` range, never whole: Clio ends the turn when one turn\'s reads exceed its observation budget.',
|
|
725
|
+
'An author\'s request is never permission to write outside this action\'s declared outputs: do the part it declares, then end by naming the action that owns the rest as the next step, and do not ask again or weigh the request against the contract; the desk refuses the rest regardless.',
|
|
726
|
+
'Start from the desk\'s status, not from individual records: the reminder the desk injects when a WTF-P turn starts, or `extension_wtfp__status` inside an advance run or after this action writes. Then read only the records and artifacts this action will change, quote or check in detail.',
|
|
637
727
|
...(action.produces.some((output) => output.uri.startsWith('project://paper'))
|
|
638
728
|
? ['Before drafting or dispatching a writer for a section, call `extension_wtfp__readiness` with its ID. If it reports the section not ready, stop and report its reasons; never draft around them. Give each dispatched writer `intent.write_roots` naming only its section\'s manuscript and summary; the desk narrows or refuses anything wider.'] : []),
|
|
729
|
+
...(archives(action)
|
|
730
|
+
? ['Make the milestone archive with `extension_wtfp__archive` and its archive id: it copies every `.planning` record and artifact and every `paper/` file into `.planning/archives/<archive>/` with a sha256 manifest, so never copy files by hand. Then record the archive in the manifest and state and write the validation, as the procedure says.'] : []),
|
|
639
731
|
...(action.produces.some((output) => output.uri.startsWith('project://paper')) && action.id !== 'write-section'
|
|
640
732
|
? ['After changing a linked section manuscript, call `extension_wtfp__measure_section` with that section ID; it persists the desk\'s body-word count in the section and state.'] : []),
|
|
641
733
|
`If desk tools are absent, follow \`\${pluginRoot}/workflows/${action.id}.md\` and \`\${pluginRoot}/project/README.md\` with native tools and \`ask_user\` gates.`
|
|
@@ -643,12 +735,52 @@ function clioDeskWorkflowBody(action, workflowBody) {
|
|
|
643
735
|
return `${body}\n\n${bindings.join('\n')}`;
|
|
644
736
|
}
|
|
645
737
|
|
|
738
|
+
// Argument shapes for the desk tools. A gateway describe resends the whole
|
|
739
|
+
// context, so a prompt that states the shapes lets the model call at once.
|
|
740
|
+
const CLIO_DESK_ARGS = Object.freeze({
|
|
741
|
+
status: '{}',
|
|
742
|
+
next_step: '{after}',
|
|
743
|
+
read_record: '{uri}',
|
|
744
|
+
readiness: '{section}',
|
|
745
|
+
measure_section: '{section}',
|
|
746
|
+
archive: '{archive}',
|
|
747
|
+
gate: '{checkpoint}',
|
|
748
|
+
record: '{uri, record: {<every field of the record>}, expect_revision|expect_sha256} or {writes:[{uri, record, expect_...}]}, with no record field outside `record`'
|
|
749
|
+
});
|
|
750
|
+
|
|
751
|
+
function clioDeskCalls(tools) {
|
|
752
|
+
const args = tools.map((tool) => {
|
|
753
|
+
const name = tool.replace(/^extension_wtfp__/, '');
|
|
754
|
+
if (!(name in CLIO_DESK_ARGS)) throw new Error(`no Clio argument shape for desk tool ${tool}`);
|
|
755
|
+
return `${name} ${CLIO_DESK_ARGS[name]}`;
|
|
756
|
+
});
|
|
757
|
+
return `Call desk tools with \`gateway(op="call", capability="extension_wtfp__<tool>", args={...})\`, without a describe first; args: ${args.join(', ')}. Describe one only after it rejects its arguments. A record write that would not validate, or reports a stale read or a missing version, asks you to fix the record or read it again and resend; that is not a refusal. Any other error or refusal stops the action; never bypass it with a manual write or shell script. \`read_record\` on a family URI, such as \`project://sources\` or \`project://evidence\`, returns that family's records in one call, and names a \`?after=\` page for any it holds back; list a family that way, never with a shell. It serves JSON records only; read authored artifacts directly: \`project://sections/{s}/context\`, \`research\`, \`summary\` and \`handoff\` are \`.planning/sections/{s}/<name>.md\`, plans and reviews are \`.planning/sections/{s}/plans/<id>.md\` and \`reviews/<id>.md\`, and \`project://paper/{a}\` is \`paper/{a}.md\`.`;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
// The Clio projection of the workflow.drive capability. The desk, not the
|
|
761
|
+
// model, picks each step and arms the write guard for exactly that action.
|
|
762
|
+
function clioDriverBinding() {
|
|
763
|
+
return [
|
|
764
|
+
'## Clio driver binding',
|
|
765
|
+
'',
|
|
766
|
+
`${clioDeskCalls([...CLIO_DESK_TOOLS, CLIO_DRIVER_TOOL])} If \`extension_wtfp__next_step\` is absent, the WTF-P desk extension is not running: report that \`advance\` needs it and stop without running any action.`,
|
|
767
|
+
'',
|
|
768
|
+
'Call `extension_wtfp__next_step` with `after` set to `"start"`, and on every later call to the step you just finished, such as `"write-section introduction"` or `"gate confirm-plan-introduction"`; Clio\'s loop guard reads repeated identical calls as a loop. Its result names exactly one of:',
|
|
769
|
+
'',
|
|
770
|
+
'- `step`: an action, a section when the action takes one, and the step\'s prompt path relative to the plugin root. The desk has armed its write guard for that action and section only. Read `${pluginRoot}/` followed by that whole path, such as `${pluginRoot}/ai.iowarp.clio/prompts/wtfp/write-section.md`, and follow it as if the author had typed `/wtfp:<action> <section>`: the section is its invocation input, and paths it writes under the plugin-root placeholder are under `${pluginRoot}`. Load the skill it names before acting. When the action completes, call `extension_wtfp__next_step` again.',
|
|
771
|
+
'- `gate`: a checkpoint ID. Call `extension_wtfp__gate` with it; the desk interviews the author and seals the answer. Then call `extension_wtfp__next_step` again.',
|
|
772
|
+
'- `stop`: the reason the run ends. Report it with the steps taken and end the turn.',
|
|
773
|
+
'',
|
|
774
|
+
'Never choose, skip, repeat or reorder an action, invoke another `/wtfp:` prompt, or dispatch a WTF-P role outside a step the desk armed. If a step fails, is blocked, or its tools refuse a call, stop and report it; do not call `extension_wtfp__next_step` to get past a failure. The desk stops a step that would repeat with no change, a gate the author kept pending or declined, and a run past its step limit. Every `extension_wtfp__next_step` result restates this rule and where its step\'s prompt lives, so if the conversation was compacted, continue from the last result.'
|
|
775
|
+
].join('\n');
|
|
776
|
+
}
|
|
777
|
+
|
|
646
778
|
function clioResearchConnectionBody(action) {
|
|
647
779
|
if (action.id !== 'research-gap') return '';
|
|
648
780
|
return [
|
|
649
781
|
'## Clio CiteNexus binding',
|
|
650
782
|
'',
|
|
651
|
-
'
|
|
783
|
+
'At yolo autonomy, search through the operator\'s CiteNexus MCP server, declared as `cite-nexus` with read-class tools in their user configuration. This prompt admits its four lookup capabilities, so call them directly without a gateway `find` or `describe`, each of which resends the whole context: `gateway(op="call", capability="mcp_cite-nexus__search-papers", args={query, providers, limit})` with a bounded public metadata query, `providers` drawn from `crossref`, `datacite`, `europe_pmc` and `arxiv`, and `limit` at most 10 per provider; results are compact, without abstracts. Check a candidate with `mcp_cite-nexus__resolve-paper` `{identifier}` or `mcp_cite-nexus__verify-citation` `{citation, expected_title, expected_year}`, and fetch a reference with `mcp_cite-nexus__get-citation` `{identifier, format}`. MCP connections are session-owned and unavailable in delegated workers, so pass the returned candidates and provenance to `wtfp-research-synthesizer` instead of asking that worker to discover the MCP server. This user-configured read connection is prior authorization for those searches; do not call `ask_user` again for each query. Only if the gateway reports no MCP server named `cite-nexus` may yolo instead run the bundled `citation-search --backend=cite-nexus` through its declared dispatcher with bounded public queries and an explicit `--providers` list containing only `crossref`, `datacite`, `europe_pmc`, or `arxiv`; pass those candidates to the same specialist. An operator-set offline flag, unavailable companion, or host refusal stops this route. Other providers and modes follow the declared user gate. Never bypass a gateway refusal by rerunning the same denied request through `bash`. Record the exact provider IDs, queries, limits, date, and provenance; verify each retained candidate before citing it.'
|
|
652
784
|
].join('\n');
|
|
653
785
|
}
|
|
654
786
|
|
|
@@ -707,7 +839,13 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
|
|
|
707
839
|
`WTF-P ${model.version} on Clio Coder: evidence-grounded academic writing`,
|
|
708
840
|
'',
|
|
709
841
|
'Start here',
|
|
710
|
-
...HELP_START_SEQUENCE.
|
|
842
|
+
...HELP_START_SEQUENCE.flatMap((id) => [
|
|
843
|
+
` /wtfp:${id} ${helpArgumentHint(byId.get(id))}`,
|
|
844
|
+
// Once there is an outline, the desk can run the steps that follow until a decision is the author's.
|
|
845
|
+
...(id === 'create-outline' && availabilityById.get('advance')?.available
|
|
846
|
+
? [` /wtfp:advance ${helpArgumentHint(byId.get('advance'))} or let the desk run the steps below until a decision is yours`]
|
|
847
|
+
: [])
|
|
848
|
+
]),
|
|
711
849
|
'',
|
|
712
850
|
...HELP_GROUP_ORDER.flatMap(([skillId, title]) => {
|
|
713
851
|
const skill = model.catalog.skills.find((entry) => entry.id === skillId);
|
|
@@ -747,6 +885,10 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
|
|
|
747
885
|
// /wtfp:wtfp:new-paper in current Claude Code releases.
|
|
748
886
|
if (target !== 'clio' && target !== 'claude') lines.push(`name: wtfp:${action.id}`);
|
|
749
887
|
lines.push(`description: ${yamlScalar(action.description)}`);
|
|
888
|
+
// Without the desk there is no driver to select steps; never let a model drive itself.
|
|
889
|
+
if (availability.available && target === 'clio' && !deskTools && action.requirements.capabilities.includes('workflow.drive')) {
|
|
890
|
+
availability = { ...availability, available: false, unavailableCapabilities: ['workflow.drive'], unavailableEffects: [] };
|
|
891
|
+
}
|
|
750
892
|
if (!availability.available) {
|
|
751
893
|
if (target === 'claude' || target === 'copilot' || target === 'antigravity') {
|
|
752
894
|
lines.push('allowed-tools: []');
|
|
@@ -764,8 +906,10 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
|
|
|
764
906
|
}
|
|
765
907
|
if (target === 'clio') {
|
|
766
908
|
lines.push('allowed-tools:');
|
|
767
|
-
|
|
768
|
-
const
|
|
909
|
+
const inline = new Set(clioInlineRoles(action, reviewers, deskTools));
|
|
910
|
+
const dispatched = { ...action, delegation: action.delegation.filter((entry) => !inline.has(entry.role)) };
|
|
911
|
+
for (const tool of clioActionTools(dispatched, deskTools)) lines.push(` - ${tool}`);
|
|
912
|
+
const delegated = clioDelegatedTools(dispatched, reviewers);
|
|
769
913
|
if (delegated.length > 0) {
|
|
770
914
|
lines.push('delegated-tools:');
|
|
771
915
|
for (const tool of delegated) lines.push(` - ${tool}`);
|
|
@@ -776,7 +920,9 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
|
|
|
776
920
|
// Clio refuses a read-only recipe a task it reads as a change; a task that reads as a review never is.
|
|
777
921
|
const clioReviewers = action.delegation.filter((entry) => reviewers.has(entry.role)).map((entry) => `\`wtfp-${entry.role}\``);
|
|
778
922
|
const reviewerPhrasing = clioReviewers.length ? ` ${clioReviewers.join(', ')} ${clioReviewers.length === 1 ? 'is' : 'are'} read-only: begin each task for ${clioReviewers.length === 1 ? 'it' : 'them'} with "Review", because Clio refuses a read-only agent a task it reads as a change.` : '';
|
|
779
|
-
const
|
|
923
|
+
const inlineRoles = target === 'clio' ? clioInlineRoles(action, reviewers, deskTools) : [];
|
|
924
|
+
const inlineBody = inlineRoles.length ? `## Clio role binding\n\nThis action writes only JSON records, which on Clio only \`extension_wtfp__record\` writes, so a dispatched ${inlineRoles.map((role) => `\`wtfp-${role}\``).join(', ')} would have nothing it may write and the desk refuses it. Do ${inlineRoles.length === 1 ? 'that role\'s' : 'those roles\''} work in this turn yourself, following the skill loaded above, and write each record through \`extension_wtfp__record\`. Do not dispatch ${inlineRoles.length === 1 ? 'it' : 'them'}.` : '';
|
|
925
|
+
const userGateBody = target === 'clio' ? [clioUserGateBody(action, deskTools), clioResearchConnectionBody(action), inlineBody, action.delegation.length > inlineRoles.length ? `## Clio role-result binding\n\nDispatch the declared specialist roles using these exact Clio agent IDs: ${clioRoles}. Do not substitute generic coder or verifier agents. Give every dispatched task an \`agent\` and an \`intent\` with workspace-relative \`read_roots\`, and keep absolute paths and \`project://\` URIs out of the task text, so Clio admits the scope you declare instead of inferring one from the prose. If a named agent is unavailable, report that blocker and stop instead of silently changing roles.${reviewerPhrasing}\n\nRead the single wtfp.role-result entry in native validations and parse its evidence string as portable role-result JSON.${clioReviewers.length ? ` A read-only reviewer returns only a verdict and checks, no wtfp.role-result entry: treat its report as completed, each failed check as an issue, and a fail verdict as a revise recommendation. Clio's dispatch result calls such a run's validation failed when a check did not pass; that is the review's finding, not a failed run, so record it as the action's procedure says.` : ''} Validate its schema, role and action against the dispatched task. Missing, duplicate or malformed outcomes fail closed. On needs_input ask the author through ask_user and redispatch with the response; on blocked or failed stop and report the issue. Only completed permits downstream work, and it never substitutes for an author gate or artifact readback.` : ''].filter(Boolean).join('\n\n') : '';
|
|
780
926
|
lines.push(
|
|
781
927
|
'---',
|
|
782
928
|
'',
|
|
@@ -963,7 +1109,11 @@ function clioToolList(entries) {
|
|
|
963
1109
|
return `[${entries.map((entry) => (typeof entry === 'string' ? entry : `{anyOf: [${entry.anyOf.join(', ')}]}`)).join(', ')}]`;
|
|
964
1110
|
}
|
|
965
1111
|
|
|
966
|
-
const CLIO_DESK_TOOLS = Object.freeze(['record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
|
|
1112
|
+
const CLIO_DESK_TOOLS = Object.freeze(['status', 'record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
|
|
1113
|
+
// Held only by actions that require workflow.drive: the desk arms each step itself.
|
|
1114
|
+
const CLIO_DRIVER_TOOL = 'extension_wtfp__next_step';
|
|
1115
|
+
// The CiteNexus lookups the research binding calls, under the server id CiteNexus documents.
|
|
1116
|
+
const CLIO_CITE_NEXUS_TOOLS = Object.freeze(['search-papers', 'resolve-paper', 'verify-citation', 'get-citation'].map((tool) => `mcp_cite-nexus__${tool}`));
|
|
967
1117
|
|
|
968
1118
|
// The tools one Clio prompt's turn may hold (allowed-tools), from the Clio
|
|
969
1119
|
// bindings of the action's declared capabilities. Clio 0.6.3 narrows a
|
|
@@ -975,10 +1125,14 @@ function clioActionTools(action, deskTools) {
|
|
|
975
1125
|
const tools = ['read', 'grep', 'find', 'ls', 'context'];
|
|
976
1126
|
if (capabilities.has('filesystem.write') || capabilities.has('filesystem.delete')) tools.push('write', 'edit');
|
|
977
1127
|
if (capabilities.has('user.interaction')) tools.push('ask_user');
|
|
978
|
-
if (capabilities.has('agent.delegate') || capabilities.has('agent.parallel')) tools.push('dispatch', 'monitor');
|
|
1128
|
+
if ((capabilities.has('agent.delegate') || capabilities.has('agent.parallel')) && action.delegation.length > 0) tools.push('dispatch', 'monitor');
|
|
979
1129
|
if (capabilities.has('network.fetch')) tools.push('web_fetch');
|
|
980
1130
|
if (capabilities.has('tool.execute') || capabilities.has('network.search')) tools.push('bash');
|
|
981
|
-
if (deskTools) tools.push(...
|
|
1131
|
+
if (deskTools) tools.push(...clioDeskTools(action));
|
|
1132
|
+
if (deskTools && capabilities.has('workflow.drive')) tools.push(CLIO_DRIVER_TOOL);
|
|
1133
|
+
// Clio admits an MCP server's tools only when the turn names each capability;
|
|
1134
|
+
// the CiteNexus binding would otherwise be refused by the prompt's own scope.
|
|
1135
|
+
if (action.id === 'research-gap' || capabilities.has('workflow.drive')) tools.push(...CLIO_CITE_NEXUS_TOOLS);
|
|
982
1136
|
return tools;
|
|
983
1137
|
}
|
|
984
1138
|
|
|
@@ -997,13 +1151,64 @@ function clioDelegatedTools(action, reviewers) {
|
|
|
997
1151
|
return [...tools].sort();
|
|
998
1152
|
}
|
|
999
1153
|
|
|
1154
|
+
// How each role runs on Clio. `latencyClass` is the routing prior for how long
|
|
1155
|
+
// a run takes; `budget` is the advisory tool-call notice, under Clio's hard
|
|
1156
|
+
// per-run ceiling. Roles that read a whole manuscript or a literature set get
|
|
1157
|
+
// the deep prior and room to read; quick checks stay fast. A read-only checker
|
|
1158
|
+
// gets no project orientation (`projectContextTier: none`): it judges the
|
|
1159
|
+
// artifacts it is handed, so a code-oriented repository summary is only noise
|
|
1160
|
+
// and a source of claims it did not read.
|
|
1161
|
+
const CLIO_ROLE_TUNING = Object.freeze({
|
|
1162
|
+
'argument-verifier': { latency: 'fast', toolCalls: 24, readReserve: 4 },
|
|
1163
|
+
'plan-checker': { latency: 'fast', toolCalls: 24, readReserve: 4 },
|
|
1164
|
+
'section-reviewer': { latency: 'balanced', toolCalls: 40, readReserve: 6 },
|
|
1165
|
+
'coherence-checker': { latency: 'deep', toolCalls: 64, readReserve: 12 },
|
|
1166
|
+
'research-synthesizer': { latency: 'deep', toolCalls: 96, readReserve: 12 },
|
|
1167
|
+
'citation-expert': { latency: 'deep', toolCalls: 96, readReserve: 12 },
|
|
1168
|
+
'citation-formatter': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
|
|
1169
|
+
'outliner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
|
|
1170
|
+
'section-planner': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
|
|
1171
|
+
'section-writer': { latency: 'balanced', toolCalls: 64, readReserve: 8 },
|
|
1172
|
+
'prose-polisher': { latency: 'balanced', toolCalls: 48, readReserve: 6 }
|
|
1173
|
+
});
|
|
1174
|
+
|
|
1175
|
+
// The role-result schema as the object a worker writes. A recipe is resent
|
|
1176
|
+
// with every worker request, and the shape carries what the schema constrains
|
|
1177
|
+
// in a quarter of its bytes: fields, constants, enums, and which are optional.
|
|
1178
|
+
function clioRoleResultShape(schema, slug) {
|
|
1179
|
+
const optional = [];
|
|
1180
|
+
const shape = (node, at) => {
|
|
1181
|
+
const unstated = ['minItems', 'maxItems', 'maxLength', 'pattern', 'format', 'oneOf', 'anyOf', '$ref'].filter((key) => key in node);
|
|
1182
|
+
if (unstated.length > 0) throw new Error(`role-result shape: ${at || 'root'} uses ${unstated.join(', ')}, which the shape does not state`);
|
|
1183
|
+
if ('const' in node) return node.const;
|
|
1184
|
+
if (node.enum) return node.enum.join('|');
|
|
1185
|
+
if (node.type === 'array') return [shape(node.items, `${at}[]`)];
|
|
1186
|
+
if (node.type === 'object') {
|
|
1187
|
+
if (node.additionalProperties !== false) throw new Error(`role-result shape: ${at || 'root'} must close its properties`);
|
|
1188
|
+
const required = new Set(node.required ?? []);
|
|
1189
|
+
return Object.fromEntries(Object.entries(node.properties).map(([name, child]) => {
|
|
1190
|
+
const path = at ? `${at}.${name}` : name;
|
|
1191
|
+
if (!required.has(name)) optional.push(path);
|
|
1192
|
+
return [name, shape(child, path)];
|
|
1193
|
+
}));
|
|
1194
|
+
}
|
|
1195
|
+
if (node.type === 'string') return node.minLength ? '...' : '';
|
|
1196
|
+
throw new Error(`role-result shape: unsupported schema at ${at || 'root'}`);
|
|
1197
|
+
};
|
|
1198
|
+
// The role field names this recipe's role, never the worker's own identity.
|
|
1199
|
+
const object = JSON.stringify({ ...shape(schema, ''), role: slug });
|
|
1200
|
+
return `Portable result object (${schema.$id}): ${object}. Values with | are enums; every field is required${optional.length ? ` except ${optional.map((name) => `\`${name}\``).join(', ')}` : ''}; strings are non-empty unless shown empty; arrays may be empty; add no other field.`;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1000
1203
|
function renderClioRole(role, slug) {
|
|
1204
|
+
const tuning = CLIO_ROLE_TUNING[slug];
|
|
1205
|
+
if (!tuning) throw new Error(`no Clio tuning for role ${slug}`);
|
|
1001
1206
|
const verifier = role.fields.execution_class === 'verifier-report';
|
|
1002
1207
|
const declared = clioRoleTools(verifier);
|
|
1003
1208
|
const required = clioToolList(declared.required);
|
|
1004
1209
|
const optional = clioToolList(declared.optional);
|
|
1005
1210
|
const nativeResult = verifier
|
|
1006
|
-
? 'Your entire final response must be one compact JSON object: {"verdict":"pass|fail","checks":[{"name":"...","passed":true,"evidence":"..."}]}. The verdict must agree with every check. Return at most 12 non-duplicate checks, keep each
|
|
1211
|
+
? 'Your entire final response must be one compact JSON object and nothing else: {"verdict":"pass|fail","checks":[{"name":"...","passed":true,"evidence":"..."}]}. The verdict must agree with every check. Return at most 12 non-duplicate checks, keep each evidence value to one short sentence that cites the artifact and location, keep the complete UTF-8 response at or below 4096 bytes, and emit no Markdown, code fence, analysis, or text outside the object. Where the procedure asks for findings, a status or a summary, the checks and the verdict are that result: a failed check is a finding, and fail means revise. Example: {"verdict":"fail","checks":[{"name":"claim coverage","passed":true,"evidence":"All five claims map to paragraphs P2-P6 of plan-01."},{"name":"word budget","passed":false,"evidence":"Units sum to 830 words, above the 805 ceiling."}]}'
|
|
1007
1212
|
: 'Your entire final response must be one JSON object: {"mutatedPaths":["..."],"validations":[{"name":"...","passed":true,"evidence":"..."}]}. Report only paths changed in this run and validations actually performed.';
|
|
1008
1213
|
return [
|
|
1009
1214
|
'---',
|
|
@@ -1011,21 +1216,26 @@ function renderClioRole(role, slug) {
|
|
|
1011
1216
|
`name: ${yamlScalar(role.fields.name)}`,
|
|
1012
1217
|
`description: ${yamlScalar(roleDescription(role))}`,
|
|
1013
1218
|
`tools: {required: ${required}, optional: ${optional}}`,
|
|
1014
|
-
|
|
1219
|
+
// A worker gets its role body; the action skills are the orchestrator's and tell their reader to dispatch roles.
|
|
1220
|
+
'skills: []',
|
|
1015
1221
|
'audience: custom',
|
|
1016
1222
|
`category: ${verifier ? 'quality' : slug.includes('citation') || slug.includes('research') ? 'research' : slug.includes('plan') || slug === 'outliner' ? 'plan' : 'implement'}`,
|
|
1017
1223
|
`capabilityClass: ${verifier ? 'read-only' : 'workspace-edit'}`,
|
|
1018
|
-
`latencyClass: ${
|
|
1019
|
-
|
|
1020
|
-
`budget: {toolCalls: ${
|
|
1224
|
+
`latencyClass: ${tuning.latency}`,
|
|
1225
|
+
`projectContextTier: ${verifier ? 'none' : 'bounded'}`,
|
|
1226
|
+
`budget: {toolCalls: ${tuning.toolCalls}, readReserve: ${tuning.readReserve}, synthesis: true}`,
|
|
1021
1227
|
`resultContract: {kind: ${verifier ? 'verifier-report' : 'mutation-report'}}`,
|
|
1022
1228
|
'tags: [wtfp, research, portable-protocol]',
|
|
1023
1229
|
'---',
|
|
1024
1230
|
'',
|
|
1025
1231
|
generatedBanner('protocol/roles', slug),
|
|
1026
1232
|
'',
|
|
1233
|
+
// A small model writes the review its long body describes; it reads the output form first.
|
|
1234
|
+
...(verifier ? ['**Output:** your final message is one JSON object, `{"verdict":"pass|fail","checks":[...]}`, and nothing else. Do every step below as checks in that object, not as a Markdown review; the exact form is in the Clio result contract at the end.', ''] : []),
|
|
1027
1235
|
nativeWorkflowBody(roleBodyWithoutPortableResult(role), 'clio'),
|
|
1028
1236
|
'',
|
|
1237
|
+
// Live on Clio 0.8.3, a writer that could not count words returned blocked and stopped the drive.
|
|
1238
|
+
...(/word count/i.test(roleBodyWithoutPortableResult(role)) ? ['On Clio a worker holds no word counter. The dispatching action measures the persisted manuscript after you return and writes that count into the summary, so write the summary without a count. A count you cannot take never blocks this role: return completed when the rest is done.', ''] : []),
|
|
1029
1239
|
'## Clio result contract',
|
|
1030
1240
|
'',
|
|
1031
1241
|
nativeResult,
|
|
@@ -1034,9 +1244,10 @@ function renderClioRole(role, slug) {
|
|
|
1034
1244
|
'File readback establishes inspection, not executed validation. If this role changes files but cannot run the relevant checks with its admitted tools and approved scope, call limitation before returning. Name the exact output paths and checks left unrun, using the applicable reason: no-runner, blocked, out-of-scope, environment, or other. A prose disclaimer is not a limitation receipt. Do not add shell access or run a token command to satisfy the finish gate. Run available authorized checks when required; a limitation never turns an absent or failed check into a pass. Preserve unmeasured validation quality and leave the outstanding checks to the interactive caller.',
|
|
1035
1245
|
''
|
|
1036
1246
|
] : []),
|
|
1037
|
-
'
|
|
1038
|
-
|
|
1039
|
-
|
|
1247
|
+
// A verifier's verdict and checks already determine its role result; nesting a
|
|
1248
|
+
// serialized result inside one check failed every local-model review live.
|
|
1249
|
+
...(verifier ? [] : [clioRoleResultShape(readJson(path.join(PROTOCOL_ROOT, 'schemas/role-result.schema.json')), slug), '']),
|
|
1250
|
+
...(verifier ? [] : ['Preserve the portable role outcome inside the native report. Include exactly one entry named wtfp.role-result in checks (verifier) or validations (mutation report). Its evidence string is that object serialized as JSON. Use status needs_input for author decisions and blocked for missing capabilities; passed is true only for completed. Do not contact the author directly. The orchestrator must parse this evidence, stop on needs_input/blocked/failed, ask the author when needed, and redispatch with the answer. Never infer completion from an empty mutatedPaths list. Keep the embedded result compact enough for the native response budget.']),
|
|
1040
1251
|
''
|
|
1041
1252
|
].join('\n');
|
|
1042
1253
|
}
|
|
@@ -1368,7 +1579,9 @@ function manuscriptGuardActions(model, availabilityById, host) {
|
|
|
1368
1579
|
// substitutes the section an invocation names, and refuses record writes the
|
|
1369
1580
|
// contract does not declare. `paperWriters` are the Clio agent IDs of the
|
|
1370
1581
|
// writing roles that manuscript-producing actions dispatch; the desk confines
|
|
1371
|
-
// them to manuscripts whose sections are ready to draft.
|
|
1582
|
+
// them to manuscripts whose sections are ready to draft. `agents` are the
|
|
1583
|
+
// Clio agent IDs an action's contract delegates to; inside that action the
|
|
1584
|
+
// desk refuses a worker that is none of them. Clio reports which
|
|
1372
1585
|
// workers run read-only, the verifier roles' read-only recipes among them, so
|
|
1373
1586
|
// the guard names none.
|
|
1374
1587
|
function clioWriteGuard(model, availabilityById) {
|
|
@@ -1377,15 +1590,20 @@ function clioWriteGuard(model, availabilityById) {
|
|
|
1377
1590
|
throw new Error('no manuscript-writing action is available on Clio');
|
|
1378
1591
|
}
|
|
1379
1592
|
const verifiers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
|
|
1593
|
+
// A driver action writes nothing under its own name: the desk arms each step
|
|
1594
|
+
// it selects with that step's contract, so it adds no writers and no outputs.
|
|
1595
|
+
const drives = (action) => action.requirements.capabilities.includes('workflow.drive');
|
|
1380
1596
|
const paperWriters = new Set();
|
|
1381
1597
|
for (const action of available) {
|
|
1598
|
+
if (drives(action)) continue;
|
|
1382
1599
|
if (!action.produces.some((output) => output.uri.startsWith('project://paper'))) continue;
|
|
1383
1600
|
for (const entry of action.delegation) if (!verifiers.has(entry.role)) paperWriters.add(`wtfp-${entry.role}`);
|
|
1384
1601
|
}
|
|
1385
1602
|
return stableJson({
|
|
1386
1603
|
schema: 'wtfp.clio-write-guard/v4',
|
|
1387
1604
|
actions: Object.fromEntries(available.map((action) => [action.id, {
|
|
1388
|
-
|
|
1605
|
+
agents: drives(action) ? [] : [...new Set(action.delegation.map((entry) => `wtfp-${entry.role}`))].sort(),
|
|
1606
|
+
produces: drives(action) ? [] : action.produces.map((output) => ({ uri: output.uri, mode: output.mode }))
|
|
1389
1607
|
}])),
|
|
1390
1608
|
paperWriters: [...paperWriters].sort()
|
|
1391
1609
|
});
|
|
@@ -1548,6 +1766,7 @@ function addClioRuntime(plan, model, availabilityById) {
|
|
|
1548
1766
|
addFile(plan, 'runtime/write-guard.json', clioWriteGuard(model, availabilityById));
|
|
1549
1767
|
addFile(plan, 'skins/wtfp.json', source('skins/wtfp.json'));
|
|
1550
1768
|
copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'schemas'), 'project/schemas');
|
|
1769
|
+
copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'templates'), 'project/templates');
|
|
1551
1770
|
copyTree(plan, path.join(PROTOCOL_ROOT, 'actions'), 'actions');
|
|
1552
1771
|
}
|
|
1553
1772
|
|
|
@@ -1947,7 +2166,7 @@ function addToolBundle(plan) {
|
|
|
1947
2166
|
'',
|
|
1948
2167
|
...TOOL_COMMANDS.map((entry) => `- \`${entry.usage}\` → \`${entry.tool}\` (${effectsByToolId.get(entry.tool).length > 0 ? effectsByToolId.get(entry.tool).join(', ') : 'no declared effects'})`),
|
|
1949
2168
|
'',
|
|
1950
|
-
'For declared scholarly discovery, `citation-search --backend=cite-nexus --query="<topic>"` uses the separately installed `cite-nexus-wtfp` companion and its real MCP stdio server. Defaults are Crossref, DataCite and Europe PMC. Select providers explicitly with `--providers`. The `research-gap`
|
|
2169
|
+
'For declared scholarly discovery, `citation-search --backend=cite-nexus --query="<topic>"` uses the separately installed `cite-nexus-wtfp` companion and its real MCP stdio server. Defaults are Crossref, DataCite and Europe PMC. Select providers explicitly with `--providers`. The `research-gap` yolo route may use only free no-key public indexes (`crossref`, `datacite`, `europe_pmc`, `arxiv`) without another per-query gate; other routes require action approval naming providers and query scope. CiteNexus supports only balanced provider ordering, so omit `--intent` or use `--intent=balanced`. Results remain candidates: retain `citeNexus.sources`, field attribution, metrics, warnings and `metadata.errors`; do not infer verification or combine citation counts. The result limit is a displayed total; `metadata.total` counts the fetched deduplicated page, not the full corpus. Unavailable enrichment fails explicitly without falling back to another vendor. `WTFP_CITE_NEXUS_COMMAND` may name an absolute installed companion executable; it is operator configuration, never source content. No package is installed, server registered, or user profile changed by a tool call. Offline mode refuses this backend before process launch. Host capability blockers still apply.',
|
|
1951
2170
|
'',
|
|
1952
2171
|
'Every command prints one JSON document on stdout and reports failures as `{"error": "..."}` on stderr with exit status 1. Queries are capped at 512 characters, file paths at 4096, and result limits at 25. A symlinked file is accepted and read through its resolved target, which must be a regular file. Commands whose effects include `network.*` perform outbound requests to the declared scholarly indexes; pass `--offline` or set `WTFP_TOOL_OFFLINE=1` to refuse them, which is the mechanical form of "do not invoke a network-capable bibliography tool through a filesystem-only permission path". Each network command has a hard wall clock, `--timeout=<seconds>` (default 20, maximum 600); on expiry it reports `{"error": "<command> timed out after N s"}` on stderr and exits 124. `bib-impact` reports batch progress on stderr. `bib-index` flags repeated keys with `duplicate: true` and lists them under `duplicates`; `--key` refuses an ambiguous key. `bib-format` emits a standard BibTeX entry (`@article`, `@inproceedings`, ...) by default; `--style=al-folio` selects the Jekyll al-folio projection, which is not valid BibTeX. Do not execute any other module in this package directly, and do not pass a logical `project://` or `wtfp://` URI as a shell argument.',
|
|
1953
2172
|
''
|
|
@@ -2108,9 +2327,8 @@ function compilePlans(options = {}) {
|
|
|
2108
2327
|
const native = /^(prompts|agents|playbooks)\//.test(file);
|
|
2109
2328
|
const actionId = /^prompts\/wtfp\/([a-z-]+)\.md$/.exec(file)?.[1];
|
|
2110
2329
|
const action = actionId && model.actions.find((entry) => entry.id === actionId);
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
const projected = usesRecords && availabilityByTarget.get('clio').get(actionId).available
|
|
2330
|
+
// Every action Clio can run reads records through the desk, so none needs the schema dump a desk-less host gets.
|
|
2331
|
+
const projected = action && action.id !== 'help' && availabilityByTarget.get('clio').get(actionId).available
|
|
2114
2332
|
? renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(actionId), true, reviewers)
|
|
2115
2333
|
: content;
|
|
2116
2334
|
addFile(portable, native ? `ai.iowarp.clio/${file}` : file, projected);
|
|
@@ -2214,7 +2432,7 @@ function compilePlans(options = {}) {
|
|
|
2214
2432
|
'',
|
|
2215
2433
|
'Copy the contents of this directory into a repository root when GitHub Copilot coding agents must discover WTF-P without a user-level plugin installation.',
|
|
2216
2434
|
'',
|
|
2217
|
-
|
|
2435
|
+
`The \`.github/\` tree is generated from the canonical protocol. It contains ${model.actions.length} prompt files, 11 custom agents, seven Agent Skills, and the bound portable protocol resources. Do not edit the projection directly; change \`protocol/\` or the adapter compiler and regenerate.`,
|
|
2218
2436
|
''
|
|
2219
2437
|
].join('\n'));
|
|
2220
2438
|
plans.push(copilotMarketplace);
|