feat(desktop): embed BoosAPI Desktop client as a subproject

Vendor the rebranded BoosAPI Desktop client (Tauri + Vue) into metapi as
a monorepo subdirectory under desktop/. Source only — node_modules,
dist, Cargo target and the upstream .git history are excluded.

desktop/ keeps its own independent Cargo workspace (desktop/src-tauri
with crates/*); it is not part of the backend boosapi crate, so a
`cargo check` at the metapi root still compiles only the backend. Build
the desktop app from desktop/src-tauri per desktop/README.md.

Note: app icons are still placeholder assets pending the final BoosAPI
logo. The updater signing keys live outside the repo and are not
included.
This commit is contained in:
boos
2026-06-22 11:32:57 +08:00
parent d9c78ecc73
commit e0a5f57793
2305 changed files with 449355 additions and 0 deletions
@@ -0,0 +1,66 @@
# Angular Installation
Install `markstream-angular` into your Angular 20+ project.
```bash
pnpm add markstream-angular @angular/core @angular/common
```
## Required CSS
Import the renderer stylesheet once in your app entry:
```ts
import 'markstream-angular/index.css'
```
If you enable math rendering, also import:
```ts
import 'katex/dist/katex.min.css'
```
## Optional Peer Dependencies
Install only the heavy features you need:
| Feature | Package |
| --- | --- |
| Monaco code blocks | `stream-monaco` |
| Mermaid diagrams | `mermaid` |
| KaTeX math | `katex` |
| D2 diagrams | `@terrastruct/d2` |
| AntV infographic blocks | `@antv/infographic` |
Quick install:
```bash
pnpm add stream-monaco mermaid katex @terrastruct/d2 @antv/infographic
```
## Optional Workers
`markstream-angular` exports the same worker entry points used by the React / Vue integrations:
```ts
import { setKaTeXWorker, setMermaidWorker } from 'markstream-angular'
import KatexWorker from 'markstream-angular/workers/katexRenderer.worker?worker'
import MermaidWorker from 'markstream-angular/workers/mermaidParser.worker?worker'
setKaTeXWorker(new KatexWorker())
setMermaidWorker(new MermaidWorker())
```
## Local Playground
Inside this monorepo, the Angular playground routes are:
- `/` for the main streaming demo
- `/test` for the regression lab
- `/test-sandbox` for isolated framework/version rendering
Run it locally with:
```bash
pnpm play:angular
```