@ycodium-ai/plugin-conversation 0.2.6054 → 0.2.6114

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.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { definePlugin } from "@ycodium-ai/plugin-api";
3
3
 
4
4
  // ../../packages/plugin-api/src/version.ts
5
- var PLUGIN_API_VERSION = 196;
5
+ var PLUGIN_API_VERSION = 198;
6
6
 
7
7
  // src/sessionMap/activate.ts
8
8
  import * as NodeCrypto from "node:crypto";
@@ -374,28 +374,73 @@ var CardRefreshGate = class {
374
374
  };
375
375
  var TranscriptCache = class {
376
376
  byThread = /* @__PURE__ */ new Map();
377
+ createdAtByThread = /* @__PURE__ */ new Map();
377
378
  has(threadId) {
378
379
  return this.byThread.has(threadId);
379
380
  }
380
381
  get(threadId) {
381
382
  return this.byThread.get(threadId) ?? null;
382
383
  }
383
- seed(threadId, messages) {
384
+ seed(threadId, messages, createdAtById) {
384
385
  this.byThread.set(
385
386
  threadId,
386
387
  messages.map((message) => ({ ...message }))
387
388
  );
389
+ const times = /* @__PURE__ */ new Map();
390
+ if (createdAtById !== void 0) {
391
+ for (const [id, at] of createdAtById) {
392
+ if (at.length > 0) times.set(id, at);
393
+ }
394
+ }
395
+ this.createdAtByThread.set(threadId, times);
388
396
  }
389
- upsert(threadId, message) {
397
+ upsert(threadId, message, createdAt) {
390
398
  const list = this.byThread.get(threadId);
391
399
  if (list === void 0) return false;
392
- const index = list.findIndex((item) => item.messageId === message.messageId);
393
- if (index < 0) list.push({ ...message });
394
- else list[index] = { ...message };
400
+ let times = this.createdAtByThread.get(threadId);
401
+ if (times === void 0) {
402
+ times = /* @__PURE__ */ new Map();
403
+ this.createdAtByThread.set(threadId, times);
404
+ }
405
+ const next = { ...message };
406
+ const existingIndex = list.findIndex((item) => item.messageId === next.messageId);
407
+ const hasEffectiveTime = typeof createdAt === "string" && createdAt.length > 0;
408
+ const previousAt = times.get(next.messageId);
409
+ if (hasEffectiveTime) {
410
+ times.set(next.messageId, createdAt);
411
+ }
412
+ if (existingIndex >= 0) {
413
+ if (!hasEffectiveTime || previousAt === createdAt) {
414
+ list[existingIndex] = next;
415
+ return true;
416
+ }
417
+ list.splice(existingIndex, 1);
418
+ }
419
+ if (!hasEffectiveTime) {
420
+ list.push(next);
421
+ return true;
422
+ }
423
+ let insertAt = list.length;
424
+ for (let index = list.length - 1; index >= 0; index -= 1) {
425
+ const item = list[index];
426
+ if (item === void 0) continue;
427
+ const itemAt = times.get(item.messageId);
428
+ if (itemAt === void 0 || itemAt.length === 0) {
429
+ insertAt = index + 1;
430
+ break;
431
+ }
432
+ if (itemAt < createdAt || itemAt === createdAt && item.messageId.localeCompare(next.messageId) <= 0) {
433
+ insertAt = index + 1;
434
+ break;
435
+ }
436
+ insertAt = index;
437
+ }
438
+ list.splice(insertAt, 0, next);
395
439
  return true;
396
440
  }
397
441
  invalidate(threadId) {
398
442
  this.byThread.delete(threadId);
443
+ this.createdAtByThread.delete(threadId);
399
444
  }
400
445
  };
401
446
 
@@ -563,6 +608,15 @@ function runningOf(status) {
563
608
  }
564
609
  function executionRow(execution) {
565
610
  const running = runningOf(execution.session?.status ?? null) || execution.latestTurn?.state === "running";
611
+ const unconfirmedMessageIds = /* @__PURE__ */ new Set();
612
+ const confirmedMessageIdByIntentId = /* @__PURE__ */ new Map();
613
+ for (const intent of execution.turnIntents ?? []) {
614
+ if (intent.deliveryCertainty === "confirmed") {
615
+ confirmedMessageIdByIntentId.set(intent.intentId, intent.messageId);
616
+ } else {
617
+ unconfirmedMessageIds.add(intent.messageId);
618
+ }
619
+ }
566
620
  return {
567
621
  threadId: execution.threadId,
568
622
  projectId: execution.projectId,
@@ -574,6 +628,8 @@ function executionRow(execution) {
574
628
  status: statusOfExecution(execution, running),
575
629
  sessionStatus: execution.session?.status ?? null,
576
630
  forkedFrom: forkPointOf(execution.forkedFrom),
631
+ unconfirmedMessageIds,
632
+ confirmedMessageIdByIntentId,
577
633
  failedMessageIds: [
578
634
  ...(execution.turnIntents ?? []).flatMap(
579
635
  (intent) => intent.turn?.state === "error" ? [intent.turn.userMessageId] : []
@@ -743,16 +799,24 @@ var messageOf = (item) => ({
743
799
  text: item.text
744
800
  });
745
801
  async function readTranscript(threads, threadId) {
802
+ const seeded = await readSeededTranscript(threads, threadId);
803
+ return seeded === null ? null : seeded.messages;
804
+ }
805
+ async function readSeededTranscript(threads, threadId) {
746
806
  const newestFirst = [];
807
+ const createdAtById = /* @__PURE__ */ new Map();
747
808
  try {
748
809
  for await (const message of threadMessagesNewestFirst(threads, threadId)) {
749
810
  newestFirst.push(messageOf(message));
811
+ if (typeof message.createdAt === "string" && message.createdAt.length > 0) {
812
+ createdAtById.set(message.id, message.createdAt);
813
+ }
750
814
  }
751
815
  } catch (error) {
752
816
  if (isThreadNotFound(error)) return null;
753
817
  throw error;
754
818
  }
755
- return newestFirst.toReversed();
819
+ return { messages: newestFirst.toReversed(), createdAtById };
756
820
  }
757
821
  async function readToolTitles(threads, threadId) {
758
822
  const titles = /* @__PURE__ */ new Map();
@@ -802,6 +866,7 @@ var SessionMapHub = class {
802
866
  executionGenerations = /* @__PURE__ */ new Map();
803
867
  live = /* @__PURE__ */ new Map();
804
868
  pendingMessage = /* @__PURE__ */ new Map();
869
+ pendingConfirmedIntents = /* @__PURE__ */ new Map();
805
870
  queued = /* @__PURE__ */ new Set();
806
871
  removed = /* @__PURE__ */ new Map();
807
872
  emitters = /* @__PURE__ */ new Map();
@@ -832,6 +897,7 @@ var SessionMapHub = class {
832
897
  }
833
898
  onMessage(threadId, event, now = Date.now()) {
834
899
  if (threadId.length === 0) return;
900
+ if (isNonStreamingUserMessage(event)) this.invalidateExecution(threadId);
835
901
  const messageId = messageIdOf(event);
836
902
  if (messageId !== null) {
837
903
  const pending = this.pendingMessage.get(threadId) ?? /* @__PURE__ */ new Set();
@@ -840,6 +906,17 @@ var SessionMapHub = class {
840
906
  }
841
907
  this.note(threadId, now, false);
842
908
  }
909
+ onIntentTransitioned(threadId, event, now = Date.now()) {
910
+ if (threadId.length === 0 || !isRecord(event.payload)) return;
911
+ if (readString(event.payload.deliveryCertainty) !== "confirmed") return;
912
+ const intentId = readString(event.payload.intentId);
913
+ if (intentId.length === 0) return;
914
+ this.invalidateExecution(threadId);
915
+ const pending = this.pendingConfirmedIntents.get(threadId) ?? /* @__PURE__ */ new Set();
916
+ pending.add(intentId);
917
+ this.pendingConfirmedIntents.set(threadId, pending);
918
+ this.note(threadId, now, false);
919
+ }
843
920
  onProgress(event, now = Date.now()) {
844
921
  const progress = readTurnProgress(event);
845
922
  const threadId = event.threadId;
@@ -909,7 +986,7 @@ var SessionMapHub = class {
909
986
  async readTurns(threadId, messageIds) {
910
987
  const execution = await this.executionFor(threadId);
911
988
  if (execution === null) return { threadId, turns: [] };
912
- const messages = await this.loadMessages(threadId);
989
+ const messages = await this.loadMessages(threadId, execution);
913
990
  const parent = execution.forkedFrom === null ? null : await this.loadParent(execution.forkedFrom.sourceThreadId);
914
991
  const inherited = inheritedMessageCount(parent, execution.forkedFrom?.sourceMessageId ?? null);
915
992
  return {
@@ -1030,7 +1107,7 @@ var SessionMapHub = class {
1030
1107
  async projectOne(threadId) {
1031
1108
  const execution = await this.executionFor(threadId);
1032
1109
  if (execution === null) return null;
1033
- const messages = await this.loadMessages(threadId);
1110
+ const messages = await this.loadMessages(threadId, execution);
1034
1111
  let parentMessages = null;
1035
1112
  if (execution.forkedFrom !== null) {
1036
1113
  parentMessages = await this.loadParent(execution.forkedFrom.sourceThreadId);
@@ -1041,7 +1118,7 @@ var SessionMapHub = class {
1041
1118
  if (live !== void 0) {
1042
1119
  const message = await this.ctx.projections.getThreadMessage(live.messageId);
1043
1120
  if (message !== null) {
1044
- this.transcripts.upsert(threadId, messageOf2(message));
1121
+ this.transcripts.upsert(threadId, messageOf2(message), message.createdAt);
1045
1122
  const clipped = clipText(message.text, MAX_CARD_TEXT);
1046
1123
  answer = { text: clipped.text, truncated: clipped.truncated };
1047
1124
  }
@@ -1072,7 +1149,8 @@ var SessionMapHub = class {
1072
1149
  }
1073
1150
  async seedTranscript(threadId) {
1074
1151
  if (this.transcripts.has(threadId)) return;
1075
- this.transcripts.seed(threadId, await readTranscript(this.ctx.threads, threadId) ?? []);
1152
+ const seeded = await readSeededTranscript(this.ctx.threads, threadId);
1153
+ this.transcripts.seed(threadId, seeded?.messages ?? [], seeded?.createdAtById);
1076
1154
  this.rememberTitles(threadId, await readToolTitles(this.ctx.threads, threadId));
1077
1155
  }
1078
1156
  rememberTitles(threadId, titles) {
@@ -1087,21 +1165,38 @@ var SessionMapHub = class {
1087
1165
  tools.map((tool) => ({ ...tool, title: known.get(tool.callId) ?? tool.title }))
1088
1166
  );
1089
1167
  }
1090
- async loadMessages(threadId) {
1168
+ async loadMessages(threadId, execution) {
1091
1169
  const pending = this.pendingMessage.get(threadId);
1092
1170
  this.pendingMessage.delete(threadId);
1171
+ const confirmedIntents = this.pendingConfirmedIntents.get(threadId);
1172
+ this.pendingConfirmedIntents.delete(threadId);
1093
1173
  await this.seedTranscript(threadId);
1174
+ const idsToLoad = /* @__PURE__ */ new Set();
1175
+ if (confirmedIntents !== void 0) {
1176
+ for (const intentId of confirmedIntents) {
1177
+ const messageId = execution.confirmedMessageIdByIntentId?.get(intentId);
1178
+ if (messageId !== void 0) idsToLoad.add(messageId);
1179
+ }
1180
+ }
1094
1181
  if (pending !== void 0) {
1095
1182
  for (const messageId of pending) {
1096
- const message = await this.ctx.projections.getThreadMessage(messageId);
1097
- if (message !== null) this.transcripts.upsert(threadId, messageOf2(message));
1183
+ if (!execution.unconfirmedMessageIds?.has(messageId)) {
1184
+ idsToLoad.add(messageId);
1185
+ }
1186
+ }
1187
+ }
1188
+ for (const messageId of idsToLoad) {
1189
+ const message = await this.ctx.projections.getThreadMessage(messageId);
1190
+ if (message !== null) {
1191
+ this.transcripts.upsert(threadId, messageOf2(message), message.createdAt);
1098
1192
  }
1099
1193
  }
1100
1194
  return this.transcripts.get(threadId) ?? [];
1101
1195
  }
1102
1196
  async loadParent(threadId) {
1103
1197
  if (!this.transcripts.has(threadId)) {
1104
- this.transcripts.seed(threadId, await readTranscript(this.ctx.threads, threadId) ?? []);
1198
+ const seeded = await readSeededTranscript(this.ctx.threads, threadId);
1199
+ this.transcripts.seed(threadId, seeded?.messages ?? [], seeded?.createdAtById);
1105
1200
  }
1106
1201
  return this.transcripts.get(threadId) ?? [];
1107
1202
  }
@@ -1156,8 +1251,12 @@ var SessionMapHub = class {
1156
1251
  this.invalidateExecution(threadId);
1157
1252
  this.live.delete(threadId);
1158
1253
  this.pendingMessage.delete(threadId);
1254
+ this.pendingConfirmedIntents.delete(threadId);
1159
1255
  }
1160
1256
  };
1257
+ function isNonStreamingUserMessage(event) {
1258
+ return isRecord(event.payload) && event.payload.role === "user" && event.payload.streaming === false;
1259
+ }
1161
1260
  function messageIdOf(event) {
1162
1261
  if (!isRecord(event.payload)) return null;
1163
1262
  const messageId = readString(event.payload.messageId);
@@ -1181,6 +1280,7 @@ function activateSessionMap(ctx) {
1181
1280
  "thread.created",
1182
1281
  "thread.deleted",
1183
1282
  "thread.message-sent",
1283
+ "thread.turn-intent-transitioned",
1184
1284
  "thread.archived",
1185
1285
  "thread.unarchived",
1186
1286
  "thread.activity-appended",
@@ -1192,6 +1292,10 @@ function activateSessionMap(ctx) {
1192
1292
  hub.onMessage(threadId, event);
1193
1293
  return;
1194
1294
  }
1295
+ if (event.type === "thread.turn-intent-transitioned") {
1296
+ hub.onIntentTransitioned(threadId, event);
1297
+ return;
1298
+ }
1195
1299
  if (event.type === "thread.session-set") {
1196
1300
  hub.onStatus(threadId);
1197
1301
  return;
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "presentation": {
11
11
  "name": "会话",
12
- "description": "聊天、输入卡、队列和轮次导航。"
12
+ "description": "聊天、输入框、队列和轮次导航。"
13
13
  },
14
14
  "projection": {
15
15
  "unavailable": "先把这台机器上的 Ycodium 更新到最新版,才能显示这部分内容。",
@@ -27,22 +27,22 @@
27
27
  "resumeFailed": "无法恢复发送。请重试。",
28
28
  "blockedTitle": "发送受阻",
29
29
  "blockedDescription": "需要先处理较早的请求,排队请求才能继续。",
30
- "reconcilingTitle": "正在检查较早的请求",
31
- "reconcilingDescription": "机器正在检查较早的请求。排队请求将等待检查完成。",
30
+ "reconcilingTitle": "正在核对较早的请求",
31
+ "reconcilingDescription": "机器正在核对较早的请求。排队请求将等待核对完成。",
32
32
  "uncertainTitle": "投递状态未知",
33
33
  "uncertainDescription": "较早的请求可能已发送。系统不会自动重新发送或跳过它;排队请求将继续等待。",
34
34
  "pausedUncertainDescription": "恢复发送会解除暂停,但不会解决较早的请求。",
35
- "disconnected": "重新连接到此机器以恢复发送。",
35
+ "disconnected": "重新连接这台机器后即可管理排队请求。",
36
36
  "showMessages": "显示消息",
37
37
  "hideMessages": "隐藏消息",
38
38
  "itemQueued": "已排队",
39
39
  "itemRunning": "进行中",
40
40
  "itemBlocked": "需要处理",
41
- "itemCapacity": "排队中",
42
- "capacityTitle": "排队中",
43
- "capacityDescription_one": "这台机器上 {{agent}} 同时最多 {{count}} 个,前面有人做完就轮到它。",
44
- "capacityDescription_other": "这台机器上 {{agent}} 同时最多 {{count}} 个,前面有人做完就轮到它。",
45
- "capacityDescriptionNoLimit": "这台机器上 {{agent}} 已经开满了,前面有人做完就轮到它。",
41
+ "itemCapacity": "等待空闲名额",
42
+ "capacityTitle": "等待空闲名额",
43
+ "capacityDescription_one": "这台机器上 {{agent}} 同时最多跑 {{count}} 条会话,那条做完这一轮就开始。",
44
+ "capacityDescription_other": "这台机器上 {{agent}} 同时最多跑 {{count}} 条会话,有一条做完这一轮就开始。",
45
+ "capacityDescriptionNoLimit": "这台机器上 {{agent}} 开的会话数已达这台机器的上限,有一条做完这一轮就开始。",
46
46
  "itemUnknown": "投递状态未知",
47
47
  "messageUnavailable": "消息内容不可用",
48
48
  "pauseMessage": "暂停此消息",
@@ -63,7 +63,7 @@
63
63
  "editStale": "此消息已更改或已开始发送。你的编辑仍保留在此处,但无法再替换该消息。",
64
64
  "discardEdit": "关闭编辑器",
65
65
  "saveEdit": "保存更改",
66
- "saving": "正在保存...",
66
+ "saving": "正在保存…",
67
67
  "attachmentsOnly": "附件",
68
68
  "sourceUser": "你",
69
69
  "sourceScheduledWake": "定时唤醒",
@@ -84,7 +84,7 @@
84
84
  "titleOnly": "「{{title}}」",
85
85
  "addAttachments": "添加图片或文件",
86
86
  "removeAttachment": "移除 {{name}}",
87
- "uploading": "正在上传...",
87
+ "uploading": "正在上传…",
88
88
  "uploadFailed": "上传失败。请在保存前重试。",
89
89
  "retryUpload": "重试上传",
90
90
  "reorderMessage": "拖动以重新排序;移动控件位于消息操作中",
@@ -95,13 +95,13 @@
95
95
  "messageActions": "消息操作",
96
96
  "moveUp": "上移",
97
97
  "moveDown": "下移",
98
- "steer": "发送到当前轮次",
99
- "steerDescription": "将此消息添加到当前轮次,不中止该轮次",
100
- "steering": "正在发送到当前轮次...",
98
+ "steer": "插话",
99
+ "steerDescription": "把这条消息插进当前轮次,不打断它",
100
+ "steering": "正在插话…",
101
101
  "sentWith": "按发送时的设置执行:{{modes}}",
102
102
  "sentWithPlan": "计划模式",
103
103
  "sentWithNoPlan": "非计划模式",
104
- "interrupting": "正在停止当前轮次...",
104
+ "interrupting": "正在停止当前轮次…",
105
105
  "interruptAndRun": "停止并发送此消息",
106
106
  "sendNext": "下一条发送此消息",
107
107
  "addPhotos": "添加照片",
@@ -118,8 +118,8 @@
118
118
  "loadEarlierAction": "加载更早的轮次",
119
119
  "loadingEarlier": "正在加载更早的轮次…",
120
120
  "openInChat": "在聊天中显示",
121
- "expandRow": "显示详情",
122
- "collapseRow": "隐藏详情",
121
+ "expandRow": "展开详情",
122
+ "collapseRow": "收起详情",
123
123
  "empty": "暂无活动",
124
124
  "valueUnknown": "未知",
125
125
  "columnTime": "时间",
@@ -133,7 +133,7 @@
133
133
  "assistant-message": "助手消息",
134
134
  "reasoning": "思考",
135
135
  "tool-call": "工具调用",
136
- "approval": "审批",
136
+ "approval": "批准",
137
137
  "user-input": "问题",
138
138
  "compaction": "上下文压缩",
139
139
  "retry": "重试",
@@ -152,7 +152,7 @@
152
152
  "declined": "已拒绝",
153
153
  "stopped": "已停止",
154
154
  "pending": "待处理",
155
- "reconciling": "正在协调",
155
+ "reconciling": "正在核对",
156
156
  "blocked": "已阻塞",
157
157
  "cancelled": "已取消",
158
158
  "abandoned": "已放弃",
@@ -166,8 +166,8 @@
166
166
  "workItem": "工作项",
167
167
  "phase": {
168
168
  "replied": "已回复",
169
- "pickedUp": "已取件",
170
- "waiting": "对方还没取件",
169
+ "pickedUp": "已接收",
170
+ "waiting": "对方还没接收",
171
171
  "unknown": "投递结果不明",
172
172
  "recorded": "已记录",
173
173
  "withdrawn": "已撤回",
@@ -185,7 +185,7 @@
185
185
  "notReceived": "这次未收到这条记录,数据不完整"
186
186
  },
187
187
  "sources": {
188
- "native": "原生工具",
188
+ "native": "原生",
189
189
  "ycodium": "Ycodium",
190
190
  "plugin": "插件",
191
191
  "mcp": "MCP",
@@ -272,9 +272,9 @@
272
272
  },
273
273
  "activity": {
274
274
  "compacting": "正在压缩上下文",
275
- "openFileDiff": "打开 {{path}} 的差异对比",
275
+ "openFileDiff": "打开 {{path}} 的 diff",
276
276
  "working": "运行中",
277
- "waitingForApproval": "等你审批",
277
+ "waitingForApproval": "等你批准",
278
278
  "waitingForAnswer": "等你回答"
279
279
  },
280
280
  "attachments": {
@@ -332,14 +332,14 @@
332
332
  },
333
333
  "open": "查看会话",
334
334
  "notification": {
335
- "settled": "“{{title}}”已收尾",
336
- "failed": "“{{title}}”失败",
337
- "approval": "“{{title}}”需要你的批准",
338
- "question": "“{{title}}”提了一个问题",
339
- "stopped": "“{{title}}”已停止",
340
- "resolved": "“{{title}}”已有答复",
335
+ "settled": "「{{title}}」已收尾",
336
+ "failed": "「{{title}}」失败",
337
+ "approval": "「{{title}}」需要你的批准",
338
+ "question": "「{{title}}」提了一个问题",
339
+ "stopped": "「{{title}}」已停止",
340
+ "resolved": "「{{title}}」已有答复",
341
341
  "pluginNotice": "{{title}}",
342
- "selfdevResolved": "插件请求“{{title}}”已处理",
342
+ "selfdevResolved": "插件请求「{{title}}」已处理",
343
343
  "cookieImportResolved": "Cookie 导入请求已处理",
344
344
  "remotePost": "来自另一台机器的消息"
345
345
  },
@@ -427,7 +427,7 @@
427
427
  "saveErrorDescription": "保存时出错。",
428
428
  "savedToWorkspace": "计划已保存到工作区",
429
429
  "saveToWorkspace": "将计划保存到工作区",
430
- "saving": "正在保存...",
430
+ "saving": "正在保存…",
431
431
  "theWorkspace": "工作区",
432
432
  "workspacePath": "工作区路径",
433
433
  "workspacePathUnavailable": "工作区路径不可用",
@@ -457,34 +457,34 @@
457
457
  "modelSwitchedPrefix": "已切换到",
458
458
  "agentRelayPending": "下一条消息由 {{agent}} 接手",
459
459
  "agentRelayInFlight": "正在交由 {{agent}} 接手",
460
- "agentRelayTookOver_one": "{{agent}} 已接手,已交出 {{count}} 条历史发言",
461
- "agentRelayTookOver_other": "{{agent}} 已接手,已交出 {{count}} 条历史发言",
462
- "agentRelayTookOverTruncated_one": "{{agent}} 已接手,已交出最近 {{count}} 条历史发言,更早可回查",
463
- "agentRelayTookOverTruncated_other": "{{agent}} 已接手,已交出最近 {{count}} 条历史发言,更早可回查",
464
- "agentRelayTookOverOmitted": "{{agent}} 已接手,超预算未附带历史发言,更早可回查",
465
- "agentRelayTookOverNoHistory": "{{agent}} 已接手,无可附带的历史发言",
460
+ "agentRelayTookOver_one": "{{agent}} 已接手,带上了 {{count}} 条早先的消息",
461
+ "agentRelayTookOver_other": "{{agent}} 已接手,带上了 {{count}} 条早先的消息",
462
+ "agentRelayTookOverTruncated_one": "{{agent}} 已接手,只带上最近 {{count}} 条早先的消息,更早的可回查",
463
+ "agentRelayTookOverTruncated_other": "{{agent}} 已接手,只带上最近 {{count}} 条早先的消息,更早的可回查",
464
+ "agentRelayTookOverOmitted": "{{agent}} 已接手,早先的消息因超出长度限制未带上,可回查历史",
465
+ "agentRelayTookOverNoHistory": "{{agent}} 已接手,没有早先的消息可带",
466
466
  "agentRelayResumed_one": "{{agent}} 已接回,已补上 {{count}} 条消息",
467
467
  "agentRelayResumed_other": "{{agent}} 已接回,已补上 {{count}} 条消息",
468
468
  "agentRelayResumedTruncated_one": "{{agent}} 已接回,已补上最近 {{count}} 条消息,更早可回查",
469
469
  "agentRelayResumedTruncated_other": "{{agent}} 已接回,已补上最近 {{count}} 条消息,更早可回查",
470
- "agentRelayResumedOmitted": "{{agent}} 已接回,超预算未补发消息,更早可回查",
470
+ "agentRelayResumedOmitted": "{{agent}} 已接回,错过的消息因超出长度限制未补发,可回查历史",
471
471
  "agentRelayResumedUpToDate": "{{agent}} 已接回,无需补发消息",
472
- "agentRelayUnconfirmed": "切向 {{agent}},投递未确认",
472
+ "agentRelayUnconfirmed": "正在切换到 {{agent}},投递未确认",
473
473
  "agentRelayFailed": "未能交由 {{agent}} 接手(未送出)",
474
474
  "agentRelayFallback": "已切换到 {{agent}}",
475
475
  "outputTokens": "输出 token",
476
476
  "outputTokenCount_one": "{{value}} token",
477
477
  "outputTokenCount_other": "{{value}} token",
478
478
  "pinnedTurnHeaderJump": "跳到这一轮开头",
479
- "workingTime": "工作时长 {{duration}}",
479
+ "workingTime": "工作时间 {{duration}}",
480
480
  "loadingEarlier": "正在加载更早的轮次…",
481
481
  "loadLater": "加载更晚的轮次",
482
482
  "loadingLater": "正在加载更晚的轮次…",
483
483
  "returnToLatest": "返回最新内容",
484
484
  "scrollToEnd": "回到底部",
485
- "showLess": "显示更少",
485
+ "showLess": "收起消息",
486
486
  "emptyResponse": "(空回复)",
487
- "reviewCommentDefaultSection": "评审",
487
+ "reviewCommentDefaultSection": "审查",
488
488
  "reviewCommentDefaultRange": "行",
489
489
  "quote": {
490
490
  "cite": "引用到输入框",
@@ -498,7 +498,7 @@
498
498
  "turnStarted": "开始于 {{time}}",
499
499
  "turnFinished": "结束于 {{time}}",
500
500
  "waiting": "其中等你 {{waiting}}",
501
- "waitingWithApprovals": "其中等你 {{waiting}},含审批 {{approvals}}"
501
+ "waitingWithApprovals": "其中等你 {{waiting}},含批准 {{approvals}}"
502
502
  },
503
503
  "toolCall": {
504
504
  "output": "输出",
@@ -558,8 +558,8 @@
558
558
  "namedCalls_other": "{{name}} · {{count}} 次"
559
559
  },
560
560
  "approval": {
561
- "appAccessLabel": "应用访问审批",
562
- "respondFailed": "提交审批决定失败。",
561
+ "appAccessLabel": "应用访问批准",
562
+ "respondFailed": "提交批准决定失败。",
563
563
  "body": {
564
564
  "argumentsLabel": "参数",
565
565
  "detailLabel": "请求内容",
@@ -573,7 +573,7 @@
573
573
  "hideCommand": "收起完整命令"
574
574
  },
575
575
  "commandDetailLabel": "命令",
576
- "commandLabel": "命令审批",
576
+ "commandLabel": "命令批准",
577
577
  "declineReasonLabel": "拒绝理由",
578
578
  "declineReasonPlaceholder": "告诉 agent 改做什么",
579
579
  "declineReasonQueuedNote": "随你的下一条消息送达。",
@@ -585,10 +585,10 @@
585
585
  "tooLarge": "这次改动太大,这里放不下预览。",
586
586
  "unavailable": "这次改动没有可用预览。"
587
587
  },
588
- "fileChangeLabel": "文件修改审批",
589
- "fileReadLabel": "文件读取审批",
590
- "mcpToolLabel": "MCP 工具审批",
591
- "skillLabel": "技能审批",
588
+ "fileChangeLabel": "文件修改批准",
589
+ "fileReadLabel": "文件读取批准",
590
+ "mcpToolLabel": "MCP 工具批准",
591
+ "skillLabel": "技能批准",
592
592
  "title": {
593
593
  "appAccess": "允许 {{name}} 访问?",
594
594
  "appAccessGeneric": "允许应用访问?",
@@ -604,9 +604,9 @@
604
604
  "webFetch": "抓取这个网址?",
605
605
  "webSearch": "执行这次联网搜索?"
606
606
  },
607
- "toolLabel": "工具审批",
608
- "webFetchLabel": "网页抓取审批",
609
- "webSearchLabel": "联网搜索审批",
607
+ "toolLabel": "工具批准",
608
+ "webFetchLabel": "网页抓取批准",
609
+ "webSearchLabel": "联网搜索批准",
610
610
  "outsideSandbox": "在沙箱外运行",
611
611
  "fileChangesTruncated": "部分受影响的文件未列出",
612
612
  "actions": {
@@ -635,8 +635,8 @@
635
635
  "toolkitsListSeparator": "、",
636
636
  "toolkitsWithOnDemand": "{{toolkits}}(+{{count}} 按需)",
637
637
  "skills": "技能",
638
- "skillsCount_one": "{{count}} 个生效",
639
- "skillsCount_other": "{{count}} 个生效",
638
+ "skillsCount_one": "{{count}} 个生效技能",
639
+ "skillsCount_other": "{{count}} 个生效技能",
640
640
  "memory": "记忆",
641
641
  "memorySummary": "{{release}},{{experiences}}",
642
642
  "experiencesCount_one": "{{count}} 条经验",
@@ -674,7 +674,7 @@
674
674
  "browserAnnotation": {
675
675
  "cropAlt": "已标注的网页截图",
676
676
  "previewImage": "预览 {{name}}",
677
- "remove": "移除网页批注",
677
+ "remove": "移除浏览器标注",
678
678
  "elementCount_one": "{{count}} 个元素",
679
679
  "elementCount_other": "{{count}} 个元素",
680
680
  "regionCount_one": "{{count}} 个区域",
@@ -696,13 +696,13 @@
696
696
  "refine": "优化",
697
697
  "sendMessage": "发送消息",
698
698
  "sendingAriaLabel": "正在发送",
699
- "sendingButtonLabel": "正在发送...",
699
+ "sendingButtonLabel": "正在发送…",
700
700
  "stopGeneration": "停止",
701
701
  "stopping": "正在停止…",
702
702
  "submit": "提交",
703
703
  "submitAnswer": "提交答案",
704
704
  "submitAnswers": "提交答案",
705
- "submitting": "正在提交...",
705
+ "submitting": "正在提交…",
706
706
  "confirmStopEsc": "再按一次 Esc 停止",
707
707
  "runInTerminal": "在终端运行",
708
708
  "cancelCheck": "取消检查"
@@ -721,7 +721,7 @@
721
721
  "stash": {
722
722
  "closeLabel": "关闭暂存区",
723
723
  "deleteLabel": "删除已暂存的输入框内容",
724
- "empty": "暂无暂存内容。在编辑器中输入内容后按 ⌘S 将其暂存。",
724
+ "empty": "暂无暂存内容。在输入框里写好内容后按 ⌘S 即可暂存。",
725
725
  "emptyEntry": "(空)",
726
726
  "label": "暂存",
727
727
  "ariaLabel_one": "已暂存的输入框内容:{{count}}。打开暂存区。",
@@ -737,7 +737,7 @@
737
737
  "ariaLabel": "任务:已完成 {{completed}} / {{total}}。当前任务:{{step}}",
738
738
  "dismissLabel": "隐藏本轮次任务",
739
739
  "label": "任务",
740
- "now": "刚刚"
740
+ "now": "现在"
741
741
  },
742
742
  "threadSync": {
743
743
  "failed": "无法加载会话",
@@ -745,17 +745,17 @@
745
745
  "failureSyncFailed": "这条会话的同步已中断,点重试重新连接。",
746
746
  "failureTooLarge": "这条会话太大,一次读不完。",
747
747
  "failureUnknown": "加载这条会话时出了问题。",
748
- "loading": "正在加载消息...",
748
+ "loading": "正在加载消息…",
749
749
  "retry": "重试",
750
- "syncing": "正在同步消息..."
750
+ "syncing": "正在同步消息…"
751
751
  },
752
752
  "traits": {
753
753
  "off": "关闭",
754
754
  "on": "开启",
755
755
  "savedOption": {
756
- "agent": "智能体",
756
+ "agent": "Agent",
757
757
  "effort": "强度",
758
- "reasoningEffort": "推理强度",
758
+ "reasoningEffort": "思考强度",
759
759
  "variant": "推理",
760
760
  "fastMode": "快速模式",
761
761
  "serviceTier": "服务档位"
@@ -768,7 +768,7 @@
768
768
  "high": "高",
769
769
  "xhigh": "超高",
770
770
  "max": "最高",
771
- "ultra": "极高"
771
+ "ultra": "极限"
772
772
  },
773
773
  "standardTier": "标准"
774
774
  },
@@ -805,30 +805,30 @@
805
805
  "promptTooLong_other": "输入内容比 {{max}} 字符的上限多了 {{excess}} 个字符。先缩短或拆开再发送。",
806
806
  "stillCompressing": "粘贴的图片还在压缩。",
807
807
  "sendAgainThumbnail": "缩略图出现后再发送。",
808
- "stashReappear": "恢复的提示可能重新出现在 stash",
808
+ "stashReappear": "恢复的输入内容可能重新出现在暂存区",
809
809
  "storageRejectedKeep": "浏览器存储拒绝了更新,重载后该条目可能仍在。",
810
810
  "someImagesNotRestored": "部分图片未恢复",
811
- "stashImagesTooLarge": "保存这条提示时,{{names}} 超过了 stash 的大小上限。",
812
- "stashImagesUnreadable": "保存这条提示时,{{names}} 无法读取。",
813
- "stashEntryMayReturn": "stash 条目可能回来",
814
- "storageRejectedDelete": "浏览器存储拒绝了删除,重载后该提示可能重新出现。",
815
- "couldNotStash": "无法 stash 该提示",
811
+ "stashImagesTooLarge": "保存这条输入内容时,{{names}} 超过了暂存区的大小上限。",
812
+ "stashImagesUnreadable": "保存这条输入内容时,{{names}} 无法读取。",
813
+ "stashEntryMayReturn": "暂存条目可能回来",
814
+ "storageRejectedDelete": "浏览器存储拒绝了删除,重载后这条输入内容可能重新出现。",
815
+ "couldNotStash": "无法暂存这条输入内容",
816
816
  "storageRejectedWrite": "浏览器存储拒绝了写入,输入框保持原样。清理站点数据后重试。",
817
- "stashNotSurvive": "stash 的提示不会跨重载保留",
818
- "storageUnavailableMemory": "浏览器存储不可用,本次 stash 仅保存在本会话内存中。",
819
- "oldestStashDiscarded": "最旧的 stash 提示已丢弃",
820
- "oldestStashDiscardedDetail": "stash 最多存 {{count}} 条提示,最旧的一条已移除,腾出位置。",
821
- "stashImagesNotSaved": "stash 的图片未保存",
822
- "stashImagesMissingOnReload": "提示已 stash,但浏览器存储拒绝了其图片;重载后会缺失。",
823
- "stashImagesDidNotAttach": "stash 的图片未附加",
824
- "stashImagesDidNotAttachDetail_one": "那条提示在 {{count}} 张图片保存完之前就被恢复或删除了。如果还需要,请重新附加。",
825
- "stashImagesDidNotAttachDetail_other": "那条提示在 {{count}} 张图片保存完之前就被恢复或删除了。如果还需要,请重新附加。",
817
+ "stashNotSurvive": "暂存的输入内容不会跨重载保留",
818
+ "storageUnavailableMemory": "浏览器存储不可用,这次暂存只保存在本会话内存中。",
819
+ "oldestStashDiscarded": "最旧的暂存内容已丢弃",
820
+ "oldestStashDiscardedDetail": "暂存区最多存 {{count}} 条输入内容,最旧的一条已移除,腾出位置。",
821
+ "stashImagesNotSaved": "暂存的图片未保存",
822
+ "stashImagesMissingOnReload": "输入内容已暂存,但浏览器存储拒绝了它的图片;重载后会缺失。",
823
+ "stashImagesDidNotAttach": "暂存的图片未附加",
824
+ "stashImagesDidNotAttachDetail_one": "那条输入内容在 {{count}} 张图片保存完之前就被恢复或删除了。如果还需要,请重新附加。",
825
+ "stashImagesDidNotAttachDetail_other": "那条输入内容在 {{count}} 张图片保存完之前就被恢复或删除了。如果还需要,请重新附加。",
826
826
  "unableToAddToChat": "无法添加到会话",
827
827
  "expandComposer": "展开输入框",
828
828
  "typeOwnAnswer": "输入你自己的回答,或留空以使用所选选项",
829
829
  "enableProviderSettings": "在设置中启用 provider",
830
830
  "askAnything": "问点什么…",
831
- "resolveApprovalToContinue": "处理该审批请求以继续",
831
+ "resolveApprovalToContinue": "处理该批准请求以继续",
832
832
  "addFeedbackRefinePlan": "补充反馈以细化计划,或留空直接实施",
833
833
  "chooseProjectToStart": "在上方选择项目以开始会话",
834
834
  "enableProviderToSend": "在设置中启用 provider 以发送消息",
@@ -853,7 +853,7 @@
853
853
  "shellCommand": {
854
854
  "mode": "在终端运行",
855
855
  "hint": "回车在这条会话的终端里运行这一行,Esc 退回。",
856
- "touchHint": "点按“在终端运行”执行命令,删除开头的 ! 退出。",
856
+ "touchHint": "点按「在终端运行」执行命令,删除开头的 ! 退出。",
857
857
  "singleLine": "一次只能运行一行命令。"
858
858
  },
859
859
  "quote": {
@@ -925,7 +925,7 @@
925
925
  "status": {
926
926
  "running": "运行中",
927
927
  "waiting": "等你",
928
- "failed": "出错",
928
+ "failed": "失败",
929
929
  "done": "完成",
930
930
  "archived": "已归档"
931
931
  },
@@ -999,23 +999,23 @@
999
999
  "commands_other": "{{count}} 条命令",
1000
1000
  "failures_one": "{{count}} 个失败步骤",
1001
1001
  "failures_other": "{{count}} 个失败步骤",
1002
- "approvals_one": "{{count}} 个审批",
1003
- "approvals_other": "{{count}} 个审批",
1002
+ "approvals_one": "{{count}} 个批准",
1003
+ "approvals_other": "{{count}} 个批准",
1004
1004
  "questions_one": "{{count}} 个提问",
1005
1005
  "questions_other": "{{count}} 个提问",
1006
1006
  "compactions": "压缩过上下文",
1007
- "duration": "工作用时:{{duration}}",
1007
+ "duration": "工作时间:{{duration}}",
1008
1008
  "locate": "定位步骤",
1009
1009
  "loadedFacts": "数量只包含已加载且身份明确的活动。",
1010
1010
  "loaded": "已加载",
1011
1011
  "step": "步骤 {{index}}",
1012
1012
  "compaction": "上下文压缩",
1013
- "collapseTurn": "折叠这一轮",
1013
+ "collapseTurn": "收起这一轮",
1014
1014
  "expandTurn": "展开这一轮",
1015
1015
  "unassigned": "其它活动",
1016
1016
  "turn": "轮次",
1017
1017
  "routineSteps": "{{count}} 个常规步骤",
1018
- "expandAll": "全部摊开",
1018
+ "expandAll": "全部展开",
1019
1019
  "compressionDetails": "压缩详情",
1020
1020
  "recordedChanges": "已记录的改动",
1021
1021
  "changesSource": {
@@ -1033,8 +1033,8 @@
1033
1033
  "modelNote": {
1034
1034
  "replaced": "{{from}} 已不在列表中,改用 {{to}}",
1035
1035
  "replacedNoDefault": "{{from}} 已不在列表中",
1036
- "optionUnsupported": "此型号不支持{{option}}「{{value}}」,按默认运行",
1037
- "effortMoved": "此型号没有「{{from}}」,改用「{{to}}」"
1036
+ "optionUnsupported": "此模型不支持{{option}}「{{value}}」,按默认运行",
1037
+ "effortMoved": "此模型没有「{{from}}」,改用「{{to}}」"
1038
1038
  },
1039
1039
  "decision": {
1040
1040
  "showDetail": "展开详情",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-conversation",
3
- "version": "0.2.6054",
3
+ "version": "0.2.6114",
4
4
  "description": "The conversation surface: chat, trajectory, and session map, the input card, the queue, and turn navigation.",
5
5
  "keywords": [
6
6
  "chat",
@@ -45,14 +45,14 @@
45
45
  "tailwindcss": "^4.0.0",
46
46
  "typescript": "~6.0.3",
47
47
  "vite-plus": "0.2.2",
48
- "@ycodium-ai/plugin-api": "0.2.6054",
49
48
  "ycodium-attachment-kinds": "0.0.0",
49
+ "@ycodium-ai/plugin-api": "0.2.6114",
50
50
  "ycodium-composer-tokens": "0.0.0",
51
- "ycodium-duration-format": "0.0.0",
52
51
  "ycodium-day-format": "0.0.0",
52
+ "ycodium-duration-format": "0.0.0",
53
53
  "ycodium-plugin-testing": "0.0.0",
54
- "ycodium-react-test-harness": "0.0.0",
55
54
  "ycodium-system-text": "0.0.0",
55
+ "ycodium-react-test-harness": "0.0.0",
56
56
  "ycodium-ui-hooks": "0.0.0"
57
57
  },
58
58
  "ycodium": {