Public: anyone can read this; the crew can change it.

Revert "The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500" #12980

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

revert-12975 → main 1 commit

  • Merged. revert-12975 was merged into main as d357679.

Review

Sign in to review this change.
3 files changed +7 −12
.dockerignore +3
@@ -3,5 +3,8 @@
33 bench/
44 data/
55 dist/
6 docs/
7 !docs/PRINCIPLES.md
8 !docs/DESIGN.md
69 node_modules/
710 test/
Dockerfile +4 −5
@@ -17,11 +17,10 @@ RUN apt-get update \
1717 WORKDIR /app
1818 COPY package.json tsconfig.json ./
1919 COPY src ./src
20 # The forge's documentation: /docs and the terminal list docs/*.md and docs/features/*.md from the
21 # release's checkout (src/view/docs.ts), and the crew is briefed from docs/PRINCIPLES.md and
22 # docs/DESIGN.md (src/crew/principles.ts, src/crew/design_principles.ts). With only those two files
23 # copied, /docs listed two documents, every guide page was a 404 and every feature note a 500.
24 COPY docs ./docs
20 # The principles the forge's own agents are briefed with (src/crew/principles.ts).
21 COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md
22 # The design principles a src/web/ review is held to (src/crew/design_principles.ts).
23 COPY docs/DESIGN.md ./docs/DESIGN.md
2524 # The OpenCode plugin the forge serves at /plugins/opencode/forge.ts (src/http/plugin_routes.ts).
2625 COPY plugins/opencode ./plugins/opencode
2726 # The Claude Code command files the marketplace manifest lists (same route file).
test/dockerfile-copies.test.ts −7
@@ -37,13 +37,6 @@ describe("what the Dockerfile copies reaches the build", () => {
3737 expect(ignored(lines(".dockerignore"), path)).toBe(false);
3838 });
3939
40 // /docs reads its listing from the release's checkout (src/view/docs.ts): the whole folder rides.
41 test("the documentation /docs lists rides in the image, feature notes included", () => {
42 expect(copied).toContain("docs");
43 expect(existsSync(join(ROOT, "docs", "features", "README.md"))).toBe(true);
44 expect(ignored(lines(".dockerignore"), "docs/features/README.md")).toBe(false);
45 });
46
4740 // The packs are forge repos read from git (#10532): no folder of them rides in the image.
4841 test("no packs folder is copied: /packs reads the marked repos", () => {
4942 expect(copied).not.toContain("packs");

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs