5 Commits

Author SHA1 Message Date
Bryan Nathan
8ee9d1be36 fix: recognize unspaced CJK memory sentence boundaries
Preserve the ASCII whitespace requirement while allowing CJK sentence terminators to end memory chunks without intervening spaces. Add regressions for punctuation, supported closing quotes, default chunk sizes and decimal compatibility.

Fixes #2130
2026-10-29 06:57:52 +08:00
Bingxi Zhao (Frank)
308d99b167 style(memory): apply repository line length to rebased contribution 2026-10-29 01:38:15 +08:00
Eapp1e
e1c05b8527 fix(memory): size chunk windows by the stride that overlap leaves
Formatting pass with ruff 0.16.0 so the lint job stops asking for a reformat;
no behaviour change: tests/services/memory/test_chunker.py still passes 15/15.

Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
2026-10-28 17:06:31 +00:00
Bingxi Zhao (Frank)
6153d8c092 release: v1.4.0 — release notes, version bump, repo hygiene
- Add assets/releases/ver1-4-0.md covering deltas since v1.4.0-beta
  (reasoning_effort normalization, tool-schema fallback, restart-safe
  turn runtime, frontend placeholder hardening, CLI chat REPL config).
- Bump deeptutor/__version__ to 1.4.0.
- Update README Releases section: v1.4.0 at top, install opt-in note
  updated for stable.
- Fix pre-existing pre-commit failures so the v1.4.0 cut runs clean:
  bandit B324 (mark _sha1 as non-security), mypy no-redef in
  document.py / line_doc.py, mypy arg-type/assignment in
  snapshot/adapters.py, mypy assignment + arg-type in
  services/memory/settings.py, mypy func-returns-value on
  set.add idiom in deeptutor_cli/init_wizard.py.
- Apply ruff format / prettier sweep across the repo.
- Remove stale workspace + i18n env example + playwright captures
  already cleaned locally; ignore .playwright-cli/ going forward.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 21:09:22 +08:00
Bingxi Zhao (Frank)
2b7242081f feat(memory): three-layer memory subsystem (L1/L2/L3) with workbench
Replaces the flat single-blob memory page with a structured store:
- L1 captures raw run traces; L2 holds normalized document records;
  L3 holds curated slots per surface (chat, notebook, book, TutorBot).
- New consolidator pipeline (chunker, guards, parse, references, runs,
  modes, line-doc, meta) turns traces into versioned line-oriented
  documents with stable ids and snapshot history.
- Per-user isolation flows through PathService; the store API is
  stateless.

UI ships a dedicated /memory workbench with graph / L1 / L2 / L3 /
resolve subpages, plus a reusable MemorySection embedded where the
legacy panel lived.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 18:02:32 +08:00