wtf-p 0.7.4 → 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/commands/install-logic.js +1 -1
- package/bin/lib/adapter-compiler.js +305 -78
- package/bin/lib/clio-registration.js +159 -41
- package/bin/lib/manifest.js +11 -3
- package/bin/uninstall.js +22 -6
- 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 +240 -0
- package/vendors/clio-extension/actions/add-todo.json +52 -0
- package/vendors/clio-extension/actions/analyze-bib.json +97 -0
- package/vendors/clio-extension/actions/audit-milestone.json +63 -0
- package/vendors/clio-extension/actions/check-refs.json +80 -0
- package/vendors/clio-extension/actions/check-todos.json +52 -0
- package/vendors/clio-extension/actions/checkpoint.json +85 -0
- package/vendors/clio-extension/actions/contribute.json +57 -0
- package/vendors/clio-extension/actions/create-outline.json +84 -0
- package/vendors/clio-extension/actions/create-poster.json +54 -0
- package/vendors/clio-extension/actions/create-slides.json +54 -0
- package/vendors/clio-extension/actions/discuss-section.json +76 -0
- package/vendors/clio-extension/actions/execute-outline.json +124 -0
- package/vendors/clio-extension/actions/export-latex.json +78 -0
- package/vendors/clio-extension/actions/help.json +30 -0
- package/vendors/clio-extension/actions/insert-section.json +61 -0
- package/vendors/clio-extension/actions/list-assumptions.json +35 -0
- package/vendors/clio-extension/actions/map-project.json +71 -0
- package/vendors/clio-extension/actions/new-paper.json +70 -0
- package/vendors/clio-extension/actions/pause-writing.json +71 -0
- package/vendors/clio-extension/actions/plan-milestone-gaps.json +57 -0
- package/vendors/clio-extension/actions/plan-revision.json +71 -0
- package/vendors/clio-extension/actions/plan-section.json +100 -0
- package/vendors/clio-extension/actions/polish-prose.json +79 -0
- package/vendors/clio-extension/actions/progress.json +51 -0
- package/vendors/clio-extension/actions/quick.json +70 -0
- package/vendors/clio-extension/actions/remove-section.json +63 -0
- package/vendors/clio-extension/actions/report-bug.json +47 -0
- package/vendors/clio-extension/actions/request-feature.json +47 -0
- package/vendors/clio-extension/actions/research-gap.json +115 -0
- package/vendors/clio-extension/actions/resume-writing.json +65 -0
- package/vendors/clio-extension/actions/review-section.json +83 -0
- package/vendors/clio-extension/actions/settings.json +47 -0
- package/vendors/clio-extension/actions/submit-milestone.json +77 -0
- package/vendors/clio-extension/actions/update.json +42 -0
- package/vendors/clio-extension/actions/verify-work.json +68 -0
- package/vendors/clio-extension/actions/write-section.json +115 -0
- package/vendors/clio-extension/clio-coder-extension.yaml +76 -0
- package/vendors/clio-extension/compatibility/action-availability.json +295 -0
- package/vendors/clio-extension/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/clio-extension/project/schemas/common.schema.json +33 -0
- package/vendors/clio-extension/project/schemas/config.schema.json +69 -0
- package/vendors/clio-extension/project/schemas/decisions.schema.json +31 -0
- package/vendors/clio-extension/project/schemas/evidence.schema.json +48 -0
- package/vendors/clio-extension/project/schemas/interaction.schema.json +100 -0
- package/vendors/clio-extension/project/schemas/manifest.schema.json +102 -0
- package/vendors/clio-extension/project/schemas/outline.schema.json +67 -0
- package/vendors/clio-extension/project/schemas/section.schema.json +95 -0
- package/vendors/clio-extension/project/schemas/source.schema.json +73 -0
- package/vendors/clio-extension/project/schemas/state.schema.json +58 -0
- package/vendors/clio-extension/project/schemas/validation.schema.json +74 -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 +1567 -0
- package/vendors/clio-extension/runtime/extension.ts +3074 -0
- package/vendors/clio-extension/runtime/json-schema.cjs +304 -0
- package/vendors/clio-extension/runtime/package.json +3 -0
- package/vendors/clio-extension/runtime/write-guard.json +566 -0
- package/vendors/clio-extension/skins/wtfp.json +20 -0
- 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 +75 -67
- 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/{fleets → playbooks}/wtfp-draft-review.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/{fleets → playbooks}/wtfp-plan-section.md +1 -1
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +19 -12
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +34 -19
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +22 -25
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +34 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +23 -13
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +23 -29
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +33 -25
- 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 +21 -17
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +38 -30
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +26 -21
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +2 -2
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +21 -13
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +6 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +19 -14
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +21 -17
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +19 -18
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +21 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +25 -18
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +36 -30
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +38 -18
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +7 -0
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +35 -15
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +37 -23
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +21 -23
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +31 -20
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +21 -9
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +21 -25
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +24 -18
- package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +38 -31
- package/vendors/plugin/compatibility/action-availability.json +18 -3
- package/vendors/plugin/plugin.json +7 -7
- 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
|
@@ -5,9 +5,9 @@ const path = require('path');
|
|
|
5
5
|
const { createTargetGuard, resolveOwnedPath, sha256Buffer } = require('./ownership');
|
|
6
6
|
|
|
7
7
|
// Clio owns integrity, provenance, drift and enable/disable for an installed
|
|
8
|
-
// plugin. WTF-P owns two much smaller things: the exact bytes it
|
|
9
|
-
// (its v2 receipt) and the guarantee that
|
|
10
|
-
// generated
|
|
8
|
+
// plugin or extension. WTF-P owns two much smaller things: the exact bytes it
|
|
9
|
+
// publishes (its v2 receipt) and the guarantee that each tree handed to Clio
|
|
10
|
+
// is the generated package and nothing else.
|
|
11
11
|
function treeFiles(root) {
|
|
12
12
|
const files = new Map();
|
|
13
13
|
function visit(directory) {
|
|
@@ -37,10 +37,11 @@ function scopeOptions(targetDir, options) {
|
|
|
37
37
|
return { ...options, cwd, scope: project ? 'project' : 'user' };
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
function generatedBundle(root) {
|
|
40
|
+
function generatedBundle(root, target = 'portable-plugin') {
|
|
41
41
|
const inventoryPath = path.join(root, '.wtfp-generated.json');
|
|
42
|
+
if (!fs.existsSync(inventoryPath)) return null;
|
|
42
43
|
const inventory = JSON.parse(fs.readFileSync(inventoryPath, 'utf8'));
|
|
43
|
-
if (inventory.schema !== 'wtfp.generated-adapter/v1' || inventory.target !==
|
|
44
|
+
if (inventory.schema !== 'wtfp.generated-adapter/v1' || inventory.target !== target) {
|
|
44
45
|
return null;
|
|
45
46
|
}
|
|
46
47
|
const expected = new Map(inventory.files.map(file => [file.path, file.sha256]));
|
|
@@ -108,43 +109,130 @@ function installedListEntry(stdout, targetDir, native, scope) {
|
|
|
108
109
|
return matches[0];
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
function installedExtensionEntry(stdout, targetDir, native, scope) {
|
|
113
|
+
const listing = JSON.parse(stdout);
|
|
114
|
+
if (!listing || !Array.isArray(listing.extensions)) {
|
|
115
|
+
throw new Error('Clio extensions list did not return an extensions array');
|
|
116
|
+
}
|
|
117
|
+
for (const entry of listing.extensions) {
|
|
118
|
+
if (!installedRecord(entry)) throw new Error('Clio extensions list returned a malformed installed extension');
|
|
119
|
+
}
|
|
120
|
+
const matches = listing.extensions.filter(entry => entry.id === native.id && entry.scope === scope &&
|
|
121
|
+
sameRoot(entry.rootPath, path.join(targetDir, native.source)));
|
|
122
|
+
if (matches.length > 1) throw new Error('Clio extensions list returned duplicate installed extension identities');
|
|
123
|
+
return matches[0];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// The two Clio packages WTF-P installs, plugin first. Each is its own Clio
|
|
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.
|
|
131
|
+
function clioPackages(native) {
|
|
132
|
+
const plugin = {
|
|
133
|
+
noun: 'plugin', command: 'library', id: native.id, ref: `plugin:${native.id}`, source: native.source, inventory: 'portable-plugin',
|
|
134
|
+
deferral: 'Clio activation requires an intact generated bundle without extra or modified files',
|
|
135
|
+
list: () => ['library', 'list', '--kind', 'plugin', '--json'],
|
|
136
|
+
listed: (stdout, targetDir, scope) => installedListEntry(stdout, targetDir, native, scope),
|
|
137
|
+
// `inspect` returns the installed record for the explicitly selected scope.
|
|
138
|
+
verify: scope => ['library', 'inspect', `plugin:${native.id}`, `--${scope}`, '--json'],
|
|
139
|
+
verified: (stdout, targetDir, scope) => verifiedEntry(stdout, targetDir, native, scope)
|
|
140
|
+
};
|
|
141
|
+
if (!native.extension) return [plugin];
|
|
142
|
+
const extension = native.extension;
|
|
143
|
+
const listed = (stdout, targetDir, scope) => installedExtensionEntry(stdout, targetDir, extension, scope);
|
|
144
|
+
return [plugin, {
|
|
145
|
+
noun: 'extension', command: 'extensions', id: extension.id, ref: extension.id, source: extension.source, inventory: 'clio-extension',
|
|
146
|
+
deferral: 'Clio extension activation requires an intact generated extension without extra or modified files',
|
|
147
|
+
list: scope => ['extensions', 'list', `--${scope}`, '--json'],
|
|
148
|
+
listed,
|
|
149
|
+
verify: scope => ['extensions', 'list', `--${scope}`, '--json'],
|
|
150
|
+
verified: listed
|
|
151
|
+
}];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// Registration is what WTF-P is responsible for. Whether the operator has a
|
|
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
|
+
|
|
114
165
|
function registered(entry) {
|
|
115
166
|
return Boolean(entry) && entry.valid === true &&
|
|
116
|
-
Array.isArray(entry.diagnostics) && entry.diagnostics.
|
|
167
|
+
Array.isArray(entry.diagnostics) && entry.diagnostics.every(trustGate);
|
|
117
168
|
}
|
|
118
169
|
|
|
119
|
-
function disabledNotice(
|
|
120
|
-
return `Clio reports ${
|
|
170
|
+
function disabledNotice(pkg, scope) {
|
|
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.`;
|
|
121
172
|
}
|
|
122
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(' ') } : {};
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Install the plugin, then the extension. A failure in the second compensates
|
|
186
|
+
// the first, and the returned compensator undoes both in reverse order.
|
|
123
187
|
function activateClio(targetDir, native, suppliedOptions) {
|
|
124
188
|
const options = scopeOptions(targetDir, suppliedOptions);
|
|
189
|
+
const activated = [];
|
|
190
|
+
try {
|
|
191
|
+
for (const pkg of clioPackages(native)) {
|
|
192
|
+
const result = activatePackage(targetDir, pkg, options);
|
|
193
|
+
activated.push(result);
|
|
194
|
+
if (result.status !== 'registered') break;
|
|
195
|
+
}
|
|
196
|
+
} catch (error) {
|
|
197
|
+
const failures = activated.reverse().flatMap(result => typeof result.rollback === 'function' ? result.rollback() : []);
|
|
198
|
+
if (failures.length) error.nativeRollbackFailures = [...(error.nativeRollbackFailures || []), ...failures];
|
|
199
|
+
throw error;
|
|
200
|
+
}
|
|
201
|
+
if (activated.length === 1) return activated[0];
|
|
202
|
+
const last = activated[activated.length - 1];
|
|
203
|
+
const notices = activated.map(result => result.notice).filter(Boolean);
|
|
204
|
+
return {
|
|
205
|
+
status: last.status, executable: 'clio-coder',
|
|
206
|
+
...(last.reason ? { reason: last.reason } : {}),
|
|
207
|
+
results: activated.flatMap(result => result.results),
|
|
208
|
+
...(notices.length ? { notice: notices.join(' ') } : {}),
|
|
209
|
+
rollback() {
|
|
210
|
+
return [...activated].reverse().flatMap(result => typeof result.rollback === 'function' ? result.rollback() : []);
|
|
211
|
+
},
|
|
212
|
+
commit() {
|
|
213
|
+
const warnings = activated.map(result => typeof result.commit === 'function' ? result.commit() : undefined).filter(Boolean);
|
|
214
|
+
return warnings.length ? warnings.join('; ') : undefined;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function activatePackage(targetDir, pkg, options) {
|
|
125
220
|
const { execute, environment } = options;
|
|
126
221
|
const guard = createTargetGuard(targetDir);
|
|
127
|
-
const root = resolveOwnedPath(targetDir,
|
|
222
|
+
const root = resolveOwnedPath(targetDir, pkg.source, guard);
|
|
128
223
|
const publishedFiles = treeFiles(root);
|
|
129
|
-
const expected = generatedBundle(root);
|
|
224
|
+
const expected = generatedBundle(root, pkg.inventory);
|
|
130
225
|
if (!expected || !sameTree(expected, publishedFiles)) {
|
|
131
|
-
return {
|
|
132
|
-
status: 'deferred',
|
|
133
|
-
reason: 'Clio activation requires an intact generated bundle without extra or modified files',
|
|
134
|
-
results: []
|
|
135
|
-
};
|
|
226
|
+
return { status: 'deferred', reason: pkg.deferral, results: [] };
|
|
136
227
|
}
|
|
137
228
|
|
|
138
229
|
const results = [];
|
|
139
|
-
const priorList = execute('clio-coder',
|
|
230
|
+
const priorList = execute('clio-coder', pkg.list(options.scope), environment, options);
|
|
140
231
|
if (priorList.status === 'unavailable') return { status: 'unavailable', executable: 'clio-coder', results };
|
|
141
232
|
results.push(priorList);
|
|
142
|
-
const priorEntry =
|
|
233
|
+
const priorEntry = pkg.listed(priorList.stdout, targetDir, options.scope);
|
|
143
234
|
if (registered(priorEntry)) {
|
|
144
|
-
return {
|
|
145
|
-
status: 'registered', executable: 'clio-coder', results,
|
|
146
|
-
...(priorEntry.enabled === false ? { notice: disabledNotice(native, options.scope) } : {})
|
|
147
|
-
};
|
|
235
|
+
return { status: 'registered', executable: 'clio-coder', results, ...preferenceNotice(pkg, options.scope, priorEntry) };
|
|
148
236
|
}
|
|
149
237
|
|
|
150
238
|
// `library install` copies a source into the destination it owns, so the
|
|
@@ -152,7 +240,7 @@ function activateClio(targetDir, native, suppliedOptions) {
|
|
|
152
240
|
// until the receipt is durable lets a failed registration put the previous
|
|
153
241
|
// installation back before the file transaction rolls it back.
|
|
154
242
|
const staging = fs.mkdtempSync(path.join(path.dirname(root), '.wtfp-staged-'));
|
|
155
|
-
const source = path.join(staging,
|
|
243
|
+
const source = path.join(staging, pkg.id);
|
|
156
244
|
fs.renameSync(root, source);
|
|
157
245
|
let finished = false;
|
|
158
246
|
|
|
@@ -163,15 +251,15 @@ function activateClio(targetDir, native, suppliedOptions) {
|
|
|
163
251
|
if (!sameTree(publishedFiles, treeFiles(root))) {
|
|
164
252
|
throw new Error('Clio content changed concurrently; recovery tree preserved');
|
|
165
253
|
}
|
|
166
|
-
const removal = execute('clio-coder', [
|
|
254
|
+
const removal = execute('clio-coder', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment,
|
|
167
255
|
{ ...options, allowAlreadyAbsent: true });
|
|
168
256
|
results.push(removal);
|
|
169
257
|
if (removal.status === 'unavailable') throw new Error('Clio became unavailable during rollback');
|
|
170
258
|
}
|
|
171
259
|
if (fs.existsSync(root)) throw new Error('Clio rollback did not remove the replacement');
|
|
172
|
-
const after = execute('clio-coder',
|
|
260
|
+
const after = execute('clio-coder', pkg.list(options.scope), environment, options);
|
|
173
261
|
results.push(after);
|
|
174
|
-
if (after.status === 'unavailable' ||
|
|
262
|
+
if (after.status === 'unavailable' || pkg.listed(after.stdout, targetDir, options.scope)) {
|
|
175
263
|
throw new Error('Clio rollback did not clear the replacement registration');
|
|
176
264
|
}
|
|
177
265
|
fs.renameSync(source, root);
|
|
@@ -184,22 +272,22 @@ function activateClio(targetDir, native, suppliedOptions) {
|
|
|
184
272
|
}
|
|
185
273
|
|
|
186
274
|
try {
|
|
187
|
-
const installation = execute('clio-coder', [
|
|
275
|
+
const installation = execute('clio-coder', [pkg.command, 'install', source, `--${options.scope}`, '--json'], environment, options);
|
|
188
276
|
results.push(installation);
|
|
189
277
|
if (installation.status === 'unavailable') throw new Error('Clio became unavailable during installation');
|
|
190
|
-
const inspected = execute('clio-coder',
|
|
278
|
+
const inspected = execute('clio-coder', pkg.verify(options.scope), environment, options);
|
|
191
279
|
results.push(inspected);
|
|
192
280
|
if (inspected.status === 'unavailable') throw new Error('Clio became unavailable during verification');
|
|
193
|
-
const entry =
|
|
281
|
+
const entry = pkg.verified(inspected.stdout, targetDir, options.scope);
|
|
194
282
|
if (!registered(entry) || !sameTree(publishedFiles, treeFiles(root))) {
|
|
195
|
-
throw new Error(
|
|
283
|
+
throw new Error(`Clio did not report the exact WTF-P ${pkg.noun} as installed and valid with zero diagnostics`);
|
|
196
284
|
}
|
|
197
285
|
if (priorEntry && priorEntry.enabled !== entry.enabled) {
|
|
198
|
-
throw new Error(
|
|
286
|
+
throw new Error(`Clio installation changed the existing WTF-P ${pkg.noun} enabled preference`);
|
|
199
287
|
}
|
|
200
288
|
return {
|
|
201
289
|
status: 'registered', executable: 'clio-coder', results, rollback,
|
|
202
|
-
...(
|
|
290
|
+
...preferenceNotice(pkg, options.scope, entry),
|
|
203
291
|
commit() {
|
|
204
292
|
// Only the private held copy is removed; Clio owns its installed tree.
|
|
205
293
|
finished = true;
|
|
@@ -217,27 +305,57 @@ function activateClio(targetDir, native, suppliedOptions) {
|
|
|
217
305
|
}
|
|
218
306
|
}
|
|
219
307
|
|
|
308
|
+
// Remove the extension, then the plugin, each only when the receipt proves it.
|
|
309
|
+
// `ownedFiles` maps receipt paths below the target to their published hashes.
|
|
220
310
|
function deactivateClio(targetDir, native, suppliedOptions) {
|
|
221
311
|
const options = scopeOptions(targetDir, suppliedOptions);
|
|
312
|
+
const removed = [];
|
|
313
|
+
for (const pkg of clioPackages(native).reverse()) {
|
|
314
|
+
const prefix = `${pkg.source}/`;
|
|
315
|
+
const ownedFiles = options.ownedFiles && new Map([...options.ownedFiles]
|
|
316
|
+
.filter(([file]) => file.startsWith(prefix))
|
|
317
|
+
.map(([file, hash]) => [file.slice(prefix.length), hash]));
|
|
318
|
+
const result = deactivatePackage(targetDir, pkg, { ...options, ownedFiles });
|
|
319
|
+
if (result.status === 'unavailable') return result;
|
|
320
|
+
removed.push(result);
|
|
321
|
+
}
|
|
322
|
+
if (removed.length === 1) return removed[0];
|
|
323
|
+
const deferred = removed.filter(result => result.status === 'deferred');
|
|
324
|
+
const results = removed.flatMap(result => result.results);
|
|
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
|
+
}
|
|
330
|
+
return removed.some(result => result.status === 'unregistered')
|
|
331
|
+
? { status: 'unregistered', executable: 'clio-coder', results }
|
|
332
|
+
: { status: 'not-required', results };
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
function deactivatePackage(targetDir, pkg, options) {
|
|
222
336
|
const { execute, environment } = options;
|
|
223
337
|
const guard = createTargetGuard(targetDir);
|
|
224
|
-
const listing = execute('clio-coder',
|
|
338
|
+
const listing = execute('clio-coder', pkg.list(options.scope), environment, options);
|
|
225
339
|
if (listing.status === 'unavailable') return { status: 'unavailable', executable: 'clio-coder', results: [] };
|
|
226
|
-
if (!
|
|
340
|
+
if (!pkg.listed(listing.stdout, targetDir, options.scope)) {
|
|
227
341
|
return { status: 'not-required', results: [listing] };
|
|
228
342
|
}
|
|
229
343
|
|
|
230
344
|
// Native removal is recursive. Run it only when the receipt proves that every
|
|
231
345
|
// file below the installed root is one WTF-P published and nobody changed.
|
|
232
|
-
const root = resolveOwnedPath(targetDir,
|
|
346
|
+
const root = resolveOwnedPath(targetDir, pkg.source, guard);
|
|
233
347
|
const ownedFiles = options.ownedFiles;
|
|
234
348
|
if (!ownedFiles || !sameTree(treeFiles(root), ownedFiles)) {
|
|
235
|
-
|
|
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
|
+
};
|
|
236
354
|
}
|
|
237
|
-
const result = execute('clio-coder', [
|
|
355
|
+
const result = execute('clio-coder', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment, options);
|
|
238
356
|
if (result.status === 'unavailable') return { status: 'unavailable', executable: 'clio-coder', results: [listing] };
|
|
239
|
-
const after = execute('clio-coder',
|
|
240
|
-
if (after.status === 'unavailable' || fs.existsSync(root) ||
|
|
357
|
+
const after = execute('clio-coder', pkg.list(options.scope), environment, options);
|
|
358
|
+
if (after.status === 'unavailable' || fs.existsSync(root) || pkg.listed(after.stdout, targetDir, options.scope)) {
|
|
241
359
|
throw new Error('Clio removal did not clear WTF-P content and registration');
|
|
242
360
|
}
|
|
243
361
|
return { status: 'unregistered', executable: 'clio-coder', results: [listing, result, after] };
|
package/bin/lib/manifest.js
CHANGED
|
@@ -67,8 +67,9 @@ const MANIFEST = {
|
|
|
67
67
|
source: 'marketplaces/wtfp'
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
// Clio consumes the canonical Agent Plugins bundle through its
|
|
71
|
-
// lifecycle
|
|
70
|
+
// Clio consumes the canonical Agent Plugins bundle through its plugin
|
|
71
|
+
// lifecycle and the desk through its extension lifecycle: two packages, two
|
|
72
|
+
// Clio installs, one WTF-P receipt.
|
|
72
73
|
clio: {
|
|
73
74
|
name: 'Clio Coder',
|
|
74
75
|
configDirEnv: 'CLIO_CODER_CONFIG_DIR',
|
|
@@ -80,6 +81,12 @@ const MANIFEST = {
|
|
|
80
81
|
src: path.join(ROOT, 'vendors', 'plugin'),
|
|
81
82
|
dest: 'plugins/wtfp',
|
|
82
83
|
type: 'dir'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: 'extension',
|
|
87
|
+
src: path.join(ROOT, 'vendors', 'clio-extension'),
|
|
88
|
+
dest: 'extensions/wtfp',
|
|
89
|
+
type: 'dir'
|
|
83
90
|
}
|
|
84
91
|
],
|
|
85
92
|
discovery: {
|
|
@@ -89,7 +96,8 @@ const MANIFEST = {
|
|
|
89
96
|
native: {
|
|
90
97
|
kind: 'clio-plugin',
|
|
91
98
|
id: 'wtfp',
|
|
92
|
-
source: 'plugins/wtfp'
|
|
99
|
+
source: 'plugins/wtfp',
|
|
100
|
+
extension: { id: 'wtfp', source: 'extensions/wtfp' }
|
|
93
101
|
}
|
|
94
102
|
},
|
|
95
103
|
codex: {
|
package/bin/uninstall.js
CHANGED
|
@@ -780,14 +780,25 @@ async function uninstall(runtime, options, out) {
|
|
|
780
780
|
vendorConfig.native,
|
|
781
781
|
{ ...(vendorKey === 'clio' && plan.receipt.scope === 'project'
|
|
782
782
|
? { scope: 'project', cwd: path.dirname(targetDir) } : {}),
|
|
783
|
+
// Receipt paths below the target; Clio checks each package root against them.
|
|
783
784
|
ownedFiles: new Map(plan.items
|
|
784
|
-
.filter(item => item.
|
|
785
|
-
.map(item => [item.path
|
|
785
|
+
.filter(item => item.state === 'unchanged')
|
|
786
|
+
.map(item => [item.path, item.entry.sha256])) }
|
|
786
787
|
);
|
|
787
788
|
if (nativeRemoval.status === 'unavailable' && !options.hasQuiet) {
|
|
788
789
|
out.warn(`${nativeRemoval.executable} is unavailable; removing the WTF-P-owned staging files without changing the client's native registry.`);
|
|
789
|
-
} else if (nativeRemoval.status === 'deferred'
|
|
790
|
-
|
|
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.');
|
|
791
802
|
}
|
|
792
803
|
} else if (vendorConfig.native && !options.hasQuiet) {
|
|
793
804
|
out.warn('Native registration was preserved because this uninstall cannot remove every WTF-P-owned source file safely.');
|
|
@@ -802,11 +813,16 @@ async function uninstall(runtime, options, out) {
|
|
|
802
813
|
}
|
|
803
814
|
|
|
804
815
|
const remaining = plan.items.filter(item => !item.removed && item.state !== 'missing');
|
|
805
|
-
|
|
806
|
-
|
|
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).`);
|
|
807
822
|
out.log(` Re-run with ${c.cyan('--force')} only if you intend to remove exact modified/legacy receipt files.\n`);
|
|
808
823
|
return { status: 'partial', plan, summary };
|
|
809
824
|
}
|
|
825
|
+
if (keptRegistered > 0) return { status: 'partial', plan, summary };
|
|
810
826
|
|
|
811
827
|
out.log(`\n ${c.green('Done!')} Removed WTF-P-owned files from ${vendorConfig.name}.`);
|
|
812
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.
|
|
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",
|
|
@@ -29,13 +29,18 @@
|
|
|
29
29
|
"project://sources/{source}",
|
|
30
30
|
"project://evidence/{evidence}",
|
|
31
31
|
"project://validations/{validation}",
|
|
32
|
-
"project://paper/{artifact}"
|
|
32
|
+
"project://paper/{artifact}",
|
|
33
|
+
"project://checkpoints/{checkpoint}"
|
|
33
34
|
],
|
|
34
35
|
"produces": [
|
|
35
36
|
{
|
|
36
37
|
"uri": "project://checkpoints/{checkpoint}",
|
|
37
38
|
"mode": "create"
|
|
38
39
|
},
|
|
40
|
+
{
|
|
41
|
+
"uri": "project://checkpoints/{checkpoint}",
|
|
42
|
+
"mode": "update"
|
|
43
|
+
},
|
|
39
44
|
{
|
|
40
45
|
"uri": "project://archives/checkpoints/{checkpoint}",
|
|
41
46
|
"mode": "create"
|
|
@@ -60,6 +65,10 @@
|
|
|
60
65
|
"id": "filesystem.create",
|
|
61
66
|
"scope": "project://checkpoints/{checkpoint}, project://archives/checkpoints/{checkpoint}, project://archives/recovery/{artifact}"
|
|
62
67
|
},
|
|
68
|
+
{
|
|
69
|
+
"id": "filesystem.modify",
|
|
70
|
+
"scope": "project://checkpoints/{checkpoint}"
|
|
71
|
+
},
|
|
63
72
|
{
|
|
64
73
|
"id": "filesystem.read",
|
|
65
74
|
"scope": "declared project records and authored artifacts selected for the snapshot"
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"project://paper/{artifact}"
|
|
38
38
|
],
|
|
39
39
|
"produces": [
|
|
40
|
+
{
|
|
41
|
+
"uri": "project://paper/{artifact}",
|
|
42
|
+
"mode": "create"
|
|
43
|
+
},
|
|
40
44
|
{
|
|
41
45
|
"uri": "project://paper/{artifact}",
|
|
42
46
|
"mode": "update"
|
|
@@ -68,6 +72,10 @@
|
|
|
68
72
|
{
|
|
69
73
|
"uri": "project://validations/{validation}",
|
|
70
74
|
"mode": "create"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"uri": "project://manifest",
|
|
78
|
+
"mode": "update"
|
|
71
79
|
}
|
|
72
80
|
],
|
|
73
81
|
"delegation": [
|
|
@@ -94,11 +102,11 @@
|
|
|
94
102
|
},
|
|
95
103
|
{
|
|
96
104
|
"id": "filesystem.create",
|
|
97
|
-
"scope": "project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://validations/{validation}"
|
|
105
|
+
"scope": "project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://validations/{validation}, project://paper/{artifact}"
|
|
98
106
|
},
|
|
99
107
|
{
|
|
100
108
|
"id": "filesystem.modify",
|
|
101
|
-
"scope": "project://paper/{artifact}, project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://sections/{section}, project://state"
|
|
109
|
+
"scope": "project://paper/{artifact}, project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://sections/{section}, project://state, project://manifest"
|
|
102
110
|
},
|
|
103
111
|
{
|
|
104
112
|
"id": "filesystem.read",
|
|
@@ -27,12 +27,21 @@
|
|
|
27
27
|
"project://structure/outline",
|
|
28
28
|
"project://sources/{source}",
|
|
29
29
|
"project://evidence/{evidence}",
|
|
30
|
-
"project://paper/{artifact}"
|
|
30
|
+
"project://paper/{artifact}",
|
|
31
|
+
"project://deliverables/latex/{artifact}"
|
|
31
32
|
],
|
|
32
33
|
"produces": [
|
|
33
34
|
{
|
|
34
35
|
"uri": "project://deliverables/latex/{artifact}",
|
|
35
36
|
"mode": "create"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"uri": "project://deliverables/latex/{artifact}",
|
|
40
|
+
"mode": "update"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"uri": "project://manifest",
|
|
44
|
+
"mode": "update"
|
|
36
45
|
}
|
|
37
46
|
],
|
|
38
47
|
"delegation": [],
|
|
@@ -45,9 +54,13 @@
|
|
|
45
54
|
"id": "filesystem.create",
|
|
46
55
|
"scope": "project://deliverables/latex/{artifact}"
|
|
47
56
|
},
|
|
57
|
+
{
|
|
58
|
+
"id": "filesystem.modify",
|
|
59
|
+
"scope": "project://deliverables/latex/{artifact}, project://manifest"
|
|
60
|
+
},
|
|
48
61
|
{
|
|
49
62
|
"id": "filesystem.read",
|
|
50
|
-
"scope": "project://manifest, project://config, project://structure/outline, project://sources/{source}, project://evidence/{evidence}, project://paper/{artifact}"
|
|
63
|
+
"scope": "project://manifest, project://config, project://structure/outline, project://sources/{source}, project://evidence/{evidence}, project://paper/{artifact}, project://deliverables/latex/{artifact}"
|
|
51
64
|
},
|
|
52
65
|
{
|
|
53
66
|
"id": "filesystem.write",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"reads": [
|
|
23
23
|
"project://manifest",
|
|
24
|
+
"project://config",
|
|
24
25
|
"project://decisions",
|
|
25
26
|
"project://sections/{section}",
|
|
26
27
|
"project://sections/{section}/plans/{plan}",
|
|
@@ -33,6 +34,14 @@
|
|
|
33
34
|
{
|
|
34
35
|
"uri": "project://sections/{section}/plans/{plan}",
|
|
35
36
|
"mode": "create"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"uri": "project://checkpoints/{checkpoint}",
|
|
40
|
+
"mode": "create"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"uri": "project://sections/{section}",
|
|
44
|
+
"mode": "update"
|
|
36
45
|
}
|
|
37
46
|
],
|
|
38
47
|
"delegation": [],
|
|
@@ -40,19 +49,23 @@
|
|
|
40
49
|
"effects": [
|
|
41
50
|
{
|
|
42
51
|
"id": "filesystem.create",
|
|
43
|
-
"scope": "project://sections/{section}/plans/{plan}"
|
|
52
|
+
"scope": "project://sections/{section}/plans/{plan}, project://checkpoints/{checkpoint}"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "filesystem.modify",
|
|
56
|
+
"scope": "project://sections/{section}"
|
|
44
57
|
},
|
|
45
58
|
{
|
|
46
59
|
"id": "filesystem.read",
|
|
47
|
-
"scope": "project://manifest, project://decisions, project://sections/{section}, project://sections/{section}/plans/{plan}, project://sections/{section}/reviews/{review}, project://sections/{section}/summary, project://validations/{validation}, project://paper/{artifact}"
|
|
60
|
+
"scope": "project://manifest, project://config, project://decisions, project://sections/{section}, project://sections/{section}/plans/{plan}, project://sections/{section}/reviews/{review}, project://sections/{section}/summary, project://validations/{validation}, project://paper/{artifact}"
|
|
48
61
|
},
|
|
49
62
|
{
|
|
50
63
|
"id": "filesystem.write",
|
|
51
|
-
"scope": "project://sections/{section}/plans/{plan}"
|
|
64
|
+
"scope": "project://sections/{section}/plans/{plan}, project://checkpoints/{checkpoint}, project://sections/{section}"
|
|
52
65
|
},
|
|
53
66
|
{
|
|
54
67
|
"id": "user.gate",
|
|
55
|
-
"scope": "revision priorities"
|
|
68
|
+
"scope": "revision priorities and approval of the exact revision plan"
|
|
56
69
|
}
|
|
57
70
|
]
|
|
58
71
|
}
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"project://manifest",
|
|
25
25
|
"project://config",
|
|
26
26
|
"project://decisions",
|
|
27
|
-
"project://paper/{artifact}"
|
|
27
|
+
"project://paper/{artifact}",
|
|
28
|
+
"project://sections/{section}",
|
|
29
|
+
"project://state"
|
|
28
30
|
],
|
|
29
31
|
"produces": [
|
|
30
32
|
{
|
|
@@ -34,6 +36,14 @@
|
|
|
34
36
|
{
|
|
35
37
|
"uri": "project://validations/{validation}",
|
|
36
38
|
"mode": "create"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"uri": "project://sections/{section}",
|
|
42
|
+
"mode": "update"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"uri": "project://state",
|
|
46
|
+
"mode": "update"
|
|
37
47
|
}
|
|
38
48
|
],
|
|
39
49
|
"delegation": [
|
|
@@ -55,11 +65,11 @@
|
|
|
55
65
|
},
|
|
56
66
|
{
|
|
57
67
|
"id": "filesystem.modify",
|
|
58
|
-
"scope": "project://paper/{artifact}"
|
|
68
|
+
"scope": "project://paper/{artifact}, project://sections/{section}, project://state"
|
|
59
69
|
},
|
|
60
70
|
{
|
|
61
71
|
"id": "filesystem.read",
|
|
62
|
-
"scope": "project://manifest, project://config, project://decisions, project://paper/{artifact}"
|
|
72
|
+
"scope": "project://manifest, project://config, project://decisions, project://paper/{artifact}, project://sections/{section}, project://state"
|
|
63
73
|
},
|
|
64
74
|
{
|
|
65
75
|
"id": "user.gate",
|