@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.
- package/.aide/bin/aide-tree.mjs +8 -0
- package/.aide/config/brain.aide +1449 -0
- package/.aide/docs/.aide +130 -0
- package/.aide/docs/agent-readable-code.md +74 -0
- package/.aide/docs/aide-spec.md +290 -0
- package/.aide/docs/aide-template.md +141 -0
- package/.aide/docs/automated-qa.md +111 -0
- package/.aide/docs/brain-aide.md +242 -0
- package/.aide/docs/brief-aide.md +124 -0
- package/.aide/docs/cascading-alignment.md +107 -0
- package/.aide/docs/index.md +52 -0
- package/.aide/docs/plan-aide.md +132 -0
- package/.aide/docs/progressive-disclosure.md +74 -0
- package/.aide/docs/session-aide.md +210 -0
- package/.aide/docs/todo-aide.md +82 -0
- package/.aide/intent.aide +71 -0
- package/.aide/readme.aide +343 -0
- package/.aide/reference/hooks/PostToolUse.md +24 -0
- package/.aide/reference/hooks/SessionEnd.md +22 -0
- package/.aide/reference/hooks/SessionStart.md +18 -0
- package/.aide/reference/hooks/Stop.md +18 -0
- package/.aide/reference/hooks/UserPromptSubmit.md +18 -0
- package/.aide/reference/hooks/index.md +36 -0
- package/.aide/reference/tools/aide_brain.md +34 -0
- package/.aide/reference/tools/aide_cleanup.md +31 -0
- package/.aide/reference/tools/aide_discover.md +40 -0
- package/.aide/reference/tools/aide_frontmatter.md +36 -0
- package/.aide/reference/tools/aide_info.md +33 -0
- package/.aide/reference/tools/aide_init.md +39 -0
- package/.aide/reference/tools/aide_inspect.md +27 -0
- package/.aide/reference/tools/aide_observer_end_session.md +36 -0
- package/.aide/reference/tools/aide_observer_event.md +52 -0
- package/.aide/reference/tools/aide_observer_start.md +45 -0
- package/.aide/reference/tools/aide_read.md +29 -0
- package/.aide/reference/tools/aide_scaffold.md +35 -0
- package/.aide/reference/tools/aide_upgrade.md +45 -0
- package/.aide/reference/tools/aide_validate.md +36 -0
- package/.aide/reference/tools/index.md +25 -0
- package/.aide/session.aide +774 -0
- package/.claude/.aide +316 -0
- package/.claude/agents/aide/aide-aligner.md +129 -0
- package/.claude/agents/aide/aide-architect.md +151 -0
- package/.claude/agents/aide/aide-auditor.md +100 -0
- package/.claude/agents/aide/aide-domain-expert.md +84 -0
- package/.claude/agents/aide/aide-explorer.md +63 -0
- package/.claude/agents/aide/aide-implementor.md +121 -0
- package/.claude/agents/aide/aide-maintainer.md +115 -0
- package/.claude/agents/aide/aide-qa.md +95 -0
- package/.claude/agents/aide/aide-spec-writer.md +220 -0
- package/.claude/agents/aide/aide-strategist.md +104 -0
- package/.claude/agents/aide/aide-upgrader.md +71 -0
- package/.claude/agents/kanban/kanban-maintainer.md +113 -0
- package/.claude/commands/aide/align.md +24 -0
- package/.claude/commands/aide/brain.md +169 -0
- package/.claude/commands/aide/build.md +22 -0
- package/.claude/commands/aide/fix.md +23 -0
- package/.claude/commands/aide/handoff.md +15 -0
- package/.claude/commands/aide/plan.md +32 -0
- package/.claude/commands/aide/qa.md +27 -0
- package/.claude/commands/aide/refactor.md +106 -0
- package/.claude/commands/aide/research.md +21 -0
- package/.claude/commands/aide/spec.md +35 -0
- package/.claude/commands/aide/synthesize.md +24 -0
- package/.claude/commands/aide/update-playbook.md +3 -0
- package/.claude/commands/aide/upgrade.md +158 -0
- package/.claude/commands/aide.md +13 -0
- package/.claude/skills/aide/SKILL.md +611 -0
- package/.claude/skills/aide-brain-author/SKILL.md +122 -0
- package/.claude/skills/aide-handoff/SKILL.md +56 -0
- package/.claude/skills/aide-observer/SKILL.md +94 -0
- package/.claude/skills/brain/SKILL.md +69 -0
- package/.claude/skills/kanban/SKILL.md +24 -0
- package/.claude/skills/study-playbook/SKILL.md +11 -0
- package/CHANGELOG.md +428 -0
- package/LICENSE +21 -0
- package/README.md +219 -2
- package/dist/cli/hook/findLinkedSession/index.d.ts +8 -0
- package/dist/cli/hook/findLinkedSession/index.js +18 -0
- package/dist/cli/hook/index.d.ts +21 -0
- package/dist/cli/hook/index.js +64 -0
- package/dist/cli/hook/mapHookEvent/index.d.ts +9 -0
- package/dist/cli/hook/mapHookEvent/index.js +25 -0
- package/dist/cli/hook/parseHookInput/index.d.ts +9 -0
- package/dist/cli/hook/parseHookInput/index.js +43 -0
- package/dist/cli/hook/readStdin/index.d.ts +10 -0
- package/dist/cli/hook/readStdin/index.js +25 -0
- package/dist/cli/hook/resolveHookRoot/index.d.ts +10 -0
- package/dist/cli/hook/resolveHookRoot/index.js +14 -0
- package/dist/cli/hook/types/index.d.ts +24 -0
- package/dist/cli/hook/types/index.js +1 -0
- package/dist/cli/index.d.ts +24 -0
- package/dist/cli/index.js +62 -0
- package/dist/cli/init/ensureGlobalAide/index.d.ts +19 -0
- package/dist/cli/init/ensureGlobalAide/index.js +36 -0
- package/dist/cli/init/ensureGlobalAide/installGlobalPackage/index.d.ts +8 -0
- package/dist/cli/init/ensureGlobalAide/installGlobalPackage/index.js +15 -0
- package/dist/cli/init/index.d.ts +82 -0
- package/dist/cli/init/index.js +465 -0
- package/dist/cli/init/renderWarning/index.d.ts +41 -0
- package/dist/cli/init/renderWarning/index.js +66 -0
- package/dist/cli/init/reportHooks/index.d.ts +31 -0
- package/dist/cli/init/reportHooks/index.js +75 -0
- package/dist/cli/init/types/index.d.ts +46 -0
- package/dist/cli/init/types/index.js +1 -0
- package/dist/cli/init/writeMcpEntry/index.d.ts +30 -0
- package/dist/cli/init/writeMcpEntry/index.js +81 -0
- package/dist/cli/isMainModule/index.d.ts +11 -0
- package/dist/cli/isMainModule/index.js +27 -0
- package/dist/cli/launchSync/index.d.ts +9 -0
- package/dist/cli/launchSync/index.js +40 -0
- package/dist/cli/shared/writeMcpEntry/index.d.ts +49 -0
- package/dist/cli/shared/writeMcpEntry/index.js +107 -0
- package/dist/cli/sync/index.d.ts +27 -0
- package/dist/cli/sync/index.js +125 -0
- package/dist/cli/tree/App/index.d.ts +14 -0
- package/dist/cli/tree/App/index.js +291 -0
- package/dist/cli/tree/DetailPanel/index.d.ts +28 -0
- package/dist/cli/tree/DetailPanel/index.js +77 -0
- package/dist/cli/tree/DetailPanel/renderPlanDetail/index.d.ts +20 -0
- package/dist/cli/tree/DetailPanel/renderPlanDetail/index.js +30 -0
- package/dist/cli/tree/DetailPanel/renderPlanDetail/parsePlanItems/index.d.ts +32 -0
- package/dist/cli/tree/DetailPanel/renderPlanDetail/parsePlanItems/index.js +80 -0
- package/dist/cli/tree/DetailPanel/renderTodoDetail/index.d.ts +17 -0
- package/dist/cli/tree/DetailPanel/renderTodoDetail/index.js +19 -0
- package/dist/cli/tree/DetailPanel/renderTodoDetail/parseTodoItems/index.d.ts +26 -0
- package/dist/cli/tree/DetailPanel/renderTodoDetail/parseTodoItems/index.js +48 -0
- package/dist/cli/tree/TreePanel/index.d.ts +24 -0
- package/dist/cli/tree/TreePanel/index.js +96 -0
- package/dist/cli/tree/findPrimaryIntent/index.d.ts +12 -0
- package/dist/cli/tree/findPrimaryIntent/index.js +20 -0
- package/dist/cli/tree/flattenTree/index.d.ts +16 -0
- package/dist/cli/tree/flattenTree/index.js +20 -0
- package/dist/cli/tree/index.d.ts +2 -0
- package/dist/cli/tree/index.js +15 -0
- package/dist/cli/view/awaitShutdown/index.d.ts +12 -0
- package/dist/cli/view/awaitShutdown/index.js +32 -0
- package/dist/cli/view/buildLink/index.d.ts +13 -0
- package/dist/cli/view/buildLink/index.js +18 -0
- package/dist/cli/view/formatPortNote/index.d.ts +10 -0
- package/dist/cli/view/formatPortNote/index.js +11 -0
- package/dist/cli/view/formatUsage/index.d.ts +6 -0
- package/dist/cli/view/formatUsage/index.js +24 -0
- package/dist/cli/view/index.d.ts +21 -0
- package/dist/cli/view/index.js +102 -0
- package/dist/cli/view/parseViewArgs/index.d.ts +14 -0
- package/dist/cli/view/parseViewArgs/index.js +59 -0
- package/dist/cli/view/types/index.d.ts +20 -0
- package/dist/cli/view/types/index.js +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +17 -0
- package/dist/observer/assets/Inter-OFL.txt +93 -0
- package/dist/observer/assets/JetBrainsMono-OFL.txt +93 -0
- package/dist/observer/assets/page.css +1 -0
- package/dist/observer/assets/page.js +158 -0
- package/dist/observer/assets/page.js.LEGAL.txt +56 -0
- package/dist/observer/bindServer/index.d.ts +17 -0
- package/dist/observer/bindServer/index.js +29 -0
- package/dist/observer/buildPageShell/index.d.ts +8 -0
- package/dist/observer/buildPageShell/index.js +30 -0
- package/dist/observer/buildProjectView/index.d.ts +12 -0
- package/dist/observer/buildProjectView/index.js +25 -0
- package/dist/observer/buildViewLink/index.d.ts +16 -0
- package/dist/observer/buildViewLink/index.js +15 -0
- package/dist/observer/createEventStore/index.d.ts +14 -0
- package/dist/observer/createEventStore/index.js +98 -0
- package/dist/observer/createStatusPusher/index.d.ts +16 -0
- package/dist/observer/createStatusPusher/index.js +40 -0
- package/dist/observer/createStop/index.d.ts +23 -0
- package/dist/observer/createStop/index.js +40 -0
- package/dist/observer/createStreamHub/frame/index.d.ts +6 -0
- package/dist/observer/createStreamHub/frame/index.js +4 -0
- package/dist/observer/createStreamHub/index.d.ts +13 -0
- package/dist/observer/createStreamHub/index.js +76 -0
- package/dist/observer/findRunningObserver/index.d.ts +12 -0
- package/dist/observer/findRunningObserver/index.js +33 -0
- package/dist/observer/findRunningObserver/probeIndex/index.d.ts +13 -0
- package/dist/observer/findRunningObserver/probeIndex/index.js +28 -0
- package/dist/observer/guardRequest/index.d.ts +20 -0
- package/dist/observer/guardRequest/index.js +38 -0
- package/dist/observer/guardRequest/matchesToken/index.d.ts +5 -0
- package/dist/observer/guardRequest/matchesToken/index.js +9 -0
- package/dist/observer/guardRequest/types/index.d.ts +8 -0
- package/dist/observer/guardRequest/types/index.js +1 -0
- package/dist/observer/handleRequest/index.d.ts +13 -0
- package/dist/observer/handleRequest/index.js +76 -0
- package/dist/observer/handleRequest/isTokenFree/index.d.ts +11 -0
- package/dist/observer/handleRequest/isTokenFree/index.js +12 -0
- package/dist/observer/handleRequest/matchRoute/index.d.ts +26 -0
- package/dist/observer/handleRequest/matchRoute/index.js +89 -0
- package/dist/observer/index.d.ts +23 -0
- package/dist/observer/index.js +112 -0
- package/dist/observer/listPorts/index.d.ts +9 -0
- package/dist/observer/listPorts/index.js +10 -0
- package/dist/observer/loadToken/index.d.ts +12 -0
- package/dist/observer/loadToken/index.js +46 -0
- package/dist/observer/loadToken/readStored/index.d.ts +4 -0
- package/dist/observer/loadToken/readStored/index.js +16 -0
- package/dist/observer/loadToken/writeTemp/index.d.ts +5 -0
- package/dist/observer/loadToken/writeTemp/index.js +8 -0
- package/dist/observer/locatePageAssets/index.d.ts +6 -0
- package/dist/observer/locatePageAssets/index.js +17 -0
- package/dist/observer/mintToken/index.d.ts +2 -0
- package/dist/observer/mintToken/index.js +6 -0
- package/dist/observer/rebuildStatus/index.d.ts +17 -0
- package/dist/observer/rebuildStatus/index.js +49 -0
- package/dist/observer/removeRecord/index.d.ts +10 -0
- package/dist/observer/removeRecord/index.js +22 -0
- package/dist/observer/replaySessions/index.d.ts +7 -0
- package/dist/observer/replaySessions/index.js +17 -0
- package/dist/observer/resolvePort/index.d.ts +12 -0
- package/dist/observer/resolvePort/index.js +21 -0
- package/dist/observer/routes/archiveSession/index.d.ts +11 -0
- package/dist/observer/routes/archiveSession/index.js +57 -0
- package/dist/observer/routes/deleteSession/index.d.ts +10 -0
- package/dist/observer/routes/deleteSession/index.js +33 -0
- package/dist/observer/routes/getAsset/index.d.ts +7 -0
- package/dist/observer/routes/getAsset/index.js +30 -0
- package/dist/observer/routes/getEvents/index.d.ts +3 -0
- package/dist/observer/routes/getEvents/index.js +13 -0
- package/dist/observer/routes/getFile/index.d.ts +7 -0
- package/dist/observer/routes/getFile/index.js +54 -0
- package/dist/observer/routes/getFile/resolveConfinedPath/index.d.ts +24 -0
- package/dist/observer/routes/getFile/resolveConfinedPath/index.js +65 -0
- package/dist/observer/routes/getIndex/index.d.ts +7 -0
- package/dist/observer/routes/getIndex/index.js +23 -0
- package/dist/observer/routes/getSessionPage/index.d.ts +8 -0
- package/dist/observer/routes/getSessionPage/index.js +10 -0
- package/dist/observer/routes/getStatus/index.d.ts +7 -0
- package/dist/observer/routes/getStatus/index.js +15 -0
- package/dist/observer/routes/getTask/index.d.ts +7 -0
- package/dist/observer/routes/getTask/index.js +47 -0
- package/dist/observer/routes/listArchived/index.d.ts +8 -0
- package/dist/observer/routes/listArchived/index.js +22 -0
- package/dist/observer/routes/listProjects/index.d.ts +3 -0
- package/dist/observer/routes/listProjects/index.js +9 -0
- package/dist/observer/routes/listSessions/index.d.ts +3 -0
- package/dist/observer/routes/listSessions/index.js +18 -0
- package/dist/observer/routes/postEvent/index.d.ts +12 -0
- package/dist/observer/routes/postEvent/index.js +76 -0
- package/dist/observer/routes/postEvent/readJsonBody/index.d.ts +18 -0
- package/dist/observer/routes/postEvent/readJsonBody/index.js +37 -0
- package/dist/observer/routes/postPresence/index.d.ts +12 -0
- package/dist/observer/routes/postPresence/index.js +63 -0
- package/dist/observer/routes/postShutdown/index.d.ts +13 -0
- package/dist/observer/routes/postShutdown/index.js +64 -0
- package/dist/observer/routes/restoreSession/index.d.ts +11 -0
- package/dist/observer/routes/restoreSession/index.js +46 -0
- package/dist/observer/routes/streamUpdates/index.d.ts +10 -0
- package/dist/observer/routes/streamUpdates/index.js +20 -0
- package/dist/observer/shared/announceSessions/index.d.ts +12 -0
- package/dist/observer/shared/announceSessions/index.js +20 -0
- package/dist/observer/shared/broadcastProjects/index.d.ts +10 -0
- package/dist/observer/shared/broadcastProjects/index.js +13 -0
- package/dist/observer/shared/buildObserverMessage/index.d.ts +8 -0
- package/dist/observer/shared/buildObserverMessage/index.js +20 -0
- package/dist/observer/shared/findProject/index.d.ts +12 -0
- package/dist/observer/shared/findProject/index.js +22 -0
- package/dist/observer/shared/pageAssets/index.d.ts +13 -0
- package/dist/observer/shared/pageAssets/index.js +16 -0
- package/dist/observer/shared/pageTitle/index.d.ts +7 -0
- package/dist/observer/shared/pageTitle/index.js +7 -0
- package/dist/observer/shared/parsePort/index.d.ts +12 -0
- package/dist/observer/shared/parsePort/index.js +15 -0
- package/dist/observer/shared/pickKanbanOverride/index.d.ts +10 -0
- package/dist/observer/shared/pickKanbanOverride/index.js +10 -0
- package/dist/observer/shared/pickReportedLocation/index.d.ts +13 -0
- package/dist/observer/shared/pickReportedLocation/index.js +18 -0
- package/dist/observer/shared/readHeldLiveness/index.d.ts +13 -0
- package/dist/observer/shared/readHeldLiveness/index.js +23 -0
- package/dist/observer/shared/routeTable/index.d.ts +131 -0
- package/dist/observer/shared/routeTable/index.js +31 -0
- package/dist/observer/shared/sendBody/index.d.ts +14 -0
- package/dist/observer/shared/sendBody/index.js +17 -0
- package/dist/observer/shared/sendJson/index.d.ts +12 -0
- package/dist/observer/shared/sendJson/index.js +15 -0
- package/dist/observer/shared/sendPage/index.d.ts +10 -0
- package/dist/observer/shared/sendPage/index.js +18 -0
- package/dist/observer/shared/shutdownRequest/index.d.ts +14 -0
- package/dist/observer/shared/shutdownRequest/index.js +7 -0
- package/dist/observer/shared/summarizeProjects/index.d.ts +14 -0
- package/dist/observer/shared/summarizeProjects/index.js +38 -0
- package/dist/observer/shared/summarizeSessions/index.d.ts +12 -0
- package/dist/observer/shared/summarizeSessions/index.js +30 -0
- package/dist/observer/shared/tokenFormat/index.d.ts +4 -0
- package/dist/observer/shared/tokenFormat/index.js +4 -0
- package/dist/observer/shared/wantsHtml/index.d.ts +8 -0
- package/dist/observer/shared/wantsHtml/index.js +10 -0
- package/dist/observer/takeOver/awaitExit/index.d.ts +10 -0
- package/dist/observer/takeOver/awaitExit/index.js +26 -0
- package/dist/observer/takeOver/index.d.ts +11 -0
- package/dist/observer/takeOver/index.js +27 -0
- package/dist/observer/takeOver/requestShutdown/index.d.ts +10 -0
- package/dist/observer/takeOver/requestShutdown/index.js +28 -0
- package/dist/observer/types/index.d.ts +214 -0
- package/dist/observer/types/index.js +1 -0
- package/dist/observer/writeRecord/index.d.ts +10 -0
- package/dist/observer/writeRecord/index.js +11 -0
- package/dist/service/brainContract/index.d.ts +113 -0
- package/dist/service/brainContract/index.js +107 -0
- package/dist/service/brainContract/launcherPurpose/index.d.ts +8 -0
- package/dist/service/brainContract/launcherPurpose/index.js +8 -0
- package/dist/service/brainContract/toMarkerPair/index.d.ts +11 -0
- package/dist/service/brainContract/toMarkerPair/index.js +12 -0
- package/dist/service/buildBrainState/classifyParseFailure/index.d.ts +17 -0
- package/dist/service/buildBrainState/classifyParseFailure/index.js +29 -0
- package/dist/service/buildBrainState/index.d.ts +84 -0
- package/dist/service/buildBrainState/index.js +177 -0
- package/dist/service/install/applySteps/index.d.ts +38 -0
- package/dist/service/install/applySteps/index.js +86 -0
- package/dist/service/install/configureIde/index.d.ts +25 -0
- package/dist/service/install/configureIde/index.js +143 -0
- package/dist/service/install/detectFramework/index.d.ts +11 -0
- package/dist/service/install/detectFramework/index.js +53 -0
- package/dist/service/install/index.d.ts +63 -0
- package/dist/service/install/index.js +138 -0
- package/dist/service/install/initContent/index.d.ts +158 -0
- package/dist/service/install/initContent/index.js +260 -0
- package/dist/service/install/installAgents/index.d.ts +16 -0
- package/dist/service/install/installAgents/index.js +55 -0
- package/dist/service/install/installAideTree/index.d.ts +15 -0
- package/dist/service/install/installAideTree/index.js +54 -0
- package/dist/service/install/installHooks/index.d.ts +24 -0
- package/dist/service/install/installHooks/index.js +68 -0
- package/dist/service/install/installMethodologyDocs/index.d.ts +16 -0
- package/dist/service/install/installMethodologyDocs/index.js +55 -0
- package/dist/service/install/installSkills/index.d.ts +16 -0
- package/dist/service/install/installSkills/index.js +55 -0
- package/dist/service/install/planSessionRecord/index.d.ts +16 -0
- package/dist/service/install/planSessionRecord/index.js +30 -0
- package/dist/service/install/provisionBrain/buildBrainAideStep/index.d.ts +25 -0
- package/dist/service/install/provisionBrain/buildBrainAideStep/index.js +60 -0
- package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/index.d.ts +14 -0
- package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/index.js +33 -0
- package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/listBrainSections/index.d.ts +10 -0
- package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/listBrainSections/index.js +19 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/findLegacyLauncher/index.d.ts +17 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/findLegacyLauncher/index.js +39 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/fingerprintSection/index.d.ts +11 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/fingerprintSection/index.js +20 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/index.d.ts +16 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/index.js +30 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/index.d.ts +13 -0
- package/dist/service/install/provisionBrain/detectBrainMigration/index.js +32 -0
- package/dist/service/install/provisionBrain/index.d.ts +37 -0
- package/dist/service/install/provisionBrain/index.js +182 -0
- package/dist/service/install/provisionBrain/isTemplateIntegration/index.d.ts +14 -0
- package/dist/service/install/provisionBrain/isTemplateIntegration/index.js +24 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/index.d.ts +73 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/index.js +557 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/complete/index.d.ts +13 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/complete/index.js +51 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/create/index.d.ts +13 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/create/index.js +82 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/manage/index.d.ts +13 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/manage/index.js +86 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/move/index.d.ts +12 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/move/index.js +59 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/review/index.d.ts +15 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/review/index.js +274 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/stash/index.d.ts +14 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/stash/index.js +103 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/work/index.d.ts +14 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/work/index.js +332 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.d.ts +16 -0
- package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.js +94 -0
- package/dist/service/install/provisionBrain/outdatedTemplateSections/index.d.ts +18 -0
- package/dist/service/install/provisionBrain/outdatedTemplateSections/index.js +164 -0
- package/dist/service/install/provisionBrain/parseBundledTemplate/index.d.ts +14 -0
- package/dist/service/install/provisionBrain/parseBundledTemplate/index.js +21 -0
- package/dist/service/install/provisionBrain/planBrainRepair/index.d.ts +26 -0
- package/dist/service/install/provisionBrain/planBrainRepair/index.js +47 -0
- package/dist/service/install/provisionBrain/readBrainMigrationNotice/index.d.ts +15 -0
- package/dist/service/install/provisionBrain/readBrainMigrationNotice/index.js +26 -0
- package/dist/service/install/reference/index.d.ts +24 -0
- package/dist/service/install/reference/index.js +51 -0
- package/dist/service/install/resolveBrainHints/index.d.ts +17 -0
- package/dist/service/install/resolveBrainHints/index.js +44 -0
- package/dist/service/install/scaffoldCommands/index.d.ts +42 -0
- package/dist/service/install/scaffoldCommands/index.js +90 -0
- package/dist/service/install/scaffoldReadme/deriveProjectName/index.d.ts +18 -0
- package/dist/service/install/scaffoldReadme/deriveProjectName/index.js +37 -0
- package/dist/service/install/scaffoldReadme/index.d.ts +20 -0
- package/dist/service/install/scaffoldReadme/index.js +57 -0
- package/dist/service/install/scaffoldReadme/insertBadge/index.d.ts +17 -0
- package/dist/service/install/scaffoldReadme/insertBadge/index.js +51 -0
- package/dist/service/install/shared/aidePackage/index.d.ts +18 -0
- package/dist/service/install/shared/aidePackage/index.js +17 -0
- package/dist/service/install/shared/checkGlobalPackage/index.d.ts +11 -0
- package/dist/service/install/shared/checkGlobalPackage/index.js +28 -0
- package/dist/service/install/shared/compareBytes/index.d.ts +12 -0
- package/dist/service/install/shared/compareBytes/index.js +24 -0
- package/dist/service/install/shared/describeAideCommand/index.d.ts +10 -0
- package/dist/service/install/shared/describeAideCommand/index.js +13 -0
- package/dist/service/install/shared/detectLaunchMode/index.d.ts +11 -0
- package/dist/service/install/shared/detectLaunchMode/index.js +10 -0
- package/dist/service/install/shared/isOlderVersion/index.d.ts +7 -0
- package/dist/service/install/shared/isOlderVersion/index.js +19 -0
- package/dist/service/install/shared/normalizeLaunchedCommand/index.d.ts +16 -0
- package/dist/service/install/shared/normalizeLaunchedCommand/index.js +36 -0
- package/dist/service/install/shared/planHooks/ignoreLocal/appendLine/index.d.ts +10 -0
- package/dist/service/install/shared/planHooks/ignoreLocal/appendLine/index.js +14 -0
- package/dist/service/install/shared/planHooks/ignoreLocal/index.d.ts +13 -0
- package/dist/service/install/shared/planHooks/ignoreLocal/index.js +30 -0
- package/dist/service/install/shared/planHooks/ignoreLocal/inspectGit/index.d.ts +17 -0
- package/dist/service/install/shared/planHooks/ignoreLocal/inspectGit/index.js +42 -0
- package/dist/service/install/shared/planHooks/index.d.ts +19 -0
- package/dist/service/install/shared/planHooks/index.js +65 -0
- package/dist/service/install/shared/planHooks/locateEntry/index.d.ts +15 -0
- package/dist/service/install/shared/planHooks/locateEntry/index.js +40 -0
- package/dist/service/install/shared/planHooks/mergeLocal/aideHookEntries/index.d.ts +11 -0
- package/dist/service/install/shared/planHooks/mergeLocal/aideHookEntries/index.js +21 -0
- package/dist/service/install/shared/planHooks/mergeLocal/buildCommand/index.d.ts +7 -0
- package/dist/service/install/shared/planHooks/mergeLocal/buildCommand/index.js +9 -0
- package/dist/service/install/shared/planHooks/mergeLocal/findWiredEvents/index.d.ts +16 -0
- package/dist/service/install/shared/planHooks/mergeLocal/findWiredEvents/index.js +35 -0
- package/dist/service/install/shared/planHooks/mergeLocal/index.d.ts +17 -0
- package/dist/service/install/shared/planHooks/mergeLocal/index.js +57 -0
- package/dist/service/install/shared/planHooks/shared/isAideHookCommand/index.d.ts +10 -0
- package/dist/service/install/shared/planHooks/shared/isAideHookCommand/index.js +86 -0
- package/dist/service/install/shared/planHooks/shared/parseSettings/index.d.ts +10 -0
- package/dist/service/install/shared/planHooks/shared/parseSettings/index.js +24 -0
- package/dist/service/install/shared/planHooks/shared/readOptional/index.d.ts +7 -0
- package/dist/service/install/shared/planHooks/shared/readOptional/index.js +17 -0
- package/dist/service/install/shared/planHooks/shared/removeAideHooks/index.d.ts +17 -0
- package/dist/service/install/shared/planHooks/shared/removeAideHooks/index.js +84 -0
- package/dist/service/install/shared/planHooks/stripProject/index.d.ts +14 -0
- package/dist/service/install/shared/planHooks/stripProject/index.js +26 -0
- package/dist/service/install/shared/planInstallInstruction/index.d.ts +3 -0
- package/dist/service/install/shared/planInstallInstruction/index.js +6 -0
- package/dist/service/install/shared/readNpxPackageSpec/index.d.ts +11 -0
- package/dist/service/install/shared/readNpxPackageSpec/index.js +35 -0
- package/dist/service/install/wireMcp/index.d.ts +28 -0
- package/dist/service/install/wireMcp/index.js +89 -0
- package/dist/service/install/writeMethodology/index.d.ts +22 -0
- package/dist/service/install/writeMethodology/index.js +131 -0
- package/dist/service/observer/event/archive/index.d.ts +14 -0
- package/dist/service/observer/event/archive/index.js +52 -0
- package/dist/service/observer/event/delete/index.d.ts +20 -0
- package/dist/service/observer/event/delete/index.js +60 -0
- package/dist/service/observer/event/endSession/index.d.ts +19 -0
- package/dist/service/observer/event/endSession/index.js +85 -0
- package/dist/service/observer/event/findConversation/index.d.ts +16 -0
- package/dist/service/observer/event/findConversation/index.js +46 -0
- package/dist/service/observer/event/markClosed/index.d.ts +15 -0
- package/dist/service/observer/event/markClosed/index.js +39 -0
- package/dist/service/observer/event/read/index.d.ts +11 -0
- package/dist/service/observer/event/read/index.js +18 -0
- package/dist/service/observer/event/read/readProject/index.d.ts +14 -0
- package/dist/service/observer/event/read/readProject/index.js +52 -0
- package/dist/service/observer/event/readArchive/index.d.ts +9 -0
- package/dist/service/observer/event/readArchive/index.js +46 -0
- package/dist/service/observer/event/readConversations/index.d.ts +10 -0
- package/dist/service/observer/event/readConversations/index.js +12 -0
- package/dist/service/observer/event/readLiveness/index.d.ts +24 -0
- package/dist/service/observer/event/readLiveness/index.js +40 -0
- package/dist/service/observer/event/record/appendLine/index.d.ts +17 -0
- package/dist/service/observer/event/record/appendLine/index.js +25 -0
- package/dist/service/observer/event/record/index.d.ts +19 -0
- package/dist/service/observer/event/record/index.js +62 -0
- package/dist/service/observer/event/record/postToObserver/index.d.ts +15 -0
- package/dist/service/observer/event/record/postToObserver/index.js +39 -0
- package/dist/service/observer/event/record/readPreviouslyEnded/index.d.ts +11 -0
- package/dist/service/observer/event/record/readPreviouslyEnded/index.js +25 -0
- package/dist/service/observer/event/record/session/createSession/index.d.ts +3 -0
- package/dist/service/observer/event/record/session/createSession/index.js +18 -0
- package/dist/service/observer/event/record/session/createSessionId/index.d.ts +9 -0
- package/dist/service/observer/event/record/session/createSessionId/index.js +11 -0
- package/dist/service/observer/event/record/session/index.d.ts +8 -0
- package/dist/service/observer/event/record/session/index.js +14 -0
- package/dist/service/observer/event/reopen/index.d.ts +13 -0
- package/dist/service/observer/event/reopen/index.js +34 -0
- package/dist/service/observer/event/restore/index.d.ts +12 -0
- package/dist/service/observer/event/restore/index.js +48 -0
- package/dist/service/observer/event/shared/attachLiveness/index.d.ts +14 -0
- package/dist/service/observer/event/shared/attachLiveness/index.js +18 -0
- package/dist/service/observer/event/shared/buildSessionPath/index.d.ts +11 -0
- package/dist/service/observer/event/shared/buildSessionPath/index.js +13 -0
- package/dist/service/observer/event/shared/endedMark/index.d.ts +30 -0
- package/dist/service/observer/event/shared/endedMark/index.js +48 -0
- package/dist/service/observer/event/shared/findNewestStart/index.d.ts +13 -0
- package/dist/service/observer/event/shared/findNewestStart/index.js +19 -0
- package/dist/service/observer/event/shared/formatSessionTag/index.d.ts +8 -0
- package/dist/service/observer/event/shared/formatSessionTag/index.js +11 -0
- package/dist/service/observer/event/shared/groupConversations/index.d.ts +14 -0
- package/dist/service/observer/event/shared/groupConversations/index.js +44 -0
- package/dist/service/observer/event/shared/isClosedRecord/index.d.ts +8 -0
- package/dist/service/observer/event/shared/isClosedRecord/index.js +13 -0
- package/dist/service/observer/event/shared/isIsoDateTime/index.d.ts +7 -0
- package/dist/service/observer/event/shared/isIsoDateTime/index.js +18 -0
- package/dist/service/observer/event/shared/judgeConversation/index.d.ts +18 -0
- package/dist/service/observer/event/shared/judgeConversation/index.js +26 -0
- package/dist/service/observer/event/shared/judgeConversation/pickNewestPresence/index.d.ts +10 -0
- package/dist/service/observer/event/shared/judgeConversation/pickNewestPresence/index.js +9 -0
- package/dist/service/observer/event/shared/judgeLiveness/index.d.ts +24 -0
- package/dist/service/observer/event/shared/judgeLiveness/index.js +41 -0
- package/dist/service/observer/event/shared/limits/index.d.ts +15 -0
- package/dist/service/observer/event/shared/limits/index.js +15 -0
- package/dist/service/observer/event/shared/listSessionIds/index.d.ts +9 -0
- package/dist/service/observer/event/shared/listSessionIds/index.js +33 -0
- package/dist/service/observer/event/shared/observerRecord/index.d.ts +23 -0
- package/dist/service/observer/event/shared/observerRecord/index.js +29 -0
- package/dist/service/observer/event/shared/parseSessionTag/index.d.ts +8 -0
- package/dist/service/observer/event/shared/parseSessionTag/index.js +18 -0
- package/dist/service/observer/event/shared/presencePing/index.d.ts +15 -0
- package/dist/service/observer/event/shared/presencePing/index.js +13 -0
- package/dist/service/observer/event/shared/presenceRecord/index.d.ts +36 -0
- package/dist/service/observer/event/shared/presenceRecord/index.js +70 -0
- package/dist/service/observer/event/shared/protocol/index.d.ts +31 -0
- package/dist/service/observer/event/shared/protocol/index.js +30 -0
- package/dist/service/observer/event/shared/readClosingRecord/index.d.ts +15 -0
- package/dist/service/observer/event/shared/readClosingRecord/index.js +50 -0
- package/dist/service/observer/event/shared/readConversationMark/index.d.ts +13 -0
- package/dist/service/observer/event/shared/readConversationMark/index.js +14 -0
- package/dist/service/observer/event/shared/readConversationMark/pickDecidingMark/index.d.ts +10 -0
- package/dist/service/observer/event/shared/readConversationMark/pickDecidingMark/index.js +10 -0
- package/dist/service/observer/event/shared/readEndedMark/index.d.ts +9 -0
- package/dist/service/observer/event/shared/readEndedMark/index.js +24 -0
- package/dist/service/observer/event/shared/readObserverRecord/index.d.ts +11 -0
- package/dist/service/observer/event/shared/readObserverRecord/index.js +26 -0
- package/dist/service/observer/event/shared/readObserverRecord/parseJson/index.d.ts +2 -0
- package/dist/service/observer/event/shared/readObserverRecord/parseJson/index.js +9 -0
- package/dist/service/observer/event/shared/readPresence/index.d.ts +11 -0
- package/dist/service/observer/event/shared/readPresence/index.js +46 -0
- package/dist/service/observer/event/shared/readSessionLog/index.d.ts +13 -0
- package/dist/service/observer/event/shared/readSessionLog/index.js +29 -0
- package/dist/service/observer/event/shared/readSessionLog/parseLines/index.d.ts +14 -0
- package/dist/service/observer/event/shared/readSessionLog/parseLines/index.js +32 -0
- package/dist/service/observer/event/shared/readSessionStart/index.d.ts +8 -0
- package/dist/service/observer/event/shared/readSessionStart/index.js +20 -0
- package/dist/service/observer/event/shared/readTranscriptActivity/index.d.ts +9 -0
- package/dist/service/observer/event/shared/readTranscriptActivity/index.js +18 -0
- package/dist/service/observer/event/shared/schema/index.d.ts +1398 -0
- package/dist/service/observer/event/shared/schema/index.js +218 -0
- package/dist/service/observer/event/shared/writeEndedMark/index.d.ts +12 -0
- package/dist/service/observer/event/shared/writeEndedMark/index.js +26 -0
- package/dist/service/observer/event/touchPresence/index.d.ts +15 -0
- package/dist/service/observer/event/touchPresence/index.js +77 -0
- package/dist/service/observer/event/touchPresence/mergePresence/index.d.ts +19 -0
- package/dist/service/observer/event/touchPresence/mergePresence/index.js +50 -0
- package/dist/service/observer/event/touchPresence/pingObserver/index.d.ts +15 -0
- package/dist/service/observer/event/touchPresence/pingObserver/index.js +63 -0
- package/dist/service/observer/event/touchPresence/shouldRefresh/index.d.ts +17 -0
- package/dist/service/observer/event/touchPresence/shouldRefresh/index.js +25 -0
- package/dist/service/observer/event/touchPresence/writePresence/index.d.ts +12 -0
- package/dist/service/observer/event/touchPresence/writePresence/index.js +20 -0
- package/dist/service/observer/event/types/index.d.ts +217 -0
- package/dist/service/observer/event/types/index.js +1 -0
- package/dist/service/observer/kanban/board/read/index.d.ts +13 -0
- package/dist/service/observer/kanban/board/read/index.js +27 -0
- package/dist/service/observer/kanban/board/read/readColumn/index.d.ts +11 -0
- package/dist/service/observer/kanban/board/read/readColumn/index.js +67 -0
- package/dist/service/observer/kanban/shared/boardHints/index.d.ts +17 -0
- package/dist/service/observer/kanban/shared/boardHints/index.js +17 -0
- package/dist/service/observer/kanban/shared/boardUnavailable/index.d.ts +6 -0
- package/dist/service/observer/kanban/shared/boardUnavailable/index.js +8 -0
- package/dist/service/observer/kanban/shared/columns/index.d.ts +18 -0
- package/dist/service/observer/kanban/shared/columns/index.js +9 -0
- package/dist/service/observer/kanban/shared/isInsideFolder/index.d.ts +8 -0
- package/dist/service/observer/kanban/shared/isInsideFolder/index.js +25 -0
- package/dist/service/observer/kanban/shared/locateBoard/index.d.ts +25 -0
- package/dist/service/observer/kanban/shared/locateBoard/index.js +76 -0
- package/dist/service/observer/kanban/shared/locateBoard/readKanbanFolder/index.d.ts +13 -0
- package/dist/service/observer/kanban/shared/locateBoard/readKanbanFolder/index.js +39 -0
- package/dist/service/observer/kanban/shared/namesSlug/index.d.ts +8 -0
- package/dist/service/observer/kanban/shared/namesSlug/index.js +13 -0
- package/dist/service/observer/kanban/shared/parseTaskNote/index.d.ts +11 -0
- package/dist/service/observer/kanban/shared/parseTaskNote/index.js +63 -0
- package/dist/service/observer/kanban/shared/readSessionKanban/index.d.ts +7 -0
- package/dist/service/observer/kanban/shared/readSessionKanban/index.js +22 -0
- package/dist/service/observer/kanban/task/read/findTaskFile/index.d.ts +22 -0
- package/dist/service/observer/kanban/task/read/findTaskFile/index.js +34 -0
- package/dist/service/observer/kanban/task/read/index.d.ts +13 -0
- package/dist/service/observer/kanban/task/read/index.js +42 -0
- package/dist/service/observer/kanban/types/index.d.ts +95 -0
- package/dist/service/observer/kanban/types/index.js +1 -0
- package/dist/service/observer/status/buildHistory/formatDuration/index.d.ts +6 -0
- package/dist/service/observer/status/buildHistory/formatDuration/index.js +15 -0
- package/dist/service/observer/status/buildHistory/index.d.ts +10 -0
- package/dist/service/observer/status/buildHistory/index.js +68 -0
- package/dist/service/observer/status/buildHistory/labelEvent/index.d.ts +12 -0
- package/dist/service/observer/status/buildHistory/labelEvent/index.js +78 -0
- package/dist/service/observer/status/buildModuleNodes/classifyTreeFile/index.d.ts +8 -0
- package/dist/service/observer/status/buildModuleNodes/classifyTreeFile/index.js +25 -0
- package/dist/service/observer/status/buildModuleNodes/findParentFolder/index.d.ts +9 -0
- package/dist/service/observer/status/buildModuleNodes/findParentFolder/index.js +20 -0
- package/dist/service/observer/status/buildModuleNodes/index.d.ts +9 -0
- package/dist/service/observer/status/buildModuleNodes/index.js +49 -0
- package/dist/service/observer/status/buildModuleNodes/readTreeFile/countPlanSteps/index.d.ts +10 -0
- package/dist/service/observer/status/buildModuleNodes/readTreeFile/countPlanSteps/index.js +38 -0
- package/dist/service/observer/status/buildModuleNodes/readTreeFile/index.d.ts +12 -0
- package/dist/service/observer/status/buildModuleNodes/readTreeFile/index.js +73 -0
- package/dist/service/observer/status/buildModuleNodes/readTreeFile/workStatuses/index.d.ts +11 -0
- package/dist/service/observer/status/buildModuleNodes/readTreeFile/workStatuses/index.js +7 -0
- package/dist/service/observer/status/buildRails/collectPipelineEvents/index.d.ts +15 -0
- package/dist/service/observer/status/buildRails/collectPipelineEvents/index.js +44 -0
- package/dist/service/observer/status/buildRails/index.d.ts +18 -0
- package/dist/service/observer/status/buildRails/index.js +62 -0
- package/dist/service/observer/status/buildRails/isOutside/index.d.ts +11 -0
- package/dist/service/observer/status/buildRails/isOutside/index.js +13 -0
- package/dist/service/observer/status/buildRails/judgeStage/index.d.ts +18 -0
- package/dist/service/observer/status/buildRails/judgeStage/index.js +40 -0
- package/dist/service/observer/status/findRunningWork/index.d.ts +18 -0
- package/dist/service/observer/status/findRunningWork/index.js +73 -0
- package/dist/service/observer/status/findWaitingFiles/index.d.ts +15 -0
- package/dist/service/observer/status/findWaitingFiles/index.js +80 -0
- package/dist/service/observer/status/foldSessions/index.d.ts +12 -0
- package/dist/service/observer/status/foldSessions/index.js +54 -0
- package/dist/service/observer/status/index.d.ts +14 -0
- package/dist/service/observer/status/index.js +84 -0
- package/dist/service/observer/status/listWorkFiles/index.d.ts +8 -0
- package/dist/service/observer/status/listWorkFiles/index.js +18 -0
- package/dist/service/observer/status/readSessionRecord/index.d.ts +9 -0
- package/dist/service/observer/status/readSessionRecord/index.js +58 -0
- package/dist/service/observer/status/shared/findCurrentPipeline/index.d.ts +18 -0
- package/dist/service/observer/status/shared/findCurrentPipeline/index.js +29 -0
- package/dist/service/observer/status/shared/findOpenPhase/index.d.ts +24 -0
- package/dist/service/observer/status/shared/findOpenPhase/index.js +47 -0
- package/dist/service/observer/status/shared/normalizeProjectPath/index.d.ts +10 -0
- package/dist/service/observer/status/shared/normalizeProjectPath/index.js +17 -0
- package/dist/service/observer/status/shared/phaseLabels/index.d.ts +19 -0
- package/dist/service/observer/status/shared/phaseLabels/index.js +19 -0
- package/dist/service/observer/status/shared/toNodeFolder/index.d.ts +6 -0
- package/dist/service/observer/status/shared/toNodeFolder/index.js +13 -0
- package/dist/service/observer/status/types/index.d.ts +240 -0
- package/dist/service/observer/status/types/index.js +1 -0
- package/dist/service/parseBrainAide/extractMarkerSections/findStructuralFault/index.d.ts +15 -0
- package/dist/service/parseBrainAide/extractMarkerSections/findStructuralFault/index.js +58 -0
- package/dist/service/parseBrainAide/extractMarkerSections/findUnknownMarker/index.d.ts +17 -0
- package/dist/service/parseBrainAide/extractMarkerSections/findUnknownMarker/index.js +52 -0
- package/dist/service/parseBrainAide/extractMarkerSections/index.d.ts +18 -0
- package/dist/service/parseBrainAide/extractMarkerSections/index.js +35 -0
- package/dist/service/parseBrainAide/extractMarkerSections/locateMarkers/index.d.ts +9 -0
- package/dist/service/parseBrainAide/extractMarkerSections/locateMarkers/index.js +30 -0
- package/dist/service/parseBrainAide/extractMarkerSections/slicePresentSections/index.d.ts +18 -0
- package/dist/service/parseBrainAide/extractMarkerSections/slicePresentSections/index.js +24 -0
- package/dist/service/parseBrainAide/extractMarkerSections/sliceSections/index.d.ts +12 -0
- package/dist/service/parseBrainAide/extractMarkerSections/sliceSections/index.js +19 -0
- package/dist/service/parseBrainAide/index.d.ts +113 -0
- package/dist/service/parseBrainAide/index.js +248 -0
- package/dist/service/parseBrainAide/parseKanbanField/index.d.ts +21 -0
- package/dist/service/parseBrainAide/parseKanbanField/index.js +56 -0
- package/dist/startServer/index.d.ts +7 -0
- package/dist/startServer/index.js +459 -0
- package/dist/tools/brain/composeOutdatedRemediation/index.d.ts +12 -0
- package/dist/tools/brain/composeOutdatedRemediation/index.js +24 -0
- package/dist/tools/brain/index.d.ts +94 -0
- package/dist/tools/brain/index.js +113 -0
- package/dist/tools/brain/listContract/index.d.ts +10 -0
- package/dist/tools/brain/listContract/index.js +14 -0
- package/dist/tools/brain/readTemplateSection/index.d.ts +17 -0
- package/dist/tools/brain/readTemplateSection/index.js +26 -0
- package/dist/tools/brain/readTemplateSection/readTemplateLauncher/index.d.ts +11 -0
- package/dist/tools/brain/readTemplateSection/readTemplateLauncher/index.js +22 -0
- package/dist/tools/brain/sectionPurpose/index.d.ts +10 -0
- package/dist/tools/brain/sectionPurpose/index.js +15 -0
- package/dist/tools/brain/selectSection/index.d.ts +14 -0
- package/dist/tools/brain/selectSection/index.js +19 -0
- package/dist/tools/brain/validateDraft/composeDraftVerdict/index.d.ts +11 -0
- package/dist/tools/brain/validateDraft/composeDraftVerdict/index.js +22 -0
- package/dist/tools/brain/validateDraft/index.d.ts +13 -0
- package/dist/tools/brain/validateDraft/index.js +43 -0
- package/dist/tools/brain/validateDraft/readDraft/index.d.ts +19 -0
- package/dist/tools/brain/validateDraft/readDraft/index.js +19 -0
- package/dist/tools/brain/validateDraft/resolveDraftPath/index.d.ts +21 -0
- package/dist/tools/brain/validateDraft/resolveDraftPath/index.js +34 -0
- package/dist/tools/cleanup/checkPreconditions/index.d.ts +20 -0
- package/dist/tools/cleanup/checkPreconditions/index.js +94 -0
- package/dist/tools/cleanup/formatReport/index.d.ts +12 -0
- package/dist/tools/cleanup/formatReport/index.js +94 -0
- package/dist/tools/cleanup/index.d.ts +25 -0
- package/dist/tools/cleanup/index.js +53 -0
- package/dist/tools/cleanup/judgeEphemeral/index.d.ts +37 -0
- package/dist/tools/cleanup/judgeEphemeral/index.js +47 -0
- package/dist/tools/cleanup/locateEphemerals/index.d.ts +16 -0
- package/dist/tools/cleanup/locateEphemerals/index.js +27 -0
- package/dist/tools/cleanup/removeEphemerals/index.d.ts +19 -0
- package/dist/tools/cleanup/removeEphemerals/index.js +27 -0
- package/dist/tools/cleanup/resolveModule/index.d.ts +20 -0
- package/dist/tools/cleanup/resolveModule/index.js +35 -0
- package/dist/tools/discover/buildAncestorChain/index.d.ts +22 -0
- package/dist/tools/discover/buildAncestorChain/index.js +108 -0
- package/dist/tools/discover/buildTree/index.d.ts +10 -0
- package/dist/tools/discover/buildTree/index.js +64 -0
- package/dist/tools/discover/index.d.ts +21 -0
- package/dist/tools/discover/index.js +50 -0
- package/dist/tools/frontmatter/checkCompletion/index.d.ts +13 -0
- package/dist/tools/frontmatter/checkCompletion/index.js +51 -0
- package/dist/tools/frontmatter/checkTransition/index.d.ts +21 -0
- package/dist/tools/frontmatter/checkTransition/index.js +34 -0
- package/dist/tools/frontmatter/classifyAideFile/index.d.ts +8 -0
- package/dist/tools/frontmatter/classifyAideFile/index.js +25 -0
- package/dist/tools/frontmatter/formatResult/index.d.ts +11 -0
- package/dist/tools/frontmatter/formatResult/index.js +104 -0
- package/dist/tools/frontmatter/governedFields/index.d.ts +31 -0
- package/dist/tools/frontmatter/governedFields/index.js +31 -0
- package/dist/tools/frontmatter/index.d.ts +27 -0
- package/dist/tools/frontmatter/index.js +163 -0
- package/dist/tools/frontmatter/readGovernedValue/index.d.ts +16 -0
- package/dist/tools/frontmatter/readGovernedValue/index.js +159 -0
- package/dist/tools/frontmatter/resolveTarget/index.d.ts +23 -0
- package/dist/tools/frontmatter/resolveTarget/index.js +30 -0
- package/dist/tools/frontmatter/rewriteFieldLine/index.d.ts +18 -0
- package/dist/tools/frontmatter/rewriteFieldLine/index.js +16 -0
- package/dist/tools/frontmatter/types/index.d.ts +134 -0
- package/dist/tools/frontmatter/types/index.js +1 -0
- package/dist/tools/info/index.d.ts +40 -0
- package/dist/tools/info/index.js +60 -0
- package/dist/tools/info/resolveBehind/fetchPublishedVersions/index.d.ts +10 -0
- package/dist/tools/info/resolveBehind/fetchPublishedVersions/index.js +34 -0
- package/dist/tools/info/resolveBehind/index.d.ts +12 -0
- package/dist/tools/info/resolveBehind/index.js +44 -0
- package/dist/tools/info/resolveBehind/listSkippedVersions/index.d.ts +7 -0
- package/dist/tools/info/resolveBehind/listSkippedVersions/index.js +21 -0
- package/dist/tools/info/resolveBehind/readAideLaunchMode/index.d.ts +8 -0
- package/dist/tools/info/resolveBehind/readAideLaunchMode/index.js +24 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/fetchChangelog/index.d.ts +9 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/fetchChangelog/index.js +23 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/index.d.ts +7 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/index.js +16 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/index.d.ts +7 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/index.js +21 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/readReleaseBullets/index.d.ts +9 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/readReleaseBullets/index.js +50 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/toOneLine/index.d.ts +6 -0
- package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/toOneLine/index.js +24 -0
- package/dist/tools/info/resolveOutdated/detectStaleHooks/index.d.ts +17 -0
- package/dist/tools/info/resolveOutdated/detectStaleHooks/index.js +28 -0
- package/dist/tools/info/resolveOutdated/index.d.ts +13 -0
- package/dist/tools/info/resolveOutdated/index.js +18 -0
- package/dist/tools/info/resolveOutdated/listStaleFiles/index.d.ts +7 -0
- package/dist/tools/info/resolveOutdated/listStaleFiles/index.js +30 -0
- package/dist/tools/inspect/index.d.ts +24 -0
- package/dist/tools/inspect/index.js +47 -0
- package/dist/tools/inspect/parseSymbols/index.d.ts +21 -0
- package/dist/tools/inspect/parseSymbols/index.js +213 -0
- package/dist/tools/inspect/walk/index.d.ts +8 -0
- package/dist/tools/inspect/walk/index.js +31 -0
- package/dist/tools/observer/endSession/formatReply/index.d.ts +9 -0
- package/dist/tools/observer/endSession/formatReply/index.js +23 -0
- package/dist/tools/observer/endSession/index.d.ts +21 -0
- package/dist/tools/observer/endSession/index.js +31 -0
- package/dist/tools/observer/endSession/types/index.d.ts +10 -0
- package/dist/tools/observer/endSession/types/index.js +1 -0
- package/dist/tools/observer/event/formatReply/index.d.ts +10 -0
- package/dist/tools/observer/event/formatReply/index.js +28 -0
- package/dist/tools/observer/event/index.d.ts +9 -0
- package/dist/tools/observer/event/index.js +11 -0
- package/dist/tools/observer/shared/tryBind/index.d.ts +13 -0
- package/dist/tools/observer/shared/tryBind/index.js +31 -0
- package/dist/tools/observer/start/awaitObserver/index.d.ts +16 -0
- package/dist/tools/observer/start/awaitObserver/index.js +75 -0
- package/dist/tools/observer/start/awaitOwnLink/index.d.ts +12 -0
- package/dist/tools/observer/start/awaitOwnLink/index.js +24 -0
- package/dist/tools/observer/start/checkProject/index.d.ts +18 -0
- package/dist/tools/observer/start/checkProject/index.js +45 -0
- package/dist/tools/observer/start/findOpenSessions/index.d.ts +18 -0
- package/dist/tools/observer/start/findOpenSessions/index.js +53 -0
- package/dist/tools/observer/start/formatReply/describeOpenSession/index.d.ts +7 -0
- package/dist/tools/observer/start/formatReply/describeOpenSession/index.js +13 -0
- package/dist/tools/observer/start/formatReply/index.d.ts +6 -0
- package/dist/tools/observer/start/formatReply/index.js +43 -0
- package/dist/tools/observer/start/index.d.ts +27 -0
- package/dist/tools/observer/start/index.js +87 -0
- package/dist/tools/observer/start/launchObserver/index.d.ts +17 -0
- package/dist/tools/observer/start/launchObserver/index.js +23 -0
- package/dist/tools/observer/start/markClosedSessions/index.d.ts +16 -0
- package/dist/tools/observer/start/markClosedSessions/index.js +49 -0
- package/dist/tools/observer/start/moveLegacyHistory/index.d.ts +10 -0
- package/dist/tools/observer/start/moveLegacyHistory/index.js +26 -0
- package/dist/tools/observer/start/types/index.d.ts +82 -0
- package/dist/tools/observer/start/types/index.js +1 -0
- package/dist/tools/observer/start/walkPorts/index.d.ts +15 -0
- package/dist/tools/observer/start/walkPorts/index.js +17 -0
- package/dist/tools/read/index.d.ts +15 -0
- package/dist/tools/read/index.js +79 -0
- package/dist/tools/scaffold/hasIntentSpec/index.d.ts +7 -0
- package/dist/tools/scaffold/hasIntentSpec/index.js +9 -0
- package/dist/tools/scaffold/index.d.ts +33 -0
- package/dist/tools/scaffold/index.js +216 -0
- package/dist/tools/scaffold/placeRootIntent/index.d.ts +17 -0
- package/dist/tools/scaffold/placeRootIntent/index.js +24 -0
- package/dist/tools/scaffold/resolveSpecFolder/index.d.ts +17 -0
- package/dist/tools/scaffold/resolveSpecFolder/index.js +21 -0
- package/dist/tools/scaffold/sessionTemplate/index.d.ts +9 -0
- package/dist/tools/scaffold/sessionTemplate/index.js +40 -0
- package/dist/tools/scaffold/writeIfAbsent/index.d.ts +10 -0
- package/dist/tools/scaffold/writeIfAbsent/index.js +21 -0
- package/dist/tools/upgrade/applyFiles/index.d.ts +49 -0
- package/dist/tools/upgrade/applyFiles/index.js +91 -0
- package/dist/tools/upgrade/applyFiles/movePin/changesOnlyThePin/index.d.ts +11 -0
- package/dist/tools/upgrade/applyFiles/movePin/changesOnlyThePin/index.js +23 -0
- package/dist/tools/upgrade/applyFiles/movePin/index.d.ts +14 -0
- package/dist/tools/upgrade/applyFiles/movePin/index.js +56 -0
- package/dist/tools/upgrade/applyFiles/movePin/locatePinToken/index.d.ts +16 -0
- package/dist/tools/upgrade/applyFiles/movePin/locatePinToken/index.js +30 -0
- package/dist/tools/upgrade/applyFiles/switchToGlobal/changesOnlyTheLaunch/index.d.ts +12 -0
- package/dist/tools/upgrade/applyFiles/switchToGlobal/changesOnlyTheLaunch/index.js +27 -0
- package/dist/tools/upgrade/applyFiles/switchToGlobal/index.d.ts +16 -0
- package/dist/tools/upgrade/applyFiles/switchToGlobal/index.js +78 -0
- package/dist/tools/upgrade/applyFiles/switchToGlobal/locateLaunchTokens/index.d.ts +21 -0
- package/dist/tools/upgrade/applyFiles/switchToGlobal/locateLaunchTokens/index.js +36 -0
- package/dist/tools/upgrade/brainCategory/applyChange/index.d.ts +21 -0
- package/dist/tools/upgrade/brainCategory/applyChange/index.js +64 -0
- package/dist/tools/upgrade/brainCategory/applyChange/yieldsExpectedConfig/index.d.ts +12 -0
- package/dist/tools/upgrade/brainCategory/applyChange/yieldsExpectedConfig/index.js +25 -0
- package/dist/tools/upgrade/brainCategory/index.d.ts +19 -0
- package/dist/tools/upgrade/brainCategory/index.js +28 -0
- package/dist/tools/upgrade/brainCategory/insertMissingSections/index.d.ts +15 -0
- package/dist/tools/upgrade/brainCategory/insertMissingSections/index.js +62 -0
- package/dist/tools/upgrade/brainCategory/insertMissingSections/spliceRepairs/index.d.ts +25 -0
- package/dist/tools/upgrade/brainCategory/insertMissingSections/spliceRepairs/index.js +36 -0
- package/dist/tools/upgrade/brainCategory/previewChange/index.d.ts +16 -0
- package/dist/tools/upgrade/brainCategory/previewChange/index.js +61 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/index.d.ts +20 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/index.js +54 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/index.d.ts +19 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/index.js +61 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/locateArgLines/index.d.ts +11 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/locateArgLines/index.js +49 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/renderArgLine/index.d.ts +6 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/renderArgLine/index.js +8 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherCommand/index.d.ts +13 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherCommand/index.js +27 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildSectionOffer/index.d.ts +19 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildSectionOffer/index.js +58 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/index.d.ts +13 -0
- package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/index.js +19 -0
- package/dist/tools/upgrade/brainCategory/shared/changedSinceDiff/index.d.ts +3 -0
- package/dist/tools/upgrade/brainCategory/shared/changedSinceDiff/index.js +4 -0
- package/dist/tools/upgrade/brainCategory/shared/detectLineEnding/index.d.ts +6 -0
- package/dist/tools/upgrade/brainCategory/shared/detectLineEnding/index.js +9 -0
- package/dist/tools/upgrade/brainCategory/shared/hashBytes/index.d.ts +7 -0
- package/dist/tools/upgrade/brainCategory/shared/hashBytes/index.js +10 -0
- package/dist/tools/upgrade/brainCategory/shared/invalidResultInstructions/index.d.ts +5 -0
- package/dist/tools/upgrade/brainCategory/shared/invalidResultInstructions/index.js +7 -0
- package/dist/tools/upgrade/brainCategory/shared/locateFrontmatter/index.d.ts +19 -0
- package/dist/tools/upgrade/brainCategory/shared/locateFrontmatter/index.js +27 -0
- package/dist/tools/upgrade/brainCategory/shared/locateSection/index.d.ts +16 -0
- package/dist/tools/upgrade/brainCategory/shared/locateSection/index.js +19 -0
- package/dist/tools/upgrade/brainCategory/shared/readBrainConfig/index.d.ts +12 -0
- package/dist/tools/upgrade/brainCategory/shared/readBrainConfig/index.js +22 -0
- package/dist/tools/upgrade/brainCategory/shared/readChangeBefore/index.d.ts +13 -0
- package/dist/tools/upgrade/brainCategory/shared/readChangeBefore/index.js +17 -0
- package/dist/tools/upgrade/brainCategory/shared/refuseUnusableConfig/index.d.ts +13 -0
- package/dist/tools/upgrade/brainCategory/shared/refuseUnusableConfig/index.js +30 -0
- package/dist/tools/upgrade/brainCategory/shared/toLineEnding/index.d.ts +9 -0
- package/dist/tools/upgrade/brainCategory/shared/toLineEnding/index.js +8 -0
- package/dist/tools/upgrade/buildVersionsMeta/assertFullClone/index.d.ts +14 -0
- package/dist/tools/upgrade/buildVersionsMeta/assertFullClone/index.js +27 -0
- package/dist/tools/upgrade/buildVersionsMeta/enumerateArtifacts/index.d.ts +23 -0
- package/dist/tools/upgrade/buildVersionsMeta/enumerateArtifacts/index.js +62 -0
- package/dist/tools/upgrade/buildVersionsMeta/index.d.ts +17 -0
- package/dist/tools/upgrade/buildVersionsMeta/index.js +26 -0
- package/dist/tools/upgrade/checkBrainConfig/index.d.ts +29 -0
- package/dist/tools/upgrade/checkBrainConfig/index.js +67 -0
- package/dist/tools/upgrade/checkHooksConfig/index.d.ts +30 -0
- package/dist/tools/upgrade/checkHooksConfig/index.js +72 -0
- package/dist/tools/upgrade/checkIdeConfig/index.d.ts +24 -0
- package/dist/tools/upgrade/checkIdeConfig/index.js +134 -0
- package/dist/tools/upgrade/checkMcpConfig/index.d.ts +37 -0
- package/dist/tools/upgrade/checkMcpConfig/index.js +172 -0
- package/dist/tools/upgrade/checkMcpConfig/isCanonicalGlobalAideEntry/index.d.ts +10 -0
- package/dist/tools/upgrade/checkMcpConfig/isCanonicalGlobalAideEntry/index.js +17 -0
- package/dist/tools/upgrade/checkMcpConfig/isPinBehind/index.d.ts +9 -0
- package/dist/tools/upgrade/checkMcpConfig/isPinBehind/index.js +18 -0
- package/dist/tools/upgrade/checkReference/index.d.ts +12 -0
- package/dist/tools/upgrade/checkReference/index.js +28 -0
- package/dist/tools/upgrade/compareFile/index.d.ts +12 -0
- package/dist/tools/upgrade/compareFile/index.js +24 -0
- package/dist/tools/upgrade/index.d.ts +51 -0
- package/dist/tools/upgrade/index.js +216 -0
- package/dist/tools/upgrade/resolveProjectRoot/index.d.ts +7 -0
- package/dist/tools/upgrade/resolveProjectRoot/index.js +12 -0
- package/dist/tools/upgrade/shared/readAidePin/index.d.ts +9 -0
- package/dist/tools/upgrade/shared/readAidePin/index.js +24 -0
- package/dist/tools/upgrade/spliceStub/index.d.ts +13 -0
- package/dist/tools/upgrade/spliceStub/index.js +91 -0
- package/dist/tools/validate/checkAlignment/index.d.ts +15 -0
- package/dist/tools/validate/checkAlignment/index.js +42 -0
- package/dist/tools/validate/checkPlanSpec/index.d.ts +9 -0
- package/dist/tools/validate/checkPlanSpec/index.js +27 -0
- package/dist/tools/validate/index.d.ts +20 -0
- package/dist/tools/validate/index.js +91 -0
- package/dist/types/index.d.ts +1366 -0
- package/dist/types/index.js +1 -0
- package/dist/util/baseName/index.d.ts +6 -0
- package/dist/util/baseName/index.js +9 -0
- package/dist/util/buildTreeData/index.d.ts +7 -0
- package/dist/util/buildTreeData/index.js +51 -0
- package/dist/util/checkboxPattern/index.d.ts +9 -0
- package/dist/util/checkboxPattern/index.js +9 -0
- package/dist/util/classify/holdsCode/index.d.ts +6 -0
- package/dist/util/classify/holdsCode/index.js +31 -0
- package/dist/util/classify/holdsCode/isCodeFile/index.d.ts +2 -0
- package/dist/util/classify/holdsCode/isCodeFile/index.js +11 -0
- package/dist/util/classify/index.d.ts +17 -0
- package/dist/util/classify/index.js +163 -0
- package/dist/util/countCheckboxes/index.d.ts +16 -0
- package/dist/util/countCheckboxes/index.js +29 -0
- package/dist/util/describeError/index.d.ts +7 -0
- package/dist/util/describeError/index.js +7 -0
- package/dist/util/firstLine/index.d.ts +10 -0
- package/dist/util/firstLine/index.js +17 -0
- package/dist/util/isProcessRunning/index.d.ts +10 -0
- package/dist/util/isProcessRunning/index.js +22 -0
- package/dist/util/isVersionBehind/index.d.ts +6 -0
- package/dist/util/isVersionBehind/index.js +23 -0
- package/dist/util/parseBody/index.d.ts +7 -0
- package/dist/util/parseBody/index.js +43 -0
- package/dist/util/parseFrontmatter/index.d.ts +14 -0
- package/dist/util/parseFrontmatter/index.js +66 -0
- package/dist/util/readPackageVersion/index.d.ts +6 -0
- package/dist/util/readPackageVersion/index.js +24 -0
- package/dist/util/runtimePaths/create/index.d.ts +11 -0
- package/dist/util/runtimePaths/create/index.js +17 -0
- package/dist/util/runtimePaths/createRoot/index.d.ts +7 -0
- package/dist/util/runtimePaths/createRoot/index.js +13 -0
- package/dist/util/runtimePaths/isProjectKey/index.d.ts +7 -0
- package/dist/util/runtimePaths/isProjectKey/index.js +18 -0
- package/dist/util/runtimePaths/listProjectFolders/index.d.ts +10 -0
- package/dist/util/runtimePaths/listProjectFolders/index.js +28 -0
- package/dist/util/runtimePaths/moveLegacyRoot/compareFiles/index.d.ts +11 -0
- package/dist/util/runtimePaths/moveLegacyRoot/compareFiles/index.js +27 -0
- package/dist/util/runtimePaths/moveLegacyRoot/index.d.ts +13 -0
- package/dist/util/runtimePaths/moveLegacyRoot/index.js +85 -0
- package/dist/util/runtimePaths/moveLegacyRoot/moveLog/index.d.ts +15 -0
- package/dist/util/runtimePaths/moveLegacyRoot/moveLog/index.js +47 -0
- package/dist/util/runtimePaths/moveLegacyRoot/moveRecord/index.d.ts +13 -0
- package/dist/util/runtimePaths/moveLegacyRoot/moveRecord/index.js +29 -0
- package/dist/util/runtimePaths/moveLegacyRoot/publishCopy/index.d.ts +13 -0
- package/dist/util/runtimePaths/moveLegacyRoot/publishCopy/index.js +38 -0
- package/dist/util/runtimePaths/moveLegacyRoot/removeEmptyFolders/index.d.ts +8 -0
- package/dist/util/runtimePaths/moveLegacyRoot/removeEmptyFolders/index.js +11 -0
- package/dist/util/runtimePaths/moveLegacyRoot/resolveLegacyRoot/index.d.ts +9 -0
- package/dist/util/runtimePaths/moveLegacyRoot/resolveLegacyRoot/index.js +23 -0
- package/dist/util/runtimePaths/moveLegacyRoot/shared/isGone/index.d.ts +4 -0
- package/dist/util/runtimePaths/moveLegacyRoot/shared/isGone/index.js +9 -0
- package/dist/util/runtimePaths/moveLegacyRoot/shared/unlinkIfPresent/index.d.ts +4 -0
- package/dist/util/runtimePaths/moveLegacyRoot/shared/unlinkIfPresent/index.js +8 -0
- package/dist/util/runtimePaths/resolve/index.d.ts +9 -0
- package/dist/util/runtimePaths/resolve/index.js +31 -0
- package/dist/util/runtimePaths/resolve/nameProjectFolder/index.d.ts +10 -0
- package/dist/util/runtimePaths/resolve/nameProjectFolder/index.js +23 -0
- package/dist/util/runtimePaths/resolveArchivedLog/index.d.ts +9 -0
- package/dist/util/runtimePaths/resolveArchivedLog/index.js +19 -0
- package/dist/util/runtimePaths/resolveEndedMark/index.d.ts +11 -0
- package/dist/util/runtimePaths/resolveEndedMark/index.js +21 -0
- package/dist/util/runtimePaths/resolveEventLog/index.d.ts +10 -0
- package/dist/util/runtimePaths/resolveEventLog/index.js +20 -0
- package/dist/util/runtimePaths/resolvePresenceFile/index.d.ts +11 -0
- package/dist/util/runtimePaths/resolvePresenceFile/index.js +21 -0
- package/dist/util/runtimePaths/resolveRoot/index.d.ts +8 -0
- package/dist/util/runtimePaths/resolveRoot/index.js +13 -0
- package/dist/util/runtimePaths/resolveSessionLog/index.d.ts +11 -0
- package/dist/util/runtimePaths/resolveSessionLog/index.js +21 -0
- package/dist/util/runtimePaths/shared/isSessionId/index.d.ts +8 -0
- package/dist/util/runtimePaths/shared/isSessionId/index.js +10 -0
- package/dist/util/runtimePaths/shared/pickPathModule/index.d.ts +8 -0
- package/dist/util/runtimePaths/shared/pickPathModule/index.js +11 -0
- package/dist/util/runtimePaths/shared/projectKeyHash/index.d.ts +7 -0
- package/dist/util/runtimePaths/shared/projectKeyHash/index.js +7 -0
- package/dist/util/runtimePaths/shared/resolveAppDataRoot/index.d.ts +12 -0
- package/dist/util/runtimePaths/shared/resolveAppDataRoot/index.js +32 -0
- package/dist/util/runtimePaths/shared/runtimeNames/index.d.ts +20 -0
- package/dist/util/runtimePaths/shared/runtimeNames/index.js +20 -0
- package/dist/util/runtimePaths/types/index.d.ts +55 -0
- package/dist/util/runtimePaths/types/index.js +1 -0
- package/dist/util/scan/index.d.ts +12 -0
- package/dist/util/scan/index.js +228 -0
- package/dist/util/sessionQuietLimit/index.d.ts +9 -0
- package/dist/util/sessionQuietLimit/index.js +9 -0
- package/dist/util/skipDirs/index.d.ts +7 -0
- package/dist/util/skipDirs/index.js +15 -0
- package/dist/util/timeUnits/index.d.ts +15 -0
- package/dist/util/timeUnits/index.js +15 -0
- package/dist/versions.json +330 -0
- package/package.json +83 -5
|
@@ -0,0 +1,1449 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: obsidian
|
|
3
|
+
mcpServerConfig:
|
|
4
|
+
command: mcpvault
|
|
5
|
+
args:
|
|
6
|
+
- 'D:\Code\Me\my-brain'
|
|
7
|
+
kanban:
|
|
8
|
+
source: folder
|
|
9
|
+
path: D:\Code\Me\my-brain\kanban
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- aide-orientation-start -->
|
|
13
|
+
|
|
14
|
+
Your brain is an Obsidian-backed knowledge store. Use `mcp__brain__read_note` to
|
|
15
|
+
open files by their brain-relative path. Use `mcp__brain__search_notes` for
|
|
16
|
+
keyword queries across every note in the store. The store's entry-point
|
|
17
|
+
artifacts include the coding-playbook index at `coding-playbook/coding-playbook.md`, the
|
|
18
|
+
study-playbook navigation guide at `coding-playbook/study-playbook.md`, the
|
|
19
|
+
update-playbook maintenance guide at `coding-playbook/update-playbook.md`, and the
|
|
20
|
+
research index at `research/research.md`. Start from the relevant entry-point for
|
|
21
|
+
your task, follow the references it lists to deepen context, and check those
|
|
22
|
+
files' references too. Stay in scope; don't follow references into unrelated topics.
|
|
23
|
+
|
|
24
|
+
Project work is tracked as kanban tasks in per-project folders under `kanban/<project>/`, one subfolder per column. Before any task operation, read the kanban index at `kanban/kanban.md`, then read only the guide it links for the operation you are performing.
|
|
25
|
+
|
|
26
|
+
<!-- aide-orientation-end -->
|
|
27
|
+
|
|
28
|
+
<!-- aide-config-start -->
|
|
29
|
+
|
|
30
|
+
You are completing the wiring of an Obsidian brain. The required value is the
|
|
31
|
+
absolute path to the user's Obsidian vault, to be placed at the last entry of
|
|
32
|
+
`mcpServerConfig.args` in `brain.aide`. YAML null at that position is the
|
|
33
|
+
unwired-state signal — it means the brain path has not yet been filled in.
|
|
34
|
+
|
|
35
|
+
The frontmatter also carries the board location the observer reads to show this project's kanban board: `kanban.source` is `folder` and `kanban.path` is the absolute path of the vault's `kanban` folder. YAML null at `kanban.path` means it has not been filled in yet. The brain works without it; only the observer's board needs it.
|
|
36
|
+
|
|
37
|
+
Argument shape (Obsidian only): `/aide:brain config [<absolute-path>]`.
|
|
38
|
+
|
|
39
|
+
This flow has two paths that NEVER overlap in the same session: WIRING and
|
|
40
|
+
SEEDING. Wiring edits `brain.aide` and runs sync, then STOPS — the brain MCP
|
|
41
|
+
server only loads at session start, so any newly-wired brain entry is
|
|
42
|
+
unreachable until the user restarts Claude Code. Seeding writes the
|
|
43
|
+
entry-point artifacts via the brain MCP tools, which only works when the brain
|
|
44
|
+
is already wired AND the session has the brain MCP server loaded — i.e., on a
|
|
45
|
+
run AFTER the wiring restart.
|
|
46
|
+
|
|
47
|
+
1. **Read `brain.aide` now and quote the last entry of `mcpServerConfig.args`.**
|
|
48
|
+
Open `brain.aide` and locate the final entry in the `mcpServerConfig.args`
|
|
49
|
+
list. Quote the literal value you observe — either YAML null (an empty entry,
|
|
50
|
+
written as a bare dash with no value) or a string. **Do not proceed without
|
|
51
|
+
quoting it.** YAML null means un-wired; any string value means already wired.
|
|
52
|
+
Also quote `kanban.path`, or say that the frontmatter has no `kanban` field.
|
|
53
|
+
|
|
54
|
+
2. Decide which flow runs:
|
|
55
|
+
- `$ARGUMENTS` non-empty → **WIRING** flow. Use `$ARGUMENTS` as the target
|
|
56
|
+
path (initial wiring or re-point). Proceed to Step 3.
|
|
57
|
+
- `$ARGUMENTS` empty AND last entry is YAML null → **WIRING** flow. Ask the
|
|
58
|
+
user where their vault lives via `AskUserQuestion` with `aide_info.brain.hints`
|
|
59
|
+
as suggestions plus a "Different location" entry. Use the answer as the
|
|
60
|
+
target path. Proceed to Step 3.
|
|
61
|
+
- `$ARGUMENTS` empty AND last entry is a string path → **SEEDING** flow.
|
|
62
|
+
The brain is already wired; skip Steps 3 and 4 entirely and jump to Step 5.
|
|
63
|
+
Before seeding, if the launcher runs through `npx` (directly or after `cmd /c`), offer with `AskUserQuestion` to switch it to the global command, saying that npx launches time out at session start. On yes, install the package globally (`npm i -g @bitbonsai/mcpvault` via Bash); if the install exits non-zero, say so and continue to seeding unchanged. Then preview and apply `aide_upgrade({ category: "brain", brainChange: "launcher" })` (never edit the launcher by hand), run Step 4 (sync) and stop as the WIRING flow does. On no, continue to seeding unchanged.
|
|
64
|
+
Also before seeding, if the frontmatter has no `kanban` field or `kanban.path` is YAML null, offer once with `AskUserQuestion` to fill in the board location so the observer can show this project's kanban board. Suggest the vault path you quoted in Step 1 joined with `kanban` (using that path's own separator), plus a "Different location" entry and a "Not now" entry. On a location, write the field as Step 3 describes, re-read the frontmatter to confirm `kanban.path` is that absolute path, and continue to seeding; no sync is needed, because the field is not part of the brain's launcher. On "Not now", continue to seeding unchanged.
|
|
65
|
+
|
|
66
|
+
### WIRING flow — Steps 3, 4 (then STOP at end of 4)
|
|
67
|
+
|
|
68
|
+
3. Edit `brain.aide` — replace the null at the last entry of `mcpServerConfig.args`
|
|
69
|
+
with the absolute path.
|
|
70
|
+
|
|
71
|
+
In the same edit, fill the board location from that same path: set `kanban.path` to the vault path joined with `kanban`, using the path's own separator (for `D:\Vaults\brain` that is `D:\Vaults\brain\kanban`), written unquoted. If the frontmatter has no `kanban` field, add it right after the `mcpServerConfig` block as `kanban:` with the indented lines `source: folder` and `path: <vault path>` + separator + `kanban`. Fill it only from the vault path the user gave for this wiring; never guess it from anything else. Then re-read the frontmatter and confirm `kanban.path` is that absolute path.
|
|
72
|
+
|
|
73
|
+
Then check how this config launches the brain. If the launched program is `mcpvault` (the file name of `mcpServerConfig.command`, or of the entry after `/c` when the command is `cmd`, with or without a directory path or a `.cmd` / `.exe` extension), the brain launches from a global install. In that case, run `npm ls -g @bitbonsai/mcpvault --depth=0` via Bash. If the package is not listed, tell the user you are installing it and run `npm i -g @bitbonsai/mcpvault` via Bash. If the install exits non-zero, say so plainly and STOP without running sync: a launcher whose command is not installed cannot start. If the launcher runs through `npx` instead, offer the switch to the global command as described in step 2 before running sync. A global launcher given by absolute path is valid; never rewrite it for being a path.
|
|
74
|
+
|
|
75
|
+
4. **Run sync now via Bash.** Read `.mcp.json["mcpServers"]["aide"]`, take its
|
|
76
|
+
`command` and `args`, append the literal string `"sync"`, and execute the
|
|
77
|
+
resulting command via the Bash tool. Quote the exit code. On non-zero, surface
|
|
78
|
+
stderr and stop. On exit 0:
|
|
79
|
+
|
|
80
|
+
**STOP HERE in the WIRING flow.** Do not proceed to Step 5 in the same
|
|
81
|
+
session. The brain MCP server was not loaded at session start (it did not
|
|
82
|
+
exist yet), and sync just wrote the entry; the running session cannot see
|
|
83
|
+
it. Emit this message verbatim and end the flow:
|
|
84
|
+
|
|
85
|
+
> Sync wrote the brain entry. Restart Claude Code so the brain MCP server
|
|
86
|
+
> picks up the new entry, then re-run `/aide:brain config` to seed the
|
|
87
|
+
> entry-point artifacts into your brain.
|
|
88
|
+
|
|
89
|
+
**Do not output the sync command for the user to run** — `/aide:brain config`
|
|
90
|
+
completes wiring inside the slash-command session, never by handing the user
|
|
91
|
+
a homework command.
|
|
92
|
+
|
|
93
|
+
### SEEDING flow — Step 5
|
|
94
|
+
|
|
95
|
+
5. **Seed the entry-point artifacts into the brain via the brain MCP tools.**
|
|
96
|
+
|
|
97
|
+
First verify the brain MCP write/list tools are available in this session
|
|
98
|
+
(`mcp__brain__write_note`, `mcp__brain__list_directory`, etc.). If they are
|
|
99
|
+
NOT available, the brain MCP server has not been loaded in this session. Emit
|
|
100
|
+
this message verbatim and STOP:
|
|
101
|
+
|
|
102
|
+
> The brain MCP server is not loaded in this session. Restart Claude Code,
|
|
103
|
+
> then re-run `/aide:brain config` to seed the entry-point artifacts.
|
|
104
|
+
|
|
105
|
+
**Never fall back to native filesystem tools** (Read, Write, Bash `ls`,
|
|
106
|
+
Glob, etc.) to inspect or write the brain. The brain is a backend-agnostic
|
|
107
|
+
abstraction; the filesystem is just one possible backing store. Other backends
|
|
108
|
+
(hosted, Mem0, etc.) have no local filesystem at all. If the brain MCP tools
|
|
109
|
+
are unreachable, the correct response is to STOP and ask the user to restart,
|
|
110
|
+
never to improvise via the filesystem.
|
|
111
|
+
|
|
112
|
+
When the brain MCP tools ARE available, read the section list: call `aide_init` with no arguments (a read-only summary call) and take `brainSummary.sections` from the step named `Brain config (brain.aide)`. For each entry whose `role` is `seed`: presence-check its `seedPath` via `mcp__brain__list_directory` (or the read tool); a missing folder means the file is absent. Skip any artifact that already exists (presence-only check — do not overwrite user-edited content). For each absent one, call `aide_brain` with `kind` set to that entry's `marker`. When `found` is true, `instructions` holds that section's bytes: drop the empty lines at their start and end and write them with `mcp__brain__write_note` at `seedPath`. When those bytes open with a `---` frontmatter block, pass that block's fields as the tool's `frontmatter` argument and only the text after its closing `---` (leading empty lines dropped) as `content`; never leave a frontmatter block inside `content`, or the file will not have real frontmatter. When `found` is false, surface `instructions` to the user and write nothing for that entry.
|
|
113
|
+
|
|
114
|
+
After the seeding loop completes, emit a brief completion summary naming
|
|
115
|
+
each artifact and whether it was seeded or already present. Do not emit a
|
|
116
|
+
restart message — the brain is fully wired and seeded; the user can now use
|
|
117
|
+
`/aide` normally.
|
|
118
|
+
|
|
119
|
+
<!-- aide-config-end -->
|
|
120
|
+
|
|
121
|
+
<!-- aide-playbook-index-start -->
|
|
122
|
+
|
|
123
|
+
# Coding Playbook
|
|
124
|
+
|
|
125
|
+
Reference for the conventions and patterns this codebase follows. Read top-down — load only the sections that apply to the current task.
|
|
126
|
+
|
|
127
|
+
## Task Routing
|
|
128
|
+
|
|
129
|
+
When loading playbook context, match the task domain to the relevant section(s). Read only what applies — do NOT load all sections.
|
|
130
|
+
|
|
131
|
+
| Task domain | Section |
|
|
132
|
+
|-------------|---------|
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## How to Use This Index
|
|
137
|
+
|
|
138
|
+
Each section links to a section hub that lists its notes with keywords. Navigate to the section relevant to your task, then drill into the specific notes you need.
|
|
139
|
+
|
|
140
|
+
### Always Read First
|
|
141
|
+
|
|
142
|
+
These notes are **required reading** for every task, regardless of which section you're working in. They define the patterns everything else builds on:
|
|
143
|
+
|
|
144
|
+
1. **[[your-conventions-note]]** — Add your naming, function ordering, and code hygiene conventions here.
|
|
145
|
+
2. **[[your-folder-structure-note]]** — Add your folder layout and progressive disclosure conventions here.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Sections
|
|
150
|
+
|
|
151
|
+
Add your top-level playbook sections here, each linked to its section hub note.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Prime Examples
|
|
156
|
+
|
|
157
|
+
Add links to reference codebases that demonstrate these patterns in practice.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Contents
|
|
162
|
+
|
|
163
|
+
<!-- aide-playbook-index-end -->
|
|
164
|
+
|
|
165
|
+
<!-- aide-study-playbook-start -->
|
|
166
|
+
|
|
167
|
+
# Study Playbook
|
|
168
|
+
|
|
169
|
+
Navigate the coding playbook hub and load only the sections relevant to the current task.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Step 1: Read the Playbook Hub
|
|
174
|
+
|
|
175
|
+
Read `coding-playbook/coding-playbook.md`.
|
|
176
|
+
|
|
177
|
+
The hub lists sections with descriptions. Match your current task domain against
|
|
178
|
+
those descriptions to identify which sections apply. Do NOT read all sections —
|
|
179
|
+
only the ones whose descriptions overlap with the work at hand.
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Step 2: Read the Relevant Section Hubs
|
|
184
|
+
|
|
185
|
+
For each matching section, read its hub note (e.g. `<section>/<section>.md`).
|
|
186
|
+
|
|
187
|
+
Section hubs list their child notes with keywords. Scan the list and identify which
|
|
188
|
+
specific child notes overlap with the task. Do NOT read every child — only the ones
|
|
189
|
+
whose keywords match the work.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Step 3: Read the Specific Child Notes
|
|
194
|
+
|
|
195
|
+
Read the child notes identified in Step 2 (e.g. `<section>/<child-note>.md`).
|
|
196
|
+
These contain the concrete patterns and code examples to follow.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Navigation Rules
|
|
201
|
+
|
|
202
|
+
- **Use the hub's link structure, not search.** Do NOT search for playbook content.
|
|
203
|
+
Searching produces fragments without context; the hub structure gives you the full
|
|
204
|
+
picture.
|
|
205
|
+
- **Read top-down.** Hub → section hub → child note. Never skip levels.
|
|
206
|
+
- **Follow wikilinks 1–2 levels deep from content notes.** Hub notes (tagged `hub` or
|
|
207
|
+
acting as section indexes) are navigation — they don't count as depth. Depth starts
|
|
208
|
+
at the first content note you land on. Example:
|
|
209
|
+
- `coding-playbook.md` (root hub) → depth 0 (navigation)
|
|
210
|
+
- `foundations/foundations.md` (section hub) → depth 0 (navigation)
|
|
211
|
+
- `foundations/conventions.md` (content note) → depth 0 (first real content)
|
|
212
|
+
- wikilink from `conventions.md` → depth 1
|
|
213
|
+
- wikilink from *that* note → depth 2
|
|
214
|
+
|
|
215
|
+
When reading any content note, look for `[[wikilinks]]`. If a linked note looks
|
|
216
|
+
relevant to the task, read it — then check *that* note's links too. Go at least
|
|
217
|
+
1–2 levels deep from the first content note in any direction where the information
|
|
218
|
+
could apply. Playbook notes cross-reference each other (e.g. a services note may
|
|
219
|
+
link to error-handling patterns, which links to API response conventions). Following
|
|
220
|
+
these links is how you build the full picture, not just a fragment.
|
|
221
|
+
- **Never re-read notes.** Before reading any note, check whether it already appears
|
|
222
|
+
in your conversation context from earlier in the session. You may return to the
|
|
223
|
+
playbook multiple times across a single workflow — do NOT re-read the playbook hub,
|
|
224
|
+
section hubs, or child notes you have already loaded. The same applies when following
|
|
225
|
+
wikilinks: skip any link whose target you have already read in this session.
|
|
226
|
+
- **Approach incrementally, not all at once.** Multi-step work (e.g. planning an
|
|
227
|
+
end-to-end feature) crosses multiple domains — types, then services, then API, then
|
|
228
|
+
client. Do NOT try to load every section upfront. Load what you need for the current
|
|
229
|
+
step. When you move to the next step and realize you're in a new domain without the
|
|
230
|
+
relevant playbook context, return to the playbook hub for that domain. The "never
|
|
231
|
+
re-read" rule keeps repeated visits cheap — you'll skip the hub and any notes already
|
|
232
|
+
loaded, and only read the new sections you actually need.
|
|
233
|
+
- **Stop when you have enough.** Within a single invocation, if the step only touches
|
|
234
|
+
one domain (e.g. just API routes), you only need that one section's notes plus
|
|
235
|
+
whatever they link to. Don't load unrelated sections "just in case."
|
|
236
|
+
|
|
237
|
+
<!-- aide-study-playbook-end -->
|
|
238
|
+
|
|
239
|
+
<!-- aide-update-playbook-start -->
|
|
240
|
+
|
|
241
|
+
# Update Playbook
|
|
242
|
+
|
|
243
|
+
Maintenance methodology for the coding playbook. The three-layer structure
|
|
244
|
+
(root hub → section hubs → child notes) and how to navigate it is described in
|
|
245
|
+
`coding-playbook/study-playbook.md`; this note covers the operations that
|
|
246
|
+
preserve it when adding, modifying, renaming, or removing entries.
|
|
247
|
+
|
|
248
|
+
## What Belongs Here
|
|
249
|
+
|
|
250
|
+
The playbook holds reusable engineering conventions and patterns — naming
|
|
251
|
+
rules, error-handling shapes, fetch patterns, schema conventions, anti-patterns,
|
|
252
|
+
testing patterns, etc. It does NOT hold project-specific context (environment,
|
|
253
|
+
business rules, in-progress feature notes), domain research, retro findings, or
|
|
254
|
+
operational runbooks. Those live in other parts of the brain. If the entry
|
|
255
|
+
isn't a rule that survives across projects, it doesn't belong here.
|
|
256
|
+
|
|
257
|
+
## Layout
|
|
258
|
+
|
|
259
|
+
The playbook lives under `coding-playbook/` with this shape:
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
coding-playbook/
|
|
263
|
+
├── coding-playbook.md ← root hub
|
|
264
|
+
├── study-playbook.md ← navigation methodology
|
|
265
|
+
├── update-playbook.md ← this note
|
|
266
|
+
├── prime-examples.md ← (optional) reference codebases
|
|
267
|
+
├── foundations/
|
|
268
|
+
│ ├── foundations.md ← section hub (navigation only)
|
|
269
|
+
│ ├── conventions.md ← child note (rules + code)
|
|
270
|
+
│ ├── tooling.md
|
|
271
|
+
│ └── anti-patterns.md
|
|
272
|
+
├── architecture/
|
|
273
|
+
│ ├── architecture.md ← section hub
|
|
274
|
+
│ ├── folder-structure.md
|
|
275
|
+
│ ├── data-flow.md
|
|
276
|
+
│ └── patterns.md
|
|
277
|
+
└── ... (one folder per section)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
Paths an updater needs to recognize:
|
|
281
|
+
|
|
282
|
+
- Root hub: `coding-playbook/coding-playbook.md`
|
|
283
|
+
- Section hub: `coding-playbook/<section>/<section>.md`
|
|
284
|
+
- Child note: `coding-playbook/<section>/<note>.md`
|
|
285
|
+
|
|
286
|
+
Section hubs (`<section>/<section>.md`) hold **no patterns themselves** — only
|
|
287
|
+
their `## Subnotes` table, `## When to Read This Section` list, and the
|
|
288
|
+
`Part of [[coding-playbook/coding-playbook|Coding Playbook]]` backreference.
|
|
289
|
+
Every pattern, rule, and code example lives in child notes.
|
|
290
|
+
|
|
291
|
+
Hub notes (root and section) carry frontmatter tags
|
|
292
|
+
`["coding-playbook","hub","context"]`. Child notes have no required frontmatter
|
|
293
|
+
convention.
|
|
294
|
+
|
|
295
|
+
## Note Scope (Progressive Disclosure)
|
|
296
|
+
|
|
297
|
+
Each child note should be tightly scoped to a single topic an agent might need
|
|
298
|
+
to look up — naming, error handling, a specific fetch pattern, etc. Notes are
|
|
299
|
+
short and focused, not long catch-alls. Connect related notes with `[[wikilinks]]`
|
|
300
|
+
so an agent reading one can follow the trail rather than load everything upfront.
|
|
301
|
+
|
|
302
|
+
If a note has drifted into multiple topics, or grown past the point where an
|
|
303
|
+
agent can scan it quickly, split it: extract each topic into its own child
|
|
304
|
+
note, add rows to the section hub's `## Subnotes` table for the new notes,
|
|
305
|
+
update the root hub's `## Contents` list, and replace the moved content in the
|
|
306
|
+
original note with a wikilink to the new note. An agent should not have to
|
|
307
|
+
parse 500 lines of markdown to learn how to name a variable.
|
|
308
|
+
|
|
309
|
+
## Entry Format
|
|
310
|
+
|
|
311
|
+
Each rule inside a child note follows a consistent shape so an agent can scan
|
|
312
|
+
quickly and learn from concrete examples.
|
|
313
|
+
|
|
314
|
+
1. **Lead with the rule.** A bolded one-sentence principle as the first line of
|
|
315
|
+
the section or bullet — e.g. **Name variables after the function that
|
|
316
|
+
produces them.** State the rule plainly; the rest of the entry justifies and
|
|
317
|
+
illustrates it.
|
|
318
|
+
|
|
319
|
+
2. **State the reason inline.** One or two sentences explaining *why*. The
|
|
320
|
+
reason is what an agent uses to judge edge cases the rule didn't anticipate.
|
|
321
|
+
Don't split rule and reason across distant sections — they read as a unit.
|
|
322
|
+
|
|
323
|
+
3. **Show real code.** Use code blocks in the project's actual language (not
|
|
324
|
+
pseudocode). When the example is lifted from a specific file, prefix the
|
|
325
|
+
block with a provenance HTML comment naming the project and path, e.g.
|
|
326
|
+
`<!-- from <project-name>: src/path/to/file.ts -->`, so the source stays
|
|
327
|
+
traceable as the codebase evolves. Only fill in real project names and
|
|
328
|
+
paths — never leave the angle-bracket placeholders in a published note.
|
|
329
|
+
|
|
330
|
+
4. **Pair Good and Bad examples.** Most rules have a clear right and wrong
|
|
331
|
+
shape — show both. Tag each block with a one-line reason in a code comment:
|
|
332
|
+
`// Good — descriptive noun, no redundant suffix` and
|
|
333
|
+
`// Bad — Result suffix adds nothing`. When a rule has multiple failure
|
|
334
|
+
modes (e.g. helpers inline above the export vs. helpers buried below it),
|
|
335
|
+
show one Bad block per failure mode so each is recognizable on its own.
|
|
336
|
+
|
|
337
|
+
5. **Cross-link related rules.** Inside the note body, mention adjacent topics
|
|
338
|
+
by wikilink. At the bottom of the note, add a `See also:` line listing
|
|
339
|
+
related notes and a `Part of [[<section>/<section>|<Section>]]`
|
|
340
|
+
backreference so the navigation tree closes cleanly.
|
|
341
|
+
|
|
342
|
+
Goal: an agent landing on a single rule sees the principle, the reasoning, and
|
|
343
|
+
concrete code without scrolling, and knows where to follow up if the rule
|
|
344
|
+
intersects another topic.
|
|
345
|
+
|
|
346
|
+
## Wikilink Format
|
|
347
|
+
|
|
348
|
+
Cross-references between notes use full-path wikilinks with a display label,
|
|
349
|
+
not bare names:
|
|
350
|
+
|
|
351
|
+
```
|
|
352
|
+
// Good — full path survives renames elsewhere; label keeps prose readable
|
|
353
|
+
[[coding-playbook/foundations/conventions|Conventions]]
|
|
354
|
+
|
|
355
|
+
// Bad — bare name is ambiguous if any other note in the vault shares the title
|
|
356
|
+
[[Conventions]]
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
This applies everywhere wikilinks appear: inline references inside child
|
|
360
|
+
notes, `## Subnotes` table rows in section hubs, `## Sections` and `## Contents`
|
|
361
|
+
entries in the root hub, `See also:` lines, and `Part of` backreferences.
|
|
362
|
+
|
|
363
|
+
## Maintenance Methodology
|
|
364
|
+
|
|
365
|
+
1. **Identify the change.** New convention, new child note, new section, rename,
|
|
366
|
+
removal, or general audit. Skip if the user already named it.
|
|
367
|
+
|
|
368
|
+
2. **Locate the right layer.** Read the root hub. New conventions usually extend
|
|
369
|
+
an existing child note or land as a new child note inside an existing section.
|
|
370
|
+
Only justify a new section when the topic isn't covered by any existing one.
|
|
371
|
+
|
|
372
|
+
3. **Apply the change at the layer it belongs to.**
|
|
373
|
+
- **Edit a child note** for changes inside an existing topic. Follow the
|
|
374
|
+
Entry Format above — rule, reason, real code, Good/Bad pair, cross-links.
|
|
375
|
+
If the change introduces vocabulary an agent might search by, update the
|
|
376
|
+
section hub's `## Subnotes` keywords for that note as well. If the edit
|
|
377
|
+
pushes the note beyond a single topic, split it (see Note Scope above).
|
|
378
|
+
- **Add a child note.** Write it using the Entry Format for every rule it
|
|
379
|
+
contains. Add a row to the section hub's `## Subnotes` table with
|
|
380
|
+
keywords, append its path to the root hub's `## Contents` list, and —
|
|
381
|
+
critically — retrofit the `See also:` lines of related existing notes to
|
|
382
|
+
link to the new one. A note that's only reachable from its section hub is
|
|
383
|
+
half-orphaned; agents discover related rules by following neighbor links.
|
|
384
|
+
- **Add a section.** Create `<section>/<section>.md` shaped like existing
|
|
385
|
+
section hubs (`## Subnotes`, `## When to Read This Section`, the
|
|
386
|
+
`Part of [[coding-playbook/coding-playbook|Coding Playbook]]`
|
|
387
|
+
backreference, hub frontmatter tags) — and remember section hubs hold
|
|
388
|
+
navigation only, no patterns. Add the section to the root hub's
|
|
389
|
+
`## Sections` list with a description, append every child note to
|
|
390
|
+
`## Contents`, and add task-domain rows to `## Task Routing`.
|
|
391
|
+
- **Rename or remove** a section or child note. Update the section hub, the
|
|
392
|
+
root hub's `## Sections` and `## Contents`, every wikilink in adjacent
|
|
393
|
+
notes that points at the renamed/removed target (including `See also:`
|
|
394
|
+
lines), and the `## Task Routing` table.
|
|
395
|
+
|
|
396
|
+
4. **Routing-table drift check (required).** Compare the root hub's
|
|
397
|
+
`## Task Routing` table against the sections that exist. Each row should point
|
|
398
|
+
to a real section; each section should be reachable from at least one row;
|
|
399
|
+
each new convention added in step 3 should have a row that routes to it.
|
|
400
|
+
Offer to reconcile any drift.
|
|
401
|
+
|
|
402
|
+
5. **Subnotes-table drift check (required when a section was touched).** Scan
|
|
403
|
+
the section hub's `## Subnotes` table — every child note in `<section>/`
|
|
404
|
+
should have a row, and every row should point to a note that still exists.
|
|
405
|
+
|
|
406
|
+
6. **Confirm.** Summarize what changed in the child note(s), in the section hub,
|
|
407
|
+
and in the root hub (Sections, Contents, Task Routing).
|
|
408
|
+
|
|
409
|
+
<!-- aide-update-playbook-end -->
|
|
410
|
+
|
|
411
|
+
<!-- aide-research-index-start -->
|
|
412
|
+
|
|
413
|
+
# Research
|
|
414
|
+
|
|
415
|
+
### Domains
|
|
416
|
+
|
|
417
|
+
| Domain | Notes |
|
|
418
|
+
|--------|-------|
|
|
419
|
+
|
|
420
|
+
### How to Use This Index
|
|
421
|
+
|
|
422
|
+
Research notes are filed by domain. Each subdirectory holds notes for a single domain; read the domain hub before drilling into individual notes. Do not flat-search across every domain — the structure is the navigation.
|
|
423
|
+
|
|
424
|
+
### Domain Hubs
|
|
425
|
+
|
|
426
|
+
Add domain hubs here as your research grows. Each hub lives at `<domain>/<domain>.md` and lists its child notes with keywords.
|
|
427
|
+
|
|
428
|
+
### Contents
|
|
429
|
+
|
|
430
|
+
<!-- aide-research-index-end -->
|
|
431
|
+
|
|
432
|
+
<!-- aide-kanban-index-start -->
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
tags:
|
|
436
|
+
- tasks
|
|
437
|
+
- workflow
|
|
438
|
+
- hub
|
|
439
|
+
---
|
|
440
|
+
# Kanban
|
|
441
|
+
|
|
442
|
+
How to work the project's kanban tasks: create, work, manage, move, complete, stash and review. Read this page first: Projects and Columns, Tasks, Project, Cleanup Rules and Reaching the Tasks apply to every operation. Then read only the guide for the operation the user asked for, listed under Operations, and follow it step by step without skipping a gate.
|
|
443
|
+
|
|
444
|
+
Operations take their inputs from the user's request (a title, a priority, a task slug, a column, or a flag such as `--backlog` or `--done`). A flag may also be stated in words.
|
|
445
|
+
|
|
446
|
+
## Operations
|
|
447
|
+
|
|
448
|
+
- [[kanban/guide/create|Create]] — create a new task.
|
|
449
|
+
- [[kanban/guide/work|Work]] — pick the next task, plan it, implement it, test it and review it, behind approval gates.
|
|
450
|
+
- [[kanban/guide/manage|Manage]] — view the project's tasks, apply the cleanup rules, and move tasks between columns.
|
|
451
|
+
- [[kanban/guide/move|Move]] — move the current session's task to a named column.
|
|
452
|
+
- [[kanban/guide/complete|Complete]] — move the current session's task to In Review, or to Done with `--done`.
|
|
453
|
+
- [[kanban/guide/stash|Stash]] — save the session's context into the current task.
|
|
454
|
+
- [[kanban/guide/review|Review]] — review the current task's changes and, when asked, run the fix cycle.
|
|
455
|
+
|
|
456
|
+
## Projects and Columns
|
|
457
|
+
|
|
458
|
+
- Folders are the board. There is no board file.
|
|
459
|
+
- Each project has its own folder, `kanban/<project>/`, named by the project tag.
|
|
460
|
+
- Inside it, one folder per column, in this order: Backlog `backlog/`, Todo `todo/`, In Progress `in-progress/`, In Review `in-review/`, Done `done/`. A project may also have `archive/` for old Done tasks.
|
|
461
|
+
- A task's folder is its column. Moving a task means moving its file to the target column folder and updating its `updated` field — nothing else.
|
|
462
|
+
- To see a project's tasks, list its column folders and read each task's frontmatter and title.
|
|
463
|
+
|
|
464
|
+
## Tasks
|
|
465
|
+
|
|
466
|
+
- Each task is one markdown file at `kanban/<project>/<column>/<slug>.md`.
|
|
467
|
+
- The slug is the file name without `.md`: the title in lower case, spaces and special characters replaced with hyphens, leading and trailing hyphens stripped, at most 60 characters, unique within the project.
|
|
468
|
+
- **Never cut a slug off at the limit.** When the title's slug would run past 60 characters, write a shorter phrase that still says what the task is and ends on a whole word, so whoever picks the task up can read it. "Track playbook conformance per module and suggest where to check" becomes `track-playbook-conformance-per-module`, not `track-playbook-conformance-per-module-and-suggest-where-to-c`. The title keeps its full wording; only the slug is shortened.
|
|
469
|
+
- Frontmatter:
|
|
470
|
+
- `project`: the project tag, matching the project folder;
|
|
471
|
+
- `priority`: `p0`, `p1`, `p2` or `p3`;
|
|
472
|
+
- `type`: optional, one lower-case word for the kind of work (`bug`, `deploy`, `hardening`, `housekeeping` and so on);
|
|
473
|
+
- `created` and `updated`: both `YYYY-MM-DDTHH:MM:SS`;
|
|
474
|
+
- `sessions`: optional, a list of datetimes, one appended each time a work session starts on the task.
|
|
475
|
+
- Body: `# <Title>`, a blank line, then a `Related: [[projects/<project-note>|<display-name>]]` line linking the project's note under `projects/`, then the description if there is one. The `Related:` line may add further links to related tasks, separated by ` · ` (for example `Related: [[projects/my-app|My App]] · [[add-email-validation]]`). The project note name is not always the project tag (tag `myproject` links `[[projects/my-app|My App]]`), so look the note up under `projects/` rather than deriving it from the tag.
|
|
476
|
+
- Titles are short: at most about 100 characters. The detail goes in the description, not the title.
|
|
477
|
+
- Later sections (Stash, Review, Revisions and so on) are appended to the task and never overwrite earlier entries.
|
|
478
|
+
- Priorities: `p0` is critical or blocking, `p1` is high (do soon), `p2` is low (nice to have), `p3` is lowest (cleanup, someday). A task with no priority is treated as `p2`. The priority is also called the severity.
|
|
479
|
+
- Any operation that changes a task updates its `updated` field to the current datetime. `created` is never changed.
|
|
480
|
+
|
|
481
|
+
## Project
|
|
482
|
+
|
|
483
|
+
Every operation works inside one project's folder.
|
|
484
|
+
|
|
485
|
+
If the project tag is not already known in this session, ask the user which project the work is for and use the answer. Never guess it. Once known, reuse it for the rest of the session and pass it explicitly to every agent that needs it.
|
|
486
|
+
|
|
487
|
+
## Cleanup Rules
|
|
488
|
+
|
|
489
|
+
Manage checks these and reports what it finds. Each one only flags or offers; nothing changes without the user's approval.
|
|
490
|
+
|
|
491
|
+
- **Long title.** A title longer than about 100 characters: offer a shorter title and move the rest into the description.
|
|
492
|
+
- **Stale In Review.** A task in `in-review/` whose `updated` is more than 14 days old: offer to complete it to Done.
|
|
493
|
+
- **Done overflow.** More than 50 tasks in a project's `done/`: offer to move the oldest (by `updated`) into `archive/` until 50 remain.
|
|
494
|
+
- **Wrong or missing project.** A task whose `project` field is missing or does not match the folder it sits in: offer to fix the field or move the task.
|
|
495
|
+
|
|
496
|
+
## Reaching the Tasks
|
|
497
|
+
|
|
498
|
+
Read and write tasks only with the brain read and write tools available in this session. Never assume a storage backend, and never bypass those tools: no native file reads or writes, no shell listing, no direct editing of files on disk.
|
|
499
|
+
|
|
500
|
+
In this brain the tools are the `brain` MCP server's `mcp__brain__*` tools. Every operation needs only these capabilities from them:
|
|
501
|
+
|
|
502
|
+
| Capability | Brain tool | Used for |
|
|
503
|
+
| ---------- | ---------- | -------- |
|
|
504
|
+
| list a folder | `mcp__brain__list_directory` | a project's column folders, the projects under `kanban/` |
|
|
505
|
+
| read a file by its brain-relative path | `mcp__brain__read_note` (or `mcp__brain__read_multiple_notes`) | a task |
|
|
506
|
+
| read and update frontmatter | `mcp__brain__get_frontmatter`, `mcp__brain__update_frontmatter` | a task's priority, `updated`, `sessions` |
|
|
507
|
+
| write a file (overwrite) | `mcp__brain__write_note` (mode `overwrite`) | creating a task |
|
|
508
|
+
| append to a file | `mcp__brain__write_note` (mode `append`) or `mcp__brain__patch_note` | adding a Stash, Review or Revisions entry to a task |
|
|
509
|
+
| move a file | `mcp__brain__move_note` | moving a task to another column folder |
|
|
510
|
+
| search | `mcp__brain__search_notes` | domain context, the project note under `projects/` |
|
|
511
|
+
|
|
512
|
+
All paths are brain-relative. If the brain tools are not available in this session, stop and tell the user. Do not improvise with another route to the files.
|
|
513
|
+
|
|
514
|
+
<!-- aide-kanban-index-end -->
|
|
515
|
+
|
|
516
|
+
<!-- aide-kanban-create-start -->
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
tags:
|
|
520
|
+
- tasks
|
|
521
|
+
- workflow
|
|
522
|
+
---
|
|
523
|
+
# Create
|
|
524
|
+
|
|
525
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
526
|
+
|
|
527
|
+
Create a new task.
|
|
528
|
+
|
|
529
|
+
## Who does what
|
|
530
|
+
|
|
531
|
+
The caller talks to the user and gathers the task details (Step 1), shows the user the new task and gets a clear yes. The `kanban-maintainer` agent writes the task (Step 2) and reports back. The caller confirms to the user (Step 3).
|
|
532
|
+
|
|
533
|
+
## Step 1 — Gather task details
|
|
534
|
+
|
|
535
|
+
Take whatever the user already provided (title, priority, `--backlog` flag).
|
|
536
|
+
|
|
537
|
+
- No title provided: ask "What's the task?"
|
|
538
|
+
- No priority provided: ask with these options:
|
|
539
|
+
- `p0` — critical / blocks work
|
|
540
|
+
- `p1` — high / should do soon
|
|
541
|
+
- `p2` — low / nice to have
|
|
542
|
+
- `p3` — lowest / cleanup, someday
|
|
543
|
+
- Title longer than about 100 characters: propose a shorter title and move the rest into the description.
|
|
544
|
+
- Title is vague: optionally ask for a short description. Skip this if the title is self-explanatory.
|
|
545
|
+
- If the user's request names a kind of work (a bug, a deploy, hardening, housekeeping), take it as `TYPE`. Do not ask for it; without one, `TYPE` is none.
|
|
546
|
+
|
|
547
|
+
The target column is Backlog if `--backlog` was passed, Todo otherwise.
|
|
548
|
+
|
|
549
|
+
After this step you have `TITLE`, `PRIORITY`, `TYPE` (or none), `DESCRIPTION` (or none), `TARGET_COLUMN` and the project tag (see Project in [[kanban/kanban|Kanban]]).
|
|
550
|
+
|
|
551
|
+
## Step 2 — Write the task
|
|
552
|
+
|
|
553
|
+
- [ ] **Generate the slug** as the kanban index describes. Target folder: `kanban/<project>/todo/` or `kanban/<project>/backlog/`. If a task with that slug already exists anywhere under `kanban/<project>/`, append `-2` (or increment) until it is unique.
|
|
554
|
+
- [ ] **Find the project note.** List or search `projects/` for the note of the project this tag belongs to (for example tag `myproject` → `projects/my-app`). If exactly one note clearly matches, use it as `<project-note>` with its usual display name. If none or several match, omit the `Related:` line and report `PROJECT_NOTE: none`.
|
|
555
|
+
- [ ] **Write the task** at `<target folder>/<slug>.md`:
|
|
556
|
+
|
|
557
|
+
```markdown
|
|
558
|
+
---
|
|
559
|
+
project: <project tag>
|
|
560
|
+
priority: <priority>
|
|
561
|
+
type: <type in lower case — omit this line if none>
|
|
562
|
+
created: <YYYY-MM-DDTHH:MM:SS>
|
|
563
|
+
updated: <YYYY-MM-DDTHH:MM:SS>
|
|
564
|
+
---
|
|
565
|
+
|
|
566
|
+
# <Title>
|
|
567
|
+
|
|
568
|
+
Related: [[projects/<project-note>|<display-name>]]
|
|
569
|
+
|
|
570
|
+
<Description if provided. Otherwise omit this line.>
|
|
571
|
+
```
|
|
572
|
+
|
|
573
|
+
- [ ] **Report in this format:**
|
|
574
|
+
|
|
575
|
+
```
|
|
576
|
+
CREATED:
|
|
577
|
+
SLUG: <slug>
|
|
578
|
+
PATH: <brain-relative path>
|
|
579
|
+
PRIORITY: <priority>
|
|
580
|
+
COLUMN: <target column>
|
|
581
|
+
PROJECT: <project tag>
|
|
582
|
+
PROJECT_NOTE: <projects/<project-note> or "none">
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
## Step 3 — Confirm
|
|
586
|
+
|
|
587
|
+
Tell the user: task created as `<SLUG>` (priority `<PRIORITY>`) in `<COLUMN>`. One line.
|
|
588
|
+
|
|
589
|
+
<!-- aide-kanban-create-end -->
|
|
590
|
+
|
|
591
|
+
<!-- aide-kanban-work-start -->
|
|
592
|
+
|
|
593
|
+
---
|
|
594
|
+
tags:
|
|
595
|
+
- tasks
|
|
596
|
+
- workflow
|
|
597
|
+
---
|
|
598
|
+
# Work
|
|
599
|
+
|
|
600
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
601
|
+
|
|
602
|
+
Pick, investigate and plan the project's next task, then implement, test and self-review it with strict plan/act mode discipline. Working a task moves it to In Progress and gates all code changes on the user's approval. Use this operation for each task you start. For other task operations use [[kanban/guide/manage|Manage]].
|
|
603
|
+
|
|
604
|
+
The caller may pass arguments, typically a task slug or a description fragment. They are honored in Step 1 to skip the picker. No arguments falls through to the interactive picker.
|
|
605
|
+
|
|
606
|
+
## Architecture
|
|
607
|
+
|
|
608
|
+
The `kanban-maintainer` agent handles task reads and writes (find, activate). It is stateless and disposable.
|
|
609
|
+
|
|
610
|
+
The main agent does the investigation, planning, implementation and review directly. This keeps accumulating context in the window so revisions do not pay double serialization costs.
|
|
611
|
+
|
|
612
|
+
Do NOT delegate investigation, implementation or review to subagents. Do NOT list the project's tasks yourself; delegate that to `kanban-maintainer`. You may read a single task in full from the path it reports.
|
|
613
|
+
|
|
614
|
+
## Mode discipline
|
|
615
|
+
|
|
616
|
+
| Steps | Mode | Rule |
|
|
617
|
+
| ----- | ---- | --------------------------------------- |
|
|
618
|
+
| 1–5 | Plan | Read, analyze, search. No code changes. |
|
|
619
|
+
| 5b | Act | Task activation write only. |
|
|
620
|
+
| 6 | Act | Write code, run type checks, run tests. |
|
|
621
|
+
| 7 | Plan | Read and analyze only. No code changes. |
|
|
622
|
+
| 8a | Plan | Re-investigate, present revised plan. |
|
|
623
|
+
| 8b | Act | Implement revised plan, run tests. |
|
|
624
|
+
| 8c–8d | Plan | Re-review, present results. |
|
|
625
|
+
|
|
626
|
+
**Transition rule:** After every Act section, re-enter planning mode before doing anything else. Do not make further code changes until explicitly approved.
|
|
627
|
+
|
|
628
|
+
## Checklist
|
|
629
|
+
|
|
630
|
+
- [ ] **Step 0** — Enter planning mode
|
|
631
|
+
- [ ] **Step 1** — Have `kanban-maintainer` find tasks
|
|
632
|
+
- [ ] **Step 2** — Present the task table and ask the user to pick (skip if a slug matched)
|
|
633
|
+
- [ ] **Step 3** — (deferred — task activation runs at Step 5b after plan approval)
|
|
634
|
+
- [ ] **Step 4** — Investigate and plan (main agent, planning mode)
|
|
635
|
+
- [ ] **Step 5** — Hard stop: present the plan for approval
|
|
636
|
+
- [ ] **Step 5b** — Have `kanban-maintainer` activate the task (first act after approval)
|
|
637
|
+
- [ ] **Step 6** — Implement (main agent, act mode)
|
|
638
|
+
- [ ] **Step 7** — Review (main agent, planning mode)
|
|
639
|
+
- [ ] **Step 8** — Revision loop (if needed, forward-only)
|
|
640
|
+
|
|
641
|
+
## Step 0 — Enter planning mode
|
|
642
|
+
|
|
643
|
+
If you are not already in a read-only planning mode, enter it now. Do not proceed until you are in it.
|
|
644
|
+
|
|
645
|
+
## Step 1 — Find tasks (`kanban-maintainer`)
|
|
646
|
+
|
|
647
|
+
Delegate to the `kanban-maintainer` agent with this request, filled in:
|
|
648
|
+
|
|
649
|
+
> You are finding a task in the project's kanban folders.
|
|
650
|
+
>
|
|
651
|
+
> **Arguments:** `<args from the caller, or "none">`
|
|
652
|
+
> **Project tag:** `<project tag, or "none">`
|
|
653
|
+
>
|
|
654
|
+
> Use only the brain read, search and frontmatter tools available in this session.
|
|
655
|
+
>
|
|
656
|
+
> ## Checklist
|
|
657
|
+
>
|
|
658
|
+
> - [ ] **Check the project tag.** If the project tag is "none", return `MODE: NO_PROJECT`.
|
|
659
|
+
> - [ ] **Find the task.**
|
|
660
|
+
>
|
|
661
|
+
> **If the arguments contain a task name or slug:** look for it in the column folders under `kanban/<project>/`. A single match: read its full content and return it as DIRECT. Multiple matches: return all of them for clarification. No match: fall through to the listing.
|
|
662
|
+
>
|
|
663
|
+
> **Otherwise:** list `kanban/<project>/in-progress/`, `kanban/<project>/todo/` and `kanban/<project>/backlog/`. Read each task's frontmatter for its priority (`p0`/`p1`/`p2`/`p3`, default `p2`) and its `project` field. If a task's `project` field is missing or does not match the folder, do NOT change it — collect it for the return output. Return as TABLE.
|
|
664
|
+
>
|
|
665
|
+
> - [ ] **Return** — one of:
|
|
666
|
+
>
|
|
667
|
+
> **DIRECT** (the slug matched one task):
|
|
668
|
+
>
|
|
669
|
+
> ```
|
|
670
|
+
> MODE: DIRECT
|
|
671
|
+
> PROJECT_TAG: <tag>
|
|
672
|
+
> TASK_SLUG: <slug>
|
|
673
|
+
> TASK_PATH: <brain-relative path>
|
|
674
|
+
> TASK_CONTENT:
|
|
675
|
+
> <full markdown including frontmatter>
|
|
676
|
+
> ```
|
|
677
|
+
>
|
|
678
|
+
> **TABLE** (the user picks):
|
|
679
|
+
>
|
|
680
|
+
> ```
|
|
681
|
+
> MODE: TABLE
|
|
682
|
+
> PROJECT_TAG: <tag>
|
|
683
|
+
>
|
|
684
|
+
> | # | Status | Severity | Task | Description |
|
|
685
|
+
> |---|--------|----------|------|-------------|
|
|
686
|
+
> | 1 | In Progress | p0 | slug | short desc |
|
|
687
|
+
>
|
|
688
|
+
> TASK_PATHS:
|
|
689
|
+
> 1: kanban/<project>/backlog/my-task.md
|
|
690
|
+
>
|
|
691
|
+
> TASK_CONTENTS:
|
|
692
|
+
> --- TASK 1 ---
|
|
693
|
+
> <full markdown>
|
|
694
|
+
> ```
|
|
695
|
+
>
|
|
696
|
+
> If any task has a missing or wrong `project` field, append:
|
|
697
|
+
>
|
|
698
|
+
> ```
|
|
699
|
+
> MISMATCHES:
|
|
700
|
+
> - <slug>: project field is "<value or missing>" but the task is in "kanban/<project>/"
|
|
701
|
+
> ```
|
|
702
|
+
>
|
|
703
|
+
> Omit MISMATCHES if there are none.
|
|
704
|
+
>
|
|
705
|
+
> **NO_TASKS** or **NO_PROJECT**: `MODE: NO_TASKS` / `MODE: NO_PROJECT`
|
|
706
|
+
|
|
707
|
+
## Step 2 — Present and pick
|
|
708
|
+
|
|
709
|
+
**First, check for mismatches.** If the response contains a `MISMATCHES:` section, present it:
|
|
710
|
+
|
|
711
|
+
> These tasks have a missing or wrong project field:
|
|
712
|
+
> `<list>`
|
|
713
|
+
> Want me to fix them before continuing, or ignore for now?
|
|
714
|
+
|
|
715
|
+
**Hard stop.** If the user says fix, ask for each task: "Set the field to this folder's project, or move the task to the project its field names?" Then have `kanban-maintainer` apply the chosen fix. After fixing, **re-run Step 1**.
|
|
716
|
+
|
|
717
|
+
If the user says ignore, proceed.
|
|
718
|
+
|
|
719
|
+
**Then handle the mode:**
|
|
720
|
+
|
|
721
|
+
- `NO_PROJECT`: ask the user which project. Stop.
|
|
722
|
+
- `NO_TASKS`: tell the user there are no open tasks. Stop.
|
|
723
|
+
- `DIRECT`: extract the task fields and skip to Step 4.
|
|
724
|
+
- `TABLE`: display the table verbatim. **Hard stop: "Which task?"** Accept a number, a slug or a description fragment.
|
|
725
|
+
|
|
726
|
+
## Step 3 — Deferred
|
|
727
|
+
|
|
728
|
+
Board activation is a write operation. It runs after plan approval, at Step 5b, to avoid planning-mode conflicts. The task path, slug and project tag resolved in Step 2 are used there.
|
|
729
|
+
|
|
730
|
+
## Step 4 — Investigate and plan (main agent, planning mode)
|
|
731
|
+
|
|
732
|
+
You do this directly, with no subagent. Planning mode: read, search and analyze only.
|
|
733
|
+
|
|
734
|
+
### 4a — Load conventions
|
|
735
|
+
|
|
736
|
+
Do not proceed to 4b until the conventions are fully loaded into this context window. Do not delegate planning to a subagent — it runs in a fresh context and will not have these conventions.
|
|
737
|
+
|
|
738
|
+
Try these sources in order and use the first that succeeds:
|
|
739
|
+
|
|
740
|
+
1. The `study-playbook` skill. Invoke it, then:
|
|
741
|
+
- read the entry point it returns;
|
|
742
|
+
- identify which sections are relevant to this task;
|
|
743
|
+
- read each relevant section's entry point;
|
|
744
|
+
- read every child file linked from those entry points;
|
|
745
|
+
- only proceed to 4b once all the relevant child files are in context.
|
|
746
|
+
2. The project's `CLAUDE.md` in the working directory.
|
|
747
|
+
3. If neither exists, proceed without conventions and record `CONVENTIONS: none found`.
|
|
748
|
+
|
|
749
|
+
### 4b — Load context
|
|
750
|
+
|
|
751
|
+
Search the brain with the task's topic keywords for domain context.
|
|
752
|
+
|
|
753
|
+
### 4c — Investigate the codebase
|
|
754
|
+
|
|
755
|
+
- Read every file mentioned in the task (full files, not fragments).
|
|
756
|
+
- Search for all call sites of functions you expect to change.
|
|
757
|
+
- List every file that needs to change and why, including indirect dependents.
|
|
758
|
+
|
|
759
|
+
### 4d — Devise the plan
|
|
760
|
+
|
|
761
|
+
The plan must answer:
|
|
762
|
+
|
|
763
|
+
- **Root cause** (not symptom): quote specific lines or behavior.
|
|
764
|
+
- **Minimal change:** name each file, function or block, and what changes. If multiple approaches exist, list them and justify your choice.
|
|
765
|
+
- **Conventions used:** list which conventions from the coding playbook were used.
|
|
766
|
+
- **What could go wrong:** side effects, edge cases, anything needing user input.
|
|
767
|
+
- **Open questions:** anything ambiguous, or "None".
|
|
768
|
+
|
|
769
|
+
Output the plan as a structured checklist.
|
|
770
|
+
|
|
771
|
+
### 4e — Open questions (if any)
|
|
772
|
+
|
|
773
|
+
If there are open questions, **hard stop**. Present them to the user. Do not proceed until every question is answered or dismissed.
|
|
774
|
+
|
|
775
|
+
## Step 5 — Hard stop: present the plan
|
|
776
|
+
|
|
777
|
+
Present the plan to the user verbatim.
|
|
778
|
+
|
|
779
|
+
**Hard stop. Do not activate the task or write code until the user approves the plan.**
|
|
780
|
+
|
|
781
|
+
Once the user approves, proceed immediately to Step 5b, before writing any code.
|
|
782
|
+
|
|
783
|
+
## Step 5b — Activate the task (`kanban-maintainer`)
|
|
784
|
+
|
|
785
|
+
You are now in act mode. Delegate to the `kanban-maintainer` agent with this request, filled in:
|
|
786
|
+
|
|
787
|
+
> You are activating a task — stamping it and moving it to In Progress.
|
|
788
|
+
>
|
|
789
|
+
> **Task path:** `<path>` | **Slug:** `<slug>` | **Project:** `<project tag>` | **Now:** `<YYYY-MM-DDTHH:MM:SS>`
|
|
790
|
+
>
|
|
791
|
+
> Use only the brain read, write, move and frontmatter tools available in this session.
|
|
792
|
+
>
|
|
793
|
+
> ## Checklist
|
|
794
|
+
>
|
|
795
|
+
> - [ ] **Check the current status.** If the task path is already under `kanban/<project>/in-progress/`, this is a resume. Only stamp the session (append the datetime to `sessions`, update `updated`). Skip the move. Return `DONE (resumed)`.
|
|
796
|
+
> - [ ] **Stamp.** Read the frontmatter, then update it: append the current datetime to the `sessions` list (preserve existing entries) and update `updated`.
|
|
797
|
+
> - [ ] **Move the file.** Move the task to `kanban/<project>/in-progress/<slug>.md`.
|
|
798
|
+
> - [ ] Return `DONE` or `DONE (resumed)`.
|
|
799
|
+
|
|
800
|
+
Do not proceed to Step 6 until the agent returns `DONE` or `DONE (resumed)`.
|
|
801
|
+
|
|
802
|
+
## Step 6 — Implement (main agent, act mode)
|
|
803
|
+
|
|
804
|
+
You do this directly, with no subagent. Act mode: write code and run tools.
|
|
805
|
+
|
|
806
|
+
### 6a — Implement the changes
|
|
807
|
+
|
|
808
|
+
Follow the approved plan. Apply the coding playbook patterns loaded in Step 4a.
|
|
809
|
+
|
|
810
|
+
### 6b — Type check
|
|
811
|
+
|
|
812
|
+
Run the project's type checker. Fix all errors before proceeding.
|
|
813
|
+
|
|
814
|
+
### 6c — Write and run tests
|
|
815
|
+
|
|
816
|
+
**Mandatory.** Choose the appropriate test type:
|
|
817
|
+
|
|
818
|
+
- **Unit-testable changes** (functions, modules, classes): write a unit test that imports the actual function or module you changed. Do NOT copy-paste the implementation into the test. Cover the happy path at minimum, plus the edge cases from the plan.
|
|
819
|
+
- **Non-unit-testable changes** (config files, migrations, templates, CSS, build scripts, environment changes): write a smoke test or integration test that exercises the changed behavior end to end.
|
|
820
|
+
- **If neither is feasible** (pure documentation, environment-file changes, CI config): skip the test. State why no automated test applies and how to verify manually.
|
|
821
|
+
|
|
822
|
+
Run all tests and confirm green before proceeding.
|
|
823
|
+
|
|
824
|
+
**After implementation is complete and the tests pass, re-enter planning mode. Do not make any further code changes until explicitly approved.**
|
|
825
|
+
|
|
826
|
+
## Step 7 — Review (main agent, planning mode)
|
|
827
|
+
|
|
828
|
+
You are now in planning mode. Read and analyze only — no code changes.
|
|
829
|
+
|
|
830
|
+
### 7a — Get the diff
|
|
831
|
+
|
|
832
|
+
Run `git diff HEAD` for uncommitted changes. If it is empty, run `git log --oneline -10` to find the session commits, then `git diff <first>^..HEAD`.
|
|
833
|
+
|
|
834
|
+
### 7b — Read the changed files in full
|
|
835
|
+
|
|
836
|
+
For every file in the diff, read the complete current version (not just the hunks). Also read the callers and dependents of changed functions.
|
|
837
|
+
|
|
838
|
+
### 7c — Review against each criterion
|
|
839
|
+
|
|
840
|
+
- **Correctness:** does the implementation match the plan? Logic errors, missed conditions?
|
|
841
|
+
- **Edge cases:** boundaries, empty inputs, nulls, concurrent access?
|
|
842
|
+
- **Type safety:** complete types? Hidden `any` casts, missing null checks?
|
|
843
|
+
- **Error handling:** at the right level? Useful messages? Silent swallowing?
|
|
844
|
+
- **Side effects:** changes outside the stated scope? Shared-state impacts?
|
|
845
|
+
- **Test coverage:** do the tests verify the described behavior? Untested paths?
|
|
846
|
+
- **Playbook alignment:** follows the established patterns?
|
|
847
|
+
- **Performance:** N+1 queries, blocking calls, memory leaks?
|
|
848
|
+
- **Security:** injection, XSS, auth bypass, secrets in code?
|
|
849
|
+
- **Naming and clarity:** descriptive? Self-documenting?
|
|
850
|
+
|
|
851
|
+
### 7d — Produce the review
|
|
852
|
+
|
|
853
|
+
```
|
|
854
|
+
VERDICT: LGTM | CHANGES_REQUESTED | NEEDS_DISCUSSION
|
|
855
|
+
RISK: Low | Medium | High
|
|
856
|
+
|
|
857
|
+
CRITICAL:
|
|
858
|
+
- <file:line> — <issue and fix>
|
|
859
|
+
|
|
860
|
+
WARNINGS:
|
|
861
|
+
- <file:line> — <issue and fix>
|
|
862
|
+
|
|
863
|
+
NITS:
|
|
864
|
+
- <file:line> — <suggestion>
|
|
865
|
+
|
|
866
|
+
POSITIVE:
|
|
867
|
+
- <things done well>
|
|
868
|
+
|
|
869
|
+
MISSED_EDGE_CASES:
|
|
870
|
+
- <scenario not covered>
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
Omit sections with zero items.
|
|
874
|
+
|
|
875
|
+
### 7e — Present the review and check the verdict
|
|
876
|
+
|
|
877
|
+
Present the review to the user.
|
|
878
|
+
|
|
879
|
+
- **LGTM:** ask "Ready to stash?" If yes, run the [[kanban/guide/stash|Stash]] operation.
|
|
880
|
+
- **NEEDS_DISCUSSION:** hard stop. Wait for the user's direction. If the user says proceed, ask "Ready to stash?" If yes, run the [[kanban/guide/stash|Stash]] operation.
|
|
881
|
+
- **CHANGES_REQUESTED:** enter Step 8.
|
|
882
|
+
|
|
883
|
+
## Step 8 — Revision loop (forward-only)
|
|
884
|
+
|
|
885
|
+
Do not jump back to earlier steps. This is a self-contained loop. Repeat 8a–8d until the review verdict is LGTM or the user says stop.
|
|
886
|
+
|
|
887
|
+
### 8a — Re-investigate (planning mode)
|
|
888
|
+
|
|
889
|
+
Focus on the review's critical and warning findings, not a fresh investigation. Read any additional files needed to understand the issues. Devise a targeted revision plan addressing only the findings.
|
|
890
|
+
|
|
891
|
+
Present the revised plan. **Hard stop for approval.**
|
|
892
|
+
|
|
893
|
+
### 8b — Implement the revisions (act mode)
|
|
894
|
+
|
|
895
|
+
Implement only the approved revisions. Run the type check. Run the tests. Confirm green.
|
|
896
|
+
|
|
897
|
+
**After the tests pass, re-enter planning mode.**
|
|
898
|
+
|
|
899
|
+
### 8c — Re-review (planning mode)
|
|
900
|
+
|
|
901
|
+
Read and analyze only — no code changes.
|
|
902
|
+
|
|
903
|
+
Get the updated diff. Read the changed files in full. Review against the same criteria as Step 7c. Produce a new review in the same format as Step 7d.
|
|
904
|
+
|
|
905
|
+
### 8d — Present and check the verdict
|
|
906
|
+
|
|
907
|
+
Present the re-review to the user.
|
|
908
|
+
|
|
909
|
+
- **LGTM:** ask "Ready to stash?" If yes, run the [[kanban/guide/stash|Stash]] operation.
|
|
910
|
+
- **CHANGES_REQUESTED:** return to 8a.
|
|
911
|
+
- **NEEDS_DISCUSSION:** hard stop. Wait for the user's direction.
|
|
912
|
+
|
|
913
|
+
<!-- aide-kanban-work-end -->
|
|
914
|
+
|
|
915
|
+
<!-- aide-kanban-manage-start -->
|
|
916
|
+
|
|
917
|
+
---
|
|
918
|
+
tags:
|
|
919
|
+
- tasks
|
|
920
|
+
- workflow
|
|
921
|
+
---
|
|
922
|
+
# Manage
|
|
923
|
+
|
|
924
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task, cleanup and brain tool rules apply to every step below.
|
|
925
|
+
|
|
926
|
+
View the current project's tasks, apply the cleanup rules, and move tasks between columns.
|
|
927
|
+
|
|
928
|
+
## Step 1 — Determine the project
|
|
929
|
+
|
|
930
|
+
Get the project tag (see Project in [[kanban/kanban|Kanban]]).
|
|
931
|
+
|
|
932
|
+
## Step 2 — List the tasks
|
|
933
|
+
|
|
934
|
+
List each column folder under `kanban/<project>/`: `backlog/`, `todo/`, `in-progress/`, `in-review/`, `done/`. For each task, read its frontmatter (`priority`, `type`, `project`, `updated`) and its `# <Title>` line.
|
|
935
|
+
|
|
936
|
+
## Step 3 — Check the cleanup rules
|
|
937
|
+
|
|
938
|
+
Check every task against the Cleanup Rules in [[kanban/kanban|Kanban]]: long titles, stale In Review tasks, Done overflow, and wrong or missing `project` fields. Collect what you find; change nothing yet.
|
|
939
|
+
|
|
940
|
+
## Step 4 — Present tasks and findings
|
|
941
|
+
|
|
942
|
+
Show the user the project's open tasks in a compact format, then the cleanup findings:
|
|
943
|
+
|
|
944
|
+
```
|
|
945
|
+
Backlog
|
|
946
|
+
fix-login-bug — p1 bug: Fix login bug on mobile
|
|
947
|
+
add-email-validation — p2: Add email validation
|
|
948
|
+
|
|
949
|
+
Todo
|
|
950
|
+
redesign-header — p2: Redesign the header
|
|
951
|
+
|
|
952
|
+
In Progress
|
|
953
|
+
update-api — p1: Update the API endpoints
|
|
954
|
+
|
|
955
|
+
In Review
|
|
956
|
+
update-docs — p3: Update the docs (in review 21 days)
|
|
957
|
+
|
|
958
|
+
Done: 63 tasks
|
|
959
|
+
|
|
960
|
+
Cleanup
|
|
961
|
+
update-docs has been in In Review for 21 days — complete it to Done?
|
|
962
|
+
Done holds 63 tasks — archive the 13 oldest?
|
|
963
|
+
```
|
|
964
|
+
|
|
965
|
+
If the project has no tasks, tell the user and stop.
|
|
966
|
+
|
|
967
|
+
Then ask: "Which tasks do you want to move, and which cleanup items should I apply?"
|
|
968
|
+
|
|
969
|
+
Accept natural answers such as:
|
|
970
|
+
|
|
971
|
+
- "move fix-login-bug to Todo"
|
|
972
|
+
- "move update-docs to Done"
|
|
973
|
+
- "archive the old Done tasks"
|
|
974
|
+
|
|
975
|
+
Valid column names: `Backlog`, `Todo`, `In Progress`, `In Review`, `Done`.
|
|
976
|
+
|
|
977
|
+
## Step 5 — Apply what the user approved
|
|
978
|
+
|
|
979
|
+
For each approved change:
|
|
980
|
+
|
|
981
|
+
- **Move:** move the file to `kanban/<project>/<target column folder>/<slug>.md` and update its `updated` field.
|
|
982
|
+
- **Archive:** move the file from `done/` to `archive/` and update its `updated` field.
|
|
983
|
+
- **Shorten a title:** rewrite the `# <Title>` line and add the removed detail to the top of the description; update `updated`.
|
|
984
|
+
- **Fix a project field:** set `project` to the folder's project, or move the task to the project folder its field names, as the user chose; update `updated`.
|
|
985
|
+
|
|
986
|
+
Never change `created`.
|
|
987
|
+
|
|
988
|
+
## Step 6 — Confirm
|
|
989
|
+
|
|
990
|
+
Tell the user what changed, one line per task. Ask whether they want to change anything else. If yes, return to Step 4. If no, stop.
|
|
991
|
+
|
|
992
|
+
<!-- aide-kanban-manage-end -->
|
|
993
|
+
|
|
994
|
+
<!-- aide-kanban-move-start -->
|
|
995
|
+
|
|
996
|
+
---
|
|
997
|
+
tags:
|
|
998
|
+
- tasks
|
|
999
|
+
- workflow
|
|
1000
|
+
---
|
|
1001
|
+
# Move
|
|
1002
|
+
|
|
1003
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
1004
|
+
|
|
1005
|
+
Move the current session's task to a specified column. The task is inferred from the session. The user provides the target column inline (for example "move to todo", "move to in review").
|
|
1006
|
+
|
|
1007
|
+
## Step 1 — Parse the target column
|
|
1008
|
+
|
|
1009
|
+
Extract the target column from the request. Match it against the valid columns (case-insensitive):
|
|
1010
|
+
|
|
1011
|
+
- `Backlog`
|
|
1012
|
+
- `Todo`
|
|
1013
|
+
- `In Progress`
|
|
1014
|
+
- `In Review`
|
|
1015
|
+
- `Done`
|
|
1016
|
+
|
|
1017
|
+
If no target column is found in the message, ask: "Which column?"
|
|
1018
|
+
|
|
1019
|
+
## Step 2 — Identify the task from session context
|
|
1020
|
+
|
|
1021
|
+
Look back through the current conversation for the task being worked on this session. Signals, in priority order:
|
|
1022
|
+
|
|
1023
|
+
1. A task picked through Work and moved to In Progress.
|
|
1024
|
+
2. A task moved through Manage during this session.
|
|
1025
|
+
3. A task file read or referenced during the session.
|
|
1026
|
+
|
|
1027
|
+
If no task can be identified, tell the user and stop.
|
|
1028
|
+
|
|
1029
|
+
## Step 3 — Determine the project
|
|
1030
|
+
|
|
1031
|
+
Get the project tag (see Project in [[kanban/kanban|Kanban]]).
|
|
1032
|
+
|
|
1033
|
+
## Step 4 — Find the task
|
|
1034
|
+
|
|
1035
|
+
Look for `<slug>.md` in the project's column folders under `kanban/<project>/`. If it is not found, tell the user and stop. If it is already in the target column, tell the user and stop.
|
|
1036
|
+
|
|
1037
|
+
## Step 5 — Move the task
|
|
1038
|
+
|
|
1039
|
+
Move the file to `kanban/<project>/<target column folder>/<slug>.md` and update its `updated` field to the current datetime (`YYYY-MM-DDTHH:MM:SS`).
|
|
1040
|
+
|
|
1041
|
+
## Step 6 — Confirm
|
|
1042
|
+
|
|
1043
|
+
Tell the user: "`<slug>` moved to <Target Column>."
|
|
1044
|
+
|
|
1045
|
+
<!-- aide-kanban-move-end -->
|
|
1046
|
+
|
|
1047
|
+
<!-- aide-kanban-complete-start -->
|
|
1048
|
+
|
|
1049
|
+
---
|
|
1050
|
+
tags:
|
|
1051
|
+
- tasks
|
|
1052
|
+
- workflow
|
|
1053
|
+
---
|
|
1054
|
+
# Complete
|
|
1055
|
+
|
|
1056
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
1057
|
+
|
|
1058
|
+
Move the current session's task to In Review (the default) or to Done (when the user passes `--done` or asks for Done).
|
|
1059
|
+
|
|
1060
|
+
## Step 1 — Parse flags
|
|
1061
|
+
|
|
1062
|
+
Check whether `--done` was passed.
|
|
1063
|
+
|
|
1064
|
+
- No flag (default): the target column is **In Review**.
|
|
1065
|
+
- `--done`: the target column is **Done**.
|
|
1066
|
+
|
|
1067
|
+
## Step 2 — Identify the task from session context
|
|
1068
|
+
|
|
1069
|
+
Look back through the current conversation for the task that was worked on this session. Signals: a task picked through Work, a task moved to In Progress through Manage, or a task file read or referenced during the session.
|
|
1070
|
+
|
|
1071
|
+
If no task was worked on this session, tell the user there is nothing to complete and stop.
|
|
1072
|
+
|
|
1073
|
+
## Step 3 — Determine the project
|
|
1074
|
+
|
|
1075
|
+
Get the project tag (see Project in [[kanban/kanban|Kanban]]).
|
|
1076
|
+
|
|
1077
|
+
## Step 4 — Find the task
|
|
1078
|
+
|
|
1079
|
+
Look for `<slug>.md` in the project's column folders under `kanban/<project>/`. It could be in any column. If it is not found, tell the user and stop.
|
|
1080
|
+
|
|
1081
|
+
## Step 5 — Move the task
|
|
1082
|
+
|
|
1083
|
+
Move the file to `kanban/<project>/in-review/<slug>.md` (or `kanban/<project>/done/<slug>.md` with `--done`) and update its `updated` field to the current datetime (`YYYY-MM-DDTHH:MM:SS`).
|
|
1084
|
+
|
|
1085
|
+
## Step 6 — Confirm
|
|
1086
|
+
|
|
1087
|
+
Tell the user the task was moved to In Review (or to Done if `--done` was used).
|
|
1088
|
+
|
|
1089
|
+
<!-- aide-kanban-complete-end -->
|
|
1090
|
+
|
|
1091
|
+
<!-- aide-kanban-stash-start -->
|
|
1092
|
+
|
|
1093
|
+
---
|
|
1094
|
+
tags:
|
|
1095
|
+
- tasks
|
|
1096
|
+
- workflow
|
|
1097
|
+
---
|
|
1098
|
+
# Stash
|
|
1099
|
+
|
|
1100
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
1101
|
+
|
|
1102
|
+
A stash only appends a record of the session to the task; it moves and creates nothing, so it needs no approval from the user.
|
|
1103
|
+
|
|
1104
|
+
Stash session context into the current task: what changed, decisions made, open questions and remaining work. Use this at the end of a session, or at any point mid-session, to persist everything learned so a future session can pick up seamlessly.
|
|
1105
|
+
|
|
1106
|
+
## Step 1 — Identify the task from session context
|
|
1107
|
+
|
|
1108
|
+
Look back through the current conversation for the task that was worked on this session. Signals: a task picked through Work, a task moved to In Progress through Manage, or a task file read or referenced during the session.
|
|
1109
|
+
|
|
1110
|
+
If no task can be identified, ask the user which task to stash to and stop until they answer.
|
|
1111
|
+
|
|
1112
|
+
## Step 2 — Determine the project
|
|
1113
|
+
|
|
1114
|
+
Get the project tag (see Project in [[kanban/kanban|Kanban]]).
|
|
1115
|
+
|
|
1116
|
+
## Step 3 — Read the task
|
|
1117
|
+
|
|
1118
|
+
Find `<slug>.md` in the project's column folders under `kanban/<project>/` and read it to see which sections already exist (Investigation, Answers, Solution, Revisions, earlier Stash entries). You need to know the current state so you do not duplicate information.
|
|
1119
|
+
|
|
1120
|
+
## Step 4 — Gather session context
|
|
1121
|
+
|
|
1122
|
+
Collect information from these sources, in parallel where possible.
|
|
1123
|
+
|
|
1124
|
+
### 4a — Git changes (if in a git repo)
|
|
1125
|
+
|
|
1126
|
+
Run `git diff --stat` and `git log --oneline -10` to see which files changed and which commits were made during this session. If there are uncommitted changes, record them.
|
|
1127
|
+
|
|
1128
|
+
### 4b — Conversation review
|
|
1129
|
+
|
|
1130
|
+
Review the conversation for:
|
|
1131
|
+
|
|
1132
|
+
- **What was done:** concrete changes made (files modified, new behavior added, bugs fixed, refactors performed). Be specific: name files, functions and what changed.
|
|
1133
|
+
- **Key decisions:** choices made and why. Include the alternatives that were considered and rejected, and the reasoning. This is the most valuable part: a future session needs to know not just what was chosen but why the alternatives lost.
|
|
1134
|
+
- **Open questions:** anything unresolved, unclear or deferred. Things that need more investigation or user input, or that depend on external factors.
|
|
1135
|
+
- **Remaining work:** what is left to do to complete the task. Be concrete: name specific files, functions or steps. If there is a rough order, give it.
|
|
1136
|
+
- **Gotchas and surprises:** anything unexpected discovered during the session that future sessions should know about (weird behavior, undocumented constraints, things that look like bugs but are not).
|
|
1137
|
+
|
|
1138
|
+
## Step 5 — Compose and append the stash entry
|
|
1139
|
+
|
|
1140
|
+
Append a `## Stash` section to the task. If a `## Stash` section already exists (from a prior session), append a new dated subsection under it — do NOT overwrite prior stash entries.
|
|
1141
|
+
|
|
1142
|
+
Format:
|
|
1143
|
+
|
|
1144
|
+
```markdown
|
|
1145
|
+
## Stash
|
|
1146
|
+
|
|
1147
|
+
### <YYYY-MM-DD HH:MM>
|
|
1148
|
+
|
|
1149
|
+
**Changes made:**
|
|
1150
|
+
- <file or area>: <what changed and why>
|
|
1151
|
+
|
|
1152
|
+
**Decisions:**
|
|
1153
|
+
- <decision>: <reasoning, alternatives considered>
|
|
1154
|
+
|
|
1155
|
+
**Open questions:**
|
|
1156
|
+
- <question or uncertainty>
|
|
1157
|
+
|
|
1158
|
+
**Remaining work:**
|
|
1159
|
+
- [ ] <concrete next step>
|
|
1160
|
+
|
|
1161
|
+
**Gotchas:**
|
|
1162
|
+
- <anything surprising or non-obvious>
|
|
1163
|
+
```
|
|
1164
|
+
|
|
1165
|
+
Omit any section that has no content (for example, if there are no gotchas, skip that heading). Do not pad with filler: every line should carry information.
|
|
1166
|
+
|
|
1167
|
+
If a `## Stash` section already exists, append the new entry as a new `###` dated subsection at the bottom of the existing Stash section:
|
|
1168
|
+
|
|
1169
|
+
```markdown
|
|
1170
|
+
### <YYYY-MM-DD HH:MM>
|
|
1171
|
+
|
|
1172
|
+
**Changes made:**
|
|
1173
|
+
...
|
|
1174
|
+
```
|
|
1175
|
+
|
|
1176
|
+
## Step 6 — Update frontmatter
|
|
1177
|
+
|
|
1178
|
+
Update the task's `updated` field to the current datetime (`YYYY-MM-DDTHH:MM:SS`).
|
|
1179
|
+
|
|
1180
|
+
## Step 7 — Confirm
|
|
1181
|
+
|
|
1182
|
+
Tell the user the stash was saved. Show a brief summary of what was recorded (one line per section that was included). If there are open questions or remaining work items, highlight them so the user is aware of loose ends.
|
|
1183
|
+
|
|
1184
|
+
<!-- aide-kanban-stash-end -->
|
|
1185
|
+
|
|
1186
|
+
<!-- aide-kanban-review-start -->
|
|
1187
|
+
|
|
1188
|
+
---
|
|
1189
|
+
tags:
|
|
1190
|
+
- tasks
|
|
1191
|
+
- workflow
|
|
1192
|
+
---
|
|
1193
|
+
# Review
|
|
1194
|
+
|
|
1195
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
1196
|
+
|
|
1197
|
+
Spin up a subagent to do a comprehensive code review of the changes made for the current session's task. If changes are requested, run the full investigate, plan, approve, implement cycle through subagents.
|
|
1198
|
+
|
|
1199
|
+
The point of this operation is to offload work from the main agent's context. Do as little as possible yourself and pass the context you already have to subagents. Do NOT read the task, search the brain or gather project context yourself.
|
|
1200
|
+
|
|
1201
|
+
## Delegation rules
|
|
1202
|
+
|
|
1203
|
+
1. Never read the task, diffs or code yourself. Every read operation happens inside a subagent call.
|
|
1204
|
+
2. Execute the steps in strict order. Complete each step's subagent call and fully process its output before starting the next step.
|
|
1205
|
+
3. Hard stops are mandatory. Where marked HARD STOP, you MUST stop and wait for user input.
|
|
1206
|
+
4. Pass context forward explicitly. Each subagent call is stateless, so include all needed context (paths, slugs, diffs, review findings) in the prompt.
|
|
1207
|
+
5. Every subagent call needs three things: a type (`read-only` for exploration, or `general-purpose` for full access), a short description for the UI (5–10 words), and the full prompt the subagent receives.
|
|
1208
|
+
6. Planning mode must be off. If a read-only planning mode is active, turn it off before starting Step 1. This operation has its own approval gates, and planning mode adds redundant friction that breaks subagent write operations.
|
|
1209
|
+
7. Ask with structured options at every HARD STOP. Whenever a HARD STOP presents the user with choices, ask with structured multiple-choice options. Do not dump plain text and wait. Only the main agent can ask the user.
|
|
1210
|
+
|
|
1211
|
+
## Step 1 — Run the review
|
|
1212
|
+
|
|
1213
|
+
You already know the task path, diff range and working directory from the current conversation. Pass them directly into the subagent prompt. If the user's request contains a commit range or branch, use that as the diff range.
|
|
1214
|
+
|
|
1215
|
+
If no task can be identified from conversation context, ask the user which task to review and **HARD STOP until they answer**.
|
|
1216
|
+
|
|
1217
|
+
Make one subagent call (type `read-only`, description "Code review for `<TASK_SLUG>`") with this prompt, filled in:
|
|
1218
|
+
|
|
1219
|
+
> You are performing a comprehensive code review.
|
|
1220
|
+
> **You are read-only — do not write, patch, move or update any files or task content.**
|
|
1221
|
+
>
|
|
1222
|
+
> **Task path:** `<path>`
|
|
1223
|
+
> **Diff range:** `<range, or "uncommitted changes">`
|
|
1224
|
+
> **Working directory:** `<pwd>`
|
|
1225
|
+
>
|
|
1226
|
+
> ## MANDATORY FIRST STEP — do this before anything else
|
|
1227
|
+
>
|
|
1228
|
+
> Invoke the `study-playbook` skill and read everything it returns. Follow every convention it specifies when evaluating code. If the playbook references a project-level `CLAUDE.md`, read that too (check the working directory root). If the skill is unavailable, read the project's `CLAUDE.md`; if neither exists, proceed without conventions and say so in the review.
|
|
1229
|
+
>
|
|
1230
|
+
> ## Review checklist
|
|
1231
|
+
>
|
|
1232
|
+
> Follow this checklist in order:
|
|
1233
|
+
>
|
|
1234
|
+
> - [ ] **Read the coding playbook** (above — not optional, do it first).
|
|
1235
|
+
> - [ ] **Gather context**
|
|
1236
|
+
> - Read the task at `<task path>`. Extract the description, investigation, plan, solution, stash and revisions sections.
|
|
1237
|
+
> - Get the diff: run `git diff HEAD` for uncommitted changes. If empty, run `git log --oneline -20` to find the session commits, then `git diff <first-commit>^..HEAD`. If a specific range was provided, use that.
|
|
1238
|
+
> - If the task contains a `## Stash` section, read the latest entry — it represents the most current session state (changes made, decisions, gotchas). Factor this into your review.
|
|
1239
|
+
> - [ ] **Read the changed files in full.** For every file in the diff, read the complete current version (not just the diff hunks) so you have surrounding context. Also read the callers and dependents of changed functions.
|
|
1240
|
+
> - [ ] **Review against each criterion:**
|
|
1241
|
+
> - **Correctness:** does the implementation match the plan and the task description? Logic errors, off-by-one, missed conditions?
|
|
1242
|
+
> - **Edge cases:** boundary conditions, empty inputs, null values, concurrent access, unexpected states?
|
|
1243
|
+
> - **Type safety:** correct and complete types? Any `any` casts, missing null checks at boundaries, type assertions hiding problems?
|
|
1244
|
+
> - **Error handling:** errors caught at the right level? Useful messages? Silent swallowing?
|
|
1245
|
+
> - **Side effects:** changes outside the stated scope? Check callers, dependents and shared state.
|
|
1246
|
+
> - **Test coverage:** do the tests verify the described behavior? Untested paths? Do the tests import the real module (not copy-pasted logic)?
|
|
1247
|
+
> - **Playbook alignment:** do the changes follow the established patterns from the coding playbook?
|
|
1248
|
+
> - **Performance:** N+1 queries, unnecessary re-renders, blocking calls, memory leaks?
|
|
1249
|
+
> - **Security:** OWASP top 10 — injection, XSS, auth bypass, secrets in code?
|
|
1250
|
+
> - **Naming and clarity:** descriptive names? Self-documenting code? Intent clear without comments?
|
|
1251
|
+
> - [ ] **Produce the review** in this exact format:
|
|
1252
|
+
>
|
|
1253
|
+
> ```
|
|
1254
|
+
> ## Review Summary
|
|
1255
|
+
>
|
|
1256
|
+
> **Verdict:** LGTM | Changes Requested | Needs Discussion
|
|
1257
|
+
>
|
|
1258
|
+
> **Risk level:** Low | Medium | High
|
|
1259
|
+
>
|
|
1260
|
+
> ### Findings
|
|
1261
|
+
>
|
|
1262
|
+
> #### Critical (must fix)
|
|
1263
|
+
> - [ ] <file:line> — <issue and suggested fix>
|
|
1264
|
+
>
|
|
1265
|
+
> #### Warnings (should fix)
|
|
1266
|
+
> - [ ] <file:line> — <issue and suggested fix>
|
|
1267
|
+
>
|
|
1268
|
+
> #### Nits (optional)
|
|
1269
|
+
> - [ ] <file:line> — <suggestion>
|
|
1270
|
+
>
|
|
1271
|
+
> #### Positive
|
|
1272
|
+
> - <things done well — reinforce good patterns>
|
|
1273
|
+
>
|
|
1274
|
+
> ### Missed Edge Cases
|
|
1275
|
+
> - <scenario not covered by tests or code>
|
|
1276
|
+
>
|
|
1277
|
+
> ### Questions
|
|
1278
|
+
> - <anything ambiguous that needs the author's input>
|
|
1279
|
+
> ```
|
|
1280
|
+
>
|
|
1281
|
+
> Omit any section that has zero items. Every finding must reference a specific file and line number.
|
|
1282
|
+
|
|
1283
|
+
Wait for the subagent result. Then proceed to Step 2.
|
|
1284
|
+
|
|
1285
|
+
## Step 2 — Present the review
|
|
1286
|
+
|
|
1287
|
+
Display the full review output verbatim. Do not summarize, editorialize or filter.
|
|
1288
|
+
|
|
1289
|
+
## Step 3 — Record the review
|
|
1290
|
+
|
|
1291
|
+
Delegate to the `kanban-maintainer` agent (description "Record review on `<TASK_SLUG>`") with this request, filled in:
|
|
1292
|
+
|
|
1293
|
+
> You are recording a code review on a task.
|
|
1294
|
+
>
|
|
1295
|
+
> **Task path:** `<task path>`
|
|
1296
|
+
> **Now:** `<YYYY-MM-DDTHH:MM:SS>`
|
|
1297
|
+
>
|
|
1298
|
+
> Use only the brain read, append, write and frontmatter tools available in this session.
|
|
1299
|
+
>
|
|
1300
|
+
> - [ ] Read the current task.
|
|
1301
|
+
> - [ ] If a `## Review` section already exists, append a new dated subsection under it (do NOT overwrite prior reviews). Otherwise, append a new `## Review` section.
|
|
1302
|
+
> - [ ] Append:
|
|
1303
|
+
>
|
|
1304
|
+
> ```markdown
|
|
1305
|
+
> ### <YYYY-MM-DD HH:MM>
|
|
1306
|
+
>
|
|
1307
|
+
> **Verdict:** <verdict>
|
|
1308
|
+
> **Risk level:** <risk level>
|
|
1309
|
+
>
|
|
1310
|
+
> **Key findings:**
|
|
1311
|
+
> <critical and warning items only — skip nits>
|
|
1312
|
+
>
|
|
1313
|
+
> **Action taken:** <pending user decision>
|
|
1314
|
+
> ```
|
|
1315
|
+
>
|
|
1316
|
+
> - [ ] Update the frontmatter to set `updated`.
|
|
1317
|
+
> - [ ] Return: `DONE`
|
|
1318
|
+
|
|
1319
|
+
Wait for `DONE`.
|
|
1320
|
+
|
|
1321
|
+
## Step 4 — Fix cycle (only if changes were requested)
|
|
1322
|
+
|
|
1323
|
+
If the verdict is **LGTM**, stop here. You are done.
|
|
1324
|
+
|
|
1325
|
+
If the verdict is **Changes Requested** or **Needs Discussion**, ask the user: "Want me to implement the fixes?"
|
|
1326
|
+
|
|
1327
|
+
**HARD STOP until they answer.**
|
|
1328
|
+
|
|
1329
|
+
If the user says yes, run Steps 4a through 4d below. You are an orchestrator: delegate every step to subagents.
|
|
1330
|
+
|
|
1331
|
+
### 4a — Investigate the findings
|
|
1332
|
+
|
|
1333
|
+
Make one subagent call (type `read-only`, description "Investigate review findings for `<TASK_SLUG>`") with this prompt, filled in:
|
|
1334
|
+
|
|
1335
|
+
> You are re-investigating a task after a code review found issues.
|
|
1336
|
+
> **You are read-only — do NOT write, patch, move or update anything.**
|
|
1337
|
+
>
|
|
1338
|
+
> **Task path:** `<path>` | **Slug:** `<TASK_SLUG>` | **Project:** `<project tag>`
|
|
1339
|
+
> **Working directory:** `<pwd>`
|
|
1340
|
+
>
|
|
1341
|
+
> Use only the brain read and search tools available in this session.
|
|
1342
|
+
>
|
|
1343
|
+
> ## MANDATORY FIRST STEP — do this before anything else
|
|
1344
|
+
>
|
|
1345
|
+
> Invoke the `study-playbook` skill and read everything it returns. Follow every convention it specifies. If the playbook references a project-level `CLAUDE.md`, read that too. If the skill is unavailable, read the project's `CLAUDE.md`; if neither exists, proceed without conventions and say so.
|
|
1346
|
+
>
|
|
1347
|
+
> ## Review findings to address
|
|
1348
|
+
>
|
|
1349
|
+
> `<paste the full review findings: Critical + Warnings + Missed Edge Cases>`
|
|
1350
|
+
>
|
|
1351
|
+
> ## Checklist
|
|
1352
|
+
>
|
|
1353
|
+
> - [ ] **Read the coding playbook** (above — not optional, do it first).
|
|
1354
|
+
> - [ ] **Read the task.** Get full context, including investigation, plan, solution, stash and prior reviews.
|
|
1355
|
+
> - [ ] **Investigate each finding.** Read every file referenced in the review findings (full files). Search for call sites of functions that need to change. Verify each finding is valid (not a false positive).
|
|
1356
|
+
> - [ ] **Devise the fix plan.** For each confirmed finding:
|
|
1357
|
+
> - name the file, the function or block, and what changes;
|
|
1358
|
+
> - flag any side effects or downstream impacts;
|
|
1359
|
+
> - output as a **structured checklist**.
|
|
1360
|
+
> - [ ] **Return in this exact format:**
|
|
1361
|
+
>
|
|
1362
|
+
> ```
|
|
1363
|
+
> INVESTIGATION:
|
|
1364
|
+
> - **Validated findings:** <which review items are confirmed>
|
|
1365
|
+
> - **False positives:** <which items are not actually issues, with reasoning>
|
|
1366
|
+
> - **Files involved:** <each file + one-line reason>
|
|
1367
|
+
>
|
|
1368
|
+
> OPEN_QUESTIONS:
|
|
1369
|
+
> <bulleted list, or "None">
|
|
1370
|
+
>
|
|
1371
|
+
> PLAN:
|
|
1372
|
+
> <structured checklist of fixes>
|
|
1373
|
+
> ```
|
|
1374
|
+
|
|
1375
|
+
Wait for the subagent result. Parse out INVESTIGATION, OPEN_QUESTIONS and PLAN.
|
|
1376
|
+
|
|
1377
|
+
### 4b — Present the plan and handle open questions
|
|
1378
|
+
|
|
1379
|
+
If there are open questions, present them. **HARD STOP until every question is answered or dismissed.**
|
|
1380
|
+
|
|
1381
|
+
Present the PLAN verbatim.
|
|
1382
|
+
|
|
1383
|
+
**HARD STOP: "Plan ready — approve to proceed?"** Do not implement until approved.
|
|
1384
|
+
|
|
1385
|
+
### 4c — Implement the fixes
|
|
1386
|
+
|
|
1387
|
+
Once approved, make one subagent call (`general-purpose`, description "Implement review fixes for `<TASK_SLUG>`") with this prompt, filled in:
|
|
1388
|
+
|
|
1389
|
+
> You are implementing review fixes from an approved plan.
|
|
1390
|
+
>
|
|
1391
|
+
> **Task path:** `<path>` | **Slug:** `<TASK_SLUG>`
|
|
1392
|
+
> **Working directory:** `<pwd>` | **Now:** `<YYYY-MM-DDTHH:MM:SS>`
|
|
1393
|
+
>
|
|
1394
|
+
> Use only the brain append and frontmatter tools available in this session.
|
|
1395
|
+
>
|
|
1396
|
+
> ## MANDATORY FIRST STEP — do this before writing any code
|
|
1397
|
+
>
|
|
1398
|
+
> Invoke the `study-playbook` skill and read everything it returns. Then check whether a `CLAUDE.md` exists at the working directory root — if so, read that too. Follow every convention from both for all code you write. If the skill is unavailable and there is no `CLAUDE.md`, proceed without conventions and say so.
|
|
1399
|
+
>
|
|
1400
|
+
> ## Approved plan
|
|
1401
|
+
>
|
|
1402
|
+
> `<paste the full PLAN here>`
|
|
1403
|
+
>
|
|
1404
|
+
> `<if open questions were answered, paste them here under "## User answers">`
|
|
1405
|
+
>
|
|
1406
|
+
> ## Checklist
|
|
1407
|
+
>
|
|
1408
|
+
> - [ ] **Read the coding playbook and the project `CLAUDE.md`** (above — mandatory).
|
|
1409
|
+
> - [ ] **Implement the fixes.** Follow the approved plan step by step. Follow every convention from the playbook.
|
|
1410
|
+
> - [ ] **Type check.** Run the project's type checker. Fix all errors before proceeding.
|
|
1411
|
+
> - [ ] **Run tests.** Run the existing tests. If any review finding relates to untested behavior, add tests. All tests must pass before proceeding.
|
|
1412
|
+
> - [ ] **Record revisions.** Append a `## Revisions` section to the task. If a `## Revisions` section already exists, append a new dated subsection (do NOT overwrite prior revisions):
|
|
1413
|
+
>
|
|
1414
|
+
> ```markdown
|
|
1415
|
+
> ### <YYYY-MM-DD HH:MM>
|
|
1416
|
+
>
|
|
1417
|
+
> **Review findings addressed:** <which items were fixed>
|
|
1418
|
+
> **Files changed:** <each file + one-line summary>
|
|
1419
|
+
> **Test coverage:** <tests added/modified and what they verify>
|
|
1420
|
+
> ```
|
|
1421
|
+
>
|
|
1422
|
+
> Then update the frontmatter to set `updated`.
|
|
1423
|
+
>
|
|
1424
|
+
> - [ ] **Return in this exact format:**
|
|
1425
|
+
>
|
|
1426
|
+
> ```
|
|
1427
|
+
> SUMMARY:
|
|
1428
|
+
> <files modified and what each change does>
|
|
1429
|
+
>
|
|
1430
|
+
> TEST_RESULTS:
|
|
1431
|
+
> <tests added/modified, what they verify, pass/fail>
|
|
1432
|
+
>
|
|
1433
|
+
> FILES_CHANGED:
|
|
1434
|
+
> <bulleted list of every file modified or created>
|
|
1435
|
+
> ```
|
|
1436
|
+
>
|
|
1437
|
+
> **Do NOT commit. No git add, git commit or any git write operations.**
|
|
1438
|
+
|
|
1439
|
+
Wait for the subagent result. Then proceed to Step 4d.
|
|
1440
|
+
|
|
1441
|
+
### 4d — Present results
|
|
1442
|
+
|
|
1443
|
+
Display `SUMMARY`, `TEST_RESULTS` and `FILES_CHANGED` verbatim.
|
|
1444
|
+
|
|
1445
|
+
**Do NOT commit or stage anything.** Wait for an explicit user request.
|
|
1446
|
+
|
|
1447
|
+
To review again, run the Review operation again.
|
|
1448
|
+
|
|
1449
|
+
<!-- aide-kanban-review-end -->
|