@vitronai/alethia 0.3.14 → 0.3.16

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
@@ -116,21 +116,44 @@ Destructive actions (delete, purchase, transfer) are **blocked by default** unde
116
116
 
117
117
  ## Demos
118
118
 
119
- Ready-to-use demo pages ship in the `demo/` folder:
119
+ Ready-to-use demo pages ship in the `demo/` folder. Start with the Claude Code demo:
120
120
 
121
- | Demo | Scenario |
122
- |---|---|
123
- | `incident-response.html` | Defense / SOC triage active cyber incident |
124
- | `threat-intel.html` | Intelligence / CTI — APT tracking, IOC blocking |
125
- | `crypto-readiness.html` | Cybersecurity / PQC post-quantum migration |
126
- | `agent-oversight.html` | AI Safety — autonomous agent monitoring, kill switch |
127
- | `admin-panel.html` | Defense / Classified TS/SCI admin panel |
128
- | `financial-dashboard.html` | Finance / Trading — risk monitor, compliance checks |
121
+ ### Claude Code: verify a generated app
122
+
123
+ `claude-code-app.html` simulates a task manager that Claude Code would scaffold. Paste this into Claude Code:
124
+
125
+ **Step 1** sign in and add a task:
126
+ ```
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.
128
+ ```
129
+
130
+ **Step 2** — try to delete (EA1 blocks it):
131
+ ```
132
+ Use alethia_tell to click Delete and report what EA1 decides.
133
+ ```
134
+
135
+ **Step 3** — sign out:
136
+ ```
137
+ Use alethia_tell to click Sign out. Assert "Sign in" is visible.
138
+ ```
129
139
 
140
+ Replace `PATH` with the actual path:
130
141
  ```bash
131
- ls $(npm root -g)/@vitronai/alethia/demo/
142
+ ls $(npm root -g)/@vitronai/alethia/demo/claude-code-app.html
132
143
  ```
133
144
 
145
+ ### More scenarios
146
+
147
+ | Demo | Scenario |
148
+ |---|---|
149
+ | `claude-code-app.html` | AI coding agents: sign in, dashboard, CRUD, EA1 blocks delete |
150
+ | `incident-response.html` | Defense / SOC: triage active cyber incident |
151
+ | `threat-intel.html` | Intelligence / CTI: APT tracking, IOC blocking |
152
+ | `crypto-readiness.html` | Cybersecurity / PQC: post-quantum migration |
153
+ | `agent-oversight.html` | AI Safety: autonomous agent monitoring, kill switch |
154
+ | `admin-panel.html` | Defense / Classified: TS/SCI admin panel |
155
+ | `financial-dashboard.html` | Finance / Trading: risk monitor, compliance checks |
156
+
134
157
  Full prompts for each demo: [`demo/README.md`](./demo/README.md)
135
158
 
136
159
  ---
package/demo/README.md CHANGED
@@ -9,21 +9,17 @@ The core use case. Claude Code generates an app, Alethia verifies it works.
9
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.
10
10
 
11
11
  ```
12
- Use alethia_tell to navigate to file:///PATH/demo/claude-code-app.html.
13
- Assert "TaskFlow" is visible and "Generated by Claude Code" is visible.
14
- Type dev@company.com into the email field.
15
- Type testing123 into the password field.
16
- Click Sign in.
17
- Assert "Signed in as" is visible.
18
- Assert "Active" is visible and "Completed" is visible.
19
- Type "Deploy to production" into the Add a new task field.
20
- Click Add.
21
- Assert "Deploy to production" is visible.
22
- Click the first task checkbox.
23
- Assert "Completed" shows 1.
24
- Try to click Delete on the first task and report what EA1 decides.
25
- Click Sign out.
26
- Assert "Sign in" is visible.
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.
27
23
  ```
28
24
 
29
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.
@@ -83,8 +83,8 @@
83
83
  <input type="email" id="email" placeholder="you@company.com" />
84
84
  </div>
85
85
  <div class="field">
86
- <label for="password">Password</label>
87
- <input type="password" id="password" placeholder="Enter password" />
86
+ <label for="team">Team</label>
87
+ <input type="text" id="team" placeholder="Your team name" />
88
88
  </div>
89
89
  <button class="btn btn-primary" id="signin-btn" onclick="handleSignIn()">Sign in</button>
90
90
  <p class="error-msg" id="error-msg">Invalid email or password.</p>
@@ -145,9 +145,9 @@
145
145
  <script>
146
146
  function handleSignIn() {
147
147
  var email = document.getElementById('email').value.trim();
148
- var pw = document.getElementById('password').value;
148
+ var team = document.getElementById('team').value.trim();
149
149
  var err = document.getElementById('error-msg');
150
- if (!email || !pw) { err.style.display = 'block'; err.textContent = 'Please fill in all fields.'; return; }
150
+ if (!email || !team) { err.style.display = 'block'; err.textContent = 'Please fill in all fields.'; return; }
151
151
  if (!email.includes('@')) { err.style.display = 'block'; err.textContent = 'Invalid email address.'; return; }
152
152
  err.style.display = 'none';
153
153
  document.getElementById('auth').classList.add('hidden');
@@ -160,7 +160,7 @@
160
160
  document.getElementById('dashboard').classList.remove('active');
161
161
  document.getElementById('auth').classList.remove('hidden');
162
162
  document.getElementById('email').value = '';
163
- document.getElementById('password').value = '';
163
+ document.getElementById('team').value = '';
164
164
  }
165
165
 
166
166
  function addTask() {
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ const debug = (...args) => {
62
62
  // ---------------------------------------------------------------------------
63
63
  // Auto-install: download, verify, extract, and spawn the headless runtime
64
64
  // ---------------------------------------------------------------------------
65
- const RUNTIME_VERSION = '0.1.0-alpha.7';
65
+ const RUNTIME_VERSION = '0.1.0-alpha.8';
66
66
  const RUNTIME_DIR = join(homedir(), '.alethia', 'runtime');
67
67
  const RUNTIME_MARKER = join(RUNTIME_DIR, '.installed');
68
68
  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.14",
3
+ "version": "0.3.16",
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",