wtf-p 0.5.0 → 0.6.0-rc.2
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 +259 -205
- package/bin/commands/doctor.js +30 -9
- package/bin/commands/install-logic.js +573 -89
- package/bin/commands/list.js +4 -12
- package/bin/commands/status.js +15 -12
- package/bin/commands/update.js +5 -4
- package/bin/install.js +223 -39
- package/bin/lib/adapter-compiler.js +1362 -0
- package/bin/lib/adapter-metadata.js +12 -0
- package/bin/lib/analyze-impact.js +28 -24
- package/bin/lib/bib-format.js +2 -2
- package/bin/lib/bib-index.js +6 -6
- package/bin/lib/citation-fetcher.js +20 -20
- package/bin/lib/citation-ranker.js +44 -32
- package/bin/lib/manifest.js +141 -95
- package/bin/lib/native-registration.js +579 -0
- package/bin/lib/ownership.js +984 -0
- package/bin/lib/scholar-lookup.js +13 -13
- package/bin/lib/semantic-scholar.js +19 -19
- package/bin/lib/utils.js +109 -43
- package/bin/uninstall.js +776 -504
- package/package.json +23 -13
- package/protocol/actions/add-todo.json +52 -0
- package/protocol/actions/analyze-bib.json +97 -0
- package/protocol/actions/audit-milestone.json +63 -0
- package/protocol/actions/check-refs.json +80 -0
- package/protocol/actions/check-todos.json +52 -0
- package/protocol/actions/checkpoint.json +76 -0
- package/protocol/actions/contribute.json +57 -0
- package/protocol/actions/create-outline.json +84 -0
- package/protocol/actions/create-poster.json +59 -0
- package/protocol/actions/create-slides.json +59 -0
- package/protocol/actions/discuss-section.json +76 -0
- package/protocol/actions/execute-outline.json +116 -0
- package/protocol/actions/export-latex.json +65 -0
- package/protocol/actions/help.json +30 -0
- package/protocol/actions/insert-section.json +61 -0
- package/protocol/actions/list-assumptions.json +35 -0
- package/protocol/actions/map-project.json +57 -0
- package/protocol/actions/new-paper.json +70 -0
- package/protocol/actions/pause-writing.json +71 -0
- package/protocol/actions/plan-milestone-gaps.json +57 -0
- package/protocol/actions/plan-revision.json +58 -0
- package/protocol/actions/plan-section.json +100 -0
- package/protocol/actions/polish-prose.json +69 -0
- package/protocol/actions/progress.json +51 -0
- package/protocol/actions/quick.json +70 -0
- package/protocol/actions/remove-section.json +63 -0
- package/protocol/actions/report-bug.json +47 -0
- package/protocol/actions/request-feature.json +47 -0
- package/protocol/actions/research-gap.json +101 -0
- package/protocol/actions/resume-writing.json +65 -0
- package/protocol/actions/review-section.json +83 -0
- package/protocol/actions/settings.json +47 -0
- package/protocol/actions/submit-milestone.json +77 -0
- package/protocol/actions/update.json +42 -0
- package/protocol/actions/verify-work.json +63 -0
- package/protocol/actions/write-section.json +115 -0
- package/protocol/aliases.lock.json +42 -0
- package/protocol/catalog.json +127 -0
- package/protocol/effects.json +107 -0
- package/protocol/fleets/wtfp-draft-review.json +35 -0
- package/protocol/fleets/wtfp-plan-section.json +34 -0
- package/protocol/project/README.md +65 -0
- package/protocol/project/schemas/checkpoint.schema.json +102 -0
- package/protocol/project/schemas/common.schema.json +33 -0
- package/protocol/project/schemas/config.schema.json +69 -0
- package/protocol/project/schemas/decisions.schema.json +31 -0
- package/protocol/project/schemas/evidence.schema.json +48 -0
- package/protocol/project/schemas/manifest.schema.json +102 -0
- package/protocol/project/schemas/outline.schema.json +67 -0
- package/protocol/project/schemas/section.schema.json +95 -0
- package/protocol/project/schemas/source.schema.json +73 -0
- package/protocol/project/schemas/state.schema.json +58 -0
- package/protocol/project/schemas/validation.schema.json +74 -0
- package/protocol/project/templates/checkpoint.json +25 -0
- package/protocol/project/templates/config.json +31 -0
- package/protocol/project/templates/decisions.json +35 -0
- package/protocol/project/templates/evidence.json +18 -0
- package/protocol/project/templates/manifest.json +30 -0
- package/protocol/project/templates/outline.json +38 -0
- package/protocol/project/templates/section.json +32 -0
- package/protocol/project/templates/source.json +20 -0
- package/protocol/project/templates/state.json +22 -0
- package/protocol/project/templates/validation.json +32 -0
- package/protocol/roles/argument-verifier.md +62 -0
- package/protocol/roles/citation-expert.md +63 -0
- package/protocol/roles/citation-formatter.md +63 -0
- package/protocol/roles/coherence-checker.md +61 -0
- package/protocol/roles/outliner.md +68 -0
- package/protocol/roles/plan-checker.md +62 -0
- package/protocol/roles/prose-polisher.md +63 -0
- package/protocol/roles/research-synthesizer.md +65 -0
- package/protocol/roles/section-planner.md +65 -0
- package/protocol/roles/section-reviewer.md +62 -0
- package/protocol/roles/section-writer.md +66 -0
- package/protocol/schemas/action.schema.json +129 -0
- package/protocol/schemas/aliases.schema.json +26 -0
- package/protocol/schemas/catalog.schema.json +61 -0
- package/protocol/schemas/effects.schema.json +26 -0
- package/protocol/schemas/role-result.schema.json +74 -0
- package/protocol/schemas/tools.schema.json +26 -0
- package/protocol/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/protocol/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/protocol/skills/wtfp-deliver-research/references/actions.md +77 -0
- package/protocol/skills/wtfp-manage-project/SKILL.md +40 -0
- package/protocol/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/protocol/skills/wtfp-manage-project/references/actions.md +91 -0
- package/protocol/skills/wtfp-plan-section/SKILL.md +40 -0
- package/protocol/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/protocol/skills/wtfp-plan-section/references/actions.md +115 -0
- package/protocol/skills/wtfp-research-literature/SKILL.md +37 -0
- package/protocol/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/protocol/skills/wtfp-research-literature/references/actions.md +75 -0
- package/protocol/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/protocol/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/protocol/skills/wtfp-review-manuscript/references/actions.md +96 -0
- package/protocol/skills/wtfp-start-project/SKILL.md +38 -0
- package/protocol/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/protocol/skills/wtfp-start-project/references/actions.md +80 -0
- package/protocol/skills/wtfp-write-section/SKILL.md +37 -0
- package/protocol/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/protocol/skills/wtfp-write-section/references/actions.md +69 -0
- package/protocol/tools.json +54 -0
- package/protocol/workflows/add-todo.md +32 -0
- package/protocol/workflows/analyze-bib.md +33 -0
- package/protocol/workflows/audit-milestone.md +32 -0
- package/protocol/workflows/check-refs.md +32 -0
- package/protocol/workflows/check-todos.md +32 -0
- package/protocol/workflows/checkpoint.md +32 -0
- package/protocol/workflows/contribute.md +30 -0
- package/protocol/workflows/create-outline.md +33 -0
- package/protocol/workflows/create-poster.md +32 -0
- package/protocol/workflows/create-slides.md +32 -0
- package/protocol/workflows/discuss-section.md +32 -0
- package/protocol/workflows/execute-outline.md +32 -0
- package/protocol/workflows/export-latex.md +32 -0
- package/protocol/workflows/help.md +30 -0
- package/protocol/workflows/insert-section.md +32 -0
- package/protocol/workflows/list-assumptions.md +32 -0
- package/protocol/workflows/map-project.md +32 -0
- package/protocol/workflows/new-paper.md +37 -0
- package/protocol/workflows/pause-writing.md +32 -0
- package/protocol/workflows/plan-milestone-gaps.md +32 -0
- package/protocol/workflows/plan-revision.md +32 -0
- package/protocol/workflows/plan-section.md +34 -0
- package/protocol/workflows/polish-prose.md +32 -0
- package/protocol/workflows/progress.md +32 -0
- package/protocol/workflows/quick.md +32 -0
- package/protocol/workflows/remove-section.md +32 -0
- package/protocol/workflows/report-bug.md +30 -0
- package/protocol/workflows/request-feature.md +30 -0
- package/protocol/workflows/research-gap.md +32 -0
- package/protocol/workflows/resume-writing.md +34 -0
- package/protocol/workflows/review-section.md +33 -0
- package/protocol/workflows/settings.md +32 -0
- package/protocol/workflows/submit-milestone.md +32 -0
- package/protocol/workflows/update.md +30 -0
- package/protocol/workflows/verify-work.md +32 -0
- package/protocol/workflows/write-section.md +34 -0
- package/scripts/build-adapters.js +30 -0
- package/vendors/antigravity/.wtfp-generated.json +792 -0
- package/vendors/antigravity/actions/add-todo.json +52 -0
- package/vendors/antigravity/actions/analyze-bib.json +97 -0
- package/vendors/antigravity/actions/audit-milestone.json +63 -0
- package/vendors/antigravity/actions/check-refs.json +80 -0
- package/vendors/antigravity/actions/check-todos.json +52 -0
- package/vendors/antigravity/actions/checkpoint.json +76 -0
- package/vendors/antigravity/actions/contribute.json +57 -0
- package/vendors/antigravity/actions/create-outline.json +84 -0
- package/vendors/antigravity/actions/create-poster.json +59 -0
- package/vendors/antigravity/actions/create-slides.json +59 -0
- package/vendors/antigravity/actions/discuss-section.json +76 -0
- package/vendors/antigravity/actions/execute-outline.json +116 -0
- package/vendors/antigravity/actions/export-latex.json +65 -0
- package/vendors/antigravity/actions/help.json +30 -0
- package/vendors/antigravity/actions/insert-section.json +61 -0
- package/vendors/antigravity/actions/list-assumptions.json +35 -0
- package/vendors/antigravity/actions/map-project.json +57 -0
- package/vendors/antigravity/actions/new-paper.json +70 -0
- package/vendors/antigravity/actions/pause-writing.json +71 -0
- package/vendors/antigravity/actions/plan-milestone-gaps.json +57 -0
- package/vendors/antigravity/actions/plan-revision.json +58 -0
- package/vendors/antigravity/actions/plan-section.json +100 -0
- package/vendors/antigravity/actions/polish-prose.json +69 -0
- package/vendors/antigravity/actions/progress.json +51 -0
- package/vendors/antigravity/actions/quick.json +70 -0
- package/vendors/antigravity/actions/remove-section.json +63 -0
- package/vendors/antigravity/actions/report-bug.json +47 -0
- package/vendors/antigravity/actions/request-feature.json +47 -0
- package/vendors/antigravity/actions/research-gap.json +101 -0
- package/vendors/antigravity/actions/resume-writing.json +65 -0
- package/vendors/antigravity/actions/review-section.json +83 -0
- package/vendors/antigravity/actions/settings.json +47 -0
- package/vendors/antigravity/actions/submit-milestone.json +77 -0
- package/vendors/antigravity/actions/update.json +42 -0
- package/vendors/antigravity/actions/verify-work.json +63 -0
- package/vendors/antigravity/actions/write-section.json +115 -0
- package/vendors/antigravity/agents/wtfp-argument-verifier.md +65 -0
- package/vendors/antigravity/agents/wtfp-citation-expert.md +68 -0
- package/vendors/antigravity/agents/wtfp-citation-formatter.md +68 -0
- package/vendors/antigravity/agents/wtfp-coherence-checker.md +64 -0
- package/vendors/antigravity/agents/wtfp-outliner.md +73 -0
- package/vendors/antigravity/agents/wtfp-plan-checker.md +65 -0
- package/vendors/antigravity/agents/wtfp-prose-polisher.md +68 -0
- package/vendors/antigravity/agents/wtfp-research-synthesizer.md +70 -0
- package/vendors/antigravity/agents/wtfp-section-planner.md +70 -0
- package/vendors/antigravity/agents/wtfp-section-reviewer.md +65 -0
- package/vendors/antigravity/agents/wtfp-section-writer.md +71 -0
- package/vendors/antigravity/aliases.lock.json +42 -0
- package/vendors/antigravity/catalog.json +127 -0
- package/vendors/antigravity/commands/wtfp-add-todo.md +59 -0
- package/vendors/antigravity/commands/wtfp-analyze-bib.md +17 -0
- package/vendors/antigravity/commands/wtfp-audit-milestone.md +17 -0
- package/vendors/antigravity/commands/wtfp-check-refs.md +17 -0
- package/vendors/antigravity/commands/wtfp-check-todos.md +58 -0
- package/vendors/antigravity/commands/wtfp-checkpoint.md +74 -0
- package/vendors/antigravity/commands/wtfp-contribute.md +17 -0
- package/vendors/antigravity/commands/wtfp-create-outline.md +74 -0
- package/vendors/antigravity/commands/wtfp-create-poster.md +17 -0
- package/vendors/antigravity/commands/wtfp-create-slides.md +17 -0
- package/vendors/antigravity/commands/wtfp-discuss-section.md +64 -0
- package/vendors/antigravity/commands/wtfp-execute-outline.md +75 -0
- package/vendors/antigravity/commands/wtfp-export-latex.md +17 -0
- package/vendors/antigravity/commands/wtfp-help.md +48 -0
- package/vendors/antigravity/commands/wtfp-insert-section.md +60 -0
- package/vendors/antigravity/commands/wtfp-list-assumptions.md +59 -0
- package/vendors/antigravity/commands/wtfp-map-project.md +61 -0
- package/vendors/antigravity/commands/wtfp-new-paper.md +69 -0
- package/vendors/antigravity/commands/wtfp-pause-writing.md +65 -0
- package/vendors/antigravity/commands/wtfp-plan-milestone-gaps.md +62 -0
- package/vendors/antigravity/commands/wtfp-plan-revision.md +62 -0
- package/vendors/antigravity/commands/wtfp-plan-section.md +77 -0
- package/vendors/antigravity/commands/wtfp-polish-prose.md +63 -0
- package/vendors/antigravity/commands/wtfp-progress.md +72 -0
- package/vendors/antigravity/commands/wtfp-quick.md +63 -0
- package/vendors/antigravity/commands/wtfp-remove-section.md +17 -0
- package/vendors/antigravity/commands/wtfp-report-bug.md +17 -0
- package/vendors/antigravity/commands/wtfp-request-feature.md +17 -0
- package/vendors/antigravity/commands/wtfp-research-gap.md +17 -0
- package/vendors/antigravity/commands/wtfp-resume-writing.md +72 -0
- package/vendors/antigravity/commands/wtfp-review-section.md +68 -0
- package/vendors/antigravity/commands/wtfp-settings.md +56 -0
- package/vendors/antigravity/commands/wtfp-submit-milestone.md +72 -0
- package/vendors/antigravity/commands/wtfp-update.md +17 -0
- package/vendors/antigravity/commands/wtfp-verify-work.md +62 -0
- package/vendors/antigravity/commands/wtfp-write-section.md +77 -0
- package/vendors/antigravity/compatibility/action-availability.json +314 -0
- package/vendors/antigravity/effects.json +107 -0
- package/vendors/antigravity/fleets/wtfp-draft-review.json +35 -0
- package/vendors/antigravity/fleets/wtfp-plan-section.json +34 -0
- package/vendors/antigravity/plugin.json +11 -0
- package/vendors/antigravity/project/README.md +65 -0
- package/vendors/antigravity/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/antigravity/project/schemas/common.schema.json +33 -0
- package/vendors/antigravity/project/schemas/config.schema.json +69 -0
- package/vendors/antigravity/project/schemas/decisions.schema.json +31 -0
- package/vendors/antigravity/project/schemas/evidence.schema.json +48 -0
- package/vendors/antigravity/project/schemas/manifest.schema.json +102 -0
- package/vendors/antigravity/project/schemas/outline.schema.json +67 -0
- package/vendors/antigravity/project/schemas/section.schema.json +95 -0
- package/vendors/antigravity/project/schemas/source.schema.json +73 -0
- package/vendors/antigravity/project/schemas/state.schema.json +58 -0
- package/vendors/antigravity/project/schemas/validation.schema.json +74 -0
- package/vendors/antigravity/project/templates/checkpoint.json +25 -0
- package/vendors/antigravity/project/templates/config.json +31 -0
- package/vendors/antigravity/project/templates/decisions.json +35 -0
- package/vendors/antigravity/project/templates/evidence.json +18 -0
- package/vendors/antigravity/project/templates/manifest.json +30 -0
- package/vendors/antigravity/project/templates/outline.json +38 -0
- package/vendors/antigravity/project/templates/section.json +32 -0
- package/vendors/antigravity/project/templates/source.json +20 -0
- package/vendors/antigravity/project/templates/state.json +22 -0
- package/vendors/antigravity/project/templates/validation.json +32 -0
- package/vendors/antigravity/repository/CONTRIBUTING.md +183 -0
- package/vendors/antigravity/roles/argument-verifier.md +62 -0
- package/vendors/antigravity/roles/citation-expert.md +63 -0
- package/vendors/antigravity/roles/citation-formatter.md +63 -0
- package/vendors/antigravity/roles/coherence-checker.md +61 -0
- package/vendors/antigravity/roles/outliner.md +68 -0
- package/vendors/antigravity/roles/plan-checker.md +62 -0
- package/vendors/antigravity/roles/prose-polisher.md +63 -0
- package/vendors/antigravity/roles/research-synthesizer.md +65 -0
- package/vendors/antigravity/roles/section-planner.md +65 -0
- package/vendors/antigravity/roles/section-reviewer.md +62 -0
- package/vendors/antigravity/roles/section-writer.md +66 -0
- package/vendors/antigravity/schemas/action.schema.json +129 -0
- package/vendors/antigravity/schemas/aliases.schema.json +26 -0
- package/vendors/antigravity/schemas/catalog.schema.json +61 -0
- package/vendors/antigravity/schemas/effects.schema.json +26 -0
- package/vendors/antigravity/schemas/role-result.schema.json +74 -0
- package/vendors/antigravity/schemas/tools.schema.json +26 -0
- package/vendors/antigravity/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/antigravity/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/antigravity/skills/wtfp-deliver-research/references/actions.md +117 -0
- package/vendors/antigravity/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/antigravity/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/antigravity/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/antigravity/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/antigravity/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +131 -0
- package/vendors/antigravity/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/antigravity/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/antigravity/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/antigravity/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/antigravity/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/antigravity/skills/wtfp-review-manuscript/references/actions.md +112 -0
- package/vendors/antigravity/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/antigravity/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/antigravity/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/antigravity/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/antigravity/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/antigravity/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/antigravity/tools/README.md +13 -0
- package/vendors/antigravity/tools/bibliography/analyze-impact.js +109 -0
- package/vendors/antigravity/tools/bibliography/format.js +161 -0
- package/vendors/antigravity/tools/bibliography/index.js +104 -0
- package/vendors/antigravity/tools/citation/fetch.js +299 -0
- package/vendors/antigravity/tools/citation/rank.js +145 -0
- package/vendors/antigravity/tools/citation/scholar-lookup.js +188 -0
- package/vendors/antigravity/tools/citation/semantic-scholar.js +184 -0
- package/vendors/antigravity/tools.json +54 -0
- package/vendors/antigravity/workflows/add-todo.md +32 -0
- package/vendors/antigravity/workflows/analyze-bib.md +33 -0
- package/vendors/antigravity/workflows/audit-milestone.md +32 -0
- package/vendors/antigravity/workflows/check-refs.md +32 -0
- package/vendors/antigravity/workflows/check-todos.md +32 -0
- package/vendors/antigravity/workflows/checkpoint.md +32 -0
- package/vendors/antigravity/workflows/contribute.md +30 -0
- package/vendors/antigravity/workflows/create-outline.md +33 -0
- package/vendors/antigravity/workflows/create-poster.md +32 -0
- package/vendors/antigravity/workflows/create-slides.md +32 -0
- package/vendors/antigravity/workflows/discuss-section.md +32 -0
- package/vendors/antigravity/workflows/execute-outline.md +32 -0
- package/vendors/antigravity/workflows/export-latex.md +32 -0
- package/vendors/antigravity/workflows/help.md +30 -0
- package/vendors/antigravity/workflows/insert-section.md +32 -0
- package/vendors/antigravity/workflows/list-assumptions.md +32 -0
- package/vendors/antigravity/workflows/map-project.md +32 -0
- package/vendors/antigravity/workflows/new-paper.md +37 -0
- package/vendors/antigravity/workflows/pause-writing.md +32 -0
- package/vendors/antigravity/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/antigravity/workflows/plan-revision.md +32 -0
- package/vendors/antigravity/workflows/plan-section.md +34 -0
- package/vendors/antigravity/workflows/polish-prose.md +32 -0
- package/vendors/antigravity/workflows/progress.md +32 -0
- package/vendors/antigravity/workflows/quick.md +32 -0
- package/vendors/antigravity/workflows/remove-section.md +32 -0
- package/vendors/antigravity/workflows/report-bug.md +30 -0
- package/vendors/antigravity/workflows/request-feature.md +30 -0
- package/vendors/antigravity/workflows/research-gap.md +32 -0
- package/vendors/antigravity/workflows/resume-writing.md +34 -0
- package/vendors/antigravity/workflows/review-section.md +33 -0
- package/vendors/antigravity/workflows/settings.md +32 -0
- package/vendors/antigravity/workflows/submit-milestone.md +32 -0
- package/vendors/antigravity/workflows/update.md +30 -0
- package/vendors/antigravity/workflows/verify-work.md +32 -0
- package/vendors/antigravity/workflows/write-section.md +34 -0
- package/vendors/claude/.claude-plugin/marketplace.json +24 -0
- package/vendors/claude/.claude-plugin/plugin.json +3 -3
- package/vendors/claude/.wtfp-generated.json +796 -0
- package/vendors/claude/actions/add-todo.json +52 -0
- package/vendors/claude/actions/analyze-bib.json +97 -0
- package/vendors/claude/actions/audit-milestone.json +63 -0
- package/vendors/claude/actions/check-refs.json +80 -0
- package/vendors/claude/actions/check-todos.json +52 -0
- package/vendors/claude/actions/checkpoint.json +76 -0
- package/vendors/claude/actions/contribute.json +57 -0
- package/vendors/claude/actions/create-outline.json +84 -0
- package/vendors/claude/actions/create-poster.json +59 -0
- package/vendors/claude/actions/create-slides.json +59 -0
- package/vendors/claude/actions/discuss-section.json +76 -0
- package/vendors/claude/actions/execute-outline.json +116 -0
- package/vendors/claude/actions/export-latex.json +65 -0
- package/vendors/claude/actions/help.json +30 -0
- package/vendors/claude/actions/insert-section.json +61 -0
- package/vendors/claude/actions/list-assumptions.json +35 -0
- package/vendors/claude/actions/map-project.json +57 -0
- package/vendors/claude/actions/new-paper.json +70 -0
- package/vendors/claude/actions/pause-writing.json +71 -0
- package/vendors/claude/actions/plan-milestone-gaps.json +57 -0
- package/vendors/claude/actions/plan-revision.json +58 -0
- package/vendors/claude/actions/plan-section.json +100 -0
- package/vendors/claude/actions/polish-prose.json +69 -0
- package/vendors/claude/actions/progress.json +51 -0
- package/vendors/claude/actions/quick.json +70 -0
- package/vendors/claude/actions/remove-section.json +63 -0
- package/vendors/claude/actions/report-bug.json +47 -0
- package/vendors/claude/actions/request-feature.json +47 -0
- package/vendors/claude/actions/research-gap.json +101 -0
- package/vendors/claude/actions/resume-writing.json +65 -0
- package/vendors/claude/actions/review-section.json +83 -0
- package/vendors/claude/actions/settings.json +47 -0
- package/vendors/claude/actions/submit-milestone.json +77 -0
- package/vendors/claude/actions/update.json +42 -0
- package/vendors/claude/actions/verify-work.json +63 -0
- package/vendors/claude/actions/write-section.json +115 -0
- package/vendors/claude/agents/wtfp/argument-verifier.md +42 -166
- package/vendors/claude/agents/wtfp/citation-expert.md +51 -28
- package/vendors/claude/agents/wtfp/citation-formatter.md +52 -26
- package/vendors/claude/agents/wtfp/coherence-checker.md +41 -144
- package/vendors/claude/agents/wtfp/outliner.md +47 -233
- package/vendors/claude/agents/wtfp/plan-checker.md +42 -226
- package/vendors/claude/agents/wtfp/prose-polisher.md +58 -156
- package/vendors/claude/agents/wtfp/research-synthesizer.md +47 -192
- package/vendors/claude/agents/wtfp/section-planner.md +46 -340
- package/vendors/claude/agents/wtfp/section-reviewer.md +42 -159
- package/vendors/claude/agents/wtfp/section-writer.md +46 -287
- package/vendors/claude/aliases.lock.json +42 -0
- package/vendors/claude/catalog.json +127 -0
- package/vendors/claude/commands/add-todo.md +58 -0
- package/vendors/claude/commands/analyze-bib.md +16 -0
- package/vendors/claude/commands/audit-milestone.md +16 -0
- package/vendors/claude/commands/check-refs.md +16 -0
- package/vendors/claude/commands/check-todos.md +57 -0
- package/vendors/claude/commands/checkpoint.md +73 -0
- package/vendors/claude/commands/contribute.md +16 -0
- package/vendors/claude/commands/create-outline.md +73 -0
- package/vendors/claude/commands/create-poster.md +16 -0
- package/vendors/claude/commands/create-slides.md +16 -0
- package/vendors/claude/commands/discuss-section.md +63 -0
- package/vendors/claude/commands/execute-outline.md +74 -0
- package/vendors/claude/commands/export-latex.md +16 -0
- package/vendors/claude/commands/help.md +47 -0
- package/vendors/claude/commands/insert-section.md +59 -0
- package/vendors/claude/commands/list-assumptions.md +58 -0
- package/vendors/claude/commands/map-project.md +60 -0
- package/vendors/claude/commands/new-paper.md +68 -0
- package/vendors/claude/commands/pause-writing.md +64 -0
- package/vendors/claude/commands/plan-milestone-gaps.md +61 -0
- package/vendors/claude/commands/plan-revision.md +61 -0
- package/vendors/claude/commands/plan-section.md +76 -0
- package/vendors/claude/commands/polish-prose.md +62 -0
- package/vendors/claude/commands/progress.md +71 -0
- package/vendors/claude/commands/quick.md +62 -0
- package/vendors/claude/commands/remove-section.md +16 -0
- package/vendors/claude/commands/report-bug.md +16 -0
- package/vendors/claude/commands/request-feature.md +16 -0
- package/vendors/claude/commands/research-gap.md +16 -0
- package/vendors/claude/commands/resume-writing.md +71 -0
- package/vendors/claude/commands/review-section.md +67 -0
- package/vendors/claude/commands/settings.md +55 -0
- package/vendors/claude/commands/submit-milestone.md +71 -0
- package/vendors/claude/commands/update.md +16 -0
- package/vendors/claude/commands/verify-work.md +61 -0
- package/vendors/claude/commands/write-section.md +76 -0
- package/vendors/claude/compatibility/action-availability.json +314 -0
- package/vendors/claude/effects.json +107 -0
- package/vendors/claude/fleets/wtfp-draft-review.json +35 -0
- package/vendors/claude/fleets/wtfp-plan-section.json +34 -0
- package/vendors/claude/project/README.md +65 -0
- package/vendors/claude/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/claude/project/schemas/common.schema.json +33 -0
- package/vendors/claude/project/schemas/config.schema.json +69 -0
- package/vendors/claude/project/schemas/decisions.schema.json +31 -0
- package/vendors/claude/project/schemas/evidence.schema.json +48 -0
- package/vendors/claude/project/schemas/manifest.schema.json +102 -0
- package/vendors/claude/project/schemas/outline.schema.json +67 -0
- package/vendors/claude/project/schemas/section.schema.json +95 -0
- package/vendors/claude/project/schemas/source.schema.json +73 -0
- package/vendors/claude/project/schemas/state.schema.json +58 -0
- package/vendors/claude/project/schemas/validation.schema.json +74 -0
- package/vendors/claude/project/templates/checkpoint.json +25 -0
- package/vendors/claude/project/templates/config.json +31 -0
- package/vendors/claude/project/templates/decisions.json +35 -0
- package/vendors/claude/project/templates/evidence.json +18 -0
- package/vendors/claude/project/templates/manifest.json +30 -0
- package/vendors/claude/project/templates/outline.json +38 -0
- package/vendors/claude/project/templates/section.json +32 -0
- package/vendors/claude/project/templates/source.json +20 -0
- package/vendors/claude/project/templates/state.json +22 -0
- package/vendors/claude/project/templates/validation.json +32 -0
- package/vendors/claude/repository/CONTRIBUTING.md +183 -0
- package/vendors/claude/roles/argument-verifier.md +62 -0
- package/vendors/claude/roles/citation-expert.md +63 -0
- package/vendors/claude/roles/citation-formatter.md +63 -0
- package/vendors/claude/roles/coherence-checker.md +61 -0
- package/vendors/claude/roles/outliner.md +68 -0
- package/vendors/claude/roles/plan-checker.md +62 -0
- package/vendors/claude/roles/prose-polisher.md +63 -0
- package/vendors/claude/roles/research-synthesizer.md +65 -0
- package/vendors/claude/roles/section-planner.md +65 -0
- package/vendors/claude/roles/section-reviewer.md +62 -0
- package/vendors/claude/roles/section-writer.md +66 -0
- package/vendors/claude/schemas/action.schema.json +129 -0
- package/vendors/claude/schemas/aliases.schema.json +26 -0
- package/vendors/claude/schemas/catalog.schema.json +61 -0
- package/vendors/claude/schemas/effects.schema.json +26 -0
- package/vendors/claude/schemas/role-result.schema.json +74 -0
- package/vendors/claude/schemas/tools.schema.json +26 -0
- package/vendors/claude/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/claude/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/claude/skills/wtfp-deliver-research/references/actions.md +117 -0
- package/vendors/claude/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/claude/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/claude/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/claude/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/claude/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/claude/skills/wtfp-plan-section/references/actions.md +131 -0
- package/vendors/claude/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/claude/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/claude/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/claude/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/claude/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/claude/skills/wtfp-review-manuscript/references/actions.md +112 -0
- package/vendors/claude/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/claude/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/claude/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/claude/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/claude/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/claude/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/claude/tools/README.md +13 -0
- package/vendors/claude/tools/bibliography/analyze-impact.js +109 -0
- package/vendors/claude/tools/bibliography/format.js +161 -0
- package/vendors/claude/tools/bibliography/index.js +104 -0
- package/vendors/claude/tools/citation/fetch.js +299 -0
- package/vendors/claude/tools/citation/rank.js +145 -0
- package/vendors/claude/tools/citation/scholar-lookup.js +188 -0
- package/vendors/claude/tools/citation/semantic-scholar.js +184 -0
- package/vendors/claude/tools.json +54 -0
- package/vendors/claude/workflows/add-todo.md +32 -0
- package/vendors/claude/workflows/analyze-bib.md +33 -0
- package/vendors/claude/workflows/audit-milestone.md +32 -0
- package/vendors/claude/workflows/check-refs.md +32 -0
- package/vendors/claude/workflows/check-todos.md +32 -0
- package/vendors/claude/workflows/checkpoint.md +32 -0
- package/vendors/claude/workflows/contribute.md +30 -0
- package/vendors/claude/workflows/create-outline.md +33 -0
- package/vendors/claude/workflows/create-poster.md +32 -0
- package/vendors/claude/workflows/create-slides.md +32 -0
- package/vendors/claude/workflows/discuss-section.md +32 -0
- package/vendors/claude/workflows/execute-outline.md +32 -0
- package/vendors/claude/workflows/export-latex.md +32 -0
- package/vendors/claude/workflows/help.md +30 -0
- package/vendors/claude/workflows/insert-section.md +32 -0
- package/vendors/claude/workflows/list-assumptions.md +32 -0
- package/vendors/claude/workflows/map-project.md +32 -0
- package/vendors/claude/workflows/new-paper.md +37 -0
- package/vendors/claude/workflows/pause-writing.md +32 -0
- package/vendors/claude/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/claude/workflows/plan-revision.md +32 -0
- package/vendors/claude/workflows/plan-section.md +34 -0
- package/vendors/claude/workflows/polish-prose.md +32 -0
- package/vendors/claude/workflows/progress.md +32 -0
- package/vendors/claude/workflows/quick.md +32 -0
- package/vendors/claude/workflows/remove-section.md +32 -0
- package/vendors/claude/workflows/report-bug.md +30 -0
- package/vendors/claude/workflows/request-feature.md +30 -0
- package/vendors/claude/workflows/research-gap.md +32 -0
- package/vendors/claude/workflows/resume-writing.md +34 -0
- package/vendors/claude/workflows/review-section.md +33 -0
- package/vendors/claude/workflows/settings.md +32 -0
- package/vendors/claude/workflows/submit-milestone.md +32 -0
- package/vendors/claude/workflows/update.md +30 -0
- package/vendors/claude/workflows/verify-work.md +32 -0
- package/vendors/claude/workflows/write-section.md +34 -0
- package/vendors/clio/.wtfp-generated.json +936 -0
- package/vendors/clio/actions/add-todo.json +52 -0
- package/vendors/clio/actions/analyze-bib.json +97 -0
- package/vendors/clio/actions/audit-milestone.json +63 -0
- package/vendors/clio/actions/check-refs.json +80 -0
- package/vendors/clio/actions/check-todos.json +52 -0
- package/vendors/clio/actions/checkpoint.json +76 -0
- package/vendors/clio/actions/contribute.json +57 -0
- package/vendors/clio/actions/create-outline.json +84 -0
- package/vendors/clio/actions/create-poster.json +59 -0
- package/vendors/clio/actions/create-slides.json +59 -0
- package/vendors/clio/actions/discuss-section.json +76 -0
- package/vendors/clio/actions/execute-outline.json +116 -0
- package/vendors/clio/actions/export-latex.json +65 -0
- package/vendors/clio/actions/help.json +30 -0
- package/vendors/clio/actions/insert-section.json +61 -0
- package/vendors/clio/actions/list-assumptions.json +35 -0
- package/vendors/clio/actions/map-project.json +57 -0
- package/vendors/clio/actions/new-paper.json +70 -0
- package/vendors/clio/actions/pause-writing.json +71 -0
- package/vendors/clio/actions/plan-milestone-gaps.json +57 -0
- package/vendors/clio/actions/plan-revision.json +58 -0
- package/vendors/clio/actions/plan-section.json +100 -0
- package/vendors/clio/actions/polish-prose.json +69 -0
- package/vendors/clio/actions/progress.json +51 -0
- package/vendors/clio/actions/quick.json +70 -0
- package/vendors/clio/actions/remove-section.json +63 -0
- package/vendors/clio/actions/report-bug.json +47 -0
- package/vendors/clio/actions/request-feature.json +47 -0
- package/vendors/clio/actions/research-gap.json +101 -0
- package/vendors/clio/actions/resume-writing.json +65 -0
- package/vendors/clio/actions/review-section.json +83 -0
- package/vendors/clio/actions/settings.json +47 -0
- package/vendors/clio/actions/submit-milestone.json +77 -0
- package/vendors/clio/actions/update.json +42 -0
- package/vendors/clio/actions/verify-work.json +63 -0
- package/vendors/clio/actions/write-section.json +115 -0
- package/vendors/clio/agents/wtfp-argument-verifier.md +60 -0
- package/vendors/clio/agents/wtfp-citation-expert.md +61 -0
- package/vendors/clio/agents/wtfp-citation-formatter.md +61 -0
- package/vendors/clio/agents/wtfp-coherence-checker.md +59 -0
- package/vendors/clio/agents/wtfp-outliner.md +66 -0
- package/vendors/clio/agents/wtfp-plan-checker.md +60 -0
- package/vendors/clio/agents/wtfp-prose-polisher.md +61 -0
- package/vendors/clio/agents/wtfp-research-synthesizer.md +63 -0
- package/vendors/clio/agents/wtfp-section-planner.md +63 -0
- package/vendors/clio/agents/wtfp-section-reviewer.md +60 -0
- package/vendors/clio/agents/wtfp-section-writer.md +64 -0
- package/vendors/clio/aliases.lock.json +42 -0
- package/vendors/clio/catalog.json +127 -0
- package/vendors/clio/clio-coder-extension.yaml +12 -0
- package/vendors/clio/compatibility/action-availability.json +323 -0
- package/vendors/clio/effects.json +107 -0
- package/vendors/clio/fleets/wtfp-draft-review.md +25 -0
- package/vendors/clio/fleets/wtfp-plan-section.md +23 -0
- package/vendors/clio/project/README.md +65 -0
- package/vendors/clio/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/clio/project/schemas/common.schema.json +33 -0
- package/vendors/clio/project/schemas/config.schema.json +69 -0
- package/vendors/clio/project/schemas/decisions.schema.json +31 -0
- package/vendors/clio/project/schemas/evidence.schema.json +48 -0
- package/vendors/clio/project/schemas/manifest.schema.json +102 -0
- package/vendors/clio/project/schemas/outline.schema.json +67 -0
- package/vendors/clio/project/schemas/section.schema.json +95 -0
- package/vendors/clio/project/schemas/source.schema.json +73 -0
- package/vendors/clio/project/schemas/state.schema.json +58 -0
- package/vendors/clio/project/schemas/validation.schema.json +74 -0
- package/vendors/clio/project/templates/checkpoint.json +25 -0
- package/vendors/clio/project/templates/config.json +31 -0
- package/vendors/clio/project/templates/decisions.json +35 -0
- package/vendors/clio/project/templates/evidence.json +18 -0
- package/vendors/clio/project/templates/manifest.json +30 -0
- package/vendors/clio/project/templates/outline.json +38 -0
- package/vendors/clio/project/templates/section.json +32 -0
- package/vendors/clio/project/templates/source.json +20 -0
- package/vendors/clio/project/templates/state.json +22 -0
- package/vendors/clio/project/templates/validation.json +32 -0
- package/vendors/clio/prompts/wtfp/add-todo.md +52 -0
- package/vendors/clio/prompts/wtfp/analyze-bib.md +15 -0
- package/vendors/clio/prompts/wtfp/audit-milestone.md +15 -0
- package/vendors/clio/prompts/wtfp/check-refs.md +15 -0
- package/vendors/clio/prompts/wtfp/check-todos.md +54 -0
- package/vendors/clio/prompts/wtfp/checkpoint.md +70 -0
- package/vendors/clio/prompts/wtfp/contribute.md +15 -0
- package/vendors/clio/prompts/wtfp/create-outline.md +69 -0
- package/vendors/clio/prompts/wtfp/create-poster.md +15 -0
- package/vendors/clio/prompts/wtfp/create-slides.md +15 -0
- package/vendors/clio/prompts/wtfp/discuss-section.md +60 -0
- package/vendors/clio/prompts/wtfp/execute-outline.md +70 -0
- package/vendors/clio/prompts/wtfp/export-latex.md +15 -0
- package/vendors/clio/prompts/wtfp/help.md +43 -0
- package/vendors/clio/prompts/wtfp/insert-section.md +56 -0
- package/vendors/clio/prompts/wtfp/list-assumptions.md +54 -0
- package/vendors/clio/prompts/wtfp/map-project.md +54 -0
- package/vendors/clio/prompts/wtfp/new-paper.md +65 -0
- package/vendors/clio/prompts/wtfp/pause-writing.md +58 -0
- package/vendors/clio/prompts/wtfp/plan-milestone-gaps.md +58 -0
- package/vendors/clio/prompts/wtfp/plan-revision.md +58 -0
- package/vendors/clio/prompts/wtfp/plan-section.md +72 -0
- package/vendors/clio/prompts/wtfp/polish-prose.md +58 -0
- package/vendors/clio/prompts/wtfp/progress.md +70 -0
- package/vendors/clio/prompts/wtfp/quick.md +58 -0
- package/vendors/clio/prompts/wtfp/remove-section.md +15 -0
- package/vendors/clio/prompts/wtfp/report-bug.md +15 -0
- package/vendors/clio/prompts/wtfp/request-feature.md +15 -0
- package/vendors/clio/prompts/wtfp/research-gap.md +15 -0
- package/vendors/clio/prompts/wtfp/resume-writing.md +68 -0
- package/vendors/clio/prompts/wtfp/review-section.md +63 -0
- package/vendors/clio/prompts/wtfp/settings.md +52 -0
- package/vendors/clio/prompts/wtfp/submit-milestone.md +68 -0
- package/vendors/clio/prompts/wtfp/update.md +15 -0
- package/vendors/clio/prompts/wtfp/verify-work.md +58 -0
- package/vendors/clio/prompts/wtfp/write-section.md +72 -0
- package/vendors/clio/prompts/wtfp-add-todo.md +52 -0
- package/vendors/clio/prompts/wtfp-analyze-bib.md +15 -0
- package/vendors/clio/prompts/wtfp-audit-milestone.md +15 -0
- package/vendors/clio/prompts/wtfp-check-refs.md +15 -0
- package/vendors/clio/prompts/wtfp-check-todos.md +54 -0
- package/vendors/clio/prompts/wtfp-checkpoint.md +70 -0
- package/vendors/clio/prompts/wtfp-contribute.md +15 -0
- package/vendors/clio/prompts/wtfp-create-outline.md +69 -0
- package/vendors/clio/prompts/wtfp-create-poster.md +15 -0
- package/vendors/clio/prompts/wtfp-create-slides.md +15 -0
- package/vendors/clio/prompts/wtfp-discuss-section.md +60 -0
- package/vendors/clio/prompts/wtfp-execute-outline.md +70 -0
- package/vendors/clio/prompts/wtfp-export-latex.md +15 -0
- package/vendors/clio/prompts/wtfp-help.md +43 -0
- package/vendors/clio/prompts/wtfp-insert-section.md +56 -0
- package/vendors/clio/prompts/wtfp-list-assumptions.md +54 -0
- package/vendors/clio/prompts/wtfp-map-project.md +54 -0
- package/vendors/clio/prompts/wtfp-new-paper.md +65 -0
- package/vendors/clio/prompts/wtfp-pause-writing.md +58 -0
- package/vendors/clio/prompts/wtfp-plan-milestone-gaps.md +58 -0
- package/vendors/clio/prompts/wtfp-plan-revision.md +58 -0
- package/vendors/clio/prompts/wtfp-plan-section.md +72 -0
- package/vendors/clio/prompts/wtfp-polish-prose.md +58 -0
- package/vendors/clio/prompts/wtfp-progress.md +70 -0
- package/vendors/clio/prompts/wtfp-quick.md +58 -0
- package/vendors/clio/prompts/wtfp-remove-section.md +15 -0
- package/vendors/clio/prompts/wtfp-report-bug.md +15 -0
- package/vendors/clio/prompts/wtfp-request-feature.md +15 -0
- package/vendors/clio/prompts/wtfp-research-gap.md +15 -0
- package/vendors/clio/prompts/wtfp-resume-writing.md +68 -0
- package/vendors/clio/prompts/wtfp-review-section.md +63 -0
- package/vendors/clio/prompts/wtfp-settings.md +52 -0
- package/vendors/clio/prompts/wtfp-submit-milestone.md +68 -0
- package/vendors/clio/prompts/wtfp-update.md +15 -0
- package/vendors/clio/prompts/wtfp-verify-work.md +58 -0
- package/vendors/clio/prompts/wtfp-write-section.md +72 -0
- package/vendors/clio/repository/CONTRIBUTING.md +183 -0
- package/vendors/clio/roles/argument-verifier.md +62 -0
- package/vendors/clio/roles/citation-expert.md +63 -0
- package/vendors/clio/roles/citation-formatter.md +63 -0
- package/vendors/clio/roles/coherence-checker.md +61 -0
- package/vendors/clio/roles/outliner.md +68 -0
- package/vendors/clio/roles/plan-checker.md +62 -0
- package/vendors/clio/roles/prose-polisher.md +63 -0
- package/vendors/clio/roles/research-synthesizer.md +65 -0
- package/vendors/clio/roles/section-planner.md +65 -0
- package/vendors/clio/roles/section-reviewer.md +62 -0
- package/vendors/clio/roles/section-writer.md +66 -0
- package/vendors/clio/schemas/action.schema.json +129 -0
- package/vendors/clio/schemas/aliases.schema.json +26 -0
- package/vendors/clio/schemas/catalog.schema.json +61 -0
- package/vendors/clio/schemas/effects.schema.json +26 -0
- package/vendors/clio/schemas/role-result.schema.json +74 -0
- package/vendors/clio/schemas/tools.schema.json +26 -0
- package/vendors/clio/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/clio/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/clio/skills/wtfp-deliver-research/references/actions.md +117 -0
- package/vendors/clio/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/clio/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/clio/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/clio/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/clio/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/clio/skills/wtfp-plan-section/references/actions.md +131 -0
- package/vendors/clio/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/clio/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/clio/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/clio/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/clio/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/clio/skills/wtfp-review-manuscript/references/actions.md +112 -0
- package/vendors/clio/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/clio/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/clio/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/clio/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/clio/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/clio/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/clio/tools/README.md +13 -0
- package/vendors/clio/tools/bibliography/analyze-impact.js +109 -0
- package/vendors/clio/tools/bibliography/format.js +161 -0
- package/vendors/clio/tools/bibliography/index.js +104 -0
- package/vendors/clio/tools/citation/fetch.js +299 -0
- package/vendors/clio/tools/citation/rank.js +145 -0
- package/vendors/clio/tools/citation/scholar-lookup.js +188 -0
- package/vendors/clio/tools/citation/semantic-scholar.js +184 -0
- package/vendors/clio/tools.json +54 -0
- package/vendors/clio/workflows/add-todo.md +32 -0
- package/vendors/clio/workflows/analyze-bib.md +33 -0
- package/vendors/clio/workflows/audit-milestone.md +32 -0
- package/vendors/clio/workflows/check-refs.md +32 -0
- package/vendors/clio/workflows/check-todos.md +32 -0
- package/vendors/clio/workflows/checkpoint.md +32 -0
- package/vendors/clio/workflows/contribute.md +30 -0
- package/vendors/clio/workflows/create-outline.md +33 -0
- package/vendors/clio/workflows/create-poster.md +32 -0
- package/vendors/clio/workflows/create-slides.md +32 -0
- package/vendors/clio/workflows/discuss-section.md +32 -0
- package/vendors/clio/workflows/execute-outline.md +32 -0
- package/vendors/clio/workflows/export-latex.md +32 -0
- package/vendors/clio/workflows/help.md +30 -0
- package/vendors/clio/workflows/insert-section.md +32 -0
- package/vendors/clio/workflows/list-assumptions.md +32 -0
- package/vendors/clio/workflows/map-project.md +32 -0
- package/vendors/clio/workflows/new-paper.md +37 -0
- package/vendors/clio/workflows/pause-writing.md +32 -0
- package/vendors/clio/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/clio/workflows/plan-revision.md +32 -0
- package/vendors/clio/workflows/plan-section.md +34 -0
- package/vendors/clio/workflows/polish-prose.md +32 -0
- package/vendors/clio/workflows/progress.md +32 -0
- package/vendors/clio/workflows/quick.md +32 -0
- package/vendors/clio/workflows/remove-section.md +32 -0
- package/vendors/clio/workflows/report-bug.md +30 -0
- package/vendors/clio/workflows/request-feature.md +30 -0
- package/vendors/clio/workflows/research-gap.md +32 -0
- package/vendors/clio/workflows/resume-writing.md +34 -0
- package/vendors/clio/workflows/review-section.md +33 -0
- package/vendors/clio/workflows/settings.md +32 -0
- package/vendors/clio/workflows/submit-milestone.md +32 -0
- package/vendors/clio/workflows/update.md +30 -0
- package/vendors/clio/workflows/verify-work.md +32 -0
- package/vendors/clio/workflows/write-section.md +34 -0
- package/vendors/codex/.agents/plugins/marketplace.json +20 -0
- package/vendors/codex/.wtfp-generated.json +12 -0
- package/vendors/codex/plugins/wtf-p/.codex-plugin/plugin.json +32 -0
- package/vendors/codex/plugins/wtf-p/.wtfp-generated.json +604 -0
- package/vendors/codex/plugins/wtf-p/actions/add-todo.json +52 -0
- package/vendors/codex/plugins/wtf-p/actions/analyze-bib.json +97 -0
- package/vendors/codex/plugins/wtf-p/actions/audit-milestone.json +63 -0
- package/vendors/codex/plugins/wtf-p/actions/check-refs.json +80 -0
- package/vendors/codex/plugins/wtf-p/actions/check-todos.json +52 -0
- package/vendors/codex/plugins/wtf-p/actions/checkpoint.json +76 -0
- package/vendors/codex/plugins/wtf-p/actions/contribute.json +57 -0
- package/vendors/codex/plugins/wtf-p/actions/create-outline.json +84 -0
- package/vendors/codex/plugins/wtf-p/actions/create-poster.json +59 -0
- package/vendors/codex/plugins/wtf-p/actions/create-slides.json +59 -0
- package/vendors/codex/plugins/wtf-p/actions/discuss-section.json +76 -0
- package/vendors/codex/plugins/wtf-p/actions/execute-outline.json +116 -0
- package/vendors/codex/plugins/wtf-p/actions/export-latex.json +65 -0
- package/vendors/codex/plugins/wtf-p/actions/help.json +30 -0
- package/vendors/codex/plugins/wtf-p/actions/insert-section.json +61 -0
- package/vendors/codex/plugins/wtf-p/actions/list-assumptions.json +35 -0
- package/vendors/codex/plugins/wtf-p/actions/map-project.json +57 -0
- package/vendors/codex/plugins/wtf-p/actions/new-paper.json +70 -0
- package/vendors/codex/plugins/wtf-p/actions/pause-writing.json +71 -0
- package/vendors/codex/plugins/wtf-p/actions/plan-milestone-gaps.json +57 -0
- package/vendors/codex/plugins/wtf-p/actions/plan-revision.json +58 -0
- package/vendors/codex/plugins/wtf-p/actions/plan-section.json +100 -0
- package/vendors/codex/plugins/wtf-p/actions/polish-prose.json +69 -0
- package/vendors/codex/plugins/wtf-p/actions/progress.json +51 -0
- package/vendors/codex/plugins/wtf-p/actions/quick.json +70 -0
- package/vendors/codex/plugins/wtf-p/actions/remove-section.json +63 -0
- package/vendors/codex/plugins/wtf-p/actions/report-bug.json +47 -0
- package/vendors/codex/plugins/wtf-p/actions/request-feature.json +47 -0
- package/vendors/codex/plugins/wtf-p/actions/research-gap.json +101 -0
- package/vendors/codex/plugins/wtf-p/actions/resume-writing.json +65 -0
- package/vendors/codex/plugins/wtf-p/actions/review-section.json +83 -0
- package/vendors/codex/plugins/wtf-p/actions/settings.json +47 -0
- package/vendors/codex/plugins/wtf-p/actions/submit-milestone.json +77 -0
- package/vendors/codex/plugins/wtf-p/actions/update.json +42 -0
- package/vendors/codex/plugins/wtf-p/actions/verify-work.json +63 -0
- package/vendors/codex/plugins/wtf-p/actions/write-section.json +115 -0
- package/vendors/codex/plugins/wtf-p/aliases.lock.json +42 -0
- package/vendors/codex/plugins/wtf-p/catalog.json +127 -0
- package/vendors/codex/plugins/wtf-p/compatibility/action-availability.json +314 -0
- package/vendors/codex/plugins/wtf-p/effects.json +107 -0
- package/vendors/codex/plugins/wtf-p/fleets/wtfp-draft-review.json +35 -0
- package/vendors/codex/plugins/wtf-p/fleets/wtfp-plan-section.json +34 -0
- package/vendors/codex/plugins/wtf-p/project/README.md +65 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/common.schema.json +33 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/config.schema.json +69 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/decisions.schema.json +31 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/evidence.schema.json +48 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/manifest.schema.json +102 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/outline.schema.json +67 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/section.schema.json +95 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/source.schema.json +73 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/state.schema.json +58 -0
- package/vendors/codex/plugins/wtf-p/project/schemas/validation.schema.json +74 -0
- package/vendors/codex/plugins/wtf-p/project/templates/checkpoint.json +25 -0
- package/vendors/codex/plugins/wtf-p/project/templates/config.json +31 -0
- package/vendors/codex/plugins/wtf-p/project/templates/decisions.json +35 -0
- package/vendors/codex/plugins/wtf-p/project/templates/evidence.json +18 -0
- package/vendors/codex/plugins/wtf-p/project/templates/manifest.json +30 -0
- package/vendors/codex/plugins/wtf-p/project/templates/outline.json +38 -0
- package/vendors/codex/plugins/wtf-p/project/templates/section.json +32 -0
- package/vendors/codex/plugins/wtf-p/project/templates/source.json +20 -0
- package/vendors/codex/plugins/wtf-p/project/templates/state.json +22 -0
- package/vendors/codex/plugins/wtf-p/project/templates/validation.json +32 -0
- package/vendors/codex/plugins/wtf-p/repository/CONTRIBUTING.md +183 -0
- package/vendors/codex/plugins/wtf-p/roles/argument-verifier.md +62 -0
- package/vendors/codex/plugins/wtf-p/roles/citation-expert.md +63 -0
- package/vendors/codex/plugins/wtf-p/roles/citation-formatter.md +63 -0
- package/vendors/codex/plugins/wtf-p/roles/coherence-checker.md +61 -0
- package/vendors/codex/plugins/wtf-p/roles/outliner.md +68 -0
- package/vendors/codex/plugins/wtf-p/roles/plan-checker.md +62 -0
- package/vendors/codex/plugins/wtf-p/roles/prose-polisher.md +63 -0
- package/vendors/codex/plugins/wtf-p/roles/research-synthesizer.md +65 -0
- package/vendors/codex/plugins/wtf-p/roles/section-planner.md +65 -0
- package/vendors/codex/plugins/wtf-p/roles/section-reviewer.md +62 -0
- package/vendors/codex/plugins/wtf-p/roles/section-writer.md +66 -0
- package/vendors/codex/plugins/wtf-p/schemas/action.schema.json +129 -0
- package/vendors/codex/plugins/wtf-p/schemas/aliases.schema.json +26 -0
- package/vendors/codex/plugins/wtf-p/schemas/catalog.schema.json +61 -0
- package/vendors/codex/plugins/wtf-p/schemas/effects.schema.json +26 -0
- package/vendors/codex/plugins/wtf-p/schemas/role-result.schema.json +74 -0
- package/vendors/codex/plugins/wtf-p/schemas/tools.schema.json +26 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-deliver-research/references/actions.md +117 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-plan-section/references/actions.md +131 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-review-manuscript/references/actions.md +112 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/codex/plugins/wtf-p/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/codex/plugins/wtf-p/tools/README.md +13 -0
- package/vendors/codex/plugins/wtf-p/tools/bibliography/analyze-impact.js +109 -0
- package/vendors/codex/plugins/wtf-p/tools/bibliography/format.js +161 -0
- package/vendors/codex/plugins/wtf-p/tools/bibliography/index.js +104 -0
- package/vendors/codex/plugins/wtf-p/tools/citation/fetch.js +299 -0
- package/vendors/codex/plugins/wtf-p/tools/citation/rank.js +145 -0
- package/vendors/codex/plugins/wtf-p/tools/citation/scholar-lookup.js +188 -0
- package/vendors/codex/plugins/wtf-p/tools/citation/semantic-scholar.js +184 -0
- package/vendors/codex/plugins/wtf-p/tools.json +54 -0
- package/vendors/codex/plugins/wtf-p/workflows/add-todo.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/analyze-bib.md +33 -0
- package/vendors/codex/plugins/wtf-p/workflows/audit-milestone.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/check-refs.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/check-todos.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/checkpoint.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/contribute.md +30 -0
- package/vendors/codex/plugins/wtf-p/workflows/create-outline.md +33 -0
- package/vendors/codex/plugins/wtf-p/workflows/create-poster.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/create-slides.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/discuss-section.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/execute-outline.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/export-latex.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/help.md +30 -0
- package/vendors/codex/plugins/wtf-p/workflows/insert-section.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/list-assumptions.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/map-project.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/new-paper.md +37 -0
- package/vendors/codex/plugins/wtf-p/workflows/pause-writing.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/plan-revision.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/plan-section.md +34 -0
- package/vendors/codex/plugins/wtf-p/workflows/polish-prose.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/progress.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/quick.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/remove-section.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/report-bug.md +30 -0
- package/vendors/codex/plugins/wtf-p/workflows/request-feature.md +30 -0
- package/vendors/codex/plugins/wtf-p/workflows/research-gap.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/resume-writing.md +34 -0
- package/vendors/codex/plugins/wtf-p/workflows/review-section.md +33 -0
- package/vendors/codex/plugins/wtf-p/workflows/settings.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/submit-milestone.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/update.md +30 -0
- package/vendors/codex/plugins/wtf-p/workflows/verify-work.md +32 -0
- package/vendors/codex/plugins/wtf-p/workflows/write-section.md +34 -0
- package/vendors/copilot/.wtfp-generated.json +848 -0
- package/vendors/copilot/marketplace.json +24 -0
- package/vendors/copilot/plugins/wtf-p/.claude-plugin/plugin.json +12 -0
- package/vendors/copilot/plugins/wtf-p/.wtfp-generated.json +792 -0
- package/vendors/copilot/plugins/wtf-p/actions/add-todo.json +52 -0
- package/vendors/copilot/plugins/wtf-p/actions/analyze-bib.json +97 -0
- package/vendors/copilot/plugins/wtf-p/actions/audit-milestone.json +63 -0
- package/vendors/copilot/plugins/wtf-p/actions/check-refs.json +80 -0
- package/vendors/copilot/plugins/wtf-p/actions/check-todos.json +52 -0
- package/vendors/copilot/plugins/wtf-p/actions/checkpoint.json +76 -0
- package/vendors/copilot/plugins/wtf-p/actions/contribute.json +57 -0
- package/vendors/copilot/plugins/wtf-p/actions/create-outline.json +84 -0
- package/vendors/copilot/plugins/wtf-p/actions/create-poster.json +59 -0
- package/vendors/copilot/plugins/wtf-p/actions/create-slides.json +59 -0
- package/vendors/copilot/plugins/wtf-p/actions/discuss-section.json +76 -0
- package/vendors/copilot/plugins/wtf-p/actions/execute-outline.json +116 -0
- package/vendors/copilot/plugins/wtf-p/actions/export-latex.json +65 -0
- package/vendors/copilot/plugins/wtf-p/actions/help.json +30 -0
- package/vendors/copilot/plugins/wtf-p/actions/insert-section.json +61 -0
- package/vendors/copilot/plugins/wtf-p/actions/list-assumptions.json +35 -0
- package/vendors/copilot/plugins/wtf-p/actions/map-project.json +57 -0
- package/vendors/copilot/plugins/wtf-p/actions/new-paper.json +70 -0
- package/vendors/copilot/plugins/wtf-p/actions/pause-writing.json +71 -0
- package/vendors/copilot/plugins/wtf-p/actions/plan-milestone-gaps.json +57 -0
- package/vendors/copilot/plugins/wtf-p/actions/plan-revision.json +58 -0
- package/vendors/copilot/plugins/wtf-p/actions/plan-section.json +100 -0
- package/vendors/copilot/plugins/wtf-p/actions/polish-prose.json +69 -0
- package/vendors/copilot/plugins/wtf-p/actions/progress.json +51 -0
- package/vendors/copilot/plugins/wtf-p/actions/quick.json +70 -0
- package/vendors/copilot/plugins/wtf-p/actions/remove-section.json +63 -0
- package/vendors/copilot/plugins/wtf-p/actions/report-bug.json +47 -0
- package/vendors/copilot/plugins/wtf-p/actions/request-feature.json +47 -0
- package/vendors/copilot/plugins/wtf-p/actions/research-gap.json +101 -0
- package/vendors/copilot/plugins/wtf-p/actions/resume-writing.json +65 -0
- package/vendors/copilot/plugins/wtf-p/actions/review-section.json +83 -0
- package/vendors/copilot/plugins/wtf-p/actions/settings.json +47 -0
- package/vendors/copilot/plugins/wtf-p/actions/submit-milestone.json +77 -0
- package/vendors/copilot/plugins/wtf-p/actions/update.json +42 -0
- package/vendors/copilot/plugins/wtf-p/actions/verify-work.json +63 -0
- package/vendors/copilot/plugins/wtf-p/actions/write-section.json +115 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-argument-verifier.md +65 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-citation-expert.md +68 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-citation-formatter.md +68 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-coherence-checker.md +64 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-outliner.md +73 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-plan-checker.md +65 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-prose-polisher.md +68 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-research-synthesizer.md +70 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-section-planner.md +70 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-section-reviewer.md +65 -0
- package/vendors/copilot/plugins/wtf-p/agents/wtfp-section-writer.md +71 -0
- package/vendors/copilot/plugins/wtf-p/aliases.lock.json +42 -0
- package/vendors/copilot/plugins/wtf-p/catalog.json +127 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-add-todo.md +59 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-analyze-bib.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-audit-milestone.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-check-refs.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-check-todos.md +58 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-checkpoint.md +74 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-contribute.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-create-outline.md +74 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-create-poster.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-create-slides.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-discuss-section.md +64 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-execute-outline.md +75 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-export-latex.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-help.md +48 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-insert-section.md +60 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-list-assumptions.md +59 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-map-project.md +61 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-new-paper.md +69 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-pause-writing.md +65 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-plan-milestone-gaps.md +62 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-plan-revision.md +62 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-plan-section.md +77 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-polish-prose.md +63 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-progress.md +72 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-quick.md +63 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-remove-section.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-report-bug.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-request-feature.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-research-gap.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-resume-writing.md +72 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-review-section.md +68 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-settings.md +56 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-submit-milestone.md +72 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-update.md +17 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-verify-work.md +62 -0
- package/vendors/copilot/plugins/wtf-p/commands/wtfp-write-section.md +77 -0
- package/vendors/copilot/plugins/wtf-p/compatibility/action-availability.json +314 -0
- package/vendors/copilot/plugins/wtf-p/effects.json +107 -0
- package/vendors/copilot/plugins/wtf-p/fleets/wtfp-draft-review.json +35 -0
- package/vendors/copilot/plugins/wtf-p/fleets/wtfp-plan-section.json +34 -0
- package/vendors/copilot/plugins/wtf-p/project/README.md +65 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/common.schema.json +33 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/config.schema.json +69 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/decisions.schema.json +31 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/evidence.schema.json +48 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/manifest.schema.json +102 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/outline.schema.json +67 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/section.schema.json +95 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/source.schema.json +73 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/state.schema.json +58 -0
- package/vendors/copilot/plugins/wtf-p/project/schemas/validation.schema.json +74 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/checkpoint.json +25 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/config.json +31 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/decisions.json +35 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/evidence.json +18 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/manifest.json +30 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/outline.json +38 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/section.json +32 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/source.json +20 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/state.json +22 -0
- package/vendors/copilot/plugins/wtf-p/project/templates/validation.json +32 -0
- package/vendors/copilot/plugins/wtf-p/repository/CONTRIBUTING.md +183 -0
- package/vendors/copilot/plugins/wtf-p/roles/argument-verifier.md +62 -0
- package/vendors/copilot/plugins/wtf-p/roles/citation-expert.md +63 -0
- package/vendors/copilot/plugins/wtf-p/roles/citation-formatter.md +63 -0
- package/vendors/copilot/plugins/wtf-p/roles/coherence-checker.md +61 -0
- package/vendors/copilot/plugins/wtf-p/roles/outliner.md +68 -0
- package/vendors/copilot/plugins/wtf-p/roles/plan-checker.md +62 -0
- package/vendors/copilot/plugins/wtf-p/roles/prose-polisher.md +63 -0
- package/vendors/copilot/plugins/wtf-p/roles/research-synthesizer.md +65 -0
- package/vendors/copilot/plugins/wtf-p/roles/section-planner.md +65 -0
- package/vendors/copilot/plugins/wtf-p/roles/section-reviewer.md +62 -0
- package/vendors/copilot/plugins/wtf-p/roles/section-writer.md +66 -0
- package/vendors/copilot/plugins/wtf-p/schemas/action.schema.json +129 -0
- package/vendors/copilot/plugins/wtf-p/schemas/aliases.schema.json +26 -0
- package/vendors/copilot/plugins/wtf-p/schemas/catalog.schema.json +61 -0
- package/vendors/copilot/plugins/wtf-p/schemas/effects.schema.json +26 -0
- package/vendors/copilot/plugins/wtf-p/schemas/role-result.schema.json +74 -0
- package/vendors/copilot/plugins/wtf-p/schemas/tools.schema.json +26 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-deliver-research/references/actions.md +117 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-plan-section/references/actions.md +131 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-review-manuscript/references/actions.md +112 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/copilot/plugins/wtf-p/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/copilot/plugins/wtf-p/tools/README.md +13 -0
- package/vendors/copilot/plugins/wtf-p/tools/bibliography/analyze-impact.js +109 -0
- package/vendors/copilot/plugins/wtf-p/tools/bibliography/format.js +161 -0
- package/vendors/copilot/plugins/wtf-p/tools/bibliography/index.js +104 -0
- package/vendors/copilot/plugins/wtf-p/tools/citation/fetch.js +299 -0
- package/vendors/copilot/plugins/wtf-p/tools/citation/rank.js +145 -0
- package/vendors/copilot/plugins/wtf-p/tools/citation/scholar-lookup.js +188 -0
- package/vendors/copilot/plugins/wtf-p/tools/citation/semantic-scholar.js +184 -0
- package/vendors/copilot/plugins/wtf-p/tools.json +54 -0
- package/vendors/copilot/plugins/wtf-p/workflows/add-todo.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/analyze-bib.md +33 -0
- package/vendors/copilot/plugins/wtf-p/workflows/audit-milestone.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/check-refs.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/check-todos.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/checkpoint.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/contribute.md +30 -0
- package/vendors/copilot/plugins/wtf-p/workflows/create-outline.md +33 -0
- package/vendors/copilot/plugins/wtf-p/workflows/create-poster.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/create-slides.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/discuss-section.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/execute-outline.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/export-latex.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/help.md +30 -0
- package/vendors/copilot/plugins/wtf-p/workflows/insert-section.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/list-assumptions.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/map-project.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/new-paper.md +37 -0
- package/vendors/copilot/plugins/wtf-p/workflows/pause-writing.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/plan-revision.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/plan-section.md +34 -0
- package/vendors/copilot/plugins/wtf-p/workflows/polish-prose.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/progress.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/quick.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/remove-section.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/report-bug.md +30 -0
- package/vendors/copilot/plugins/wtf-p/workflows/request-feature.md +30 -0
- package/vendors/copilot/plugins/wtf-p/workflows/research-gap.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/resume-writing.md +34 -0
- package/vendors/copilot/plugins/wtf-p/workflows/review-section.md +33 -0
- package/vendors/copilot/plugins/wtf-p/workflows/settings.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/submit-milestone.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/update.md +30 -0
- package/vendors/copilot/plugins/wtf-p/workflows/verify-work.md +32 -0
- package/vendors/copilot/plugins/wtf-p/workflows/write-section.md +34 -0
- package/vendors/copilot/project/.github/agents/wtfp-argument-verifier.agent.md +62 -0
- package/vendors/copilot/project/.github/agents/wtfp-citation-expert.agent.md +63 -0
- package/vendors/copilot/project/.github/agents/wtfp-citation-formatter.agent.md +63 -0
- package/vendors/copilot/project/.github/agents/wtfp-coherence-checker.agent.md +61 -0
- package/vendors/copilot/project/.github/agents/wtfp-outliner.agent.md +68 -0
- package/vendors/copilot/project/.github/agents/wtfp-plan-checker.agent.md +62 -0
- package/vendors/copilot/project/.github/agents/wtfp-prose-polisher.agent.md +63 -0
- package/vendors/copilot/project/.github/agents/wtfp-research-synthesizer.agent.md +65 -0
- package/vendors/copilot/project/.github/agents/wtfp-section-planner.agent.md +65 -0
- package/vendors/copilot/project/.github/agents/wtfp-section-reviewer.agent.md +62 -0
- package/vendors/copilot/project/.github/agents/wtfp-section-writer.agent.md +66 -0
- package/vendors/copilot/project/.github/copilot-instructions.md +7 -0
- package/vendors/copilot/project/.github/prompts/wtfp-add-todo.prompt.md +54 -0
- package/vendors/copilot/project/.github/prompts/wtfp-analyze-bib.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-audit-milestone.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-check-refs.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-check-todos.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-checkpoint.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-contribute.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-create-outline.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-create-poster.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-create-slides.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-discuss-section.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-execute-outline.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-export-latex.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-help.prompt.md +45 -0
- package/vendors/copilot/project/.github/prompts/wtfp-insert-section.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-list-assumptions.prompt.md +56 -0
- package/vendors/copilot/project/.github/prompts/wtfp-map-project.prompt.md +56 -0
- package/vendors/copilot/project/.github/prompts/wtfp-new-paper.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +60 -0
- package/vendors/copilot/project/.github/prompts/wtfp-plan-milestone-gaps.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-plan-revision.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-plan-section.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-polish-prose.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-progress.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-quick.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-remove-section.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-report-bug.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-request-feature.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-research-gap.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-resume-writing.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-review-section.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-settings.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-submit-milestone.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-update.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-verify-work.prompt.md +18 -0
- package/vendors/copilot/project/.github/prompts/wtfp-write-section.prompt.md +18 -0
- package/vendors/copilot/project/.github/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/copilot/project/.github/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/skills/wtfp-deliver-research/references/actions.md +129 -0
- package/vendors/copilot/project/.github/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/copilot/project/.github/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/skills/wtfp-manage-project/references/actions.md +155 -0
- package/vendors/copilot/project/.github/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/copilot/project/.github/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +179 -0
- package/vendors/copilot/project/.github/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/copilot/project/.github/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/references/actions.md +160 -0
- package/vendors/copilot/project/.github/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/copilot/project/.github/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/skills/wtfp-start-project/references/actions.md +108 -0
- package/vendors/copilot/project/.github/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/copilot/project/.github/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/skills/wtfp-write-section/references/actions.md +109 -0
- package/vendors/copilot/project/.github/wtfp/actions/add-todo.json +52 -0
- package/vendors/copilot/project/.github/wtfp/actions/analyze-bib.json +97 -0
- package/vendors/copilot/project/.github/wtfp/actions/audit-milestone.json +63 -0
- package/vendors/copilot/project/.github/wtfp/actions/check-refs.json +80 -0
- package/vendors/copilot/project/.github/wtfp/actions/check-todos.json +52 -0
- package/vendors/copilot/project/.github/wtfp/actions/checkpoint.json +76 -0
- package/vendors/copilot/project/.github/wtfp/actions/contribute.json +57 -0
- package/vendors/copilot/project/.github/wtfp/actions/create-outline.json +84 -0
- package/vendors/copilot/project/.github/wtfp/actions/create-poster.json +59 -0
- package/vendors/copilot/project/.github/wtfp/actions/create-slides.json +59 -0
- package/vendors/copilot/project/.github/wtfp/actions/discuss-section.json +76 -0
- package/vendors/copilot/project/.github/wtfp/actions/execute-outline.json +116 -0
- package/vendors/copilot/project/.github/wtfp/actions/export-latex.json +65 -0
- package/vendors/copilot/project/.github/wtfp/actions/help.json +30 -0
- package/vendors/copilot/project/.github/wtfp/actions/insert-section.json +61 -0
- package/vendors/copilot/project/.github/wtfp/actions/list-assumptions.json +35 -0
- package/vendors/copilot/project/.github/wtfp/actions/map-project.json +57 -0
- package/vendors/copilot/project/.github/wtfp/actions/new-paper.json +70 -0
- package/vendors/copilot/project/.github/wtfp/actions/pause-writing.json +71 -0
- package/vendors/copilot/project/.github/wtfp/actions/plan-milestone-gaps.json +57 -0
- package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +58 -0
- package/vendors/copilot/project/.github/wtfp/actions/plan-section.json +100 -0
- package/vendors/copilot/project/.github/wtfp/actions/polish-prose.json +69 -0
- package/vendors/copilot/project/.github/wtfp/actions/progress.json +51 -0
- package/vendors/copilot/project/.github/wtfp/actions/quick.json +70 -0
- package/vendors/copilot/project/.github/wtfp/actions/remove-section.json +63 -0
- package/vendors/copilot/project/.github/wtfp/actions/report-bug.json +47 -0
- package/vendors/copilot/project/.github/wtfp/actions/request-feature.json +47 -0
- package/vendors/copilot/project/.github/wtfp/actions/research-gap.json +101 -0
- package/vendors/copilot/project/.github/wtfp/actions/resume-writing.json +65 -0
- package/vendors/copilot/project/.github/wtfp/actions/review-section.json +83 -0
- package/vendors/copilot/project/.github/wtfp/actions/settings.json +47 -0
- package/vendors/copilot/project/.github/wtfp/actions/submit-milestone.json +77 -0
- package/vendors/copilot/project/.github/wtfp/actions/update.json +42 -0
- package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +63 -0
- package/vendors/copilot/project/.github/wtfp/actions/write-section.json +115 -0
- package/vendors/copilot/project/.github/wtfp/aliases.lock.json +42 -0
- package/vendors/copilot/project/.github/wtfp/catalog.json +127 -0
- package/vendors/copilot/project/.github/wtfp/compatibility/action-availability.json +364 -0
- package/vendors/copilot/project/.github/wtfp/effects.json +107 -0
- package/vendors/copilot/project/.github/wtfp/fleets/wtfp-draft-review.json +35 -0
- package/vendors/copilot/project/.github/wtfp/fleets/wtfp-plan-section.json +34 -0
- package/vendors/copilot/project/.github/wtfp/project/README.md +65 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/common.schema.json +33 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/config.schema.json +69 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/decisions.schema.json +31 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/evidence.schema.json +48 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/manifest.schema.json +102 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/outline.schema.json +67 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/section.schema.json +95 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/source.schema.json +73 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/state.schema.json +58 -0
- package/vendors/copilot/project/.github/wtfp/project/schemas/validation.schema.json +74 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/checkpoint.json +25 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/config.json +31 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/decisions.json +35 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/evidence.json +18 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/manifest.json +30 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/outline.json +38 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/section.json +32 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/source.json +20 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/state.json +22 -0
- package/vendors/copilot/project/.github/wtfp/project/templates/validation.json +32 -0
- package/vendors/copilot/project/.github/wtfp/roles/argument-verifier.md +62 -0
- package/vendors/copilot/project/.github/wtfp/roles/citation-expert.md +63 -0
- package/vendors/copilot/project/.github/wtfp/roles/citation-formatter.md +63 -0
- package/vendors/copilot/project/.github/wtfp/roles/coherence-checker.md +61 -0
- package/vendors/copilot/project/.github/wtfp/roles/outliner.md +68 -0
- package/vendors/copilot/project/.github/wtfp/roles/plan-checker.md +62 -0
- package/vendors/copilot/project/.github/wtfp/roles/prose-polisher.md +63 -0
- package/vendors/copilot/project/.github/wtfp/roles/research-synthesizer.md +65 -0
- package/vendors/copilot/project/.github/wtfp/roles/section-planner.md +65 -0
- package/vendors/copilot/project/.github/wtfp/roles/section-reviewer.md +62 -0
- package/vendors/copilot/project/.github/wtfp/roles/section-writer.md +66 -0
- package/vendors/copilot/project/.github/wtfp/schemas/action.schema.json +129 -0
- package/vendors/copilot/project/.github/wtfp/schemas/aliases.schema.json +26 -0
- package/vendors/copilot/project/.github/wtfp/schemas/catalog.schema.json +61 -0
- package/vendors/copilot/project/.github/wtfp/schemas/effects.schema.json +26 -0
- package/vendors/copilot/project/.github/wtfp/schemas/role-result.schema.json +74 -0
- package/vendors/copilot/project/.github/wtfp/schemas/tools.schema.json +26 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/references/actions.md +77 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +115 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md +75 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/references/actions.md +96 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/copilot/project/.github/wtfp/tools.json +54 -0
- package/vendors/copilot/project/.github/wtfp/workflows/add-todo.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/analyze-bib.md +33 -0
- package/vendors/copilot/project/.github/wtfp/workflows/audit-milestone.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/check-refs.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/check-todos.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/checkpoint.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/contribute.md +30 -0
- package/vendors/copilot/project/.github/wtfp/workflows/create-outline.md +33 -0
- package/vendors/copilot/project/.github/wtfp/workflows/create-poster.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/create-slides.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/discuss-section.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/execute-outline.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/export-latex.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/help.md +30 -0
- package/vendors/copilot/project/.github/wtfp/workflows/insert-section.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/list-assumptions.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/map-project.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/new-paper.md +37 -0
- package/vendors/copilot/project/.github/wtfp/workflows/pause-writing.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +34 -0
- package/vendors/copilot/project/.github/wtfp/workflows/polish-prose.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/progress.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/quick.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/remove-section.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/report-bug.md +30 -0
- package/vendors/copilot/project/.github/wtfp/workflows/request-feature.md +30 -0
- package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/resume-writing.md +34 -0
- package/vendors/copilot/project/.github/wtfp/workflows/review-section.md +33 -0
- package/vendors/copilot/project/.github/wtfp/workflows/settings.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/submit-milestone.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/update.md +30 -0
- package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +32 -0
- package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +34 -0
- package/vendors/copilot/project/README.md +5 -0
- package/vendors/gemini/.wtfp-generated.json +796 -0
- package/vendors/gemini/GEMINI.md +3 -0
- package/vendors/gemini/actions/add-todo.json +52 -0
- package/vendors/gemini/actions/analyze-bib.json +97 -0
- package/vendors/gemini/actions/audit-milestone.json +63 -0
- package/vendors/gemini/actions/check-refs.json +80 -0
- package/vendors/gemini/actions/check-todos.json +52 -0
- package/vendors/gemini/actions/checkpoint.json +76 -0
- package/vendors/gemini/actions/contribute.json +57 -0
- package/vendors/gemini/actions/create-outline.json +84 -0
- package/vendors/gemini/actions/create-poster.json +59 -0
- package/vendors/gemini/actions/create-slides.json +59 -0
- package/vendors/gemini/actions/discuss-section.json +76 -0
- package/vendors/gemini/actions/execute-outline.json +116 -0
- package/vendors/gemini/actions/export-latex.json +65 -0
- package/vendors/gemini/actions/help.json +30 -0
- package/vendors/gemini/actions/insert-section.json +61 -0
- package/vendors/gemini/actions/list-assumptions.json +35 -0
- package/vendors/gemini/actions/map-project.json +57 -0
- package/vendors/gemini/actions/new-paper.json +70 -0
- package/vendors/gemini/actions/pause-writing.json +71 -0
- package/vendors/gemini/actions/plan-milestone-gaps.json +57 -0
- package/vendors/gemini/actions/plan-revision.json +58 -0
- package/vendors/gemini/actions/plan-section.json +100 -0
- package/vendors/gemini/actions/polish-prose.json +69 -0
- package/vendors/gemini/actions/progress.json +51 -0
- package/vendors/gemini/actions/quick.json +70 -0
- package/vendors/gemini/actions/remove-section.json +63 -0
- package/vendors/gemini/actions/report-bug.json +47 -0
- package/vendors/gemini/actions/request-feature.json +47 -0
- package/vendors/gemini/actions/research-gap.json +101 -0
- package/vendors/gemini/actions/resume-writing.json +65 -0
- package/vendors/gemini/actions/review-section.json +83 -0
- package/vendors/gemini/actions/settings.json +47 -0
- package/vendors/gemini/actions/submit-milestone.json +77 -0
- package/vendors/gemini/actions/update.json +42 -0
- package/vendors/gemini/actions/verify-work.json +63 -0
- package/vendors/gemini/actions/write-section.json +115 -0
- package/vendors/gemini/agents/wtfp/argument-verifier.md +137 -180
- package/vendors/gemini/agents/wtfp/citation-expert.md +128 -27
- package/vendors/gemini/agents/wtfp/citation-formatter.md +129 -25
- package/vendors/gemini/agents/wtfp/coherence-checker.md +136 -158
- package/vendors/gemini/agents/wtfp/outliner.md +143 -248
- package/vendors/gemini/agents/wtfp/plan-checker.md +137 -240
- package/vendors/gemini/agents/wtfp/prose-polisher.md +138 -154
- package/vendors/gemini/agents/wtfp/research-synthesizer.md +140 -201
- package/vendors/gemini/agents/wtfp/section-planner.md +140 -351
- package/vendors/gemini/agents/wtfp/section-reviewer.md +137 -171
- package/vendors/gemini/agents/wtfp/section-writer.md +141 -300
- package/vendors/gemini/aliases.lock.json +42 -0
- package/vendors/gemini/catalog.json +127 -0
- package/vendors/gemini/commands/wtfp/add-todo.toml +679 -68
- package/vendors/gemini/commands/wtfp/analyze-bib.toml +9 -121
- package/vendors/gemini/commands/wtfp/audit-milestone.toml +9 -273
- package/vendors/gemini/commands/wtfp/check-refs.toml +9 -118
- package/vendors/gemini/commands/wtfp/check-todos.toml +568 -142
- package/vendors/gemini/commands/wtfp/checkpoint.toml +1441 -67
- package/vendors/gemini/commands/wtfp/contribute.toml +9 -264
- package/vendors/gemini/commands/wtfp/create-outline.toml +1275 -126
- package/vendors/gemini/commands/wtfp/create-poster.toml +9 -31
- package/vendors/gemini/commands/wtfp/create-slides.toml +9 -30
- package/vendors/gemini/commands/wtfp/discuss-section.toml +996 -59
- package/vendors/gemini/commands/wtfp/execute-outline.toml +1458 -220
- package/vendors/gemini/commands/wtfp/export-latex.toml +9 -204
- package/vendors/gemini/commands/wtfp/help.toml +267 -175
- package/vendors/gemini/commands/wtfp/insert-section.toml +685 -89
- package/vendors/gemini/commands/wtfp/list-assumptions.toml +794 -77
- package/vendors/gemini/commands/wtfp/map-project.toml +733 -85
- package/vendors/gemini/commands/wtfp/new-paper.toml +874 -147
- package/vendors/gemini/commands/wtfp/pause-writing.toml +992 -98
- package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +828 -218
- package/vendors/gemini/commands/wtfp/plan-revision.toml +811 -137
- package/vendors/gemini/commands/wtfp/plan-section.toml +1492 -184
- package/vendors/gemini/commands/wtfp/polish-prose.toml +775 -79
- package/vendors/gemini/commands/wtfp/progress.toml +1399 -99
- package/vendors/gemini/commands/wtfp/quick.toml +751 -65
- package/vendors/gemini/commands/wtfp/remove-section.toml +9 -135
- package/vendors/gemini/commands/wtfp/report-bug.toml +9 -121
- package/vendors/gemini/commands/wtfp/request-feature.toml +9 -150
- package/vendors/gemini/commands/wtfp/research-gap.toml +9 -209
- package/vendors/gemini/commands/wtfp/resume-writing.toml +1236 -90
- package/vendors/gemini/commands/wtfp/review-section.toml +1008 -86
- package/vendors/gemini/commands/wtfp/settings.toml +411 -153
- package/vendors/gemini/commands/wtfp/submit-milestone.toml +1279 -311
- package/vendors/gemini/commands/wtfp/update.toml +9 -102
- package/vendors/gemini/commands/wtfp/verify-work.toml +735 -201
- package/vendors/gemini/commands/wtfp/write-section.toml +1460 -202
- package/vendors/gemini/compatibility/action-availability.json +314 -0
- package/vendors/gemini/effects.json +107 -0
- package/vendors/gemini/fleets/wtfp-draft-review.json +35 -0
- package/vendors/gemini/fleets/wtfp-plan-section.json +34 -0
- package/vendors/gemini/gemini-extension.json +6 -0
- package/vendors/gemini/project/README.md +65 -0
- package/vendors/gemini/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/gemini/project/schemas/common.schema.json +33 -0
- package/vendors/gemini/project/schemas/config.schema.json +69 -0
- package/vendors/gemini/project/schemas/decisions.schema.json +31 -0
- package/vendors/gemini/project/schemas/evidence.schema.json +48 -0
- package/vendors/gemini/project/schemas/manifest.schema.json +102 -0
- package/vendors/gemini/project/schemas/outline.schema.json +67 -0
- package/vendors/gemini/project/schemas/section.schema.json +95 -0
- package/vendors/gemini/project/schemas/source.schema.json +73 -0
- package/vendors/gemini/project/schemas/state.schema.json +58 -0
- package/vendors/gemini/project/schemas/validation.schema.json +74 -0
- package/vendors/gemini/project/templates/checkpoint.json +25 -0
- package/vendors/gemini/project/templates/config.json +31 -0
- package/vendors/gemini/project/templates/decisions.json +35 -0
- package/vendors/gemini/project/templates/evidence.json +18 -0
- package/vendors/gemini/project/templates/manifest.json +30 -0
- package/vendors/gemini/project/templates/outline.json +38 -0
- package/vendors/gemini/project/templates/section.json +32 -0
- package/vendors/gemini/project/templates/source.json +20 -0
- package/vendors/gemini/project/templates/state.json +22 -0
- package/vendors/gemini/project/templates/validation.json +32 -0
- package/vendors/gemini/repository/CONTRIBUTING.md +183 -0
- package/vendors/gemini/roles/argument-verifier.md +62 -0
- package/vendors/gemini/roles/citation-expert.md +63 -0
- package/vendors/gemini/roles/citation-formatter.md +63 -0
- package/vendors/gemini/roles/coherence-checker.md +61 -0
- package/vendors/gemini/roles/outliner.md +68 -0
- package/vendors/gemini/roles/plan-checker.md +62 -0
- package/vendors/gemini/roles/prose-polisher.md +63 -0
- package/vendors/gemini/roles/research-synthesizer.md +65 -0
- package/vendors/gemini/roles/section-planner.md +65 -0
- package/vendors/gemini/roles/section-reviewer.md +62 -0
- package/vendors/gemini/roles/section-writer.md +66 -0
- package/vendors/gemini/schemas/action.schema.json +129 -0
- package/vendors/gemini/schemas/aliases.schema.json +26 -0
- package/vendors/gemini/schemas/catalog.schema.json +61 -0
- package/vendors/gemini/schemas/effects.schema.json +26 -0
- package/vendors/gemini/schemas/role-result.schema.json +74 -0
- package/vendors/gemini/schemas/tools.schema.json +26 -0
- package/vendors/gemini/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/gemini/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/gemini/skills/wtfp-deliver-research/references/actions.md +117 -0
- package/vendors/gemini/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/gemini/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/gemini/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/gemini/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/gemini/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +131 -0
- package/vendors/gemini/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/gemini/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/gemini/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/gemini/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/gemini/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/gemini/skills/wtfp-review-manuscript/references/actions.md +112 -0
- package/vendors/gemini/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/gemini/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/gemini/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/gemini/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/gemini/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/gemini/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/gemini/tools/README.md +13 -0
- package/vendors/gemini/tools/bibliography/analyze-impact.js +109 -0
- package/vendors/gemini/tools/bibliography/format.js +161 -0
- package/vendors/gemini/tools/bibliography/index.js +104 -0
- package/vendors/gemini/tools/citation/fetch.js +299 -0
- package/vendors/gemini/tools/citation/rank.js +145 -0
- package/vendors/gemini/tools/citation/scholar-lookup.js +188 -0
- package/vendors/gemini/tools/citation/semantic-scholar.js +184 -0
- package/vendors/gemini/tools.json +54 -0
- package/vendors/gemini/workflows/add-todo.md +32 -0
- package/vendors/gemini/workflows/analyze-bib.md +33 -0
- package/vendors/gemini/workflows/audit-milestone.md +32 -0
- package/vendors/gemini/workflows/check-refs.md +32 -0
- package/vendors/gemini/workflows/check-todos.md +32 -0
- package/vendors/gemini/workflows/checkpoint.md +32 -0
- package/vendors/gemini/workflows/contribute.md +30 -0
- package/vendors/gemini/workflows/create-outline.md +33 -0
- package/vendors/gemini/workflows/create-poster.md +32 -0
- package/vendors/gemini/workflows/create-slides.md +32 -0
- package/vendors/gemini/workflows/discuss-section.md +32 -0
- package/vendors/gemini/workflows/execute-outline.md +32 -0
- package/vendors/gemini/workflows/export-latex.md +32 -0
- package/vendors/gemini/workflows/help.md +30 -0
- package/vendors/gemini/workflows/insert-section.md +32 -0
- package/vendors/gemini/workflows/list-assumptions.md +32 -0
- package/vendors/gemini/workflows/map-project.md +32 -0
- package/vendors/gemini/workflows/new-paper.md +37 -0
- package/vendors/gemini/workflows/pause-writing.md +32 -0
- package/vendors/gemini/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/gemini/workflows/plan-revision.md +32 -0
- package/vendors/gemini/workflows/plan-section.md +34 -0
- package/vendors/gemini/workflows/polish-prose.md +32 -0
- package/vendors/gemini/workflows/progress.md +32 -0
- package/vendors/gemini/workflows/quick.md +32 -0
- package/vendors/gemini/workflows/remove-section.md +32 -0
- package/vendors/gemini/workflows/report-bug.md +30 -0
- package/vendors/gemini/workflows/request-feature.md +30 -0
- package/vendors/gemini/workflows/research-gap.md +32 -0
- package/vendors/gemini/workflows/resume-writing.md +34 -0
- package/vendors/gemini/workflows/review-section.md +33 -0
- package/vendors/gemini/workflows/settings.md +32 -0
- package/vendors/gemini/workflows/submit-milestone.md +32 -0
- package/vendors/gemini/workflows/update.md +30 -0
- package/vendors/gemini/workflows/verify-work.md +32 -0
- package/vendors/gemini/workflows/write-section.md +34 -0
- package/vendors/opencode/.wtfp-generated.json +788 -0
- package/vendors/opencode/actions/add-todo.json +52 -0
- package/vendors/opencode/actions/analyze-bib.json +97 -0
- package/vendors/opencode/actions/audit-milestone.json +63 -0
- package/vendors/opencode/actions/check-refs.json +80 -0
- package/vendors/opencode/actions/check-todos.json +52 -0
- package/vendors/opencode/actions/checkpoint.json +76 -0
- package/vendors/opencode/actions/contribute.json +57 -0
- package/vendors/opencode/actions/create-outline.json +84 -0
- package/vendors/opencode/actions/create-poster.json +59 -0
- package/vendors/opencode/actions/create-slides.json +59 -0
- package/vendors/opencode/actions/discuss-section.json +76 -0
- package/vendors/opencode/actions/execute-outline.json +116 -0
- package/vendors/opencode/actions/export-latex.json +65 -0
- package/vendors/opencode/actions/help.json +30 -0
- package/vendors/opencode/actions/insert-section.json +61 -0
- package/vendors/opencode/actions/list-assumptions.json +35 -0
- package/vendors/opencode/actions/map-project.json +57 -0
- package/vendors/opencode/actions/new-paper.json +70 -0
- package/vendors/opencode/actions/pause-writing.json +71 -0
- package/vendors/opencode/actions/plan-milestone-gaps.json +57 -0
- package/vendors/opencode/actions/plan-revision.json +58 -0
- package/vendors/opencode/actions/plan-section.json +100 -0
- package/vendors/opencode/actions/polish-prose.json +69 -0
- package/vendors/opencode/actions/progress.json +51 -0
- package/vendors/opencode/actions/quick.json +70 -0
- package/vendors/opencode/actions/remove-section.json +63 -0
- package/vendors/opencode/actions/report-bug.json +47 -0
- package/vendors/opencode/actions/request-feature.json +47 -0
- package/vendors/opencode/actions/research-gap.json +101 -0
- package/vendors/opencode/actions/resume-writing.json +65 -0
- package/vendors/opencode/actions/review-section.json +83 -0
- package/vendors/opencode/actions/settings.json +47 -0
- package/vendors/opencode/actions/submit-milestone.json +77 -0
- package/vendors/opencode/actions/update.json +42 -0
- package/vendors/opencode/actions/verify-work.json +63 -0
- package/vendors/opencode/actions/write-section.json +115 -0
- package/vendors/opencode/agents/wtfp/argument-verifier.md +137 -180
- package/vendors/opencode/agents/wtfp/citation-expert.md +128 -27
- package/vendors/opencode/agents/wtfp/citation-formatter.md +129 -25
- package/vendors/opencode/agents/wtfp/coherence-checker.md +136 -158
- package/vendors/opencode/agents/wtfp/outliner.md +143 -248
- package/vendors/opencode/agents/wtfp/plan-checker.md +137 -240
- package/vendors/opencode/agents/wtfp/prose-polisher.md +138 -154
- package/vendors/opencode/agents/wtfp/research-synthesizer.md +140 -201
- package/vendors/opencode/agents/wtfp/section-planner.md +140 -351
- package/vendors/opencode/agents/wtfp/section-reviewer.md +137 -171
- package/vendors/opencode/agents/wtfp/section-writer.md +141 -300
- package/vendors/opencode/aliases.lock.json +42 -0
- package/vendors/opencode/catalog.json +127 -0
- package/vendors/opencode/commands/wtfp/add-todo.md +681 -68
- package/vendors/opencode/commands/wtfp/analyze-bib.md +9 -120
- package/vendors/opencode/commands/wtfp/audit-milestone.md +9 -272
- package/vendors/opencode/commands/wtfp/check-refs.md +9 -117
- package/vendors/opencode/commands/wtfp/check-todos.md +569 -141
- package/vendors/opencode/commands/wtfp/checkpoint.md +1443 -67
- package/vendors/opencode/commands/wtfp/contribute.md +9 -259
- package/vendors/opencode/commands/wtfp/create-outline.md +1277 -126
- package/vendors/opencode/commands/wtfp/create-poster.md +9 -30
- package/vendors/opencode/commands/wtfp/create-slides.md +9 -29
- package/vendors/opencode/commands/wtfp/discuss-section.md +985 -46
- package/vendors/opencode/commands/wtfp/execute-outline.md +1452 -212
- package/vendors/opencode/commands/wtfp/export-latex.md +9 -203
- package/vendors/opencode/commands/wtfp/help.md +267 -173
- package/vendors/opencode/commands/wtfp/insert-section.md +686 -88
- package/vendors/opencode/commands/wtfp/list-assumptions.md +795 -76
- package/vendors/opencode/commands/wtfp/map-project.md +722 -72
- package/vendors/opencode/commands/wtfp/new-paper.md +863 -134
- package/vendors/opencode/commands/wtfp/pause-writing.md +994 -98
- package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +830 -218
- package/vendors/opencode/commands/wtfp/plan-revision.md +812 -138
- package/vendors/opencode/commands/wtfp/plan-section.md +1485 -176
- package/vendors/opencode/commands/wtfp/polish-prose.md +777 -79
- package/vendors/opencode/commands/wtfp/progress.md +1401 -99
- package/vendors/opencode/commands/wtfp/quick.md +753 -65
- package/vendors/opencode/commands/wtfp/remove-section.md +9 -134
- package/vendors/opencode/commands/wtfp/report-bug.md +9 -120
- package/vendors/opencode/commands/wtfp/request-feature.md +9 -149
- package/vendors/opencode/commands/wtfp/research-gap.md +9 -208
- package/vendors/opencode/commands/wtfp/resume-writing.md +1237 -89
- package/vendors/opencode/commands/wtfp/review-section.md +1008 -85
- package/vendors/opencode/commands/wtfp/settings.md +409 -149
- package/vendors/opencode/commands/wtfp/submit-milestone.md +1280 -310
- package/vendors/opencode/commands/wtfp/update.md +9 -101
- package/vendors/opencode/commands/wtfp/verify-work.md +736 -200
- package/vendors/opencode/commands/wtfp/write-section.md +1451 -190
- package/vendors/opencode/compatibility/action-availability.json +314 -0
- package/vendors/opencode/effects.json +107 -0
- package/vendors/opencode/fleets/wtfp-draft-review.json +35 -0
- package/vendors/opencode/fleets/wtfp-plan-section.json +34 -0
- package/vendors/opencode/project/README.md +65 -0
- package/vendors/opencode/project/schemas/checkpoint.schema.json +102 -0
- package/vendors/opencode/project/schemas/common.schema.json +33 -0
- package/vendors/opencode/project/schemas/config.schema.json +69 -0
- package/vendors/opencode/project/schemas/decisions.schema.json +31 -0
- package/vendors/opencode/project/schemas/evidence.schema.json +48 -0
- package/vendors/opencode/project/schemas/manifest.schema.json +102 -0
- package/vendors/opencode/project/schemas/outline.schema.json +67 -0
- package/vendors/opencode/project/schemas/section.schema.json +95 -0
- package/vendors/opencode/project/schemas/source.schema.json +73 -0
- package/vendors/opencode/project/schemas/state.schema.json +58 -0
- package/vendors/opencode/project/schemas/validation.schema.json +74 -0
- package/vendors/opencode/project/templates/checkpoint.json +25 -0
- package/vendors/opencode/project/templates/config.json +31 -0
- package/vendors/opencode/project/templates/decisions.json +35 -0
- package/vendors/opencode/project/templates/evidence.json +18 -0
- package/vendors/opencode/project/templates/manifest.json +30 -0
- package/vendors/opencode/project/templates/outline.json +38 -0
- package/vendors/opencode/project/templates/section.json +32 -0
- package/vendors/opencode/project/templates/source.json +20 -0
- package/vendors/opencode/project/templates/state.json +22 -0
- package/vendors/opencode/project/templates/validation.json +32 -0
- package/vendors/opencode/repository/CONTRIBUTING.md +183 -0
- package/vendors/opencode/roles/argument-verifier.md +62 -0
- package/vendors/opencode/roles/citation-expert.md +63 -0
- package/vendors/opencode/roles/citation-formatter.md +63 -0
- package/vendors/opencode/roles/coherence-checker.md +61 -0
- package/vendors/opencode/roles/outliner.md +68 -0
- package/vendors/opencode/roles/plan-checker.md +62 -0
- package/vendors/opencode/roles/prose-polisher.md +63 -0
- package/vendors/opencode/roles/research-synthesizer.md +65 -0
- package/vendors/opencode/roles/section-planner.md +65 -0
- package/vendors/opencode/roles/section-reviewer.md +62 -0
- package/vendors/opencode/roles/section-writer.md +66 -0
- package/vendors/opencode/schemas/action.schema.json +129 -0
- package/vendors/opencode/schemas/aliases.schema.json +26 -0
- package/vendors/opencode/schemas/catalog.schema.json +61 -0
- package/vendors/opencode/schemas/effects.schema.json +26 -0
- package/vendors/opencode/schemas/role-result.schema.json +74 -0
- package/vendors/opencode/schemas/tools.schema.json +26 -0
- package/vendors/opencode/skills/wtfp-deliver-research/SKILL.md +39 -0
- package/vendors/opencode/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
- package/vendors/opencode/skills/wtfp-deliver-research/references/actions.md +117 -0
- package/vendors/opencode/skills/wtfp-manage-project/SKILL.md +40 -0
- package/vendors/opencode/skills/wtfp-manage-project/agents/openai.yaml +4 -0
- package/vendors/opencode/skills/wtfp-manage-project/references/actions.md +91 -0
- package/vendors/opencode/skills/wtfp-plan-section/SKILL.md +40 -0
- package/vendors/opencode/skills/wtfp-plan-section/agents/openai.yaml +4 -0
- package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +131 -0
- package/vendors/opencode/skills/wtfp-research-literature/SKILL.md +37 -0
- package/vendors/opencode/skills/wtfp-research-literature/agents/openai.yaml +4 -0
- package/vendors/opencode/skills/wtfp-research-literature/references/actions.md +115 -0
- package/vendors/opencode/skills/wtfp-review-manuscript/SKILL.md +40 -0
- package/vendors/opencode/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
- package/vendors/opencode/skills/wtfp-review-manuscript/references/actions.md +112 -0
- package/vendors/opencode/skills/wtfp-start-project/SKILL.md +38 -0
- package/vendors/opencode/skills/wtfp-start-project/agents/openai.yaml +4 -0
- package/vendors/opencode/skills/wtfp-start-project/references/actions.md +80 -0
- package/vendors/opencode/skills/wtfp-write-section/SKILL.md +37 -0
- package/vendors/opencode/skills/wtfp-write-section/agents/openai.yaml +4 -0
- package/vendors/opencode/skills/wtfp-write-section/references/actions.md +69 -0
- package/vendors/opencode/tools/README.md +13 -0
- package/vendors/opencode/tools/bibliography/analyze-impact.js +109 -0
- package/vendors/opencode/tools/bibliography/format.js +161 -0
- package/vendors/opencode/tools/bibliography/index.js +104 -0
- package/vendors/opencode/tools/citation/fetch.js +299 -0
- package/vendors/opencode/tools/citation/rank.js +145 -0
- package/vendors/opencode/tools/citation/scholar-lookup.js +188 -0
- package/vendors/opencode/tools/citation/semantic-scholar.js +184 -0
- package/vendors/opencode/tools.json +54 -0
- package/vendors/opencode/workflows/add-todo.md +32 -0
- package/vendors/opencode/workflows/analyze-bib.md +33 -0
- package/vendors/opencode/workflows/audit-milestone.md +32 -0
- package/vendors/opencode/workflows/check-refs.md +32 -0
- package/vendors/opencode/workflows/check-todos.md +32 -0
- package/vendors/opencode/workflows/checkpoint.md +32 -0
- package/vendors/opencode/workflows/contribute.md +30 -0
- package/vendors/opencode/workflows/create-outline.md +33 -0
- package/vendors/opencode/workflows/create-poster.md +32 -0
- package/vendors/opencode/workflows/create-slides.md +32 -0
- package/vendors/opencode/workflows/discuss-section.md +32 -0
- package/vendors/opencode/workflows/execute-outline.md +32 -0
- package/vendors/opencode/workflows/export-latex.md +32 -0
- package/vendors/opencode/workflows/help.md +30 -0
- package/vendors/opencode/workflows/insert-section.md +32 -0
- package/vendors/opencode/workflows/list-assumptions.md +32 -0
- package/vendors/opencode/workflows/map-project.md +32 -0
- package/vendors/opencode/workflows/new-paper.md +37 -0
- package/vendors/opencode/workflows/pause-writing.md +32 -0
- package/vendors/opencode/workflows/plan-milestone-gaps.md +32 -0
- package/vendors/opencode/workflows/plan-revision.md +32 -0
- package/vendors/opencode/workflows/plan-section.md +34 -0
- package/vendors/opencode/workflows/polish-prose.md +32 -0
- package/vendors/opencode/workflows/progress.md +32 -0
- package/vendors/opencode/workflows/quick.md +32 -0
- package/vendors/opencode/workflows/remove-section.md +32 -0
- package/vendors/opencode/workflows/report-bug.md +30 -0
- package/vendors/opencode/workflows/request-feature.md +30 -0
- package/vendors/opencode/workflows/research-gap.md +32 -0
- package/vendors/opencode/workflows/resume-writing.md +34 -0
- package/vendors/opencode/workflows/review-section.md +33 -0
- package/vendors/opencode/workflows/settings.md +32 -0
- package/vendors/opencode/workflows/submit-milestone.md +32 -0
- package/vendors/opencode/workflows/update.md +30 -0
- package/vendors/opencode/workflows/verify-work.md +32 -0
- package/vendors/opencode/workflows/write-section.md +34 -0
- package/vendors/claude/commands/wtfp/add-todo.md +0 -108
- package/vendors/claude/commands/wtfp/analyze-bib.md +0 -137
- package/vendors/claude/commands/wtfp/audit-milestone.md +0 -286
- package/vendors/claude/commands/wtfp/check-refs.md +0 -134
- package/vendors/claude/commands/wtfp/check-todos.md +0 -152
- package/vendors/claude/commands/wtfp/checkpoint.md +0 -105
- package/vendors/claude/commands/wtfp/contribute.md +0 -278
- package/vendors/claude/commands/wtfp/create-outline.md +0 -189
- package/vendors/claude/commands/wtfp/create-poster.md +0 -42
- package/vendors/claude/commands/wtfp/create-slides.md +0 -41
- package/vendors/claude/commands/wtfp/discuss-section.md +0 -71
- package/vendors/claude/commands/wtfp/execute-outline.md +0 -257
- package/vendors/claude/commands/wtfp/export-latex.md +0 -216
- package/vendors/claude/commands/wtfp/help.md +0 -264
- package/vendors/claude/commands/wtfp/insert-section.md +0 -130
- package/vendors/claude/commands/wtfp/list-assumptions.md +0 -109
- package/vendors/claude/commands/wtfp/map-project.md +0 -108
- package/vendors/claude/commands/wtfp/new-paper.md +0 -169
- package/vendors/claude/commands/wtfp/pause-writing.md +0 -145
- package/vendors/claude/commands/wtfp/plan-milestone-gaps.md +0 -255
- package/vendors/claude/commands/wtfp/plan-revision.md +0 -180
- package/vendors/claude/commands/wtfp/plan-section.md +0 -222
- package/vendors/claude/commands/wtfp/polish-prose.md +0 -125
- package/vendors/claude/commands/wtfp/progress.md +0 -153
- package/vendors/claude/commands/wtfp/quick.md +0 -107
- package/vendors/claude/commands/wtfp/remove-section.md +0 -147
- package/vendors/claude/commands/wtfp/report-bug.md +0 -131
- package/vendors/claude/commands/wtfp/request-feature.md +0 -160
- package/vendors/claude/commands/wtfp/research-gap.md +0 -222
- package/vendors/claude/commands/wtfp/resume-writing.md +0 -142
- package/vendors/claude/commands/wtfp/review-section.md +0 -131
- package/vendors/claude/commands/wtfp/settings.md +0 -197
- package/vendors/claude/commands/wtfp/submit-milestone.md +0 -360
- package/vendors/claude/commands/wtfp/update.md +0 -112
- package/vendors/claude/commands/wtfp/verify-work.md +0 -254
- package/vendors/claude/commands/wtfp/write-section.md +0 -237
- package/vendors/claude/mcp/research-server/package.json +0 -13
- package/vendors/claude/mcp/research-server/src/index.js +0 -133
- package/vendors/claude/skills/wtfp/echarts/SKILL.md +0 -47
- package/vendors/claude/skills/wtfp/marp/SKILL.md +0 -49
|
@@ -3,7 +3,11 @@ const path = require('path');
|
|
|
3
3
|
const os = require('os');
|
|
4
4
|
const MANIFEST = require('../lib/manifest');
|
|
5
5
|
const {
|
|
6
|
-
|
|
6
|
+
ADAPTER_CONTRACT_VERSION,
|
|
7
|
+
GENERATOR_VERSION
|
|
8
|
+
} = require('../lib/adapter-metadata');
|
|
9
|
+
const { activateNativeRegistration } = require('../lib/native-registration');
|
|
10
|
+
const {
|
|
7
11
|
expandTilde,
|
|
8
12
|
getPathLabel,
|
|
9
13
|
getBackupPath,
|
|
@@ -12,6 +16,19 @@ const {
|
|
|
12
16
|
createRL,
|
|
13
17
|
prompt
|
|
14
18
|
} = require('../lib/utils');
|
|
19
|
+
const {
|
|
20
|
+
RECEIPT_FILE,
|
|
21
|
+
assertGuardMatchesTarget,
|
|
22
|
+
assertTargetGuard,
|
|
23
|
+
assertOwnedAbsolutePath,
|
|
24
|
+
atomicWriteFile,
|
|
25
|
+
createOwnedDirectory,
|
|
26
|
+
createTargetGuard,
|
|
27
|
+
materializeTargetGuard,
|
|
28
|
+
readOwnedRegularSnapshot,
|
|
29
|
+
removeCreatedDirectories,
|
|
30
|
+
sha256Buffer
|
|
31
|
+
} = require('../lib/ownership');
|
|
15
32
|
|
|
16
33
|
/**
|
|
17
34
|
* Get vendor-specific config directory
|
|
@@ -32,8 +49,11 @@ function getVendorDir(runtime, explicitConfigDir) {
|
|
|
32
49
|
}
|
|
33
50
|
|
|
34
51
|
const envDir = process.env[vendorConfig.configDirEnv];
|
|
35
|
-
if (envDir) {
|
|
36
|
-
|
|
52
|
+
if (typeof envDir === 'string' && envDir.trim().length > 0) {
|
|
53
|
+
const resolvedEnvironmentRoot = expandTilde(envDir);
|
|
54
|
+
return vendorConfig.envSubdir
|
|
55
|
+
? path.join(resolvedEnvironmentRoot, vendorConfig.envSubdir)
|
|
56
|
+
: resolvedEnvironmentRoot;
|
|
37
57
|
}
|
|
38
58
|
|
|
39
59
|
return path.join(os.homedir(), vendorConfig.defaultDir);
|
|
@@ -42,37 +62,112 @@ function getVendorDir(runtime, explicitConfigDir) {
|
|
|
42
62
|
/**
|
|
43
63
|
* Process file content with path replacement
|
|
44
64
|
*/
|
|
45
|
-
function processContent(srcPath, pathPrefix) {
|
|
46
|
-
|
|
47
|
-
|
|
65
|
+
function processContent(srcPath, pathPrefix, sourceBytes = null) {
|
|
66
|
+
const textExtensions = new Set(['.md', '.json', '.toml', '.yaml', '.yml', '.js', '.mjs', '.cjs', '.txt']);
|
|
67
|
+
if (textExtensions.has(path.extname(srcPath).toLowerCase())) {
|
|
68
|
+
const content = sourceBytes === null
|
|
69
|
+
? fs.readFileSync(srcPath, 'utf8')
|
|
70
|
+
: Buffer.from(sourceBytes).toString('utf8');
|
|
48
71
|
return content.replace(/~\/\.claude\//g, pathPrefix);
|
|
49
72
|
}
|
|
50
73
|
return null;
|
|
51
74
|
}
|
|
52
75
|
|
|
76
|
+
function identityOf(stat) {
|
|
77
|
+
return `${String(stat.dev)}:${String(stat.ino)}`;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function pathIsWithin(root, candidate) {
|
|
81
|
+
const relative = path.relative(path.resolve(root), path.resolve(candidate));
|
|
82
|
+
return relative === '' || (!relative.startsWith(`..${path.sep}`) && relative !== '..' && !path.isAbsolute(relative));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function readSourceSnapshot(file) {
|
|
86
|
+
const rootStat = fs.lstatSync(file.sourceRootPath);
|
|
87
|
+
if (rootStat.isSymbolicLink() || !rootStat.isDirectory() || identityOf(rootStat) !== file.sourceRootIdentity) {
|
|
88
|
+
throw new Error(`Package component root changed during installation planning: ${file.sourceRootPath}`);
|
|
89
|
+
}
|
|
90
|
+
const currentRoot = fs.realpathSync(file.sourceRootPath);
|
|
91
|
+
if (currentRoot !== file.sourceRoot) {
|
|
92
|
+
throw new Error(`Package component root was redirected during installation planning: ${file.sourceRootPath}`);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const flags = fs.constants.O_RDONLY | (fs.constants.O_NOFOLLOW || 0);
|
|
96
|
+
const descriptor = fs.openSync(file.src, flags);
|
|
97
|
+
try {
|
|
98
|
+
const before = fs.fstatSync(descriptor);
|
|
99
|
+
if (!before.isFile()) throw new Error(`Package source is not a regular file: ${file.src}`);
|
|
100
|
+
const canonicalSource = fs.realpathSync(file.src);
|
|
101
|
+
if (!pathIsWithin(file.sourceRoot, canonicalSource) || canonicalSource === file.sourceRoot) {
|
|
102
|
+
throw new Error(`Package source escaped its component root: ${file.src}`);
|
|
103
|
+
}
|
|
104
|
+
const bytes = fs.readFileSync(descriptor);
|
|
105
|
+
const after = fs.fstatSync(descriptor);
|
|
106
|
+
if (identityOf(before) !== identityOf(after) || before.size !== after.size || before.mtimeMs !== after.mtimeMs) {
|
|
107
|
+
throw new Error(`Package source changed while it was being read: ${file.src}`);
|
|
108
|
+
}
|
|
109
|
+
const pathStat = fs.lstatSync(file.src);
|
|
110
|
+
if (pathStat.isSymbolicLink() || !pathStat.isFile() || identityOf(pathStat) !== identityOf(before)) {
|
|
111
|
+
throw new Error(`Package source path changed while it was being read: ${file.src}`);
|
|
112
|
+
}
|
|
113
|
+
return { bytes, mode: before.mode & 0o777 };
|
|
114
|
+
} finally {
|
|
115
|
+
fs.closeSync(descriptor);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
53
119
|
/**
|
|
54
120
|
* Collect files from a manifest component
|
|
55
121
|
*/
|
|
56
122
|
function collectComponentFiles(component, destBase, files = []) {
|
|
57
|
-
|
|
123
|
+
let componentStat;
|
|
124
|
+
try {
|
|
125
|
+
componentStat = fs.lstatSync(component.src);
|
|
126
|
+
} catch (error) {
|
|
127
|
+
if (error.code === 'ENOENT') return files;
|
|
128
|
+
throw error;
|
|
129
|
+
}
|
|
130
|
+
if (componentStat.isSymbolicLink()) {
|
|
131
|
+
throw new Error(`Refusing symbolic-link package component root: ${component.src}`);
|
|
132
|
+
}
|
|
133
|
+
if (!componentStat.isDirectory()) {
|
|
134
|
+
throw new Error(`Package component root is not a directory: ${component.src}`);
|
|
135
|
+
}
|
|
136
|
+
const sourceRoot = fs.realpathSync(component.src);
|
|
137
|
+
const sourceRootIdentity = identityOf(componentStat);
|
|
58
138
|
|
|
59
139
|
function recurse(currentSrc, currentRel) {
|
|
60
|
-
const
|
|
140
|
+
const currentStat = fs.lstatSync(currentSrc);
|
|
141
|
+
const currentRealPath = fs.realpathSync(currentSrc);
|
|
142
|
+
if (currentStat.isSymbolicLink() || !currentStat.isDirectory() || !pathIsWithin(sourceRoot, currentRealPath)) {
|
|
143
|
+
throw new Error(`Refusing redirected package directory: ${currentSrc}`);
|
|
144
|
+
}
|
|
145
|
+
const entries = fs.readdirSync(currentSrc, { withFileTypes: true })
|
|
146
|
+
.sort((left, right) => left.name.localeCompare(right.name));
|
|
61
147
|
|
|
62
148
|
for (const entry of entries) {
|
|
63
149
|
const srcPath = path.join(currentSrc, entry.name);
|
|
64
150
|
const relPath = path.join(currentRel, entry.name);
|
|
65
151
|
const destPath = path.join(destBase, component.dest, relPath);
|
|
66
152
|
|
|
67
|
-
|
|
153
|
+
const entryStat = fs.lstatSync(srcPath);
|
|
154
|
+
if (entryStat.isSymbolicLink()) {
|
|
155
|
+
throw new Error(`Refusing symbolic link in package component: ${srcPath}`);
|
|
156
|
+
} else if (entryStat.isDirectory()) {
|
|
68
157
|
recurse(srcPath, relPath);
|
|
69
|
-
} else {
|
|
158
|
+
} else if (entryStat.isFile()) {
|
|
159
|
+
const topLevel = relPath.split(path.sep)[0];
|
|
70
160
|
files.push({
|
|
71
161
|
src: srcPath,
|
|
72
162
|
dest: destPath,
|
|
73
163
|
name: entry.name,
|
|
74
|
-
componentId: component.id
|
|
164
|
+
componentId: component.componentIds?.[topLevel] || component.id,
|
|
165
|
+
sourceRoot,
|
|
166
|
+
sourceRootPath: component.src,
|
|
167
|
+
sourceRootIdentity
|
|
75
168
|
});
|
|
169
|
+
} else {
|
|
170
|
+
throw new Error(`Refusing unsupported package entry: ${srcPath}`);
|
|
76
171
|
}
|
|
77
172
|
}
|
|
78
173
|
}
|
|
@@ -81,17 +176,59 @@ function collectComponentFiles(component, destBase, files = []) {
|
|
|
81
176
|
return files;
|
|
82
177
|
}
|
|
83
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Expand a generated bundle into the exact legacy --only projection requested
|
|
181
|
+
* by the caller. A complete install consumes the bundle root once; selective
|
|
182
|
+
* installs traverse only declared top-level roots and remain partial.
|
|
183
|
+
*/
|
|
184
|
+
function componentsForSelection(vendorConfig, onlyInstall) {
|
|
185
|
+
if (onlyInstall === 'all') return vendorConfig.components;
|
|
186
|
+
const selected = [];
|
|
187
|
+
|
|
188
|
+
for (const component of vendorConfig.components) {
|
|
189
|
+
if (component.id === onlyInstall ||
|
|
190
|
+
(onlyInstall === 'commands' && component.id === 'skills')) {
|
|
191
|
+
selected.push(component);
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const roots = component.selectionRoots?.[onlyInstall];
|
|
196
|
+
if (!Array.isArray(roots)) continue;
|
|
197
|
+
for (const root of roots) {
|
|
198
|
+
selected.push({
|
|
199
|
+
...component,
|
|
200
|
+
id: component.componentIds?.[root] || onlyInstall,
|
|
201
|
+
src: path.join(component.src, root),
|
|
202
|
+
dest: path.join(component.dest, root),
|
|
203
|
+
selectionRoots: undefined,
|
|
204
|
+
componentIds: undefined
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return selected;
|
|
210
|
+
}
|
|
211
|
+
|
|
84
212
|
/**
|
|
85
213
|
* Install files with conflict resolution
|
|
86
214
|
*/
|
|
87
215
|
async function installWithConflictResolution(files, pathPrefix, targetDir, options) {
|
|
88
216
|
const { out, hasForce, hasBackupAll, isInteractive, showExplanations } = options;
|
|
89
217
|
const c = out.colors;
|
|
90
|
-
|
|
218
|
+
let rl = null;
|
|
91
219
|
let globalChoice = null;
|
|
92
220
|
const stats = { installed: 0, skipped: 0, backed: 0 };
|
|
221
|
+
const plan = [];
|
|
222
|
+
const targetGuard = options.targetGuard || createTargetGuard(targetDir);
|
|
223
|
+
|
|
224
|
+
assertTargetGuard(targetGuard);
|
|
225
|
+
for (const file of files) {
|
|
226
|
+
assertOwnedAbsolutePath(targetDir, file.dest, targetGuard);
|
|
227
|
+
}
|
|
93
228
|
|
|
94
|
-
const existingFiles = files.filter(
|
|
229
|
+
const existingFiles = files.filter(file => Boolean(
|
|
230
|
+
readOwnedRegularSnapshot(targetDir, file.dest, targetGuard, { allowMissing: true })
|
|
231
|
+
));
|
|
95
232
|
|
|
96
233
|
if (existingFiles.length > 0 && !hasForce && !hasBackupAll && isInteractive) {
|
|
97
234
|
const relPath = getPathLabel(targetDir, true);
|
|
@@ -107,24 +244,48 @@ async function installWithConflictResolution(files, pathPrefix, targetDir, optio
|
|
|
107
244
|
}
|
|
108
245
|
}
|
|
109
246
|
|
|
110
|
-
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
247
|
+
try {
|
|
248
|
+
for (const file of files) {
|
|
249
|
+
const existingSnapshot = readOwnedRegularSnapshot(
|
|
250
|
+
targetDir,
|
|
251
|
+
file.dest,
|
|
252
|
+
targetGuard,
|
|
253
|
+
{ allowMissing: true }
|
|
254
|
+
);
|
|
255
|
+
const exists = Boolean(existingSnapshot);
|
|
256
|
+
const relDest = file.dest.replace(os.homedir(), '~').replace(process.cwd(), '.');
|
|
257
|
+
|
|
258
|
+
// A shared plugin manifest may belong to another package. Make this
|
|
259
|
+
// decision before creating a backup or mutating any path.
|
|
260
|
+
if (file.name === 'plugin.json' && file.componentId === 'plugin' && exists) {
|
|
261
|
+
try {
|
|
262
|
+
const existing = JSON.parse(existingSnapshot.bytes.toString('utf8'));
|
|
263
|
+
if (existing.name && existing.name !== 'wtf-p' && existing.name !== 'write-the-f-paper') {
|
|
264
|
+
out.verbose(` ${c.yellow('!')} ${c.dim(relDest)} belongs to another plugin — skipped`);
|
|
265
|
+
stats.skipped++;
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
} catch {
|
|
269
|
+
// Invalid JSON cannot establish third-party ownership. Normal
|
|
270
|
+
// conflict handling still defaults to preserving it.
|
|
271
|
+
}
|
|
272
|
+
}
|
|
118
273
|
|
|
119
|
-
|
|
274
|
+
let choice = exists ? 'skip' : 'create';
|
|
275
|
+
if (exists && hasBackupAll) {
|
|
276
|
+
choice = 'backup';
|
|
277
|
+
} else if (exists && hasForce) {
|
|
278
|
+
choice = 'overwrite';
|
|
279
|
+
} else if (exists && globalChoice) {
|
|
280
|
+
choice = globalChoice;
|
|
281
|
+
} else if (exists && isInteractive) {
|
|
282
|
+
if (!rl) rl = createRL();
|
|
120
283
|
const answer = await prompt(rl,
|
|
121
284
|
` ${c.yellow('?')} ${c.dim(relDest)} exists. [o]verwrite/[s]kip/[b]ackup/[a]ll: `
|
|
122
285
|
);
|
|
123
286
|
|
|
124
287
|
if (answer.startsWith('a')) {
|
|
125
|
-
const allAnswer = await prompt(rl,
|
|
126
|
-
` Apply to all: [o]verwrite/[s]kip/[b]ackup: `
|
|
127
|
-
);
|
|
288
|
+
const allAnswer = await prompt(rl, ' Apply to all: [o]verwrite/[s]kip/[b]ackup: ');
|
|
128
289
|
if (allAnswer.startsWith('o')) globalChoice = 'overwrite';
|
|
129
290
|
else if (allAnswer.startsWith('b')) globalChoice = 'backup';
|
|
130
291
|
else globalChoice = 'skip';
|
|
@@ -133,11 +294,7 @@ async function installWithConflictResolution(files, pathPrefix, targetDir, optio
|
|
|
133
294
|
choice = 'overwrite';
|
|
134
295
|
} else if (answer.startsWith('b')) {
|
|
135
296
|
choice = 'backup';
|
|
136
|
-
} else {
|
|
137
|
-
choice = 'skip';
|
|
138
297
|
}
|
|
139
|
-
} else if (!choice) {
|
|
140
|
-
choice = 'skip';
|
|
141
298
|
}
|
|
142
299
|
|
|
143
300
|
if (choice === 'skip') {
|
|
@@ -146,53 +303,283 @@ async function installWithConflictResolution(files, pathPrefix, targetDir, optio
|
|
|
146
303
|
continue;
|
|
147
304
|
}
|
|
148
305
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
306
|
+
const source = readSourceSnapshot(file);
|
|
307
|
+
const processed = processContent(file.src, pathPrefix, source.bytes);
|
|
308
|
+
const content = processed === null ? source.bytes : Buffer.from(processed, 'utf8');
|
|
309
|
+
plan.push({
|
|
310
|
+
...file,
|
|
311
|
+
exists,
|
|
312
|
+
choice,
|
|
313
|
+
content,
|
|
314
|
+
sourceMode: source.mode,
|
|
315
|
+
relDest,
|
|
316
|
+
existingHash: existingSnapshot ? existingSnapshot.sha256 : null,
|
|
317
|
+
existingIdentity: existingSnapshot ? existingSnapshot.identityKey : null
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
} finally {
|
|
321
|
+
if (rl) rl.close();
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const applied = [];
|
|
325
|
+
const createdDirectories = [];
|
|
326
|
+
let rolledBack = false;
|
|
327
|
+
let rollbackFailures = [];
|
|
328
|
+
|
|
329
|
+
function uniqueBackupPath(destination) {
|
|
330
|
+
const initial = getBackupPath(destination);
|
|
331
|
+
if (!fs.existsSync(initial)) return initial;
|
|
332
|
+
let index = 2;
|
|
333
|
+
let candidate = `${initial}.${index}`;
|
|
334
|
+
while (fs.existsSync(candidate)) {
|
|
335
|
+
index++;
|
|
336
|
+
candidate = `${initial}.${index}`;
|
|
337
|
+
}
|
|
338
|
+
return candidate;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function ensureOwnedDirectory(directory) {
|
|
342
|
+
assertTargetGuard(targetGuard);
|
|
343
|
+
let current = path.resolve(directory);
|
|
344
|
+
const resolvedTarget = path.resolve(targetDir);
|
|
345
|
+
const missing = [];
|
|
346
|
+
while (current === resolvedTarget || current.startsWith(resolvedTarget + path.sep)) {
|
|
347
|
+
try {
|
|
348
|
+
const stat = fs.lstatSync(current);
|
|
349
|
+
if (stat.isSymbolicLink() || !stat.isDirectory()) {
|
|
350
|
+
throw new Error(`Destination parent is not a real directory: ${current}`);
|
|
351
|
+
}
|
|
352
|
+
break;
|
|
353
|
+
} catch (error) {
|
|
354
|
+
if (error.code !== 'ENOENT') throw error;
|
|
355
|
+
missing.push(current);
|
|
154
356
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
357
|
+
if (current === resolvedTarget) break;
|
|
358
|
+
current = path.dirname(current);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
for (const missingDirectory of missing.reverse()) {
|
|
362
|
+
createdDirectories.push(createOwnedDirectory(targetGuard, missingDirectory));
|
|
160
363
|
}
|
|
364
|
+
assertTargetGuard(targetGuard);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
function rollback() {
|
|
368
|
+
if (rolledBack) return rollbackFailures;
|
|
369
|
+
rolledBack = true;
|
|
370
|
+
rollbackFailures = [];
|
|
371
|
+
|
|
372
|
+
for (const record of [...applied].reverse()) {
|
|
373
|
+
try {
|
|
374
|
+
assertOwnedAbsolutePath(targetDir, record.dest, targetGuard);
|
|
375
|
+
if (record.writeApplied) {
|
|
376
|
+
const currentSnapshot = readOwnedRegularSnapshot(
|
|
377
|
+
targetDir,
|
|
378
|
+
record.dest,
|
|
379
|
+
targetGuard,
|
|
380
|
+
{ allowMissing: true }
|
|
381
|
+
);
|
|
382
|
+
if (!currentSnapshot || currentSnapshot.sha256 !== record.installedHash ||
|
|
383
|
+
(record.installedIdentity && currentSnapshot.identityKey !== record.installedIdentity)) {
|
|
384
|
+
throw new Error('destination changed after publication; concurrent content was preserved');
|
|
385
|
+
}
|
|
386
|
+
assertTargetGuard(targetGuard);
|
|
387
|
+
if (record.existed) {
|
|
388
|
+
atomicWriteFile(record.dest, record.previousContent, {
|
|
389
|
+
mode: record.previousMode,
|
|
390
|
+
targetGuard
|
|
391
|
+
});
|
|
392
|
+
} else {
|
|
393
|
+
fs.unlinkSync(record.dest);
|
|
394
|
+
assertTargetGuard(targetGuard);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
} catch (error) {
|
|
398
|
+
rollbackFailures.push({ path: record.dest, message: error.message });
|
|
399
|
+
}
|
|
161
400
|
|
|
162
|
-
// Safety: never overwrite a non-WTF-P plugin.json
|
|
163
|
-
if (file.name === 'plugin.json' && file.componentId === 'plugin' && exists) {
|
|
164
401
|
try {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
402
|
+
if (record.backupPath && fs.existsSync(record.backupPath)) {
|
|
403
|
+
assertOwnedAbsolutePath(targetDir, record.backupPath, targetGuard);
|
|
404
|
+
const backupSnapshot = readOwnedRegularSnapshot(
|
|
405
|
+
targetDir,
|
|
406
|
+
record.backupPath,
|
|
407
|
+
targetGuard,
|
|
408
|
+
{ allowMissing: true }
|
|
409
|
+
);
|
|
410
|
+
if (!backupSnapshot || backupSnapshot.sha256 !== record.backupHash ||
|
|
411
|
+
(record.backupIdentity && backupSnapshot.identityKey !== record.backupIdentity)) {
|
|
412
|
+
throw new Error('transaction backup changed; it was preserved');
|
|
413
|
+
}
|
|
414
|
+
assertTargetGuard(targetGuard);
|
|
415
|
+
fs.unlinkSync(record.backupPath);
|
|
416
|
+
assertTargetGuard(targetGuard);
|
|
170
417
|
}
|
|
171
|
-
} catch {
|
|
418
|
+
} catch (error) {
|
|
419
|
+
rollbackFailures.push({ path: record.backupPath, message: error.message });
|
|
420
|
+
}
|
|
172
421
|
}
|
|
173
422
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
423
|
+
rollbackFailures.push(...removeCreatedDirectories(createdDirectories, targetGuard));
|
|
424
|
+
return rollbackFailures;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
try {
|
|
428
|
+
if (plan.length > 0 && !targetGuard.targetIdentity) {
|
|
429
|
+
createdDirectories.push(...materializeTargetGuard(targetGuard));
|
|
179
430
|
}
|
|
431
|
+
for (const item of plan) {
|
|
432
|
+
// Recheck immediately before mutation to catch a newly introduced
|
|
433
|
+
// symlink in a previously validated destination path.
|
|
434
|
+
assertTargetGuard(targetGuard);
|
|
435
|
+
assertOwnedAbsolutePath(targetDir, item.dest, targetGuard);
|
|
436
|
+
const currentSnapshot = readOwnedRegularSnapshot(
|
|
437
|
+
targetDir,
|
|
438
|
+
item.dest,
|
|
439
|
+
targetGuard,
|
|
440
|
+
{ allowMissing: true }
|
|
441
|
+
);
|
|
442
|
+
if (Boolean(currentSnapshot) !== item.exists) {
|
|
443
|
+
throw new Error(`Destination changed while installation was being planned: ${item.relDest}`);
|
|
444
|
+
}
|
|
445
|
+
const previousContent = currentSnapshot ? currentSnapshot.bytes : null;
|
|
446
|
+
if (currentSnapshot && (currentSnapshot.sha256 !== item.existingHash ||
|
|
447
|
+
currentSnapshot.identityKey !== item.existingIdentity)) {
|
|
448
|
+
throw new Error(`Destination content changed while installation was being planned: ${item.relDest}`);
|
|
449
|
+
}
|
|
450
|
+
const previousMode = currentSnapshot ? currentSnapshot.mode : undefined;
|
|
451
|
+
const sourceMode = item.sourceMode;
|
|
452
|
+
const appliedRecord = {
|
|
453
|
+
dest: item.dest,
|
|
454
|
+
componentId: item.componentId,
|
|
455
|
+
action: item.exists ? 'replaced' : 'created',
|
|
456
|
+
backupPath: null,
|
|
457
|
+
existed: item.exists,
|
|
458
|
+
previousContent,
|
|
459
|
+
previousMode,
|
|
460
|
+
writeApplied: false,
|
|
461
|
+
installedHash: sha256Buffer(item.content),
|
|
462
|
+
installedIdentity: null,
|
|
463
|
+
backupHash: null,
|
|
464
|
+
backupIdentity: null
|
|
465
|
+
};
|
|
466
|
+
applied.push(appliedRecord);
|
|
467
|
+
|
|
468
|
+
ensureOwnedDirectory(path.dirname(item.dest));
|
|
469
|
+
assertOwnedAbsolutePath(targetDir, item.dest, targetGuard);
|
|
470
|
+
|
|
471
|
+
if (item.choice === 'backup') {
|
|
472
|
+
appliedRecord.backupPath = uniqueBackupPath(item.dest);
|
|
473
|
+
assertOwnedAbsolutePath(targetDir, appliedRecord.backupPath, targetGuard);
|
|
474
|
+
try {
|
|
475
|
+
atomicWriteFile(appliedRecord.backupPath, previousContent, {
|
|
476
|
+
mode: previousMode,
|
|
477
|
+
mustNotExist: true,
|
|
478
|
+
targetGuard
|
|
479
|
+
});
|
|
480
|
+
} catch (error) {
|
|
481
|
+
const backupSnapshot = (() => {
|
|
482
|
+
try {
|
|
483
|
+
return readOwnedRegularSnapshot(
|
|
484
|
+
targetDir,
|
|
485
|
+
appliedRecord.backupPath,
|
|
486
|
+
targetGuard,
|
|
487
|
+
{ allowMissing: true }
|
|
488
|
+
);
|
|
489
|
+
} catch {
|
|
490
|
+
return null;
|
|
491
|
+
}
|
|
492
|
+
})();
|
|
493
|
+
if (error.published || (backupSnapshot && backupSnapshot.sha256 === item.existingHash)) {
|
|
494
|
+
appliedRecord.backupHash = item.existingHash;
|
|
495
|
+
if (backupSnapshot) appliedRecord.backupIdentity = backupSnapshot.identityKey;
|
|
496
|
+
}
|
|
497
|
+
throw error;
|
|
498
|
+
}
|
|
499
|
+
appliedRecord.backupHash = item.existingHash;
|
|
500
|
+
appliedRecord.backupIdentity = readOwnedRegularSnapshot(
|
|
501
|
+
targetDir,
|
|
502
|
+
appliedRecord.backupPath,
|
|
503
|
+
targetGuard
|
|
504
|
+
).identityKey;
|
|
505
|
+
stats.backed++;
|
|
506
|
+
out.log(` ${c.cyan('↻')} Backed up to ${c.dim(path.basename(appliedRecord.backupPath))}`);
|
|
507
|
+
}
|
|
180
508
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
509
|
+
if (item.exists) {
|
|
510
|
+
const immediate = readOwnedRegularSnapshot(targetDir, item.dest, targetGuard, { allowMissing: true });
|
|
511
|
+
if (!immediate || immediate.sha256 !== item.existingHash || immediate.identityKey !== item.existingIdentity) {
|
|
512
|
+
throw new Error(`Destination content changed immediately before write: ${item.relDest}`);
|
|
513
|
+
}
|
|
514
|
+
} else {
|
|
515
|
+
if (readOwnedRegularSnapshot(targetDir, item.dest, targetGuard, { allowMissing: true })) {
|
|
516
|
+
throw new Error(`Destination appeared immediately before write: ${item.relDest}`);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
try {
|
|
521
|
+
atomicWriteFile(item.dest, item.content, {
|
|
522
|
+
mode: previousMode || sourceMode,
|
|
523
|
+
mustNotExist: !item.exists,
|
|
524
|
+
targetGuard
|
|
525
|
+
});
|
|
526
|
+
appliedRecord.writeApplied = true;
|
|
527
|
+
} catch (error) {
|
|
528
|
+
let publishedSnapshot = null;
|
|
529
|
+
try {
|
|
530
|
+
publishedSnapshot = readOwnedRegularSnapshot(targetDir, item.dest, targetGuard, { allowMissing: true });
|
|
531
|
+
} catch {
|
|
532
|
+
// The root or parent may have changed; publication state is still
|
|
533
|
+
// carried by the atomic helper for conservative rollback reporting.
|
|
534
|
+
}
|
|
535
|
+
if (error.published || (publishedSnapshot && publishedSnapshot.sha256 === appliedRecord.installedHash)) {
|
|
536
|
+
appliedRecord.writeApplied = true;
|
|
537
|
+
if (publishedSnapshot) appliedRecord.installedIdentity = publishedSnapshot.identityKey;
|
|
538
|
+
}
|
|
539
|
+
throw error;
|
|
540
|
+
}
|
|
541
|
+
const installedSnapshot = readOwnedRegularSnapshot(targetDir, item.dest, targetGuard);
|
|
542
|
+
if (installedSnapshot.sha256 !== appliedRecord.installedHash) {
|
|
543
|
+
throw new Error(`Published destination failed verification: ${item.relDest}`);
|
|
544
|
+
}
|
|
545
|
+
appliedRecord.installedIdentity = installedSnapshot.identityKey;
|
|
546
|
+
assertTargetGuard(targetGuard);
|
|
547
|
+
|
|
548
|
+
out.verbose(` ${item.exists ? c.green('✓') : c.green('+')} ${c.dim(item.relDest)}`);
|
|
549
|
+
stats.installed++;
|
|
550
|
+
}
|
|
551
|
+
} catch (error) {
|
|
552
|
+
const failures = rollback();
|
|
553
|
+
if (failures.length > 0) {
|
|
554
|
+
error.message += `; rollback also failed for ${failures.length} path(s)`;
|
|
555
|
+
error.rollbackFailures = failures;
|
|
185
556
|
}
|
|
186
|
-
|
|
557
|
+
throw error;
|
|
187
558
|
}
|
|
188
559
|
|
|
189
|
-
|
|
190
|
-
|
|
560
|
+
return {
|
|
561
|
+
...stats,
|
|
562
|
+
writtenFiles: applied.map(({
|
|
563
|
+
previousContent,
|
|
564
|
+
previousMode,
|
|
565
|
+
existed,
|
|
566
|
+
writeApplied,
|
|
567
|
+
installedHash,
|
|
568
|
+
installedIdentity,
|
|
569
|
+
backupHash,
|
|
570
|
+
backupIdentity,
|
|
571
|
+
...record
|
|
572
|
+
}) => record),
|
|
573
|
+
rollback,
|
|
574
|
+
commit() {
|
|
575
|
+
rolledBack = true;
|
|
576
|
+
}
|
|
577
|
+
};
|
|
191
578
|
}
|
|
192
579
|
|
|
193
580
|
/**
|
|
194
581
|
* Main install logic
|
|
195
|
-
* @param {string} runtime -
|
|
582
|
+
* @param {string} runtime - A manifest target id, or the legacy 'claude-local' target
|
|
196
583
|
* @param {boolean} isUpdate - Whether this is an update operation
|
|
197
584
|
* @param {object} options - CLI options
|
|
198
585
|
* @param {object} pkg - Package.json contents
|
|
@@ -206,23 +593,23 @@ async function install(runtime, isUpdate, options, pkg) {
|
|
|
206
593
|
const vendorConfig = MANIFEST[vendorKey];
|
|
207
594
|
|
|
208
595
|
if (!vendorConfig) {
|
|
209
|
-
|
|
210
|
-
process.exit(1);
|
|
596
|
+
throw new Error(`Unknown runtime: ${runtime}`);
|
|
211
597
|
}
|
|
212
598
|
|
|
213
|
-
// Resolve
|
|
214
|
-
const
|
|
599
|
+
// Resolve and canonicalize the target before deriving any destination.
|
|
600
|
+
const unresolvedTargetDir = getVendorDir(runtime, explicitConfigDir);
|
|
601
|
+
const targetGuard = options.targetGuard || createTargetGuard(unresolvedTargetDir);
|
|
602
|
+
assertGuardMatchesTarget(unresolvedTargetDir, targetGuard);
|
|
603
|
+
const targetDir = targetGuard.path;
|
|
215
604
|
const isGlobal = runtime !== 'claude-local';
|
|
216
605
|
const locationLabel = getPathLabel(targetDir, isGlobal);
|
|
217
606
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
out.error(`Invalid path: ${targetDir}`);
|
|
221
|
-
process.exit(1);
|
|
222
|
-
}
|
|
223
|
-
|
|
607
|
+
const configuredByEnvironment = typeof process.env[vendorConfig.configDirEnv] === 'string' &&
|
|
608
|
+
process.env[vendorConfig.configDirEnv].trim().length > 0;
|
|
224
609
|
const pathPrefix = isGlobal
|
|
225
|
-
? (explicitConfigDir
|
|
610
|
+
? ((explicitConfigDir || configuredByEnvironment)
|
|
611
|
+
? `${targetDir}${path.sep}`
|
|
612
|
+
: `~/${vendorConfig.defaultDir}/`)
|
|
226
613
|
: `./.claude/`;
|
|
227
614
|
|
|
228
615
|
// ---- Cross-installation conflict detection ----
|
|
@@ -279,18 +666,7 @@ async function install(runtime, isUpdate, options, pkg) {
|
|
|
279
666
|
// Collect files based on Manifest
|
|
280
667
|
const allFiles = [];
|
|
281
668
|
|
|
282
|
-
vendorConfig.
|
|
283
|
-
// Check --only filters
|
|
284
|
-
if (onlyInstall !== 'all') {
|
|
285
|
-
const allowedIds = [onlyInstall];
|
|
286
|
-
// Legacy mapping: 'commands' includes 'skills'
|
|
287
|
-
if (onlyInstall === 'commands') allowedIds.push('skills');
|
|
288
|
-
|
|
289
|
-
if (!allowedIds.includes(component.id)) {
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
669
|
+
componentsForSelection(vendorConfig, onlyInstall).forEach(component => {
|
|
294
670
|
// DEBUG LOG
|
|
295
671
|
// console.log(`Collecting: ${component.id} from ${component.src}`);
|
|
296
672
|
|
|
@@ -301,26 +677,134 @@ async function install(runtime, isUpdate, options, pkg) {
|
|
|
301
677
|
// console.log(`Total files found: ${allFiles.length}`);
|
|
302
678
|
|
|
303
679
|
// Install with conflict resolution
|
|
304
|
-
const stats = await installWithConflictResolution(allFiles, pathPrefix, targetDir,
|
|
680
|
+
const stats = await installWithConflictResolution(allFiles, pathPrefix, targetDir, {
|
|
681
|
+
...options,
|
|
682
|
+
targetGuard
|
|
683
|
+
});
|
|
305
684
|
|
|
306
|
-
//
|
|
307
|
-
|
|
685
|
+
// Native registration consumes the staged adapter, so it must complete
|
|
686
|
+
// before the ownership receipt makes the file transaction durable. A
|
|
687
|
+
// successful activation exposes an exact compensator in case receipt
|
|
688
|
+
// publication subsequently fails.
|
|
689
|
+
let nativeActivation = { status: 'not-required', results: [] };
|
|
690
|
+
const nativeRequested = onlyInstall === 'all' && Boolean(vendorConfig.native);
|
|
691
|
+
const nativeSourceComplete = stats.skipped === 0;
|
|
692
|
+
if (nativeRequested && !nativeSourceComplete) {
|
|
693
|
+
nativeActivation = {
|
|
694
|
+
status: 'deferred',
|
|
695
|
+
reason: `Native registration was skipped because ${stats.skipped} adapter file(s) were preserved`,
|
|
696
|
+
results: []
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
let transactionPhase = 'ownership receipt preflight';
|
|
700
|
+
try {
|
|
701
|
+
if (stats.writtenFiles.length > 0) {
|
|
702
|
+
const receiptPath = path.join(targetDir, RECEIPT_FILE);
|
|
703
|
+
assertOwnedAbsolutePath(targetDir, receiptPath, targetGuard);
|
|
704
|
+
// Reject a directory, symlink, or other impossible receipt destination
|
|
705
|
+
// before invoking an external client that may create auxiliary state.
|
|
706
|
+
readOwnedRegularSnapshot(targetDir, receiptPath, targetGuard, { allowMissing: true });
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
transactionPhase = 'native registration';
|
|
710
|
+
if (nativeRequested && nativeSourceComplete) {
|
|
711
|
+
nativeActivation = activateNativeRegistration(
|
|
712
|
+
vendorKey,
|
|
713
|
+
targetDir,
|
|
714
|
+
vendorConfig.native,
|
|
715
|
+
options.nativeRegistrationOptions
|
|
716
|
+
);
|
|
717
|
+
if (Array.isArray(nativeActivation.rollbackFailures) && nativeActivation.rollbackFailures.length > 0) {
|
|
718
|
+
const error = new Error('native registration returned incomplete rollback work');
|
|
719
|
+
error.nativeRollbackFailures = nativeActivation.rollbackFailures;
|
|
720
|
+
throw error;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
transactionPhase = 'ownership receipt';
|
|
725
|
+
// A no-op update must not claim a newer version. When files were written,
|
|
726
|
+
// receipt creation is part of the transaction and any failure rolls them
|
|
727
|
+
// back to their prior bytes.
|
|
728
|
+
if (stats.writtenFiles.length > 0) {
|
|
729
|
+
writeVersionFile(targetDir, pkg.version, stats.writtenFiles, {
|
|
730
|
+
runtime: vendorKey,
|
|
731
|
+
scope: isGlobal ? (explicitConfigDir ? 'custom' : 'user') : 'project',
|
|
732
|
+
skipped: stats.skipped,
|
|
733
|
+
selectionComplete: onlyInstall === 'all',
|
|
734
|
+
adapterVersion: ADAPTER_CONTRACT_VERSION,
|
|
735
|
+
generatorVersion: GENERATOR_VERSION,
|
|
736
|
+
targetGuard
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
stats.commit();
|
|
740
|
+
} catch (error) {
|
|
741
|
+
const nativeRollbackFailures = Array.isArray(error.nativeRollbackFailures)
|
|
742
|
+
? [...error.nativeRollbackFailures]
|
|
743
|
+
: [];
|
|
744
|
+
if (nativeActivation && typeof nativeActivation.rollback === 'function') {
|
|
745
|
+
try {
|
|
746
|
+
nativeRollbackFailures.push(...nativeActivation.rollback());
|
|
747
|
+
} catch (rollbackError) {
|
|
748
|
+
nativeRollbackFailures.push(rollbackError.message);
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
if (nativeRollbackFailures.length === 0) {
|
|
753
|
+
const failures = stats.rollback();
|
|
754
|
+
if (failures.length > 0) {
|
|
755
|
+
error.message += `; rollback also failed for ${failures.length} path(s)`;
|
|
756
|
+
error.rollbackFailures = failures;
|
|
757
|
+
}
|
|
758
|
+
} else {
|
|
759
|
+
// Keep the source available when an external client could still point at
|
|
760
|
+
// it. Deleting it would turn a recoverable registry residue into a broken
|
|
761
|
+
// registration. The primary error carries exact manual recovery work.
|
|
762
|
+
stats.commit();
|
|
763
|
+
error.message += `; native rollback also failed: ${nativeRollbackFailures.join('; ')}; staged source was preserved`;
|
|
764
|
+
error.nativeRollbackFailures = nativeRollbackFailures;
|
|
765
|
+
}
|
|
766
|
+
error.message = `WTF-P ${transactionPhase} failed: ${error.message}`;
|
|
767
|
+
throw error;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
if (nativeRequested) {
|
|
771
|
+
if (nativeActivation.status === 'unavailable' && !hasQuiet) {
|
|
772
|
+
out.warn(`${nativeActivation.executable} is not installed; the WTF-P bundle is staged but native registration is pending.`);
|
|
773
|
+
} else if (nativeActivation.status === 'deferred' && !hasQuiet) {
|
|
774
|
+
out.warn(`${nativeActivation.reason}. The WTF-P bundle is staged but native registration is pending.`);
|
|
775
|
+
} else if (nativeActivation.status === 'incompatible' && !hasQuiet) {
|
|
776
|
+
out.warn(`The installed Clio version does not expose the complete WTF-P extension contract: ${nativeActivation.reason}. Flat prompts and skills remain staged; upgrade Clio for agents, fleets, and namespaced prompts.`);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
308
779
|
|
|
309
780
|
// Summary
|
|
310
781
|
if (!hasQuiet) {
|
|
311
|
-
|
|
782
|
+
if (stats.installed === 0) {
|
|
783
|
+
out.log(`
|
|
784
|
+
${c.yellow('No files changed.')} ${c.dim(`[${vendorConfig.name}]`)} Skipped: ${stats.skipped}
|
|
785
|
+
`);
|
|
786
|
+
} else {
|
|
787
|
+
out.log(`
|
|
312
788
|
${c.green('Done!')} ${c.dim(`[${vendorConfig.name}]`)} Installed: ${stats.installed}, Skipped: ${stats.skipped}, Backed up: ${stats.backed}
|
|
313
789
|
|
|
314
790
|
Run ${c.cyan('/wtfp:help')} in ${vendorConfig.name} to get started.
|
|
315
791
|
`);
|
|
792
|
+
}
|
|
316
793
|
|
|
317
|
-
if (showExplanations && !isUpdate) {
|
|
794
|
+
if (stats.installed > 0 && showExplanations && !isUpdate) {
|
|
318
795
|
out.log(` ${c.yellow('Get started:')}`);
|
|
319
796
|
out.log(` ${c.cyan('/wtfp:new-paper')} Define your paper's vision and structure`);
|
|
320
797
|
out.log(` ${c.cyan('/wtfp:progress')} See where you are and what's next`);
|
|
321
798
|
out.log(` ${c.cyan('/wtfp:help')} Browse all available commands\n`);
|
|
322
799
|
}
|
|
323
800
|
}
|
|
801
|
+
|
|
802
|
+
return { ...stats, nativeActivation, targetDir };
|
|
324
803
|
}
|
|
325
804
|
|
|
326
|
-
module.exports = install;
|
|
805
|
+
module.exports = install;
|
|
806
|
+
module.exports.getVendorDir = getVendorDir;
|
|
807
|
+
module.exports.processContent = processContent;
|
|
808
|
+
module.exports.collectComponentFiles = collectComponentFiles;
|
|
809
|
+
module.exports.componentsForSelection = componentsForSelection;
|
|
810
|
+
module.exports.installWithConflictResolution = installWithConflictResolution;
|