feat: embed native Harness assistant and verify live task model

This commit is contained in:
阿白叔 committed 2026-10-30 11:32:16 +08:00
1 parent 9c508333bb
commit 96227eed2e
29 files changed
+11110 -582

No files matched your search

+18 -2
View File
@@ -31,6 +31,18 @@ legacy_runtime_datas = [
),
]
# The native assistant loads the official web UI; include its pinned Node runtime.
dsh_root = project_root / 'integration' / 'dsh'
if (dsh_root / 'node_modules' / '@deepseek-ai' / 'dsh' / 'package.json').is_file():
legacy_runtime_datas.extend([
(str(dsh_root / 'start.mjs'), 'dsh-runtime'),
(str(dsh_root / 'package.json'), 'dsh-runtime'),
(str(dsh_root / 'task-plugin'), 'dsh-runtime/task-plugin'),
(str(dsh_root / 'node_modules'), 'dsh-runtime/node_modules'),
(shutil.which('node'), 'dsh-runtime'),
(str(project_root / 'licenses' / 'DeepSeek-Harness-MIT.txt'), 'licenses'),
])
a = Analysis(
[str(project_root / "src" / "dx_productivity" / "trial_task_center" / "application.py")],
pathex=[str(project_root / "src"), str(generated_root)],
@@ -47,6 +59,8 @@ a = Analysis(
"win32timezone",
"pywinauto",
"pywinauto.controls.uiawrapper",
"PySide6.QtWebEngineCore",
"PySide6.QtWebEngineWidgets",
],
excludes=[
"PySide6.QtDesigner",
@@ -60,8 +74,6 @@ a = Analysis(
"PySide6.QtQuick",
"PySide6.QtQuickWidgets",
"PySide6.QtWebChannel",
"PySide6.QtWebEngineCore",
"PySide6.QtWebEngineWidgets",
],
noarchive=False,
)
@@ -76,6 +88,10 @@ excluded_qt_binaries = {
"qt6qmlworkerscript.dll",
"qt6quick.dll",
}
if (dsh_root / 'node_modules' / '@deepseek-ai' / 'dsh' / 'package.json').is_file():
# WebEngineCore links Quick/QML/OpenGL/WebChannel even through its Widgets
# surface; dropping those DLLs breaks the embedded browser in a frozen app.
excluded_qt_binaries = {'qpdf.dll', 'qt6pdf.dll'}
a.binaries = [
entry
for entry in a.binaries