dsh-brain/cordis.patch.yml

138 lines
5.6 KiB
YAML

# dsh-brain bundle patch. The original six entries share the Brain kernel.
# The Mnemon backend has its own Loader entry and contribution graph.
#
# Toggling: the host Settings → Plugins page (and dshmarket) write
# `- id: <row> / disabled: true` lines into the profile patch, keyed by row
# id. Settings themselves persist in $DSH_HOME/dsh-brain.json; the seed
# config below only matters on first boot, so the rows stay safe to toggle
# in any order.
#
# Do NOT copy this insert block into the profile's cordis.patch.yml —
# duplicating entry ids breaks the Settings page. Keep overrides as
# top-level `- id: <row>` rows only.
#
# The compat root export (`.`) stays for older single-row profiles: it
# applies all six entries at once.
- insert:
- id: dsh-brain-cloudsync
name: dsh-brain/cloudsync
config:
enabled: false
baseUrl: https://your-memory-host/api/longmemory
clientId: dsh-desktop
skillsSyncEnabled: true
- id: dsh-brain-memory
name: dsh-brain/memory
- id: dsh-brain-raw
name: dsh-brain/raw
config:
rawEnabled: true
rawCaptureAssistant: true
rawRetentionDays: 90
- id: dsh-brain-skills
name: dsh-brain/skills
- id: dsh-brain-mcp
name: dsh-brain/mcp
- id: dsh-brain-ui
# DSH discovers browser bundles from bare package names.
name: dsh-brain
config:
entry: ui
# Mount the tracked fork and its components through this package's host exports.
- id: dsh-brain-mnemon-bundle
name: cordis:group
group: true
disabled: !!js >-
(() => {
let bundle = ctx[Symbol.for('cordis.entry')];
while (bundle && !/(?:^|-)mnemon-bundle$/.test(bundle.options.id)) {
bundle = bundle.parent?.ctx.fiber.entry;
}
if (!bundle?.subgroup) return false;
const coreId = bundle.options.id.replace(/-bundle$/, '');
const core = [...loader.entries()].find(entry =>
entry.parent === bundle.subgroup && entry.options.id === coreId);
const disabled = core?.options.disabled;
return disabled?.__jsExpr
? Boolean(core.evaluate(disabled.__jsExpr))
: Boolean(disabled);
})()
config:
- id: dsh-brain-mnemon
# Core/Host and default settings. Sources own their independent Entries.
name: dsh-brain/mnemon
config:
routingGuidance: true
lifecycleEnabled: true
recallMode: guided
writebackMode: guided
idleReviewMs: 30000
storageScope: workspaces
tabEnabled: true
writeEnabled: true
remoteAccess: disabled
timeoutMs: 10000
defaultRecallLimit: 10
embedding:
enabled: false
endpoint: http://localhost:11434
model: nomic-embed-text
recallQuality:
policy: strict-v1
lowScoreThreshold: 0.25
highScoreThreshold: 0.6
candidateMultiplier: 3
maxMediumResults: 4
maxRankedResults: 4
maxUnknownResults: 2
- id: dsh-brain-mnemon-source-runtime
name: dsh-brain/mnemon/source-runtime
- id: dsh-brain-mnemon-source-documents
name: dsh-brain/mnemon/source-documents
- id: dsh-brain-mnemon-source-memory-spaces
name: dsh-brain/mnemon/source-memory-spaces
config:
# Every default Provider is an
# explicit child. A custom parent composition may choose a subset.
providers:
- use: dsh-brain/mnemon/provider-mnemon-native
instanceId: mnemon-native
- use: dsh-brain/mnemon/provider-openviking
instanceId: openviking
- use: dsh-brain/mnemon/provider-honcho
instanceId: honcho
- use: dsh-brain/mnemon/provider-mem0
instanceId: mem0
- use: dsh-brain/mnemon/provider-hindsight
instanceId: hindsight
- use: dsh-brain/mnemon/provider-holographic
instanceId: holographic
- use: dsh-brain/mnemon/provider-retaindb
instanceId: retaindb
- use: dsh-brain/mnemon/provider-byterover
instanceId: byterover
- use: dsh-brain/mnemon/provider-supermemory
instanceId: supermemory
# Skills keep DSH's own files and their evolution data; the page lives
# in the Memory System and nothing joins a model View.
- id: dsh-brain-mnemon-source-skills
name: dsh-brain/mnemon/source-skills
- id: dsh-brain-mnemon-strategy-default-three-tier
name: dsh-brain/mnemon/strategy-default-three-tier
# A second main Strategy; memoryView.strategyTypeId selects which one
# composes the View. It stays off until selected.
- id: dsh-brain-mnemon-strategy-general
name: dsh-brain/mnemon/strategy-general
disabled: true
# v0.5 ships these narrowly scoped enhancements with the Starter so the
# Settings switches are always available. They remain opt-in.
- id: dsh-brain-mnemon-strategy-auto-capture
name: dsh-brain/mnemon/strategy-auto-capture
disabled: true
- id: dsh-brain-mnemon-strategy-light-context
name: dsh-brain/mnemon/strategy-light-context
disabled: true
- id: dsh-brain-mnemon-strategy-scoped
name: dsh-brain/mnemon/strategy-scoped
disabled: true