Router that virtually distributes inference across connected devices in the home.
Go
name: sync-backend description: >- Refresh services/ from upstream, resolve JSON-RPC drift, update contract docs, rebuild cli-bin, and verify. Use when the backend changed or the user asks to sync dhc-modular / services. disable-model-invocation: true
Sync services (backend)
In this monorepo the backend is the sibling services/ tree (authoritative
checked-in source). Never invent a dhc-modular/ checkout inside desktop/.
Follow .cursor/rules/service-contracts.mdc and
desktop/docs/services-backend.md.
Workflow
Change
services/in place. It is the authoritative checked-in source, so there is no upstream import step.From
desktop/:npm run service-contractsReview:
- component version changes;
- added or removed binaries;
- missing notification consumers;
- backend requests the bridge does not call.
For each changed component, read its
README.md/spec.mdand the Go implementation. Go source is the contract.Resolve drift in the bridge and docs, then rebuild:
npm run build:modular-binaries -- --force npm run service-contracts:write npm run typecheck npm run test:unitVerify:
npm run service-contracts:checkCommit
services/changes together with desktop integration edits.