@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,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seed text for the Stash guide at `kanban/guide/stash.md`, carried by the
|
|
3
|
+
* template's `kanban-stash` contract section.
|
|
4
|
+
*
|
|
5
|
+
* Obsidian-specific by design: wiki links and the task's `## Stash` entry
|
|
6
|
+
* format; the task is found in its project's column folders. The `## Stash` and
|
|
7
|
+
* `### <YYYY-MM-DD HH:MM>` lines inside the entry-format fences are task
|
|
8
|
+
* content, not guide headings, so they stay unpromoted.
|
|
9
|
+
*
|
|
10
|
+
* The text lands in the brain exactly as written here (ending in one newline);
|
|
11
|
+
* the config seeding step splits the frontmatter from the body when writing.
|
|
12
|
+
*/
|
|
13
|
+
export default `---
|
|
14
|
+
tags:
|
|
15
|
+
- tasks
|
|
16
|
+
- workflow
|
|
17
|
+
---
|
|
18
|
+
# Stash
|
|
19
|
+
|
|
20
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
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.
|
|
25
|
+
|
|
26
|
+
## Step 1 — Identify the task from session context
|
|
27
|
+
|
|
28
|
+
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.
|
|
29
|
+
|
|
30
|
+
If no task can be identified, ask the user which task to stash to and stop until they answer.
|
|
31
|
+
|
|
32
|
+
## Step 2 — Determine the project
|
|
33
|
+
|
|
34
|
+
Get the project tag (see Project in [[kanban/kanban|Kanban]]).
|
|
35
|
+
|
|
36
|
+
## Step 3 — Read the task
|
|
37
|
+
|
|
38
|
+
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.
|
|
39
|
+
|
|
40
|
+
## Step 4 — Gather session context
|
|
41
|
+
|
|
42
|
+
Collect information from these sources, in parallel where possible.
|
|
43
|
+
|
|
44
|
+
### 4a — Git changes (if in a git repo)
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
### 4b — Conversation review
|
|
49
|
+
|
|
50
|
+
Review the conversation for:
|
|
51
|
+
|
|
52
|
+
- **What was done:** concrete changes made (files modified, new behavior added, bugs fixed, refactors performed). Be specific: name files, functions and what changed.
|
|
53
|
+
- **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.
|
|
54
|
+
- **Open questions:** anything unresolved, unclear or deferred. Things that need more investigation or user input, or that depend on external factors.
|
|
55
|
+
- **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.
|
|
56
|
+
- **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).
|
|
57
|
+
|
|
58
|
+
## Step 5 — Compose and append the stash entry
|
|
59
|
+
|
|
60
|
+
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.
|
|
61
|
+
|
|
62
|
+
Format:
|
|
63
|
+
|
|
64
|
+
\`\`\`markdown
|
|
65
|
+
## Stash
|
|
66
|
+
|
|
67
|
+
### <YYYY-MM-DD HH:MM>
|
|
68
|
+
|
|
69
|
+
**Changes made:**
|
|
70
|
+
- <file or area>: <what changed and why>
|
|
71
|
+
|
|
72
|
+
**Decisions:**
|
|
73
|
+
- <decision>: <reasoning, alternatives considered>
|
|
74
|
+
|
|
75
|
+
**Open questions:**
|
|
76
|
+
- <question or uncertainty>
|
|
77
|
+
|
|
78
|
+
**Remaining work:**
|
|
79
|
+
- [ ] <concrete next step>
|
|
80
|
+
|
|
81
|
+
**Gotchas:**
|
|
82
|
+
- <anything surprising or non-obvious>
|
|
83
|
+
\`\`\`
|
|
84
|
+
|
|
85
|
+
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.
|
|
86
|
+
|
|
87
|
+
If a \`## Stash\` section already exists, append the new entry as a new \`###\` dated subsection at the bottom of the existing Stash section:
|
|
88
|
+
|
|
89
|
+
\`\`\`markdown
|
|
90
|
+
### <YYYY-MM-DD HH:MM>
|
|
91
|
+
|
|
92
|
+
**Changes made:**
|
|
93
|
+
...
|
|
94
|
+
\`\`\`
|
|
95
|
+
|
|
96
|
+
## Step 6 — Update frontmatter
|
|
97
|
+
|
|
98
|
+
Update the task's \`updated\` field to the current datetime (\`YYYY-MM-DDTHH:MM:SS\`).
|
|
99
|
+
|
|
100
|
+
## Step 7 — Confirm
|
|
101
|
+
|
|
102
|
+
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.
|
|
103
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seed text for the Work guide at `kanban/guide/work.md`, carried by the
|
|
3
|
+
* template's `kanban-work` contract section.
|
|
4
|
+
*
|
|
5
|
+
* Obsidian-specific by design: wiki links and the `mcp__brain__*` tools. Task
|
|
6
|
+
* reads and writes (find, activate) go to the `kanban-maintainer` agent, which
|
|
7
|
+
* lists the project's column folders; the main agent investigates, plans,
|
|
8
|
+
* implements and reviews.
|
|
9
|
+
*
|
|
10
|
+
* The text lands in the brain exactly as written here (ending in one newline);
|
|
11
|
+
* the config seeding step splits the frontmatter from the body when writing.
|
|
12
|
+
*/
|
|
13
|
+
declare const _default: "---\ntags:\n - tasks\n - workflow\n---\n# Work\n\nPart of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.\n\nPick, 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]].\n\nThe 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.\n\n## Architecture\n\nThe `kanban-maintainer` agent handles task reads and writes (find, activate). It is stateless and disposable.\n\nThe 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.\n\nDo 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.\n\n## Mode discipline\n\n| Steps | Mode | Rule |\n| ----- | ---- | --------------------------------------- |\n| 1\u20135 | Plan | Read, analyze, search. No code changes. |\n| 5b | Act | Task activation write only. |\n| 6 | Act | Write code, run type checks, run tests. |\n| 7 | Plan | Read and analyze only. No code changes. |\n| 8a | Plan | Re-investigate, present revised plan. |\n| 8b | Act | Implement revised plan, run tests. |\n| 8c\u20138d | Plan | Re-review, present results. |\n\n**Transition rule:** After every Act section, re-enter planning mode before doing anything else. Do not make further code changes until explicitly approved.\n\n## Checklist\n\n- [ ] **Step 0** \u2014 Enter planning mode\n- [ ] **Step 1** \u2014 Have `kanban-maintainer` find tasks\n- [ ] **Step 2** \u2014 Present the task table and ask the user to pick (skip if a slug matched)\n- [ ] **Step 3** \u2014 (deferred \u2014 task activation runs at Step 5b after plan approval)\n- [ ] **Step 4** \u2014 Investigate and plan (main agent, planning mode)\n- [ ] **Step 5** \u2014 Hard stop: present the plan for approval\n- [ ] **Step 5b** \u2014 Have `kanban-maintainer` activate the task (first act after approval)\n- [ ] **Step 6** \u2014 Implement (main agent, act mode)\n- [ ] **Step 7** \u2014 Review (main agent, planning mode)\n- [ ] **Step 8** \u2014 Revision loop (if needed, forward-only)\n\n## Step 0 \u2014 Enter planning mode\n\nIf you are not already in a read-only planning mode, enter it now. Do not proceed until you are in it.\n\n## Step 1 \u2014 Find tasks (`kanban-maintainer`)\n\nDelegate to the `kanban-maintainer` agent with this request, filled in:\n\n> You are finding a task in the project's kanban folders.\n>\n> **Arguments:** `<args from the caller, or \"none\">`\n> **Project tag:** `<project tag, or \"none\">`\n>\n> Use only the brain read, search and frontmatter tools available in this session.\n>\n> ## Checklist\n>\n> - [ ] **Check the project tag.** If the project tag is \"none\", return `MODE: NO_PROJECT`.\n> - [ ] **Find the task.**\n>\n> **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.\n>\n> **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 \u2014 collect it for the return output. Return as TABLE.\n>\n> - [ ] **Return** \u2014 one of:\n>\n> **DIRECT** (the slug matched one task):\n>\n> ```\n> MODE: DIRECT\n> PROJECT_TAG: <tag>\n> TASK_SLUG: <slug>\n> TASK_PATH: <brain-relative path>\n> TASK_CONTENT:\n> <full markdown including frontmatter>\n> ```\n>\n> **TABLE** (the user picks):\n>\n> ```\n> MODE: TABLE\n> PROJECT_TAG: <tag>\n>\n> | # | Status | Severity | Task | Description |\n> |---|--------|----------|------|-------------|\n> | 1 | In Progress | p0 | slug | short desc |\n>\n> TASK_PATHS:\n> 1: kanban/<project>/backlog/my-task.md\n>\n> TASK_CONTENTS:\n> --- TASK 1 ---\n> <full markdown>\n> ```\n>\n> If any task has a missing or wrong `project` field, append:\n>\n> ```\n> MISMATCHES:\n> - <slug>: project field is \"<value or missing>\" but the task is in \"kanban/<project>/\"\n> ```\n>\n> Omit MISMATCHES if there are none.\n>\n> **NO_TASKS** or **NO_PROJECT**: `MODE: NO_TASKS` / `MODE: NO_PROJECT`\n\n## Step 2 \u2014 Present and pick\n\n**First, check for mismatches.** If the response contains a `MISMATCHES:` section, present it:\n\n> These tasks have a missing or wrong project field:\n> `<list>`\n> Want me to fix them before continuing, or ignore for now?\n\n**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**.\n\nIf the user says ignore, proceed.\n\n**Then handle the mode:**\n\n- `NO_PROJECT`: ask the user which project. Stop.\n- `NO_TASKS`: tell the user there are no open tasks. Stop.\n- `DIRECT`: extract the task fields and skip to Step 4.\n- `TABLE`: display the table verbatim. **Hard stop: \"Which task?\"** Accept a number, a slug or a description fragment.\n\n## Step 3 \u2014 Deferred\n\nBoard 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.\n\n## Step 4 \u2014 Investigate and plan (main agent, planning mode)\n\nYou do this directly, with no subagent. Planning mode: read, search and analyze only.\n\n### 4a \u2014 Load conventions\n\nDo not proceed to 4b until the conventions are fully loaded into this context window. Do not delegate planning to a subagent \u2014 it runs in a fresh context and will not have these conventions.\n\nTry these sources in order and use the first that succeeds:\n\n1. The `study-playbook` skill. Invoke it, then:\n - read the entry point it returns;\n - identify which sections are relevant to this task;\n - read each relevant section's entry point;\n - read every child file linked from those entry points;\n - only proceed to 4b once all the relevant child files are in context.\n2. The project's `CLAUDE.md` in the working directory.\n3. If neither exists, proceed without conventions and record `CONVENTIONS: none found`.\n\n### 4b \u2014 Load context\n\nSearch the brain with the task's topic keywords for domain context.\n\n### 4c \u2014 Investigate the codebase\n\n- Read every file mentioned in the task (full files, not fragments).\n- Search for all call sites of functions you expect to change.\n- List every file that needs to change and why, including indirect dependents.\n\n### 4d \u2014 Devise the plan\n\nThe plan must answer:\n\n- **Root cause** (not symptom): quote specific lines or behavior.\n- **Minimal change:** name each file, function or block, and what changes. If multiple approaches exist, list them and justify your choice.\n- **Conventions used:** list which conventions from the coding playbook were used.\n- **What could go wrong:** side effects, edge cases, anything needing user input.\n- **Open questions:** anything ambiguous, or \"None\".\n\nOutput the plan as a structured checklist.\n\n### 4e \u2014 Open questions (if any)\n\nIf there are open questions, **hard stop**. Present them to the user. Do not proceed until every question is answered or dismissed.\n\n## Step 5 \u2014 Hard stop: present the plan\n\nPresent the plan to the user verbatim.\n\n**Hard stop. Do not activate the task or write code until the user approves the plan.**\n\nOnce the user approves, proceed immediately to Step 5b, before writing any code.\n\n## Step 5b \u2014 Activate the task (`kanban-maintainer`)\n\nYou are now in act mode. Delegate to the `kanban-maintainer` agent with this request, filled in:\n\n> You are activating a task \u2014 stamping it and moving it to In Progress.\n>\n> **Task path:** `<path>` | **Slug:** `<slug>` | **Project:** `<project tag>` | **Now:** `<YYYY-MM-DDTHH:MM:SS>`\n>\n> Use only the brain read, write, move and frontmatter tools available in this session.\n>\n> ## Checklist\n>\n> - [ ] **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)`.\n> - [ ] **Stamp.** Read the frontmatter, then update it: append the current datetime to the `sessions` list (preserve existing entries) and update `updated`.\n> - [ ] **Move the file.** Move the task to `kanban/<project>/in-progress/<slug>.md`.\n> - [ ] Return `DONE` or `DONE (resumed)`.\n\nDo not proceed to Step 6 until the agent returns `DONE` or `DONE (resumed)`.\n\n## Step 6 \u2014 Implement (main agent, act mode)\n\nYou do this directly, with no subagent. Act mode: write code and run tools.\n\n### 6a \u2014 Implement the changes\n\nFollow the approved plan. Apply the coding playbook patterns loaded in Step 4a.\n\n### 6b \u2014 Type check\n\nRun the project's type checker. Fix all errors before proceeding.\n\n### 6c \u2014 Write and run tests\n\n**Mandatory.** Choose the appropriate test type:\n\n- **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.\n- **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.\n- **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.\n\nRun all tests and confirm green before proceeding.\n\n**After implementation is complete and the tests pass, re-enter planning mode. Do not make any further code changes until explicitly approved.**\n\n## Step 7 \u2014 Review (main agent, planning mode)\n\nYou are now in planning mode. Read and analyze only \u2014 no code changes.\n\n### 7a \u2014 Get the diff\n\nRun `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`.\n\n### 7b \u2014 Read the changed files in full\n\nFor every file in the diff, read the complete current version (not just the hunks). Also read the callers and dependents of changed functions.\n\n### 7c \u2014 Review against each criterion\n\n- **Correctness:** does the implementation match the plan? Logic errors, missed conditions?\n- **Edge cases:** boundaries, empty inputs, nulls, concurrent access?\n- **Type safety:** complete types? Hidden `any` casts, missing null checks?\n- **Error handling:** at the right level? Useful messages? Silent swallowing?\n- **Side effects:** changes outside the stated scope? Shared-state impacts?\n- **Test coverage:** do the tests verify the described behavior? Untested paths?\n- **Playbook alignment:** follows the established patterns?\n- **Performance:** N+1 queries, blocking calls, memory leaks?\n- **Security:** injection, XSS, auth bypass, secrets in code?\n- **Naming and clarity:** descriptive? Self-documenting?\n\n### 7d \u2014 Produce the review\n\n```\nVERDICT: LGTM | CHANGES_REQUESTED | NEEDS_DISCUSSION\nRISK: Low | Medium | High\n\nCRITICAL:\n- <file:line> \u2014 <issue and fix>\n\nWARNINGS:\n- <file:line> \u2014 <issue and fix>\n\nNITS:\n- <file:line> \u2014 <suggestion>\n\nPOSITIVE:\n- <things done well>\n\nMISSED_EDGE_CASES:\n- <scenario not covered>\n```\n\nOmit sections with zero items.\n\n### 7e \u2014 Present the review and check the verdict\n\nPresent the review to the user.\n\n- **LGTM:** ask \"Ready to stash?\" If yes, run the [[kanban/guide/stash|Stash]] operation.\n- **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.\n- **CHANGES_REQUESTED:** enter Step 8.\n\n## Step 8 \u2014 Revision loop (forward-only)\n\nDo not jump back to earlier steps. This is a self-contained loop. Repeat 8a\u20138d until the review verdict is LGTM or the user says stop.\n\n### 8a \u2014 Re-investigate (planning mode)\n\nFocus 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.\n\nPresent the revised plan. **Hard stop for approval.**\n\n### 8b \u2014 Implement the revisions (act mode)\n\nImplement only the approved revisions. Run the type check. Run the tests. Confirm green.\n\n**After the tests pass, re-enter planning mode.**\n\n### 8c \u2014 Re-review (planning mode)\n\nRead and analyze only \u2014 no code changes.\n\nGet 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.\n\n### 8d \u2014 Present and check the verdict\n\nPresent the re-review to the user.\n\n- **LGTM:** ask \"Ready to stash?\" If yes, run the [[kanban/guide/stash|Stash]] operation.\n- **CHANGES_REQUESTED:** return to 8a.\n- **NEEDS_DISCUSSION:** hard stop. Wait for the user's direction.\n";
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seed text for the Work guide at `kanban/guide/work.md`, carried by the
|
|
3
|
+
* template's `kanban-work` contract section.
|
|
4
|
+
*
|
|
5
|
+
* Obsidian-specific by design: wiki links and the `mcp__brain__*` tools. Task
|
|
6
|
+
* reads and writes (find, activate) go to the `kanban-maintainer` agent, which
|
|
7
|
+
* lists the project's column folders; the main agent investigates, plans,
|
|
8
|
+
* implements and reviews.
|
|
9
|
+
*
|
|
10
|
+
* The text lands in the brain exactly as written here (ending in one newline);
|
|
11
|
+
* the config seeding step splits the frontmatter from the body when writing.
|
|
12
|
+
*/
|
|
13
|
+
export default `---
|
|
14
|
+
tags:
|
|
15
|
+
- tasks
|
|
16
|
+
- workflow
|
|
17
|
+
---
|
|
18
|
+
# Work
|
|
19
|
+
|
|
20
|
+
Part of [[kanban/kanban|Kanban]]. Read it first: its project, column, task and brain tool rules apply to every step below.
|
|
21
|
+
|
|
22
|
+
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]].
|
|
23
|
+
|
|
24
|
+
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.
|
|
25
|
+
|
|
26
|
+
## Architecture
|
|
27
|
+
|
|
28
|
+
The \`kanban-maintainer\` agent handles task reads and writes (find, activate). It is stateless and disposable.
|
|
29
|
+
|
|
30
|
+
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.
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
## Mode discipline
|
|
35
|
+
|
|
36
|
+
| Steps | Mode | Rule |
|
|
37
|
+
| ----- | ---- | --------------------------------------- |
|
|
38
|
+
| 1–5 | Plan | Read, analyze, search. No code changes. |
|
|
39
|
+
| 5b | Act | Task activation write only. |
|
|
40
|
+
| 6 | Act | Write code, run type checks, run tests. |
|
|
41
|
+
| 7 | Plan | Read and analyze only. No code changes. |
|
|
42
|
+
| 8a | Plan | Re-investigate, present revised plan. |
|
|
43
|
+
| 8b | Act | Implement revised plan, run tests. |
|
|
44
|
+
| 8c–8d | Plan | Re-review, present results. |
|
|
45
|
+
|
|
46
|
+
**Transition rule:** After every Act section, re-enter planning mode before doing anything else. Do not make further code changes until explicitly approved.
|
|
47
|
+
|
|
48
|
+
## Checklist
|
|
49
|
+
|
|
50
|
+
- [ ] **Step 0** — Enter planning mode
|
|
51
|
+
- [ ] **Step 1** — Have \`kanban-maintainer\` find tasks
|
|
52
|
+
- [ ] **Step 2** — Present the task table and ask the user to pick (skip if a slug matched)
|
|
53
|
+
- [ ] **Step 3** — (deferred — task activation runs at Step 5b after plan approval)
|
|
54
|
+
- [ ] **Step 4** — Investigate and plan (main agent, planning mode)
|
|
55
|
+
- [ ] **Step 5** — Hard stop: present the plan for approval
|
|
56
|
+
- [ ] **Step 5b** — Have \`kanban-maintainer\` activate the task (first act after approval)
|
|
57
|
+
- [ ] **Step 6** — Implement (main agent, act mode)
|
|
58
|
+
- [ ] **Step 7** — Review (main agent, planning mode)
|
|
59
|
+
- [ ] **Step 8** — Revision loop (if needed, forward-only)
|
|
60
|
+
|
|
61
|
+
## Step 0 — Enter planning mode
|
|
62
|
+
|
|
63
|
+
If you are not already in a read-only planning mode, enter it now. Do not proceed until you are in it.
|
|
64
|
+
|
|
65
|
+
## Step 1 — Find tasks (\`kanban-maintainer\`)
|
|
66
|
+
|
|
67
|
+
Delegate to the \`kanban-maintainer\` agent with this request, filled in:
|
|
68
|
+
|
|
69
|
+
> You are finding a task in the project's kanban folders.
|
|
70
|
+
>
|
|
71
|
+
> **Arguments:** \`<args from the caller, or "none">\`
|
|
72
|
+
> **Project tag:** \`<project tag, or "none">\`
|
|
73
|
+
>
|
|
74
|
+
> Use only the brain read, search and frontmatter tools available in this session.
|
|
75
|
+
>
|
|
76
|
+
> ## Checklist
|
|
77
|
+
>
|
|
78
|
+
> - [ ] **Check the project tag.** If the project tag is "none", return \`MODE: NO_PROJECT\`.
|
|
79
|
+
> - [ ] **Find the task.**
|
|
80
|
+
>
|
|
81
|
+
> **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.
|
|
82
|
+
>
|
|
83
|
+
> **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.
|
|
84
|
+
>
|
|
85
|
+
> - [ ] **Return** — one of:
|
|
86
|
+
>
|
|
87
|
+
> **DIRECT** (the slug matched one task):
|
|
88
|
+
>
|
|
89
|
+
> \`\`\`
|
|
90
|
+
> MODE: DIRECT
|
|
91
|
+
> PROJECT_TAG: <tag>
|
|
92
|
+
> TASK_SLUG: <slug>
|
|
93
|
+
> TASK_PATH: <brain-relative path>
|
|
94
|
+
> TASK_CONTENT:
|
|
95
|
+
> <full markdown including frontmatter>
|
|
96
|
+
> \`\`\`
|
|
97
|
+
>
|
|
98
|
+
> **TABLE** (the user picks):
|
|
99
|
+
>
|
|
100
|
+
> \`\`\`
|
|
101
|
+
> MODE: TABLE
|
|
102
|
+
> PROJECT_TAG: <tag>
|
|
103
|
+
>
|
|
104
|
+
> | # | Status | Severity | Task | Description |
|
|
105
|
+
> |---|--------|----------|------|-------------|
|
|
106
|
+
> | 1 | In Progress | p0 | slug | short desc |
|
|
107
|
+
>
|
|
108
|
+
> TASK_PATHS:
|
|
109
|
+
> 1: kanban/<project>/backlog/my-task.md
|
|
110
|
+
>
|
|
111
|
+
> TASK_CONTENTS:
|
|
112
|
+
> --- TASK 1 ---
|
|
113
|
+
> <full markdown>
|
|
114
|
+
> \`\`\`
|
|
115
|
+
>
|
|
116
|
+
> If any task has a missing or wrong \`project\` field, append:
|
|
117
|
+
>
|
|
118
|
+
> \`\`\`
|
|
119
|
+
> MISMATCHES:
|
|
120
|
+
> - <slug>: project field is "<value or missing>" but the task is in "kanban/<project>/"
|
|
121
|
+
> \`\`\`
|
|
122
|
+
>
|
|
123
|
+
> Omit MISMATCHES if there are none.
|
|
124
|
+
>
|
|
125
|
+
> **NO_TASKS** or **NO_PROJECT**: \`MODE: NO_TASKS\` / \`MODE: NO_PROJECT\`
|
|
126
|
+
|
|
127
|
+
## Step 2 — Present and pick
|
|
128
|
+
|
|
129
|
+
**First, check for mismatches.** If the response contains a \`MISMATCHES:\` section, present it:
|
|
130
|
+
|
|
131
|
+
> These tasks have a missing or wrong project field:
|
|
132
|
+
> \`<list>\`
|
|
133
|
+
> Want me to fix them before continuing, or ignore for now?
|
|
134
|
+
|
|
135
|
+
**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**.
|
|
136
|
+
|
|
137
|
+
If the user says ignore, proceed.
|
|
138
|
+
|
|
139
|
+
**Then handle the mode:**
|
|
140
|
+
|
|
141
|
+
- \`NO_PROJECT\`: ask the user which project. Stop.
|
|
142
|
+
- \`NO_TASKS\`: tell the user there are no open tasks. Stop.
|
|
143
|
+
- \`DIRECT\`: extract the task fields and skip to Step 4.
|
|
144
|
+
- \`TABLE\`: display the table verbatim. **Hard stop: "Which task?"** Accept a number, a slug or a description fragment.
|
|
145
|
+
|
|
146
|
+
## Step 3 — Deferred
|
|
147
|
+
|
|
148
|
+
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.
|
|
149
|
+
|
|
150
|
+
## Step 4 — Investigate and plan (main agent, planning mode)
|
|
151
|
+
|
|
152
|
+
You do this directly, with no subagent. Planning mode: read, search and analyze only.
|
|
153
|
+
|
|
154
|
+
### 4a — Load conventions
|
|
155
|
+
|
|
156
|
+
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.
|
|
157
|
+
|
|
158
|
+
Try these sources in order and use the first that succeeds:
|
|
159
|
+
|
|
160
|
+
1. The \`study-playbook\` skill. Invoke it, then:
|
|
161
|
+
- read the entry point it returns;
|
|
162
|
+
- identify which sections are relevant to this task;
|
|
163
|
+
- read each relevant section's entry point;
|
|
164
|
+
- read every child file linked from those entry points;
|
|
165
|
+
- only proceed to 4b once all the relevant child files are in context.
|
|
166
|
+
2. The project's \`CLAUDE.md\` in the working directory.
|
|
167
|
+
3. If neither exists, proceed without conventions and record \`CONVENTIONS: none found\`.
|
|
168
|
+
|
|
169
|
+
### 4b — Load context
|
|
170
|
+
|
|
171
|
+
Search the brain with the task's topic keywords for domain context.
|
|
172
|
+
|
|
173
|
+
### 4c — Investigate the codebase
|
|
174
|
+
|
|
175
|
+
- Read every file mentioned in the task (full files, not fragments).
|
|
176
|
+
- Search for all call sites of functions you expect to change.
|
|
177
|
+
- List every file that needs to change and why, including indirect dependents.
|
|
178
|
+
|
|
179
|
+
### 4d — Devise the plan
|
|
180
|
+
|
|
181
|
+
The plan must answer:
|
|
182
|
+
|
|
183
|
+
- **Root cause** (not symptom): quote specific lines or behavior.
|
|
184
|
+
- **Minimal change:** name each file, function or block, and what changes. If multiple approaches exist, list them and justify your choice.
|
|
185
|
+
- **Conventions used:** list which conventions from the coding playbook were used.
|
|
186
|
+
- **What could go wrong:** side effects, edge cases, anything needing user input.
|
|
187
|
+
- **Open questions:** anything ambiguous, or "None".
|
|
188
|
+
|
|
189
|
+
Output the plan as a structured checklist.
|
|
190
|
+
|
|
191
|
+
### 4e — Open questions (if any)
|
|
192
|
+
|
|
193
|
+
If there are open questions, **hard stop**. Present them to the user. Do not proceed until every question is answered or dismissed.
|
|
194
|
+
|
|
195
|
+
## Step 5 — Hard stop: present the plan
|
|
196
|
+
|
|
197
|
+
Present the plan to the user verbatim.
|
|
198
|
+
|
|
199
|
+
**Hard stop. Do not activate the task or write code until the user approves the plan.**
|
|
200
|
+
|
|
201
|
+
Once the user approves, proceed immediately to Step 5b, before writing any code.
|
|
202
|
+
|
|
203
|
+
## Step 5b — Activate the task (\`kanban-maintainer\`)
|
|
204
|
+
|
|
205
|
+
You are now in act mode. Delegate to the \`kanban-maintainer\` agent with this request, filled in:
|
|
206
|
+
|
|
207
|
+
> You are activating a task — stamping it and moving it to In Progress.
|
|
208
|
+
>
|
|
209
|
+
> **Task path:** \`<path>\` | **Slug:** \`<slug>\` | **Project:** \`<project tag>\` | **Now:** \`<YYYY-MM-DDTHH:MM:SS>\`
|
|
210
|
+
>
|
|
211
|
+
> Use only the brain read, write, move and frontmatter tools available in this session.
|
|
212
|
+
>
|
|
213
|
+
> ## Checklist
|
|
214
|
+
>
|
|
215
|
+
> - [ ] **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)\`.
|
|
216
|
+
> - [ ] **Stamp.** Read the frontmatter, then update it: append the current datetime to the \`sessions\` list (preserve existing entries) and update \`updated\`.
|
|
217
|
+
> - [ ] **Move the file.** Move the task to \`kanban/<project>/in-progress/<slug>.md\`.
|
|
218
|
+
> - [ ] Return \`DONE\` or \`DONE (resumed)\`.
|
|
219
|
+
|
|
220
|
+
Do not proceed to Step 6 until the agent returns \`DONE\` or \`DONE (resumed)\`.
|
|
221
|
+
|
|
222
|
+
## Step 6 — Implement (main agent, act mode)
|
|
223
|
+
|
|
224
|
+
You do this directly, with no subagent. Act mode: write code and run tools.
|
|
225
|
+
|
|
226
|
+
### 6a — Implement the changes
|
|
227
|
+
|
|
228
|
+
Follow the approved plan. Apply the coding playbook patterns loaded in Step 4a.
|
|
229
|
+
|
|
230
|
+
### 6b — Type check
|
|
231
|
+
|
|
232
|
+
Run the project's type checker. Fix all errors before proceeding.
|
|
233
|
+
|
|
234
|
+
### 6c — Write and run tests
|
|
235
|
+
|
|
236
|
+
**Mandatory.** Choose the appropriate test type:
|
|
237
|
+
|
|
238
|
+
- **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.
|
|
239
|
+
- **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.
|
|
240
|
+
- **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.
|
|
241
|
+
|
|
242
|
+
Run all tests and confirm green before proceeding.
|
|
243
|
+
|
|
244
|
+
**After implementation is complete and the tests pass, re-enter planning mode. Do not make any further code changes until explicitly approved.**
|
|
245
|
+
|
|
246
|
+
## Step 7 — Review (main agent, planning mode)
|
|
247
|
+
|
|
248
|
+
You are now in planning mode. Read and analyze only — no code changes.
|
|
249
|
+
|
|
250
|
+
### 7a — Get the diff
|
|
251
|
+
|
|
252
|
+
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\`.
|
|
253
|
+
|
|
254
|
+
### 7b — Read the changed files in full
|
|
255
|
+
|
|
256
|
+
For every file in the diff, read the complete current version (not just the hunks). Also read the callers and dependents of changed functions.
|
|
257
|
+
|
|
258
|
+
### 7c — Review against each criterion
|
|
259
|
+
|
|
260
|
+
- **Correctness:** does the implementation match the plan? Logic errors, missed conditions?
|
|
261
|
+
- **Edge cases:** boundaries, empty inputs, nulls, concurrent access?
|
|
262
|
+
- **Type safety:** complete types? Hidden \`any\` casts, missing null checks?
|
|
263
|
+
- **Error handling:** at the right level? Useful messages? Silent swallowing?
|
|
264
|
+
- **Side effects:** changes outside the stated scope? Shared-state impacts?
|
|
265
|
+
- **Test coverage:** do the tests verify the described behavior? Untested paths?
|
|
266
|
+
- **Playbook alignment:** follows the established patterns?
|
|
267
|
+
- **Performance:** N+1 queries, blocking calls, memory leaks?
|
|
268
|
+
- **Security:** injection, XSS, auth bypass, secrets in code?
|
|
269
|
+
- **Naming and clarity:** descriptive? Self-documenting?
|
|
270
|
+
|
|
271
|
+
### 7d — Produce the review
|
|
272
|
+
|
|
273
|
+
\`\`\`
|
|
274
|
+
VERDICT: LGTM | CHANGES_REQUESTED | NEEDS_DISCUSSION
|
|
275
|
+
RISK: Low | Medium | High
|
|
276
|
+
|
|
277
|
+
CRITICAL:
|
|
278
|
+
- <file:line> — <issue and fix>
|
|
279
|
+
|
|
280
|
+
WARNINGS:
|
|
281
|
+
- <file:line> — <issue and fix>
|
|
282
|
+
|
|
283
|
+
NITS:
|
|
284
|
+
- <file:line> — <suggestion>
|
|
285
|
+
|
|
286
|
+
POSITIVE:
|
|
287
|
+
- <things done well>
|
|
288
|
+
|
|
289
|
+
MISSED_EDGE_CASES:
|
|
290
|
+
- <scenario not covered>
|
|
291
|
+
\`\`\`
|
|
292
|
+
|
|
293
|
+
Omit sections with zero items.
|
|
294
|
+
|
|
295
|
+
### 7e — Present the review and check the verdict
|
|
296
|
+
|
|
297
|
+
Present the review to the user.
|
|
298
|
+
|
|
299
|
+
- **LGTM:** ask "Ready to stash?" If yes, run the [[kanban/guide/stash|Stash]] operation.
|
|
300
|
+
- **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.
|
|
301
|
+
- **CHANGES_REQUESTED:** enter Step 8.
|
|
302
|
+
|
|
303
|
+
## Step 8 — Revision loop (forward-only)
|
|
304
|
+
|
|
305
|
+
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.
|
|
306
|
+
|
|
307
|
+
### 8a — Re-investigate (planning mode)
|
|
308
|
+
|
|
309
|
+
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.
|
|
310
|
+
|
|
311
|
+
Present the revised plan. **Hard stop for approval.**
|
|
312
|
+
|
|
313
|
+
### 8b — Implement the revisions (act mode)
|
|
314
|
+
|
|
315
|
+
Implement only the approved revisions. Run the type check. Run the tests. Confirm green.
|
|
316
|
+
|
|
317
|
+
**After the tests pass, re-enter planning mode.**
|
|
318
|
+
|
|
319
|
+
### 8c — Re-review (planning mode)
|
|
320
|
+
|
|
321
|
+
Read and analyze only — no code changes.
|
|
322
|
+
|
|
323
|
+
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.
|
|
324
|
+
|
|
325
|
+
### 8d — Present and check the verdict
|
|
326
|
+
|
|
327
|
+
Present the re-review to the user.
|
|
328
|
+
|
|
329
|
+
- **LGTM:** ask "Ready to stash?" If yes, run the [[kanban/guide/stash|Stash]] operation.
|
|
330
|
+
- **CHANGES_REQUESTED:** return to 8a.
|
|
331
|
+
- **NEEDS_DISCUSSION:** hard stop. Wait for the user's direction.
|
|
332
|
+
`;
|
package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seed text for the kanban index at `kanban/kanban.md`, carried by the
|
|
3
|
+
* template's `kanban-index` contract section.
|
|
4
|
+
*
|
|
5
|
+
* Obsidian-specific by design: wiki links, the `Related:` line, the
|
|
6
|
+
* `mcp__brain__*` tool table. Folders are the board — one folder per project,
|
|
7
|
+
* one subfolder per column — so there is no board file to read or rewrite.
|
|
8
|
+
* It holds only the rules shared by every operation (Projects and Columns,
|
|
9
|
+
* Tasks, Project, Cleanup Rules, Reaching the Tasks) plus an Operations list
|
|
10
|
+
* linking the seven per-operation guides under `kanban/guide/`.
|
|
11
|
+
*
|
|
12
|
+
* The text lands in the brain exactly as written here (ending in one newline);
|
|
13
|
+
* the config seeding step splits the frontmatter from the body when writing.
|
|
14
|
+
*/
|
|
15
|
+
declare const _default: "---\ntags:\n - tasks\n - workflow\n - hub\n---\n# Kanban\n\nHow 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.\n\nOperations 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.\n\n## Operations\n\n- [[kanban/guide/create|Create]] \u2014 create a new task.\n- [[kanban/guide/work|Work]] \u2014 pick the next task, plan it, implement it, test it and review it, behind approval gates.\n- [[kanban/guide/manage|Manage]] \u2014 view the project's tasks, apply the cleanup rules, and move tasks between columns.\n- [[kanban/guide/move|Move]] \u2014 move the current session's task to a named column.\n- [[kanban/guide/complete|Complete]] \u2014 move the current session's task to In Review, or to Done with `--done`.\n- [[kanban/guide/stash|Stash]] \u2014 save the session's context into the current task.\n- [[kanban/guide/review|Review]] \u2014 review the current task's changes and, when asked, run the fix cycle.\n\n## Projects and Columns\n\n- Folders are the board. There is no board file.\n- Each project has its own folder, `kanban/<project>/`, named by the project tag.\n- 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.\n- A task's folder is its column. Moving a task means moving its file to the target column folder and updating its `updated` field \u2014 nothing else.\n- To see a project's tasks, list its column folders and read each task's frontmatter and title.\n\n## Tasks\n\n- Each task is one markdown file at `kanban/<project>/<column>/<slug>.md`.\n- 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.\n- **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.\n- Frontmatter:\n - `project`: the project tag, matching the project folder;\n - `priority`: `p0`, `p1`, `p2` or `p3`;\n - `type`: optional, one lower-case word for the kind of work (`bug`, `deploy`, `hardening`, `housekeeping` and so on);\n - `created` and `updated`: both `YYYY-MM-DDTHH:MM:SS`;\n - `sessions`: optional, a list of datetimes, one appended each time a work session starts on the task.\n- 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 ` \u00B7 ` (for example `Related: [[projects/my-app|My App]] \u00B7 [[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.\n- Titles are short: at most about 100 characters. The detail goes in the description, not the title.\n- Later sections (Stash, Review, Revisions and so on) are appended to the task and never overwrite earlier entries.\n- 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.\n- Any operation that changes a task updates its `updated` field to the current datetime. `created` is never changed.\n\n## Project\n\nEvery operation works inside one project's folder.\n\nIf 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.\n\n## Cleanup Rules\n\nManage checks these and reports what it finds. Each one only flags or offers; nothing changes without the user's approval.\n\n- **Long title.** A title longer than about 100 characters: offer a shorter title and move the rest into the description.\n- **Stale In Review.** A task in `in-review/` whose `updated` is more than 14 days old: offer to complete it to Done.\n- **Done overflow.** More than 50 tasks in a project's `done/`: offer to move the oldest (by `updated`) into `archive/` until 50 remain.\n- **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.\n\n## Reaching the Tasks\n\nRead 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.\n\nIn this brain the tools are the `brain` MCP server's `mcp__brain__*` tools. Every operation needs only these capabilities from them:\n\n| Capability | Brain tool | Used for |\n| ---------- | ---------- | -------- |\n| list a folder | `mcp__brain__list_directory` | a project's column folders, the projects under `kanban/` |\n| read a file by its brain-relative path | `mcp__brain__read_note` (or `mcp__brain__read_multiple_notes`) | a task |\n| read and update frontmatter | `mcp__brain__get_frontmatter`, `mcp__brain__update_frontmatter` | a task's priority, `updated`, `sessions` |\n| write a file (overwrite) | `mcp__brain__write_note` (mode `overwrite`) | creating a task |\n| 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 |\n| move a file | `mcp__brain__move_note` | moving a task to another column folder |\n| search | `mcp__brain__search_notes` | domain context, the project note under `projects/` |\n\nAll 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.\n";
|
|
16
|
+
export default _default;
|
package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seed text for the kanban index at `kanban/kanban.md`, carried by the
|
|
3
|
+
* template's `kanban-index` contract section.
|
|
4
|
+
*
|
|
5
|
+
* Obsidian-specific by design: wiki links, the `Related:` line, the
|
|
6
|
+
* `mcp__brain__*` tool table. Folders are the board — one folder per project,
|
|
7
|
+
* one subfolder per column — so there is no board file to read or rewrite.
|
|
8
|
+
* It holds only the rules shared by every operation (Projects and Columns,
|
|
9
|
+
* Tasks, Project, Cleanup Rules, Reaching the Tasks) plus an Operations list
|
|
10
|
+
* linking the seven per-operation guides under `kanban/guide/`.
|
|
11
|
+
*
|
|
12
|
+
* The text lands in the brain exactly as written here (ending in one newline);
|
|
13
|
+
* the config seeding step splits the frontmatter from the body when writing.
|
|
14
|
+
*/
|
|
15
|
+
export default `---
|
|
16
|
+
tags:
|
|
17
|
+
- tasks
|
|
18
|
+
- workflow
|
|
19
|
+
- hub
|
|
20
|
+
---
|
|
21
|
+
# Kanban
|
|
22
|
+
|
|
23
|
+
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.
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
## Operations
|
|
28
|
+
|
|
29
|
+
- [[kanban/guide/create|Create]] — create a new task.
|
|
30
|
+
- [[kanban/guide/work|Work]] — pick the next task, plan it, implement it, test it and review it, behind approval gates.
|
|
31
|
+
- [[kanban/guide/manage|Manage]] — view the project's tasks, apply the cleanup rules, and move tasks between columns.
|
|
32
|
+
- [[kanban/guide/move|Move]] — move the current session's task to a named column.
|
|
33
|
+
- [[kanban/guide/complete|Complete]] — move the current session's task to In Review, or to Done with \`--done\`.
|
|
34
|
+
- [[kanban/guide/stash|Stash]] — save the session's context into the current task.
|
|
35
|
+
- [[kanban/guide/review|Review]] — review the current task's changes and, when asked, run the fix cycle.
|
|
36
|
+
|
|
37
|
+
## Projects and Columns
|
|
38
|
+
|
|
39
|
+
- Folders are the board. There is no board file.
|
|
40
|
+
- Each project has its own folder, \`kanban/<project>/\`, named by the project tag.
|
|
41
|
+
- 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.
|
|
42
|
+
- 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.
|
|
43
|
+
- To see a project's tasks, list its column folders and read each task's frontmatter and title.
|
|
44
|
+
|
|
45
|
+
## Tasks
|
|
46
|
+
|
|
47
|
+
- Each task is one markdown file at \`kanban/<project>/<column>/<slug>.md\`.
|
|
48
|
+
- 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.
|
|
49
|
+
- **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.
|
|
50
|
+
- Frontmatter:
|
|
51
|
+
- \`project\`: the project tag, matching the project folder;
|
|
52
|
+
- \`priority\`: \`p0\`, \`p1\`, \`p2\` or \`p3\`;
|
|
53
|
+
- \`type\`: optional, one lower-case word for the kind of work (\`bug\`, \`deploy\`, \`hardening\`, \`housekeeping\` and so on);
|
|
54
|
+
- \`created\` and \`updated\`: both \`YYYY-MM-DDTHH:MM:SS\`;
|
|
55
|
+
- \`sessions\`: optional, a list of datetimes, one appended each time a work session starts on the task.
|
|
56
|
+
- 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.
|
|
57
|
+
- Titles are short: at most about 100 characters. The detail goes in the description, not the title.
|
|
58
|
+
- Later sections (Stash, Review, Revisions and so on) are appended to the task and never overwrite earlier entries.
|
|
59
|
+
- 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.
|
|
60
|
+
- Any operation that changes a task updates its \`updated\` field to the current datetime. \`created\` is never changed.
|
|
61
|
+
|
|
62
|
+
## Project
|
|
63
|
+
|
|
64
|
+
Every operation works inside one project's folder.
|
|
65
|
+
|
|
66
|
+
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.
|
|
67
|
+
|
|
68
|
+
## Cleanup Rules
|
|
69
|
+
|
|
70
|
+
Manage checks these and reports what it finds. Each one only flags or offers; nothing changes without the user's approval.
|
|
71
|
+
|
|
72
|
+
- **Long title.** A title longer than about 100 characters: offer a shorter title and move the rest into the description.
|
|
73
|
+
- **Stale In Review.** A task in \`in-review/\` whose \`updated\` is more than 14 days old: offer to complete it to Done.
|
|
74
|
+
- **Done overflow.** More than 50 tasks in a project's \`done/\`: offer to move the oldest (by \`updated\`) into \`archive/\` until 50 remain.
|
|
75
|
+
- **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.
|
|
76
|
+
|
|
77
|
+
## Reaching the Tasks
|
|
78
|
+
|
|
79
|
+
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.
|
|
80
|
+
|
|
81
|
+
In this brain the tools are the \`brain\` MCP server's \`mcp__brain__*\` tools. Every operation needs only these capabilities from them:
|
|
82
|
+
|
|
83
|
+
| Capability | Brain tool | Used for |
|
|
84
|
+
| ---------- | ---------- | -------- |
|
|
85
|
+
| list a folder | \`mcp__brain__list_directory\` | a project's column folders, the projects under \`kanban/\` |
|
|
86
|
+
| read a file by its brain-relative path | \`mcp__brain__read_note\` (or \`mcp__brain__read_multiple_notes\`) | a task |
|
|
87
|
+
| read and update frontmatter | \`mcp__brain__get_frontmatter\`, \`mcp__brain__update_frontmatter\` | a task's priority, \`updated\`, \`sessions\` |
|
|
88
|
+
| write a file (overwrite) | \`mcp__brain__write_note\` (mode \`overwrite\`) | creating a task |
|
|
89
|
+
| 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 |
|
|
90
|
+
| move a file | \`mcp__brain__move_note\` | moving a task to another column folder |
|
|
91
|
+
| search | \`mcp__brain__search_notes\` | domain context, the project note under \`projects/\` |
|
|
92
|
+
|
|
93
|
+
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.
|
|
94
|
+
`;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BrainSectionMarker, OutdatedSectionVersion } from "../../../../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Every known outdated version of a bundled brain.aide template section,
|
|
4
|
+
* recorded as the fingerprint of its normalized text (see `fingerprintSection`)
|
|
5
|
+
* and a free-text `seenIn` label. The record holds fingerprints, not texts: the
|
|
6
|
+
* detector only has to answer "is this section a known old version?", and the
|
|
7
|
+
* offered `before` is always the user's own bytes.
|
|
8
|
+
*
|
|
9
|
+
* A section is stale only when its fingerprint is listed here and differs from
|
|
10
|
+
* the current template's own fingerprint. A section that matches nothing here
|
|
11
|
+
* is a customization and is never flagged.
|
|
12
|
+
*
|
|
13
|
+
* Whenever a template section's text changes, append its previous fingerprint
|
|
14
|
+
* to the matching marker below (the drift pin in this module's test fails until
|
|
15
|
+
* you do), then update that pin.
|
|
16
|
+
*/
|
|
17
|
+
declare const outdatedTemplateSections: Partial<Record<BrainSectionMarker, readonly OutdatedSectionVersion[]>>;
|
|
18
|
+
export default outdatedTemplateSections;
|