- Rename dsh-better-sidebar → dsh-apes-sidebar across 74 files (262 occurrences)
- Bump version 0.18.0 → 1.0.0 (package.json + dsh.plugin.json + SIDEBAR_SERVICE_VERSION)
- Add forkedFrom metadata to package.json (upstream pin: commit 9e1a034)
- Add fork notice banner to README.md (MIT attribution preserved)
- Keep original MIT copyright (c) 2026 dsh-external
- Full gate green: typecheck + build (6 bundles) + test (1241 passed / 9 skipped)
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
/**
|
|
* Package-owned invariant companion for `dsh-apes-sidebar`.
|
|
* @module dsh-apes-sidebar/invariant
|
|
*/
|
|
|
|
/* jscpd:ignore-start */
|
|
import type { Context } from './context-types.ts'
|
|
|
|
const PACKAGE_NAME = 'dsh-apes-sidebar'
|
|
|
|
/** Cordis companion plugin name. */
|
|
export const name = 'dsh-apes-sidebar-invariant'
|
|
/** Service required before the companion can reserve package ownership. */
|
|
export const inject = ['invariants']
|
|
|
|
/**
|
|
* No runtime invariant: the sidebar owns no service state or event protocol
|
|
* of its own — every route is mounted under the host's webServer fence, the
|
|
* pty lifecycle is exercised by the smoke spec, and the panel's store is a
|
|
* plain snapshot registry asserted by the behavior specs. The route fence,
|
|
* pty quota, and store semantics are each observed through their seams.
|
|
*/
|
|
const install: () => void = () => {}
|
|
|
|
/**
|
|
* Register this package's invariant companion.
|
|
* @param ctx - Cordis context carrying the invariant service.
|
|
* @returns the installed registration's disposer after setup succeeds.
|
|
*/
|
|
export const apply = (ctx: Context): Promise<() => void> =>
|
|
Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install))
|
|
/* jscpd:ignore-end */
|