Commit b67d2db
authored
docs/add examples (#9)
* chore: add microservice architecture scaffolding
Add .env.example, api/openapi.yaml, deploy/docker/docker-compose.yml,
docs/architecture.md, and .github/workflows/docker.yml for GHCI build+push CI.
* fix: resolve lint, module hygiene, and markdown CI failures
Fix errcheck on rows.Close(), simplify bool comparison,
remove unused knownFields var, fix empty badge links,
and run go work sync to update module consistency.
* fix: exclude go.work from Docker build context
hawk's go.work references external/ symlinks to sibling
repos that don't exist in the Docker build context.
* fix: add Windows support for safewrite and update go.sum
Add //go:build !windows constraint to safewrite.go (uses unix
syscalls), create safewrite_windows.go with portable fallback,
skip tests on Windows, and run go mod download to add missing
go.sum entry for golang.org/x/tools.
* fix: gofumpt format safewrite_windows.go and add missing go.sum entry
The Windows stub needed formatting. Also add the /go.mod hash
for golang.org/x/tools v0.45.0 that was missing from go.sum,
causing the Docker build to fail.
* fix: clone eyrie in Docker build for unpublished packages
hawk depends on eyrie packages (credentials, runtime, setup,
catalog/registry) that aren't in the published v0.5.0. Clone
eyrie into the builder and add a replace directive.
* fix: use go mod tidy in Docker to resolve eyrie replace directive
The replace directive needs go mod tidy (not just download) to
resolve all transitive dependencies from the local eyrie clone.
Use -mod=mod to allow go.mod changes during build.
* fix: add eyrie replace directive after source copy
COPY . . was overwriting go.mod that had the replace directive.
Move the replace + go mod tidy to after the source copy.
* docs: add examples directory with usage guide
Add examples/README.md demonstrating basic usage, advanced features, and MCP integration.1 parent 96ed84b commit b67d2db
16 files changed
Lines changed: 626 additions & 116 deletions
File tree
- .github/workflows
- api
- deploy/docker
- docs
- examples
- internal
- jsonc
- permissions
- safewrite
- session
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | | - | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
0 commit comments