@co0ontty/wand 1.31.3 → 1.32.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/dist/auth.d.ts +20 -0
- package/dist/auth.js +31 -0
- package/dist/cert.d.ts +17 -2
- package/dist/cert.js +124 -68
- package/dist/config.js +12 -0
- package/dist/server.js +60 -51
- package/dist/tui/commands.js +51 -5
- package/dist/types.d.ts +9 -0
- package/dist/web-ui/content/scripts.js +348 -343
- package/dist/web-ui/content/styles.css +339 -401
- package/dist/ws-broadcast.d.ts +2 -2
- package/dist/ws-broadcast.js +5 -10
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -77,6 +77,15 @@ export interface WandConfig {
|
|
|
77
77
|
port: number;
|
|
78
78
|
/** Enable HTTPS with self-signed certificate (default: false) */
|
|
79
79
|
https?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* 可选:使用用户自备的 TLS 证书/私钥(PEM 格式)。配了 `certPath` + `keyPath`
|
|
82
|
+
* 且文件可读时,将跳过自签证书生成。用 mkcert/Let's Encrypt 等签的证书时,
|
|
83
|
+
* 浏览器视为受信任,PWA / Service Worker 才能正常注册。
|
|
84
|
+
*/
|
|
85
|
+
tls?: {
|
|
86
|
+
certPath?: string;
|
|
87
|
+
keyPath?: string;
|
|
88
|
+
};
|
|
80
89
|
password: string;
|
|
81
90
|
defaultMode: ExecutionMode;
|
|
82
91
|
shell: string;
|