chore: add TypeScript, Prettier and changelog scaffold
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6da76a8a18
commit
5e3671fa8b
12 files changed
+543
-70
No files matched your search
@@ -35,16 +35,16 @@ Result: `url`, `title`, `description`, `snippet` (always-populated alias of `des
|
||||
|
||||
Body `{ "success": false, "error": string, "error_code": string }`.
|
||||
|
||||
| HTTP | error_code |
|
||||
|---|---|
|
||||
| 400 | `invalid_request` |
|
||||
| 401 | auth middleware message |
|
||||
| 422 | `target_unreachable` |
|
||||
| 429 | `rate_limited` |
|
||||
| 500 | `internal_error` |
|
||||
| 502 | `http_error` |
|
||||
| 503 | `search_disabled` / `search_degraded` |
|
||||
| 504 | `timeout` |
|
||||
| HTTP | error_code |
|
||||
| ---- | ------------------------------------- |
|
||||
| 400 | `invalid_request` |
|
||||
| 401 | auth middleware message |
|
||||
| 422 | `target_unreachable` |
|
||||
| 429 | `rate_limited` |
|
||||
| 500 | `internal_error` |
|
||||
| 502 | `http_error` |
|
||||
| 503 | `search_disabled` / `search_degraded` |
|
||||
| 504 | `timeout` |
|
||||
|
||||
Self-hosted search needs a SearXNG-style backend (`CRW_SEARCH__SEARCH_BACKEND_URL`); without one expect 503 `search_disabled`.
|
||||
|
||||
|
||||
@@ -43,8 +43,13 @@ await ctx.websearch.transform((editor) => {
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"plugins": [{ "package": "~/.config/opencode/plugins/fastcrw", "options": { "baseURL": "http://crw.home:3000", "limit": 8 } }],
|
||||
"websearch": { "provider": "fastcrw" }
|
||||
"plugins": [
|
||||
{
|
||||
"package": "~/.config/opencode/plugins/fastcrw",
|
||||
"options": { "baseURL": "http://crw.home:3000", "limit": 8 },
|
||||
},
|
||||
],
|
||||
"websearch": { "provider": "fastcrw" },
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user