Skip to content

Router that virtually distributes inference across connected devices in the home.

Go
1.5 KB
Raw Blame

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

  1. Change services/ in place. It is the authoritative checked-in source, so there is no upstream import step.

  2. From desktop/:

    npm run service-contracts
    
  3. Review:

    • component version changes;
    • added or removed binaries;
    • missing notification consumers;
    • backend requests the bridge does not call.
  4. For each changed component, read its README.md / spec.md and the Go implementation. Go source is the contract.

  5. 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:unit
    
  6. Verify:

    npm run service-contracts:check
    
  7. Commit services/ changes together with desktop integration edits.