| phase | planning |
|---|---|
| title | Project Planning & Task Breakdown |
| description | Task breakdown for project-configurable memory database paths |
- Milestone 1: Project config schema and parsing support
memory.path - Milestone 2: CLI memory command flows consume resolved database path
- Milestone 3: Tests cover configured path and fallback behavior
- Task 1.1: Extend
packages/cli/src/types.tsto type optionalmemory.path - Task 1.2: Add
ConfigManager.getMemoryDbPath()inpackages/cli/src/lib/Config.ts - Task 1.3: Add unit tests for project config parsing, including missing, invalid, absolute, and relative path cases
- Task 2.1: Introduce a CLI-owned path-resolution flow that combines project config override with
DEFAULT_DB_PATH - Task 2.2: Update
packages/memory/src/api.tsand CLI entry points so store/search/update use the resolved path consistently - Task 2.3: Removed from scope during Phase 2 review. Standalone
@ai-devkit/memoryMCP server remains unchanged for this feature.
- Task 3.1: Add or update CLI tests covering memory commands with configured
memory.path - Task 3.2: Add or update memory package tests covering explicit
dbPathwiring and configured-path persistence - Task 3.3: Run targeted verification for docs lint and relevant automated tests
- Task 1.1 precedes Task 1.2 because config typing should match the new parser surface.
- Task 1.2 precedes Task 2.1 and Task 2.2 because runtime resolution depends on the config accessor.
- Task 2.1 should land before Task 2.2 so CLI and memory API use one resolution rule.
- Verification tasks depend on both config support and runtime wiring being complete.
- Phase 1: Small, low-risk change
- Phase 2: Medium effort because path selection currently sits below config loading boundaries
- Phase 3: Small to medium effort depending on current test coverage for memory command setup
- Risk: CLI commands honor config but the standalone MCP server still uses the default database. Mitigation: This is intentional and documented as out of scope for the feature.
- Risk: Relative paths resolve from process cwd instead of project root. Mitigation: Resolve from the config file directory and add explicit unit tests.
- Risk: Invalid config values break existing users.
Mitigation: Treat invalid values as unset and retain
DEFAULT_DB_PATH.
- Existing config loading utilities in
packages/cli/src/lib/Config.ts - Existing database connection behavior in
packages/memory/src/database/connection.ts - Existing memory command tests in
packages/cli/src/__tests__/commands/memory.test.ts
- Completed implementation for project-configured
memory.pathinai-devkitCLI flows. - Preserved standalone
@ai-devkit/memorybehavior as approved during requirements review. - Verified with targeted CLI tests, memory integration tests, feature doc lint, package builds, and a real built-CLI store/search run against a temporary project config.