@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,169 @@
|
|
|
1
|
+
# /aide:brain — Brain Interface
|
|
2
|
+
|
|
3
|
+
General-purpose interface to the project's brain, plus a `config` mode that creates, repairs and wires the brain config (or repoints it at a different location).
|
|
4
|
+
|
|
5
|
+
The brain is backend-agnostic: it might be Obsidian today and something else tomorrow. The `aide_brain` MCP tool is the single source of truth for *which* MCP tools to call to reach this project's brain — never hardcode a backend tool name.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Modes
|
|
10
|
+
|
|
11
|
+
`$ARGUMENTS` controls which mode runs:
|
|
12
|
+
|
|
13
|
+
- **`config`** (or `config <path>`) — create, repair, validate and wire the brain config. Use this when `/aide` reports the brain config is missing, invalid or not wired yet, or when you want to point at a different location.
|
|
14
|
+
- **Anything else (or no arguments)** — general brain interaction. Reach the brain via `aide_brain`, follow the entry-point file's navigation rules, and fulfill the user's request (search the brain, save findings, look up research, etc.).
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Mode 1: General Brain Interaction (default)
|
|
19
|
+
|
|
20
|
+
When `$ARGUMENTS` is empty or anything other than `config`, treat the call as a general brain query.
|
|
21
|
+
|
|
22
|
+
### Step 1 — Reach the brain via `aide_brain`
|
|
23
|
+
|
|
24
|
+
Call the `aide_brain` MCP tool. It returns ready-to-execute prose naming the exact MCP read tool wired to this project's brain and the path to the brain's entry-point file (the brain's `CLAUDE.md`). Execute those instructions verbatim — do not substitute a different read tool, do not invent a path.
|
|
25
|
+
|
|
26
|
+
That entry-point file is the single source of truth for brain structure — crawling protocol, decision protocol, and a where-to-find-things table. Read it before doing anything else.
|
|
27
|
+
|
|
28
|
+
### Step 2 — Follow the navigation instructions
|
|
29
|
+
|
|
30
|
+
Execute the navigation steps the brain's entry-point file provides to find the content relevant to the user's request. Do not supplement, override, or paraphrase those rules — defer to them entirely. As you crawl, use whichever search/read tool names `aide_brain` named in Step 1.
|
|
31
|
+
|
|
32
|
+
### Step 3 — Fulfill the user's request
|
|
33
|
+
|
|
34
|
+
Return what you found, or write what they asked you to write, synthesized in response to what they asked. If they asked you to save something, follow the brain's frontmatter and naming conventions for the area you're writing into. Use the write tool name from `aide_brain`'s prose.
|
|
35
|
+
|
|
36
|
+
### Rules
|
|
37
|
+
|
|
38
|
+
- **Call `aide_brain` first.** Do not assume a backend, do not hardcode a tool name, do not search or list directories before reaching `aide_brain`'s entry-point file.
|
|
39
|
+
- **Defer to the entry-point file's navigation rules.** Do not supplement, override, or paraphrase them.
|
|
40
|
+
- **Use the brain's MCP tools**, not native filesystem tools — brain content lives behind the MCP boundary, and the specific tool names come from `aide_brain`.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Mode 2: Config — Create, Repair, Validate and Wire (`/aide:brain config`)
|
|
45
|
+
|
|
46
|
+
When `$ARGUMENTS` starts with `config`, run this flow. It owns every brain config state: creating a missing `.aide/config/brain.aide`, repairing one that is missing required sections, validating the result, then wiring and seeding the brain. Writing a config, or missing sections, for a backend other than the bundled default is handed off to the `aide-brain-author` skill.
|
|
47
|
+
|
|
48
|
+
**This command never lists the brain config's sections itself.** The required sections are a published contract. Their markers, roles (`live` or `seed`) and seed paths come from `brainSummary.sections` on the `aide_init` step named `Brain config (brain.aide)`. A section's purpose comes from `aide_brain({ kind: <marker> })`, which returns it as `purpose` whenever it returns the section. Never write a section list or a purpose from memory.
|
|
49
|
+
|
|
50
|
+
**Every step below is mandatory and runs in order.** `brain.status` is a status code, not a runbook. If you find yourself drafting "next steps" for the user from your own understanding of a status code, you have skipped a step — go back.
|
|
51
|
+
|
|
52
|
+
**Reading the summary.** Call `aide_init` with **no arguments**. That is a read-only summary call; it writes nothing. Find the step named `Brain config (brain.aide)` and read its `brainSummary`: `sections`, `missingSections`, `staleSections`, `legacyLauncher` (reasons, or null) and `templateIntegration` (whether the config launches the bundled template's own brain server). It carries no section text. Section bytes reach you one section at a time, through `aide_brain` or an `aide_upgrade` preview.
|
|
53
|
+
|
|
54
|
+
**Writes go through `aide_upgrade`.** Inserting missing sections and applying a migration are tool-side writes: `aide_upgrade({ category: "brain" })` and its `brainChange` / `beforeHash` calls. Hand-edit `.aide/config/brain.aide` only to fix a malformed file. Writing for a backend other than the template's belongs to the `aide-brain-author` skill.
|
|
55
|
+
|
|
56
|
+
### Step 1 — Call `aide_info`
|
|
57
|
+
|
|
58
|
+
Call `aide_info`. Read `brain.status`, `brain.fault` (present only on `brain-aide-invalid`) and `brain.hints` (candidate brain-root paths the config prose may offer the user later). The status picks the branch:
|
|
59
|
+
|
|
60
|
+
- `no-brain-aide` — the file is missing → Step 2 (CREATE).
|
|
61
|
+
- `brain-aide-invalid` — the file is present but falls short → Step 3 (REPAIR).
|
|
62
|
+
- `ok`, `no-mcp-entry` or `mcp-drift` → skip to Step 5b (MIGRATE).
|
|
63
|
+
|
|
64
|
+
### Step 2 — CREATE (status `no-brain-aide`)
|
|
65
|
+
|
|
66
|
+
1. **Ask which backend.** Use `AskUserQuestion`: the bundled default (Obsidian) or another backend. **Another backend:** invoke the `aide-brain-author` skill (`Skill(skill="aide-brain-author")`). It writes the config section by section with the user, checks the draft and swaps it in. When it returns, go to Step 4.
|
|
67
|
+
2. **Scaffold.** Call `aide_init({ category: "brain" })`. It writes `.aide/config/brain.aide` from the latest bundled template, with YAML null at the unwired path slot of `mcpServerConfig.args`. YAML null is the structural unwired-slot signal; there is no literal-string placeholder. The template's launcher runs the brain server's global command; Step 6 installs the package before wiring it.
|
|
68
|
+
|
|
69
|
+
Then go to Step 4.
|
|
70
|
+
|
|
71
|
+
### Step 3 — REPAIR (status `brain-aide-invalid`)
|
|
72
|
+
|
|
73
|
+
Branch on `brain.fault.kind`.
|
|
74
|
+
|
|
75
|
+
**`missing-sections`:**
|
|
76
|
+
|
|
77
|
+
1. Call `aide_init` with no arguments and read `brainSummary.missingSections` from the `Brain config (brain.aide)` step.
|
|
78
|
+
2. Show the user the markers of the missing sections, then confirm with `AskUserQuestion` (repair now / skip). On skip, STOP.
|
|
79
|
+
3. **Insert.** Call `aide_upgrade({ category: "brain" })`. It reads the file, inserts only the missing sections and touches nothing else. It returns one of:
|
|
80
|
+
- **`{ outcome: "inserted", inserted }`** — the config launches the template's own brain server, so the missing sections went in byte-identical from the latest bundled template, in the file's line endings. `inserted` lists their markers. Done.
|
|
81
|
+
- **`{ outcome: "adapt", adapt, instructions }`** — the config launches another backend, so nothing was inserted: the template text is Obsidian-specific (wiki links, the board plugin's frontmatter and settings, Obsidian brain tool names). Invoke the `aide-brain-author` skill (`Skill(skill="aide-brain-author", args="add missing sections: <the markers in adapt>")`). It writes each missing section with the user and inserts it in place. When it returns, go on.
|
|
82
|
+
- **`{ outcome: "refused", instructions }`** — show `instructions` to the user and follow them.
|
|
83
|
+
|
|
84
|
+
Then go to Step 4.
|
|
85
|
+
|
|
86
|
+
**`malformed`:** show the user `brain.fault.reason` verbatim and help them fix that specific fault by hand — point at the offending lines and propose the minimal edit. Do not regenerate the file from the template; that would destroy their wiring and customizations. Once the user has fixed it, go to Step 4.
|
|
87
|
+
|
|
88
|
+
### Step 4 — VALIDATE
|
|
89
|
+
|
|
90
|
+
Call `aide_info` again. This is a parser check of the file on disk, not a brain query, so it is safe mid-session.
|
|
91
|
+
|
|
92
|
+
- `brain.status` is `no-brain-aide` or `brain-aide-invalid` → the config is still not valid. Show the status and `brain.fault`, return to Step 2 or Step 3, and do not continue.
|
|
93
|
+
- Any other status → continue to Step 5.
|
|
94
|
+
|
|
95
|
+
### Step 5 — SEED (sections added by a repair)
|
|
96
|
+
|
|
97
|
+
For each seed section you inserted in Step 3 (its `role` is `seed` in `brainSummary.sections`, which also gives its `seedPath`), write it to its `seedPath` in the brain:
|
|
98
|
+
|
|
99
|
+
- **Brain MCP tools loaded in this session:** presence-check `seedPath`; a missing folder means the file is absent. If it exists, skip it — never fetch or overwrite it. If absent, call `aide_brain({ kind: <marker> })`. With `found: true`, take `instructions` (that section's exact bytes), drop the empty lines at their start and end, and write them to `seedPath` with the brain's write tool. With `found: false`, show `instructions` to the user and do not write that seed. When those bytes open with a `---` frontmatter block, pass that block in whatever form the write tool expects for frontmatter (for example a separate frontmatter argument), and pass only the text after its closing `---` (leading empty lines dropped) as the body. Never leave a frontmatter block inside the body text, or the file will not get real frontmatter.
|
|
100
|
+
- **Brain MCP tools not loaded:** tell the user the new seed files will be written once they restart Claude Code and re-run `/aide:brain config`. Never fall back to native filesystem tools to write the brain.
|
|
101
|
+
|
|
102
|
+
After a CREATE, skip this step — Step 6's config prose seeds every seed section.
|
|
103
|
+
|
|
104
|
+
### Step 5b — MIGRATE (outdated sections and a legacy launcher)
|
|
105
|
+
|
|
106
|
+
Call `aide_init` with no arguments and read `brainSummary.staleSections` and `brainSummary.legacyLauncher` from the `Brain config (brain.aide)` step. If both are empty, go to Step 6. A file created in Step 2 never has either.
|
|
107
|
+
|
|
108
|
+
A section is listed as stale only when its text matches a known earlier template version, so a section the user edited is never offered. **Nothing changes without the user's explicit yes to that one change, and the default is skip.** The user's existing bytes cannot be recovered once replaced, so never batch changes under a single yes and never apply a change the user did not see.
|
|
109
|
+
|
|
110
|
+
Each change is one preview and one apply:
|
|
111
|
+
|
|
112
|
+
- **Preview:** `aide_upgrade({ category: "brain", brainChange: <target> })` is read-only and returns `{ outcome: "change", target, before, after, beforeHash }` — the current text and its replacement, in the file's line endings. It may return `{ outcome: "refused", instructions }` instead. Show `instructions` and move on; for example, the tool refuses to offer template text for a config that launches another backend.
|
|
113
|
+
- **Apply:** on the user's yes, call the same thing with the `beforeHash` the preview returned. It returns `{ outcome: "applied", target }`, or `refused` when the bytes changed since the preview. On that refusal, preview again and show the new diff before asking again.
|
|
114
|
+
|
|
115
|
+
1. **Outdated sections.** For each marker in `staleSections`, one at a time: preview it, call `aide_brain({ kind: <marker> })` for its `purpose`, show the marker, the purpose and the `before` and `after` text, and ask with `AskUserQuestion` (replace this section / keep mine). On keep, move on. On replace, apply it, then update its seed file:
|
|
116
|
+
- **The file agents read is separate from the config.** A `seed` section (its `role` in `brainSummary.sections`, which also gives its `seedPath`) was written into the brain once, at its `seedPath`, and Step 5 and Step 6 never overwrite an existing seed. Replacing the section in the config leaves that file on the old text unless you update it here.
|
|
117
|
+
- Read the file at `seedPath` with the brain's read tool. Call `aide_brain({ kind: <marker> })` for the section's new bytes (`instructions`, empty lines trimmed at both ends).
|
|
118
|
+
- **File already matches the new section** (same comparison): it is up to date; tell the user and move on, writing nothing.
|
|
119
|
+
- **File matches the old section** (the preview's `before`, compared ignoring line endings, surrounding whitespace and the file's frontmatter): it was never edited, so ask with `AskUserQuestion` (update the brain file / keep it), showing the file's path. On update, write the new bytes to `seedPath` with the brain's write tool, keeping the file's existing frontmatter.
|
|
120
|
+
- **File differs** (the user edited it): show the file's current text beside the new section, say which rules changed, and ask (replace my file / keep mine), default keep. Replace only on an explicit yes.
|
|
121
|
+
- Brain tools not loaded in this session: tell the user the brain file at `seedPath` still has the old text, and that re-running `/aide:brain config` after a restart offers it.
|
|
122
|
+
- A `live` section has no seed file; replacing it in the config is the whole change.
|
|
123
|
+
2. **Legacy launcher.** When `legacyLauncher` lists reasons (`npx-launch`, `unpinned`, `unversioned`, `older-pin`, `missing-auto-confirm`), preview `brainChange: "launcher"`. The `after` runs the brain server's global command, keeps the brain location argument byte-identical, and drops the package runner. Show the reasons and the `before` and `after` frontmatter, and ask with `AskUserQuestion` (switch to the global launcher / keep mine), saying that launches through the package runner time out at session start. On switch, install the brain package globally first (`npm i -g @bitbonsai/mcpvault`); if the install fails, say so and leave the launcher as it is. Then apply it. The apply refuses while the package is not installed globally. When the preview refuses because the args can't be safely rewritten in place, its `instructions` carry the replacement args. Help the user make that one edit by hand, changing nothing else in the frontmatter.
|
|
124
|
+
3. Call `aide_info` and confirm `brain.status` is not `no-brain-aide` or `brain-aide-invalid`. If it is, show the status and fault and help the user fix it; do not continue until it parses.
|
|
125
|
+
|
|
126
|
+
Then go to Step 6, which runs sync so `.mcp.json` picks up a changed launcher.
|
|
127
|
+
|
|
128
|
+
### Step 6 — WIRING/SEEDING
|
|
129
|
+
|
|
130
|
+
Get the backend's config prose, then execute it verbatim:
|
|
131
|
+
|
|
132
|
+
Call `aide_brain({ kind: "config" })`. On every status that reaches this step (`ok`, `no-mcp-entry`, `mcp-drift`) it returns `found: true` with that section of `.aide/config/brain.aide` verbatim in `instructions`. If it returns `found: false`, show its `instructions` to the user and STOP.
|
|
133
|
+
|
|
134
|
+
Forward `$ARGUMENTS` opaquely to that prose — this command does not parse it. The prose owns everything from here: what `$ARGUMENTS` means for this backend, asking the user for the brain location (`AskUserQuestion` plus `aide_info.brain.hints` when appropriate), landing the resolved value into the YAML-null slot and the board location (`kanban.path`, which the observer reads to show the kanban board), running sync via the Bash command recovered from `.mcp.json["mcpServers"]["aide"]`, seeding each seed section in the published contract (skip-on-exists), and emitting the restart message.
|
|
135
|
+
|
|
136
|
+
The prose also owns the brain launcher before sync runs: the brain's global-install check and its install. Do not check or install the brain package yourself.
|
|
137
|
+
|
|
138
|
+
`no-mcp-entry` covers both unwired args (YAML null at the path slot) and unsynced args (a string at the path slot never written to `.mcp.json`). Only the prose's first step tells you which applies.
|
|
139
|
+
|
|
140
|
+
**Anti-patterns — each one means you have skipped or short-circuited the flow:**
|
|
141
|
+
|
|
142
|
+
- Telling the user to run sync themselves. Sync runs via your own Bash tool, recovered from `.mcp.json["mcpServers"]["aide"]` (`command` + `args` + `"sync"` appended). The user invoked `/aide:brain config` expecting it to complete the wiring, not to hand them homework.
|
|
143
|
+
- Concluding `brain.aide` is wired or unwired without quoting the actual bytes at the path slot. The prose's first step reads and quotes that value — you cannot quote what you did not read.
|
|
144
|
+
- Treating `brain.status` as a runbook, or treating an `aide_brain` reply with `found: false` as if it were the requested section.
|
|
145
|
+
- Listing, restating or inventing the brain config's sections or their purposes instead of reading `brainSummary.sections` and `aide_brain`'s `purpose`.
|
|
146
|
+
- Hand-inserting missing sections or hand-applying a migration that `aide_upgrade` can do, or rewriting, reordering or reformatting existing sections during a repair.
|
|
147
|
+
- Applying a change without the user's yes to that specific preview, reusing a `beforeHash` after a refusal, or changing a section or launcher the summary did not list.
|
|
148
|
+
- Comparing the config prose against guidance outside it. The prose is the authority — follow it as written.
|
|
149
|
+
- Falling back to native filesystem tools (`Read`, `Write`, `Glob`, Bash `ls`, etc.) to inspect or write the **brain** when the brain MCP tools are unreachable. The brain is backend-agnostic; if its tools are unreachable, STOP and tell the user to restart. (Editing `.aide/config/brain.aide` is fine — it is a project file, not the brain.)
|
|
150
|
+
|
|
151
|
+
### Step 7 — STOP
|
|
152
|
+
|
|
153
|
+
After Step 6 completes, **STOP**. Do NOT call `aide_info` again in this session. The brain MCP server was launched before the new entry existed and cannot be hot-reloaded mid-session — an in-session re-check after sync would report stale truth. Continuation happens on the next `/aide` invocation after the user restarts Claude Code.
|
|
154
|
+
|
|
155
|
+
### Failure handling (`aide_init` scaffold)
|
|
156
|
+
|
|
157
|
+
If the `aide_init({ category: "brain" })` call in Step 2 throws or the scaffold fails, do NOT retry inline, do NOT re-prompt the user. Surface the error and fall back to the CLI:
|
|
158
|
+
|
|
159
|
+
> Something went wrong scaffolding `.aide/config/brain.aide`: `<error message>`.
|
|
160
|
+
>
|
|
161
|
+
> Run `aidemd-mcp init` when the project's `aide` MCP entry runs the globally installed `aidemd-mcp`, or `npx -y @aidemd-mcp/aidemd@<version> init` with the version that entry pins when it runs through npx, in this project's terminal to retry the setup with full per-file logging, then restart Claude Code and re-run `/aide`.
|
|
162
|
+
|
|
163
|
+
Sync and brain-seeding failures inside Step 6 are owned by the config prose and its own error recovery.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Arguments
|
|
168
|
+
|
|
169
|
+
`$ARGUMENTS` is forwarded verbatim to the integration's config prose (Mode 2, Step 6). The shipped command does not parse, validate, or interpret it. Each integration's `brain.aide` `config` section documents what users can put after `/aide:brain config` for that backend. Anything other than `config` (or empty) routes to Mode 1.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# /aide:build — Build Phase
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is executed by the `aide-implementor` agent.
|
|
4
|
+
|
|
5
|
+
Execute the architect's implementation plan. This is the implementor phase in build mode — the session that turns `plan.aide` into working, tested code without making architectural decisions mid-session.
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
|
|
9
|
+
- [ ] Check the approval gate first: read `plan.aide`'s status with `aide_frontmatter` (read mode), and a sibling `brief.aide`'s if there is one. Start only if each reads `status: approved`; otherwise stop and report back without changing anything
|
|
10
|
+
- [ ] Read `plan.aide` in the target module. This is the primary input — it names files, sequencing, and which existing helpers to reuse
|
|
11
|
+
- [ ] Read `brief.aide` in the same folder — the architectural-commitments file authored by the strategist during synthesize and refined by the architect during plan. Type shapes, exact strings, cross-module contracts, schema cardinality. Honor every commitment exactly. When a plan step says "honor commitment #11," #11 in `brief.aide` is the source of truth
|
|
12
|
+
- [ ] Check `## Prerequisites`. If the plan declares prerequisites, verify they exist and export the expected contracts before writing any code. If a prerequisite is missing or doesn't match, stop and escalate back to the orchestrator — do not improvise
|
|
13
|
+
- [ ] Read the intent spec (`.aide` or `intent.aide`) for the target module. The plan tells you what to build; `brief.aide` tells you the architectural shape it must take; the intent spec tells you what counts as domain-correct
|
|
14
|
+
- [ ] Before coding each step, load every playbook entry on its `Read:` line, passing each address to the brain's read tool exactly as written. An entry that will not load is found through the brain's own navigation; if it still will not load, stop and report it. Matching the surrounding code is never a substitute. Report every entry as loaded or not loaded
|
|
15
|
+
- [ ] Execute the plan steps top-to-bottom. Check each checkbox in `plan.aide` as you complete it. Do not reorder steps, skip steps, or add steps. If a step is ambiguous, stop and escalate back to the architect via `/aide:plan` rather than inventing an answer
|
|
16
|
+
- [ ] When build resolves an open question from `brief.aide`, update the file: append a new numbered commitment capturing the resolution, remove the question from `## Open questions`. Numbers stay stable — do not renumber existing commitments
|
|
17
|
+
- [ ] Write the code. No architectural improvisation — if a decision is not in `plan.aide`, `brief.aide`, or `.aide`, it is out of scope for this session
|
|
18
|
+
- [ ] Write tests covering every behavior the spec's `outcomes.desired` names, plus regression coverage for `outcomes.undesired`. Tests are also where to assert `brief.aide` commitments the type system can't enforce alone (exact strings, schema cardinality, enum membership, parser rejection rules)
|
|
19
|
+
- [ ] Run the tests until green
|
|
20
|
+
- [ ] Run the type checker (`tsc --noEmit` or the project's equivalent)
|
|
21
|
+
- [ ] Run `aide_validate` to check for spec issues introduced during the build
|
|
22
|
+
- [ ] Hand off to `/aide:qa` — the QA agent will compare actual output against the spec's `outcomes` block (and consult `brief.aide` for structural clarification)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# /aide:fix — Fix Phase
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is executed by the `aide-implementor` agent.
|
|
4
|
+
|
|
5
|
+
Work one unchecked item from the `todo.aide` checklist. This is the implementor phase in fix mode — the same agent that runs `/aide:build`, invoked with a narrower scope and a stricter one-session-per-item protocol. See [todo.aide spec](../../../.aide/docs/todo-aide.md) for the file format.
|
|
6
|
+
|
|
7
|
+
The fix loop is autonomous: the orchestrator triages the todo list and approves it itself; the user never reviews it. Items tagged `plan-gap` or `strategy-gap` reach you only after the architect has amended the plan, and `spec-gap` items go to the spec writer, not to you. If an item still needs a design decision the plan does not make, do not invent one — leave it unchecked and report it back.
|
|
8
|
+
|
|
9
|
+
## Checklist
|
|
10
|
+
|
|
11
|
+
- [ ] Read the todo list's status with `aide_frontmatter` (read mode). Start only if it reads `status: approved`; otherwise stop and report back without changing anything
|
|
12
|
+
- [ ] Read the intent spec (`.aide` or `intent.aide`) in the target module
|
|
13
|
+
- [ ] Read `todo.aide` and pick the next unchecked item. Do not pick ahead, do not bundle. Read the item's `Misalignment` tag to understand where intent was lost
|
|
14
|
+
- [ ] Fix exactly ONE issue. Do not fix adjacent issues discovered during the session — add them to the `todo.aide` checklist instead, unchecked, for future sessions
|
|
15
|
+
- [ ] Base the fix on the spec, not on the one-line issue description. The description points at the problem; the spec is the source of truth for what correct looks like
|
|
16
|
+
- [ ] Run the generation command (or equivalent) to produce fresh output after the fix
|
|
17
|
+
- [ ] Compare the new output against the baseline from before the fix:
|
|
18
|
+
- Is the targeted issue resolved?
|
|
19
|
+
- Did anything else regress? The fix may have moved unrelated output further from the spec
|
|
20
|
+
- [ ] Run tests and the type checker to catch structural regressions
|
|
21
|
+
- [ ] Check the item off in `todo.aide` only if both the targeted fix landed and no regression was introduced. Otherwise revert, leave the item unchecked, and end the session
|
|
22
|
+
- [ ] Commit the fix in its own commit — one checkbox, one commit, one diff
|
|
23
|
+
- [ ] End the session. The next item starts in a fresh session with clean context — do not continue working additional items in the same session
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# /aide:handoff — Session Handoff
|
|
2
|
+
|
|
3
|
+
**Invoke the `aide-handoff` skill via the Skill tool — that is your only valid response to `/aide:handoff`.**
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Skill(skill="aide-handoff", args="<the user's full request, verbatim>")
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The `aide-handoff` skill is the source of truth for the handoff operation. It carries:
|
|
10
|
+
- The CREATE vs UPDATE detection logic
|
|
11
|
+
- The content-gathering checklist (what the orchestrator must supply in the delegation prompt)
|
|
12
|
+
- The delegation contract to the `aide-spec-writer` agent in `session.aide` mode
|
|
13
|
+
- The hard constraints (no self-writes, no invented content, no deletion)
|
|
14
|
+
|
|
15
|
+
You **MUST** invoke the skill — do not attempt to handle `/aide:handoff` from this file alone. Skipping the skill means writing `session.aide` from a thin command-file checklist that omits the load-bearing constraints, which means drifting from the methodology.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# /aide:plan — Plan Phase
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is executed by the `aide-architect` agent.
|
|
4
|
+
|
|
5
|
+
Translate the intent spec into a step-by-step implementation plan. Output: `plan.aide` (the build recipe). The spec may be in one of two shapes: **Shape A** (synthesize ran — body sections filled, sibling `brief.aide` exists) or **Shape B** (synthesize skipped — frontmatter only, no `brief.aide`; the orchestrator's delegation prompt carries the user's implementation context as the architectural input). For Shape A, UPDATE `brief.aide` as planning surfaces new commitments. For Shape B, CREATE `brief.aide` only if planning surfaces commitments worth recording. See [plan.aide spec](../../../.aide/docs/plan-aide.md) and [brief.aide spec](../../../.aide/docs/brief-aide.md).
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
|
|
9
|
+
- [ ] Read the intent spec (`.aide` or `intent.aide`) in the target module. Frontmatter is always required. Body sections are present only in Shape A.
|
|
10
|
+
- [ ] Identify the shape: `brief.aide` exists → Shape A; `brief.aide` does not exist → Shape B. For Shape A, read the sibling `brief.aide` — its commitments are the current architectural state your plan must honor or deliberately retire; its open questions are decisions awaiting your settlement. For Shape B, the orchestrator's delegation prompt carries the user's implementation instructions verbatim — that's your architectural input.
|
|
11
|
+
- [ ] Pull the coding playbook from the brain using the `study-playbook` skill — naming conventions, folder structure, patterns to follow and anti-patterns to avoid
|
|
12
|
+
- [ ] Scan the target module and its neighbors to understand what already exists — existing helpers to reuse, existing patterns to match, folders already in place
|
|
13
|
+
- [ ] **No plan without a spec.** Plan only folders that hold an intent spec (`aide_scaffold` refuses a plan anywhere else). Any other module the work needs — a shared types folder, a shared-helpers folder, a single-file module, a prerequisite — is not planned: list it under **Modules needing a spec first** for the orchestrator, and never fold its code into this plan
|
|
14
|
+
- [ ] Write `plan.aide` next to the `.aide` spec with:
|
|
15
|
+
- **Frontmatter:** `intent` — one-line summary of what this plan delivers
|
|
16
|
+
- **`## Project Structure`** — the complete annotated folder tree of the module, rooted at the scope directory. This IS the recipe blueprint — every plan includes it unconditionally, whether greenfield or additive. The implementor must never figure out the module's structure; that is the architect's job. Every file that will exist after execution appears in the tree, annotated with what it does and its function signature (parameters and return type). For additive plans, mark which files are new vs. existing. `.aide` specs go on modules (orchestrators and any folder with its own plan), not on helper folders inside a module.
|
|
17
|
+
- **`## Plan`** — checkboxed steps (the "cooking order" for the recipe above):
|
|
18
|
+
- Each step references files from the Project Structure tree
|
|
19
|
+
- Steps may reference `brief.aide` commitments by number ("honor commitment #11")
|
|
20
|
+
- Which existing helpers to reuse instead of writing new ones
|
|
21
|
+
- Sequencing — what must exist before the next step can start
|
|
22
|
+
- Tests to write for each behavior the spec's `outcomes.desired` names
|
|
23
|
+
- **`## Decisions`** — architectural choices made: why X over Y, naming rationale, tradeoffs
|
|
24
|
+
- [ ] **Shape A (brief exists):** Update `brief.aide` (do NOT overwrite — the strategist authored it). **Shape B (no brief):** create `brief.aide` only if planning surfaced commitments worth recording; if the plan + spec frontmatter fully describe the module, do not create an empty file. Sections (when the file exists):
|
|
25
|
+
- **`## Commitments`** — numbered commitments. Type shapes, function signatures, exact strings, schema cardinality, marker tokens, enumerations of accepted values. Numbers persist across edits — gaps stay when commitments are removed; new commitments append
|
|
26
|
+
- **`## Cross-module contracts`** — what this module exposes/consumes vs. neighbors
|
|
27
|
+
- **`## Open questions`** — design decisions deferred to build, cleared as they are answered downstream
|
|
28
|
+
- [ ] No implementation code in any file — no function bodies, no algorithms as code. Architectural contracts (types, signatures, exact strings, schema details) belong in `brief.aide` when one exists, otherwise in the plan step bullets. **If an implementor would have to invent it, name it explicitly. If the playbook covers it, put it in the plan step's Read list.**
|
|
29
|
+
- [ ] Every plan step must be traceable back to a line in the `.aide` spec, a `brief.aide` commitment, or a rule in the coding playbook. If a step has no source, cut it or find the rule that justifies it
|
|
30
|
+
- [ ] If the spec is ambiguous, stop and escalate back to the spec writer (via the orchestrator) rather than inventing an answer
|
|
31
|
+
- [ ] **PAUSE for user approval.** Present BOTH `plan.aide` and the updated `brief.aide` and do not proceed until the user approves them. Iterate if the user requests changes
|
|
32
|
+
- [ ] Hand the approved plan + brief to the implementor via `/aide:build`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# /aide:qa — QA Phase
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is executed by the `aide-qa` agent.
|
|
4
|
+
|
|
5
|
+
Verify actual output against the intent spec. This is the QA agent phase — the session that compares the spec's `outcomes` block against actual implementation and produces a `todo.aide` re-alignment document. See [todo.aide spec](../../../.aide/docs/todo-aide.md) for the file format.
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
|
|
9
|
+
- [ ] Read the intent spec (`.aide` or `intent.aide`) in the target module
|
|
10
|
+
- [ ] Read `brief.aide` if present — the architectural-commitments file. Use it to clarify what valid output looks like at the structural level when an outcome is ambiguous, and to verify the implementation didn't quietly diverge from a committed contract. **You read `brief.aide`; you do not modify it.**
|
|
11
|
+
- [ ] Focus on the `outcomes` block specifically:
|
|
12
|
+
- Does the actual output satisfy every item in `outcomes.desired`?
|
|
13
|
+
- Does the actual output trip any item in `outcomes.undesired`?
|
|
14
|
+
- [ ] Check for hidden failures — outputs that pass tests but violate intent, missing edge cases the spec names, anti-patterns the spec warned against, implementation diverging from `brief.aide` commitments
|
|
15
|
+
- [ ] Use judgement. If an output sounds wrong, reads wrong, or misses the point of the intent paragraph, flag it even when no specific outcome rule is named
|
|
16
|
+
- [ ] What you do NOT verify: items already enforced by the type system, by unit tests, or by code review — those run on every commit. Your concern is the failure mode none of them catches: technically valid output that violates intent
|
|
17
|
+
- [ ] Produce a `todo.aide` next to the spec. Use `aide_scaffold` with type `todo` if none exists yet. Format:
|
|
18
|
+
- **Frontmatter:** `intent` (which outcomes are violated), `misalignment` (array of pipeline stages where intent was lost — `spec-gap`, `research-gap`, `strategy-gap`, `plan-gap`, `implementation-drift`, `test-gap`)
|
|
19
|
+
- **`## Issues`** — each issue gets:
|
|
20
|
+
- A checkbox
|
|
21
|
+
- A file path and line reference where the problem appears
|
|
22
|
+
- A one-line description of what's wrong
|
|
23
|
+
- `Traces to:` which `outcomes` field (desired or undesired) it violates
|
|
24
|
+
- `Misalignment:` which pipeline stage lost the intent for this specific issue
|
|
25
|
+
- **`## Retro`** — what would have caught this earlier? Which stage needs strengthening?
|
|
26
|
+
- [ ] Do NOT propose solutions. The checklist says *what's wrong and where* — the implementor, invoked via `/aide:fix`, decides *how*
|
|
27
|
+
- [ ] Hand off to `/aide:fix` — the implementor will work the checklist one item per session
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# /aide:refactor — Refactor Phase
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is orchestrated by the `/aide` orchestrator. It has two modes selected by the `--specs` flag — code-drift refactor (default) and spec-bloat sweep (`--specs`). Each mode delegates to different agents and follows a different flow.
|
|
4
|
+
|
|
5
|
+
Refactor existing artifacts to close drift from canonical contracts. The two modes target different artifact classes and use different agents:
|
|
6
|
+
|
|
7
|
+
| Mode | Target | Drift detected against | Agents |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| Default | Source code | Coding playbook + progressive disclosure | `aide-auditor` → `aide-implementor` → `aide-qa` |
|
|
10
|
+
| `--specs` | `.aide` files | [Brevity Contract](../../../.aide/docs/aide-spec.md#brevity-contract) | `aide-aligner` → `aide-spec-writer` and/or `aide-strategist` → `aide-aligner` |
|
|
11
|
+
|
|
12
|
+
**This command requires a path argument.** It does NOT perform full-app refactoring in one pass. Scope it to a directory and it will audit every `.aide`-defined section within that path.
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
/aide:refactor <path> # code-drift refactor (default)
|
|
18
|
+
/aide:refactor --specs <path> # spec-bloat sweep
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Mode 1 — Code-drift refactor (default)
|
|
24
|
+
|
|
25
|
+
Audit existing code against the coding playbook and refactor to close convention drift. This is a post-QA mode — it runs on code that already works and already passed QA. The goal is conformance, not new functionality.
|
|
26
|
+
|
|
27
|
+
### Flow
|
|
28
|
+
|
|
29
|
+
1. **Discover sections** — run `aide_discover` with the given path to find all `.aide` specs in the subtree
|
|
30
|
+
2. **Audit each section** — spawn one `aide-auditor` agent per `.aide` spec found. Each auditor:
|
|
31
|
+
- Reads the implementation
|
|
32
|
+
- Consults the coding playbook via `study-playbook`
|
|
33
|
+
- Compares against progressive disclosure conventions
|
|
34
|
+
- Produces `plan.aide` with refactoring steps
|
|
35
|
+
3. **Pause for approval** — present all plans to the user. Do not proceed until approved
|
|
36
|
+
4. **Execute refactoring** — for each approved `plan.aide`, delegate to `aide-implementor` agents (one per numbered step, same as build phase)
|
|
37
|
+
5. **Re-validate** — delegate to `aide-qa` per section to verify the refactoring didn't break spec conformance
|
|
38
|
+
|
|
39
|
+
### Checklist
|
|
40
|
+
|
|
41
|
+
- [ ] Require a path argument — refuse to run without one
|
|
42
|
+
- [ ] Run `aide_discover` scoped to the provided path
|
|
43
|
+
- [ ] For each `.aide` spec found, spawn one `aide-auditor` agent
|
|
44
|
+
- [ ] Collect all `plan.aide` outputs and present to user for review
|
|
45
|
+
- [ ] After approval, execute each plan using `aide-implementor` agents (one per numbered step)
|
|
46
|
+
- [ ] After all plans are executed, run `aide-qa` per section to verify spec outcomes still hold
|
|
47
|
+
- [ ] Report completion with a summary of drift items found, fixed, and verified
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Mode 2 — Spec-bloat sweep (`--specs`)
|
|
52
|
+
|
|
53
|
+
Audit `.aide` files against the [Brevity Contract](../../../.aide/docs/aide-spec.md#brevity-contract) and slim them in batched, cascade-aware passes. This is the canonical fix flow when the aligner reports `spec-bloat` items — instead of running `/aide:spec` or `/aide:synthesize` per bloated spec one at a time, this mode handles them as a single coordinated sweep.
|
|
54
|
+
|
|
55
|
+
The motivation: cascading prose refactors are prohibitively expensive when handled one spec at a time. A parent edit that invalidates content in N children should land as one orchestrated pass with all N rewrites reviewed together, not N separate sessions each costing a fresh tree walk.
|
|
56
|
+
|
|
57
|
+
### Flow
|
|
58
|
+
|
|
59
|
+
1. **Run the aligner** — delegate to `aide-aligner` scoped to the provided path. The aligner walks the tree top-down, executing all three passes (cascade, brevity, sibling-redundancy) and writing `todo.aide` files at every spec where drift is found. This step is mandatory even if a recent alignment already happened — bloat may have shifted since.
|
|
60
|
+
|
|
61
|
+
2. **Collect spec-bloat findings.** Read every `todo.aide` written or updated by step 1. For each, partition the items by which field is bloated:
|
|
62
|
+
- **Frontmatter bloat** (`description`, `intent`, `outcomes.desired`, `outcomes.undesired` over caps or carrying forbidden content) → routes to `aide-spec-writer`
|
|
63
|
+
- **Body bloat** (`## Context`, `## Strategy`, `## Good examples`, `## Bad examples` over caps) → routes to `aide-strategist`
|
|
64
|
+
- **Sibling redundancy** flagged at children → routes the duplicated content up to the parent (rewrite the parent, slim the children)
|
|
65
|
+
|
|
66
|
+
3. **Spawn rewriter agents in parallel, one per bloated spec.** Each rewriter receives:
|
|
67
|
+
- The current bloated spec (full content)
|
|
68
|
+
- The ancestor chain (so it can prune content the parent already covers)
|
|
69
|
+
- Sibling specs (so it can identify and lift sibling-shared content)
|
|
70
|
+
- The relevant `todo.aide` items naming the specific bloat
|
|
71
|
+
- The Brevity Contract caps (load-bearing — the rewriter must measure)
|
|
72
|
+
|
|
73
|
+
Frontmatter rewriters use `aide-spec-writer`; body rewriters use `aide-strategist`. A single bloated spec may need both rewriters in sequence — frontmatter first, then body. When both are needed, run frontmatter first (its outcomes anchor the body), then body against the freshly-tightened frontmatter.
|
|
74
|
+
|
|
75
|
+
4. **Pause for batched diff review.** Present every rewrite as a before/after diff, grouped by spec. The user approves, rejects, or edits per spec. **Do not land any rewrite without explicit approval** — bloat removal is a judgment call about what content was load-bearing vs. ornamental, and the user is the authority on that.
|
|
76
|
+
|
|
77
|
+
5. **Land approved rewrites.** Apply approved diffs to the on-disk specs. Skip rejected ones — they stay bloated; the user accepts the bloat as intentional. Mark rejected `todo.aide` items as resolved-by-acceptance with a brief note in the file.
|
|
78
|
+
|
|
79
|
+
6. **Re-run the aligner.** A second alignment pass confirms which `spec-bloat` items cleared and surfaces any new drift the rewrites introduced (rare but possible — a tightened parent may now leave a child orphaned of context the child still needs).
|
|
80
|
+
|
|
81
|
+
7. **Report** — total `.aide` files audited, total bloat items found, items resolved per spec, items rejected as intentional, items remaining (if any), and the final aligner verdict.
|
|
82
|
+
|
|
83
|
+
### Cascade-awareness rule
|
|
84
|
+
|
|
85
|
+
When a parent spec is in the rewrite set, **rewrite the parent first**. Children's slim rewrites depend on what the parent now carries — a child that prunes content already covered by the parent must know what the parent will carry after the rewrite, not before. The orchestrator sequences rewriter agents top-down through the tree, not in parallel across depth levels, even though specs at the same depth can run in parallel.
|
|
86
|
+
|
|
87
|
+
### Checklist
|
|
88
|
+
|
|
89
|
+
- [ ] Require a path argument — refuse to run without one
|
|
90
|
+
- [ ] Run `aide-aligner` scoped to the provided path; collect all `todo.aide` files produced
|
|
91
|
+
- [ ] Partition `spec-bloat` items per spec by field (frontmatter vs. body) and per parent vs. children for sibling-redundancy
|
|
92
|
+
- [ ] Sequence rewrites top-down: parents before children, siblings in parallel within each depth
|
|
93
|
+
- [ ] For each spec needing frontmatter rewrite, spawn `aide-spec-writer` with the bloated frontmatter and the ancestor chain as delegation context
|
|
94
|
+
- [ ] For each spec needing body rewrite, spawn `aide-strategist` with the bloated body and the ancestor chain as delegation context
|
|
95
|
+
- [ ] Present every rewrite as a before/after diff, grouped by spec
|
|
96
|
+
- [ ] Pause for explicit user approval per spec — do not batch-approve silently
|
|
97
|
+
- [ ] Land approved rewrites; record rejections with one-line notes
|
|
98
|
+
- [ ] Re-run `aide-aligner` to confirm clearance and surface any new drift
|
|
99
|
+
- [ ] Report counts by category (frontmatter cleared / body cleared / rejected as intentional / remaining)
|
|
100
|
+
|
|
101
|
+
### What this mode does NOT do
|
|
102
|
+
|
|
103
|
+
- It does not run on code. Code drift is the default mode's responsibility.
|
|
104
|
+
- It does not invent new outcomes or rewrite intent. The intent is what the user approved at spec time; the rewriter compresses what's there, it does not change what the spec says.
|
|
105
|
+
- It does not delete `todo.aide` files. Those carry the audit trail. The aligner's next walk replaces them.
|
|
106
|
+
- It does not skip the diff review. Bloat-removal is a judgment call; user approval is mandatory per spec.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# /aide:research — Research Phase (Optional)
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is executed by the `aide-domain-expert` agent.
|
|
4
|
+
|
|
5
|
+
Fill the brain with durable domain knowledge the synthesizer can later draw from. Run this phase only when the module requires domain expertise the team does not already have — skip it when the domain is already understood.
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
|
|
9
|
+
- [ ] Confirm research is actually needed. If the user or the brain already has the domain knowledge, stop and go directly to `/aide:synthesize`
|
|
10
|
+
- [ ] Identify the domain being researched — name it specifically enough that the brain can file the output under a stable topic
|
|
11
|
+
- [ ] Check the brain first for existing research on the topic. If coverage is already sufficient, stop — do not re-fetch what the brain already holds
|
|
12
|
+
- [ ] Gather sources: existing brain entries, transcripts, external articles, web search, MCP memory stores
|
|
13
|
+
- [ ] Synthesize findings and persist them to the brain **filed by domain** (e.g., `research/email-marketing/`, `research/local-seo/`), not by project. Domain knowledge is reusable across projects
|
|
14
|
+
- [ ] If no external brain is available, write findings to a co-located `research.aide` file next to the intent spec as a fallback. This is not ideal — recommend enabling an external memory store
|
|
15
|
+
- [ ] Each persisted entry should include:
|
|
16
|
+
- Sources with ratings and dates
|
|
17
|
+
- Data points with attribution
|
|
18
|
+
- Patterns observed across sources
|
|
19
|
+
- Conflicts resolved (where sources disagreed, which direction chosen and why)
|
|
20
|
+
- [ ] Stop when coverage is sufficient for the synthesizer to fill the `.aide` body sections, not when all sources are exhausted
|
|
21
|
+
- [ ] Hand off to the next phase the orchestrator routed: `/aide:synthesize` when the feature is a pipeline (the strategist reads your research alongside the pipeline description), otherwise `/aide:plan`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# /aide:spec — Spec Phase
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is executed by the `aide-spec-writer` agent.
|
|
4
|
+
|
|
5
|
+
Produce the `.aide` intent spec **frontmatter only**. This is the spec-writing phase — the session that distills the orchestrator's delegation context into a falsifiable intent contract. The orchestrator owns the user conversation and passes the gathered context in the delegation prompt. Body sections (Context, Strategy, Good/Bad examples, References) are **conditional** — they exist only when the orchestrator routes through `/aide:synthesize` afterwards. Most modules are navigation stubs and skip synthesize entirely, going straight to `/aide:plan`. Signal whether synthesize is needed in your return.
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
|
|
9
|
+
- [ ] Read the delegation context from the orchestrator. If insufficient to write specific outcomes (missing: what the module is for, who consumes its output, what success looks like, what failure looks like), return to the orchestrator listing what's missing
|
|
10
|
+
- [ ] For a spec below the project root, take its folder from the approved project tree the orchestrator passes (the structure gate). If the delegation names no approved place for the module, do not pick one — return to the orchestrator saying the tree is not settled
|
|
11
|
+
- [ ] Read the AIDE template before writing — copy the fenced template block from the canonical template doc into the new file
|
|
12
|
+
- [ ] Create the file with `aide_scaffold({ directory, type: "intent" })`; it decides the filename, so never pick one:
|
|
13
|
+
- The project root intent spec is always `.aide/intent.aide` (pass directory `.aide`)
|
|
14
|
+
- A module spec is `.aide` if no `research.aide` exists in the target folder
|
|
15
|
+
- It is `intent.aide` if `research.aide` exists in the same folder (co-located research is an escape hatch — prefer the brain)
|
|
16
|
+
- [ ] Fill the frontmatter ONLY against hard caps:
|
|
17
|
+
- `scope` — the module path this spec governs
|
|
18
|
+
- `description` — one sentence, ≤ 200 characters
|
|
19
|
+
- `intent` — one paragraph, ≤ 100 words, ten-second north star
|
|
20
|
+
- `outcomes.desired` — 3-6 items, ≤ 2 sentences each, falsifiable
|
|
21
|
+
- `outcomes.undesired` — 3-6 items, ≤ 2 sentences each, the almost-right-but-wrong kind
|
|
22
|
+
- [ ] **Body sections are conditional.** Default: produce a frontmatter-only file with NO body section headings. If the orchestrator's delegation prompt explicitly says synthesize will run, then preserve empty body section placeholders for the strategist; otherwise omit them entirely.
|
|
23
|
+
- [ ] No code in the spec — no file paths, no type signatures, no function names, no argument indexes. Domain vocabulary IS allowed (entity names, status enums, field names that name a domain concept).
|
|
24
|
+
- [ ] Every `outcomes` entry must trace back to the `intent` paragraph. Cut any outcome that doesn't
|
|
25
|
+
- [ ] Present the frontmatter to the orchestrator for relay to the user
|
|
26
|
+
- [ ] Run `aide_validate` to check the spec for structural issues
|
|
27
|
+
- [ ] Return **two independent routing signals** to the orchestrator:
|
|
28
|
+
- `Research needed: yes/no` — is the domain genuinely unknown territory?
|
|
29
|
+
- `Strategy needed: yes/no` — is the feature a pipeline: several modules each doing one specific thing in a specific order, handing off through calls, events, a clock or state changes? (The pipeline test in `.aide/docs/aide-spec.md`.) Self-contained modules are NO. Never answer NO because hand-offs are settled in `session.aide` or `brief.aide`.
|
|
30
|
+
|
|
31
|
+
The orchestrator decides next stage:
|
|
32
|
+
- both NO → `/aide:plan` directly (orchestrator passes user implementation context)
|
|
33
|
+
- Strategy YES, Research NO → `/aide:synthesize` (strategist writes the hand-offs from the orchestrator's pipeline description)
|
|
34
|
+
- both YES → `/aide:research` first, then `/aide:synthesize`, then `/aide:plan`
|
|
35
|
+
- Research YES, Strategy NO → `/aide:research`, then `/aide:plan`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# /aide:synthesize — Synthesize Phase
|
|
2
|
+
|
|
3
|
+
> **Agent:** This command is executed by the `aide-strategist` agent.
|
|
4
|
+
|
|
5
|
+
Read the intent spec's frontmatter, the orchestrator's description of the pipeline flow and any brain research, then fill in the `.aide` body sections (Context, Strategy, Good examples, Bad examples, References) AND author the sibling `brief.aide`. This is a fresh strategist session — it did not run the research phase and carries no prior context.
|
|
6
|
+
|
|
7
|
+
**Synthesize is conditional in the AIDE pipeline.** It runs only when the orchestrator routes through this phase — either because the spec-writer signaled "Strategy needed" (the feature is a pipeline: several modules each doing one specific thing in a specific order, handing off through calls, events, a clock or state changes) or the user explicitly asked for synthesis. Self-contained modules skip synthesize and go straight to `/aide:plan` as frontmatter-only navigation stubs.
|
|
8
|
+
|
|
9
|
+
**All-or-nothing rule:** if you produce a body, you fill all five sections. Partial bodies (Context filled but Strategy empty, etc.) are forbidden. If the pipeline description and available research aren't sufficient to fill all five, escalate to the orchestrator (or back to `/aide:research` when domain knowledge is missing) rather than producing a thin body.
|
|
10
|
+
|
|
11
|
+
## Checklist
|
|
12
|
+
|
|
13
|
+
- [ ] Read the target `.aide` file. Confirm frontmatter is complete (scope, intent, outcomes.desired, outcomes.undesired). If frontmatter is missing or incomplete, stop and escalate back to `/aide:spec`
|
|
14
|
+
- [ ] Read the pipeline flow from the orchestrator's delegation: what starts it, the order of the steps, the hand-offs, what happens when a step is late, repeated or missing
|
|
15
|
+
- [ ] Identify the domain from the intent. Search the brain for any research filed under that domain (e.g., `research/email-marketing/`, `research/local-seo/`); if no brain is available, check for a co-located `research.aide`. A pipeline may have no research — its flow can come entirely from the delegation
|
|
16
|
+
- [ ] If there is neither a pipeline description nor research to work from, stop and escalate to the orchestrator
|
|
17
|
+
- [ ] Read all relevant research entries. Cross-reference findings against the intent's `outcomes.desired` and `outcomes.undesired` — the research serves the intent, not the other way around
|
|
18
|
+
- [ ] Fill `## Context` — why this module exists, the domain-level problem, constraints that shape it. Write for a generalist engineer. No code. Do not restate context already carried by a parent `.aide`
|
|
19
|
+
- [ ] Fill `## Strategy` — how the system solves its real-world problem: how the modules interact, and why: what starts the flow, who calls or notifies whom, in what order, what each hand-off carries, and what happens when one is late, repeated or missing. The parent spec carries the end-to-end flow; a module spec carries only its slice. Each paragraph names a concrete choice and the reasoning or data that justifies it, naming the outcome it serves. Never restate the intent or outcomes, recount history, or cite `session.aide`, `brief.aide`, `plan.aide` or `todo.aide`. Write in decision form, not description form. No code
|
|
20
|
+
- [ ] Fill `## Good examples` — concrete domain output that illustrates success. Real output, not code. Pattern material for QA
|
|
21
|
+
- [ ] Fill `## Bad examples` — the almost-right failures. Output that looks valid but violates intent. Recognizable failure modes, not enumeration
|
|
22
|
+
- [ ] Verify every strategy decision traces back to an `outcomes.desired` or guards against an `outcomes.undesired`. Cut anything that doesn't serve the intent
|
|
23
|
+
- [ ] Run `aide_validate` to check the completed spec for structural issues
|
|
24
|
+
- [ ] Hand off to `/aide:plan` — the architect is the next phase
|