@huanlin/dsh-plugin-input-history 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@huanlin/dsh-plugin-input-history`.
3
- *
4
- * @module @huanlin/dsh-plugin-input-history/invariant
5
- */
6
- const PACKAGE_NAME = '@huanlin/dsh-plugin-input-history';
7
- /** Cordis companion plugin name. */
8
- export const name = 'dsh-plugin-input-history-invariant';
9
- /** Service required before the companion can reserve package ownership. */
10
- export const inject = ['invariants'];
11
- /**
12
- * No runtime invariant: the single `conversation.composer.dock` slot
13
- * registration is a registry-owned contribution whose disposal is proven
14
- * by the HMR-safety spec. The plugin's only mutable state is the
15
- * localStorage-backed history array, whose lifecycle is bounded by the
16
- * browser profile (not the cordis fiber) and whose write path is
17
- * last-writer-wins with try/catch containment.
18
- */
19
- const install = () => { };
20
- /**
21
- * Register this package's invariant companion.
22
- * @param ctx - Cordis context carrying the invariant service.
23
- * @returns the installed registration's disposer after setup succeeds.
24
- */
25
- export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
26
- /* jscpd:ignore-end */