@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,141 @@
1
+ # AIDE Template
2
+
3
+ > **For agents: this file is a scaffold, not a reference.** If you are creating a new `.aide` file, copy the fenced block in [The Template](#the-template) below verbatim into the new file, then replace every `<…>` placeholder with content specific to the module being specced. The prose under each body heading is *instructional guidance written for you* — overwrite it with real content as soon as you have it. Do not paraphrase this page into the new spec, and do not copy any text that lives *outside* the fenced block.
4
+
5
+ > **Brevity is load-bearing.** Read [Brevity Contract](./aide-spec.md#brevity-contract) before filling anything. The caps are hard, not aspirational: ≤ 200 chars for `description`, ≤ 100 words for `intent`, 3-6 outcomes per list with ≤ 2 sentences each, body sections kept tight, and the whole spec aiming at ~150 lines (a refactor signal kicks in around 175). A spec exceeding the caps means the scope is too wide — split into child specs, do not expand the spec. Implementation contracts (type signatures, file paths, argument indexes, schema cardinality, migration history, function-name enumerations) never appear in `.aide` files; they belong in code, `plan.aide`, `brief.aide`, or the brain. Domain vocabulary — entity names, status enums, field names that name a domain concept, domain enum values — is welcome and expected.
6
+
7
+ ## How to use this template
8
+
9
+ 1. Create the new `.aide` file at the correct location (in the folder of the module it governs — an orchestrator `index.ts`, or any folder that gets its own plan — or at `.aide/intent.aide` for the project root — see [placement rules](./aide-spec.md#where-aide-files-live)).
10
+ 2. Copy the entire fenced block under [The Template](#the-template) into the new file, without the surrounding backticks.
11
+ 3. Fill in the frontmatter: replace each `<…>` placeholder with a concrete value.
12
+ 4. For each of the first four body sections (`## Context`, `## Strategy`, `## Good examples`, `## Bad examples`), read the guidance paragraph, then **replace it** with real content for this module. The guidance is a prompt for you — it does not belong in the finished spec. For `## References`, do not replace the guidance paragraph manually — the synthesis agent populates this section from its reading log during synthesis. If you are the synthesis agent, log every brain entry you actually used (path + one-line description of what you drew from it for the Strategy); discard entries you opened but did not use.
13
+ 5. A finished `.aide` file contains zero `<…>` placeholders and zero guidance paragraphs from this template.
14
+
15
+ ## The Template
16
+
17
+ ````markdown
18
+ ---
19
+ scope: <module path this spec governs, e.g. service/<module-name>. One spec, one scope.>
20
+ alignment: unreviewed
21
+ description: <one-line purpose statement — used by aide_discover ancestor chains so agents understand what this spec governs without opening it>
22
+ intent: >
23
+ One paragraph, plain language, written so a human reading it cold understands
24
+ the purpose of this module in under ten seconds. State the problem being solved
25
+ and the conditions of success in terms of the consumer/user/recipient of the
26
+ module's output — not in terms of the code that will implement it. This is the
27
+ north star every other field must serve: every entry in "outcomes" below must
28
+ be traceable back to this sentence. If the intent changes, the revision bumps
29
+ and prior builds are invalidated.
30
+ outcomes:
31
+ desired:
32
+ # 3-6 items. Each ≤ 2 sentences. Falsifiable domain success criteria.
33
+ # Outcomes name the *what*, not the *how*: implementation contracts (type
34
+ # signatures, file paths, argument indexes, schema cardinality, function-name
35
+ # enumerations) belong in code, plan.aide, brief.aide, or the brain — NEVER
36
+ # here. Domain vocabulary (entity names, status enums, field names, domain
37
+ # enum values) is welcome. YAML rule: if an item's text contains `: `
38
+ # (colon-space), wrap the entire item in double quotes.
39
+ - <One concrete, observable, falsifiable domain success criterion.>
40
+ - <A second criterion, ≤ 2 sentences.>
41
+ - <Additional criteria as needed up to 6 total.>
42
+ undesired:
43
+ # 3-6 items. Each ≤ 2 sentences. Especially the almost-right-but-wrong
44
+ # outputs that pass tests. This is the tripwire list QA checks even when
45
+ # everything else looks fine.
46
+ - <A domain failure mode that violates intent — the kind a lazy or pattern-matching agent would produce.>
47
+ - <A second failure mode, ≤ 2 sentences.>
48
+ - <Additional failure modes as needed up to 6 total.>
49
+ ---
50
+
51
+ <!--
52
+ Body sections below are OPTIONAL. They exist only when the orchestrator
53
+ routes through synthesize (the strategist agent fills them).
54
+
55
+ - If the strategist will run: keep all five sections (Context, Strategy,
56
+ Good examples, Bad examples, References) and fill them — partial bodies
57
+ are not permitted.
58
+ - If the orchestrator skips synthesize and goes straight to plan:
59
+ DELETE the entire block from "## Context" through the closing markdown
60
+ of "## References" inclusive. The frontmatter alone is a valid spec.
61
+
62
+ See aide-spec.md "Body sections (conditional)" for the full rule.
63
+ -->
64
+
65
+ ## Context
66
+
67
+ <!-- REPLACE THIS COMMENT with the Context body. Cap: ≤ ~250 words. Rules:
68
+ - Explain why this module exists and the domain-level problem it solves.
69
+ - Write for a strong generalist engineer who does not know this specific domain.
70
+ - Do NOT restate context inherited from a parent `.aide` — children inherit.
71
+ - Only domain-specific background. No type signatures, no file paths,
72
+ no argument indexes. Domain vocabulary is welcome.
73
+ - If this section keeps wanting to grow, the scope is too wide. Split the module.
74
+ Delete this entire HTML comment once the real Context is written. -->
75
+
76
+ ## Strategy
77
+
78
+ <!-- REPLACE THIS COMMENT with the Strategy body. Cap: ≤ ~7 decisions, each
79
+ ≤ ~80 words. One paragraph per decision, decision form not description form.
80
+ Rules:
81
+ - Strategy is how the system solves a real-world problem — how the modules
82
+ interact: what starts the flow, who calls or
83
+ notifies whom, in what order, what each hand-off carries, and what happens
84
+ when one is late, repeated or missing. A parent spec carries the end-to-end
85
+ flow; a module spec carries only its slice.
86
+ - Each paragraph states a concrete choice (tactic, threshold, structural
87
+ decision, ordering rule) and the reasoning or data that justifies it,
88
+ naming the outcome it serves.
89
+ - Never restate this file's intent or outcomes, never recount history, never
90
+ cite session.aide, brief.aide, plan.aide or todo.aide. A list of what each
91
+ module does is a table of contents, not a strategy.
92
+ - "Do X because Y (citation)" — never "X is a thing that exists."
93
+ - Cite sources inline, compressed: name the source and the finding, move on.
94
+ - No type signatures, no file paths, no argument indexes, no schema-cardinality
95
+ contracts, no worked code examples. The section should survive a rewrite of
96
+ the implementation. Domain vocabulary (entity names, status enums, field
97
+ names, domain enum values) is welcome.
98
+ - If you have more than ~7 decisions, the scope is too wide — split the module.
99
+ Delete this entire HTML comment once the real Strategy is written. -->
100
+
101
+ ## Good examples
102
+
103
+ <!-- REPLACE THIS COMMENT with concrete domain examples of success for this
104
+ module's output. Rules for what goes here:
105
+ - Real domain output, not code. If the module produces text, show a passage
106
+ that works. If it produces a structured record, show a record that is
107
+ correct in spirit, not just in schema. If it produces a decision, show a
108
+ correct one with enough context to see why it is correct.
109
+ - Examples are pattern material for QA agents verifying output — pick ones
110
+ that illustrate the intent, not the edge cases.
111
+ Delete this entire HTML comment once the real examples are written. -->
112
+
113
+ ## Bad examples
114
+
115
+ <!-- REPLACE THIS COMMENT with concrete domain examples of failure. Rules:
116
+ - Show the almost-right answer: output that looks valid, passes tests, and
117
+ still violates the intent.
118
+ - Show the specific phrases, structures, or shortcuts that signal failure
119
+ in this domain.
120
+ - Each bad example must make it obvious WHY it is bad — either inline or
121
+ by pairing it with the matching good example above.
122
+ - The goal is recognizable failure modes, not an enumeration.
123
+ Delete this entire HTML comment once the real examples are written. -->
124
+
125
+ ## References
126
+
127
+ <!-- The synthesis agent populates this section during synthesis — do not fill
128
+ it manually after the fact. Rules for what goes here:
129
+ - Each entry is a bullet: the brain entry path, then ` -- `, then a one-line
130
+ description of what was drawn from that entry for the Strategy.
131
+ - Only entries that actually informed a strategy decision belong here.
132
+ Entries the agent opened but did not use are excluded — padding the list
133
+ destroys the signal between each reference and the decision it supports.
134
+ - Descriptions are breadcrumbs: name the source and the specific finding or
135
+ data point drawn from it. Do not restate the full finding; do not duplicate
136
+ the Strategy.
137
+ - Paths are hints, not contracts. Brain entries move; the description is the
138
+ fallback. No tooling should validate reference paths, and no agent should
139
+ treat a stale path as an error.
140
+ Delete this entire HTML comment once the real references are written. -->
141
+ ````
@@ -0,0 +1,111 @@
1
+ # Automated QA
2
+
3
+ The verification loop of [AIDE](./aide-spec.md). Spec documents define what correct output looks like — automated QA uses agents to verify that the system's actual output matches those specs, then iteratively fixes drift without human review of every line.
4
+
5
+ This completes the AIDE cycle: research → spec → plan → implementation → **QA against specs → fix → re-verify**.
6
+
7
+ ## Why This Exists
8
+
9
+ When an LLM generates prose, emails, reports, or any output governed by a strategy doc, the output drifts from the spec. Prompt changes fix one issue and introduce another. Manual review doesn't scale — you'd need to re-read the strategy and cross-check every line of output after every change.
10
+
11
+ Automated QA turns the `.aide` specs into a machine-readable rubric. The same specs that drove implementation now drive verification.
12
+
13
+ ## The Two-Phase Pattern
14
+
15
+ ### Phase 1: QA Agent
16
+
17
+ The QA agent reads the `.aide` specs and the latest generated output, then produces a checklist of issues — each a discrete finding with a file path, line reference, and the spec rule it violates.
18
+
19
+ **Inputs:**
20
+
21
+ 1. **`.aide` specs** — the spec files that define what correct output looks like
22
+ 2. **Generated output** — the actual files the system produced
23
+ 3. **Judgement directive** — "use judgement; if it sounds wrong, flag it"
24
+
25
+ **Output:** a `todo.aide` re-alignment document in the module. See [todo.aide spec](./todo-aide.md) for the full format. Each issue references the spec rule violated, the exact location of the problem, and the pipeline stage where intent was lost.
26
+
27
+ ```yaml
28
+ ---
29
+ intent: >
30
+ Which outcome(s) are violated — the gap between spec and reality.
31
+ misalignment:
32
+ - implementation-drift
33
+ - test-gap
34
+ ---
35
+ ```
36
+
37
+ ```markdown
38
+ ## Issues
39
+
40
+ - [ ] **<output-path>:<line>** — <What's wrong in one line.>
41
+ Traces to: `outcomes.undesired[1]` | Misalignment: `implementation-drift`
42
+ - [ ] **<output-path>:<line>** — <Next issue, same format.>
43
+ Traces to: `outcomes.desired[3]` | Misalignment: `test-gap`
44
+
45
+ ## Retro
46
+
47
+ What would have caught this earlier? Which stage needs strengthening?
48
+ ```
49
+
50
+ **Key constraint:** the QA agent does NOT propose solutions. Solutions bias the implementor toward a specific approach before it reads the spec itself. The checklist says *what's wrong and where* — the implementor, invoked to work the `todo.aide`, decides *how*.
51
+
52
+ ### Phase 2: Implementor in Fix Mode (One Issue Per Session)
53
+
54
+ The fix loop is not a separate agent — it is the same [implementor](./aide-spec.md#the-agent-pipeline) that executes architect plans, invoked with a narrower scope and a stricter session protocol. One session per unchecked `todo.aide` item, clean context each time. Each session does exactly this:
55
+
56
+ 1. Read the `todo.aide`, find the next unchecked issue
57
+ 2. Read the relevant `.aide` specs — the actual strategy, not just the issue description
58
+ 3. Implement the fix
59
+ 4. Run the generation command to produce fresh output
60
+ 5. Compare the new output against the previous output for regressions
61
+ 6. Check off the item in the `todo.aide`
62
+
63
+ Then a **new implementor session** repeats for the next unchecked item.
64
+
65
+ ### Why One-Per-Session
66
+
67
+ The fix loop is an invocation discipline, not a separate agent. Each fix modifies prompts, templates, or logic that affects all generated output. A single session fixing five issues in sequence can't reliably regression-test — fix #3 might undo fix #1, and the implementor won't notice because it's holding stale assumptions from thousands of tokens ago. The same implementor that executes architect plans in build mode is perfectly capable of executing a single `todo.aide` item in fix mode; what changes is the scope and the protocol, not the agent.
68
+
69
+ One-per-session means:
70
+ - **Fresh context** — the implementor reads current state, not cached assumptions
71
+ - **Clean diffs** — each fix is one change, one before/after comparison
72
+ - **Regression isolation** — if output gets worse, you know exactly which fix caused it
73
+
74
+ ## Regression Testing
75
+
76
+ The implementor must verify its change didn't make things worse.
77
+
78
+ 1. Output lives in timestamped folders
79
+ 2. Before fixing, the latest folder is the baseline
80
+ 3. After fixing, run the generation command — a new timestamped folder appears
81
+ 4. Compare the new folder against the baseline
82
+
83
+ A **positive effect** means the output more closely matches the AIDE specs. A **regression** means the output moved *further* from what the specs require. The implementor checks both the targeted issue and surrounding output for unintended drift.
84
+
85
+ ## The `todo.aide` as Coordination
86
+
87
+ The `todo.aide` file is the handoff contract between agent sessions:
88
+
89
+ 1. **Work queue** — unchecked items are pending, checked items are done
90
+ 2. **Scope boundary** — each agent works exactly one item
91
+ 3. **Re-alignment tool** — misalignment tags identify where in the pipeline intent was lost
92
+ 4. **Audit trail** — the completed checklist shows what was found and fixed
93
+ 5. **Process learning** — the `## Retro` section captures what would have caught issues earlier; the orchestrator promotes retro findings to the brain at `process/retro/` when the fix loop closes
94
+
95
+ The `todo.aide` lives in the module it audits. When all items are checked off, the QA cycle is complete and retro is promoted to the brain as durable process learning.
96
+
97
+ ## Prerequisites
98
+
99
+ The pattern requires three things:
100
+
101
+ 1. **`.aide` specs** alongside orchestrator code — the QA agent's source of truth
102
+ 2. **A CLI command** that generates output into timestamped folders — so agents can trigger generation and compare runs
103
+ 3. **The `todo.aide` convention** — so the checklist has a predictable location
104
+
105
+ ## When to Use
106
+
107
+ - **LLM-generated prose** — emails, reports, summaries where tone and strategy compliance matter
108
+ - **Prompt engineering iterations** — when tuning prompts, the QA agent catches drift you'd miss reading output manually
109
+ - **Any output governed by AIDE specs** — if a spec defines what correct looks like, an agent can verify against it
110
+
111
+ Don't use this for code correctness — that's what tests are for. Use it when the output is subjective enough that "does this match the spec?" requires reading comprehension, not assertion checks.
@@ -0,0 +1,242 @@
1
+ # brain.aide Spec
2
+
3
+ `brain.aide` is the host project's brain configuration. It declares which MCP server to launch as the brain layer and carries the hand-written agent-facing instructions that explain how to use it. It lives at `.aide/config/brain.aide` and is the single source of truth for the host's brain wiring.
4
+
5
+ `brain.aide` is a config file, not an intent spec. Its frontmatter is a typed config object; its body is hand-written content that `aide_brain` returns one section at a time: the live sections at runtime, and the seed sections while `/aide:brain config` writes them into the brain via the brain's own MCP write tool at the paths the published contract names. The explicit divergence from the intent-spec family (`intent.aide`, `plan.aide`, `todo.aide`, `research.aide`) is load-bearing — see `## Divergence from intent specs` below.
6
+
7
+ ## Format
8
+
9
+ ```yaml
10
+ ---
11
+ name: obsidian
12
+ mcpServerConfig:
13
+ command: npx
14
+ args:
15
+ - "-y"
16
+ - "@bitbonsai/mcpvault@0.16.0"
17
+ -
18
+ kanban:
19
+ source: folder
20
+ path:
21
+ ---
22
+
23
+ <!-- aide-<marker>-start -->
24
+ ...section body, written by the user...
25
+ <!-- aide-<marker>-end -->
26
+
27
+ <!-- ...one block per contract entry, in contract order. The section list,
28
+ marker names and purposes come from the published contract (see Body
29
+ shape below), not from this example... -->
30
+ ```
31
+
32
+ ### Frontmatter fields
33
+
34
+ The schema is the minimum that still has real runtime consumers. `name` and `mcpServerConfig` are required; `kanban` is optional.
35
+
36
+ - **`name`** — `string`. A human-readable label for the wired brain (e.g. `"obsidian"`, `"notion"`, `"company-wiki"`). The user reads it; the agent narrates it back in conversation ("I am connected to your `obsidian` brain"); the package never branches on its value. Two hosts may use the same `name` with structurally different launchers and that is fine — `name` is descriptive metadata, not a dispatch key.
37
+
38
+ - **`mcpServerConfig`** — `object`. The MCP server configuration that wires the brain into the host's toolchain. Sync writes this object byte-for-byte into `.mcp.json` under the fixed `brain` key. Its shape mirrors what `.mcp.json` expects under `mcpServers["brain"]` so sync passes it through without reshaping.
39
+ - **`command`** — `string`. The executable to launch (e.g. `"npx"`, `"node"`, `"uvx"`).
40
+ - **`args`** — `(string | null)[]`. Arguments passed to `command`. Every element is either a fully-formed argument string OR YAML null. A YAML null at any index is the explicit unwired-slot signal — the user must fill that slot via `/aide:brain config` before sync will write the brain entry into `.mcp.json`. The default scaffold's bundled `obsidianBrainAideTemplate()` emits YAML null at `args[3]` (or the platform-equivalent path slot); the config section is the only place that documents which arg index means what for that backend. The package never introspects which slot is which. There is no literal-string placeholder — `<BRAIN_PATH>`, `<API_TOKEN>`, magic UUIDs, and any other in-band sentinel design have been retired in favor of structural YAML null.
41
+
42
+ - **`kanban`** — `object`, optional. Where code (the observer) reads the project's kanban boards, so the observer never depends on an agent reporting a brain folder. Agents keep reaching the board through the brain's own MCP tools and the kanban seed sections; this field is for code only.
43
+ - **`source`** — `"folder"`, the only source today: the board is Markdown task notes in plain folders on disk, one folder per project with one subfolder per column. Other backends (Notion, Jira and the like) leave the whole field out; a command-based source for them is planned.
44
+ - **`path`** — absolute path to the kanban folder. A project's board is `<path>/<kanban tag>`, with the tag taken from the project's `Kanban project tag:` line. Empty (YAML null) means unwired: the bundled template ships it empty and `/aide:brain config` fills it during wiring (for Obsidian, the vault path plus `kanban`). The package never derives it from the launcher's arguments.
45
+
46
+ A missing `kanban` field leaves the config valid and only means the observer cannot show a board. A malformed one (an unknown `source`, a relative path) is reported next to the otherwise parsed config and never fails it or halts boot.
47
+
48
+ That is the complete schema. There are no other top-level fields. A `connector`, `rootPath`, `entryFile`, or `tools` field — all of which a prior schema required — is rejected by the parser as `malformed-frontmatter`. Each retired field was validation theater: it existed for the parser to check, with no code path that consumed its value at runtime.
49
+
50
+ The parsed `ok` result flattens all fields as siblings: `{ kind: "ok", name, mcpServerConfig, ...one field per contract section }`. There is no `config: BrainAideConfig` wrapper — frontmatter fields and body fields appear at the same level on the result object, and the body field names come from the contract.
51
+
52
+ ### Body shape
53
+
54
+ The body is a sequence of marker-bounded sections. The required sections are a **published contract with one source**: the server's brain contract. This doc teaches the model and deliberately does not copy the list, because a copy would drift from the parser that enforces it.
55
+
56
+ **Where agents read the contract.** `aide_init`'s `Brain config (brain.aide)` step carries `brainSummary.sections`: each section's `marker`, its `role` (`live` or `seed`), the brain-relative `seedPath` for seed sections, and the byte size of the template's version. The summary carries no section text and no purposes. A section's one-line `purpose` comes back from `aide_brain` alongside the section itself. The array order is the required body order, and new required sections append; existing entries never reorder.
57
+
58
+ **Marker grammar.** Every section is one open/close pair: `<!-- aide-<marker>-start -->` ... `<!-- aide-<marker>-end -->`, where `<marker>` is a contract entry's `marker`. Markers are lowercase and case-sensitive, with single ASCII spaces around the token: `<!-- aide-<marker>-start -->` is valid; `<!--aide-<marker>-start-->`, `<!-- Aide-<marker>-Start -->` and `<!-- <marker>-start -->` are not. Pairs appear in contract order; any other order is a violation. Bytes outside any marker pair are silently ignored, so blank lines between sections are fine and do not affect parsing.
59
+
60
+ **Any backend that satisfies the contract is valid.** A hand-written config for a different brain (a wiki, a notes API, a document store) is as valid as the bundled Obsidian template. Nothing depends on the template's wording or on the backend's identity: the parser checks the frontmatter shape and the contract's marker pairs, and nothing else.
61
+
62
+ **Live vs. seed split.** The contract's `role` field divides the sections by consumer:
63
+
64
+ - **Live sections** are read through `aide_brain` at runtime. They live in `brain.aide` permanently and are returned verbatim on demand.
65
+ - **Seed sections** are written into the brain by `/aide:brain config`, each at its contract `seedPath`, through the brain's own MCP write tool. The agent fetches each missing seed's bytes with `aide_brain`, one section per call. A seed write is skip-on-exists: a file already at that path is never fetched or overwritten. After seeding, the brain owns that file and users edit it there. The package never writes a seed into the brain; the seed bytes go dormant once the brain holds them.
66
+
67
+ **Kanban content is a seed, not a feature of the package.** The kanban board, a kanban index and one guide per kanban operation are ordinary seed sections: they land in the brain at their contract seed paths like any other seed, and after that the brain owns them. The package ships two kanban pieces, as a pair: the `kanban` pointer skill, installed with the other AIDE skills, and the `kanban-maintainer` board agent, installed with the other agents in its own `kanban/` agent folder. The skill names the kanban index in the brain and routes every board read and write to the agent; the agent reads the index and only the guide for the operation requested, so no agent reads procedures it does not need, and it reports compactly or carries out board changes the caller has already approved. Both work in any project and do not require running the AIDE pipeline. The procedures themselves stay seeds — the package ships no board procedures of its own. Each backend's template fills these sections in its own vocabulary; the bundled one is written for Obsidian.
68
+
69
+ **What each section is for.** The role decides who uses the bytes:
70
+
71
+ - A **live** section is used where it sits. The orientation section is where the user writes runtime usage instructions; the config section is the backend's wiring flow that `/aide:brain config` executes (which arg slot is unwired, how to land its value, how to run sync, how to seed the brain, what restart message to emit).
72
+ - A **seed** section is used once: `/aide:brain config` fetches it through `aide_brain` and writes it verbatim at the contract `seedPath`.
73
+
74
+ The sync verb and boot reporter read frontmatter only; the body sections are irrelevant to them. The install summary reports which sections are missing or stale by marker, never by their bytes.
75
+
76
+ **One section at a time.** `aide_brain` returns exactly the section requested, never other sections or the whole file. With it comes `found` (true only when the text is that section's bytes) and, when found, the section's `purpose` from the published contract. It reads a section on every status where the file exists and parses — healthy, missing sections, unwired, drifted — because seeding and repair happen exactly while the config is incomplete.
77
+
78
+ **Closed grammar: strict failure on layout violations.** The parser rejects structural faults among the marker pairs that are present, each as `malformed-body` with its reason:
79
+
80
+ - Malformed or typo'd marker (uppercase, mixed-case, missing `aide-` prefix, extra whitespace): `"unknown marker: <as-written>"`.
81
+ - Unmatched closer without a preceding opener: `"unmatched closing marker: ..."`.
82
+ - Unmatched opener without a following closer: `"unmatched opening marker: ..."`.
83
+ - Wrong section order: `"marker order violation: ..."`.
84
+ - Nested markers: `"nested marker: ..."`.
85
+
86
+ **Absent whole sections are a different result.** When every present pair is sound but one or more required pairs are absent entirely, the parser returns `missing-sections`, naming each absent section in contract order. It is not a `malformed-body` reason. Structural faults among the present sections take precedence: a file with both is reported as the structural fault, so the user fixes the structure before the gaps are filled. The distinction drives the boot status; see `## Boot reporter brain status states`.
87
+
88
+ **Outdated is reported, never silently accepted.** The policy for a present file that falls short of the contract:
89
+
90
+ - It is reported with its fault. The package never reads a short file as if it were complete.
91
+ - `/aide:brain config` repairs a `missing-sections` file after the user confirms, by calling `aide_upgrade` with `category: "brain"`. The tool inserts only the missing sections, byte-identical from the latest bundled template and in the file's line endings, and only when the config launches the template's own brain server. For any other backend it inserts nothing and names the sections, which the `aide-brain-author` skill then writes with the user for that backend. Existing sections, launcher wiring and customizations are never touched.
92
+ - Structural faults are shown to the user with the parser's reason, for hand repair. The package does not guess intent.
93
+ - Install never writes `.aide/config/` after the first scaffold, and upgrade writes the brain config only through the consent-gated brain category. See `## The .aide/config/ directory contract`.
94
+ - A retired-marker file (one whose sections use markers no contract entry names) reports every section as missing. There is no rename rewrite and no transitional read path.
95
+
96
+ **Seed bytes flow from the seed sections.** The seed sections are the source of truth for the artifacts the integration's `aide-config` prose writes into the brain at first `/aide:brain config`. The package does not hold these bytes as inline TypeScript constants; they live in `brain.aide` where the user can see, edit and own them in the scaffold. No package code path writes the artifacts to disk; the integration's prose owns the writes via the brain's own MCP write tool.
97
+
98
+ ## Substitution surface
99
+
100
+ The parser supports `${...}` interpolation of frontmatter field names inside `mcpServerConfig.args`. At sync time, any `${fieldName}` reference in `args` is expanded against the frontmatter's top-level fields and the resulting array is written into `.mcp.json`.
101
+
102
+ In the current schema, `name` is the only top-level field that resolves as a substitution source, so the surface is essentially dormant. The default scaffold makes no use of it — the path lives inline as a literal string after the user fills the unwired slot, or as YAML null at the unwired slot before that. The interpolation surface remains for advanced users who want to DRY a value across positions.
103
+
104
+ YAML null entries in `mcpServerConfig.args` pass through `interpolateArgs` unchanged at the same index — null is not a string, so there is no `${...}` reference to expand. Sync's null-refusal precondition catches null-bearing args before they reach `.mcp.json`; sync never writes null into the launch command.
105
+
106
+ The substitution surface is `mcpServerConfig.args` and only `mcpServerConfig.args`. It runs only at sync time. It NEVER applies to any body section. All body sections return verbatim, byte-identical to what the user wrote between the recognized markers.
107
+
108
+ ## aide_brain parameters
109
+
110
+ `aide_brain` is read-only. Its optional `source` picks what it reads; omitted, it reads the host's config:
111
+
112
+ ```ts
113
+ aide_brain({ kind?: <any section marker in the published contract> })
114
+ // → { status, instructions, found, purpose? }
115
+ aide_brain({ source: "template", kind?: <marker> | "launcher" })
116
+ // → { template, purpose }
117
+ aide_brain({ source: "contract" })
118
+ // → { sections: { marker, role, purpose }[] }
119
+ aide_brain({ source: "draft", path: <project-relative path> })
120
+ // → { outcome: "valid" | "invalid" | "absent" | "refused", instructions, fault? }
121
+ ```
122
+
123
+ - **Template read** returns one section, or the launcher (the frontmatter between the `---` fences), of the bundled template with its purpose, whatever state the host's config is in.
124
+ - **Contract listing** returns every section in contract order with its role and purpose, and no text.
125
+ - **Draft check** parses a draft config at a path inside the project with the same parser and fault wording as the host check, so a `valid` draft is structurally ready to swap in. A path outside the project is refused unread.
126
+
127
+ For a host read, `kind` defaults to `"orientation"`; any other contract marker, live or seed, selects that section, and a value outside the contract is refused. The reply:
128
+
129
+ - **`found: true`** — `instructions` is the requested section's bytes between its marker pair, verbatim, and `purpose` is that section's one-line purpose from the published contract (never read from the user's file). This happens on every status where the file exists and parses: `ok`, `brain-aide-invalid` with that section present, `no-mcp-entry` and `mcp-drift`. `status` still reports the brain's real state.
130
+ - **`found: false`** — `instructions` is remediation and `purpose` is absent. An absent file (`no-brain-aide`) routes to `/aide:brain config`. A requested section missing from the file names `aide_upgrade` with `category: "brain"`, the call that inserts it. A malformed or unreadable file gives the parser's reason, a hand fix with the user, and a re-check with `aide_info`.
131
+
132
+ Callers branch on `found` for "did I get the section" and on `status` for "is the brain healthy". Once a seed is in the brain, agents read the brain file directly through the brain's own MCP read tool; the seed bytes in `brain.aide` go dormant.
133
+
134
+ ## The `.aide/config/` directory contract
135
+
136
+ `brain.aide` lives inside `.aide/config/`, which is the canonical home of user-owned configuration files in every host project. The directory has a sharp ownership rule:
137
+
138
+ - **Scaffolded once.** `aide_init` (and `cli/init` at cold install) creates `.aide/config/brain.aide` if it does not exist, pre-filled with the bundled template selected by `--brain <integration>` (default: the obsidian-flavored `obsidianBrainAideTemplate()`).
139
+ - **Never overwritten.** After the first write, the file belongs to the user forever. `aide_init` never overwrites, patches or migrates anything under `.aide/config/` on subsequent runs; its brain step reports state only, as markers, flags and sizes.
140
+ - **Changes are consented, one decision at a time.** The only package writes to an existing `brain.aide` come from `aide_upgrade`'s brain category, which `/aide:brain config` drives after the user's yes:
141
+ - `aide_upgrade({ category: "brain" })` inserts only missing sections and returns their markers.
142
+ - `brainChange: <marker | "launcher">` previews one change (`before`, `after`, `beforeHash`), read-only.
143
+ - The same call plus that `beforeHash` applies that one change, refusing if the bytes changed at all since the preview.
144
+
145
+ A section is offered for migration only when its text matches a known earlier template version, so sections the user edited and custom launchers are never offered. No call ever rewrites, reorders or reformats a section outside the one change applied.
146
+ - **Boundary is the path.** The install/upgrade tooling reads the directory path itself as the ownership signal — there is no per-file allowlist. Any file the user puts under `.aide/config/` is safe from the package's install/upgrade machinery.
147
+
148
+ Files outside `.aide/config/` (the methodology docs at `.aide/docs/`, pipeline command templates, agent definitions, skills, every other artifact the package ships) are package-owned and re-installed on every init/upgrade.
149
+
150
+ `brain.aide` is the current inhabitant of `.aide/config/`; the convention is forward-compatible with future user-owned config files.
151
+
152
+ ## Launching the MCP servers
153
+
154
+ Both MCP servers — the `aide` server and the brain server declared in `mcpServerConfig` — run from a global install, by their bare command names. Setup installs the aide server (`npm i -g @aidemd-mcp/aidemd`) and writes its entry as `aidemd-mcp`; terminal commands are `aidemd-mcp init` and `aidemd-mcp sync`. `/aide:brain config` installs the brain server's own package before it wires the brain's launcher. A global launch starts fast and works offline, and it stays on the installed version until the next `npm i -g`.
155
+
156
+ Entries that launch through npx (`npx -y <package>@<version>`) are out of date: npx contacts the registry on every start, and a cold start can miss Claude Code's 30-second connect window. `/aide:upgrade` offers to switch the aide entry to the global command, after the global install, and `/aide:brain config` does the same for the brain launcher through the brain category's `brainChange: "launcher"` preview and apply. A project pinned to an older aide version first moves its pin once, so that the newer server can make the switch.
157
+
158
+ ## Lifecycle
159
+
160
+ 1. **Created or repaired** by `/aide:brain config`. When `.aide/config/brain.aide` is missing, the command asks which backend the user wants. For the bundled Obsidian default it uses the template `aide_init` returns, which carries YAML null at the unwired launcher slot until step 2 (a cold `cli/init` install also scaffolds that template once, if the file is absent). For any other backend it hands off to the `aide-brain-author` skill, which writes the launcher and every section with the user, section by section, from the contract listing and each section's template text and `purpose` (`aide_brain` with `source: "contract"` and `source: "template"`), checks the draft with `source: "draft"`, then swaps it in or leaves it beside an existing config. When the file exists but is outdated, the command repairs it as described under `### Body shape`. Either way the result is validated with the real parser through `aide_info`; a hand-written file counts only if the parser accepts it.
161
+
162
+ 2. **Filled** by the user via `/aide:brain config`. The config section's prose runs, asks the user for whatever values the YAML-null slots need (e.g. the brain root path for the bundled Obsidian default), and edits `brain.aide` to land the resolved values into the args slots. Retargeting, switching brains, swapping the MCP launcher and rewriting any body section are also edits to this one file.
163
+
164
+ 3. **Propagated** to `.mcp.json` by sync (`aidemd-mcp sync` for a global install, `npx -y @aidemd-mcp/aidemd@<version> sync` for a local one — match the project's `aide` entry). The user runs this after the slot-filling step. Sync reads the frontmatter, expands any `${...}` interpolations in `mcpServerConfig.args` (the default scaffold has none), and writes the resulting object into `.mcp.json` under the fixed `brain` key. Sync refuses null-bearing args: if any element of `mcpServerConfig.args` is still null, sync exits non-zero and routes the user back to `/aide:brain config`. Sync is the only mechanism that mutates `.mcp.json`'s brain entry.
165
+
166
+ 4. **Seeds written** by the integration's `aide-config` prose, after sync passes. For each seed missing from the brain, the prose fetches that section with `aide_brain({ kind: <marker> })` and writes it into the brain via the brain's own MCP write tool at the contract `seedPath`, skipping any file that already exists. The section's empty lines at its start and end are dropped, and a leading frontmatter block is passed in whatever form the backend's write tool expects (for example as a separate frontmatter argument) rather than left inside the body. The presence-check + re-seed loop owns missing-artifact recovery on every `/aide:brain config` invocation. The kanban board, the kanban index and the operation guides are seeded here like any other seed section.
167
+
168
+ 5. **Restart Claude Code** so the new MCP server loads. MCP server registration is read at client startup; an edit + sync without a restart leaves the running session pointing at the previous brain.
169
+
170
+ 6. **Drift detected** by the boot reporter. At session start, the reporter compares the `brain` entry in `.mcp.json` against the values declared in `brain.aide`. If they disagree, the reporter surfaces `mcp-drift`. The orchestrator treats drift as a hard halt: it does not proceed, does not attempt self-repair, and directs the user to run sync (`aidemd-mcp sync` for a global install, `npx -y @aidemd-mcp/aidemd@<version> sync` for a local one — match the project's `aide` entry).
171
+
172
+ Re-running sync against an unchanged `brain.aide` is idempotent — it reads the file, computes the same target object, sees `.mcp.json` already matches, and exits reporting no change.
173
+
174
+ ## Boot reporter brain status states
175
+
176
+ The boot reporter surfaces exactly five brain status states. The orchestrator reads the state and decides whether the pipeline can advance.
177
+
178
+ - **`ok`** — `.aide/config/brain.aide` exists and satisfies the contract, `.mcp.json` has a `brain` entry, and the two agree. The pipeline proceeds.
179
+
180
+ - **`no-brain-aide`** — `.aide/config/brain.aide` is absent (ENOENT), and only that. A file that is present is never reported as absent; a present file that cannot be read (permissions, a directory at the path) is `brain-aide-invalid` with a reason naming the read error. Remediation: run `/aide:brain config`, which asks which backend to use and creates the file. The orchestrator halts until the file is in place.
181
+
182
+ - **`brain-aide-invalid`** — the file is present but falls short of the contract. The state carries a `fault`: `missing-sections` with the absent `sections` (a file written against an earlier contract, or one missing a block), or `malformed` with the parser's `reason` (unusable frontmatter, or a structural fault among the marker pairs). Remediation: run `/aide:brain config`, which inserts the missing sections after confirmation, or shows the reason for hand repair. The orchestrator halts until the file is valid.
183
+
184
+ - **`no-mcp-entry`** — `brain.aide` exists, but `.mcp.json` has no `brain` entry under `mcpServers`, OR `mcpServerConfig.args` carries one or more YAML null entries (a null-bearing config is by definition not a wireable launch command, so it collapses semantically into `no-mcp-entry`). Remediation: run `/aide:brain config` to fill any null slots, then run sync (`aidemd-mcp sync` for a global install, `npx -y @aidemd-mcp/aidemd@<version> sync` for a local one — match the project's `aide` entry) to write the entry from the source of truth, then restart Claude Code. The orchestrator halts until the wiring is in place.
185
+
186
+ - **`mcp-drift`** — both `brain.aide` and the `.mcp.json` `brain` entry exist, but their values disagree (the `command` differs, the `args` differ, or the user hand-edited `.mcp.json` away from what `brain.aide` declares). Remediation: run sync (`aidemd-mcp sync` for a global install, `npx -y @aidemd-mcp/aidemd@<version> sync` for a local one — match the project's `aide` entry) to bring `.mcp.json` back in line with the source of truth, then restart Claude Code. The orchestrator halts until the two agree. The boot reporter never auto-repairs drift — auto-repair would shift a load-bearing contract surface out from under the user and erase any deliberate hand-edit they made.
187
+
188
+ ## Divergence from intent specs
189
+
190
+ `brain.aide` shares its file extension with the intent-spec family but is not an intent spec. The following fields the intent-spec template requires are explicitly absent:
191
+
192
+ - **No `scope`** — `brain.aide` has no scope boundary. It is a project-wide config file; scoping it to a subdirectory has no meaning.
193
+ - **No `intent` paragraph** — `brain.aide` does not describe desired behavior for an agent to implement. It is runtime configuration, not an engineering contract.
194
+ - **No `outcomes` block** — there are no desired or undesired outcomes to specify. The file's "outcome" is simply that the brain is correctly wired; correctness is verified by the boot reporter, not by an outcomes list.
195
+ - **No `description` field** — intent specs use `description` to name what the module does; `brain.aide` uses `name` to label the brain type, which is descriptive metadata, not a description of what code does.
196
+ - **No `status` lifecycle field** — intent specs track `draft`, `aligned`, `in-progress`, `done`; `brain.aide` has no lifecycle phases of that kind. It is always "the current config."
197
+
198
+ **Rationale.** Brain configuration is runtime configuration; intent specs are engineering contracts. Conflating the two erodes the methodology's central distinction — every downstream agent that reads both types would have to decide which rules apply. The absence of intent-spec fields from `brain.aide` is a hard boundary, not an oversight.
199
+
200
+ ## Rules
201
+
202
+ - **All body sections returned verbatim.** `aide_brain` returns any requested section, live or seed, byte-identical to disk. No server-side templating, no rendering pass, no variable substitution applies to any body section.
203
+
204
+ - **One decision's worth of bytes at a time.** The install summary carries no section text. `aide_brain` returns one section per call, and `aide_upgrade`'s brain preview returns one before/after. No package code path writes a seed into the brain; the agent does, through the brain's own MCP write tool.
205
+
206
+ - **`aide_brain` is read-only.** It never writes, and its `purpose` comes only from the published contract. The sync verb and boot reporter read frontmatter only for wiring.
207
+
208
+ - **The section list has one source.** The required sections live in the server's published contract and nowhere else. This doc, the templates' prose and agent prompts point to it and never restate it.
209
+
210
+ - **`mcpServerConfig.args` interpolation runs only at sync time.** Any `${fieldName}` references in `args` are expanded by sync (`aidemd-mcp sync` for a global install, `npx -y @aidemd-mcp/aidemd@<version> sync` for a local one — match the project's `aide` entry) against the frontmatter and written into `.mcp.json`. They are never expanded at read time, at server startup, or inside any body section.
211
+
212
+ - **The brain's interface contract is the `orientation` section, not the schema.** The frontmatter does not declare expected MCP tool names, expected operations, or expected entry-point paths. The agent reads the `orientation` section verbatim, calls whatever MCP tools it names, and surfaces failures fast. A frontmatter field whose only consumer is the parser's own validation is rejected.
213
+
214
+ - **`name` is descriptive metadata, never dispatched on.** No code in this package branches on the value of `name`. The field exists so a human reading the file immediately knows what kind of brain is wired and so the agent can narrate its connection in conversation. Introducing any code path that switches on `name` re-introduces the in-code backend registry this architecture rejects.
215
+
216
+ - **Adding a new brain is a host-side edit + sync, never a code change to this package.** The package has no opinion about which brain a host runs — only about how the host declares it. A new brain = write a `brain.aide` that satisfies the contract (`/aide:brain config` can author it), run sync (`aidemd-mcp sync` for a global install, `npx -y @aidemd-mcp/aidemd@<version> sync` for a local one — match the project's `aide` entry), restart Claude Code.
217
+
218
+ - **Drift is a hard halt.** When the boot reporter surfaces `mcp-drift`, the orchestrator stops. It does not auto-repair. It directs the user to run sync.
219
+
220
+ - **The `.mcp.json` brain key is fixed.** Sync always writes to `mcpServers["brain"]`. The key name is not configurable; downstream tooling, the boot reporter, and the orchestrator all read from the same fixed name.
221
+
222
+ - **`.aide/config/` is user-owned forever.** `aide_init` never writes under `.aide/config/` after the first scaffold. New contract sections and migrations reach an existing host only through `/aide:brain config`, which the user runs; it applies each one through `aide_upgrade`'s brain category, after the user confirms.
223
+
224
+ - **One file, one source of truth.** `brain.aide` is the single source of truth for brain configuration. The host's `.mcp.json` brain entry is a derived artifact — it must match `brain.aide` and is only updated by sync.
225
+
226
+ - **Outdated is reported, never silently accepted.** A present file short of the contract surfaces as `brain-aide-invalid`. Repair is `/aide:brain config` inserting only the missing sections; there is no transitional read path, no auto-injection and no heading-based guessing. Outdated section text and a legacy launcher are reported by `aide_info` as `brainMigration` (a soft notice, never a gate) and migrated only through `/aide:brain config`, one previewed and confirmed change at a time.
227
+
228
+ ## Placement
229
+
230
+ `brain.aide` lives inside the `.aide/config/` directory at the project root:
231
+
232
+ ```
233
+ .aide/
234
+ ├── intent.aide ← project intent spec
235
+ ├── config/ ← user-owned configuration (never overwritten after scaffold)
236
+ │ └── brain.aide ← brain configuration (this file type)
237
+ ├── docs/ ← canonical methodology docs (package-owned, re-installed on init/upgrade)
238
+ │ └── brain-aide.md
239
+ └── ...
240
+ ```
241
+
242
+ No cross-referencing between `brain.aide` and other `.aide` files is needed. The folder placement is the relationship: anything under `.aide/config/` is user-owned config; anything elsewhere under `.aide/` is methodology surface the package manages.