dsh-browser-firefox 0.3.0
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/cordis.patch.yml +29 -0
- package/lib/index.js +1182 -0
- package/lib/invariant.js +26 -0
- package/lib/protocol.js +134 -0
- package/lib/types/index.d.ts +59 -0
- package/lib/types/invariant.d.ts +16 -0
- package/lib/types/protocol.d.ts +144 -0
- package/lib/types/server.d.ts +127 -0
- package/lib/types/session-deferral.d.ts +25 -0
- package/lib/types/session-workspace.d.ts +22 -0
- package/lib/types/token.d.ts +57 -0
- package/lib/types/tools.d.ts +39 -0
- package/package.json +98 -0
- package/src/index.ts +194 -0
- package/src/invariant.ts +33 -0
- package/src/protocol.ts +199 -0
- package/src/server.ts +438 -0
- package/src/session-deferral.ts +99 -0
- package/src/session-workspace.ts +81 -0
- package/src/token.ts +100 -0
- package/src/tools.ts +396 -0
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Browser bridge layer for the dsh `web` profile.
|
|
2
|
+
#
|
|
3
|
+
# `dsh plugin --profile web add` registers this package's `dsh.bundle`
|
|
4
|
+
# manifest, so both the repository launcher and `npx @deepseek-ai/dsh web`
|
|
5
|
+
# apply this patch without an extra command-line option.
|
|
6
|
+
#
|
|
7
|
+
# On first boot the plugin generates a bearer token and persists it at
|
|
8
|
+
# ~/.dsh/ext-bridge-token (chmod 0600). Local extensions discover the bridge
|
|
9
|
+
# without manual token entry. To pin a fixed token for a remote deployment,
|
|
10
|
+
# set DSH_EXT_TOKEN and reference it below.
|
|
11
|
+
# Extension-created sessions default to the ~/.dsh/browser-sessions workspace.
|
|
12
|
+
# Set DSH_BROWSER_SESSION_WORKSPACE to choose another path, or to an empty
|
|
13
|
+
# string to keep those sessions Ungrouped.
|
|
14
|
+
# Sessions materialize only on the first message (deferSessionCreate defaults
|
|
15
|
+
# to true): opening the side panel without chatting leaves no session behind.
|
|
16
|
+
#
|
|
17
|
+
# Security: the bridge path carries its own token auth and refuses privileged
|
|
18
|
+
# gateway methods (settings/credentials/open-*) for non-loopback remotes. Do
|
|
19
|
+
# not run `dsh web --host 0.0.0.0` on untrusted networks with this layer.
|
|
20
|
+
|
|
21
|
+
- insert:
|
|
22
|
+
- id: bridge-browser
|
|
23
|
+
name: '@deepseek-ai/dsh-bridge-browser'
|
|
24
|
+
config:
|
|
25
|
+
token: !!js process.env.DSH_EXT_TOKEN
|
|
26
|
+
sessionWorkspacePath: !!js process.env.DSH_BROWSER_SESSION_WORKSPACE
|
|
27
|
+
toolTimeoutMs: 60000
|
|
28
|
+
snapshotMaxChars: 12000
|
|
29
|
+
maxInteractiveItems: 120
|