@deepseek-ai/dsh-client-test-runtime 0.2.2-rc.5 → 0.2.3-alpha.1

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.
@@ -0,0 +1,12 @@
1
+ /** Synced Config objects for specs that mount a Client plugin face directly instead of through the page entry controller. */
2
+ import type { SyncedConfig, SyncedConfigValues } from '@deepseek-ai/dsh-client-config/types'
3
+ import { SyncedConfigEntry } from '@deepseek-ai/dsh-client-modules/src/client/synced-config.ts'
4
+
5
+ /**
6
+ * Build the object a plugin activation receives as its `apply` config, holding fixed values.
7
+ * @param values - JSON values of the plugin's top-level volatile fields.
8
+ * @returns the activation's read-only Config object.
9
+ */
10
+ export function syncedConfig<C>(values: SyncedConfigValues): SyncedConfig<C> {
11
+ return new SyncedConfigEntry(values).activate() as SyncedConfig<C>
12
+ }