@aidemd-mcp/aidemd 0.0.0-stage → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (977) hide show
  1. package/.aide/bin/aide-tree.mjs +8 -0
  2. package/.aide/config/brain.aide +1449 -0
  3. package/.aide/docs/.aide +130 -0
  4. package/.aide/docs/agent-readable-code.md +74 -0
  5. package/.aide/docs/aide-spec.md +290 -0
  6. package/.aide/docs/aide-template.md +141 -0
  7. package/.aide/docs/automated-qa.md +111 -0
  8. package/.aide/docs/brain-aide.md +242 -0
  9. package/.aide/docs/brief-aide.md +124 -0
  10. package/.aide/docs/cascading-alignment.md +107 -0
  11. package/.aide/docs/index.md +52 -0
  12. package/.aide/docs/plan-aide.md +132 -0
  13. package/.aide/docs/progressive-disclosure.md +74 -0
  14. package/.aide/docs/session-aide.md +210 -0
  15. package/.aide/docs/todo-aide.md +82 -0
  16. package/.aide/intent.aide +71 -0
  17. package/.aide/readme.aide +343 -0
  18. package/.aide/reference/hooks/PostToolUse.md +24 -0
  19. package/.aide/reference/hooks/SessionEnd.md +22 -0
  20. package/.aide/reference/hooks/SessionStart.md +18 -0
  21. package/.aide/reference/hooks/Stop.md +18 -0
  22. package/.aide/reference/hooks/UserPromptSubmit.md +18 -0
  23. package/.aide/reference/hooks/index.md +36 -0
  24. package/.aide/reference/tools/aide_brain.md +34 -0
  25. package/.aide/reference/tools/aide_cleanup.md +31 -0
  26. package/.aide/reference/tools/aide_discover.md +40 -0
  27. package/.aide/reference/tools/aide_frontmatter.md +36 -0
  28. package/.aide/reference/tools/aide_info.md +33 -0
  29. package/.aide/reference/tools/aide_init.md +39 -0
  30. package/.aide/reference/tools/aide_inspect.md +27 -0
  31. package/.aide/reference/tools/aide_observer_end_session.md +36 -0
  32. package/.aide/reference/tools/aide_observer_event.md +52 -0
  33. package/.aide/reference/tools/aide_observer_start.md +45 -0
  34. package/.aide/reference/tools/aide_read.md +29 -0
  35. package/.aide/reference/tools/aide_scaffold.md +35 -0
  36. package/.aide/reference/tools/aide_upgrade.md +45 -0
  37. package/.aide/reference/tools/aide_validate.md +36 -0
  38. package/.aide/reference/tools/index.md +25 -0
  39. package/.aide/session.aide +774 -0
  40. package/.claude/.aide +316 -0
  41. package/.claude/agents/aide/aide-aligner.md +129 -0
  42. package/.claude/agents/aide/aide-architect.md +151 -0
  43. package/.claude/agents/aide/aide-auditor.md +100 -0
  44. package/.claude/agents/aide/aide-domain-expert.md +84 -0
  45. package/.claude/agents/aide/aide-explorer.md +63 -0
  46. package/.claude/agents/aide/aide-implementor.md +121 -0
  47. package/.claude/agents/aide/aide-maintainer.md +115 -0
  48. package/.claude/agents/aide/aide-qa.md +95 -0
  49. package/.claude/agents/aide/aide-spec-writer.md +220 -0
  50. package/.claude/agents/aide/aide-strategist.md +104 -0
  51. package/.claude/agents/aide/aide-upgrader.md +71 -0
  52. package/.claude/agents/kanban/kanban-maintainer.md +113 -0
  53. package/.claude/commands/aide/align.md +24 -0
  54. package/.claude/commands/aide/brain.md +169 -0
  55. package/.claude/commands/aide/build.md +22 -0
  56. package/.claude/commands/aide/fix.md +23 -0
  57. package/.claude/commands/aide/handoff.md +15 -0
  58. package/.claude/commands/aide/plan.md +32 -0
  59. package/.claude/commands/aide/qa.md +27 -0
  60. package/.claude/commands/aide/refactor.md +106 -0
  61. package/.claude/commands/aide/research.md +21 -0
  62. package/.claude/commands/aide/spec.md +35 -0
  63. package/.claude/commands/aide/synthesize.md +24 -0
  64. package/.claude/commands/aide/update-playbook.md +3 -0
  65. package/.claude/commands/aide/upgrade.md +158 -0
  66. package/.claude/commands/aide.md +13 -0
  67. package/.claude/skills/aide/SKILL.md +611 -0
  68. package/.claude/skills/aide-brain-author/SKILL.md +122 -0
  69. package/.claude/skills/aide-handoff/SKILL.md +56 -0
  70. package/.claude/skills/aide-observer/SKILL.md +94 -0
  71. package/.claude/skills/brain/SKILL.md +69 -0
  72. package/.claude/skills/kanban/SKILL.md +24 -0
  73. package/.claude/skills/study-playbook/SKILL.md +11 -0
  74. package/CHANGELOG.md +428 -0
  75. package/LICENSE +21 -0
  76. package/README.md +219 -2
  77. package/dist/cli/hook/findLinkedSession/index.d.ts +8 -0
  78. package/dist/cli/hook/findLinkedSession/index.js +18 -0
  79. package/dist/cli/hook/index.d.ts +21 -0
  80. package/dist/cli/hook/index.js +64 -0
  81. package/dist/cli/hook/mapHookEvent/index.d.ts +9 -0
  82. package/dist/cli/hook/mapHookEvent/index.js +25 -0
  83. package/dist/cli/hook/parseHookInput/index.d.ts +9 -0
  84. package/dist/cli/hook/parseHookInput/index.js +43 -0
  85. package/dist/cli/hook/readStdin/index.d.ts +10 -0
  86. package/dist/cli/hook/readStdin/index.js +25 -0
  87. package/dist/cli/hook/resolveHookRoot/index.d.ts +10 -0
  88. package/dist/cli/hook/resolveHookRoot/index.js +14 -0
  89. package/dist/cli/hook/types/index.d.ts +24 -0
  90. package/dist/cli/hook/types/index.js +1 -0
  91. package/dist/cli/index.d.ts +24 -0
  92. package/dist/cli/index.js +62 -0
  93. package/dist/cli/init/ensureGlobalAide/index.d.ts +19 -0
  94. package/dist/cli/init/ensureGlobalAide/index.js +36 -0
  95. package/dist/cli/init/ensureGlobalAide/installGlobalPackage/index.d.ts +8 -0
  96. package/dist/cli/init/ensureGlobalAide/installGlobalPackage/index.js +15 -0
  97. package/dist/cli/init/index.d.ts +82 -0
  98. package/dist/cli/init/index.js +465 -0
  99. package/dist/cli/init/renderWarning/index.d.ts +41 -0
  100. package/dist/cli/init/renderWarning/index.js +66 -0
  101. package/dist/cli/init/reportHooks/index.d.ts +31 -0
  102. package/dist/cli/init/reportHooks/index.js +75 -0
  103. package/dist/cli/init/types/index.d.ts +46 -0
  104. package/dist/cli/init/types/index.js +1 -0
  105. package/dist/cli/init/writeMcpEntry/index.d.ts +30 -0
  106. package/dist/cli/init/writeMcpEntry/index.js +81 -0
  107. package/dist/cli/isMainModule/index.d.ts +11 -0
  108. package/dist/cli/isMainModule/index.js +27 -0
  109. package/dist/cli/launchSync/index.d.ts +9 -0
  110. package/dist/cli/launchSync/index.js +40 -0
  111. package/dist/cli/shared/writeMcpEntry/index.d.ts +49 -0
  112. package/dist/cli/shared/writeMcpEntry/index.js +107 -0
  113. package/dist/cli/sync/index.d.ts +27 -0
  114. package/dist/cli/sync/index.js +125 -0
  115. package/dist/cli/tree/App/index.d.ts +14 -0
  116. package/dist/cli/tree/App/index.js +291 -0
  117. package/dist/cli/tree/DetailPanel/index.d.ts +28 -0
  118. package/dist/cli/tree/DetailPanel/index.js +77 -0
  119. package/dist/cli/tree/DetailPanel/renderPlanDetail/index.d.ts +20 -0
  120. package/dist/cli/tree/DetailPanel/renderPlanDetail/index.js +30 -0
  121. package/dist/cli/tree/DetailPanel/renderPlanDetail/parsePlanItems/index.d.ts +32 -0
  122. package/dist/cli/tree/DetailPanel/renderPlanDetail/parsePlanItems/index.js +80 -0
  123. package/dist/cli/tree/DetailPanel/renderTodoDetail/index.d.ts +17 -0
  124. package/dist/cli/tree/DetailPanel/renderTodoDetail/index.js +19 -0
  125. package/dist/cli/tree/DetailPanel/renderTodoDetail/parseTodoItems/index.d.ts +26 -0
  126. package/dist/cli/tree/DetailPanel/renderTodoDetail/parseTodoItems/index.js +48 -0
  127. package/dist/cli/tree/TreePanel/index.d.ts +24 -0
  128. package/dist/cli/tree/TreePanel/index.js +96 -0
  129. package/dist/cli/tree/findPrimaryIntent/index.d.ts +12 -0
  130. package/dist/cli/tree/findPrimaryIntent/index.js +20 -0
  131. package/dist/cli/tree/flattenTree/index.d.ts +16 -0
  132. package/dist/cli/tree/flattenTree/index.js +20 -0
  133. package/dist/cli/tree/index.d.ts +2 -0
  134. package/dist/cli/tree/index.js +15 -0
  135. package/dist/cli/view/awaitShutdown/index.d.ts +12 -0
  136. package/dist/cli/view/awaitShutdown/index.js +32 -0
  137. package/dist/cli/view/buildLink/index.d.ts +13 -0
  138. package/dist/cli/view/buildLink/index.js +18 -0
  139. package/dist/cli/view/formatPortNote/index.d.ts +10 -0
  140. package/dist/cli/view/formatPortNote/index.js +11 -0
  141. package/dist/cli/view/formatUsage/index.d.ts +6 -0
  142. package/dist/cli/view/formatUsage/index.js +24 -0
  143. package/dist/cli/view/index.d.ts +21 -0
  144. package/dist/cli/view/index.js +102 -0
  145. package/dist/cli/view/parseViewArgs/index.d.ts +14 -0
  146. package/dist/cli/view/parseViewArgs/index.js +59 -0
  147. package/dist/cli/view/types/index.d.ts +20 -0
  148. package/dist/cli/view/types/index.js +1 -0
  149. package/dist/index.d.ts +10 -0
  150. package/dist/index.js +17 -0
  151. package/dist/observer/assets/Inter-OFL.txt +93 -0
  152. package/dist/observer/assets/JetBrainsMono-OFL.txt +93 -0
  153. package/dist/observer/assets/page.css +1 -0
  154. package/dist/observer/assets/page.js +158 -0
  155. package/dist/observer/assets/page.js.LEGAL.txt +56 -0
  156. package/dist/observer/bindServer/index.d.ts +17 -0
  157. package/dist/observer/bindServer/index.js +29 -0
  158. package/dist/observer/buildPageShell/index.d.ts +8 -0
  159. package/dist/observer/buildPageShell/index.js +30 -0
  160. package/dist/observer/buildProjectView/index.d.ts +12 -0
  161. package/dist/observer/buildProjectView/index.js +25 -0
  162. package/dist/observer/buildViewLink/index.d.ts +16 -0
  163. package/dist/observer/buildViewLink/index.js +15 -0
  164. package/dist/observer/createEventStore/index.d.ts +14 -0
  165. package/dist/observer/createEventStore/index.js +98 -0
  166. package/dist/observer/createStatusPusher/index.d.ts +16 -0
  167. package/dist/observer/createStatusPusher/index.js +40 -0
  168. package/dist/observer/createStop/index.d.ts +23 -0
  169. package/dist/observer/createStop/index.js +40 -0
  170. package/dist/observer/createStreamHub/frame/index.d.ts +6 -0
  171. package/dist/observer/createStreamHub/frame/index.js +4 -0
  172. package/dist/observer/createStreamHub/index.d.ts +13 -0
  173. package/dist/observer/createStreamHub/index.js +76 -0
  174. package/dist/observer/findRunningObserver/index.d.ts +12 -0
  175. package/dist/observer/findRunningObserver/index.js +33 -0
  176. package/dist/observer/findRunningObserver/probeIndex/index.d.ts +13 -0
  177. package/dist/observer/findRunningObserver/probeIndex/index.js +28 -0
  178. package/dist/observer/guardRequest/index.d.ts +20 -0
  179. package/dist/observer/guardRequest/index.js +38 -0
  180. package/dist/observer/guardRequest/matchesToken/index.d.ts +5 -0
  181. package/dist/observer/guardRequest/matchesToken/index.js +9 -0
  182. package/dist/observer/guardRequest/types/index.d.ts +8 -0
  183. package/dist/observer/guardRequest/types/index.js +1 -0
  184. package/dist/observer/handleRequest/index.d.ts +13 -0
  185. package/dist/observer/handleRequest/index.js +76 -0
  186. package/dist/observer/handleRequest/isTokenFree/index.d.ts +11 -0
  187. package/dist/observer/handleRequest/isTokenFree/index.js +12 -0
  188. package/dist/observer/handleRequest/matchRoute/index.d.ts +26 -0
  189. package/dist/observer/handleRequest/matchRoute/index.js +89 -0
  190. package/dist/observer/index.d.ts +23 -0
  191. package/dist/observer/index.js +112 -0
  192. package/dist/observer/listPorts/index.d.ts +9 -0
  193. package/dist/observer/listPorts/index.js +10 -0
  194. package/dist/observer/loadToken/index.d.ts +12 -0
  195. package/dist/observer/loadToken/index.js +46 -0
  196. package/dist/observer/loadToken/readStored/index.d.ts +4 -0
  197. package/dist/observer/loadToken/readStored/index.js +16 -0
  198. package/dist/observer/loadToken/writeTemp/index.d.ts +5 -0
  199. package/dist/observer/loadToken/writeTemp/index.js +8 -0
  200. package/dist/observer/locatePageAssets/index.d.ts +6 -0
  201. package/dist/observer/locatePageAssets/index.js +17 -0
  202. package/dist/observer/mintToken/index.d.ts +2 -0
  203. package/dist/observer/mintToken/index.js +6 -0
  204. package/dist/observer/rebuildStatus/index.d.ts +17 -0
  205. package/dist/observer/rebuildStatus/index.js +49 -0
  206. package/dist/observer/removeRecord/index.d.ts +10 -0
  207. package/dist/observer/removeRecord/index.js +22 -0
  208. package/dist/observer/replaySessions/index.d.ts +7 -0
  209. package/dist/observer/replaySessions/index.js +17 -0
  210. package/dist/observer/resolvePort/index.d.ts +12 -0
  211. package/dist/observer/resolvePort/index.js +21 -0
  212. package/dist/observer/routes/archiveSession/index.d.ts +11 -0
  213. package/dist/observer/routes/archiveSession/index.js +57 -0
  214. package/dist/observer/routes/deleteSession/index.d.ts +10 -0
  215. package/dist/observer/routes/deleteSession/index.js +33 -0
  216. package/dist/observer/routes/getAsset/index.d.ts +7 -0
  217. package/dist/observer/routes/getAsset/index.js +30 -0
  218. package/dist/observer/routes/getEvents/index.d.ts +3 -0
  219. package/dist/observer/routes/getEvents/index.js +13 -0
  220. package/dist/observer/routes/getFile/index.d.ts +7 -0
  221. package/dist/observer/routes/getFile/index.js +54 -0
  222. package/dist/observer/routes/getFile/resolveConfinedPath/index.d.ts +24 -0
  223. package/dist/observer/routes/getFile/resolveConfinedPath/index.js +65 -0
  224. package/dist/observer/routes/getIndex/index.d.ts +7 -0
  225. package/dist/observer/routes/getIndex/index.js +23 -0
  226. package/dist/observer/routes/getSessionPage/index.d.ts +8 -0
  227. package/dist/observer/routes/getSessionPage/index.js +10 -0
  228. package/dist/observer/routes/getStatus/index.d.ts +7 -0
  229. package/dist/observer/routes/getStatus/index.js +15 -0
  230. package/dist/observer/routes/getTask/index.d.ts +7 -0
  231. package/dist/observer/routes/getTask/index.js +47 -0
  232. package/dist/observer/routes/listArchived/index.d.ts +8 -0
  233. package/dist/observer/routes/listArchived/index.js +22 -0
  234. package/dist/observer/routes/listProjects/index.d.ts +3 -0
  235. package/dist/observer/routes/listProjects/index.js +9 -0
  236. package/dist/observer/routes/listSessions/index.d.ts +3 -0
  237. package/dist/observer/routes/listSessions/index.js +18 -0
  238. package/dist/observer/routes/postEvent/index.d.ts +12 -0
  239. package/dist/observer/routes/postEvent/index.js +76 -0
  240. package/dist/observer/routes/postEvent/readJsonBody/index.d.ts +18 -0
  241. package/dist/observer/routes/postEvent/readJsonBody/index.js +37 -0
  242. package/dist/observer/routes/postPresence/index.d.ts +12 -0
  243. package/dist/observer/routes/postPresence/index.js +63 -0
  244. package/dist/observer/routes/postShutdown/index.d.ts +13 -0
  245. package/dist/observer/routes/postShutdown/index.js +64 -0
  246. package/dist/observer/routes/restoreSession/index.d.ts +11 -0
  247. package/dist/observer/routes/restoreSession/index.js +46 -0
  248. package/dist/observer/routes/streamUpdates/index.d.ts +10 -0
  249. package/dist/observer/routes/streamUpdates/index.js +20 -0
  250. package/dist/observer/shared/announceSessions/index.d.ts +12 -0
  251. package/dist/observer/shared/announceSessions/index.js +20 -0
  252. package/dist/observer/shared/broadcastProjects/index.d.ts +10 -0
  253. package/dist/observer/shared/broadcastProjects/index.js +13 -0
  254. package/dist/observer/shared/buildObserverMessage/index.d.ts +8 -0
  255. package/dist/observer/shared/buildObserverMessage/index.js +20 -0
  256. package/dist/observer/shared/findProject/index.d.ts +12 -0
  257. package/dist/observer/shared/findProject/index.js +22 -0
  258. package/dist/observer/shared/pageAssets/index.d.ts +13 -0
  259. package/dist/observer/shared/pageAssets/index.js +16 -0
  260. package/dist/observer/shared/pageTitle/index.d.ts +7 -0
  261. package/dist/observer/shared/pageTitle/index.js +7 -0
  262. package/dist/observer/shared/parsePort/index.d.ts +12 -0
  263. package/dist/observer/shared/parsePort/index.js +15 -0
  264. package/dist/observer/shared/pickKanbanOverride/index.d.ts +10 -0
  265. package/dist/observer/shared/pickKanbanOverride/index.js +10 -0
  266. package/dist/observer/shared/pickReportedLocation/index.d.ts +13 -0
  267. package/dist/observer/shared/pickReportedLocation/index.js +18 -0
  268. package/dist/observer/shared/readHeldLiveness/index.d.ts +13 -0
  269. package/dist/observer/shared/readHeldLiveness/index.js +23 -0
  270. package/dist/observer/shared/routeTable/index.d.ts +131 -0
  271. package/dist/observer/shared/routeTable/index.js +31 -0
  272. package/dist/observer/shared/sendBody/index.d.ts +14 -0
  273. package/dist/observer/shared/sendBody/index.js +17 -0
  274. package/dist/observer/shared/sendJson/index.d.ts +12 -0
  275. package/dist/observer/shared/sendJson/index.js +15 -0
  276. package/dist/observer/shared/sendPage/index.d.ts +10 -0
  277. package/dist/observer/shared/sendPage/index.js +18 -0
  278. package/dist/observer/shared/shutdownRequest/index.d.ts +14 -0
  279. package/dist/observer/shared/shutdownRequest/index.js +7 -0
  280. package/dist/observer/shared/summarizeProjects/index.d.ts +14 -0
  281. package/dist/observer/shared/summarizeProjects/index.js +38 -0
  282. package/dist/observer/shared/summarizeSessions/index.d.ts +12 -0
  283. package/dist/observer/shared/summarizeSessions/index.js +30 -0
  284. package/dist/observer/shared/tokenFormat/index.d.ts +4 -0
  285. package/dist/observer/shared/tokenFormat/index.js +4 -0
  286. package/dist/observer/shared/wantsHtml/index.d.ts +8 -0
  287. package/dist/observer/shared/wantsHtml/index.js +10 -0
  288. package/dist/observer/takeOver/awaitExit/index.d.ts +10 -0
  289. package/dist/observer/takeOver/awaitExit/index.js +26 -0
  290. package/dist/observer/takeOver/index.d.ts +11 -0
  291. package/dist/observer/takeOver/index.js +27 -0
  292. package/dist/observer/takeOver/requestShutdown/index.d.ts +10 -0
  293. package/dist/observer/takeOver/requestShutdown/index.js +28 -0
  294. package/dist/observer/types/index.d.ts +214 -0
  295. package/dist/observer/types/index.js +1 -0
  296. package/dist/observer/writeRecord/index.d.ts +10 -0
  297. package/dist/observer/writeRecord/index.js +11 -0
  298. package/dist/service/brainContract/index.d.ts +113 -0
  299. package/dist/service/brainContract/index.js +107 -0
  300. package/dist/service/brainContract/launcherPurpose/index.d.ts +8 -0
  301. package/dist/service/brainContract/launcherPurpose/index.js +8 -0
  302. package/dist/service/brainContract/toMarkerPair/index.d.ts +11 -0
  303. package/dist/service/brainContract/toMarkerPair/index.js +12 -0
  304. package/dist/service/buildBrainState/classifyParseFailure/index.d.ts +17 -0
  305. package/dist/service/buildBrainState/classifyParseFailure/index.js +29 -0
  306. package/dist/service/buildBrainState/index.d.ts +84 -0
  307. package/dist/service/buildBrainState/index.js +177 -0
  308. package/dist/service/install/applySteps/index.d.ts +38 -0
  309. package/dist/service/install/applySteps/index.js +86 -0
  310. package/dist/service/install/configureIde/index.d.ts +25 -0
  311. package/dist/service/install/configureIde/index.js +143 -0
  312. package/dist/service/install/detectFramework/index.d.ts +11 -0
  313. package/dist/service/install/detectFramework/index.js +53 -0
  314. package/dist/service/install/index.d.ts +63 -0
  315. package/dist/service/install/index.js +138 -0
  316. package/dist/service/install/initContent/index.d.ts +158 -0
  317. package/dist/service/install/initContent/index.js +260 -0
  318. package/dist/service/install/installAgents/index.d.ts +16 -0
  319. package/dist/service/install/installAgents/index.js +55 -0
  320. package/dist/service/install/installAideTree/index.d.ts +15 -0
  321. package/dist/service/install/installAideTree/index.js +54 -0
  322. package/dist/service/install/installHooks/index.d.ts +24 -0
  323. package/dist/service/install/installHooks/index.js +68 -0
  324. package/dist/service/install/installMethodologyDocs/index.d.ts +16 -0
  325. package/dist/service/install/installMethodologyDocs/index.js +55 -0
  326. package/dist/service/install/installSkills/index.d.ts +16 -0
  327. package/dist/service/install/installSkills/index.js +55 -0
  328. package/dist/service/install/planSessionRecord/index.d.ts +16 -0
  329. package/dist/service/install/planSessionRecord/index.js +30 -0
  330. package/dist/service/install/provisionBrain/buildBrainAideStep/index.d.ts +25 -0
  331. package/dist/service/install/provisionBrain/buildBrainAideStep/index.js +60 -0
  332. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/index.d.ts +14 -0
  333. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/index.js +33 -0
  334. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/listBrainSections/index.d.ts +10 -0
  335. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/listBrainSections/index.js +19 -0
  336. package/dist/service/install/provisionBrain/detectBrainMigration/findLegacyLauncher/index.d.ts +17 -0
  337. package/dist/service/install/provisionBrain/detectBrainMigration/findLegacyLauncher/index.js +39 -0
  338. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/fingerprintSection/index.d.ts +11 -0
  339. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/fingerprintSection/index.js +20 -0
  340. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/index.d.ts +16 -0
  341. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/index.js +30 -0
  342. package/dist/service/install/provisionBrain/detectBrainMigration/index.d.ts +13 -0
  343. package/dist/service/install/provisionBrain/detectBrainMigration/index.js +32 -0
  344. package/dist/service/install/provisionBrain/index.d.ts +37 -0
  345. package/dist/service/install/provisionBrain/index.js +182 -0
  346. package/dist/service/install/provisionBrain/isTemplateIntegration/index.d.ts +14 -0
  347. package/dist/service/install/provisionBrain/isTemplateIntegration/index.js +24 -0
  348. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/index.d.ts +73 -0
  349. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/index.js +557 -0
  350. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/complete/index.d.ts +13 -0
  351. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/complete/index.js +51 -0
  352. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/create/index.d.ts +13 -0
  353. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/create/index.js +82 -0
  354. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/manage/index.d.ts +13 -0
  355. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/manage/index.js +86 -0
  356. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/move/index.d.ts +12 -0
  357. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/move/index.js +59 -0
  358. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/review/index.d.ts +15 -0
  359. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/review/index.js +274 -0
  360. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/stash/index.d.ts +14 -0
  361. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/stash/index.js +103 -0
  362. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/work/index.d.ts +14 -0
  363. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/work/index.js +332 -0
  364. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.d.ts +16 -0
  365. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.js +94 -0
  366. package/dist/service/install/provisionBrain/outdatedTemplateSections/index.d.ts +18 -0
  367. package/dist/service/install/provisionBrain/outdatedTemplateSections/index.js +164 -0
  368. package/dist/service/install/provisionBrain/parseBundledTemplate/index.d.ts +14 -0
  369. package/dist/service/install/provisionBrain/parseBundledTemplate/index.js +21 -0
  370. package/dist/service/install/provisionBrain/planBrainRepair/index.d.ts +26 -0
  371. package/dist/service/install/provisionBrain/planBrainRepair/index.js +47 -0
  372. package/dist/service/install/provisionBrain/readBrainMigrationNotice/index.d.ts +15 -0
  373. package/dist/service/install/provisionBrain/readBrainMigrationNotice/index.js +26 -0
  374. package/dist/service/install/reference/index.d.ts +24 -0
  375. package/dist/service/install/reference/index.js +51 -0
  376. package/dist/service/install/resolveBrainHints/index.d.ts +17 -0
  377. package/dist/service/install/resolveBrainHints/index.js +44 -0
  378. package/dist/service/install/scaffoldCommands/index.d.ts +42 -0
  379. package/dist/service/install/scaffoldCommands/index.js +90 -0
  380. package/dist/service/install/scaffoldReadme/deriveProjectName/index.d.ts +18 -0
  381. package/dist/service/install/scaffoldReadme/deriveProjectName/index.js +37 -0
  382. package/dist/service/install/scaffoldReadme/index.d.ts +20 -0
  383. package/dist/service/install/scaffoldReadme/index.js +57 -0
  384. package/dist/service/install/scaffoldReadme/insertBadge/index.d.ts +17 -0
  385. package/dist/service/install/scaffoldReadme/insertBadge/index.js +51 -0
  386. package/dist/service/install/shared/aidePackage/index.d.ts +18 -0
  387. package/dist/service/install/shared/aidePackage/index.js +17 -0
  388. package/dist/service/install/shared/checkGlobalPackage/index.d.ts +11 -0
  389. package/dist/service/install/shared/checkGlobalPackage/index.js +28 -0
  390. package/dist/service/install/shared/compareBytes/index.d.ts +12 -0
  391. package/dist/service/install/shared/compareBytes/index.js +24 -0
  392. package/dist/service/install/shared/describeAideCommand/index.d.ts +10 -0
  393. package/dist/service/install/shared/describeAideCommand/index.js +13 -0
  394. package/dist/service/install/shared/detectLaunchMode/index.d.ts +11 -0
  395. package/dist/service/install/shared/detectLaunchMode/index.js +10 -0
  396. package/dist/service/install/shared/isOlderVersion/index.d.ts +7 -0
  397. package/dist/service/install/shared/isOlderVersion/index.js +19 -0
  398. package/dist/service/install/shared/normalizeLaunchedCommand/index.d.ts +16 -0
  399. package/dist/service/install/shared/normalizeLaunchedCommand/index.js +36 -0
  400. package/dist/service/install/shared/planHooks/ignoreLocal/appendLine/index.d.ts +10 -0
  401. package/dist/service/install/shared/planHooks/ignoreLocal/appendLine/index.js +14 -0
  402. package/dist/service/install/shared/planHooks/ignoreLocal/index.d.ts +13 -0
  403. package/dist/service/install/shared/planHooks/ignoreLocal/index.js +30 -0
  404. package/dist/service/install/shared/planHooks/ignoreLocal/inspectGit/index.d.ts +17 -0
  405. package/dist/service/install/shared/planHooks/ignoreLocal/inspectGit/index.js +42 -0
  406. package/dist/service/install/shared/planHooks/index.d.ts +19 -0
  407. package/dist/service/install/shared/planHooks/index.js +65 -0
  408. package/dist/service/install/shared/planHooks/locateEntry/index.d.ts +15 -0
  409. package/dist/service/install/shared/planHooks/locateEntry/index.js +40 -0
  410. package/dist/service/install/shared/planHooks/mergeLocal/aideHookEntries/index.d.ts +11 -0
  411. package/dist/service/install/shared/planHooks/mergeLocal/aideHookEntries/index.js +21 -0
  412. package/dist/service/install/shared/planHooks/mergeLocal/buildCommand/index.d.ts +7 -0
  413. package/dist/service/install/shared/planHooks/mergeLocal/buildCommand/index.js +9 -0
  414. package/dist/service/install/shared/planHooks/mergeLocal/findWiredEvents/index.d.ts +16 -0
  415. package/dist/service/install/shared/planHooks/mergeLocal/findWiredEvents/index.js +35 -0
  416. package/dist/service/install/shared/planHooks/mergeLocal/index.d.ts +17 -0
  417. package/dist/service/install/shared/planHooks/mergeLocal/index.js +57 -0
  418. package/dist/service/install/shared/planHooks/shared/isAideHookCommand/index.d.ts +10 -0
  419. package/dist/service/install/shared/planHooks/shared/isAideHookCommand/index.js +86 -0
  420. package/dist/service/install/shared/planHooks/shared/parseSettings/index.d.ts +10 -0
  421. package/dist/service/install/shared/planHooks/shared/parseSettings/index.js +24 -0
  422. package/dist/service/install/shared/planHooks/shared/readOptional/index.d.ts +7 -0
  423. package/dist/service/install/shared/planHooks/shared/readOptional/index.js +17 -0
  424. package/dist/service/install/shared/planHooks/shared/removeAideHooks/index.d.ts +17 -0
  425. package/dist/service/install/shared/planHooks/shared/removeAideHooks/index.js +84 -0
  426. package/dist/service/install/shared/planHooks/stripProject/index.d.ts +14 -0
  427. package/dist/service/install/shared/planHooks/stripProject/index.js +26 -0
  428. package/dist/service/install/shared/planInstallInstruction/index.d.ts +3 -0
  429. package/dist/service/install/shared/planInstallInstruction/index.js +6 -0
  430. package/dist/service/install/shared/readNpxPackageSpec/index.d.ts +11 -0
  431. package/dist/service/install/shared/readNpxPackageSpec/index.js +35 -0
  432. package/dist/service/install/wireMcp/index.d.ts +28 -0
  433. package/dist/service/install/wireMcp/index.js +89 -0
  434. package/dist/service/install/writeMethodology/index.d.ts +22 -0
  435. package/dist/service/install/writeMethodology/index.js +131 -0
  436. package/dist/service/observer/event/archive/index.d.ts +14 -0
  437. package/dist/service/observer/event/archive/index.js +52 -0
  438. package/dist/service/observer/event/delete/index.d.ts +20 -0
  439. package/dist/service/observer/event/delete/index.js +60 -0
  440. package/dist/service/observer/event/endSession/index.d.ts +19 -0
  441. package/dist/service/observer/event/endSession/index.js +85 -0
  442. package/dist/service/observer/event/findConversation/index.d.ts +16 -0
  443. package/dist/service/observer/event/findConversation/index.js +46 -0
  444. package/dist/service/observer/event/markClosed/index.d.ts +15 -0
  445. package/dist/service/observer/event/markClosed/index.js +39 -0
  446. package/dist/service/observer/event/read/index.d.ts +11 -0
  447. package/dist/service/observer/event/read/index.js +18 -0
  448. package/dist/service/observer/event/read/readProject/index.d.ts +14 -0
  449. package/dist/service/observer/event/read/readProject/index.js +52 -0
  450. package/dist/service/observer/event/readArchive/index.d.ts +9 -0
  451. package/dist/service/observer/event/readArchive/index.js +46 -0
  452. package/dist/service/observer/event/readConversations/index.d.ts +10 -0
  453. package/dist/service/observer/event/readConversations/index.js +12 -0
  454. package/dist/service/observer/event/readLiveness/index.d.ts +24 -0
  455. package/dist/service/observer/event/readLiveness/index.js +40 -0
  456. package/dist/service/observer/event/record/appendLine/index.d.ts +17 -0
  457. package/dist/service/observer/event/record/appendLine/index.js +25 -0
  458. package/dist/service/observer/event/record/index.d.ts +19 -0
  459. package/dist/service/observer/event/record/index.js +62 -0
  460. package/dist/service/observer/event/record/postToObserver/index.d.ts +15 -0
  461. package/dist/service/observer/event/record/postToObserver/index.js +39 -0
  462. package/dist/service/observer/event/record/readPreviouslyEnded/index.d.ts +11 -0
  463. package/dist/service/observer/event/record/readPreviouslyEnded/index.js +25 -0
  464. package/dist/service/observer/event/record/session/createSession/index.d.ts +3 -0
  465. package/dist/service/observer/event/record/session/createSession/index.js +18 -0
  466. package/dist/service/observer/event/record/session/createSessionId/index.d.ts +9 -0
  467. package/dist/service/observer/event/record/session/createSessionId/index.js +11 -0
  468. package/dist/service/observer/event/record/session/index.d.ts +8 -0
  469. package/dist/service/observer/event/record/session/index.js +14 -0
  470. package/dist/service/observer/event/reopen/index.d.ts +13 -0
  471. package/dist/service/observer/event/reopen/index.js +34 -0
  472. package/dist/service/observer/event/restore/index.d.ts +12 -0
  473. package/dist/service/observer/event/restore/index.js +48 -0
  474. package/dist/service/observer/event/shared/attachLiveness/index.d.ts +14 -0
  475. package/dist/service/observer/event/shared/attachLiveness/index.js +18 -0
  476. package/dist/service/observer/event/shared/buildSessionPath/index.d.ts +11 -0
  477. package/dist/service/observer/event/shared/buildSessionPath/index.js +13 -0
  478. package/dist/service/observer/event/shared/endedMark/index.d.ts +30 -0
  479. package/dist/service/observer/event/shared/endedMark/index.js +48 -0
  480. package/dist/service/observer/event/shared/findNewestStart/index.d.ts +13 -0
  481. package/dist/service/observer/event/shared/findNewestStart/index.js +19 -0
  482. package/dist/service/observer/event/shared/formatSessionTag/index.d.ts +8 -0
  483. package/dist/service/observer/event/shared/formatSessionTag/index.js +11 -0
  484. package/dist/service/observer/event/shared/groupConversations/index.d.ts +14 -0
  485. package/dist/service/observer/event/shared/groupConversations/index.js +44 -0
  486. package/dist/service/observer/event/shared/isClosedRecord/index.d.ts +8 -0
  487. package/dist/service/observer/event/shared/isClosedRecord/index.js +13 -0
  488. package/dist/service/observer/event/shared/isIsoDateTime/index.d.ts +7 -0
  489. package/dist/service/observer/event/shared/isIsoDateTime/index.js +18 -0
  490. package/dist/service/observer/event/shared/judgeConversation/index.d.ts +18 -0
  491. package/dist/service/observer/event/shared/judgeConversation/index.js +26 -0
  492. package/dist/service/observer/event/shared/judgeConversation/pickNewestPresence/index.d.ts +10 -0
  493. package/dist/service/observer/event/shared/judgeConversation/pickNewestPresence/index.js +9 -0
  494. package/dist/service/observer/event/shared/judgeLiveness/index.d.ts +24 -0
  495. package/dist/service/observer/event/shared/judgeLiveness/index.js +41 -0
  496. package/dist/service/observer/event/shared/limits/index.d.ts +15 -0
  497. package/dist/service/observer/event/shared/limits/index.js +15 -0
  498. package/dist/service/observer/event/shared/listSessionIds/index.d.ts +9 -0
  499. package/dist/service/observer/event/shared/listSessionIds/index.js +33 -0
  500. package/dist/service/observer/event/shared/observerRecord/index.d.ts +23 -0
  501. package/dist/service/observer/event/shared/observerRecord/index.js +29 -0
  502. package/dist/service/observer/event/shared/parseSessionTag/index.d.ts +8 -0
  503. package/dist/service/observer/event/shared/parseSessionTag/index.js +18 -0
  504. package/dist/service/observer/event/shared/presencePing/index.d.ts +15 -0
  505. package/dist/service/observer/event/shared/presencePing/index.js +13 -0
  506. package/dist/service/observer/event/shared/presenceRecord/index.d.ts +36 -0
  507. package/dist/service/observer/event/shared/presenceRecord/index.js +70 -0
  508. package/dist/service/observer/event/shared/protocol/index.d.ts +31 -0
  509. package/dist/service/observer/event/shared/protocol/index.js +30 -0
  510. package/dist/service/observer/event/shared/readClosingRecord/index.d.ts +15 -0
  511. package/dist/service/observer/event/shared/readClosingRecord/index.js +50 -0
  512. package/dist/service/observer/event/shared/readConversationMark/index.d.ts +13 -0
  513. package/dist/service/observer/event/shared/readConversationMark/index.js +14 -0
  514. package/dist/service/observer/event/shared/readConversationMark/pickDecidingMark/index.d.ts +10 -0
  515. package/dist/service/observer/event/shared/readConversationMark/pickDecidingMark/index.js +10 -0
  516. package/dist/service/observer/event/shared/readEndedMark/index.d.ts +9 -0
  517. package/dist/service/observer/event/shared/readEndedMark/index.js +24 -0
  518. package/dist/service/observer/event/shared/readObserverRecord/index.d.ts +11 -0
  519. package/dist/service/observer/event/shared/readObserverRecord/index.js +26 -0
  520. package/dist/service/observer/event/shared/readObserverRecord/parseJson/index.d.ts +2 -0
  521. package/dist/service/observer/event/shared/readObserverRecord/parseJson/index.js +9 -0
  522. package/dist/service/observer/event/shared/readPresence/index.d.ts +11 -0
  523. package/dist/service/observer/event/shared/readPresence/index.js +46 -0
  524. package/dist/service/observer/event/shared/readSessionLog/index.d.ts +13 -0
  525. package/dist/service/observer/event/shared/readSessionLog/index.js +29 -0
  526. package/dist/service/observer/event/shared/readSessionLog/parseLines/index.d.ts +14 -0
  527. package/dist/service/observer/event/shared/readSessionLog/parseLines/index.js +32 -0
  528. package/dist/service/observer/event/shared/readSessionStart/index.d.ts +8 -0
  529. package/dist/service/observer/event/shared/readSessionStart/index.js +20 -0
  530. package/dist/service/observer/event/shared/readTranscriptActivity/index.d.ts +9 -0
  531. package/dist/service/observer/event/shared/readTranscriptActivity/index.js +18 -0
  532. package/dist/service/observer/event/shared/schema/index.d.ts +1398 -0
  533. package/dist/service/observer/event/shared/schema/index.js +218 -0
  534. package/dist/service/observer/event/shared/writeEndedMark/index.d.ts +12 -0
  535. package/dist/service/observer/event/shared/writeEndedMark/index.js +26 -0
  536. package/dist/service/observer/event/touchPresence/index.d.ts +15 -0
  537. package/dist/service/observer/event/touchPresence/index.js +77 -0
  538. package/dist/service/observer/event/touchPresence/mergePresence/index.d.ts +19 -0
  539. package/dist/service/observer/event/touchPresence/mergePresence/index.js +50 -0
  540. package/dist/service/observer/event/touchPresence/pingObserver/index.d.ts +15 -0
  541. package/dist/service/observer/event/touchPresence/pingObserver/index.js +63 -0
  542. package/dist/service/observer/event/touchPresence/shouldRefresh/index.d.ts +17 -0
  543. package/dist/service/observer/event/touchPresence/shouldRefresh/index.js +25 -0
  544. package/dist/service/observer/event/touchPresence/writePresence/index.d.ts +12 -0
  545. package/dist/service/observer/event/touchPresence/writePresence/index.js +20 -0
  546. package/dist/service/observer/event/types/index.d.ts +217 -0
  547. package/dist/service/observer/event/types/index.js +1 -0
  548. package/dist/service/observer/kanban/board/read/index.d.ts +13 -0
  549. package/dist/service/observer/kanban/board/read/index.js +27 -0
  550. package/dist/service/observer/kanban/board/read/readColumn/index.d.ts +11 -0
  551. package/dist/service/observer/kanban/board/read/readColumn/index.js +67 -0
  552. package/dist/service/observer/kanban/shared/boardHints/index.d.ts +17 -0
  553. package/dist/service/observer/kanban/shared/boardHints/index.js +17 -0
  554. package/dist/service/observer/kanban/shared/boardUnavailable/index.d.ts +6 -0
  555. package/dist/service/observer/kanban/shared/boardUnavailable/index.js +8 -0
  556. package/dist/service/observer/kanban/shared/columns/index.d.ts +18 -0
  557. package/dist/service/observer/kanban/shared/columns/index.js +9 -0
  558. package/dist/service/observer/kanban/shared/isInsideFolder/index.d.ts +8 -0
  559. package/dist/service/observer/kanban/shared/isInsideFolder/index.js +25 -0
  560. package/dist/service/observer/kanban/shared/locateBoard/index.d.ts +25 -0
  561. package/dist/service/observer/kanban/shared/locateBoard/index.js +76 -0
  562. package/dist/service/observer/kanban/shared/locateBoard/readKanbanFolder/index.d.ts +13 -0
  563. package/dist/service/observer/kanban/shared/locateBoard/readKanbanFolder/index.js +39 -0
  564. package/dist/service/observer/kanban/shared/namesSlug/index.d.ts +8 -0
  565. package/dist/service/observer/kanban/shared/namesSlug/index.js +13 -0
  566. package/dist/service/observer/kanban/shared/parseTaskNote/index.d.ts +11 -0
  567. package/dist/service/observer/kanban/shared/parseTaskNote/index.js +63 -0
  568. package/dist/service/observer/kanban/shared/readSessionKanban/index.d.ts +7 -0
  569. package/dist/service/observer/kanban/shared/readSessionKanban/index.js +22 -0
  570. package/dist/service/observer/kanban/task/read/findTaskFile/index.d.ts +22 -0
  571. package/dist/service/observer/kanban/task/read/findTaskFile/index.js +34 -0
  572. package/dist/service/observer/kanban/task/read/index.d.ts +13 -0
  573. package/dist/service/observer/kanban/task/read/index.js +42 -0
  574. package/dist/service/observer/kanban/types/index.d.ts +95 -0
  575. package/dist/service/observer/kanban/types/index.js +1 -0
  576. package/dist/service/observer/status/buildHistory/formatDuration/index.d.ts +6 -0
  577. package/dist/service/observer/status/buildHistory/formatDuration/index.js +15 -0
  578. package/dist/service/observer/status/buildHistory/index.d.ts +10 -0
  579. package/dist/service/observer/status/buildHistory/index.js +68 -0
  580. package/dist/service/observer/status/buildHistory/labelEvent/index.d.ts +12 -0
  581. package/dist/service/observer/status/buildHistory/labelEvent/index.js +78 -0
  582. package/dist/service/observer/status/buildModuleNodes/classifyTreeFile/index.d.ts +8 -0
  583. package/dist/service/observer/status/buildModuleNodes/classifyTreeFile/index.js +25 -0
  584. package/dist/service/observer/status/buildModuleNodes/findParentFolder/index.d.ts +9 -0
  585. package/dist/service/observer/status/buildModuleNodes/findParentFolder/index.js +20 -0
  586. package/dist/service/observer/status/buildModuleNodes/index.d.ts +9 -0
  587. package/dist/service/observer/status/buildModuleNodes/index.js +49 -0
  588. package/dist/service/observer/status/buildModuleNodes/readTreeFile/countPlanSteps/index.d.ts +10 -0
  589. package/dist/service/observer/status/buildModuleNodes/readTreeFile/countPlanSteps/index.js +38 -0
  590. package/dist/service/observer/status/buildModuleNodes/readTreeFile/index.d.ts +12 -0
  591. package/dist/service/observer/status/buildModuleNodes/readTreeFile/index.js +73 -0
  592. package/dist/service/observer/status/buildModuleNodes/readTreeFile/workStatuses/index.d.ts +11 -0
  593. package/dist/service/observer/status/buildModuleNodes/readTreeFile/workStatuses/index.js +7 -0
  594. package/dist/service/observer/status/buildRails/collectPipelineEvents/index.d.ts +15 -0
  595. package/dist/service/observer/status/buildRails/collectPipelineEvents/index.js +44 -0
  596. package/dist/service/observer/status/buildRails/index.d.ts +18 -0
  597. package/dist/service/observer/status/buildRails/index.js +62 -0
  598. package/dist/service/observer/status/buildRails/isOutside/index.d.ts +11 -0
  599. package/dist/service/observer/status/buildRails/isOutside/index.js +13 -0
  600. package/dist/service/observer/status/buildRails/judgeStage/index.d.ts +18 -0
  601. package/dist/service/observer/status/buildRails/judgeStage/index.js +40 -0
  602. package/dist/service/observer/status/findRunningWork/index.d.ts +18 -0
  603. package/dist/service/observer/status/findRunningWork/index.js +73 -0
  604. package/dist/service/observer/status/findWaitingFiles/index.d.ts +15 -0
  605. package/dist/service/observer/status/findWaitingFiles/index.js +80 -0
  606. package/dist/service/observer/status/foldSessions/index.d.ts +12 -0
  607. package/dist/service/observer/status/foldSessions/index.js +54 -0
  608. package/dist/service/observer/status/index.d.ts +14 -0
  609. package/dist/service/observer/status/index.js +84 -0
  610. package/dist/service/observer/status/listWorkFiles/index.d.ts +8 -0
  611. package/dist/service/observer/status/listWorkFiles/index.js +18 -0
  612. package/dist/service/observer/status/readSessionRecord/index.d.ts +9 -0
  613. package/dist/service/observer/status/readSessionRecord/index.js +58 -0
  614. package/dist/service/observer/status/shared/findCurrentPipeline/index.d.ts +18 -0
  615. package/dist/service/observer/status/shared/findCurrentPipeline/index.js +29 -0
  616. package/dist/service/observer/status/shared/findOpenPhase/index.d.ts +24 -0
  617. package/dist/service/observer/status/shared/findOpenPhase/index.js +47 -0
  618. package/dist/service/observer/status/shared/normalizeProjectPath/index.d.ts +10 -0
  619. package/dist/service/observer/status/shared/normalizeProjectPath/index.js +17 -0
  620. package/dist/service/observer/status/shared/phaseLabels/index.d.ts +19 -0
  621. package/dist/service/observer/status/shared/phaseLabels/index.js +19 -0
  622. package/dist/service/observer/status/shared/toNodeFolder/index.d.ts +6 -0
  623. package/dist/service/observer/status/shared/toNodeFolder/index.js +13 -0
  624. package/dist/service/observer/status/types/index.d.ts +240 -0
  625. package/dist/service/observer/status/types/index.js +1 -0
  626. package/dist/service/parseBrainAide/extractMarkerSections/findStructuralFault/index.d.ts +15 -0
  627. package/dist/service/parseBrainAide/extractMarkerSections/findStructuralFault/index.js +58 -0
  628. package/dist/service/parseBrainAide/extractMarkerSections/findUnknownMarker/index.d.ts +17 -0
  629. package/dist/service/parseBrainAide/extractMarkerSections/findUnknownMarker/index.js +52 -0
  630. package/dist/service/parseBrainAide/extractMarkerSections/index.d.ts +18 -0
  631. package/dist/service/parseBrainAide/extractMarkerSections/index.js +35 -0
  632. package/dist/service/parseBrainAide/extractMarkerSections/locateMarkers/index.d.ts +9 -0
  633. package/dist/service/parseBrainAide/extractMarkerSections/locateMarkers/index.js +30 -0
  634. package/dist/service/parseBrainAide/extractMarkerSections/slicePresentSections/index.d.ts +18 -0
  635. package/dist/service/parseBrainAide/extractMarkerSections/slicePresentSections/index.js +24 -0
  636. package/dist/service/parseBrainAide/extractMarkerSections/sliceSections/index.d.ts +12 -0
  637. package/dist/service/parseBrainAide/extractMarkerSections/sliceSections/index.js +19 -0
  638. package/dist/service/parseBrainAide/index.d.ts +113 -0
  639. package/dist/service/parseBrainAide/index.js +248 -0
  640. package/dist/service/parseBrainAide/parseKanbanField/index.d.ts +21 -0
  641. package/dist/service/parseBrainAide/parseKanbanField/index.js +56 -0
  642. package/dist/startServer/index.d.ts +7 -0
  643. package/dist/startServer/index.js +459 -0
  644. package/dist/tools/brain/composeOutdatedRemediation/index.d.ts +12 -0
  645. package/dist/tools/brain/composeOutdatedRemediation/index.js +24 -0
  646. package/dist/tools/brain/index.d.ts +94 -0
  647. package/dist/tools/brain/index.js +113 -0
  648. package/dist/tools/brain/listContract/index.d.ts +10 -0
  649. package/dist/tools/brain/listContract/index.js +14 -0
  650. package/dist/tools/brain/readTemplateSection/index.d.ts +17 -0
  651. package/dist/tools/brain/readTemplateSection/index.js +26 -0
  652. package/dist/tools/brain/readTemplateSection/readTemplateLauncher/index.d.ts +11 -0
  653. package/dist/tools/brain/readTemplateSection/readTemplateLauncher/index.js +22 -0
  654. package/dist/tools/brain/sectionPurpose/index.d.ts +10 -0
  655. package/dist/tools/brain/sectionPurpose/index.js +15 -0
  656. package/dist/tools/brain/selectSection/index.d.ts +14 -0
  657. package/dist/tools/brain/selectSection/index.js +19 -0
  658. package/dist/tools/brain/validateDraft/composeDraftVerdict/index.d.ts +11 -0
  659. package/dist/tools/brain/validateDraft/composeDraftVerdict/index.js +22 -0
  660. package/dist/tools/brain/validateDraft/index.d.ts +13 -0
  661. package/dist/tools/brain/validateDraft/index.js +43 -0
  662. package/dist/tools/brain/validateDraft/readDraft/index.d.ts +19 -0
  663. package/dist/tools/brain/validateDraft/readDraft/index.js +19 -0
  664. package/dist/tools/brain/validateDraft/resolveDraftPath/index.d.ts +21 -0
  665. package/dist/tools/brain/validateDraft/resolveDraftPath/index.js +34 -0
  666. package/dist/tools/cleanup/checkPreconditions/index.d.ts +20 -0
  667. package/dist/tools/cleanup/checkPreconditions/index.js +94 -0
  668. package/dist/tools/cleanup/formatReport/index.d.ts +12 -0
  669. package/dist/tools/cleanup/formatReport/index.js +94 -0
  670. package/dist/tools/cleanup/index.d.ts +25 -0
  671. package/dist/tools/cleanup/index.js +53 -0
  672. package/dist/tools/cleanup/judgeEphemeral/index.d.ts +37 -0
  673. package/dist/tools/cleanup/judgeEphemeral/index.js +47 -0
  674. package/dist/tools/cleanup/locateEphemerals/index.d.ts +16 -0
  675. package/dist/tools/cleanup/locateEphemerals/index.js +27 -0
  676. package/dist/tools/cleanup/removeEphemerals/index.d.ts +19 -0
  677. package/dist/tools/cleanup/removeEphemerals/index.js +27 -0
  678. package/dist/tools/cleanup/resolveModule/index.d.ts +20 -0
  679. package/dist/tools/cleanup/resolveModule/index.js +35 -0
  680. package/dist/tools/discover/buildAncestorChain/index.d.ts +22 -0
  681. package/dist/tools/discover/buildAncestorChain/index.js +108 -0
  682. package/dist/tools/discover/buildTree/index.d.ts +10 -0
  683. package/dist/tools/discover/buildTree/index.js +64 -0
  684. package/dist/tools/discover/index.d.ts +21 -0
  685. package/dist/tools/discover/index.js +50 -0
  686. package/dist/tools/frontmatter/checkCompletion/index.d.ts +13 -0
  687. package/dist/tools/frontmatter/checkCompletion/index.js +51 -0
  688. package/dist/tools/frontmatter/checkTransition/index.d.ts +21 -0
  689. package/dist/tools/frontmatter/checkTransition/index.js +34 -0
  690. package/dist/tools/frontmatter/classifyAideFile/index.d.ts +8 -0
  691. package/dist/tools/frontmatter/classifyAideFile/index.js +25 -0
  692. package/dist/tools/frontmatter/formatResult/index.d.ts +11 -0
  693. package/dist/tools/frontmatter/formatResult/index.js +104 -0
  694. package/dist/tools/frontmatter/governedFields/index.d.ts +31 -0
  695. package/dist/tools/frontmatter/governedFields/index.js +31 -0
  696. package/dist/tools/frontmatter/index.d.ts +27 -0
  697. package/dist/tools/frontmatter/index.js +163 -0
  698. package/dist/tools/frontmatter/readGovernedValue/index.d.ts +16 -0
  699. package/dist/tools/frontmatter/readGovernedValue/index.js +159 -0
  700. package/dist/tools/frontmatter/resolveTarget/index.d.ts +23 -0
  701. package/dist/tools/frontmatter/resolveTarget/index.js +30 -0
  702. package/dist/tools/frontmatter/rewriteFieldLine/index.d.ts +18 -0
  703. package/dist/tools/frontmatter/rewriteFieldLine/index.js +16 -0
  704. package/dist/tools/frontmatter/types/index.d.ts +134 -0
  705. package/dist/tools/frontmatter/types/index.js +1 -0
  706. package/dist/tools/info/index.d.ts +40 -0
  707. package/dist/tools/info/index.js +60 -0
  708. package/dist/tools/info/resolveBehind/fetchPublishedVersions/index.d.ts +10 -0
  709. package/dist/tools/info/resolveBehind/fetchPublishedVersions/index.js +34 -0
  710. package/dist/tools/info/resolveBehind/index.d.ts +12 -0
  711. package/dist/tools/info/resolveBehind/index.js +44 -0
  712. package/dist/tools/info/resolveBehind/listSkippedVersions/index.d.ts +7 -0
  713. package/dist/tools/info/resolveBehind/listSkippedVersions/index.js +21 -0
  714. package/dist/tools/info/resolveBehind/readAideLaunchMode/index.d.ts +8 -0
  715. package/dist/tools/info/resolveBehind/readAideLaunchMode/index.js +24 -0
  716. package/dist/tools/info/resolveBehind/resolveHighlights/fetchChangelog/index.d.ts +9 -0
  717. package/dist/tools/info/resolveBehind/resolveHighlights/fetchChangelog/index.js +23 -0
  718. package/dist/tools/info/resolveBehind/resolveHighlights/index.d.ts +7 -0
  719. package/dist/tools/info/resolveBehind/resolveHighlights/index.js +16 -0
  720. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/index.d.ts +7 -0
  721. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/index.js +21 -0
  722. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/readReleaseBullets/index.d.ts +9 -0
  723. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/readReleaseBullets/index.js +50 -0
  724. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/toOneLine/index.d.ts +6 -0
  725. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/toOneLine/index.js +24 -0
  726. package/dist/tools/info/resolveOutdated/detectStaleHooks/index.d.ts +17 -0
  727. package/dist/tools/info/resolveOutdated/detectStaleHooks/index.js +28 -0
  728. package/dist/tools/info/resolveOutdated/index.d.ts +13 -0
  729. package/dist/tools/info/resolveOutdated/index.js +18 -0
  730. package/dist/tools/info/resolveOutdated/listStaleFiles/index.d.ts +7 -0
  731. package/dist/tools/info/resolveOutdated/listStaleFiles/index.js +30 -0
  732. package/dist/tools/inspect/index.d.ts +24 -0
  733. package/dist/tools/inspect/index.js +47 -0
  734. package/dist/tools/inspect/parseSymbols/index.d.ts +21 -0
  735. package/dist/tools/inspect/parseSymbols/index.js +213 -0
  736. package/dist/tools/inspect/walk/index.d.ts +8 -0
  737. package/dist/tools/inspect/walk/index.js +31 -0
  738. package/dist/tools/observer/endSession/formatReply/index.d.ts +9 -0
  739. package/dist/tools/observer/endSession/formatReply/index.js +23 -0
  740. package/dist/tools/observer/endSession/index.d.ts +21 -0
  741. package/dist/tools/observer/endSession/index.js +31 -0
  742. package/dist/tools/observer/endSession/types/index.d.ts +10 -0
  743. package/dist/tools/observer/endSession/types/index.js +1 -0
  744. package/dist/tools/observer/event/formatReply/index.d.ts +10 -0
  745. package/dist/tools/observer/event/formatReply/index.js +28 -0
  746. package/dist/tools/observer/event/index.d.ts +9 -0
  747. package/dist/tools/observer/event/index.js +11 -0
  748. package/dist/tools/observer/shared/tryBind/index.d.ts +13 -0
  749. package/dist/tools/observer/shared/tryBind/index.js +31 -0
  750. package/dist/tools/observer/start/awaitObserver/index.d.ts +16 -0
  751. package/dist/tools/observer/start/awaitObserver/index.js +75 -0
  752. package/dist/tools/observer/start/awaitOwnLink/index.d.ts +12 -0
  753. package/dist/tools/observer/start/awaitOwnLink/index.js +24 -0
  754. package/dist/tools/observer/start/checkProject/index.d.ts +18 -0
  755. package/dist/tools/observer/start/checkProject/index.js +45 -0
  756. package/dist/tools/observer/start/findOpenSessions/index.d.ts +18 -0
  757. package/dist/tools/observer/start/findOpenSessions/index.js +53 -0
  758. package/dist/tools/observer/start/formatReply/describeOpenSession/index.d.ts +7 -0
  759. package/dist/tools/observer/start/formatReply/describeOpenSession/index.js +13 -0
  760. package/dist/tools/observer/start/formatReply/index.d.ts +6 -0
  761. package/dist/tools/observer/start/formatReply/index.js +43 -0
  762. package/dist/tools/observer/start/index.d.ts +27 -0
  763. package/dist/tools/observer/start/index.js +87 -0
  764. package/dist/tools/observer/start/launchObserver/index.d.ts +17 -0
  765. package/dist/tools/observer/start/launchObserver/index.js +23 -0
  766. package/dist/tools/observer/start/markClosedSessions/index.d.ts +16 -0
  767. package/dist/tools/observer/start/markClosedSessions/index.js +49 -0
  768. package/dist/tools/observer/start/moveLegacyHistory/index.d.ts +10 -0
  769. package/dist/tools/observer/start/moveLegacyHistory/index.js +26 -0
  770. package/dist/tools/observer/start/types/index.d.ts +82 -0
  771. package/dist/tools/observer/start/types/index.js +1 -0
  772. package/dist/tools/observer/start/walkPorts/index.d.ts +15 -0
  773. package/dist/tools/observer/start/walkPorts/index.js +17 -0
  774. package/dist/tools/read/index.d.ts +15 -0
  775. package/dist/tools/read/index.js +79 -0
  776. package/dist/tools/scaffold/hasIntentSpec/index.d.ts +7 -0
  777. package/dist/tools/scaffold/hasIntentSpec/index.js +9 -0
  778. package/dist/tools/scaffold/index.d.ts +33 -0
  779. package/dist/tools/scaffold/index.js +216 -0
  780. package/dist/tools/scaffold/placeRootIntent/index.d.ts +17 -0
  781. package/dist/tools/scaffold/placeRootIntent/index.js +24 -0
  782. package/dist/tools/scaffold/resolveSpecFolder/index.d.ts +17 -0
  783. package/dist/tools/scaffold/resolveSpecFolder/index.js +21 -0
  784. package/dist/tools/scaffold/sessionTemplate/index.d.ts +9 -0
  785. package/dist/tools/scaffold/sessionTemplate/index.js +40 -0
  786. package/dist/tools/scaffold/writeIfAbsent/index.d.ts +10 -0
  787. package/dist/tools/scaffold/writeIfAbsent/index.js +21 -0
  788. package/dist/tools/upgrade/applyFiles/index.d.ts +49 -0
  789. package/dist/tools/upgrade/applyFiles/index.js +91 -0
  790. package/dist/tools/upgrade/applyFiles/movePin/changesOnlyThePin/index.d.ts +11 -0
  791. package/dist/tools/upgrade/applyFiles/movePin/changesOnlyThePin/index.js +23 -0
  792. package/dist/tools/upgrade/applyFiles/movePin/index.d.ts +14 -0
  793. package/dist/tools/upgrade/applyFiles/movePin/index.js +56 -0
  794. package/dist/tools/upgrade/applyFiles/movePin/locatePinToken/index.d.ts +16 -0
  795. package/dist/tools/upgrade/applyFiles/movePin/locatePinToken/index.js +30 -0
  796. package/dist/tools/upgrade/applyFiles/switchToGlobal/changesOnlyTheLaunch/index.d.ts +12 -0
  797. package/dist/tools/upgrade/applyFiles/switchToGlobal/changesOnlyTheLaunch/index.js +27 -0
  798. package/dist/tools/upgrade/applyFiles/switchToGlobal/index.d.ts +16 -0
  799. package/dist/tools/upgrade/applyFiles/switchToGlobal/index.js +78 -0
  800. package/dist/tools/upgrade/applyFiles/switchToGlobal/locateLaunchTokens/index.d.ts +21 -0
  801. package/dist/tools/upgrade/applyFiles/switchToGlobal/locateLaunchTokens/index.js +36 -0
  802. package/dist/tools/upgrade/brainCategory/applyChange/index.d.ts +21 -0
  803. package/dist/tools/upgrade/brainCategory/applyChange/index.js +64 -0
  804. package/dist/tools/upgrade/brainCategory/applyChange/yieldsExpectedConfig/index.d.ts +12 -0
  805. package/dist/tools/upgrade/brainCategory/applyChange/yieldsExpectedConfig/index.js +25 -0
  806. package/dist/tools/upgrade/brainCategory/index.d.ts +19 -0
  807. package/dist/tools/upgrade/brainCategory/index.js +28 -0
  808. package/dist/tools/upgrade/brainCategory/insertMissingSections/index.d.ts +15 -0
  809. package/dist/tools/upgrade/brainCategory/insertMissingSections/index.js +62 -0
  810. package/dist/tools/upgrade/brainCategory/insertMissingSections/spliceRepairs/index.d.ts +25 -0
  811. package/dist/tools/upgrade/brainCategory/insertMissingSections/spliceRepairs/index.js +36 -0
  812. package/dist/tools/upgrade/brainCategory/previewChange/index.d.ts +16 -0
  813. package/dist/tools/upgrade/brainCategory/previewChange/index.js +61 -0
  814. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/index.d.ts +20 -0
  815. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/index.js +54 -0
  816. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/index.d.ts +19 -0
  817. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/index.js +61 -0
  818. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/locateArgLines/index.d.ts +11 -0
  819. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/locateArgLines/index.js +49 -0
  820. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/renderArgLine/index.d.ts +6 -0
  821. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/renderArgLine/index.js +8 -0
  822. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherCommand/index.d.ts +13 -0
  823. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherCommand/index.js +27 -0
  824. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildSectionOffer/index.d.ts +19 -0
  825. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildSectionOffer/index.js +58 -0
  826. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/index.d.ts +13 -0
  827. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/index.js +19 -0
  828. package/dist/tools/upgrade/brainCategory/shared/changedSinceDiff/index.d.ts +3 -0
  829. package/dist/tools/upgrade/brainCategory/shared/changedSinceDiff/index.js +4 -0
  830. package/dist/tools/upgrade/brainCategory/shared/detectLineEnding/index.d.ts +6 -0
  831. package/dist/tools/upgrade/brainCategory/shared/detectLineEnding/index.js +9 -0
  832. package/dist/tools/upgrade/brainCategory/shared/hashBytes/index.d.ts +7 -0
  833. package/dist/tools/upgrade/brainCategory/shared/hashBytes/index.js +10 -0
  834. package/dist/tools/upgrade/brainCategory/shared/invalidResultInstructions/index.d.ts +5 -0
  835. package/dist/tools/upgrade/brainCategory/shared/invalidResultInstructions/index.js +7 -0
  836. package/dist/tools/upgrade/brainCategory/shared/locateFrontmatter/index.d.ts +19 -0
  837. package/dist/tools/upgrade/brainCategory/shared/locateFrontmatter/index.js +27 -0
  838. package/dist/tools/upgrade/brainCategory/shared/locateSection/index.d.ts +16 -0
  839. package/dist/tools/upgrade/brainCategory/shared/locateSection/index.js +19 -0
  840. package/dist/tools/upgrade/brainCategory/shared/readBrainConfig/index.d.ts +12 -0
  841. package/dist/tools/upgrade/brainCategory/shared/readBrainConfig/index.js +22 -0
  842. package/dist/tools/upgrade/brainCategory/shared/readChangeBefore/index.d.ts +13 -0
  843. package/dist/tools/upgrade/brainCategory/shared/readChangeBefore/index.js +17 -0
  844. package/dist/tools/upgrade/brainCategory/shared/refuseUnusableConfig/index.d.ts +13 -0
  845. package/dist/tools/upgrade/brainCategory/shared/refuseUnusableConfig/index.js +30 -0
  846. package/dist/tools/upgrade/brainCategory/shared/toLineEnding/index.d.ts +9 -0
  847. package/dist/tools/upgrade/brainCategory/shared/toLineEnding/index.js +8 -0
  848. package/dist/tools/upgrade/buildVersionsMeta/assertFullClone/index.d.ts +14 -0
  849. package/dist/tools/upgrade/buildVersionsMeta/assertFullClone/index.js +27 -0
  850. package/dist/tools/upgrade/buildVersionsMeta/enumerateArtifacts/index.d.ts +23 -0
  851. package/dist/tools/upgrade/buildVersionsMeta/enumerateArtifacts/index.js +62 -0
  852. package/dist/tools/upgrade/buildVersionsMeta/index.d.ts +17 -0
  853. package/dist/tools/upgrade/buildVersionsMeta/index.js +26 -0
  854. package/dist/tools/upgrade/checkBrainConfig/index.d.ts +29 -0
  855. package/dist/tools/upgrade/checkBrainConfig/index.js +67 -0
  856. package/dist/tools/upgrade/checkHooksConfig/index.d.ts +30 -0
  857. package/dist/tools/upgrade/checkHooksConfig/index.js +72 -0
  858. package/dist/tools/upgrade/checkIdeConfig/index.d.ts +24 -0
  859. package/dist/tools/upgrade/checkIdeConfig/index.js +134 -0
  860. package/dist/tools/upgrade/checkMcpConfig/index.d.ts +37 -0
  861. package/dist/tools/upgrade/checkMcpConfig/index.js +172 -0
  862. package/dist/tools/upgrade/checkMcpConfig/isCanonicalGlobalAideEntry/index.d.ts +10 -0
  863. package/dist/tools/upgrade/checkMcpConfig/isCanonicalGlobalAideEntry/index.js +17 -0
  864. package/dist/tools/upgrade/checkMcpConfig/isPinBehind/index.d.ts +9 -0
  865. package/dist/tools/upgrade/checkMcpConfig/isPinBehind/index.js +18 -0
  866. package/dist/tools/upgrade/checkReference/index.d.ts +12 -0
  867. package/dist/tools/upgrade/checkReference/index.js +28 -0
  868. package/dist/tools/upgrade/compareFile/index.d.ts +12 -0
  869. package/dist/tools/upgrade/compareFile/index.js +24 -0
  870. package/dist/tools/upgrade/index.d.ts +51 -0
  871. package/dist/tools/upgrade/index.js +216 -0
  872. package/dist/tools/upgrade/resolveProjectRoot/index.d.ts +7 -0
  873. package/dist/tools/upgrade/resolveProjectRoot/index.js +12 -0
  874. package/dist/tools/upgrade/shared/readAidePin/index.d.ts +9 -0
  875. package/dist/tools/upgrade/shared/readAidePin/index.js +24 -0
  876. package/dist/tools/upgrade/spliceStub/index.d.ts +13 -0
  877. package/dist/tools/upgrade/spliceStub/index.js +91 -0
  878. package/dist/tools/validate/checkAlignment/index.d.ts +15 -0
  879. package/dist/tools/validate/checkAlignment/index.js +42 -0
  880. package/dist/tools/validate/checkPlanSpec/index.d.ts +9 -0
  881. package/dist/tools/validate/checkPlanSpec/index.js +27 -0
  882. package/dist/tools/validate/index.d.ts +20 -0
  883. package/dist/tools/validate/index.js +91 -0
  884. package/dist/types/index.d.ts +1366 -0
  885. package/dist/types/index.js +1 -0
  886. package/dist/util/baseName/index.d.ts +6 -0
  887. package/dist/util/baseName/index.js +9 -0
  888. package/dist/util/buildTreeData/index.d.ts +7 -0
  889. package/dist/util/buildTreeData/index.js +51 -0
  890. package/dist/util/checkboxPattern/index.d.ts +9 -0
  891. package/dist/util/checkboxPattern/index.js +9 -0
  892. package/dist/util/classify/holdsCode/index.d.ts +6 -0
  893. package/dist/util/classify/holdsCode/index.js +31 -0
  894. package/dist/util/classify/holdsCode/isCodeFile/index.d.ts +2 -0
  895. package/dist/util/classify/holdsCode/isCodeFile/index.js +11 -0
  896. package/dist/util/classify/index.d.ts +17 -0
  897. package/dist/util/classify/index.js +163 -0
  898. package/dist/util/countCheckboxes/index.d.ts +16 -0
  899. package/dist/util/countCheckboxes/index.js +29 -0
  900. package/dist/util/describeError/index.d.ts +7 -0
  901. package/dist/util/describeError/index.js +7 -0
  902. package/dist/util/firstLine/index.d.ts +10 -0
  903. package/dist/util/firstLine/index.js +17 -0
  904. package/dist/util/isProcessRunning/index.d.ts +10 -0
  905. package/dist/util/isProcessRunning/index.js +22 -0
  906. package/dist/util/isVersionBehind/index.d.ts +6 -0
  907. package/dist/util/isVersionBehind/index.js +23 -0
  908. package/dist/util/parseBody/index.d.ts +7 -0
  909. package/dist/util/parseBody/index.js +43 -0
  910. package/dist/util/parseFrontmatter/index.d.ts +14 -0
  911. package/dist/util/parseFrontmatter/index.js +66 -0
  912. package/dist/util/readPackageVersion/index.d.ts +6 -0
  913. package/dist/util/readPackageVersion/index.js +24 -0
  914. package/dist/util/runtimePaths/create/index.d.ts +11 -0
  915. package/dist/util/runtimePaths/create/index.js +17 -0
  916. package/dist/util/runtimePaths/createRoot/index.d.ts +7 -0
  917. package/dist/util/runtimePaths/createRoot/index.js +13 -0
  918. package/dist/util/runtimePaths/isProjectKey/index.d.ts +7 -0
  919. package/dist/util/runtimePaths/isProjectKey/index.js +18 -0
  920. package/dist/util/runtimePaths/listProjectFolders/index.d.ts +10 -0
  921. package/dist/util/runtimePaths/listProjectFolders/index.js +28 -0
  922. package/dist/util/runtimePaths/moveLegacyRoot/compareFiles/index.d.ts +11 -0
  923. package/dist/util/runtimePaths/moveLegacyRoot/compareFiles/index.js +27 -0
  924. package/dist/util/runtimePaths/moveLegacyRoot/index.d.ts +13 -0
  925. package/dist/util/runtimePaths/moveLegacyRoot/index.js +85 -0
  926. package/dist/util/runtimePaths/moveLegacyRoot/moveLog/index.d.ts +15 -0
  927. package/dist/util/runtimePaths/moveLegacyRoot/moveLog/index.js +47 -0
  928. package/dist/util/runtimePaths/moveLegacyRoot/moveRecord/index.d.ts +13 -0
  929. package/dist/util/runtimePaths/moveLegacyRoot/moveRecord/index.js +29 -0
  930. package/dist/util/runtimePaths/moveLegacyRoot/publishCopy/index.d.ts +13 -0
  931. package/dist/util/runtimePaths/moveLegacyRoot/publishCopy/index.js +38 -0
  932. package/dist/util/runtimePaths/moveLegacyRoot/removeEmptyFolders/index.d.ts +8 -0
  933. package/dist/util/runtimePaths/moveLegacyRoot/removeEmptyFolders/index.js +11 -0
  934. package/dist/util/runtimePaths/moveLegacyRoot/resolveLegacyRoot/index.d.ts +9 -0
  935. package/dist/util/runtimePaths/moveLegacyRoot/resolveLegacyRoot/index.js +23 -0
  936. package/dist/util/runtimePaths/moveLegacyRoot/shared/isGone/index.d.ts +4 -0
  937. package/dist/util/runtimePaths/moveLegacyRoot/shared/isGone/index.js +9 -0
  938. package/dist/util/runtimePaths/moveLegacyRoot/shared/unlinkIfPresent/index.d.ts +4 -0
  939. package/dist/util/runtimePaths/moveLegacyRoot/shared/unlinkIfPresent/index.js +8 -0
  940. package/dist/util/runtimePaths/resolve/index.d.ts +9 -0
  941. package/dist/util/runtimePaths/resolve/index.js +31 -0
  942. package/dist/util/runtimePaths/resolve/nameProjectFolder/index.d.ts +10 -0
  943. package/dist/util/runtimePaths/resolve/nameProjectFolder/index.js +23 -0
  944. package/dist/util/runtimePaths/resolveArchivedLog/index.d.ts +9 -0
  945. package/dist/util/runtimePaths/resolveArchivedLog/index.js +19 -0
  946. package/dist/util/runtimePaths/resolveEndedMark/index.d.ts +11 -0
  947. package/dist/util/runtimePaths/resolveEndedMark/index.js +21 -0
  948. package/dist/util/runtimePaths/resolveEventLog/index.d.ts +10 -0
  949. package/dist/util/runtimePaths/resolveEventLog/index.js +20 -0
  950. package/dist/util/runtimePaths/resolvePresenceFile/index.d.ts +11 -0
  951. package/dist/util/runtimePaths/resolvePresenceFile/index.js +21 -0
  952. package/dist/util/runtimePaths/resolveRoot/index.d.ts +8 -0
  953. package/dist/util/runtimePaths/resolveRoot/index.js +13 -0
  954. package/dist/util/runtimePaths/resolveSessionLog/index.d.ts +11 -0
  955. package/dist/util/runtimePaths/resolveSessionLog/index.js +21 -0
  956. package/dist/util/runtimePaths/shared/isSessionId/index.d.ts +8 -0
  957. package/dist/util/runtimePaths/shared/isSessionId/index.js +10 -0
  958. package/dist/util/runtimePaths/shared/pickPathModule/index.d.ts +8 -0
  959. package/dist/util/runtimePaths/shared/pickPathModule/index.js +11 -0
  960. package/dist/util/runtimePaths/shared/projectKeyHash/index.d.ts +7 -0
  961. package/dist/util/runtimePaths/shared/projectKeyHash/index.js +7 -0
  962. package/dist/util/runtimePaths/shared/resolveAppDataRoot/index.d.ts +12 -0
  963. package/dist/util/runtimePaths/shared/resolveAppDataRoot/index.js +32 -0
  964. package/dist/util/runtimePaths/shared/runtimeNames/index.d.ts +20 -0
  965. package/dist/util/runtimePaths/shared/runtimeNames/index.js +20 -0
  966. package/dist/util/runtimePaths/types/index.d.ts +55 -0
  967. package/dist/util/runtimePaths/types/index.js +1 -0
  968. package/dist/util/scan/index.d.ts +12 -0
  969. package/dist/util/scan/index.js +228 -0
  970. package/dist/util/sessionQuietLimit/index.d.ts +9 -0
  971. package/dist/util/sessionQuietLimit/index.js +9 -0
  972. package/dist/util/skipDirs/index.d.ts +7 -0
  973. package/dist/util/skipDirs/index.js +15 -0
  974. package/dist/util/timeUnits/index.d.ts +15 -0
  975. package/dist/util/timeUnits/index.js +15 -0
  976. package/dist/versions.json +330 -0
  977. package/package.json +83 -5
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Seed text for the Create guide at `kanban/guide/create.md`, carried by the
3
+ * template's `kanban-create` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links, the `Related:` line, the
6
+ * `mcp__brain__*` tools. A task is created by writing one file into its
7
+ * project's column folder; there is no board file to update.
8
+ *
9
+ * The text lands in the brain exactly as written here (ending in one newline);
10
+ * the config seeding step splits the frontmatter from the body when writing.
11
+ */
12
+ export default `---
13
+ tags:
14
+ - tasks
15
+ - workflow
16
+ ---
17
+ # Create
18
+
19
+ Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
20
+
21
+ Create a new task.
22
+
23
+ ## Who does what
24
+
25
+ The caller talks to the user and gathers the task details (Step 1), shows the user the new task and gets a clear yes. The \`kanban-maintainer\` agent writes the task (Step 2) and reports back. The caller confirms to the user (Step 3).
26
+
27
+ ## Step 1 — Gather task details
28
+
29
+ Take whatever the user already provided (title, priority, \`--backlog\` flag).
30
+
31
+ - No title provided: ask "What's the task?"
32
+ - No priority provided: ask with these options:
33
+ - \`p0\` — critical / blocks work
34
+ - \`p1\` — high / should do soon
35
+ - \`p2\` — low / nice to have
36
+ - \`p3\` — lowest / cleanup, someday
37
+ - Title longer than about 100 characters: propose a shorter title and move the rest into the description.
38
+ - Title is vague: optionally ask for a short description. Skip this if the title is self-explanatory.
39
+ - If the user's request names a kind of work (a bug, a deploy, hardening, housekeeping), take it as \`TYPE\`. Do not ask for it; without one, \`TYPE\` is none.
40
+
41
+ The target column is Backlog if \`--backlog\` was passed, Todo otherwise.
42
+
43
+ After this step you have \`TITLE\`, \`PRIORITY\`, \`TYPE\` (or none), \`DESCRIPTION\` (or none), \`TARGET_COLUMN\` and the project tag (see Project in [[kanban/kanban|Kanban]]).
44
+
45
+ ## Step 2 — Write the task
46
+
47
+ - [ ] **Generate the slug** as the kanban index describes. Target folder: \`kanban/<project>/todo/\` or \`kanban/<project>/backlog/\`. If a task with that slug already exists anywhere under \`kanban/<project>/\`, append \`-2\` (or increment) until it is unique.
48
+ - [ ] **Find the project note.** List or search \`projects/\` for the note of the project this tag belongs to (for example tag \`myproject\` → \`projects/my-app\`). If exactly one note clearly matches, use it as \`<project-note>\` with its usual display name. If none or several match, omit the \`Related:\` line and report \`PROJECT_NOTE: none\`.
49
+ - [ ] **Write the task** at \`<target folder>/<slug>.md\`:
50
+
51
+ \`\`\`markdown
52
+ ---
53
+ project: <project tag>
54
+ priority: <priority>
55
+ type: <type in lower case — omit this line if none>
56
+ created: <YYYY-MM-DDTHH:MM:SS>
57
+ updated: <YYYY-MM-DDTHH:MM:SS>
58
+ ---
59
+
60
+ # <Title>
61
+
62
+ Related: [[projects/<project-note>|<display-name>]]
63
+
64
+ <Description if provided. Otherwise omit this line.>
65
+ \`\`\`
66
+
67
+ - [ ] **Report in this format:**
68
+
69
+ \`\`\`
70
+ CREATED:
71
+ SLUG: <slug>
72
+ PATH: <brain-relative path>
73
+ PRIORITY: <priority>
74
+ COLUMN: <target column>
75
+ PROJECT: <project tag>
76
+ PROJECT_NOTE: <projects/<project-note> or "none">
77
+ \`\`\`
78
+
79
+ ## Step 3 — Confirm
80
+
81
+ Tell the user: task created as \`<SLUG>\` (priority \`<PRIORITY>\`) in \`<COLUMN>\`. One line.
82
+ `;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Seed text for the Manage guide at `kanban/guide/manage.md`, carried by the
3
+ * template's `kanban-manage` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links and the `mcp__brain__*` tools.
6
+ * The project's column folders are listed to show its tasks, and the index's
7
+ * cleanup rules are checked and offered to the user.
8
+ *
9
+ * The text lands in the brain exactly as written here (ending in one newline);
10
+ * the config seeding step splits the frontmatter from the body when writing.
11
+ */
12
+ declare const _default: "---\ntags:\n - tasks\n - workflow\n---\n# Manage\n\nPart of [[kanban/kanban|Kanban]]. Read it first: its project, column, task, cleanup and brain tool rules apply to every step below.\n\nView the current project's tasks, apply the cleanup rules, and move tasks between columns.\n\n## Step 1 \u2014 Determine the project\n\nGet the project tag (see Project in [[kanban/kanban|Kanban]]).\n\n## Step 2 \u2014 List the tasks\n\nList each column folder under `kanban/<project>/`: `backlog/`, `todo/`, `in-progress/`, `in-review/`, `done/`. For each task, read its frontmatter (`priority`, `type`, `project`, `updated`) and its `# <Title>` line.\n\n## Step 3 \u2014 Check the cleanup rules\n\nCheck every task against the Cleanup Rules in [[kanban/kanban|Kanban]]: long titles, stale In Review tasks, Done overflow, and wrong or missing `project` fields. Collect what you find; change nothing yet.\n\n## Step 4 \u2014 Present tasks and findings\n\nShow the user the project's open tasks in a compact format, then the cleanup findings:\n\n```\nBacklog\n fix-login-bug \u2014 p1 bug: Fix login bug on mobile\n add-email-validation \u2014 p2: Add email validation\n\nTodo\n redesign-header \u2014 p2: Redesign the header\n\nIn Progress\n update-api \u2014 p1: Update the API endpoints\n\nIn Review\n update-docs \u2014 p3: Update the docs (in review 21 days)\n\nDone: 63 tasks\n\nCleanup\n update-docs has been in In Review for 21 days \u2014 complete it to Done?\n Done holds 63 tasks \u2014 archive the 13 oldest?\n```\n\nIf the project has no tasks, tell the user and stop.\n\nThen ask: \"Which tasks do you want to move, and which cleanup items should I apply?\"\n\nAccept natural answers such as:\n\n- \"move fix-login-bug to Todo\"\n- \"move update-docs to Done\"\n- \"archive the old Done tasks\"\n\nValid column names: `Backlog`, `Todo`, `In Progress`, `In Review`, `Done`.\n\n## Step 5 \u2014 Apply what the user approved\n\nFor each approved change:\n\n- **Move:** move the file to `kanban/<project>/<target column folder>/<slug>.md` and update its `updated` field.\n- **Archive:** move the file from `done/` to `archive/` and update its `updated` field.\n- **Shorten a title:** rewrite the `# <Title>` line and add the removed detail to the top of the description; update `updated`.\n- **Fix a project field:** set `project` to the folder's project, or move the task to the project folder its field names, as the user chose; update `updated`.\n\nNever change `created`.\n\n## Step 6 \u2014 Confirm\n\nTell the user what changed, one line per task. Ask whether they want to change anything else. If yes, return to Step 4. If no, stop.\n";
13
+ export default _default;
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Seed text for the Manage guide at `kanban/guide/manage.md`, carried by the
3
+ * template's `kanban-manage` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links and the `mcp__brain__*` tools.
6
+ * The project's column folders are listed to show its tasks, and the index's
7
+ * cleanup rules are checked and offered to the user.
8
+ *
9
+ * The text lands in the brain exactly as written here (ending in one newline);
10
+ * the config seeding step splits the frontmatter from the body when writing.
11
+ */
12
+ export default `---
13
+ tags:
14
+ - tasks
15
+ - workflow
16
+ ---
17
+ # Manage
18
+
19
+ Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task, cleanup and brain tool rules apply to every step below.
20
+
21
+ View the current project's tasks, apply the cleanup rules, and move tasks between columns.
22
+
23
+ ## Step 1 — Determine the project
24
+
25
+ Get the project tag (see Project in [[kanban/kanban|Kanban]]).
26
+
27
+ ## Step 2 — List the tasks
28
+
29
+ List each column folder under \`kanban/<project>/\`: \`backlog/\`, \`todo/\`, \`in-progress/\`, \`in-review/\`, \`done/\`. For each task, read its frontmatter (\`priority\`, \`type\`, \`project\`, \`updated\`) and its \`# <Title>\` line.
30
+
31
+ ## Step 3 — Check the cleanup rules
32
+
33
+ Check every task against the Cleanup Rules in [[kanban/kanban|Kanban]]: long titles, stale In Review tasks, Done overflow, and wrong or missing \`project\` fields. Collect what you find; change nothing yet.
34
+
35
+ ## Step 4 — Present tasks and findings
36
+
37
+ Show the user the project's open tasks in a compact format, then the cleanup findings:
38
+
39
+ \`\`\`
40
+ Backlog
41
+ fix-login-bug — p1 bug: Fix login bug on mobile
42
+ add-email-validation — p2: Add email validation
43
+
44
+ Todo
45
+ redesign-header — p2: Redesign the header
46
+
47
+ In Progress
48
+ update-api — p1: Update the API endpoints
49
+
50
+ In Review
51
+ update-docs — p3: Update the docs (in review 21 days)
52
+
53
+ Done: 63 tasks
54
+
55
+ Cleanup
56
+ update-docs has been in In Review for 21 days — complete it to Done?
57
+ Done holds 63 tasks — archive the 13 oldest?
58
+ \`\`\`
59
+
60
+ If the project has no tasks, tell the user and stop.
61
+
62
+ Then ask: "Which tasks do you want to move, and which cleanup items should I apply?"
63
+
64
+ Accept natural answers such as:
65
+
66
+ - "move fix-login-bug to Todo"
67
+ - "move update-docs to Done"
68
+ - "archive the old Done tasks"
69
+
70
+ Valid column names: \`Backlog\`, \`Todo\`, \`In Progress\`, \`In Review\`, \`Done\`.
71
+
72
+ ## Step 5 — Apply what the user approved
73
+
74
+ For each approved change:
75
+
76
+ - **Move:** move the file to \`kanban/<project>/<target column folder>/<slug>.md\` and update its \`updated\` field.
77
+ - **Archive:** move the file from \`done/\` to \`archive/\` and update its \`updated\` field.
78
+ - **Shorten a title:** rewrite the \`# <Title>\` line and add the removed detail to the top of the description; update \`updated\`.
79
+ - **Fix a project field:** set \`project\` to the folder's project, or move the task to the project folder its field names, as the user chose; update \`updated\`.
80
+
81
+ Never change \`created\`.
82
+
83
+ ## Step 6 — Confirm
84
+
85
+ Tell the user what changed, one line per task. Ask whether they want to change anything else. If yes, return to Step 4. If no, stop.
86
+ `;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Seed text for the Move guide at `kanban/guide/move.md`, carried by the
3
+ * template's `kanban-move` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links and the `mcp__brain__*` tools.
6
+ * Moving a task is moving one file between its project's column folders.
7
+ *
8
+ * The text lands in the brain exactly as written here (ending in one newline);
9
+ * the config seeding step splits the frontmatter from the body when writing.
10
+ */
11
+ declare const _default: "---\ntags:\n - tasks\n - workflow\n---\n# Move\n\nPart of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.\n\nMove the current session's task to a specified column. The task is inferred from the session. The user provides the target column inline (for example \"move to todo\", \"move to in review\").\n\n## Step 1 \u2014 Parse the target column\n\nExtract the target column from the request. Match it against the valid columns (case-insensitive):\n\n- `Backlog`\n- `Todo`\n- `In Progress`\n- `In Review`\n- `Done`\n\nIf no target column is found in the message, ask: \"Which column?\"\n\n## Step 2 \u2014 Identify the task from session context\n\nLook back through the current conversation for the task being worked on this session. Signals, in priority order:\n\n1. A task picked through Work and moved to In Progress.\n2. A task moved through Manage during this session.\n3. A task file read or referenced during the session.\n\nIf no task can be identified, tell the user and stop.\n\n## Step 3 \u2014 Determine the project\n\nGet the project tag (see Project in [[kanban/kanban|Kanban]]).\n\n## Step 4 \u2014 Find the task\n\nLook for `<slug>.md` in the project's column folders under `kanban/<project>/`. If it is not found, tell the user and stop. If it is already in the target column, tell the user and stop.\n\n## Step 5 \u2014 Move the task\n\nMove the file to `kanban/<project>/<target column folder>/<slug>.md` and update its `updated` field to the current datetime (`YYYY-MM-DDTHH:MM:SS`).\n\n## Step 6 \u2014 Confirm\n\nTell the user: \"`<slug>` moved to <Target Column>.\"\n";
12
+ export default _default;
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Seed text for the Move guide at `kanban/guide/move.md`, carried by the
3
+ * template's `kanban-move` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links and the `mcp__brain__*` tools.
6
+ * Moving a task is moving one file between its project's column folders.
7
+ *
8
+ * The text lands in the brain exactly as written here (ending in one newline);
9
+ * the config seeding step splits the frontmatter from the body when writing.
10
+ */
11
+ export default `---
12
+ tags:
13
+ - tasks
14
+ - workflow
15
+ ---
16
+ # Move
17
+
18
+ Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
19
+
20
+ Move the current session's task to a specified column. The task is inferred from the session. The user provides the target column inline (for example "move to todo", "move to in review").
21
+
22
+ ## Step 1 — Parse the target column
23
+
24
+ Extract the target column from the request. Match it against the valid columns (case-insensitive):
25
+
26
+ - \`Backlog\`
27
+ - \`Todo\`
28
+ - \`In Progress\`
29
+ - \`In Review\`
30
+ - \`Done\`
31
+
32
+ If no target column is found in the message, ask: "Which column?"
33
+
34
+ ## Step 2 — Identify the task from session context
35
+
36
+ Look back through the current conversation for the task being worked on this session. Signals, in priority order:
37
+
38
+ 1. A task picked through Work and moved to In Progress.
39
+ 2. A task moved through Manage during this session.
40
+ 3. A task file read or referenced during the session.
41
+
42
+ If no task can be identified, tell the user and stop.
43
+
44
+ ## Step 3 — Determine the project
45
+
46
+ Get the project tag (see Project in [[kanban/kanban|Kanban]]).
47
+
48
+ ## Step 4 — Find the task
49
+
50
+ Look for \`<slug>.md\` in the project's column folders under \`kanban/<project>/\`. If it is not found, tell the user and stop. If it is already in the target column, tell the user and stop.
51
+
52
+ ## Step 5 — Move the task
53
+
54
+ Move the file to \`kanban/<project>/<target column folder>/<slug>.md\` and update its \`updated\` field to the current datetime (\`YYYY-MM-DDTHH:MM:SS\`).
55
+
56
+ ## Step 6 — Confirm
57
+
58
+ Tell the user: "\`<slug>\` moved to <Target Column>."
59
+ `;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Seed text for the Review guide at `kanban/guide/review.md`, carried by the
3
+ * template's `kanban-review` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links, the subagent prompts, and the
6
+ * task's `## Review` and `## Revisions` entry formats; recording the review on
7
+ * the task goes to the `kanban-maintainer` agent. Every blockquoted prompt
8
+ * line, including its `##`/`###`/`####` lines, is subagent prompt content and
9
+ * stays unpromoted.
10
+ *
11
+ * The text lands in the brain exactly as written here (ending in one newline);
12
+ * the config seeding step splits the frontmatter from the body when writing.
13
+ */
14
+ declare const _default: "---\ntags:\n - tasks\n - workflow\n---\n# Review\n\nPart of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.\n\nSpin up a subagent to do a comprehensive code review of the changes made for the current session's task. If changes are requested, run the full investigate, plan, approve, implement cycle through subagents.\n\nThe point of this operation is to offload work from the main agent's context. Do as little as possible yourself and pass the context you already have to subagents. Do NOT read the task, search the brain or gather project context yourself.\n\n## Delegation rules\n\n1. Never read the task, diffs or code yourself. Every read operation happens inside a subagent call.\n2. Execute the steps in strict order. Complete each step's subagent call and fully process its output before starting the next step.\n3. Hard stops are mandatory. Where marked HARD STOP, you MUST stop and wait for user input.\n4. Pass context forward explicitly. Each subagent call is stateless, so include all needed context (paths, slugs, diffs, review findings) in the prompt.\n5. Every subagent call needs three things: a type (`read-only` for exploration, or `general-purpose` for full access), a short description for the UI (5\u201310 words), and the full prompt the subagent receives.\n6. Planning mode must be off. If a read-only planning mode is active, turn it off before starting Step 1. This operation has its own approval gates, and planning mode adds redundant friction that breaks subagent write operations.\n7. Ask with structured options at every HARD STOP. Whenever a HARD STOP presents the user with choices, ask with structured multiple-choice options. Do not dump plain text and wait. Only the main agent can ask the user.\n\n## Step 1 \u2014 Run the review\n\nYou already know the task path, diff range and working directory from the current conversation. Pass them directly into the subagent prompt. If the user's request contains a commit range or branch, use that as the diff range.\n\nIf no task can be identified from conversation context, ask the user which task to review and **HARD STOP until they answer**.\n\nMake one subagent call (type `read-only`, description \"Code review for `<TASK_SLUG>`\") with this prompt, filled in:\n\n> You are performing a comprehensive code review.\n> **You are read-only \u2014 do not write, patch, move or update any files or task content.**\n>\n> **Task path:** `<path>`\n> **Diff range:** `<range, or \"uncommitted changes\">`\n> **Working directory:** `<pwd>`\n>\n> ## MANDATORY FIRST STEP \u2014 do this before anything else\n>\n> Invoke the `study-playbook` skill and read everything it returns. Follow every convention it specifies when evaluating code. If the playbook references a project-level `CLAUDE.md`, read that too (check the working directory root). If the skill is unavailable, read the project's `CLAUDE.md`; if neither exists, proceed without conventions and say so in the review.\n>\n> ## Review checklist\n>\n> Follow this checklist in order:\n>\n> - [ ] **Read the coding playbook** (above \u2014 not optional, do it first).\n> - [ ] **Gather context**\n> - Read the task at `<task path>`. Extract the description, investigation, plan, solution, stash and revisions sections.\n> - Get the diff: run `git diff HEAD` for uncommitted changes. If empty, run `git log --oneline -20` to find the session commits, then `git diff <first-commit>^..HEAD`. If a specific range was provided, use that.\n> - If the task contains a `## Stash` section, read the latest entry \u2014 it represents the most current session state (changes made, decisions, gotchas). Factor this into your review.\n> - [ ] **Read the changed files in full.** For every file in the diff, read the complete current version (not just the diff hunks) so you have surrounding context. Also read the callers and dependents of changed functions.\n> - [ ] **Review against each criterion:**\n> - **Correctness:** does the implementation match the plan and the task description? Logic errors, off-by-one, missed conditions?\n> - **Edge cases:** boundary conditions, empty inputs, null values, concurrent access, unexpected states?\n> - **Type safety:** correct and complete types? Any `any` casts, missing null checks at boundaries, type assertions hiding problems?\n> - **Error handling:** errors caught at the right level? Useful messages? Silent swallowing?\n> - **Side effects:** changes outside the stated scope? Check callers, dependents and shared state.\n> - **Test coverage:** do the tests verify the described behavior? Untested paths? Do the tests import the real module (not copy-pasted logic)?\n> - **Playbook alignment:** do the changes follow the established patterns from the coding playbook?\n> - **Performance:** N+1 queries, unnecessary re-renders, blocking calls, memory leaks?\n> - **Security:** OWASP top 10 \u2014 injection, XSS, auth bypass, secrets in code?\n> - **Naming and clarity:** descriptive names? Self-documenting code? Intent clear without comments?\n> - [ ] **Produce the review** in this exact format:\n>\n> ```\n> ## Review Summary\n>\n> **Verdict:** LGTM | Changes Requested | Needs Discussion\n>\n> **Risk level:** Low | Medium | High\n>\n> ### Findings\n>\n> #### Critical (must fix)\n> - [ ] <file:line> \u2014 <issue and suggested fix>\n>\n> #### Warnings (should fix)\n> - [ ] <file:line> \u2014 <issue and suggested fix>\n>\n> #### Nits (optional)\n> - [ ] <file:line> \u2014 <suggestion>\n>\n> #### Positive\n> - <things done well \u2014 reinforce good patterns>\n>\n> ### Missed Edge Cases\n> - <scenario not covered by tests or code>\n>\n> ### Questions\n> - <anything ambiguous that needs the author's input>\n> ```\n>\n> Omit any section that has zero items. Every finding must reference a specific file and line number.\n\nWait for the subagent result. Then proceed to Step 2.\n\n## Step 2 \u2014 Present the review\n\nDisplay the full review output verbatim. Do not summarize, editorialize or filter.\n\n## Step 3 \u2014 Record the review\n\nDelegate to the `kanban-maintainer` agent (description \"Record review on `<TASK_SLUG>`\") with this request, filled in:\n\n> You are recording a code review on a task.\n>\n> **Task path:** `<task path>`\n> **Now:** `<YYYY-MM-DDTHH:MM:SS>`\n>\n> Use only the brain read, append, write and frontmatter tools available in this session.\n>\n> - [ ] Read the current task.\n> - [ ] If a `## Review` section already exists, append a new dated subsection under it (do NOT overwrite prior reviews). Otherwise, append a new `## Review` section.\n> - [ ] Append:\n>\n> ```markdown\n> ### <YYYY-MM-DD HH:MM>\n>\n> **Verdict:** <verdict>\n> **Risk level:** <risk level>\n>\n> **Key findings:**\n> <critical and warning items only \u2014 skip nits>\n>\n> **Action taken:** <pending user decision>\n> ```\n>\n> - [ ] Update the frontmatter to set `updated`.\n> - [ ] Return: `DONE`\n\nWait for `DONE`.\n\n## Step 4 \u2014 Fix cycle (only if changes were requested)\n\nIf the verdict is **LGTM**, stop here. You are done.\n\nIf the verdict is **Changes Requested** or **Needs Discussion**, ask the user: \"Want me to implement the fixes?\"\n\n**HARD STOP until they answer.**\n\nIf the user says yes, run Steps 4a through 4d below. You are an orchestrator: delegate every step to subagents.\n\n### 4a \u2014 Investigate the findings\n\nMake one subagent call (type `read-only`, description \"Investigate review findings for `<TASK_SLUG>`\") with this prompt, filled in:\n\n> You are re-investigating a task after a code review found issues.\n> **You are read-only \u2014 do NOT write, patch, move or update anything.**\n>\n> **Task path:** `<path>` | **Slug:** `<TASK_SLUG>` | **Project:** `<project tag>`\n> **Working directory:** `<pwd>`\n>\n> Use only the brain read and search tools available in this session.\n>\n> ## MANDATORY FIRST STEP \u2014 do this before anything else\n>\n> Invoke the `study-playbook` skill and read everything it returns. Follow every convention it specifies. If the playbook references a project-level `CLAUDE.md`, read that too. If the skill is unavailable, read the project's `CLAUDE.md`; if neither exists, proceed without conventions and say so.\n>\n> ## Review findings to address\n>\n> `<paste the full review findings: Critical + Warnings + Missed Edge Cases>`\n>\n> ## Checklist\n>\n> - [ ] **Read the coding playbook** (above \u2014 not optional, do it first).\n> - [ ] **Read the task.** Get full context, including investigation, plan, solution, stash and prior reviews.\n> - [ ] **Investigate each finding.** Read every file referenced in the review findings (full files). Search for call sites of functions that need to change. Verify each finding is valid (not a false positive).\n> - [ ] **Devise the fix plan.** For each confirmed finding:\n> - name the file, the function or block, and what changes;\n> - flag any side effects or downstream impacts;\n> - output as a **structured checklist**.\n> - [ ] **Return in this exact format:**\n>\n> ```\n> INVESTIGATION:\n> - **Validated findings:** <which review items are confirmed>\n> - **False positives:** <which items are not actually issues, with reasoning>\n> - **Files involved:** <each file + one-line reason>\n>\n> OPEN_QUESTIONS:\n> <bulleted list, or \"None\">\n>\n> PLAN:\n> <structured checklist of fixes>\n> ```\n\nWait for the subagent result. Parse out INVESTIGATION, OPEN_QUESTIONS and PLAN.\n\n### 4b \u2014 Present the plan and handle open questions\n\nIf there are open questions, present them. **HARD STOP until every question is answered or dismissed.**\n\nPresent the PLAN verbatim.\n\n**HARD STOP: \"Plan ready \u2014 approve to proceed?\"** Do not implement until approved.\n\n### 4c \u2014 Implement the fixes\n\nOnce approved, make one subagent call (`general-purpose`, description \"Implement review fixes for `<TASK_SLUG>`\") with this prompt, filled in:\n\n> You are implementing review fixes from an approved plan.\n>\n> **Task path:** `<path>` | **Slug:** `<TASK_SLUG>`\n> **Working directory:** `<pwd>` | **Now:** `<YYYY-MM-DDTHH:MM:SS>`\n>\n> Use only the brain append and frontmatter tools available in this session.\n>\n> ## MANDATORY FIRST STEP \u2014 do this before writing any code\n>\n> Invoke the `study-playbook` skill and read everything it returns. Then check whether a `CLAUDE.md` exists at the working directory root \u2014 if so, read that too. Follow every convention from both for all code you write. If the skill is unavailable and there is no `CLAUDE.md`, proceed without conventions and say so.\n>\n> ## Approved plan\n>\n> `<paste the full PLAN here>`\n>\n> `<if open questions were answered, paste them here under \"## User answers\">`\n>\n> ## Checklist\n>\n> - [ ] **Read the coding playbook and the project `CLAUDE.md`** (above \u2014 mandatory).\n> - [ ] **Implement the fixes.** Follow the approved plan step by step. Follow every convention from the playbook.\n> - [ ] **Type check.** Run the project's type checker. Fix all errors before proceeding.\n> - [ ] **Run tests.** Run the existing tests. If any review finding relates to untested behavior, add tests. All tests must pass before proceeding.\n> - [ ] **Record revisions.** Append a `## Revisions` section to the task. If a `## Revisions` section already exists, append a new dated subsection (do NOT overwrite prior revisions):\n>\n> ```markdown\n> ### <YYYY-MM-DD HH:MM>\n>\n> **Review findings addressed:** <which items were fixed>\n> **Files changed:** <each file + one-line summary>\n> **Test coverage:** <tests added/modified and what they verify>\n> ```\n>\n> Then update the frontmatter to set `updated`.\n>\n> - [ ] **Return in this exact format:**\n>\n> ```\n> SUMMARY:\n> <files modified and what each change does>\n>\n> TEST_RESULTS:\n> <tests added/modified, what they verify, pass/fail>\n>\n> FILES_CHANGED:\n> <bulleted list of every file modified or created>\n> ```\n>\n> **Do NOT commit. No git add, git commit or any git write operations.**\n\nWait for the subagent result. Then proceed to Step 4d.\n\n### 4d \u2014 Present results\n\nDisplay `SUMMARY`, `TEST_RESULTS` and `FILES_CHANGED` verbatim.\n\n**Do NOT commit or stage anything.** Wait for an explicit user request.\n\nTo review again, run the Review operation again.\n";
15
+ export default _default;
@@ -0,0 +1,274 @@
1
+ /**
2
+ * Seed text for the Review guide at `kanban/guide/review.md`, carried by the
3
+ * template's `kanban-review` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links, the subagent prompts, and the
6
+ * task's `## Review` and `## Revisions` entry formats; recording the review on
7
+ * the task goes to the `kanban-maintainer` agent. Every blockquoted prompt
8
+ * line, including its `##`/`###`/`####` lines, is subagent prompt content and
9
+ * stays unpromoted.
10
+ *
11
+ * The text lands in the brain exactly as written here (ending in one newline);
12
+ * the config seeding step splits the frontmatter from the body when writing.
13
+ */
14
+ export default `---
15
+ tags:
16
+ - tasks
17
+ - workflow
18
+ ---
19
+ # Review
20
+
21
+ Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
22
+
23
+ Spin up a subagent to do a comprehensive code review of the changes made for the current session's task. If changes are requested, run the full investigate, plan, approve, implement cycle through subagents.
24
+
25
+ The point of this operation is to offload work from the main agent's context. Do as little as possible yourself and pass the context you already have to subagents. Do NOT read the task, search the brain or gather project context yourself.
26
+
27
+ ## Delegation rules
28
+
29
+ 1. Never read the task, diffs or code yourself. Every read operation happens inside a subagent call.
30
+ 2. Execute the steps in strict order. Complete each step's subagent call and fully process its output before starting the next step.
31
+ 3. Hard stops are mandatory. Where marked HARD STOP, you MUST stop and wait for user input.
32
+ 4. Pass context forward explicitly. Each subagent call is stateless, so include all needed context (paths, slugs, diffs, review findings) in the prompt.
33
+ 5. Every subagent call needs three things: a type (\`read-only\` for exploration, or \`general-purpose\` for full access), a short description for the UI (5–10 words), and the full prompt the subagent receives.
34
+ 6. Planning mode must be off. If a read-only planning mode is active, turn it off before starting Step 1. This operation has its own approval gates, and planning mode adds redundant friction that breaks subagent write operations.
35
+ 7. Ask with structured options at every HARD STOP. Whenever a HARD STOP presents the user with choices, ask with structured multiple-choice options. Do not dump plain text and wait. Only the main agent can ask the user.
36
+
37
+ ## Step 1 — Run the review
38
+
39
+ You already know the task path, diff range and working directory from the current conversation. Pass them directly into the subagent prompt. If the user's request contains a commit range or branch, use that as the diff range.
40
+
41
+ If no task can be identified from conversation context, ask the user which task to review and **HARD STOP until they answer**.
42
+
43
+ Make one subagent call (type \`read-only\`, description "Code review for \`<TASK_SLUG>\`") with this prompt, filled in:
44
+
45
+ > You are performing a comprehensive code review.
46
+ > **You are read-only — do not write, patch, move or update any files or task content.**
47
+ >
48
+ > **Task path:** \`<path>\`
49
+ > **Diff range:** \`<range, or "uncommitted changes">\`
50
+ > **Working directory:** \`<pwd>\`
51
+ >
52
+ > ## MANDATORY FIRST STEP — do this before anything else
53
+ >
54
+ > Invoke the \`study-playbook\` skill and read everything it returns. Follow every convention it specifies when evaluating code. If the playbook references a project-level \`CLAUDE.md\`, read that too (check the working directory root). If the skill is unavailable, read the project's \`CLAUDE.md\`; if neither exists, proceed without conventions and say so in the review.
55
+ >
56
+ > ## Review checklist
57
+ >
58
+ > Follow this checklist in order:
59
+ >
60
+ > - [ ] **Read the coding playbook** (above — not optional, do it first).
61
+ > - [ ] **Gather context**
62
+ > - Read the task at \`<task path>\`. Extract the description, investigation, plan, solution, stash and revisions sections.
63
+ > - Get the diff: run \`git diff HEAD\` for uncommitted changes. If empty, run \`git log --oneline -20\` to find the session commits, then \`git diff <first-commit>^..HEAD\`. If a specific range was provided, use that.
64
+ > - If the task contains a \`## Stash\` section, read the latest entry — it represents the most current session state (changes made, decisions, gotchas). Factor this into your review.
65
+ > - [ ] **Read the changed files in full.** For every file in the diff, read the complete current version (not just the diff hunks) so you have surrounding context. Also read the callers and dependents of changed functions.
66
+ > - [ ] **Review against each criterion:**
67
+ > - **Correctness:** does the implementation match the plan and the task description? Logic errors, off-by-one, missed conditions?
68
+ > - **Edge cases:** boundary conditions, empty inputs, null values, concurrent access, unexpected states?
69
+ > - **Type safety:** correct and complete types? Any \`any\` casts, missing null checks at boundaries, type assertions hiding problems?
70
+ > - **Error handling:** errors caught at the right level? Useful messages? Silent swallowing?
71
+ > - **Side effects:** changes outside the stated scope? Check callers, dependents and shared state.
72
+ > - **Test coverage:** do the tests verify the described behavior? Untested paths? Do the tests import the real module (not copy-pasted logic)?
73
+ > - **Playbook alignment:** do the changes follow the established patterns from the coding playbook?
74
+ > - **Performance:** N+1 queries, unnecessary re-renders, blocking calls, memory leaks?
75
+ > - **Security:** OWASP top 10 — injection, XSS, auth bypass, secrets in code?
76
+ > - **Naming and clarity:** descriptive names? Self-documenting code? Intent clear without comments?
77
+ > - [ ] **Produce the review** in this exact format:
78
+ >
79
+ > \`\`\`
80
+ > ## Review Summary
81
+ >
82
+ > **Verdict:** LGTM | Changes Requested | Needs Discussion
83
+ >
84
+ > **Risk level:** Low | Medium | High
85
+ >
86
+ > ### Findings
87
+ >
88
+ > #### Critical (must fix)
89
+ > - [ ] <file:line> — <issue and suggested fix>
90
+ >
91
+ > #### Warnings (should fix)
92
+ > - [ ] <file:line> — <issue and suggested fix>
93
+ >
94
+ > #### Nits (optional)
95
+ > - [ ] <file:line> — <suggestion>
96
+ >
97
+ > #### Positive
98
+ > - <things done well — reinforce good patterns>
99
+ >
100
+ > ### Missed Edge Cases
101
+ > - <scenario not covered by tests or code>
102
+ >
103
+ > ### Questions
104
+ > - <anything ambiguous that needs the author's input>
105
+ > \`\`\`
106
+ >
107
+ > Omit any section that has zero items. Every finding must reference a specific file and line number.
108
+
109
+ Wait for the subagent result. Then proceed to Step 2.
110
+
111
+ ## Step 2 — Present the review
112
+
113
+ Display the full review output verbatim. Do not summarize, editorialize or filter.
114
+
115
+ ## Step 3 — Record the review
116
+
117
+ Delegate to the \`kanban-maintainer\` agent (description "Record review on \`<TASK_SLUG>\`") with this request, filled in:
118
+
119
+ > You are recording a code review on a task.
120
+ >
121
+ > **Task path:** \`<task path>\`
122
+ > **Now:** \`<YYYY-MM-DDTHH:MM:SS>\`
123
+ >
124
+ > Use only the brain read, append, write and frontmatter tools available in this session.
125
+ >
126
+ > - [ ] Read the current task.
127
+ > - [ ] If a \`## Review\` section already exists, append a new dated subsection under it (do NOT overwrite prior reviews). Otherwise, append a new \`## Review\` section.
128
+ > - [ ] Append:
129
+ >
130
+ > \`\`\`markdown
131
+ > ### <YYYY-MM-DD HH:MM>
132
+ >
133
+ > **Verdict:** <verdict>
134
+ > **Risk level:** <risk level>
135
+ >
136
+ > **Key findings:**
137
+ > <critical and warning items only — skip nits>
138
+ >
139
+ > **Action taken:** <pending user decision>
140
+ > \`\`\`
141
+ >
142
+ > - [ ] Update the frontmatter to set \`updated\`.
143
+ > - [ ] Return: \`DONE\`
144
+
145
+ Wait for \`DONE\`.
146
+
147
+ ## Step 4 — Fix cycle (only if changes were requested)
148
+
149
+ If the verdict is **LGTM**, stop here. You are done.
150
+
151
+ If the verdict is **Changes Requested** or **Needs Discussion**, ask the user: "Want me to implement the fixes?"
152
+
153
+ **HARD STOP until they answer.**
154
+
155
+ If the user says yes, run Steps 4a through 4d below. You are an orchestrator: delegate every step to subagents.
156
+
157
+ ### 4a — Investigate the findings
158
+
159
+ Make one subagent call (type \`read-only\`, description "Investigate review findings for \`<TASK_SLUG>\`") with this prompt, filled in:
160
+
161
+ > You are re-investigating a task after a code review found issues.
162
+ > **You are read-only — do NOT write, patch, move or update anything.**
163
+ >
164
+ > **Task path:** \`<path>\` | **Slug:** \`<TASK_SLUG>\` | **Project:** \`<project tag>\`
165
+ > **Working directory:** \`<pwd>\`
166
+ >
167
+ > Use only the brain read and search tools available in this session.
168
+ >
169
+ > ## MANDATORY FIRST STEP — do this before anything else
170
+ >
171
+ > Invoke the \`study-playbook\` skill and read everything it returns. Follow every convention it specifies. If the playbook references a project-level \`CLAUDE.md\`, read that too. If the skill is unavailable, read the project's \`CLAUDE.md\`; if neither exists, proceed without conventions and say so.
172
+ >
173
+ > ## Review findings to address
174
+ >
175
+ > \`<paste the full review findings: Critical + Warnings + Missed Edge Cases>\`
176
+ >
177
+ > ## Checklist
178
+ >
179
+ > - [ ] **Read the coding playbook** (above — not optional, do it first).
180
+ > - [ ] **Read the task.** Get full context, including investigation, plan, solution, stash and prior reviews.
181
+ > - [ ] **Investigate each finding.** Read every file referenced in the review findings (full files). Search for call sites of functions that need to change. Verify each finding is valid (not a false positive).
182
+ > - [ ] **Devise the fix plan.** For each confirmed finding:
183
+ > - name the file, the function or block, and what changes;
184
+ > - flag any side effects or downstream impacts;
185
+ > - output as a **structured checklist**.
186
+ > - [ ] **Return in this exact format:**
187
+ >
188
+ > \`\`\`
189
+ > INVESTIGATION:
190
+ > - **Validated findings:** <which review items are confirmed>
191
+ > - **False positives:** <which items are not actually issues, with reasoning>
192
+ > - **Files involved:** <each file + one-line reason>
193
+ >
194
+ > OPEN_QUESTIONS:
195
+ > <bulleted list, or "None">
196
+ >
197
+ > PLAN:
198
+ > <structured checklist of fixes>
199
+ > \`\`\`
200
+
201
+ Wait for the subagent result. Parse out INVESTIGATION, OPEN_QUESTIONS and PLAN.
202
+
203
+ ### 4b — Present the plan and handle open questions
204
+
205
+ If there are open questions, present them. **HARD STOP until every question is answered or dismissed.**
206
+
207
+ Present the PLAN verbatim.
208
+
209
+ **HARD STOP: "Plan ready — approve to proceed?"** Do not implement until approved.
210
+
211
+ ### 4c — Implement the fixes
212
+
213
+ Once approved, make one subagent call (\`general-purpose\`, description "Implement review fixes for \`<TASK_SLUG>\`") with this prompt, filled in:
214
+
215
+ > You are implementing review fixes from an approved plan.
216
+ >
217
+ > **Task path:** \`<path>\` | **Slug:** \`<TASK_SLUG>\`
218
+ > **Working directory:** \`<pwd>\` | **Now:** \`<YYYY-MM-DDTHH:MM:SS>\`
219
+ >
220
+ > Use only the brain append and frontmatter tools available in this session.
221
+ >
222
+ > ## MANDATORY FIRST STEP — do this before writing any code
223
+ >
224
+ > Invoke the \`study-playbook\` skill and read everything it returns. Then check whether a \`CLAUDE.md\` exists at the working directory root — if so, read that too. Follow every convention from both for all code you write. If the skill is unavailable and there is no \`CLAUDE.md\`, proceed without conventions and say so.
225
+ >
226
+ > ## Approved plan
227
+ >
228
+ > \`<paste the full PLAN here>\`
229
+ >
230
+ > \`<if open questions were answered, paste them here under "## User answers">\`
231
+ >
232
+ > ## Checklist
233
+ >
234
+ > - [ ] **Read the coding playbook and the project \`CLAUDE.md\`** (above — mandatory).
235
+ > - [ ] **Implement the fixes.** Follow the approved plan step by step. Follow every convention from the playbook.
236
+ > - [ ] **Type check.** Run the project's type checker. Fix all errors before proceeding.
237
+ > - [ ] **Run tests.** Run the existing tests. If any review finding relates to untested behavior, add tests. All tests must pass before proceeding.
238
+ > - [ ] **Record revisions.** Append a \`## Revisions\` section to the task. If a \`## Revisions\` section already exists, append a new dated subsection (do NOT overwrite prior revisions):
239
+ >
240
+ > \`\`\`markdown
241
+ > ### <YYYY-MM-DD HH:MM>
242
+ >
243
+ > **Review findings addressed:** <which items were fixed>
244
+ > **Files changed:** <each file + one-line summary>
245
+ > **Test coverage:** <tests added/modified and what they verify>
246
+ > \`\`\`
247
+ >
248
+ > Then update the frontmatter to set \`updated\`.
249
+ >
250
+ > - [ ] **Return in this exact format:**
251
+ >
252
+ > \`\`\`
253
+ > SUMMARY:
254
+ > <files modified and what each change does>
255
+ >
256
+ > TEST_RESULTS:
257
+ > <tests added/modified, what they verify, pass/fail>
258
+ >
259
+ > FILES_CHANGED:
260
+ > <bulleted list of every file modified or created>
261
+ > \`\`\`
262
+ >
263
+ > **Do NOT commit. No git add, git commit or any git write operations.**
264
+
265
+ Wait for the subagent result. Then proceed to Step 4d.
266
+
267
+ ### 4d — Present results
268
+
269
+ Display \`SUMMARY\`, \`TEST_RESULTS\` and \`FILES_CHANGED\` verbatim.
270
+
271
+ **Do NOT commit or stage anything.** Wait for an explicit user request.
272
+
273
+ To review again, run the Review operation again.
274
+ `;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Seed text for the Stash guide at `kanban/guide/stash.md`, carried by the
3
+ * template's `kanban-stash` contract section.
4
+ *
5
+ * Obsidian-specific by design: wiki links and the task's `## Stash` entry
6
+ * format; the task is found in its project's column folders. The `## Stash` and
7
+ * `### <YYYY-MM-DD HH:MM>` lines inside the entry-format fences are task
8
+ * content, not guide headings, so they stay unpromoted.
9
+ *
10
+ * The text lands in the brain exactly as written here (ending in one newline);
11
+ * the config seeding step splits the frontmatter from the body when writing.
12
+ */
13
+ declare const _default: "---\ntags:\n - tasks\n - workflow\n---\n# Stash\n\nPart of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.\n\nA stash only appends a record of the session to the task; it moves and creates nothing, so it needs no approval from the user.\n\nStash session context into the current task: what changed, decisions made, open questions and remaining work. Use this at the end of a session, or at any point mid-session, to persist everything learned so a future session can pick up seamlessly.\n\n## Step 1 \u2014 Identify the task from session context\n\nLook back through the current conversation for the task that was worked on this session. Signals: a task picked through Work, a task moved to In Progress through Manage, or a task file read or referenced during the session.\n\nIf no task can be identified, ask the user which task to stash to and stop until they answer.\n\n## Step 2 \u2014 Determine the project\n\nGet the project tag (see Project in [[kanban/kanban|Kanban]]).\n\n## Step 3 \u2014 Read the task\n\nFind `<slug>.md` in the project's column folders under `kanban/<project>/` and read it to see which sections already exist (Investigation, Answers, Solution, Revisions, earlier Stash entries). You need to know the current state so you do not duplicate information.\n\n## Step 4 \u2014 Gather session context\n\nCollect information from these sources, in parallel where possible.\n\n### 4a \u2014 Git changes (if in a git repo)\n\nRun `git diff --stat` and `git log --oneline -10` to see which files changed and which commits were made during this session. If there are uncommitted changes, record them.\n\n### 4b \u2014 Conversation review\n\nReview the conversation for:\n\n- **What was done:** concrete changes made (files modified, new behavior added, bugs fixed, refactors performed). Be specific: name files, functions and what changed.\n- **Key decisions:** choices made and why. Include the alternatives that were considered and rejected, and the reasoning. This is the most valuable part: a future session needs to know not just what was chosen but why the alternatives lost.\n- **Open questions:** anything unresolved, unclear or deferred. Things that need more investigation or user input, or that depend on external factors.\n- **Remaining work:** what is left to do to complete the task. Be concrete: name specific files, functions or steps. If there is a rough order, give it.\n- **Gotchas and surprises:** anything unexpected discovered during the session that future sessions should know about (weird behavior, undocumented constraints, things that look like bugs but are not).\n\n## Step 5 \u2014 Compose and append the stash entry\n\nAppend a `## Stash` section to the task. If a `## Stash` section already exists (from a prior session), append a new dated subsection under it \u2014 do NOT overwrite prior stash entries.\n\nFormat:\n\n```markdown\n## Stash\n\n### <YYYY-MM-DD HH:MM>\n\n**Changes made:**\n- <file or area>: <what changed and why>\n\n**Decisions:**\n- <decision>: <reasoning, alternatives considered>\n\n**Open questions:**\n- <question or uncertainty>\n\n**Remaining work:**\n- [ ] <concrete next step>\n\n**Gotchas:**\n- <anything surprising or non-obvious>\n```\n\nOmit any section that has no content (for example, if there are no gotchas, skip that heading). Do not pad with filler: every line should carry information.\n\nIf a `## Stash` section already exists, append the new entry as a new `###` dated subsection at the bottom of the existing Stash section:\n\n```markdown\n### <YYYY-MM-DD HH:MM>\n\n**Changes made:**\n...\n```\n\n## Step 6 \u2014 Update frontmatter\n\nUpdate the task's `updated` field to the current datetime (`YYYY-MM-DDTHH:MM:SS`).\n\n## Step 7 \u2014 Confirm\n\nTell the user the stash was saved. Show a brief summary of what was recorded (one line per section that was included). If there are open questions or remaining work items, highlight them so the user is aware of loose ends.\n";
14
+ export default _default;