• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 27873298894
82%

Build:
DEFAULT BRANCH: dev
Ran 20 Jun 2026 01:59PM UTC
Jobs 28
Files 609
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Jun 2026 01:57PM UTC coverage: 81.745% (+0.002%) from 81.743%
27873298894

push

github

web-flow
feat: prefetch agent-memory embedding model on daemon startup (#2133)

* feat: prefetch agent-memory embedding model on daemon startup

- Add background prefetchAgentMemoryEmbeddingModel() called from createDaemonApp

- Provide custom file-backed cache because the transformers web bundle reports no FS support under Bun

- Disable local model path lookup to eliminate /models/... ERR_INVALID_URL warnings

- Reuse prefetch result in TransformersAgentMemoryEmbedder to avoid duplicate downloads

- Cache dir defaults to ~/.neokai/cache/transformers

- Update knip.json to ignore test-only reset export

* test: add unit tests for embedding model prefetch

- Cache hit skips transformers load and download

- Cache miss loads model/tokenizer with correct options

- Prefetch failure is logged and does not throw

- Local model path lookup is disabled

* refactor(agent-memory): address review feedback on prefetch implementation

- Stop re-exporting withoutAuthorization from agent-memory-transformers

- Use node:fs/promises readFile in TransformersFileCache.match

- Document why fallback device is cpu under Bun

- Import withoutAuthorization directly in tests

* refactor(agent-memory): address additional review feedback

- Probe cache with existence-only has() instead of reading files

- Map URL cache keys to Windows-safe filesystem paths

- Add abort controller for graceful prefetch shutdown

- Skip embedding-model prefetch under NODE_ENV=test

* fix(agent-memory): let prefetch IIFE own abort-controller cleanup

Removing the immediate null assignment in abortAgentMemoryEmbeddingModelPrefetch() so the shutdown-abort log branch can read prefetchAbortController.signal.aborted before the IIFE finally block clears it.

* fix(agent-memory): abort prefetch on startup failure and block lazy load after abort

- Track prefetchAborted so embedders do not restart a cancelled download.

- Abort in-flight prefetch in createDaemonApp's startup error path when no cleanup function ... (continued)

10877 of 15826 branches covered (68.73%)

Branch coverage included in aggregate %.

232 of 247 new or added lines in 2 files covered. (93.93%)

23 existing lines in 1 file now uncovered.

93187 of 111477 relevant lines covered (83.59%)

296.19 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
95.44
1.32% packages/daemon/src/storage/repositories/agent-memory-transformers.ts
6
71.75
-0.39% packages/daemon/src/app.ts

Coverage Regressions

Lines Coverage ∆ File
23
97.3
-2.39% packages/daemon/src/lib/agent/query-runner.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-space-2 - 27873298894.1 20 Jun 2026 02:01PM UTC 355
31.07
GitHub Action Run
2 daemon-online-space-1 - 27873298894.2 20 Jun 2026 01:59PM UTC 355
31.27
GitHub Action Run
3 daemon-5-space-runtime-b - 27873298894.3 20 Jun 2026 02:00PM UTC 179
45.97
GitHub Action Run
4 daemon-online-rpc-4 - 27873298894.4 20 Jun 2026 02:01PM UTC 355
22.56
GitHub Action Run
5 daemon-4-space-migrations-a - 27873298894.5 20 Jun 2026 01:59PM UTC 73
37.99
GitHub Action Run
6 daemon-online-lifecycle - 27873298894.6 20 Jun 2026 02:00PM UTC 355
22.14
GitHub Action Run
7 daemon-online-rewind-1 - 27873298894.7 20 Jun 2026 02:01PM UTC 355
21.97
GitHub Action Run
8 daemon-online-websocket - 27873298894.8 20 Jun 2026 01:59PM UTC 355
17.72
GitHub Action Run
9 daemon-online-features-1 - 27873298894.9 20 Jun 2026 02:00PM UTC 355
22.47
GitHub Action Run
10 daemon-online-mcp - 27873298894.10 20 Jun 2026 01:59PM UTC 355
17.95
GitHub Action Run
11 daemon-online-components - 27873298894.11 20 Jun 2026 02:00PM UTC 355
17.62
GitHub Action Run
12 daemon-5-space-runtime-a - 27873298894.12 20 Jun 2026 01:59PM UTC 125
39.79
GitHub Action Run
13 daemon-4-space-storage - 27873298894.13 20 Jun 2026 01:59PM UTC 159
54.21
GitHub Action Run
14 daemon-online-rpc-2 - 27873298894.14 20 Jun 2026 02:00PM UTC 355
22.82
GitHub Action Run
15 daemon-online-features-2 - 27873298894.15 20 Jun 2026 02:00PM UTC 355
22.17
GitHub Action Run
16 daemon-online-convo - 27873298894.16 20 Jun 2026 02:00PM UTC 355
21.75
GitHub Action Run
17 daemon-5-space-agent-other - 27873298894.17 20 Jun 2026 01:59PM UTC 280
26.34
GitHub Action Run
18 daemon-online-rpc-1 - 27873298894.18 20 Jun 2026 02:00PM UTC 355
18.75
GitHub Action Run
19 daemon-online-rewind-2 - 27873298894.19 20 Jun 2026 02:00PM UTC 355
22.36
GitHub Action Run
20 daemon-online-git - 27873298894.20 20 Jun 2026 01:59PM UTC 355
18.49
GitHub Action Run
21 daemon-4-space-migrations-b - 27873298894.21 20 Jun 2026 01:59PM UTC 48
55.94
GitHub Action Run
22 web - 27873298894.22 20 Jun 2026 01:59PM UTC 244
73.93
GitHub Action Run
23 daemon-online-coordinator - 27873298894.23 20 Jun 2026 01:59PM UTC 344
7.88
GitHub Action Run
24 daemon-1-core - 27873298894.24 20 Jun 2026 01:59PM UTC 361
35.26
GitHub Action Run
25 daemon-online-agent-sdk - 27873298894.25 20 Jun 2026 02:00PM UTC 355
21.84
GitHub Action Run
26 daemon-online-rpc-3 - 27873298894.26 20 Jun 2026 02:00PM UTC 355
19.1
GitHub Action Run
27 daemon-0-shared-handlers-workflow - 27873298894.27 20 Jun 2026 01:59PM UTC 328
34.99
GitHub Action Run
28 daemon-online-sdk - 27873298894.28 20 Jun 2026 02:00PM UTC 355
21.84
GitHub Action Run
Source Files on build 27873298894
  • Tree
  • List 609
  • Changed 10
  • Source Changed 2
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27873298894
  • 9871a969 on github
  • Prev Build on dev (#27863619682)
  • Next Build on dev (#27874317081)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc