md-first memory extraction framework for AI agents. Markdown is the single source of truth; SQLite holds state and LanceDB provides the rebuildable vector + BM25 + scalar index. The codebase follows a single-direction DDD layering (entrypoints -> service -> memory -> infra, with component / core / config cross-cutting) enforced by import-linter. Engineering surface: - Coding conventions in .claude/rules/ (path-scoped) and workflows in .claude/skills/ (/commit, /new-branch, /pr). - GitHub Actions CI runs make lint + test + integration; pre-commit mirrors the gates locally (ruff, hygiene hooks, gitlint commit-msg). - Commit messages follow Conventional Commits, enforced by gitlint. - make lint also enforces datetime two-zone discipline and OpenAPI drift.
21 lines
419 B
Docker
21 lines
419 B
Docker
# Use official Bun image
|
|
FROM oven/bun:1 AS base
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
FROM base AS deps
|
|
COPY package.json bun.lockb* ./
|
|
RUN bun install --frozen-lockfile || bun install
|
|
|
|
# Build stage (copy source)
|
|
FROM base AS runner
|
|
COPY --from=deps /app/node_modules ./node_modules
|
|
COPY . .
|
|
|
|
# Cloud Run uses PORT env var (default 8080)
|
|
ENV PORT=8080
|
|
EXPOSE 8080
|
|
|
|
# Run the server
|
|
CMD ["bun", "run", "src/server.ts"]
|