@anchrd/intel-ui 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +50 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,18 +1,59 @@
1
1
  # @anchrd/intel-ui
2
2
 
3
- The source-built Intel browser application. Install it next to `@anchrd/intel`, then run:
3
+ The Intel browser application: Knowledge, Flows and Tools for the
4
+ [`@anchrd/intel`](https://www.npmjs.com/package/@anchrd/intel) server.
5
+
6
+ This package ships **source, not a bundle**. You compile it yourself so your own theme, logo and
7
+ languages are applied at build time and the output belongs to you — no customer build artifact ever
8
+ lives in `node_modules`.
9
+
10
+ ## Install
11
+
12
+ Install it next to `@anchrd/intel`, then let the CLI build it:
4
13
 
5
14
  ```bash
15
+ npm install @anchrd/intel @anchrd/intel-ui
6
16
  npx intel build
7
17
  ```
8
18
 
9
- The CLI applies `intel.json` at build time and writes the customer-owned static output to
10
- `.intel/ui`. Theme CSS changes shadcn semantic variables, so customer design never requires editing
11
- React components.
19
+ The CLI applies `intel.json` and writes the static output to `.intel/ui`, which the Intel Worker
20
+ serves through its `ASSETS` binding.
21
+
22
+ ## Theming
23
+
24
+ Theme CSS overrides shadcn semantic variables such as `--primary`, `--background`, `--sidebar` and
25
+ `--radius`. It loads after Intel's defaults, so customer tokens win without forking a single React
26
+ component. Every product component uses semantic tokens rather than palette colours, which is
27
+ enforced by a lint rule.
28
+
29
+ Point `intel.json` at your files:
30
+
31
+ ```json
32
+ {
33
+ "ui": {
34
+ "theme": "./branding/theme.css",
35
+ "logo": "./branding/logo.svg",
36
+ "favicon": "./branding/favicon.svg",
37
+ "defaultLanguage": "en",
38
+ "languages": {}
39
+ }
40
+ }
41
+ ```
42
+
43
+ Missing assets, non-SVG branding and incomplete language catalogs fail the build rather than
44
+ silently producing a half-branded application.
45
+
46
+ ## What is inside
47
+
48
+ Vite, React, TanStack Router and Query, with shadcn components. Knowledge uses BlockNote for editing
49
+ and Sigma for the graph, Flows uses React Flow, and Tools presents the discovered MCP catalog.
50
+ Route-level code splitting keeps both editors out of the initial bundle.
51
+
52
+ Server state lives only in TanStack Query, and one data provider is the sole module that talks to the
53
+ Intel HTTP surface. The application uses same-origin `HttpOnly` sessions established by the Intel
54
+ Worker against Gate OAuth: it holds no service key and stores no access token in the browser.
12
55
 
13
- The browser application uses same-origin `HttpOnly` sessions established by the Intel Worker against
14
- Gate OAuth. It contains no service key or browser-side access-token storage.
56
+ ## License
15
57
 
16
- Knowledge uses BlockNote, Flows uses React Flow, and Tools presents the MCP catalog. Route-level
17
- code splitting keeps both editors outside the initial application bundle. Every product component
18
- uses shadcn semantic tokens so an `intel.json` theme can replace the customer design safely.
58
+ Proprietary. Published publicly for installation convenience; this is not an open-source license and
59
+ grants no right to use, copy, modify or redistribute the software. Contact Anchrd for licensing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/intel-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "typecheck": "tsc --noEmit"
29
29
  },
30
30
  "dependencies": {
31
- "@anchrd/intel-contract": "^0.1.0",
31
+ "@anchrd/intel-contract": "^0.1.1",
32
32
  "@blocknote/core": "^0.52.1",
33
33
  "@blocknote/react": "^0.52.1",
34
34
  "@blocknote/shadcn": "^0.52.1",