@botharness/ui 1.4.0 → 1.5.0
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/THIRD_PARTY_NOTICES.md +32 -1
- package/dist/panel-api.d.mts +79 -0
- package/dist/panel-api.mjs +1 -0
- package/lib/client.js +163136 -87722
- package/lib/client.js.map +1 -1
- package/package.json +11 -4
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -69,7 +69,7 @@ SOFTWARE.
|
|
|
69
69
|
- Package: `lucide` icons (vendored glyph paths; see ADR-0032)
|
|
70
70
|
- License: ISC
|
|
71
71
|
- Source: <https://github.com/lucide-icons/lucide>
|
|
72
|
-
- Used for: Channel sidebar function/settings/check glyphs (`house`, `files`, `git-branch`, `messages-square`, `inbox`, `folder-key`, `users`, `settings-2`, `settings`, `monitor`, `globe`, `panels-top-left`, `grip-vertical`, `check`, `eye`, `eye-off`, `chevron-right`, from `lucide-react@1.46.0`) in `channel-sidebar-icon.tsx`; the `inbox` Activity Center glyph (`InboxIcon` in `src/client/inbox-icon.tsx`) and the `hash` channel glyph (`HashIcon` in `src/client/hash-icon.tsx`, from `lucide-react@1.46.0`); the `git-commit-vertical` Memory commit glyph (`GitCommitIcon` in `src/client/git-commit-icon.tsx`, from `lucide-react@1.46.0`)
|
|
72
|
+
- Used for: Channel sidebar function/settings/check glyphs (`house`, `files`, `git-branch`, `messages-square`, `inbox`, `folder-key`, `users`, `settings-2`, `settings`, `monitor`, `globe`, `panels-top-left`, `grip-vertical`, `check`, `message-square`, `keyboard`, `smartphone`, `sliders-horizontal`, `info`, `eye`, `eye-off`, `chevron-right`, from `lucide-react@1.46.0`) in `channel-sidebar-icon.tsx`; the `inbox` Activity Center glyph (`InboxIcon` in `src/client/inbox-icon.tsx`) and the `hash` channel glyph (`HashIcon` in `src/client/hash-icon.tsx`, from `lucide-react@1.46.0`); the `git-commit-vertical` Memory commit glyph (`GitCommitIcon` in `src/client/git-commit-icon.tsx`, from `lucide-react@1.46.0`)
|
|
73
73
|
|
|
74
74
|
```
|
|
75
75
|
ISC License
|
|
@@ -236,3 +236,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
236
236
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
237
237
|
SOFTWARE.
|
|
238
238
|
```
|
|
239
|
+
|
|
240
|
+
## pinyin-pro
|
|
241
|
+
|
|
242
|
+
- Package: `pinyin-pro` 3.29.5
|
|
243
|
+
- License: MIT
|
|
244
|
+
- Source: <https://github.com/zh-lx/pinyin-pro>
|
|
245
|
+
- Used for: matching Chinese conversation and settings names by full pinyin or initials in the quick switcher and roster search (inlined by the client bundle build).
|
|
246
|
+
|
|
247
|
+
```
|
|
248
|
+
MIT License
|
|
249
|
+
|
|
250
|
+
Copyright (c) 2022-present zh-lx
|
|
251
|
+
|
|
252
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
253
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
254
|
+
in the Software without restriction, including without limitation the rights
|
|
255
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
256
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
257
|
+
furnished to do so, subject to the following conditions:
|
|
258
|
+
|
|
259
|
+
The above copyright notice and this permission notice shall be included in all
|
|
260
|
+
copies or substantial portions of the Software.
|
|
261
|
+
|
|
262
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
263
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
264
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
265
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
266
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
267
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
268
|
+
SOFTWARE.
|
|
269
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ComponentType } from "react";
|
|
2
|
+
//#region packages/client/src/panel-api.d.ts
|
|
3
|
+
export interface DockPanelChannel {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly type: 'dm' | 'group';
|
|
6
|
+
readonly botSlug: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface DockPanelProps {
|
|
9
|
+
readonly channel: DockPanelChannel | undefined;
|
|
10
|
+
readonly botId?: string | undefined;
|
|
11
|
+
readonly instanceId?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface DockPanel {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly title: string;
|
|
16
|
+
readonly icon?: string | undefined;
|
|
17
|
+
readonly scope: 'global' | 'channel';
|
|
18
|
+
readonly binding?: 'current-bot' | undefined;
|
|
19
|
+
readonly order?: number | undefined;
|
|
20
|
+
readonly defaultPosition?: {
|
|
21
|
+
readonly zone: 'left' | 'center' | 'right' | 'bottom';
|
|
22
|
+
readonly relativeTo?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
readonly component: ComponentType<DockPanelProps>;
|
|
25
|
+
readonly headerAction?: ComponentType<DockPanelProps> | undefined;
|
|
26
|
+
}
|
|
27
|
+
export interface DockPanelInstance {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly definitionId: string;
|
|
30
|
+
readonly botId: string;
|
|
31
|
+
readonly label: string;
|
|
32
|
+
}
|
|
33
|
+
export interface DockPanelRegistry {
|
|
34
|
+
register(panel: DockPanel): () => void;
|
|
35
|
+
panels(): readonly DockPanel[];
|
|
36
|
+
instances(): readonly DockPanelInstance[];
|
|
37
|
+
createInstance(definitionId: string, botId: string, label: string): string;
|
|
38
|
+
removeInstance(id: string): void;
|
|
39
|
+
openPanels(): readonly string[];
|
|
40
|
+
available(): boolean;
|
|
41
|
+
canOpen?(id: string): boolean;
|
|
42
|
+
isOpen(id: string): boolean;
|
|
43
|
+
open(id: string): void;
|
|
44
|
+
close(id: string): void;
|
|
45
|
+
toggle(id: string): void;
|
|
46
|
+
subscribe(listener: () => void): () => void;
|
|
47
|
+
}
|
|
48
|
+
export interface BotPresentationSnapshot {
|
|
49
|
+
readonly botId: string;
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly available: boolean;
|
|
52
|
+
readonly paused: boolean;
|
|
53
|
+
readonly sync: 'connecting' | 'live' | 'stale';
|
|
54
|
+
readonly activity: 'idle' | 'thinking' | 'working' | 'waiting' | 'blocked';
|
|
55
|
+
readonly attention?: string | undefined;
|
|
56
|
+
readonly text: string;
|
|
57
|
+
readonly page: string;
|
|
58
|
+
readonly speaking: boolean;
|
|
59
|
+
readonly conversing: boolean;
|
|
60
|
+
readonly mouth: number;
|
|
61
|
+
readonly inbox: number;
|
|
62
|
+
}
|
|
63
|
+
export interface BotPresentationView {
|
|
64
|
+
getSnapshot(): BotPresentationSnapshot;
|
|
65
|
+
subscribe(listener: () => void | Promise<void>): () => void;
|
|
66
|
+
dispose(): void;
|
|
67
|
+
}
|
|
68
|
+
export interface BotPresentation {
|
|
69
|
+
acquire(botId: string): BotPresentationView;
|
|
70
|
+
bots(): readonly {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
}[];
|
|
74
|
+
}
|
|
75
|
+
export interface PanelServices {
|
|
76
|
+
botPresentation: BotPresentation;
|
|
77
|
+
dockPanels: DockPanelRegistry;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|