dsh-metaontic-video 4.0.10 → 4.0.11

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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  按版本倒序记录更新。较新版本沿用包内更新说明,早期版本依据 Git 标签与提交记录整理;日期为版本提交日期。标签存在不代表 npm 已发布。
4
4
 
5
+ ## v4.0.11
6
+
7
+ ### 新增
8
+
9
+ - 侧栏视频创作助手显示开关,默认开启。
10
+
11
+ ### 优化
12
+
13
+ - 设置分组与间距,统一滑动开关,画面与声音移入更多设置。
14
+
5
15
  ## v4.0.10
6
16
 
7
17
  ### 优化
@@ -191,7 +191,7 @@ API密钥只填写在插件密钥输入框内,不要放进脚本或发到聊
191
191
  - **开始创作**:「新建视频创作会话」等同于新建会话后切到「视频创作助手」模式,直接开始;「打开插件设置」跳到设置页改接入方式与 API密钥;「使用说明」打开在线说明页。
192
192
  - **使用流程**:说清创意 → 脚本分镜 → 逐段生成 → 本机合并。四步会依次点亮,只是操作顺序的演示,不需要在这里操作。
193
193
 
194
- 左侧栏没有出现这一行时,先确认 MetaOnticVideo 已安装并启用,再按提示重载插件——左侧栏入口由宿主在启动或重载时装配,重载后才会出现。入口不显示也不影响使用,按下面的步骤新建会话、把模式切到「视频创作助手」即可,功能完全一样。
194
+ 在插件设置的「界面显示」中,可开启或关闭「显示左侧视频创作助手」,默认开启,保存后立即生效。关闭后仍可从宿主插件管理打开设置并重新开启,已有会话和视频任务不受影响。入口开启却未出现时,先确认插件已启用;仅宿主明确提示时才重启。
195
195
 
196
196
  ### 第一次生成视频
197
197
 
@@ -307,9 +307,9 @@ Windows 与 Mac 的更新入口相同。`.tgz` 成品安装或仓库安装可使
307
307
 
308
308
  排查处理缓慢时,可查看 `~/.dsh/logs/metaontic-video/日期/requests.jsonl` 中的阶段耗时;设置了 `DSH_HOME` 时日志位于该目录下。插件会记录调用、生成等待、下载、合并和费用查询耗时;脚本设计、示意图与等待用户确认由助手标记开始和结束,其中脚本保存为 `script.md` 时插件会自动结束脚本设计这一段,并另记一条 `script_saved`(文件名、新建或改写、字数与脚本版本)。这些是流程耗时,并非模型纯推理时间;只有开始记录时表示该阶段未完整结束。写脚本、画分镜本身是助手和模型在做事,不属于插件耗时。日志不包含密钥或完整提示词。日志按天保存,保留30天,历史日志总量达到50MB时清理最旧记录;单日达到5MB后停止追加。日志仅保留文件名,不保留完整用户路径。可请助手读取 `video_config`,查看 `logging` 中的写入失败、丢弃计数和最近写入时间;日志异常不会重新提交生成任务。Windows 默认目录为 `%USERPROFILE%\.dsh\logs\metaontic-video`。
309
309
 
310
- 设置页按接入与密钥、模型配置、画面与声音分组;画面比例和声音开关在宽窗口并排显示,窄窗口上下排列。API密钥在模型配置中填写,重置入口位于设置页底部。
310
+ 设置页按生成参数、更多设置、界面显示分组。生成参数集中配置接入与密钥、模型;画面比例和声音开关移至更多设置,在宽窗口并排显示,窄窗口上下排列。API密钥在模型配置中填写,重置入口位于设置页底部。
311
311
 
312
- “更多设置”展开后分为画面、视频合并、查询与等待、本地工具四组;本地工具路径单独占一行,便于查看和填写完整路径。
312
+ 所有布尔设置使用滑动开关,点击后保存生效。“更多设置”展开后分为画面与声音、画面、视频合并、查询与等待、本地工具、使用统计六组;本地工具路径单独占一行,便于查看和填写完整路径。
313
313
 
314
314
  ![更多设置按用途分组](./docs/guide/advanced.png)
315
315
 
package/README.en.md CHANGED
@@ -1,4 +1,4 @@
1
- <img src="./logo.svg" width="160" alt="MetaOnticVideo" />
1
+ <img src="https://video.mybfs.cn/promo/share-logo.png" width="160" alt="MetaOnticVideo" />
2
2
 
3
3
  # dsh-metaontic-video · AI Video Creation Plugin
4
4
 
package/client.js CHANGED
@@ -37,6 +37,57 @@
37
37
  };
38
38
  }
39
39
 
40
+ // src/ui/components/configured-entries.ts
41
+ function followConfiguredEntries(form, key, registrations, defaultEnabled = !0) {
42
+ let active = !1, disposed = !1, known = defaultEnabled, cleanups = [], close = () => {
43
+ let pending = cleanups;
44
+ cleanups = [], active = !1;
45
+ for (let off of pending.reverse())
46
+ try {
47
+ off();
48
+ } catch {
49
+ }
50
+ }, sync = () => {
51
+ if (!disposed) {
52
+ try {
53
+ let value = form?.getSnapshot?.()?.value?.[key];
54
+ known = value === void 0 ? defaultEnabled : value === !0;
55
+ } catch {
56
+ return;
57
+ }
58
+ if (known !== active) {
59
+ if (!known) {
60
+ close();
61
+ return;
62
+ }
63
+ try {
64
+ for (let register of registrations) {
65
+ let off = register();
66
+ typeof off == "function" && cleanups.push(off);
67
+ }
68
+ active = !0;
69
+ } catch (error) {
70
+ throw close(), error;
71
+ }
72
+ }
73
+ }
74
+ };
75
+ sync();
76
+ let unsubscribe;
77
+ try {
78
+ unsubscribe = form?.subscribe?.(sync);
79
+ } catch {
80
+ }
81
+ return () => {
82
+ disposed = !0;
83
+ try {
84
+ typeof unsubscribe == "function" && unsubscribe();
85
+ } finally {
86
+ close();
87
+ }
88
+ };
89
+ }
90
+
40
91
  // src/shared/constants/plugin.ts
41
92
  var PLUGIN_ID = "metaontic-video", PLUGIN_PACKAGE = "dsh-metaontic-video", PLUGIN_NAMESPACE = PLUGIN_ID;
42
93
  var PANEL_ID = PLUGIN_ID, FLOW_CANVAS_AVAILABLE = !1, CANVAS_PANEL_ID = `${PLUGIN_ID}-canvas`, GUIDE_URL = "https://ai.mybfs.cn";
@@ -344,6 +395,8 @@
344
395
  .mov-page { display: flex; flex-direction: column; gap: 16px; padding: 0; color: ${TOKENS.text}; }
345
396
  /* 分组卡片:16 个字段摊在一格里太糊,按用途各装一张卡 */
346
397
  .mov-section { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; border-radius: 12px; border: 1px solid ${TOKENS.border}; background: ${TOKENS.cardFill}; }
398
+ .mov-interface .mov-grid { grid-template-columns: minmax(0, 1fr); }
399
+ .mov-model-card { background: ${TOKENS.cardFill}; }
347
400
  .mov-advanced { display: block; }
348
401
  .mov-advanced-toggle { cursor: pointer; font-size: 13px; font-weight: 600; color: ${TOKENS.text}; }
349
402
  .mov-advanced-toggle .mov-hint { display: block; margin: 5px 0 0 16px; font-weight: 400; }
@@ -357,7 +410,6 @@
357
410
  .mov-advanced-tools .mov-grid { grid-template-columns: minmax(0, 1fr); }
358
411
  .mov-advanced-tools .mov-label { min-height: 0; }
359
412
  .mov-advanced-group[data-group="advancedPicture"] .mov-grid { grid-template-columns: minmax(0, 1fr); }
360
- .mov-advanced-group[data-group="advancedPicture"] .mov-switch { justify-content: space-between; flex-direction: row-reverse; }
361
413
 
362
414
  @container (max-width: 480px) { .mov-advanced-body .mov-grid { grid-template-columns: minmax(0, 1fr); } .mov-advanced-group .mov-label { min-height: 0; } }
363
415
  .mov-advanced { container-type: inline-size; }
@@ -366,8 +418,8 @@
366
418
  .mov-section-title::before { content: ""; flex: 0 0 auto; width: 3px; height: 13px; border-radius: 2px; background: ${TOKENS.primaryFill}; }
367
419
  .mov-section-title::after { content: ""; flex: 1 1 auto; height: 1px; background: ${TOKENS.border}; }
368
420
  /* 两列自适应:单列至少 240px,窄面板自动落成一列 */
369
- .mov-parameter-group { container-type: inline-size; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
370
- .mov-parameter-group + .mov-parameter-group { border-top: 1px solid ${TOKENS.border}; padding-top: 16px; }
421
+ .mov-parameter-group { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
422
+ .mov-parameter-group + .mov-parameter-group { border-top: 1px solid ${TOKENS.border}; padding-top: 12px; }
371
423
  .mov-parameter-heading { font-size: 12px; font-weight: 600; color: ${TOKENS.muted}; }
372
424
  .mov-parameter-group .mov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
373
425
  @container (max-width: 480px) { .mov-parameter-group .mov-grid { grid-template-columns: minmax(0, 1fr); } }
@@ -384,15 +436,15 @@
384
436
  .mov-av-card { display: flex; flex-direction: column; min-width: 0; padding: 12px; gap: 8px; border: 1px solid ${TOKENS.border}; border-radius: 10px; background: ${TOKENS.cardFill}; }
385
437
  .mov-av-card > .mov-label { margin-bottom: -2px; }
386
438
  .mov-av-card .mov-hint { margin-top: auto; }
387
- .mov-av-audio .mov-switch { justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent; }
388
- .mov-av-audio .mov-switch span { order: 0; }
389
- .mov-av-audio .mov-switch input { appearance: none; order: 1; flex: 0 0 34px; width: 34px; height: 20px; margin: 0; border: 1px solid ${TOKENS.border}; border-radius: 999px; background: ${TOKENS.border}; position: relative; transition: background .15s; }
390
- .mov-av-audio .mov-switch input::after { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; border-radius: 50%; background: white; transition: transform .15s; }
391
- .mov-av-audio .mov-switch input:checked { background: ${TOKENS.primaryFill}; border-color: ${TOKENS.primaryFill}; }
392
- .mov-av-audio .mov-switch input:checked::after { transform: translateX(14px); }
393
- .mov-av-audio .mov-switch input:focus-visible { outline: 2px solid ${TOKENS.primaryFill}; outline-offset: 3px; }
439
+ .mov-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 0; border: 0; background: transparent; font-size: 13px; color: ${TOKENS.text}; cursor: pointer; }
440
+ .mov-switch span { order: 0; }
441
+ .mov-switch input { appearance: none; cursor: pointer; order: 1; flex: 0 0 36px; width: 36px; height: 20px; box-sizing: border-box; padding: 2px; margin: 0; border: 0; border-radius: 999px; background: var(--dsw-alias-border-l3, #8884); position: relative; }
442
+ .mov-switch input::after { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: var(--dsw-alias-switch-thumb, #fff); transition: transform .12s ease; }
443
+ .mov-switch input:checked { background: var(--dsw-alias-brand-primary, #247bbf); }
444
+ .mov-switch input:checked::after { transform: translateX(16px); background: var(--dsw-alias-label-primary-foreground, #fff); }
445
+ .mov-switch input:focus-visible { outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #247bbf)); outline-offset: 2px; }
394
446
  @container (max-width: 480px) { .mov-av-grid { grid-template-columns: minmax(0, 1fr); } }
395
- @media (prefers-reduced-motion: reduce) { .mov-av-audio .mov-switch input, .mov-av-audio .mov-switch input::after { transition: none; } }
447
+ @media (prefers-reduced-motion: reduce) { .mov-switch input, .mov-switch input::after { transition: none; } }
396
448
 
397
449
  /* 开关没有标签行,靠底对齐才能跟旁边输入框的控制线齐平 */
398
450
  .mov-field-switch { justify-content: flex-end; }
@@ -408,10 +460,6 @@
408
460
  .mov-input:focus, .mov-input:focus-visible { outline: none; border-color: ${TOKENS.primaryFill}; box-shadow: 0 0 0 3px rgba(36, 123, 191, .18); }
409
461
  /* 模型 ID 与可执行文件路径很长:等宽字体 + 省略,不把整行撑变形 */
410
462
  .mov-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
411
- /* 开关做成跟输入框同高的小方块,和周围控件一条线 */
412
- .mov-switch { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 36px; box-sizing: border-box; border: 1px solid ${TOKENS.border}; border-radius: 8px; background: ${TOKENS.controlFill}; font-size: 13px; color: ${TOKENS.text}; cursor: pointer; }
413
- .mov-switch:hover { border-color: ${TOKENS.primaryFill}; }
414
- .mov-switch input { width: 15px; height: 15px; accent-color: ${TOKENS.primaryFill}; cursor: pointer; }
415
463
  .mov-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid ${TOKENS.border}; background: ${TOKENS.cardFill}; }
416
464
  .mov-current-version { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 120px; }
417
465
  .mov-update-bell { display: inline-flex; flex: 0 0 auto; color: ${TOKENS.primaryFill}; transform-origin: 50% 10%; animation: mov-bell-swing 1.6s ease-in-out infinite; }
@@ -629,9 +677,11 @@
629
677
  }, SECTIONS = [
630
678
  { key: "sectionConnection", fields: ["connectionMode"] },
631
679
  { key: "sectionModels", fields: ["imageUseVideoKey", "model", "metaonticApiKey", "volcengineApiKey", "imageModel", "imageApiKey", "textModel", "textApiKey"] },
680
+ { key: "sectionInterface", fields: ["sidebarAssistantEnabled"] },
632
681
  { key: "sectionVideo", fields: ["ratio", "generateAudio"] },
633
682
  ...FLOW_CANVAS_AVAILABLE ? [{ key: "sectionCanvas", fields: ["canvasEnabled", "autoCreateCanvas"] }] : []
634
683
  ], FIELD_BY_KEY = Object.fromEntries([
684
+ { key: "sidebarAssistantEnabled", kind: "switch", wide: !0 },
635
685
  { key: "connectionMode", kind: "select", wide: !0 },
636
686
  { key: "metaonticApiKey", kind: "text", secret: !0, wide: !0 },
637
687
  { key: "volcengineApiKey", kind: "text", secret: !0, wide: !0 },
@@ -657,6 +707,7 @@
657
707
  { key: "ffmpegBinary", kind: "text", mono: !0 },
658
708
  { key: "ffprobeBinary", kind: "text", mono: !0 }
659
709
  ].map((field) => [field.key, field])), PLUGIN_OWNED_KEYS = [
710
+ "sidebarAssistantEnabled",
660
711
  "canvasEnabled",
661
712
  "autoCreateCanvas",
662
713
  "usageStatsEnabled",
@@ -843,6 +894,9 @@
843
894
  sectionGeneration: "生成参数",
844
895
  sectionConnection: "接入与 API密钥",
845
896
  sectionVideo: "画面与声音",
897
+ sectionInterface: "界面显示",
898
+ sidebarAssistantEnabled: "显示左侧视频创作助手",
899
+ sidebarAssistantEnabledHint: "默认开启。保存后立即显示或隐藏左侧入口;已有会话、视频任务和插件设置入口保留。",
846
900
  sectionCanvas: "流程画布",
847
901
  canvasPanelLabel: "MetaOnticVideo流程画布",
848
902
  canvasEnabled: "流程画布",
@@ -1026,6 +1080,9 @@
1026
1080
  sectionGeneration: "Generation",
1027
1081
  sectionConnection: "Connection & credentials",
1028
1082
  sectionVideo: "Picture & audio",
1083
+ sectionInterface: "Interface",
1084
+ sidebarAssistantEnabled: "Show video assistant in sidebar",
1085
+ sidebarAssistantEnabledHint: "On by default. Saving shows or hides the sidebar entry immediately. Existing conversations, video tasks and plugin settings remain available.",
1029
1086
  sectionCanvas: "Workflow canvas",
1030
1087
  canvasPanelLabel: "MetaOnticVideo workflow canvas",
1031
1088
  canvasEnabled: "Workflow canvas",
@@ -1174,7 +1231,7 @@
1174
1231
 
1175
1232
  // src/ui/updates/update.service.ts
1176
1233
  function createUpdates({ h, fetchSource }) {
1177
- let PLUGIN_VERSION = "4.0.10".trim().replace(/^v/i, "");
1234
+ let PLUGIN_VERSION = "4.0.11".trim().replace(/^v/i, "");
1178
1235
  function isNewerVersion(remote, local) {
1179
1236
  let parse = (text) => {
1180
1237
  let m = /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/.exec(String(text || ""));
@@ -1477,12 +1534,13 @@
1477
1534
  }
1478
1535
  }
1479
1536
  function control(field) {
1480
- let { draft, value, h, SELECTS, inputStyle, t, snapshot, visibleKey, setVisibleKey, edit, optionLabel } = context, current = field.key === "textModel" && !String(draft[field.key] ?? value[field.key] ?? "").trim() ? (SELECTS.textModel || [])[0] : draft[field.key] !== void 0 ? draft[field.key] : value[field.key] ?? (["imageUseVideoKey", "usageStatsEnabled", "autoCreateCanvas"].includes(field.key) ? !0 : field.key === "canvasEnabled" ? !1 : field.key === "pollIntervalMs" ? 5e3 : field.key === "maxWaitMs" ? 6e5 : void 0), secondsField = field.key === "pollIntervalMs" || field.key === "maxWaitMs", displayed = secondsField && current !== void 0 && current !== "" ? Number(current) / 1e3 : current, id = `metaontic-video-${field.key}`;
1537
+ let { draft, value, h, SELECTS, inputStyle, t, snapshot, visibleKey, setVisibleKey, edit, optionLabel } = context, current = field.key === "textModel" && !String(draft[field.key] ?? value[field.key] ?? "").trim() ? (SELECTS.textModel || [])[0] : draft[field.key] !== void 0 ? draft[field.key] : value[field.key] ?? (["sidebarAssistantEnabled", "imageUseVideoKey", "usageStatsEnabled", "autoCreateCanvas"].includes(field.key) ? !0 : field.key === "canvasEnabled" ? !1 : field.key === "pollIntervalMs" ? 5e3 : field.key === "maxWaitMs" ? 6e5 : void 0), secondsField = field.key === "pollIntervalMs" || field.key === "maxWaitMs", displayed = secondsField && current !== void 0 && current !== "" ? Number(current) / 1e3 : current, id = `metaontic-video-${field.key}`;
1481
1538
  if (field.kind === "switch")
1482
1539
  return h("label", { key: "control", htmlFor: id, className: "mov-switch" }, h("input", {
1483
1540
  id,
1484
1541
  "data-field": field.key,
1485
1542
  type: "checkbox",
1543
+ role: "switch",
1486
1544
  checked: !!current,
1487
1545
  onChange: (event) => edit(field.key, event.target.checked)
1488
1546
  }), h("span", null, t(field.key)));
@@ -1544,8 +1602,8 @@
1544
1602
  // package.json
1545
1603
  var package_default = {
1546
1604
  name: "dsh-metaontic-video",
1547
- version: "4.0.10",
1548
- description: "面向新手的 AI 视频创作助手:从想法、脚本到视频生成,全程引导;通过分段续拍与本地合并,提供低成本长视频制作方案。",
1605
+ version: "4.0.11",
1606
+ description: "DeepSeek Harness AI 视频创作插件:新手通过对话完善创意、审核脚本并生成视频;长视频采用分段续拍与本地合并,按实际调用确认费用。",
1549
1607
  license: "SEE LICENSE IN LICENSE",
1550
1608
  type: "module",
1551
1609
  keywords: [
@@ -1666,13 +1724,57 @@
1666
1724
  },
1667
1725
  dependencies: {},
1668
1726
  releaseNotes: {
1669
- version: "4.0.10",
1727
+ version: "4.0.11",
1670
1728
  prerelease: !1,
1671
- publishedAt: "2026-11-20T14:52:24.678Z",
1729
+ publishedAt: "2026-11-21T00:10:28.830Z",
1672
1730
  items: [
1673
- "优化:精简插件加载资源,减少成品冗余,保留现有配置、历史任务及恢复能力。"
1731
+ "新增:侧栏视频创作助手显示开关,默认开启。",
1732
+ "优化:设置分组与间距,统一滑动开关,画面与声音移入更多设置。"
1674
1733
  ]
1675
- }
1734
+ },
1735
+ readme: `<img src="https://video.mybfs.cn/promo/share-logo.png" width="160" alt="MetaOnticVideo" />
1736
+
1737
+ # dsh-metaontic-video · AI 视频创作插件
1738
+
1739
+ [English](https://github.com/wxsimon2022/metaontic-video/blob/master/README.en.md)
1740
+
1741
+ DeepSeek Harness(DSH)AI 视频生成插件 MetaOnticVideo:**新手快速上手,低成本制作长视频。**
1742
+
1743
+ ## 能做什么
1744
+
1745
+ - **快速创作**:说出想法,助手整理脚本,确认后生成并预览视频。
1746
+ - **分段制作长视频**:逐段生成与续拍,保留进度,最后在本机合并。
1747
+
1748
+ 图片与视频按接入渠道用量计费,生成前需确认费用。
1749
+
1750
+ ## 在线安装
1751
+
1752
+ 在 Harness「插件 → 添加插件」中粘贴链接,Windows 与 macOS 使用同一个安装包。
1753
+
1754
+ Gitee:
1755
+
1756
+ \`\`\`text
1757
+ https://gitee.com/hackloop/metaontic-video/releases/download/latest/metaontic-video.tgz
1758
+ \`\`\`
1759
+
1760
+ GitHub 备用:
1761
+
1762
+ \`\`\`text
1763
+ https://github.com/wxsimon2022/metaontic-video/releases/latest/download/metaontic-video.tgz
1764
+ \`\`\`
1765
+
1766
+ ## 开始使用
1767
+
1768
+ 1. 打开插件设置,选择 **MetaOntic AI**,填写 API密钥并保存。
1769
+ 2. 在会话中选择 **视频创作助手**;宣传内容可选择 **宣传视频助手**。
1770
+ 3. 描述需求,审核脚本并确认费用,再逐段预览制作结果。
1771
+
1772
+ 例如:“制作一条30秒竖屏720P的视频,表现清晨湖面的宁静。”
1773
+
1774
+ ## 相关链接
1775
+
1776
+ [使用说明](https://ai.mybfs.cn) · [问题反馈](https://github.com/wxsimon2022/metaontic-video/issues) · [更新记录](https://github.com/wxsimon2022/metaontic-video/blob/master/CHANGELOG.md) · [开发文档](https://github.com/wxsimon2022/metaontic-video/blob/master/docs/engineering/development.md) · [许可](https://github.com/wxsimon2022/metaontic-video/blob/master/LICENSE)
1777
+ `
1676
1778
  };
1677
1779
 
1678
1780
  // src/businesses/video-generation/client/settings.ts
@@ -1838,6 +1940,7 @@
1838
1940
  renderKeyAction: (field) => showsSharedValidation(field) ? connectionButton() : null,
1839
1941
  confirm: (message) => window.confirm(message)
1840
1942
  }), hints = {
1943
+ sidebarAssistantEnabled: t("sidebarAssistantEnabledHint"),
1841
1944
  connectionMode: selectedMode === "metaontic" ? [t("connectionMetaonticHint"), " ", h("a", { key: "metaontic-register", href: RELAY.signupUrl, target: "_blank", rel: "noopener noreferrer", style: { textDecoration: "underline" } }, t("connectionMetaonticRegister"))] : t(directMode && !VOLCENGINE_MODE_AVAILABLE ? "connectionVolcengineUnavailable" : "connectionModeHint"),
1842
1945
  metaonticApiKey: t("metaonticKeyHint"),
1843
1946
  volcengineApiKey: t("volcengineKeyHint"),
@@ -1913,7 +2016,7 @@
1913
2016
  let settingsRows = () => [
1914
2017
  h("div", { key: "generation", className: "mov-section" }, [
1915
2018
  h("div", { key: "title", className: "mov-section-title" }, t("sectionGeneration")),
1916
- ...SECTIONS.map((section) => h("div", { key: section.key, className: "mov-parameter-group" }, [
2019
+ ...SECTIONS.filter((section) => !["sectionInterface", "sectionVideo"].includes(section.key)).map((section) => h("div", { key: section.key, className: "mov-parameter-group" }, [
1917
2020
  h("div", { key: "heading", className: "mov-parameter-heading" }, t(section.key)),
1918
2021
  renderGrid(section)
1919
2022
  ]))
@@ -1924,6 +2027,10 @@
1924
2027
  h("span", { key: "hint", className: "mov-hint" }, t("sectionCombinedHint"))
1925
2028
  ]),
1926
2029
  h("div", { key: "body", className: "mov-advanced-body" }, [
2030
+ h("div", { key: "sectionVideo", className: "mov-advanced-group", "data-group": "sectionVideo" }, [
2031
+ h("div", { key: "title", className: "mov-parameter-heading" }, t("sectionVideo")),
2032
+ renderGrid(SECTIONS.find((section) => section.key === "sectionVideo"))
2033
+ ]),
1927
2034
  ...[
1928
2035
  { key: "advancedPicture", fields: ["watermark"] },
1929
2036
  { key: "advancedMerge", fields: ["mergeMode", "seamTrimSeconds"], hint: "segmentsRetained" },
@@ -1936,6 +2043,10 @@
1936
2043
  group.hint ? h("p", { key: "hint", className: "mov-hint", style: { margin: 0 } }, t(group.hint)) : null
1937
2044
  ]))
1938
2045
  ])
2046
+ ]),
2047
+ h("div", { key: "interface", className: "mov-section mov-interface", "data-group": "interface" }, [
2048
+ h("div", { key: "title", className: "mov-section-title" }, t("sectionInterface")),
2049
+ renderGrid(SECTIONS.find((section) => section.key === "sectionInterface"))
1939
2050
  ])
1940
2051
  ], overrides = Object.keys(snapshot.user || {}), footerMessage = status === "saved" ? t("saved") : status === "reset" ? t("resetDone") : status === "failed" ? saveError || t("saveFailed") : pending.length ? t("dirty") : "", footer = pending.length || status !== "idle" ? h("div", { key: "footer", className: "mov-footer" }, [
1941
2052
  footerMessage ? h("span", {
@@ -2823,29 +2934,29 @@
2823
2934
  { className: "mov-rail-hint" },
2824
2935
  [h(PanelIcon, props), h(UpdateHintDot, { key: "dot" })]
2825
2936
  );
2826
- ctx.effect(() => {
2827
- let off = ctx.slots.inject("sidebar.panellist", () => ctx.slots.register({
2937
+ ctx.effect(() => followConfiguredEntries(form, "sidebarAssistantEnabled", [
2938
+ () => ctx.slots.inject("sidebar.panellist", () => ctx.slots.register({
2828
2939
  name: "sidebar.panellist",
2829
2940
  id: PANEL_ID,
2830
2941
  order: 30,
2831
2942
  locale: NS,
2832
2943
  // 左侧那一行显示的名字,比面板标题更完整,方便在图标列表里认出来;有更新只加红点,不改文字。
2833
2944
  label: () => t("panelSidebarLabel")
2834
- }, railIcon));
2835
- return updateHint.refresh(!1), () => off?.();
2836
- }, "metaontic-video: sidebar entry"), ctx.effect(() => ctx.slots.inject("main", () => ctx.slots.register({
2837
- name: "main",
2838
- key: PANEL_ID,
2839
- locale: NS,
2840
- // 面板要的两个动作都按需取服务:老宿主没有这些服务时按钮自然失效,不报错。
2841
- inject: () => ({
2842
- startSession: () => ctx.get("uiWorkspace")?.startSession(void 0, { agentPreset: "video-director" }),
2843
- openSettings: () => ctx.get("pluginNavigation")?.openBundle(PLUGIN_PACKAGE2),
2844
- manager: pluginManager,
2845
- // 面板顶部的更新入口:与设置页同一套两步确认,点左侧栏的「有更新」进来就能更新。
2846
- updateBanner: () => h(UpdateHintBanner, { key: "update-hint" })
2847
- })
2848
- }, VideoPanel)), "metaontic-video: sidebar panel");
2945
+ }, railIcon)),
2946
+ () => ctx.slots.inject("main", () => ctx.slots.register({
2947
+ name: "main",
2948
+ key: PANEL_ID,
2949
+ locale: NS,
2950
+ // 面板要的两个动作都按需取服务:老宿主没有这些服务时按钮自然失效,不报错。
2951
+ inject: () => ({
2952
+ startSession: () => ctx.get("uiWorkspace")?.startSession(void 0, { agentPreset: "video-director" }),
2953
+ openSettings: () => ctx.get("pluginNavigation")?.openBundle(PLUGIN_PACKAGE2),
2954
+ manager: pluginManager,
2955
+ // 面板顶部的更新入口:与设置页同一套两步确认,点左侧栏的「有更新」进来就能更新。
2956
+ updateBanner: () => h(UpdateHintBanner, { key: "update-hint" })
2957
+ })
2958
+ }, VideoPanel))
2959
+ ]), "metaontic-video: sidebar entry and panel follow saved preference"), updateHint.refresh(!1);
2849
2960
  let canvasSwitchOn = () => {
2850
2961
  try {
2851
2962
  return FLOW_CANVAS_AVAILABLE && form?.getSnapshot?.()?.value?.canvasEnabled === !0;
package/index.js CHANGED
@@ -16,7 +16,7 @@ var __export = (target, all) => {
16
16
  // src/shared/constants/version.ts
17
17
  var PLUGIN_VERSION, init_version = __esm({
18
18
  "src/shared/constants/version.ts"() {
19
- PLUGIN_VERSION = "4.0.10".trim().replace(/^v/i, "");
19
+ PLUGIN_VERSION = "4.0.11".trim().replace(/^v/i, "");
20
20
  }
21
21
  });
22
22
 
@@ -840,6 +840,7 @@ var videoConfigFields, DEFAULT_MODEL, MAX_SEGMENTS, MIN_SECONDS, MIN_SEGMENT_SEC
840
840
  init_plugin();
841
841
  init_lib2();
842
842
  videoConfigFields = {
843
+ sidebarAssistantEnabled: Schema.boolean().default(!0).description("显示左侧视频创作助手入口(默认开启);仅控制侧栏与对应面板,不改变会话助手或已有任务。").volatile(),
843
844
  // 画布总开关:默认关闭,打开后左侧栏才出现画布入口,画布组件才可用。
844
845
  canvasEnabled: Schema.boolean().default(!1).description("流程画布(默认关闭):打开后左侧栏出现「MetaOnticVideo流程画布」入口,可用独立画布页创作;关闭时左侧栏隐藏入口,已有画布与成果保留在插件数据目录。").volatile(),
845
846
  // 自动建图:只在流程画布打开后生效,默认开启,跟着创作自动建图并回填成果。
@@ -9990,6 +9991,7 @@ init_config();
9990
9991
  init_connection();
9991
9992
  init_plugin();
9992
9993
  var CONFIG_FIELDS = [
9994
+ "sidebarAssistantEnabled",
9993
9995
  "canvasEnabled",
9994
9996
  "autoCreateCanvas",
9995
9997
  "connectionMode",
@@ -10036,6 +10038,7 @@ function configView(config) {
10036
10038
  return {
10037
10039
  stored: maskSecrets(stored),
10038
10040
  effective: {
10041
+ sidebarAssistantEnabled: ref(config, "sidebarAssistantEnabled", !0) !== !1,
10039
10042
  canvasEnabled: FLOW_CANVAS_AVAILABLE && ref(config, "canvasEnabled", !1) === !0,
10040
10043
  autoCreateCanvas: FLOW_CANVAS_AVAILABLE && ref(config, "canvasEnabled", !1) === !0 && ref(config, "autoCreateCanvas", !0) === !0,
10041
10044
  connectionMode: isVolcengine(config) ? "volcengine" : "metaontic",
package/locale/zh.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "meta": {
3
3
  "title": "MetaOnticVideo",
4
4
  "detail": "plugin-detail.md",
5
- "description": "让新手快速上手视频创作:说出想法,助手带你完善创意、写脚本并确认制作;通过分段续拍与本机合并,提供低成本长视频生成方案。"
5
+ "description": "新手用对话完成创意、脚本审核与视频制作;长视频通过分段续拍和本地合并完成,生成前确认费用。"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-metaontic-video",
3
- "version": "4.0.10",
4
- "description": "面向新手的 AI 视频创作助手:从想法、脚本到视频生成,全程引导;通过分段续拍与本地合并,提供低成本长视频制作方案。",
3
+ "version": "4.0.11",
4
+ "description": "DeepSeek Harness AI 视频创作插件:新手通过对话完善创意、审核脚本并生成视频;长视频采用分段续拍与本地合并,按实际调用确认费用。",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
7
7
  "keywords": [
@@ -122,11 +122,13 @@
122
122
  },
123
123
  "dependencies": {},
124
124
  "releaseNotes": {
125
- "version": "4.0.10",
125
+ "version": "4.0.11",
126
126
  "prerelease": false,
127
- "publishedAt": "2026-11-20T14:52:24.678Z",
127
+ "publishedAt": "2026-11-21T00:10:28.830Z",
128
128
  "items": [
129
- "优化:精简插件加载资源,减少成品冗余,保留现有配置、历史任务及恢复能力。"
129
+ "新增:侧栏视频创作助手显示开关,默认开启。",
130
+ "优化:设置分组与间距,统一滑动开关,画面与声音移入更多设置。"
130
131
  ]
131
- }
132
+ },
133
+ "readme": "<img src=\"https://video.mybfs.cn/promo/share-logo.png\" width=\"160\" alt=\"MetaOnticVideo\" />\n\n# dsh-metaontic-video · AI 视频创作插件\n\n[English](https://github.com/wxsimon2022/metaontic-video/blob/master/README.en.md)\n\nDeepSeek Harness(DSH)AI 视频生成插件 MetaOnticVideo:**新手快速上手,低成本制作长视频。**\n\n## 能做什么\n\n- **快速创作**:说出想法,助手整理脚本,确认后生成并预览视频。\n- **分段制作长视频**:逐段生成与续拍,保留进度,最后在本机合并。\n\n图片与视频按接入渠道用量计费,生成前需确认费用。\n\n## 在线安装\n\n在 Harness「插件 → 添加插件」中粘贴链接,Windows 与 macOS 使用同一个安装包。\n\nGitee:\n\n```text\nhttps://gitee.com/hackloop/metaontic-video/releases/download/latest/metaontic-video.tgz\n```\n\nGitHub 备用:\n\n```text\nhttps://github.com/wxsimon2022/metaontic-video/releases/latest/download/metaontic-video.tgz\n```\n\n## 开始使用\n\n1. 打开插件设置,选择 **MetaOntic AI**,填写 API密钥并保存。\n2. 在会话中选择 **视频创作助手**;宣传内容可选择 **宣传视频助手**。\n3. 描述需求,审核脚本并确认费用,再逐段预览制作结果。\n\n例如:“制作一条30秒竖屏720P的视频,表现清晨湖面的宁静。”\n\n## 相关链接\n\n[使用说明](https://ai.mybfs.cn) · [问题反馈](https://github.com/wxsimon2022/metaontic-video/issues) · [更新记录](https://github.com/wxsimon2022/metaontic-video/blob/master/CHANGELOG.md) · [开发文档](https://github.com/wxsimon2022/metaontic-video/blob/master/docs/engineering/development.md) · [许可](https://github.com/wxsimon2022/metaontic-video/blob/master/LICENSE)\n"
132
134
  }