auricui-skill 0.1.0 → 0.1.2
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 +2 -2
- package/bin/install.mjs +2 -2
- package/package.json +25 -6
- package/skill/SKILL.md +5 -2
- package/skill/assets/examples/ApprovalCard.tsx +8 -0
- package/skill/assets/examples/BriefingCard.tsx +8 -0
- package/skill/assets/examples/Checkbox.tsx +13 -0
- package/skill/assets/examples/Combobox.tsx +14 -0
- package/skill/assets/examples/Drawer.tsx +10 -0
- package/skill/assets/examples/MemoryCard.tsx +9 -0
- package/skill/assets/examples/MessageList.tsx +8 -0
- package/skill/assets/examples/Theme.tsx +14 -0
- package/skill/assets/examples/ToolCall.tsx +8 -0
- package/skill/assets/examples/Tree.tsx +15 -0
- package/skill/assets/library/auricui-0.1.0-preview.3.tgz +0 -0
- package/skill/assets/library/auricui-0.1.0-preview.4.tgz +0 -0
- package/skill/references/agent-components.md +33 -0
- package/skill/references/api-index.json +518 -1
- package/skill/references/core-components.md +14 -0
- package/skill/references/dependencies.md +3 -1
- package/skill/references/esm-package.md +5 -5
- package/skill/references/library-manifest.json +6 -5
- package/skill/references/theme-motion.md +28 -0
- package/skill/references/troubleshooting.md +1 -1
- package/skill/scripts/check_dependencies.py +3 -2
- package/skill/scripts/inspect_api.py +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AuricUI Skill
|
|
2
2
|
|
|
3
|
-
为编码 Agent 安装 AuricUI 组件库指南,包括 API 查询、基础组件、AI 聊天、Studio、主题动画、依赖检查和可编译示例。需要 Node.js >=20.19;附带的依赖/API 检查工具使用 Python 3 标准库。
|
|
3
|
+
为编码 Agent 安装 AuricUI 组件库指南,包括 API 查询、基础组件、Agent / Personal Agent、AI 聊天、Studio、主题动画、依赖检查和可编译示例。需要 Node.js >=20.19;附带的依赖/API 检查工具使用 Python 3 标准库。
|
|
4
4
|
|
|
5
5
|
此 npm 包是 Skill 安装器,React 组件库本身为 `auricui`。安装器只复制技能文件;在应用中安装 UI 库由 Agent 按 Skill 指南完成。
|
|
6
6
|
|
|
@@ -25,6 +25,6 @@ npx auricui-skill@latest --dry-run
|
|
|
25
25
|
|
|
26
26
|
自定义目录参数表示技能的父目录,安装器会追加 `auricui`。已有目录默认不覆盖;`--update` 的备份位于 skills 父目录下的 `.auricui-skill-backups/`,终端会输出确切位置。符号链接目标不会被覆盖。
|
|
27
27
|
|
|
28
|
-
安装后刷新 Agent 技能列表或新开会话,使用 `$auricui`;不支持自动扫描技能的 Agent 可显式读取安装目录中的 SKILL.md。组件基线为 `0.1.0-preview.
|
|
28
|
+
安装后刷新 Agent 技能列表或新开会话,使用 `$auricui`;不支持自动扫描技能的 Agent 可显式读取安装目录中的 SKILL.md。组件基线为 `0.1.0-preview.3`,实际安装版本不同则按其声明核对 API。
|
|
29
29
|
|
|
30
30
|
包含的源参考快照和本地组件包保留 MIT 与第三方许可;详见 Skill 内来源资料和组件包的 LICENSE / THIRD-PARTY-NOTICES.md。
|
package/bin/install.mjs
CHANGED
|
@@ -41,11 +41,11 @@ function main() {
|
|
|
41
41
|
const source = fileURLToPath(new URL('../skill/', import.meta.url));
|
|
42
42
|
if (!fs.existsSync(path.join(source, 'SKILL.md'))) throw new Error('Skill payload missing. Build the distribution package before running it.');
|
|
43
43
|
const present = fs.existsSync(target) || (() => { try { return fs.lstatSync(target).isSymbolicLink(); } catch { return false; } })();
|
|
44
|
+
console.log(`Destination: ${target}`);
|
|
45
|
+
if (dry) { console.log('Dry run: no files written.' + (present ? ' Destination already exists; an actual update requires --update.' : '')); return; }
|
|
44
46
|
if (present && fs.lstatSync(target).isSymbolicLink()) throw new Error(`Refusing to replace a symlink: ${target}`);
|
|
45
47
|
if (present && !update) throw new Error(`Skill already exists: ${target}\nUse --update to back it up and replace it.`);
|
|
46
48
|
if (present && !fs.statSync(target).isDirectory()) throw new Error(`Destination is not a directory: ${target}`);
|
|
47
|
-
console.log(`Destination: ${target}`);
|
|
48
|
-
if (dry) { console.log('Dry run: no files written.'); return; }
|
|
49
49
|
fs.mkdirSync(base, {recursive: true});
|
|
50
50
|
const staging = fs.mkdtempSync(path.join(base, '.auricui-stage-'));
|
|
51
51
|
let backup;
|
package/package.json
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auricui-skill",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Install the AuricUI component-library skill for coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"bin": {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
7
|
+
"bin": {
|
|
8
|
+
"auricui-skill": "bin/install.mjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"skill",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=20.19"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"tag": "latest"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"auricui",
|
|
25
|
+
"agent",
|
|
26
|
+
"skill",
|
|
27
|
+
"react",
|
|
28
|
+
"ui"
|
|
29
|
+
],
|
|
30
|
+
"author": "hehuan"
|
|
12
31
|
}
|
package/skill/SKILL.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: auricui
|
|
3
|
-
description: 使用 auricui React 组件库开发深色应用、设置面板和 AI 聊天界面;提供组件选择、准确的 props、主题与动画、服务适配和安装排错。用户提到 AuricUI、auricui/chat、auricui/studio,或要求沿用这套视觉系统时使用。
|
|
3
|
+
description: 使用 auricui React 组件库开发深色应用、设置面板和 AI 聊天界面;提供组件选择、准确的 props、主题与动画、服务适配和安装排错。用户提到 AuricUI、auricui/agent、auricui/chat、auricui/studio,或要求沿用这套视觉系统时使用。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# AuricUI
|
|
7
7
|
|
|
8
|
-
以已安装的 `auricui` 成品包开发应用。文档和可编译示例基于 `0.1.0-preview.
|
|
8
|
+
以已安装的 `auricui` 成品包开发应用。文档和可编译示例基于 `0.1.0-preview.3`;版本不同时,以安装包的 `package.json`、`exports` 和 `.d.ts` 为准。所有附带路径相对于本 Skill,跨项目使用不需要原开发仓库。
|
|
9
9
|
|
|
10
10
|
## 工作流程
|
|
11
11
|
|
|
@@ -21,6 +21,7 @@ description: 使用 auricui React 组件库开发深色应用、设置面板和
|
|
|
21
21
|
| --- | --- |
|
|
22
22
|
| 安装、入口、React/SSR、全局样式 | [esm-package.md](references/esm-package.md) |
|
|
23
23
|
| 按钮、表单、设置、弹窗、颜色和数字字段 | [core-components.md](references/core-components.md) |
|
|
24
|
+
| Agent 消息、工具执行、记忆、简报与个人助手 | [agent-components.md](references/agent-components.md) |
|
|
24
25
|
| AI 聊天、富文本、模型菜单、附件、工具和问答 | [chat-components.md](references/chat-components.md) |
|
|
25
26
|
| 项目、时间轴、媒体、专业编辑器 | [studio-components.md](references/studio-components.md) |
|
|
26
27
|
| 配色、字体、层级、Portal、动画 | [theme-motion.md](references/theme-motion.md) |
|
|
@@ -35,12 +36,14 @@ description: 使用 auricui React 组件库开发深色应用、设置面板和
|
|
|
35
36
|
```bash
|
|
36
37
|
python3 <Skill目录>/scripts/inspect_api.py --entry core --symbol CardButton --project <前端目录>
|
|
37
38
|
python3 <Skill目录>/scripts/inspect_api.py --entry chat --symbol PromptEditor --project <前端目录>
|
|
39
|
+
python3 <Skill目录>/scripts/inspect_api.py --entry agent --symbol MemoryCard --project <前端目录>
|
|
38
40
|
python3 <Skill目录>/scripts/inspect_api.py --entry studio
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
无 `--symbol` 时列出入口导出。工具基于 [API 索引](references/api-index.json),区分运行时和 type-only 导出;版本不同则沿安装包入口的 `export *` 检查当前声明,不把基线索引当成新版契约。
|
|
42
44
|
|
|
43
45
|
附带可复制并经过编译检查的示例:
|
|
46
|
+
- 主题和新增组件:`assets/examples/Theme.tsx`、`Drawer.tsx`、`Tree.tsx`、`MessageList.tsx`、`ToolCall.tsx`、`MemoryCard.tsx` 等,均使用公开导出。
|
|
44
47
|
- [BasicApp.tsx](assets/examples/BasicApp.tsx):应用根、表单、设置、确认弹窗和 Toast。
|
|
45
48
|
- [ChatPanel.tsx](assets/examples/ChatPanel.tsx):消息、输入、发送/取消与流式响应,通过 `reply` 注入业务请求。
|
|
46
49
|
- [ChatControls.tsx](assets/examples/ChatControls.tsx):模型选择、单步/多步问答、工具活动和文件差异。
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { ApprovalCard } from 'auricui/agent';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [status,setStatus]=useState<'pending'|'approved'|'rejected'>('pending');
|
|
7
|
+
return <div style={{display:'grid',gap:16,width:'100%'}}><ApprovalCard title="发送这封邮件?" description="收件人:design@example.com" status={status} onApprove={()=>setStatus('approved')} onReject={()=>setStatus('rejected')}><p>主题:本周设计评审</p></ApprovalCard>{status!=='pending'&&<button type="button" onClick={()=>setStatus('pending')}>重新演示</button>}</div>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { BriefingCard } from 'auricui/agent';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [selected,setSelected]=useState('');
|
|
7
|
+
return <div style={{width:'100%'}}><BriefingCard title="早上好,hehuan" subtitle="今天有一些值得关注的小事。" items={[{id:'1',title:'产品设计评审',detail:'准备好你的三个关键问题',meta:'10:30',onSelect:()=>setSelected('产品设计评审')},{id:'2',title:'阅读计划',detail:'本周已经完成 2 天',meta:'20 分钟'}]} footer="根据你提供的日程与目标整理"/>{selected&&<p role="status" style={{fontSize:12,marginTop:12}}>已选择:{selected}</p>}</div>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Checkbox } from 'auricui';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [selected, setSelected] = useState(['notes']);
|
|
7
|
+
const items = [{ id: 'notes', label: '笔记' }, { id: 'files', label: '文件' }, { id: 'tasks', label: '任务' }];
|
|
8
|
+
return <div style={{ display: 'grid', gap: 14 }}>
|
|
9
|
+
<Checkbox label="选择全部资料" checked={selected.length === items.length} indeterminate={selected.length > 0 && selected.length < items.length} onCheckedChange={checked => setSelected(checked ? items.map(item => item.id) : [])} />
|
|
10
|
+
{items.map(item => <Checkbox key={item.id} label={item.label} checked={selected.includes(item.id)} onCheckedChange={checked => setSelected(checked ? [...selected, item.id] : selected.filter(id => id !== item.id))} />)}
|
|
11
|
+
<Checkbox label="受保护的内容" description="禁用的选项不能被修改。" disabled />
|
|
12
|
+
</div>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Combobox } from 'auricui';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [value, setValue] = useState('shanghai');
|
|
7
|
+
return <div style={{ display: 'grid', gap: 14 }}><Combobox label="简报使用的时区" value={value} onValueChange={setValue} placeholder="搜索城市或时区…" options={[
|
|
8
|
+
{ value: 'shanghai', label: '上海 · Asia/Shanghai' },
|
|
9
|
+
{ value: 'tokyo', label: '东京 · Asia/Tokyo' },
|
|
10
|
+
{ value: 'london', label: '伦敦 · Europe/London' },
|
|
11
|
+
{ value: 'new-york', label: '纽约 · America/New_York' },
|
|
12
|
+
{ value: 'custom', label: '自定义时区(未开通)', disabled: true },
|
|
13
|
+
]} /><p role="status">已选择:{value}</p></div>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Checkbox, RadioGroup, Textarea, Drawer, CardButton } from 'auricui';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [open, setOpen] = useState(false);
|
|
7
|
+
const [side, setSide] = useState<'left' | 'right' | 'top' | 'bottom'>('right');
|
|
8
|
+
const [enabled, setEnabled] = useState(true);
|
|
9
|
+
return <div style={{ display: 'grid', gap: 18 }}><RadioGroup label="打开方向" value={side} onValueChange={value => setSide(value as typeof side)} orientation="horizontal" options={[{ value: 'left', label: '左侧' }, { value: 'right', label: '右侧' }, { value: 'top', label: '顶部' }, { value: 'bottom', label: '底部' }]} /><CardButton onClick={() => setOpen(true)}>打开抽屉</CardButton><Drawer open={open} onOpenChange={setOpen} title="助手偏好" description="设置这个工作空间中的个人偏好。" side={side} footer={<CardButton weight="primary" onClick={() => setOpen(false)}>完成</CardButton>}><div style={{ display: 'grid', gap: 24 }}><Checkbox label="接收每日简报" checked={enabled} onCheckedChange={setEnabled} /><Textarea label="补充说明" placeholder="例如:早上 9 点前保持安静" /></div></Drawer></div>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { MemoryCard } from 'auricui/agent';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [content,setContent]=useState('我偏好简洁的回答,重要事项使用列表。');
|
|
7
|
+
const [forgotten,setForgotten]=useState(false);
|
|
8
|
+
return forgotten?<button type="button" onClick={()=>setForgotten(false)}>重新演示记忆</button>:<MemoryCard content={content} source="你的明确偏好" updatedAt="今天 09:00" onEdit={()=>setContent('我喜欢先看到结论,再阅读详细说明。')} onForget={()=>setForgotten(true)}/>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { MessageBubble, MessageList } from 'auricui/agent';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [count,setCount]=useState(8);
|
|
7
|
+
return <div style={{width:'100%'}}><MessageList>{Array.from({length:count},(_,i)=><MessageBubble key={i} role={i%2?'assistant':'user'}>第 {i+1} 条消息。向上滚动查看历史时,新增消息会保留你的阅读位置。</MessageBubble>)}</MessageList><button type="button" onClick={()=>setCount(count+1)}>追加消息</button></div>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { AuricUIProvider, CardButton } from 'auricui';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [theme, setTheme] = useState<'dark' | 'light'>('dark');
|
|
7
|
+
return <AuricUIProvider theme={theme}>
|
|
8
|
+
<main style={{ background: 'var(--bg)', color: 'var(--text)', minHeight: '100vh', padding: 24 }}>
|
|
9
|
+
<CardButton onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>
|
|
10
|
+
切换到{theme === 'dark' ? '浅色' : '深色'}
|
|
11
|
+
</CardButton>
|
|
12
|
+
</main>
|
|
13
|
+
</AuricUIProvider>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { ToolCall } from 'auricui/agent';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [done,setDone]=useState(false);
|
|
7
|
+
return <div style={{display:'grid',gap:16,width:'100%'}}><ToolCall name="search_documents" status={done?'success':'running'} defaultOpen input={'{"query": "设计规范"}'} output={done?'找到 3 份相关文档。':'正在检索…'}/><button type="button" onClick={()=>setDone(!done)}>{done?'重新演示':'模拟完成'}</button></div>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Tree } from 'auricui';
|
|
3
|
+
import 'auricui/styles.css';
|
|
4
|
+
|
|
5
|
+
export default function Example() {
|
|
6
|
+
const [selected, setSelected] = useState('guide');
|
|
7
|
+
return <div style={{ display: 'grid', gap: 16 }}><Tree label="知识库目录" value={selected} onValueChange={setSelected} defaultExpanded={['workspace']} nodes={[
|
|
8
|
+
{ id: 'workspace', label: '工作空间', children: [
|
|
9
|
+
{ id: 'guide', label: '使用指南.md' },
|
|
10
|
+
{ id: 'projects', label: '项目', children: [{ id: 'auric', label: 'AuricUI.md' }, { id: 'ideas', label: 'Ideas.md' }] },
|
|
11
|
+
{ id: 'locked', label: '已锁定资料', disabled: true },
|
|
12
|
+
] },
|
|
13
|
+
{ id: 'personal', label: '个人笔记', children: [{ id: 'reading', label: '阅读清单.md' }] },
|
|
14
|
+
]} /><p role="status">已选择:{selected}</p></div>;
|
|
15
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Agent 与 Personal Agent
|
|
2
|
+
|
|
3
|
+
基线:`0.1.0-preview.3`。从 `auricui/agent` 导入,CSS 仍只导入一次 `auricui/styles.css`。这些组件不依赖 Chat Provider 或模型 SDK;宿主传入数据、维护状态并实现回调。
|
|
4
|
+
|
|
5
|
+
| 需求 | 组件 |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| 消息与滚动 | MessageBubble、MessageActions、MessageList、ResponseSwitcher |
|
|
8
|
+
| 内容与引用 | CodeBlock、Citation、SourceList、ArtifactCard、AttachmentChip |
|
|
9
|
+
| 输入辅助 | Suggestion、PromptTemplate、ContextUsage |
|
|
10
|
+
| 执行状态 | ThinkingIndicator、ReasoningDisclosure、AgentStatus、ToolCall、TaskSteps、RunSummary、Checkpoint |
|
|
11
|
+
| 会话与身份 | AgentCard、ConversationList |
|
|
12
|
+
| 操作确认 | ApprovalCard |
|
|
13
|
+
| 个人助手 | MemoryCard、GoalCard、ScheduleCard、ConnectorCard、ProactiveSuggestion、ActivityTimeline、AutonomyControl、BriefingCard |
|
|
14
|
+
|
|
15
|
+
先查询真实契约,例如:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
python3 <Skill目录>/scripts/inspect_api.py --entry agent --symbol ToolCall --project <前端目录>
|
|
19
|
+
python3 <Skill目录>/scripts/inspect_api.py --entry agent --symbol MemoryCard --project <前端目录>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 容易接错的行为
|
|
23
|
+
|
|
24
|
+
- MessageList 只在用户位于底部时跟随新增内容;用户向上阅读时保留位置。传入稳定的消息 key,不用随机 key 重建消息。
|
|
25
|
+
- ReasoningDisclosure 展示宿主提供的过程摘要,不生成模型内部思维链。ToolCall 的输入、输出、错误与执行状态也来自宿主。
|
|
26
|
+
- CodeBlock 复制原始字符串,默认没有语法着色;需要时通过 `renderLine` 接入项目的高亮器。
|
|
27
|
+
- Citation 仅接受 HTTP/HTTPS 来源,摘要使用 body Portal,支持 Escape、外部点击和视口边界。Portal 读取全局主题。
|
|
28
|
+
- ResponseSwitcher 索引从 0 开始;Pagination 的页码从 1 开始。ContextUsage 容量未知时传入无效 limit,会展示未知而不是编造百分比。
|
|
29
|
+
- ApprovalCard 的 `status` 来自应用;请求中传 `submitting`,完成后传 `approved` / `rejected`。回调不等同服务端授权。AutonomyControl 只是偏好选择器,权限仍由服务端执行。
|
|
30
|
+
- ScheduleCard 只展示 timezone / nextRun 并通知开关变化,不创建定时任务。ConnectorCard 不实现 OAuth。MemoryCard 的编辑/忘记回调不自动修改存储。
|
|
31
|
+
- ConversationList 的搜索值和筛选结果由宿主管理;PromptTemplate 字段和值受控,提交结果由应用消费。
|
|
32
|
+
|
|
33
|
+
独立可复制示例位于 `assets/examples/`:MessageList、ToolCall、ApprovalCard、MemoryCard、BriefingCard。示例动作仅改变演示状态,接入应用时替换为实际回调。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.0-preview.
|
|
2
|
+
"version": "0.1.0-preview.4",
|
|
3
3
|
"entries": {
|
|
4
4
|
"core": [
|
|
5
5
|
{
|
|
@@ -7,6 +7,31 @@
|
|
|
7
7
|
"kind": "runtime",
|
|
8
8
|
"declaration": "dist/types/library/provider.d.ts"
|
|
9
9
|
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Avatar",
|
|
12
|
+
"kind": "runtime",
|
|
13
|
+
"declaration": "dist/types/components/primitives/Avatar.d.ts"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "AvatarProps",
|
|
17
|
+
"kind": "type",
|
|
18
|
+
"declaration": "dist/types/components/primitives/Avatar.d.ts"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Breadcrumb",
|
|
22
|
+
"kind": "runtime",
|
|
23
|
+
"declaration": "dist/types/components/primitives/Breadcrumb.d.ts"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "BreadcrumbItem",
|
|
27
|
+
"kind": "type",
|
|
28
|
+
"declaration": "dist/types/components/primitives/Breadcrumb.d.ts"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "BreadcrumbProps",
|
|
32
|
+
"kind": "type",
|
|
33
|
+
"declaration": "dist/types/components/primitives/Breadcrumb.d.ts"
|
|
34
|
+
},
|
|
10
35
|
{
|
|
11
36
|
"name": "Card",
|
|
12
37
|
"kind": "runtime",
|
|
@@ -22,6 +47,16 @@
|
|
|
22
47
|
"kind": "runtime",
|
|
23
48
|
"declaration": "dist/types/components/Card.d.ts"
|
|
24
49
|
},
|
|
50
|
+
{
|
|
51
|
+
"name": "Checkbox",
|
|
52
|
+
"kind": "runtime",
|
|
53
|
+
"declaration": "dist/types/components/primitives/Checkbox.d.ts"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "CheckboxProps",
|
|
57
|
+
"kind": "type",
|
|
58
|
+
"declaration": "dist/types/components/primitives/Checkbox.d.ts"
|
|
59
|
+
},
|
|
25
60
|
{
|
|
26
61
|
"name": "ColorField",
|
|
27
62
|
"kind": "runtime",
|
|
@@ -32,6 +67,21 @@
|
|
|
32
67
|
"kind": "runtime",
|
|
33
68
|
"declaration": "dist/types/components/ColorPicker.d.ts"
|
|
34
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"name": "Combobox",
|
|
72
|
+
"kind": "runtime",
|
|
73
|
+
"declaration": "dist/types/components/primitives/Combobox.d.ts"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "ComboboxOption",
|
|
77
|
+
"kind": "type",
|
|
78
|
+
"declaration": "dist/types/components/primitives/Combobox.d.ts"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "ComboboxProps",
|
|
82
|
+
"kind": "type",
|
|
83
|
+
"declaration": "dist/types/components/primitives/Combobox.d.ts"
|
|
84
|
+
},
|
|
35
85
|
{
|
|
36
86
|
"name": "ConfirmDialog",
|
|
37
87
|
"kind": "runtime",
|
|
@@ -72,11 +122,31 @@
|
|
|
72
122
|
"kind": "runtime",
|
|
73
123
|
"declaration": "dist/types/components/PaneDivider.d.ts"
|
|
74
124
|
},
|
|
125
|
+
{
|
|
126
|
+
"name": "Drawer",
|
|
127
|
+
"kind": "runtime",
|
|
128
|
+
"declaration": "dist/types/components/primitives/Drawer.d.ts"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "DrawerProps",
|
|
132
|
+
"kind": "type",
|
|
133
|
+
"declaration": "dist/types/components/primitives/Drawer.d.ts"
|
|
134
|
+
},
|
|
75
135
|
{
|
|
76
136
|
"name": "EdgeGlyph",
|
|
77
137
|
"kind": "runtime",
|
|
78
138
|
"declaration": "dist/types/components/inspector-fields.d.ts"
|
|
79
139
|
},
|
|
140
|
+
{
|
|
141
|
+
"name": "EmptyState",
|
|
142
|
+
"kind": "runtime",
|
|
143
|
+
"declaration": "dist/types/components/primitives/EmptyState.d.ts"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "EmptyStateProps",
|
|
147
|
+
"kind": "type",
|
|
148
|
+
"declaration": "dist/types/components/primitives/EmptyState.d.ts"
|
|
149
|
+
},
|
|
80
150
|
{
|
|
81
151
|
"name": "FIELD",
|
|
82
152
|
"kind": "runtime",
|
|
@@ -192,6 +262,16 @@
|
|
|
192
262
|
"kind": "runtime",
|
|
193
263
|
"declaration": "dist/types/components/inspector-fields.d.ts"
|
|
194
264
|
},
|
|
265
|
+
{
|
|
266
|
+
"name": "Pagination",
|
|
267
|
+
"kind": "runtime",
|
|
268
|
+
"declaration": "dist/types/components/primitives/Pagination.d.ts"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "PaginationProps",
|
|
272
|
+
"kind": "type",
|
|
273
|
+
"declaration": "dist/types/components/primitives/Pagination.d.ts"
|
|
274
|
+
},
|
|
195
275
|
{
|
|
196
276
|
"name": "PaneDivider",
|
|
197
277
|
"kind": "runtime",
|
|
@@ -207,6 +287,31 @@
|
|
|
207
287
|
"kind": "runtime",
|
|
208
288
|
"declaration": "dist/types/components/Card.d.ts"
|
|
209
289
|
},
|
|
290
|
+
{
|
|
291
|
+
"name": "Progress",
|
|
292
|
+
"kind": "runtime",
|
|
293
|
+
"declaration": "dist/types/components/primitives/Progress.d.ts"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "ProgressProps",
|
|
297
|
+
"kind": "type",
|
|
298
|
+
"declaration": "dist/types/components/primitives/Progress.d.ts"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "RadioGroup",
|
|
302
|
+
"kind": "runtime",
|
|
303
|
+
"declaration": "dist/types/components/primitives/RadioGroup.d.ts"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "RadioGroupProps",
|
|
307
|
+
"kind": "type",
|
|
308
|
+
"declaration": "dist/types/components/primitives/RadioGroup.d.ts"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "RadioOption",
|
|
312
|
+
"kind": "type",
|
|
313
|
+
"declaration": "dist/types/components/primitives/RadioGroup.d.ts"
|
|
314
|
+
},
|
|
210
315
|
{
|
|
211
316
|
"name": "RadiusGlyph",
|
|
212
317
|
"kind": "runtime",
|
|
@@ -317,6 +422,16 @@
|
|
|
317
422
|
"kind": "runtime",
|
|
318
423
|
"declaration": "dist/types/components/settings/ui.d.ts"
|
|
319
424
|
},
|
|
425
|
+
{
|
|
426
|
+
"name": "Skeleton",
|
|
427
|
+
"kind": "runtime",
|
|
428
|
+
"declaration": "dist/types/components/primitives/Skeleton.d.ts"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "SkeletonProps",
|
|
432
|
+
"kind": "type",
|
|
433
|
+
"declaration": "dist/types/components/primitives/Skeleton.d.ts"
|
|
434
|
+
},
|
|
320
435
|
{
|
|
321
436
|
"name": "SliderField",
|
|
322
437
|
"kind": "runtime",
|
|
@@ -327,6 +442,31 @@
|
|
|
327
442
|
"kind": "runtime",
|
|
328
443
|
"declaration": "dist/types/components/inspector-fields.d.ts"
|
|
329
444
|
},
|
|
445
|
+
{
|
|
446
|
+
"name": "TabItem",
|
|
447
|
+
"kind": "type",
|
|
448
|
+
"declaration": "dist/types/components/primitives/Tabs.d.ts"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "Tabs",
|
|
452
|
+
"kind": "runtime",
|
|
453
|
+
"declaration": "dist/types/components/primitives/Tabs.d.ts"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "TabsProps",
|
|
457
|
+
"kind": "type",
|
|
458
|
+
"declaration": "dist/types/components/primitives/Tabs.d.ts"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "Textarea",
|
|
462
|
+
"kind": "runtime",
|
|
463
|
+
"declaration": "dist/types/components/primitives/Textarea.d.ts"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "TextareaProps",
|
|
467
|
+
"kind": "type",
|
|
468
|
+
"declaration": "dist/types/components/primitives/Textarea.d.ts"
|
|
469
|
+
},
|
|
330
470
|
{
|
|
331
471
|
"name": "Toast",
|
|
332
472
|
"kind": "runtime",
|
|
@@ -347,6 +487,21 @@
|
|
|
347
487
|
"kind": "runtime",
|
|
348
488
|
"declaration": "dist/types/components/Tooltip.d.ts"
|
|
349
489
|
},
|
|
490
|
+
{
|
|
491
|
+
"name": "Tree",
|
|
492
|
+
"kind": "runtime",
|
|
493
|
+
"declaration": "dist/types/components/primitives/Tree.d.ts"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "TreeNode",
|
|
497
|
+
"kind": "type",
|
|
498
|
+
"declaration": "dist/types/components/primitives/Tree.d.ts"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "TreeProps",
|
|
502
|
+
"kind": "type",
|
|
503
|
+
"declaration": "dist/types/components/primitives/Tree.d.ts"
|
|
504
|
+
},
|
|
350
505
|
{
|
|
351
506
|
"name": "usePaneSize",
|
|
352
507
|
"kind": "runtime",
|
|
@@ -2171,6 +2326,368 @@
|
|
|
2171
2326
|
"kind": "runtime",
|
|
2172
2327
|
"declaration": "dist/types/studio/components/WhatsNew.d.ts"
|
|
2173
2328
|
}
|
|
2329
|
+
],
|
|
2330
|
+
"agent": [
|
|
2331
|
+
{
|
|
2332
|
+
"name": "ActivityEvent",
|
|
2333
|
+
"kind": "type",
|
|
2334
|
+
"declaration": "dist/types/agent/ActivityTimeline.d.ts"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"name": "ActivityTimeline",
|
|
2338
|
+
"kind": "runtime",
|
|
2339
|
+
"declaration": "dist/types/agent/ActivityTimeline.d.ts"
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
"name": "ActivityTimelineProps",
|
|
2343
|
+
"kind": "type",
|
|
2344
|
+
"declaration": "dist/types/agent/ActivityTimeline.d.ts"
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"name": "AgentCard",
|
|
2348
|
+
"kind": "runtime",
|
|
2349
|
+
"declaration": "dist/types/agent/AgentCard.d.ts"
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
"name": "AgentCardProps",
|
|
2353
|
+
"kind": "type",
|
|
2354
|
+
"declaration": "dist/types/agent/AgentCard.d.ts"
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
"name": "AgentState",
|
|
2358
|
+
"kind": "type",
|
|
2359
|
+
"declaration": "dist/types/agent/AgentStatus.d.ts"
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
"name": "AgentStatus",
|
|
2363
|
+
"kind": "runtime",
|
|
2364
|
+
"declaration": "dist/types/agent/AgentStatus.d.ts"
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"name": "agentStatusLabels",
|
|
2368
|
+
"kind": "runtime",
|
|
2369
|
+
"declaration": "dist/types/agent/AgentStatus.d.ts"
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"name": "AgentStatusProps",
|
|
2373
|
+
"kind": "type",
|
|
2374
|
+
"declaration": "dist/types/agent/AgentStatus.d.ts"
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"name": "ApprovalCard",
|
|
2378
|
+
"kind": "runtime",
|
|
2379
|
+
"declaration": "dist/types/agent/ApprovalCard.d.ts"
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
"name": "ApprovalCardProps",
|
|
2383
|
+
"kind": "type",
|
|
2384
|
+
"declaration": "dist/types/agent/ApprovalCard.d.ts"
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
"name": "ArtifactCard",
|
|
2388
|
+
"kind": "runtime",
|
|
2389
|
+
"declaration": "dist/types/agent/ArtifactCard.d.ts"
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
"name": "ArtifactCardProps",
|
|
2393
|
+
"kind": "type",
|
|
2394
|
+
"declaration": "dist/types/agent/ArtifactCard.d.ts"
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"name": "AttachmentChip",
|
|
2398
|
+
"kind": "runtime",
|
|
2399
|
+
"declaration": "dist/types/agent/AttachmentChip.d.ts"
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
"name": "AttachmentChipProps",
|
|
2403
|
+
"kind": "type",
|
|
2404
|
+
"declaration": "dist/types/agent/AttachmentChip.d.ts"
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
"name": "AutonomyControl",
|
|
2408
|
+
"kind": "runtime",
|
|
2409
|
+
"declaration": "dist/types/agent/AutonomyControl.d.ts"
|
|
2410
|
+
},
|
|
2411
|
+
{
|
|
2412
|
+
"name": "AutonomyControlProps",
|
|
2413
|
+
"kind": "type",
|
|
2414
|
+
"declaration": "dist/types/agent/AutonomyControl.d.ts"
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"name": "AutonomyOption",
|
|
2418
|
+
"kind": "type",
|
|
2419
|
+
"declaration": "dist/types/agent/AutonomyControl.d.ts"
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
"name": "BriefingCard",
|
|
2423
|
+
"kind": "runtime",
|
|
2424
|
+
"declaration": "dist/types/agent/BriefingCard.d.ts"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"name": "BriefingCardProps",
|
|
2428
|
+
"kind": "type",
|
|
2429
|
+
"declaration": "dist/types/agent/BriefingCard.d.ts"
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
"name": "BriefingItem",
|
|
2433
|
+
"kind": "type",
|
|
2434
|
+
"declaration": "dist/types/agent/BriefingCard.d.ts"
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
"name": "Checkpoint",
|
|
2438
|
+
"kind": "runtime",
|
|
2439
|
+
"declaration": "dist/types/agent/Checkpoint.d.ts"
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"name": "CheckpointProps",
|
|
2443
|
+
"kind": "type",
|
|
2444
|
+
"declaration": "dist/types/agent/Checkpoint.d.ts"
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"name": "Citation",
|
|
2448
|
+
"kind": "runtime",
|
|
2449
|
+
"declaration": "dist/types/agent/Citation.d.ts"
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"name": "CitationProps",
|
|
2453
|
+
"kind": "type",
|
|
2454
|
+
"declaration": "dist/types/agent/Citation.d.ts"
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"name": "CodeBlock",
|
|
2458
|
+
"kind": "runtime",
|
|
2459
|
+
"declaration": "dist/types/agent/CodeBlock.d.ts"
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
"name": "CodeBlockProps",
|
|
2463
|
+
"kind": "type",
|
|
2464
|
+
"declaration": "dist/types/agent/CodeBlock.d.ts"
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
"name": "ConnectorCard",
|
|
2468
|
+
"kind": "runtime",
|
|
2469
|
+
"declaration": "dist/types/agent/ConnectorCard.d.ts"
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"name": "ConnectorCardProps",
|
|
2473
|
+
"kind": "type",
|
|
2474
|
+
"declaration": "dist/types/agent/ConnectorCard.d.ts"
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"name": "ContextUsage",
|
|
2478
|
+
"kind": "runtime",
|
|
2479
|
+
"declaration": "dist/types/agent/ContextUsage.d.ts"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
"name": "ContextUsageProps",
|
|
2483
|
+
"kind": "type",
|
|
2484
|
+
"declaration": "dist/types/agent/ContextUsage.d.ts"
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
"name": "ConversationItem",
|
|
2488
|
+
"kind": "type",
|
|
2489
|
+
"declaration": "dist/types/agent/ConversationList.d.ts"
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
"name": "ConversationList",
|
|
2493
|
+
"kind": "runtime",
|
|
2494
|
+
"declaration": "dist/types/agent/ConversationList.d.ts"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"name": "ConversationListProps",
|
|
2498
|
+
"kind": "type",
|
|
2499
|
+
"declaration": "dist/types/agent/ConversationList.d.ts"
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "GoalCard",
|
|
2503
|
+
"kind": "runtime",
|
|
2504
|
+
"declaration": "dist/types/agent/GoalCard.d.ts"
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
"name": "GoalCardProps",
|
|
2508
|
+
"kind": "type",
|
|
2509
|
+
"declaration": "dist/types/agent/GoalCard.d.ts"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
"name": "MemoryCard",
|
|
2513
|
+
"kind": "runtime",
|
|
2514
|
+
"declaration": "dist/types/agent/MemoryCard.d.ts"
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
"name": "MemoryCardProps",
|
|
2518
|
+
"kind": "type",
|
|
2519
|
+
"declaration": "dist/types/agent/MemoryCard.d.ts"
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
"name": "MessageAction",
|
|
2523
|
+
"kind": "type",
|
|
2524
|
+
"declaration": "dist/types/agent/MessageActions.d.ts"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"name": "MessageActions",
|
|
2528
|
+
"kind": "runtime",
|
|
2529
|
+
"declaration": "dist/types/agent/MessageActions.d.ts"
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
"name": "MessageActionsProps",
|
|
2533
|
+
"kind": "type",
|
|
2534
|
+
"declaration": "dist/types/agent/MessageActions.d.ts"
|
|
2535
|
+
},
|
|
2536
|
+
{
|
|
2537
|
+
"name": "MessageBubble",
|
|
2538
|
+
"kind": "runtime",
|
|
2539
|
+
"declaration": "dist/types/agent/MessageBubble.d.ts"
|
|
2540
|
+
},
|
|
2541
|
+
{
|
|
2542
|
+
"name": "MessageBubbleProps",
|
|
2543
|
+
"kind": "type",
|
|
2544
|
+
"declaration": "dist/types/agent/MessageBubble.d.ts"
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
"name": "MessageList",
|
|
2548
|
+
"kind": "runtime",
|
|
2549
|
+
"declaration": "dist/types/agent/MessageList.d.ts"
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
"name": "MessageListProps",
|
|
2553
|
+
"kind": "type",
|
|
2554
|
+
"declaration": "dist/types/agent/MessageList.d.ts"
|
|
2555
|
+
},
|
|
2556
|
+
{
|
|
2557
|
+
"name": "ProactiveSuggestion",
|
|
2558
|
+
"kind": "runtime",
|
|
2559
|
+
"declaration": "dist/types/agent/ProactiveSuggestion.d.ts"
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
"name": "ProactiveSuggestionProps",
|
|
2563
|
+
"kind": "type",
|
|
2564
|
+
"declaration": "dist/types/agent/ProactiveSuggestion.d.ts"
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
"name": "PromptTemplate",
|
|
2568
|
+
"kind": "runtime",
|
|
2569
|
+
"declaration": "dist/types/agent/PromptTemplate.d.ts"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"name": "PromptTemplateProps",
|
|
2573
|
+
"kind": "type",
|
|
2574
|
+
"declaration": "dist/types/agent/PromptTemplate.d.ts"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
"name": "PromptVariable",
|
|
2578
|
+
"kind": "type",
|
|
2579
|
+
"declaration": "dist/types/agent/PromptTemplate.d.ts"
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
"name": "ReasoningDisclosure",
|
|
2583
|
+
"kind": "runtime",
|
|
2584
|
+
"declaration": "dist/types/agent/ReasoningDisclosure.d.ts"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"name": "ReasoningDisclosureProps",
|
|
2588
|
+
"kind": "type",
|
|
2589
|
+
"declaration": "dist/types/agent/ReasoningDisclosure.d.ts"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"name": "resolvePromptTemplate",
|
|
2593
|
+
"kind": "runtime",
|
|
2594
|
+
"declaration": "dist/types/agent/PromptTemplate.d.ts"
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
"name": "ResponseSwitcher",
|
|
2598
|
+
"kind": "runtime",
|
|
2599
|
+
"declaration": "dist/types/agent/ResponseSwitcher.d.ts"
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
"name": "ResponseSwitcherProps",
|
|
2603
|
+
"kind": "type",
|
|
2604
|
+
"declaration": "dist/types/agent/ResponseSwitcher.d.ts"
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"name": "RunMetric",
|
|
2608
|
+
"kind": "type",
|
|
2609
|
+
"declaration": "dist/types/agent/RunSummary.d.ts"
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"name": "RunSummary",
|
|
2613
|
+
"kind": "runtime",
|
|
2614
|
+
"declaration": "dist/types/agent/RunSummary.d.ts"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"name": "RunSummaryProps",
|
|
2618
|
+
"kind": "type",
|
|
2619
|
+
"declaration": "dist/types/agent/RunSummary.d.ts"
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
"name": "ScheduleCard",
|
|
2623
|
+
"kind": "runtime",
|
|
2624
|
+
"declaration": "dist/types/agent/ScheduleCard.d.ts"
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
"name": "ScheduleCardProps",
|
|
2628
|
+
"kind": "type",
|
|
2629
|
+
"declaration": "dist/types/agent/ScheduleCard.d.ts"
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
"name": "SourceItem",
|
|
2633
|
+
"kind": "type",
|
|
2634
|
+
"declaration": "dist/types/agent/SourceList.d.ts"
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
"name": "SourceList",
|
|
2638
|
+
"kind": "runtime",
|
|
2639
|
+
"declaration": "dist/types/agent/SourceList.d.ts"
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
"name": "SourceListProps",
|
|
2643
|
+
"kind": "type",
|
|
2644
|
+
"declaration": "dist/types/agent/SourceList.d.ts"
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
"name": "Suggestion",
|
|
2648
|
+
"kind": "runtime",
|
|
2649
|
+
"declaration": "dist/types/agent/Suggestion.d.ts"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"name": "SuggestionProps",
|
|
2653
|
+
"kind": "type",
|
|
2654
|
+
"declaration": "dist/types/agent/Suggestion.d.ts"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"name": "TaskStep",
|
|
2658
|
+
"kind": "type",
|
|
2659
|
+
"declaration": "dist/types/agent/TaskSteps.d.ts"
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
"name": "TaskSteps",
|
|
2663
|
+
"kind": "runtime",
|
|
2664
|
+
"declaration": "dist/types/agent/TaskSteps.d.ts"
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
"name": "TaskStepsProps",
|
|
2668
|
+
"kind": "type",
|
|
2669
|
+
"declaration": "dist/types/agent/TaskSteps.d.ts"
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
"name": "ThinkingIndicator",
|
|
2673
|
+
"kind": "runtime",
|
|
2674
|
+
"declaration": "dist/types/agent/ThinkingIndicator.d.ts"
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
"name": "ThinkingIndicatorProps",
|
|
2678
|
+
"kind": "type",
|
|
2679
|
+
"declaration": "dist/types/agent/ThinkingIndicator.d.ts"
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
"name": "ToolCall",
|
|
2683
|
+
"kind": "runtime",
|
|
2684
|
+
"declaration": "dist/types/agent/ToolCall.d.ts"
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"name": "ToolCallProps",
|
|
2688
|
+
"kind": "type",
|
|
2689
|
+
"declaration": "dist/types/agent/ToolCall.d.ts"
|
|
2690
|
+
}
|
|
2174
2691
|
]
|
|
2175
2692
|
}
|
|
2176
2693
|
}
|
|
@@ -28,3 +28,17 @@
|
|
|
28
28
|
设置面板可直接使用 [BasicApp.tsx](../assets/examples/BasicApp.tsx)。`SettingsDialog` 提供壳和页面导航,页面内容由应用提供。`SettingsModal` 是 `auricui/studio` 的专业业务设置页面,需要服务适配,不用于代替普通设置壳。
|
|
29
29
|
|
|
30
30
|
通用浮层使用 `Popover` 包含 `Card` 或带 `POPOVER_CHROME` 的面板。不要从 npm 导入演示工程私有的 `Modal`;包中也没有通用 `Button` / `Input` 别名。列表、表格、路由等需求先查真实导出,缺失时用已有控件和原生语义元素组合,不要虚构组件。
|
|
31
|
+
|
|
32
|
+
## preview.3 新增的基础组件
|
|
33
|
+
|
|
34
|
+
以下现在是 `auricui` 的正式导出,不需要复制展示站的原生 HTML 配方:
|
|
35
|
+
|
|
36
|
+
- Checkbox:原生表单属性、`label`、`indeterminate`、`onCheckedChange`;三态时由应用计算 `checked` 和 `indeterminate`。
|
|
37
|
+
- RadioGroup:`options`、`value/defaultValue`、`onValueChange`;原生 radio 键盘与表单语义。
|
|
38
|
+
- Drawer:受控 `open/onOpenChange`、四个 `side`、`size`、footer;body Portal、进出动画、焦点约束、焦点恢复和滚动锁。
|
|
39
|
+
- Tree:稳定唯一的 node.id;`value/onValueChange` 与 `expanded/onExpandedChange` 独立控制;单选,支持方向键及键入查找。不提供异步加载、多选或虚拟化。
|
|
40
|
+
- Combobox:`value/onValueChange`、`options`、`label`;客户端过滤与键盘选择。大列表或远端搜索需要宿主另行实现。
|
|
41
|
+
- Tabs:items 包含 value/label/content;支持键盘切换,保留隐藏面板状态。
|
|
42
|
+
- Textarea、Progress(无 value 时不定进度)、Skeleton、EmptyState、Avatar、Breadcrumb、Pagination。
|
|
43
|
+
|
|
44
|
+
通过 `inspect_api.py --entry core --symbol Drawer` 等命令读取准确属性。可运行示例:`assets/examples/Drawer.tsx`、`Checkbox.tsx`、`Tree.tsx`、`Combobox.tsx`。使用 CSS 变量,不需要安装额外 headless 或动画库。
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
| 富文本 | Lexical/@lexical/react/Yjs 由包依赖安装 | 按使用功能安装,Lexical各包版本一致 |
|
|
14
14
|
| 动画 | 内置 CSS keyframes/transition | 移植原样式和触发逻辑 |
|
|
15
15
|
|
|
16
|
-
脚本检查 React 主版本、清单与安装状态、React/DOM
|
|
16
|
+
脚本检查 React 主版本、清单与安装状态、React/DOM 一致性、根入口、agent/chat/studio 入口和传递依赖是否存在。它不完整求解 semver,也不检查每个依赖的实际运行兼容性;升级包后仍应运行项目类型检查和构建。`npm ls` 可进一步核验依赖树。
|
|
17
17
|
|
|
18
18
|
源码模式显式传 `--mode source`,默认检查 React19、TS、Tailwind4、字体与图标;Vite工程检查插件。已有其他构建器保留其配置。scope包名可用 `--library-package @scope/name`。
|
|
19
19
|
|
|
20
20
|
GSAP、Motion、Zustand 不为套用视觉而必装。依赖通过后人工确认全局 CSS、首屏主题、Chat Portal、原生动画/reduced-motion。消费方不得把技能检查通过等同于交互或视觉验收。
|
|
21
|
+
|
|
22
|
+
当前成品包使用 Lucide 0.482.0。旧版 0.469.0 声明可能因 ReactSVG 类型报错,项目直接使用图标时请运行严格类型检查确认兼容;不要用 skipLibCheck 掩盖该错误。
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## 版本与安装
|
|
4
4
|
|
|
5
|
-
本文基线 `auricui@0.1.0-preview.
|
|
5
|
+
本文基线 `auricui@0.1.0-preview.3`,纯 ESM,入口为 `auricui`、`auricui/agent`、`auricui/chat`、`auricui/studio`、`auricui/styles.css`。该版本已通过本地 tarball 验证,尚未发布 npm;新增组件请使用附带包。远端命令仅在该版本实际发布后可用,先查询再安装。
|
|
6
6
|
|
|
7
7
|
已有项目优先使用锁文件中的兼容版本;新项目可查询并锁定基线版本。沿用项目包管理器,以下为 npm 示例:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm view auricui@0.1.0-preview.
|
|
11
|
-
npm install --save-exact auricui@0.1.0-preview.
|
|
10
|
+
npm view auricui@0.1.0-preview.3 version --registry=https://registry.npmjs.org/ --prefer-online
|
|
11
|
+
npm install --save-exact auricui@0.1.0-preview.3 --registry=https://registry.npmjs.org/
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
仅当用户希望跟随预览渠道时用 `auricui@next`,`next` 会移动,不能假设永远对应本文基线。已有 React 19 项目复用其 React/DOM 版本;新建项目按框架要求安装两者。包的 peer 是 `^19.0.0`,未验证 React 18。
|
|
15
15
|
|
|
16
|
-
离线或 registry 不可用时,可将 Skill 内 `assets/library/auricui-0.1.0-preview.
|
|
16
|
+
离线或 registry 不可用时,可将 Skill 内 `assets/library/auricui-0.1.0-preview.3.tgz` 复制到目标项目 `vendor/`,再安装相对路径。它提供当前基线包本体,传递依赖仍需网络或缓存。不能把用户全局 Skill 的绝对路径写入项目依赖。校验摘要见 [library-manifest.json](library-manifest.json)。
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm install ./vendor/auricui-0.1.0-preview.
|
|
19
|
+
npm install ./vendor/auricui-0.1.0-preview.3.tgz
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 应用根
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"file": "assets/library/auricui-0.1.0-preview.
|
|
2
|
+
"file": "assets/library/auricui-0.1.0-preview.4.tgz",
|
|
3
3
|
"name": "auricui",
|
|
4
|
-
"version": "0.1.0-preview.
|
|
5
|
-
"sha256": "
|
|
4
|
+
"version": "0.1.0-preview.4",
|
|
5
|
+
"sha256": "bf8b5548dc39f44b8f6ec41d7bc0af9b9904f38e198f22be68c3db4cee4be982",
|
|
6
6
|
"format": "esm",
|
|
7
7
|
"publication": {
|
|
8
|
-
"submitted":
|
|
9
|
-
"install_verified":
|
|
8
|
+
"submitted": false,
|
|
9
|
+
"install_verified": true,
|
|
10
|
+
"verification": "local tarball, NodeNext types, ESM/SSR and browser build"
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -19,3 +19,31 @@ Card 通常 radius=12px;CardButton 高28px、radius=8px。其他控件按自
|
|
|
19
19
|
消费应用新增的布局和示例 `.auricui-example-*` 使用自有 CSS。只有启用应用的 Tailwind 构建时才新增相应 utility 类;包内现存类不保证覆盖将来随意写入的 utility。
|
|
20
20
|
|
|
21
21
|
组件 CSS 含全局基础样式与通用变量,集成到旧站点先检查 body、字体、按钮和全局变量冲突。不要只用局部 wrapper 就宣称完整隔离。最终检查弹层继承、键盘 focus/Escape/外部点击、长文本和 reduced-motion。
|
|
22
|
+
|
|
23
|
+
## 切换与自定义
|
|
24
|
+
|
|
25
|
+
完整切换示例见 `assets/examples/Theme.tsx`。Provider 接受 `dark | light`,不自动保存偏好,也没有 `system` 值。需要系统主题时由宿主监听 matchMedia,并传入解析后的值。SSR 从 Cookie 等服务端信息得到初始值,同时写入 html 和 Provider,避免 hydration 与首屏颜色不一致。
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import 'auricui/styles.css';
|
|
29
|
+
import './theme.css'; // 覆盖放在库样式之后
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
:root[data-theme='dark'],
|
|
34
|
+
[data-theme='dark'] .auricui-chat {
|
|
35
|
+
--bg: #17181c;
|
|
36
|
+
--panel: #1d1e23;
|
|
37
|
+
--surface: #22232a;
|
|
38
|
+
--card-bg: var(--surface);
|
|
39
|
+
--text: #eeeef2;
|
|
40
|
+
--text-muted: #a5a7b3;
|
|
41
|
+
--accent: #c6bce8;
|
|
42
|
+
--accent-soft: rgba(198, 188, 232, .12);
|
|
43
|
+
--on-accent: #1d172d;
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Chat 自己声明变量,所以同时覆盖它的作用域;Provider 的 Chat layer 会匹配同一选择器。Drawer 和 Citation 挂在 body,局部 wrapper 变量不会跨 Portal;完整应用在 html 上配置主题。CardButton primary 的背景是 `--text`、文字是 `--panel`,不是 `--accent`;品牌按钮使用应用自己的 class,不改整页文本色。
|
|
48
|
+
|
|
49
|
+
新增组件的统一动效变量:`--auricui-motion-fast:140ms`、`--auricui-motion-normal:220ms`、`--auricui-motion-slow:320ms`、`--auricui-ease-out:cubic-bezier(.2,.8,.2,1)`。覆盖影响使用该变量的动效,不替换原有所有 Chat/Studio 时长。系统 reduced-motion 自动降级。
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
npm config get registry
|
|
23
|
-
npm view auricui@0.1.0-preview.
|
|
23
|
+
npm view auricui@0.1.0-preview.3 version --registry=https://registry.npmjs.org/ --prefer-online
|
|
24
24
|
npm view auricui dist-tags --json --registry=https://registry.npmjs.org/ --prefer-online
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -62,7 +62,7 @@ def inspect(project, mode='package', library_package='auricui'):
|
|
|
62
62
|
library = json.loads(location.read_text())
|
|
63
63
|
base = location.parent
|
|
64
64
|
exports = library.get('exports', {})
|
|
65
|
-
for key in ['.', './chat', './studio', './styles.css']:
|
|
65
|
+
for key in ['.', './agent', './chat', './studio', './styles.css']:
|
|
66
66
|
entry = exports.get(key)
|
|
67
67
|
paths = [entry] if isinstance(entry, str) else [entry.get('import'), entry.get('types')] if isinstance(entry, dict) else []
|
|
68
68
|
ok = bool(paths) and all(isinstance(p, str) and (base / p).is_file() for p in paths)
|
|
@@ -99,7 +99,8 @@ def main():
|
|
|
99
99
|
else:
|
|
100
100
|
print('AuricUI 依赖检查:' + result['project'])
|
|
101
101
|
for item in result['checks']:
|
|
102
|
-
|
|
102
|
+
version = f": {item.get('installed') or '未安装'}" if 'installed' in item else ''
|
|
103
|
+
print(f"[{item['status']}] {item['package']}{version} — {item['message']}")
|
|
103
104
|
print('仍需人工检查:' + ';'.join(result['manual_checks']))
|
|
104
105
|
return 0 if result['passed'] else 1
|
|
105
106
|
|
|
@@ -8,7 +8,7 @@ from pathlib import Path, PurePosixPath
|
|
|
8
8
|
|
|
9
9
|
def main():
|
|
10
10
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
11
|
-
parser.add_argument('--entry', choices=['core', 'chat', 'studio'], default='core')
|
|
11
|
+
parser.add_argument('--entry', choices=['core', 'chat', 'studio', 'agent'], default='core')
|
|
12
12
|
parser.add_argument('--symbol')
|
|
13
13
|
parser.add_argument('--file', help='Read a related declaration path, e.g. dist/types/chat/lib/question-types.d.ts')
|
|
14
14
|
parser.add_argument('--project', type=Path)
|