qwai-tech_obsidian-plugin-i.../scripts
Leon Ward ecc5d1eca6 fix: agent reliability fixes + verification harness (bundles in-progress WIP)
This-session changes (reviewed, lint-clean, build+deploy verified):
- vector-store: fix misleading "no embedding" comment in search; count and
  warn on unembedded chunks (was silently scored 0); cache per-chunk vector
  norms to avoid recomputing cosine norms across queries; expose
  unembeddedChunkCount in stats.
- planner: add structured `expectsWriteProposal` signal so the forced
  write-proposal retry no longer depends on English prompt-string matching.
- chat.service: remove unreachable agent-mode branch (streamResponse only runs
  in chat mode) and the now-unused toolRegistry dependency; sync call sites.
- remove dead code: ChatState (superseded by ChatViewState) and
  AgentMemoryManager (superseded by agent-memory-service).
- docs: ADR-001 documenting the two-layer safety model (write-proposal gate vs
  policy budget) and why the vendored engine is intentionally permissive.
- tests: adverse-condition agent reliability (circuit breaker / maxSteps /
  abort / failure recovery), real builtin-tools E2E against an in-memory vault,
  and a live agent E2E (real model + real tools) that auto-skips without a key.

Also bundles pre-existing uncommitted WIP not authored in this session (per
explicit request to commit everything): LLM providers, web-search-service,
document-grader, rag-manager, rag-tab, and their tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 09:31:15 +08:00
..
config feat: frist version 2025-11-12 23:58:48 +08:00
utils fix: replace deprecated packages and remove unused dependencies 2026-05-18 13:08:15 +08:00
build.js feat: evolve into a full Obsidian Agentic Agent 2026-06-01 01:47:55 +08:00
clean.js feat: frist version 2025-11-12 23:58:48 +08:00
deploy.js perf: load locale files dynamically to reduce bundle size below 5 MB 2026-05-21 21:56:38 +08:00
dev.js feat: token usage tracking, conversation list fixes, and provider streaming improvements 2026-05-19 16:16:18 +08:00
hot-reload.js feat: frist version 2025-11-12 23:58:48 +08:00
version.js fix: agent reliability fixes + verification harness (bundles in-progress WIP) 2026-06-04 09:31:15 +08:00