Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ examples/taskreport/.env
.DS_Store
# make worker
bin/
docs/.wrangler/
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Install pinned tools with `mise install`, then use:
- `make test-consumer` — verify importing `codemode` alone links nothing third-party and the core packages build with `CGO_ENABLED=0`.
- `SQLITE_VECTOR_EXTENSION=/absolute/path/vector.dylib make test-vector` — exercise real semantic search using sqlite-vector 1.0.0. Use `vector.so` on Linux.
- `make test-postgres` — exercise the pgvector backend against a throwaway container. Requires Docker.
- `make docs` / `make docs-build` — serve or build the VitePress documentation site in `docs/`. Node and pnpm are pinned in `mise.toml`; the Go module itself needs neither.
- `make docs` / `make docs-build` — serve or build the VitePress documentation site in `docs/`. `make docs-deploy` publishes it as Cloudflare Workers static assets (`docs/wrangler.jsonc`); set `CLOUDFLARE_ACCOUNT_ID` when your login reaches more than one account. Node and pnpm are pinned in `mise.toml`; the Go module itself needs neither.

Each command should work from the repository root and fail with a nonzero exit code on errors.

Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: demo-todo demo-shop demo-combined mcp-todo worker worker-image test-container demo-report demo-web generate generate-go generate-registry test test-vector \
test-postgres test-consumer test-env docs docs-build docs-preview
test-postgres test-consumer test-env docs docs-build docs-preview docs-deploy

demo-todo: generate
go run ./examples/todo
Expand Down Expand Up @@ -99,6 +99,10 @@ docs-build: docs/node_modules
docs-preview: docs-build
pnpm --dir docs preview

# Cloudflare Workers static assets; run `pnpm --dir docs exec wrangler login` once.
docs-deploy: docs/node_modules
pnpm --dir docs run deploy

docs/node_modules: docs/package.json docs/pnpm-lock.yaml
pnpm --dir docs install --frozen-lockfile
@touch docs/node_modules
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ limits, audit log). Both run programs in-process by default; add

## Documentation

Full docs are a VitePress site under [`docs/`](docs/content).
Full docs: **<https://codemode-docs.itnoobz.workers.dev>**, built from the
VitePress site under [`docs/`](docs/content).

**Get started**
- [**Quickstart**](docs/content/quickstart.md) — an empty directory to a typed answer and an approved write, in six steps
Expand Down Expand Up @@ -136,6 +137,7 @@ Full docs are a VitePress site under [`docs/`](docs/content).
```sh
make docs # serve locally with hot reload
make docs-build # build the static site
make docs-deploy # build and deploy to Cloudflare Workers (pnpm --dir docs exec wrangler login once)
```

## Layout
Expand Down
6 changes: 4 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
"scripts": {
"dev": "vitepress dev .",
"build": "vitepress build .",
"preview": "vitepress preview ."
"preview": "vitepress preview .",
"deploy": "vitepress build . && wrangler deploy"
},
"devDependencies": {
"mermaid": "^11.12.0",
"vitepress": "^1.6.4",
"vitepress-plugin-mermaid": "^2.0.17"
"vitepress-plugin-mermaid": "^2.0.17",
"wrangler": "^4.162.0"
},
"packageManager": "[email protected]"
}
Loading
Loading