dsh-builtin-browser 1.0.0 → 1.0.1
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 +6 -0
- package/dist/client.cjs +75 -75
- package/docs/pr64-maintenance.md +1 -1
- package/docs/user-guide.md +1 -1
- package/lib/browser-electron/entry.js +0 -2
- package/package.json +10 -10
- package/src/browser-electron/entry.ts +0 -2
- package/lib/browser-electron/package-removal.js +0 -5
- package/src/browser-electron/package-removal.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录各轮功能开发与问题修复(由仓库外独立文档迁移,随仓库管理)。
|
|
4
4
|
|
|
5
|
+
## 1.0.1(2026-11-23)
|
|
6
|
+
|
|
7
|
+
### 修复:Windows / Tauri 上插件启用后代码执行失败([#71](https://github.com/wqty123/dsh-browser/issues/71))
|
|
8
|
+
|
|
9
|
+
1.0.0 加载时把 `ELECTRON_NO_ASAR=1` 写进了宿主进程的 `process.env`。此后宿主启动的每个子进程都继承它:DSH Tauri 以 Electron-as-node 运行、内核打包在 asar 里,`dsh-subprocess-local` 的 Windows Job runner 读不到自己在 asar 里的入口,直接以退出码 1 结束,表现为 `Windows Job runner exited with exit code 1 before proving its managed range empty` 或 `write EPIPE`。现在插件不再改动宿主环境;只有插件自己启动的包管理子进程在各自的环境里带 `ELECTRON_NO_ASAR=1`。
|
|
10
|
+
|
|
5
11
|
## 1.0.0(2026-11-22)— 自 0.5.8 以来的更新
|
|
6
12
|
|
|
7
13
|
这是自上一次公开发布 [v0.5.8](https://github.com/wqty123/dsh-browser/releases/tag/v0.5.8) 以来的累计更新。0.6.x 和此前的 0.7.x 是开发版本,不需要逐个安装。
|
package/dist/client.cjs
CHANGED
|
@@ -3650,32 +3650,32 @@ a[data-dsh-browser-ref]:focus-visible { outline: 2px solid color-mix(in srgb, #3
|
|
|
3650
3650
|
document.head.appendChild(tag);
|
|
3651
3651
|
}
|
|
3652
3652
|
var ReferenceDock_module_css_default = {
|
|
3653
|
+
"tableScroll": "lSr3sG_tableScroll",
|
|
3654
|
+
"editorActions": "lSr3sG_editorActions",
|
|
3653
3655
|
"chipRemove": "lSr3sG_chipRemove",
|
|
3654
|
-
"
|
|
3656
|
+
"icon": "lSr3sG_icon",
|
|
3657
|
+
"rail": "lSr3sG_rail",
|
|
3658
|
+
"title": "lSr3sG_title",
|
|
3659
|
+
"label": "lSr3sG_label",
|
|
3660
|
+
"comment": "lSr3sG_comment",
|
|
3661
|
+
"notice": "lSr3sG_notice",
|
|
3655
3662
|
"quote": "lSr3sG_quote",
|
|
3656
|
-
"
|
|
3663
|
+
"secondary": "lSr3sG_secondary",
|
|
3664
|
+
"badge": "lSr3sG_badge",
|
|
3665
|
+
"image": "lSr3sG_image",
|
|
3657
3666
|
"source": "lSr3sG_source",
|
|
3658
|
-
"
|
|
3667
|
+
"sentRail": "lSr3sG_sentRail",
|
|
3668
|
+
"host": "lSr3sG_host",
|
|
3669
|
+
"tools": "lSr3sG_tools",
|
|
3670
|
+
"status": "lSr3sG_status",
|
|
3659
3671
|
"editor": "lSr3sG_editor",
|
|
3660
|
-
"head": "lSr3sG_head",
|
|
3661
3672
|
"dock": "lSr3sG_dock",
|
|
3662
|
-
"editorActions": "lSr3sG_editorActions",
|
|
3663
|
-
"notice": "lSr3sG_notice",
|
|
3664
|
-
"host": "lSr3sG_host",
|
|
3665
3673
|
"chip": "lSr3sG_chip",
|
|
3666
|
-
"
|
|
3667
|
-
"sentRail": "lSr3sG_sentRail",
|
|
3668
|
-
"rail": "lSr3sG_rail",
|
|
3669
|
-
"badge": "lSr3sG_badge",
|
|
3670
|
-
"title": "lSr3sG_title",
|
|
3671
|
-
"icon": "lSr3sG_icon",
|
|
3672
|
-
"secondary": "lSr3sG_secondary",
|
|
3673
|
-
"panel": "lSr3sG_panel",
|
|
3674
|
+
"head": "lSr3sG_head",
|
|
3674
3675
|
"table": "lSr3sG_table",
|
|
3675
|
-
"
|
|
3676
|
-
"tools": "lSr3sG_tools",
|
|
3676
|
+
"panel": "lSr3sG_panel",
|
|
3677
3677
|
"heading": "lSr3sG_heading",
|
|
3678
|
-
"
|
|
3678
|
+
"parts": "lSr3sG_parts"
|
|
3679
3679
|
};
|
|
3680
3680
|
// ../../../node_modules/.pnpm/katex@0.16.25/node_modules/katex/dist/katex.mjs
|
|
3681
3681
|
/**
|
|
@@ -35438,76 +35438,76 @@ a[data-dsh-browser-ref]:focus-visible { outline: 2px solid color-mix(in srgb, #3
|
|
|
35438
35438
|
document.head.appendChild(tag);
|
|
35439
35439
|
}
|
|
35440
35440
|
var Browser_module_css_default = {
|
|
35441
|
-
"restoreUrl": "huUqha_restoreUrl",
|
|
35442
|
-
"startPage": "huUqha_startPage",
|
|
35443
|
-
"root": "huUqha_root",
|
|
35444
|
-
"restore": "huUqha_restore",
|
|
35445
|
-
"shortcutManaging": "huUqha_shortcutManaging",
|
|
35446
|
-
"iconChoices": "huUqha_iconChoices",
|
|
35447
|
-
"startTools": "huUqha_startTools",
|
|
35448
|
-
"undoText": "huUqha_undoText",
|
|
35449
|
-
"shortcutGrid": "huUqha_shortcutGrid",
|
|
35450
|
-
"danger": "huUqha_danger",
|
|
35451
|
-
"startHeading": "huUqha_startHeading",
|
|
35452
|
-
"addressHintError": "huUqha_addressHintError",
|
|
35453
|
-
"addressHintText": "huUqha_addressHintText",
|
|
35454
|
-
"addressGo": "huUqha_addressGo",
|
|
35455
|
-
"placeholder": "huUqha_placeholder",
|
|
35456
|
-
"takeover": "huUqha_takeover",
|
|
35457
|
-
"engineList": "huUqha_engineList",
|
|
35458
35441
|
"shortcutEdit": "huUqha_shortcutEdit",
|
|
35459
|
-
"
|
|
35460
|
-
"
|
|
35461
|
-
"
|
|
35442
|
+
"shortcutManageButton": "huUqha_shortcutManageButton",
|
|
35443
|
+
"addressChanged": "huUqha_addressChanged",
|
|
35444
|
+
"root": "huUqha_root",
|
|
35462
35445
|
"shortcutInvalid": "huUqha_shortcutInvalid",
|
|
35463
|
-
"restoreTitle": "huUqha_restoreTitle",
|
|
35464
|
-
"engineName": "huUqha_engineName",
|
|
35465
|
-
"textarea": "huUqha_textarea",
|
|
35466
|
-
"startHeader": "huUqha_startHeader",
|
|
35467
|
-
"titleIcon": "huUqha_titleIcon",
|
|
35468
|
-
"webview": "huUqha_webview",
|
|
35469
|
-
"shortcutTitle": "huUqha_shortcutTitle",
|
|
35470
|
-
"shortcutIcon": "huUqha_shortcutIcon",
|
|
35471
|
-
"engineInvalid": "huUqha_engineInvalid",
|
|
35472
|
-
"addressBox": "huUqha_addressBox",
|
|
35473
|
-
"select": "huUqha_select",
|
|
35474
|
-
"formActions": "huUqha_formActions",
|
|
35475
35446
|
"failure": "huUqha_failure",
|
|
35476
|
-
"
|
|
35477
|
-
"form": "huUqha_form",
|
|
35478
|
-
"addressHintAction": "huUqha_addressHintAction",
|
|
35447
|
+
"engineRow": "huUqha_engineRow",
|
|
35479
35448
|
"shortcutLetter": "huUqha_shortcutLetter",
|
|
35480
|
-
"
|
|
35481
|
-
"
|
|
35449
|
+
"startPage": "huUqha_startPage",
|
|
35450
|
+
"formError": "huUqha_formError",
|
|
35451
|
+
"engineRowTools": "huUqha_engineRowTools",
|
|
35452
|
+
"formActions": "huUqha_formActions",
|
|
35453
|
+
"sandboxOff": "huUqha_sandboxOff",
|
|
35454
|
+
"takeoverDone": "huUqha_takeoverDone",
|
|
35455
|
+
"undoText": "huUqha_undoText",
|
|
35456
|
+
"restoreLabel": "huUqha_restoreLabel",
|
|
35482
35457
|
"fieldLabel": "huUqha_fieldLabel",
|
|
35458
|
+
"addressUnknown": "huUqha_addressUnknown",
|
|
35459
|
+
"shortcutDragging": "huUqha_shortcutDragging",
|
|
35460
|
+
"undoBar": "huUqha_undoBar",
|
|
35461
|
+
"shortcutManaging": "huUqha_shortcutManaging",
|
|
35483
35462
|
"shortcutCell": "huUqha_shortcutCell",
|
|
35463
|
+
"takeoverSkip": "huUqha_takeoverSkip",
|
|
35484
35464
|
"addressHint": "huUqha_addressHint",
|
|
35485
|
-
"
|
|
35486
|
-
"
|
|
35487
|
-
"
|
|
35488
|
-
"rotateUp": "huUqha_rotateUp",
|
|
35465
|
+
"startHeader": "huUqha_startHeader",
|
|
35466
|
+
"restore": "huUqha_restore",
|
|
35467
|
+
"textarea": "huUqha_textarea",
|
|
35489
35468
|
"engineDefault": "huUqha_engineDefault",
|
|
35490
35469
|
"content": "huUqha_content",
|
|
35491
|
-
"toolbar": "huUqha_toolbar",
|
|
35492
|
-
"takeoverReason": "huUqha_takeoverReason",
|
|
35493
|
-
"takeoverDone": "huUqha_takeoverDone",
|
|
35494
|
-
"engineRow": "huUqha_engineRow",
|
|
35495
|
-
"undoBar": "huUqha_undoBar",
|
|
35496
|
-
"shortcutCard": "huUqha_shortcutCard",
|
|
35497
35470
|
"tool": "huUqha_tool",
|
|
35498
|
-
"
|
|
35499
|
-
"
|
|
35471
|
+
"iconChoices": "huUqha_iconChoices",
|
|
35472
|
+
"rotateUp": "huUqha_rotateUp",
|
|
35473
|
+
"startHeading": "huUqha_startHeading",
|
|
35474
|
+
"webview": "huUqha_webview",
|
|
35475
|
+
"address": "huUqha_address",
|
|
35476
|
+
"titleIcon": "huUqha_titleIcon",
|
|
35477
|
+
"shortcutIcon": "huUqha_shortcutIcon",
|
|
35478
|
+
"browser-viewport": "huUqha_browser-viewport",
|
|
35479
|
+
"shortcutTitle": "huUqha_shortcutTitle",
|
|
35480
|
+
"viewport": "huUqha_viewport",
|
|
35481
|
+
"startTools": "huUqha_startTools",
|
|
35482
|
+
"field": "huUqha_field",
|
|
35483
|
+
"takeoverReason": "huUqha_takeoverReason",
|
|
35484
|
+
"takeover": "huUqha_takeover",
|
|
35485
|
+
"addressGo": "huUqha_addressGo",
|
|
35486
|
+
"addressBox": "huUqha_addressBox",
|
|
35487
|
+
"engineName": "huUqha_engineName",
|
|
35500
35488
|
"shortcutManage": "huUqha_shortcutManage",
|
|
35501
|
-
"
|
|
35502
|
-
"engineQuestion": "huUqha_engineQuestion",
|
|
35503
|
-
"shortcutDragging": "huUqha_shortcutDragging",
|
|
35489
|
+
"danger": "huUqha_danger",
|
|
35504
35490
|
"sandboxWarning": "huUqha_sandboxWarning",
|
|
35505
|
-
"
|
|
35506
|
-
"
|
|
35491
|
+
"addressHintError": "huUqha_addressHintError",
|
|
35492
|
+
"toolbar": "huUqha_toolbar",
|
|
35493
|
+
"restoreTitle": "huUqha_restoreTitle",
|
|
35494
|
+
"shortcutGrid": "huUqha_shortcutGrid",
|
|
35495
|
+
"shortcutCard": "huUqha_shortcutCard",
|
|
35496
|
+
"addCard": "huUqha_addCard",
|
|
35507
35497
|
"frame": "huUqha_frame",
|
|
35508
|
-
"
|
|
35509
|
-
"
|
|
35510
|
-
"
|
|
35498
|
+
"engineQuestion": "huUqha_engineQuestion",
|
|
35499
|
+
"placeholder": "huUqha_placeholder",
|
|
35500
|
+
"engineTool": "huUqha_engineTool",
|
|
35501
|
+
"engineInvalid": "huUqha_engineInvalid",
|
|
35502
|
+
"limit": "huUqha_limit",
|
|
35503
|
+
"restoreUrl": "huUqha_restoreUrl",
|
|
35504
|
+
"engineList": "huUqha_engineList",
|
|
35505
|
+
"addressHintAction": "huUqha_addressHintAction",
|
|
35506
|
+
"select": "huUqha_select",
|
|
35507
|
+
"start": "huUqha_start",
|
|
35508
|
+
"addressHintText": "huUqha_addressHintText",
|
|
35509
|
+
"startNotice": "huUqha_startNotice",
|
|
35510
|
+
"form": "huUqha_form"
|
|
35511
35511
|
};
|
|
35512
35512
|
// src/client/view/StartPage.tsx
|
|
35513
35513
|
/** Browser start page and shared start-page management dialogs. */
|
package/docs/pr64-maintenance.md
CHANGED
|
@@ -8,7 +8,7 @@ Preflight records undeclared nested dependencies in `automatic.json`. After Desk
|
|
|
8
8
|
|
|
9
9
|
Package operations and optional rollback reconciliation inherit DSH's network settings: they do not force offline mode or override fetch timeouts/retries. Both legacy `npm_config_*` and pnpm 11 `PNPM_CONFIG_*` prefixes disable scripts and automatic peer installation. Each CLI call has a five-minute bound and attempts to terminate its process tree on timeout. Unrelated top-level entry removals or retargeting fail the transaction rather than silently accepting pruning. Recovery restart is attempted even when process termination cannot be fully verified, with that uncertainty retained in the failure report.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Only the package-manager children this plugin starts get `ELECTRON_NO_ASAR=1`, in their own environment. The plugin never writes it into the host's `process.env`: every later child of an ASAR-packaged host (DSH Tauri's subprocess Job runner, for one) would inherit it and fail to load its own entry from the archive (issue #71). A packed cold CLI must first import from `app.asar` with archive support enabled, then passes no-ASAR mode to its pnpm child. Maintenance itself discovers the packed CLI through raw archive reads.
|
|
12
12
|
|
|
13
13
|
## Sidebar tool readiness
|
|
14
14
|
|
package/docs/user-guide.md
CHANGED
|
@@ -31,7 +31,6 @@ import { findDesktopInstall, readBridgeStatus } from './bridge-status.js';
|
|
|
31
31
|
import { readHostExtensionStatus } from './profile-extension.js';
|
|
32
32
|
import { readBridgeEndpoint } from './bridge-endpoint.js';
|
|
33
33
|
import { runBridgeAction } from './bridge-install.js';
|
|
34
|
-
import { enableElectronPackageRemoval } from './package-removal.js';
|
|
35
34
|
import { prepareBridgeMaintenance } from './bridge-maintenance.js';
|
|
36
35
|
import { automaticMaintenanceSupported, commitAutomaticMaintenance, readAutomaticMaintenance, startAutomaticMaintenance } from './automatic-maintenance.js';
|
|
37
36
|
import { AUTOMATIC_MAINTENANCE_ROUTE, createAutomaticMaintenanceHandler } from './maintenance-route.js';
|
|
@@ -139,7 +138,6 @@ function readSessionId(ctx) {
|
|
|
139
138
|
}
|
|
140
139
|
/** Register the Electron browser provider with `ctx.browser`. */
|
|
141
140
|
export function apply(ctx, config) {
|
|
142
|
-
enableElectronPackageRemoval();
|
|
143
141
|
// Which session is this process serving?
|
|
144
142
|
//
|
|
145
143
|
// The desktop shell keeps ONE sidebar per conversation — measured: two `[class*=_tabStrip]`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-builtin-browser",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Sidebar browser for DeepSeek Harness with navigation, structured references and dsh_browser_* tools. Browser tools require a controllable host-provided sidebar. External Chrome or Edge requires explicit opt-in; no standalone Electron fallback.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/
|
|
17
|
+
"url": "https://github.com/wqty123/dsh-browser.git"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"lib",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"katex": "0.16.25"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@deepseek-ai/dsh-llm": "^0.2.2-rc.3",
|
|
57
56
|
"@deepseek-ai/cordis": "^4.1.0",
|
|
57
|
+
"@deepseek-ai/dsh-llm": "^0.2.2-rc.3",
|
|
58
58
|
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.3",
|
|
59
59
|
"@deepseek-ai/dsh-tools": "^0.2.2-rc.3",
|
|
60
60
|
"@deepseek-ai/schemastery": "^3.19.0"
|
|
@@ -64,21 +64,21 @@
|
|
|
64
64
|
"react-dom": "^18.2.0",
|
|
65
65
|
"tldts": "6.1.86",
|
|
66
66
|
"typescript": "^5.5.0",
|
|
67
|
-
"@deepseek-ai/dsh-api-workspace-controller": "^0.2.2-rc.3",
|
|
68
67
|
"@deepseek-ai/dsh-brand": "^0.2.2-rc.3",
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
68
|
+
"@deepseek-ai/dsh-api-workspace-controller": "^0.2.2-rc.3",
|
|
70
69
|
"@deepseek-ai/dsh-client-locale": "^0.2.2-rc.3",
|
|
71
70
|
"@deepseek-ai/dsh-client-store": "^0.2.2-rc.3",
|
|
72
|
-
"@deepseek-ai/dsh-client-
|
|
73
|
-
"@deepseek-ai/dsh-client-ui-dockkit": "^0.2.2-rc.3",
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.3",
|
|
71
|
+
"@deepseek-ai/dsh-client-shortcuts": "^0.2.2-rc.3",
|
|
75
72
|
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.2-rc.3",
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-dockkit": "^0.2.2-rc.3",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-context-menu": "^0.2.2-rc.3",
|
|
77
75
|
"@deepseek-ai/dsh-client-ui-session": "^0.2.2-rc.3",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.3",
|
|
78
77
|
"@deepseek-ai/dsh-client-ui-settings": "^0.2.2-rc.3",
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "^0.2.2-rc.3",
|
|
80
78
|
"@deepseek-ai/dsh-session": "^0.2.2-rc.3",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "^0.2.2-rc.3",
|
|
81
80
|
"@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.3",
|
|
81
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.2.2-rc.3",
|
|
82
82
|
"@deepseek-ai/dsh-settings": "^0.2.2-rc.3"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
@@ -47,7 +47,6 @@ import { findDesktopInstall, readBridgeStatus } from './bridge-status.ts'
|
|
|
47
47
|
import { readHostExtensionStatus } from './profile-extension.ts'
|
|
48
48
|
import { readBridgeEndpoint } from './bridge-endpoint.ts'
|
|
49
49
|
import { runBridgeAction } from './bridge-install.ts'
|
|
50
|
-
import { enableElectronPackageRemoval } from './package-removal.ts'
|
|
51
50
|
import { prepareBridgeMaintenance } from './bridge-maintenance.ts'
|
|
52
51
|
import { automaticMaintenanceSupported, commitAutomaticMaintenance, readAutomaticMaintenance, startAutomaticMaintenance } from './automatic-maintenance.ts'
|
|
53
52
|
import { AUTOMATIC_MAINTENANCE_ROUTE, createAutomaticMaintenanceHandler } from './maintenance-route.ts'
|
|
@@ -201,7 +200,6 @@ function readSessionId(ctx: unknown): string | undefined {
|
|
|
201
200
|
|
|
202
201
|
/** Register the Electron browser provider with `ctx.browser`. */
|
|
203
202
|
export function apply(ctx: Context & { browser: BrowserRuntime }, config: Config): void {
|
|
204
|
-
enableElectronPackageRemoval()
|
|
205
203
|
// Which session is this process serving?
|
|
206
204
|
//
|
|
207
205
|
// The desktop shell keeps ONE sidebar per conversation — measured: two `[class*=_tabStrip]`
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Keep package-manager children in plain-filesystem mode, including after this bundle is unloaded. */
|
|
2
|
-
export function enableElectronPackageRemoval(environment = process.env, electron = process.versions.electron) {
|
|
3
|
-
if (electron !== undefined && environment.ELECTRON_RUN_AS_NODE === '1')
|
|
4
|
-
environment.ELECTRON_NO_ASAR = '1';
|
|
5
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Keep package-manager children in plain-filesystem mode, including after this bundle is unloaded. */
|
|
2
|
-
export function enableElectronPackageRemoval(environment: NodeJS.ProcessEnv = process.env, electron = process.versions.electron): void {
|
|
3
|
-
if (electron !== undefined && environment.ELECTRON_RUN_AS_NODE === '1') environment.ELECTRON_NO_ASAR = '1'
|
|
4
|
-
}
|