Commit Graph

211 Commits

Author SHA1 Message Date
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
newbie 8e5145349d Revert "docs(readme): 重写为清爽入口页,详情迁移到 docs/(0.9.10)"
This reverts commit 6d868abb28.
2026-11-19 10:06:25 +08:00
newbie 6d868abb28 docs(readme): 重写为清爽入口页,详情迁移到 docs/(0.9.10) 2026-11-19 09:52:17 +08:00
QQ 7d053b2fe9 Merge pull request 'feat(skills): 同步冲突支持批量处理(0.9.10)' (#3) from feat/sync-batch-resolve into main 2026-11-14 16:05:20 +08:00
newbie d2bd955aa9 feat(skills): batch resolve all sync conflicts (0.9.10)
Adds POST /dsh-brain/sync/resolve-all {action: keep_local|take_cloud} and 全部保留本地 / 全部采用云端 buttons with an inline confirmation step. Partial failures are reported per item (resolved / failed lists) instead of aborting the batch; per-item resolution stays available.
2026-11-14 16:05:09 +08:00
QQ 4123d9de9e Merge pull request 'feat(skills): 同步冲突按内容与时间自动取较新(0.9.9)' (#2) from feat/skill-sync-auto-newer into main 2026-11-14 14:24:57 +08:00
newbie dbf39339c2 feat(skills): auto-resolve sync conflicts by content and newer timestamp (0.9.9)
Same-name skills no longer always stop for a human: identical bytes adopt the delivery marker in place, differing bytes compare local file mtime with the center updated_at and the newer side wins (cloud overwrite backs the local folder up first). Equal or missing timestamps, unsupported upload layouts and script-review flags still surface as per-item conflicts, so there is no batch action.
2026-11-14 14:24:36 +08:00
newbie 881f822c69 refactor(mcp): skeleton connection rows with details toggle, collapse the two heavy sections (0.9.8) 2026-11-13 11:50:17 +08:00
newbie d9339a9094 feat(skills,mcp): searchable import panel with batch import; compact MCP toolbar with contextual batch actions (0.9.7) 2026-11-13 11:33:27 +08:00
newbie f64d96f5e4 feat(mcp): drop the embedded MCP marketplace panel (host catalog answers 405) (0.9.6) 2026-11-13 11:17:38 +08:00
newbie 4579dad251 feat(mcp): searchable connection list with filters, select-all and batch actions (0.9.5) 2026-11-13 11:11:20 +08:00
newbie ac1e415208 feat(skills): category picker with live search, select-all-matched, select-all and clear (0.9.4) 2026-11-13 10:36:38 +08:00
newbie 3d23769899 feat(skills): add search filter and select-all in category + assignment picker (0.9.3) 2026-11-13 10:02:54 +08:00
newbie 03e78d95d8 fix(skills): render category + assign picker inline & collapse import section into button (0.9.2) 2026-11-13 09:45:08 +08:00
QQ 0de6552059 Merge pull request 'fix: 技能来源状态互斥并自愈旧双状态' (#1) from fix/skill-sync-source-state into main 2026-11-12 21:03:29 +08:00
newbie 89af1f4c7c fix: keep skill source state mutually exclusive 2026-11-12 19:04:40 +08:00
QQ e12b28cfd2 更新 verify-upgrade.mjs 2026-11-12 09:24:18 +08:00
QQ 4dcdeca5f1 更新 verify-theme.mjs 2026-11-12 09:24:14 +08:00
QQ e1e9cb94cd 更新 verify-skill-import.mjs 2026-11-12 09:24:11 +08:00
QQ 476892f0e8 更新 verify-full-load.mjs 2026-11-12 09:24:08 +08:00
QQ ff32e3772d 更新 verify-clients.mjs 2026-11-12 09:24:04 +08:00
QQ eaa130c753 更新 verify-card-render.mjs 2026-11-12 09:24:00 +08:00
QQ 6f19240c38 更新 src/skill-groups.ts 2026-11-12 09:23:56 +08:00
QQ 61556800b8 更新 src/skill-admin.ts 2026-11-12 09:23:52 +08:00
QQ 3562dd00d9 更新 src/routes.ts 2026-11-12 09:23:48 +08:00
QQ 03590e7670 更新 src/mnemon/index.ts 2026-11-12 09:23:45 +08:00
QQ a97c66f86d 更新 src/index.ts 2026-11-12 09:23:41 +08:00
QQ c4da90d562 更新 package.json 2026-11-12 09:23:37 +08:00
QQ 3a0bc7d90b 更新 lib/skill-groups.js 2026-11-12 09:23:34 +08:00
QQ 887b84bc6e 更新 lib/skill-admin.js 2026-11-12 09:23:30 +08:00
QQ 9d970b4fc0 更新 lib/routes.js 2026-11-12 09:23:25 +08:00
QQ 8d6ec26f62 更新 lib/mnemon/index.js 2026-11-12 09:23:20 +08:00
QQ 1e333a12a9 更新 lib/index.js 2026-11-12 09:23:16 +08:00
QQ cd26c296a8 更新 client/index.js 2026-11-12 09:23:11 +08:00
QQ 19360aa6e8 更新 src/page.ts 2026-11-12 00:55:22 +08:00
QQ 12396d12e6 更新 src/mnemon/index.ts 2026-11-12 00:55:19 +08:00
QQ 0719d5de48 更新 src/index.ts 2026-11-12 00:55:16 +08:00
QQ 6329671b11 更新 preview-card.mjs 2026-11-12 00:55:13 +08:00
QQ d328425362 更新 package.json 2026-11-12 00:55:10 +08:00
QQ 5f4bdc510f 更新 lib/page.js 2026-11-12 00:55:07 +08:00
QQ 23f4e5a7ad 更新 lib/mnemon/index.js 2026-11-12 00:55:04 +08:00