Merge pull request #8504 from deepseek-harness/feat/client-config-live-update
feat(client): sync volatile plugin config to the browser
This commit is contained in:
1 parent
4c74abdbad
commit
bd1d6dcd0c
175 files changed
+3691
-779
No files matched your search
@@ -81,6 +81,7 @@ export const SERVICE_PAGE: Record<string, string> = {
|
||||
shell: 'shell.md',
|
||||
shellEnv: 'shell.md',
|
||||
clientModules: 'client-modules.md',
|
||||
config: 'client-modules.md',
|
||||
ptcRuntime: 'ptc-runtime.md',
|
||||
browserUse: 'browser-use.md',
|
||||
computerUse: 'computer-use.md',
|
||||
@@ -1067,6 +1068,7 @@ export const TYPE_LINK_EXEMPTIONS: Readonly<Record<string, string>> = {
|
||||
ConnectorAccountRegistration: 'Plugins page account registration is owned by packages/client/ui-connector-account/README.md',
|
||||
ConnectorAccountsView: 'registered account stream item is owned by packages/client/ui-connector-account/README.md',
|
||||
ConnectorOperationId: 'account operation id is owned by packages/client/ui-connector-account/README.md',
|
||||
SyncedConfig: 'packages/client/config/README.md',
|
||||
ActionCardDecision: 'packages/experimental/action-cards/README.md',
|
||||
ActionCardKind: 'packages/experimental/action-cards/README.md',
|
||||
ActionCardResult: 'packages/experimental/action-cards/README.md',
|
||||
|
||||
@@ -960,6 +960,15 @@ const SERVICE_ROLES: ServiceRole[] = [
|
||||
consumers: ['harness-dev-context'],
|
||||
note: 'The web-runtime row advertises one URL for its Web GUI: the configured publicUrl, otherwise the listener origin; DSH_WEB_URL, the startup URL, and harness-dev-context read the same value.',
|
||||
},
|
||||
{
|
||||
key: 'config',
|
||||
pkg: 'client-config',
|
||||
title: 'Browser synced configuration lookup',
|
||||
mode: 'service',
|
||||
implementations: ['client-modules'],
|
||||
consumers: [],
|
||||
note: 'Types-only declaration; the client-modules plugin face provides the read-only lookup of each package\'s current synced Config.',
|
||||
},
|
||||
{
|
||||
key: 'clientModules',
|
||||
pkg: 'client-modules',
|
||||
|
||||
@@ -370,12 +370,6 @@
|
||||
"12a2d457945d43a02ab415318a8f6744ef620abd1fe272e12a164fa4ff476289": 1,
|
||||
"37d0e226122b7a3a4253e22583da5c77cc3690554dc959c74bf570589f3224fd": 1
|
||||
},
|
||||
"packages/client/hmr/tests/node-half.client.spec.ts": {
|
||||
"46197efe57255c9d92d64476470c89d0602c7333bf98ad75509bf43c1b357a3b": 1
|
||||
},
|
||||
"packages/client/hmr/tests/transport.client.spec.ts": {
|
||||
"3f1a5cec801bec1f78158f48fca9f53657f85a8bb1f6ff4690fce56ab5ff8e98": 1
|
||||
},
|
||||
"packages/client/locale/tests/apply.client.spec.ts": {
|
||||
"04984a2ce1486250236e638e0197da0a1a840855ed3975c59130a85358c7e5fe": 1
|
||||
},
|
||||
@@ -388,7 +382,6 @@
|
||||
"packages/client/modules/tests/node-half.client.spec.ts": {
|
||||
"621628e4e895b24171e82d1b3fa3ecb12970e8eb0dfccab8bacc8c5784188a28": 2,
|
||||
"6c4ace8d135ab45685d0152eefb0f8156bbf95f66cefedd9a1a8da081d3cb180": 1,
|
||||
"8eb8ea3592cbd4e828a33b2cbe2876089d3923738996fb2259ded563811a1a85": 1,
|
||||
"c4f0b7f87a16d26a1e4e7ef7a07991e789f0bbcfdbe2240a97fcd879668b5b3f": 1,
|
||||
"f549d88ac2b1db67fb33f18a024c116051ff83d3f8ad0433ba4ceedc679e9044": 2
|
||||
},
|
||||
|
||||
@@ -36,7 +36,6 @@ export const EXISTING_PLUGIN_ENTRY_EXPORTS = {
|
||||
'API_PATH', 'CONNECT_PATH', 'Peer', 'RpcId', 'clientRequestSchema', 'rpcErrorSchema', 'rpcIdSchema',
|
||||
'rpcMessageSchema', 'rpcResultSchema', 'serverResponseSchema', 'transportError',
|
||||
],
|
||||
'@deepseek-ai/dsh-client-hmr': ['EVENTS_ENDPOINT'],
|
||||
'@deepseek-ai/dsh-client-locale': ['LOCALE_IDS', 'LOCALE_PREFERENCE_FIELD', 'LOCALE_SETTINGS_NAMESPACE'],
|
||||
'@deepseek-ai/dsh-client-modules': ['bootInjections', 'orderByModuleGraph', 'stripClientSuffix'],
|
||||
'@deepseek-ai/dsh-client-ui-chat': [
|
||||
|
||||
@@ -53,4 +53,5 @@ export const PRODUCT_PACKAGE_POLICY: Readonly<Record<string, ProductPackagePolic
|
||||
'packages/client/web': { category: 'web-distribution', reason: 'Browser boot kernel bundled into the Web distribution.' },
|
||||
'packages/client/ui-dockkit': { category: 'web-distribution', reason: 'Layout library bundled into the Web distribution.' },
|
||||
'packages/util/package-manifest': { category: 'declarations', reason: 'Shared package metadata declarations have no runtime mount.' },
|
||||
'packages/client/config': { category: 'declarations', reason: 'Types of browser-synced plugin configuration; Client Modules implements them and plugins import them type-only.' },
|
||||
}
|
||||
@@ -50,6 +50,7 @@ const NO_MODEL_EXPERIENCE_SECTION: Readonly<Record<string, string>> = {
|
||||
* blocks. A package moves on or off this list with its context behavior.
|
||||
*/
|
||||
const SENTENCE_MODEL_EXPERIENCE: Readonly<Record<string, SentenceContract>> = {
|
||||
'packages/client/config': { kind: 'none', reason: 'Browser configuration types register nothing and add no model input.' },
|
||||
'packages/client/script-realm': { kind: 'none', reason: 'Optional browser execution-provider registration contributes no model input.' },
|
||||
'packages/client/script-realm-iframe': { kind: 'none', reason: 'Same-origin browser script environments contribute no model input.' },
|
||||
'packages/client/ui-context-menu': { kind: 'none', reason: 'Client menu presentation and contributed callbacks add no model input.' },
|
||||
|
||||
@@ -261,7 +261,7 @@ function validCategory(path: string, category: ProductPackagePolicy['category'])
|
||||
case 'sdk': return path === 'packages/sdk/client'
|
||||
case 'build': return path === 'packages/typert/generator'
|
||||
case 'web-distribution': return path === 'packages/client/web' || path === 'packages/client/ui-dockkit'
|
||||
case 'declarations': return path === 'packages/util/package-manifest'
|
||||
case 'declarations': return path === 'packages/util/package-manifest' || path === 'packages/client/config'
|
||||
default: return assertNever(category)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user