@linxin666/dsh-client-ui-browser-view 0.4.17 → 0.4.19

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.
@@ -33,6 +33,22 @@ declare module '@deepseek-ai/cordis' {
33
33
  export declare const name = "browser-view";
34
34
  /** Services required before the routes and the tools can mount. */
35
35
  export declare const inject: string[];
36
+ interface EntryUrlCandidate {
37
+ readonly url?: string;
38
+ readonly open?: boolean;
39
+ }
40
+ /** Minimal Cordis context surface needed to resolve an authenticated DSH URL. */
41
+ export interface AuthenticatedUrlContext {
42
+ get?(name: string): unknown;
43
+ readonly webServer?: unknown;
44
+ emit?(subject: unknown, event: string, baseUrl: string, entries: EntryUrlCandidate[]): unknown;
45
+ }
46
+ /**
47
+ * Resolve the host's authenticated entry URL for `url` across SDK cohorts:
48
+ * legacy hosts expose `connection.authenticatedUrl(url)`, while peer-auth
49
+ * hosts collect entry URLs via `ctx.emit(webServer, 'webserver/entry-url', url, entries)`.
50
+ */
51
+ export declare function resolveAuthenticatedUrl(ctx: AuthenticatedUrlContext, url: string): string | undefined;
36
52
  /**
37
53
  * Mount the routes, the tools, and the browser lifetime.
38
54
  * @param ctx - host plugin context carrying webServer and tools.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-client-ui-browser-view",
3
3
  "description": "Right-docked live browser view for the DSH Web GUI: a CDP-driven Chromium the agent operates, a screencast panel the user watches, and screenshots attached to every tool result.",
4
- "version": "0.4.17",
4
+ "version": "0.4.19",
5
5
  "icon": "icon.svg",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dsh": {
24
24
  "engines": {
25
- "dsh": ">=0.2.2-rc.2"
25
+ "dsh": ">=0.2.2-rc.3"
26
26
  },
27
27
  "bundle": {
28
28
  "patch": "./cordis.patch.yml"
@@ -45,25 +45,25 @@
45
45
  "ws": "^8.18.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@deepseek-ai/dsh": ">=0.2.2-rc.2",
48
+ "@deepseek-ai/dsh": ">=0.2.2-rc.3",
49
49
  "react": "^18.2.0",
50
50
  "react-dom": "^18.2.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@deepseek-ai/cordis": "^4.1.0",
54
- "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.2",
55
- "@deepseek-ai/dsh-client-locale": "^0.2.2-rc.2",
56
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.2",
57
- "@deepseek-ai/dsh-client-ui-layout": "^0.2.2-rc.2",
58
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-rc.2",
59
- "@deepseek-ai/dsh-client-ui-primitives": "^0.2.2-rc.2",
60
- "@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.2",
61
- "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.2",
62
- "@deepseek-ai/dsh-client-ui-sidebar-right": "^0.2.2-rc.2",
63
- "@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.2",
64
- "@deepseek-ai/dsh-host-webserver": "^0.2.2-rc.2",
65
- "@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.2",
66
- "@deepseek-ai/dsh-tools": "^0.2.2-rc.2",
54
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.3",
55
+ "@deepseek-ai/dsh-client-locale": "^0.2.2-rc.3",
56
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.3",
57
+ "@deepseek-ai/dsh-client-ui-layout": "^0.2.2-rc.3",
58
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-rc.3",
59
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.2.2-rc.3",
60
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.3",
61
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.3",
62
+ "@deepseek-ai/dsh-client-ui-sidebar-right": "^0.2.2-rc.3",
63
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.3",
64
+ "@deepseek-ai/dsh-host-webserver": "^0.2.2-rc.3",
65
+ "@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.3",
66
+ "@deepseek-ai/dsh-tools": "^0.2.2-rc.3",
67
67
  "@deepseek-ai/schemastery": "^3.19.0",
68
68
  "@types/node": "^22.20.0",
69
69
  "@types/react": "~18.3.1",