dsh-context-compression-improved 0.5.4 → 0.6.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.
- package/README.md +10 -1
- package/package.json +162 -140
- package/packages/selector/README.md +6 -1
- package/packages/selector/README.zh.md +6 -1
- package/packages/selector/dsh.plugin.json +1 -1
- package/packages/selector/lib/advisor-state.js +1 -1
- package/packages/selector/lib/client.d.ts +19 -104
- package/packages/selector/lib/client.js +42 -5
- package/packages/selector/lib/index.d.ts +9 -0
- package/packages/selector/lib/index.js +18 -50
- package/packages/selector/lib/profiles.d.ts +105 -0
- package/packages/selector/lib/pruner.js +3 -2
- package/packages/selector/package.json +114 -114
- package/packages/selector/src/client/index.ts +71 -8
- package/packages/selector/src/index.ts +35 -86
- package/packages/selector/src/pruner.ts +12 -3
- package/packages/selector/src/runtime/config.ts +1 -1
- package/packages/selector/tests/code-skeleton.client.spec.ts +93 -90
- package/packages/selector/tests/custom-contract.client.spec.ts +19 -1
- package/packages/selector/tests/helpers/legacy-namespace.ts +31 -0
- package/packages/selector/tests/host-preset-overlay.host.spec.ts +206 -206
- package/packages/selector/tests/preset-options-write.client.spec.ts +63 -82
- package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +206 -201
- package/packages/selector/tests/public/package-contract.client.spec.ts +2 -2
- package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +3 -2
- package/packages/selector/tests/runtime/public/public-runtime.spec.ts +20 -17
- package/packages/selector/tests/settings-seat.client.spec.ts +2 -2
- package/packages/selector/tests/standing-generation.host.spec.ts +704 -697
|
@@ -41,7 +41,7 @@ function collectRegistrations(
|
|
|
41
41
|
const registrations: CapturedRegistration[] = []
|
|
42
42
|
const ctx = {
|
|
43
43
|
locale: { register: vi.fn(() => () => {}), bind: () => (key: string) => key },
|
|
44
|
-
|
|
44
|
+
configForms: { get: vi.fn(() => ({}) as never) },
|
|
45
45
|
slots: {
|
|
46
46
|
inject: (slot: string, factory: () => (() => void) | Generator<() => void>) => {
|
|
47
47
|
declared.push(slot)
|
|
@@ -65,7 +65,7 @@ function collectRegistrations(
|
|
|
65
65
|
|
|
66
66
|
describe('settings-seat contract (standalone settings.section only)', () => {
|
|
67
67
|
it('declares the services apply consumes (cordis waits; no lazy-get race)', () => {
|
|
68
|
-
expect(inject).toEqual(['slots', 'locale', '
|
|
68
|
+
expect(inject).toEqual(['slots', 'locale', 'configForms'])
|
|
69
69
|
})
|
|
70
70
|
|
|
71
71
|
it('injects exactly the settings.section seat and nothing else', () => {
|