Repository navigation
v0.4.1 — Service Worker Persistence, Ability Test Harness
What's New
Service Worker Persistence Fixed
- Added
sw-loader.phpto serve the Service Worker with theService-Worker-Allowed: /wp-admin/header — the SW now registers correctly and the model persists across page navigations (no re-download needed) - Moved
sw-loader.phpto plugin root sowp-scripts buildcan't accidentally delete it - Synced SW version format with plugin version (
0.4.101) for predictable cache busting
Ability Test Harness (WebLLM)
- Rebuilt the ability test harness for WebLLM (previously lost transformers.js prototype)
- Headless Chrome + WebGPU via Puppeteer — runs Qwen 3 1.7B, executes ReAct agent against test cases
- 8/8 tests passing: tool selection (6/6) + no-tool knowledge questions (2/2)
- Run with:
npm run test:abilities -- --file tests/abilities/core-abilities.test.js - Third-party developers can test their own abilities using the same harness
Repo Cleanup
build-extensions/removed from git tracking (generated on build/distribution only)build-test-harness/gitignored (dev-only artifact)
Documentation
- Added IDEAS.md section #10: transformers.js / ONNX Runtime experiment findings
- What works (0.5B on WebGPU, SW persistence with WASM)
- What doesn't (1.5B+ hits ORT WASM memory limits)
- Investigation leads for hackathon
Test Results
8/8 passed
Mode: prompt-based (Qwen 3 1.7B)
| Input | Tool Called | Status |
|---|---|---|
| list all installed plugins | plugin-list | PASS |
| show me the error log | error-log-read | PASS |
| is debug mode enabled? | error-log-read | PASS |
| check my site health | site-health | PASS |
| flush the cache | cache-flush | PASS |
| optimize the database | db-optimize | PASS |
| what is a transient? | (none) | PASS |
| explain the difference between posts and pages | (none) | PASS |
Full Changelog: v0.4.0...v0.4.1