wtf-p 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/bin/lib/adapter-compiler.js +154 -35
- package/bin/lib/clio-registration.js +44 -17
- package/bin/uninstall.js +19 -4
- package/package.json +3 -3
- package/protocol/actions/checkpoint.json +10 -1
- package/protocol/actions/execute-outline.json +10 -2
- package/protocol/actions/export-latex.json +15 -2
- package/protocol/actions/plan-revision.json +17 -4
- package/protocol/actions/polish-prose.json +13 -3
- package/protocol/actions/research-gap.json +16 -3
- package/protocol/actions/verify-work.json +7 -2
- package/protocol/project/README.md +37 -0
- package/protocol/project/schemas/interaction.schema.json +100 -0
- package/protocol/project/templates/interaction.json +16 -0
- package/protocol/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/protocol/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/protocol/skills/wtfp-plan-section/SKILL.md +1 -1
- package/protocol/skills/wtfp-plan-section/references/actions.md +4 -3
- package/protocol/skills/wtfp-research-literature/SKILL.md +1 -1
- package/protocol/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/protocol/skills/wtfp-write-section/SKILL.md +1 -1
- package/protocol/skills/wtfp-write-section/references/actions.md +1 -1
- package/protocol/workflows/checkpoint.md +2 -2
- package/protocol/workflows/execute-outline.md +2 -2
- package/protocol/workflows/export-latex.md +4 -4
- package/protocol/workflows/plan-revision.md +4 -3
- package/protocol/workflows/plan-section.md +2 -2
- package/protocol/workflows/polish-prose.md +3 -3
- package/protocol/workflows/research-gap.md +2 -2
- package/protocol/workflows/verify-work.md +3 -3
- package/protocol/workflows/write-section.md +2 -2
- package/vendors/antigravity/.wtfp-generated.json +172 -172
- package/vendors/antigravity/actions/checkpoint.json +10 -1
- package/vendors/antigravity/actions/execute-outline.json +10 -2
- package/vendors/antigravity/actions/export-latex.json +15 -2
- package/vendors/antigravity/actions/plan-revision.json +17 -4
- package/vendors/antigravity/actions/polish-prose.json +13 -3
- package/vendors/antigravity/actions/research-gap.json +16 -3
- package/vendors/antigravity/actions/verify-work.json +7 -2
- package/vendors/antigravity/plugin.json +2 -1
- package/vendors/antigravity/project/README.md +37 -0
- package/vendors/antigravity/project/schemas/interaction.schema.json +100 -0
- package/vendors/antigravity/project/templates/interaction.json +16 -0
- package/vendors/antigravity/rules/wtfp-project-state.md +41 -1
- package/vendors/antigravity/{commands/wtfp-add-todo.md → skills/wtfp-add-todo/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-analyze-bib.md → skills/wtfp-analyze-bib/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-audit-milestone.md → skills/wtfp-audit-milestone/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-check-refs.md → skills/wtfp-check-refs/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-check-todos.md → skills/wtfp-check-todos/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-checkpoint.md → skills/wtfp-checkpoint/SKILL.md} +4 -3
- package/vendors/antigravity/{commands/wtfp-contribute.md → skills/wtfp-contribute/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-create-outline.md → skills/wtfp-create-outline/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-create-poster.md → skills/wtfp-create-poster/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-create-slides.md → skills/wtfp-create-slides/SKILL.md} +2 -1
- package/vendors/antigravity/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/antigravity/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/antigravity/{commands/wtfp-discuss-section.md → skills/wtfp-discuss-section/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-execute-outline.md → skills/wtfp-execute-outline/SKILL.md} +4 -3
- package/vendors/antigravity/{commands/wtfp-export-latex.md → skills/wtfp-export-latex/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-help.md → skills/wtfp-help/SKILL.md} +3 -2
- package/vendors/antigravity/{commands/wtfp-insert-section.md → skills/wtfp-insert-section/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-list-assumptions.md → skills/wtfp-list-assumptions/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-map-project.md → skills/wtfp-map-project/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-new-paper.md → skills/wtfp-new-paper/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-pause-writing.md → skills/wtfp-pause-writing/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-plan-milestone-gaps.md → skills/wtfp-plan-milestone-gaps/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-plan-revision.md → skills/wtfp-plan-revision/SKILL.md} +10 -4
- package/vendors/antigravity/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/antigravity/{commands/wtfp-polish-prose.md → skills/wtfp-polish-prose/SKILL.md} +9 -4
- package/vendors/antigravity/{commands/wtfp-progress.md → skills/wtfp-progress/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-quick.md → skills/wtfp-quick/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-remove-section.md → skills/wtfp-remove-section/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-report-bug.md → skills/wtfp-report-bug/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-request-feature.md → skills/wtfp-request-feature/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-research-gap.md → skills/wtfp-research-gap/SKILL.md} +2 -1
- package/vendors/antigravity/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/antigravity/{commands/wtfp-resume-writing.md → skills/wtfp-resume-writing/SKILL.md} +2 -1
- package/vendors/antigravity/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/antigravity/{commands/wtfp-review-section.md → skills/wtfp-review-section/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-settings.md → skills/wtfp-settings/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-submit-milestone.md → skills/wtfp-submit-milestone/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-update.md → skills/wtfp-update/SKILL.md} +2 -1
- package/vendors/antigravity/{commands/wtfp-verify-work.md → skills/wtfp-verify-work/SKILL.md} +5 -4
- package/vendors/antigravity/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/antigravity/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/antigravity/workflows/checkpoint.md +2 -2
- package/vendors/antigravity/workflows/execute-outline.md +2 -2
- package/vendors/antigravity/workflows/export-latex.md +4 -4
- package/vendors/antigravity/workflows/plan-revision.md +4 -3
- package/vendors/antigravity/workflows/plan-section.md +2 -2
- package/vendors/antigravity/workflows/polish-prose.md +3 -3
- package/vendors/antigravity/workflows/research-gap.md +2 -2
- package/vendors/antigravity/workflows/verify-work.md +3 -3
- 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 +84 -76
- package/vendors/claude/actions/checkpoint.json +10 -1
- package/vendors/claude/actions/execute-outline.json +10 -2
- package/vendors/claude/actions/export-latex.json +15 -2
- package/vendors/claude/actions/plan-revision.json +17 -4
- package/vendors/claude/actions/polish-prose.json +13 -3
- package/vendors/claude/actions/research-gap.json +16 -3
- package/vendors/claude/actions/verify-work.json +7 -2
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-argument-verifier.md +3 -3
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-coherence-checker.md +3 -3
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-plan-checker.md +3 -3
- package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-reviewer.md +3 -3
- package/vendors/claude/ai.iowarp.clio/fleets/wtfp-draft-review.md +1 -1
- package/vendors/claude/ai.iowarp.clio/fleets/wtfp-plan-section.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/add-todo.md +8 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +22 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +10 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +22 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-todos.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/checkpoint.md +11 -2
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +21 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-poster.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-slides.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/discuss-section.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +24 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/export-latex.md +14 -4
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/insert-section.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +6 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/map-project.md +8 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/new-paper.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/pause-writing.md +8 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-revision.md +17 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +24 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +28 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/progress.md +7 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +21 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +25 -2
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/resume-writing.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +19 -1
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/settings.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +9 -0
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/verify-work.md +12 -3
- package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +24 -3
- package/vendors/claude/commands/checkpoint.md +2 -2
- package/vendors/claude/commands/execute-outline.md +2 -2
- package/vendors/claude/commands/export-latex.md +4 -4
- package/vendors/claude/commands/plan-revision.md +8 -3
- package/vendors/claude/commands/plan-section.md +2 -2
- package/vendors/claude/commands/polish-prose.md +7 -3
- package/vendors/claude/commands/research-gap.md +2 -2
- package/vendors/claude/commands/verify-work.md +3 -3
- package/vendors/claude/commands/write-section.md +2 -2
- package/vendors/claude/output-styles/wtfp-academic-writing.md +5 -5
- package/vendors/claude/plugin.json +1 -1
- package/vendors/claude/project/README.md +37 -0
- package/vendors/claude/project/schemas/interaction.schema.json +100 -0
- package/vendors/claude/project/templates/interaction.json +16 -0
- package/vendors/claude/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/claude/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/claude/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/claude/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/claude/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/claude/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/claude/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/claude/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/claude/workflows/checkpoint.md +2 -2
- package/vendors/claude/workflows/execute-outline.md +2 -2
- package/vendors/claude/workflows/export-latex.md +4 -4
- package/vendors/claude/workflows/plan-revision.md +4 -3
- package/vendors/claude/workflows/plan-section.md +2 -2
- package/vendors/claude/workflows/polish-prose.md +3 -3
- package/vendors/claude/workflows/research-gap.md +2 -2
- package/vendors/claude/workflows/verify-work.md +3 -3
- package/vendors/claude/workflows/write-section.md +2 -2
- package/vendors/clio-extension/.wtfp-generated.json +25 -13
- package/vendors/clio-extension/actions/checkpoint.json +10 -1
- package/vendors/clio-extension/actions/execute-outline.json +10 -2
- package/vendors/clio-extension/actions/export-latex.json +15 -2
- package/vendors/clio-extension/actions/plan-revision.json +17 -4
- package/vendors/clio-extension/actions/polish-prose.json +13 -3
- package/vendors/clio-extension/actions/research-gap.json +16 -3
- package/vendors/clio-extension/actions/verify-work.json +7 -2
- package/vendors/clio-extension/clio-coder-extension.yaml +33 -10
- package/vendors/clio-extension/compatibility/action-availability.json +2 -2
- package/vendors/clio-extension/project/schemas/interaction.schema.json +100 -0
- package/vendors/clio-extension/runtime/claim-coverage.cjs +332 -0
- package/vendors/clio-extension/runtime/desk-trust.cjs +112 -0
- package/vendors/clio-extension/runtime/extension.test.ts +1385 -66
- package/vendors/clio-extension/runtime/extension.ts +2226 -473
- package/vendors/clio-extension/runtime/write-guard.json +563 -18
- package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/.wtfp-generated.json +36 -28
- package/vendors/codex/plugins/wtfp/actions/checkpoint.json +10 -1
- package/vendors/codex/plugins/wtfp/actions/execute-outline.json +10 -2
- package/vendors/codex/plugins/wtfp/actions/export-latex.json +15 -2
- package/vendors/codex/plugins/wtfp/actions/plan-revision.json +17 -4
- package/vendors/codex/plugins/wtfp/actions/polish-prose.json +13 -3
- package/vendors/codex/plugins/wtfp/actions/research-gap.json +16 -3
- package/vendors/codex/plugins/wtfp/actions/verify-work.json +7 -2
- package/vendors/codex/plugins/wtfp/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/project/README.md +37 -0
- package/vendors/codex/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
- package/vendors/codex/plugins/wtfp/project/templates/interaction.json +16 -0
- package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/codex/plugins/wtfp/workflows/checkpoint.md +2 -2
- package/vendors/codex/plugins/wtfp/workflows/execute-outline.md +2 -2
- package/vendors/codex/plugins/wtfp/workflows/export-latex.md +4 -4
- package/vendors/codex/plugins/wtfp/workflows/plan-revision.md +4 -3
- package/vendors/codex/plugins/wtfp/workflows/plan-section.md +2 -2
- package/vendors/codex/plugins/wtfp/workflows/polish-prose.md +3 -3
- package/vendors/codex/plugins/wtfp/workflows/research-gap.md +2 -2
- package/vendors/codex/plugins/wtfp/workflows/verify-work.md +3 -3
- package/vendors/codex/plugins/wtfp/workflows/write-section.md +2 -2
- package/vendors/copilot/.wtfp-generated.json +43 -35
- 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 +42 -34
- package/vendors/copilot/plugins/wtfp/actions/checkpoint.json +10 -1
- package/vendors/copilot/plugins/wtfp/actions/execute-outline.json +10 -2
- package/vendors/copilot/plugins/wtfp/actions/export-latex.json +15 -2
- package/vendors/copilot/plugins/wtfp/actions/plan-revision.json +17 -4
- package/vendors/copilot/plugins/wtfp/actions/polish-prose.json +13 -3
- package/vendors/copilot/plugins/wtfp/actions/research-gap.json +16 -3
- package/vendors/copilot/plugins/wtfp/actions/verify-work.json +7 -2
- package/vendors/copilot/plugins/wtfp/commands/wtfp-checkpoint.md +2 -2
- package/vendors/copilot/plugins/wtfp/commands/wtfp-execute-outline.md +2 -2
- package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-revision.md +8 -3
- package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +2 -2
- package/vendors/copilot/plugins/wtfp/commands/wtfp-polish-prose.md +7 -3
- package/vendors/copilot/plugins/wtfp/commands/wtfp-verify-work.md +3 -3
- package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +2 -2
- package/vendors/copilot/plugins/wtfp/project/README.md +37 -0
- package/vendors/copilot/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
- package/vendors/copilot/plugins/wtfp/project/templates/interaction.json +16 -0
- package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/copilot/plugins/wtfp/workflows/checkpoint.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/execute-outline.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/export-latex.md +4 -4
- package/vendors/copilot/plugins/wtfp/workflows/plan-revision.md +4 -3
- package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/polish-prose.md +3 -3
- package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +2 -2
- package/vendors/copilot/plugins/wtfp/workflows/verify-work.md +3 -3
- package/vendors/copilot/plugins/wtfp/workflows/write-section.md +2 -2
- package/vendors/copilot/project/.github/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/copilot/project/.github/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/copilot/project/.github/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/copilot/project/.github/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/actions/checkpoint.json +10 -1
- package/vendors/copilot/project/.github/wtfp/actions/execute-outline.json +10 -2
- package/vendors/copilot/project/.github/wtfp/actions/export-latex.json +15 -2
- package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +17 -4
- package/vendors/copilot/project/.github/wtfp/actions/polish-prose.json +13 -3
- package/vendors/copilot/project/.github/wtfp/actions/research-gap.json +16 -3
- package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +7 -2
- package/vendors/copilot/project/.github/wtfp/project/README.md +37 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/interaction.schema.json +100 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/interaction.json +16 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/copilot/project/.github/wtfp/workflows/checkpoint.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/execute-outline.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/export-latex.md +4 -4
- package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +4 -3
- package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/polish-prose.md +3 -3
- package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +2 -2
- package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +3 -3
- package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +2 -2
- package/vendors/gemini/.wtfp-generated.json +61 -53
- package/vendors/gemini/actions/checkpoint.json +10 -1
- package/vendors/gemini/actions/execute-outline.json +10 -2
- package/vendors/gemini/actions/export-latex.json +15 -2
- package/vendors/gemini/actions/plan-revision.json +17 -4
- package/vendors/gemini/actions/polish-prose.json +13 -3
- package/vendors/gemini/actions/research-gap.json +16 -3
- package/vendors/gemini/actions/verify-work.json +7 -2
- package/vendors/gemini/commands/wtfp/add-todo.toml +37 -0
- package/vendors/gemini/commands/wtfp/check-todos.toml +37 -0
- package/vendors/gemini/commands/wtfp/checkpoint.toml +49 -3
- package/vendors/gemini/commands/wtfp/create-outline.toml +37 -0
- package/vendors/gemini/commands/wtfp/create-poster.toml +40 -3
- package/vendors/gemini/commands/wtfp/create-slides.toml +40 -3
- package/vendors/gemini/commands/wtfp/discuss-section.toml +42 -4
- package/vendors/gemini/commands/wtfp/execute-outline.toml +51 -6
- package/vendors/gemini/commands/wtfp/help.toml +37 -0
- package/vendors/gemini/commands/wtfp/insert-section.toml +42 -4
- package/vendors/gemini/commands/wtfp/list-assumptions.toml +42 -4
- package/vendors/gemini/commands/wtfp/map-project.toml +37 -0
- package/vendors/gemini/commands/wtfp/new-paper.toml +37 -0
- package/vendors/gemini/commands/wtfp/pause-writing.toml +37 -0
- package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +38 -1
- package/vendors/gemini/commands/wtfp/plan-revision.toml +310 -11
- package/vendors/gemini/commands/wtfp/plan-section.toml +44 -6
- package/vendors/gemini/commands/wtfp/polish-prose.toml +281 -7
- package/vendors/gemini/commands/wtfp/progress.toml +37 -0
- package/vendors/gemini/commands/wtfp/quick.toml +39 -2
- package/vendors/gemini/commands/wtfp/resume-writing.toml +37 -0
- package/vendors/gemini/commands/wtfp/review-section.toml +38 -1
- package/vendors/gemini/commands/wtfp/settings.toml +37 -0
- package/vendors/gemini/commands/wtfp/submit-milestone.toml +40 -3
- package/vendors/gemini/commands/wtfp/verify-work.toml +48 -6
- package/vendors/gemini/commands/wtfp/write-section.toml +41 -4
- package/vendors/gemini/gemini-extension.json +1 -1
- package/vendors/gemini/project/README.md +37 -0
- package/vendors/gemini/project/schemas/interaction.schema.json +100 -0
- package/vendors/gemini/project/templates/interaction.json +16 -0
- package/vendors/gemini/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/gemini/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/gemini/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/gemini/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/gemini/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/gemini/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/gemini/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/gemini/workflows/checkpoint.md +2 -2
- package/vendors/gemini/workflows/execute-outline.md +2 -2
- package/vendors/gemini/workflows/export-latex.md +4 -4
- package/vendors/gemini/workflows/plan-revision.md +4 -3
- package/vendors/gemini/workflows/plan-section.md +2 -2
- package/vendors/gemini/workflows/polish-prose.md +3 -3
- package/vendors/gemini/workflows/research-gap.md +2 -2
- package/vendors/gemini/workflows/verify-work.md +3 -3
- package/vendors/gemini/workflows/write-section.md +2 -2
- package/vendors/opencode/.wtfp-generated.json +60 -52
- package/vendors/opencode/actions/checkpoint.json +10 -1
- package/vendors/opencode/actions/execute-outline.json +10 -2
- package/vendors/opencode/actions/export-latex.json +15 -2
- package/vendors/opencode/actions/plan-revision.json +17 -4
- package/vendors/opencode/actions/polish-prose.json +13 -3
- package/vendors/opencode/actions/research-gap.json +16 -3
- package/vendors/opencode/actions/verify-work.json +7 -2
- package/vendors/opencode/commands/wtfp/add-todo.md +37 -0
- package/vendors/opencode/commands/wtfp/check-todos.md +37 -0
- package/vendors/opencode/commands/wtfp/checkpoint.md +49 -3
- package/vendors/opencode/commands/wtfp/create-outline.md +37 -0
- package/vendors/opencode/commands/wtfp/create-poster.md +40 -3
- package/vendors/opencode/commands/wtfp/create-slides.md +40 -3
- package/vendors/opencode/commands/wtfp/discuss-section.md +42 -4
- package/vendors/opencode/commands/wtfp/execute-outline.md +51 -6
- package/vendors/opencode/commands/wtfp/help.md +37 -0
- package/vendors/opencode/commands/wtfp/insert-section.md +42 -4
- package/vendors/opencode/commands/wtfp/list-assumptions.md +42 -4
- package/vendors/opencode/commands/wtfp/map-project.md +37 -0
- package/vendors/opencode/commands/wtfp/new-paper.md +37 -0
- package/vendors/opencode/commands/wtfp/pause-writing.md +37 -0
- package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +38 -1
- package/vendors/opencode/commands/wtfp/plan-revision.md +310 -11
- package/vendors/opencode/commands/wtfp/plan-section.md +44 -6
- package/vendors/opencode/commands/wtfp/polish-prose.md +281 -7
- package/vendors/opencode/commands/wtfp/progress.md +37 -0
- package/vendors/opencode/commands/wtfp/quick.md +39 -2
- package/vendors/opencode/commands/wtfp/resume-writing.md +37 -0
- package/vendors/opencode/commands/wtfp/review-section.md +38 -1
- package/vendors/opencode/commands/wtfp/settings.md +37 -0
- package/vendors/opencode/commands/wtfp/submit-milestone.md +40 -3
- package/vendors/opencode/commands/wtfp/verify-work.md +48 -6
- package/vendors/opencode/commands/wtfp/write-section.md +41 -4
- package/vendors/opencode/project/README.md +37 -0
- package/vendors/opencode/project/schemas/interaction.schema.json +100 -0
- package/vendors/opencode/project/templates/interaction.json +16 -0
- package/vendors/opencode/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/opencode/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/opencode/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/opencode/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/opencode/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/opencode/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/opencode/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/opencode/workflows/checkpoint.md +2 -2
- package/vendors/opencode/workflows/execute-outline.md +2 -2
- package/vendors/opencode/workflows/export-latex.md +4 -4
- package/vendors/opencode/workflows/plan-revision.md +4 -3
- package/vendors/opencode/workflows/plan-section.md +2 -2
- package/vendors/opencode/workflows/polish-prose.md +3 -3
- package/vendors/opencode/workflows/research-gap.md +2 -2
- package/vendors/opencode/workflows/verify-work.md +3 -3
- package/vendors/opencode/workflows/write-section.md +2 -2
- package/vendors/plugin/.wtfp-generated.json +73 -65
- package/vendors/plugin/actions/checkpoint.json +10 -1
- package/vendors/plugin/actions/execute-outline.json +10 -2
- package/vendors/plugin/actions/export-latex.json +15 -2
- package/vendors/plugin/actions/plan-revision.json +17 -4
- package/vendors/plugin/actions/polish-prose.json +13 -3
- package/vendors/plugin/actions/research-gap.json +16 -3
- package/vendors/plugin/actions/verify-work.json +7 -2
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-argument-verifier.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-coherence-checker.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-plan-checker.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-reviewer.md +3 -3
- package/vendors/plugin/ai.iowarp.clio/playbooks/wtfp-draft-review.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/playbooks/wtfp-plan-section.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +15 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +30 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +18 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +30 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +19 -5
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +29 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-poster.md +9 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-slides.md +9 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +33 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +26 -21
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +6 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +15 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +15 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +25 -18
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +32 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +33 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +7 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +30 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +33 -5
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +27 -4
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +17 -3
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +20 -6
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +33 -6
- package/vendors/plugin/compatibility/action-availability.json +2 -2
- package/vendors/plugin/plugin.json +2 -2
- package/vendors/plugin/project/README.md +37 -0
- package/vendors/plugin/project/schemas/interaction.schema.json +100 -0
- package/vendors/plugin/project/templates/interaction.json +16 -0
- package/vendors/plugin/skills/wtfp-deliver-research/SKILL.md +1 -1
- package/vendors/plugin/skills/wtfp-deliver-research/references/actions.md +2 -2
- package/vendors/plugin/skills/wtfp-plan-section/SKILL.md +1 -1
- package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +4 -3
- package/vendors/plugin/skills/wtfp-research-literature/SKILL.md +1 -1
- package/vendors/plugin/skills/wtfp-review-manuscript/SKILL.md +1 -1
- package/vendors/plugin/skills/wtfp-write-section/SKILL.md +1 -1
- package/vendors/plugin/skills/wtfp-write-section/references/actions.md +1 -1
- package/vendors/plugin/workflows/checkpoint.md +2 -2
- package/vendors/plugin/workflows/execute-outline.md +2 -2
- package/vendors/plugin/workflows/export-latex.md +4 -4
- package/vendors/plugin/workflows/plan-revision.md +4 -3
- package/vendors/plugin/workflows/plan-section.md +2 -2
- package/vendors/plugin/workflows/polish-prose.md +3 -3
- package/vendors/plugin/workflows/research-gap.md +2 -2
- package/vendors/plugin/workflows/verify-work.md +3 -3
- package/vendors/plugin/workflows/write-section.md +2 -2
- package/vendors/antigravity/commands/wtfp-plan-section.md +0 -78
- package/vendors/antigravity/commands/wtfp-write-section.md +0 -77
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ the scientific judgment. The agent keeps the bookkeeping and does bounded jobs.
|
|
|
19
19
|
|
|
20
20
|
It ships as one canonical [Agent Plugins 1.0.0](https://agent-plugins.org)
|
|
21
21
|
bundle that a deterministic compiler projects into a native package for seven
|
|
22
|
-
coding-agent hosts. Version `0.8.
|
|
22
|
+
coding-agent hosts. Version `0.8.1` is the current stable release and is
|
|
23
23
|
what npm `latest` resolves to; v0.5 remains installable by explicit version.
|
|
24
24
|
|
|
25
25
|
**Optional CiteNexus research backend (since 0.7.0):** `citation-search --backend=cite-nexus`
|
|
@@ -56,18 +56,18 @@ registers it with the host's native plugin lifecycle where one exists.
|
|
|
56
56
|
|
|
57
57
|
| Host | Install | Native registration the installer performs | Verified with |
|
|
58
58
|
| --- | --- | --- | --- |
|
|
59
|
-
| Clio Coder (0.6.
|
|
60
|
-
| Claude Code | `npx --yes --package=wtf-p@0.8.
|
|
61
|
-
| Codex | `npx --yes --package=wtf-p@0.8.
|
|
62
|
-
| GitHub Copilot CLI | `npx --yes --package=wtf-p@0.8.
|
|
63
|
-
| OpenCode | `npx --yes --package=wtf-p@0.8.
|
|
64
|
-
| Antigravity CLI | `npx --yes --package=wtf-p@0.8.
|
|
65
|
-
| Gemini CLI | `npx --yes --package=wtf-p@0.8.
|
|
59
|
+
| Clio Coder (0.6.3 or newer) | `npx --yes --package=wtf-p@0.8.1 -- wtf-p install clio` | `clio-coder library install <staged-bundle> --user` and `clio-coder library inspect plugin:wtfp --user --json`, then `clio-coder extensions install <staged-extension> --user` and `clio-coder extensions list --user --json` | verified on Clio Coder 0.7.0 pre-release at `8cbece81e`; known limitation: headless no-op exit after a desk write (see COMPATIBILITY) |
|
|
60
|
+
| Claude Code | `npx --yes --package=wtf-p@0.8.1 -- wtf-p install claude` | `claude plugin marketplace add <root>/marketplaces/wtfp --scope user`, then `claude plugin install wtfp@wtfp --scope user -y` | 2.1.319 |
|
|
61
|
+
| Codex | `npx --yes --package=wtf-p@0.8.1 -- wtf-p install codex` | `codex plugin marketplace add <root>/marketplaces/wtfp`, then `codex plugin add wtfp@wtfp --json`; agents copied to `$CODEX_HOME/agents/` | 0.163.0 |
|
|
62
|
+
| GitHub Copilot CLI | `npx --yes --package=wtf-p@0.8.1 -- wtf-p install copilot` | `copilot plugin marketplace add <root>/marketplaces/wtfp`, then `copilot plugin install wtfp@wtfp` | 1.0.107 |
|
|
63
|
+
| OpenCode | `npx --yes --package=wtf-p@0.8.1 -- wtf-p install opencode` | Files under the OpenCode config root; OpenCode discovers them by directory | 1.19.5 |
|
|
64
|
+
| Antigravity CLI | `npx --yes --package=wtf-p@0.8.1 -- wtf-p install antigravity` | `agy plugin install <root>/sources/wtfp` | 1.5.3 |
|
|
65
|
+
| Gemini CLI | `npx --yes --package=wtf-p@0.8.1 -- wtf-p install gemini` | Files under `<root>/extensions/wtfp`; Gemini discovers the extension by directory | 0.67.0 |
|
|
66
66
|
|
|
67
67
|
"Verified" means native discovery in a disposable profile on this exact
|
|
68
68
|
envelope, with the commands recorded in
|
|
69
69
|
[Host capabilities](docs/HOST_CAPABILITIES.md). Clio Coder is published as
|
|
70
|
-
`@iowarp/clio-coder`; 0.6.
|
|
70
|
+
`@iowarp/clio-coder`; 0.6.3 and newer carry the plugin and extension engine WTF-P uses.
|
|
71
71
|
Clio Coder itself requires Node.js 22.19 or newer.
|
|
72
72
|
|
|
73
73
|
Keep the explicit `--package=wtf-p@<version> -- wtf-p` form. On a workstation
|
|
@@ -77,7 +77,7 @@ the old executable instead.
|
|
|
77
77
|
## Sixty-second start
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
npx --yes --package=wtf-p@0.8.
|
|
80
|
+
npx --yes --package=wtf-p@0.8.1 -- wtf-p install clio
|
|
81
81
|
cd /path/to/your-paper-or-proposal
|
|
82
82
|
clio-coder --autonomy full-auto
|
|
83
83
|
```
|
|
@@ -202,14 +202,14 @@ const TARGET_POLICIES = Object.freeze({
|
|
|
202
202
|
|
|
203
203
|
// Availability says that a target has a native binding for every required
|
|
204
204
|
// capability and effect. It does not imply that every host can narrow its
|
|
205
|
-
// main-agent tool surface for one prompt
|
|
206
|
-
//
|
|
207
|
-
//
|
|
208
|
-
//
|
|
205
|
+
// main-agent tool surface for one prompt; keep that machine-readable so an
|
|
206
|
+
// evaluation cannot mistake a declaration for enforcement. Clio prompts
|
|
207
|
+
// declare allowed-tools and delegated-tools per action, and Clio 0.6.3, which
|
|
208
|
+
// the desk requires, narrows a template turn to them and caps its workers.
|
|
209
209
|
const TARGET_HOST_TOOL_ENFORCEMENT = Object.freeze({
|
|
210
210
|
clio: Object.freeze({
|
|
211
|
-
actionScoped:
|
|
212
|
-
surface: 'clio:
|
|
211
|
+
actionScoped: true,
|
|
212
|
+
surface: 'clio:template-allowed-tools',
|
|
213
213
|
certificationAutonomy: Object.freeze(['read-only', 'suggest']),
|
|
214
214
|
undeclaredToolCall: 'fail'
|
|
215
215
|
})
|
|
@@ -465,6 +465,11 @@ function nativeWorkflowBody(workflowBody, target) {
|
|
|
465
465
|
body = body.replaceAll('protocol://', '.github/wtfp/');
|
|
466
466
|
} else if (target === 'antigravity') {
|
|
467
467
|
body = body.replaceAll('protocol://', '${PLUGIN_ROOT}/');
|
|
468
|
+
// Antigravity exposes plugin actions only as skills, invoked by skill name.
|
|
469
|
+
body = body.replace(
|
|
470
|
+
"this host's own invocation syntax, `/wtfp:<action>`. Do not invent a second spelling, a bare `wtfp-<action>` form, or a host-specific prefix.",
|
|
471
|
+
"Antigravity's invocation syntax, `/wtfp-<action>`, because Antigravity loads plugin actions as skills. Do not invent a second spelling."
|
|
472
|
+
);
|
|
468
473
|
} else if (target === 'gemini' || target === 'opencode' || target === 'codex') {
|
|
469
474
|
// None of these hosts exposes a reliable runtime variable for resolving
|
|
470
475
|
// files in command/agent prompt text. Embed the referenced resources so
|
|
@@ -603,7 +608,7 @@ function clioUserGateBody(action, deskTools = false) {
|
|
|
603
608
|
if (deskTools) return [
|
|
604
609
|
'## Clio user-gate binding',
|
|
605
610
|
'',
|
|
606
|
-
'For a pending checkpoint in the declared gate\'s exact scope, call `extension_wtfp__gate` with its ID. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. Only the structured author answer satisfies the gate; cancelled,
|
|
611
|
+
'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. Create a missing pending checkpoint through `extension_wtfp__record` only when this action declares checkpoint creation; otherwise use `ask_user` for the unpersisted author decision and do not invent an undeclared output. 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.'
|
|
607
612
|
].join('\n');
|
|
608
613
|
return [
|
|
609
614
|
'## Clio user-gate binding',
|
|
@@ -619,7 +624,7 @@ function clioDeskWorkflowBody(action, workflowBody) {
|
|
|
619
624
|
.replace(/^@protocol:\/\/project\/README\.md\n/gm, '')
|
|
620
625
|
.replace(/^@protocol:\/\/skills\/[^\n]+\/references\/actions\.md\n/gm, '')
|
|
621
626
|
.replace(/^Resolve every logical URI through the host adapter\.[^\n]+$/m,
|
|
622
|
-
'Use `extension_wtfp__record` for each declared JSON record write
|
|
627
|
+
'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.')
|
|
623
628
|
.replace(/^Manuscript prose and supporting context,[^\n]+$/m,
|
|
624
629
|
'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.');
|
|
625
630
|
if (action.id === 'write-section') body = body.replace(/^3\. Read the persisted manuscript text back[^\n]+$/m,
|
|
@@ -628,7 +633,9 @@ function clioDeskWorkflowBody(action, workflowBody) {
|
|
|
628
633
|
.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.')
|
|
629
634
|
.replace(/^3\. Apply only[^\n]+$/m, '3. Read back the resulting checkpoint and state; retained or cancelled gates remain pending.');
|
|
630
635
|
const bindings = [
|
|
631
|
-
'Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool\'s error or refusal stops the action; never bypass it with a manual write or shell script.',
|
|
636
|
+
'Discover the named tools with `gateway(op="describe", capability="extension_wtfp__record")` (and the corresponding `read_record`, `readiness`, `measure_section` or `gate` name), then use `gateway(op="call", capability="<exact name>", args={...})`. A present tool\'s error or refusal stops the action; never bypass it with a manual write or shell script.',
|
|
637
|
+
...(action.produces.some((output) => output.uri.startsWith('project://paper'))
|
|
638
|
+
? ['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.'] : []),
|
|
632
639
|
...(action.produces.some((output) => output.uri.startsWith('project://paper')) && action.id !== 'write-section'
|
|
633
640
|
? ['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.'] : []),
|
|
634
641
|
`If desk tools are absent, follow \`\${pluginRoot}/workflows/${action.id}.md\` and \`\${pluginRoot}/project/README.md\` with native tools and \`ask_user\` gates.`
|
|
@@ -733,7 +740,7 @@ function clioHelpCard(model, availabilityById, legacyFleetNames = false) {
|
|
|
733
740
|
].join('\n');
|
|
734
741
|
}
|
|
735
742
|
|
|
736
|
-
function renderMarkdownCommand(action, workflowBody, target, availability, deskTools = false) {
|
|
743
|
+
function renderMarkdownCommand(action, workflowBody, target, availability, deskTools = false, reviewers = new Set()) {
|
|
737
744
|
const lines = ['---'];
|
|
738
745
|
// Claude derives the stable command name from the plugin id and flat file
|
|
739
746
|
// name. Repeating either in frontmatter creates names such as
|
|
@@ -755,9 +762,21 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
|
|
|
755
762
|
for (const tool of tools) lines.push(` - ${tool}`);
|
|
756
763
|
}
|
|
757
764
|
}
|
|
765
|
+
if (target === 'clio') {
|
|
766
|
+
lines.push('allowed-tools:');
|
|
767
|
+
for (const tool of clioActionTools(action, deskTools)) lines.push(` - ${tool}`);
|
|
768
|
+
const delegated = clioDelegatedTools(action, reviewers);
|
|
769
|
+
if (delegated.length > 0) {
|
|
770
|
+
lines.push('delegated-tools:');
|
|
771
|
+
for (const tool of delegated) lines.push(` - ${tool}`);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
758
774
|
const nativeBody = nativeCommandBody(action, workflowBody, target, deskTools);
|
|
759
775
|
const clioRoles = action.delegation.map((entry) => `\`wtfp-${entry.role}\``).join(', ');
|
|
760
|
-
|
|
776
|
+
// Clio refuses a read-only recipe a task it reads as a change; a task that reads as a review never is.
|
|
777
|
+
const clioReviewers = action.delegation.filter((entry) => reviewers.has(entry.role)).map((entry) => `\`wtfp-${entry.role}\``);
|
|
778
|
+
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 userGateBody = target === 'clio' ? [clioUserGateBody(action, deskTools), clioResearchConnectionBody(action), action.delegation.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. 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/checks and parse its evidence string as portable role-result JSON. 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') : '';
|
|
761
780
|
lines.push(
|
|
762
781
|
'---',
|
|
763
782
|
'',
|
|
@@ -769,6 +788,13 @@ function renderMarkdownCommand(action, workflowBody, target, availability, deskT
|
|
|
769
788
|
return lines.join('\n');
|
|
770
789
|
}
|
|
771
790
|
|
|
791
|
+
function renderAntigravityActionSkill(action, workflowBody, availability) {
|
|
792
|
+
const command = renderMarkdownCommand(action, workflowBody, 'antigravity', availability);
|
|
793
|
+
const prefix = `---\nname: wtfp:${action.id}\n`;
|
|
794
|
+
if (!command.startsWith(prefix)) throw new Error(`Antigravity action ${action.id} has an unexpected command header`);
|
|
795
|
+
return `---\nname: wtfp-${action.id}\ndisable-model-invocation: true\n${command.slice(prefix.length)}`;
|
|
796
|
+
}
|
|
797
|
+
|
|
772
798
|
function renderGeminiCommand(action, workflowBody, availability) {
|
|
773
799
|
const body = availability.available
|
|
774
800
|
? nativeCommandBody(action, workflowBody, 'gemini')
|
|
@@ -922,14 +948,60 @@ function renderCopilotCloudRole(role, slug) {
|
|
|
922
948
|
].join('\n');
|
|
923
949
|
}
|
|
924
950
|
|
|
951
|
+
// The tools a Clio role recipe declares. Verifier roles judge text and run
|
|
952
|
+
// nothing, so their recipes are Clio's read-only class: no write, no shell and
|
|
953
|
+
// no verify, whose checks run commands from files a writer could have planted.
|
|
954
|
+
// Clio refuses a skill load in a read-only run, so they bind none; the recipe
|
|
955
|
+
// body is the role's whole contract, and the orchestrator holds the action's skill.
|
|
956
|
+
function clioRoleTools(verifier) {
|
|
957
|
+
return verifier
|
|
958
|
+
? { required: ['read'], optional: ['context', 'grep', 'find', 'ls', 'ledger'] }
|
|
959
|
+
: { required: ['read', 'context', 'limitation', { anyOf: ['write', 'edit'] }], optional: ['grep', 'find', 'ls', 'ledger'] };
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
function clioToolList(entries) {
|
|
963
|
+
return `[${entries.map((entry) => (typeof entry === 'string' ? entry : `{anyOf: [${entry.anyOf.join(', ')}]}`)).join(', ')}]`;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
const CLIO_DESK_TOOLS = Object.freeze(['record', 'read_record', 'readiness', 'measure_section', 'gate'].map((tool) => `extension_wtfp__${tool}`));
|
|
967
|
+
|
|
968
|
+
// The tools one Clio prompt's turn may hold (allowed-tools), from the Clio
|
|
969
|
+
// bindings of the action's declared capabilities. Clio 0.6.3 narrows a
|
|
970
|
+
// template turn to them; 0.6.2 ignores the field. Only the bundled citation
|
|
971
|
+
// dispatcher needs a shell, so an action holds bash only when it declares
|
|
972
|
+
// tool.execute or network.search, and never run_script, job, git or verify.
|
|
973
|
+
function clioActionTools(action, deskTools) {
|
|
974
|
+
const capabilities = new Set(action.requirements.capabilities);
|
|
975
|
+
const tools = ['read', 'grep', 'find', 'ls', 'context'];
|
|
976
|
+
if (capabilities.has('filesystem.write') || capabilities.has('filesystem.delete')) tools.push('write', 'edit');
|
|
977
|
+
if (capabilities.has('user.interaction')) tools.push('ask_user');
|
|
978
|
+
if (capabilities.has('agent.delegate') || capabilities.has('agent.parallel')) tools.push('dispatch', 'monitor');
|
|
979
|
+
if (capabilities.has('network.fetch')) tools.push('web_fetch');
|
|
980
|
+
if (capabilities.has('tool.execute') || capabilities.has('network.search')) tools.push('bash');
|
|
981
|
+
if (deskTools) tools.push(...CLIO_DESK_TOOLS);
|
|
982
|
+
return tools;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
// The tools the action's workers may hold (delegated-tools): every tool its
|
|
986
|
+
// delegated roles' recipes declare, since Clio refuses a worker whose recipe
|
|
987
|
+
// declares more than the ceiling, and without this field the turn's own
|
|
988
|
+
// allowed-tools would be that ceiling.
|
|
989
|
+
function clioDelegatedTools(action, reviewers) {
|
|
990
|
+
const tools = new Set();
|
|
991
|
+
for (const entry of action.delegation) {
|
|
992
|
+
const declared = clioRoleTools(reviewers.has(entry.role));
|
|
993
|
+
for (const item of [...declared.required, ...declared.optional]) {
|
|
994
|
+
for (const tool of typeof item === 'string' ? [item] : item.anyOf) tools.add(tool);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
return [...tools].sort();
|
|
998
|
+
}
|
|
999
|
+
|
|
925
1000
|
function renderClioRole(role, slug) {
|
|
926
1001
|
const verifier = role.fields.execution_class === 'verifier-report';
|
|
927
|
-
const
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
const optional = verifier
|
|
931
|
-
? '[read, grep, find, ls, ledger]'
|
|
932
|
-
: '[grep, find, ls, ledger]';
|
|
1002
|
+
const declared = clioRoleTools(verifier);
|
|
1003
|
+
const required = clioToolList(declared.required);
|
|
1004
|
+
const optional = clioToolList(declared.optional);
|
|
933
1005
|
const nativeResult = verifier
|
|
934
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 ordinary evidence value to one short sentence (the wtfp.role-result entry contains compact serialized JSON), keep the complete UTF-8 response at or below 4096 bytes, and emit no Markdown, code fence, analysis, or text outside the object.'
|
|
935
1007
|
: '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.';
|
|
@@ -939,10 +1011,10 @@ function renderClioRole(role, slug) {
|
|
|
939
1011
|
`name: ${yamlScalar(role.fields.name)}`,
|
|
940
1012
|
`description: ${yamlScalar(roleDescription(role))}`,
|
|
941
1013
|
`tools: {required: ${required}, optional: ${optional}}`,
|
|
942
|
-
`skills: [${ROLE_SKILLS[slug]}]`,
|
|
1014
|
+
`skills: [${verifier ? '' : ROLE_SKILLS[slug]}]`,
|
|
943
1015
|
'audience: custom',
|
|
944
1016
|
`category: ${verifier ? 'quality' : slug.includes('citation') || slug.includes('research') ? 'research' : slug.includes('plan') || slug === 'outliner' ? 'plan' : 'implement'}`,
|
|
945
|
-
`capabilityClass: ${verifier ? '
|
|
1017
|
+
`capabilityClass: ${verifier ? 'read-only' : 'workspace-edit'}`,
|
|
946
1018
|
`latencyClass: ${verifier ? 'fast' : 'balanced'}`,
|
|
947
1019
|
'projectContextTier: bounded',
|
|
948
1020
|
`budget: {toolCalls: ${verifier ? 24 : 64}, readReserve: ${verifier ? 4 : 8}, synthesis: true}`,
|
|
@@ -1007,8 +1079,10 @@ function clioPluginManifest(model, legacyFleetNames = false) {
|
|
|
1007
1079
|
});
|
|
1008
1080
|
return standardPluginManifest(model.version, 'wtfp', {
|
|
1009
1081
|
manifestVersion: 1,
|
|
1010
|
-
// The Claude copy keeps its pre-playbook floor
|
|
1011
|
-
|
|
1082
|
+
// The Claude copy keeps its pre-playbook floor. The plugin installs with
|
|
1083
|
+
// the desk, which judges only what Clio 0.6.3 sends a hook, and its
|
|
1084
|
+
// prompts scope their tools only from 0.6.3.
|
|
1085
|
+
compatibility: { clio: legacyFleetNames ? '>=0.4.7' : '>=0.6.3' },
|
|
1012
1086
|
resources: {
|
|
1013
1087
|
skills: 'skills', prompts: 'ai.iowarp.clio/prompts', agents: 'ai.iowarp.clio/agents',
|
|
1014
1088
|
[legacyFleetNames ? 'fleets' : 'playbooks']: playbookRoot
|
|
@@ -1017,8 +1091,12 @@ function clioPluginManifest(model, legacyFleetNames = false) {
|
|
|
1017
1091
|
});
|
|
1018
1092
|
}
|
|
1019
1093
|
|
|
1094
|
+
// Playbook write boundaries are literal paths, so `{section}` cannot be
|
|
1095
|
+
// substituted. Section artifacts project to `.planning/sections/`, which keeps
|
|
1096
|
+
// workers away from checkpoints, interactions, state and config.
|
|
1020
1097
|
function clioFleetWriteBoundary(resource, fleetId) {
|
|
1021
1098
|
if (/^project:\/\/paper(?:\/|$)/u.test(resource)) return 'paper/';
|
|
1099
|
+
if (/^project:\/\/sections\//u.test(resource)) return '.planning/sections/';
|
|
1022
1100
|
if (/^project:\/\//u.test(resource)) return '.planning/';
|
|
1023
1101
|
throw new Error(`fleet ${fleetId} has no Clio write-boundary projection for ${resource}`);
|
|
1024
1102
|
}
|
|
@@ -1172,28 +1250,34 @@ function claudeCompatibleManifest(version, name = 'wtfp') {
|
|
|
1172
1250
|
}
|
|
1173
1251
|
|
|
1174
1252
|
// The published Antigravity CLI manifest schema
|
|
1175
|
-
// (https://antigravity.google/schemas/v1/plugin.json)
|
|
1176
|
-
//
|
|
1177
|
-
// their fixed directories (skills/, agents/, rules/,
|
|
1253
|
+
// (https://antigravity.google/schemas/v1/plugin.json) has additionalProperties
|
|
1254
|
+
// false; Antigravity 1.5 added `version` to it and warns when it is missing.
|
|
1255
|
+
// Components are found by their fixed directories (skills/, agents/, rules/,
|
|
1256
|
+
// hooks.json, mcp_config.json).
|
|
1178
1257
|
function antigravityManifest(version) {
|
|
1179
1258
|
return stableJson({
|
|
1180
1259
|
$schema: 'https://antigravity.google/schemas/v1/plugin.json',
|
|
1181
1260
|
name: 'wtfp',
|
|
1261
|
+
version,
|
|
1182
1262
|
description: `Portable academic research and writing workflows (WTF-P ${version}).`
|
|
1183
1263
|
});
|
|
1184
1264
|
}
|
|
1185
1265
|
|
|
1186
|
-
//
|
|
1187
|
-
//
|
|
1188
|
-
//
|
|
1266
|
+
// Project the portable project protocol as an always-on rule so the agent
|
|
1267
|
+
// knows what `.planning/` and `paper/` are before any skill is selected. A
|
|
1268
|
+
// named rule needs a `trigger` in its frontmatter; Antigravity 1.5 never
|
|
1269
|
+
// applies one without it.
|
|
1189
1270
|
function antigravityRule() {
|
|
1190
1271
|
const readme = fs.readFileSync(path.join(PROTOCOL_ROOT, 'project', 'README.md'), 'utf8').trim();
|
|
1191
1272
|
return [
|
|
1273
|
+
'---',
|
|
1274
|
+
'trigger: always_on',
|
|
1275
|
+
'---',
|
|
1192
1276
|
generatedBanner('protocol/project', 'README.md'),
|
|
1193
1277
|
'',
|
|
1194
1278
|
'# WTF-P project state rules',
|
|
1195
1279
|
'',
|
|
1196
|
-
'When a workspace contains `.planning/` or `paper/`, treat it as a WTF-P research project. Route academic requests through the `wtfp-*` skills, invoke actions as `/wtfp
|
|
1280
|
+
'When a workspace contains `.planning/` or `paper/`, treat it as a WTF-P research project. Route academic requests through the `wtfp-*` skills, invoke actions as `/wtfp-<action>`, never fabricate citations, results, or evidence, and never run Git or publish operations as a side effect.',
|
|
1197
1281
|
'',
|
|
1198
1282
|
readme,
|
|
1199
1283
|
''
|
|
@@ -1279,6 +1363,34 @@ function manuscriptGuardActions(model, availabilityById, host) {
|
|
|
1279
1363
|
return guarded;
|
|
1280
1364
|
}
|
|
1281
1365
|
|
|
1366
|
+
// The Clio desk arms on every available action. Each entry carries the
|
|
1367
|
+
// action's exact declared outputs: the desk derives file roots from them,
|
|
1368
|
+
// substitutes the section an invocation names, and refuses record writes the
|
|
1369
|
+
// contract does not declare. `paperWriters` are the Clio agent IDs of the
|
|
1370
|
+
// writing roles that manuscript-producing actions dispatch; the desk confines
|
|
1371
|
+
// them to manuscripts whose sections are ready to draft. Clio reports which
|
|
1372
|
+
// workers run read-only, the verifier roles' read-only recipes among them, so
|
|
1373
|
+
// the guard names none.
|
|
1374
|
+
function clioWriteGuard(model, availabilityById) {
|
|
1375
|
+
const available = model.actions.filter((action) => availabilityById.get(action.id).available);
|
|
1376
|
+
if (!available.some((action) => action.produces.some((output) => output.uri.startsWith('project://paper')))) {
|
|
1377
|
+
throw new Error('no manuscript-writing action is available on Clio');
|
|
1378
|
+
}
|
|
1379
|
+
const verifiers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
|
|
1380
|
+
const paperWriters = new Set();
|
|
1381
|
+
for (const action of available) {
|
|
1382
|
+
if (!action.produces.some((output) => output.uri.startsWith('project://paper'))) continue;
|
|
1383
|
+
for (const entry of action.delegation) if (!verifiers.has(entry.role)) paperWriters.add(`wtfp-${entry.role}`);
|
|
1384
|
+
}
|
|
1385
|
+
return stableJson({
|
|
1386
|
+
schema: 'wtfp.clio-write-guard/v4',
|
|
1387
|
+
actions: Object.fromEntries(available.map((action) => [action.id, {
|
|
1388
|
+
produces: action.produces.map((output) => ({ uri: output.uri, mode: output.mode }))
|
|
1389
|
+
}])),
|
|
1390
|
+
paperWriters: [...paperWriters].sort()
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1282
1394
|
// The Claude write guard arms on the manuscript-writing actions, confines
|
|
1283
1395
|
// Write/Edit calls for the rest of that prompt to the roots the action
|
|
1284
1396
|
// declares, and disarms when the turn stops.
|
|
@@ -1431,10 +1543,9 @@ function addClioRuntime(plan, model, availabilityById) {
|
|
|
1431
1543
|
addFile(plan, 'runtime/extension.test.ts', `${generatedScriptBanner('clio', 'runtime/extension.test.ts')}\n${source('runtime/extension.test.ts')}`);
|
|
1432
1544
|
addFile(plan, 'runtime/package.json', source('runtime/package.json'));
|
|
1433
1545
|
addFile(plan, 'runtime/json-schema.cjs', `${generatedScriptBanner('evaluation', 'lib/json-schema.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'json-schema.js'), 'utf8')}`);
|
|
1434
|
-
addFile(plan, 'runtime/
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
}));
|
|
1546
|
+
addFile(plan, 'runtime/claim-coverage.cjs', `${generatedScriptBanner('evaluation', 'lib/claim-coverage.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'claim-coverage.js'), 'utf8')}`);
|
|
1547
|
+
addFile(plan, 'runtime/desk-trust.cjs', `${generatedScriptBanner('evaluation', 'lib/desk-trust.js')}\n${fs.readFileSync(path.join(ROOT, 'evaluation', 'lib', 'desk-trust.js'), 'utf8')}`);
|
|
1548
|
+
addFile(plan, 'runtime/write-guard.json', clioWriteGuard(model, availabilityById));
|
|
1438
1549
|
addFile(plan, 'skins/wtfp.json', source('skins/wtfp.json'));
|
|
1439
1550
|
copyTree(plan, path.join(PROTOCOL_ROOT, 'project', 'schemas'), 'project/schemas');
|
|
1440
1551
|
copyTree(plan, path.join(PROTOCOL_ROOT, 'actions'), 'actions');
|
|
@@ -1957,14 +2068,20 @@ function compilePlans(options = {}) {
|
|
|
1957
2068
|
addFile(gemini, 'gemini-extension.json', geminiManifest(model.version));
|
|
1958
2069
|
addFile(gemini, 'GEMINI.md', '# WTF-P\n\nUse the bundled Agent Skills and portable protocol for evidence-grounded academic work.\n');
|
|
1959
2070
|
|
|
2071
|
+
const reviewers = new Set(model.roles.filter((role) => role.fields.execution_class === 'verifier-report').map((role) => role.slug));
|
|
1960
2072
|
for (const action of model.actions) {
|
|
1961
2073
|
addFile(clio, `prompts/wtfp/${action.id}.md`, action.id === 'help'
|
|
1962
2074
|
? clioHelpCard(model, availabilityByTarget.get('clio'))
|
|
1963
|
-
: renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(action.id)));
|
|
2075
|
+
: renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(action.id), false, reviewers));
|
|
1964
2076
|
addFile(claude, `commands/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'claude', availabilityByTarget.get('claude').get(action.id)));
|
|
1965
2077
|
addFile(copilot, `commands/wtfp-${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'copilot', availabilityByTarget.get('copilot').get(action.id)));
|
|
1966
2078
|
addFile(byId.get('opencode'), `commands/wtfp/${action.id}.md`, renderMarkdownCommand(action, action.workflowBody, 'opencode', availabilityByTarget.get('opencode').get(action.id)));
|
|
1967
|
-
|
|
2079
|
+
// Antigravity 1.5 plugins load no commands/ directory, so each action is
|
|
2080
|
+
// an explicitly invoked skill. A router skill that already has the name
|
|
2081
|
+
// (wtfp-write-section, wtfp-plan-section) serves that action instead.
|
|
2082
|
+
if (!model.catalog.skills.some((skill) => skill.id === `wtfp-${action.id}`)) {
|
|
2083
|
+
addFile(antigravity, `skills/wtfp-${action.id}/SKILL.md`, renderAntigravityActionSkill(action, action.workflowBody, availabilityByTarget.get('antigravity').get(action.id)));
|
|
2084
|
+
}
|
|
1968
2085
|
addFile(gemini, `commands/wtfp/${action.id}.toml`, renderGeminiCommand(action, action.workflowBody, availabilityByTarget.get('gemini').get(action.id)));
|
|
1969
2086
|
}
|
|
1970
2087
|
|
|
@@ -1994,7 +2111,7 @@ function compilePlans(options = {}) {
|
|
|
1994
2111
|
const usesRecords = action && action.produces.some((output) =>
|
|
1995
2112
|
/^project:\/\/(?:manifest|config|state|decisions|structure\/outline|(?:sections|sources|evidence|checkpoints|validations)\/[^/]+)$/.test(output.uri));
|
|
1996
2113
|
const projected = usesRecords && availabilityByTarget.get('clio').get(actionId).available
|
|
1997
|
-
? renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(actionId), true)
|
|
2114
|
+
? renderMarkdownCommand(action, action.workflowBody, 'clio', availabilityByTarget.get('clio').get(actionId), true, reviewers)
|
|
1998
2115
|
: content;
|
|
1999
2116
|
addFile(portable, native ? `ai.iowarp.clio/${file}` : file, projected);
|
|
2000
2117
|
}
|
|
@@ -2224,6 +2341,8 @@ function compileAdapters(options = {}) {
|
|
|
2224
2341
|
module.exports = {
|
|
2225
2342
|
GENERATOR_VERSION,
|
|
2226
2343
|
TARGET_POLICIES,
|
|
2344
|
+
clioActionTools,
|
|
2345
|
+
clioDelegatedTools,
|
|
2227
2346
|
TARGET_ROOTS,
|
|
2228
2347
|
compileAdapters,
|
|
2229
2348
|
compilePlans,
|
|
@@ -125,21 +125,24 @@ function installedExtensionEntry(stdout, targetDir, native, scope) {
|
|
|
125
125
|
|
|
126
126
|
// The two Clio packages WTF-P installs, plugin first. Each is its own Clio
|
|
127
127
|
// install with its own lifecycle command, generated inventory and checks.
|
|
128
|
+
// Both carry the id `wtfp`, and Clio 0.6.2 refuses a bare name that a plugin
|
|
129
|
+
// and an extension share, so `library` commands name the plugin as
|
|
130
|
+
// `plugin:wtfp`. The `extensions` commands select extensions by themselves.
|
|
128
131
|
function clioPackages(native) {
|
|
129
132
|
const plugin = {
|
|
130
|
-
noun: 'plugin', command: 'library', id: native.id, source: native.source, inventory: 'portable-plugin',
|
|
133
|
+
noun: 'plugin', command: 'library', id: native.id, ref: `plugin:${native.id}`, source: native.source, inventory: 'portable-plugin',
|
|
131
134
|
deferral: 'Clio activation requires an intact generated bundle without extra or modified files',
|
|
132
135
|
list: () => ['library', 'list', '--kind', 'plugin', '--json'],
|
|
133
136
|
listed: (stdout, targetDir, scope) => installedListEntry(stdout, targetDir, native, scope),
|
|
134
137
|
// `inspect` returns the installed record for the explicitly selected scope.
|
|
135
|
-
verify: scope => ['library', 'inspect', native.id
|
|
138
|
+
verify: scope => ['library', 'inspect', `plugin:${native.id}`, `--${scope}`, '--json'],
|
|
136
139
|
verified: (stdout, targetDir, scope) => verifiedEntry(stdout, targetDir, native, scope)
|
|
137
140
|
};
|
|
138
141
|
if (!native.extension) return [plugin];
|
|
139
142
|
const extension = native.extension;
|
|
140
143
|
const listed = (stdout, targetDir, scope) => installedExtensionEntry(stdout, targetDir, extension, scope);
|
|
141
144
|
return [plugin, {
|
|
142
|
-
noun: 'extension', command: 'extensions', id: extension.id, source: extension.source, inventory: 'clio-extension',
|
|
145
|
+
noun: 'extension', command: 'extensions', id: extension.id, ref: extension.id, source: extension.source, inventory: 'clio-extension',
|
|
143
146
|
deferral: 'Clio extension activation requires an intact generated extension without extra or modified files',
|
|
144
147
|
list: scope => ['extensions', 'list', `--${scope}`, '--json'],
|
|
145
148
|
listed,
|
|
@@ -149,15 +152,34 @@ function clioPackages(native) {
|
|
|
149
152
|
}
|
|
150
153
|
|
|
151
154
|
// Registration is what WTF-P is responsible for. Whether the operator has a
|
|
152
|
-
// package switched on
|
|
153
|
-
// never asserted and never
|
|
155
|
+
// package switched on, and whether they trust a project's package state, is
|
|
156
|
+
// Clio's state and their decision, so it is reported, never asserted and never
|
|
157
|
+
// changed. Clio binds project trust to the content of that state, so any
|
|
158
|
+
// project install after the first waits for `config trust`.
|
|
159
|
+
const TRUST_GATE = /^project (?:plugins|extensions) are not trusted for this workspace\b/u;
|
|
160
|
+
|
|
161
|
+
function trustGate(diagnostic) {
|
|
162
|
+
return Boolean(diagnostic) && diagnostic.type === 'warning' && TRUST_GATE.test(String(diagnostic.message));
|
|
163
|
+
}
|
|
164
|
+
|
|
154
165
|
function registered(entry) {
|
|
155
166
|
return Boolean(entry) && entry.valid === true &&
|
|
156
|
-
Array.isArray(entry.diagnostics) && entry.diagnostics.
|
|
167
|
+
Array.isArray(entry.diagnostics) && entry.diagnostics.every(trustGate);
|
|
157
168
|
}
|
|
158
169
|
|
|
159
170
|
function disabledNotice(pkg, scope) {
|
|
160
|
-
return `Clio reports ${pkg.id} as installed but disabled. WTF-P does not change that preference; run clio-coder ${pkg.command} enable ${pkg.
|
|
171
|
+
return `Clio reports ${pkg.id} as installed but disabled. WTF-P does not change that preference; run clio-coder ${pkg.command} enable ${pkg.ref} --${scope} to switch it back on.`;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function preferenceNotice(pkg, scope, entry) {
|
|
175
|
+
const surface = pkg.noun === 'plugin' ? 'plugins' : 'extensions';
|
|
176
|
+
const notices = [
|
|
177
|
+
...(entry.enabled === false ? [disabledNotice(pkg, scope)] : []),
|
|
178
|
+
...(entry.diagnostics.some(trustGate)
|
|
179
|
+
? [`Clio holds this project's ${surface} until you trust its package state; WTF-P does not grant that. Review it with clio-coder config trust ${surface}.`]
|
|
180
|
+
: [])
|
|
181
|
+
];
|
|
182
|
+
return notices.length > 0 ? { notice: notices.join(' ') } : {};
|
|
161
183
|
}
|
|
162
184
|
|
|
163
185
|
// Install the plugin, then the extension. A failure in the second compensates
|
|
@@ -210,10 +232,7 @@ function activatePackage(targetDir, pkg, options) {
|
|
|
210
232
|
results.push(priorList);
|
|
211
233
|
const priorEntry = pkg.listed(priorList.stdout, targetDir, options.scope);
|
|
212
234
|
if (registered(priorEntry)) {
|
|
213
|
-
return {
|
|
214
|
-
status: 'registered', executable: 'clio-coder', results,
|
|
215
|
-
...(priorEntry.enabled === false ? { notice: disabledNotice(pkg, options.scope) } : {})
|
|
216
|
-
};
|
|
235
|
+
return { status: 'registered', executable: 'clio-coder', results, ...preferenceNotice(pkg, options.scope, priorEntry) };
|
|
217
236
|
}
|
|
218
237
|
|
|
219
238
|
// `library install` copies a source into the destination it owns, so the
|
|
@@ -232,7 +251,7 @@ function activatePackage(targetDir, pkg, options) {
|
|
|
232
251
|
if (!sameTree(publishedFiles, treeFiles(root))) {
|
|
233
252
|
throw new Error('Clio content changed concurrently; recovery tree preserved');
|
|
234
253
|
}
|
|
235
|
-
const removal = execute('clio-coder', [pkg.command, 'remove', pkg.
|
|
254
|
+
const removal = execute('clio-coder', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment,
|
|
236
255
|
{ ...options, allowAlreadyAbsent: true });
|
|
237
256
|
results.push(removal);
|
|
238
257
|
if (removal.status === 'unavailable') throw new Error('Clio became unavailable during rollback');
|
|
@@ -268,7 +287,7 @@ function activatePackage(targetDir, pkg, options) {
|
|
|
268
287
|
}
|
|
269
288
|
return {
|
|
270
289
|
status: 'registered', executable: 'clio-coder', results, rollback,
|
|
271
|
-
...(
|
|
290
|
+
...preferenceNotice(pkg, options.scope, entry),
|
|
272
291
|
commit() {
|
|
273
292
|
// Only the private held copy is removed; Clio owns its installed tree.
|
|
274
293
|
finished = true;
|
|
@@ -301,9 +320,13 @@ function deactivateClio(targetDir, native, suppliedOptions) {
|
|
|
301
320
|
removed.push(result);
|
|
302
321
|
}
|
|
303
322
|
if (removed.length === 1) return removed[0];
|
|
304
|
-
const deferred = removed.
|
|
323
|
+
const deferred = removed.filter(result => result.status === 'deferred');
|
|
305
324
|
const results = removed.flatMap(result => result.results);
|
|
306
|
-
|
|
325
|
+
// A deferred package stays installed and registered, so the caller must keep
|
|
326
|
+
// its owned files and receipt entries for a later uninstall to finish.
|
|
327
|
+
if (deferred.length > 0) {
|
|
328
|
+
return { status: 'deferred', reason: deferred.map(result => result.reason).join('; '), results, keptRoots: deferred.map(result => result.root) };
|
|
329
|
+
}
|
|
307
330
|
return removed.some(result => result.status === 'unregistered')
|
|
308
331
|
? { status: 'unregistered', executable: 'clio-coder', results }
|
|
309
332
|
: { status: 'not-required', results };
|
|
@@ -323,9 +346,13 @@ function deactivatePackage(targetDir, pkg, options) {
|
|
|
323
346
|
const root = resolveOwnedPath(targetDir, pkg.source, guard);
|
|
324
347
|
const ownedFiles = options.ownedFiles;
|
|
325
348
|
if (!ownedFiles || !sameTree(treeFiles(root), ownedFiles)) {
|
|
326
|
-
|
|
349
|
+
const foreign = ownedFiles ? [...treeFiles(root).keys()].filter(file => !ownedFiles.has(file)).slice(0, 5) : [];
|
|
350
|
+
return {
|
|
351
|
+
status: 'deferred', root: pkg.source, results: [listing],
|
|
352
|
+
reason: `Kept the WTF-P ${pkg.noun} installed and registered: ${pkg.source}/ holds files WTF-P did not publish or that changed${foreign.length ? ` (${foreign.join(', ')})` : ''}. Move them out and run uninstall again.`
|
|
353
|
+
};
|
|
327
354
|
}
|
|
328
|
-
const result = execute('clio-coder', [pkg.command, 'remove', pkg.
|
|
355
|
+
const result = execute('clio-coder', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment, options);
|
|
329
356
|
if (result.status === 'unavailable') return { status: 'unavailable', executable: 'clio-coder', results: [listing] };
|
|
330
357
|
const after = execute('clio-coder', pkg.list(options.scope), environment, options);
|
|
331
358
|
if (after.status === 'unavailable' || fs.existsSync(root) || pkg.listed(after.stdout, targetDir, options.scope)) {
|
package/bin/uninstall.js
CHANGED
|
@@ -787,8 +787,18 @@ async function uninstall(runtime, options, out) {
|
|
|
787
787
|
);
|
|
788
788
|
if (nativeRemoval.status === 'unavailable' && !options.hasQuiet) {
|
|
789
789
|
out.warn(`${nativeRemoval.executable} is unavailable; removing the WTF-P-owned staging files without changing the client's native registry.`);
|
|
790
|
-
} else if (nativeRemoval.status === 'deferred'
|
|
791
|
-
|
|
790
|
+
} else if (nativeRemoval.status === 'deferred') {
|
|
791
|
+
// A package Clio still registers keeps every owned file and its receipt
|
|
792
|
+
// entries; removing them would leave a registration with no content.
|
|
793
|
+
for (const root of nativeRemoval.keptRoots || []) {
|
|
794
|
+
for (const item of plan.items) {
|
|
795
|
+
if (item.path.startsWith(`${root}/`) && item.removable) {
|
|
796
|
+
item.removable = false;
|
|
797
|
+
item.keptRegistered = true;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
if (!options.hasQuiet) out.warn(nativeRemoval.reason || 'The target cannot be natively unregistered; only WTF-P-owned staging files will be removed.');
|
|
792
802
|
}
|
|
793
803
|
} else if (vendorConfig.native && !options.hasQuiet) {
|
|
794
804
|
out.warn('Native registration was preserved because this uninstall cannot remove every WTF-P-owned source file safely.');
|
|
@@ -803,11 +813,16 @@ async function uninstall(runtime, options, out) {
|
|
|
803
813
|
}
|
|
804
814
|
|
|
805
815
|
const remaining = plan.items.filter(item => !item.removed && item.state !== 'missing');
|
|
806
|
-
|
|
807
|
-
|
|
816
|
+
const keptRegistered = remaining.filter(item => item.keptRegistered).length;
|
|
817
|
+
if (keptRegistered > 0) {
|
|
818
|
+
out.log(`\n ${c.yellow('Partial uninstall:')} kept ${keptRegistered} owned file(s) of a package Clio still registers, with their receipt entries, so uninstall can finish once the unowned files are moved out.`);
|
|
819
|
+
}
|
|
820
|
+
if (remaining.length > keptRegistered) {
|
|
821
|
+
out.log(`\n ${c.yellow('Partial uninstall:')} preserved ${remaining.length - keptRegistered} modified, untrusted, or unsafe file(s).`);
|
|
808
822
|
out.log(` Re-run with ${c.cyan('--force')} only if you intend to remove exact modified/legacy receipt files.\n`);
|
|
809
823
|
return { status: 'partial', plan, summary };
|
|
810
824
|
}
|
|
825
|
+
if (keptRegistered > 0) return { status: 'partial', plan, summary };
|
|
811
826
|
|
|
812
827
|
out.log(`\n ${c.green('Done!')} Removed WTF-P-owned files from ${vendorConfig.name}.`);
|
|
813
828
|
out.log(` ${c.dim('Unowned files and nonempty shared directories were not touched.')}\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wtf-p",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Portable, evidence-grounded academic writing workflows (papers, proposals, posters, presentations) for Clio Coder, Claude Code, Codex, GitHub Copilot CLI, OpenCode, Antigravity CLI, and Gemini CLI.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"wtfp": "bin/install.js",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build:adapters": "node scripts/build-adapters.js",
|
|
12
12
|
"check:adapters": "node scripts/build-adapters.js --check",
|
|
13
|
-
"test:evaluation": "node evaluation/tools/lint.js && node test/compiler-v4-evidence.test.js && node test/dynamo-lifecycle-evidence.test.js && node test/evaluation-comparison.test.js && node test/evaluation.test.js && node test/evaluation-routing-runner.test.js && node test/evaluation-lifecycle.test.js && node test/evaluation-fleets.test.js && node test/nsf25-531-proposal-uat.test.js",
|
|
13
|
+
"test:evaluation": "node evaluation/tools/lint.js && node evaluation/tools/hash-fixtures.js --check && node test/compiler-v4-evidence.test.js && node test/dynamo-lifecycle-evidence.test.js && node test/evaluation-comparison.test.js && node test/evaluation.test.js && node test/evaluation-routing-runner.test.js && node test/evaluation-lifecycle.test.js && node test/evaluation-fleets.test.js && node test/evaluation-campaign.test.js && node test/nsf25-531-proposal-uat.test.js",
|
|
14
14
|
"test:tools": "node test/lib/bib-index.test.js && node test/lib/bib-format.test.js && node test/lib/citation-ranker.test.js && node test/lib/analyze-impact.test.js && node test/lib/scholar-lookup.test.js && node test/lib/semantic-scholar.test.js && node test/lib/citation-fetcher.test.js && node test/lib/cite-nexus-client.test.js",
|
|
15
|
-
"test:protocol": "node test/protocol-catalog.test.js && node test/canonical-workflows.test.js && node test/portable-roles.test.js && node test/project-protocol.test.js && node test/test-skills.test.js && npm run test:tools && npm run test:evaluation && node test/adapter-compiler.test.js && node test/tool-dispatcher.test.js",
|
|
15
|
+
"test:protocol": "node test/protocol-catalog.test.js && node test/canonical-workflows.test.js && node test/portable-roles.test.js && node test/project-protocol.test.js && node test/claim-coverage.test.js && node test/test-skills.test.js && npm run test:tools && npm run test:evaluation && node test/adapter-compiler.test.js && node test/tool-dispatcher.test.js",
|
|
16
16
|
"test:installer": "node test/import-safety.test.js && node test/ownership.test.js && node test/ownership-races.test.js && node test/status-partial.test.js && node test/paths.js && node test/modern-targets.test.js && node test/clio-installer.test.js && node test/installer.test.js",
|
|
17
17
|
"test:compatibility": "node test/sanity.js && node test/linter.js && node test/dry-run.js && node test/feature-tests.js",
|
|
18
18
|
"test": "npm run check:adapters && npm run test:protocol && npm run test:installer && npm run test:compatibility",
|