dsh-sidenote 0.6.3 → 0.6.5

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 CHANGED
@@ -82,7 +82,9 @@ dsh plugin --profile web add dsh-sidenote
82
82
 
83
83
  ## 兼容与帮助
84
84
 
85
- 已验证的原生侧栏组合为 **DSH 0.1.5-rc.2、0.1.7-rc.2、0.2.0-rc.2、0.2.1-rc.2**;旧版的三组 BS 组合继续保留验收。支持范围以[兼容与维护政策](docs/compatibility.md)中的精确版本为准;已发布版本请查看对应 Release。
85
+ 已验证的原生侧栏组合为 **DSH 0.1.5-rc.2、0.1.7-rc.2、0.2.0-rc.2、0.2.1-rc.2、0.2.1-rc.3**;旧版的三组 BS 组合继续保留验收。支持范围以[兼容与维护政策](docs/compatibility.md)中的精确版本为准;已发布版本请查看对应 Release。
86
+
87
+ 0.6.5 包含 DSH 0.2.1-rc.3 适配、V4 回流来源修复和逐项投递确认。0.6.4 及更早版本不声明支持 rc.3。0.6.5 是原生 Conversation 重构前的兼容修复快照;后续新版的原生宿主范围以对应 Release 为准,窗口外可固定 `dsh-sidenote@0.6.5`。
86
88
 
87
89
  遇到问题时,可在 **设置 → 通用设置 → dsh-sidenote 诊断模式** 开启诊断,查看并手动导出接入状态。[报告问题或提出建议](https://github.com/g-yixuan/dsh-sidenote/issues/new/choose)。
88
90
 
package/lib/client.js CHANGED
@@ -619,7 +619,7 @@ window.__ModuleLoader__.load({
619
619
  let dockRegistered = false;
620
620
  let report = {
621
621
  versions: {
622
- sidenote: "0.6.3",
622
+ sidenote: "0.6.5",
623
623
  dsh: "unknown",
624
624
  betterSidebar: null
625
625
  },
@@ -919,6 +919,7 @@ window.__ModuleLoader__.load({
919
919
  reflowReason: "brought back from a side chat by the user",
920
920
  reflowBubbleLabel: "Side-chat context",
921
921
  reflowRemoveTitle: "Remove reflow",
922
+ termCommandLine: "Command line {n}",
922
923
  termSignal: "Terminated ({signal})",
923
924
  termExitCode: "Exit code {code}",
924
925
  termDone: "done",
@@ -1115,6 +1116,7 @@ window.__ModuleLoader__.load({
1115
1116
  reflowReason: "用户选择从侧边聊天带回主线",
1116
1117
  reflowBubbleLabel: "含侧边回流上下文",
1117
1118
  reflowRemoveTitle: "移除回流",
1119
+ termCommandLine: "命令第 {n} 行",
1118
1120
  termSignal: "已终止({signal})",
1119
1121
  termExitCode: "退出码 {code}",
1120
1122
  termDone: "完成",
@@ -1234,15 +1236,15 @@ window.__ModuleLoader__.load({
1234
1236
  document.head.appendChild(tag);
1235
1237
  }
1236
1238
  var diagnostics_module_css_default = {
1237
- "settingTitle": "tGe0LW_settingTitle",
1238
- "setting": "tGe0LW_setting",
1239
1239
  "description": "tGe0LW_description",
1240
+ "trigger": "tGe0LW_trigger",
1241
+ "settingTitle": "tGe0LW_settingTitle",
1240
1242
  "panel": "tGe0LW_panel",
1241
1243
  "versions": "tGe0LW_versions",
1242
- "actions": "tGe0LW_actions",
1243
1244
  "list": "tGe0LW_list",
1245
+ "setting": "tGe0LW_setting",
1244
1246
  "header": "tGe0LW_header",
1245
- "trigger": "tGe0LW_trigger"
1247
+ "actions": "tGe0LW_actions"
1246
1248
  };
1247
1249
  //#endregion
1248
1250
  //#region src/client/diagnostics/index.tsx
@@ -1472,7 +1474,7 @@ window.__ModuleLoader__.load({
1472
1474
  */
1473
1475
  /**
1474
1476
  * reflow 注入通道(Workitem_06):优先经宿主路由 /sidenote/reflow 以
1475
- * agent.inject 落父会话日志(plugin-source 独立事件,context row 折叠);
1477
+ * agent.inject 落父会话日志(插件自有 source 独立事件,context row 折叠);
1476
1478
  * 路由缺席/父会话无 live agent/超时 → 调用方回落搭车形态(发送拦截器
1477
1479
  * 序列化前缀)。逐个 item 投递;成功项由调用方从 store 移除(不等发送
1478
1480
  * 确认——注入已入 inbox,chip 消失表达「已注入」)。
@@ -1480,7 +1482,7 @@ window.__ModuleLoader__.load({
1480
1482
  * 有界等待:注入尝试绝不能拖住发送手势——300ms 超时即回落搭车。
1481
1483
  */
1482
1484
  const REFLOW_ROUTE_TIMEOUT_MS = 300;
1483
- /** 尝试经宿主路由注入一批回流项;任何失败都降级为「全未注入」。 */
1485
+ /** 只消费宿主明确确认的项;未注入项由调用方搭车,发送拒绝时继续保留。 */
1484
1486
  async function tryInjectReflows(parentSessionId, items) {
1485
1487
  if (items.length === 0) return { injectedIds: /* @__PURE__ */ new Set() };
1486
1488
  const empty = { injectedIds: /* @__PURE__ */ new Set() };
@@ -1507,7 +1509,12 @@ window.__ModuleLoader__.load({
1507
1509
  clearTimeout(timer);
1508
1510
  }
1509
1511
  if (!res.ok) return empty;
1510
- if ((await res.json()).ok !== true) return empty;
1512
+ const data = await res.json();
1513
+ if (Array.isArray(data.injectedIndexes)) {
1514
+ const indexes = data.injectedIndexes.filter((index) => typeof index === "number" && Number.isInteger(index) && index >= 0 && index < items.length);
1515
+ return { injectedIds: new Set(indexes.map((index) => items[index].id)) };
1516
+ }
1517
+ if (data.ok !== true) return empty;
1511
1518
  return { injectedIds: new Set(items.map((item) => item.id)) };
1512
1519
  } catch {
1513
1520
  return empty;
@@ -3123,9 +3130,10 @@ window.__ModuleLoader__.load({
3123
3130
  * 要求必填——所以各 builder 返回类型按 0.1.2 形状写、调用点 cast(与
3124
3131
  * markdown.ts 双形状同款姿势)。
3125
3132
  */
3126
- /** TerminalBlockLabels(0.1.1 与 0.1.2 同形状)。 */
3133
+ /** TerminalBlockLabels;新版宿主还要求每行命令的无障碍标签。 */
3127
3134
  function terminalLabels() {
3128
3135
  return {
3136
+ commandLine: (n) => t("termCommandLine", { n }),
3129
3137
  signal: (signal) => t("termSignal", { signal }),
3130
3138
  exitCode: (code) => t("termExitCode", { code }),
3131
3139
  running: t("running"),
@@ -3225,97 +3233,97 @@ window.__ModuleLoader__.load({
3225
3233
  document.head.appendChild(tag);
3226
3234
  }
3227
3235
  var sidechat_module_css_default = {
3236
+ "userRow": "_5KEEsG_userRow",
3237
+ "attachImg": "_5KEEsG_attachImg",
3238
+ "rowPreview": "_5KEEsG_rowPreview",
3239
+ "streamingHint": "_5KEEsG_streamingHint",
3240
+ "errorRow": "_5KEEsG_errorRow",
3241
+ "headerSide": "_5KEEsG_headerSide",
3242
+ "snapshotBody": "_5KEEsG_snapshotBody",
3228
3243
  "quoteBody": "_5KEEsG_quoteBody",
3229
- "todoItem": "_5KEEsG_todoItem",
3244
+ "toolLocations": "_5KEEsG_toolLocations",
3245
+ "composerChips": "_5KEEsG_composerChips",
3230
3246
  "slashItemDetail": "_5KEEsG_slashItemDetail",
3231
- "pendingCustom": "_5KEEsG_pendingCustom",
3232
- "todoBody": "_5KEEsG_todoBody",
3233
- "sentChipRow": "_5KEEsG_sentChipRow",
3234
- "attachButton": "_5KEEsG_attachButton",
3235
- "dotPending": "_5KEEsG_dotPending",
3236
- "assistantRow": "_5KEEsG_assistantRow",
3237
- "pendingHead": "_5KEEsG_pendingHead",
3238
- "parentStrip": "_5KEEsG_parentStrip",
3247
+ "attachThumb": "_5KEEsG_attachThumb",
3248
+ "pendingOptionActive": "_5KEEsG_pendingOptionActive",
3239
3249
  "toolHead": "_5KEEsG_toolHead",
3240
- "toolBody": "_5KEEsG_toolBody",
3241
- "snapshotText": "_5KEEsG_snapshotText",
3242
- "streamingHint": "_5KEEsG_streamingHint",
3243
- "modelSelect": "_5KEEsG_modelSelect",
3244
- "inheritedBody": "_5KEEsG_inheritedBody",
3245
- "actionGroup": "_5KEEsG_actionGroup",
3250
+ "pendingCustom": "_5KEEsG_pendingCustom",
3251
+ "pendingBtnGhost": "_5KEEsG_pendingBtnGhost",
3252
+ "writeNoticeClose": "_5KEEsG_writeNoticeClose",
3253
+ "pendingTitle": "_5KEEsG_pendingTitle",
3254
+ "dotIdle": "_5KEEsG_dotIdle",
3246
3255
  "composer": "_5KEEsG_composer",
3247
3256
  "stopButton": "_5KEEsG_stopButton",
3248
- "densityRow": "_5KEEsG_densityRow",
3249
- "slashMenu": "_5KEEsG_slashMenu",
3250
- "pendingQHeader": "_5KEEsG_pendingQHeader",
3251
- "attachRemove": "_5KEEsG_attachRemove",
3252
- "reasoning": "_5KEEsG_reasoning",
3253
- "pendingActions": "_5KEEsG_pendingActions",
3254
- "toolRunning": "_5KEEsG_toolRunning",
3255
- "pendingBtnPrimary": "_5KEEsG_pendingBtnPrimary",
3256
- "writeNotice": "_5KEEsG_writeNotice",
3257
3257
  "visibilitySetting": "_5KEEsG_visibilitySetting",
3258
- "emptyTitle": "_5KEEsG_emptyTitle",
3259
- "empty": "_5KEEsG_empty",
3260
- "dotIdle": "_5KEEsG_dotIdle",
3261
- "todoDot": "_5KEEsG_todoDot",
3262
- "headerSide": "_5KEEsG_headerSide",
3263
- "pendingOption": "_5KEEsG_pendingOption",
3264
- "userBubble": "_5KEEsG_userBubble",
3265
- "sendButton": "_5KEEsG_sendButton",
3258
+ "dotPending": "_5KEEsG_dotPending",
3259
+ "assistantRow": "_5KEEsG_assistantRow",
3260
+ "composerFoot": "_5KEEsG_composerFoot",
3261
+ "toolBodyText": "_5KEEsG_toolBodyText",
3266
3262
  "densityToggle": "_5KEEsG_densityToggle",
3263
+ "pendingQHeader": "_5KEEsG_pendingQHeader",
3264
+ "todoDot": "_5KEEsG_todoDot",
3265
+ "pendingQText": "_5KEEsG_pendingQText",
3266
+ "dotRunning": "_5KEEsG_dotRunning",
3267
+ "rowActions": "_5KEEsG_rowActions",
3268
+ "stateDetail": "_5KEEsG_stateDetail",
3269
+ "reasoning": "_5KEEsG_reasoning",
3270
+ "snapshotText": "_5KEEsG_snapshotText",
3271
+ "reflowButton": "_5KEEsG_reflowButton",
3267
3272
  "stateScreen": "_5KEEsG_stateScreen",
3268
- "toolError": "_5KEEsG_toolError",
3273
+ "sentChip": "_5KEEsG_sentChip",
3269
3274
  "nativeHost": "_5KEEsG_nativeHost",
3270
- "slashItem": "_5KEEsG_slashItem",
3271
- "slashItemActive": "_5KEEsG_slashItemActive",
3272
- "dotRunning": "_5KEEsG_dotRunning",
3273
- "slashGroupTitle": "_5KEEsG_slashGroupTitle",
3274
- "composerCard": "_5KEEsG_composerCard",
3275
- "toolBodyText": "_5KEEsG_toolBodyText",
3275
+ "toolBody": "_5KEEsG_toolBody",
3276
3276
  "modelLabel": "_5KEEsG_modelLabel",
3277
+ "sentChipRow": "_5KEEsG_sentChipRow",
3278
+ "slashItem": "_5KEEsG_slashItem",
3279
+ "slashItemName": "_5KEEsG_slashItemName",
3280
+ "pendingDesc": "_5KEEsG_pendingDesc",
3277
3281
  "pendingOptionDesc": "_5KEEsG_pendingOptionDesc",
3282
+ "pendingActions": "_5KEEsG_pendingActions",
3283
+ "flowRow": "_5KEEsG_flowRow",
3284
+ "slashGroupTitle": "_5KEEsG_slashGroupTitle",
3285
+ "sidechat-pulse": "_5KEEsG_sidechat-pulse",
3286
+ "todoText": "_5KEEsG_todoText",
3287
+ "actionGroup": "_5KEEsG_actionGroup",
3288
+ "flowRowError": "_5KEEsG_flowRowError",
3289
+ "attachRemove": "_5KEEsG_attachRemove",
3290
+ "slashItemActive": "_5KEEsG_slashItemActive",
3291
+ "toolError": "_5KEEsG_toolError",
3292
+ "toolCard": "_5KEEsG_toolCard",
3293
+ "pendingCard": "_5KEEsG_pendingCard",
3294
+ "pendingQuestion": "_5KEEsG_pendingQuestion",
3278
3295
  "body": "_5KEEsG_body",
3279
- "composerFoot": "_5KEEsG_composerFoot",
3280
- "writeNoticeClose": "_5KEEsG_writeNoticeClose",
3296
+ "empty": "_5KEEsG_empty",
3281
3297
  "emptyIcon": "_5KEEsG_emptyIcon",
3282
- "sentChip": "_5KEEsG_sentChip",
3283
- "rowPreview": "_5KEEsG_rowPreview",
3284
- "toolLocations": "_5KEEsG_toolLocations",
3285
- "root": "_5KEEsG_root",
3286
- "emptyText": "_5KEEsG_emptyText",
3287
- "assistantBody": "_5KEEsG_assistantBody",
3288
- "attachRail": "_5KEEsG_attachRail",
3289
- "pendingBtnGhost": "_5KEEsG_pendingBtnGhost",
3290
- "errorRow": "_5KEEsG_errorRow",
3291
- "toolCard": "_5KEEsG_toolCard",
3292
- "rowActions": "_5KEEsG_rowActions",
3293
- "pendingBar": "_5KEEsG_pendingBar",
3294
- "reasoningBody": "_5KEEsG_reasoningBody",
3295
- "userRow": "_5KEEsG_userRow",
3296
- "todoText": "_5KEEsG_todoText",
3298
+ "slashMenu": "_5KEEsG_slashMenu",
3297
3299
  "transcript": "_5KEEsG_transcript",
3300
+ "sendButton": "_5KEEsG_sendButton",
3301
+ "input": "_5KEEsG_input",
3302
+ "toolRunning": "_5KEEsG_toolRunning",
3303
+ "userBubble": "_5KEEsG_userBubble",
3304
+ "jumpBottom": "_5KEEsG_jumpBottom",
3305
+ "pendingOption": "_5KEEsG_pendingOption",
3306
+ "todoItem": "_5KEEsG_todoItem",
3298
3307
  "toolGenericBody": "_5KEEsG_toolGenericBody",
3299
- "pendingCard": "_5KEEsG_pendingCard",
3300
- "pendingTitle": "_5KEEsG_pendingTitle",
3308
+ "attachRail": "_5KEEsG_attachRail",
3301
3309
  "pendingReason": "_5KEEsG_pendingReason",
3302
- "stateDetail": "_5KEEsG_stateDetail",
3303
- "slashItemName": "_5KEEsG_slashItemName",
3304
- "jumpBottom": "_5KEEsG_jumpBottom",
3305
- "attachImg": "_5KEEsG_attachImg",
3306
- "flowRow": "_5KEEsG_flowRow",
3307
- "sidechat-pulse": "_5KEEsG_sidechat-pulse",
3308
- "composerChips": "_5KEEsG_composerChips",
3309
- "input": "_5KEEsG_input",
3310
- "attachThumb": "_5KEEsG_attachThumb",
3311
- "flowRowError": "_5KEEsG_flowRowError",
3310
+ "root": "_5KEEsG_root",
3311
+ "composerCard": "_5KEEsG_composerCard",
3312
+ "emptyTitle": "_5KEEsG_emptyTitle",
3313
+ "inheritedBody": "_5KEEsG_inheritedBody",
3314
+ "pendingBtnPrimary": "_5KEEsG_pendingBtnPrimary",
3315
+ "writeNotice": "_5KEEsG_writeNotice",
3316
+ "modelSelect": "_5KEEsG_modelSelect",
3317
+ "pendingHead": "_5KEEsG_pendingHead",
3318
+ "parentStrip": "_5KEEsG_parentStrip",
3319
+ "assistantBody": "_5KEEsG_assistantBody",
3320
+ "emptyText": "_5KEEsG_emptyText",
3312
3321
  "noticeRow": "_5KEEsG_noticeRow",
3313
- "pendingDesc": "_5KEEsG_pendingDesc",
3314
- "pendingQuestion": "_5KEEsG_pendingQuestion",
3315
- "pendingQText": "_5KEEsG_pendingQText",
3316
- "pendingOptionActive": "_5KEEsG_pendingOptionActive",
3317
- "reflowButton": "_5KEEsG_reflowButton",
3318
- "snapshotBody": "_5KEEsG_snapshotBody"
3322
+ "pendingBar": "_5KEEsG_pendingBar",
3323
+ "attachButton": "_5KEEsG_attachButton",
3324
+ "reasoningBody": "_5KEEsG_reasoningBody",
3325
+ "todoBody": "_5KEEsG_todoBody",
3326
+ "densityRow": "_5KEEsG_densityRow"
3319
3327
  };
3320
3328
  //#endregion
3321
3329
  //#region src/client/chat/ToolCard.tsx
@@ -5298,16 +5306,16 @@ ${entries.map((entry) => {
5298
5306
  document.head.appendChild(tag);
5299
5307
  }
5300
5308
  var annotations_module_css_default = {
5301
- "chipPanel": "SVnebq_chipPanel",
5302
- "chipClearAll": "SVnebq_chipClearAll",
5303
- "chip": "SVnebq_chip",
5304
- "side": "SVnebq_side",
5305
- "chipNote": "SVnebq_chipNote",
5306
- "chipWrap": "SVnebq_chipWrap",
5307
5309
  "storageNotice": "SVnebq_storageNotice",
5310
+ "chipRemove": "SVnebq_chipRemove",
5308
5311
  "chipRow": "SVnebq_chipRow",
5312
+ "chipWrap": "SVnebq_chipWrap",
5309
5313
  "chipText": "SVnebq_chipText",
5310
- "chipRemove": "SVnebq_chipRemove",
5314
+ "chip": "SVnebq_chip",
5315
+ "chipPanel": "SVnebq_chipPanel",
5316
+ "side": "SVnebq_side",
5317
+ "chipClearAll": "SVnebq_chipClearAll",
5318
+ "chipNote": "SVnebq_chipNote",
5311
5319
  "chipNumber": "SVnebq_chipNumber"
5312
5320
  };
5313
5321
  //#endregion
@@ -7816,34 +7824,34 @@ ${entries.map((entry) => {
7816
7824
  document.head.appendChild(tag);
7817
7825
  }
7818
7826
  var annotate_module_css_default = {
7819
- "sentCardQuote": "_SVViG_sentCardQuote",
7820
- "toolbarBelow": "_SVViG_toolbarBelow",
7821
- "badge": "_SVViG_badge",
7822
- "deleteButton": "_SVViG_deleteButton",
7823
- "sentCardTitle": "_SVViG_sentCardTitle",
7827
+ "hint": "_SVViG_hint",
7828
+ "toolbar": "_SVViG_toolbar",
7829
+ "editorTextarea": "_SVViG_editorTextarea",
7824
7830
  "editorAskRow": "_SVViG_editorAskRow",
7825
- "editorFooter": "_SVViG_editorFooter",
7826
- "editorEdit": "_SVViG_editorEdit",
7827
- "toolbarButton": "_SVViG_toolbarButton",
7828
7831
  "saveButton": "_SVViG_saveButton",
7829
- "editorError": "_SVViG_editorError",
7832
+ "editorNew": "_SVViG_editorNew",
7833
+ "badge": "_SVViG_badge",
7830
7834
  "sentChip": "_SVViG_sentChip",
7835
+ "sentCardQuote": "_SVViG_sentCardQuote",
7836
+ "editorInput": "_SVViG_editorInput",
7837
+ "dshSidenoteHintIn": "_SVViG_dshSidenoteHintIn",
7831
7838
  "hintClose": "_SVViG_hintClose",
7839
+ "editorSpacer": "_SVViG_editorSpacer",
7832
7840
  "sentChipRow": "_SVViG_sentChipRow",
7833
- "toolbar": "_SVViG_toolbar",
7834
- "editorNew": "_SVViG_editorNew",
7835
- "sentCardNote": "_SVViG_sentCardNote",
7836
- "dshSidenoteHintIn": "_SVViG_dshSidenoteHintIn",
7837
- "editorTextarea": "_SVViG_editorTextarea",
7838
- "editorInput": "_SVViG_editorInput",
7839
- "badgeSent": "_SVViG_badgeSent",
7840
7841
  "editorAsk": "_SVViG_editorAsk",
7841
7842
  "highlight": "_SVViG_highlight",
7842
- "confirmButton": "_SVViG_confirmButton",
7843
- "cancelButton": "_SVViG_cancelButton",
7844
- "hint": "_SVViG_hint",
7845
7843
  "editorTarget": "_SVViG_editorTarget",
7846
- "editorSpacer": "_SVViG_editorSpacer"
7844
+ "editorFooter": "_SVViG_editorFooter",
7845
+ "editorEdit": "_SVViG_editorEdit",
7846
+ "toolbarBelow": "_SVViG_toolbarBelow",
7847
+ "editorError": "_SVViG_editorError",
7848
+ "deleteButton": "_SVViG_deleteButton",
7849
+ "toolbarButton": "_SVViG_toolbarButton",
7850
+ "cancelButton": "_SVViG_cancelButton",
7851
+ "confirmButton": "_SVViG_confirmButton",
7852
+ "badgeSent": "_SVViG_badgeSent",
7853
+ "sentCardTitle": "_SVViG_sentCardTitle",
7854
+ "sentCardNote": "_SVViG_sentCardNote"
7847
7855
  };
7848
7856
  //#endregion
7849
7857
  //#region src/client/annotate/hint.tsx