@huyooo/ai-chat-frontend-react 0.2.24 → 0.2.27
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.css +0 -58
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -4506,64 +4506,6 @@ body {
|
|
|
4506
4506
|
color: var(--chat-text-muted, #888);
|
|
4507
4507
|
margin-top: 8px;
|
|
4508
4508
|
}
|
|
4509
|
-
.skill-form {
|
|
4510
|
-
display: flex;
|
|
4511
|
-
flex-direction: column;
|
|
4512
|
-
gap: 8px;
|
|
4513
|
-
padding: 0 0 8px 0;
|
|
4514
|
-
}
|
|
4515
|
-
.skill-input {
|
|
4516
|
-
width: 100%;
|
|
4517
|
-
padding: 8px 12px;
|
|
4518
|
-
background: var(--chat-input-bg, #1e1e1e);
|
|
4519
|
-
border: 1px solid var(--chat-border, #333);
|
|
4520
|
-
border-radius: 6px;
|
|
4521
|
-
color: var(--chat-text, #fff);
|
|
4522
|
-
font-size: 13px;
|
|
4523
|
-
outline: none;
|
|
4524
|
-
box-sizing: border-box;
|
|
4525
|
-
}
|
|
4526
|
-
.skill-input:focus,
|
|
4527
|
-
.skill-textarea:focus {
|
|
4528
|
-
border-color: var(--chat-primary, #4f8fff);
|
|
4529
|
-
}
|
|
4530
|
-
.skill-textarea {
|
|
4531
|
-
width: 100%;
|
|
4532
|
-
padding: 8px 12px;
|
|
4533
|
-
background: var(--chat-input-bg, #1e1e1e);
|
|
4534
|
-
border: 1px solid var(--chat-border, #333);
|
|
4535
|
-
border-radius: 6px;
|
|
4536
|
-
color: var(--chat-text, #fff);
|
|
4537
|
-
font-size: 13px;
|
|
4538
|
-
outline: none;
|
|
4539
|
-
resize: vertical;
|
|
4540
|
-
font-family: inherit;
|
|
4541
|
-
box-sizing: border-box;
|
|
4542
|
-
}
|
|
4543
|
-
.skill-form-actions {
|
|
4544
|
-
display: flex;
|
|
4545
|
-
gap: 8px;
|
|
4546
|
-
justify-content: flex-end;
|
|
4547
|
-
}
|
|
4548
|
-
.skill-btn {
|
|
4549
|
-
padding: 6px 16px;
|
|
4550
|
-
border: none;
|
|
4551
|
-
border-radius: 6px;
|
|
4552
|
-
font-size: 13px;
|
|
4553
|
-
cursor: pointer;
|
|
4554
|
-
}
|
|
4555
|
-
.skill-btn-primary {
|
|
4556
|
-
background: var(--chat-primary, #4f8fff);
|
|
4557
|
-
color: #fff;
|
|
4558
|
-
}
|
|
4559
|
-
.skill-btn-primary:disabled {
|
|
4560
|
-
opacity: 0.5;
|
|
4561
|
-
cursor: not-allowed;
|
|
4562
|
-
}
|
|
4563
|
-
.skill-btn-secondary {
|
|
4564
|
-
background: var(--chat-border, #333);
|
|
4565
|
-
color: var(--chat-text, #fff);
|
|
4566
|
-
}
|
|
4567
4509
|
.skill-actions {
|
|
4568
4510
|
display: flex;
|
|
4569
4511
|
align-items: center;
|
package/dist/index.d.ts
CHANGED
|
@@ -398,6 +398,8 @@ interface ChatPanelHandle {
|
|
|
398
398
|
sendMessage: (text: string) => void;
|
|
399
399
|
/** 设置当前工作目录 */
|
|
400
400
|
setCwd: (dir: string) => void;
|
|
401
|
+
/** 重新加载 Skills 列表 */
|
|
402
|
+
loadSkills: () => Promise<void>;
|
|
401
403
|
}
|
|
402
404
|
interface ChatPanelProps {
|
|
403
405
|
/** Adapter 实例 */
|
|
@@ -427,6 +429,8 @@ interface ChatPanelProps {
|
|
|
427
429
|
* - 'auto': 执行时展开,完成后折叠
|
|
428
430
|
*/
|
|
429
431
|
stepsExpandedType?: 'open' | 'close' | 'auto';
|
|
432
|
+
/** 打开 Skills 目录回调(宿主应用处理) */
|
|
433
|
+
onOpenSkillsDir?: () => void;
|
|
430
434
|
}
|
|
431
435
|
declare const ChatPanel: react.ForwardRefExoticComponent<ChatPanelProps & react.RefAttributes<ChatPanelHandle>>;
|
|
432
436
|
|