wtf-p 0.8.4 → 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 +5 -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 +95 -95
- package/{vendors/clio-extension → pancode/extension}/runtime/extension.ts +59 -59
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Generated by WTF-P adapter compiler v5 from
|
|
1
|
+
// Generated by WTF-P adapter compiler v5 from hosts/pancode/runtime/extension.ts; do not edit.
|
|
2
2
|
/**
|
|
3
|
-
* WTF-P writing desk for
|
|
4
|
-
* compiler copies it to
|
|
3
|
+
* WTF-P writing desk for PanCode. Human-edited source; the adapter
|
|
4
|
+
* compiler copies it to pancode/extension/runtime/ beside the
|
|
5
5
|
* generated write-guard.json, json-schema.cjs and claim-coverage.cjs.
|
|
6
6
|
*
|
|
7
7
|
* The desk reads the portable `.planning` records and the manuscript and
|
|
8
|
-
* draws them. It is also the project's one JSON record writer on
|
|
8
|
+
* draws them. It is also the project's one JSON record writer on PanCode: each
|
|
9
9
|
* write is validated, compared with the version its writer read, and
|
|
10
10
|
* committed under a project lock, with paired records journaled so a failed
|
|
11
11
|
* process leaves a state the next write completes. It alone records an
|
|
@@ -46,7 +46,7 @@ import type {
|
|
|
46
46
|
InterviewStep,
|
|
47
47
|
View,
|
|
48
48
|
ViewTone,
|
|
49
|
-
} from "
|
|
49
|
+
} from "pancode/sdk/extension";
|
|
50
50
|
|
|
51
51
|
const require = createRequire(import.meta.url);
|
|
52
52
|
const { SchemaRegistry, validateInstance } = require("./json-schema.cjs") as {
|
|
@@ -104,7 +104,7 @@ function withTemplate(message: string, type: string): string {
|
|
|
104
104
|
return template ? `${message}\nA ${type} record looks like this example; replace its ids, project_id and content, and omit ${CREATED_AT[type] ? `updated_at and ${CREATED_AT[type]}, which the desk sets` : "updated_at, which the desk sets"}: ${template}` : message;
|
|
105
105
|
}
|
|
106
106
|
interface GuardAction {
|
|
107
|
-
/** The
|
|
107
|
+
/** The PanCode agent IDs of the roles the action's contract delegates to. */
|
|
108
108
|
agents: string[];
|
|
109
109
|
produces: Array<{ uri: string; mode: string }>;
|
|
110
110
|
}
|
|
@@ -249,7 +249,7 @@ interface Desk {
|
|
|
249
249
|
audit: { fresh: boolean; errors: number } | null;
|
|
250
250
|
/** A passed submit-milestone validation that no later draft or record outdates. */
|
|
251
251
|
delivered: boolean;
|
|
252
|
-
/** The WTF-P plugin while
|
|
252
|
+
/** The WTF-P plugin while PanCode serves it; null when it is not installed and enabled. */
|
|
253
253
|
served: ServedPlugin;
|
|
254
254
|
}
|
|
255
255
|
|
|
@@ -304,7 +304,7 @@ function contained(workspace: string, relative: string): string | null {
|
|
|
304
304
|
return file;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
/** The workspace's real path, against which
|
|
307
|
+
/** The workspace's real path, against which PanCode reports every landing. */
|
|
308
308
|
function realWorkspace(workspace: string): string {
|
|
309
309
|
try {
|
|
310
310
|
return realpathSync(workspace);
|
|
@@ -987,7 +987,7 @@ function withLock<T>(workspace: string, work: () => T): T {
|
|
|
987
987
|
|
|
988
988
|
/**
|
|
989
989
|
* Writes a new file and flushes it where the process may. Node's permission
|
|
990
|
-
* model, which
|
|
990
|
+
* model, which PanCode runs the desk under, refuses every flush (fsync,
|
|
991
991
|
* fdatasync, flush: true) with ERR_ACCESS_DENIED, so there a write is still
|
|
992
992
|
* all-or-nothing by its rename but not durable across power loss. A file that
|
|
993
993
|
* could not be written whole is removed.
|
|
@@ -1158,7 +1158,7 @@ function commit(workspace: string, writes: PendingWrite[]): void {
|
|
|
1158
1158
|
fault("before-commit");
|
|
1159
1159
|
if (staged.length > 1) {
|
|
1160
1160
|
const journal = `${JOURNAL}.${randomUUID()}.partial`;
|
|
1161
|
-
writeDurably(path.join(workspace, journal), `${JSON.stringify({ schema: "wtfp.
|
|
1161
|
+
writeDurably(path.join(workspace, journal), `${JSON.stringify({ schema: "wtfp.pancode-journal/v1", at: timestamp(), entries: staged }, null, 2)}\n`);
|
|
1162
1162
|
renameSync(path.join(workspace, journal), path.join(workspace, JOURNAL));
|
|
1163
1163
|
}
|
|
1164
1164
|
} catch (error) {
|
|
@@ -1692,7 +1692,7 @@ function driveStep(desk: Desk, drive: Drive): DriveDecision {
|
|
|
1692
1692
|
kind: "step",
|
|
1693
1693
|
action: next.action,
|
|
1694
1694
|
section,
|
|
1695
|
-
prompt: `
|
|
1695
|
+
prompt: `dev.pancode/prompts/wtfp/${next.action}.md`,
|
|
1696
1696
|
reason: `Continue ${next.command}; it has not failed. It recorded nothing the next step depends on, so record its outputs for what it found, whatever the outcome (${creates.join(", ")}), then call extension_wtfp__next_step. Do not repeat its work.`,
|
|
1697
1697
|
finish: true,
|
|
1698
1698
|
};
|
|
@@ -1704,21 +1704,21 @@ function driveStep(desk: Desk, drive: Drive): DriveDecision {
|
|
|
1704
1704
|
kind: "step",
|
|
1705
1705
|
action: next.action,
|
|
1706
1706
|
section,
|
|
1707
|
-
prompt: `
|
|
1707
|
+
prompt: `dev.pancode/prompts/wtfp/${next.action}.md`,
|
|
1708
1708
|
reason: `Continue ${next.command}: it made progress but has not finished, so the desk arms it again on purpose; this is not a loop. ${next.reason}`,
|
|
1709
1709
|
};
|
|
1710
|
-
return { kind: "step", action: next.action, section, prompt: `
|
|
1710
|
+
return { kind: "step", action: next.action, section, prompt: `dev.pancode/prompts/wtfp/${next.action}.md`, reason: next.reason };
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
1713
|
/**
|
|
1714
|
-
* Every next_step result ends with this rule, so a turn
|
|
1714
|
+
* Every next_step result ends with this rule, so a turn PanCode compacted after
|
|
1715
1715
|
* dropping the advance prompt can still continue from the last result alone.
|
|
1716
1716
|
*/
|
|
1717
1717
|
const DRIVER_RULE =
|
|
1718
1718
|
"Driver rule for this /wtfp:advance run: the desk, not you, picks every step, so finish the step it armed and call extension_wtfp__next_step with after naming that step (\"start\" for the first call), call extension_wtfp__gate with the checkpoint it names and then extension_wtfp__next_step, and on a stop, a failed step or a refused call report the steps taken and end the turn without choosing another action.";
|
|
1719
1719
|
|
|
1720
1720
|
/**
|
|
1721
|
-
* Live on
|
|
1721
|
+
* Live on the 0.8.3 host, the model looked for a capability named after the step's action, found none in the
|
|
1722
1722
|
* turn's list, and stopped the drive as if the step were forbidden.
|
|
1723
1723
|
*/
|
|
1724
1724
|
const STEP_IS_A_PROCEDURE =
|
|
@@ -2286,10 +2286,10 @@ async function answer(ctx: ExtensionContextV2, stepKey: string, picked: unknown,
|
|
|
2286
2286
|
...(option ? { selected_option: option.id } : {}),
|
|
2287
2287
|
summary: `${
|
|
2288
2288
|
option
|
|
2289
|
-
? `The author chose "${shown(checkpoint, option).label}" at the
|
|
2289
|
+
? `The author chose "${shown(checkpoint, option).label}" at the PanCode WTF-P desk.`
|
|
2290
2290
|
: picked === WAIVE
|
|
2291
|
-
? "The author waived this gate at the
|
|
2292
|
-
: "The author marked this done at the
|
|
2291
|
+
? "The author waived this gate at the PanCode WTF-P desk."
|
|
2292
|
+
: "The author marked this done at the PanCode WTF-P desk."
|
|
2293
2293
|
}${note ? `${NOTE_LEAD}${note}` : ""}`,
|
|
2294
2294
|
resolved_at: now,
|
|
2295
2295
|
},
|
|
@@ -2516,7 +2516,7 @@ async function recordTool(ctx: ExtensionContextV2, input: Json): Promise<{ text:
|
|
|
2516
2516
|
|
|
2517
2517
|
/**
|
|
2518
2518
|
* Authored artifacts keep their own format and are read and written with
|
|
2519
|
-
*
|
|
2519
|
+
* PanCode's file tools; a refusal names the conventional file so the model does
|
|
2520
2520
|
* not search the workspace for it.
|
|
2521
2521
|
*/
|
|
2522
2522
|
const ARTIFACT_URIS: ReadonlyArray<{ pattern: RegExp; file: (match: RegExpExecArray) => string }> = [
|
|
@@ -2823,10 +2823,10 @@ function statusDigest(desk: Desk): Json {
|
|
|
2823
2823
|
};
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
2826
|
-
/**
|
|
2826
|
+
/** PanCode refuses effect text longer than this many UTF-16 code units. */
|
|
2827
2827
|
const EFFECT_TEXT_LIMIT = 2000;
|
|
2828
2828
|
|
|
2829
|
-
/** Text cut to
|
|
2829
|
+
/** Text cut to PanCode's effect limit with `tail` appended, never splitting a surrogate pair. */
|
|
2830
2830
|
function clip(message: string, tail: string): string {
|
|
2831
2831
|
if (message.length <= EFFECT_TEXT_LIMIT) return message;
|
|
2832
2832
|
let end = EFFECT_TEXT_LIMIT - tail.length;
|
|
@@ -2835,7 +2835,7 @@ function clip(message: string, tail: string): string {
|
|
|
2835
2835
|
return `${message.slice(0, end)}${tail}`;
|
|
2836
2836
|
}
|
|
2837
2837
|
|
|
2838
|
-
/** The desk's status as one reminder within
|
|
2838
|
+
/** The desk's status as one reminder within PanCode's effect limit. */
|
|
2839
2839
|
function statusReminder(desk: Desk): string {
|
|
2840
2840
|
const gates = openGates(desk);
|
|
2841
2841
|
const lines = [
|
|
@@ -3033,11 +3033,11 @@ function block(reason: string): ExtensionHookResult {
|
|
|
3033
3033
|
}
|
|
3034
3034
|
|
|
3035
3035
|
/**
|
|
3036
|
-
* What
|
|
3036
|
+
* What PanCode resolve for a tool hook beside its `args`
|
|
3037
3037
|
* (public-api-v2 ExtensionToolHookLanding): where a path-taking tool lands,
|
|
3038
3038
|
* and a dispatch call's tasks as admission parsed them. The desk judges only
|
|
3039
|
-
* these, never its own reading of a call, so it cannot drift from
|
|
3040
|
-
* grammar.
|
|
3039
|
+
* these, never its own reading of a call, so it cannot drift from PanCode's
|
|
3040
|
+
* grammar. When a host sends `args` alone, the desk refuses writes and
|
|
3041
3041
|
* dispatches inside a WTF-P project or action and leaves the rest alone.
|
|
3042
3042
|
*/
|
|
3043
3043
|
interface HostTarget {
|
|
@@ -3067,7 +3067,7 @@ interface HostLanding {
|
|
|
3067
3067
|
dispatch?: HostDispatch;
|
|
3068
3068
|
}
|
|
3069
3069
|
|
|
3070
|
-
/** Roles that only judge a dispatch's work;
|
|
3070
|
+
/** Roles that only judge a dispatch's work; PanCode runs them read-only with no write roots. */
|
|
3071
3071
|
const GATE_ROLES = new Set(["reviewer", "judge", "member", "synthesis"]);
|
|
3072
3072
|
|
|
3073
3073
|
const strings = (value: unknown): value is string[] => Array.isArray(value) && value.every((entry) => typeof entry === "string");
|
|
@@ -3167,22 +3167,22 @@ async function projectOrArmed(ctx: ExtensionContextV2): Promise<boolean> {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
|
|
3169
3169
|
/** Why a host that sends no landing or dispatch plan cannot be guarded. */
|
|
3170
|
-
const NEEDS_HOST_FACTS = "WTF-P needs
|
|
3170
|
+
const NEEDS_HOST_FACTS = "WTF-P needs PanCode 0.9.0 or later, which tells the desk where each call lands and what each dispatch starts; this PanCode does not, so the desk refuses the call inside a WTF-P project or action.";
|
|
3171
3171
|
|
|
3172
|
-
/** Why a call
|
|
3172
|
+
/** Why a call PanCode sent no usable facts for is refused, once this PanCode has shown it sends them. */
|
|
3173
3173
|
async function missingFacts(ctx: ExtensionContextV2, malformed: string | undefined): Promise<string> {
|
|
3174
|
-
if (malformed) return `
|
|
3175
|
-
return (await ctx.state.get<boolean>("host-facts")).value ? "
|
|
3174
|
+
if (malformed) return `PanCode's ${malformed} for this call is in a form the desk cannot read; refused.`;
|
|
3175
|
+
return (await ctx.state.get<boolean>("host-facts")).value ? "PanCode sent no landing for this call, so the desk cannot see where it lands; refused." : NEEDS_HOST_FACTS;
|
|
3176
3176
|
}
|
|
3177
3177
|
|
|
3178
3178
|
/**
|
|
3179
|
-
* Where a write lands, relative to the project, or null outside it, as
|
|
3180
|
-
* resolved it: the file the tool opens, which
|
|
3179
|
+
* Where a write lands, relative to the project, or null outside it, as PanCode
|
|
3180
|
+
* resolved it: the file the tool opens, which PanCode refuses to change before
|
|
3181
3181
|
* the tool runs, and for a worker in a task worktree the checkout path it
|
|
3182
3182
|
* merges into.
|
|
3183
3183
|
*/
|
|
3184
3184
|
function writeLanding(target: string, workspace: string, host: HostTarget): { relative: string | null } | { refused: string } {
|
|
3185
|
-
if (!host.resolved) return { refused: `WTF-P write guard:
|
|
3185
|
+
if (!host.resolved) return { refused: `WTF-P write guard: PanCode could not resolve where ${target} lands (a link loop, or a component it cannot inspect); refused.` };
|
|
3186
3186
|
if (host.workspacePath !== undefined) return { relative: host.workspacePath };
|
|
3187
3187
|
const root = realWorkspace(workspace);
|
|
3188
3188
|
return { relative: inside(root, host.path) ? posix(path.relative(root, host.path)) || "." : null };
|
|
@@ -3203,8 +3203,8 @@ async function guardWrite(ctx: ExtensionContextV2, target: string, host?: HostTa
|
|
|
3203
3203
|
);
|
|
3204
3204
|
const desk = loadDesk(workspace, await storedKey(ctx, false));
|
|
3205
3205
|
const armed = await armedFor(ctx);
|
|
3206
|
-
//
|
|
3207
|
-
if (armed && !under(".
|
|
3206
|
+
// PanCode's own artifact directory is no project file; a link that leads it into the project lands, and is judged, elsewhere.
|
|
3207
|
+
if (armed && !under(".pancode/artifacts", relative)) {
|
|
3208
3208
|
const roots = writeRoots(desk, armed);
|
|
3209
3209
|
if (!roots.some((allowed) => under(allowed, relative)))
|
|
3210
3210
|
return block(
|
|
@@ -3255,13 +3255,13 @@ function narrow(requested: string[], allowed: string[]): string[] {
|
|
|
3255
3255
|
|
|
3256
3256
|
const WTFP_AGENT = /^wtfp-[a-z-]+$/u;
|
|
3257
3257
|
|
|
3258
|
-
/** One worker a dispatch names, as
|
|
3258
|
+
/** One worker a dispatch names, as PanCode parsed it. */
|
|
3259
3259
|
interface DispatchTask {
|
|
3260
|
-
/** The agent
|
|
3260
|
+
/** The agent PanCode resolved, `auto` and an omitted agent included. */
|
|
3261
3261
|
agent: string;
|
|
3262
3262
|
/** Project-relative write roots, or null when the worker would have no boundary. */
|
|
3263
3263
|
roots: string[] | null;
|
|
3264
|
-
/** True when
|
|
3264
|
+
/** True when PanCode runs the worker read-only, as it does every read-only recipe's; it then has no write roots. */
|
|
3265
3265
|
readOnly: boolean;
|
|
3266
3266
|
}
|
|
3267
3267
|
|
|
@@ -3275,13 +3275,13 @@ function plainSpelling(root: string): string {
|
|
|
3275
3275
|
}
|
|
3276
3276
|
|
|
3277
3277
|
/**
|
|
3278
|
-
* The workers a dispatch starts, from the plan
|
|
3278
|
+
* The workers a dispatch starts, from the plan PanCode parsed. Gate roles only
|
|
3279
3279
|
* judge, so they are left out. Every worker runs from the project root, no
|
|
3280
3280
|
* writer works in a task worktree whose merge the desk would not see, and a
|
|
3281
|
-
* write root must land where it reads:
|
|
3281
|
+
* write root must land where it reads: PanCode fixes a boundary at the root's
|
|
3282
3282
|
* physical location, so a root through a link would let a worker write
|
|
3283
3283
|
* wherever the link points. A root that lands on the whole project is no
|
|
3284
|
-
* boundary. Throws for any of these.
|
|
3284
|
+
* boundary. Throws for any of these. PanCode judges a rewritten call again, so
|
|
3285
3285
|
* the roots the desk itself hands a worker are checked the same way.
|
|
3286
3286
|
*/
|
|
3287
3287
|
function planTasks(plan: Extract<HostDispatch, { kind: "tasks" }>, workspace: string, present: boolean): DispatchTask[] {
|
|
@@ -3311,13 +3311,13 @@ function planTasks(plan: Extract<HostDispatch, { kind: "tasks" }>, workspace: st
|
|
|
3311
3311
|
});
|
|
3312
3312
|
}
|
|
3313
3313
|
|
|
3314
|
-
/** The call's arguments without
|
|
3314
|
+
/** The call's arguments without PanCode's private admission keys, which PanCode recomputes for any rewritten call. */
|
|
3315
3315
|
function withoutHostKeys(args: Json): Json {
|
|
3316
|
-
return Object.fromEntries(Object.entries(args).filter(([key]) => !key.startsWith("
|
|
3316
|
+
return Object.fromEntries(Object.entries(args).filter(([key]) => !key.startsWith("__pancode_")));
|
|
3317
3317
|
}
|
|
3318
3318
|
|
|
3319
3319
|
/**
|
|
3320
|
-
* The call with each named worker held to its roots, in the shape
|
|
3320
|
+
* The call with each named worker held to its roots, in the shape PanCode
|
|
3321
3321
|
* prepares for hooks: `tasks` an array of task objects or task strings, one
|
|
3322
3322
|
* per named worker, whose own intent overrides the shared one.
|
|
3323
3323
|
*/
|
|
@@ -3339,8 +3339,8 @@ const sameRoots = (left: string[] | null, right: string[] | null): boolean =>
|
|
|
3339
3339
|
|
|
3340
3340
|
async function guardDispatch(ctx: ExtensionContextV2, args: Json, host?: HostDispatch, malformed?: string): Promise<ExtensionHookResult> {
|
|
3341
3341
|
if (args.list === true || host?.kind === "list") return {};
|
|
3342
|
-
//
|
|
3343
|
-
if (!host && typeof args.
|
|
3342
|
+
// PanCode could not prepare this call and refuses it itself, with its own reason; nothing of it runs.
|
|
3343
|
+
if (!host && typeof args.__pancode_dispatch_plan_preparation_error === "string") return {};
|
|
3344
3344
|
if (!host) return (await projectOrArmed(ctx)) ? block(`WTF-P dispatch guard: ${await missingFacts(ctx, malformed)}`) : {};
|
|
3345
3345
|
const workspace = ctx.snapshot.workspace;
|
|
3346
3346
|
const served = ctx.snapshot.plugin ?? null;
|
|
@@ -3379,7 +3379,7 @@ async function guardDispatch(ctx: ExtensionContextV2, args: Json, host?: HostDis
|
|
|
3379
3379
|
return {};
|
|
3380
3380
|
}
|
|
3381
3381
|
const name = actionName(served, armed.action);
|
|
3382
|
-
// Inside an action that delegates, a writing worker is one of its roles; a call without agent falls to
|
|
3382
|
+
// Inside an action that delegates, a writing worker is one of its roles; a call without agent falls to PanCode's default worker.
|
|
3383
3383
|
const agents = GUARD.actions[armed.action]?.agents ?? [];
|
|
3384
3384
|
const stranger = agents.length > 0 ? entries.find((entry) => !entry.readOnly && !agents.includes(entry.agent)) : undefined;
|
|
3385
3385
|
if (stranger)
|
|
@@ -3414,7 +3414,7 @@ async function guardDispatch(ctx: ExtensionContextV2, args: Json, host?: HostDis
|
|
|
3414
3414
|
: `WTF-P dispatch guard: ${entry.agent} would have no manuscript it may write. ${notes.length > 0 ? notes.join(" · ") : "Name the section and approve its plan first."}`,
|
|
3415
3415
|
);
|
|
3416
3416
|
if (roots.length > 0) return roots;
|
|
3417
|
-
//
|
|
3417
|
+
// PanCode reads an empty write_roots as no boundary at all, so an empty list is refused, never sent.
|
|
3418
3418
|
if (entry.roots !== null && allowed.length > 0)
|
|
3419
3419
|
throw new Error(`WTF-P dispatch guard: ${entry.roots.join(", ")} lie outside what ${armed.action} may write (${allowed.join(", ")}).`);
|
|
3420
3420
|
throw new Error(
|
|
@@ -3431,7 +3431,7 @@ async function guardDispatch(ctx: ExtensionContextV2, args: Json, host?: HostDis
|
|
|
3431
3431
|
// A worker whose roots already are its confinement, in any order, needs no rewrite.
|
|
3432
3432
|
const needed = narrowed.map((roots, index) => (roots === null || sameRoots(roots, entries[index]?.roots ?? null) ? null : roots));
|
|
3433
3433
|
if (needed.every((roots) => roots === null)) return {};
|
|
3434
|
-
//
|
|
3434
|
+
// PanCode admits a rewritten call afresh, without the operator's approval of the original, so a call
|
|
3435
3435
|
// that needs approval (more than one worker, a review loop, compete) is refused with the exact roots instead.
|
|
3436
3436
|
if (host.tasks.length > 1)
|
|
3437
3437
|
return block(
|
|
@@ -3439,13 +3439,13 @@ async function guardDispatch(ctx: ExtensionContextV2, args: Json, host?: HostDis
|
|
|
3439
3439
|
.map((entry, index) => `task ${index + 1} (${entry.agent}): ${(narrowed[index] ?? []).join(", ") || "none, it only reads"}`)
|
|
3440
3440
|
.join("; ")}.`,
|
|
3441
3441
|
);
|
|
3442
|
-
//
|
|
3442
|
+
// PanCode admits an extension's rewrite only as a narrowing. A declared intent without write roots is an empty
|
|
3443
3443
|
// write ceiling there, although the worker itself treats it as no boundary, so the desk cannot fill the roots in.
|
|
3444
3444
|
const declaresEmpty = (item: unknown): boolean =>
|
|
3445
3445
|
isObject(item) && isObject(item.intent) && (!Array.isArray(item.intent.write_roots) || item.intent.write_roots.length === 0);
|
|
3446
3446
|
if (declaresEmpty(args) || (Array.isArray(args.tasks) && args.tasks.some(declaresEmpty)))
|
|
3447
3447
|
return block(
|
|
3448
|
-
`WTF-P dispatch guard: an intent without write_roots bounds nothing for the worker, and
|
|
3448
|
+
`WTF-P dispatch guard: an intent without write_roots bounds nothing for the worker, and PanCode will not let the desk fill them in. Send ${entries
|
|
3449
3449
|
.map((entry, index) => `${entries.length > 1 ? `task ${index + 1} (${entry.agent}) ` : ""}intent.write_roots ${(needed[index] ?? []).join(", ") || "omitted, since it only reads"}`)
|
|
3450
3450
|
.join("; ")} in that intent.`,
|
|
3451
3451
|
);
|
|
@@ -3466,7 +3466,7 @@ const BASH_DESK_PATHS = /\.planning\/(?:interactions\b|\.wtfp-)/u;
|
|
|
3466
3466
|
const COMMAND_TOOLS = new Set(["bash", "run_script", "job"]);
|
|
3467
3467
|
|
|
3468
3468
|
/**
|
|
3469
|
-
* Inside a WTF-P action every question is the author's.
|
|
3469
|
+
* Inside a WTF-P action every question is the author's. PanCode answers an
|
|
3470
3470
|
* unanswered `ask_user` round with its recommended option after
|
|
3471
3471
|
* `safety.unattendedAfterSeconds`, unless the question is `operator_only`, so
|
|
3472
3472
|
* the desk marks a lone question that way and refuses a round that would need
|
|
@@ -3478,13 +3478,13 @@ async function guardQuestions(ctx: ExtensionContextV2, input: Json): Promise<Ext
|
|
|
3478
3478
|
if (questions.length === 0 || questions.every((question) => (question as Json | null)?.operator_only === true)) return {};
|
|
3479
3479
|
if (!(await armedFor(ctx))) return {};
|
|
3480
3480
|
if (questions.length > 1)
|
|
3481
|
-
return block("WTF-P: inside a WTF-P action each question is the author's to answer. Ask them one call at a time, each with operator_only: true and its own options, so
|
|
3481
|
+
return block("WTF-P: inside a WTF-P action each question is the author's to answer. Ask them one call at a time, each with operator_only: true and its own options, so PanCode never answers one for an absent author.");
|
|
3482
3482
|
return {
|
|
3483
3483
|
effects: [
|
|
3484
3484
|
{
|
|
3485
3485
|
kind: "rewrite_tool_input",
|
|
3486
3486
|
args: { ...input, questions: [{ ...(questions[0] as Json), operator_only: true }] },
|
|
3487
|
-
reason: "WTF-P asks the author, and only the author may answer:
|
|
3487
|
+
reason: "WTF-P asks the author, and only the author may answer: PanCode never takes a recommended option for this question.",
|
|
3488
3488
|
},
|
|
3489
3489
|
],
|
|
3490
3490
|
};
|
|
@@ -3501,7 +3501,7 @@ async function guard(ctx: ExtensionContextV2, tool: string, args: unknown, event
|
|
|
3501
3501
|
let result: ExtensionHookResult = {};
|
|
3502
3502
|
try {
|
|
3503
3503
|
const host = hostLanding(event);
|
|
3504
|
-
// A host that sends facts once sends them for every call it can resolve, so a later call without them failed in
|
|
3504
|
+
// A host that sends facts once sends them for every call it can resolve, so a later call without them failed in PanCode.
|
|
3505
3505
|
if ((host.target || host.dispatch) && !(await ctx.state.get<boolean>("host-facts")).value) await ctx.state.set("host-facts", true);
|
|
3506
3506
|
if (tool === "dispatch") result = await guardDispatch(ctx, input, host.dispatch, host.malformed);
|
|
3507
3507
|
else if (tool === "ask_user") result = await guardQuestions(ctx, input);
|
|
@@ -3509,7 +3509,7 @@ async function guard(ctx: ExtensionContextV2, tool: string, args: unknown, event
|
|
|
3509
3509
|
if (BASH_DESK_PATHS.test(JSON.stringify(input))) result = block("WTF-P write guard: commands may not touch the desk's own records under .planning.");
|
|
3510
3510
|
} else {
|
|
3511
3511
|
const raw = input.path ?? input.file_path ?? input.filePath;
|
|
3512
|
-
// The artifact tool trims its path; without one it writes under
|
|
3512
|
+
// The artifact tool trims its path; without one it writes under PanCode's own artifact directory, where PanCode's landing still says it lands.
|
|
3513
3513
|
const target = typeof raw === "string" ? (tool === "artifact" ? raw.trim() : raw) : "";
|
|
3514
3514
|
if (target.length > 0 || host.target) result = await guardWrite(ctx, target || "the artifact", host.target, host.malformed);
|
|
3515
3515
|
}
|
|
@@ -3524,7 +3524,7 @@ async function guard(ctx: ExtensionContextV2, tool: string, args: unknown, event
|
|
|
3524
3524
|
* action may measure: its recorded word count is stale until measure_section
|
|
3525
3525
|
* runs. It rides on the tool result, so it spends none of the turn's shared
|
|
3526
3526
|
* continuation budget, and it reaches a dispatched worker too, whose writes
|
|
3527
|
-
*
|
|
3527
|
+
* PanCode hooks, so it says whose call the measurement is. Each section is noted
|
|
3528
3528
|
* once until it is measured again.
|
|
3529
3529
|
*/
|
|
3530
3530
|
async function noteManuscriptWrite(ctx: ExtensionContextV2, event: unknown): Promise<ExtensionHookResult> {
|
|
@@ -3851,7 +3851,7 @@ export default function extension(api: ExtensionApiV2): void {
|
|
|
3851
3851
|
});
|
|
3852
3852
|
|
|
3853
3853
|
api.hook("prompt_submit", async (event, ctx) => {
|
|
3854
|
-
//
|
|
3854
|
+
// PanCode continuing a stopped yolo turn (tool budget, loop guard, a failure) resumes that turn's drive and armed step.
|
|
3855
3855
|
const held = (await ctx.state.get<{ armed?: Armed; drive?: Drive; workspace: string }>("held")).value;
|
|
3856
3856
|
await ctx.state.delete("held");
|
|
3857
3857
|
if (event.point === "prompt_submit" && (event as { origin?: string }).origin === "continuation") {
|
|
@@ -3916,7 +3916,7 @@ export default function extension(api: ExtensionApiV2): void {
|
|
|
3916
3916
|
return { text: recovered ?? "", ...(recovered ? { toast: { text: recovered, tone: "warning" as const } } : {}), ...(await picture(ctx)) };
|
|
3917
3917
|
});
|
|
3918
3918
|
api.on("turn_end", async (_event, ctx) => {
|
|
3919
|
-
// An action arms for the turn its command starts; nothing it allowed outlives that turn.
|
|
3919
|
+
// An action arms for the turn its command starts; nothing it allowed outlives that turn. PanCode's own
|
|
3920
3920
|
// continuation of the turn may resume it, so the desk holds what it had until the next prompt says whose it is.
|
|
3921
3921
|
const armed = (await ctx.state.get<Armed>("armed")).value;
|
|
3922
3922
|
const drive = (await ctx.state.get<Drive>("drive")).value;
|