wtf-p 0.5.0 → 0.6.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1783) hide show
  1. package/README.md +259 -205
  2. package/bin/commands/doctor.js +30 -9
  3. package/bin/commands/install-logic.js +573 -89
  4. package/bin/commands/list.js +4 -12
  5. package/bin/commands/status.js +15 -12
  6. package/bin/commands/update.js +5 -4
  7. package/bin/install.js +223 -39
  8. package/bin/lib/adapter-compiler.js +1362 -0
  9. package/bin/lib/adapter-metadata.js +12 -0
  10. package/bin/lib/analyze-impact.js +28 -24
  11. package/bin/lib/bib-format.js +2 -2
  12. package/bin/lib/bib-index.js +6 -6
  13. package/bin/lib/citation-fetcher.js +20 -20
  14. package/bin/lib/citation-ranker.js +44 -32
  15. package/bin/lib/manifest.js +141 -95
  16. package/bin/lib/native-registration.js +579 -0
  17. package/bin/lib/ownership.js +984 -0
  18. package/bin/lib/scholar-lookup.js +13 -13
  19. package/bin/lib/semantic-scholar.js +19 -19
  20. package/bin/lib/utils.js +109 -43
  21. package/bin/uninstall.js +776 -504
  22. package/package.json +23 -13
  23. package/protocol/actions/add-todo.json +52 -0
  24. package/protocol/actions/analyze-bib.json +97 -0
  25. package/protocol/actions/audit-milestone.json +63 -0
  26. package/protocol/actions/check-refs.json +80 -0
  27. package/protocol/actions/check-todos.json +52 -0
  28. package/protocol/actions/checkpoint.json +76 -0
  29. package/protocol/actions/contribute.json +57 -0
  30. package/protocol/actions/create-outline.json +84 -0
  31. package/protocol/actions/create-poster.json +59 -0
  32. package/protocol/actions/create-slides.json +59 -0
  33. package/protocol/actions/discuss-section.json +76 -0
  34. package/protocol/actions/execute-outline.json +116 -0
  35. package/protocol/actions/export-latex.json +65 -0
  36. package/protocol/actions/help.json +30 -0
  37. package/protocol/actions/insert-section.json +61 -0
  38. package/protocol/actions/list-assumptions.json +35 -0
  39. package/protocol/actions/map-project.json +57 -0
  40. package/protocol/actions/new-paper.json +70 -0
  41. package/protocol/actions/pause-writing.json +71 -0
  42. package/protocol/actions/plan-milestone-gaps.json +57 -0
  43. package/protocol/actions/plan-revision.json +58 -0
  44. package/protocol/actions/plan-section.json +100 -0
  45. package/protocol/actions/polish-prose.json +69 -0
  46. package/protocol/actions/progress.json +51 -0
  47. package/protocol/actions/quick.json +70 -0
  48. package/protocol/actions/remove-section.json +63 -0
  49. package/protocol/actions/report-bug.json +47 -0
  50. package/protocol/actions/request-feature.json +47 -0
  51. package/protocol/actions/research-gap.json +101 -0
  52. package/protocol/actions/resume-writing.json +65 -0
  53. package/protocol/actions/review-section.json +83 -0
  54. package/protocol/actions/settings.json +47 -0
  55. package/protocol/actions/submit-milestone.json +77 -0
  56. package/protocol/actions/update.json +42 -0
  57. package/protocol/actions/verify-work.json +63 -0
  58. package/protocol/actions/write-section.json +115 -0
  59. package/protocol/aliases.lock.json +42 -0
  60. package/protocol/catalog.json +127 -0
  61. package/protocol/effects.json +107 -0
  62. package/protocol/fleets/wtfp-draft-review.json +35 -0
  63. package/protocol/fleets/wtfp-plan-section.json +34 -0
  64. package/protocol/project/README.md +65 -0
  65. package/protocol/project/schemas/checkpoint.schema.json +102 -0
  66. package/protocol/project/schemas/common.schema.json +33 -0
  67. package/protocol/project/schemas/config.schema.json +69 -0
  68. package/protocol/project/schemas/decisions.schema.json +31 -0
  69. package/protocol/project/schemas/evidence.schema.json +48 -0
  70. package/protocol/project/schemas/manifest.schema.json +102 -0
  71. package/protocol/project/schemas/outline.schema.json +67 -0
  72. package/protocol/project/schemas/section.schema.json +95 -0
  73. package/protocol/project/schemas/source.schema.json +73 -0
  74. package/protocol/project/schemas/state.schema.json +58 -0
  75. package/protocol/project/schemas/validation.schema.json +74 -0
  76. package/protocol/project/templates/checkpoint.json +25 -0
  77. package/protocol/project/templates/config.json +31 -0
  78. package/protocol/project/templates/decisions.json +35 -0
  79. package/protocol/project/templates/evidence.json +18 -0
  80. package/protocol/project/templates/manifest.json +30 -0
  81. package/protocol/project/templates/outline.json +38 -0
  82. package/protocol/project/templates/section.json +32 -0
  83. package/protocol/project/templates/source.json +20 -0
  84. package/protocol/project/templates/state.json +22 -0
  85. package/protocol/project/templates/validation.json +32 -0
  86. package/protocol/roles/argument-verifier.md +62 -0
  87. package/protocol/roles/citation-expert.md +63 -0
  88. package/protocol/roles/citation-formatter.md +63 -0
  89. package/protocol/roles/coherence-checker.md +61 -0
  90. package/protocol/roles/outliner.md +68 -0
  91. package/protocol/roles/plan-checker.md +62 -0
  92. package/protocol/roles/prose-polisher.md +63 -0
  93. package/protocol/roles/research-synthesizer.md +65 -0
  94. package/protocol/roles/section-planner.md +65 -0
  95. package/protocol/roles/section-reviewer.md +62 -0
  96. package/protocol/roles/section-writer.md +66 -0
  97. package/protocol/schemas/action.schema.json +129 -0
  98. package/protocol/schemas/aliases.schema.json +26 -0
  99. package/protocol/schemas/catalog.schema.json +61 -0
  100. package/protocol/schemas/effects.schema.json +26 -0
  101. package/protocol/schemas/role-result.schema.json +74 -0
  102. package/protocol/schemas/tools.schema.json +26 -0
  103. package/protocol/skills/wtfp-deliver-research/SKILL.md +39 -0
  104. package/protocol/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  105. package/protocol/skills/wtfp-deliver-research/references/actions.md +77 -0
  106. package/protocol/skills/wtfp-manage-project/SKILL.md +40 -0
  107. package/protocol/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  108. package/protocol/skills/wtfp-manage-project/references/actions.md +91 -0
  109. package/protocol/skills/wtfp-plan-section/SKILL.md +40 -0
  110. package/protocol/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  111. package/protocol/skills/wtfp-plan-section/references/actions.md +115 -0
  112. package/protocol/skills/wtfp-research-literature/SKILL.md +37 -0
  113. package/protocol/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  114. package/protocol/skills/wtfp-research-literature/references/actions.md +75 -0
  115. package/protocol/skills/wtfp-review-manuscript/SKILL.md +40 -0
  116. package/protocol/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  117. package/protocol/skills/wtfp-review-manuscript/references/actions.md +96 -0
  118. package/protocol/skills/wtfp-start-project/SKILL.md +38 -0
  119. package/protocol/skills/wtfp-start-project/agents/openai.yaml +4 -0
  120. package/protocol/skills/wtfp-start-project/references/actions.md +80 -0
  121. package/protocol/skills/wtfp-write-section/SKILL.md +37 -0
  122. package/protocol/skills/wtfp-write-section/agents/openai.yaml +4 -0
  123. package/protocol/skills/wtfp-write-section/references/actions.md +69 -0
  124. package/protocol/tools.json +54 -0
  125. package/protocol/workflows/add-todo.md +32 -0
  126. package/protocol/workflows/analyze-bib.md +33 -0
  127. package/protocol/workflows/audit-milestone.md +32 -0
  128. package/protocol/workflows/check-refs.md +32 -0
  129. package/protocol/workflows/check-todos.md +32 -0
  130. package/protocol/workflows/checkpoint.md +32 -0
  131. package/protocol/workflows/contribute.md +30 -0
  132. package/protocol/workflows/create-outline.md +33 -0
  133. package/protocol/workflows/create-poster.md +32 -0
  134. package/protocol/workflows/create-slides.md +32 -0
  135. package/protocol/workflows/discuss-section.md +32 -0
  136. package/protocol/workflows/execute-outline.md +32 -0
  137. package/protocol/workflows/export-latex.md +32 -0
  138. package/protocol/workflows/help.md +30 -0
  139. package/protocol/workflows/insert-section.md +32 -0
  140. package/protocol/workflows/list-assumptions.md +32 -0
  141. package/protocol/workflows/map-project.md +32 -0
  142. package/protocol/workflows/new-paper.md +37 -0
  143. package/protocol/workflows/pause-writing.md +32 -0
  144. package/protocol/workflows/plan-milestone-gaps.md +32 -0
  145. package/protocol/workflows/plan-revision.md +32 -0
  146. package/protocol/workflows/plan-section.md +34 -0
  147. package/protocol/workflows/polish-prose.md +32 -0
  148. package/protocol/workflows/progress.md +32 -0
  149. package/protocol/workflows/quick.md +32 -0
  150. package/protocol/workflows/remove-section.md +32 -0
  151. package/protocol/workflows/report-bug.md +30 -0
  152. package/protocol/workflows/request-feature.md +30 -0
  153. package/protocol/workflows/research-gap.md +32 -0
  154. package/protocol/workflows/resume-writing.md +34 -0
  155. package/protocol/workflows/review-section.md +33 -0
  156. package/protocol/workflows/settings.md +32 -0
  157. package/protocol/workflows/submit-milestone.md +32 -0
  158. package/protocol/workflows/update.md +30 -0
  159. package/protocol/workflows/verify-work.md +32 -0
  160. package/protocol/workflows/write-section.md +34 -0
  161. package/scripts/build-adapters.js +30 -0
  162. package/vendors/antigravity/.wtfp-generated.json +792 -0
  163. package/vendors/antigravity/actions/add-todo.json +52 -0
  164. package/vendors/antigravity/actions/analyze-bib.json +97 -0
  165. package/vendors/antigravity/actions/audit-milestone.json +63 -0
  166. package/vendors/antigravity/actions/check-refs.json +80 -0
  167. package/vendors/antigravity/actions/check-todos.json +52 -0
  168. package/vendors/antigravity/actions/checkpoint.json +76 -0
  169. package/vendors/antigravity/actions/contribute.json +57 -0
  170. package/vendors/antigravity/actions/create-outline.json +84 -0
  171. package/vendors/antigravity/actions/create-poster.json +59 -0
  172. package/vendors/antigravity/actions/create-slides.json +59 -0
  173. package/vendors/antigravity/actions/discuss-section.json +76 -0
  174. package/vendors/antigravity/actions/execute-outline.json +116 -0
  175. package/vendors/antigravity/actions/export-latex.json +65 -0
  176. package/vendors/antigravity/actions/help.json +30 -0
  177. package/vendors/antigravity/actions/insert-section.json +61 -0
  178. package/vendors/antigravity/actions/list-assumptions.json +35 -0
  179. package/vendors/antigravity/actions/map-project.json +57 -0
  180. package/vendors/antigravity/actions/new-paper.json +70 -0
  181. package/vendors/antigravity/actions/pause-writing.json +71 -0
  182. package/vendors/antigravity/actions/plan-milestone-gaps.json +57 -0
  183. package/vendors/antigravity/actions/plan-revision.json +58 -0
  184. package/vendors/antigravity/actions/plan-section.json +100 -0
  185. package/vendors/antigravity/actions/polish-prose.json +69 -0
  186. package/vendors/antigravity/actions/progress.json +51 -0
  187. package/vendors/antigravity/actions/quick.json +70 -0
  188. package/vendors/antigravity/actions/remove-section.json +63 -0
  189. package/vendors/antigravity/actions/report-bug.json +47 -0
  190. package/vendors/antigravity/actions/request-feature.json +47 -0
  191. package/vendors/antigravity/actions/research-gap.json +101 -0
  192. package/vendors/antigravity/actions/resume-writing.json +65 -0
  193. package/vendors/antigravity/actions/review-section.json +83 -0
  194. package/vendors/antigravity/actions/settings.json +47 -0
  195. package/vendors/antigravity/actions/submit-milestone.json +77 -0
  196. package/vendors/antigravity/actions/update.json +42 -0
  197. package/vendors/antigravity/actions/verify-work.json +63 -0
  198. package/vendors/antigravity/actions/write-section.json +115 -0
  199. package/vendors/antigravity/agents/wtfp-argument-verifier.md +65 -0
  200. package/vendors/antigravity/agents/wtfp-citation-expert.md +68 -0
  201. package/vendors/antigravity/agents/wtfp-citation-formatter.md +68 -0
  202. package/vendors/antigravity/agents/wtfp-coherence-checker.md +64 -0
  203. package/vendors/antigravity/agents/wtfp-outliner.md +73 -0
  204. package/vendors/antigravity/agents/wtfp-plan-checker.md +65 -0
  205. package/vendors/antigravity/agents/wtfp-prose-polisher.md +68 -0
  206. package/vendors/antigravity/agents/wtfp-research-synthesizer.md +70 -0
  207. package/vendors/antigravity/agents/wtfp-section-planner.md +70 -0
  208. package/vendors/antigravity/agents/wtfp-section-reviewer.md +65 -0
  209. package/vendors/antigravity/agents/wtfp-section-writer.md +71 -0
  210. package/vendors/antigravity/aliases.lock.json +42 -0
  211. package/vendors/antigravity/catalog.json +127 -0
  212. package/vendors/antigravity/commands/wtfp-add-todo.md +59 -0
  213. package/vendors/antigravity/commands/wtfp-analyze-bib.md +17 -0
  214. package/vendors/antigravity/commands/wtfp-audit-milestone.md +17 -0
  215. package/vendors/antigravity/commands/wtfp-check-refs.md +17 -0
  216. package/vendors/antigravity/commands/wtfp-check-todos.md +58 -0
  217. package/vendors/antigravity/commands/wtfp-checkpoint.md +74 -0
  218. package/vendors/antigravity/commands/wtfp-contribute.md +17 -0
  219. package/vendors/antigravity/commands/wtfp-create-outline.md +74 -0
  220. package/vendors/antigravity/commands/wtfp-create-poster.md +17 -0
  221. package/vendors/antigravity/commands/wtfp-create-slides.md +17 -0
  222. package/vendors/antigravity/commands/wtfp-discuss-section.md +64 -0
  223. package/vendors/antigravity/commands/wtfp-execute-outline.md +75 -0
  224. package/vendors/antigravity/commands/wtfp-export-latex.md +17 -0
  225. package/vendors/antigravity/commands/wtfp-help.md +48 -0
  226. package/vendors/antigravity/commands/wtfp-insert-section.md +60 -0
  227. package/vendors/antigravity/commands/wtfp-list-assumptions.md +59 -0
  228. package/vendors/antigravity/commands/wtfp-map-project.md +61 -0
  229. package/vendors/antigravity/commands/wtfp-new-paper.md +69 -0
  230. package/vendors/antigravity/commands/wtfp-pause-writing.md +65 -0
  231. package/vendors/antigravity/commands/wtfp-plan-milestone-gaps.md +62 -0
  232. package/vendors/antigravity/commands/wtfp-plan-revision.md +62 -0
  233. package/vendors/antigravity/commands/wtfp-plan-section.md +77 -0
  234. package/vendors/antigravity/commands/wtfp-polish-prose.md +63 -0
  235. package/vendors/antigravity/commands/wtfp-progress.md +72 -0
  236. package/vendors/antigravity/commands/wtfp-quick.md +63 -0
  237. package/vendors/antigravity/commands/wtfp-remove-section.md +17 -0
  238. package/vendors/antigravity/commands/wtfp-report-bug.md +17 -0
  239. package/vendors/antigravity/commands/wtfp-request-feature.md +17 -0
  240. package/vendors/antigravity/commands/wtfp-research-gap.md +17 -0
  241. package/vendors/antigravity/commands/wtfp-resume-writing.md +72 -0
  242. package/vendors/antigravity/commands/wtfp-review-section.md +68 -0
  243. package/vendors/antigravity/commands/wtfp-settings.md +56 -0
  244. package/vendors/antigravity/commands/wtfp-submit-milestone.md +72 -0
  245. package/vendors/antigravity/commands/wtfp-update.md +17 -0
  246. package/vendors/antigravity/commands/wtfp-verify-work.md +62 -0
  247. package/vendors/antigravity/commands/wtfp-write-section.md +77 -0
  248. package/vendors/antigravity/compatibility/action-availability.json +314 -0
  249. package/vendors/antigravity/effects.json +107 -0
  250. package/vendors/antigravity/fleets/wtfp-draft-review.json +35 -0
  251. package/vendors/antigravity/fleets/wtfp-plan-section.json +34 -0
  252. package/vendors/antigravity/plugin.json +11 -0
  253. package/vendors/antigravity/project/README.md +65 -0
  254. package/vendors/antigravity/project/schemas/checkpoint.schema.json +102 -0
  255. package/vendors/antigravity/project/schemas/common.schema.json +33 -0
  256. package/vendors/antigravity/project/schemas/config.schema.json +69 -0
  257. package/vendors/antigravity/project/schemas/decisions.schema.json +31 -0
  258. package/vendors/antigravity/project/schemas/evidence.schema.json +48 -0
  259. package/vendors/antigravity/project/schemas/manifest.schema.json +102 -0
  260. package/vendors/antigravity/project/schemas/outline.schema.json +67 -0
  261. package/vendors/antigravity/project/schemas/section.schema.json +95 -0
  262. package/vendors/antigravity/project/schemas/source.schema.json +73 -0
  263. package/vendors/antigravity/project/schemas/state.schema.json +58 -0
  264. package/vendors/antigravity/project/schemas/validation.schema.json +74 -0
  265. package/vendors/antigravity/project/templates/checkpoint.json +25 -0
  266. package/vendors/antigravity/project/templates/config.json +31 -0
  267. package/vendors/antigravity/project/templates/decisions.json +35 -0
  268. package/vendors/antigravity/project/templates/evidence.json +18 -0
  269. package/vendors/antigravity/project/templates/manifest.json +30 -0
  270. package/vendors/antigravity/project/templates/outline.json +38 -0
  271. package/vendors/antigravity/project/templates/section.json +32 -0
  272. package/vendors/antigravity/project/templates/source.json +20 -0
  273. package/vendors/antigravity/project/templates/state.json +22 -0
  274. package/vendors/antigravity/project/templates/validation.json +32 -0
  275. package/vendors/antigravity/repository/CONTRIBUTING.md +183 -0
  276. package/vendors/antigravity/roles/argument-verifier.md +62 -0
  277. package/vendors/antigravity/roles/citation-expert.md +63 -0
  278. package/vendors/antigravity/roles/citation-formatter.md +63 -0
  279. package/vendors/antigravity/roles/coherence-checker.md +61 -0
  280. package/vendors/antigravity/roles/outliner.md +68 -0
  281. package/vendors/antigravity/roles/plan-checker.md +62 -0
  282. package/vendors/antigravity/roles/prose-polisher.md +63 -0
  283. package/vendors/antigravity/roles/research-synthesizer.md +65 -0
  284. package/vendors/antigravity/roles/section-planner.md +65 -0
  285. package/vendors/antigravity/roles/section-reviewer.md +62 -0
  286. package/vendors/antigravity/roles/section-writer.md +66 -0
  287. package/vendors/antigravity/schemas/action.schema.json +129 -0
  288. package/vendors/antigravity/schemas/aliases.schema.json +26 -0
  289. package/vendors/antigravity/schemas/catalog.schema.json +61 -0
  290. package/vendors/antigravity/schemas/effects.schema.json +26 -0
  291. package/vendors/antigravity/schemas/role-result.schema.json +74 -0
  292. package/vendors/antigravity/schemas/tools.schema.json +26 -0
  293. package/vendors/antigravity/skills/wtfp-deliver-research/SKILL.md +39 -0
  294. package/vendors/antigravity/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  295. package/vendors/antigravity/skills/wtfp-deliver-research/references/actions.md +117 -0
  296. package/vendors/antigravity/skills/wtfp-manage-project/SKILL.md +40 -0
  297. package/vendors/antigravity/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  298. package/vendors/antigravity/skills/wtfp-manage-project/references/actions.md +91 -0
  299. package/vendors/antigravity/skills/wtfp-plan-section/SKILL.md +40 -0
  300. package/vendors/antigravity/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  301. package/vendors/antigravity/skills/wtfp-plan-section/references/actions.md +131 -0
  302. package/vendors/antigravity/skills/wtfp-research-literature/SKILL.md +37 -0
  303. package/vendors/antigravity/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  304. package/vendors/antigravity/skills/wtfp-research-literature/references/actions.md +115 -0
  305. package/vendors/antigravity/skills/wtfp-review-manuscript/SKILL.md +40 -0
  306. package/vendors/antigravity/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  307. package/vendors/antigravity/skills/wtfp-review-manuscript/references/actions.md +112 -0
  308. package/vendors/antigravity/skills/wtfp-start-project/SKILL.md +38 -0
  309. package/vendors/antigravity/skills/wtfp-start-project/agents/openai.yaml +4 -0
  310. package/vendors/antigravity/skills/wtfp-start-project/references/actions.md +80 -0
  311. package/vendors/antigravity/skills/wtfp-write-section/SKILL.md +37 -0
  312. package/vendors/antigravity/skills/wtfp-write-section/agents/openai.yaml +4 -0
  313. package/vendors/antigravity/skills/wtfp-write-section/references/actions.md +69 -0
  314. package/vendors/antigravity/tools/README.md +13 -0
  315. package/vendors/antigravity/tools/bibliography/analyze-impact.js +109 -0
  316. package/vendors/antigravity/tools/bibliography/format.js +161 -0
  317. package/vendors/antigravity/tools/bibliography/index.js +104 -0
  318. package/vendors/antigravity/tools/citation/fetch.js +299 -0
  319. package/vendors/antigravity/tools/citation/rank.js +145 -0
  320. package/vendors/antigravity/tools/citation/scholar-lookup.js +188 -0
  321. package/vendors/antigravity/tools/citation/semantic-scholar.js +184 -0
  322. package/vendors/antigravity/tools.json +54 -0
  323. package/vendors/antigravity/workflows/add-todo.md +32 -0
  324. package/vendors/antigravity/workflows/analyze-bib.md +33 -0
  325. package/vendors/antigravity/workflows/audit-milestone.md +32 -0
  326. package/vendors/antigravity/workflows/check-refs.md +32 -0
  327. package/vendors/antigravity/workflows/check-todos.md +32 -0
  328. package/vendors/antigravity/workflows/checkpoint.md +32 -0
  329. package/vendors/antigravity/workflows/contribute.md +30 -0
  330. package/vendors/antigravity/workflows/create-outline.md +33 -0
  331. package/vendors/antigravity/workflows/create-poster.md +32 -0
  332. package/vendors/antigravity/workflows/create-slides.md +32 -0
  333. package/vendors/antigravity/workflows/discuss-section.md +32 -0
  334. package/vendors/antigravity/workflows/execute-outline.md +32 -0
  335. package/vendors/antigravity/workflows/export-latex.md +32 -0
  336. package/vendors/antigravity/workflows/help.md +30 -0
  337. package/vendors/antigravity/workflows/insert-section.md +32 -0
  338. package/vendors/antigravity/workflows/list-assumptions.md +32 -0
  339. package/vendors/antigravity/workflows/map-project.md +32 -0
  340. package/vendors/antigravity/workflows/new-paper.md +37 -0
  341. package/vendors/antigravity/workflows/pause-writing.md +32 -0
  342. package/vendors/antigravity/workflows/plan-milestone-gaps.md +32 -0
  343. package/vendors/antigravity/workflows/plan-revision.md +32 -0
  344. package/vendors/antigravity/workflows/plan-section.md +34 -0
  345. package/vendors/antigravity/workflows/polish-prose.md +32 -0
  346. package/vendors/antigravity/workflows/progress.md +32 -0
  347. package/vendors/antigravity/workflows/quick.md +32 -0
  348. package/vendors/antigravity/workflows/remove-section.md +32 -0
  349. package/vendors/antigravity/workflows/report-bug.md +30 -0
  350. package/vendors/antigravity/workflows/request-feature.md +30 -0
  351. package/vendors/antigravity/workflows/research-gap.md +32 -0
  352. package/vendors/antigravity/workflows/resume-writing.md +34 -0
  353. package/vendors/antigravity/workflows/review-section.md +33 -0
  354. package/vendors/antigravity/workflows/settings.md +32 -0
  355. package/vendors/antigravity/workflows/submit-milestone.md +32 -0
  356. package/vendors/antigravity/workflows/update.md +30 -0
  357. package/vendors/antigravity/workflows/verify-work.md +32 -0
  358. package/vendors/antigravity/workflows/write-section.md +34 -0
  359. package/vendors/claude/.claude-plugin/marketplace.json +24 -0
  360. package/vendors/claude/.claude-plugin/plugin.json +3 -3
  361. package/vendors/claude/.wtfp-generated.json +796 -0
  362. package/vendors/claude/actions/add-todo.json +52 -0
  363. package/vendors/claude/actions/analyze-bib.json +97 -0
  364. package/vendors/claude/actions/audit-milestone.json +63 -0
  365. package/vendors/claude/actions/check-refs.json +80 -0
  366. package/vendors/claude/actions/check-todos.json +52 -0
  367. package/vendors/claude/actions/checkpoint.json +76 -0
  368. package/vendors/claude/actions/contribute.json +57 -0
  369. package/vendors/claude/actions/create-outline.json +84 -0
  370. package/vendors/claude/actions/create-poster.json +59 -0
  371. package/vendors/claude/actions/create-slides.json +59 -0
  372. package/vendors/claude/actions/discuss-section.json +76 -0
  373. package/vendors/claude/actions/execute-outline.json +116 -0
  374. package/vendors/claude/actions/export-latex.json +65 -0
  375. package/vendors/claude/actions/help.json +30 -0
  376. package/vendors/claude/actions/insert-section.json +61 -0
  377. package/vendors/claude/actions/list-assumptions.json +35 -0
  378. package/vendors/claude/actions/map-project.json +57 -0
  379. package/vendors/claude/actions/new-paper.json +70 -0
  380. package/vendors/claude/actions/pause-writing.json +71 -0
  381. package/vendors/claude/actions/plan-milestone-gaps.json +57 -0
  382. package/vendors/claude/actions/plan-revision.json +58 -0
  383. package/vendors/claude/actions/plan-section.json +100 -0
  384. package/vendors/claude/actions/polish-prose.json +69 -0
  385. package/vendors/claude/actions/progress.json +51 -0
  386. package/vendors/claude/actions/quick.json +70 -0
  387. package/vendors/claude/actions/remove-section.json +63 -0
  388. package/vendors/claude/actions/report-bug.json +47 -0
  389. package/vendors/claude/actions/request-feature.json +47 -0
  390. package/vendors/claude/actions/research-gap.json +101 -0
  391. package/vendors/claude/actions/resume-writing.json +65 -0
  392. package/vendors/claude/actions/review-section.json +83 -0
  393. package/vendors/claude/actions/settings.json +47 -0
  394. package/vendors/claude/actions/submit-milestone.json +77 -0
  395. package/vendors/claude/actions/update.json +42 -0
  396. package/vendors/claude/actions/verify-work.json +63 -0
  397. package/vendors/claude/actions/write-section.json +115 -0
  398. package/vendors/claude/agents/wtfp/argument-verifier.md +42 -166
  399. package/vendors/claude/agents/wtfp/citation-expert.md +51 -28
  400. package/vendors/claude/agents/wtfp/citation-formatter.md +52 -26
  401. package/vendors/claude/agents/wtfp/coherence-checker.md +41 -144
  402. package/vendors/claude/agents/wtfp/outliner.md +47 -233
  403. package/vendors/claude/agents/wtfp/plan-checker.md +42 -226
  404. package/vendors/claude/agents/wtfp/prose-polisher.md +58 -156
  405. package/vendors/claude/agents/wtfp/research-synthesizer.md +47 -192
  406. package/vendors/claude/agents/wtfp/section-planner.md +46 -340
  407. package/vendors/claude/agents/wtfp/section-reviewer.md +42 -159
  408. package/vendors/claude/agents/wtfp/section-writer.md +46 -287
  409. package/vendors/claude/aliases.lock.json +42 -0
  410. package/vendors/claude/catalog.json +127 -0
  411. package/vendors/claude/commands/add-todo.md +58 -0
  412. package/vendors/claude/commands/analyze-bib.md +16 -0
  413. package/vendors/claude/commands/audit-milestone.md +16 -0
  414. package/vendors/claude/commands/check-refs.md +16 -0
  415. package/vendors/claude/commands/check-todos.md +57 -0
  416. package/vendors/claude/commands/checkpoint.md +73 -0
  417. package/vendors/claude/commands/contribute.md +16 -0
  418. package/vendors/claude/commands/create-outline.md +73 -0
  419. package/vendors/claude/commands/create-poster.md +16 -0
  420. package/vendors/claude/commands/create-slides.md +16 -0
  421. package/vendors/claude/commands/discuss-section.md +63 -0
  422. package/vendors/claude/commands/execute-outline.md +74 -0
  423. package/vendors/claude/commands/export-latex.md +16 -0
  424. package/vendors/claude/commands/help.md +47 -0
  425. package/vendors/claude/commands/insert-section.md +59 -0
  426. package/vendors/claude/commands/list-assumptions.md +58 -0
  427. package/vendors/claude/commands/map-project.md +60 -0
  428. package/vendors/claude/commands/new-paper.md +68 -0
  429. package/vendors/claude/commands/pause-writing.md +64 -0
  430. package/vendors/claude/commands/plan-milestone-gaps.md +61 -0
  431. package/vendors/claude/commands/plan-revision.md +61 -0
  432. package/vendors/claude/commands/plan-section.md +76 -0
  433. package/vendors/claude/commands/polish-prose.md +62 -0
  434. package/vendors/claude/commands/progress.md +71 -0
  435. package/vendors/claude/commands/quick.md +62 -0
  436. package/vendors/claude/commands/remove-section.md +16 -0
  437. package/vendors/claude/commands/report-bug.md +16 -0
  438. package/vendors/claude/commands/request-feature.md +16 -0
  439. package/vendors/claude/commands/research-gap.md +16 -0
  440. package/vendors/claude/commands/resume-writing.md +71 -0
  441. package/vendors/claude/commands/review-section.md +67 -0
  442. package/vendors/claude/commands/settings.md +55 -0
  443. package/vendors/claude/commands/submit-milestone.md +71 -0
  444. package/vendors/claude/commands/update.md +16 -0
  445. package/vendors/claude/commands/verify-work.md +61 -0
  446. package/vendors/claude/commands/write-section.md +76 -0
  447. package/vendors/claude/compatibility/action-availability.json +314 -0
  448. package/vendors/claude/effects.json +107 -0
  449. package/vendors/claude/fleets/wtfp-draft-review.json +35 -0
  450. package/vendors/claude/fleets/wtfp-plan-section.json +34 -0
  451. package/vendors/claude/project/README.md +65 -0
  452. package/vendors/claude/project/schemas/checkpoint.schema.json +102 -0
  453. package/vendors/claude/project/schemas/common.schema.json +33 -0
  454. package/vendors/claude/project/schemas/config.schema.json +69 -0
  455. package/vendors/claude/project/schemas/decisions.schema.json +31 -0
  456. package/vendors/claude/project/schemas/evidence.schema.json +48 -0
  457. package/vendors/claude/project/schemas/manifest.schema.json +102 -0
  458. package/vendors/claude/project/schemas/outline.schema.json +67 -0
  459. package/vendors/claude/project/schemas/section.schema.json +95 -0
  460. package/vendors/claude/project/schemas/source.schema.json +73 -0
  461. package/vendors/claude/project/schemas/state.schema.json +58 -0
  462. package/vendors/claude/project/schemas/validation.schema.json +74 -0
  463. package/vendors/claude/project/templates/checkpoint.json +25 -0
  464. package/vendors/claude/project/templates/config.json +31 -0
  465. package/vendors/claude/project/templates/decisions.json +35 -0
  466. package/vendors/claude/project/templates/evidence.json +18 -0
  467. package/vendors/claude/project/templates/manifest.json +30 -0
  468. package/vendors/claude/project/templates/outline.json +38 -0
  469. package/vendors/claude/project/templates/section.json +32 -0
  470. package/vendors/claude/project/templates/source.json +20 -0
  471. package/vendors/claude/project/templates/state.json +22 -0
  472. package/vendors/claude/project/templates/validation.json +32 -0
  473. package/vendors/claude/repository/CONTRIBUTING.md +183 -0
  474. package/vendors/claude/roles/argument-verifier.md +62 -0
  475. package/vendors/claude/roles/citation-expert.md +63 -0
  476. package/vendors/claude/roles/citation-formatter.md +63 -0
  477. package/vendors/claude/roles/coherence-checker.md +61 -0
  478. package/vendors/claude/roles/outliner.md +68 -0
  479. package/vendors/claude/roles/plan-checker.md +62 -0
  480. package/vendors/claude/roles/prose-polisher.md +63 -0
  481. package/vendors/claude/roles/research-synthesizer.md +65 -0
  482. package/vendors/claude/roles/section-planner.md +65 -0
  483. package/vendors/claude/roles/section-reviewer.md +62 -0
  484. package/vendors/claude/roles/section-writer.md +66 -0
  485. package/vendors/claude/schemas/action.schema.json +129 -0
  486. package/vendors/claude/schemas/aliases.schema.json +26 -0
  487. package/vendors/claude/schemas/catalog.schema.json +61 -0
  488. package/vendors/claude/schemas/effects.schema.json +26 -0
  489. package/vendors/claude/schemas/role-result.schema.json +74 -0
  490. package/vendors/claude/schemas/tools.schema.json +26 -0
  491. package/vendors/claude/skills/wtfp-deliver-research/SKILL.md +39 -0
  492. package/vendors/claude/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  493. package/vendors/claude/skills/wtfp-deliver-research/references/actions.md +117 -0
  494. package/vendors/claude/skills/wtfp-manage-project/SKILL.md +40 -0
  495. package/vendors/claude/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  496. package/vendors/claude/skills/wtfp-manage-project/references/actions.md +91 -0
  497. package/vendors/claude/skills/wtfp-plan-section/SKILL.md +40 -0
  498. package/vendors/claude/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  499. package/vendors/claude/skills/wtfp-plan-section/references/actions.md +131 -0
  500. package/vendors/claude/skills/wtfp-research-literature/SKILL.md +37 -0
  501. package/vendors/claude/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  502. package/vendors/claude/skills/wtfp-research-literature/references/actions.md +115 -0
  503. package/vendors/claude/skills/wtfp-review-manuscript/SKILL.md +40 -0
  504. package/vendors/claude/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  505. package/vendors/claude/skills/wtfp-review-manuscript/references/actions.md +112 -0
  506. package/vendors/claude/skills/wtfp-start-project/SKILL.md +38 -0
  507. package/vendors/claude/skills/wtfp-start-project/agents/openai.yaml +4 -0
  508. package/vendors/claude/skills/wtfp-start-project/references/actions.md +80 -0
  509. package/vendors/claude/skills/wtfp-write-section/SKILL.md +37 -0
  510. package/vendors/claude/skills/wtfp-write-section/agents/openai.yaml +4 -0
  511. package/vendors/claude/skills/wtfp-write-section/references/actions.md +69 -0
  512. package/vendors/claude/tools/README.md +13 -0
  513. package/vendors/claude/tools/bibliography/analyze-impact.js +109 -0
  514. package/vendors/claude/tools/bibliography/format.js +161 -0
  515. package/vendors/claude/tools/bibliography/index.js +104 -0
  516. package/vendors/claude/tools/citation/fetch.js +299 -0
  517. package/vendors/claude/tools/citation/rank.js +145 -0
  518. package/vendors/claude/tools/citation/scholar-lookup.js +188 -0
  519. package/vendors/claude/tools/citation/semantic-scholar.js +184 -0
  520. package/vendors/claude/tools.json +54 -0
  521. package/vendors/claude/workflows/add-todo.md +32 -0
  522. package/vendors/claude/workflows/analyze-bib.md +33 -0
  523. package/vendors/claude/workflows/audit-milestone.md +32 -0
  524. package/vendors/claude/workflows/check-refs.md +32 -0
  525. package/vendors/claude/workflows/check-todos.md +32 -0
  526. package/vendors/claude/workflows/checkpoint.md +32 -0
  527. package/vendors/claude/workflows/contribute.md +30 -0
  528. package/vendors/claude/workflows/create-outline.md +33 -0
  529. package/vendors/claude/workflows/create-poster.md +32 -0
  530. package/vendors/claude/workflows/create-slides.md +32 -0
  531. package/vendors/claude/workflows/discuss-section.md +32 -0
  532. package/vendors/claude/workflows/execute-outline.md +32 -0
  533. package/vendors/claude/workflows/export-latex.md +32 -0
  534. package/vendors/claude/workflows/help.md +30 -0
  535. package/vendors/claude/workflows/insert-section.md +32 -0
  536. package/vendors/claude/workflows/list-assumptions.md +32 -0
  537. package/vendors/claude/workflows/map-project.md +32 -0
  538. package/vendors/claude/workflows/new-paper.md +37 -0
  539. package/vendors/claude/workflows/pause-writing.md +32 -0
  540. package/vendors/claude/workflows/plan-milestone-gaps.md +32 -0
  541. package/vendors/claude/workflows/plan-revision.md +32 -0
  542. package/vendors/claude/workflows/plan-section.md +34 -0
  543. package/vendors/claude/workflows/polish-prose.md +32 -0
  544. package/vendors/claude/workflows/progress.md +32 -0
  545. package/vendors/claude/workflows/quick.md +32 -0
  546. package/vendors/claude/workflows/remove-section.md +32 -0
  547. package/vendors/claude/workflows/report-bug.md +30 -0
  548. package/vendors/claude/workflows/request-feature.md +30 -0
  549. package/vendors/claude/workflows/research-gap.md +32 -0
  550. package/vendors/claude/workflows/resume-writing.md +34 -0
  551. package/vendors/claude/workflows/review-section.md +33 -0
  552. package/vendors/claude/workflows/settings.md +32 -0
  553. package/vendors/claude/workflows/submit-milestone.md +32 -0
  554. package/vendors/claude/workflows/update.md +30 -0
  555. package/vendors/claude/workflows/verify-work.md +32 -0
  556. package/vendors/claude/workflows/write-section.md +34 -0
  557. package/vendors/clio/.wtfp-generated.json +936 -0
  558. package/vendors/clio/actions/add-todo.json +52 -0
  559. package/vendors/clio/actions/analyze-bib.json +97 -0
  560. package/vendors/clio/actions/audit-milestone.json +63 -0
  561. package/vendors/clio/actions/check-refs.json +80 -0
  562. package/vendors/clio/actions/check-todos.json +52 -0
  563. package/vendors/clio/actions/checkpoint.json +76 -0
  564. package/vendors/clio/actions/contribute.json +57 -0
  565. package/vendors/clio/actions/create-outline.json +84 -0
  566. package/vendors/clio/actions/create-poster.json +59 -0
  567. package/vendors/clio/actions/create-slides.json +59 -0
  568. package/vendors/clio/actions/discuss-section.json +76 -0
  569. package/vendors/clio/actions/execute-outline.json +116 -0
  570. package/vendors/clio/actions/export-latex.json +65 -0
  571. package/vendors/clio/actions/help.json +30 -0
  572. package/vendors/clio/actions/insert-section.json +61 -0
  573. package/vendors/clio/actions/list-assumptions.json +35 -0
  574. package/vendors/clio/actions/map-project.json +57 -0
  575. package/vendors/clio/actions/new-paper.json +70 -0
  576. package/vendors/clio/actions/pause-writing.json +71 -0
  577. package/vendors/clio/actions/plan-milestone-gaps.json +57 -0
  578. package/vendors/clio/actions/plan-revision.json +58 -0
  579. package/vendors/clio/actions/plan-section.json +100 -0
  580. package/vendors/clio/actions/polish-prose.json +69 -0
  581. package/vendors/clio/actions/progress.json +51 -0
  582. package/vendors/clio/actions/quick.json +70 -0
  583. package/vendors/clio/actions/remove-section.json +63 -0
  584. package/vendors/clio/actions/report-bug.json +47 -0
  585. package/vendors/clio/actions/request-feature.json +47 -0
  586. package/vendors/clio/actions/research-gap.json +101 -0
  587. package/vendors/clio/actions/resume-writing.json +65 -0
  588. package/vendors/clio/actions/review-section.json +83 -0
  589. package/vendors/clio/actions/settings.json +47 -0
  590. package/vendors/clio/actions/submit-milestone.json +77 -0
  591. package/vendors/clio/actions/update.json +42 -0
  592. package/vendors/clio/actions/verify-work.json +63 -0
  593. package/vendors/clio/actions/write-section.json +115 -0
  594. package/vendors/clio/agents/wtfp-argument-verifier.md +60 -0
  595. package/vendors/clio/agents/wtfp-citation-expert.md +61 -0
  596. package/vendors/clio/agents/wtfp-citation-formatter.md +61 -0
  597. package/vendors/clio/agents/wtfp-coherence-checker.md +59 -0
  598. package/vendors/clio/agents/wtfp-outliner.md +66 -0
  599. package/vendors/clio/agents/wtfp-plan-checker.md +60 -0
  600. package/vendors/clio/agents/wtfp-prose-polisher.md +61 -0
  601. package/vendors/clio/agents/wtfp-research-synthesizer.md +63 -0
  602. package/vendors/clio/agents/wtfp-section-planner.md +63 -0
  603. package/vendors/clio/agents/wtfp-section-reviewer.md +60 -0
  604. package/vendors/clio/agents/wtfp-section-writer.md +64 -0
  605. package/vendors/clio/aliases.lock.json +42 -0
  606. package/vendors/clio/catalog.json +127 -0
  607. package/vendors/clio/clio-coder-extension.yaml +12 -0
  608. package/vendors/clio/compatibility/action-availability.json +323 -0
  609. package/vendors/clio/effects.json +107 -0
  610. package/vendors/clio/fleets/wtfp-draft-review.md +25 -0
  611. package/vendors/clio/fleets/wtfp-plan-section.md +23 -0
  612. package/vendors/clio/project/README.md +65 -0
  613. package/vendors/clio/project/schemas/checkpoint.schema.json +102 -0
  614. package/vendors/clio/project/schemas/common.schema.json +33 -0
  615. package/vendors/clio/project/schemas/config.schema.json +69 -0
  616. package/vendors/clio/project/schemas/decisions.schema.json +31 -0
  617. package/vendors/clio/project/schemas/evidence.schema.json +48 -0
  618. package/vendors/clio/project/schemas/manifest.schema.json +102 -0
  619. package/vendors/clio/project/schemas/outline.schema.json +67 -0
  620. package/vendors/clio/project/schemas/section.schema.json +95 -0
  621. package/vendors/clio/project/schemas/source.schema.json +73 -0
  622. package/vendors/clio/project/schemas/state.schema.json +58 -0
  623. package/vendors/clio/project/schemas/validation.schema.json +74 -0
  624. package/vendors/clio/project/templates/checkpoint.json +25 -0
  625. package/vendors/clio/project/templates/config.json +31 -0
  626. package/vendors/clio/project/templates/decisions.json +35 -0
  627. package/vendors/clio/project/templates/evidence.json +18 -0
  628. package/vendors/clio/project/templates/manifest.json +30 -0
  629. package/vendors/clio/project/templates/outline.json +38 -0
  630. package/vendors/clio/project/templates/section.json +32 -0
  631. package/vendors/clio/project/templates/source.json +20 -0
  632. package/vendors/clio/project/templates/state.json +22 -0
  633. package/vendors/clio/project/templates/validation.json +32 -0
  634. package/vendors/clio/prompts/wtfp/add-todo.md +52 -0
  635. package/vendors/clio/prompts/wtfp/analyze-bib.md +15 -0
  636. package/vendors/clio/prompts/wtfp/audit-milestone.md +15 -0
  637. package/vendors/clio/prompts/wtfp/check-refs.md +15 -0
  638. package/vendors/clio/prompts/wtfp/check-todos.md +54 -0
  639. package/vendors/clio/prompts/wtfp/checkpoint.md +70 -0
  640. package/vendors/clio/prompts/wtfp/contribute.md +15 -0
  641. package/vendors/clio/prompts/wtfp/create-outline.md +69 -0
  642. package/vendors/clio/prompts/wtfp/create-poster.md +15 -0
  643. package/vendors/clio/prompts/wtfp/create-slides.md +15 -0
  644. package/vendors/clio/prompts/wtfp/discuss-section.md +60 -0
  645. package/vendors/clio/prompts/wtfp/execute-outline.md +70 -0
  646. package/vendors/clio/prompts/wtfp/export-latex.md +15 -0
  647. package/vendors/clio/prompts/wtfp/help.md +43 -0
  648. package/vendors/clio/prompts/wtfp/insert-section.md +56 -0
  649. package/vendors/clio/prompts/wtfp/list-assumptions.md +54 -0
  650. package/vendors/clio/prompts/wtfp/map-project.md +54 -0
  651. package/vendors/clio/prompts/wtfp/new-paper.md +65 -0
  652. package/vendors/clio/prompts/wtfp/pause-writing.md +58 -0
  653. package/vendors/clio/prompts/wtfp/plan-milestone-gaps.md +58 -0
  654. package/vendors/clio/prompts/wtfp/plan-revision.md +58 -0
  655. package/vendors/clio/prompts/wtfp/plan-section.md +72 -0
  656. package/vendors/clio/prompts/wtfp/polish-prose.md +58 -0
  657. package/vendors/clio/prompts/wtfp/progress.md +70 -0
  658. package/vendors/clio/prompts/wtfp/quick.md +58 -0
  659. package/vendors/clio/prompts/wtfp/remove-section.md +15 -0
  660. package/vendors/clio/prompts/wtfp/report-bug.md +15 -0
  661. package/vendors/clio/prompts/wtfp/request-feature.md +15 -0
  662. package/vendors/clio/prompts/wtfp/research-gap.md +15 -0
  663. package/vendors/clio/prompts/wtfp/resume-writing.md +68 -0
  664. package/vendors/clio/prompts/wtfp/review-section.md +63 -0
  665. package/vendors/clio/prompts/wtfp/settings.md +52 -0
  666. package/vendors/clio/prompts/wtfp/submit-milestone.md +68 -0
  667. package/vendors/clio/prompts/wtfp/update.md +15 -0
  668. package/vendors/clio/prompts/wtfp/verify-work.md +58 -0
  669. package/vendors/clio/prompts/wtfp/write-section.md +72 -0
  670. package/vendors/clio/prompts/wtfp-add-todo.md +52 -0
  671. package/vendors/clio/prompts/wtfp-analyze-bib.md +15 -0
  672. package/vendors/clio/prompts/wtfp-audit-milestone.md +15 -0
  673. package/vendors/clio/prompts/wtfp-check-refs.md +15 -0
  674. package/vendors/clio/prompts/wtfp-check-todos.md +54 -0
  675. package/vendors/clio/prompts/wtfp-checkpoint.md +70 -0
  676. package/vendors/clio/prompts/wtfp-contribute.md +15 -0
  677. package/vendors/clio/prompts/wtfp-create-outline.md +69 -0
  678. package/vendors/clio/prompts/wtfp-create-poster.md +15 -0
  679. package/vendors/clio/prompts/wtfp-create-slides.md +15 -0
  680. package/vendors/clio/prompts/wtfp-discuss-section.md +60 -0
  681. package/vendors/clio/prompts/wtfp-execute-outline.md +70 -0
  682. package/vendors/clio/prompts/wtfp-export-latex.md +15 -0
  683. package/vendors/clio/prompts/wtfp-help.md +43 -0
  684. package/vendors/clio/prompts/wtfp-insert-section.md +56 -0
  685. package/vendors/clio/prompts/wtfp-list-assumptions.md +54 -0
  686. package/vendors/clio/prompts/wtfp-map-project.md +54 -0
  687. package/vendors/clio/prompts/wtfp-new-paper.md +65 -0
  688. package/vendors/clio/prompts/wtfp-pause-writing.md +58 -0
  689. package/vendors/clio/prompts/wtfp-plan-milestone-gaps.md +58 -0
  690. package/vendors/clio/prompts/wtfp-plan-revision.md +58 -0
  691. package/vendors/clio/prompts/wtfp-plan-section.md +72 -0
  692. package/vendors/clio/prompts/wtfp-polish-prose.md +58 -0
  693. package/vendors/clio/prompts/wtfp-progress.md +70 -0
  694. package/vendors/clio/prompts/wtfp-quick.md +58 -0
  695. package/vendors/clio/prompts/wtfp-remove-section.md +15 -0
  696. package/vendors/clio/prompts/wtfp-report-bug.md +15 -0
  697. package/vendors/clio/prompts/wtfp-request-feature.md +15 -0
  698. package/vendors/clio/prompts/wtfp-research-gap.md +15 -0
  699. package/vendors/clio/prompts/wtfp-resume-writing.md +68 -0
  700. package/vendors/clio/prompts/wtfp-review-section.md +63 -0
  701. package/vendors/clio/prompts/wtfp-settings.md +52 -0
  702. package/vendors/clio/prompts/wtfp-submit-milestone.md +68 -0
  703. package/vendors/clio/prompts/wtfp-update.md +15 -0
  704. package/vendors/clio/prompts/wtfp-verify-work.md +58 -0
  705. package/vendors/clio/prompts/wtfp-write-section.md +72 -0
  706. package/vendors/clio/repository/CONTRIBUTING.md +183 -0
  707. package/vendors/clio/roles/argument-verifier.md +62 -0
  708. package/vendors/clio/roles/citation-expert.md +63 -0
  709. package/vendors/clio/roles/citation-formatter.md +63 -0
  710. package/vendors/clio/roles/coherence-checker.md +61 -0
  711. package/vendors/clio/roles/outliner.md +68 -0
  712. package/vendors/clio/roles/plan-checker.md +62 -0
  713. package/vendors/clio/roles/prose-polisher.md +63 -0
  714. package/vendors/clio/roles/research-synthesizer.md +65 -0
  715. package/vendors/clio/roles/section-planner.md +65 -0
  716. package/vendors/clio/roles/section-reviewer.md +62 -0
  717. package/vendors/clio/roles/section-writer.md +66 -0
  718. package/vendors/clio/schemas/action.schema.json +129 -0
  719. package/vendors/clio/schemas/aliases.schema.json +26 -0
  720. package/vendors/clio/schemas/catalog.schema.json +61 -0
  721. package/vendors/clio/schemas/effects.schema.json +26 -0
  722. package/vendors/clio/schemas/role-result.schema.json +74 -0
  723. package/vendors/clio/schemas/tools.schema.json +26 -0
  724. package/vendors/clio/skills/wtfp-deliver-research/SKILL.md +39 -0
  725. package/vendors/clio/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  726. package/vendors/clio/skills/wtfp-deliver-research/references/actions.md +117 -0
  727. package/vendors/clio/skills/wtfp-manage-project/SKILL.md +40 -0
  728. package/vendors/clio/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  729. package/vendors/clio/skills/wtfp-manage-project/references/actions.md +91 -0
  730. package/vendors/clio/skills/wtfp-plan-section/SKILL.md +40 -0
  731. package/vendors/clio/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  732. package/vendors/clio/skills/wtfp-plan-section/references/actions.md +131 -0
  733. package/vendors/clio/skills/wtfp-research-literature/SKILL.md +37 -0
  734. package/vendors/clio/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  735. package/vendors/clio/skills/wtfp-research-literature/references/actions.md +115 -0
  736. package/vendors/clio/skills/wtfp-review-manuscript/SKILL.md +40 -0
  737. package/vendors/clio/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  738. package/vendors/clio/skills/wtfp-review-manuscript/references/actions.md +112 -0
  739. package/vendors/clio/skills/wtfp-start-project/SKILL.md +38 -0
  740. package/vendors/clio/skills/wtfp-start-project/agents/openai.yaml +4 -0
  741. package/vendors/clio/skills/wtfp-start-project/references/actions.md +80 -0
  742. package/vendors/clio/skills/wtfp-write-section/SKILL.md +37 -0
  743. package/vendors/clio/skills/wtfp-write-section/agents/openai.yaml +4 -0
  744. package/vendors/clio/skills/wtfp-write-section/references/actions.md +69 -0
  745. package/vendors/clio/tools/README.md +13 -0
  746. package/vendors/clio/tools/bibliography/analyze-impact.js +109 -0
  747. package/vendors/clio/tools/bibliography/format.js +161 -0
  748. package/vendors/clio/tools/bibliography/index.js +104 -0
  749. package/vendors/clio/tools/citation/fetch.js +299 -0
  750. package/vendors/clio/tools/citation/rank.js +145 -0
  751. package/vendors/clio/tools/citation/scholar-lookup.js +188 -0
  752. package/vendors/clio/tools/citation/semantic-scholar.js +184 -0
  753. package/vendors/clio/tools.json +54 -0
  754. package/vendors/clio/workflows/add-todo.md +32 -0
  755. package/vendors/clio/workflows/analyze-bib.md +33 -0
  756. package/vendors/clio/workflows/audit-milestone.md +32 -0
  757. package/vendors/clio/workflows/check-refs.md +32 -0
  758. package/vendors/clio/workflows/check-todos.md +32 -0
  759. package/vendors/clio/workflows/checkpoint.md +32 -0
  760. package/vendors/clio/workflows/contribute.md +30 -0
  761. package/vendors/clio/workflows/create-outline.md +33 -0
  762. package/vendors/clio/workflows/create-poster.md +32 -0
  763. package/vendors/clio/workflows/create-slides.md +32 -0
  764. package/vendors/clio/workflows/discuss-section.md +32 -0
  765. package/vendors/clio/workflows/execute-outline.md +32 -0
  766. package/vendors/clio/workflows/export-latex.md +32 -0
  767. package/vendors/clio/workflows/help.md +30 -0
  768. package/vendors/clio/workflows/insert-section.md +32 -0
  769. package/vendors/clio/workflows/list-assumptions.md +32 -0
  770. package/vendors/clio/workflows/map-project.md +32 -0
  771. package/vendors/clio/workflows/new-paper.md +37 -0
  772. package/vendors/clio/workflows/pause-writing.md +32 -0
  773. package/vendors/clio/workflows/plan-milestone-gaps.md +32 -0
  774. package/vendors/clio/workflows/plan-revision.md +32 -0
  775. package/vendors/clio/workflows/plan-section.md +34 -0
  776. package/vendors/clio/workflows/polish-prose.md +32 -0
  777. package/vendors/clio/workflows/progress.md +32 -0
  778. package/vendors/clio/workflows/quick.md +32 -0
  779. package/vendors/clio/workflows/remove-section.md +32 -0
  780. package/vendors/clio/workflows/report-bug.md +30 -0
  781. package/vendors/clio/workflows/request-feature.md +30 -0
  782. package/vendors/clio/workflows/research-gap.md +32 -0
  783. package/vendors/clio/workflows/resume-writing.md +34 -0
  784. package/vendors/clio/workflows/review-section.md +33 -0
  785. package/vendors/clio/workflows/settings.md +32 -0
  786. package/vendors/clio/workflows/submit-milestone.md +32 -0
  787. package/vendors/clio/workflows/update.md +30 -0
  788. package/vendors/clio/workflows/verify-work.md +32 -0
  789. package/vendors/clio/workflows/write-section.md +34 -0
  790. package/vendors/codex/.agents/plugins/marketplace.json +20 -0
  791. package/vendors/codex/.wtfp-generated.json +12 -0
  792. package/vendors/codex/plugins/wtf-p/.codex-plugin/plugin.json +32 -0
  793. package/vendors/codex/plugins/wtf-p/.wtfp-generated.json +604 -0
  794. package/vendors/codex/plugins/wtf-p/actions/add-todo.json +52 -0
  795. package/vendors/codex/plugins/wtf-p/actions/analyze-bib.json +97 -0
  796. package/vendors/codex/plugins/wtf-p/actions/audit-milestone.json +63 -0
  797. package/vendors/codex/plugins/wtf-p/actions/check-refs.json +80 -0
  798. package/vendors/codex/plugins/wtf-p/actions/check-todos.json +52 -0
  799. package/vendors/codex/plugins/wtf-p/actions/checkpoint.json +76 -0
  800. package/vendors/codex/plugins/wtf-p/actions/contribute.json +57 -0
  801. package/vendors/codex/plugins/wtf-p/actions/create-outline.json +84 -0
  802. package/vendors/codex/plugins/wtf-p/actions/create-poster.json +59 -0
  803. package/vendors/codex/plugins/wtf-p/actions/create-slides.json +59 -0
  804. package/vendors/codex/plugins/wtf-p/actions/discuss-section.json +76 -0
  805. package/vendors/codex/plugins/wtf-p/actions/execute-outline.json +116 -0
  806. package/vendors/codex/plugins/wtf-p/actions/export-latex.json +65 -0
  807. package/vendors/codex/plugins/wtf-p/actions/help.json +30 -0
  808. package/vendors/codex/plugins/wtf-p/actions/insert-section.json +61 -0
  809. package/vendors/codex/plugins/wtf-p/actions/list-assumptions.json +35 -0
  810. package/vendors/codex/plugins/wtf-p/actions/map-project.json +57 -0
  811. package/vendors/codex/plugins/wtf-p/actions/new-paper.json +70 -0
  812. package/vendors/codex/plugins/wtf-p/actions/pause-writing.json +71 -0
  813. package/vendors/codex/plugins/wtf-p/actions/plan-milestone-gaps.json +57 -0
  814. package/vendors/codex/plugins/wtf-p/actions/plan-revision.json +58 -0
  815. package/vendors/codex/plugins/wtf-p/actions/plan-section.json +100 -0
  816. package/vendors/codex/plugins/wtf-p/actions/polish-prose.json +69 -0
  817. package/vendors/codex/plugins/wtf-p/actions/progress.json +51 -0
  818. package/vendors/codex/plugins/wtf-p/actions/quick.json +70 -0
  819. package/vendors/codex/plugins/wtf-p/actions/remove-section.json +63 -0
  820. package/vendors/codex/plugins/wtf-p/actions/report-bug.json +47 -0
  821. package/vendors/codex/plugins/wtf-p/actions/request-feature.json +47 -0
  822. package/vendors/codex/plugins/wtf-p/actions/research-gap.json +101 -0
  823. package/vendors/codex/plugins/wtf-p/actions/resume-writing.json +65 -0
  824. package/vendors/codex/plugins/wtf-p/actions/review-section.json +83 -0
  825. package/vendors/codex/plugins/wtf-p/actions/settings.json +47 -0
  826. package/vendors/codex/plugins/wtf-p/actions/submit-milestone.json +77 -0
  827. package/vendors/codex/plugins/wtf-p/actions/update.json +42 -0
  828. package/vendors/codex/plugins/wtf-p/actions/verify-work.json +63 -0
  829. package/vendors/codex/plugins/wtf-p/actions/write-section.json +115 -0
  830. package/vendors/codex/plugins/wtf-p/aliases.lock.json +42 -0
  831. package/vendors/codex/plugins/wtf-p/catalog.json +127 -0
  832. package/vendors/codex/plugins/wtf-p/compatibility/action-availability.json +314 -0
  833. package/vendors/codex/plugins/wtf-p/effects.json +107 -0
  834. package/vendors/codex/plugins/wtf-p/fleets/wtfp-draft-review.json +35 -0
  835. package/vendors/codex/plugins/wtf-p/fleets/wtfp-plan-section.json +34 -0
  836. package/vendors/codex/plugins/wtf-p/project/README.md +65 -0
  837. package/vendors/codex/plugins/wtf-p/project/schemas/checkpoint.schema.json +102 -0
  838. package/vendors/codex/plugins/wtf-p/project/schemas/common.schema.json +33 -0
  839. package/vendors/codex/plugins/wtf-p/project/schemas/config.schema.json +69 -0
  840. package/vendors/codex/plugins/wtf-p/project/schemas/decisions.schema.json +31 -0
  841. package/vendors/codex/plugins/wtf-p/project/schemas/evidence.schema.json +48 -0
  842. package/vendors/codex/plugins/wtf-p/project/schemas/manifest.schema.json +102 -0
  843. package/vendors/codex/plugins/wtf-p/project/schemas/outline.schema.json +67 -0
  844. package/vendors/codex/plugins/wtf-p/project/schemas/section.schema.json +95 -0
  845. package/vendors/codex/plugins/wtf-p/project/schemas/source.schema.json +73 -0
  846. package/vendors/codex/plugins/wtf-p/project/schemas/state.schema.json +58 -0
  847. package/vendors/codex/plugins/wtf-p/project/schemas/validation.schema.json +74 -0
  848. package/vendors/codex/plugins/wtf-p/project/templates/checkpoint.json +25 -0
  849. package/vendors/codex/plugins/wtf-p/project/templates/config.json +31 -0
  850. package/vendors/codex/plugins/wtf-p/project/templates/decisions.json +35 -0
  851. package/vendors/codex/plugins/wtf-p/project/templates/evidence.json +18 -0
  852. package/vendors/codex/plugins/wtf-p/project/templates/manifest.json +30 -0
  853. package/vendors/codex/plugins/wtf-p/project/templates/outline.json +38 -0
  854. package/vendors/codex/plugins/wtf-p/project/templates/section.json +32 -0
  855. package/vendors/codex/plugins/wtf-p/project/templates/source.json +20 -0
  856. package/vendors/codex/plugins/wtf-p/project/templates/state.json +22 -0
  857. package/vendors/codex/plugins/wtf-p/project/templates/validation.json +32 -0
  858. package/vendors/codex/plugins/wtf-p/repository/CONTRIBUTING.md +183 -0
  859. package/vendors/codex/plugins/wtf-p/roles/argument-verifier.md +62 -0
  860. package/vendors/codex/plugins/wtf-p/roles/citation-expert.md +63 -0
  861. package/vendors/codex/plugins/wtf-p/roles/citation-formatter.md +63 -0
  862. package/vendors/codex/plugins/wtf-p/roles/coherence-checker.md +61 -0
  863. package/vendors/codex/plugins/wtf-p/roles/outliner.md +68 -0
  864. package/vendors/codex/plugins/wtf-p/roles/plan-checker.md +62 -0
  865. package/vendors/codex/plugins/wtf-p/roles/prose-polisher.md +63 -0
  866. package/vendors/codex/plugins/wtf-p/roles/research-synthesizer.md +65 -0
  867. package/vendors/codex/plugins/wtf-p/roles/section-planner.md +65 -0
  868. package/vendors/codex/plugins/wtf-p/roles/section-reviewer.md +62 -0
  869. package/vendors/codex/plugins/wtf-p/roles/section-writer.md +66 -0
  870. package/vendors/codex/plugins/wtf-p/schemas/action.schema.json +129 -0
  871. package/vendors/codex/plugins/wtf-p/schemas/aliases.schema.json +26 -0
  872. package/vendors/codex/plugins/wtf-p/schemas/catalog.schema.json +61 -0
  873. package/vendors/codex/plugins/wtf-p/schemas/effects.schema.json +26 -0
  874. package/vendors/codex/plugins/wtf-p/schemas/role-result.schema.json +74 -0
  875. package/vendors/codex/plugins/wtf-p/schemas/tools.schema.json +26 -0
  876. package/vendors/codex/plugins/wtf-p/skills/wtfp-deliver-research/SKILL.md +39 -0
  877. package/vendors/codex/plugins/wtf-p/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  878. package/vendors/codex/plugins/wtf-p/skills/wtfp-deliver-research/references/actions.md +117 -0
  879. package/vendors/codex/plugins/wtf-p/skills/wtfp-manage-project/SKILL.md +40 -0
  880. package/vendors/codex/plugins/wtf-p/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  881. package/vendors/codex/plugins/wtf-p/skills/wtfp-manage-project/references/actions.md +91 -0
  882. package/vendors/codex/plugins/wtf-p/skills/wtfp-plan-section/SKILL.md +40 -0
  883. package/vendors/codex/plugins/wtf-p/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  884. package/vendors/codex/plugins/wtf-p/skills/wtfp-plan-section/references/actions.md +131 -0
  885. package/vendors/codex/plugins/wtf-p/skills/wtfp-research-literature/SKILL.md +37 -0
  886. package/vendors/codex/plugins/wtf-p/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  887. package/vendors/codex/plugins/wtf-p/skills/wtfp-research-literature/references/actions.md +115 -0
  888. package/vendors/codex/plugins/wtf-p/skills/wtfp-review-manuscript/SKILL.md +40 -0
  889. package/vendors/codex/plugins/wtf-p/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  890. package/vendors/codex/plugins/wtf-p/skills/wtfp-review-manuscript/references/actions.md +112 -0
  891. package/vendors/codex/plugins/wtf-p/skills/wtfp-start-project/SKILL.md +38 -0
  892. package/vendors/codex/plugins/wtf-p/skills/wtfp-start-project/agents/openai.yaml +4 -0
  893. package/vendors/codex/plugins/wtf-p/skills/wtfp-start-project/references/actions.md +80 -0
  894. package/vendors/codex/plugins/wtf-p/skills/wtfp-write-section/SKILL.md +37 -0
  895. package/vendors/codex/plugins/wtf-p/skills/wtfp-write-section/agents/openai.yaml +4 -0
  896. package/vendors/codex/plugins/wtf-p/skills/wtfp-write-section/references/actions.md +69 -0
  897. package/vendors/codex/plugins/wtf-p/tools/README.md +13 -0
  898. package/vendors/codex/plugins/wtf-p/tools/bibliography/analyze-impact.js +109 -0
  899. package/vendors/codex/plugins/wtf-p/tools/bibliography/format.js +161 -0
  900. package/vendors/codex/plugins/wtf-p/tools/bibliography/index.js +104 -0
  901. package/vendors/codex/plugins/wtf-p/tools/citation/fetch.js +299 -0
  902. package/vendors/codex/plugins/wtf-p/tools/citation/rank.js +145 -0
  903. package/vendors/codex/plugins/wtf-p/tools/citation/scholar-lookup.js +188 -0
  904. package/vendors/codex/plugins/wtf-p/tools/citation/semantic-scholar.js +184 -0
  905. package/vendors/codex/plugins/wtf-p/tools.json +54 -0
  906. package/vendors/codex/plugins/wtf-p/workflows/add-todo.md +32 -0
  907. package/vendors/codex/plugins/wtf-p/workflows/analyze-bib.md +33 -0
  908. package/vendors/codex/plugins/wtf-p/workflows/audit-milestone.md +32 -0
  909. package/vendors/codex/plugins/wtf-p/workflows/check-refs.md +32 -0
  910. package/vendors/codex/plugins/wtf-p/workflows/check-todos.md +32 -0
  911. package/vendors/codex/plugins/wtf-p/workflows/checkpoint.md +32 -0
  912. package/vendors/codex/plugins/wtf-p/workflows/contribute.md +30 -0
  913. package/vendors/codex/plugins/wtf-p/workflows/create-outline.md +33 -0
  914. package/vendors/codex/plugins/wtf-p/workflows/create-poster.md +32 -0
  915. package/vendors/codex/plugins/wtf-p/workflows/create-slides.md +32 -0
  916. package/vendors/codex/plugins/wtf-p/workflows/discuss-section.md +32 -0
  917. package/vendors/codex/plugins/wtf-p/workflows/execute-outline.md +32 -0
  918. package/vendors/codex/plugins/wtf-p/workflows/export-latex.md +32 -0
  919. package/vendors/codex/plugins/wtf-p/workflows/help.md +30 -0
  920. package/vendors/codex/plugins/wtf-p/workflows/insert-section.md +32 -0
  921. package/vendors/codex/plugins/wtf-p/workflows/list-assumptions.md +32 -0
  922. package/vendors/codex/plugins/wtf-p/workflows/map-project.md +32 -0
  923. package/vendors/codex/plugins/wtf-p/workflows/new-paper.md +37 -0
  924. package/vendors/codex/plugins/wtf-p/workflows/pause-writing.md +32 -0
  925. package/vendors/codex/plugins/wtf-p/workflows/plan-milestone-gaps.md +32 -0
  926. package/vendors/codex/plugins/wtf-p/workflows/plan-revision.md +32 -0
  927. package/vendors/codex/plugins/wtf-p/workflows/plan-section.md +34 -0
  928. package/vendors/codex/plugins/wtf-p/workflows/polish-prose.md +32 -0
  929. package/vendors/codex/plugins/wtf-p/workflows/progress.md +32 -0
  930. package/vendors/codex/plugins/wtf-p/workflows/quick.md +32 -0
  931. package/vendors/codex/plugins/wtf-p/workflows/remove-section.md +32 -0
  932. package/vendors/codex/plugins/wtf-p/workflows/report-bug.md +30 -0
  933. package/vendors/codex/plugins/wtf-p/workflows/request-feature.md +30 -0
  934. package/vendors/codex/plugins/wtf-p/workflows/research-gap.md +32 -0
  935. package/vendors/codex/plugins/wtf-p/workflows/resume-writing.md +34 -0
  936. package/vendors/codex/plugins/wtf-p/workflows/review-section.md +33 -0
  937. package/vendors/codex/plugins/wtf-p/workflows/settings.md +32 -0
  938. package/vendors/codex/plugins/wtf-p/workflows/submit-milestone.md +32 -0
  939. package/vendors/codex/plugins/wtf-p/workflows/update.md +30 -0
  940. package/vendors/codex/plugins/wtf-p/workflows/verify-work.md +32 -0
  941. package/vendors/codex/plugins/wtf-p/workflows/write-section.md +34 -0
  942. package/vendors/copilot/.wtfp-generated.json +848 -0
  943. package/vendors/copilot/marketplace.json +24 -0
  944. package/vendors/copilot/plugins/wtf-p/.claude-plugin/plugin.json +12 -0
  945. package/vendors/copilot/plugins/wtf-p/.wtfp-generated.json +792 -0
  946. package/vendors/copilot/plugins/wtf-p/actions/add-todo.json +52 -0
  947. package/vendors/copilot/plugins/wtf-p/actions/analyze-bib.json +97 -0
  948. package/vendors/copilot/plugins/wtf-p/actions/audit-milestone.json +63 -0
  949. package/vendors/copilot/plugins/wtf-p/actions/check-refs.json +80 -0
  950. package/vendors/copilot/plugins/wtf-p/actions/check-todos.json +52 -0
  951. package/vendors/copilot/plugins/wtf-p/actions/checkpoint.json +76 -0
  952. package/vendors/copilot/plugins/wtf-p/actions/contribute.json +57 -0
  953. package/vendors/copilot/plugins/wtf-p/actions/create-outline.json +84 -0
  954. package/vendors/copilot/plugins/wtf-p/actions/create-poster.json +59 -0
  955. package/vendors/copilot/plugins/wtf-p/actions/create-slides.json +59 -0
  956. package/vendors/copilot/plugins/wtf-p/actions/discuss-section.json +76 -0
  957. package/vendors/copilot/plugins/wtf-p/actions/execute-outline.json +116 -0
  958. package/vendors/copilot/plugins/wtf-p/actions/export-latex.json +65 -0
  959. package/vendors/copilot/plugins/wtf-p/actions/help.json +30 -0
  960. package/vendors/copilot/plugins/wtf-p/actions/insert-section.json +61 -0
  961. package/vendors/copilot/plugins/wtf-p/actions/list-assumptions.json +35 -0
  962. package/vendors/copilot/plugins/wtf-p/actions/map-project.json +57 -0
  963. package/vendors/copilot/plugins/wtf-p/actions/new-paper.json +70 -0
  964. package/vendors/copilot/plugins/wtf-p/actions/pause-writing.json +71 -0
  965. package/vendors/copilot/plugins/wtf-p/actions/plan-milestone-gaps.json +57 -0
  966. package/vendors/copilot/plugins/wtf-p/actions/plan-revision.json +58 -0
  967. package/vendors/copilot/plugins/wtf-p/actions/plan-section.json +100 -0
  968. package/vendors/copilot/plugins/wtf-p/actions/polish-prose.json +69 -0
  969. package/vendors/copilot/plugins/wtf-p/actions/progress.json +51 -0
  970. package/vendors/copilot/plugins/wtf-p/actions/quick.json +70 -0
  971. package/vendors/copilot/plugins/wtf-p/actions/remove-section.json +63 -0
  972. package/vendors/copilot/plugins/wtf-p/actions/report-bug.json +47 -0
  973. package/vendors/copilot/plugins/wtf-p/actions/request-feature.json +47 -0
  974. package/vendors/copilot/plugins/wtf-p/actions/research-gap.json +101 -0
  975. package/vendors/copilot/plugins/wtf-p/actions/resume-writing.json +65 -0
  976. package/vendors/copilot/plugins/wtf-p/actions/review-section.json +83 -0
  977. package/vendors/copilot/plugins/wtf-p/actions/settings.json +47 -0
  978. package/vendors/copilot/plugins/wtf-p/actions/submit-milestone.json +77 -0
  979. package/vendors/copilot/plugins/wtf-p/actions/update.json +42 -0
  980. package/vendors/copilot/plugins/wtf-p/actions/verify-work.json +63 -0
  981. package/vendors/copilot/plugins/wtf-p/actions/write-section.json +115 -0
  982. package/vendors/copilot/plugins/wtf-p/agents/wtfp-argument-verifier.md +65 -0
  983. package/vendors/copilot/plugins/wtf-p/agents/wtfp-citation-expert.md +68 -0
  984. package/vendors/copilot/plugins/wtf-p/agents/wtfp-citation-formatter.md +68 -0
  985. package/vendors/copilot/plugins/wtf-p/agents/wtfp-coherence-checker.md +64 -0
  986. package/vendors/copilot/plugins/wtf-p/agents/wtfp-outliner.md +73 -0
  987. package/vendors/copilot/plugins/wtf-p/agents/wtfp-plan-checker.md +65 -0
  988. package/vendors/copilot/plugins/wtf-p/agents/wtfp-prose-polisher.md +68 -0
  989. package/vendors/copilot/plugins/wtf-p/agents/wtfp-research-synthesizer.md +70 -0
  990. package/vendors/copilot/plugins/wtf-p/agents/wtfp-section-planner.md +70 -0
  991. package/vendors/copilot/plugins/wtf-p/agents/wtfp-section-reviewer.md +65 -0
  992. package/vendors/copilot/plugins/wtf-p/agents/wtfp-section-writer.md +71 -0
  993. package/vendors/copilot/plugins/wtf-p/aliases.lock.json +42 -0
  994. package/vendors/copilot/plugins/wtf-p/catalog.json +127 -0
  995. package/vendors/copilot/plugins/wtf-p/commands/wtfp-add-todo.md +59 -0
  996. package/vendors/copilot/plugins/wtf-p/commands/wtfp-analyze-bib.md +17 -0
  997. package/vendors/copilot/plugins/wtf-p/commands/wtfp-audit-milestone.md +17 -0
  998. package/vendors/copilot/plugins/wtf-p/commands/wtfp-check-refs.md +17 -0
  999. package/vendors/copilot/plugins/wtf-p/commands/wtfp-check-todos.md +58 -0
  1000. package/vendors/copilot/plugins/wtf-p/commands/wtfp-checkpoint.md +74 -0
  1001. package/vendors/copilot/plugins/wtf-p/commands/wtfp-contribute.md +17 -0
  1002. package/vendors/copilot/plugins/wtf-p/commands/wtfp-create-outline.md +74 -0
  1003. package/vendors/copilot/plugins/wtf-p/commands/wtfp-create-poster.md +17 -0
  1004. package/vendors/copilot/plugins/wtf-p/commands/wtfp-create-slides.md +17 -0
  1005. package/vendors/copilot/plugins/wtf-p/commands/wtfp-discuss-section.md +64 -0
  1006. package/vendors/copilot/plugins/wtf-p/commands/wtfp-execute-outline.md +75 -0
  1007. package/vendors/copilot/plugins/wtf-p/commands/wtfp-export-latex.md +17 -0
  1008. package/vendors/copilot/plugins/wtf-p/commands/wtfp-help.md +48 -0
  1009. package/vendors/copilot/plugins/wtf-p/commands/wtfp-insert-section.md +60 -0
  1010. package/vendors/copilot/plugins/wtf-p/commands/wtfp-list-assumptions.md +59 -0
  1011. package/vendors/copilot/plugins/wtf-p/commands/wtfp-map-project.md +61 -0
  1012. package/vendors/copilot/plugins/wtf-p/commands/wtfp-new-paper.md +69 -0
  1013. package/vendors/copilot/plugins/wtf-p/commands/wtfp-pause-writing.md +65 -0
  1014. package/vendors/copilot/plugins/wtf-p/commands/wtfp-plan-milestone-gaps.md +62 -0
  1015. package/vendors/copilot/plugins/wtf-p/commands/wtfp-plan-revision.md +62 -0
  1016. package/vendors/copilot/plugins/wtf-p/commands/wtfp-plan-section.md +77 -0
  1017. package/vendors/copilot/plugins/wtf-p/commands/wtfp-polish-prose.md +63 -0
  1018. package/vendors/copilot/plugins/wtf-p/commands/wtfp-progress.md +72 -0
  1019. package/vendors/copilot/plugins/wtf-p/commands/wtfp-quick.md +63 -0
  1020. package/vendors/copilot/plugins/wtf-p/commands/wtfp-remove-section.md +17 -0
  1021. package/vendors/copilot/plugins/wtf-p/commands/wtfp-report-bug.md +17 -0
  1022. package/vendors/copilot/plugins/wtf-p/commands/wtfp-request-feature.md +17 -0
  1023. package/vendors/copilot/plugins/wtf-p/commands/wtfp-research-gap.md +17 -0
  1024. package/vendors/copilot/plugins/wtf-p/commands/wtfp-resume-writing.md +72 -0
  1025. package/vendors/copilot/plugins/wtf-p/commands/wtfp-review-section.md +68 -0
  1026. package/vendors/copilot/plugins/wtf-p/commands/wtfp-settings.md +56 -0
  1027. package/vendors/copilot/plugins/wtf-p/commands/wtfp-submit-milestone.md +72 -0
  1028. package/vendors/copilot/plugins/wtf-p/commands/wtfp-update.md +17 -0
  1029. package/vendors/copilot/plugins/wtf-p/commands/wtfp-verify-work.md +62 -0
  1030. package/vendors/copilot/plugins/wtf-p/commands/wtfp-write-section.md +77 -0
  1031. package/vendors/copilot/plugins/wtf-p/compatibility/action-availability.json +314 -0
  1032. package/vendors/copilot/plugins/wtf-p/effects.json +107 -0
  1033. package/vendors/copilot/plugins/wtf-p/fleets/wtfp-draft-review.json +35 -0
  1034. package/vendors/copilot/plugins/wtf-p/fleets/wtfp-plan-section.json +34 -0
  1035. package/vendors/copilot/plugins/wtf-p/project/README.md +65 -0
  1036. package/vendors/copilot/plugins/wtf-p/project/schemas/checkpoint.schema.json +102 -0
  1037. package/vendors/copilot/plugins/wtf-p/project/schemas/common.schema.json +33 -0
  1038. package/vendors/copilot/plugins/wtf-p/project/schemas/config.schema.json +69 -0
  1039. package/vendors/copilot/plugins/wtf-p/project/schemas/decisions.schema.json +31 -0
  1040. package/vendors/copilot/plugins/wtf-p/project/schemas/evidence.schema.json +48 -0
  1041. package/vendors/copilot/plugins/wtf-p/project/schemas/manifest.schema.json +102 -0
  1042. package/vendors/copilot/plugins/wtf-p/project/schemas/outline.schema.json +67 -0
  1043. package/vendors/copilot/plugins/wtf-p/project/schemas/section.schema.json +95 -0
  1044. package/vendors/copilot/plugins/wtf-p/project/schemas/source.schema.json +73 -0
  1045. package/vendors/copilot/plugins/wtf-p/project/schemas/state.schema.json +58 -0
  1046. package/vendors/copilot/plugins/wtf-p/project/schemas/validation.schema.json +74 -0
  1047. package/vendors/copilot/plugins/wtf-p/project/templates/checkpoint.json +25 -0
  1048. package/vendors/copilot/plugins/wtf-p/project/templates/config.json +31 -0
  1049. package/vendors/copilot/plugins/wtf-p/project/templates/decisions.json +35 -0
  1050. package/vendors/copilot/plugins/wtf-p/project/templates/evidence.json +18 -0
  1051. package/vendors/copilot/plugins/wtf-p/project/templates/manifest.json +30 -0
  1052. package/vendors/copilot/plugins/wtf-p/project/templates/outline.json +38 -0
  1053. package/vendors/copilot/plugins/wtf-p/project/templates/section.json +32 -0
  1054. package/vendors/copilot/plugins/wtf-p/project/templates/source.json +20 -0
  1055. package/vendors/copilot/plugins/wtf-p/project/templates/state.json +22 -0
  1056. package/vendors/copilot/plugins/wtf-p/project/templates/validation.json +32 -0
  1057. package/vendors/copilot/plugins/wtf-p/repository/CONTRIBUTING.md +183 -0
  1058. package/vendors/copilot/plugins/wtf-p/roles/argument-verifier.md +62 -0
  1059. package/vendors/copilot/plugins/wtf-p/roles/citation-expert.md +63 -0
  1060. package/vendors/copilot/plugins/wtf-p/roles/citation-formatter.md +63 -0
  1061. package/vendors/copilot/plugins/wtf-p/roles/coherence-checker.md +61 -0
  1062. package/vendors/copilot/plugins/wtf-p/roles/outliner.md +68 -0
  1063. package/vendors/copilot/plugins/wtf-p/roles/plan-checker.md +62 -0
  1064. package/vendors/copilot/plugins/wtf-p/roles/prose-polisher.md +63 -0
  1065. package/vendors/copilot/plugins/wtf-p/roles/research-synthesizer.md +65 -0
  1066. package/vendors/copilot/plugins/wtf-p/roles/section-planner.md +65 -0
  1067. package/vendors/copilot/plugins/wtf-p/roles/section-reviewer.md +62 -0
  1068. package/vendors/copilot/plugins/wtf-p/roles/section-writer.md +66 -0
  1069. package/vendors/copilot/plugins/wtf-p/schemas/action.schema.json +129 -0
  1070. package/vendors/copilot/plugins/wtf-p/schemas/aliases.schema.json +26 -0
  1071. package/vendors/copilot/plugins/wtf-p/schemas/catalog.schema.json +61 -0
  1072. package/vendors/copilot/plugins/wtf-p/schemas/effects.schema.json +26 -0
  1073. package/vendors/copilot/plugins/wtf-p/schemas/role-result.schema.json +74 -0
  1074. package/vendors/copilot/plugins/wtf-p/schemas/tools.schema.json +26 -0
  1075. package/vendors/copilot/plugins/wtf-p/skills/wtfp-deliver-research/SKILL.md +39 -0
  1076. package/vendors/copilot/plugins/wtf-p/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  1077. package/vendors/copilot/plugins/wtf-p/skills/wtfp-deliver-research/references/actions.md +117 -0
  1078. package/vendors/copilot/plugins/wtf-p/skills/wtfp-manage-project/SKILL.md +40 -0
  1079. package/vendors/copilot/plugins/wtf-p/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  1080. package/vendors/copilot/plugins/wtf-p/skills/wtfp-manage-project/references/actions.md +91 -0
  1081. package/vendors/copilot/plugins/wtf-p/skills/wtfp-plan-section/SKILL.md +40 -0
  1082. package/vendors/copilot/plugins/wtf-p/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  1083. package/vendors/copilot/plugins/wtf-p/skills/wtfp-plan-section/references/actions.md +131 -0
  1084. package/vendors/copilot/plugins/wtf-p/skills/wtfp-research-literature/SKILL.md +37 -0
  1085. package/vendors/copilot/plugins/wtf-p/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  1086. package/vendors/copilot/plugins/wtf-p/skills/wtfp-research-literature/references/actions.md +115 -0
  1087. package/vendors/copilot/plugins/wtf-p/skills/wtfp-review-manuscript/SKILL.md +40 -0
  1088. package/vendors/copilot/plugins/wtf-p/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  1089. package/vendors/copilot/plugins/wtf-p/skills/wtfp-review-manuscript/references/actions.md +112 -0
  1090. package/vendors/copilot/plugins/wtf-p/skills/wtfp-start-project/SKILL.md +38 -0
  1091. package/vendors/copilot/plugins/wtf-p/skills/wtfp-start-project/agents/openai.yaml +4 -0
  1092. package/vendors/copilot/plugins/wtf-p/skills/wtfp-start-project/references/actions.md +80 -0
  1093. package/vendors/copilot/plugins/wtf-p/skills/wtfp-write-section/SKILL.md +37 -0
  1094. package/vendors/copilot/plugins/wtf-p/skills/wtfp-write-section/agents/openai.yaml +4 -0
  1095. package/vendors/copilot/plugins/wtf-p/skills/wtfp-write-section/references/actions.md +69 -0
  1096. package/vendors/copilot/plugins/wtf-p/tools/README.md +13 -0
  1097. package/vendors/copilot/plugins/wtf-p/tools/bibliography/analyze-impact.js +109 -0
  1098. package/vendors/copilot/plugins/wtf-p/tools/bibliography/format.js +161 -0
  1099. package/vendors/copilot/plugins/wtf-p/tools/bibliography/index.js +104 -0
  1100. package/vendors/copilot/plugins/wtf-p/tools/citation/fetch.js +299 -0
  1101. package/vendors/copilot/plugins/wtf-p/tools/citation/rank.js +145 -0
  1102. package/vendors/copilot/plugins/wtf-p/tools/citation/scholar-lookup.js +188 -0
  1103. package/vendors/copilot/plugins/wtf-p/tools/citation/semantic-scholar.js +184 -0
  1104. package/vendors/copilot/plugins/wtf-p/tools.json +54 -0
  1105. package/vendors/copilot/plugins/wtf-p/workflows/add-todo.md +32 -0
  1106. package/vendors/copilot/plugins/wtf-p/workflows/analyze-bib.md +33 -0
  1107. package/vendors/copilot/plugins/wtf-p/workflows/audit-milestone.md +32 -0
  1108. package/vendors/copilot/plugins/wtf-p/workflows/check-refs.md +32 -0
  1109. package/vendors/copilot/plugins/wtf-p/workflows/check-todos.md +32 -0
  1110. package/vendors/copilot/plugins/wtf-p/workflows/checkpoint.md +32 -0
  1111. package/vendors/copilot/plugins/wtf-p/workflows/contribute.md +30 -0
  1112. package/vendors/copilot/plugins/wtf-p/workflows/create-outline.md +33 -0
  1113. package/vendors/copilot/plugins/wtf-p/workflows/create-poster.md +32 -0
  1114. package/vendors/copilot/plugins/wtf-p/workflows/create-slides.md +32 -0
  1115. package/vendors/copilot/plugins/wtf-p/workflows/discuss-section.md +32 -0
  1116. package/vendors/copilot/plugins/wtf-p/workflows/execute-outline.md +32 -0
  1117. package/vendors/copilot/plugins/wtf-p/workflows/export-latex.md +32 -0
  1118. package/vendors/copilot/plugins/wtf-p/workflows/help.md +30 -0
  1119. package/vendors/copilot/plugins/wtf-p/workflows/insert-section.md +32 -0
  1120. package/vendors/copilot/plugins/wtf-p/workflows/list-assumptions.md +32 -0
  1121. package/vendors/copilot/plugins/wtf-p/workflows/map-project.md +32 -0
  1122. package/vendors/copilot/plugins/wtf-p/workflows/new-paper.md +37 -0
  1123. package/vendors/copilot/plugins/wtf-p/workflows/pause-writing.md +32 -0
  1124. package/vendors/copilot/plugins/wtf-p/workflows/plan-milestone-gaps.md +32 -0
  1125. package/vendors/copilot/plugins/wtf-p/workflows/plan-revision.md +32 -0
  1126. package/vendors/copilot/plugins/wtf-p/workflows/plan-section.md +34 -0
  1127. package/vendors/copilot/plugins/wtf-p/workflows/polish-prose.md +32 -0
  1128. package/vendors/copilot/plugins/wtf-p/workflows/progress.md +32 -0
  1129. package/vendors/copilot/plugins/wtf-p/workflows/quick.md +32 -0
  1130. package/vendors/copilot/plugins/wtf-p/workflows/remove-section.md +32 -0
  1131. package/vendors/copilot/plugins/wtf-p/workflows/report-bug.md +30 -0
  1132. package/vendors/copilot/plugins/wtf-p/workflows/request-feature.md +30 -0
  1133. package/vendors/copilot/plugins/wtf-p/workflows/research-gap.md +32 -0
  1134. package/vendors/copilot/plugins/wtf-p/workflows/resume-writing.md +34 -0
  1135. package/vendors/copilot/plugins/wtf-p/workflows/review-section.md +33 -0
  1136. package/vendors/copilot/plugins/wtf-p/workflows/settings.md +32 -0
  1137. package/vendors/copilot/plugins/wtf-p/workflows/submit-milestone.md +32 -0
  1138. package/vendors/copilot/plugins/wtf-p/workflows/update.md +30 -0
  1139. package/vendors/copilot/plugins/wtf-p/workflows/verify-work.md +32 -0
  1140. package/vendors/copilot/plugins/wtf-p/workflows/write-section.md +34 -0
  1141. package/vendors/copilot/project/.github/agents/wtfp-argument-verifier.agent.md +62 -0
  1142. package/vendors/copilot/project/.github/agents/wtfp-citation-expert.agent.md +63 -0
  1143. package/vendors/copilot/project/.github/agents/wtfp-citation-formatter.agent.md +63 -0
  1144. package/vendors/copilot/project/.github/agents/wtfp-coherence-checker.agent.md +61 -0
  1145. package/vendors/copilot/project/.github/agents/wtfp-outliner.agent.md +68 -0
  1146. package/vendors/copilot/project/.github/agents/wtfp-plan-checker.agent.md +62 -0
  1147. package/vendors/copilot/project/.github/agents/wtfp-prose-polisher.agent.md +63 -0
  1148. package/vendors/copilot/project/.github/agents/wtfp-research-synthesizer.agent.md +65 -0
  1149. package/vendors/copilot/project/.github/agents/wtfp-section-planner.agent.md +65 -0
  1150. package/vendors/copilot/project/.github/agents/wtfp-section-reviewer.agent.md +62 -0
  1151. package/vendors/copilot/project/.github/agents/wtfp-section-writer.agent.md +66 -0
  1152. package/vendors/copilot/project/.github/copilot-instructions.md +7 -0
  1153. package/vendors/copilot/project/.github/prompts/wtfp-add-todo.prompt.md +54 -0
  1154. package/vendors/copilot/project/.github/prompts/wtfp-analyze-bib.prompt.md +18 -0
  1155. package/vendors/copilot/project/.github/prompts/wtfp-audit-milestone.prompt.md +18 -0
  1156. package/vendors/copilot/project/.github/prompts/wtfp-check-refs.prompt.md +18 -0
  1157. package/vendors/copilot/project/.github/prompts/wtfp-check-todos.prompt.md +18 -0
  1158. package/vendors/copilot/project/.github/prompts/wtfp-checkpoint.prompt.md +18 -0
  1159. package/vendors/copilot/project/.github/prompts/wtfp-contribute.prompt.md +18 -0
  1160. package/vendors/copilot/project/.github/prompts/wtfp-create-outline.prompt.md +18 -0
  1161. package/vendors/copilot/project/.github/prompts/wtfp-create-poster.prompt.md +18 -0
  1162. package/vendors/copilot/project/.github/prompts/wtfp-create-slides.prompt.md +18 -0
  1163. package/vendors/copilot/project/.github/prompts/wtfp-discuss-section.prompt.md +18 -0
  1164. package/vendors/copilot/project/.github/prompts/wtfp-execute-outline.prompt.md +18 -0
  1165. package/vendors/copilot/project/.github/prompts/wtfp-export-latex.prompt.md +18 -0
  1166. package/vendors/copilot/project/.github/prompts/wtfp-help.prompt.md +45 -0
  1167. package/vendors/copilot/project/.github/prompts/wtfp-insert-section.prompt.md +18 -0
  1168. package/vendors/copilot/project/.github/prompts/wtfp-list-assumptions.prompt.md +56 -0
  1169. package/vendors/copilot/project/.github/prompts/wtfp-map-project.prompt.md +56 -0
  1170. package/vendors/copilot/project/.github/prompts/wtfp-new-paper.prompt.md +18 -0
  1171. package/vendors/copilot/project/.github/prompts/wtfp-pause-writing.prompt.md +60 -0
  1172. package/vendors/copilot/project/.github/prompts/wtfp-plan-milestone-gaps.prompt.md +18 -0
  1173. package/vendors/copilot/project/.github/prompts/wtfp-plan-revision.prompt.md +18 -0
  1174. package/vendors/copilot/project/.github/prompts/wtfp-plan-section.prompt.md +18 -0
  1175. package/vendors/copilot/project/.github/prompts/wtfp-polish-prose.prompt.md +18 -0
  1176. package/vendors/copilot/project/.github/prompts/wtfp-progress.prompt.md +18 -0
  1177. package/vendors/copilot/project/.github/prompts/wtfp-quick.prompt.md +18 -0
  1178. package/vendors/copilot/project/.github/prompts/wtfp-remove-section.prompt.md +18 -0
  1179. package/vendors/copilot/project/.github/prompts/wtfp-report-bug.prompt.md +18 -0
  1180. package/vendors/copilot/project/.github/prompts/wtfp-request-feature.prompt.md +18 -0
  1181. package/vendors/copilot/project/.github/prompts/wtfp-research-gap.prompt.md +18 -0
  1182. package/vendors/copilot/project/.github/prompts/wtfp-resume-writing.prompt.md +18 -0
  1183. package/vendors/copilot/project/.github/prompts/wtfp-review-section.prompt.md +18 -0
  1184. package/vendors/copilot/project/.github/prompts/wtfp-settings.prompt.md +18 -0
  1185. package/vendors/copilot/project/.github/prompts/wtfp-submit-milestone.prompt.md +18 -0
  1186. package/vendors/copilot/project/.github/prompts/wtfp-update.prompt.md +18 -0
  1187. package/vendors/copilot/project/.github/prompts/wtfp-verify-work.prompt.md +18 -0
  1188. package/vendors/copilot/project/.github/prompts/wtfp-write-section.prompt.md +18 -0
  1189. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/SKILL.md +39 -0
  1190. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  1191. package/vendors/copilot/project/.github/skills/wtfp-deliver-research/references/actions.md +129 -0
  1192. package/vendors/copilot/project/.github/skills/wtfp-manage-project/SKILL.md +40 -0
  1193. package/vendors/copilot/project/.github/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  1194. package/vendors/copilot/project/.github/skills/wtfp-manage-project/references/actions.md +155 -0
  1195. package/vendors/copilot/project/.github/skills/wtfp-plan-section/SKILL.md +40 -0
  1196. package/vendors/copilot/project/.github/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  1197. package/vendors/copilot/project/.github/skills/wtfp-plan-section/references/actions.md +179 -0
  1198. package/vendors/copilot/project/.github/skills/wtfp-research-literature/SKILL.md +37 -0
  1199. package/vendors/copilot/project/.github/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  1200. package/vendors/copilot/project/.github/skills/wtfp-research-literature/references/actions.md +115 -0
  1201. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/SKILL.md +40 -0
  1202. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  1203. package/vendors/copilot/project/.github/skills/wtfp-review-manuscript/references/actions.md +160 -0
  1204. package/vendors/copilot/project/.github/skills/wtfp-start-project/SKILL.md +38 -0
  1205. package/vendors/copilot/project/.github/skills/wtfp-start-project/agents/openai.yaml +4 -0
  1206. package/vendors/copilot/project/.github/skills/wtfp-start-project/references/actions.md +108 -0
  1207. package/vendors/copilot/project/.github/skills/wtfp-write-section/SKILL.md +37 -0
  1208. package/vendors/copilot/project/.github/skills/wtfp-write-section/agents/openai.yaml +4 -0
  1209. package/vendors/copilot/project/.github/skills/wtfp-write-section/references/actions.md +109 -0
  1210. package/vendors/copilot/project/.github/wtfp/actions/add-todo.json +52 -0
  1211. package/vendors/copilot/project/.github/wtfp/actions/analyze-bib.json +97 -0
  1212. package/vendors/copilot/project/.github/wtfp/actions/audit-milestone.json +63 -0
  1213. package/vendors/copilot/project/.github/wtfp/actions/check-refs.json +80 -0
  1214. package/vendors/copilot/project/.github/wtfp/actions/check-todos.json +52 -0
  1215. package/vendors/copilot/project/.github/wtfp/actions/checkpoint.json +76 -0
  1216. package/vendors/copilot/project/.github/wtfp/actions/contribute.json +57 -0
  1217. package/vendors/copilot/project/.github/wtfp/actions/create-outline.json +84 -0
  1218. package/vendors/copilot/project/.github/wtfp/actions/create-poster.json +59 -0
  1219. package/vendors/copilot/project/.github/wtfp/actions/create-slides.json +59 -0
  1220. package/vendors/copilot/project/.github/wtfp/actions/discuss-section.json +76 -0
  1221. package/vendors/copilot/project/.github/wtfp/actions/execute-outline.json +116 -0
  1222. package/vendors/copilot/project/.github/wtfp/actions/export-latex.json +65 -0
  1223. package/vendors/copilot/project/.github/wtfp/actions/help.json +30 -0
  1224. package/vendors/copilot/project/.github/wtfp/actions/insert-section.json +61 -0
  1225. package/vendors/copilot/project/.github/wtfp/actions/list-assumptions.json +35 -0
  1226. package/vendors/copilot/project/.github/wtfp/actions/map-project.json +57 -0
  1227. package/vendors/copilot/project/.github/wtfp/actions/new-paper.json +70 -0
  1228. package/vendors/copilot/project/.github/wtfp/actions/pause-writing.json +71 -0
  1229. package/vendors/copilot/project/.github/wtfp/actions/plan-milestone-gaps.json +57 -0
  1230. package/vendors/copilot/project/.github/wtfp/actions/plan-revision.json +58 -0
  1231. package/vendors/copilot/project/.github/wtfp/actions/plan-section.json +100 -0
  1232. package/vendors/copilot/project/.github/wtfp/actions/polish-prose.json +69 -0
  1233. package/vendors/copilot/project/.github/wtfp/actions/progress.json +51 -0
  1234. package/vendors/copilot/project/.github/wtfp/actions/quick.json +70 -0
  1235. package/vendors/copilot/project/.github/wtfp/actions/remove-section.json +63 -0
  1236. package/vendors/copilot/project/.github/wtfp/actions/report-bug.json +47 -0
  1237. package/vendors/copilot/project/.github/wtfp/actions/request-feature.json +47 -0
  1238. package/vendors/copilot/project/.github/wtfp/actions/research-gap.json +101 -0
  1239. package/vendors/copilot/project/.github/wtfp/actions/resume-writing.json +65 -0
  1240. package/vendors/copilot/project/.github/wtfp/actions/review-section.json +83 -0
  1241. package/vendors/copilot/project/.github/wtfp/actions/settings.json +47 -0
  1242. package/vendors/copilot/project/.github/wtfp/actions/submit-milestone.json +77 -0
  1243. package/vendors/copilot/project/.github/wtfp/actions/update.json +42 -0
  1244. package/vendors/copilot/project/.github/wtfp/actions/verify-work.json +63 -0
  1245. package/vendors/copilot/project/.github/wtfp/actions/write-section.json +115 -0
  1246. package/vendors/copilot/project/.github/wtfp/aliases.lock.json +42 -0
  1247. package/vendors/copilot/project/.github/wtfp/catalog.json +127 -0
  1248. package/vendors/copilot/project/.github/wtfp/compatibility/action-availability.json +364 -0
  1249. package/vendors/copilot/project/.github/wtfp/effects.json +107 -0
  1250. package/vendors/copilot/project/.github/wtfp/fleets/wtfp-draft-review.json +35 -0
  1251. package/vendors/copilot/project/.github/wtfp/fleets/wtfp-plan-section.json +34 -0
  1252. package/vendors/copilot/project/.github/wtfp/project/README.md +65 -0
  1253. package/vendors/copilot/project/.github/wtfp/project/schemas/checkpoint.schema.json +102 -0
  1254. package/vendors/copilot/project/.github/wtfp/project/schemas/common.schema.json +33 -0
  1255. package/vendors/copilot/project/.github/wtfp/project/schemas/config.schema.json +69 -0
  1256. package/vendors/copilot/project/.github/wtfp/project/schemas/decisions.schema.json +31 -0
  1257. package/vendors/copilot/project/.github/wtfp/project/schemas/evidence.schema.json +48 -0
  1258. package/vendors/copilot/project/.github/wtfp/project/schemas/manifest.schema.json +102 -0
  1259. package/vendors/copilot/project/.github/wtfp/project/schemas/outline.schema.json +67 -0
  1260. package/vendors/copilot/project/.github/wtfp/project/schemas/section.schema.json +95 -0
  1261. package/vendors/copilot/project/.github/wtfp/project/schemas/source.schema.json +73 -0
  1262. package/vendors/copilot/project/.github/wtfp/project/schemas/state.schema.json +58 -0
  1263. package/vendors/copilot/project/.github/wtfp/project/schemas/validation.schema.json +74 -0
  1264. package/vendors/copilot/project/.github/wtfp/project/templates/checkpoint.json +25 -0
  1265. package/vendors/copilot/project/.github/wtfp/project/templates/config.json +31 -0
  1266. package/vendors/copilot/project/.github/wtfp/project/templates/decisions.json +35 -0
  1267. package/vendors/copilot/project/.github/wtfp/project/templates/evidence.json +18 -0
  1268. package/vendors/copilot/project/.github/wtfp/project/templates/manifest.json +30 -0
  1269. package/vendors/copilot/project/.github/wtfp/project/templates/outline.json +38 -0
  1270. package/vendors/copilot/project/.github/wtfp/project/templates/section.json +32 -0
  1271. package/vendors/copilot/project/.github/wtfp/project/templates/source.json +20 -0
  1272. package/vendors/copilot/project/.github/wtfp/project/templates/state.json +22 -0
  1273. package/vendors/copilot/project/.github/wtfp/project/templates/validation.json +32 -0
  1274. package/vendors/copilot/project/.github/wtfp/roles/argument-verifier.md +62 -0
  1275. package/vendors/copilot/project/.github/wtfp/roles/citation-expert.md +63 -0
  1276. package/vendors/copilot/project/.github/wtfp/roles/citation-formatter.md +63 -0
  1277. package/vendors/copilot/project/.github/wtfp/roles/coherence-checker.md +61 -0
  1278. package/vendors/copilot/project/.github/wtfp/roles/outliner.md +68 -0
  1279. package/vendors/copilot/project/.github/wtfp/roles/plan-checker.md +62 -0
  1280. package/vendors/copilot/project/.github/wtfp/roles/prose-polisher.md +63 -0
  1281. package/vendors/copilot/project/.github/wtfp/roles/research-synthesizer.md +65 -0
  1282. package/vendors/copilot/project/.github/wtfp/roles/section-planner.md +65 -0
  1283. package/vendors/copilot/project/.github/wtfp/roles/section-reviewer.md +62 -0
  1284. package/vendors/copilot/project/.github/wtfp/roles/section-writer.md +66 -0
  1285. package/vendors/copilot/project/.github/wtfp/schemas/action.schema.json +129 -0
  1286. package/vendors/copilot/project/.github/wtfp/schemas/aliases.schema.json +26 -0
  1287. package/vendors/copilot/project/.github/wtfp/schemas/catalog.schema.json +61 -0
  1288. package/vendors/copilot/project/.github/wtfp/schemas/effects.schema.json +26 -0
  1289. package/vendors/copilot/project/.github/wtfp/schemas/role-result.schema.json +74 -0
  1290. package/vendors/copilot/project/.github/wtfp/schemas/tools.schema.json +26 -0
  1291. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/SKILL.md +39 -0
  1292. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  1293. package/vendors/copilot/project/.github/wtfp/skills/wtfp-deliver-research/references/actions.md +77 -0
  1294. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/SKILL.md +40 -0
  1295. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  1296. package/vendors/copilot/project/.github/wtfp/skills/wtfp-manage-project/references/actions.md +91 -0
  1297. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/SKILL.md +40 -0
  1298. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  1299. package/vendors/copilot/project/.github/wtfp/skills/wtfp-plan-section/references/actions.md +115 -0
  1300. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/SKILL.md +37 -0
  1301. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  1302. package/vendors/copilot/project/.github/wtfp/skills/wtfp-research-literature/references/actions.md +75 -0
  1303. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/SKILL.md +40 -0
  1304. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  1305. package/vendors/copilot/project/.github/wtfp/skills/wtfp-review-manuscript/references/actions.md +96 -0
  1306. package/vendors/copilot/project/.github/wtfp/skills/wtfp-start-project/SKILL.md +38 -0
  1307. package/vendors/copilot/project/.github/wtfp/skills/wtfp-start-project/agents/openai.yaml +4 -0
  1308. package/vendors/copilot/project/.github/wtfp/skills/wtfp-start-project/references/actions.md +80 -0
  1309. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/SKILL.md +37 -0
  1310. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/agents/openai.yaml +4 -0
  1311. package/vendors/copilot/project/.github/wtfp/skills/wtfp-write-section/references/actions.md +69 -0
  1312. package/vendors/copilot/project/.github/wtfp/tools.json +54 -0
  1313. package/vendors/copilot/project/.github/wtfp/workflows/add-todo.md +32 -0
  1314. package/vendors/copilot/project/.github/wtfp/workflows/analyze-bib.md +33 -0
  1315. package/vendors/copilot/project/.github/wtfp/workflows/audit-milestone.md +32 -0
  1316. package/vendors/copilot/project/.github/wtfp/workflows/check-refs.md +32 -0
  1317. package/vendors/copilot/project/.github/wtfp/workflows/check-todos.md +32 -0
  1318. package/vendors/copilot/project/.github/wtfp/workflows/checkpoint.md +32 -0
  1319. package/vendors/copilot/project/.github/wtfp/workflows/contribute.md +30 -0
  1320. package/vendors/copilot/project/.github/wtfp/workflows/create-outline.md +33 -0
  1321. package/vendors/copilot/project/.github/wtfp/workflows/create-poster.md +32 -0
  1322. package/vendors/copilot/project/.github/wtfp/workflows/create-slides.md +32 -0
  1323. package/vendors/copilot/project/.github/wtfp/workflows/discuss-section.md +32 -0
  1324. package/vendors/copilot/project/.github/wtfp/workflows/execute-outline.md +32 -0
  1325. package/vendors/copilot/project/.github/wtfp/workflows/export-latex.md +32 -0
  1326. package/vendors/copilot/project/.github/wtfp/workflows/help.md +30 -0
  1327. package/vendors/copilot/project/.github/wtfp/workflows/insert-section.md +32 -0
  1328. package/vendors/copilot/project/.github/wtfp/workflows/list-assumptions.md +32 -0
  1329. package/vendors/copilot/project/.github/wtfp/workflows/map-project.md +32 -0
  1330. package/vendors/copilot/project/.github/wtfp/workflows/new-paper.md +37 -0
  1331. package/vendors/copilot/project/.github/wtfp/workflows/pause-writing.md +32 -0
  1332. package/vendors/copilot/project/.github/wtfp/workflows/plan-milestone-gaps.md +32 -0
  1333. package/vendors/copilot/project/.github/wtfp/workflows/plan-revision.md +32 -0
  1334. package/vendors/copilot/project/.github/wtfp/workflows/plan-section.md +34 -0
  1335. package/vendors/copilot/project/.github/wtfp/workflows/polish-prose.md +32 -0
  1336. package/vendors/copilot/project/.github/wtfp/workflows/progress.md +32 -0
  1337. package/vendors/copilot/project/.github/wtfp/workflows/quick.md +32 -0
  1338. package/vendors/copilot/project/.github/wtfp/workflows/remove-section.md +32 -0
  1339. package/vendors/copilot/project/.github/wtfp/workflows/report-bug.md +30 -0
  1340. package/vendors/copilot/project/.github/wtfp/workflows/request-feature.md +30 -0
  1341. package/vendors/copilot/project/.github/wtfp/workflows/research-gap.md +32 -0
  1342. package/vendors/copilot/project/.github/wtfp/workflows/resume-writing.md +34 -0
  1343. package/vendors/copilot/project/.github/wtfp/workflows/review-section.md +33 -0
  1344. package/vendors/copilot/project/.github/wtfp/workflows/settings.md +32 -0
  1345. package/vendors/copilot/project/.github/wtfp/workflows/submit-milestone.md +32 -0
  1346. package/vendors/copilot/project/.github/wtfp/workflows/update.md +30 -0
  1347. package/vendors/copilot/project/.github/wtfp/workflows/verify-work.md +32 -0
  1348. package/vendors/copilot/project/.github/wtfp/workflows/write-section.md +34 -0
  1349. package/vendors/copilot/project/README.md +5 -0
  1350. package/vendors/gemini/.wtfp-generated.json +796 -0
  1351. package/vendors/gemini/GEMINI.md +3 -0
  1352. package/vendors/gemini/actions/add-todo.json +52 -0
  1353. package/vendors/gemini/actions/analyze-bib.json +97 -0
  1354. package/vendors/gemini/actions/audit-milestone.json +63 -0
  1355. package/vendors/gemini/actions/check-refs.json +80 -0
  1356. package/vendors/gemini/actions/check-todos.json +52 -0
  1357. package/vendors/gemini/actions/checkpoint.json +76 -0
  1358. package/vendors/gemini/actions/contribute.json +57 -0
  1359. package/vendors/gemini/actions/create-outline.json +84 -0
  1360. package/vendors/gemini/actions/create-poster.json +59 -0
  1361. package/vendors/gemini/actions/create-slides.json +59 -0
  1362. package/vendors/gemini/actions/discuss-section.json +76 -0
  1363. package/vendors/gemini/actions/execute-outline.json +116 -0
  1364. package/vendors/gemini/actions/export-latex.json +65 -0
  1365. package/vendors/gemini/actions/help.json +30 -0
  1366. package/vendors/gemini/actions/insert-section.json +61 -0
  1367. package/vendors/gemini/actions/list-assumptions.json +35 -0
  1368. package/vendors/gemini/actions/map-project.json +57 -0
  1369. package/vendors/gemini/actions/new-paper.json +70 -0
  1370. package/vendors/gemini/actions/pause-writing.json +71 -0
  1371. package/vendors/gemini/actions/plan-milestone-gaps.json +57 -0
  1372. package/vendors/gemini/actions/plan-revision.json +58 -0
  1373. package/vendors/gemini/actions/plan-section.json +100 -0
  1374. package/vendors/gemini/actions/polish-prose.json +69 -0
  1375. package/vendors/gemini/actions/progress.json +51 -0
  1376. package/vendors/gemini/actions/quick.json +70 -0
  1377. package/vendors/gemini/actions/remove-section.json +63 -0
  1378. package/vendors/gemini/actions/report-bug.json +47 -0
  1379. package/vendors/gemini/actions/request-feature.json +47 -0
  1380. package/vendors/gemini/actions/research-gap.json +101 -0
  1381. package/vendors/gemini/actions/resume-writing.json +65 -0
  1382. package/vendors/gemini/actions/review-section.json +83 -0
  1383. package/vendors/gemini/actions/settings.json +47 -0
  1384. package/vendors/gemini/actions/submit-milestone.json +77 -0
  1385. package/vendors/gemini/actions/update.json +42 -0
  1386. package/vendors/gemini/actions/verify-work.json +63 -0
  1387. package/vendors/gemini/actions/write-section.json +115 -0
  1388. package/vendors/gemini/agents/wtfp/argument-verifier.md +137 -180
  1389. package/vendors/gemini/agents/wtfp/citation-expert.md +128 -27
  1390. package/vendors/gemini/agents/wtfp/citation-formatter.md +129 -25
  1391. package/vendors/gemini/agents/wtfp/coherence-checker.md +136 -158
  1392. package/vendors/gemini/agents/wtfp/outliner.md +143 -248
  1393. package/vendors/gemini/agents/wtfp/plan-checker.md +137 -240
  1394. package/vendors/gemini/agents/wtfp/prose-polisher.md +138 -154
  1395. package/vendors/gemini/agents/wtfp/research-synthesizer.md +140 -201
  1396. package/vendors/gemini/agents/wtfp/section-planner.md +140 -351
  1397. package/vendors/gemini/agents/wtfp/section-reviewer.md +137 -171
  1398. package/vendors/gemini/agents/wtfp/section-writer.md +141 -300
  1399. package/vendors/gemini/aliases.lock.json +42 -0
  1400. package/vendors/gemini/catalog.json +127 -0
  1401. package/vendors/gemini/commands/wtfp/add-todo.toml +679 -68
  1402. package/vendors/gemini/commands/wtfp/analyze-bib.toml +9 -121
  1403. package/vendors/gemini/commands/wtfp/audit-milestone.toml +9 -273
  1404. package/vendors/gemini/commands/wtfp/check-refs.toml +9 -118
  1405. package/vendors/gemini/commands/wtfp/check-todos.toml +568 -142
  1406. package/vendors/gemini/commands/wtfp/checkpoint.toml +1441 -67
  1407. package/vendors/gemini/commands/wtfp/contribute.toml +9 -264
  1408. package/vendors/gemini/commands/wtfp/create-outline.toml +1275 -126
  1409. package/vendors/gemini/commands/wtfp/create-poster.toml +9 -31
  1410. package/vendors/gemini/commands/wtfp/create-slides.toml +9 -30
  1411. package/vendors/gemini/commands/wtfp/discuss-section.toml +996 -59
  1412. package/vendors/gemini/commands/wtfp/execute-outline.toml +1458 -220
  1413. package/vendors/gemini/commands/wtfp/export-latex.toml +9 -204
  1414. package/vendors/gemini/commands/wtfp/help.toml +267 -175
  1415. package/vendors/gemini/commands/wtfp/insert-section.toml +685 -89
  1416. package/vendors/gemini/commands/wtfp/list-assumptions.toml +794 -77
  1417. package/vendors/gemini/commands/wtfp/map-project.toml +733 -85
  1418. package/vendors/gemini/commands/wtfp/new-paper.toml +874 -147
  1419. package/vendors/gemini/commands/wtfp/pause-writing.toml +992 -98
  1420. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +828 -218
  1421. package/vendors/gemini/commands/wtfp/plan-revision.toml +811 -137
  1422. package/vendors/gemini/commands/wtfp/plan-section.toml +1492 -184
  1423. package/vendors/gemini/commands/wtfp/polish-prose.toml +775 -79
  1424. package/vendors/gemini/commands/wtfp/progress.toml +1399 -99
  1425. package/vendors/gemini/commands/wtfp/quick.toml +751 -65
  1426. package/vendors/gemini/commands/wtfp/remove-section.toml +9 -135
  1427. package/vendors/gemini/commands/wtfp/report-bug.toml +9 -121
  1428. package/vendors/gemini/commands/wtfp/request-feature.toml +9 -150
  1429. package/vendors/gemini/commands/wtfp/research-gap.toml +9 -209
  1430. package/vendors/gemini/commands/wtfp/resume-writing.toml +1236 -90
  1431. package/vendors/gemini/commands/wtfp/review-section.toml +1008 -86
  1432. package/vendors/gemini/commands/wtfp/settings.toml +411 -153
  1433. package/vendors/gemini/commands/wtfp/submit-milestone.toml +1279 -311
  1434. package/vendors/gemini/commands/wtfp/update.toml +9 -102
  1435. package/vendors/gemini/commands/wtfp/verify-work.toml +735 -201
  1436. package/vendors/gemini/commands/wtfp/write-section.toml +1460 -202
  1437. package/vendors/gemini/compatibility/action-availability.json +314 -0
  1438. package/vendors/gemini/effects.json +107 -0
  1439. package/vendors/gemini/fleets/wtfp-draft-review.json +35 -0
  1440. package/vendors/gemini/fleets/wtfp-plan-section.json +34 -0
  1441. package/vendors/gemini/gemini-extension.json +6 -0
  1442. package/vendors/gemini/project/README.md +65 -0
  1443. package/vendors/gemini/project/schemas/checkpoint.schema.json +102 -0
  1444. package/vendors/gemini/project/schemas/common.schema.json +33 -0
  1445. package/vendors/gemini/project/schemas/config.schema.json +69 -0
  1446. package/vendors/gemini/project/schemas/decisions.schema.json +31 -0
  1447. package/vendors/gemini/project/schemas/evidence.schema.json +48 -0
  1448. package/vendors/gemini/project/schemas/manifest.schema.json +102 -0
  1449. package/vendors/gemini/project/schemas/outline.schema.json +67 -0
  1450. package/vendors/gemini/project/schemas/section.schema.json +95 -0
  1451. package/vendors/gemini/project/schemas/source.schema.json +73 -0
  1452. package/vendors/gemini/project/schemas/state.schema.json +58 -0
  1453. package/vendors/gemini/project/schemas/validation.schema.json +74 -0
  1454. package/vendors/gemini/project/templates/checkpoint.json +25 -0
  1455. package/vendors/gemini/project/templates/config.json +31 -0
  1456. package/vendors/gemini/project/templates/decisions.json +35 -0
  1457. package/vendors/gemini/project/templates/evidence.json +18 -0
  1458. package/vendors/gemini/project/templates/manifest.json +30 -0
  1459. package/vendors/gemini/project/templates/outline.json +38 -0
  1460. package/vendors/gemini/project/templates/section.json +32 -0
  1461. package/vendors/gemini/project/templates/source.json +20 -0
  1462. package/vendors/gemini/project/templates/state.json +22 -0
  1463. package/vendors/gemini/project/templates/validation.json +32 -0
  1464. package/vendors/gemini/repository/CONTRIBUTING.md +183 -0
  1465. package/vendors/gemini/roles/argument-verifier.md +62 -0
  1466. package/vendors/gemini/roles/citation-expert.md +63 -0
  1467. package/vendors/gemini/roles/citation-formatter.md +63 -0
  1468. package/vendors/gemini/roles/coherence-checker.md +61 -0
  1469. package/vendors/gemini/roles/outliner.md +68 -0
  1470. package/vendors/gemini/roles/plan-checker.md +62 -0
  1471. package/vendors/gemini/roles/prose-polisher.md +63 -0
  1472. package/vendors/gemini/roles/research-synthesizer.md +65 -0
  1473. package/vendors/gemini/roles/section-planner.md +65 -0
  1474. package/vendors/gemini/roles/section-reviewer.md +62 -0
  1475. package/vendors/gemini/roles/section-writer.md +66 -0
  1476. package/vendors/gemini/schemas/action.schema.json +129 -0
  1477. package/vendors/gemini/schemas/aliases.schema.json +26 -0
  1478. package/vendors/gemini/schemas/catalog.schema.json +61 -0
  1479. package/vendors/gemini/schemas/effects.schema.json +26 -0
  1480. package/vendors/gemini/schemas/role-result.schema.json +74 -0
  1481. package/vendors/gemini/schemas/tools.schema.json +26 -0
  1482. package/vendors/gemini/skills/wtfp-deliver-research/SKILL.md +39 -0
  1483. package/vendors/gemini/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  1484. package/vendors/gemini/skills/wtfp-deliver-research/references/actions.md +117 -0
  1485. package/vendors/gemini/skills/wtfp-manage-project/SKILL.md +40 -0
  1486. package/vendors/gemini/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  1487. package/vendors/gemini/skills/wtfp-manage-project/references/actions.md +91 -0
  1488. package/vendors/gemini/skills/wtfp-plan-section/SKILL.md +40 -0
  1489. package/vendors/gemini/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  1490. package/vendors/gemini/skills/wtfp-plan-section/references/actions.md +131 -0
  1491. package/vendors/gemini/skills/wtfp-research-literature/SKILL.md +37 -0
  1492. package/vendors/gemini/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  1493. package/vendors/gemini/skills/wtfp-research-literature/references/actions.md +115 -0
  1494. package/vendors/gemini/skills/wtfp-review-manuscript/SKILL.md +40 -0
  1495. package/vendors/gemini/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  1496. package/vendors/gemini/skills/wtfp-review-manuscript/references/actions.md +112 -0
  1497. package/vendors/gemini/skills/wtfp-start-project/SKILL.md +38 -0
  1498. package/vendors/gemini/skills/wtfp-start-project/agents/openai.yaml +4 -0
  1499. package/vendors/gemini/skills/wtfp-start-project/references/actions.md +80 -0
  1500. package/vendors/gemini/skills/wtfp-write-section/SKILL.md +37 -0
  1501. package/vendors/gemini/skills/wtfp-write-section/agents/openai.yaml +4 -0
  1502. package/vendors/gemini/skills/wtfp-write-section/references/actions.md +69 -0
  1503. package/vendors/gemini/tools/README.md +13 -0
  1504. package/vendors/gemini/tools/bibliography/analyze-impact.js +109 -0
  1505. package/vendors/gemini/tools/bibliography/format.js +161 -0
  1506. package/vendors/gemini/tools/bibliography/index.js +104 -0
  1507. package/vendors/gemini/tools/citation/fetch.js +299 -0
  1508. package/vendors/gemini/tools/citation/rank.js +145 -0
  1509. package/vendors/gemini/tools/citation/scholar-lookup.js +188 -0
  1510. package/vendors/gemini/tools/citation/semantic-scholar.js +184 -0
  1511. package/vendors/gemini/tools.json +54 -0
  1512. package/vendors/gemini/workflows/add-todo.md +32 -0
  1513. package/vendors/gemini/workflows/analyze-bib.md +33 -0
  1514. package/vendors/gemini/workflows/audit-milestone.md +32 -0
  1515. package/vendors/gemini/workflows/check-refs.md +32 -0
  1516. package/vendors/gemini/workflows/check-todos.md +32 -0
  1517. package/vendors/gemini/workflows/checkpoint.md +32 -0
  1518. package/vendors/gemini/workflows/contribute.md +30 -0
  1519. package/vendors/gemini/workflows/create-outline.md +33 -0
  1520. package/vendors/gemini/workflows/create-poster.md +32 -0
  1521. package/vendors/gemini/workflows/create-slides.md +32 -0
  1522. package/vendors/gemini/workflows/discuss-section.md +32 -0
  1523. package/vendors/gemini/workflows/execute-outline.md +32 -0
  1524. package/vendors/gemini/workflows/export-latex.md +32 -0
  1525. package/vendors/gemini/workflows/help.md +30 -0
  1526. package/vendors/gemini/workflows/insert-section.md +32 -0
  1527. package/vendors/gemini/workflows/list-assumptions.md +32 -0
  1528. package/vendors/gemini/workflows/map-project.md +32 -0
  1529. package/vendors/gemini/workflows/new-paper.md +37 -0
  1530. package/vendors/gemini/workflows/pause-writing.md +32 -0
  1531. package/vendors/gemini/workflows/plan-milestone-gaps.md +32 -0
  1532. package/vendors/gemini/workflows/plan-revision.md +32 -0
  1533. package/vendors/gemini/workflows/plan-section.md +34 -0
  1534. package/vendors/gemini/workflows/polish-prose.md +32 -0
  1535. package/vendors/gemini/workflows/progress.md +32 -0
  1536. package/vendors/gemini/workflows/quick.md +32 -0
  1537. package/vendors/gemini/workflows/remove-section.md +32 -0
  1538. package/vendors/gemini/workflows/report-bug.md +30 -0
  1539. package/vendors/gemini/workflows/request-feature.md +30 -0
  1540. package/vendors/gemini/workflows/research-gap.md +32 -0
  1541. package/vendors/gemini/workflows/resume-writing.md +34 -0
  1542. package/vendors/gemini/workflows/review-section.md +33 -0
  1543. package/vendors/gemini/workflows/settings.md +32 -0
  1544. package/vendors/gemini/workflows/submit-milestone.md +32 -0
  1545. package/vendors/gemini/workflows/update.md +30 -0
  1546. package/vendors/gemini/workflows/verify-work.md +32 -0
  1547. package/vendors/gemini/workflows/write-section.md +34 -0
  1548. package/vendors/opencode/.wtfp-generated.json +788 -0
  1549. package/vendors/opencode/actions/add-todo.json +52 -0
  1550. package/vendors/opencode/actions/analyze-bib.json +97 -0
  1551. package/vendors/opencode/actions/audit-milestone.json +63 -0
  1552. package/vendors/opencode/actions/check-refs.json +80 -0
  1553. package/vendors/opencode/actions/check-todos.json +52 -0
  1554. package/vendors/opencode/actions/checkpoint.json +76 -0
  1555. package/vendors/opencode/actions/contribute.json +57 -0
  1556. package/vendors/opencode/actions/create-outline.json +84 -0
  1557. package/vendors/opencode/actions/create-poster.json +59 -0
  1558. package/vendors/opencode/actions/create-slides.json +59 -0
  1559. package/vendors/opencode/actions/discuss-section.json +76 -0
  1560. package/vendors/opencode/actions/execute-outline.json +116 -0
  1561. package/vendors/opencode/actions/export-latex.json +65 -0
  1562. package/vendors/opencode/actions/help.json +30 -0
  1563. package/vendors/opencode/actions/insert-section.json +61 -0
  1564. package/vendors/opencode/actions/list-assumptions.json +35 -0
  1565. package/vendors/opencode/actions/map-project.json +57 -0
  1566. package/vendors/opencode/actions/new-paper.json +70 -0
  1567. package/vendors/opencode/actions/pause-writing.json +71 -0
  1568. package/vendors/opencode/actions/plan-milestone-gaps.json +57 -0
  1569. package/vendors/opencode/actions/plan-revision.json +58 -0
  1570. package/vendors/opencode/actions/plan-section.json +100 -0
  1571. package/vendors/opencode/actions/polish-prose.json +69 -0
  1572. package/vendors/opencode/actions/progress.json +51 -0
  1573. package/vendors/opencode/actions/quick.json +70 -0
  1574. package/vendors/opencode/actions/remove-section.json +63 -0
  1575. package/vendors/opencode/actions/report-bug.json +47 -0
  1576. package/vendors/opencode/actions/request-feature.json +47 -0
  1577. package/vendors/opencode/actions/research-gap.json +101 -0
  1578. package/vendors/opencode/actions/resume-writing.json +65 -0
  1579. package/vendors/opencode/actions/review-section.json +83 -0
  1580. package/vendors/opencode/actions/settings.json +47 -0
  1581. package/vendors/opencode/actions/submit-milestone.json +77 -0
  1582. package/vendors/opencode/actions/update.json +42 -0
  1583. package/vendors/opencode/actions/verify-work.json +63 -0
  1584. package/vendors/opencode/actions/write-section.json +115 -0
  1585. package/vendors/opencode/agents/wtfp/argument-verifier.md +137 -180
  1586. package/vendors/opencode/agents/wtfp/citation-expert.md +128 -27
  1587. package/vendors/opencode/agents/wtfp/citation-formatter.md +129 -25
  1588. package/vendors/opencode/agents/wtfp/coherence-checker.md +136 -158
  1589. package/vendors/opencode/agents/wtfp/outliner.md +143 -248
  1590. package/vendors/opencode/agents/wtfp/plan-checker.md +137 -240
  1591. package/vendors/opencode/agents/wtfp/prose-polisher.md +138 -154
  1592. package/vendors/opencode/agents/wtfp/research-synthesizer.md +140 -201
  1593. package/vendors/opencode/agents/wtfp/section-planner.md +140 -351
  1594. package/vendors/opencode/agents/wtfp/section-reviewer.md +137 -171
  1595. package/vendors/opencode/agents/wtfp/section-writer.md +141 -300
  1596. package/vendors/opencode/aliases.lock.json +42 -0
  1597. package/vendors/opencode/catalog.json +127 -0
  1598. package/vendors/opencode/commands/wtfp/add-todo.md +681 -68
  1599. package/vendors/opencode/commands/wtfp/analyze-bib.md +9 -120
  1600. package/vendors/opencode/commands/wtfp/audit-milestone.md +9 -272
  1601. package/vendors/opencode/commands/wtfp/check-refs.md +9 -117
  1602. package/vendors/opencode/commands/wtfp/check-todos.md +569 -141
  1603. package/vendors/opencode/commands/wtfp/checkpoint.md +1443 -67
  1604. package/vendors/opencode/commands/wtfp/contribute.md +9 -259
  1605. package/vendors/opencode/commands/wtfp/create-outline.md +1277 -126
  1606. package/vendors/opencode/commands/wtfp/create-poster.md +9 -30
  1607. package/vendors/opencode/commands/wtfp/create-slides.md +9 -29
  1608. package/vendors/opencode/commands/wtfp/discuss-section.md +985 -46
  1609. package/vendors/opencode/commands/wtfp/execute-outline.md +1452 -212
  1610. package/vendors/opencode/commands/wtfp/export-latex.md +9 -203
  1611. package/vendors/opencode/commands/wtfp/help.md +267 -173
  1612. package/vendors/opencode/commands/wtfp/insert-section.md +686 -88
  1613. package/vendors/opencode/commands/wtfp/list-assumptions.md +795 -76
  1614. package/vendors/opencode/commands/wtfp/map-project.md +722 -72
  1615. package/vendors/opencode/commands/wtfp/new-paper.md +863 -134
  1616. package/vendors/opencode/commands/wtfp/pause-writing.md +994 -98
  1617. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +830 -218
  1618. package/vendors/opencode/commands/wtfp/plan-revision.md +812 -138
  1619. package/vendors/opencode/commands/wtfp/plan-section.md +1485 -176
  1620. package/vendors/opencode/commands/wtfp/polish-prose.md +777 -79
  1621. package/vendors/opencode/commands/wtfp/progress.md +1401 -99
  1622. package/vendors/opencode/commands/wtfp/quick.md +753 -65
  1623. package/vendors/opencode/commands/wtfp/remove-section.md +9 -134
  1624. package/vendors/opencode/commands/wtfp/report-bug.md +9 -120
  1625. package/vendors/opencode/commands/wtfp/request-feature.md +9 -149
  1626. package/vendors/opencode/commands/wtfp/research-gap.md +9 -208
  1627. package/vendors/opencode/commands/wtfp/resume-writing.md +1237 -89
  1628. package/vendors/opencode/commands/wtfp/review-section.md +1008 -85
  1629. package/vendors/opencode/commands/wtfp/settings.md +409 -149
  1630. package/vendors/opencode/commands/wtfp/submit-milestone.md +1280 -310
  1631. package/vendors/opencode/commands/wtfp/update.md +9 -101
  1632. package/vendors/opencode/commands/wtfp/verify-work.md +736 -200
  1633. package/vendors/opencode/commands/wtfp/write-section.md +1451 -190
  1634. package/vendors/opencode/compatibility/action-availability.json +314 -0
  1635. package/vendors/opencode/effects.json +107 -0
  1636. package/vendors/opencode/fleets/wtfp-draft-review.json +35 -0
  1637. package/vendors/opencode/fleets/wtfp-plan-section.json +34 -0
  1638. package/vendors/opencode/project/README.md +65 -0
  1639. package/vendors/opencode/project/schemas/checkpoint.schema.json +102 -0
  1640. package/vendors/opencode/project/schemas/common.schema.json +33 -0
  1641. package/vendors/opencode/project/schemas/config.schema.json +69 -0
  1642. package/vendors/opencode/project/schemas/decisions.schema.json +31 -0
  1643. package/vendors/opencode/project/schemas/evidence.schema.json +48 -0
  1644. package/vendors/opencode/project/schemas/manifest.schema.json +102 -0
  1645. package/vendors/opencode/project/schemas/outline.schema.json +67 -0
  1646. package/vendors/opencode/project/schemas/section.schema.json +95 -0
  1647. package/vendors/opencode/project/schemas/source.schema.json +73 -0
  1648. package/vendors/opencode/project/schemas/state.schema.json +58 -0
  1649. package/vendors/opencode/project/schemas/validation.schema.json +74 -0
  1650. package/vendors/opencode/project/templates/checkpoint.json +25 -0
  1651. package/vendors/opencode/project/templates/config.json +31 -0
  1652. package/vendors/opencode/project/templates/decisions.json +35 -0
  1653. package/vendors/opencode/project/templates/evidence.json +18 -0
  1654. package/vendors/opencode/project/templates/manifest.json +30 -0
  1655. package/vendors/opencode/project/templates/outline.json +38 -0
  1656. package/vendors/opencode/project/templates/section.json +32 -0
  1657. package/vendors/opencode/project/templates/source.json +20 -0
  1658. package/vendors/opencode/project/templates/state.json +22 -0
  1659. package/vendors/opencode/project/templates/validation.json +32 -0
  1660. package/vendors/opencode/repository/CONTRIBUTING.md +183 -0
  1661. package/vendors/opencode/roles/argument-verifier.md +62 -0
  1662. package/vendors/opencode/roles/citation-expert.md +63 -0
  1663. package/vendors/opencode/roles/citation-formatter.md +63 -0
  1664. package/vendors/opencode/roles/coherence-checker.md +61 -0
  1665. package/vendors/opencode/roles/outliner.md +68 -0
  1666. package/vendors/opencode/roles/plan-checker.md +62 -0
  1667. package/vendors/opencode/roles/prose-polisher.md +63 -0
  1668. package/vendors/opencode/roles/research-synthesizer.md +65 -0
  1669. package/vendors/opencode/roles/section-planner.md +65 -0
  1670. package/vendors/opencode/roles/section-reviewer.md +62 -0
  1671. package/vendors/opencode/roles/section-writer.md +66 -0
  1672. package/vendors/opencode/schemas/action.schema.json +129 -0
  1673. package/vendors/opencode/schemas/aliases.schema.json +26 -0
  1674. package/vendors/opencode/schemas/catalog.schema.json +61 -0
  1675. package/vendors/opencode/schemas/effects.schema.json +26 -0
  1676. package/vendors/opencode/schemas/role-result.schema.json +74 -0
  1677. package/vendors/opencode/schemas/tools.schema.json +26 -0
  1678. package/vendors/opencode/skills/wtfp-deliver-research/SKILL.md +39 -0
  1679. package/vendors/opencode/skills/wtfp-deliver-research/agents/openai.yaml +4 -0
  1680. package/vendors/opencode/skills/wtfp-deliver-research/references/actions.md +117 -0
  1681. package/vendors/opencode/skills/wtfp-manage-project/SKILL.md +40 -0
  1682. package/vendors/opencode/skills/wtfp-manage-project/agents/openai.yaml +4 -0
  1683. package/vendors/opencode/skills/wtfp-manage-project/references/actions.md +91 -0
  1684. package/vendors/opencode/skills/wtfp-plan-section/SKILL.md +40 -0
  1685. package/vendors/opencode/skills/wtfp-plan-section/agents/openai.yaml +4 -0
  1686. package/vendors/opencode/skills/wtfp-plan-section/references/actions.md +131 -0
  1687. package/vendors/opencode/skills/wtfp-research-literature/SKILL.md +37 -0
  1688. package/vendors/opencode/skills/wtfp-research-literature/agents/openai.yaml +4 -0
  1689. package/vendors/opencode/skills/wtfp-research-literature/references/actions.md +115 -0
  1690. package/vendors/opencode/skills/wtfp-review-manuscript/SKILL.md +40 -0
  1691. package/vendors/opencode/skills/wtfp-review-manuscript/agents/openai.yaml +4 -0
  1692. package/vendors/opencode/skills/wtfp-review-manuscript/references/actions.md +112 -0
  1693. package/vendors/opencode/skills/wtfp-start-project/SKILL.md +38 -0
  1694. package/vendors/opencode/skills/wtfp-start-project/agents/openai.yaml +4 -0
  1695. package/vendors/opencode/skills/wtfp-start-project/references/actions.md +80 -0
  1696. package/vendors/opencode/skills/wtfp-write-section/SKILL.md +37 -0
  1697. package/vendors/opencode/skills/wtfp-write-section/agents/openai.yaml +4 -0
  1698. package/vendors/opencode/skills/wtfp-write-section/references/actions.md +69 -0
  1699. package/vendors/opencode/tools/README.md +13 -0
  1700. package/vendors/opencode/tools/bibliography/analyze-impact.js +109 -0
  1701. package/vendors/opencode/tools/bibliography/format.js +161 -0
  1702. package/vendors/opencode/tools/bibliography/index.js +104 -0
  1703. package/vendors/opencode/tools/citation/fetch.js +299 -0
  1704. package/vendors/opencode/tools/citation/rank.js +145 -0
  1705. package/vendors/opencode/tools/citation/scholar-lookup.js +188 -0
  1706. package/vendors/opencode/tools/citation/semantic-scholar.js +184 -0
  1707. package/vendors/opencode/tools.json +54 -0
  1708. package/vendors/opencode/workflows/add-todo.md +32 -0
  1709. package/vendors/opencode/workflows/analyze-bib.md +33 -0
  1710. package/vendors/opencode/workflows/audit-milestone.md +32 -0
  1711. package/vendors/opencode/workflows/check-refs.md +32 -0
  1712. package/vendors/opencode/workflows/check-todos.md +32 -0
  1713. package/vendors/opencode/workflows/checkpoint.md +32 -0
  1714. package/vendors/opencode/workflows/contribute.md +30 -0
  1715. package/vendors/opencode/workflows/create-outline.md +33 -0
  1716. package/vendors/opencode/workflows/create-poster.md +32 -0
  1717. package/vendors/opencode/workflows/create-slides.md +32 -0
  1718. package/vendors/opencode/workflows/discuss-section.md +32 -0
  1719. package/vendors/opencode/workflows/execute-outline.md +32 -0
  1720. package/vendors/opencode/workflows/export-latex.md +32 -0
  1721. package/vendors/opencode/workflows/help.md +30 -0
  1722. package/vendors/opencode/workflows/insert-section.md +32 -0
  1723. package/vendors/opencode/workflows/list-assumptions.md +32 -0
  1724. package/vendors/opencode/workflows/map-project.md +32 -0
  1725. package/vendors/opencode/workflows/new-paper.md +37 -0
  1726. package/vendors/opencode/workflows/pause-writing.md +32 -0
  1727. package/vendors/opencode/workflows/plan-milestone-gaps.md +32 -0
  1728. package/vendors/opencode/workflows/plan-revision.md +32 -0
  1729. package/vendors/opencode/workflows/plan-section.md +34 -0
  1730. package/vendors/opencode/workflows/polish-prose.md +32 -0
  1731. package/vendors/opencode/workflows/progress.md +32 -0
  1732. package/vendors/opencode/workflows/quick.md +32 -0
  1733. package/vendors/opencode/workflows/remove-section.md +32 -0
  1734. package/vendors/opencode/workflows/report-bug.md +30 -0
  1735. package/vendors/opencode/workflows/request-feature.md +30 -0
  1736. package/vendors/opencode/workflows/research-gap.md +32 -0
  1737. package/vendors/opencode/workflows/resume-writing.md +34 -0
  1738. package/vendors/opencode/workflows/review-section.md +33 -0
  1739. package/vendors/opencode/workflows/settings.md +32 -0
  1740. package/vendors/opencode/workflows/submit-milestone.md +32 -0
  1741. package/vendors/opencode/workflows/update.md +30 -0
  1742. package/vendors/opencode/workflows/verify-work.md +32 -0
  1743. package/vendors/opencode/workflows/write-section.md +34 -0
  1744. package/vendors/claude/commands/wtfp/add-todo.md +0 -108
  1745. package/vendors/claude/commands/wtfp/analyze-bib.md +0 -137
  1746. package/vendors/claude/commands/wtfp/audit-milestone.md +0 -286
  1747. package/vendors/claude/commands/wtfp/check-refs.md +0 -134
  1748. package/vendors/claude/commands/wtfp/check-todos.md +0 -152
  1749. package/vendors/claude/commands/wtfp/checkpoint.md +0 -105
  1750. package/vendors/claude/commands/wtfp/contribute.md +0 -278
  1751. package/vendors/claude/commands/wtfp/create-outline.md +0 -189
  1752. package/vendors/claude/commands/wtfp/create-poster.md +0 -42
  1753. package/vendors/claude/commands/wtfp/create-slides.md +0 -41
  1754. package/vendors/claude/commands/wtfp/discuss-section.md +0 -71
  1755. package/vendors/claude/commands/wtfp/execute-outline.md +0 -257
  1756. package/vendors/claude/commands/wtfp/export-latex.md +0 -216
  1757. package/vendors/claude/commands/wtfp/help.md +0 -264
  1758. package/vendors/claude/commands/wtfp/insert-section.md +0 -130
  1759. package/vendors/claude/commands/wtfp/list-assumptions.md +0 -109
  1760. package/vendors/claude/commands/wtfp/map-project.md +0 -108
  1761. package/vendors/claude/commands/wtfp/new-paper.md +0 -169
  1762. package/vendors/claude/commands/wtfp/pause-writing.md +0 -145
  1763. package/vendors/claude/commands/wtfp/plan-milestone-gaps.md +0 -255
  1764. package/vendors/claude/commands/wtfp/plan-revision.md +0 -180
  1765. package/vendors/claude/commands/wtfp/plan-section.md +0 -222
  1766. package/vendors/claude/commands/wtfp/polish-prose.md +0 -125
  1767. package/vendors/claude/commands/wtfp/progress.md +0 -153
  1768. package/vendors/claude/commands/wtfp/quick.md +0 -107
  1769. package/vendors/claude/commands/wtfp/remove-section.md +0 -147
  1770. package/vendors/claude/commands/wtfp/report-bug.md +0 -131
  1771. package/vendors/claude/commands/wtfp/request-feature.md +0 -160
  1772. package/vendors/claude/commands/wtfp/research-gap.md +0 -222
  1773. package/vendors/claude/commands/wtfp/resume-writing.md +0 -142
  1774. package/vendors/claude/commands/wtfp/review-section.md +0 -131
  1775. package/vendors/claude/commands/wtfp/settings.md +0 -197
  1776. package/vendors/claude/commands/wtfp/submit-milestone.md +0 -360
  1777. package/vendors/claude/commands/wtfp/update.md +0 -112
  1778. package/vendors/claude/commands/wtfp/verify-work.md +0 -254
  1779. package/vendors/claude/commands/wtfp/write-section.md +0 -237
  1780. package/vendors/claude/mcp/research-server/package.json +0 -13
  1781. package/vendors/claude/mcp/research-server/src/index.js +0 -133
  1782. package/vendors/claude/skills/wtfp/echarts/SKILL.md +0 -47
  1783. package/vendors/claude/skills/wtfp/marp/SKILL.md +0 -49
@@ -3,7 +3,11 @@ const path = require('path');
3
3
  const os = require('os');
4
4
  const MANIFEST = require('../lib/manifest');
5
5
  const {
6
- isValidPath,
6
+ ADAPTER_CONTRACT_VERSION,
7
+ GENERATOR_VERSION
8
+ } = require('../lib/adapter-metadata');
9
+ const { activateNativeRegistration } = require('../lib/native-registration');
10
+ const {
7
11
  expandTilde,
8
12
  getPathLabel,
9
13
  getBackupPath,
@@ -12,6 +16,19 @@ const {
12
16
  createRL,
13
17
  prompt
14
18
  } = require('../lib/utils');
19
+ const {
20
+ RECEIPT_FILE,
21
+ assertGuardMatchesTarget,
22
+ assertTargetGuard,
23
+ assertOwnedAbsolutePath,
24
+ atomicWriteFile,
25
+ createOwnedDirectory,
26
+ createTargetGuard,
27
+ materializeTargetGuard,
28
+ readOwnedRegularSnapshot,
29
+ removeCreatedDirectories,
30
+ sha256Buffer
31
+ } = require('../lib/ownership');
15
32
 
16
33
  /**
17
34
  * Get vendor-specific config directory
@@ -32,8 +49,11 @@ function getVendorDir(runtime, explicitConfigDir) {
32
49
  }
33
50
 
34
51
  const envDir = process.env[vendorConfig.configDirEnv];
35
- if (envDir) {
36
- return expandTilde(envDir);
52
+ if (typeof envDir === 'string' && envDir.trim().length > 0) {
53
+ const resolvedEnvironmentRoot = expandTilde(envDir);
54
+ return vendorConfig.envSubdir
55
+ ? path.join(resolvedEnvironmentRoot, vendorConfig.envSubdir)
56
+ : resolvedEnvironmentRoot;
37
57
  }
38
58
 
39
59
  return path.join(os.homedir(), vendorConfig.defaultDir);
@@ -42,37 +62,112 @@ function getVendorDir(runtime, explicitConfigDir) {
42
62
  /**
43
63
  * Process file content with path replacement
44
64
  */
45
- function processContent(srcPath, pathPrefix) {
46
- if (srcPath.endsWith('.md') || srcPath.endsWith('.json')) {
47
- let content = fs.readFileSync(srcPath, 'utf8');
65
+ function processContent(srcPath, pathPrefix, sourceBytes = null) {
66
+ const textExtensions = new Set(['.md', '.json', '.toml', '.yaml', '.yml', '.js', '.mjs', '.cjs', '.txt']);
67
+ if (textExtensions.has(path.extname(srcPath).toLowerCase())) {
68
+ const content = sourceBytes === null
69
+ ? fs.readFileSync(srcPath, 'utf8')
70
+ : Buffer.from(sourceBytes).toString('utf8');
48
71
  return content.replace(/~\/\.claude\//g, pathPrefix);
49
72
  }
50
73
  return null;
51
74
  }
52
75
 
76
+ function identityOf(stat) {
77
+ return `${String(stat.dev)}:${String(stat.ino)}`;
78
+ }
79
+
80
+ function pathIsWithin(root, candidate) {
81
+ const relative = path.relative(path.resolve(root), path.resolve(candidate));
82
+ return relative === '' || (!relative.startsWith(`..${path.sep}`) && relative !== '..' && !path.isAbsolute(relative));
83
+ }
84
+
85
+ function readSourceSnapshot(file) {
86
+ const rootStat = fs.lstatSync(file.sourceRootPath);
87
+ if (rootStat.isSymbolicLink() || !rootStat.isDirectory() || identityOf(rootStat) !== file.sourceRootIdentity) {
88
+ throw new Error(`Package component root changed during installation planning: ${file.sourceRootPath}`);
89
+ }
90
+ const currentRoot = fs.realpathSync(file.sourceRootPath);
91
+ if (currentRoot !== file.sourceRoot) {
92
+ throw new Error(`Package component root was redirected during installation planning: ${file.sourceRootPath}`);
93
+ }
94
+
95
+ const flags = fs.constants.O_RDONLY | (fs.constants.O_NOFOLLOW || 0);
96
+ const descriptor = fs.openSync(file.src, flags);
97
+ try {
98
+ const before = fs.fstatSync(descriptor);
99
+ if (!before.isFile()) throw new Error(`Package source is not a regular file: ${file.src}`);
100
+ const canonicalSource = fs.realpathSync(file.src);
101
+ if (!pathIsWithin(file.sourceRoot, canonicalSource) || canonicalSource === file.sourceRoot) {
102
+ throw new Error(`Package source escaped its component root: ${file.src}`);
103
+ }
104
+ const bytes = fs.readFileSync(descriptor);
105
+ const after = fs.fstatSync(descriptor);
106
+ if (identityOf(before) !== identityOf(after) || before.size !== after.size || before.mtimeMs !== after.mtimeMs) {
107
+ throw new Error(`Package source changed while it was being read: ${file.src}`);
108
+ }
109
+ const pathStat = fs.lstatSync(file.src);
110
+ if (pathStat.isSymbolicLink() || !pathStat.isFile() || identityOf(pathStat) !== identityOf(before)) {
111
+ throw new Error(`Package source path changed while it was being read: ${file.src}`);
112
+ }
113
+ return { bytes, mode: before.mode & 0o777 };
114
+ } finally {
115
+ fs.closeSync(descriptor);
116
+ }
117
+ }
118
+
53
119
  /**
54
120
  * Collect files from a manifest component
55
121
  */
56
122
  function collectComponentFiles(component, destBase, files = []) {
57
- if (!fs.existsSync(component.src)) return files;
123
+ let componentStat;
124
+ try {
125
+ componentStat = fs.lstatSync(component.src);
126
+ } catch (error) {
127
+ if (error.code === 'ENOENT') return files;
128
+ throw error;
129
+ }
130
+ if (componentStat.isSymbolicLink()) {
131
+ throw new Error(`Refusing symbolic-link package component root: ${component.src}`);
132
+ }
133
+ if (!componentStat.isDirectory()) {
134
+ throw new Error(`Package component root is not a directory: ${component.src}`);
135
+ }
136
+ const sourceRoot = fs.realpathSync(component.src);
137
+ const sourceRootIdentity = identityOf(componentStat);
58
138
 
59
139
  function recurse(currentSrc, currentRel) {
60
- const entries = fs.readdirSync(currentSrc, { withFileTypes: true });
140
+ const currentStat = fs.lstatSync(currentSrc);
141
+ const currentRealPath = fs.realpathSync(currentSrc);
142
+ if (currentStat.isSymbolicLink() || !currentStat.isDirectory() || !pathIsWithin(sourceRoot, currentRealPath)) {
143
+ throw new Error(`Refusing redirected package directory: ${currentSrc}`);
144
+ }
145
+ const entries = fs.readdirSync(currentSrc, { withFileTypes: true })
146
+ .sort((left, right) => left.name.localeCompare(right.name));
61
147
 
62
148
  for (const entry of entries) {
63
149
  const srcPath = path.join(currentSrc, entry.name);
64
150
  const relPath = path.join(currentRel, entry.name);
65
151
  const destPath = path.join(destBase, component.dest, relPath);
66
152
 
67
- if (entry.isDirectory()) {
153
+ const entryStat = fs.lstatSync(srcPath);
154
+ if (entryStat.isSymbolicLink()) {
155
+ throw new Error(`Refusing symbolic link in package component: ${srcPath}`);
156
+ } else if (entryStat.isDirectory()) {
68
157
  recurse(srcPath, relPath);
69
- } else {
158
+ } else if (entryStat.isFile()) {
159
+ const topLevel = relPath.split(path.sep)[0];
70
160
  files.push({
71
161
  src: srcPath,
72
162
  dest: destPath,
73
163
  name: entry.name,
74
- componentId: component.id
164
+ componentId: component.componentIds?.[topLevel] || component.id,
165
+ sourceRoot,
166
+ sourceRootPath: component.src,
167
+ sourceRootIdentity
75
168
  });
169
+ } else {
170
+ throw new Error(`Refusing unsupported package entry: ${srcPath}`);
76
171
  }
77
172
  }
78
173
  }
@@ -81,17 +176,59 @@ function collectComponentFiles(component, destBase, files = []) {
81
176
  return files;
82
177
  }
83
178
 
179
+ /**
180
+ * Expand a generated bundle into the exact legacy --only projection requested
181
+ * by the caller. A complete install consumes the bundle root once; selective
182
+ * installs traverse only declared top-level roots and remain partial.
183
+ */
184
+ function componentsForSelection(vendorConfig, onlyInstall) {
185
+ if (onlyInstall === 'all') return vendorConfig.components;
186
+ const selected = [];
187
+
188
+ for (const component of vendorConfig.components) {
189
+ if (component.id === onlyInstall ||
190
+ (onlyInstall === 'commands' && component.id === 'skills')) {
191
+ selected.push(component);
192
+ continue;
193
+ }
194
+
195
+ const roots = component.selectionRoots?.[onlyInstall];
196
+ if (!Array.isArray(roots)) continue;
197
+ for (const root of roots) {
198
+ selected.push({
199
+ ...component,
200
+ id: component.componentIds?.[root] || onlyInstall,
201
+ src: path.join(component.src, root),
202
+ dest: path.join(component.dest, root),
203
+ selectionRoots: undefined,
204
+ componentIds: undefined
205
+ });
206
+ }
207
+ }
208
+
209
+ return selected;
210
+ }
211
+
84
212
  /**
85
213
  * Install files with conflict resolution
86
214
  */
87
215
  async function installWithConflictResolution(files, pathPrefix, targetDir, options) {
88
216
  const { out, hasForce, hasBackupAll, isInteractive, showExplanations } = options;
89
217
  const c = out.colors;
90
- const rl = createRL();
218
+ let rl = null;
91
219
  let globalChoice = null;
92
220
  const stats = { installed: 0, skipped: 0, backed: 0 };
221
+ const plan = [];
222
+ const targetGuard = options.targetGuard || createTargetGuard(targetDir);
223
+
224
+ assertTargetGuard(targetGuard);
225
+ for (const file of files) {
226
+ assertOwnedAbsolutePath(targetDir, file.dest, targetGuard);
227
+ }
93
228
 
94
- const existingFiles = files.filter(f => fs.existsSync(f.dest));
229
+ const existingFiles = files.filter(file => Boolean(
230
+ readOwnedRegularSnapshot(targetDir, file.dest, targetGuard, { allowMissing: true })
231
+ ));
95
232
 
96
233
  if (existingFiles.length > 0 && !hasForce && !hasBackupAll && isInteractive) {
97
234
  const relPath = getPathLabel(targetDir, true);
@@ -107,24 +244,48 @@ async function installWithConflictResolution(files, pathPrefix, targetDir, optio
107
244
  }
108
245
  }
109
246
 
110
- for (const file of files) {
111
- const exists = fs.existsSync(file.dest);
112
- const relDest = file.dest.replace(os.homedir(), '~').replace(process.cwd(), '.');
113
-
114
- fs.mkdirSync(path.dirname(file.dest), { recursive: true });
115
-
116
- if (exists && !hasForce && !hasBackupAll) {
117
- let choice = globalChoice;
247
+ try {
248
+ for (const file of files) {
249
+ const existingSnapshot = readOwnedRegularSnapshot(
250
+ targetDir,
251
+ file.dest,
252
+ targetGuard,
253
+ { allowMissing: true }
254
+ );
255
+ const exists = Boolean(existingSnapshot);
256
+ const relDest = file.dest.replace(os.homedir(), '~').replace(process.cwd(), '.');
257
+
258
+ // A shared plugin manifest may belong to another package. Make this
259
+ // decision before creating a backup or mutating any path.
260
+ if (file.name === 'plugin.json' && file.componentId === 'plugin' && exists) {
261
+ try {
262
+ const existing = JSON.parse(existingSnapshot.bytes.toString('utf8'));
263
+ if (existing.name && existing.name !== 'wtf-p' && existing.name !== 'write-the-f-paper') {
264
+ out.verbose(` ${c.yellow('!')} ${c.dim(relDest)} belongs to another plugin — skipped`);
265
+ stats.skipped++;
266
+ continue;
267
+ }
268
+ } catch {
269
+ // Invalid JSON cannot establish third-party ownership. Normal
270
+ // conflict handling still defaults to preserving it.
271
+ }
272
+ }
118
273
 
119
- if (!choice && isInteractive) {
274
+ let choice = exists ? 'skip' : 'create';
275
+ if (exists && hasBackupAll) {
276
+ choice = 'backup';
277
+ } else if (exists && hasForce) {
278
+ choice = 'overwrite';
279
+ } else if (exists && globalChoice) {
280
+ choice = globalChoice;
281
+ } else if (exists && isInteractive) {
282
+ if (!rl) rl = createRL();
120
283
  const answer = await prompt(rl,
121
284
  ` ${c.yellow('?')} ${c.dim(relDest)} exists. [o]verwrite/[s]kip/[b]ackup/[a]ll: `
122
285
  );
123
286
 
124
287
  if (answer.startsWith('a')) {
125
- const allAnswer = await prompt(rl,
126
- ` Apply to all: [o]verwrite/[s]kip/[b]ackup: `
127
- );
288
+ const allAnswer = await prompt(rl, ' Apply to all: [o]verwrite/[s]kip/[b]ackup: ');
128
289
  if (allAnswer.startsWith('o')) globalChoice = 'overwrite';
129
290
  else if (allAnswer.startsWith('b')) globalChoice = 'backup';
130
291
  else globalChoice = 'skip';
@@ -133,11 +294,7 @@ async function installWithConflictResolution(files, pathPrefix, targetDir, optio
133
294
  choice = 'overwrite';
134
295
  } else if (answer.startsWith('b')) {
135
296
  choice = 'backup';
136
- } else {
137
- choice = 'skip';
138
297
  }
139
- } else if (!choice) {
140
- choice = 'skip';
141
298
  }
142
299
 
143
300
  if (choice === 'skip') {
@@ -146,53 +303,283 @@ async function installWithConflictResolution(files, pathPrefix, targetDir, optio
146
303
  continue;
147
304
  }
148
305
 
149
- if (choice === 'backup') {
150
- const backupPath = getBackupPath(file.dest);
151
- fs.copyFileSync(file.dest, backupPath);
152
- out.log(` ${c.cyan('↻')} Backed up to ${c.dim(path.basename(backupPath))}`);
153
- stats.backed++;
306
+ const source = readSourceSnapshot(file);
307
+ const processed = processContent(file.src, pathPrefix, source.bytes);
308
+ const content = processed === null ? source.bytes : Buffer.from(processed, 'utf8');
309
+ plan.push({
310
+ ...file,
311
+ exists,
312
+ choice,
313
+ content,
314
+ sourceMode: source.mode,
315
+ relDest,
316
+ existingHash: existingSnapshot ? existingSnapshot.sha256 : null,
317
+ existingIdentity: existingSnapshot ? existingSnapshot.identityKey : null
318
+ });
319
+ }
320
+ } finally {
321
+ if (rl) rl.close();
322
+ }
323
+
324
+ const applied = [];
325
+ const createdDirectories = [];
326
+ let rolledBack = false;
327
+ let rollbackFailures = [];
328
+
329
+ function uniqueBackupPath(destination) {
330
+ const initial = getBackupPath(destination);
331
+ if (!fs.existsSync(initial)) return initial;
332
+ let index = 2;
333
+ let candidate = `${initial}.${index}`;
334
+ while (fs.existsSync(candidate)) {
335
+ index++;
336
+ candidate = `${initial}.${index}`;
337
+ }
338
+ return candidate;
339
+ }
340
+
341
+ function ensureOwnedDirectory(directory) {
342
+ assertTargetGuard(targetGuard);
343
+ let current = path.resolve(directory);
344
+ const resolvedTarget = path.resolve(targetDir);
345
+ const missing = [];
346
+ while (current === resolvedTarget || current.startsWith(resolvedTarget + path.sep)) {
347
+ try {
348
+ const stat = fs.lstatSync(current);
349
+ if (stat.isSymbolicLink() || !stat.isDirectory()) {
350
+ throw new Error(`Destination parent is not a real directory: ${current}`);
351
+ }
352
+ break;
353
+ } catch (error) {
354
+ if (error.code !== 'ENOENT') throw error;
355
+ missing.push(current);
154
356
  }
155
- } else if (exists && hasBackupAll) {
156
- const backupPath = getBackupPath(file.dest);
157
- fs.copyFileSync(file.dest, backupPath);
158
- out.verbose(` ${c.cyan('↻')} Backed up ${c.dim(relDest)}`);
159
- stats.backed++;
357
+ if (current === resolvedTarget) break;
358
+ current = path.dirname(current);
359
+ }
360
+
361
+ for (const missingDirectory of missing.reverse()) {
362
+ createdDirectories.push(createOwnedDirectory(targetGuard, missingDirectory));
160
363
  }
364
+ assertTargetGuard(targetGuard);
365
+ }
366
+
367
+ function rollback() {
368
+ if (rolledBack) return rollbackFailures;
369
+ rolledBack = true;
370
+ rollbackFailures = [];
371
+
372
+ for (const record of [...applied].reverse()) {
373
+ try {
374
+ assertOwnedAbsolutePath(targetDir, record.dest, targetGuard);
375
+ if (record.writeApplied) {
376
+ const currentSnapshot = readOwnedRegularSnapshot(
377
+ targetDir,
378
+ record.dest,
379
+ targetGuard,
380
+ { allowMissing: true }
381
+ );
382
+ if (!currentSnapshot || currentSnapshot.sha256 !== record.installedHash ||
383
+ (record.installedIdentity && currentSnapshot.identityKey !== record.installedIdentity)) {
384
+ throw new Error('destination changed after publication; concurrent content was preserved');
385
+ }
386
+ assertTargetGuard(targetGuard);
387
+ if (record.existed) {
388
+ atomicWriteFile(record.dest, record.previousContent, {
389
+ mode: record.previousMode,
390
+ targetGuard
391
+ });
392
+ } else {
393
+ fs.unlinkSync(record.dest);
394
+ assertTargetGuard(targetGuard);
395
+ }
396
+ }
397
+ } catch (error) {
398
+ rollbackFailures.push({ path: record.dest, message: error.message });
399
+ }
161
400
 
162
- // Safety: never overwrite a non-WTF-P plugin.json
163
- if (file.name === 'plugin.json' && file.componentId === 'plugin' && exists) {
164
401
  try {
165
- const existing = JSON.parse(fs.readFileSync(file.dest, 'utf8'));
166
- if (existing.name && existing.name !== 'wtf-p' && existing.name !== 'write-the-f-paper') {
167
- out.verbose(` ${c.yellow('!')} ${c.dim(relDest)} belongs to another plugin — skipped`);
168
- stats.skipped++;
169
- continue;
402
+ if (record.backupPath && fs.existsSync(record.backupPath)) {
403
+ assertOwnedAbsolutePath(targetDir, record.backupPath, targetGuard);
404
+ const backupSnapshot = readOwnedRegularSnapshot(
405
+ targetDir,
406
+ record.backupPath,
407
+ targetGuard,
408
+ { allowMissing: true }
409
+ );
410
+ if (!backupSnapshot || backupSnapshot.sha256 !== record.backupHash ||
411
+ (record.backupIdentity && backupSnapshot.identityKey !== record.backupIdentity)) {
412
+ throw new Error('transaction backup changed; it was preserved');
413
+ }
414
+ assertTargetGuard(targetGuard);
415
+ fs.unlinkSync(record.backupPath);
416
+ assertTargetGuard(targetGuard);
170
417
  }
171
- } catch { /* corrupt JSON — safe to overwrite */ }
418
+ } catch (error) {
419
+ rollbackFailures.push({ path: record.backupPath, message: error.message });
420
+ }
172
421
  }
173
422
 
174
- const content = processContent(file.src, pathPrefix);
175
- if (content !== null) {
176
- fs.writeFileSync(file.dest, content);
177
- } else {
178
- fs.copyFileSync(file.src, file.dest);
423
+ rollbackFailures.push(...removeCreatedDirectories(createdDirectories, targetGuard));
424
+ return rollbackFailures;
425
+ }
426
+
427
+ try {
428
+ if (plan.length > 0 && !targetGuard.targetIdentity) {
429
+ createdDirectories.push(...materializeTargetGuard(targetGuard));
179
430
  }
431
+ for (const item of plan) {
432
+ // Recheck immediately before mutation to catch a newly introduced
433
+ // symlink in a previously validated destination path.
434
+ assertTargetGuard(targetGuard);
435
+ assertOwnedAbsolutePath(targetDir, item.dest, targetGuard);
436
+ const currentSnapshot = readOwnedRegularSnapshot(
437
+ targetDir,
438
+ item.dest,
439
+ targetGuard,
440
+ { allowMissing: true }
441
+ );
442
+ if (Boolean(currentSnapshot) !== item.exists) {
443
+ throw new Error(`Destination changed while installation was being planned: ${item.relDest}`);
444
+ }
445
+ const previousContent = currentSnapshot ? currentSnapshot.bytes : null;
446
+ if (currentSnapshot && (currentSnapshot.sha256 !== item.existingHash ||
447
+ currentSnapshot.identityKey !== item.existingIdentity)) {
448
+ throw new Error(`Destination content changed while installation was being planned: ${item.relDest}`);
449
+ }
450
+ const previousMode = currentSnapshot ? currentSnapshot.mode : undefined;
451
+ const sourceMode = item.sourceMode;
452
+ const appliedRecord = {
453
+ dest: item.dest,
454
+ componentId: item.componentId,
455
+ action: item.exists ? 'replaced' : 'created',
456
+ backupPath: null,
457
+ existed: item.exists,
458
+ previousContent,
459
+ previousMode,
460
+ writeApplied: false,
461
+ installedHash: sha256Buffer(item.content),
462
+ installedIdentity: null,
463
+ backupHash: null,
464
+ backupIdentity: null
465
+ };
466
+ applied.push(appliedRecord);
467
+
468
+ ensureOwnedDirectory(path.dirname(item.dest));
469
+ assertOwnedAbsolutePath(targetDir, item.dest, targetGuard);
470
+
471
+ if (item.choice === 'backup') {
472
+ appliedRecord.backupPath = uniqueBackupPath(item.dest);
473
+ assertOwnedAbsolutePath(targetDir, appliedRecord.backupPath, targetGuard);
474
+ try {
475
+ atomicWriteFile(appliedRecord.backupPath, previousContent, {
476
+ mode: previousMode,
477
+ mustNotExist: true,
478
+ targetGuard
479
+ });
480
+ } catch (error) {
481
+ const backupSnapshot = (() => {
482
+ try {
483
+ return readOwnedRegularSnapshot(
484
+ targetDir,
485
+ appliedRecord.backupPath,
486
+ targetGuard,
487
+ { allowMissing: true }
488
+ );
489
+ } catch {
490
+ return null;
491
+ }
492
+ })();
493
+ if (error.published || (backupSnapshot && backupSnapshot.sha256 === item.existingHash)) {
494
+ appliedRecord.backupHash = item.existingHash;
495
+ if (backupSnapshot) appliedRecord.backupIdentity = backupSnapshot.identityKey;
496
+ }
497
+ throw error;
498
+ }
499
+ appliedRecord.backupHash = item.existingHash;
500
+ appliedRecord.backupIdentity = readOwnedRegularSnapshot(
501
+ targetDir,
502
+ appliedRecord.backupPath,
503
+ targetGuard
504
+ ).identityKey;
505
+ stats.backed++;
506
+ out.log(` ${c.cyan('↻')} Backed up to ${c.dim(path.basename(appliedRecord.backupPath))}`);
507
+ }
180
508
 
181
- if (!exists) {
182
- out.verbose(` ${c.green('+')} ${c.dim(relDest)}`);
183
- } else {
184
- out.verbose(` ${c.green('✓')} ${c.dim(relDest)}`);
509
+ if (item.exists) {
510
+ const immediate = readOwnedRegularSnapshot(targetDir, item.dest, targetGuard, { allowMissing: true });
511
+ if (!immediate || immediate.sha256 !== item.existingHash || immediate.identityKey !== item.existingIdentity) {
512
+ throw new Error(`Destination content changed immediately before write: ${item.relDest}`);
513
+ }
514
+ } else {
515
+ if (readOwnedRegularSnapshot(targetDir, item.dest, targetGuard, { allowMissing: true })) {
516
+ throw new Error(`Destination appeared immediately before write: ${item.relDest}`);
517
+ }
518
+ }
519
+
520
+ try {
521
+ atomicWriteFile(item.dest, item.content, {
522
+ mode: previousMode || sourceMode,
523
+ mustNotExist: !item.exists,
524
+ targetGuard
525
+ });
526
+ appliedRecord.writeApplied = true;
527
+ } catch (error) {
528
+ let publishedSnapshot = null;
529
+ try {
530
+ publishedSnapshot = readOwnedRegularSnapshot(targetDir, item.dest, targetGuard, { allowMissing: true });
531
+ } catch {
532
+ // The root or parent may have changed; publication state is still
533
+ // carried by the atomic helper for conservative rollback reporting.
534
+ }
535
+ if (error.published || (publishedSnapshot && publishedSnapshot.sha256 === appliedRecord.installedHash)) {
536
+ appliedRecord.writeApplied = true;
537
+ if (publishedSnapshot) appliedRecord.installedIdentity = publishedSnapshot.identityKey;
538
+ }
539
+ throw error;
540
+ }
541
+ const installedSnapshot = readOwnedRegularSnapshot(targetDir, item.dest, targetGuard);
542
+ if (installedSnapshot.sha256 !== appliedRecord.installedHash) {
543
+ throw new Error(`Published destination failed verification: ${item.relDest}`);
544
+ }
545
+ appliedRecord.installedIdentity = installedSnapshot.identityKey;
546
+ assertTargetGuard(targetGuard);
547
+
548
+ out.verbose(` ${item.exists ? c.green('✓') : c.green('+')} ${c.dim(item.relDest)}`);
549
+ stats.installed++;
550
+ }
551
+ } catch (error) {
552
+ const failures = rollback();
553
+ if (failures.length > 0) {
554
+ error.message += `; rollback also failed for ${failures.length} path(s)`;
555
+ error.rollbackFailures = failures;
185
556
  }
186
- stats.installed++;
557
+ throw error;
187
558
  }
188
559
 
189
- rl.close();
190
- return stats;
560
+ return {
561
+ ...stats,
562
+ writtenFiles: applied.map(({
563
+ previousContent,
564
+ previousMode,
565
+ existed,
566
+ writeApplied,
567
+ installedHash,
568
+ installedIdentity,
569
+ backupHash,
570
+ backupIdentity,
571
+ ...record
572
+ }) => record),
573
+ rollback,
574
+ commit() {
575
+ rolledBack = true;
576
+ }
577
+ };
191
578
  }
192
579
 
193
580
  /**
194
581
  * Main install logic
195
- * @param {string} runtime - 'claude' | 'gemini' | 'claude-local'
582
+ * @param {string} runtime - A manifest target id, or the legacy 'claude-local' target
196
583
  * @param {boolean} isUpdate - Whether this is an update operation
197
584
  * @param {object} options - CLI options
198
585
  * @param {object} pkg - Package.json contents
@@ -206,23 +593,23 @@ async function install(runtime, isUpdate, options, pkg) {
206
593
  const vendorConfig = MANIFEST[vendorKey];
207
594
 
208
595
  if (!vendorConfig) {
209
- out.error(`Unknown runtime: ${runtime}`);
210
- process.exit(1);
596
+ throw new Error(`Unknown runtime: ${runtime}`);
211
597
  }
212
598
 
213
- // Resolve Target Directory using the Vendor Strategy
214
- const targetDir = getVendorDir(runtime, explicitConfigDir);
599
+ // Resolve and canonicalize the target before deriving any destination.
600
+ const unresolvedTargetDir = getVendorDir(runtime, explicitConfigDir);
601
+ const targetGuard = options.targetGuard || createTargetGuard(unresolvedTargetDir);
602
+ assertGuardMatchesTarget(unresolvedTargetDir, targetGuard);
603
+ const targetDir = targetGuard.path;
215
604
  const isGlobal = runtime !== 'claude-local';
216
605
  const locationLabel = getPathLabel(targetDir, isGlobal);
217
606
 
218
- // Validate path
219
- if (!isValidPath(targetDir)) {
220
- out.error(`Invalid path: ${targetDir}`);
221
- process.exit(1);
222
- }
223
-
607
+ const configuredByEnvironment = typeof process.env[vendorConfig.configDirEnv] === 'string' &&
608
+ process.env[vendorConfig.configDirEnv].trim().length > 0;
224
609
  const pathPrefix = isGlobal
225
- ? (explicitConfigDir ? `${targetDir}/` : `~/${vendorConfig.defaultDir}/`)
610
+ ? ((explicitConfigDir || configuredByEnvironment)
611
+ ? `${targetDir}${path.sep}`
612
+ : `~/${vendorConfig.defaultDir}/`)
226
613
  : `./.claude/`;
227
614
 
228
615
  // ---- Cross-installation conflict detection ----
@@ -279,18 +666,7 @@ async function install(runtime, isUpdate, options, pkg) {
279
666
  // Collect files based on Manifest
280
667
  const allFiles = [];
281
668
 
282
- vendorConfig.components.forEach(component => {
283
- // Check --only filters
284
- if (onlyInstall !== 'all') {
285
- const allowedIds = [onlyInstall];
286
- // Legacy mapping: 'commands' includes 'skills'
287
- if (onlyInstall === 'commands') allowedIds.push('skills');
288
-
289
- if (!allowedIds.includes(component.id)) {
290
- return;
291
- }
292
- }
293
-
669
+ componentsForSelection(vendorConfig, onlyInstall).forEach(component => {
294
670
  // DEBUG LOG
295
671
  // console.log(`Collecting: ${component.id} from ${component.src}`);
296
672
 
@@ -301,26 +677,134 @@ async function install(runtime, isUpdate, options, pkg) {
301
677
  // console.log(`Total files found: ${allFiles.length}`);
302
678
 
303
679
  // Install with conflict resolution
304
- const stats = await installWithConflictResolution(allFiles, pathPrefix, targetDir, options);
680
+ const stats = await installWithConflictResolution(allFiles, pathPrefix, targetDir, {
681
+ ...options,
682
+ targetGuard
683
+ });
305
684
 
306
- // Write version tracking file
307
- writeVersionFile(targetDir, pkg.version, allFiles);
685
+ // Native registration consumes the staged adapter, so it must complete
686
+ // before the ownership receipt makes the file transaction durable. A
687
+ // successful activation exposes an exact compensator in case receipt
688
+ // publication subsequently fails.
689
+ let nativeActivation = { status: 'not-required', results: [] };
690
+ const nativeRequested = onlyInstall === 'all' && Boolean(vendorConfig.native);
691
+ const nativeSourceComplete = stats.skipped === 0;
692
+ if (nativeRequested && !nativeSourceComplete) {
693
+ nativeActivation = {
694
+ status: 'deferred',
695
+ reason: `Native registration was skipped because ${stats.skipped} adapter file(s) were preserved`,
696
+ results: []
697
+ };
698
+ }
699
+ let transactionPhase = 'ownership receipt preflight';
700
+ try {
701
+ if (stats.writtenFiles.length > 0) {
702
+ const receiptPath = path.join(targetDir, RECEIPT_FILE);
703
+ assertOwnedAbsolutePath(targetDir, receiptPath, targetGuard);
704
+ // Reject a directory, symlink, or other impossible receipt destination
705
+ // before invoking an external client that may create auxiliary state.
706
+ readOwnedRegularSnapshot(targetDir, receiptPath, targetGuard, { allowMissing: true });
707
+ }
708
+
709
+ transactionPhase = 'native registration';
710
+ if (nativeRequested && nativeSourceComplete) {
711
+ nativeActivation = activateNativeRegistration(
712
+ vendorKey,
713
+ targetDir,
714
+ vendorConfig.native,
715
+ options.nativeRegistrationOptions
716
+ );
717
+ if (Array.isArray(nativeActivation.rollbackFailures) && nativeActivation.rollbackFailures.length > 0) {
718
+ const error = new Error('native registration returned incomplete rollback work');
719
+ error.nativeRollbackFailures = nativeActivation.rollbackFailures;
720
+ throw error;
721
+ }
722
+ }
723
+
724
+ transactionPhase = 'ownership receipt';
725
+ // A no-op update must not claim a newer version. When files were written,
726
+ // receipt creation is part of the transaction and any failure rolls them
727
+ // back to their prior bytes.
728
+ if (stats.writtenFiles.length > 0) {
729
+ writeVersionFile(targetDir, pkg.version, stats.writtenFiles, {
730
+ runtime: vendorKey,
731
+ scope: isGlobal ? (explicitConfigDir ? 'custom' : 'user') : 'project',
732
+ skipped: stats.skipped,
733
+ selectionComplete: onlyInstall === 'all',
734
+ adapterVersion: ADAPTER_CONTRACT_VERSION,
735
+ generatorVersion: GENERATOR_VERSION,
736
+ targetGuard
737
+ });
738
+ }
739
+ stats.commit();
740
+ } catch (error) {
741
+ const nativeRollbackFailures = Array.isArray(error.nativeRollbackFailures)
742
+ ? [...error.nativeRollbackFailures]
743
+ : [];
744
+ if (nativeActivation && typeof nativeActivation.rollback === 'function') {
745
+ try {
746
+ nativeRollbackFailures.push(...nativeActivation.rollback());
747
+ } catch (rollbackError) {
748
+ nativeRollbackFailures.push(rollbackError.message);
749
+ }
750
+ }
751
+
752
+ if (nativeRollbackFailures.length === 0) {
753
+ const failures = stats.rollback();
754
+ if (failures.length > 0) {
755
+ error.message += `; rollback also failed for ${failures.length} path(s)`;
756
+ error.rollbackFailures = failures;
757
+ }
758
+ } else {
759
+ // Keep the source available when an external client could still point at
760
+ // it. Deleting it would turn a recoverable registry residue into a broken
761
+ // registration. The primary error carries exact manual recovery work.
762
+ stats.commit();
763
+ error.message += `; native rollback also failed: ${nativeRollbackFailures.join('; ')}; staged source was preserved`;
764
+ error.nativeRollbackFailures = nativeRollbackFailures;
765
+ }
766
+ error.message = `WTF-P ${transactionPhase} failed: ${error.message}`;
767
+ throw error;
768
+ }
769
+
770
+ if (nativeRequested) {
771
+ if (nativeActivation.status === 'unavailable' && !hasQuiet) {
772
+ out.warn(`${nativeActivation.executable} is not installed; the WTF-P bundle is staged but native registration is pending.`);
773
+ } else if (nativeActivation.status === 'deferred' && !hasQuiet) {
774
+ out.warn(`${nativeActivation.reason}. The WTF-P bundle is staged but native registration is pending.`);
775
+ } else if (nativeActivation.status === 'incompatible' && !hasQuiet) {
776
+ out.warn(`The installed Clio version does not expose the complete WTF-P extension contract: ${nativeActivation.reason}. Flat prompts and skills remain staged; upgrade Clio for agents, fleets, and namespaced prompts.`);
777
+ }
778
+ }
308
779
 
309
780
  // Summary
310
781
  if (!hasQuiet) {
311
- out.log(`
782
+ if (stats.installed === 0) {
783
+ out.log(`
784
+ ${c.yellow('No files changed.')} ${c.dim(`[${vendorConfig.name}]`)} Skipped: ${stats.skipped}
785
+ `);
786
+ } else {
787
+ out.log(`
312
788
  ${c.green('Done!')} ${c.dim(`[${vendorConfig.name}]`)} Installed: ${stats.installed}, Skipped: ${stats.skipped}, Backed up: ${stats.backed}
313
789
 
314
790
  Run ${c.cyan('/wtfp:help')} in ${vendorConfig.name} to get started.
315
791
  `);
792
+ }
316
793
 
317
- if (showExplanations && !isUpdate) {
794
+ if (stats.installed > 0 && showExplanations && !isUpdate) {
318
795
  out.log(` ${c.yellow('Get started:')}`);
319
796
  out.log(` ${c.cyan('/wtfp:new-paper')} Define your paper's vision and structure`);
320
797
  out.log(` ${c.cyan('/wtfp:progress')} See where you are and what's next`);
321
798
  out.log(` ${c.cyan('/wtfp:help')} Browse all available commands\n`);
322
799
  }
323
800
  }
801
+
802
+ return { ...stats, nativeActivation, targetDir };
324
803
  }
325
804
 
326
- module.exports = install;
805
+ module.exports = install;
806
+ module.exports.getVendorDir = getVendorDir;
807
+ module.exports.processContent = processContent;
808
+ module.exports.collectComponentFiles = collectComponentFiles;
809
+ module.exports.componentsForSelection = componentsForSelection;
810
+ module.exports.installWithConflictResolution = installWithConflictResolution;