# The @ds-hu/dsh-better-workspaces bundle patch: one row, applied when a profile lists
# this package in its `dsh.profile.bundles`.
#
# `dsh plugin --profile <name> add` maintains that list automatically (the
# reconcile step in the dsh CLI appends every dependency declaring
# `dsh.bundle`), so this file is the only wiring an installation needs — users
# never hand-edit their profile's cordis.patch.yml for this plugin.
#
# Two parity rules keep the mount honest, both guarded by
# `test/mount-check.mjs`:
#   - `name` must be this package's name, so the Loader resolves the row (and
#     therefore the code it mounts) from the profile's node_modules;
#   - `id` must equal the `name` the host half exports (`lib/index.js`), so the
#     row and the plugin are recognizably the same thing.
#
# Upgraders from the pre-bundle install must delete the hand-written copy of
# this row from their profile patch layer: the include inserts rows verbatim
# and the Loader rejects a repeated entry id (`duplicate loader entry id`), so
# two sources for the same row are a boot failure, not a harmless duplicate.
#
# The plugin publishes no services, so it sits loose in the host root realm.

- insert:
    - id: better-workspaces
      name: '@ds-hu/dsh-better-workspaces'
