agent-loft 0.2.47 → 0.2.49
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 +27 -12
- package/package.json +1 -1
- package/src/agents/claude/driver.ts +11 -9
- package/src/agents/claude/session.ts +162 -46
- package/src/agents/claude/todos.ts +124 -0
- package/src/agents/codex/driver.ts +1 -1
- package/src/agents/codex/session.ts +104 -58
- package/src/channels/feishu/bot.ts +1 -3
- package/src/channels/feishu/cards.ts +2 -2
- package/src/channels/web/api.ts +24 -17
- package/src/channels/web/experts-api.ts +185 -0
- package/src/channels/web/skills-api.ts +1 -7
- package/src/channels/web/tasks-api.ts +9 -5
- package/src/core/command-catalog.ts +4 -6
- package/src/core/commands.ts +6 -11
- package/src/core/expert-prompt.ts +119 -0
- package/src/core/experts.ts +416 -0
- package/src/core/hub.ts +138 -102
- package/src/core/mcp.ts +253 -0
- package/src/core/memory-curator.ts +8 -9
- package/src/core/memory.ts +11 -4
- package/src/core/personal.ts +5 -1
- package/src/core/skill-runtime.ts +11 -114
- package/src/core/store.ts +30 -11
- package/src/core/task-prompt.ts +1 -1
- package/src/core/task-runner.ts +24 -11
- package/src/core/tasks-bridge.ts +7 -7
- package/src/core/tasks.ts +49 -14
- package/src/core/types.ts +11 -7
- package/src/core/uploads.ts +7 -7
- package/src/mcp/tasks-server.ts +1 -2
- package/web/css/experts.css +103 -0
- package/web/css/messages.css +193 -19
- package/web/css/overlay.css +12 -0
- package/web/css/sidebar.css +3 -2
- package/web/css/skills.css +0 -11
- package/web/css/todos.css +144 -0
- package/web/css/topbar.css +2 -2
- package/web/index.html +2 -0
- package/web/settings/experts.js +444 -0
- package/web/settings/index.js +3 -0
- package/web/settings/memory.js +21 -5
- package/web/settings/skills.js +3 -3
- package/web/state.js +5 -2
- package/web/views/composer.js +9 -17
- package/web/views/conv-actions.js +7 -9
- package/web/views/experts.js +73 -0
- package/web/views/interaction.js +65 -19
- package/web/views/layout.js +4 -3
- package/web/views/messages.js +52 -11
- package/web/views/sidebar.js +2 -2
- package/web/views/tasks.js +21 -36
- package/web/views/todos.js +71 -0
- package/web/views/topbar.js +43 -74
- package/src/core/chat-mode.ts +0 -62
- package/web/views/mention.js +0 -202
package/web/css/messages.css
CHANGED
|
@@ -92,6 +92,49 @@
|
|
|
92
92
|
height: 64px;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
/* 自定义专家的 emoji 图标 */
|
|
96
|
+
.hero-logo.expert-emoji {
|
|
97
|
+
font-size: 56px;
|
|
98
|
+
line-height: 1;
|
|
99
|
+
color: inherit;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.agent-icon.expert-emoji {
|
|
103
|
+
font-size: 15px;
|
|
104
|
+
line-height: 1;
|
|
105
|
+
width: 18px;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.hero-sub {
|
|
110
|
+
color: var(--fg-soft);
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
margin-top: -10px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* 专家的快捷提问:点一下填进输入框 */
|
|
116
|
+
.hero-prompts {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
gap: 8px;
|
|
121
|
+
max-width: 640px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.hero-prompt {
|
|
125
|
+
border: 1px solid var(--border);
|
|
126
|
+
background: var(--bg);
|
|
127
|
+
color: var(--fg);
|
|
128
|
+
border-radius: 999px;
|
|
129
|
+
padding: 6px 14px;
|
|
130
|
+
font-size: 13px;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.hero-prompt:hover {
|
|
135
|
+
background: var(--bg-hover);
|
|
136
|
+
}
|
|
137
|
+
|
|
95
138
|
.empty.hero h2 {
|
|
96
139
|
font-size: clamp(22px, 4.2vw, 36px);
|
|
97
140
|
font-weight: 400;
|
|
@@ -580,11 +623,6 @@ a.att-file:hover {
|
|
|
580
623
|
gap: 10px;
|
|
581
624
|
}
|
|
582
625
|
|
|
583
|
-
.ix-card.ask {
|
|
584
|
-
border-color: var(--ask-border);
|
|
585
|
-
background: var(--ask-bg);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
626
|
.ix-card.settled {
|
|
589
627
|
background: var(--bg-soft);
|
|
590
628
|
border-color: var(--border);
|
|
@@ -615,42 +653,178 @@ a.att-file:hover {
|
|
|
615
653
|
color: var(--fg-faint);
|
|
616
654
|
}
|
|
617
655
|
|
|
656
|
+
/* 提问卡:白底细边框,选项是一排按钮,主按钮黑色(和 Claude 桌面端一样) */
|
|
657
|
+
.ix-card.ask {
|
|
658
|
+
position: relative;
|
|
659
|
+
border-color: var(--border);
|
|
660
|
+
background: var(--bg);
|
|
661
|
+
border-radius: 16px;
|
|
662
|
+
padding: 18px 20px;
|
|
663
|
+
gap: 16px;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.ix-card.ask.settled {
|
|
667
|
+
opacity: 0.85;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.ix-close {
|
|
671
|
+
position: absolute;
|
|
672
|
+
top: 10px;
|
|
673
|
+
right: 10px;
|
|
674
|
+
width: 32px;
|
|
675
|
+
height: 32px;
|
|
676
|
+
color: var(--fg-soft);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.ix-close svg {
|
|
680
|
+
width: 18px;
|
|
681
|
+
height: 18px;
|
|
682
|
+
}
|
|
683
|
+
|
|
618
684
|
.ix-q {
|
|
619
685
|
display: flex;
|
|
620
686
|
flex-direction: column;
|
|
621
|
-
gap:
|
|
687
|
+
gap: 10px;
|
|
622
688
|
}
|
|
623
689
|
|
|
624
|
-
|
|
625
|
-
|
|
690
|
+
/* 给关闭按钮让出位置 */
|
|
691
|
+
.ix-q:first-of-type {
|
|
692
|
+
padding-right: 32px;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.ix-q .q-header {
|
|
696
|
+
font-size: 13px;
|
|
697
|
+
color: var(--fg-faint);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.ix-q .q-text {
|
|
701
|
+
font-size: 15px;
|
|
702
|
+
margin-top: -4px;
|
|
626
703
|
}
|
|
627
704
|
|
|
628
|
-
.ix-q .q-
|
|
629
|
-
margin-
|
|
705
|
+
.ix-q .q-header + .q-text {
|
|
706
|
+
margin-top: -8px;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.ix-q .q-hint {
|
|
710
|
+
color: var(--fg-faint);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.q-opts {
|
|
714
|
+
display: flex;
|
|
715
|
+
flex-wrap: wrap;
|
|
716
|
+
gap: 8px;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.q-opts.stack {
|
|
720
|
+
flex-direction: column;
|
|
721
|
+
align-items: stretch;
|
|
630
722
|
}
|
|
631
723
|
|
|
632
724
|
.opt {
|
|
725
|
+
display: inline-flex;
|
|
726
|
+
flex-direction: column;
|
|
727
|
+
align-items: flex-start;
|
|
728
|
+
gap: 2px;
|
|
633
729
|
text-align: left;
|
|
634
|
-
border:
|
|
635
|
-
background:
|
|
730
|
+
border: none;
|
|
731
|
+
background: #f3f3f4;
|
|
732
|
+
color: var(--fg);
|
|
636
733
|
border-radius: 10px;
|
|
637
|
-
padding:
|
|
638
|
-
font-size:
|
|
734
|
+
padding: 9px 16px;
|
|
735
|
+
font-size: 15px;
|
|
736
|
+
font-weight: 500;
|
|
639
737
|
}
|
|
640
738
|
|
|
641
|
-
.opt:hover {
|
|
642
|
-
|
|
739
|
+
.opt:hover:not(:disabled) {
|
|
740
|
+
background: #e8e8ea;
|
|
643
741
|
}
|
|
644
742
|
|
|
645
|
-
.opt
|
|
646
|
-
|
|
647
|
-
|
|
743
|
+
.opt-label {
|
|
744
|
+
display: inline-flex;
|
|
745
|
+
align-items: center;
|
|
746
|
+
gap: 10px;
|
|
648
747
|
}
|
|
649
748
|
|
|
650
749
|
.opt small {
|
|
651
750
|
display: block;
|
|
652
751
|
color: var(--fg-soft);
|
|
752
|
+
font-size: 13px;
|
|
753
|
+
font-weight: 400;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/* 主按钮(推荐的那个 / 提交)和选中的:主题黑 */
|
|
757
|
+
.opt.primary,
|
|
758
|
+
.opt.on {
|
|
759
|
+
background: #1f1f1f;
|
|
760
|
+
color: #fff;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.opt.primary:hover:not(:disabled),
|
|
764
|
+
.opt.on:hover:not(:disabled) {
|
|
765
|
+
background: #3a3a3a;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.opt.primary small,
|
|
769
|
+
.opt.on small {
|
|
770
|
+
color: rgba(255, 255, 255, 0.7);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.opt:disabled {
|
|
774
|
+
cursor: default;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.ix-card.settled .opt:not(.on) {
|
|
778
|
+
opacity: 0.55;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.kbd-hint {
|
|
782
|
+
display: inline-flex;
|
|
783
|
+
gap: 3px;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.kbd-hint kbd {
|
|
787
|
+
min-width: 22px;
|
|
788
|
+
height: 22px;
|
|
789
|
+
padding: 0 5px;
|
|
790
|
+
display: inline-grid;
|
|
791
|
+
place-items: center;
|
|
792
|
+
border: 1px solid rgba(255, 255, 255, 0.35);
|
|
793
|
+
border-radius: 6px;
|
|
794
|
+
font-family: var(--font);
|
|
653
795
|
font-size: 12px;
|
|
796
|
+
font-weight: 400;
|
|
797
|
+
line-height: 1;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.ix-card.ask .ix-buttons {
|
|
801
|
+
align-items: center;
|
|
802
|
+
gap: 12px;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
@media (prefers-color-scheme: dark) {
|
|
806
|
+
.opt {
|
|
807
|
+
background: var(--bg-soft);
|
|
808
|
+
}
|
|
809
|
+
.opt:hover:not(:disabled) {
|
|
810
|
+
background: var(--bg-hover);
|
|
811
|
+
}
|
|
812
|
+
.opt.primary,
|
|
813
|
+
.opt.on {
|
|
814
|
+
background: var(--fg);
|
|
815
|
+
color: var(--bg);
|
|
816
|
+
}
|
|
817
|
+
.opt.primary:hover:not(:disabled),
|
|
818
|
+
.opt.on:hover:not(:disabled) {
|
|
819
|
+
background: #d0d0d0;
|
|
820
|
+
}
|
|
821
|
+
.opt.primary small,
|
|
822
|
+
.opt.on small {
|
|
823
|
+
color: rgba(0, 0, 0, 0.6);
|
|
824
|
+
}
|
|
825
|
+
.kbd-hint kbd {
|
|
826
|
+
border-color: rgba(0, 0, 0, 0.3);
|
|
827
|
+
}
|
|
654
828
|
}
|
|
655
829
|
|
|
656
830
|
/* ---------- 图片附件:缩略图 + 点开看大图 ---------- */
|
package/web/css/overlay.css
CHANGED
|
@@ -435,3 +435,15 @@ button.list-item:hover {
|
|
|
435
435
|
max-width: 90vw;
|
|
436
436
|
white-space: pre-wrap;
|
|
437
437
|
}
|
|
438
|
+
|
|
439
|
+
/* 选专家:说明不要太长 */
|
|
440
|
+
.popover.expert-pop {
|
|
441
|
+
max-width: 340px;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.popover.expert-pop .pop-item .s {
|
|
445
|
+
display: -webkit-box;
|
|
446
|
+
-webkit-line-clamp: 2;
|
|
447
|
+
-webkit-box-orient: vertical;
|
|
448
|
+
overflow: hidden;
|
|
449
|
+
}
|
package/web/css/sidebar.css
CHANGED
package/web/css/skills.css
CHANGED
|
@@ -337,17 +337,6 @@
|
|
|
337
337
|
margin-top: 14px;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
/* @ 补全:在弹窗里的输入框下面弹出 */
|
|
341
|
-
.mention-wrap {
|
|
342
|
-
position: relative;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.slash-menu.below {
|
|
346
|
-
top: calc(100% + 4px);
|
|
347
|
-
bottom: auto;
|
|
348
|
-
max-height: 240px;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
340
|
@media (max-width: 640px) {
|
|
352
341
|
.skills-page .tasks-head {
|
|
353
342
|
flex-direction: column;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* ---------- 任务清单:输入框上方的进度 ---------- */
|
|
2
|
+
|
|
3
|
+
.todo-bar {
|
|
4
|
+
margin: 0 14px 8px;
|
|
5
|
+
border: 1px solid var(--border);
|
|
6
|
+
border-radius: 16px;
|
|
7
|
+
background: var(--bg);
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.todo-bar[hidden] {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.todo-head {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 4px;
|
|
20
|
+
padding: 4px 6px 4px 4px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.todo-toggle {
|
|
24
|
+
flex: 1;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
padding: 6px 10px;
|
|
30
|
+
border-radius: 10px;
|
|
31
|
+
text-align: left;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.todo-toggle:hover {
|
|
35
|
+
background: var(--bg-soft);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.todo-title {
|
|
39
|
+
flex: 1;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.todo-count {
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
color: var(--fg-faint);
|
|
50
|
+
font-size: 13px;
|
|
51
|
+
font-variant-numeric: tabular-nums;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.todo-toggle .chev {
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
color: var(--fg-faint);
|
|
57
|
+
transition: transform 0.15s;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.todo-toggle .chev.open {
|
|
61
|
+
transform: rotate(90deg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.todo-close {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
width: 30px;
|
|
67
|
+
height: 30px;
|
|
68
|
+
color: var(--fg-faint);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.todo-close svg {
|
|
72
|
+
width: 15px;
|
|
73
|
+
height: 15px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.todo-list {
|
|
77
|
+
list-style: none;
|
|
78
|
+
margin: 0;
|
|
79
|
+
padding: 0 14px 10px;
|
|
80
|
+
max-height: 30vh;
|
|
81
|
+
overflow: auto;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.todo-item {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: flex-start;
|
|
87
|
+
gap: 10px;
|
|
88
|
+
padding: 4px 0;
|
|
89
|
+
line-height: 1.5;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.todo-text {
|
|
93
|
+
min-width: 0;
|
|
94
|
+
overflow-wrap: anywhere;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* 圆圈:没开始是空心,正在做是带点的,做完了是实心打勾 */
|
|
98
|
+
.todo-mark {
|
|
99
|
+
position: relative;
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
width: 15px;
|
|
102
|
+
height: 15px;
|
|
103
|
+
margin-top: 3px;
|
|
104
|
+
border-radius: 50%;
|
|
105
|
+
border: 1.5px solid var(--fg-faint);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.todo-item.in_progress .todo-mark {
|
|
109
|
+
border-color: var(--fg);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.todo-item.in_progress .todo-mark::after {
|
|
113
|
+
content: "";
|
|
114
|
+
position: absolute;
|
|
115
|
+
inset: 2.5px;
|
|
116
|
+
border-radius: 50%;
|
|
117
|
+
background: var(--fg);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.todo-item.in_progress .todo-text {
|
|
121
|
+
font-weight: 500;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.todo-item.completed .todo-mark {
|
|
125
|
+
border-color: var(--fg);
|
|
126
|
+
background: var(--fg);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.todo-item.completed .todo-mark::after {
|
|
130
|
+
content: "";
|
|
131
|
+
position: absolute;
|
|
132
|
+
left: 4px;
|
|
133
|
+
top: 1.5px;
|
|
134
|
+
width: 3.5px;
|
|
135
|
+
height: 7px;
|
|
136
|
+
border: solid var(--bg);
|
|
137
|
+
border-width: 0 1.5px 1.5px 0;
|
|
138
|
+
transform: rotate(45deg);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.todo-item.completed .todo-text {
|
|
142
|
+
color: var(--fg-faint);
|
|
143
|
+
text-decoration: line-through;
|
|
144
|
+
}
|
package/web/css/topbar.css
CHANGED
|
@@ -155,14 +155,14 @@
|
|
|
155
155
|
gap: 6px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.top-title .conv-
|
|
158
|
+
.top-title .conv-expert-icon {
|
|
159
159
|
display: inline-grid;
|
|
160
160
|
flex-shrink: 0;
|
|
161
161
|
margin-left: 4px;
|
|
162
162
|
color: var(--fg-soft);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.top-title .conv-
|
|
165
|
+
.top-title .conv-expert-icon svg {
|
|
166
166
|
width: 16px;
|
|
167
167
|
height: 16px;
|
|
168
168
|
}
|
package/web/index.html
CHANGED
|
@@ -24,8 +24,10 @@
|
|
|
24
24
|
<link rel="stylesheet" href="/css/overlay.css" />
|
|
25
25
|
<link rel="stylesheet" href="/css/settings.css" />
|
|
26
26
|
<link rel="stylesheet" href="/css/schedule.css" />
|
|
27
|
+
<link rel="stylesheet" href="/css/todos.css" />
|
|
27
28
|
<link rel="stylesheet" href="/css/tasks.css" />
|
|
28
29
|
<link rel="stylesheet" href="/css/skills.css" />
|
|
30
|
+
<link rel="stylesheet" href="/css/experts.css" />
|
|
29
31
|
<link rel="stylesheet" href="/css/terminal.css" />
|
|
30
32
|
<link rel="stylesheet" href="/css/remote.css" />
|
|
31
33
|
<link rel="stylesheet" href="/css/servers.css" />
|