Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ tsconfig.json
package-lock.json
apps.json

# The MCP search index is runtime data for the MCP server, not public static
# content: keep it out of the nginx web root.
dist/_mcp
# The page manifest is build metadata for the MCP indexer, not site content:
# keep it out of the nginx web root. mcp-server/Dockerfile.dockerignore lets it in.
dist/_kb
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#
# Jobs:
# typecheck — astro check (TypeScript / Astro type errors)
# lint — MCP server: tsc, ESLint, Prettier (npm run lint)
# build — headless build from the vendored fixture; uploads dist/
# e2e — Playwright: embedded web-fragment harness + standalone layer
# image — docker build + container integration tests against real nginx + Trivy scan
Expand Down Expand Up @@ -52,20 +51,6 @@ jobs:
env:
NODE_OPTIONS: --max-old-space-size=6144

# ── 1b. Lint (MCP server) ──────────────────────────────────────────────────
# Blocking: tsc --noEmit, ESLint (type-aware) and Prettier over mcp/.
lint:
name: Lint (MCP)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
cache: npm
- run: npm ci
- run: npm run lint

# ── 2. Build (headless, hermetic) ──────────────────────────────────────────
build:
name: Build (headless)
Expand Down
5 changes: 0 additions & 5 deletions .prettierrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ apps.json (registry)
→ [3] astro build: [...path].astro enumerates all HTML via getStaticPaths
→ transformSubAppHtml() rewrites URLs + splits the document,
which Base.astro then re-hosts (masthead + head/body)
→ [3b] Page manifest → dist/_kb/pages.json (every published page + its app)
→ dist/
```

Expand Down Expand Up @@ -81,6 +82,7 @@ Orchestrator: `scripts/build-vite.js`. Flags: `--local`, `--headless`.
- `src/utils/config.js` — `PATH_PREFIX`/`BASE_PATH`, `isHeadlessBuild()` and `REGISTRY_FILE` — the build-wide constants
- `src/utils/registry.js` — Registry validation, manifest reading/validation, expansion map. Shared by the build and by Astro so both resolve the same registry
- `scripts/build-vite.js` — Build orchestrator (4 steps: prepare, hoist, copy assets, astro build)
- `scripts/page-manifest.js` — Build step 3b: writes `dist/_kb/pages.json` (shape: `scripts/page-manifest.schema.json`), the pages Astro published with their app's name, description, tags, kind and source version. It and the HTML under `dist/` are the whole interface for consumers that do not run Node (the MCP indexer); they never read the registry. `.dockerignore` keeps `dist/_kb` out of the nginx image
- `scripts/fetch-apps.js` — GitHub Release artifact downloader. Only *obtains* an artifact; installing it is one shared path in `build-vite.js`
- `scripts/artifacts.js` — Safe tarball extraction + tree copy, shared by both fetch paths. Validates archive members (no traversal, no absolute paths, no symlinks) before anything is written, and replaces the old `cp -r`/`tar` shell-outs so the build runs on Windows
- `scripts/check-artifact.js` — Runs the publish action's contract checker (`actions/lib/check.js`) on every installed artifact, before hoisting; logs findings grouped by rule, and fails a strict build on an error. `check.js` resolves its parsers from `actions/node_modules` or the root; the two may pin different versions, and `tests/artifact-checks.spec.js` runs the checker self-test against whichever the build resolves
Expand Down
42 changes: 0 additions & 42 deletions eslint.config.js

This file was deleted.

277 changes: 0 additions & 277 deletions mcp/build/extract.ts

This file was deleted.

Loading
Loading