codebee 0.1.101 → 0.1.102
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 +9 -0
- package/README.md +8 -7
- package/app/core/acp_client.py +34 -3
- package/app/core/board.py +21 -17
- package/app/core/builtin_agent.py +13 -4
- package/app/core/catalog.py +28 -6
- package/app/core/checkpoints.py +117 -31
- package/app/core/eval_matrix.py +10 -1
- package/app/core/mcp_client.py +7 -2
- package/app/core/openapi.py +8 -0
- package/app/core/pipeline.py +4 -1
- package/app/core/policy.py +9 -0
- package/app/core/publish/auto.py +106 -9
- package/app/core/publish/fanqie.py +16 -10
- package/app/core/publish/flow.py +29 -1
- package/app/core/publish/manager.py +8 -0
- package/app/core/sandbox_runtime.py +95 -0
- package/app/core/store.py +13 -3
- package/app/main.py +1 -0
- package/app/ui/app.js +163 -26
- package/app/ui/hive3d.js +491 -223
- package/app/ui/i18n.js +18 -0
- package/app/ui/index.html +24 -4
- package/app/ui/style.css +548 -18
- package/package.json +1 -1
package/app/ui/i18n.js
CHANGED
|
@@ -11,14 +11,24 @@
|
|
|
11
11
|
// 字典:键 = 中文原文;值 = 英文译文。未命中即回落中文。
|
|
12
12
|
const EN = {
|
|
13
13
|
"蜂巢视图控制": "Hive view controls",
|
|
14
|
+
"全屏": "Fullscreen",
|
|
15
|
+
"进入全屏": "Enter fullscreen",
|
|
16
|
+
"退出全屏": "Exit fullscreen",
|
|
17
|
+
"当前浏览器不支持全屏": "Fullscreen is not supported by this browser",
|
|
18
|
+
"全屏失败:": "Fullscreen failed: ",
|
|
14
19
|
"视图模式": "View mode",
|
|
20
|
+
"高保真视图": "Reference view",
|
|
21
|
+
"自由 3D": "Free 3D",
|
|
15
22
|
"3D 场景": "3D scene",
|
|
16
23
|
"2D 列表": "2D list",
|
|
17
24
|
"拖动旋转 · 滚轮缩放 · 右键升降": "Drag to orbit · Scroll to zoom · Right-drag to climb",
|
|
25
|
+
"拖动平移 · 滚轮缩放 · 双击复位 · 点击屏幕看日志": "Drag to pan · Scroll to zoom · Double-click to reset · Click a screen for logs",
|
|
18
26
|
"拖动平移 · 滚轮缩放 · 点击屏幕看日志": "Drag to pan · Scroll to zoom · Click a screen for logs",
|
|
27
|
+
"拖动旋转 · Shift+拖动平移 · 滚轮缩放 · 双击复位 · 点击屏幕看日志": "Drag to orbit · Shift-drag to pan · Scroll to zoom · Double-click to reset · Click a screen for logs",
|
|
19
28
|
"复位视角": "Reset view",
|
|
20
29
|
"缩小": "Zoom out",
|
|
21
30
|
"放大": "Zoom in",
|
|
31
|
+
"蜂巢工作台高保真视图": "Hive workbench reference view",
|
|
22
32
|
"蜂巢流程 3D 场景": "Hive workflow 3D scene",
|
|
23
33
|
"当前环境不支持 WebGL,已切换 2D 列表": "WebGL is unavailable here — switched to 2D list",
|
|
24
34
|
"3D 场景不可用,已切换 2D 列表": "3D scene failed — switched to 2D list",
|
|
@@ -935,6 +945,13 @@
|
|
|
935
945
|
"上下文": "Context",
|
|
936
946
|
"任务标题": "Task title",
|
|
937
947
|
"验证命令": "Verify command",
|
|
948
|
+
"命令执行后端": "Command execution backend",
|
|
949
|
+
"本机默认": "Native (default)",
|
|
950
|
+
"Docker 容器": "Docker container",
|
|
951
|
+
"Docker 镜像": "Docker image",
|
|
952
|
+
"Docker 仅适用于内置命令工具;ACP、外部 CLI 与 MCP 暂不支持容器化,将安全拒绝执行。": "Docker currently applies only to built-in command tools. ACP, external CLIs, and MCP are not containerized and will be safely refused.",
|
|
953
|
+
"镜像需预装任务所需工具;容器仅挂载任务工作目录。": "The image must include task tools; only the task workspace is mounted.",
|
|
954
|
+
"选择 Docker 后请填写镜像名": "Enter an image name when Docker is selected",
|
|
938
955
|
"稿件文件(合并稿)": "Manuscript file (merged)",
|
|
939
956
|
"评审轮数": "Review rounds",
|
|
940
957
|
"发布阈值(全书)": "Publish threshold (whole book)",
|
|
@@ -2603,6 +2620,7 @@
|
|
|
2603
2620
|
"护栏拦截": "Blocked by guardrail",
|
|
2604
2621
|
"全部存草稿": "Save all as drafts",
|
|
2605
2622
|
"存草稿所选": "Draft selected",
|
|
2623
|
+
"勾选卷头=整卷进所选,再点取消": "Tick a volume header to add the whole volume to the selection; tick again to clear it",
|
|
2606
2624
|
"逐章自动填稿并点「存草稿」:内容落平台草稿箱不上线,不受质量门禁拦截,无需逐章人工确认;完成后到平台检查并提交发布": "Fills each chapter and clicks \"Save draft\": content lands in the platform's draft box without going live, bypasses the quality gate, no per-chapter confirmation; review and submit on the platform when done",
|
|
2607
2625
|
"所选章节逐章自动存草稿(不上线、不受质量门禁拦截),完成后到平台检查并提交发布": "Saves the selected chapters as drafts one by one (not live, quality gate not applied); review and submit on the platform when done",
|
|
2608
2626
|
"存草稿中 ": "Saving drafts ",
|
package/app/ui/index.html
CHANGED
|
@@ -491,6 +491,22 @@
|
|
|
491
491
|
<div class="field"><label class="checkline"><input id="f-approval-required" type="checkbox"> 完成前需要人工审批</label><p class="hint">启用后,Git 合并和发布会等待审批记录。</p></div>
|
|
492
492
|
</div>
|
|
493
493
|
|
|
494
|
+
<div class="grid-2">
|
|
495
|
+
<div class="field">
|
|
496
|
+
<label for="f-sandbox-backend" data-i18n="命令执行后端">命令执行后端</label>
|
|
497
|
+
<select id="f-sandbox-backend">
|
|
498
|
+
<option value="native" data-i18n="本机默认">本机默认</option>
|
|
499
|
+
<option value="docker" data-i18n="Docker 容器">Docker 容器</option>
|
|
500
|
+
</select>
|
|
501
|
+
<p class="hint" data-i18n="Docker 仅适用于内置命令工具;ACP、外部 CLI 与 MCP 暂不支持容器化,将安全拒绝执行。">Docker 仅适用于内置命令工具;ACP、外部 CLI 与 MCP 暂不支持容器化,将安全拒绝执行。</p>
|
|
502
|
+
</div>
|
|
503
|
+
<div class="field hidden" id="row-sandbox-image">
|
|
504
|
+
<label for="f-sandbox-image" data-i18n="Docker 镜像">Docker 镜像</label>
|
|
505
|
+
<input id="f-sandbox-image" placeholder="python:3.12-slim" maxlength="240" autocomplete="off" spellcheck="false">
|
|
506
|
+
<p class="hint" data-i18n="镜像需预装任务所需工具;容器仅挂载任务工作目录。">镜像需预装任务所需工具;容器仅挂载任务工作目录。</p>
|
|
507
|
+
</div>
|
|
508
|
+
</div>
|
|
509
|
+
|
|
494
510
|
<div id="f-code-only">
|
|
495
511
|
<div class="field"><label data-i18n="验证命令">验证命令</label><input id="f-verify" placeholder="例:python -m pytest -q(可空=只评审)" data-i18n-ph="例:python -m pytest -q(可空=只评审)"></div>
|
|
496
512
|
</div>
|
|
@@ -667,23 +683,27 @@
|
|
|
667
683
|
<div id="rd-pane-hive" class="rd-pane" role="tabpanel" aria-labelledby="rd-tab-hive" data-pane="hive">
|
|
668
684
|
<div id="rd-hive" class="rd-hive hidden">
|
|
669
685
|
<div class="sec-title"><svg class="ico" aria-hidden="true"><use href="#i-bee"></use></svg><span data-i18n="蜂巢工作台">蜂巢工作台</span><span id="rd-hive-sub" class="tag"></span><button class="hhelp" data-help-topic="serial" title="这是什么?点开看帮助" data-i18n-title="这是什么?点开看帮助" aria-label="帮助" data-i18n-aria="帮助"><svg class="ico" aria-hidden="true"><use href="#i-help"></use></svg></button></div>
|
|
686
|
+
<div id="hive-scene-stage" class="hive-scene-stage">
|
|
670
687
|
<div class="hive-scene-tools" role="toolbar" aria-label="蜂巢视图控制" data-i18n-aria="蜂巢视图控制">
|
|
671
688
|
<div class="hive-view-switch" role="group" aria-label="视图模式" data-i18n-aria="视图模式">
|
|
672
|
-
<button type="button" class="hive-view-btn
|
|
689
|
+
<button type="button" class="hive-view-btn" data-hive-view="reference" aria-pressed="false" data-i18n="高保真视图">高保真视图</button>
|
|
690
|
+
<button type="button" class="hive-view-btn active" data-hive-view="live3d" aria-pressed="true" data-i18n="自由 3D">自由 3D</button>
|
|
673
691
|
<button type="button" class="hive-view-btn" data-hive-view="2d" aria-pressed="false" data-i18n="2D 列表">2D 列表</button>
|
|
674
692
|
</div>
|
|
675
|
-
<span class="hive-scene-hint" data-i18n="拖动平移 · 滚轮缩放 · 点击屏幕看日志">拖动平移 · 滚轮缩放 · 点击屏幕看日志</span>
|
|
693
|
+
<span class="hive-scene-hint" data-i18n="拖动平移 · 滚轮缩放 · 双击复位 · 点击屏幕看日志">拖动平移 · 滚轮缩放 · 双击复位 · 点击屏幕看日志</span>
|
|
676
694
|
<span class="hive-scene-spacer"></span>
|
|
677
695
|
<button type="button" class="hive-scene-btn" data-hive-scene-action="zoom-out" aria-label="缩小" title="缩小">−</button>
|
|
678
696
|
<button type="button" class="hive-scene-btn" data-hive-scene-action="zoom-in" aria-label="放大" title="放大">+</button>
|
|
679
697
|
<button type="button" class="hive-scene-btn hive-scene-reset" data-hive-scene-action="reset" data-i18n="复位视角">复位视角</button>
|
|
698
|
+
<button id="hive-scene-fullscreen" type="button" class="hive-scene-btn hive-scene-fullscreen" aria-label="进入全屏" title="进入全屏" data-i18n-aria="进入全屏" data-i18n-title="进入全屏" aria-pressed="false" data-i18n="全屏">全屏</button>
|
|
680
699
|
</div>
|
|
681
|
-
<div id="rd-hive-viewport" class="hive-viewport hive-mode-
|
|
700
|
+
<div id="rd-hive-viewport" class="hive-viewport hive-mode-live3d" data-i18n-aria="蜂巢工作台自由 3D 视图" aria-label="蜂巢工作台自由 3D 视图">
|
|
682
701
|
<img class="hive-reference" src="assets/workbench-reference.png" alt="协作工作台参考场景" data-i18n-alt="协作工作台参考场景" decoding="async">
|
|
683
702
|
<canvas id="rd-hive-gl" class="hive-gl" aria-hidden="true"></canvas>
|
|
684
|
-
<div id="rd-hive-overlay" class="hive-gl-overlay"
|
|
703
|
+
<div id="rd-hive-overlay" class="hive-gl-overlay"></div>
|
|
685
704
|
<div id="rd-hive-cells" class="hive-cells"></div>
|
|
686
705
|
</div>
|
|
706
|
+
</div>
|
|
687
707
|
<dialog id="hive-log-dialog" class="hive-detail-dialog" aria-labelledby="hive-log-title">
|
|
688
708
|
<div class="hive-detail-head">
|
|
689
709
|
<h3 id="hive-log-title"></h3>
|