Skip to content

Commit 6cb831f

Browse files
committed
Add eslint config and lint script
Matches corbits-ollama-adapter's config and tool versions; CI runs it.
1 parent bc30dc3 commit 6cb831f

6 files changed

Lines changed: 260 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
bun-version: latest
2222
- run: bun install --frozen-lockfile
2323
- run: bunx tsc --noEmit
24+
- run: bun run lint
2425
- run: bun run test
25-
- run: bunx prettier --check src tests
26+
- run: bunx prettier --check .
2627
- run: bun run build
2728
- name: Import packed dist with Node
2829
run: |

‎ARCHITECTURE.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ built on it. There is no provider registry. Every call is HTTP POST to
88

99
Callers import from `@corbits/embedding`. The barrel is the public surface:
1010

11-
| Export | Role |
12-
| --- | --- |
13-
| `embedTexts` | Batch texts, post sequentially, return `number[][]` in input order |
14-
| `probeEmbedDims` | Embed one probe string; report the vector length that came back |
15-
| `EmbedConfig` / `EmbedConfigSchema` | Endpoint, model, and optional knobs |
16-
| `EmbedOptions` | Optional harness deps, retry, `Retry-After` override, abort |
17-
| `RequestDependencies` / `RetryAfterExtractor` | Types of the `EmbedOptions` fields |
18-
| `EmbeddingRequestError` | Every request failure — `reason` is the classified `InferenceError` |
11+
| Export | Role |
12+
| --------------------------------------------- | ------------------------------------------------------------------- |
13+
| `embedTexts` | Batch texts, post sequentially, return `number[][]` in input order |
14+
| `probeEmbedDims` | Embed one probe string; report the vector length that came back |
15+
| `EmbedConfig` / `EmbedConfigSchema` | Endpoint, model, and optional knobs |
16+
| `EmbedOptions` | Optional harness deps, retry, `Retry-After` override, abort |
17+
| `RequestDependencies` / `RetryAfterExtractor` | Types of the `EmbedOptions` fields |
18+
| `EmbeddingRequestError` | Every request failure — `reason` is the classified `InferenceError` |
1919

2020
The JSON transport (`runJSONRequest`) is private.
2121

‎IMPLEMENTATION.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ bun add @corbits/embedding
2828

2929
## Dependencies
3030

31-
| Package | Use |
32-
| --- | --- |
31+
| Package | Use |
32+
| ---------------------------------- | ----------------------------------------------------------------------------------------------------- |
3333
| `@intx/inference` (peer, `^0.4.0`) | `BuiltRequest`, `createDefaultRetryPolicy`, error classifiers, `createDefaultScheduler` (caller-side) |
34-
| `@intx/types` (peer, `^0.4.0`) | `RetryPolicy`, `InferenceError` |
35-
| `arktype` | `EmbedConfigSchema` and the embeddings reply shape |
34+
| `@intx/types` (peer, `^0.4.0`) | `RetryPolicy`, `InferenceError` |
35+
| `arktype` | `EmbedConfigSchema` and the embeddings reply shape |
3636

3737
Dev: `@intx/inference`, `@intx/types` and `@intx/inference-testing` pinned at 0.4.0, `@types/bun`, `prettier`, `typescript` 5.9.
3838

0 commit comments

Comments
 (0)