Commit Graph

88 Commits

Author SHA1 Message Date
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 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 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
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
newbie 89af1f4c7c fix: keep skill source state mutually exclusive 2026-11-12 19:04:40 +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 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
QQ 1fab2196a1 更新 lib/index.js 2026-11-12 00:55:01 +08:00
QQ 9c4872f12a 更新 lib/store.js 2026-11-12 00:01:58 +08:00
QQ 6806a5bcf2 更新 lib/skill-update.js 2026-11-12 00:01:54 +08:00
QQ 5b9f1d7ec7 更新 lib/skill-sync.js 2026-11-12 00:01:49 +08:00
QQ c4ccffee65 更新 lib/skill-page.js 2026-11-12 00:01:47 +08:00
QQ adab017a17 更新 lib/skill-groups.js 2026-11-12 00:01:42 +08:00
QQ 2f4405834f 更新 lib/skill-admin.js 2026-11-12 00:01:38 +08:00
QQ 8dd2bad4f3 更新 lib/routes.js 2026-11-12 00:01:34 +08:00
QQ 95c9187e5b 更新 lib/page.js 2026-11-12 00:01:29 +08:00
QQ 11791c8f4d 更新 lib/mnemon/index.js 2026-11-12 00:01:25 +08:00
QQ b872e99cc9 更新 lib/market.js 2026-11-12 00:01:21 +08:00
QQ e0aa005e58 更新 lib/index.js 2026-11-12 00:01:17 +08:00
QQ 498e617494 更新 lib/config.js 2026-11-12 00:01:14 +08:00
QQ 50d90f30e6 更新 lib/clients.js 2026-11-12 00:01:10 +08:00
QQ 899022f7ab 更新 lib/brain-migration.js 2026-11-12 00:01:07 +08:00
QQ 1b9ae1bf91 更新 lib/api.js 2026-11-12 00:01:04 +08:00
QQ 3a9dc56ebc 更新 lib/mnemon/index.js 2026-11-11 23:29:01 +08:00
QQ 0438ac1a62 更新 lib/index.js 2026-11-11 23:28:57 +08:00
QQ 981e9a1451 更新 lib/tools.js 2026-11-11 23:14:46 +08:00
QQ 14f53ca248 更新 lib/store.js 2026-11-11 23:14:41 +08:00
QQ cc1912ab92 更新 lib/skill-sync.js 2026-11-11 23:14:37 +08:00