@co0ontty/wand 0.2.1 → 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.
@@ -12,7 +12,7 @@ export function renderApp(configPath) {
12
12
  <html lang="zh-CN">
13
13
  <head>
14
14
  <meta charset="utf-8" />
15
- <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
15
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no" />
16
16
  <title>Wand Console</title>
17
17
  <meta name="description" content="Local CLI Console for Vibe Coding - Manage terminal sessions from your browser" />
18
18
  <meta name="theme-color" content="#f6f1e8" media="(prefers-color-scheme: light)" />
@@ -20,12 +20,15 @@ export function renderApp(configPath) {
20
20
  <meta name="apple-mobile-web-app-capable" content="yes" />
21
21
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
22
22
  <meta name="apple-mobile-web-app-title" content="Wand" />
23
- <link rel="apple-touch-icon" href="/icon-192.png" />
23
+ <meta name="mobile-web-app-capable" content="yes" />
24
+ <meta name="application-name" content="Wand" />
25
+ <meta name="format-detection" content="telephone=no" />
26
+ <meta name="msapplication-TileColor" content="#c5653d" />
27
+ <meta name="msapplication-tap-highlight" content="no" />
28
+ <link rel="icon" href="/icon.svg" type="image/svg+xml" />
29
+ <link rel="apple-touch-icon" href="/icon.svg" />
24
30
  <link rel="manifest" href="/manifest.json" />
25
31
  <link rel="stylesheet" href="/vendor/xterm/css/xterm.css" />
26
- <link rel="preconnect" href="https://fonts.googleapis.com">
27
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
28
- <link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
29
32
  <style>
30
33
  ${cssStyles}
31
34
  </style>
@@ -1,7 +1,14 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- import { escapeHtml } from "./utils.js";
4
+ function escapeHtml(value) {
5
+ return String(value)
6
+ .replace(/&/g, "&amp;")
7
+ .replace(/</g, "&lt;")
8
+ .replace(/>/g, "&gt;")
9
+ .replace(/"/g, "&quot;")
10
+ .replace(/'/g, "&#39;");
11
+ }
5
12
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
13
  // Cache the script content
7
14
  let _scriptCache = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@co0ontty/wand",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "A web terminal for local CLI tools like Claude.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,13 +19,7 @@
19
19
  "build": "tsc -p tsconfig.json && npm run build:copy-content",
20
20
  "build:copy-content": "cp -r src/web-ui/content dist/web-ui/",
21
21
  "dev": "tsx src/cli.ts web",
22
- "check": "tsc --noEmit -p tsconfig.json",
23
- "pre-release-test": "node scripts/pre-release-test.js",
24
- "test": "npm run pre-release-test",
25
- "test:e2e": "playwright test",
26
- "test:e2e:ui": "playwright test --ui",
27
- "test:e2e:debug": "playwright test --debug",
28
- "test:e2e:report": "playwright show-report"
22
+ "check": "tsc --noEmit -p tsconfig.json"
29
23
  },
30
24
  "keywords": [
31
25
  "cli",
@@ -46,7 +40,6 @@
46
40
  "xterm": "^5.3.0"
47
41
  },
48
42
  "devDependencies": {
49
- "@playwright/test": "^1.58.2",
50
43
  "@types/express": "^4.17.21",
51
44
  "@types/node": "^22.13.14",
52
45
  "@types/ws": "^8.18.1",
@@ -1,4 +0,0 @@
1
- /**
2
- * Escape HTML special characters to prevent XSS
3
- */
4
- export declare function escapeHtml(value: string): string;
@@ -1,12 +0,0 @@
1
- // Shared utilities for web-ui module
2
- /**
3
- * Escape HTML special characters to prevent XSS
4
- */
5
- export function escapeHtml(value) {
6
- return String(value)
7
- .replace(/&/g, "&amp;")
8
- .replace(/</g, "&lt;")
9
- .replace(/>/g, "&gt;")
10
- .replace(/"/g, "&quot;")
11
- .replace(/'/g, "&#39;");
12
- }
package/dist/web-ui.d.ts DELETED
@@ -1 +0,0 @@
1
- export { renderApp } from "./web-ui/index.js";
package/dist/web-ui.js DELETED
@@ -1,2 +0,0 @@
1
- // Web UI entry point - re-exports from modularized web-ui directory
2
- export { renderApp } from "./web-ui/index.js";