wtf-p 0.7.4 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/README.md +10 -10
  2. package/bin/commands/install-logic.js +1 -1
  3. package/bin/lib/adapter-compiler.js +305 -78
  4. package/bin/lib/clio-registration.js +159 -41
  5. package/bin/lib/manifest.js +11 -3
  6. package/bin/uninstall.js +22 -6
  7. package/package.json +3 -3
  8. package/protocol/actions/checkpoint.json +10 -1
  9. package/protocol/actions/execute-outline.json +10 -2
  10. package/protocol/actions/export-latex.json +15 -2
  11. package/protocol/actions/plan-revision.json +17 -4
  12. package/protocol/actions/polish-prose.json +13 -3
  13. package/protocol/actions/research-gap.json +16 -3
  14. package/protocol/actions/verify-work.json +7 -2
  15. package/protocol/project/README.md +37 -0
  16. package/protocol/project/schemas/interaction.schema.json +100 -0
  17. package/protocol/project/templates/interaction.json +16 -0
  18. package/protocol/skills/wtfp-deliver-research/SKILL.md +1 -1
  19. package/protocol/skills/wtfp-deliver-research/references/actions.md +2 -2
  20. package/protocol/skills/wtfp-plan-section/SKILL.md +1 -1
  21. package/protocol/skills/wtfp-plan-section/references/actions.md +4 -3
  22. package/protocol/skills/wtfp-research-literature/SKILL.md +1 -1
  23. package/protocol/skills/wtfp-review-manuscript/SKILL.md +1 -1
  24. package/protocol/skills/wtfp-write-section/SKILL.md +1 -1
  25. package/protocol/skills/wtfp-write-section/references/actions.md +1 -1
  26. package/protocol/workflows/checkpoint.md +2 -2
  27. package/protocol/workflows/execute-outline.md +2 -2
  28. package/protocol/workflows/export-latex.md +4 -4
  29. package/protocol/workflows/plan-revision.md +4 -3
  30. package/protocol/workflows/plan-section.md +2 -2
  31. package/protocol/workflows/polish-prose.md +3 -3
  32. package/protocol/workflows/research-gap.md +2 -2
  33. package/protocol/workflows/verify-work.md +3 -3
  34. package/protocol/workflows/write-section.md +2 -2
  35. package/vendors/antigravity/.wtfp-generated.json +172 -172
  36. package/vendors/antigravity/actions/checkpoint.json +10 -1
  37. package/vendors/antigravity/actions/execute-outline.json +10 -2
  38. package/vendors/antigravity/actions/export-latex.json +15 -2
  39. package/vendors/antigravity/actions/plan-revision.json +17 -4
  40. package/vendors/antigravity/actions/polish-prose.json +13 -3
  41. package/vendors/antigravity/actions/research-gap.json +16 -3
  42. package/vendors/antigravity/actions/verify-work.json +7 -2
  43. package/vendors/antigravity/plugin.json +2 -1
  44. package/vendors/antigravity/project/README.md +37 -0
  45. package/vendors/antigravity/project/schemas/interaction.schema.json +100 -0
  46. package/vendors/antigravity/project/templates/interaction.json +16 -0
  47. package/vendors/antigravity/rules/wtfp-project-state.md +41 -1
  48. package/vendors/antigravity/{commands/wtfp-add-todo.md → skills/wtfp-add-todo/SKILL.md} +2 -1
  49. package/vendors/antigravity/{commands/wtfp-analyze-bib.md → skills/wtfp-analyze-bib/SKILL.md} +2 -1
  50. package/vendors/antigravity/{commands/wtfp-audit-milestone.md → skills/wtfp-audit-milestone/SKILL.md} +2 -1
  51. package/vendors/antigravity/{commands/wtfp-check-refs.md → skills/wtfp-check-refs/SKILL.md} +2 -1
  52. package/vendors/antigravity/{commands/wtfp-check-todos.md → skills/wtfp-check-todos/SKILL.md} +2 -1
  53. package/vendors/antigravity/{commands/wtfp-checkpoint.md → skills/wtfp-checkpoint/SKILL.md} +4 -3
  54. package/vendors/antigravity/{commands/wtfp-contribute.md → skills/wtfp-contribute/SKILL.md} +2 -1
  55. package/vendors/antigravity/{commands/wtfp-create-outline.md → skills/wtfp-create-outline/SKILL.md} +2 -1
  56. package/vendors/antigravity/{commands/wtfp-create-poster.md → skills/wtfp-create-poster/SKILL.md} +2 -1
  57. package/vendors/antigravity/{commands/wtfp-create-slides.md → skills/wtfp-create-slides/SKILL.md} +2 -1
  58. package/vendors/antigravity/skills/wtfp-deliver-research/SKILL.md +1 -1
  59. package/vendors/antigravity/skills/wtfp-deliver-research/references/actions.md +2 -2
  60. package/vendors/antigravity/{commands/wtfp-discuss-section.md → skills/wtfp-discuss-section/SKILL.md} +2 -1
  61. package/vendors/antigravity/{commands/wtfp-execute-outline.md → skills/wtfp-execute-outline/SKILL.md} +4 -3
  62. package/vendors/antigravity/{commands/wtfp-export-latex.md → skills/wtfp-export-latex/SKILL.md} +2 -1
  63. package/vendors/antigravity/{commands/wtfp-help.md → skills/wtfp-help/SKILL.md} +3 -2
  64. package/vendors/antigravity/{commands/wtfp-insert-section.md → skills/wtfp-insert-section/SKILL.md} +2 -1
  65. package/vendors/antigravity/{commands/wtfp-list-assumptions.md → skills/wtfp-list-assumptions/SKILL.md} +2 -1
  66. package/vendors/antigravity/{commands/wtfp-map-project.md → skills/wtfp-map-project/SKILL.md} +2 -1
  67. package/vendors/antigravity/{commands/wtfp-new-paper.md → skills/wtfp-new-paper/SKILL.md} +2 -1
  68. package/vendors/antigravity/{commands/wtfp-pause-writing.md → skills/wtfp-pause-writing/SKILL.md} +2 -1
  69. package/vendors/antigravity/{commands/wtfp-plan-milestone-gaps.md → skills/wtfp-plan-milestone-gaps/SKILL.md} +2 -1
  70. package/vendors/antigravity/{commands/wtfp-plan-revision.md → skills/wtfp-plan-revision/SKILL.md} +10 -4
  71. package/vendors/antigravity/skills/wtfp-plan-section/SKILL.md +1 -1
  72. package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +4 -3
  73. package/vendors/antigravity/{commands/wtfp-polish-prose.md → skills/wtfp-polish-prose/SKILL.md} +9 -4
  74. package/vendors/antigravity/{commands/wtfp-progress.md → skills/wtfp-progress/SKILL.md} +2 -1
  75. package/vendors/antigravity/{commands/wtfp-quick.md → skills/wtfp-quick/SKILL.md} +2 -1
  76. package/vendors/antigravity/{commands/wtfp-remove-section.md → skills/wtfp-remove-section/SKILL.md} +2 -1
  77. package/vendors/antigravity/{commands/wtfp-report-bug.md → skills/wtfp-report-bug/SKILL.md} +2 -1
  78. package/vendors/antigravity/{commands/wtfp-request-feature.md → skills/wtfp-request-feature/SKILL.md} +2 -1
  79. package/vendors/antigravity/{commands/wtfp-research-gap.md → skills/wtfp-research-gap/SKILL.md} +2 -1
  80. package/vendors/antigravity/skills/wtfp-research-literature/SKILL.md +1 -1
  81. package/vendors/antigravity/{commands/wtfp-resume-writing.md → skills/wtfp-resume-writing/SKILL.md} +2 -1
  82. package/vendors/antigravity/skills/wtfp-review-manuscript/SKILL.md +1 -1
  83. package/vendors/antigravity/{commands/wtfp-review-section.md → skills/wtfp-review-section/SKILL.md} +2 -1
  84. package/vendors/antigravity/{commands/wtfp-settings.md → skills/wtfp-settings/SKILL.md} +2 -1
  85. package/vendors/antigravity/{commands/wtfp-submit-milestone.md → skills/wtfp-submit-milestone/SKILL.md} +2 -1
  86. package/vendors/antigravity/{commands/wtfp-update.md → skills/wtfp-update/SKILL.md} +2 -1
  87. package/vendors/antigravity/{commands/wtfp-verify-work.md → skills/wtfp-verify-work/SKILL.md} +5 -4
  88. package/vendors/antigravity/skills/wtfp-write-section/SKILL.md +1 -1
  89. package/vendors/antigravity/skills/wtfp-write-section/references/actions.md +1 -1
  90. package/vendors/antigravity/workflows/checkpoint.md +2 -2
  91. package/vendors/antigravity/workflows/execute-outline.md +2 -2
  92. package/vendors/antigravity/workflows/export-latex.md +4 -4
  93. package/vendors/antigravity/workflows/plan-revision.md +4 -3
  94. package/vendors/antigravity/workflows/plan-section.md +2 -2
  95. package/vendors/antigravity/workflows/polish-prose.md +3 -3
  96. package/vendors/antigravity/workflows/research-gap.md +2 -2
  97. package/vendors/antigravity/workflows/verify-work.md +3 -3
  98. package/vendors/antigravity/workflows/write-section.md +2 -2
  99. package/vendors/claude/.claude-plugin/marketplace.json +2 -2
  100. package/vendors/claude/.claude-plugin/plugin.json +1 -1
  101. package/vendors/claude/.wtfp-generated.json +84 -76
  102. package/vendors/claude/actions/checkpoint.json +10 -1
  103. package/vendors/claude/actions/execute-outline.json +10 -2
  104. package/vendors/claude/actions/export-latex.json +15 -2
  105. package/vendors/claude/actions/plan-revision.json +17 -4
  106. package/vendors/claude/actions/polish-prose.json +13 -3
  107. package/vendors/claude/actions/research-gap.json +16 -3
  108. package/vendors/claude/actions/verify-work.json +7 -2
  109. package/vendors/claude/ai.iowarp.clio/agents/wtfp-argument-verifier.md +3 -3
  110. package/vendors/claude/ai.iowarp.clio/agents/wtfp-coherence-checker.md +3 -3
  111. package/vendors/claude/ai.iowarp.clio/agents/wtfp-plan-checker.md +3 -3
  112. package/vendors/claude/ai.iowarp.clio/agents/wtfp-section-reviewer.md +3 -3
  113. package/vendors/claude/ai.iowarp.clio/fleets/wtfp-draft-review.md +1 -1
  114. package/vendors/claude/ai.iowarp.clio/fleets/wtfp-plan-section.md +1 -1
  115. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/add-todo.md +8 -0
  116. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +22 -0
  117. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +10 -0
  118. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-refs.md +22 -0
  119. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/check-todos.md +9 -0
  120. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/checkpoint.md +11 -2
  121. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-outline.md +21 -0
  122. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-poster.md +9 -0
  123. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/create-slides.md +9 -0
  124. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/discuss-section.md +9 -0
  125. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/execute-outline.md +24 -3
  126. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/export-latex.md +14 -4
  127. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/help.md +1 -1
  128. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/insert-section.md +9 -0
  129. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +6 -0
  130. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/map-project.md +8 -0
  131. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/new-paper.md +9 -0
  132. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/pause-writing.md +8 -0
  133. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +9 -0
  134. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-revision.md +17 -3
  135. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/plan-section.md +24 -3
  136. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/polish-prose.md +28 -3
  137. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/progress.md +7 -0
  138. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/quick.md +21 -0
  139. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/research-gap.md +25 -2
  140. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/resume-writing.md +9 -0
  141. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/review-section.md +19 -1
  142. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/settings.md +9 -0
  143. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +9 -0
  144. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/verify-work.md +12 -3
  145. package/vendors/claude/ai.iowarp.clio/prompts/wtfp/write-section.md +24 -3
  146. package/vendors/claude/commands/checkpoint.md +2 -2
  147. package/vendors/claude/commands/execute-outline.md +2 -2
  148. package/vendors/claude/commands/export-latex.md +4 -4
  149. package/vendors/claude/commands/plan-revision.md +8 -3
  150. package/vendors/claude/commands/plan-section.md +2 -2
  151. package/vendors/claude/commands/polish-prose.md +7 -3
  152. package/vendors/claude/commands/research-gap.md +2 -2
  153. package/vendors/claude/commands/verify-work.md +3 -3
  154. package/vendors/claude/commands/write-section.md +2 -2
  155. package/vendors/claude/output-styles/wtfp-academic-writing.md +5 -5
  156. package/vendors/claude/plugin.json +1 -1
  157. package/vendors/claude/project/README.md +37 -0
  158. package/vendors/claude/project/schemas/interaction.schema.json +100 -0
  159. package/vendors/claude/project/templates/interaction.json +16 -0
  160. package/vendors/claude/skills/wtfp-deliver-research/SKILL.md +1 -1
  161. package/vendors/claude/skills/wtfp-deliver-research/references/actions.md +2 -2
  162. package/vendors/claude/skills/wtfp-plan-section/SKILL.md +1 -1
  163. package/vendors/claude/skills/wtfp-plan-section/references/actions.md +4 -3
  164. package/vendors/claude/skills/wtfp-research-literature/SKILL.md +1 -1
  165. package/vendors/claude/skills/wtfp-review-manuscript/SKILL.md +1 -1
  166. package/vendors/claude/skills/wtfp-write-section/SKILL.md +1 -1
  167. package/vendors/claude/skills/wtfp-write-section/references/actions.md +1 -1
  168. package/vendors/claude/workflows/checkpoint.md +2 -2
  169. package/vendors/claude/workflows/execute-outline.md +2 -2
  170. package/vendors/claude/workflows/export-latex.md +4 -4
  171. package/vendors/claude/workflows/plan-revision.md +4 -3
  172. package/vendors/claude/workflows/plan-section.md +2 -2
  173. package/vendors/claude/workflows/polish-prose.md +3 -3
  174. package/vendors/claude/workflows/research-gap.md +2 -2
  175. package/vendors/claude/workflows/verify-work.md +3 -3
  176. package/vendors/claude/workflows/write-section.md +2 -2
  177. package/vendors/clio-extension/.wtfp-generated.json +240 -0
  178. package/vendors/clio-extension/actions/add-todo.json +52 -0
  179. package/vendors/clio-extension/actions/analyze-bib.json +97 -0
  180. package/vendors/clio-extension/actions/audit-milestone.json +63 -0
  181. package/vendors/clio-extension/actions/check-refs.json +80 -0
  182. package/vendors/clio-extension/actions/check-todos.json +52 -0
  183. package/vendors/clio-extension/actions/checkpoint.json +85 -0
  184. package/vendors/clio-extension/actions/contribute.json +57 -0
  185. package/vendors/clio-extension/actions/create-outline.json +84 -0
  186. package/vendors/clio-extension/actions/create-poster.json +54 -0
  187. package/vendors/clio-extension/actions/create-slides.json +54 -0
  188. package/vendors/clio-extension/actions/discuss-section.json +76 -0
  189. package/vendors/clio-extension/actions/execute-outline.json +124 -0
  190. package/vendors/clio-extension/actions/export-latex.json +78 -0
  191. package/vendors/clio-extension/actions/help.json +30 -0
  192. package/vendors/clio-extension/actions/insert-section.json +61 -0
  193. package/vendors/clio-extension/actions/list-assumptions.json +35 -0
  194. package/vendors/clio-extension/actions/map-project.json +71 -0
  195. package/vendors/clio-extension/actions/new-paper.json +70 -0
  196. package/vendors/clio-extension/actions/pause-writing.json +71 -0
  197. package/vendors/clio-extension/actions/plan-milestone-gaps.json +57 -0
  198. package/vendors/clio-extension/actions/plan-revision.json +71 -0
  199. package/vendors/clio-extension/actions/plan-section.json +100 -0
  200. package/vendors/clio-extension/actions/polish-prose.json +79 -0
  201. package/vendors/clio-extension/actions/progress.json +51 -0
  202. package/vendors/clio-extension/actions/quick.json +70 -0
  203. package/vendors/clio-extension/actions/remove-section.json +63 -0
  204. package/vendors/clio-extension/actions/report-bug.json +47 -0
  205. package/vendors/clio-extension/actions/request-feature.json +47 -0
  206. package/vendors/clio-extension/actions/research-gap.json +115 -0
  207. package/vendors/clio-extension/actions/resume-writing.json +65 -0
  208. package/vendors/clio-extension/actions/review-section.json +83 -0
  209. package/vendors/clio-extension/actions/settings.json +47 -0
  210. package/vendors/clio-extension/actions/submit-milestone.json +77 -0
  211. package/vendors/clio-extension/actions/update.json +42 -0
  212. package/vendors/clio-extension/actions/verify-work.json +68 -0
  213. package/vendors/clio-extension/actions/write-section.json +115 -0
  214. package/vendors/clio-extension/clio-coder-extension.yaml +76 -0
  215. package/vendors/clio-extension/compatibility/action-availability.json +295 -0
  216. package/vendors/clio-extension/project/schemas/checkpoint.schema.json +102 -0
  217. package/vendors/clio-extension/project/schemas/common.schema.json +33 -0
  218. package/vendors/clio-extension/project/schemas/config.schema.json +69 -0
  219. package/vendors/clio-extension/project/schemas/decisions.schema.json +31 -0
  220. package/vendors/clio-extension/project/schemas/evidence.schema.json +48 -0
  221. package/vendors/clio-extension/project/schemas/interaction.schema.json +100 -0
  222. package/vendors/clio-extension/project/schemas/manifest.schema.json +102 -0
  223. package/vendors/clio-extension/project/schemas/outline.schema.json +67 -0
  224. package/vendors/clio-extension/project/schemas/section.schema.json +95 -0
  225. package/vendors/clio-extension/project/schemas/source.schema.json +73 -0
  226. package/vendors/clio-extension/project/schemas/state.schema.json +58 -0
  227. package/vendors/clio-extension/project/schemas/validation.schema.json +74 -0
  228. package/vendors/clio-extension/runtime/claim-coverage.cjs +332 -0
  229. package/vendors/clio-extension/runtime/desk-trust.cjs +112 -0
  230. package/vendors/clio-extension/runtime/extension.test.ts +1567 -0
  231. package/vendors/clio-extension/runtime/extension.ts +3074 -0
  232. package/vendors/clio-extension/runtime/json-schema.cjs +304 -0
  233. package/vendors/clio-extension/runtime/package.json +3 -0
  234. package/vendors/clio-extension/runtime/write-guard.json +566 -0
  235. package/vendors/clio-extension/skins/wtfp.json +20 -0
  236. package/vendors/codex/plugins/wtfp/.codex-plugin/plugin.json +1 -1
  237. package/vendors/codex/plugins/wtfp/.wtfp-generated.json +36 -28
  238. package/vendors/codex/plugins/wtfp/actions/checkpoint.json +10 -1
  239. package/vendors/codex/plugins/wtfp/actions/execute-outline.json +10 -2
  240. package/vendors/codex/plugins/wtfp/actions/export-latex.json +15 -2
  241. package/vendors/codex/plugins/wtfp/actions/plan-revision.json +17 -4
  242. package/vendors/codex/plugins/wtfp/actions/polish-prose.json +13 -3
  243. package/vendors/codex/plugins/wtfp/actions/research-gap.json +16 -3
  244. package/vendors/codex/plugins/wtfp/actions/verify-work.json +7 -2
  245. package/vendors/codex/plugins/wtfp/plugin.json +1 -1
  246. package/vendors/codex/plugins/wtfp/project/README.md +37 -0
  247. package/vendors/codex/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
  248. package/vendors/codex/plugins/wtfp/project/templates/interaction.json +16 -0
  249. package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  250. package/vendors/codex/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  251. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  252. package/vendors/codex/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  253. package/vendors/codex/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  254. package/vendors/codex/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  255. package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  256. package/vendors/codex/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  257. package/vendors/codex/plugins/wtfp/workflows/checkpoint.md +2 -2
  258. package/vendors/codex/plugins/wtfp/workflows/execute-outline.md +2 -2
  259. package/vendors/codex/plugins/wtfp/workflows/export-latex.md +4 -4
  260. package/vendors/codex/plugins/wtfp/workflows/plan-revision.md +4 -3
  261. package/vendors/codex/plugins/wtfp/workflows/plan-section.md +2 -2
  262. package/vendors/codex/plugins/wtfp/workflows/polish-prose.md +3 -3
  263. package/vendors/codex/plugins/wtfp/workflows/research-gap.md +2 -2
  264. package/vendors/codex/plugins/wtfp/workflows/verify-work.md +3 -3
  265. package/vendors/codex/plugins/wtfp/workflows/write-section.md +2 -2
  266. package/vendors/copilot/.wtfp-generated.json +43 -35
  267. package/vendors/copilot/marketplace.json +2 -2
  268. package/vendors/copilot/plugins/wtfp/.claude-plugin/plugin.json +1 -1
  269. package/vendors/copilot/plugins/wtfp/.wtfp-generated.json +42 -34
  270. package/vendors/copilot/plugins/wtfp/actions/checkpoint.json +10 -1
  271. package/vendors/copilot/plugins/wtfp/actions/execute-outline.json +10 -2
  272. package/vendors/copilot/plugins/wtfp/actions/export-latex.json +15 -2
  273. package/vendors/copilot/plugins/wtfp/actions/plan-revision.json +17 -4
  274. package/vendors/copilot/plugins/wtfp/actions/polish-prose.json +13 -3
  275. package/vendors/copilot/plugins/wtfp/actions/research-gap.json +16 -3
  276. package/vendors/copilot/plugins/wtfp/actions/verify-work.json +7 -2
  277. package/vendors/copilot/plugins/wtfp/commands/wtfp-checkpoint.md +2 -2
  278. package/vendors/copilot/plugins/wtfp/commands/wtfp-execute-outline.md +2 -2
  279. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-revision.md +8 -3
  280. package/vendors/copilot/plugins/wtfp/commands/wtfp-plan-section.md +2 -2
  281. package/vendors/copilot/plugins/wtfp/commands/wtfp-polish-prose.md +7 -3
  282. package/vendors/copilot/plugins/wtfp/commands/wtfp-verify-work.md +3 -3
  283. package/vendors/copilot/plugins/wtfp/commands/wtfp-write-section.md +2 -2
  284. package/vendors/copilot/plugins/wtfp/project/README.md +37 -0
  285. package/vendors/copilot/plugins/wtfp/project/schemas/interaction.schema.json +100 -0
  286. package/vendors/copilot/plugins/wtfp/project/templates/interaction.json +16 -0
  287. package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  288. package/vendors/copilot/plugins/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  289. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  290. package/vendors/copilot/plugins/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  291. package/vendors/copilot/plugins/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  292. package/vendors/copilot/plugins/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  293. package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  294. package/vendors/copilot/plugins/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  295. package/vendors/copilot/plugins/wtfp/workflows/checkpoint.md +2 -2
  296. package/vendors/copilot/plugins/wtfp/workflows/execute-outline.md +2 -2
  297. package/vendors/copilot/plugins/wtfp/workflows/export-latex.md +4 -4
  298. package/vendors/copilot/plugins/wtfp/workflows/plan-revision.md +4 -3
  299. package/vendors/copilot/plugins/wtfp/workflows/plan-section.md +2 -2
  300. package/vendors/copilot/plugins/wtfp/workflows/polish-prose.md +3 -3
  301. package/vendors/copilot/plugins/wtfp/workflows/research-gap.md +2 -2
  302. package/vendors/copilot/plugins/wtfp/workflows/verify-work.md +3 -3
  303. package/vendors/copilot/plugins/wtfp/workflows/write-section.md +2 -2
  304. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/SKILL.md +1 -1
  305. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/references/actions.md +2 -2
  306. package/vendors/copilot/project/.github/skills/wtfp-plan-section/SKILL.md +1 -1
  307. package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +4 -3
  308. package/vendors/copilot/project/.github/skills/wtfp-research-literature/SKILL.md +1 -1
  309. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/SKILL.md +1 -1
  310. package/vendors/copilot/project/.github/skills/wtfp-write-section/SKILL.md +1 -1
  311. package/vendors/copilot/project/.github/skills/wtfp-write-section/references/actions.md +1 -1
  312. package/vendors/copilot/project/.github/wtfp/actions/checkpoint.json +10 -1
  313. package/vendors/copilot/project/.github/wtfp/actions/execute-outline.json +10 -2
  314. package/vendors/copilot/project/.github/wtfp/actions/export-latex.json +15 -2
  315. package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +17 -4
  316. package/vendors/copilot/project/.github/wtfp/actions/polish-prose.json +13 -3
  317. package/vendors/copilot/project/.github/wtfp/actions/research-gap.json +16 -3
  318. package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +7 -2
  319. package/vendors/copilot/project/.github/wtfp/project/README.md +37 -0
  320. package/vendors/copilot/project/.github/wtfp/project/schemas/interaction.schema.json +100 -0
  321. package/vendors/copilot/project/.github/wtfp/project/templates/interaction.json +16 -0
  322. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/SKILL.md +1 -1
  323. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/references/actions.md +2 -2
  324. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/SKILL.md +1 -1
  325. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +4 -3
  326. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/SKILL.md +1 -1
  327. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/SKILL.md +1 -1
  328. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/SKILL.md +1 -1
  329. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md +1 -1
  330. package/vendors/copilot/project/.github/wtfp/workflows/checkpoint.md +2 -2
  331. package/vendors/copilot/project/.github/wtfp/workflows/execute-outline.md +2 -2
  332. package/vendors/copilot/project/.github/wtfp/workflows/export-latex.md +4 -4
  333. package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +4 -3
  334. package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +2 -2
  335. package/vendors/copilot/project/.github/wtfp/workflows/polish-prose.md +3 -3
  336. package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +2 -2
  337. package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +3 -3
  338. package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +2 -2
  339. package/vendors/gemini/.wtfp-generated.json +61 -53
  340. package/vendors/gemini/actions/checkpoint.json +10 -1
  341. package/vendors/gemini/actions/execute-outline.json +10 -2
  342. package/vendors/gemini/actions/export-latex.json +15 -2
  343. package/vendors/gemini/actions/plan-revision.json +17 -4
  344. package/vendors/gemini/actions/polish-prose.json +13 -3
  345. package/vendors/gemini/actions/research-gap.json +16 -3
  346. package/vendors/gemini/actions/verify-work.json +7 -2
  347. package/vendors/gemini/commands/wtfp/add-todo.toml +37 -0
  348. package/vendors/gemini/commands/wtfp/check-todos.toml +37 -0
  349. package/vendors/gemini/commands/wtfp/checkpoint.toml +49 -3
  350. package/vendors/gemini/commands/wtfp/create-outline.toml +37 -0
  351. package/vendors/gemini/commands/wtfp/create-poster.toml +40 -3
  352. package/vendors/gemini/commands/wtfp/create-slides.toml +40 -3
  353. package/vendors/gemini/commands/wtfp/discuss-section.toml +42 -4
  354. package/vendors/gemini/commands/wtfp/execute-outline.toml +51 -6
  355. package/vendors/gemini/commands/wtfp/help.toml +37 -0
  356. package/vendors/gemini/commands/wtfp/insert-section.toml +42 -4
  357. package/vendors/gemini/commands/wtfp/list-assumptions.toml +42 -4
  358. package/vendors/gemini/commands/wtfp/map-project.toml +37 -0
  359. package/vendors/gemini/commands/wtfp/new-paper.toml +37 -0
  360. package/vendors/gemini/commands/wtfp/pause-writing.toml +37 -0
  361. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +38 -1
  362. package/vendors/gemini/commands/wtfp/plan-revision.toml +310 -11
  363. package/vendors/gemini/commands/wtfp/plan-section.toml +44 -6
  364. package/vendors/gemini/commands/wtfp/polish-prose.toml +281 -7
  365. package/vendors/gemini/commands/wtfp/progress.toml +37 -0
  366. package/vendors/gemini/commands/wtfp/quick.toml +39 -2
  367. package/vendors/gemini/commands/wtfp/resume-writing.toml +37 -0
  368. package/vendors/gemini/commands/wtfp/review-section.toml +38 -1
  369. package/vendors/gemini/commands/wtfp/settings.toml +37 -0
  370. package/vendors/gemini/commands/wtfp/submit-milestone.toml +40 -3
  371. package/vendors/gemini/commands/wtfp/verify-work.toml +48 -6
  372. package/vendors/gemini/commands/wtfp/write-section.toml +41 -4
  373. package/vendors/gemini/gemini-extension.json +1 -1
  374. package/vendors/gemini/project/README.md +37 -0
  375. package/vendors/gemini/project/schemas/interaction.schema.json +100 -0
  376. package/vendors/gemini/project/templates/interaction.json +16 -0
  377. package/vendors/gemini/skills/wtfp-deliver-research/SKILL.md +1 -1
  378. package/vendors/gemini/skills/wtfp-deliver-research/references/actions.md +2 -2
  379. package/vendors/gemini/skills/wtfp-plan-section/SKILL.md +1 -1
  380. package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +4 -3
  381. package/vendors/gemini/skills/wtfp-research-literature/SKILL.md +1 -1
  382. package/vendors/gemini/skills/wtfp-review-manuscript/SKILL.md +1 -1
  383. package/vendors/gemini/skills/wtfp-write-section/SKILL.md +1 -1
  384. package/vendors/gemini/skills/wtfp-write-section/references/actions.md +1 -1
  385. package/vendors/gemini/workflows/checkpoint.md +2 -2
  386. package/vendors/gemini/workflows/execute-outline.md +2 -2
  387. package/vendors/gemini/workflows/export-latex.md +4 -4
  388. package/vendors/gemini/workflows/plan-revision.md +4 -3
  389. package/vendors/gemini/workflows/plan-section.md +2 -2
  390. package/vendors/gemini/workflows/polish-prose.md +3 -3
  391. package/vendors/gemini/workflows/research-gap.md +2 -2
  392. package/vendors/gemini/workflows/verify-work.md +3 -3
  393. package/vendors/gemini/workflows/write-section.md +2 -2
  394. package/vendors/opencode/.wtfp-generated.json +60 -52
  395. package/vendors/opencode/actions/checkpoint.json +10 -1
  396. package/vendors/opencode/actions/execute-outline.json +10 -2
  397. package/vendors/opencode/actions/export-latex.json +15 -2
  398. package/vendors/opencode/actions/plan-revision.json +17 -4
  399. package/vendors/opencode/actions/polish-prose.json +13 -3
  400. package/vendors/opencode/actions/research-gap.json +16 -3
  401. package/vendors/opencode/actions/verify-work.json +7 -2
  402. package/vendors/opencode/commands/wtfp/add-todo.md +37 -0
  403. package/vendors/opencode/commands/wtfp/check-todos.md +37 -0
  404. package/vendors/opencode/commands/wtfp/checkpoint.md +49 -3
  405. package/vendors/opencode/commands/wtfp/create-outline.md +37 -0
  406. package/vendors/opencode/commands/wtfp/create-poster.md +40 -3
  407. package/vendors/opencode/commands/wtfp/create-slides.md +40 -3
  408. package/vendors/opencode/commands/wtfp/discuss-section.md +42 -4
  409. package/vendors/opencode/commands/wtfp/execute-outline.md +51 -6
  410. package/vendors/opencode/commands/wtfp/help.md +37 -0
  411. package/vendors/opencode/commands/wtfp/insert-section.md +42 -4
  412. package/vendors/opencode/commands/wtfp/list-assumptions.md +42 -4
  413. package/vendors/opencode/commands/wtfp/map-project.md +37 -0
  414. package/vendors/opencode/commands/wtfp/new-paper.md +37 -0
  415. package/vendors/opencode/commands/wtfp/pause-writing.md +37 -0
  416. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +38 -1
  417. package/vendors/opencode/commands/wtfp/plan-revision.md +310 -11
  418. package/vendors/opencode/commands/wtfp/plan-section.md +44 -6
  419. package/vendors/opencode/commands/wtfp/polish-prose.md +281 -7
  420. package/vendors/opencode/commands/wtfp/progress.md +37 -0
  421. package/vendors/opencode/commands/wtfp/quick.md +39 -2
  422. package/vendors/opencode/commands/wtfp/resume-writing.md +37 -0
  423. package/vendors/opencode/commands/wtfp/review-section.md +38 -1
  424. package/vendors/opencode/commands/wtfp/settings.md +37 -0
  425. package/vendors/opencode/commands/wtfp/submit-milestone.md +40 -3
  426. package/vendors/opencode/commands/wtfp/verify-work.md +48 -6
  427. package/vendors/opencode/commands/wtfp/write-section.md +41 -4
  428. package/vendors/opencode/project/README.md +37 -0
  429. package/vendors/opencode/project/schemas/interaction.schema.json +100 -0
  430. package/vendors/opencode/project/templates/interaction.json +16 -0
  431. package/vendors/opencode/skills/wtfp-deliver-research/SKILL.md +1 -1
  432. package/vendors/opencode/skills/wtfp-deliver-research/references/actions.md +2 -2
  433. package/vendors/opencode/skills/wtfp-plan-section/SKILL.md +1 -1
  434. package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +4 -3
  435. package/vendors/opencode/skills/wtfp-research-literature/SKILL.md +1 -1
  436. package/vendors/opencode/skills/wtfp-review-manuscript/SKILL.md +1 -1
  437. package/vendors/opencode/skills/wtfp-write-section/SKILL.md +1 -1
  438. package/vendors/opencode/skills/wtfp-write-section/references/actions.md +1 -1
  439. package/vendors/opencode/workflows/checkpoint.md +2 -2
  440. package/vendors/opencode/workflows/execute-outline.md +2 -2
  441. package/vendors/opencode/workflows/export-latex.md +4 -4
  442. package/vendors/opencode/workflows/plan-revision.md +4 -3
  443. package/vendors/opencode/workflows/plan-section.md +2 -2
  444. package/vendors/opencode/workflows/polish-prose.md +3 -3
  445. package/vendors/opencode/workflows/research-gap.md +2 -2
  446. package/vendors/opencode/workflows/verify-work.md +3 -3
  447. package/vendors/opencode/workflows/write-section.md +2 -2
  448. package/vendors/plugin/.wtfp-generated.json +75 -67
  449. package/vendors/plugin/actions/checkpoint.json +10 -1
  450. package/vendors/plugin/actions/execute-outline.json +10 -2
  451. package/vendors/plugin/actions/export-latex.json +15 -2
  452. package/vendors/plugin/actions/plan-revision.json +17 -4
  453. package/vendors/plugin/actions/polish-prose.json +13 -3
  454. package/vendors/plugin/actions/research-gap.json +16 -3
  455. package/vendors/plugin/actions/verify-work.json +7 -2
  456. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-argument-verifier.md +3 -3
  457. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-coherence-checker.md +3 -3
  458. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-plan-checker.md +3 -3
  459. package/vendors/plugin/ai.iowarp.clio/agents/wtfp-section-reviewer.md +3 -3
  460. package/vendors/plugin/ai.iowarp.clio/{fleets → playbooks}/wtfp-draft-review.md +1 -1
  461. package/vendors/plugin/ai.iowarp.clio/{fleets → playbooks}/wtfp-plan-section.md +1 -1
  462. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/add-todo.md +19 -12
  463. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/analyze-bib.md +34 -19
  464. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/audit-milestone.md +22 -25
  465. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-refs.md +34 -15
  466. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/check-todos.md +23 -13
  467. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/checkpoint.md +23 -29
  468. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-outline.md +33 -25
  469. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-poster.md +9 -0
  470. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/create-slides.md +9 -0
  471. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/discuss-section.md +21 -17
  472. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/execute-outline.md +38 -30
  473. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/export-latex.md +26 -21
  474. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/help.md +2 -2
  475. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/insert-section.md +21 -13
  476. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/list-assumptions.md +6 -0
  477. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/map-project.md +19 -14
  478. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/new-paper.md +21 -17
  479. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/pause-writing.md +19 -18
  480. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-milestone-gaps.md +21 -15
  481. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-revision.md +25 -18
  482. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/plan-section.md +36 -30
  483. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/polish-prose.md +38 -18
  484. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/progress.md +7 -0
  485. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/quick.md +35 -15
  486. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/research-gap.md +37 -23
  487. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/resume-writing.md +21 -23
  488. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/review-section.md +31 -20
  489. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/settings.md +21 -9
  490. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/submit-milestone.md +21 -25
  491. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/verify-work.md +24 -18
  492. package/vendors/plugin/ai.iowarp.clio/prompts/wtfp/write-section.md +38 -31
  493. package/vendors/plugin/compatibility/action-availability.json +18 -3
  494. package/vendors/plugin/plugin.json +7 -7
  495. package/vendors/plugin/project/README.md +37 -0
  496. package/vendors/plugin/project/schemas/interaction.schema.json +100 -0
  497. package/vendors/plugin/project/templates/interaction.json +16 -0
  498. package/vendors/plugin/skills/wtfp-deliver-research/SKILL.md +1 -1
  499. package/vendors/plugin/skills/wtfp-deliver-research/references/actions.md +2 -2
  500. package/vendors/plugin/skills/wtfp-plan-section/SKILL.md +1 -1
  501. package/vendors/plugin/skills/wtfp-plan-section/references/actions.md +4 -3
  502. package/vendors/plugin/skills/wtfp-research-literature/SKILL.md +1 -1
  503. package/vendors/plugin/skills/wtfp-review-manuscript/SKILL.md +1 -1
  504. package/vendors/plugin/skills/wtfp-write-section/SKILL.md +1 -1
  505. package/vendors/plugin/skills/wtfp-write-section/references/actions.md +1 -1
  506. package/vendors/plugin/workflows/checkpoint.md +2 -2
  507. package/vendors/plugin/workflows/execute-outline.md +2 -2
  508. package/vendors/plugin/workflows/export-latex.md +4 -4
  509. package/vendors/plugin/workflows/plan-revision.md +4 -3
  510. package/vendors/plugin/workflows/plan-section.md +2 -2
  511. package/vendors/plugin/workflows/polish-prose.md +3 -3
  512. package/vendors/plugin/workflows/research-gap.md +2 -2
  513. package/vendors/plugin/workflows/verify-work.md +3 -3
  514. package/vendors/plugin/workflows/write-section.md +2 -2
  515. package/vendors/antigravity/commands/wtfp-plan-section.md +0 -78
  516. package/vendors/antigravity/commands/wtfp-write-section.md +0 -77
@@ -5,9 +5,9 @@ const path = require('path');
5
5
  const { createTargetGuard, resolveOwnedPath, sha256Buffer } = require('./ownership');
6
6
 
7
7
  // Clio owns integrity, provenance, drift and enable/disable for an installed
8
- // plugin. WTF-P owns two much smaller things: the exact bytes it publishes
9
- // (its v2 receipt) and the guarantee that the tree handed to Clio is the
10
- // generated bundle and nothing else.
8
+ // plugin or extension. WTF-P owns two much smaller things: the exact bytes it
9
+ // publishes (its v2 receipt) and the guarantee that each tree handed to Clio
10
+ // is the generated package and nothing else.
11
11
  function treeFiles(root) {
12
12
  const files = new Map();
13
13
  function visit(directory) {
@@ -37,10 +37,11 @@ function scopeOptions(targetDir, options) {
37
37
  return { ...options, cwd, scope: project ? 'project' : 'user' };
38
38
  }
39
39
 
40
- function generatedBundle(root) {
40
+ function generatedBundle(root, target = 'portable-plugin') {
41
41
  const inventoryPath = path.join(root, '.wtfp-generated.json');
42
+ if (!fs.existsSync(inventoryPath)) return null;
42
43
  const inventory = JSON.parse(fs.readFileSync(inventoryPath, 'utf8'));
43
- if (inventory.schema !== 'wtfp.generated-adapter/v1' || inventory.target !== 'portable-plugin') {
44
+ if (inventory.schema !== 'wtfp.generated-adapter/v1' || inventory.target !== target) {
44
45
  return null;
45
46
  }
46
47
  const expected = new Map(inventory.files.map(file => [file.path, file.sha256]));
@@ -108,43 +109,130 @@ function installedListEntry(stdout, targetDir, native, scope) {
108
109
  return matches[0];
109
110
  }
110
111
 
111
- // Registration is what WTF-P is responsible for. Whether the operator has the
112
- // plugin switched on is Clio's state and their decision, so it is reported,
113
- // never asserted and never changed.
112
+ function installedExtensionEntry(stdout, targetDir, native, scope) {
113
+ const listing = JSON.parse(stdout);
114
+ if (!listing || !Array.isArray(listing.extensions)) {
115
+ throw new Error('Clio extensions list did not return an extensions array');
116
+ }
117
+ for (const entry of listing.extensions) {
118
+ if (!installedRecord(entry)) throw new Error('Clio extensions list returned a malformed installed extension');
119
+ }
120
+ const matches = listing.extensions.filter(entry => entry.id === native.id && entry.scope === scope &&
121
+ sameRoot(entry.rootPath, path.join(targetDir, native.source)));
122
+ if (matches.length > 1) throw new Error('Clio extensions list returned duplicate installed extension identities');
123
+ return matches[0];
124
+ }
125
+
126
+ // The two Clio packages WTF-P installs, plugin first. Each is its own Clio
127
+ // install with its own lifecycle command, generated inventory and checks.
128
+ // Both carry the id `wtfp`, and Clio 0.6.2 refuses a bare name that a plugin
129
+ // and an extension share, so `library` commands name the plugin as
130
+ // `plugin:wtfp`. The `extensions` commands select extensions by themselves.
131
+ function clioPackages(native) {
132
+ const plugin = {
133
+ noun: 'plugin', command: 'library', id: native.id, ref: `plugin:${native.id}`, source: native.source, inventory: 'portable-plugin',
134
+ deferral: 'Clio activation requires an intact generated bundle without extra or modified files',
135
+ list: () => ['library', 'list', '--kind', 'plugin', '--json'],
136
+ listed: (stdout, targetDir, scope) => installedListEntry(stdout, targetDir, native, scope),
137
+ // `inspect` returns the installed record for the explicitly selected scope.
138
+ verify: scope => ['library', 'inspect', `plugin:${native.id}`, `--${scope}`, '--json'],
139
+ verified: (stdout, targetDir, scope) => verifiedEntry(stdout, targetDir, native, scope)
140
+ };
141
+ if (!native.extension) return [plugin];
142
+ const extension = native.extension;
143
+ const listed = (stdout, targetDir, scope) => installedExtensionEntry(stdout, targetDir, extension, scope);
144
+ return [plugin, {
145
+ noun: 'extension', command: 'extensions', id: extension.id, ref: extension.id, source: extension.source, inventory: 'clio-extension',
146
+ deferral: 'Clio extension activation requires an intact generated extension without extra or modified files',
147
+ list: scope => ['extensions', 'list', `--${scope}`, '--json'],
148
+ listed,
149
+ verify: scope => ['extensions', 'list', `--${scope}`, '--json'],
150
+ verified: listed
151
+ }];
152
+ }
153
+
154
+ // Registration is what WTF-P is responsible for. Whether the operator has a
155
+ // package switched on, and whether they trust a project's package state, is
156
+ // Clio's state and their decision, so it is reported, never asserted and never
157
+ // changed. Clio binds project trust to the content of that state, so any
158
+ // project install after the first waits for `config trust`.
159
+ const TRUST_GATE = /^project (?:plugins|extensions) are not trusted for this workspace\b/u;
160
+
161
+ function trustGate(diagnostic) {
162
+ return Boolean(diagnostic) && diagnostic.type === 'warning' && TRUST_GATE.test(String(diagnostic.message));
163
+ }
164
+
114
165
  function registered(entry) {
115
166
  return Boolean(entry) && entry.valid === true &&
116
- Array.isArray(entry.diagnostics) && entry.diagnostics.length === 0;
167
+ Array.isArray(entry.diagnostics) && entry.diagnostics.every(trustGate);
117
168
  }
118
169
 
119
- function disabledNotice(native, scope) {
120
- return `Clio reports ${native.id} as installed but disabled. WTF-P does not change that preference; run clio-coder library enable ${native.id} --${scope} to switch it back on.`;
170
+ function disabledNotice(pkg, scope) {
171
+ return `Clio reports ${pkg.id} as installed but disabled. WTF-P does not change that preference; run clio-coder ${pkg.command} enable ${pkg.ref} --${scope} to switch it back on.`;
121
172
  }
122
173
 
174
+ function preferenceNotice(pkg, scope, entry) {
175
+ const surface = pkg.noun === 'plugin' ? 'plugins' : 'extensions';
176
+ const notices = [
177
+ ...(entry.enabled === false ? [disabledNotice(pkg, scope)] : []),
178
+ ...(entry.diagnostics.some(trustGate)
179
+ ? [`Clio holds this project's ${surface} until you trust its package state; WTF-P does not grant that. Review it with clio-coder config trust ${surface}.`]
180
+ : [])
181
+ ];
182
+ return notices.length > 0 ? { notice: notices.join(' ') } : {};
183
+ }
184
+
185
+ // Install the plugin, then the extension. A failure in the second compensates
186
+ // the first, and the returned compensator undoes both in reverse order.
123
187
  function activateClio(targetDir, native, suppliedOptions) {
124
188
  const options = scopeOptions(targetDir, suppliedOptions);
189
+ const activated = [];
190
+ try {
191
+ for (const pkg of clioPackages(native)) {
192
+ const result = activatePackage(targetDir, pkg, options);
193
+ activated.push(result);
194
+ if (result.status !== 'registered') break;
195
+ }
196
+ } catch (error) {
197
+ const failures = activated.reverse().flatMap(result => typeof result.rollback === 'function' ? result.rollback() : []);
198
+ if (failures.length) error.nativeRollbackFailures = [...(error.nativeRollbackFailures || []), ...failures];
199
+ throw error;
200
+ }
201
+ if (activated.length === 1) return activated[0];
202
+ const last = activated[activated.length - 1];
203
+ const notices = activated.map(result => result.notice).filter(Boolean);
204
+ return {
205
+ status: last.status, executable: 'clio-coder',
206
+ ...(last.reason ? { reason: last.reason } : {}),
207
+ results: activated.flatMap(result => result.results),
208
+ ...(notices.length ? { notice: notices.join(' ') } : {}),
209
+ rollback() {
210
+ return [...activated].reverse().flatMap(result => typeof result.rollback === 'function' ? result.rollback() : []);
211
+ },
212
+ commit() {
213
+ const warnings = activated.map(result => typeof result.commit === 'function' ? result.commit() : undefined).filter(Boolean);
214
+ return warnings.length ? warnings.join('; ') : undefined;
215
+ }
216
+ };
217
+ }
218
+
219
+ function activatePackage(targetDir, pkg, options) {
125
220
  const { execute, environment } = options;
126
221
  const guard = createTargetGuard(targetDir);
127
- const root = resolveOwnedPath(targetDir, native.source, guard);
222
+ const root = resolveOwnedPath(targetDir, pkg.source, guard);
128
223
  const publishedFiles = treeFiles(root);
129
- const expected = generatedBundle(root);
224
+ const expected = generatedBundle(root, pkg.inventory);
130
225
  if (!expected || !sameTree(expected, publishedFiles)) {
131
- return {
132
- status: 'deferred',
133
- reason: 'Clio activation requires an intact generated bundle without extra or modified files',
134
- results: []
135
- };
226
+ return { status: 'deferred', reason: pkg.deferral, results: [] };
136
227
  }
137
228
 
138
229
  const results = [];
139
- const priorList = execute('clio-coder', ['library', 'list', '--kind', 'plugin', '--json'], environment, options);
230
+ const priorList = execute('clio-coder', pkg.list(options.scope), environment, options);
140
231
  if (priorList.status === 'unavailable') return { status: 'unavailable', executable: 'clio-coder', results };
141
232
  results.push(priorList);
142
- const priorEntry = installedListEntry(priorList.stdout, targetDir, native, options.scope);
233
+ const priorEntry = pkg.listed(priorList.stdout, targetDir, options.scope);
143
234
  if (registered(priorEntry)) {
144
- return {
145
- status: 'registered', executable: 'clio-coder', results,
146
- ...(priorEntry.enabled === false ? { notice: disabledNotice(native, options.scope) } : {})
147
- };
235
+ return { status: 'registered', executable: 'clio-coder', results, ...preferenceNotice(pkg, options.scope, priorEntry) };
148
236
  }
149
237
 
150
238
  // `library install` copies a source into the destination it owns, so the
@@ -152,7 +240,7 @@ function activateClio(targetDir, native, suppliedOptions) {
152
240
  // until the receipt is durable lets a failed registration put the previous
153
241
  // installation back before the file transaction rolls it back.
154
242
  const staging = fs.mkdtempSync(path.join(path.dirname(root), '.wtfp-staged-'));
155
- const source = path.join(staging, 'wtfp');
243
+ const source = path.join(staging, pkg.id);
156
244
  fs.renameSync(root, source);
157
245
  let finished = false;
158
246
 
@@ -163,15 +251,15 @@ function activateClio(targetDir, native, suppliedOptions) {
163
251
  if (!sameTree(publishedFiles, treeFiles(root))) {
164
252
  throw new Error('Clio content changed concurrently; recovery tree preserved');
165
253
  }
166
- const removal = execute('clio-coder', ['library', 'remove', native.id, `--${options.scope}`, '--json'], environment,
254
+ const removal = execute('clio-coder', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment,
167
255
  { ...options, allowAlreadyAbsent: true });
168
256
  results.push(removal);
169
257
  if (removal.status === 'unavailable') throw new Error('Clio became unavailable during rollback');
170
258
  }
171
259
  if (fs.existsSync(root)) throw new Error('Clio rollback did not remove the replacement');
172
- const after = execute('clio-coder', ['library', 'list', '--kind', 'plugin', '--json'], environment, options);
260
+ const after = execute('clio-coder', pkg.list(options.scope), environment, options);
173
261
  results.push(after);
174
- if (after.status === 'unavailable' || installedListEntry(after.stdout, targetDir, native, options.scope)) {
262
+ if (after.status === 'unavailable' || pkg.listed(after.stdout, targetDir, options.scope)) {
175
263
  throw new Error('Clio rollback did not clear the replacement registration');
176
264
  }
177
265
  fs.renameSync(source, root);
@@ -184,22 +272,22 @@ function activateClio(targetDir, native, suppliedOptions) {
184
272
  }
185
273
 
186
274
  try {
187
- const installation = execute('clio-coder', ['library', 'install', source, `--${options.scope}`, '--json'], environment, options);
275
+ const installation = execute('clio-coder', [pkg.command, 'install', source, `--${options.scope}`, '--json'], environment, options);
188
276
  results.push(installation);
189
277
  if (installation.status === 'unavailable') throw new Error('Clio became unavailable during installation');
190
- const inspected = execute('clio-coder', ['library', 'inspect', native.id, `--${options.scope}`, '--json'], environment, options);
278
+ const inspected = execute('clio-coder', pkg.verify(options.scope), environment, options);
191
279
  results.push(inspected);
192
280
  if (inspected.status === 'unavailable') throw new Error('Clio became unavailable during verification');
193
- const entry = verifiedEntry(inspected.stdout, targetDir, native, options.scope);
281
+ const entry = pkg.verified(inspected.stdout, targetDir, options.scope);
194
282
  if (!registered(entry) || !sameTree(publishedFiles, treeFiles(root))) {
195
- throw new Error('Clio did not report the exact WTF-P plugin as installed and valid with zero diagnostics');
283
+ throw new Error(`Clio did not report the exact WTF-P ${pkg.noun} as installed and valid with zero diagnostics`);
196
284
  }
197
285
  if (priorEntry && priorEntry.enabled !== entry.enabled) {
198
- throw new Error('Clio installation changed the existing WTF-P enabled preference');
286
+ throw new Error(`Clio installation changed the existing WTF-P ${pkg.noun} enabled preference`);
199
287
  }
200
288
  return {
201
289
  status: 'registered', executable: 'clio-coder', results, rollback,
202
- ...(entry.enabled === false ? { notice: disabledNotice(native, options.scope) } : {}),
290
+ ...preferenceNotice(pkg, options.scope, entry),
203
291
  commit() {
204
292
  // Only the private held copy is removed; Clio owns its installed tree.
205
293
  finished = true;
@@ -217,27 +305,57 @@ function activateClio(targetDir, native, suppliedOptions) {
217
305
  }
218
306
  }
219
307
 
308
+ // Remove the extension, then the plugin, each only when the receipt proves it.
309
+ // `ownedFiles` maps receipt paths below the target to their published hashes.
220
310
  function deactivateClio(targetDir, native, suppliedOptions) {
221
311
  const options = scopeOptions(targetDir, suppliedOptions);
312
+ const removed = [];
313
+ for (const pkg of clioPackages(native).reverse()) {
314
+ const prefix = `${pkg.source}/`;
315
+ const ownedFiles = options.ownedFiles && new Map([...options.ownedFiles]
316
+ .filter(([file]) => file.startsWith(prefix))
317
+ .map(([file, hash]) => [file.slice(prefix.length), hash]));
318
+ const result = deactivatePackage(targetDir, pkg, { ...options, ownedFiles });
319
+ if (result.status === 'unavailable') return result;
320
+ removed.push(result);
321
+ }
322
+ if (removed.length === 1) return removed[0];
323
+ const deferred = removed.filter(result => result.status === 'deferred');
324
+ const results = removed.flatMap(result => result.results);
325
+ // A deferred package stays installed and registered, so the caller must keep
326
+ // its owned files and receipt entries for a later uninstall to finish.
327
+ if (deferred.length > 0) {
328
+ return { status: 'deferred', reason: deferred.map(result => result.reason).join('; '), results, keptRoots: deferred.map(result => result.root) };
329
+ }
330
+ return removed.some(result => result.status === 'unregistered')
331
+ ? { status: 'unregistered', executable: 'clio-coder', results }
332
+ : { status: 'not-required', results };
333
+ }
334
+
335
+ function deactivatePackage(targetDir, pkg, options) {
222
336
  const { execute, environment } = options;
223
337
  const guard = createTargetGuard(targetDir);
224
- const listing = execute('clio-coder', ['library', 'list', '--kind', 'plugin', '--json'], environment, options);
338
+ const listing = execute('clio-coder', pkg.list(options.scope), environment, options);
225
339
  if (listing.status === 'unavailable') return { status: 'unavailable', executable: 'clio-coder', results: [] };
226
- if (!installedListEntry(listing.stdout, targetDir, native, options.scope)) {
340
+ if (!pkg.listed(listing.stdout, targetDir, options.scope)) {
227
341
  return { status: 'not-required', results: [listing] };
228
342
  }
229
343
 
230
344
  // Native removal is recursive. Run it only when the receipt proves that every
231
345
  // file below the installed root is one WTF-P published and nobody changed.
232
- const root = resolveOwnedPath(targetDir, native.source, guard);
346
+ const root = resolveOwnedPath(targetDir, pkg.source, guard);
233
347
  const ownedFiles = options.ownedFiles;
234
348
  if (!ownedFiles || !sameTree(treeFiles(root), ownedFiles)) {
235
- return { status: 'deferred', reason: 'Clio native removal would include unowned or modified plugin files', results: [listing] };
349
+ const foreign = ownedFiles ? [...treeFiles(root).keys()].filter(file => !ownedFiles.has(file)).slice(0, 5) : [];
350
+ return {
351
+ status: 'deferred', root: pkg.source, results: [listing],
352
+ reason: `Kept the WTF-P ${pkg.noun} installed and registered: ${pkg.source}/ holds files WTF-P did not publish or that changed${foreign.length ? ` (${foreign.join(', ')})` : ''}. Move them out and run uninstall again.`
353
+ };
236
354
  }
237
- const result = execute('clio-coder', ['library', 'remove', native.id, `--${options.scope}`, '--json'], environment, options);
355
+ const result = execute('clio-coder', [pkg.command, 'remove', pkg.ref, `--${options.scope}`, '--json'], environment, options);
238
356
  if (result.status === 'unavailable') return { status: 'unavailable', executable: 'clio-coder', results: [listing] };
239
- const after = execute('clio-coder', ['library', 'list', '--kind', 'plugin', '--json'], environment, options);
240
- if (after.status === 'unavailable' || fs.existsSync(root) || installedListEntry(after.stdout, targetDir, native, options.scope)) {
357
+ const after = execute('clio-coder', pkg.list(options.scope), environment, options);
358
+ if (after.status === 'unavailable' || fs.existsSync(root) || pkg.listed(after.stdout, targetDir, options.scope)) {
241
359
  throw new Error('Clio removal did not clear WTF-P content and registration');
242
360
  }
243
361
  return { status: 'unregistered', executable: 'clio-coder', results: [listing, result, after] };
@@ -67,8 +67,9 @@ const MANIFEST = {
67
67
  source: 'marketplaces/wtfp'
68
68
  }
69
69
  },
70
- // Clio consumes the canonical Agent Plugins bundle through its own plugin
71
- // lifecycle. There is no second WTF-P packaging for this host.
70
+ // Clio consumes the canonical Agent Plugins bundle through its plugin
71
+ // lifecycle and the desk through its extension lifecycle: two packages, two
72
+ // Clio installs, one WTF-P receipt.
72
73
  clio: {
73
74
  name: 'Clio Coder',
74
75
  configDirEnv: 'CLIO_CODER_CONFIG_DIR',
@@ -80,6 +81,12 @@ const MANIFEST = {
80
81
  src: path.join(ROOT, 'vendors', 'plugin'),
81
82
  dest: 'plugins/wtfp',
82
83
  type: 'dir'
84
+ },
85
+ {
86
+ id: 'extension',
87
+ src: path.join(ROOT, 'vendors', 'clio-extension'),
88
+ dest: 'extensions/wtfp',
89
+ type: 'dir'
83
90
  }
84
91
  ],
85
92
  discovery: {
@@ -89,7 +96,8 @@ const MANIFEST = {
89
96
  native: {
90
97
  kind: 'clio-plugin',
91
98
  id: 'wtfp',
92
- source: 'plugins/wtfp'
99
+ source: 'plugins/wtfp',
100
+ extension: { id: 'wtfp', source: 'extensions/wtfp' }
93
101
  }
94
102
  },
95
103
  codex: {
package/bin/uninstall.js CHANGED
@@ -780,14 +780,25 @@ async function uninstall(runtime, options, out) {
780
780
  vendorConfig.native,
781
781
  { ...(vendorKey === 'clio' && plan.receipt.scope === 'project'
782
782
  ? { scope: 'project', cwd: path.dirname(targetDir) } : {}),
783
+ // Receipt paths below the target; Clio checks each package root against them.
783
784
  ownedFiles: new Map(plan.items
784
- .filter(item => item.path.startsWith(`${vendorConfig.native.source}/`) && item.state === 'unchanged')
785
- .map(item => [item.path.slice(vendorConfig.native.source.length + 1), item.entry.sha256])) }
785
+ .filter(item => item.state === 'unchanged')
786
+ .map(item => [item.path, item.entry.sha256])) }
786
787
  );
787
788
  if (nativeRemoval.status === 'unavailable' && !options.hasQuiet) {
788
789
  out.warn(`${nativeRemoval.executable} is unavailable; removing the WTF-P-owned staging files without changing the client's native registry.`);
789
- } else if (nativeRemoval.status === 'deferred' && !options.hasQuiet) {
790
- out.warn(nativeRemoval.reason || 'The target cannot be natively unregistered; only WTF-P-owned staging files will be removed.');
790
+ } else if (nativeRemoval.status === 'deferred') {
791
+ // A package Clio still registers keeps every owned file and its receipt
792
+ // entries; removing them would leave a registration with no content.
793
+ for (const root of nativeRemoval.keptRoots || []) {
794
+ for (const item of plan.items) {
795
+ if (item.path.startsWith(`${root}/`) && item.removable) {
796
+ item.removable = false;
797
+ item.keptRegistered = true;
798
+ }
799
+ }
800
+ }
801
+ if (!options.hasQuiet) out.warn(nativeRemoval.reason || 'The target cannot be natively unregistered; only WTF-P-owned staging files will be removed.');
791
802
  }
792
803
  } else if (vendorConfig.native && !options.hasQuiet) {
793
804
  out.warn('Native registration was preserved because this uninstall cannot remove every WTF-P-owned source file safely.');
@@ -802,11 +813,16 @@ async function uninstall(runtime, options, out) {
802
813
  }
803
814
 
804
815
  const remaining = plan.items.filter(item => !item.removed && item.state !== 'missing');
805
- if (remaining.length > 0) {
806
- out.log(`\n ${c.yellow('Partial uninstall:')} preserved ${remaining.length} modified, untrusted, or unsafe file(s).`);
816
+ const keptRegistered = remaining.filter(item => item.keptRegistered).length;
817
+ if (keptRegistered > 0) {
818
+ out.log(`\n ${c.yellow('Partial uninstall:')} kept ${keptRegistered} owned file(s) of a package Clio still registers, with their receipt entries, so uninstall can finish once the unowned files are moved out.`);
819
+ }
820
+ if (remaining.length > keptRegistered) {
821
+ out.log(`\n ${c.yellow('Partial uninstall:')} preserved ${remaining.length - keptRegistered} modified, untrusted, or unsafe file(s).`);
807
822
  out.log(` Re-run with ${c.cyan('--force')} only if you intend to remove exact modified/legacy receipt files.\n`);
808
823
  return { status: 'partial', plan, summary };
809
824
  }
825
+ if (keptRegistered > 0) return { status: 'partial', plan, summary };
810
826
 
811
827
  out.log(`\n ${c.green('Done!')} Removed WTF-P-owned files from ${vendorConfig.name}.`);
812
828
  out.log(` ${c.dim('Unowned files and nonempty shared directories were not touched.')}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtf-p",
3
- "version": "0.7.4",
3
+ "version": "0.8.1",
4
4
  "description": "Portable, evidence-grounded academic writing workflows (papers, proposals, posters, presentations) for Clio Coder, Claude Code, Codex, GitHub Copilot CLI, OpenCode, Antigravity CLI, and Gemini CLI.",
5
5
  "bin": {
6
6
  "wtfp": "bin/install.js",
@@ -10,9 +10,9 @@
10
10
  "scripts": {
11
11
  "build:adapters": "node scripts/build-adapters.js",
12
12
  "check:adapters": "node scripts/build-adapters.js --check",
13
- "test:evaluation": "node evaluation/tools/lint.js && node test/compiler-v4-evidence.test.js && node test/dynamo-lifecycle-evidence.test.js && node test/evaluation-comparison.test.js && node test/evaluation.test.js && node test/evaluation-routing-runner.test.js && node test/evaluation-lifecycle.test.js && node test/evaluation-fleets.test.js && node test/nsf25-531-proposal-uat.test.js",
13
+ "test:evaluation": "node evaluation/tools/lint.js && node evaluation/tools/hash-fixtures.js --check && node test/compiler-v4-evidence.test.js && node test/dynamo-lifecycle-evidence.test.js && node test/evaluation-comparison.test.js && node test/evaluation.test.js && node test/evaluation-routing-runner.test.js && node test/evaluation-lifecycle.test.js && node test/evaluation-fleets.test.js && node test/evaluation-campaign.test.js && node test/nsf25-531-proposal-uat.test.js",
14
14
  "test:tools": "node test/lib/bib-index.test.js && node test/lib/bib-format.test.js && node test/lib/citation-ranker.test.js && node test/lib/analyze-impact.test.js && node test/lib/scholar-lookup.test.js && node test/lib/semantic-scholar.test.js && node test/lib/citation-fetcher.test.js && node test/lib/cite-nexus-client.test.js",
15
- "test:protocol": "node test/protocol-catalog.test.js && node test/canonical-workflows.test.js && node test/portable-roles.test.js && node test/project-protocol.test.js && node test/test-skills.test.js && npm run test:tools && npm run test:evaluation && node test/adapter-compiler.test.js && node test/tool-dispatcher.test.js",
15
+ "test:protocol": "node test/protocol-catalog.test.js && node test/canonical-workflows.test.js && node test/portable-roles.test.js && node test/project-protocol.test.js && node test/claim-coverage.test.js && node test/test-skills.test.js && npm run test:tools && npm run test:evaluation && node test/adapter-compiler.test.js && node test/tool-dispatcher.test.js",
16
16
  "test:installer": "node test/import-safety.test.js && node test/ownership.test.js && node test/ownership-races.test.js && node test/status-partial.test.js && node test/paths.js && node test/modern-targets.test.js && node test/clio-installer.test.js && node test/installer.test.js",
17
17
  "test:compatibility": "node test/sanity.js && node test/linter.js && node test/dry-run.js && node test/feature-tests.js",
18
18
  "test": "npm run check:adapters && npm run test:protocol && npm run test:installer && npm run test:compatibility",
@@ -29,13 +29,18 @@
29
29
  "project://sources/{source}",
30
30
  "project://evidence/{evidence}",
31
31
  "project://validations/{validation}",
32
- "project://paper/{artifact}"
32
+ "project://paper/{artifact}",
33
+ "project://checkpoints/{checkpoint}"
33
34
  ],
34
35
  "produces": [
35
36
  {
36
37
  "uri": "project://checkpoints/{checkpoint}",
37
38
  "mode": "create"
38
39
  },
40
+ {
41
+ "uri": "project://checkpoints/{checkpoint}",
42
+ "mode": "update"
43
+ },
39
44
  {
40
45
  "uri": "project://archives/checkpoints/{checkpoint}",
41
46
  "mode": "create"
@@ -60,6 +65,10 @@
60
65
  "id": "filesystem.create",
61
66
  "scope": "project://checkpoints/{checkpoint}, project://archives/checkpoints/{checkpoint}, project://archives/recovery/{artifact}"
62
67
  },
68
+ {
69
+ "id": "filesystem.modify",
70
+ "scope": "project://checkpoints/{checkpoint}"
71
+ },
63
72
  {
64
73
  "id": "filesystem.read",
65
74
  "scope": "declared project records and authored artifacts selected for the snapshot"
@@ -37,6 +37,10 @@
37
37
  "project://paper/{artifact}"
38
38
  ],
39
39
  "produces": [
40
+ {
41
+ "uri": "project://paper/{artifact}",
42
+ "mode": "create"
43
+ },
40
44
  {
41
45
  "uri": "project://paper/{artifact}",
42
46
  "mode": "update"
@@ -68,6 +72,10 @@
68
72
  {
69
73
  "uri": "project://validations/{validation}",
70
74
  "mode": "create"
75
+ },
76
+ {
77
+ "uri": "project://manifest",
78
+ "mode": "update"
71
79
  }
72
80
  ],
73
81
  "delegation": [
@@ -94,11 +102,11 @@
94
102
  },
95
103
  {
96
104
  "id": "filesystem.create",
97
- "scope": "project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://validations/{validation}"
105
+ "scope": "project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://validations/{validation}, project://paper/{artifact}"
98
106
  },
99
107
  {
100
108
  "id": "filesystem.modify",
101
- "scope": "project://paper/{artifact}, project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://sections/{section}, project://state"
109
+ "scope": "project://paper/{artifact}, project://sections/{section}/summary, project://checkpoints/{checkpoint}, project://sections/{section}, project://state, project://manifest"
102
110
  },
103
111
  {
104
112
  "id": "filesystem.read",
@@ -27,12 +27,21 @@
27
27
  "project://structure/outline",
28
28
  "project://sources/{source}",
29
29
  "project://evidence/{evidence}",
30
- "project://paper/{artifact}"
30
+ "project://paper/{artifact}",
31
+ "project://deliverables/latex/{artifact}"
31
32
  ],
32
33
  "produces": [
33
34
  {
34
35
  "uri": "project://deliverables/latex/{artifact}",
35
36
  "mode": "create"
37
+ },
38
+ {
39
+ "uri": "project://deliverables/latex/{artifact}",
40
+ "mode": "update"
41
+ },
42
+ {
43
+ "uri": "project://manifest",
44
+ "mode": "update"
36
45
  }
37
46
  ],
38
47
  "delegation": [],
@@ -45,9 +54,13 @@
45
54
  "id": "filesystem.create",
46
55
  "scope": "project://deliverables/latex/{artifact}"
47
56
  },
57
+ {
58
+ "id": "filesystem.modify",
59
+ "scope": "project://deliverables/latex/{artifact}, project://manifest"
60
+ },
48
61
  {
49
62
  "id": "filesystem.read",
50
- "scope": "project://manifest, project://config, project://structure/outline, project://sources/{source}, project://evidence/{evidence}, project://paper/{artifact}"
63
+ "scope": "project://manifest, project://config, project://structure/outline, project://sources/{source}, project://evidence/{evidence}, project://paper/{artifact}, project://deliverables/latex/{artifact}"
51
64
  },
52
65
  {
53
66
  "id": "filesystem.write",
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "reads": [
23
23
  "project://manifest",
24
+ "project://config",
24
25
  "project://decisions",
25
26
  "project://sections/{section}",
26
27
  "project://sections/{section}/plans/{plan}",
@@ -33,6 +34,14 @@
33
34
  {
34
35
  "uri": "project://sections/{section}/plans/{plan}",
35
36
  "mode": "create"
37
+ },
38
+ {
39
+ "uri": "project://checkpoints/{checkpoint}",
40
+ "mode": "create"
41
+ },
42
+ {
43
+ "uri": "project://sections/{section}",
44
+ "mode": "update"
36
45
  }
37
46
  ],
38
47
  "delegation": [],
@@ -40,19 +49,23 @@
40
49
  "effects": [
41
50
  {
42
51
  "id": "filesystem.create",
43
- "scope": "project://sections/{section}/plans/{plan}"
52
+ "scope": "project://sections/{section}/plans/{plan}, project://checkpoints/{checkpoint}"
53
+ },
54
+ {
55
+ "id": "filesystem.modify",
56
+ "scope": "project://sections/{section}"
44
57
  },
45
58
  {
46
59
  "id": "filesystem.read",
47
- "scope": "project://manifest, project://decisions, project://sections/{section}, project://sections/{section}/plans/{plan}, project://sections/{section}/reviews/{review}, project://sections/{section}/summary, project://validations/{validation}, project://paper/{artifact}"
60
+ "scope": "project://manifest, project://config, project://decisions, project://sections/{section}, project://sections/{section}/plans/{plan}, project://sections/{section}/reviews/{review}, project://sections/{section}/summary, project://validations/{validation}, project://paper/{artifact}"
48
61
  },
49
62
  {
50
63
  "id": "filesystem.write",
51
- "scope": "project://sections/{section}/plans/{plan}"
64
+ "scope": "project://sections/{section}/plans/{plan}, project://checkpoints/{checkpoint}, project://sections/{section}"
52
65
  },
53
66
  {
54
67
  "id": "user.gate",
55
- "scope": "revision priorities"
68
+ "scope": "revision priorities and approval of the exact revision plan"
56
69
  }
57
70
  ]
58
71
  }
@@ -24,7 +24,9 @@
24
24
  "project://manifest",
25
25
  "project://config",
26
26
  "project://decisions",
27
- "project://paper/{artifact}"
27
+ "project://paper/{artifact}",
28
+ "project://sections/{section}",
29
+ "project://state"
28
30
  ],
29
31
  "produces": [
30
32
  {
@@ -34,6 +36,14 @@
34
36
  {
35
37
  "uri": "project://validations/{validation}",
36
38
  "mode": "create"
39
+ },
40
+ {
41
+ "uri": "project://sections/{section}",
42
+ "mode": "update"
43
+ },
44
+ {
45
+ "uri": "project://state",
46
+ "mode": "update"
37
47
  }
38
48
  ],
39
49
  "delegation": [
@@ -55,11 +65,11 @@
55
65
  },
56
66
  {
57
67
  "id": "filesystem.modify",
58
- "scope": "project://paper/{artifact}"
68
+ "scope": "project://paper/{artifact}, project://sections/{section}, project://state"
59
69
  },
60
70
  {
61
71
  "id": "filesystem.read",
62
- "scope": "project://manifest, project://config, project://decisions, project://paper/{artifact}"
72
+ "scope": "project://manifest, project://config, project://decisions, project://paper/{artifact}, project://sections/{section}, project://state"
63
73
  },
64
74
  {
65
75
  "id": "user.gate",