@buddhilive/bah-client-ui-brand 0.1.2-alpha.2 → 0.1.2-alpha.3
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 +48 -0
- package/lib/client.js +11 -3
- package/lib/invariant.js +23 -0
- package/lib/types/client/locales.d.ts +7 -0
- package/lib/types/invariant.d.ts +16 -0
- package/package.json +14 -8
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "BuddhiAI Harness brand occupants for the sidebar and conversation hero slots; for users and maintainers configuring brand presentation."
|
|
3
|
+
kind: "package-reference"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @buddhilive/bah-client-ui-brand
|
|
7
|
+
|
|
8
|
+
## Summary
|
|
9
|
+
|
|
10
|
+
This package fills the sidebar brand slots — `sidebar.brand.mark` and `sidebar.brand.name` — and conversation hero slot with the BuddhiAI Harness mark and name. It retains no runtime state and contributes nothing to model requests.
|
|
11
|
+
|
|
12
|
+
## Table of Contents
|
|
13
|
+
|
|
14
|
+
- [Use this package](#use-this-package)
|
|
15
|
+
- [Understand the implementation](#understand-the-implementation)
|
|
16
|
+
- [Model Experience](#model-experience)
|
|
17
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
18
|
+
|
|
19
|
+
-----
|
|
20
|
+
|
|
21
|
+
<a id="use-this-package"></a>
|
|
22
|
+
## Use this package
|
|
23
|
+
|
|
24
|
+
Mount this plugin in the browser roster of a deployment whose identity is BuddhiAI.
|
|
25
|
+
|
|
26
|
+
-----
|
|
27
|
+
|
|
28
|
+
<a id="understand-the-implementation"></a>
|
|
29
|
+
## Understand the implementation
|
|
30
|
+
|
|
31
|
+
The brand occupants install as slot occupants into `@buddhilive/dsh-client-ui-slots`.
|
|
32
|
+
|
|
33
|
+
-----
|
|
34
|
+
|
|
35
|
+
<a id="model-experience"></a>
|
|
36
|
+
## Model Experience
|
|
37
|
+
|
|
38
|
+
None, as the package contributes browser presentation only; nothing here reaches a model request.
|
|
39
|
+
|
|
40
|
+
#### KV Cache effect
|
|
41
|
+
|
|
42
|
+
None; this package neither assembles nor sends a provider request.
|
|
43
|
+
|
|
44
|
+
## Known Limitations and Deferred Work
|
|
45
|
+
|
|
46
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
47
|
+
|
|
48
|
+
None.
|
package/lib/client.js
CHANGED
|
@@ -8,6 +8,14 @@ window.__ModuleLoader__.load({
|
|
|
8
8
|
[Symbol.toStringTag]: { value: "Module" }
|
|
9
9
|
});
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
|
+
//#region lib/types/client/locales.js
|
|
12
|
+
/** Copy dictionary for Buddhi brand components. */
|
|
13
|
+
const en = {
|
|
14
|
+
markAlt: "BuddhiAI",
|
|
15
|
+
brandName: "BuddhiAI",
|
|
16
|
+
brandSuffix: "Harness"
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
11
19
|
//#region lib/types/client/BuddhiLogo.js
|
|
12
20
|
/**
|
|
13
21
|
* BuddhiAI mark: renders the official BuddhiAI PNG logo mark.
|
|
@@ -15,7 +23,7 @@ window.__ModuleLoader__.load({
|
|
|
15
23
|
function BuddhiLogo({ size = 24, className, style, ...props }) {
|
|
16
24
|
return (0, react_jsx_runtime.jsx)("img", {
|
|
17
25
|
src: "/buddhi-logo.png",
|
|
18
|
-
alt:
|
|
26
|
+
alt: en.markAlt,
|
|
19
27
|
width: size,
|
|
20
28
|
height: size,
|
|
21
29
|
className,
|
|
@@ -52,7 +60,7 @@ window.__ModuleLoader__.load({
|
|
|
52
60
|
fontSize: "15px",
|
|
53
61
|
color: "currentColor"
|
|
54
62
|
},
|
|
55
|
-
children:
|
|
63
|
+
children: en.brandName
|
|
56
64
|
}), (0, react_jsx_runtime.jsx)("span", {
|
|
57
65
|
style: {
|
|
58
66
|
fontSize: "11px",
|
|
@@ -65,7 +73,7 @@ window.__ModuleLoader__.load({
|
|
|
65
73
|
color: "var(--color-bg-base, #121214)",
|
|
66
74
|
opacity: .9
|
|
67
75
|
},
|
|
68
|
-
children:
|
|
76
|
+
children: en.brandSuffix
|
|
69
77
|
})]
|
|
70
78
|
});
|
|
71
79
|
}
|
package/lib/invariant.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region lib/types/invariant.js
|
|
2
|
+
/**
|
|
3
|
+
* Package-owned invariant companion for `@buddhilive/bah-client-ui-brand`.
|
|
4
|
+
* @module @buddhilive/bah-client-ui-brand/invariant
|
|
5
|
+
*/
|
|
6
|
+
const PACKAGE_NAME = "@buddhilive/bah-client-ui-brand";
|
|
7
|
+
/** Cordis companion plugin name. */
|
|
8
|
+
const name = "client-ui-brand-buddhi-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
|
|
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
|
+
/**
|
|
2
|
+
* Package-owned invariant companion for `@buddhilive/bah-client-ui-brand`.
|
|
3
|
+
* @module @buddhilive/bah-client-ui-brand/invariant
|
|
4
|
+
*/
|
|
5
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
6
|
+
/** Cordis companion plugin name. */
|
|
7
|
+
export declare const name = "client-ui-brand-buddhi-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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buddhilive/bah-client-ui-brand",
|
|
3
3
|
"description": "BuddhiAI Harness brand occupants for the Web client sidebar and conversation Hero slots",
|
|
4
|
-
"version": "0.1.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"types": "./lib/types/index.d.ts",
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
|
+
"./invariant": {
|
|
22
|
+
"types": "./lib/types/invariant.d.ts",
|
|
23
|
+
"default": "./lib/invariant.js"
|
|
24
|
+
},
|
|
21
25
|
"./client": {
|
|
22
26
|
"types": "./lib/types/client/index.d.ts",
|
|
23
27
|
"default": "./lib/client.js"
|
|
@@ -28,9 +32,9 @@
|
|
|
28
32
|
"dsh": {
|
|
29
33
|
"client": {
|
|
30
34
|
"inject": [
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
35
|
+
"@buddhilive/dsh-client-ui-renderer",
|
|
36
|
+
"@buddhilive/dsh-client-ui-conversation",
|
|
37
|
+
"@buddhilive/dsh-client-ui-sidebar"
|
|
34
38
|
],
|
|
35
39
|
"platform": "web"
|
|
36
40
|
}
|
|
@@ -44,14 +48,16 @@
|
|
|
44
48
|
"@types/react": "~18.3.1",
|
|
45
49
|
"react": "^18.2.0",
|
|
46
50
|
"react-dom": "^18.2.0",
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
+
"@buddhilive/dsh-client-ui-renderer": "^0.1.2-alpha.3",
|
|
52
|
+
"@buddhilive/dsh-client-ui-primitives": "^0.1.2-alpha.3",
|
|
53
|
+
"@buddhilive/dsh-client-ui-conversation": "^0.1.2-alpha.3",
|
|
54
|
+
"@buddhilive/dsh-client-ui-sidebar": "^0.1.2-alpha.3",
|
|
55
|
+
"@buddhilive/dsh-invariants": "^0.1.2-alpha.3",
|
|
51
56
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
52
57
|
},
|
|
53
58
|
"files": [
|
|
54
59
|
"lib/index.js",
|
|
60
|
+
"lib/invariant.js",
|
|
55
61
|
"lib/client.js",
|
|
56
62
|
"lib/types/**/*.d.ts"
|
|
57
63
|
],
|