@vitronai/alethia 0.3.20 → 0.3.22

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/README.md CHANGED
@@ -48,11 +48,19 @@ alethia-mcp --health-check
48
48
  ```json
49
49
  {
50
50
  "mcpServers": {
51
- "alethia": { "command": "alethia-mcp" }
51
+ "alethia": {
52
+ "command": "alethia-mcp",
53
+ "env": {
54
+ "ALETHIA_VISIBLE": "1",
55
+ "ALETHIA_HIGHLIGHTS": "1"
56
+ }
57
+ }
52
58
  }
53
59
  }
54
60
  ```
55
61
 
62
+ The Alethia browser window opens alongside your agent with live step highlights. Elements flash green (click/assert), blue (type), and red (EA1 block). Remove the `env` block for headless mode.
63
+
56
64
  ### Cursor
57
65
 
58
66
  Cursor → Settings → MCP → Add server:
@@ -120,20 +128,22 @@ Ready-to-use demo pages ship in the `demo/` folder. Start with the Claude Code d
120
128
 
121
129
  ### Claude Code: verify a generated app
122
130
 
123
- Paste this into Claude Code:
131
+ Paste this into Claude Code, Cursor, or any MCP client:
124
132
 
125
133
  ```
126
- Use alethia_serve_demo to start the demo server.
127
- Then use alethia_tell to navigate to the claude-code-app page.
128
- Assert "TaskFlow" is visible. Type dev@company.com into the
134
+ Use alethia_serve_demo to start the demo server. Then use
135
+ alethia_tell to navigate to the claude-code-app URL. Assert
136
+ "TaskFlow" is visible. Type dev@company.com into the
129
137
  "you@company.com" field. Type Engineering into the "Your team
130
138
  name" field. Click Sign in. Assert "Signed in as" is visible.
131
139
  Type "Deploy to production" into the "Add a new task" field.
132
- Click Add. Assert "Deploy to production" is visible.
133
- Click Delete and report what EA1 decides.
140
+ Click Add. Assert "Deploy to production" is visible. Click
141
+ Delete and report what EA1 decides.
134
142
  ```
135
143
 
136
- The agent serves the demo on localhost, drives it with plain English, and EA1 blocks the delete. Open the localhost URL in Claude Code's preview panel to watch it live.
144
+ The agent starts a localhost server, drives the app with plain English, and EA1 blocks the delete.
145
+
146
+ **Watch it live:** Add `"env": { "ALETHIA_VISIBLE": "1" }` to your MCP config to open the Alethia browser window and see clicks, typing, and EA1 blocks happen in real time.
137
147
 
138
148
  ### More scenarios
139
149
 
package/demo/README.md CHANGED
@@ -6,23 +6,15 @@ Ready-to-use scenarios that show Alethia driving real apps. Start with the Claud
6
6
 
7
7
  The core use case. Claude Code generates an app, Alethia verifies it works.
8
8
 
9
- `claude-code-app.html` simulates a task manager that Claude Code would scaffold. The prompt below runs a full verification flow: sign in, check the dashboard, add a task, complete a task, try to delete one (EA1 blocks it), and sign out.
9
+ `claude-code-app.html` simulates a task manager that Claude Code would scaffold. Paste this into Claude Code:
10
10
 
11
11
  ```
12
- Step 1 sign in and add a task:
13
-
14
- Use alethia_tell to navigate to file:///PATH/demo/claude-code-app.html. Assert "TaskFlow" is visible and "Generated by Claude Code" is visible. Type dev@company.com into the "you@company.com" field. Type Engineering into the "Your team name" field. Click Sign in. Assert "Signed in as" is visible. Assert "Active" is visible and "Completed" is visible. Type "Deploy to production" into the "Add a new task" field. Click Add. Assert "Deploy to production" is visible.
15
-
16
- Step 2 — try to delete (EA1 blocks it):
17
-
18
- Use alethia_tell to click Delete and report what EA1 decides.
19
-
20
- Step 3 — sign out:
21
-
22
- Use alethia_tell to click Sign out. Assert "Sign in" is visible.
12
+ Use alethia_serve_demo to start the demo server. Then use alethia_tell to navigate to the claude-code-app URL. Assert "TaskFlow" is visible. Type dev@company.com into the "you@company.com" field. Type Engineering into the "Your team name" field. Click Sign in. Assert "Signed in as" is visible. Type "Deploy to production" into the "Add a new task" field. Click Add. Assert "Deploy to production" is visible. Click Delete and report what EA1 decides.
23
13
  ```
24
14
 
25
- This is the loop: agent builds, Alethia verifies, EA1 guards. Every step returns structured results, a page snapshot (~200 tokens), and a signed audit trail.
15
+ The agent starts a localhost server, drives the app with plain English, and EA1 blocks the delete.
16
+
17
+ **Watch it live:** Add `"env": { "ALETHIA_VISIBLE": "1" }` to your MCP config to open the Alethia browser window and see clicks, typing, and EA1 blocks happen in real time.
26
18
 
27
19
  ## Domain scenarios
28
20
 
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
- <title>TaskFlow AI-Generated Task Manager</title>
4
+ <title>TaskFlow - AI-Generated Task Manager</title>
5
5
  <style>
6
6
  * { box-sizing: border-box; margin: 0; padding: 0; }
7
7
  body { font-family: -apple-system, 'Segoe UI', sans-serif; background: #0a0a0a; color: #e4e4e7; min-height: 100vh; }
package/dist/index.js CHANGED
@@ -123,7 +123,7 @@ const getDemoPages = () => {
123
123
  // ---------------------------------------------------------------------------
124
124
  // Auto-install: download, verify, extract, and spawn the headless runtime
125
125
  // ---------------------------------------------------------------------------
126
- const RUNTIME_VERSION = '0.1.0-alpha.8';
126
+ const RUNTIME_VERSION = '0.1.0-alpha.9';
127
127
  const RUNTIME_DIR = join(homedir(), '.alethia', 'runtime');
128
128
  const RUNTIME_MARKER = join(RUNTIME_DIR, '.installed');
129
129
  const GITHUB_RELEASE_BASE = `https://github.com/vitron-ai/alethia/releases/download/v${RUNTIME_VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitronai/alethia",
3
- "version": "0.3.20",
3
+ "version": "0.3.22",
4
4
  "description": "MIT-licensed MCP bridge to the Alethia runtime — the patent-pending zero-IPC E2E test runtime built for AI agents. 45x faster than Playwright. Local-first, zero telemetry. WCAG + NIST 800-53 compliance audits built in. Auto-installs on first use.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",