Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3547349
build(deps): bump fast-uri
dependabot[bot] May 26, 2026
579188a
build(deps): bump qs and express
dependabot[bot] May 26, 2026
26397b7
build(deps): bump uuid
dependabot[bot] May 26, 2026
ca5631e
Merge pull request #13 from repfly/dependabot/npm_and_yarn/backstage-…
repfly May 26, 2026
87c3725
Merge branch 'develop' into dependabot/npm_and_yarn/backstage-plugin/…
repfly May 26, 2026
c326639
Merge pull request #12 from repfly/dependabot/npm_and_yarn/backstage-…
repfly May 26, 2026
5e4d623
Merge pull request #11 from repfly/dependabot/npm_and_yarn/backstage-…
repfly May 26, 2026
d6e328d
update: architectural reconstruction
repfly Apr 18, 2026
d441f11
add: feedback system and update enums
repfly Apr 23, 2026
c79bba2
Merge pull request #14 from repfly/bug-fix/improvements
repfly May 26, 2026
a1a131c
update(indexing): job isolation for queue and query
repfly May 26, 2026
7392ad4
update: no index errors
repfly May 26, 2026
299109e
update(runtime): core service edge cases
repfly May 26, 2026
c92087f
Merge pull request #15 from repfly/feature/index-job-isolation
repfly May 26, 2026
bc11467
build(deps-dev): bump baseline-browser-mapping
dependabot[bot] Sep 10, 2026
4233437
build(deps): bump js-yaml
dependabot[bot] Sep 13, 2026
c395509
Merge pull request #24 from repfly/dependabot/npm_and_yarn/backstage-…
repfly Oct 2, 2026
76eba72
Merge pull request #23 from repfly/dependabot/npm_and_yarn/backstage-…
repfly Oct 2, 2026
556968a
chore: slim dependencies, drop torch/chroma/LLM, simplify CI
repfly Oct 2, 2026
757d998
fix: point Docker entrypoint and docs at develop's new CLI
repfly Oct 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.git
.venv
venv
.mimir
**/__pycache__
**/*.pyc
**/*.egg-info
dist
build
client
backstage-plugin
docs
tests
.github
.claude
.DS_Store
68 changes: 26 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,56 @@ on:
push:
branches: [main, develop]

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Tests
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v7

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: pip

- name: Install dependencies
run: pip install -e ".[dev]"

- name: Run tests
run: pytest --tb=short -q

guardrails:
name: Architectural Guardrails
build:
name: Build verification
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
fetch-depth: 0 # setuptools-scm derives the version from git tags

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.13"

- name: Install Mimir
run: pip install -e .
- name: Install build tools
run: pip install build twine

- name: Build code graph
run: mimir index
- name: Build server package
run: python -m build --outdir dist/

- name: Run guardrail check
id: guardrails
run: |
EXIT_CODE=0
git diff origin/${{ github.base_ref }}...${{ github.event.pull_request.head.sha }} | \
mimir guardrail check --diff - \
--rules mimir-rules.yaml \
--base origin/${{ github.base_ref }} \
--head ${{ github.event.pull_request.head.sha }} \
--output github-pr-comment \
--report-file guardrail-report.md \
|| EXIT_CODE=$?
echo "exit_code=$EXIT_CODE" >> $GITHUB_ENV
cat guardrail-report.md >> $GITHUB_STEP_SUMMARY

- name: Comment on PR
if: always() && hashFiles('guardrail-report.md') != ''
uses: marocchino/sticky-pull-request-comment@v2
with:
header: mimir-guardrails
path: guardrail-report.md
- name: Build client package
run: python -m build --outdir dist/
working-directory: client

- name: Fail if violations
if: env.exit_code != '0'
run: exit 1
- name: Check package metadata
run: twine check --strict dist/* client/dist/*
46 changes: 34 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,41 @@ on:
- "v*"

permissions:
contents: write
id-token: write
contents: read

jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-python@v7
with:
python-version: "3.13"
cache: pip

- name: Install dependencies
run: pip install -e ".[dev]"

- name: Run tests
run: pytest --tb=short -q

build:
name: Build packages
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.13"

- name: Install build tools
run: pip install build
run: pip install build twine

- name: Build server package
run: python -m build --outdir dist/
Expand All @@ -32,8 +49,11 @@ jobs:
run: python -m build --outdir dist/
working-directory: client

- name: Check package metadata
run: twine check --strict dist/* client/dist/*

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: dist
path: |
Expand All @@ -42,13 +62,15 @@ jobs:

github-release:
name: Create GitHub Release
needs: build
needs: [publish-server, publish-client]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: dist
path: artifacts
Expand All @@ -63,7 +85,7 @@ jobs:
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ github.ref_name }}
name: Mimir ${{ steps.version.outputs.version }}
Expand All @@ -79,7 +101,7 @@ jobs:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: dist
path: artifacts
Expand All @@ -101,7 +123,7 @@ jobs:
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: dist
path: artifacts
Expand Down
Binary file modified .mimir/project/graph.db
Binary file not shown.
Binary file added .mimir/project/graph.db-shm
Binary file not shown.
Binary file added .mimir/project/graph.db-wal
Binary file not shown.
25 changes: 25 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Repository Guidelines

## Project Structure & Module Organization
`mimir/` is the main server package. Keep core models in `mimir/domain/`, interfaces in `mimir/ports/`, business logic in `mimir/services/`, concrete implementations in `mimir/infra/`, and external entry points in `mimir/adapters/`. `mimir/container.py` wires dependencies.

`tests/` mirrors the runtime layout with focused suites such as `tests/services/`, `tests/adapters/`, `tests/domain/`, and `tests/infra/`. The lightweight remote client lives in `client/mimir_client/`. The optional Backstage integration is isolated under `backstage-plugin/plugins/catalog-backend-module-mimir/`. Docs and example configs live in `docs/`, `mimir.toml`, `mimir-rules.yaml`, and `mimir-agent-policy.yaml`.

## Build, Test, and Development Commands
Install the server for development with `pip install -e ".[dev]"`. Run the Python test suite with `pytest` or `.venv/bin/pytest` if using the checked-in virtualenv layout. Common local workflows:

- `mimir index` rebuilds the semantic graph for the current workspace.
- `mimir serve` starts the MCP stdio server.
- `mimir serve --http` starts the shared HTTP server on port `8421`.
- `mimir guardrail check` validates the current diff against architectural rules.

For the client package, use `cd client && pip install -e .`. For the Backstage plugin, use `cd backstage-plugin/plugins/catalog-backend-module-mimir && npm test && npm run build`.

## Coding Style & Naming Conventions
Follow the existing hexagonal boundaries; do not let adapters reach into infra directly. Python targets 3.11+ and uses type hints, frozen dataclass-style domain models, and `snake_case` for modules, functions, and variables. Classes and enums use `PascalCase`; constants use `UPPER_SNAKE_CASE`. TypeScript in the Backstage plugin follows the same naming split: `PascalCase` for exported types/classes, `camelCase` for values.

## Testing Guidelines
Add tests next to the affected layer and name files `test_<feature>.py` or `*.test.ts`. Prefer narrow unit tests for services and adapters, then add integration coverage when indexing, retrieval, or HTTP behavior changes. Run `pytest` before opening a PR; run `npm test` in the Backstage plugin when touching `backstage-plugin/`.

## Commit & Pull Request Guidelines
Recent history favors short imperative subjects with prefixes like `add:`, `fix:`, and `update:`. Keep commits focused and descriptive, for example `fix: preserve token budget in retrieval`. PRs should explain behavior changes, list validation steps, link related issues, and include request/response examples or screenshots when HTTP, web UI, or Backstage behavior changes.
Loading
Loading