@telepath-computer/television 0.1.35 → 0.1.36

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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Television</title>
7
- <script type="module" crossorigin src="./assets/index-DCRTjgkN.js"></script>
7
+ <script type="module" crossorigin src="./assets/index-BJvMtRbp.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="./assets/index-CfQyq4ej.css">
9
9
  </head>
10
10
  <body></body>
package/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "@telepath-computer/television",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "type": "module",
5
- "workspaces": [
6
- "packages/*",
7
- "storybook"
8
- ],
9
- "main": "dist/electron.cjs",
5
+ "main": "dist/cli.cjs",
10
6
  "bin": {
11
7
  "tv": "dist/cli.cjs"
12
8
  },
@@ -14,77 +10,21 @@
14
10
  "dist/**",
15
11
  "skill/**"
16
12
  ],
13
+ "exports": {
14
+ ".": "./src/index.ts"
15
+ },
17
16
  "scripts": {
18
- "start:server": "scripts/dev-server.sh",
19
- "start:electron": "scripts/dev-electron.sh",
20
- "layout": "npm --workspace @telepath-computer/television-layout run dev",
21
- "storybook": "npm --workspace @telepath-computer/storybook run dev",
22
- "build:layout-demo": "npm --workspace @telepath-computer/television-layout run build",
23
- "build": "npm run build:renderer && npm run build:views && npm run build:cli && npm run build:electron",
24
- "build:views": "node scripts/build-views.mjs",
25
- "prepack": "npm run build",
26
- "lint": "eslint . --ext .ts --max-warnings=0",
27
- "lint:fix": "npm run lint -- --fix",
28
- "type-check": "tsc --noEmit",
29
- "test:setup": "playwright install chromium",
30
- "test": "vitest run && npm run test --workspaces --if-present",
31
- "test:e2e": "vitest run test/e2e-node/ && playwright test --config=playwright.config.ts && npm run test:e2e --workspaces --if-present",
32
- "test:agent": "vitest run --config test/e2e-agent/vitest.config.ts",
33
- "test:all": "npm test && npm run test:e2e && npm run test:agent",
34
- "verify": "npm run lint && npm run type-check && npm run test:all",
35
- "build:renderer": "vite build --config packages/web/vite.config.ts",
36
- "build:electron": "esbuild packages/desktop/src/index.ts --bundle --platform=node --target=node18 --format=cjs --outfile=dist/electron.cjs --external:electron --external:@rupertsworld/electron-ipc",
37
- "build:cli": "node scripts/build-cli.mjs"
17
+ "build": "node build.mjs",
18
+ "build:views": "node build-views.mjs",
19
+ "type-check": "tsc -p tsconfig.json --noEmit"
38
20
  },
39
- "dependencies": {
40
- "@agentclientprotocol/sdk": "^0.18.1",
41
- "@milkdown/crepe": "^7.20.0",
42
- "@modelcontextprotocol/sdk": "^1.26.0",
21
+ "dependencies": {},
22
+ "devDependencies": {
43
23
  "@rupertsworld/daemon": "^0.1.1",
44
- "@rupertsworld/dependencies": "^0.2.0",
45
- "@rupertsworld/electron-ipc": "^0.2.1",
46
- "@rupertsworld/event-target": "^0.1.0",
47
- "@rupertsworld/observable": "^0.1.2",
48
- "@telepath-computer/disposable": "*",
49
24
  "@telepath-computer/television-artifact": "*",
50
- "@telepath-computer/television-cli": "*",
51
- "@telepath-computer/television-desktop": "*",
52
- "@telepath-computer/television-layout": "*",
53
25
  "@telepath-computer/television-server": "*",
54
26
  "@telepath-computer/television-shared": "*",
55
- "@telepath-computer/television-view-text": "*",
56
27
  "@telepath-computer/television-web": "*",
57
- "@telepath-computer/ui": "*",
58
- "commander": "^14.0.3",
59
- "disposablestack": "^1.1.6",
60
- "dompurify": "^3.3.3",
61
- "express": "^4.21.0",
62
- "lit-html": "^3.3.2",
63
- "marked": "^17.0.4",
64
- "ulid": "^3.0.2",
65
- "watcher": "^2.3.1",
66
- "ws": "^8.19.0",
67
- "zod": "^4.3.6"
68
- },
69
- "devDependencies": {
70
- "@eslint/js": "^9.39.4",
71
- "@playwright/test": "^1.58.2",
72
- "@types/dompurify": "^3.0.5",
73
- "@types/express": "^5.0.0",
74
- "@types/node": "^22.0.0",
75
- "@types/supertest": "^6.0.0",
76
- "@types/ws": "^8.18.1",
77
- "@vitest/eslint-plugin": "^1.6.12",
78
- "electron": "^35.0.0",
79
- "esbuild": "^0.24.0",
80
- "eslint": "^9.39.4",
81
- "globals": "^17.4.0",
82
- "jsdom": "^28.1.0",
83
- "supertest": "^7.0.0",
84
- "tsx": "^4.19.0",
85
- "typescript": "^5.6.0",
86
- "typescript-eslint": "^8.57.0",
87
- "vite": "^5.4.21",
88
- "vitest": "^2.0.0"
28
+ "commander": "^14.0.3"
89
29
  }
90
30
  }
package/README.md DELETED
@@ -1,75 +0,0 @@
1
- # Television
2
-
3
- Television is a virtual display for agents. You can run it as a local desktop app or as a standalone server, then create, update, and remove persistent artifacts in screens.
4
-
5
- See [docs/architecture.md](docs/architecture.md) for the system overview and [docs/api.md](docs/api.md) for the network API.
6
-
7
- ## Environment
8
-
9
- - **Runtime.** Electron 35+ (Chromium renderer, Node.js main process) for desktop, or Node.js 18+ (22 recommended) for the standalone server.
10
- - **Package manager.** npm screens under `packages/*` (`cli`, `desktop`, `layout`, `server`, `shared`, `web`).
11
- - **Build.** Vite builds the renderer to `dist/browser/` (with `base: "./"` so Electron can load it over `file://`). esbuild bundles the Electron main process to `dist/electron.cjs` and the `tv` CLI to `dist/cli.cjs`.
12
- - **Tests.** Vitest for unit/integration and server tests, Playwright for browser e2e.
13
-
14
- ## Getting Started
15
-
16
- Requirements:
17
- - Node.js 18+ (Node 22 recommended)
18
- - npm
19
-
20
- ### Desktop app (Electron)
21
-
22
- ```bash
23
- npm install
24
- npm run start:electron
25
- ```
26
-
27
- Starts Vite HMR for the renderer and launches Electron. Changes to renderer code and CSS update live. Changes to Electron main process or server code require restarting.
28
-
29
- ### Standalone server (browser)
30
-
31
- ```bash
32
- npm install
33
- npm run start:server
34
- ```
35
-
36
- Starts Vite HMR for the renderer, the Television server, and an artifact runtime watcher. Open the printed URL in a browser.
37
-
38
- ### CLI
39
-
40
- Build and link the CLI, then use it against a running server:
41
-
42
- ```bash
43
- npm run build
44
- npm link
45
- tv serve
46
- tv status
47
- tv list-screens
48
- ```
49
-
50
- After pulling changes, rerun `npm run build && npm link` to refresh the installed `tv` binary — it bundles skill content and CLI logic at build time, so the installed binary can drift from the source tree between releases.
51
-
52
- Artifacts are created and edited by agents using the `tv create-internal-artifact`, `tv edit-internal-artifact`, and `tv commit-pending-artifact` lifecycle. Run `tv help` for the full agent workflow; see [docs/cli.md](docs/cli.md) for the CLI reference.
53
-
54
- ### System service
55
-
56
- ```bash
57
- tv serve --persist
58
- tv status
59
- tv stop
60
- ```
61
-
62
- ### Verification
63
-
64
- Use these commands depending on how much coverage you want:
65
-
66
- ```bash
67
- npm run test:setup # one-time Playwright browser install
68
- npm test # Vitest unit/integration tests (root + all screens)
69
- npm run test:e2e # all e2e: node (vitest) + browser (Playwright) + screen e2e
70
- npm run test:agent # ACP bridge agent e2e (requires openclaw on PATH)
71
- npm run test:all # everything: test + test:e2e + agent
72
- npm run verify # lint + type-check + test:all
73
- ```
74
-
75
- CI currently runs `npm run lint`, `npm run type-check`, and `npm test`. The other suites are available for local verification.