@deepseek-ai/dsh-client-ui-brand-official 0.1.0-rc.8

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
+ # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
+ # after editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write packages/client/ui-brand-official/README.md
5
+ README.md: 7197bc7f4731cd3e6471549900e4868ad6d4796d
6
+ README.zh.md: 14d3ee3f1aa2f12ddd20b851d4034e1417baf5c9
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @deepseek-ai/dsh-client-ui-brand-official
2
+
3
+ English | [中文](README.zh.md)
4
+
5
+ This package fills `sidebar.brand.mark`, `sidebar.brand.name`, and `conversation.hero.brand.mark` only when `DSH_CLIENT_BUILD_PROFILE` is `official`. Other builds load the plugin but register no occupants, leaving the shell fallbacks visible.
6
+
7
+ The three occupants install as one declaration-aware registration set through nested `slots.inject()` calls. The package therefore works whether its row activates before or after the sidebar and conversation declarers, withdraws all occupants when either declaration collapses, and leaves no partial brand mix during HMR. It retains no runtime state. The node half is an empty Loader seat, and the browser title remains a build-environment concern outside this package.
8
+
9
+ ## Model Experience
10
+
11
+ None, as the package contributes browser presentation only; nothing here reaches a model request.
12
+
13
+ #### KV Cache effect
14
+
15
+ None; this package neither assembles nor sends a provider request.
16
+
17
+ ## Known Limitations and Deferred Work
18
+
19
+ - **The package supplies one occupant set** — alternative presentation belongs in another Cordis package occupying the same slots.
20
+ - **The browser title is independent** — `DSH_CLIENT_TITLE` selects title text at build time rather than through a UI slot.
package/README.zh.md ADDED
@@ -0,0 +1,20 @@
1
+ # @deepseek-ai/dsh-client-ui-brand-official
2
+
3
+ [English](README.md) | 中文
4
+
5
+ 仅当 `DSH_CLIENT_BUILD_PROFILE` 为 `official` 时,本包才填充 `sidebar.brand.mark`、`sidebar.brand.name` 和 `conversation.hero.brand.mark`。其他构建仍会加载插件,但不注册 occupant,因此显示 shell fallback。
6
+
7
+ 三个占位者通过嵌套的 `slots.inject()` 作为一组声明感知注册安装。因此无论该包的条目先于还是后于侧边栏和会话声明方激活,它都能工作;任一声明折叠时会撤回全部占位者,HMR 期间不会留下混合品牌。它不保留运行时状态。node 半边是空的 Loader seat;浏览器标题仍属于本包之外的构建环境事项。
8
+
9
+ ## 模型体验
10
+
11
+ 无,因为本包只贡献浏览器呈现;这里没有任何内容进入模型请求。
12
+
13
+ #### KV Cache 影响
14
+
15
+ 无;本包既不组装也不发送 provider 请求。
16
+
17
+ ## 已知限制与暂缓事项
18
+
19
+ - **本包只提供一组 occupant** —— 其他呈现应由占用相同 slot 的另一个 Cordis 包提供。
20
+ - **浏览器标题相互独立** —— `DSH_CLIENT_TITLE` 在构建期选择标题文字,而不经过 UI slot。
package/lib/client.js ADDED
@@ -0,0 +1,50 @@
1
+ window.__ModuleLoader__.load({
2
+ id: "@deepseek-ai/dsh-client-ui-brand-official",
3
+ factory: (require) => {
4
+ var module = { exports: {} };
5
+ var exports = module.exports;
6
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
9
+ //#region lib/types/client/Brand.js
10
+ /**
11
+ * Render the official mark with the presentation requested by its host surface.
12
+ * @param props - Host-supplied mark presentation.
13
+ * @returns the official whale mark.
14
+ */
15
+ function OfficialBrandMark({ size, className }) {
16
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.FishLogo, {
17
+ size,
18
+ className
19
+ });
20
+ }
21
+ /**
22
+ * Render the official name artwork without its independently slotted mark.
23
+ * @returns the official name wordmark.
24
+ */
25
+ function OfficialBrandName() {
26
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.BrandWordmark, { includeMark: false });
27
+ }
28
+ //#endregion
29
+ //#region lib/types/client/index.js
30
+ /** Required service: the UI slot registry. */
31
+ const inject = ["slots"];
32
+ /**
33
+ * Fill every shipped brand slot as one declaration-aware registration set.
34
+ * @param ctx - Client root context.
35
+ */
36
+ function apply(ctx) {
37
+ ctx.slots.inject("sidebar.brand.mark", () => ctx.slots.inject("sidebar.brand.name", () => ctx.slots.inject("conversation.hero.brand.mark", function* () {
38
+ yield ctx.slots.register({ name: "sidebar.brand.mark" }, OfficialBrandMark);
39
+ yield ctx.slots.register({ name: "sidebar.brand.name" }, OfficialBrandName);
40
+ yield ctx.slots.register({ name: "conversation.hero.brand.mark" }, OfficialBrandMark);
41
+ })));
42
+ }
43
+ //#endregion
44
+ exports.apply = apply;
45
+ exports.inject = inject;
46
+ return module.exports;
47
+ }
48
+ });
49
+
50
+ //# sourceMappingURL=client.js.map
package/lib/index.js ADDED
@@ -0,0 +1,9 @@
1
+ //#region lib/types/index.js
2
+ /**
3
+ * Official browser-brand plugin, node half. The empty apply gives Loader a
4
+ * host-side row while the browser half ships through `exports["./client"]`.
5
+ */
6
+ /** Host plugin body — this package contributes browser presentation only. */
7
+ function apply() {}
8
+ //#endregion
9
+ export { apply };
@@ -0,0 +1,23 @@
1
+ //#region lib/types/invariant.js
2
+ /**
3
+ * Package-owned invariant companion for `@deepseek-ai/dsh-client-ui-brand-official`.
4
+ * @module @deepseek-ai/dsh-client-ui-brand-official/invariant
5
+ */
6
+ const PACKAGE_NAME = "@deepseek-ai/dsh-client-ui-brand-official";
7
+ /** Cordis companion plugin name. */
8
+ const name = "client-ui-brand-official-invariant";
9
+ /** Service required before the companion can reserve package ownership. */
10
+ const inject = ["invariants"];
11
+ /**
12
+ * No runtime invariant: the package retains no mutable state, and its three
13
+ * slot occupants install and leave through one transactional effect.
14
+ */
15
+ const install = () => {};
16
+ /**
17
+ * Register this package's invariant companion.
18
+ * @param ctx - Cordis context carrying the invariant service.
19
+ * @returns the installed registration's disposer after setup succeeds.
20
+ */
21
+ const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
22
+ //#endregion
23
+ export { apply, inject, name };
@@ -0,0 +1,16 @@
1
+ import type { HeroBrandMarkOwnerProps } from '@deepseek-ai/dsh-client-ui-conversation/client';
2
+ import type { SidebarBrandMarkOwnerProps } from '@deepseek-ai/dsh-client-ui-sidebar/client';
3
+ type OfficialBrandMarkProps = HeroBrandMarkOwnerProps & SidebarBrandMarkOwnerProps;
4
+ /**
5
+ * Render the official mark with the presentation requested by its host surface.
6
+ * @param props - Host-supplied mark presentation.
7
+ * @returns the official whale mark.
8
+ */
9
+ export declare function OfficialBrandMark({ size, className }: OfficialBrandMarkProps): import("react").JSX.Element;
10
+ /**
11
+ * Render the official name artwork without its independently slotted mark.
12
+ * @returns the official name wordmark.
13
+ */
14
+ export declare function OfficialBrandName(): import("react").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=Brand.d.ts.map
@@ -0,0 +1,10 @@
1
+ /** Official DeepSeek Harness occupants for the generic browser-brand slots. */
2
+ import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client';
3
+ /** Required service: the UI slot registry. */
4
+ export declare const inject: string[];
5
+ /**
6
+ * Fill every shipped brand slot as one declaration-aware registration set.
7
+ * @param ctx - Client root context.
8
+ */
9
+ export declare function apply(ctx: ClientContext): void;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Official browser-brand plugin, node half. The empty apply gives Loader a
3
+ * host-side row while the browser half ships through `exports["./client"]`.
4
+ */
5
+ /** Host plugin body — this package contributes browser presentation only. */
6
+ export declare function apply(): void;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Package-owned invariant companion for `@deepseek-ai/dsh-client-ui-brand-official`.
3
+ * @module @deepseek-ai/dsh-client-ui-brand-official/invariant
4
+ */
5
+ import type { Context } from '@deepseek-ai/cordis';
6
+ /** Cordis companion plugin name. */
7
+ export declare const name = "client-ui-brand-official-invariant";
8
+ /** Service required before the companion can reserve package ownership. */
9
+ export declare const inject: string[];
10
+ /**
11
+ * Register this package's invariant companion.
12
+ * @param ctx - Cordis context carrying the invariant service.
13
+ * @returns the installed registration's disposer after setup succeeds.
14
+ */
15
+ export declare const apply: (ctx: Context) => Promise<() => void>;
16
+ //# sourceMappingURL=invariant.d.ts.map
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@deepseek-ai/dsh-client-ui-brand-official",
3
+ "description": "Official DeepSeek Harness brand occupants for the Web client's sidebar and conversation Hero slots",
4
+ "version": "0.1.0-rc.8",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
11
+ "directory": "packages/client/ui-brand-official"
12
+ },
13
+ "type": "module",
14
+ "main": "lib/index.js",
15
+ "types": "lib/types/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/types/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./invariant": {
22
+ "types": "./lib/types/invariant.d.ts",
23
+ "default": "./lib/invariant.js"
24
+ },
25
+ "./client": {
26
+ "types": "./lib/types/client/index.d.ts",
27
+ "default": "./lib/client.js"
28
+ },
29
+ "./src/*": "./src/*",
30
+ "./package.json": "./package.json"
31
+ },
32
+ "dsh": {
33
+ "client": {
34
+ "inject": [
35
+ "@deepseek-ai/dsh-client-runtime",
36
+ "@deepseek-ai/dsh-client-ui-conversation",
37
+ "@deepseek-ai/dsh-client-ui-sidebar"
38
+ ],
39
+ "platform": "web"
40
+ }
41
+ },
42
+ "license": "MIT",
43
+ "peerDependencies": {
44
+ "@deepseek-ai/dsh-client-ui-sidebar": "^0.1.0-rc.8",
45
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.8",
46
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
47
+ "@deepseek-ai/cordis": "^4.0.1",
48
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.8"
49
+ },
50
+ "devDependencies": {
51
+ "@testing-library/react": "^16.1.0",
52
+ "@types/react": "~18.3.1",
53
+ "react": "^18.2.0",
54
+ "react-dom": "^18.2.0",
55
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.8",
56
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.8",
57
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.8",
58
+ "@deepseek-ai/dsh-client-ui-sidebar": "^0.1.0-rc.8",
59
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
60
+ "@deepseek-ai/cordis": "^4.0.1"
61
+ },
62
+ "files": [
63
+ "lib/index.js",
64
+ "lib/invariant.js",
65
+ "lib/client.js",
66
+ "lib/types/**/*.d.ts"
67
+ ],
68
+ "scripts": {
69
+ "bundle": "tsdown",
70
+ "watch": "tsdown --watch"
71
+ }
72
+ }