@monotykamary/dsh-web-app 0.1.0-rc.10
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/LICENSE +21 -0
- package/README.i18n.yaml +6 -0
- package/README.md +33 -0
- package/README.zh.md +33 -0
- package/cordis.patch.yml +483 -0
- package/lib/index.js +432 -0
- package/lib/invariant.js +25 -0
- package/lib/startup.js +68 -0
- package/lib/types/index.d.ts +80 -0
- package/lib/types/invariant.d.ts +16 -0
- package/lib/types/startup.d.ts +49 -0
- package/lib/types/surfaces.d.ts +49 -0
- package/package.json +139 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deployment-surface resolution for `dsh web`: derives the tailnet and
|
|
3
|
+
* portless serving authorities from the machine's installed tooling for the
|
|
4
|
+
* /api browser-trust fence and the URL line. Every probe is best-effort
|
|
5
|
+
* environment detection, not configuration validation: an absent binary, an
|
|
6
|
+
* unmatched route, or a dead proxy yields a warning and no surface, never a
|
|
7
|
+
* failed boot. Resolution never rejects; unexpected probe failures surface
|
|
8
|
+
* as warnings too, so a hanging or broken tool cannot take the URL line
|
|
9
|
+
* (a supervisor readiness signal) down with it.
|
|
10
|
+
* @module @monotykamary/dsh-web-app/surfaces
|
|
11
|
+
*/
|
|
12
|
+
/** One derived remote surface: the announced URL plus the authority the trust fence accepts. */
|
|
13
|
+
export interface RemoteSurface {
|
|
14
|
+
/** Full URL announced on the `dsh web:` line. */
|
|
15
|
+
url: string;
|
|
16
|
+
/** Bare authority trusted by the /api fence (a host, matching any port). */
|
|
17
|
+
authority: string;
|
|
18
|
+
}
|
|
19
|
+
/** Settle-once result shared by the fence update and the URL line. */
|
|
20
|
+
export interface SurfaceResolution {
|
|
21
|
+
/** The tailscale serve surface, when tailscale fronts the bound port. */
|
|
22
|
+
tailnet?: RemoteSurface;
|
|
23
|
+
/** The portless HTTPS surface, when the proxy and its alias are live. */
|
|
24
|
+
portless?: RemoteSurface;
|
|
25
|
+
/** Deployment-capability warnings (missing binary, offline, unmatched route). */
|
|
26
|
+
warnings: string[];
|
|
27
|
+
}
|
|
28
|
+
/** Binary-execution and TCP-probe seams; defaults are the real node implementations. */
|
|
29
|
+
export interface SurfaceProbeOptions {
|
|
30
|
+
/** Runs one tool invocation; defaults to execFile with a probe timeout. */
|
|
31
|
+
exec?: (file: string, args: string[]) => Promise<{
|
|
32
|
+
stdout: string;
|
|
33
|
+
stderr: string;
|
|
34
|
+
}>;
|
|
35
|
+
/** Answers whether a loopback host:port accepts TCP; defaults to a real connect probe. */
|
|
36
|
+
probe?: (host: string, port: number) => Promise<boolean>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Resolve the enabled remote surfaces for the bound port. Disabled flags run
|
|
40
|
+
* no probe and settle at once; enabled probes run in parallel and every
|
|
41
|
+
* failure, expected or not, lands in `warnings`.
|
|
42
|
+
* @param port - the webserver's bound port.
|
|
43
|
+
* @param tailnet - whether the tailscale serve surface is enabled.
|
|
44
|
+
* @param portless - whether the portless HTTPS surface is enabled.
|
|
45
|
+
* @param options - binary and probe seams (tests).
|
|
46
|
+
* @returns the resolved surfaces and their warnings; never rejects.
|
|
47
|
+
*/
|
|
48
|
+
export declare function resolveRemoteSurfaces(port: number, tailnet: boolean, portless: boolean, options?: SurfaceProbeOptions): Promise<SurfaceResolution>;
|
|
49
|
+
//# sourceMappingURL=surfaces.d.ts.map
|
package/package.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@monotykamary/dsh-web-app",
|
|
3
|
+
"description": "The dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)",
|
|
4
|
+
"version": "0.1.0-rc.10",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
11
|
+
"directory": "packages/bundle/web-app"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"types": "lib/types/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/types/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./startup": {
|
|
22
|
+
"types": "./lib/types/startup.d.ts",
|
|
23
|
+
"default": "./lib/startup.js"
|
|
24
|
+
},
|
|
25
|
+
"./invariant": {
|
|
26
|
+
"types": "./lib/types/invariant.d.ts",
|
|
27
|
+
"default": "./lib/invariant.js"
|
|
28
|
+
},
|
|
29
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
30
|
+
"./src/*": "./src/*",
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"lib/index.js",
|
|
35
|
+
"lib/invariant.js",
|
|
36
|
+
"lib/startup.js",
|
|
37
|
+
"cordis.patch.yml",
|
|
38
|
+
"lib/types/**/*.d.ts"
|
|
39
|
+
],
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"dsh": {
|
|
42
|
+
"bundle": {
|
|
43
|
+
"patch": "./cordis.patch.yml"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"commander": "^15.0.0",
|
|
48
|
+
"open": "^11.0.0",
|
|
49
|
+
"@monotykamary/dsh-app-boot": "^0.1.0-rc.10",
|
|
50
|
+
"@monotykamary/dsh-client-hmr": "^0.1.0-rc.10",
|
|
51
|
+
"@monotykamary/dsh-agent-presets": "^0.1.0-rc.10",
|
|
52
|
+
"@monotykamary/dsh-client-ui-renderer": "^0.1.0-rc.10",
|
|
53
|
+
"@monotykamary/dsh-client-modules": "^0.1.0-rc.10",
|
|
54
|
+
"@monotykamary/dsh-client-runtime": "^0.1.0-rc.10",
|
|
55
|
+
"@monotykamary/dsh-client-locale": "^0.1.0-rc.10",
|
|
56
|
+
"@monotykamary/dsh-client-ui-conversation": "^0.1.0-rc.10",
|
|
57
|
+
"@monotykamary/dsh-client-ui-commands": "^0.1.0-rc.10",
|
|
58
|
+
"@monotykamary/dsh-client-ui-attachment": "^0.1.0-rc.10",
|
|
59
|
+
"@monotykamary/dsh-client-ui-directory-picker-browse": "^0.1.0-rc.10",
|
|
60
|
+
"@monotykamary/dsh-client-connection": "^0.1.0-rc.10",
|
|
61
|
+
"@monotykamary/dsh-client-ui-deliverables": "^0.1.0-rc.10",
|
|
62
|
+
"@monotykamary/dsh-client-ui-cordis": "^0.1.0-rc.10",
|
|
63
|
+
"@monotykamary/dsh-api-remotes": "^0.1.0-rc.10",
|
|
64
|
+
"@monotykamary/dsh-client-ui-layout": "^0.1.0-rc.10",
|
|
65
|
+
"@monotykamary/dsh-client-ui-directory-picker-native": "^0.1.0-rc.10",
|
|
66
|
+
"@monotykamary/dsh-client-ui-goal": "^0.1.0-rc.10",
|
|
67
|
+
"@monotykamary/dsh-client-ui-agent-preset": "^0.1.0-rc.10",
|
|
68
|
+
"@monotykamary/dsh-client-ui-model-selection": "^0.1.0-rc.10",
|
|
69
|
+
"@monotykamary/dsh-client-ui-brand-official": "^0.1.0-rc.10",
|
|
70
|
+
"@monotykamary/dsh-client-ui-settings-models": "^0.1.0-rc.10",
|
|
71
|
+
"@monotykamary/dsh-client-ui-message-feedback": "^0.1.0-rc.10",
|
|
72
|
+
"@monotykamary/dsh-client-ui-settings-plugins": "^0.1.0-rc.10",
|
|
73
|
+
"@monotykamary/dsh-client-ui-settings-plugin-inventory": "^0.1.0-rc.10",
|
|
74
|
+
"@monotykamary/dsh-client-ui-plan": "^0.1.0-rc.10",
|
|
75
|
+
"@monotykamary/dsh-client-ui-user-questions": "^0.1.0-rc.10",
|
|
76
|
+
"@monotykamary/dsh-client-ui-input-trigger": "^0.1.0-rc.10",
|
|
77
|
+
"@monotykamary/dsh-client-ui-skill": "^0.1.0-rc.10",
|
|
78
|
+
"@monotykamary/dsh-client-ui-permission-presets": "^0.1.0-rc.10",
|
|
79
|
+
"@monotykamary/dsh-client-ui-settings": "^0.1.0-rc.10",
|
|
80
|
+
"@monotykamary/dsh-client-ui-subagent": "^0.1.0-rc.10",
|
|
81
|
+
"@monotykamary/dsh-client-ui-sidebar": "^0.1.0-rc.10",
|
|
82
|
+
"@monotykamary/dsh-client-ui-theme": "^0.1.0-rc.10",
|
|
83
|
+
"@monotykamary/dsh-client-ui-settings-general": "^0.1.0-rc.10",
|
|
84
|
+
"@monotykamary/dsh-client-ui-jobs": "^0.1.0-rc.10",
|
|
85
|
+
"@monotykamary/dsh-client-ui-workflow-run": "^0.1.0-rc.10",
|
|
86
|
+
"@monotykamary/dsh-cmdline": "^0.1.0-rc.10",
|
|
87
|
+
"@monotykamary/dsh-client-ui-trajectory": "^0.1.0-rc.10",
|
|
88
|
+
"@monotykamary/dsh-web-frontend": "^0.1.0-rc.10",
|
|
89
|
+
"@monotykamary/dsh-client-ui-reference": "^0.1.0-rc.10",
|
|
90
|
+
"@monotykamary/dsh-client-ui-tool": "^0.1.0-rc.10",
|
|
91
|
+
"@monotykamary/dsh-code-runtime-worker-thread": "^0.1.0-rc.10",
|
|
92
|
+
"@monotykamary/dsh-host-frontend-static": "^0.1.0-rc.10",
|
|
93
|
+
"@monotykamary/dsh-cordis-host-runner": "^0.1.0-rc.10",
|
|
94
|
+
"@monotykamary/dsh-client-ui-workspace": "^0.1.0-rc.10",
|
|
95
|
+
"@monotykamary/dsh-host-directory-picker-browse": "^0.1.0-rc.10",
|
|
96
|
+
"@monotykamary/dsh-host-webserver": "^0.1.0-rc.10",
|
|
97
|
+
"@monotykamary/dsh-host-directory-picker-auto": "^0.1.0-rc.10",
|
|
98
|
+
"@monotykamary/dsh-host-directory-picker-native": "^0.1.0-rc.10",
|
|
99
|
+
"@monotykamary/dsh-cordis-client-runner": "^0.1.0-rc.10",
|
|
100
|
+
"@monotykamary/dsh-host-apiproxy": "^0.1.0-rc.10",
|
|
101
|
+
"@monotykamary/dsh-file-reference": "^0.1.0-rc.10",
|
|
102
|
+
"@monotykamary/dsh-launch-environment": "^0.1.0-rc.10",
|
|
103
|
+
"@monotykamary/dsh-file-reference-local": "^0.1.0-rc.10",
|
|
104
|
+
"@monotykamary/dsh-host-plugin-inventory": "^0.1.0-rc.10",
|
|
105
|
+
"@monotykamary/dsh-message-feedback": "^0.1.0-rc.10",
|
|
106
|
+
"@monotykamary/dsh-session-log-export": "^0.1.0-rc.10",
|
|
107
|
+
"@monotykamary/dsh-session-stats": "^0.1.0-rc.10",
|
|
108
|
+
"@monotykamary/schemastery": "^3.18.1",
|
|
109
|
+
"@monotykamary/dsh-storage": "^0.1.0-rc.10",
|
|
110
|
+
"@monotykamary/dsh-storage-domain": "^0.1.0-rc.10",
|
|
111
|
+
"@monotykamary/dsh-storage-json": "^0.1.0-rc.10",
|
|
112
|
+
"@monotykamary/dsh-client-ui-terminal": "^0.1.0-rc.10",
|
|
113
|
+
"@monotykamary/dsh-web-identity": "^0.1.0-rc.10",
|
|
114
|
+
"@monotykamary/dsh-client-ui-workbench": "^0.1.0-rc.10",
|
|
115
|
+
"@monotykamary/dsh-session-projection-cache": "^0.1.0-rc.10",
|
|
116
|
+
"@monotykamary/dsh-client-ui-session-title": "^0.1.0-rc.10",
|
|
117
|
+
"@monotykamary/dsh-client-ui-command-palette": "^0.1.0-rc.10",
|
|
118
|
+
"@monotykamary/dsh-workspace": "^0.1.0-rc.10",
|
|
119
|
+
"@monotykamary/dsh-terminal-web": "^0.1.0-rc.10",
|
|
120
|
+
"@monotykamary/dsh-client-ui-files": "^0.1.0-rc.10",
|
|
121
|
+
"@monotykamary/dsh-session-reference": "^0.1.0-rc.10",
|
|
122
|
+
"@monotykamary/dsh-subprocess": "^0.1.0-rc.10",
|
|
123
|
+
"@monotykamary/dsh-host-workspace-files": "^0.1.0-rc.10"
|
|
124
|
+
},
|
|
125
|
+
"peerDependencies": {
|
|
126
|
+
"@monotykamary/cordis-plugin-loader": "^1.0.2",
|
|
127
|
+
"@monotykamary/dsh-system-prompt": "^0.1.0-rc.10",
|
|
128
|
+
"@monotykamary/dsh-shell-env": "^0.1.0-rc.10",
|
|
129
|
+
"@monotykamary/dsh-invariants": "^0.1.0-rc.10",
|
|
130
|
+
"@monotykamary/cordis": "^4.0.1"
|
|
131
|
+
},
|
|
132
|
+
"devDependencies": {
|
|
133
|
+
"@monotykamary/cordis": "^4.0.1",
|
|
134
|
+
"@monotykamary/dsh-invariants": "^0.1.0-rc.10",
|
|
135
|
+
"@monotykamary/cordis-plugin-loader": "^1.0.2",
|
|
136
|
+
"@monotykamary/dsh-shell-env": "^0.1.0-rc.10",
|
|
137
|
+
"@monotykamary/dsh-system-prompt": "^0.1.0-rc.10"
|
|
138
|
+
}
|
|
139
|
+
}
|