Skip to content

Commit 2ed7952

Browse files
committed
refactor(monorepo): retarget runtime metadata to apps/api
1 parent 5064910 commit 2ed7952

File tree

11 files changed

+35
-19
lines changed

11 files changed

+35
-19
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Use the component checklist below and labels instead.
1414

1515
Where is the issue happening?
1616

17-
- [ ] Indexer (`packages/indexer`)
18-
- [ ] MCP server (`packages/mcp`)
17+
- [ ] Python backend/API (`apps/api`)
18+
- [ ] MCP service (`apps/api`)
19+
- [ ] Indexer CLI (`apps/api`)
1920
- [ ] Obsidian plugin (`packages/obsidian-plugin`)
2021
- [ ] Core/shared (`packages/core`)
2122
- [ ] Docs

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ body:
1717
label: Component
1818
description: Where is the issue happening?
1919
options:
20-
- Indexer (packages/indexer)
21-
- MCP server (packages/mcp)
20+
- Python backend/API (apps/api)
21+
- MCP service (apps/api)
22+
- Indexer CLI (apps/api)
2223
- Obsidian plugin (packages/obsidian-plugin)
2324
- Core/shared (packages/core)
2425
- Docs
@@ -31,7 +32,7 @@ body:
3132
attributes:
3233
label: What happened?
3334
description: What did you do, what happened, and what did you expect?
34-
placeholder: "Indexer crashes with ... / MCP tool returns ..."
35+
placeholder: "Python backend returns 503 with ... / MCP service startup fails with ..."
3536
validations:
3637
required: true
3738

@@ -42,7 +43,7 @@ body:
4243
description: Minimal steps so we can reproduce
4344
placeholder: |
4445
1. Set OPENAI_EMBEDDING_MODEL=...
45-
2. Run pnpm -C packages/indexer start -- ...
46+
2. Run uv run --directory apps/api ailss-indexer --vault "$AILSS_VAULT_PATH"
4647
3. Observe ...
4748
validations:
4849
required: true

.github/ISSUE_TEMPLATE/refactor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ body:
5151
attributes:
5252
label: Validation
5353
description: Which checks/tests will confirm behavior is preserved?
54-
placeholder: "- pnpm --filter @ailss/core test\n- pnpm --filter @ailss/mcp test"
54+
placeholder: "- pnpm --filter @ailss/core test\n- pnpm py:test"
5555
validations:
5656
required: true
5757

.github/ISSUE_TEMPLATE/test.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ Use labels for component tagging instead.
1313

1414
Which area should be covered?
1515

16-
- [ ] Indexer (`packages/indexer`)
17-
- [ ] MCP server (`packages/mcp`)
16+
- [ ] Python backend/API (`apps/api`)
17+
- [ ] MCP service (`apps/api`)
18+
- [ ] Indexer CLI (`apps/api`)
1819
- [ ] Obsidian plugin (`packages/obsidian-plugin`)
1920
- [ ] Core/shared (`packages/core`)
2021
- [ ] Docs

.github/ISSUE_TEMPLATE/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ body:
1616
label: Component
1717
description: Which area should be covered?
1818
options:
19-
- Indexer (packages/indexer)
20-
- MCP server (packages/mcp)
19+
- Python backend/API (apps/api)
20+
- MCP service (apps/api)
21+
- Indexer CLI (apps/api)
2122
- Obsidian plugin (packages/obsidian-plugin)
2223
- Core/shared (packages/core)
2324
- Docs

.github/labeler.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@ plugin:
66
mcp:
77
- changed-files:
88
- any-glob-to-any-file:
9-
- packages/mcp/**
9+
- apps/api/src/ailss_api/mcp*.py
10+
- apps/api/tests/test_mcp_runtime.py
11+
- docs/reference/mcp-tools.md
12+
- packages/obsidian-plugin/src/mcp/**
13+
- packages/obsidian-plugin/src/settingsSections/mcpServiceSection.ts
14+
- packages/obsidian-plugin/test/mcp/**
1015

1116
indexer:
1217
- changed-files:
1318
- any-glob-to-any-file:
14-
- packages/indexer/**
19+
- apps/api/src/ailss_api/indexer*.py
20+
- packages/obsidian-plugin/src/indexer/**
21+
- packages/obsidian-plugin/src/settingsSections/indexMaintenanceSection.ts
22+
- packages/obsidian-plugin/src/ui/indexDbResetFlow.ts
23+
- packages/obsidian-plugin/src/ui/indexer*.ts
1524

1625
core:
1726
- changed-files:

apps/api/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# AILSS API
22

3-
Local FastAPI app for the Python-first AILSS backend baseline.
3+
Python service app for the AILSS local runtime.
44

55
## Commands
66

77
```bash
8-
uv sync --directory apps/api
8+
uv sync --directory apps/api --locked
99
uv run --directory apps/api ailss-api --host 127.0.0.1 --port 8000
10+
uv run --directory apps/api ailss-mcp-http
11+
uv run --directory apps/api ailss-indexer --help
1012
uv run --directory apps/api pytest
1113
```
1214

apps/api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "ailss-api"
33
version = "0.1.0"
4-
description = "Python-first local agent backend baseline for AILSS"
4+
description = "Python service app for the AILSS local runtime"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [

apps/api/src/ailss_api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def create_app(settings: Settings | None = None) -> FastAPI:
3737
app = FastAPI(
3838
title="AILSS API",
3939
version="0.1.0-dev",
40-
summary="Python-first local agent backend baseline",
40+
summary="Python-owned local service runtime",
4141
)
4242

4343
@app.get("/health", response_model=HealthResponse)

packages/obsidian-plugin/src/settingsSections/advancedSection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function renderAdvancedSection(
4949
});
5050
});
5151

52-
advancedContainer.createEl("h4", { text: "MCP service (transition layer)" });
52+
advancedContainer.createEl("h4", { text: "MCP service (localhost)" });
5353

5454
new Setting(advancedContainer)
5555
.setName("Command")

0 commit comments

Comments
 (0)