@lemonriver/core 0.4.0 → 0.5.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.
- package/README.md +14 -4
- package/dist/{build-Nl7EeJ6x.js → build-CS1goZxt.js} +1 -1
- package/dist/cli/bin.js +4 -4
- package/dist/{config-CpC0nM3r.js → config-BpbcCbUv.js} +3673 -2065
- package/dist/{dev-BB3THd5I.js → dev-BpYnfgLL.js} +2 -2
- package/dist/{preview-BGjgTg7H.js → preview-HSzPPkSs.js} +1 -1
- package/dist/{update-DsxZBtwv.js → update-CMRxtTc9.js} +18 -8
- package/dist/vite/index.js +1 -1
- package/package.json +2 -2
- package/src/agent/types.ts +14 -2
- package/src/app/components/agent/agent-panel.tsx +17 -5
- package/src/app/components/agent/connect-view.tsx +1 -1
- package/src/app/components/agent/provider-logo.tsx +10 -1
- package/src/app/lemonriver/agent/provider-marks.tsx +53 -0
- package/src/app/lemonriver/agent-providers/section.tsx +75 -0
- package/src/app/lemonriver/agent-providers/use-providers.ts +61 -0
- package/src/app/lemonriver/board/blocks/block-panel.tsx +666 -0
- package/src/app/lemonriver/board/blocks/cache.ts +28 -0
- package/src/app/lemonriver/board/blocks/change-list.tsx +189 -0
- package/src/app/lemonriver/board/blocks/classify.test.ts +204 -0
- package/src/app/lemonriver/board/blocks/classify.ts +125 -0
- package/src/app/lemonriver/board/blocks/snapshot.ts +86 -0
- package/src/app/lemonriver/board/board-canvas.tsx +627 -104
- package/src/app/lemonriver/board/board-page.tsx +1687 -91
- package/src/app/lemonriver/board/board.css +58 -7
- package/src/app/lemonriver/board/layout.test.ts +84 -0
- package/src/app/lemonriver/board/layout.ts +112 -11
- package/src/app/lemonriver/board/model/agent-tasks.test.ts +200 -0
- package/src/app/lemonriver/board/model/agent-tasks.ts +191 -0
- package/src/app/lemonriver/board/model/apply-prompt.test.ts +121 -0
- package/src/app/lemonriver/board/model/apply-prompt.ts +115 -0
- package/src/app/lemonriver/board/model/apply.ts +71 -0
- package/src/app/lemonriver/board/model/cards.test.ts +95 -2
- package/src/app/lemonriver/board/model/cards.ts +88 -20
- package/src/app/lemonriver/board/model/changes.test.ts +244 -0
- package/src/app/lemonriver/board/model/changes.ts +268 -0
- package/src/app/lemonriver/board/model/filter.test.ts +50 -0
- package/src/app/lemonriver/board/model/filter.ts +42 -0
- package/src/app/lemonriver/board/model/history.test.ts +71 -0
- package/src/app/lemonriver/board/model/history.ts +51 -0
- package/src/app/lemonriver/board/model/restructure.test.ts +205 -0
- package/src/app/lemonriver/board/model/restructure.ts +169 -0
- package/src/app/lemonriver/board/model/structure.test.ts +249 -0
- package/src/app/lemonriver/board/model/structure.ts +209 -0
- package/src/app/lemonriver/board/model/timing.test.ts +113 -0
- package/src/app/lemonriver/board/model/timing.ts +117 -0
- package/src/app/lemonriver/board/page-node.tsx +236 -55
- package/src/app/lemonriver/board/status-style.ts +25 -0
- package/src/app/lemonriver/board/use-board-apply.ts +206 -0
- package/src/app/lemonriver/board/use-board-cards.ts +108 -5
- package/src/app/lemonriver/board/use-board-changes.ts +108 -0
- package/src/app/lemonriver/board/use-board-columns.ts +37 -56
- package/src/app/lemonriver/board/use-board-comments.ts +36 -0
- package/src/app/lemonriver/board/use-board-restructures.ts +107 -0
- package/src/app/lemonriver/board/use-history.ts +86 -0
- package/src/app/lemonriver/board/use-page-order.ts +65 -38
- package/src/app/lemonriver/board/use-target-minutes.ts +47 -0
- package/src/app/lemonriver/board/views/block-readings.tsx +46 -0
- package/src/app/lemonriver/board/views/list-view.tsx +356 -0
- package/src/app/lemonriver/board/views/progress.tsx +32 -0
- package/src/app/lemonriver/board/views/timeline-view.tsx +341 -0
- package/src/app/lemonriver/outline/model.test.ts +39 -0
- package/src/app/lemonriver/outline/model.ts +12 -0
- package/src/app/lemonriver/outline/outline-page.tsx +34 -1
- package/src/app/lemonriver/settings/settings-page.tsx +3 -0
- package/src/app/lemonriver/slide-extensions.tsx +14 -2
- package/src/app/lemonriver/text/en.ts +171 -0
- package/src/app/lemonriver/text/es.ts +163 -0
- package/src/app/lemonriver/text/ja.ts +163 -0
- package/src/app/lemonriver/text/types.ts +170 -0
- package/src/app/lemonriver/text/zh-cn.ts +161 -0
- package/src/app/lemonriver/text/zh-tw.ts +161 -0
- package/src/app/lemonriver/theme/lemon-icon.tsx +6 -0
- package/src/app/lemonriver/theme/theme-menu.tsx +3 -2
- package/src/app/lemonriver/theme/use-theme.tsx +2 -2
- package/src/app/lib/agent/use-agent.ts +4 -3
- package/src/app/routes/slide.tsx +1 -1
- package/src/app/assets/open-slide.svg +0 -39
- package/src/app/favicon.ico +0 -0
- package/src/app/favicon.svg +0 -39
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Plural } from '../../../locale/types';
|
|
2
|
+
import type { BlockKind, WholeReason } from '../board/blocks/classify.ts';
|
|
3
|
+
import type { PageAction } from '../board/model/agent-tasks.ts';
|
|
2
4
|
|
|
3
5
|
export type LrText = {
|
|
4
6
|
board: {
|
|
@@ -35,6 +37,154 @@ export type LrText = {
|
|
|
35
37
|
showLinks: string;
|
|
36
38
|
hideLinks: string;
|
|
37
39
|
removeLink: string;
|
|
40
|
+
undo: string;
|
|
41
|
+
redo: string;
|
|
42
|
+
/** Shown instead of the undo hint when the newest step removed a page whose source is unreadable. */
|
|
43
|
+
undoUnavailable: string;
|
|
44
|
+
undoFailed: string;
|
|
45
|
+
addChapter: string;
|
|
46
|
+
newChapterTitle: string;
|
|
47
|
+
deleteChapter: string;
|
|
48
|
+
moveChapter: string;
|
|
49
|
+
collapse: string;
|
|
50
|
+
expand: string;
|
|
51
|
+
/** template: "{n} selected" */
|
|
52
|
+
selected: string;
|
|
53
|
+
/** template: "Delete {n} pages?" */
|
|
54
|
+
deleteSelectedTitle: string;
|
|
55
|
+
deleteSelectedHint: string;
|
|
56
|
+
clearSelection: string;
|
|
57
|
+
sizeLarge: string;
|
|
58
|
+
sizeSmall: string;
|
|
59
|
+
sizeTitle: string;
|
|
60
|
+
filter: string;
|
|
61
|
+
filterStatus: string;
|
|
62
|
+
filterMemo: string;
|
|
63
|
+
filterComments: string;
|
|
64
|
+
filterClear: string;
|
|
65
|
+
/** The panel that lists the blocks inside the page last clicked. */
|
|
66
|
+
blockPanel: string;
|
|
67
|
+
blockPanelEmpty: string;
|
|
68
|
+
blockKinds: Record<BlockKind, string>;
|
|
69
|
+
blockDrag: string;
|
|
70
|
+
blockMenu: string;
|
|
71
|
+
/** template: "Page {n} · {title}" — one entry in a page picker. */
|
|
72
|
+
blockPageOption: string;
|
|
73
|
+
moveBlockTo: string;
|
|
74
|
+
parkBlock: string;
|
|
75
|
+
unparkBlockTo: string;
|
|
76
|
+
/** template: "Holding area ({n})" */
|
|
77
|
+
parking: string;
|
|
78
|
+
parkingEmpty: string;
|
|
79
|
+
blockPending: string;
|
|
80
|
+
/** template: "From page {n}" */
|
|
81
|
+
blockFrom: string;
|
|
82
|
+
pageChanges: Plural;
|
|
83
|
+
/** template: "Changes ({n})" */
|
|
84
|
+
changes: string;
|
|
85
|
+
changeRemove: string;
|
|
86
|
+
changeStale: string;
|
|
87
|
+
changeToPage: string;
|
|
88
|
+
changeToParking: string;
|
|
89
|
+
changeFromParking: string;
|
|
90
|
+
changeReorder: string;
|
|
91
|
+
wholeBadge: string;
|
|
92
|
+
whole: Record<WholeReason, string>;
|
|
93
|
+
parkNeedsSource: string;
|
|
94
|
+
/** template: "{kind} {n}" — a block with no words of its own. */
|
|
95
|
+
blockKindN: string;
|
|
96
|
+
splitPage: string;
|
|
97
|
+
mergePages: string;
|
|
98
|
+
/** template: "Page {n}: {k} blocks go to a new page after it" */
|
|
99
|
+
changeSplit: Plural;
|
|
100
|
+
/** template: "Page {a} and page {b} become one page" */
|
|
101
|
+
changeMerge: string;
|
|
102
|
+
restructureReplaced: string;
|
|
103
|
+
apply: string;
|
|
104
|
+
applyNeedsAgent: string;
|
|
105
|
+
applyStale: string;
|
|
106
|
+
applyBuilding: string;
|
|
107
|
+
applying: string;
|
|
108
|
+
applyDone: string;
|
|
109
|
+
applyUndo: string;
|
|
110
|
+
applyUndoLast: string;
|
|
111
|
+
applyUndoConfirm: { title: string; body: string; confirm: string };
|
|
112
|
+
applyUndone: string;
|
|
113
|
+
/** template: "Not applied: {reason}" */
|
|
114
|
+
applyFailed: string;
|
|
115
|
+
applyStalled: string;
|
|
116
|
+
applyCancel: string;
|
|
117
|
+
/** The group of one-page actions, opened from a card or the block panel. */
|
|
118
|
+
askAgent: string;
|
|
119
|
+
askRewrite: string;
|
|
120
|
+
askChart: string;
|
|
121
|
+
askMemo: string;
|
|
122
|
+
askExpand: string;
|
|
123
|
+
/** Why the one-page actions cannot run right now. */
|
|
124
|
+
askNeedsAgent: string;
|
|
125
|
+
askBuilding: string;
|
|
126
|
+
askBusy: string;
|
|
127
|
+
askHasChanges: string;
|
|
128
|
+
askNeedsMemo: string;
|
|
129
|
+
/** template: "Agent is rewriting page {n}…" — one per action. */
|
|
130
|
+
askingPage: Record<PageAction, string>;
|
|
131
|
+
/** template: "Agent is planning chapter {n}…" */
|
|
132
|
+
planningChapter: string;
|
|
133
|
+
/** template: "Agent is writing chapter {n}…" */
|
|
134
|
+
writingChapter: string;
|
|
135
|
+
/** template: "Page {n} is done" */
|
|
136
|
+
askDone: string;
|
|
137
|
+
/** template: "Page {n} became two pages" */
|
|
138
|
+
askExpanded: string;
|
|
139
|
+
/** template: "Chapter {n} has {k} new pages" */
|
|
140
|
+
chapterWritten: string;
|
|
141
|
+
undoTask: string;
|
|
142
|
+
fillChapter: string;
|
|
143
|
+
chapterBrief: string;
|
|
144
|
+
chapterCount: string;
|
|
145
|
+
planChapter: string;
|
|
146
|
+
planning: string;
|
|
147
|
+
/** template: "See the titles ({n})" */
|
|
148
|
+
viewPlan: string;
|
|
149
|
+
/** template: "Write these {n} pages" */
|
|
150
|
+
writeChapter: string;
|
|
151
|
+
dropPlan: string;
|
|
152
|
+
planFailed: string;
|
|
153
|
+
retryPlan: string;
|
|
154
|
+
addPlanItem: string;
|
|
155
|
+
planRemove: string;
|
|
156
|
+
planMoveUp: string;
|
|
157
|
+
planMoveDown: string;
|
|
158
|
+
dragPage: string;
|
|
159
|
+
viewCards: string;
|
|
160
|
+
viewList: string;
|
|
161
|
+
viewTimeline: string;
|
|
162
|
+
/** template: "About {d}" */
|
|
163
|
+
totalDuration: string;
|
|
164
|
+
target: string;
|
|
165
|
+
/** template: "Over by {d}" */
|
|
166
|
+
overTarget: string;
|
|
167
|
+
/** template: "{d} to spare" */
|
|
168
|
+
underTarget: string;
|
|
169
|
+
basisNotes: string;
|
|
170
|
+
basisPage: string;
|
|
171
|
+
basisNone: string;
|
|
172
|
+
/** template: "{done}/{total} done" */
|
|
173
|
+
progress: string;
|
|
174
|
+
/** template: "{n} to review" */
|
|
175
|
+
progressReview: string;
|
|
176
|
+
linkCause: string;
|
|
177
|
+
linkContrast: string;
|
|
178
|
+
linkEcho: string;
|
|
179
|
+
linkEchoShort: string;
|
|
180
|
+
linkRelation: string;
|
|
181
|
+
linkPlain: string;
|
|
182
|
+
/** template: "Jump to page {n}" */
|
|
183
|
+
jumpToPage: string;
|
|
184
|
+
/** Duration shapes: "45s", "1m 20s", "12 min". */
|
|
185
|
+
durationSeconds: string;
|
|
186
|
+
durationMinSec: string;
|
|
187
|
+
durationMinutes: string;
|
|
38
188
|
};
|
|
39
189
|
theme: {
|
|
40
190
|
lime: string;
|
|
@@ -101,6 +251,18 @@ export type LrText = {
|
|
|
101
251
|
reduceMotion: string;
|
|
102
252
|
reduceMotionHint: string;
|
|
103
253
|
};
|
|
254
|
+
agents: {
|
|
255
|
+
title: string;
|
|
256
|
+
hint: string;
|
|
257
|
+
detected: string;
|
|
258
|
+
missing: string;
|
|
259
|
+
missingHint: string;
|
|
260
|
+
alwaysOn: string;
|
|
261
|
+
/** template: "Turn on {name}" */
|
|
262
|
+
unlock: string;
|
|
263
|
+
dumateReason: string;
|
|
264
|
+
saveFailed: string;
|
|
265
|
+
};
|
|
104
266
|
feedback: {
|
|
105
267
|
notFoundHint: string;
|
|
106
268
|
backHome: string;
|
|
@@ -214,6 +376,9 @@ export type LrText = {
|
|
|
214
376
|
draftingNoFiles: string;
|
|
215
377
|
failedTitle: string;
|
|
216
378
|
failedHint: string;
|
|
379
|
+
/** template: "Reason: {reason}" */
|
|
380
|
+
failedReason: string;
|
|
381
|
+
openAgent: string;
|
|
217
382
|
retry: string;
|
|
218
383
|
editBrief: string;
|
|
219
384
|
addPage: string;
|
|
@@ -277,4 +442,9 @@ export type LrText = {
|
|
|
277
442
|
buildingHere: string;
|
|
278
443
|
backToEditor: string;
|
|
279
444
|
};
|
|
445
|
+
agentModel: {
|
|
446
|
+
followClient: string;
|
|
447
|
+
/** template: "Uses the model and effort set in {provider}" */
|
|
448
|
+
followClientHint: string;
|
|
449
|
+
};
|
|
280
450
|
};
|
|
@@ -33,6 +33,150 @@ export const zhCN: LrText = {
|
|
|
33
33
|
showLinks: '显示关联线',
|
|
34
34
|
hideLinks: '隐藏关联线',
|
|
35
35
|
removeLink: '删除这条关联',
|
|
36
|
+
undo: '撤销',
|
|
37
|
+
redo: '重做',
|
|
38
|
+
undoUnavailable: '这一步删掉的那一页原文读不到了,不能撤销',
|
|
39
|
+
undoFailed: '撤销失败',
|
|
40
|
+
addChapter: '新增一章',
|
|
41
|
+
newChapterTitle: '新章节',
|
|
42
|
+
deleteChapter: '删除这一章',
|
|
43
|
+
moveChapter: '拖动这一章调整顺序',
|
|
44
|
+
collapse: '折叠这一章',
|
|
45
|
+
expand: '展开这一章',
|
|
46
|
+
selected: '已选 {n} 张',
|
|
47
|
+
deleteSelectedTitle: '删除 {n} 页?',
|
|
48
|
+
deleteSelectedHint: '删掉以后可以撤销恢复。',
|
|
49
|
+
clearSelection: '取消选择',
|
|
50
|
+
sizeLarge: '大缩略图',
|
|
51
|
+
sizeSmall: '小缩略图',
|
|
52
|
+
sizeTitle: '只看标题',
|
|
53
|
+
filter: '筛选',
|
|
54
|
+
filterStatus: '按状态',
|
|
55
|
+
filterMemo: '有备注',
|
|
56
|
+
filterComments: '有未处理的评论',
|
|
57
|
+
filterClear: '清除筛选',
|
|
58
|
+
blockPanel: '页内块',
|
|
59
|
+
blockPanelEmpty: '点一张卡片,看它里面的块',
|
|
60
|
+
blockKinds: {
|
|
61
|
+
title: '标题',
|
|
62
|
+
point: '要点',
|
|
63
|
+
text: '正文',
|
|
64
|
+
image: '图片',
|
|
65
|
+
chart: '图表',
|
|
66
|
+
quote: '引用',
|
|
67
|
+
number: '数字',
|
|
68
|
+
},
|
|
69
|
+
blockDrag: '拖动这一块',
|
|
70
|
+
blockMenu: '这一块的更多操作',
|
|
71
|
+
blockPageOption: '第 {n} 页',
|
|
72
|
+
moveBlockTo: '移到第几页',
|
|
73
|
+
parkBlock: '放进待用区',
|
|
74
|
+
unparkBlockTo: '放回第几页',
|
|
75
|
+
parking: '待用区({n})',
|
|
76
|
+
parkingEmpty: '把暂时不用的块拖到这里',
|
|
77
|
+
blockPending: '待应用',
|
|
78
|
+
blockFrom: '来自第 {n} 页',
|
|
79
|
+
pageChanges: { one: '{n} 处待改', other: '{n} 处待改' },
|
|
80
|
+
changes: '改动({n})',
|
|
81
|
+
changeRemove: '撤掉这一条',
|
|
82
|
+
changeStale: '这一页改过了,找不到原来的块',
|
|
83
|
+
changeToPage: '第 {from} 页「{block}」→ 第 {to} 页',
|
|
84
|
+
changeToParking: '第 {from} 页「{block}」→ 待用区',
|
|
85
|
+
changeFromParking: '待用区「{block}」→ 第 {to} 页',
|
|
86
|
+
changeReorder: '第 {n} 页内换了顺序',
|
|
87
|
+
wholeBadge: '整页',
|
|
88
|
+
whole: {
|
|
89
|
+
steps: '这一页有分步出现的动画,只能整页移动',
|
|
90
|
+
empty: '这一页读不出可以单独挪的内容',
|
|
91
|
+
tooMany: '这一页内容太多,只能整页移动',
|
|
92
|
+
tooLarge: '这一页太复杂,只能整页移动',
|
|
93
|
+
},
|
|
94
|
+
parkNeedsSource: '这一块画在别的文件里,只能在页之间挪,不能放进待用区',
|
|
95
|
+
blockKindN: '{kind} {n}',
|
|
96
|
+
splitPage: '拆成新的一页',
|
|
97
|
+
mergePages: '合成一页',
|
|
98
|
+
changeSplit: {
|
|
99
|
+
one: '第 {n} 页拆出 {k} 块成新的一页',
|
|
100
|
+
other: '第 {n} 页拆出 {k} 块成新的一页',
|
|
101
|
+
},
|
|
102
|
+
changeMerge: '第 {a} 页和第 {b} 页合成一页',
|
|
103
|
+
restructureReplaced: '这一页之前的拆合记录已被替换',
|
|
104
|
+
apply: '交给 Agent 应用',
|
|
105
|
+
applyNeedsAgent: '连上 Agent 后才能应用,清单会一直留着',
|
|
106
|
+
applyStale: '先处理标红的条目',
|
|
107
|
+
applyBuilding: '正在按大纲排版,排完再应用',
|
|
108
|
+
applying: 'Agent 正在应用…',
|
|
109
|
+
applyDone: '改完了',
|
|
110
|
+
applyUndo: '撤销这次应用',
|
|
111
|
+
applyUndoLast: '撤销上次应用',
|
|
112
|
+
applyUndoConfirm: {
|
|
113
|
+
title: '把这份幻灯片恢复到应用之前?',
|
|
114
|
+
body: '之后手动做的修改也会一起撤掉。',
|
|
115
|
+
confirm: '恢复',
|
|
116
|
+
},
|
|
117
|
+
applyUndone: '已恢复',
|
|
118
|
+
applyFailed: '没有改完:{reason}',
|
|
119
|
+
applyStalled: '应用没有完成',
|
|
120
|
+
applyCancel: '放弃这次应用',
|
|
121
|
+
askAgent: '叫 Agent',
|
|
122
|
+
askRewrite: '重写这页',
|
|
123
|
+
askChart: '改成图表',
|
|
124
|
+
askMemo: '按备注改',
|
|
125
|
+
askExpand: '扩成两页',
|
|
126
|
+
askNeedsAgent: '先连上 Agent',
|
|
127
|
+
askBuilding: '正在按大纲排版',
|
|
128
|
+
askBusy: '已有一件事在做',
|
|
129
|
+
askHasChanges: '先应用或撤掉这一页的待改',
|
|
130
|
+
askNeedsMemo: '先在卡片上写备注',
|
|
131
|
+
askingPage: {
|
|
132
|
+
rewrite: 'Agent 正在重写第 {n} 页…',
|
|
133
|
+
chart: 'Agent 正在把第 {n} 页改成图表…',
|
|
134
|
+
memo: 'Agent 正在按备注改第 {n} 页…',
|
|
135
|
+
expand: 'Agent 正在把第 {n} 页扩成两页…',
|
|
136
|
+
},
|
|
137
|
+
planningChapter: 'Agent 正在出第 {n} 章的标题…',
|
|
138
|
+
writingChapter: 'Agent 正在写第 {n} 章…',
|
|
139
|
+
askDone: '第 {n} 页改好了',
|
|
140
|
+
askExpanded: '第 {n} 页扩成了两页',
|
|
141
|
+
chapterWritten: '第 {n} 章写好了 {k} 页',
|
|
142
|
+
undoTask: '撤销这次',
|
|
143
|
+
fillChapter: '让 Agent 补齐这一章',
|
|
144
|
+
chapterBrief: '这一章讲什么',
|
|
145
|
+
chapterCount: '要几页',
|
|
146
|
+
planChapter: '先出标题',
|
|
147
|
+
planning: '正在出标题…',
|
|
148
|
+
viewPlan: '看标题({n})',
|
|
149
|
+
writeChapter: '开始写这 {n} 页',
|
|
150
|
+
dropPlan: '不要了',
|
|
151
|
+
planFailed: 'Agent 没有给出这一章的标题',
|
|
152
|
+
retryPlan: '再试一次',
|
|
153
|
+
addPlanItem: '再加一条',
|
|
154
|
+
planRemove: '删掉',
|
|
155
|
+
planMoveUp: '上移',
|
|
156
|
+
planMoveDown: '下移',
|
|
157
|
+
dragPage: '拖动这一页',
|
|
158
|
+
viewCards: '卡片',
|
|
159
|
+
viewList: '列表',
|
|
160
|
+
viewTimeline: '时间轴',
|
|
161
|
+
totalDuration: '约 {d}',
|
|
162
|
+
target: '目标(分钟)',
|
|
163
|
+
overTarget: '超出 {d}',
|
|
164
|
+
underTarget: '还剩 {d}',
|
|
165
|
+
basisNotes: '按讲稿',
|
|
166
|
+
basisPage: '按页面文字',
|
|
167
|
+
basisNone: '估不出,按最少时长',
|
|
168
|
+
progress: '{done}/{total} 完成',
|
|
169
|
+
progressReview: '{n} 待审',
|
|
170
|
+
linkCause: '因果',
|
|
171
|
+
linkContrast: '对比',
|
|
172
|
+
linkEcho: '前后呼应',
|
|
173
|
+
linkEchoShort: '呼应',
|
|
174
|
+
linkRelation: '这条关联',
|
|
175
|
+
linkPlain: '普通关联',
|
|
176
|
+
jumpToPage: '跳到第 {n} 页',
|
|
177
|
+
durationSeconds: '{s} 秒',
|
|
178
|
+
durationMinSec: '{m} 分 {s} 秒',
|
|
179
|
+
durationMinutes: '{m} 分钟',
|
|
36
180
|
},
|
|
37
181
|
theme: {
|
|
38
182
|
lime: '青柠沉浸',
|
|
@@ -91,6 +235,17 @@ export const zhCN: LrText = {
|
|
|
91
235
|
reduceMotion: '减少动效',
|
|
92
236
|
reduceMotionHint: '柠檬不再漂浮和弹跳,界面动画也一起关掉。系统设了减少动态效果时也会打开。',
|
|
93
237
|
},
|
|
238
|
+
agents: {
|
|
239
|
+
title: 'Agent',
|
|
240
|
+
hint: 'Claude Code 和 Codex 一直在。装了别的 Agent 可以在这里打开,打开后会出现在 Agent 面板的模型菜单里。',
|
|
241
|
+
detected: '已检测到',
|
|
242
|
+
missing: '没装',
|
|
243
|
+
missingHint: '没找到,装好后重新打开这一页。',
|
|
244
|
+
alwaysOn: '一直开着',
|
|
245
|
+
unlock: '打开 {name}',
|
|
246
|
+
dumateReason: 'DuMate 还不能从这里调用:它只有桌面版,没有别的程序能启动的命令行。',
|
|
247
|
+
saveFailed: '没保存上,再试一次。',
|
|
248
|
+
},
|
|
94
249
|
feedback: {
|
|
95
250
|
notFoundHint: '可能链接过期了,或者这份幻灯片已经删除。',
|
|
96
251
|
backHome: '回到幻灯片',
|
|
@@ -193,6 +348,8 @@ export const zhCN: LrText = {
|
|
|
193
348
|
draftingNoFiles: '正在列大纲…',
|
|
194
349
|
failedTitle: '大纲没列出来',
|
|
195
350
|
failedHint: '再试一次;还不行就改改需求。',
|
|
351
|
+
failedReason: '原因:{reason}',
|
|
352
|
+
openAgent: '打开 Agent 面板看详情',
|
|
196
353
|
retry: '重试',
|
|
197
354
|
editBrief: '改需求',
|
|
198
355
|
addPage: '加一页',
|
|
@@ -244,4 +401,8 @@ export const zhCN: LrText = {
|
|
|
244
401
|
buildingHere: '正在排版,第 {k} / {n} 页',
|
|
245
402
|
backToEditor: '回到编辑页',
|
|
246
403
|
},
|
|
404
|
+
agentModel: {
|
|
405
|
+
followClient: '客户端设置',
|
|
406
|
+
followClientHint: '使用 {provider} 里自己设的模型和思考强度。',
|
|
407
|
+
},
|
|
247
408
|
};
|
|
@@ -33,6 +33,150 @@ export const zhTW: LrText = {
|
|
|
33
33
|
showLinks: '顯示關聯線',
|
|
34
34
|
hideLinks: '隱藏關聯線',
|
|
35
35
|
removeLink: '刪除這條關聯',
|
|
36
|
+
undo: '復原',
|
|
37
|
+
redo: '重做',
|
|
38
|
+
undoUnavailable: '這一步刪掉的那一頁原文讀不到了,不能復原',
|
|
39
|
+
undoFailed: '復原失敗',
|
|
40
|
+
addChapter: '新增一章',
|
|
41
|
+
newChapterTitle: '新章節',
|
|
42
|
+
deleteChapter: '刪除這一章',
|
|
43
|
+
moveChapter: '拖動這一章調整順序',
|
|
44
|
+
collapse: '收合這一章',
|
|
45
|
+
expand: '展開這一章',
|
|
46
|
+
selected: '已選 {n} 張',
|
|
47
|
+
deleteSelectedTitle: '刪除 {n} 頁?',
|
|
48
|
+
deleteSelectedHint: '刪掉以後可以復原。',
|
|
49
|
+
clearSelection: '取消選取',
|
|
50
|
+
sizeLarge: '大縮圖',
|
|
51
|
+
sizeSmall: '小縮圖',
|
|
52
|
+
sizeTitle: '只看標題',
|
|
53
|
+
filter: '篩選',
|
|
54
|
+
filterStatus: '依狀態',
|
|
55
|
+
filterMemo: '有備註',
|
|
56
|
+
filterComments: '有未處理的評論',
|
|
57
|
+
filterClear: '清除篩選',
|
|
58
|
+
blockPanel: '頁內塊',
|
|
59
|
+
blockPanelEmpty: '點一張卡片,看它裡面的塊',
|
|
60
|
+
blockKinds: {
|
|
61
|
+
title: '標題',
|
|
62
|
+
point: '要點',
|
|
63
|
+
text: '正文',
|
|
64
|
+
image: '圖片',
|
|
65
|
+
chart: '圖表',
|
|
66
|
+
quote: '引用',
|
|
67
|
+
number: '數字',
|
|
68
|
+
},
|
|
69
|
+
blockDrag: '拖動這一塊',
|
|
70
|
+
blockMenu: '這一塊的更多操作',
|
|
71
|
+
blockPageOption: '第 {n} 頁',
|
|
72
|
+
moveBlockTo: '移到第幾頁',
|
|
73
|
+
parkBlock: '放進待用區',
|
|
74
|
+
unparkBlockTo: '放回第幾頁',
|
|
75
|
+
parking: '待用區({n})',
|
|
76
|
+
parkingEmpty: '把暫時不用的塊拖到這裡',
|
|
77
|
+
blockPending: '待套用',
|
|
78
|
+
blockFrom: '來自第 {n} 頁',
|
|
79
|
+
pageChanges: { one: '{n} 處待改', other: '{n} 處待改' },
|
|
80
|
+
changes: '改動({n})',
|
|
81
|
+
changeRemove: '撤掉這一條',
|
|
82
|
+
changeStale: '這一頁改過了,找不到原來的塊',
|
|
83
|
+
changeToPage: '第 {from} 頁「{block}」→ 第 {to} 頁',
|
|
84
|
+
changeToParking: '第 {from} 頁「{block}」→ 待用區',
|
|
85
|
+
changeFromParking: '待用區「{block}」→ 第 {to} 頁',
|
|
86
|
+
changeReorder: '第 {n} 頁內換了順序',
|
|
87
|
+
wholeBadge: '整頁',
|
|
88
|
+
whole: {
|
|
89
|
+
steps: '這一頁有分步出現的動畫,只能整頁移動',
|
|
90
|
+
empty: '這一頁讀不出可以單獨挪的內容',
|
|
91
|
+
tooMany: '這一頁內容太多,只能整頁移動',
|
|
92
|
+
tooLarge: '這一頁太複雜,只能整頁移動',
|
|
93
|
+
},
|
|
94
|
+
parkNeedsSource: '這一塊畫在別的檔案裡,只能在頁之間挪,不能放進待用區',
|
|
95
|
+
blockKindN: '{kind} {n}',
|
|
96
|
+
splitPage: '拆成新的一頁',
|
|
97
|
+
mergePages: '合成一頁',
|
|
98
|
+
changeSplit: {
|
|
99
|
+
one: '第 {n} 頁拆出 {k} 塊成新的一頁',
|
|
100
|
+
other: '第 {n} 頁拆出 {k} 塊成新的一頁',
|
|
101
|
+
},
|
|
102
|
+
changeMerge: '第 {a} 頁和第 {b} 頁合成一頁',
|
|
103
|
+
restructureReplaced: '這一頁之前的拆合記錄已被替換',
|
|
104
|
+
apply: '交給 Agent 套用',
|
|
105
|
+
applyNeedsAgent: '連上 Agent 後才能套用,清單會一直留著',
|
|
106
|
+
applyStale: '先處理標紅的條目',
|
|
107
|
+
applyBuilding: '正在按大綱排版,排完再套用',
|
|
108
|
+
applying: 'Agent 正在套用…',
|
|
109
|
+
applyDone: '改完了',
|
|
110
|
+
applyUndo: '撤銷這次套用',
|
|
111
|
+
applyUndoLast: '撤銷上次套用',
|
|
112
|
+
applyUndoConfirm: {
|
|
113
|
+
title: '把這份簡報恢復到套用之前?',
|
|
114
|
+
body: '之後手動做的修改也會一起撤掉。',
|
|
115
|
+
confirm: '恢復',
|
|
116
|
+
},
|
|
117
|
+
applyUndone: '已恢復',
|
|
118
|
+
applyFailed: '沒有改完:{reason}',
|
|
119
|
+
applyStalled: '套用沒有完成',
|
|
120
|
+
applyCancel: '放棄這次套用',
|
|
121
|
+
askAgent: '叫 Agent',
|
|
122
|
+
askRewrite: '重寫這頁',
|
|
123
|
+
askChart: '改成圖表',
|
|
124
|
+
askMemo: '按備註改',
|
|
125
|
+
askExpand: '擴成兩頁',
|
|
126
|
+
askNeedsAgent: '先連上 Agent',
|
|
127
|
+
askBuilding: '正在按大綱排版',
|
|
128
|
+
askBusy: '已有一件事在做',
|
|
129
|
+
askHasChanges: '先套用或撤掉這一頁的待改',
|
|
130
|
+
askNeedsMemo: '先在卡片上寫備註',
|
|
131
|
+
askingPage: {
|
|
132
|
+
rewrite: 'Agent 正在重寫第 {n} 頁…',
|
|
133
|
+
chart: 'Agent 正在把第 {n} 頁改成圖表…',
|
|
134
|
+
memo: 'Agent 正在按備註改第 {n} 頁…',
|
|
135
|
+
expand: 'Agent 正在把第 {n} 頁擴成兩頁…',
|
|
136
|
+
},
|
|
137
|
+
planningChapter: 'Agent 正在出第 {n} 章的標題…',
|
|
138
|
+
writingChapter: 'Agent 正在寫第 {n} 章…',
|
|
139
|
+
askDone: '第 {n} 頁改好了',
|
|
140
|
+
askExpanded: '第 {n} 頁擴成了兩頁',
|
|
141
|
+
chapterWritten: '第 {n} 章寫好了 {k} 頁',
|
|
142
|
+
undoTask: '撤銷這次',
|
|
143
|
+
fillChapter: '讓 Agent 補齊這一章',
|
|
144
|
+
chapterBrief: '這一章講什麼',
|
|
145
|
+
chapterCount: '要幾頁',
|
|
146
|
+
planChapter: '先出標題',
|
|
147
|
+
planning: '正在出標題…',
|
|
148
|
+
viewPlan: '看標題({n})',
|
|
149
|
+
writeChapter: '開始寫這 {n} 頁',
|
|
150
|
+
dropPlan: '不要了',
|
|
151
|
+
planFailed: 'Agent 沒有給出這一章的標題',
|
|
152
|
+
retryPlan: '再試一次',
|
|
153
|
+
addPlanItem: '再加一條',
|
|
154
|
+
planRemove: '刪掉',
|
|
155
|
+
planMoveUp: '上移',
|
|
156
|
+
planMoveDown: '下移',
|
|
157
|
+
dragPage: '拖動這一頁',
|
|
158
|
+
viewCards: '卡片',
|
|
159
|
+
viewList: '列表',
|
|
160
|
+
viewTimeline: '時間軸',
|
|
161
|
+
totalDuration: '約 {d}',
|
|
162
|
+
target: '目標(分鐘)',
|
|
163
|
+
overTarget: '超出 {d}',
|
|
164
|
+
underTarget: '還剩 {d}',
|
|
165
|
+
basisNotes: '依講稿',
|
|
166
|
+
basisPage: '依頁面文字',
|
|
167
|
+
basisNone: '估不出,用最少時長',
|
|
168
|
+
progress: '{done}/{total} 完成',
|
|
169
|
+
progressReview: '{n} 待審',
|
|
170
|
+
linkCause: '因果',
|
|
171
|
+
linkContrast: '對比',
|
|
172
|
+
linkEcho: '前後呼應',
|
|
173
|
+
linkEchoShort: '呼應',
|
|
174
|
+
linkRelation: '這條關聯',
|
|
175
|
+
linkPlain: '一般關聯',
|
|
176
|
+
jumpToPage: '跳到第 {n} 頁',
|
|
177
|
+
durationSeconds: '{s} 秒',
|
|
178
|
+
durationMinSec: '{m} 分 {s} 秒',
|
|
179
|
+
durationMinutes: '{m} 分鐘',
|
|
36
180
|
},
|
|
37
181
|
theme: {
|
|
38
182
|
lime: '青檸沉浸',
|
|
@@ -91,6 +235,17 @@ export const zhTW: LrText = {
|
|
|
91
235
|
reduceMotion: '減少動態效果',
|
|
92
236
|
reduceMotionHint: '檸檬不再漂浮和彈跳,介面動畫也一併關閉。系統設了減少動態效果時也會開啟。',
|
|
93
237
|
},
|
|
238
|
+
agents: {
|
|
239
|
+
title: 'Agent',
|
|
240
|
+
hint: 'Claude Code 和 Codex 一直在。裝了別的 Agent 可以在這裡打開,打開後會出現在 Agent 面板的模型選單裡。',
|
|
241
|
+
detected: '已偵測到',
|
|
242
|
+
missing: '沒裝',
|
|
243
|
+
missingHint: '沒找到,裝好後重新打開這一頁。',
|
|
244
|
+
alwaysOn: '一直開著',
|
|
245
|
+
unlock: '打開 {name}',
|
|
246
|
+
dumateReason: 'DuMate 還不能從這裡呼叫:它只有桌面版,沒有別的程式能啟動的命令列。',
|
|
247
|
+
saveFailed: '沒儲存成功,再試一次。',
|
|
248
|
+
},
|
|
94
249
|
feedback: {
|
|
95
250
|
notFoundHint: '可能連結過期了,或這份投影片已被刪除。',
|
|
96
251
|
backHome: '回到投影片',
|
|
@@ -193,6 +348,8 @@ export const zhTW: LrText = {
|
|
|
193
348
|
draftingNoFiles: '正在列大綱…',
|
|
194
349
|
failedTitle: '大綱沒列出來',
|
|
195
350
|
failedHint: '再試一次;還不行就改改需求。',
|
|
351
|
+
failedReason: '原因:{reason}',
|
|
352
|
+
openAgent: '開啟 Agent 面板查看詳情',
|
|
196
353
|
retry: '重試',
|
|
197
354
|
editBrief: '改需求',
|
|
198
355
|
addPage: '加一頁',
|
|
@@ -244,4 +401,8 @@ export const zhTW: LrText = {
|
|
|
244
401
|
buildingHere: '正在排版,第 {k} / {n} 頁',
|
|
245
402
|
backToEditor: '回到編輯頁',
|
|
246
403
|
},
|
|
404
|
+
agentModel: {
|
|
405
|
+
followClient: '客戶端設定',
|
|
406
|
+
followClientHint: '使用 {provider} 裡自己設的模型和思考強度。',
|
|
407
|
+
},
|
|
247
408
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import idle from '../brand/mascots/lemon-idle.png';
|
|
2
|
+
|
|
3
|
+
/** The lime theme's menu entry, sized to sit with the lucide icons around it. */
|
|
4
|
+
export function LemonThemeIcon() {
|
|
5
|
+
return <img src={idle} alt="" aria-hidden="true" className="size-3.5 shrink-0 object-contain" />;
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Monitor, Moon, Sun } from 'lucide-react';
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { IconTooltip, MenuTooltipTrigger } from '@/components/icon-tooltip';
|
|
4
4
|
import { buttonVariants } from '@/components/ui/button';
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import { useLocale } from '@/lib/use-locale';
|
|
12
12
|
import { cn } from '@/lib/utils';
|
|
13
13
|
import { useLrText } from '../text';
|
|
14
|
+
import { LemonThemeIcon } from './lemon-icon';
|
|
14
15
|
import { useTheme } from './use-theme';
|
|
15
16
|
|
|
16
17
|
/** The sidebar's theme button, with the lime theme added. */
|
|
@@ -28,7 +29,7 @@ export function ThemeToggle() {
|
|
|
28
29
|
{ id: 'system', label: t.themeToggle.system, icon: <Monitor /> },
|
|
29
30
|
{ id: 'light', label: t.themeToggle.light, icon: <Sun /> },
|
|
30
31
|
{ id: 'dark', label: t.themeToggle.dark, icon: <Moon /> },
|
|
31
|
-
{ id: 'lime', label: lr.theme.lime, icon: <
|
|
32
|
+
{ id: 'lime', label: lr.theme.lime, icon: <LemonThemeIcon /> },
|
|
32
33
|
];
|
|
33
34
|
|
|
34
35
|
return (
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Citrus } from 'lucide-react';
|
|
2
1
|
import { useTheme as useNextTheme } from 'next-themes';
|
|
3
2
|
import { useCallback } from 'react';
|
|
4
3
|
import { flushSync } from 'react-dom';
|
|
@@ -6,6 +5,7 @@ import type { CommandSpec } from '@/components/command/command-menu';
|
|
|
6
5
|
import { format } from '@/lib/use-locale';
|
|
7
6
|
import type { Locale } from '../../../locale/types';
|
|
8
7
|
import { lrTextFor } from '../text';
|
|
8
|
+
import { LemonThemeIcon } from './lemon-icon';
|
|
9
9
|
import { motionReduced } from './motion';
|
|
10
10
|
|
|
11
11
|
type ViewTransitionDocument = Document & {
|
|
@@ -40,7 +40,7 @@ export function lemonRiverAppearanceCommands(
|
|
|
40
40
|
{
|
|
41
41
|
id: 'theme-lime',
|
|
42
42
|
label: format(t.commandMenu.themeItem, { name: lrTextFor(t.id).theme.lime }),
|
|
43
|
-
icon: <
|
|
43
|
+
icon: <LemonThemeIcon />,
|
|
44
44
|
keywords: ['theme', 'lime', 'appearance'],
|
|
45
45
|
active: theme === 'lime',
|
|
46
46
|
run: () => setTheme('lime'),
|
|
@@ -313,8 +313,9 @@ function turnSettings(id: string) {
|
|
|
313
313
|
const choice = status ? resolveModelChoice(status.models, state.modelChoices[provider]) : null;
|
|
314
314
|
return {
|
|
315
315
|
autoApprove: state.autoApprove,
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
// Follow-the-client sends neither field, so the CLI keeps its own model.
|
|
317
|
+
...(choice?.model.id ? { model: choice.model.id } : {}),
|
|
318
|
+
...(choice?.effort ? { effort: choice.effort } : {}),
|
|
318
319
|
};
|
|
319
320
|
}
|
|
320
321
|
|
|
@@ -488,7 +489,7 @@ export function useAgentStatus() {
|
|
|
488
489
|
provider,
|
|
489
490
|
providerName: provider?.name ?? null,
|
|
490
491
|
model: choice?.model ?? null,
|
|
491
|
-
effort: choice?.effort ?? null,
|
|
492
|
+
effort: choice?.effort ?? choice?.model.clientEffort ?? null,
|
|
492
493
|
modelChoices: s.modelChoices,
|
|
493
494
|
};
|
|
494
495
|
}
|
package/src/app/routes/slide.tsx
CHANGED
|
@@ -911,6 +911,7 @@ export function Slide() {
|
|
|
911
911
|
</div>
|
|
912
912
|
</header>
|
|
913
913
|
|
|
914
|
+
<SlideExtensions slideId={slideId} overviewOpen={overviewOpen} />
|
|
914
915
|
{view === 'assets' ? (
|
|
915
916
|
<div className="min-h-0 flex-1 overflow-hidden md:mx-2 md:mb-2 md:rounded-[10px] md:bg-background md:shadow-edge md:ring-1 md:ring-foreground/[0.06]">
|
|
916
917
|
<AssetView slideId={slideId} />
|
|
@@ -919,7 +920,6 @@ export function Slide() {
|
|
|
919
920
|
<DesignProvider slideId={slideId}>
|
|
920
921
|
<div className="relative flex min-h-0 flex-1 flex-col">
|
|
921
922
|
<div className="flex min-h-0 flex-1 flex-col md:flex-row">
|
|
922
|
-
<SlideExtensions slideId={slideId} overviewOpen={overviewOpen} />
|
|
923
923
|
<ResizableRail
|
|
924
924
|
pages={pages}
|
|
925
925
|
design={slide.design}
|