From 67c4b1d26c24b12d5cd4618422930b6f7f9f3a27 Mon Sep 17 00:00:00 2001 From: Nightly README Agent Date: Sun, 10 May 2026 02:07:17 +0000 Subject: [PATCH 1/2] docs: add missing service package import to Go library example The example used service.RepositoryAddParams and service.WithLimit but only imported github.com/helixml/kodit. The service package is not re-exported from the root package, so the example would not compile. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a4e205c..35347eca 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,10 @@ The enrichment tools (`architecture_docs`, `api_docs`, `database_schema`, `cookb Kodit can be embedded directly as a Go library. This is how [Helix](https://helix.ml) integrates Kodit into its platform. ```go -import "github.com/helixml/kodit" +import ( + "github.com/helixml/kodit" + "github.com/helixml/kodit/application/service" +) client, err := kodit.New( kodit.WithSQLite(".kodit/data.db"), From 1f6070cb89b0117c1b121c20deaadc620c5dac9a Mon Sep 17 00:00:00 2001 From: Nightly README Agent Date: Thu, 21 May 2026 02:03:18 +0000 Subject: [PATCH 2/2] docs: fix authentication header from Authorization: Bearer to X-API-KEY --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 35347eca..285e4db1 100644 --- a/README.md +++ b/README.md @@ -403,7 +403,7 @@ spec: ### Authentication -Set the `API_KEYS` environment variable to a comma-separated list of keys. Write endpoints (creating repositories, triggering syncs) require a valid key in the `Authorization: Bearer ` header. Search endpoints are open by default. +Set the `API_KEYS` environment variable to a comma-separated list of keys. Write endpoints (creating repositories, triggering syncs) require a valid key in the `X-API-KEY: ` header. Search endpoints are open by default. ## Configuration Reference @@ -552,7 +552,7 @@ Key endpoints: | `GET` | `/api/v1/search/grep` | Regex pattern search | | `GET` | `/api/v1/search/ls` | List files by glob | -All write endpoints require an `Authorization: Bearer ` header when `API_KEYS` is set. +All write endpoints require an `X-API-KEY: ` header when `API_KEYS` is set. ## How Indexing Works