better-dsh 0.3.0-e → 0.3.0-f
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 +12 -11
- package/cordis.patch.yml +1 -29
- package/lib/BrowserWebSocketTransport-CgnU0Bka.js +4 -0
- package/lib/{BrowserWebSocketTransport-wm99h94r.js → BrowserWebSocketTransport-CokhVKFw.js} +2 -2
- package/lib/LaunchOptions-DljEj6Vd.js +4 -0
- package/lib/{LaunchOptions-DXdeJis3.js → LaunchOptions-NT3-rzpY.js} +2 -2
- package/lib/NodeWebSocketTransport-5Wqr0cTX.js +4 -0
- package/lib/{NodeWebSocketTransport-D9ysYGLM.js → NodeWebSocketTransport-DtNdogd8.js} +29 -29
- package/lib/{bidi-CwtLGgcA.js → bidi-CXUoxww0.js} +99 -99
- package/lib/client/index.js +25 -2
- package/lib/fs-aware/sandbox-plugin.js +1 -1
- package/lib/{index-browser-Bp3vxHC3.js → index-browser-DkpQrcIm.js} +104 -104
- package/lib/{main-CKFNYpqT.js → main-CspJGYxD.js} +14 -14
- package/lib/{main-BXwPLuYr.js → main-jPcGHA-q.js} +1 -1
- package/lib/mobile/plugin.d.ts +1 -1
- package/lib/{puppeteer-core-Bliv_vNf.js → puppeteer-core-D29koPVJ.js} +17 -17
- package/lib/url-schemes/index.d.ts +11 -11
- package/lib/url-schemes/index.js +16 -16
- package/lib/{util-BHL_dfV_.js → util-CdSJv4Yr.js} +9 -9
- package/lib/{wasm_bg-CNXhHjVg.js → wasm_bg-C8T5tUKB.js} +2 -2
- package/lib/web-password.d.ts +7 -7
- package/lib/{web-tree-sitter-CPrPD4J2.js → web-tree-sitter-BUIVjOZV.js} +1 -1
- package/lib/{web-trust-C_Y6o8Z2.d.ts → web-trust-Dej_RI2B.d.ts} +11 -11
- package/lib/web-trust.d.ts +2 -1
- package/lib/welcome-notice.d.ts +5 -7
- package/lib/welcome-notice.js +9 -48
- package/package.json +2 -14
- package/lib/BrowserWebSocketTransport-D1aFReu_.js +0 -4
- package/lib/LaunchOptions-3peHoOAx.js +0 -4
- package/lib/NodeWebSocketTransport-BRLjmu2R.js +0 -4
- package/lib/hmr.d.ts +0 -32
- package/lib/hmr.js +0 -49
- package/lib/webserver.d.ts +0 -10
- package/lib/webserver.js +0 -19
package/README.md
CHANGED
|
@@ -47,28 +47,29 @@ dsh runtime package dependencies**: only `@deepseek-ai/cordis` (peer),
|
|
|
47
47
|
dependency imports external (`dts: { resolve: false }`): bundled copies
|
|
48
48
|
would create duplicate type identities in a consumer's program.
|
|
49
49
|
|
|
50
|
-
## Native Web
|
|
50
|
+
## Native Web policies
|
|
51
51
|
|
|
52
52
|
The bundle owns native DSH Web policies as independently toggleable components.
|
|
53
53
|
`dashr-web-trust` accepts authenticated serving Host/Origin values while retaining
|
|
54
|
-
native cookie authentication.
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
native cookie authentication. The native WebServer and HMR remain in place;
|
|
55
|
+
Better contributes WebTrust, mobile behavior and its password page through the
|
|
56
|
+
public WebServer interfaces. Listener address and port follow native CLI policy.
|
|
57
57
|
Automatic credential onboarding is disabled; users can still configure models.
|
|
58
58
|
|
|
59
|
-
`dashr-welcome-notice`
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
`dashr-welcome-notice` shadows only the native `welcome-notice` onboarding entry
|
|
60
|
+
at a higher precedence and calls the shell's public completion callback every
|
|
61
|
+
time it mounts, including new chats and explicitly reopened notices. It renders
|
|
62
|
+
no dialog and writes no native acknowledgement state. Disabling the component
|
|
63
|
+
withdraws its client contribution and restores the native welcome item; other
|
|
64
|
+
onboarding steps retain their own behavior.
|
|
64
65
|
|
|
65
66
|
```yaml
|
|
66
67
|
- id: dashr-welcome-notice
|
|
67
68
|
disabled: true
|
|
68
69
|
```
|
|
69
70
|
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
Super Dash installs Better through the native Plugin Manager as a separate
|
|
72
|
+
bundle. Better Dash remains independently installable. `../dev-webmcp` is an
|
|
72
73
|
unshipped development-only bundle owned by this repository.
|
|
73
74
|
|
|
74
75
|
## Install
|
package/cordis.patch.yml
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
- id: dashr-web-password
|
|
69
69
|
name: 'better-dsh/web-password'
|
|
70
70
|
|
|
71
|
-
#
|
|
71
|
+
# Skip native welcome selections through the client's public onboarding slot.
|
|
72
72
|
# Single-row opt-out: dashr-welcome-notice: disabled.
|
|
73
73
|
- id: dashr-welcome-notice
|
|
74
74
|
name: 'better-dsh/welcome-notice'
|
|
@@ -101,35 +101,7 @@
|
|
|
101
101
|
config:
|
|
102
102
|
trustedHosts: !!js (process.env.DSH_TRUSTED_HOSTS ?? '').split(/\s+/).filter(Boolean).concat(ctx.webRuntime.trustedHosts)
|
|
103
103
|
|
|
104
|
-
# Replacement uses the public patch mechanism: disable the native provider,
|
|
105
|
-
# then insert a distinct row providing the same native webServer service.
|
|
106
|
-
- id: webserver
|
|
107
|
-
name: '@deepseek-ai/dsh-host-webserver'
|
|
108
|
-
disabled: true
|
|
109
|
-
- insert:
|
|
110
|
-
- id: dashr-webserver
|
|
111
|
-
name: 'better-dsh/webserver'
|
|
112
|
-
inject: [webStartup]
|
|
113
|
-
config:
|
|
114
|
-
host: !!js ctx.webStartup.host ?? '0.0.0.0'
|
|
115
|
-
port: !!js ctx.webStartup.port ?? 3080
|
|
116
|
-
compression: gzip
|
|
117
|
-
compressionLevel: 1
|
|
118
|
-
compressionThresholdBytes: 1024
|
|
119
|
-
|
|
120
104
|
- id: ui-settings-models
|
|
121
105
|
name: '@deepseek-ai/dsh-client-ui-settings-models'
|
|
122
106
|
config:
|
|
123
107
|
credentialOnboarding: false
|
|
124
|
-
|
|
125
|
-
# Native watcher/queue with scoped transaction context across listener replacement.
|
|
126
|
-
# Distinct row preserves whole-bundle disablement in the native manager.
|
|
127
|
-
- id: hmr
|
|
128
|
-
name: '@deepseek-ai/dsh-hmr'
|
|
129
|
-
disabled: true
|
|
130
|
-
- insert:
|
|
131
|
-
- id: dashr-hmr
|
|
132
|
-
name: 'better-dsh/hmr'
|
|
133
|
-
disabled: !!js "!ctx.get('profileContext')"
|
|
134
|
-
config:
|
|
135
|
-
root: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as debugCatchError } from "./util-
|
|
1
|
+
import { o as debugCatchError } from "./util-CdSJv4Yr.js";
|
|
2
2
|
|
|
3
|
-
//#region node_modules/puppeteer-core/lib/puppeteer/common/BrowserWebSocketTransport.js
|
|
3
|
+
//#region ../../../better-dsh/node_modules/puppeteer-core/lib/puppeteer/common/BrowserWebSocketTransport.js
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as ChromeReleaseChannel } from "./main-
|
|
1
|
+
import { b as ChromeReleaseChannel } from "./main-CspJGYxD.js";
|
|
2
2
|
|
|
3
|
-
//#region node_modules/puppeteer-core/lib/puppeteer/node/LaunchOptions.js
|
|
3
|
+
//#region ../../../better-dsh/node_modules/puppeteer-core/lib/puppeteer/node/LaunchOptions.js
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __require, r as __toESM, t as __commonJS } from "./chunk-DQxbwPpZ.js";
|
|
2
|
-
import { D as packageVersion, o as debugCatchError } from "./util-
|
|
2
|
+
import { D as packageVersion, o as debugCatchError } from "./util-CdSJv4Yr.js";
|
|
3
3
|
|
|
4
|
-
//#region node_modules/ws/lib/constants.js
|
|
5
|
-
var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/constants.js": ((exports, module) => {
|
|
4
|
+
//#region ../../../better-dsh/node_modules/ws/lib/constants.js
|
|
5
|
+
var require_constants = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/constants.js": ((exports, module) => {
|
|
6
6
|
const BINARY_TYPES$2 = [
|
|
7
7
|
"nodebuffer",
|
|
8
8
|
"arraybuffer",
|
|
@@ -25,8 +25,8 @@ var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/consta
|
|
|
25
25
|
}) });
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region node_modules/ws/lib/buffer-util.js
|
|
29
|
-
var require_buffer_util = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/buffer-util.js": ((exports, module) => {
|
|
28
|
+
//#region ../../../better-dsh/node_modules/ws/lib/buffer-util.js
|
|
29
|
+
var require_buffer_util = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/buffer-util.js": ((exports, module) => {
|
|
30
30
|
const { EMPTY_BUFFER: EMPTY_BUFFER$3 } = require_constants();
|
|
31
31
|
const FastBuffer$2 = Buffer[Symbol.species];
|
|
32
32
|
/**
|
|
@@ -126,8 +126,8 @@ var require_buffer_util = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/buff
|
|
|
126
126
|
}) });
|
|
127
127
|
|
|
128
128
|
//#endregion
|
|
129
|
-
//#region node_modules/ws/lib/limiter.js
|
|
130
|
-
var require_limiter = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/limiter.js": ((exports, module) => {
|
|
129
|
+
//#region ../../../better-dsh/node_modules/ws/lib/limiter.js
|
|
130
|
+
var require_limiter = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/limiter.js": ((exports, module) => {
|
|
131
131
|
const kDone = Symbol("kDone");
|
|
132
132
|
const kRun = Symbol("kRun");
|
|
133
133
|
/**
|
|
@@ -178,8 +178,8 @@ var require_limiter = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/limiter.
|
|
|
178
178
|
}) });
|
|
179
179
|
|
|
180
180
|
//#endregion
|
|
181
|
-
//#region node_modules/ws/lib/permessage-deflate.js
|
|
182
|
-
var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/permessage-deflate.js": ((exports, module) => {
|
|
181
|
+
//#region ../../../better-dsh/node_modules/ws/lib/permessage-deflate.js
|
|
182
|
+
var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/permessage-deflate.js": ((exports, module) => {
|
|
183
183
|
const zlib = __require("zlib");
|
|
184
184
|
const bufferUtil = require_buffer_util();
|
|
185
185
|
const Limiter = require_limiter();
|
|
@@ -512,8 +512,8 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJS({ "node_modules/ws/l
|
|
|
512
512
|
}) });
|
|
513
513
|
|
|
514
514
|
//#endregion
|
|
515
|
-
//#region node_modules/ws/lib/validation.js
|
|
516
|
-
var require_validation = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/validation.js": ((exports, module) => {
|
|
515
|
+
//#region ../../../better-dsh/node_modules/ws/lib/validation.js
|
|
516
|
+
var require_validation = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/validation.js": ((exports, module) => {
|
|
517
517
|
const { isUtf8 } = __require("buffer");
|
|
518
518
|
const { hasBlob } = require_constants();
|
|
519
519
|
const tokenChars$2 = [
|
|
@@ -709,8 +709,8 @@ var require_validation = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/valid
|
|
|
709
709
|
}) });
|
|
710
710
|
|
|
711
711
|
//#endregion
|
|
712
|
-
//#region node_modules/ws/lib/receiver.js
|
|
713
|
-
var require_receiver = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/receiver.js": ((exports, module) => {
|
|
712
|
+
//#region ../../../better-dsh/node_modules/ws/lib/receiver.js
|
|
713
|
+
var require_receiver = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/receiver.js": ((exports, module) => {
|
|
714
714
|
const { Writable } = __require("stream");
|
|
715
715
|
const PerMessageDeflate$4 = require_permessage_deflate();
|
|
716
716
|
const { BINARY_TYPES: BINARY_TYPES$1, EMPTY_BUFFER: EMPTY_BUFFER$2, kStatusCode: kStatusCode$1, kWebSocket: kWebSocket$3 } = require_constants();
|
|
@@ -1173,8 +1173,8 @@ var require_receiver = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/receive
|
|
|
1173
1173
|
}) });
|
|
1174
1174
|
|
|
1175
1175
|
//#endregion
|
|
1176
|
-
//#region node_modules/ws/lib/sender.js
|
|
1177
|
-
var require_sender = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/sender.js": ((exports, module) => {
|
|
1176
|
+
//#region ../../../better-dsh/node_modules/ws/lib/sender.js
|
|
1177
|
+
var require_sender = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/sender.js": ((exports, module) => {
|
|
1178
1178
|
const { Duplex: Duplex$3 } = __require("stream");
|
|
1179
1179
|
const { randomFillSync } = __require("crypto");
|
|
1180
1180
|
const { types: { isUint8Array } } = __require("util");
|
|
@@ -1671,8 +1671,8 @@ var require_sender = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/sender.js
|
|
|
1671
1671
|
}) });
|
|
1672
1672
|
|
|
1673
1673
|
//#endregion
|
|
1674
|
-
//#region node_modules/ws/lib/event-target.js
|
|
1675
|
-
var require_event_target = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/event-target.js": ((exports, module) => {
|
|
1674
|
+
//#region ../../../better-dsh/node_modules/ws/lib/event-target.js
|
|
1675
|
+
var require_event_target = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/event-target.js": ((exports, module) => {
|
|
1676
1676
|
const { kForOnEventAttribute: kForOnEventAttribute$1, kListener: kListener$1 } = require_constants();
|
|
1677
1677
|
const kCode = Symbol("kCode");
|
|
1678
1678
|
const kData = Symbol("kData");
|
|
@@ -1891,8 +1891,8 @@ var require_event_target = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/eve
|
|
|
1891
1891
|
}) });
|
|
1892
1892
|
|
|
1893
1893
|
//#endregion
|
|
1894
|
-
//#region node_modules/ws/lib/extension.js
|
|
1895
|
-
var require_extension = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/extension.js": ((exports, module) => {
|
|
1894
|
+
//#region ../../../better-dsh/node_modules/ws/lib/extension.js
|
|
1895
|
+
var require_extension = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/extension.js": ((exports, module) => {
|
|
1896
1896
|
const { tokenChars: tokenChars$1 } = require_validation();
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Adds an offer to the map of extension offers or a parameter to the map of
|
|
@@ -2035,8 +2035,8 @@ var require_extension = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/extens
|
|
|
2035
2035
|
}) });
|
|
2036
2036
|
|
|
2037
2037
|
//#endregion
|
|
2038
|
-
//#region node_modules/ws/lib/websocket.js
|
|
2039
|
-
var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websocket.js": ((exports, module) => {
|
|
2038
|
+
//#region ../../../better-dsh/node_modules/ws/lib/websocket.js
|
|
2039
|
+
var require_websocket = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/websocket.js": ((exports, module) => {
|
|
2040
2040
|
const EventEmitter$1 = __require("events");
|
|
2041
2041
|
const https = __require("https");
|
|
2042
2042
|
const http$1 = __require("http");
|
|
@@ -3030,8 +3030,8 @@ var require_websocket = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websoc
|
|
|
3030
3030
|
}) });
|
|
3031
3031
|
|
|
3032
3032
|
//#endregion
|
|
3033
|
-
//#region node_modules/ws/lib/stream.js
|
|
3034
|
-
var require_stream = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/stream.js": ((exports, module) => {
|
|
3033
|
+
//#region ../../../better-dsh/node_modules/ws/lib/stream.js
|
|
3034
|
+
var require_stream = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/stream.js": ((exports, module) => {
|
|
3035
3035
|
require_websocket();
|
|
3036
3036
|
const { Duplex: Duplex$1 } = __require("stream");
|
|
3037
3037
|
/**
|
|
@@ -3147,8 +3147,8 @@ var require_stream = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/stream.js
|
|
|
3147
3147
|
}) });
|
|
3148
3148
|
|
|
3149
3149
|
//#endregion
|
|
3150
|
-
//#region node_modules/ws/lib/subprotocol.js
|
|
3151
|
-
var require_subprotocol = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/subprotocol.js": ((exports, module) => {
|
|
3150
|
+
//#region ../../../better-dsh/node_modules/ws/lib/subprotocol.js
|
|
3151
|
+
var require_subprotocol = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/subprotocol.js": ((exports, module) => {
|
|
3152
3152
|
const { tokenChars } = require_validation();
|
|
3153
3153
|
/**
|
|
3154
3154
|
* Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names.
|
|
@@ -3187,8 +3187,8 @@ var require_subprotocol = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/subp
|
|
|
3187
3187
|
}) });
|
|
3188
3188
|
|
|
3189
3189
|
//#endregion
|
|
3190
|
-
//#region node_modules/ws/lib/websocket-server.js
|
|
3191
|
-
var require_websocket_server = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib/websocket-server.js": ((exports, module) => {
|
|
3190
|
+
//#region ../../../better-dsh/node_modules/ws/lib/websocket-server.js
|
|
3191
|
+
var require_websocket_server = /* @__PURE__ */ __commonJS({ "../../../better-dsh/node_modules/ws/lib/websocket-server.js": ((exports, module) => {
|
|
3192
3192
|
const EventEmitter = __require("events");
|
|
3193
3193
|
const http = __require("http");
|
|
3194
3194
|
const { Duplex } = __require("stream");
|
|
@@ -3574,7 +3574,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJS({ "node_modules/ws/lib
|
|
|
3574
3574
|
}) });
|
|
3575
3575
|
|
|
3576
3576
|
//#endregion
|
|
3577
|
-
//#region node_modules/ws/wrapper.mjs
|
|
3577
|
+
//#region ../../../better-dsh/node_modules/ws/wrapper.mjs
|
|
3578
3578
|
var import_stream = /* @__PURE__ */ __toESM(require_stream(), 1);
|
|
3579
3579
|
var import_extension = /* @__PURE__ */ __toESM(require_extension(), 1);
|
|
3580
3580
|
var import_permessage_deflate = /* @__PURE__ */ __toESM(require_permessage_deflate(), 1);
|
|
@@ -3586,7 +3586,7 @@ var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server()
|
|
|
3586
3586
|
var wrapper_default = import_websocket.default;
|
|
3587
3587
|
|
|
3588
3588
|
//#endregion
|
|
3589
|
-
//#region node_modules/puppeteer-core/lib/puppeteer/node/NodeWebSocketTransport.js
|
|
3589
|
+
//#region ../../../better-dsh/node_modules/puppeteer-core/lib/puppeteer/node/NodeWebSocketTransport.js
|
|
3590
3590
|
/**
|
|
3591
3591
|
* @internal
|
|
3592
3592
|
*/
|