refactor: apply repository naming contract

Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
This commit is contained in:
Tianyi Cui
2026-08-13 00:36:22 +08:00
parent 101df7cf58
commit a2d0f7f411
3281 changed files with 21730 additions and 21592 deletions

View File

@@ -16,7 +16,7 @@ export const inject = ['invariants']
/**
* No runtime invariant: a zero-dependency pure registry core — it emits no
* cordis events itself (the runtime SlotsService wrapper owns the event
* cordis events itself (the runtime SlotRegistry wrapper owns the event
* bridge and its invariants); define/register/dispose sequencing is asserted
* directly by this package's behavior specs.
*/

View File

@@ -9,7 +9,7 @@ import type { SlotEntryDef, SlotSpec, StoredEntry, Translate } from './index.ts'
* active-locale or registry change; the renderer re-derives each entry's `t`
* from (namespace, revision), so a locale switch hands out NEW function
* references and memoized components re-render naturally. Implemented by the
* locale plugin, installed through the runtime SlotsService (installLocale).
* locale plugin, installed through the runtime SlotRegistry (installLocale).
* Install before the first render that needs the seat: outlets bind their
* revision subscription at mount, and a face appearing later has no channel
* to notify already-mounted outlets (the locale plugin is immediately-tier
@@ -97,7 +97,7 @@ export interface RenderOpts {
hookContext?: unknown
}
/** Host API the runtime SlotsService presents to the installed renderer. */
/** Host API the runtime SlotRegistry presents to the installed renderer. */
export interface SlotRendererHost {
/**
* Subscribe to a key's registration changes (microtask-batched).

View File

@@ -1,12 +1,12 @@
import { describe, expect, it } from 'vitest'
import { Context } from '@deepseek-ai/cordis'
import * as SlotsInvariant from '@deepseek-ai/dsh-client-ui-slots/invariant'
import InvariantService from '@deepseek-ai/dsh-invariants'
import InvariantRegistry from '@deepseek-ai/dsh-invariants'
describe('invariant companion', () => {
it('registers under the package name with an empty installer', async () => {
const ctx = new Context()
await ctx.plugin(InvariantService, { enabled: true })
await ctx.plugin(InvariantRegistry, { enabled: true })
await expect(ctx.plugin(SlotsInvariant).await()).resolves.toBeDefined()
})
})

View File

@@ -9,7 +9,7 @@
],
"references": [
{
"path": "../../support/invariants"
"path": "../../runtime-diagnostics/invariants"
}
]
}