orbcafe-ui 3.1.7 → 3.1.8
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/dist/index.d.mts +30 -7
- package/dist/index.d.ts +30 -7
- package/dist/index.js +21 -20
- package/dist/index.mjs +20 -19
- package/dist/orbis.css +157 -0
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -2806,6 +2806,7 @@ declare const en: {
|
|
|
2806
2806
|
readonly 'omph.duration': "Duration";
|
|
2807
2807
|
readonly 'omph.send': "Send";
|
|
2808
2808
|
readonly 'omph.stop': "Stop";
|
|
2809
|
+
readonly 'omph.supplement.queued': "Added to the running task";
|
|
2809
2810
|
readonly 'omph.turnRail': "Turns";
|
|
2810
2811
|
readonly 'omph.secondUnit': "s";
|
|
2811
2812
|
readonly 'omph.minuteUnit': "m";
|
|
@@ -2828,6 +2829,7 @@ declare const en: {
|
|
|
2828
2829
|
readonly 'omph.preview.line': "Line {start}";
|
|
2829
2830
|
readonly 'omph.preview.lines': "Lines {start}–{end}";
|
|
2830
2831
|
readonly 'omph.preview.truncated': "Showing the first {shown} of {total} lines";
|
|
2832
|
+
readonly 'omph.preview.sheetTruncated': "Showing the first {shown} of {total} rows";
|
|
2831
2833
|
readonly 'omph.preview.imageFailed': "The image could not be displayed";
|
|
2832
2834
|
readonly 'omph.preview.zoomIn': "Zoom in";
|
|
2833
2835
|
readonly 'omph.preview.zoomOut': "Zoom out";
|
|
@@ -2850,6 +2852,11 @@ declare const en: {
|
|
|
2850
2852
|
readonly 'omph.input.upload': "Upload file";
|
|
2851
2853
|
readonly 'omph.input.send': "Send message";
|
|
2852
2854
|
readonly 'omph.input.stop': "Stop generating";
|
|
2855
|
+
readonly 'omph.input.queue.ask': "Agent is running. Send this now or after the turn?";
|
|
2856
|
+
readonly 'omph.input.queue.sendNow': "Send now";
|
|
2857
|
+
readonly 'omph.input.queue.afterTurn': "Send after this turn";
|
|
2858
|
+
readonly 'omph.input.queue.queued': "Queued — sends after this turn";
|
|
2859
|
+
readonly 'omph.input.queue.cancel': "Cancel";
|
|
2853
2860
|
readonly 'omph.input.message': "Message input";
|
|
2854
2861
|
readonly 'omph.input.tools': "Input tools";
|
|
2855
2862
|
readonly 'agentui.html.defaultTitle': "Interactive HTML";
|
|
@@ -3580,12 +3587,12 @@ declare const AgentPanel: react__default.FC<AgentPanelProps>;
|
|
|
3580
3587
|
*
|
|
3581
3588
|
* 内容大纲:
|
|
3582
3589
|
* - 文件引用(路径与行区间)
|
|
3583
|
-
* - 预览内容体(Markdown / 代码 / 图片 / 缺失 / 不支持)
|
|
3590
|
+
* - 预览内容体(Markdown / 代码 / 图片 / 内嵌文档 / 电子表格 / 缺失 / 不支持)
|
|
3584
3591
|
* - 宿主提供的加载函数、链接解析函数、布局模式
|
|
3585
3592
|
*
|
|
3586
3593
|
* 作者:ORBAICODER
|
|
3587
|
-
* 版本:1.
|
|
3588
|
-
* 日期:2026-10-
|
|
3594
|
+
* 版本:1.1.0
|
|
3595
|
+
* 日期:2026-10-23
|
|
3589
3596
|
*
|
|
3590
3597
|
* 作用:定义 OMPHPanel 与宿主之间的文件预览边界。面板不读取文件系统,只渲染宿主交回的内容。
|
|
3591
3598
|
*
|
|
@@ -3595,6 +3602,7 @@ declare const AgentPanel: react__default.FC<AgentPanelProps>;
|
|
|
3595
3602
|
* 3. 面板按 body.kind 选择查看器;读取失败与文件缺失是两种不同的结果。
|
|
3596
3603
|
*
|
|
3597
3604
|
* ChangeLog:
|
|
3605
|
+
* - 1.1.0 2026-10-23 新增 sheet 内容体:xlsx 由原字节/URL 在面板内解析成表格,下载给原文件。
|
|
3598
3606
|
* - 1.0.0 2026-10-04 初始版本。
|
|
3599
3607
|
*/
|
|
3600
3608
|
interface OMPHFileRef {
|
|
@@ -3606,7 +3614,7 @@ interface OMPHFileRef {
|
|
|
3606
3614
|
endLine?: number;
|
|
3607
3615
|
}
|
|
3608
3616
|
type OMPHFileBody =
|
|
3609
|
-
/** previewOnly:text
|
|
3617
|
+
/** previewOnly:text 只是宿主的预览渲染(如转成表格文本),不是文件本体——不出现下载按钮,真文件走 onOpenFileExternally。 */
|
|
3610
3618
|
{
|
|
3611
3619
|
kind: 'markdown';
|
|
3612
3620
|
text: string;
|
|
@@ -3628,12 +3636,22 @@ type OMPHFileBody =
|
|
|
3628
3636
|
mimeType?: string;
|
|
3629
3637
|
caption?: string;
|
|
3630
3638
|
}
|
|
3639
|
+
/**
|
|
3640
|
+
* 电子表格(xlsx)。bytes 或 url 至少给一个;面板自己解析并渲染成表格,
|
|
3641
|
+
* 下载按钮拿到的是原文件。多工作表给标签页切换。样式不还原:日期按序列值显示。
|
|
3642
|
+
*/
|
|
3643
|
+
| {
|
|
3644
|
+
kind: 'sheet';
|
|
3645
|
+
bytes?: ArrayBuffer | Uint8Array;
|
|
3646
|
+
url?: string;
|
|
3647
|
+
fileName?: string;
|
|
3648
|
+
}
|
|
3631
3649
|
/** 文件不存在。不提供重试,只给说明。 */
|
|
3632
3650
|
| {
|
|
3633
3651
|
kind: 'missing';
|
|
3634
3652
|
message?: string;
|
|
3635
3653
|
}
|
|
3636
|
-
/**
|
|
3654
|
+
/** 文件存在但本面板无法渲染(压缩包等)。 */
|
|
3637
3655
|
| {
|
|
3638
3656
|
kind: 'unsupported';
|
|
3639
3657
|
message?: string;
|
|
@@ -3668,8 +3686,8 @@ type OMPHFilePreviewLayout = 'auto' | 'split' | 'overlay';
|
|
|
3668
3686
|
* - 可覆盖的界面文案
|
|
3669
3687
|
*
|
|
3670
3688
|
* 作者:ORBAICODER
|
|
3671
|
-
* 版本:1.
|
|
3672
|
-
* 日期:2026-10-
|
|
3689
|
+
* 版本:1.7.0
|
|
3690
|
+
* 日期:2026-10-23
|
|
3673
3691
|
*
|
|
3674
3692
|
* 作用:定义 OMPHPanel 的宿主数据契约。状态枚举保留 AgentPanel 的五态,消息改成 Harness 会话面板的轮次结构。
|
|
3675
3693
|
*
|
|
@@ -3678,6 +3696,7 @@ type OMPHFilePreviewLayout = 'auto' | 'split' | 'overlay';
|
|
|
3678
3696
|
* 2. 提供默认英文文案,宿主用 labels 覆盖,组件内部不写死业务句子。
|
|
3679
3697
|
*
|
|
3680
3698
|
* ChangeLog:
|
|
3699
|
+
* - 1.7.0 2026-10-23 用户消息增加 queued 标记(运行中补充的输入),新增 supplementQueued 文案。
|
|
3681
3700
|
* - 1.6.0 2026-10-14 增加会话摘要,以及新建对话、对话列表的文案。
|
|
3682
3701
|
* - 1.5.0 2026-10-07 审批决定增加预置选项和 Other 输入。
|
|
3683
3702
|
* - 1.4.0 2026-10-07 增加审批卡的请求、决定和默认文案。
|
|
@@ -3698,6 +3717,8 @@ interface OMPHTurnMessage {
|
|
|
3698
3717
|
timestamp: Date;
|
|
3699
3718
|
/** 为真时内容已经是宿主追加后的全文,组件只画已到达的部分并显示光标。 */
|
|
3700
3719
|
streaming?: boolean;
|
|
3720
|
+
/** Agent 运行中补充的输入:气泡画成待送达的样子并挂提示;宿主送达后清掉。 */
|
|
3721
|
+
queued?: boolean;
|
|
3701
3722
|
}
|
|
3702
3723
|
interface OMPHProcessItem {
|
|
3703
3724
|
id: string;
|
|
@@ -3801,6 +3822,7 @@ interface OMPHPanelLabels {
|
|
|
3801
3822
|
duration: string;
|
|
3802
3823
|
send: string;
|
|
3803
3824
|
stop: string;
|
|
3825
|
+
supplementQueued: string;
|
|
3804
3826
|
turnRail: string;
|
|
3805
3827
|
secondUnit: string;
|
|
3806
3828
|
minuteUnit: string;
|
|
@@ -3822,6 +3844,7 @@ interface OMPHPanelLabels {
|
|
|
3822
3844
|
previewResize: string;
|
|
3823
3845
|
previewLines: (start: number, end: number) => string;
|
|
3824
3846
|
previewTruncated: (shown: number, total: number) => string;
|
|
3847
|
+
previewSheetTruncated: (shown: number, total: number) => string;
|
|
3825
3848
|
imageFailed: string;
|
|
3826
3849
|
zoomIn: string;
|
|
3827
3850
|
zoomOut: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2806,6 +2806,7 @@ declare const en: {
|
|
|
2806
2806
|
readonly 'omph.duration': "Duration";
|
|
2807
2807
|
readonly 'omph.send': "Send";
|
|
2808
2808
|
readonly 'omph.stop': "Stop";
|
|
2809
|
+
readonly 'omph.supplement.queued': "Added to the running task";
|
|
2809
2810
|
readonly 'omph.turnRail': "Turns";
|
|
2810
2811
|
readonly 'omph.secondUnit': "s";
|
|
2811
2812
|
readonly 'omph.minuteUnit': "m";
|
|
@@ -2828,6 +2829,7 @@ declare const en: {
|
|
|
2828
2829
|
readonly 'omph.preview.line': "Line {start}";
|
|
2829
2830
|
readonly 'omph.preview.lines': "Lines {start}–{end}";
|
|
2830
2831
|
readonly 'omph.preview.truncated': "Showing the first {shown} of {total} lines";
|
|
2832
|
+
readonly 'omph.preview.sheetTruncated': "Showing the first {shown} of {total} rows";
|
|
2831
2833
|
readonly 'omph.preview.imageFailed': "The image could not be displayed";
|
|
2832
2834
|
readonly 'omph.preview.zoomIn': "Zoom in";
|
|
2833
2835
|
readonly 'omph.preview.zoomOut': "Zoom out";
|
|
@@ -2850,6 +2852,11 @@ declare const en: {
|
|
|
2850
2852
|
readonly 'omph.input.upload': "Upload file";
|
|
2851
2853
|
readonly 'omph.input.send': "Send message";
|
|
2852
2854
|
readonly 'omph.input.stop': "Stop generating";
|
|
2855
|
+
readonly 'omph.input.queue.ask': "Agent is running. Send this now or after the turn?";
|
|
2856
|
+
readonly 'omph.input.queue.sendNow': "Send now";
|
|
2857
|
+
readonly 'omph.input.queue.afterTurn': "Send after this turn";
|
|
2858
|
+
readonly 'omph.input.queue.queued': "Queued — sends after this turn";
|
|
2859
|
+
readonly 'omph.input.queue.cancel': "Cancel";
|
|
2853
2860
|
readonly 'omph.input.message': "Message input";
|
|
2854
2861
|
readonly 'omph.input.tools': "Input tools";
|
|
2855
2862
|
readonly 'agentui.html.defaultTitle': "Interactive HTML";
|
|
@@ -3580,12 +3587,12 @@ declare const AgentPanel: react__default.FC<AgentPanelProps>;
|
|
|
3580
3587
|
*
|
|
3581
3588
|
* 内容大纲:
|
|
3582
3589
|
* - 文件引用(路径与行区间)
|
|
3583
|
-
* - 预览内容体(Markdown / 代码 / 图片 / 缺失 / 不支持)
|
|
3590
|
+
* - 预览内容体(Markdown / 代码 / 图片 / 内嵌文档 / 电子表格 / 缺失 / 不支持)
|
|
3584
3591
|
* - 宿主提供的加载函数、链接解析函数、布局模式
|
|
3585
3592
|
*
|
|
3586
3593
|
* 作者:ORBAICODER
|
|
3587
|
-
* 版本:1.
|
|
3588
|
-
* 日期:2026-10-
|
|
3594
|
+
* 版本:1.1.0
|
|
3595
|
+
* 日期:2026-10-23
|
|
3589
3596
|
*
|
|
3590
3597
|
* 作用:定义 OMPHPanel 与宿主之间的文件预览边界。面板不读取文件系统,只渲染宿主交回的内容。
|
|
3591
3598
|
*
|
|
@@ -3595,6 +3602,7 @@ declare const AgentPanel: react__default.FC<AgentPanelProps>;
|
|
|
3595
3602
|
* 3. 面板按 body.kind 选择查看器;读取失败与文件缺失是两种不同的结果。
|
|
3596
3603
|
*
|
|
3597
3604
|
* ChangeLog:
|
|
3605
|
+
* - 1.1.0 2026-10-23 新增 sheet 内容体:xlsx 由原字节/URL 在面板内解析成表格,下载给原文件。
|
|
3598
3606
|
* - 1.0.0 2026-10-04 初始版本。
|
|
3599
3607
|
*/
|
|
3600
3608
|
interface OMPHFileRef {
|
|
@@ -3606,7 +3614,7 @@ interface OMPHFileRef {
|
|
|
3606
3614
|
endLine?: number;
|
|
3607
3615
|
}
|
|
3608
3616
|
type OMPHFileBody =
|
|
3609
|
-
/** previewOnly:text
|
|
3617
|
+
/** previewOnly:text 只是宿主的预览渲染(如转成表格文本),不是文件本体——不出现下载按钮,真文件走 onOpenFileExternally。 */
|
|
3610
3618
|
{
|
|
3611
3619
|
kind: 'markdown';
|
|
3612
3620
|
text: string;
|
|
@@ -3628,12 +3636,22 @@ type OMPHFileBody =
|
|
|
3628
3636
|
mimeType?: string;
|
|
3629
3637
|
caption?: string;
|
|
3630
3638
|
}
|
|
3639
|
+
/**
|
|
3640
|
+
* 电子表格(xlsx)。bytes 或 url 至少给一个;面板自己解析并渲染成表格,
|
|
3641
|
+
* 下载按钮拿到的是原文件。多工作表给标签页切换。样式不还原:日期按序列值显示。
|
|
3642
|
+
*/
|
|
3643
|
+
| {
|
|
3644
|
+
kind: 'sheet';
|
|
3645
|
+
bytes?: ArrayBuffer | Uint8Array;
|
|
3646
|
+
url?: string;
|
|
3647
|
+
fileName?: string;
|
|
3648
|
+
}
|
|
3631
3649
|
/** 文件不存在。不提供重试,只给说明。 */
|
|
3632
3650
|
| {
|
|
3633
3651
|
kind: 'missing';
|
|
3634
3652
|
message?: string;
|
|
3635
3653
|
}
|
|
3636
|
-
/**
|
|
3654
|
+
/** 文件存在但本面板无法渲染(压缩包等)。 */
|
|
3637
3655
|
| {
|
|
3638
3656
|
kind: 'unsupported';
|
|
3639
3657
|
message?: string;
|
|
@@ -3668,8 +3686,8 @@ type OMPHFilePreviewLayout = 'auto' | 'split' | 'overlay';
|
|
|
3668
3686
|
* - 可覆盖的界面文案
|
|
3669
3687
|
*
|
|
3670
3688
|
* 作者:ORBAICODER
|
|
3671
|
-
* 版本:1.
|
|
3672
|
-
* 日期:2026-10-
|
|
3689
|
+
* 版本:1.7.0
|
|
3690
|
+
* 日期:2026-10-23
|
|
3673
3691
|
*
|
|
3674
3692
|
* 作用:定义 OMPHPanel 的宿主数据契约。状态枚举保留 AgentPanel 的五态,消息改成 Harness 会话面板的轮次结构。
|
|
3675
3693
|
*
|
|
@@ -3678,6 +3696,7 @@ type OMPHFilePreviewLayout = 'auto' | 'split' | 'overlay';
|
|
|
3678
3696
|
* 2. 提供默认英文文案,宿主用 labels 覆盖,组件内部不写死业务句子。
|
|
3679
3697
|
*
|
|
3680
3698
|
* ChangeLog:
|
|
3699
|
+
* - 1.7.0 2026-10-23 用户消息增加 queued 标记(运行中补充的输入),新增 supplementQueued 文案。
|
|
3681
3700
|
* - 1.6.0 2026-10-14 增加会话摘要,以及新建对话、对话列表的文案。
|
|
3682
3701
|
* - 1.5.0 2026-10-07 审批决定增加预置选项和 Other 输入。
|
|
3683
3702
|
* - 1.4.0 2026-10-07 增加审批卡的请求、决定和默认文案。
|
|
@@ -3698,6 +3717,8 @@ interface OMPHTurnMessage {
|
|
|
3698
3717
|
timestamp: Date;
|
|
3699
3718
|
/** 为真时内容已经是宿主追加后的全文,组件只画已到达的部分并显示光标。 */
|
|
3700
3719
|
streaming?: boolean;
|
|
3720
|
+
/** Agent 运行中补充的输入:气泡画成待送达的样子并挂提示;宿主送达后清掉。 */
|
|
3721
|
+
queued?: boolean;
|
|
3701
3722
|
}
|
|
3702
3723
|
interface OMPHProcessItem {
|
|
3703
3724
|
id: string;
|
|
@@ -3801,6 +3822,7 @@ interface OMPHPanelLabels {
|
|
|
3801
3822
|
duration: string;
|
|
3802
3823
|
send: string;
|
|
3803
3824
|
stop: string;
|
|
3825
|
+
supplementQueued: string;
|
|
3804
3826
|
turnRail: string;
|
|
3805
3827
|
secondUnit: string;
|
|
3806
3828
|
minuteUnit: string;
|
|
@@ -3822,6 +3844,7 @@ interface OMPHPanelLabels {
|
|
|
3822
3844
|
previewResize: string;
|
|
3823
3845
|
previewLines: (start: number, end: number) => string;
|
|
3824
3846
|
previewTruncated: (shown: number, total: number) => string;
|
|
3847
|
+
previewSheetTruncated: (shown: number, total: number) => string;
|
|
3825
3848
|
imageFailed: string;
|
|
3826
3849
|
zoomIn: string;
|
|
3827
3850
|
zoomOut: string;
|