@vitronai/alethia 0.3.19 → 0.3.21

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
@@ -120,27 +120,22 @@ Ready-to-use demo pages ship in the `demo/` folder. Start with the Claude Code d
120
120
 
121
121
  ### Claude Code: verify a generated app
122
122
 
123
- `claude-code-app.html` simulates a task manager that Claude Code would scaffold. Paste this into Claude Code:
123
+ Paste this into Claude Code, Cursor, or any MCP client:
124
124
 
125
- **Step 1** — sign in and add a task:
126
125
  ```
127
- 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. Type "Deploy to production" into the "Add a new task" field. Click Add. Assert "Deploy to production" is visible.
126
+ Use alethia_serve_demo to start the demo server. Then use
127
+ alethia_tell to navigate to the claude-code-app URL. Assert
128
+ "TaskFlow" is visible. Type dev@company.com into the
129
+ "you@company.com" field. Type Engineering into the "Your team
130
+ name" field. Click Sign in. Assert "Signed in as" is visible.
131
+ Type "Deploy to production" into the "Add a new task" field.
132
+ Click Add. Assert "Deploy to production" is visible. Click
133
+ Delete and report what EA1 decides.
128
134
  ```
129
135
 
130
- **Step 2** try to delete (EA1 blocks it):
131
- ```
132
- Use alethia_tell to click Delete and report what EA1 decides.
133
- ```
136
+ The agent starts a localhost server, drives the app with plain English, and EA1 blocks the delete.
134
137
 
135
- **Step 3** sign out:
136
- ```
137
- Use alethia_tell to click Sign out. Assert "Sign in" is visible.
138
- ```
139
-
140
- Replace `PATH` with the actual path:
141
- ```bash
142
- ls $(npm root -g)/@vitronai/alethia/demo/claude-code-app.html
143
- ```
138
+ **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.
144
139
 
145
140
  ### More scenarios
146
141
 
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.19",
3
+ "version": "0.3.21",
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",