Commit Graph

251 Commits

Author SHA1 Message Date
newbie b7f763460b feat(mnemon): expose read-only Mnemon routes and order memory list by creation
Routes under /dsh-brain/mnemon/* call the host's registered mnemonRemote
service (the same /dsh-mnemon-read handler) instead of going through HTTP with
a browser cookie. Read-only: list / status / search / runtime / documents.
Answers 503 when Mnemon is absent, 502 on source errors.

Also lets /local-memory/memories take order=created|updated (default created,
newest first) and return createdAt, sorting the full set before paging.
2026-11-28 11:10:11 +08:00
newbie f409db279f chore(release): 0.10.4 2026-11-27 18:06:15 +08:00
newbie b411474e5c docs(plans): record how local memory is partitioned and shared
Describes the four layers (global, project, workspace key, department-private)
and which sessions read the same store, as the baseline for local sync.
2026-11-27 18:05:56 +08:00
newbie c7907735c3 fix(ui): settle overview requests independently and fix three layout faults
- Overview: Promise.allSettled per endpoint, so one failing auxiliary call no
  longer blanks the whole page or hides the version.
- MemoryTab: distinguish 'no memories yet' from 'no match on this page'.
- RawTab: auto-fit grid so the two columns collapse on a narrow panel.
- Pills: clip long values instead of overflowing the rounded box.
2026-11-27 18:05:55 +08:00
newbie 31037b0d31 chore(release): 0.10.3
Bumps the manifest, version fallback and README, and rebuilds lib/ and
client/ so the committed artifacts match the sources.
2026-11-27 17:16:44 +08:00
newbie da562de002 fix(ui): show recorded turns and last-check result in the Brain overview
The overview read reporter.reportedTurns (no such field; the snapshot calls it
recorded) and status.lastCheck.status (lastCheck only has at/checks), so both
readouts were always empty.
2026-11-27 17:16:09 +08:00
newbie 129571d96e refactor: drop dead defensive code and duplicate response checks
Removes branches proven unreachable (double URL parse, re-checks of values
the response validators already enforce, unreachable null guards), collapses
redundant request-method/origin/content-type gates onto jsonBody, and makes
the validated response fields required so downstream \?? []\ fallbacks
cannot come back.
2026-11-27 17:16:09 +08:00
newbie b889897dae feat(raw): add optional original-record layer as the sixth sub-plugin
Captures real user/assistant messages into per-session JSONL files under
\/brain/raw, separate from Mnemon's store. Adds memory_raw_search /
memory_raw_read / memory_raw_status, the Brain panel raw tab, the
dsh-brain-raw row in the bundle patch, and verify-raw-entry/verify-raw-memory.
2026-11-27 17:16:09 +08:00
newbie 7a4ad249fc Release dsh-brain 0.10.2 2026-11-26 19:13:58 +08:00
newbie 53e4423656 Fix Brain panel rendering and keep Mnemon sidebar 2026-11-26 17:48:25 +08:00
newbie 7d306e77ad fix(ui): separate global, project, and settings surfaces 2026-11-26 16:53:07 +08:00
newbie 81074c99f4 fix(ui): scope memory views and diagnostics by workspace 2026-11-25 16:02:58 +08:00
newbie 71dc1b574c docs(plans): fix escaping in css-id repair snippet 2026-11-25 15:50:05 +08:00
newbie e7367d7766 docs(plans): UI batch fix sheet — workspace passthrough, relative css ids, log routing/truncation 2026-11-25 15:49:17 +08:00
newbie c8101a3e54 feat(ui): show diagnostics log state in the Brain overview 2026-11-25 15:17:49 +08:00
newbie d68840202e refactor(ui)!: rename settings-ui bundle to dsh-brain-ui with export alias 2026-11-25 12:37:37 +08:00
newbie bdea045635 feat(diagnostics): JSONL debug logs under .dsh/brain/logs with redaction and rotation 2026-11-25 12:28:53 +08:00
newbie 3d7b59b4c9 feat(ui): project-memory tab for better-sidebar with graceful fallback 2026-11-25 10:45:08 +08:00
newbie 0b655385af feat(ui): memory and department tabs in the Brain panel 2026-11-25 10:41:24 +08:00
newbie 891b19f809 feat(ui): left-rail Brain panel with overview and connection tabs 2026-11-25 10:29:42 +08:00
newbie dfe31ac3f8 build(client): migrate hand-written bundle to tsdown with equivalent output 2026-11-25 09:09:15 +08:00
newbie 3703a4458c docs(plans): UI handoff brief for a fresh DeepSeek session 2026-11-24 23:39:12 +08:00
newbie af42877991 docs(plans): U5 diagnostics logging spec — .dsh/brain/logs JSONL, upgrade deferred to UI batch 2026-11-24 23:37:38 +08:00
newbie 8f5ee01b7a docs(plans): standalone re-verification sheet for GPT (baseline 45f1ca9) 2026-11-24 23:34:39 +08:00
newbie 9fe5e495b3 docs(plans): detailed UI implementation spec U0-U4 with code skeletons and API contracts 2026-11-24 23:33:21 +08:00
newbie 5fef328115 docs(plans): UI task cards U0-U4 — option B, full rename to dsh-brain-ui 2026-11-24 23:31:44 +08:00
newbie 89e67d05be docs(plans): record fix delivery and re-verification baseline 45f1ca9 2026-11-24 23:24:29 +08:00
newbie 45f1ca9648 fix(departments): count ellipsis inside the 600-char recall budget 2026-11-24 23:14:31 +08:00
newbie 22b2497e61 fix(departments): bind caller workspace around every department operation 2026-11-24 23:13:01 +08:00
newbie cae5c08a80 fix(skill-sync): bind conflict resolution to the confirmed preview snapshot 2026-11-24 22:50:32 +08:00
newbie 467aea49be docs(plans): attribute stray skill-sync diff to DeepSeek round-5/6 in-flight work 2026-11-24 21:52:45 +08:00
newbie 53ff5701a7 docs(plans): adjudicate C7/C8 criteria and add re-verification scope 2026-11-24 21:35:08 +08:00
newbie a11864ff36 docs(plans): fix sheet for acceptance FAILs C7/C8 — workspace binding and snippet budget 2026-11-24 21:26:43 +08:00
newbie 50b90eae8a docs(plans): assess reusing Mnemon panel — borrow mount layer, keep own data face 2026-11-24 21:25:39 +08:00
newbie 4dbc09086e docs(plans): UI bundle plan — left-rail main panel + better-sidebar project memory tab 2026-11-24 21:08:53 +08:00
newbie accc1c3800 test(departments): wiring verification for tools and routes 2026-11-24 21:00:57 +08:00
newbie 8161fae848 feat(departments): register department tools in the memory entry 2026-11-24 21:00:46 +08:00
newbie 736adb4903 feat(departments): six department_* agent tools 2026-11-24 21:00:35 +08:00
newbie a835074f5c feat(departments): management routes under the settings-ui bundle 2026-11-24 21:00:24 +08:00
newbie cde027d330 feat(departments): construct DepartmentManager in the shared kernel 2026-11-24 20:56:21 +08:00
newbie 1004511d25 docs(plans): department D1/D2 task cards, handoff, acceptance; repo cleanup plan; correct verify baseline to 21 checks 2026-11-24 20:50:51 +08:00
newbie 1dfc7c7380 feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
newbie 3ef7ffef6f feat(subplugins): split the plugin into five toggleable sub-plugin entries sharing one kernel
- cordis.patch.yml now inserts five rows (dsh-brain-cloudsync / -memory /
  -skills / -mcp / -settings-ui), each resolving to a package subpath
  export; the host Settings -> Plugins page toggles them per row id.
- src/kernel.ts: process-level singleton holding every service object;
  entries only register their own routes/tools/timers through ctx.effect,
  so disabling one row tears down exactly its slice. Settings persist in
  C:\Users\qyh15\.dsh/dsh-brain.json, so any row may seed the kernel.
- routes.ts: mcp flag gates the capability fragment; status payload and
  core routes (status/capabilities/config/migrate) are exported for the
  settings-ui entry; legacyAliases() lets each entry alias its own slice.
- src/entries/{cloudsync,memory,skills,mcp,settings-ui}.ts: per-bundle
  appliers. src/index.ts becomes the compat root that applies all five
  for older single-row profiles; /status reports which siblings are on.
- package.json: exports + ./cloudsync ./memory ./skills ./mcp
  ./settings-ui (lib/entries/*), version 0.9.11.
- verify-plugin-entry.mjs: per-entry route/tool slice checks plus
  active-bundle gating and the compat root.
2026-11-23 21:08:51 +08:00
newbie 55a0e09df8 feat(skill-sync): port 0.9.9/0.9.10 auto-resolve and batch resolve onto the bundle seams
Re-implements the upstream features lost during the six-bundle rebase,
on top of the refactored SkillRepository/SkillSync seams:

- SkillRepositoryFile carries mtimeMs; walkSkillFiles collects it.
- DOWN pass: local drift and name collisions auto-resolve by content
  and modification time (identical bytes adopt the cloud identity; a
  clearly newer side wins, the losing local copy is backed up under
  C:\Users\qyh15\.dsh/.dsh-brain-backups/sync/); equal or missing timestamps
  stay human conflicts.
- UP pass: identical cloud bytes re-pin or adopt the revision without
  an upload; revision drift picks the newer side; a conflict flagged
  in the DOWN pass is not double-reported.
- resolveConflicts(action) resolves every current conflict with one
  keep_local/take_cloud action, collecting per-item failures.
- POST /dsh-brain/sync/resolve-all serves the batch over the routes
  bundle; verify-sync-resolve.mjs wires the second scenario through
  the repository seam like the first (SkillSync now requires it).
2026-11-23 20:48:42 +08:00
newbie dd5d58659e refactor(settings-ui): extract the settings-ui bundle behind its own routes and page 2026-11-23 20:26:44 +08:00
newbie 9f5daaf266 feat(config): split the master switch into activity/memory gates with legacy inheritance 2026-11-23 20:26:44 +08:00
newbie cb7bc0c19b refactor(routes): extract bundle route modules behind the root aggregator 2026-11-23 20:26:43 +08:00
newbie 19eb15b231 refactor(skills): split the skill/cloud-sync seam behind SkillRepository and SkillSyncGate
The skill bundle now owns the directory format helpers (skills/shared.ts), the local skill file store (skills/repository.ts) and publishes the SkillRepository/SkillSyncGate contracts; the sync engine keeps the cloud protocol, sidecar state and conflict policy, touching the disk only through the repository. Format helpers stay re-exported from skill-sync.ts so existing import sites keep working.
2026-11-23 20:25:54 +08:00
newbie e1035358ab refactor(memory): extract the memory bundle behind MemoryRemoteFactory 2026-11-23 20:21:44 +08:00
newbie 0412095635 refactor(mcp): extract the MCP bundle boundary (host seam + client banner) 2026-11-23 20:21:44 +08:00