@pactor-app/skills 1.45.0 → 1.46.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.
@@ -4,14 +4,61 @@
4
4
  * 页面 DSL 引用的自定义组件注册表(页面级自定义组件
5
5
  * `components={{...}}`),经 SitemapApp 的 `components` prop 全局注册。
6
6
  * ChipFilter / ChipNode 快筛组件已内置在 @pactor-app/ui,无需在此注册。
7
+ *
8
+ * Chat 展示组件(ChatPage / Bubble / Composer 等 18 个)归属
9
+ * @pactor-app/chat 的 /components 子路径,不进 ui 内置注册表,
10
+ * 在此展开注册(DSL 类型名 = 导出符号名);样式见 app/layout.tsx 的
11
+ * pactor-app/styles.css(聚合单入口)。
7
12
  */
13
+ import {
14
+ AgentStatus,
15
+ ArtifactPanel,
16
+ Attachment,
17
+ Bubble,
18
+ ChatMessage,
19
+ ChatPage,
20
+ Citation,
21
+ Composer,
22
+ ConversationList,
23
+ MessageList,
24
+ Prompt,
25
+ Sender,
26
+ StepsPanel,
27
+ StreamingText,
28
+ Suggestion,
29
+ Thinking,
30
+ ToolCall,
31
+ Welcome,
32
+ } from "@pactor-app/chat/components";
8
33
  import { StatusBadge } from "./status-badge";
9
34
  import { LogStatus } from "./log-status";
10
35
  import { DebugChat } from "./debug-chat";
11
36
  import { CardLink, StatusToggleIcon, TextLink } from "./card-links";
12
37
  import { ThemeSwitcher } from "./theme-switcher";
13
38
 
39
+ const chatComponents: Record<string, unknown> = {
40
+ AgentStatus,
41
+ ArtifactPanel,
42
+ Attachment,
43
+ Bubble,
44
+ ChatMessage,
45
+ ChatPage,
46
+ Citation,
47
+ Composer,
48
+ ConversationList,
49
+ MessageList,
50
+ Prompt,
51
+ Sender,
52
+ StepsPanel,
53
+ StreamingText,
54
+ Suggestion,
55
+ Thinking,
56
+ ToolCall,
57
+ Welcome,
58
+ };
59
+
14
60
  export const pactorComponents: Record<string, unknown> = {
61
+ ...chatComponents,
15
62
  StatusBadge,
16
63
  LogStatus,
17
64
  DebugChat,