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

lsm / neokai / 27873298894 / 17
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 20 Jun 2026 02:02PM UTC
Files 280
Run time 9s
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: 26.344%. Remained the same
27873298894.17

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)

24657 of 93596 relevant lines covered (26.34%)

14.81 hits per line

Source Files on job daemon-5-space-agent-other - 27873298894.17
  • Tree
  • List 280
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27873298894
  • 9871a969 on github
  • Prev Job for on dev (#27863619682.21)
  • Next Job for on dev (#27874317081.16)
  • 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