wtf-p 0.8.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -25
- package/bin/commands/install-logic.js +5 -5
- package/bin/install.js +11 -11
- package/bin/lib/adapter-compiler.js +211 -208
- package/bin/lib/manifest.js +21 -21
- package/bin/lib/native-registration.js +25 -10
- package/bin/lib/{clio-registration.js → pancode-registration.js} +62 -63
- package/bin/lib/utils.js +3 -3
- package/bin/uninstall.js +8 -8
- package/package.json +6 -4
- package/{vendors/clio-extension → pancode/extension}/.wtfp-generated.json +11 -11
- package/{vendors/clio-extension → pancode/extension}/compatibility/action-availability.json +14 -14
- package/{vendors/clio-extension/clio-coder-extension.yaml → pancode/extension/pancode-extension.yaml} +6 -5
- package/{vendors/clio-extension → pancode/extension}/runtime/claim-coverage.cjs +1 -1
- package/{vendors/clio-extension → pancode/extension}/runtime/desk-trust.cjs +1 -1
- package/{vendors/clio-extension → pancode/extension}/runtime/extension.test.ts +101 -139
- package/{vendors/clio-extension → pancode/extension}/runtime/extension.ts +84 -188
- package/{vendors/clio-extension → pancode/extension}/runtime/write-guard.json +1 -1
- package/{vendors → pancode}/plugin/.wtfp-generated.json +111 -111
- package/{vendors → pancode}/plugin/compatibility/action-availability.json +16 -16
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-argument-verifier.md +3 -3
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-citation-expert.md +2 -2
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-citation-formatter.md +2 -2
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-coherence-checker.md +3 -3
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-outliner.md +2 -2
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-plan-checker.md +3 -3
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-prose-polisher.md +2 -2
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-research-synthesizer.md +2 -2
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-planner.md +2 -2
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-reviewer.md +3 -3
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/agents/wtfp-section-writer.md +3 -3
- package/{vendors/claude/ai.iowarp.clio/fleets → pancode/plugin/dev.pancode/playbooks}/wtfp-draft-review.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/add-todo.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/advance.md +8 -8
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/analyze-bib.md +5 -5
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/audit-milestone.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/check-refs.md +5 -5
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/check-todos.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/checkpoint.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/contribute.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-outline.md +5 -5
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-poster.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/create-slides.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/discuss-section.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/execute-outline.md +6 -6
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/export-latex.md +3 -3
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/help.md +7 -7
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/insert-section.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/list-assumptions.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/map-project.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/new-paper.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/pause-writing.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-milestone-gaps.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-revision.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/plan-section.md +6 -6
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/polish-prose.md +5 -5
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/progress.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/quick.md +5 -5
- package/{vendors/claude/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/remove-section.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/report-bug.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/request-feature.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/research-gap.md +6 -6
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/resume-writing.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/review-section.md +6 -6
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/settings.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/submit-milestone.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/update.md +1 -1
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/verify-work.md +3 -3
- package/{vendors/plugin/ai.iowarp.clio → pancode/plugin/dev.pancode}/prompts/wtfp/write-section.md +6 -6
- package/{vendors → pancode}/plugin/plugin.json +56 -56
- package/{vendors → pancode}/plugin/repository/CONTRIBUTING.md +5 -2
- package/{vendors → pancode}/plugin/skills/wtfp-plan-section/references/actions.md +2 -2
- package/vendors/antigravity/.wtfp-generated.json +3 -3
- package/vendors/antigravity/plugin.json +2 -2
- package/vendors/antigravity/repository/CONTRIBUTING.md +5 -2
- package/vendors/claude/.claude-plugin/marketplace.json +2 -2
- package/vendors/claude/.claude-plugin/plugin.json +1 -1
- package/vendors/claude/.wtfp-generated.json +185 -185
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-argument-verifier.md +3 -3
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-citation-expert.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-citation-formatter.md +2 -2
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-coherence-checker.md +3 -3
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-outliner.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/agents/wtfp-plan-checker.md +3 -3
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-prose-polisher.md +2 -2
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-research-synthesizer.md +2 -2
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-planner.md +2 -2
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-reviewer.md +3 -3
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/agents/wtfp-section-writer.md +3 -3
- package/vendors/{plugin/ai.iowarp.clio/playbooks → claude/dev.pancode/fleets}/wtfp-draft-review.md +1 -1
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/advance.md +1 -1
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/analyze-bib.md +4 -4
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/audit-milestone.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/check-refs.md +4 -4
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/check-todos.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/checkpoint.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/contribute.md +1 -1
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-outline.md +4 -4
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-poster.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/create-slides.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/discuss-section.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/execute-outline.md +5 -5
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/export-latex.md +2 -2
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/prompts/wtfp/help.md +7 -7
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/insert-section.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/new-paper.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-milestone-gaps.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-revision.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/plan-section.md +5 -5
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/polish-prose.md +4 -4
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/progress.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/quick.md +4 -4
- package/vendors/{plugin/ai.iowarp.clio → claude/dev.pancode}/prompts/wtfp/remove-section.md +1 -1
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/report-bug.md +1 -1
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/request-feature.md +1 -1
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/research-gap.md +5 -5
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/resume-writing.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/review-section.md +5 -5
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/settings.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/submit-milestone.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/update.md +1 -1
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/verify-work.md +2 -2
- package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/write-section.md +5 -5
- package/vendors/claude/plugin.json +56 -56
- package/vendors/claude/repository/CONTRIBUTING.md +5 -2
- package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/.wtfp-generated.json +4 -4
- package/vendors/codex/plugins/wtfp/plugin.json +1 -1
- package/vendors/codex/plugins/wtfp/repository/CONTRIBUTING.md +5 -2
- package/vendors/copilot/.wtfp-generated.json +2 -2
- package/vendors/copilot/marketplace.json +2 -2
- package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
- package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +3 -3
- package/vendors/copilot/plugins/wtfp/repository/CONTRIBUTING.md +5 -2
- package/vendors/gemini/.wtfp-generated.json +3 -3
- package/vendors/gemini/gemini-extension.json +1 -1
- package/vendors/gemini/repository/CONTRIBUTING.md +5 -2
- package/vendors/opencode/.wtfp-generated.json +2 -2
- package/vendors/opencode/repository/CONTRIBUTING.md +5 -2
- /package/{vendors/clio-extension → pancode/extension}/actions/add-todo.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/advance.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/analyze-bib.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/audit-milestone.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/check-refs.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/check-todos.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/checkpoint.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/contribute.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/create-outline.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/create-poster.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/create-slides.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/discuss-section.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/execute-outline.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/export-latex.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/help.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/insert-section.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/list-assumptions.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/map-project.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/new-paper.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/pause-writing.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/plan-milestone-gaps.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/plan-revision.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/plan-section.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/polish-prose.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/progress.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/quick.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/remove-section.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/report-bug.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/request-feature.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/research-gap.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/resume-writing.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/review-section.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/settings.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/submit-milestone.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/update.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/verify-work.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/actions/write-section.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/checkpoint.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/common.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/config.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/decisions.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/evidence.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/interaction.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/manifest.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/outline.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/section.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/source.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/state.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/schemas/validation.schema.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/checkpoint.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/config.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/decisions.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/evidence.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/interaction.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/manifest.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/outline.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/section.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/source.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/state.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/project/templates/validation.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/runtime/json-schema.cjs +0 -0
- /package/{vendors/clio-extension → pancode/extension}/runtime/package.json +0 -0
- /package/{vendors/clio-extension → pancode/extension}/skins/wtfp.json +0 -0
- /package/{vendors → pancode}/plugin/actions/add-todo.json +0 -0
- /package/{vendors → pancode}/plugin/actions/advance.json +0 -0
- /package/{vendors → pancode}/plugin/actions/analyze-bib.json +0 -0
- /package/{vendors → pancode}/plugin/actions/audit-milestone.json +0 -0
- /package/{vendors → pancode}/plugin/actions/check-refs.json +0 -0
- /package/{vendors → pancode}/plugin/actions/check-todos.json +0 -0
- /package/{vendors → pancode}/plugin/actions/checkpoint.json +0 -0
- /package/{vendors → pancode}/plugin/actions/contribute.json +0 -0
- /package/{vendors → pancode}/plugin/actions/create-outline.json +0 -0
- /package/{vendors → pancode}/plugin/actions/create-poster.json +0 -0
- /package/{vendors → pancode}/plugin/actions/create-slides.json +0 -0
- /package/{vendors → pancode}/plugin/actions/discuss-section.json +0 -0
- /package/{vendors → pancode}/plugin/actions/execute-outline.json +0 -0
- /package/{vendors → pancode}/plugin/actions/export-latex.json +0 -0
- /package/{vendors → pancode}/plugin/actions/help.json +0 -0
- /package/{vendors → pancode}/plugin/actions/insert-section.json +0 -0
- /package/{vendors → pancode}/plugin/actions/list-assumptions.json +0 -0
- /package/{vendors → pancode}/plugin/actions/map-project.json +0 -0
- /package/{vendors → pancode}/plugin/actions/new-paper.json +0 -0
- /package/{vendors → pancode}/plugin/actions/pause-writing.json +0 -0
- /package/{vendors → pancode}/plugin/actions/plan-milestone-gaps.json +0 -0
- /package/{vendors → pancode}/plugin/actions/plan-revision.json +0 -0
- /package/{vendors → pancode}/plugin/actions/plan-section.json +0 -0
- /package/{vendors → pancode}/plugin/actions/polish-prose.json +0 -0
- /package/{vendors → pancode}/plugin/actions/progress.json +0 -0
- /package/{vendors → pancode}/plugin/actions/quick.json +0 -0
- /package/{vendors → pancode}/plugin/actions/remove-section.json +0 -0
- /package/{vendors → pancode}/plugin/actions/report-bug.json +0 -0
- /package/{vendors → pancode}/plugin/actions/request-feature.json +0 -0
- /package/{vendors → pancode}/plugin/actions/research-gap.json +0 -0
- /package/{vendors → pancode}/plugin/actions/resume-writing.json +0 -0
- /package/{vendors → pancode}/plugin/actions/review-section.json +0 -0
- /package/{vendors → pancode}/plugin/actions/settings.json +0 -0
- /package/{vendors → pancode}/plugin/actions/submit-milestone.json +0 -0
- /package/{vendors → pancode}/plugin/actions/update.json +0 -0
- /package/{vendors → pancode}/plugin/actions/verify-work.json +0 -0
- /package/{vendors → pancode}/plugin/actions/write-section.json +0 -0
- /package/{vendors → pancode}/plugin/aliases.lock.json +0 -0
- /package/{vendors → pancode}/plugin/catalog.json +0 -0
- /package/{vendors/claude/ai.iowarp.clio/fleets → pancode/plugin/dev.pancode/playbooks}/wtfp-plan-section.md +0 -0
- /package/{vendors → pancode}/plugin/effects.json +0 -0
- /package/{vendors → pancode}/plugin/project/README.md +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/checkpoint.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/common.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/config.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/decisions.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/evidence.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/interaction.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/manifest.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/outline.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/section.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/source.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/state.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/schemas/validation.schema.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/checkpoint.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/config.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/decisions.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/evidence.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/interaction.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/manifest.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/outline.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/section.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/source.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/state.json +0 -0
- /package/{vendors → pancode}/plugin/project/templates/validation.json +0 -0
- /package/{vendors → pancode}/plugin/roles/argument-verifier.md +0 -0
- /package/{vendors → pancode}/plugin/roles/citation-expert.md +0 -0
- /package/{vendors → pancode}/plugin/roles/citation-formatter.md +0 -0
- /package/{vendors → pancode}/plugin/roles/coherence-checker.md +0 -0
- /package/{vendors → pancode}/plugin/roles/outliner.md +0 -0
- /package/{vendors → pancode}/plugin/roles/plan-checker.md +0 -0
- /package/{vendors → pancode}/plugin/roles/prose-polisher.md +0 -0
- /package/{vendors → pancode}/plugin/roles/research-synthesizer.md +0 -0
- /package/{vendors → pancode}/plugin/roles/section-planner.md +0 -0
- /package/{vendors → pancode}/plugin/roles/section-reviewer.md +0 -0
- /package/{vendors → pancode}/plugin/roles/section-writer.md +0 -0
- /package/{vendors → pancode}/plugin/schemas/action.schema.json +0 -0
- /package/{vendors → pancode}/plugin/schemas/aliases.schema.json +0 -0
- /package/{vendors → pancode}/plugin/schemas/catalog.schema.json +0 -0
- /package/{vendors → pancode}/plugin/schemas/effects.schema.json +0 -0
- /package/{vendors → pancode}/plugin/schemas/role-result.schema.json +0 -0
- /package/{vendors → pancode}/plugin/schemas/tools.schema.json +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/SKILL.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/agents/openai.yaml +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-deliver-research/references/actions.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/SKILL.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/agents/openai.yaml +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-manage-project/references/actions.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-plan-section/SKILL.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-plan-section/agents/openai.yaml +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/SKILL.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/agents/openai.yaml +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-research-literature/references/actions.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/SKILL.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/agents/openai.yaml +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-review-manuscript/references/actions.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-start-project/SKILL.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-start-project/agents/openai.yaml +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-start-project/references/actions.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-write-section/SKILL.md +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-write-section/agents/openai.yaml +0 -0
- /package/{vendors → pancode}/plugin/skills/wtfp-write-section/references/actions.md +0 -0
- /package/{vendors → pancode}/plugin/templates/README.md +0 -0
- /package/{vendors → pancode}/plugin/templates/grant-proposal-outline.md +0 -0
- /package/{vendors → pancode}/plugin/templates/paper-outline.md +0 -0
- /package/{vendors → pancode}/plugin/templates/poster.md +0 -0
- /package/{vendors → pancode}/plugin/templates/slides.md +0 -0
- /package/{vendors → pancode}/plugin/tools/README.md +0 -0
- /package/{vendors → pancode}/plugin/tools/bibliography/analyze-impact.js +0 -0
- /package/{vendors → pancode}/plugin/tools/bibliography/format.js +0 -0
- /package/{vendors → pancode}/plugin/tools/bibliography/index.js +0 -0
- /package/{vendors → pancode}/plugin/tools/citation/fetch.js +0 -0
- /package/{vendors → pancode}/plugin/tools/citation/rank.js +0 -0
- /package/{vendors → pancode}/plugin/tools/citation/scholar-lookup.js +0 -0
- /package/{vendors → pancode}/plugin/tools/citation/semantic-scholar.js +0 -0
- /package/{vendors → pancode}/plugin/tools/package.json +0 -0
- /package/{vendors → pancode}/plugin/tools/support/cite-nexus-client.js +0 -0
- /package/{vendors → pancode}/plugin/tools/wtfp-tool.js +0 -0
- /package/{vendors → pancode}/plugin/tools.json +0 -0
- /package/{vendors → pancode}/plugin/workflows/add-todo.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/advance.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/analyze-bib.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/audit-milestone.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/check-refs.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/check-todos.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/checkpoint.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/contribute.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/create-outline.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/create-poster.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/create-slides.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/discuss-section.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/execute-outline.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/export-latex.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/help.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/insert-section.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/list-assumptions.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/map-project.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/new-paper.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/pause-writing.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/plan-milestone-gaps.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/plan-revision.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/plan-section.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/polish-prose.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/progress.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/quick.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/remove-section.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/report-bug.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/request-feature.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/research-gap.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/resume-writing.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/review-section.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/settings.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/submit-milestone.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/update.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/verify-work.md +0 -0
- /package/{vendors → pancode}/plugin/workflows/write-section.md +0 -0
- /package/vendors/{plugin/ai.iowarp.clio/playbooks → claude/dev.pancode/fleets}/wtfp-plan-section.md +0 -0
- /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/add-todo.md +0 -0
- /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/list-assumptions.md +0 -0
- /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/map-project.md +0 -0
- /package/vendors/claude/{ai.iowarp.clio → dev.pancode}/prompts/wtfp/pause-writing.md +0 -0
package/bin/lib/manifest.js
CHANGED
|
@@ -3,29 +3,29 @@ const path = require('path');
|
|
|
3
3
|
|
|
4
4
|
const ROOT = path.resolve(__dirname, '../..');
|
|
5
5
|
|
|
6
|
-
// Mirror of
|
|
7
|
-
//
|
|
8
|
-
// default. On Linux that default is ${XDG_CONFIG_HOME:-~/.config}/
|
|
6
|
+
// Mirror of PanCode's own resolution (pancode src/core/xdg.ts): the explicit
|
|
7
|
+
// PANCODE_CONFIG_DIR wins, then PANCODE_HOME/config, then the platform
|
|
8
|
+
// default. On Linux that default is ${XDG_CONFIG_HOME:-~/.config}/pancode.
|
|
9
9
|
// Publishing anywhere else registers the plugin in a profile the operator's
|
|
10
|
-
// normal
|
|
11
|
-
function
|
|
10
|
+
// normal PanCode never reads.
|
|
11
|
+
function pancodeConfigRoot(env = process.env, platform = process.platform, home = os.homedir()) {
|
|
12
12
|
const value = (key) => {
|
|
13
13
|
const raw = env[key];
|
|
14
14
|
return typeof raw === 'string' && raw.trim().length > 0 ? raw.trim() : null;
|
|
15
15
|
};
|
|
16
|
-
const explicit = value('
|
|
16
|
+
const explicit = value('PANCODE_CONFIG_DIR');
|
|
17
17
|
if (explicit) return explicit;
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
18
|
+
const pancodeHome = value('PANCODE_HOME');
|
|
19
|
+
if (pancodeHome) return path.join(pancodeHome, 'config');
|
|
20
20
|
if (platform === 'win32') {
|
|
21
21
|
const appData = value('APPDATA') || path.join(home, 'AppData', 'Roaming');
|
|
22
|
-
return path.join(appData, '
|
|
22
|
+
return path.join(appData, 'pancode', 'config');
|
|
23
23
|
}
|
|
24
24
|
if (platform === 'darwin') {
|
|
25
|
-
return path.join(home, 'Library', 'Application Support', '
|
|
25
|
+
return path.join(home, 'Library', 'Application Support', 'pancode', 'config');
|
|
26
26
|
}
|
|
27
27
|
const xdgConfig = value('XDG_CONFIG_HOME') || path.join(home, '.config');
|
|
28
|
-
return path.join(xdgConfig, '
|
|
28
|
+
return path.join(xdgConfig, 'pancode');
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function generatedBundle(target, selectionRoots = {}, componentIds = {}, dest = '.') {
|
|
@@ -67,24 +67,24 @@ const MANIFEST = {
|
|
|
67
67
|
source: 'marketplaces/wtfp'
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
//
|
|
70
|
+
// PanCode consumes the canonical Agent Plugins bundle through its hub
|
|
71
71
|
// lifecycle and the desk through its extension lifecycle: two packages, two
|
|
72
|
-
//
|
|
73
|
-
|
|
74
|
-
name: '
|
|
75
|
-
configDirEnv: '
|
|
76
|
-
defaultDir: '.config/
|
|
77
|
-
resolveConfigRoot:
|
|
72
|
+
// PanCode installs, one WTF-P receipt.
|
|
73
|
+
pancode: {
|
|
74
|
+
name: 'PanCode',
|
|
75
|
+
configDirEnv: 'PANCODE_CONFIG_DIR',
|
|
76
|
+
defaultDir: '.config/pancode',
|
|
77
|
+
resolveConfigRoot: pancodeConfigRoot,
|
|
78
78
|
components: [
|
|
79
79
|
{
|
|
80
80
|
id: 'plugin',
|
|
81
|
-
src: path.join(ROOT, '
|
|
81
|
+
src: path.join(ROOT, 'pancode', 'plugin'),
|
|
82
82
|
dest: 'plugins/wtfp',
|
|
83
83
|
type: 'dir'
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
id: 'extension',
|
|
87
|
-
src: path.join(ROOT, '
|
|
87
|
+
src: path.join(ROOT, 'pancode', 'extension'),
|
|
88
88
|
dest: 'extensions/wtfp',
|
|
89
89
|
type: 'dir'
|
|
90
90
|
}
|
|
@@ -94,7 +94,7 @@ const MANIFEST = {
|
|
|
94
94
|
path: 'plugins/wtfp'
|
|
95
95
|
},
|
|
96
96
|
native: {
|
|
97
|
-
kind: '
|
|
97
|
+
kind: 'pancode-plugin',
|
|
98
98
|
id: 'wtfp',
|
|
99
99
|
source: 'plugins/wtfp',
|
|
100
100
|
extension: { id: 'wtfp', source: 'extensions/wtfp' }
|
|
@@ -2,7 +2,7 @@ const fs = require('fs');
|
|
|
2
2
|
const os = require('os');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const { spawnSync } = require('child_process');
|
|
5
|
-
const {
|
|
5
|
+
const { activatePanCode, deactivatePanCode } = require('./pancode-registration');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_TIMEOUT_MS = 30000;
|
|
8
8
|
const MAX_OUTPUT_BYTES = 2 * 1024 * 1024;
|
|
@@ -27,12 +27,12 @@ function antigravityHome(targetDir) {
|
|
|
27
27
|
|
|
28
28
|
function nativeEnvironment(runtime, targetDir, baseEnvironment = process.env, options = {}) {
|
|
29
29
|
const environment = { ...baseEnvironment };
|
|
30
|
-
if (runtime === '
|
|
30
|
+
if (runtime === 'pancode') {
|
|
31
31
|
// Project destinations are selected by cwd and --project. Repointing the
|
|
32
|
-
// user config there aliases the two
|
|
32
|
+
// user config there aliases the two hub scopes, including their locks
|
|
33
33
|
// and state files. Preserve the caller's independent user profile.
|
|
34
|
-
const project = path.resolve(targetDir) === path.join(path.resolve(options.cwd || process.cwd()), '.
|
|
35
|
-
if (!project) environment.
|
|
34
|
+
const project = path.resolve(targetDir) === path.join(path.resolve(options.cwd || process.cwd()), '.pancode');
|
|
35
|
+
if (!project) environment.PANCODE_CONFIG_DIR = targetDir;
|
|
36
36
|
} else if (runtime === 'claude') {
|
|
37
37
|
environment.CLAUDE_CONFIG_DIR = targetDir;
|
|
38
38
|
} else if (runtime === 'codex') {
|
|
@@ -48,6 +48,21 @@ function nativeEnvironment(runtime, targetDir, baseEnvironment = process.env, op
|
|
|
48
48
|
return environment;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
// A search that met only a directory of the same name, such as the `pancode/`
|
|
52
|
+
// output directory in a WTF-P checkout under an empty PATH entry, reports
|
|
53
|
+
// EACCES; that is no executable at all, unlike a real file without permission.
|
|
54
|
+
function onPathAsFile(command, environment, cwd) {
|
|
55
|
+
if (command.includes('/') || command.includes(path.sep)) return true;
|
|
56
|
+
const entries = String((environment && environment.PATH) || '').split(path.delimiter);
|
|
57
|
+
return entries.some((entry) => {
|
|
58
|
+
try {
|
|
59
|
+
return fs.statSync(path.resolve(cwd || process.cwd(), entry, command)).isFile();
|
|
60
|
+
} catch {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
51
66
|
function execute(command, args, environment, options = {}) {
|
|
52
67
|
const runner = options.runner || spawnSync;
|
|
53
68
|
const result = runner(command, args, {
|
|
@@ -60,7 +75,7 @@ function execute(command, args, environment, options = {}) {
|
|
|
60
75
|
windowsHide: true
|
|
61
76
|
});
|
|
62
77
|
|
|
63
|
-
if (result.error && result.error.code === 'ENOENT') {
|
|
78
|
+
if (result.error && (result.error.code === 'ENOENT' || (result.error.code === 'EACCES' && !onPathAsFile(command, environment, options.cwd)))) {
|
|
64
79
|
return { status: 'unavailable', command, args, output: '' };
|
|
65
80
|
}
|
|
66
81
|
if (result.error) {
|
|
@@ -92,7 +107,7 @@ function execute(command, args, environment, options = {}) {
|
|
|
92
107
|
};
|
|
93
108
|
}
|
|
94
109
|
|
|
95
|
-
//
|
|
110
|
+
// PanCode is handled entirely by pancode-registration.js through its plugin
|
|
96
111
|
// lifecycle and never reaches this marketplace-shaped command table.
|
|
97
112
|
function nativeCommands(runtime, targetDir, native) {
|
|
98
113
|
const source = path.join(targetDir, native.source);
|
|
@@ -263,8 +278,8 @@ function verifyRegistration(runtime, native, result) {
|
|
|
263
278
|
|
|
264
279
|
function activateNativeRegistration(runtime, targetDir, native, options = {}) {
|
|
265
280
|
if (!native) return { status: 'not-required', results: [] };
|
|
266
|
-
if (runtime === '
|
|
267
|
-
return
|
|
281
|
+
if (runtime === 'pancode') {
|
|
282
|
+
return activatePanCode(targetDir, native, { ...options, execute, environment: nativeEnvironment(runtime, targetDir, options.environment, options) });
|
|
268
283
|
}
|
|
269
284
|
const commands = nativeCommands(runtime, targetDir, native);
|
|
270
285
|
if (!commands) return { status: 'not-required', results: [] };
|
|
@@ -433,7 +448,7 @@ function isAlreadyAbsent(result) {
|
|
|
433
448
|
|
|
434
449
|
function deactivateNativeRegistration(runtime, targetDir, native, options = {}) {
|
|
435
450
|
if (!native) return { status: 'not-required', results: [] };
|
|
436
|
-
if (runtime === '
|
|
451
|
+
if (runtime === 'pancode') return deactivatePanCode(targetDir, native, { ...options, execute, environment: nativeEnvironment(runtime, targetDir, options.environment, options) });
|
|
437
452
|
const commands = nativeCommands(runtime, targetDir, native);
|
|
438
453
|
if (!commands) return { status: 'not-required', results: [] };
|
|
439
454
|
const environment = nativeEnvironment(runtime, targetDir, options.environment);
|
|
@@ -4,22 +4,22 @@ const fs = require('fs');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const { createTargetGuard, resolveOwnedPath, sha256Buffer } = require('./ownership');
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// PanCode owns integrity, provenance, drift and enable/disable for an installed
|
|
8
8
|
// plugin or extension. WTF-P owns two much smaller things: the exact bytes it
|
|
9
|
-
// publishes (its v2 receipt) and the guarantee that each tree handed to
|
|
9
|
+
// publishes (its v2 receipt) and the guarantee that each tree handed to PanCode
|
|
10
10
|
// is the generated package and nothing else.
|
|
11
11
|
function treeFiles(root) {
|
|
12
12
|
const files = new Map();
|
|
13
13
|
function visit(directory) {
|
|
14
14
|
const stat = fs.lstatSync(directory);
|
|
15
15
|
if (stat.isSymbolicLink() || !stat.isDirectory()) {
|
|
16
|
-
throw new Error(`
|
|
16
|
+
throw new Error(`PanCode plugin directory is unsafe: ${directory}`);
|
|
17
17
|
}
|
|
18
18
|
for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
|
|
19
19
|
const file = path.join(directory, entry.name);
|
|
20
20
|
if (entry.isDirectory()) visit(file);
|
|
21
21
|
else if (entry.isFile()) files.set(path.relative(root, file).split(path.sep).join('/'), sha256Buffer(fs.readFileSync(file)));
|
|
22
|
-
else throw new Error(`
|
|
22
|
+
else throw new Error(`PanCode plugin contains an unsafe entry: ${file}`);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
if (fs.existsSync(root)) visit(root);
|
|
@@ -32,12 +32,12 @@ function sameTree(left, right) {
|
|
|
32
32
|
|
|
33
33
|
function scopeOptions(targetDir, options) {
|
|
34
34
|
const cwd = path.resolve(options.cwd || process.cwd());
|
|
35
|
-
const project = path.resolve(targetDir) === path.join(cwd, '.
|
|
36
|
-
if (options.scope === 'project' && !project) throw new Error('
|
|
35
|
+
const project = path.resolve(targetDir) === path.join(cwd, '.pancode');
|
|
36
|
+
if (options.scope === 'project' && !project) throw new Error('PanCode project scope requires <cwd>/.pancode');
|
|
37
37
|
return { ...options, cwd, scope: project ? 'project' : 'user' };
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
function generatedBundle(root, target = '
|
|
40
|
+
function generatedBundle(root, target = 'pancode-plugin') {
|
|
41
41
|
const inventoryPath = path.join(root, '.wtfp-generated.json');
|
|
42
42
|
if (!fs.existsSync(inventoryPath)) return null;
|
|
43
43
|
const inventory = JSON.parse(fs.readFileSync(inventoryPath, 'utf8'));
|
|
@@ -50,7 +50,7 @@ function generatedBundle(root, target = 'portable-plugin') {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// Compare roots by their real path so a symlinked config directory still
|
|
53
|
-
// matches whether
|
|
53
|
+
// matches whether PanCode reports the lexical or the canonical root.
|
|
54
54
|
function sameRoot(reported, expected) {
|
|
55
55
|
const canonical = (candidate) => {
|
|
56
56
|
try {
|
|
@@ -85,18 +85,18 @@ function installedRecord(entry) {
|
|
|
85
85
|
function installedListEntry(stdout, targetDir, native, scope) {
|
|
86
86
|
const listing = JSON.parse(stdout);
|
|
87
87
|
if (!listing || !Array.isArray(listing.entries) || !Array.isArray(listing.diagnostics)) {
|
|
88
|
-
throw new Error('
|
|
88
|
+
throw new Error('PanCode hub list did not return entries and diagnostics arrays');
|
|
89
89
|
}
|
|
90
90
|
const installed = [];
|
|
91
91
|
for (const entry of listing.entries) {
|
|
92
92
|
if (!entry || typeof entry.kind !== 'string' || typeof entry.name !== 'string' ||
|
|
93
93
|
!entry.name || !Array.isArray(entry.installed)) {
|
|
94
|
-
throw new Error('
|
|
94
|
+
throw new Error('PanCode hub list returned a malformed hub entry');
|
|
95
95
|
}
|
|
96
96
|
if (entry.kind !== 'plugin') continue;
|
|
97
97
|
for (const copy of entry.installed) {
|
|
98
98
|
if (!installedRecord(copy) || copy.id !== entry.name) {
|
|
99
|
-
throw new Error('
|
|
99
|
+
throw new Error('PanCode hub list returned a malformed installed plugin');
|
|
100
100
|
}
|
|
101
101
|
installed.push(copy);
|
|
102
102
|
}
|
|
@@ -105,45 +105,44 @@ function installedListEntry(stdout, targetDir, native, scope) {
|
|
|
105
105
|
// three ownership coordinates can authorize native lifecycle operations.
|
|
106
106
|
const matches = installed.filter(entry => entry.id === native.id && entry.scope === scope &&
|
|
107
107
|
sameRoot(entry.rootPath, path.join(targetDir, native.source)));
|
|
108
|
-
if (matches.length > 1) throw new Error('
|
|
108
|
+
if (matches.length > 1) throw new Error('PanCode hub list returned duplicate installed plugin identities');
|
|
109
109
|
return matches[0];
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
function installedExtensionEntry(stdout, targetDir, native, scope) {
|
|
113
113
|
const listing = JSON.parse(stdout);
|
|
114
114
|
if (!listing || !Array.isArray(listing.extensions)) {
|
|
115
|
-
throw new Error('
|
|
115
|
+
throw new Error('PanCode extensions list did not return an extensions array');
|
|
116
116
|
}
|
|
117
117
|
for (const entry of listing.extensions) {
|
|
118
|
-
if (!installedRecord(entry)) throw new Error('
|
|
118
|
+
if (!installedRecord(entry)) throw new Error('PanCode extensions list returned a malformed installed extension');
|
|
119
119
|
}
|
|
120
120
|
const matches = listing.extensions.filter(entry => entry.id === native.id && entry.scope === scope &&
|
|
121
121
|
sameRoot(entry.rootPath, path.join(targetDir, native.source)));
|
|
122
|
-
if (matches.length > 1) throw new Error('
|
|
122
|
+
if (matches.length > 1) throw new Error('PanCode extensions list returned duplicate installed extension identities');
|
|
123
123
|
return matches[0];
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// The two
|
|
126
|
+
// The two PanCode packages WTF-P installs, plugin first. Each is its own PanCode
|
|
127
127
|
// install with its own lifecycle command, generated inventory and checks.
|
|
128
|
-
// Both carry the id `wtfp`,
|
|
129
|
-
// and
|
|
130
|
-
|
|
131
|
-
function clioPackages(native) {
|
|
128
|
+
// Both carry the id `wtfp`, so `hub` commands name the plugin as `plugin:wtfp`
|
|
129
|
+
// and never leave PanCode to choose between the two packages. The `extensions` commands select extensions by themselves.
|
|
130
|
+
function pancodePackages(native) {
|
|
132
131
|
const plugin = {
|
|
133
|
-
noun: 'plugin', command: '
|
|
134
|
-
deferral: '
|
|
135
|
-
list: () => ['
|
|
132
|
+
noun: 'plugin', command: 'hub', id: native.id, ref: `plugin:${native.id}`, source: native.source, inventory: 'pancode-plugin',
|
|
133
|
+
deferral: 'PanCode activation requires an intact generated bundle without extra or modified files',
|
|
134
|
+
list: () => ['hub', 'list', '--kind', 'plugin', '--json'],
|
|
136
135
|
listed: (stdout, targetDir, scope) => installedListEntry(stdout, targetDir, native, scope),
|
|
137
136
|
// `inspect` returns the installed record for the explicitly selected scope.
|
|
138
|
-
verify: scope => ['
|
|
137
|
+
verify: scope => ['hub', 'inspect', `plugin:${native.id}`, `--${scope}`, '--json'],
|
|
139
138
|
verified: (stdout, targetDir, scope) => verifiedEntry(stdout, targetDir, native, scope)
|
|
140
139
|
};
|
|
141
140
|
if (!native.extension) return [plugin];
|
|
142
141
|
const extension = native.extension;
|
|
143
142
|
const listed = (stdout, targetDir, scope) => installedExtensionEntry(stdout, targetDir, extension, scope);
|
|
144
143
|
return [plugin, {
|
|
145
|
-
noun: 'extension', command: 'extensions', id: extension.id, ref: extension.id, source: extension.source, inventory: '
|
|
146
|
-
deferral: '
|
|
144
|
+
noun: 'extension', command: 'extensions', id: extension.id, ref: extension.id, source: extension.source, inventory: 'pancode-extension',
|
|
145
|
+
deferral: 'PanCode extension activation requires an intact generated extension without extra or modified files',
|
|
147
146
|
list: scope => ['extensions', 'list', `--${scope}`, '--json'],
|
|
148
147
|
listed,
|
|
149
148
|
verify: scope => ['extensions', 'list', `--${scope}`, '--json'],
|
|
@@ -153,8 +152,8 @@ function clioPackages(native) {
|
|
|
153
152
|
|
|
154
153
|
// Registration is what WTF-P is responsible for. Whether the operator has a
|
|
155
154
|
// package switched on, and whether they trust a project's package state, is
|
|
156
|
-
//
|
|
157
|
-
// changed.
|
|
155
|
+
// PanCode's state and their decision, so it is reported, never asserted and never
|
|
156
|
+
// changed. PanCode binds project trust to the content of that state, so any
|
|
158
157
|
// project install after the first waits for `config trust`.
|
|
159
158
|
const TRUST_GATE = /^project (?:plugins|extensions) are not trusted for this workspace\b/u;
|
|
160
159
|
|
|
@@ -168,7 +167,7 @@ function registered(entry) {
|
|
|
168
167
|
}
|
|
169
168
|
|
|
170
169
|
function disabledNotice(pkg, scope) {
|
|
171
|
-
return `
|
|
170
|
+
return `PanCode reports ${pkg.id} as installed but disabled. WTF-P does not change that preference; run pancode ${pkg.command} enable ${pkg.ref} --${scope} to switch it back on.`;
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
function preferenceNotice(pkg, scope, entry) {
|
|
@@ -176,7 +175,7 @@ function preferenceNotice(pkg, scope, entry) {
|
|
|
176
175
|
const notices = [
|
|
177
176
|
...(entry.enabled === false ? [disabledNotice(pkg, scope)] : []),
|
|
178
177
|
...(entry.diagnostics.some(trustGate)
|
|
179
|
-
? [`
|
|
178
|
+
? [`PanCode holds this project's ${surface} until you trust its package state; WTF-P does not grant that. Review it with pancode config trust ${surface}.`]
|
|
180
179
|
: [])
|
|
181
180
|
];
|
|
182
181
|
return notices.length > 0 ? { notice: notices.join(' ') } : {};
|
|
@@ -184,11 +183,11 @@ function preferenceNotice(pkg, scope, entry) {
|
|
|
184
183
|
|
|
185
184
|
// Install the plugin, then the extension. A failure in the second compensates
|
|
186
185
|
// the first, and the returned compensator undoes both in reverse order.
|
|
187
|
-
function
|
|
186
|
+
function activatePanCode(targetDir, native, suppliedOptions) {
|
|
188
187
|
const options = scopeOptions(targetDir, suppliedOptions);
|
|
189
188
|
const activated = [];
|
|
190
189
|
try {
|
|
191
|
-
for (const pkg of
|
|
190
|
+
for (const pkg of pancodePackages(native)) {
|
|
192
191
|
const result = activatePackage(targetDir, pkg, options);
|
|
193
192
|
activated.push(result);
|
|
194
193
|
if (result.status !== 'registered') break;
|
|
@@ -202,7 +201,7 @@ function activateClio(targetDir, native, suppliedOptions) {
|
|
|
202
201
|
const last = activated[activated.length - 1];
|
|
203
202
|
const notices = activated.map(result => result.notice).filter(Boolean);
|
|
204
203
|
return {
|
|
205
|
-
status: last.status, executable: '
|
|
204
|
+
status: last.status, executable: 'pancode',
|
|
206
205
|
...(last.reason ? { reason: last.reason } : {}),
|
|
207
206
|
results: activated.flatMap(result => result.results),
|
|
208
207
|
...(notices.length ? { notice: notices.join(' ') } : {}),
|
|
@@ -227,15 +226,15 @@ function activatePackage(targetDir, pkg, options) {
|
|
|
227
226
|
}
|
|
228
227
|
|
|
229
228
|
const results = [];
|
|
230
|
-
const priorList = execute('
|
|
231
|
-
if (priorList.status === 'unavailable') return { status: 'unavailable', executable: '
|
|
229
|
+
const priorList = execute('pancode', pkg.list(options.scope), environment, options);
|
|
230
|
+
if (priorList.status === 'unavailable') return { status: 'unavailable', executable: 'pancode', results };
|
|
232
231
|
results.push(priorList);
|
|
233
232
|
const priorEntry = pkg.listed(priorList.stdout, targetDir, options.scope);
|
|
234
233
|
if (registered(priorEntry)) {
|
|
235
|
-
return { status: 'registered', executable: '
|
|
234
|
+
return { status: 'registered', executable: 'pancode', results, ...preferenceNotice(pkg, options.scope, priorEntry) };
|
|
236
235
|
}
|
|
237
236
|
|
|
238
|
-
// `
|
|
237
|
+
// `hub install` copies a source into the destination it owns, so the
|
|
239
238
|
// published tree moves aside first. Holding it (inode identities included)
|
|
240
239
|
// until the receipt is durable lets a failed registration put the previous
|
|
241
240
|
// installation back before the file transaction rolls it back.
|
|
@@ -249,18 +248,18 @@ function activatePackage(targetDir, pkg, options) {
|
|
|
249
248
|
try {
|
|
250
249
|
if (fs.existsSync(root)) {
|
|
251
250
|
if (!sameTree(publishedFiles, treeFiles(root))) {
|
|
252
|
-
throw new Error('
|
|
251
|
+
throw new Error('PanCode content changed concurrently; recovery tree preserved');
|
|
253
252
|
}
|
|
254
|
-
const removal = execute('
|
|
253
|
+
const removal = execute('pancode', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment,
|
|
255
254
|
{ ...options, allowAlreadyAbsent: true });
|
|
256
255
|
results.push(removal);
|
|
257
|
-
if (removal.status === 'unavailable') throw new Error('
|
|
256
|
+
if (removal.status === 'unavailable') throw new Error('PanCode became unavailable during rollback');
|
|
258
257
|
}
|
|
259
|
-
if (fs.existsSync(root)) throw new Error('
|
|
260
|
-
const after = execute('
|
|
258
|
+
if (fs.existsSync(root)) throw new Error('PanCode rollback did not remove the replacement');
|
|
259
|
+
const after = execute('pancode', pkg.list(options.scope), environment, options);
|
|
261
260
|
results.push(after);
|
|
262
261
|
if (after.status === 'unavailable' || pkg.listed(after.stdout, targetDir, options.scope)) {
|
|
263
|
-
throw new Error('
|
|
262
|
+
throw new Error('PanCode rollback did not clear the replacement registration');
|
|
264
263
|
}
|
|
265
264
|
fs.renameSync(source, root);
|
|
266
265
|
fs.rmdirSync(staging);
|
|
@@ -272,29 +271,29 @@ function activatePackage(targetDir, pkg, options) {
|
|
|
272
271
|
}
|
|
273
272
|
|
|
274
273
|
try {
|
|
275
|
-
const installation = execute('
|
|
274
|
+
const installation = execute('pancode', [pkg.command, 'install', source, `--${options.scope}`, '--json'], environment, options);
|
|
276
275
|
results.push(installation);
|
|
277
|
-
if (installation.status === 'unavailable') throw new Error('
|
|
278
|
-
const inspected = execute('
|
|
276
|
+
if (installation.status === 'unavailable') throw new Error('PanCode became unavailable during installation');
|
|
277
|
+
const inspected = execute('pancode', pkg.verify(options.scope), environment, options);
|
|
279
278
|
results.push(inspected);
|
|
280
|
-
if (inspected.status === 'unavailable') throw new Error('
|
|
279
|
+
if (inspected.status === 'unavailable') throw new Error('PanCode became unavailable during verification');
|
|
281
280
|
const entry = pkg.verified(inspected.stdout, targetDir, options.scope);
|
|
282
281
|
if (!registered(entry) || !sameTree(publishedFiles, treeFiles(root))) {
|
|
283
|
-
throw new Error(`
|
|
282
|
+
throw new Error(`PanCode did not report the exact WTF-P ${pkg.noun} as installed and valid with zero diagnostics`);
|
|
284
283
|
}
|
|
285
284
|
if (priorEntry && priorEntry.enabled !== entry.enabled) {
|
|
286
|
-
throw new Error(`
|
|
285
|
+
throw new Error(`PanCode installation changed the existing WTF-P ${pkg.noun} enabled preference`);
|
|
287
286
|
}
|
|
288
287
|
return {
|
|
289
|
-
status: 'registered', executable: '
|
|
288
|
+
status: 'registered', executable: 'pancode', results, rollback,
|
|
290
289
|
...preferenceNotice(pkg, options.scope, entry),
|
|
291
290
|
commit() {
|
|
292
|
-
// Only the private held copy is removed;
|
|
291
|
+
// Only the private held copy is removed; PanCode owns its installed tree.
|
|
293
292
|
finished = true;
|
|
294
293
|
try { fs.rmSync(staging, { recursive: true }); } catch {
|
|
295
294
|
// Receipt publication has committed. A failed cleanup must not undo
|
|
296
295
|
// the active package or invalidate its now-durable ownership receipt.
|
|
297
|
-
return `
|
|
296
|
+
return `PanCode installation committed; remove the retained staging copy manually: ${staging}`;
|
|
298
297
|
}
|
|
299
298
|
}
|
|
300
299
|
};
|
|
@@ -307,10 +306,10 @@ function activatePackage(targetDir, pkg, options) {
|
|
|
307
306
|
|
|
308
307
|
// Remove the extension, then the plugin, each only when the receipt proves it.
|
|
309
308
|
// `ownedFiles` maps receipt paths below the target to their published hashes.
|
|
310
|
-
function
|
|
309
|
+
function deactivatePanCode(targetDir, native, suppliedOptions) {
|
|
311
310
|
const options = scopeOptions(targetDir, suppliedOptions);
|
|
312
311
|
const removed = [];
|
|
313
|
-
for (const pkg of
|
|
312
|
+
for (const pkg of pancodePackages(native).reverse()) {
|
|
314
313
|
const prefix = `${pkg.source}/`;
|
|
315
314
|
const ownedFiles = options.ownedFiles && new Map([...options.ownedFiles]
|
|
316
315
|
.filter(([file]) => file.startsWith(prefix))
|
|
@@ -328,15 +327,15 @@ function deactivateClio(targetDir, native, suppliedOptions) {
|
|
|
328
327
|
return { status: 'deferred', reason: deferred.map(result => result.reason).join('; '), results, keptRoots: deferred.map(result => result.root) };
|
|
329
328
|
}
|
|
330
329
|
return removed.some(result => result.status === 'unregistered')
|
|
331
|
-
? { status: 'unregistered', executable: '
|
|
330
|
+
? { status: 'unregistered', executable: 'pancode', results }
|
|
332
331
|
: { status: 'not-required', results };
|
|
333
332
|
}
|
|
334
333
|
|
|
335
334
|
function deactivatePackage(targetDir, pkg, options) {
|
|
336
335
|
const { execute, environment } = options;
|
|
337
336
|
const guard = createTargetGuard(targetDir);
|
|
338
|
-
const listing = execute('
|
|
339
|
-
if (listing.status === 'unavailable') return { status: 'unavailable', executable: '
|
|
337
|
+
const listing = execute('pancode', pkg.list(options.scope), environment, options);
|
|
338
|
+
if (listing.status === 'unavailable') return { status: 'unavailable', executable: 'pancode', results: [] };
|
|
340
339
|
if (!pkg.listed(listing.stdout, targetDir, options.scope)) {
|
|
341
340
|
return { status: 'not-required', results: [listing] };
|
|
342
341
|
}
|
|
@@ -352,13 +351,13 @@ function deactivatePackage(targetDir, pkg, options) {
|
|
|
352
351
|
reason: `Kept the WTF-P ${pkg.noun} installed and registered: ${pkg.source}/ holds files WTF-P did not publish or that changed${foreign.length ? ` (${foreign.join(', ')})` : ''}. Move them out and run uninstall again.`
|
|
353
352
|
};
|
|
354
353
|
}
|
|
355
|
-
const result = execute('
|
|
356
|
-
if (result.status === 'unavailable') return { status: 'unavailable', executable: '
|
|
357
|
-
const after = execute('
|
|
354
|
+
const result = execute('pancode', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment, options);
|
|
355
|
+
if (result.status === 'unavailable') return { status: 'unavailable', executable: 'pancode', results: [listing] };
|
|
356
|
+
const after = execute('pancode', pkg.list(options.scope), environment, options);
|
|
358
357
|
if (after.status === 'unavailable' || fs.existsSync(root) || pkg.listed(after.stdout, targetDir, options.scope)) {
|
|
359
|
-
throw new Error('
|
|
358
|
+
throw new Error('PanCode removal did not clear WTF-P content and registration');
|
|
360
359
|
}
|
|
361
|
-
return { status: 'unregistered', executable: '
|
|
360
|
+
return { status: 'unregistered', executable: 'pancode', results: [listing, result, after] };
|
|
362
361
|
}
|
|
363
362
|
|
|
364
|
-
module.exports = {
|
|
363
|
+
module.exports = { activatePanCode, deactivatePanCode, treeFiles };
|
package/bin/lib/utils.js
CHANGED
|
@@ -228,7 +228,7 @@ function detectInstallation(vendorDir) {
|
|
|
228
228
|
);
|
|
229
229
|
const expectsAnyPath = prefixes => prefixes.some(expectsPath);
|
|
230
230
|
const nativeComponent = relative => {
|
|
231
|
-
const match = relative.match(/^plugins\/wtfp\/(?:
|
|
231
|
+
const match = relative.match(/^plugins\/wtfp\/(?:dev\.pancode\/)?(prompts|workflows|skills|agents|tools)\//);
|
|
232
232
|
return match ? ({ prompts: 'commands', tools: 'scripts' }[match[1]] || match[1]) : null;
|
|
233
233
|
};
|
|
234
234
|
const componentPaths = component => receiptEntries
|
|
@@ -264,7 +264,7 @@ function detectInstallation(vendorDir) {
|
|
|
264
264
|
|
|
265
265
|
const expectedHasCommands = expectsAnyPath([
|
|
266
266
|
'commands/wtfp', 'marketplaces/wtfp/commands',
|
|
267
|
-
'plugins/wtfp/
|
|
267
|
+
'plugins/wtfp/dev.pancode/prompts', 'extensions/wtfp/commands', 'sources/wtfp/commands'
|
|
268
268
|
]);
|
|
269
269
|
const expectedHasWorkflows = expectsAnyPath([
|
|
270
270
|
'write-the-f-paper', 'workflows', 'marketplaces/wtfp/workflows',
|
|
@@ -276,7 +276,7 @@ function detectInstallation(vendorDir) {
|
|
|
276
276
|
]);
|
|
277
277
|
const expectedHasAgents = expectsAnyPath([
|
|
278
278
|
'agents/wtfp', 'marketplaces/wtfp/agents',
|
|
279
|
-
'plugins/wtfp/
|
|
279
|
+
'plugins/wtfp/dev.pancode/agents', 'extensions/wtfp/agents', 'sources/wtfp/agents'
|
|
280
280
|
]);
|
|
281
281
|
const expectedHasMcp = expectsAnyPath(['mcp', 'marketplaces/wtfp/mcp']);
|
|
282
282
|
const expectedHasBin = expectsAnyPath([
|
package/bin/uninstall.js
CHANGED
|
@@ -47,7 +47,7 @@ try {
|
|
|
47
47
|
|
|
48
48
|
function parseArgs(argv = []) {
|
|
49
49
|
const booleanFlags = new Set([
|
|
50
|
-
'--global', '-g', '--local', '-l', '--claude', '--
|
|
50
|
+
'--global', '-g', '--local', '-l', '--claude', '--pancode', '--codex', '--copilot',
|
|
51
51
|
'--gemini', '--opencode', '--antigravity', '--all',
|
|
52
52
|
'--force', '-f', '--yes', '-y', '--backup', '-b', '--dry-run', '-n',
|
|
53
53
|
'--clean-backups', '--help', '-h', '--no-color', '--quiet', '-q'
|
|
@@ -79,7 +79,7 @@ function parseArgs(argv = []) {
|
|
|
79
79
|
hasGlobal: has('--global', '-g'),
|
|
80
80
|
hasLocal: has('--local', '-l'),
|
|
81
81
|
hasClaude: has('--claude'),
|
|
82
|
-
|
|
82
|
+
hasPanCode: has('--pancode'),
|
|
83
83
|
hasCodex: has('--codex'),
|
|
84
84
|
hasCopilot: has('--copilot'),
|
|
85
85
|
hasGemini: has('--gemini'),
|
|
@@ -114,7 +114,7 @@ function parseArgs(argv = []) {
|
|
|
114
114
|
}
|
|
115
115
|
const selectedTargetIds = [
|
|
116
116
|
['claude', options.hasClaude],
|
|
117
|
-
['
|
|
117
|
+
['pancode', options.hasPanCode],
|
|
118
118
|
['codex', options.hasCodex],
|
|
119
119
|
['copilot', options.hasCopilot],
|
|
120
120
|
['gemini', options.hasGemini],
|
|
@@ -189,7 +189,7 @@ function showHelp(out) {
|
|
|
189
189
|
${c.cyan('-g, --global')} Claude user installation (legacy alias)
|
|
190
190
|
${c.cyan('-l, --local')} Claude installation in ./.claude
|
|
191
191
|
${c.cyan('--claude')} Claude Code user installation
|
|
192
|
-
${c.cyan('--
|
|
192
|
+
${c.cyan('--pancode')} PanCode plugin and extension installation
|
|
193
193
|
${c.cyan('--codex')} Codex plugin installation
|
|
194
194
|
${c.cyan('--copilot')} GitHub Copilot CLI plugin installation
|
|
195
195
|
${c.cyan('--gemini')} Gemini CLI user installation
|
|
@@ -778,9 +778,9 @@ async function uninstall(runtime, options, out) {
|
|
|
778
778
|
vendorKey,
|
|
779
779
|
targetDir,
|
|
780
780
|
vendorConfig.native,
|
|
781
|
-
{ ...(vendorKey === '
|
|
781
|
+
{ ...(vendorKey === 'pancode' && plan.receipt.scope === 'project'
|
|
782
782
|
? { scope: 'project', cwd: path.dirname(targetDir) } : {}),
|
|
783
|
-
// Receipt paths below the target;
|
|
783
|
+
// Receipt paths below the target; PanCode checks each package root against them.
|
|
784
784
|
ownedFiles: new Map(plan.items
|
|
785
785
|
.filter(item => item.state === 'unchanged')
|
|
786
786
|
.map(item => [item.path, item.entry.sha256])) }
|
|
@@ -788,7 +788,7 @@ async function uninstall(runtime, options, out) {
|
|
|
788
788
|
if (nativeRemoval.status === 'unavailable' && !options.hasQuiet) {
|
|
789
789
|
out.warn(`${nativeRemoval.executable} is unavailable; removing the WTF-P-owned staging files without changing the client's native registry.`);
|
|
790
790
|
} else if (nativeRemoval.status === 'deferred') {
|
|
791
|
-
// A package
|
|
791
|
+
// A package PanCode still registers keeps every owned file and its receipt
|
|
792
792
|
// entries; removing them would leave a registration with no content.
|
|
793
793
|
for (const root of nativeRemoval.keptRoots || []) {
|
|
794
794
|
for (const item of plan.items) {
|
|
@@ -815,7 +815,7 @@ async function uninstall(runtime, options, out) {
|
|
|
815
815
|
const remaining = plan.items.filter(item => !item.removed && item.state !== 'missing');
|
|
816
816
|
const keptRegistered = remaining.filter(item => item.keptRegistered).length;
|
|
817
817
|
if (keptRegistered > 0) {
|
|
818
|
-
out.log(`\n ${c.yellow('Partial uninstall:')} kept ${keptRegistered} owned file(s) of a package
|
|
818
|
+
out.log(`\n ${c.yellow('Partial uninstall:')} kept ${keptRegistered} owned file(s) of a package PanCode still registers, with their receipt entries, so uninstall can finish once the unowned files are moved out.`);
|
|
819
819
|
}
|
|
820
820
|
if (remaining.length > keptRegistered) {
|
|
821
821
|
out.log(`\n ${c.yellow('Partial uninstall:')} preserved ${remaining.length - keptRegistered} modified, untrusted, or unsafe file(s).`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wtf-p",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Portable, evidence-grounded academic writing workflows (papers, proposals, posters, presentations) for
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "Portable, evidence-grounded academic writing workflows (papers, proposals, posters, presentations) for PanCode, Claude Code, Codex, GitHub Copilot CLI, OpenCode, Antigravity CLI, and Gemini CLI.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"wtfp": "bin/install.js",
|
|
7
7
|
"wtf-p": "bin/install.js",
|
|
@@ -13,25 +13,27 @@
|
|
|
13
13
|
"test:evaluation": "node evaluation/tools/lint.js && node evaluation/tools/hash-fixtures.js --check && node test/compiler-v4-evidence.test.js && node test/dynamo-lifecycle-evidence.test.js && node test/evaluation-comparison.test.js && node test/evaluation.test.js && node test/evaluation-routing-runner.test.js && node test/evaluation-lifecycle.test.js && node test/evaluation-fleets.test.js && node test/evaluation-campaign.test.js && node test/nsf25-531-proposal-uat.test.js",
|
|
14
14
|
"test:tools": "node test/lib/bib-index.test.js && node test/lib/bib-format.test.js && node test/lib/citation-ranker.test.js && node test/lib/analyze-impact.test.js && node test/lib/scholar-lookup.test.js && node test/lib/semantic-scholar.test.js && node test/lib/citation-fetcher.test.js && node test/lib/cite-nexus-client.test.js",
|
|
15
15
|
"test:protocol": "node test/protocol-catalog.test.js && node test/canonical-workflows.test.js && node test/portable-roles.test.js && node test/project-protocol.test.js && node test/claim-coverage.test.js && node test/test-skills.test.js && npm run test:tools && npm run test:evaluation && node test/adapter-compiler.test.js && node test/tool-dispatcher.test.js",
|
|
16
|
-
"test:installer": "node test/import-safety.test.js && node test/ownership.test.js && node test/ownership-races.test.js && node test/status-partial.test.js && node test/paths.js && node test/modern-targets.test.js && node test/
|
|
16
|
+
"test:installer": "node test/import-safety.test.js && node test/ownership.test.js && node test/ownership-races.test.js && node test/status-partial.test.js && node test/paths.js && node test/modern-targets.test.js && node test/pancode-installer.test.js && node test/installer.test.js",
|
|
17
17
|
"test:compatibility": "node test/sanity.js && node test/linter.js && node test/dry-run.js && node test/feature-tests.js",
|
|
18
18
|
"test": "npm run check:adapters && npm run test:protocol && npm run test:installer && npm run test:compatibility",
|
|
19
19
|
"test:integration": "node test/integration.js",
|
|
20
20
|
"test:all": "npm test && npm run test:integration",
|
|
21
21
|
"preflight": "node scripts/preflight.js",
|
|
22
22
|
"prepack": "npm run check:adapters",
|
|
23
|
+
"prepublishOnly": "node scripts/publish-guard.js",
|
|
23
24
|
"release": "node scripts/release.js"
|
|
24
25
|
},
|
|
25
26
|
"files": [
|
|
26
27
|
"bin",
|
|
27
28
|
"protocol",
|
|
28
29
|
"scripts/build-adapters.js",
|
|
30
|
+
"pancode",
|
|
29
31
|
"vendors",
|
|
30
32
|
"!vendors/claude/mcp/**",
|
|
31
33
|
"!vendors/claude/skills/wtfp/**"
|
|
32
34
|
],
|
|
33
35
|
"keywords": [
|
|
34
|
-
"
|
|
36
|
+
"pancode",
|
|
35
37
|
"claude",
|
|
36
38
|
"claude-code",
|
|
37
39
|
"codex",
|