Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,038 changes: 1,038 additions & 0 deletions docs/superpowers/specs/2026-09-05-even-g2-app-design.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions even-g2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
*.ehpk
*.log
19 changes: 19 additions & 0 deletions even-g2/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"package_id": "com.stably.orcag2",
"edition": "202601",
"name": "Orca",
"version": "0.1.0",
"entrypoint": "index.html",
"supported_languages": ["en"],
"min_sdk_version": "0.0.14",
"min_app_version": "2.2.7",
"permissions": [
{
"name": "network",
"desc": "Connects to your paired Orca desktop.",
"whitelist": [
"TODO(R4): Orca desktop endpoints are arbitrary ws://<lan-ip>:<port> / Tailscale hosts, not fixed origins. Whether the Even App enforces this whitelist against WebSocket dials (and whether wildcards are supported) is unverified — see design spec docs/superpowers/specs/2026-09-05-even-g2-app-design.md §12 risk R4. v1 ships via QR-sideloaded dev URL; replace this placeholder and confirm enforcement behavior before any hub.evenrealities.com portal submission."
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
]
}
]
}
31 changes: 31 additions & 0 deletions even-g2/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# assets/

## `icon-24.png`

Portal submission requires a **24×24, 1-bit monochrome** app icon (per design spec
`docs/superpowers/specs/2026-09-05-even-g2-app-design.md` §11). This file is a real
24×24 PNG, bit depth 1, color type 0 (grayscale) — verified with:

```
file assets/icon-24.png
# PNG image data, 24 x 24, 1-bit grayscale, non-interlaced
```

It renders a simple ring ("O" / orca mark): background pixels are 0 (black), the ring is
1 (white).

Regenerate with the one-shot, dependency-free encoder this was produced from (hand-rolled
PNG chunks + CRC32, `zlib.deflateSync` for the IDAT stream — no image library needed):

```
node make-icon-24.mjs assets/icon-24.png
```

(The generator script itself is not checked into this repo; it is a throwaway ~90-line
Node script using only `node:zlib` and `node:fs`. Recreate it if the icon needs to change:
build a 24×24 boolean grid, pack each row into `ceil(24/8)` MSB-first bytes prefixed by a
`0` filter byte, `deflateSync` the concatenated rows, and wrap in PNG signature + IHDR
(width=24, height=24, bitDepth=1, colorType=0) + IDAT + IEND chunks with standard CRC32.)

Not referenced by `app.json` — the manifest has no icon field; the portal submission flow
picks this asset up separately.
Binary file added even-g2/assets/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions even-g2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Orca</title>
</head>
<body>
<!--
Phone-side shell (Even App WebView / plain browser). The G2 HUD itself renders to
firmware containers via GlassesBridge, not this DOM — this page is only the
pairing/settings surface a human touches on their phone (spec S6).
-->
<div id="app">
<!-- Unit 7 mounts the pairing/settings page here via createPhoneSettingsPage(...).mount(el) -->
<div id="phone-settings-root"></div>
</div>
<!-- Unit 8 mounts app shell: bridge detect -> connect -> first render -> phone page wiring. -->
<script type="module" src="/src/main.ts"></script>
</body>
</html>
27 changes: 27 additions & 0 deletions even-g2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "orca-even-g2",
"version": "0.0.1",
"private": true,
"type": "module",
"scripts": {
"dev": "vite --host 0.0.0.0 --port 5173",
"sim": "vite --host 0.0.0.0 --port 5173 --open /sim.html",
"qr": "evenhub qr --http --port 5173",
"build": "vite build",
"pack": "vite build && evenhub pack app.json dist -o orca-g2.ehpk",
"test": "vitest run",
"tc": "tsc --noEmit"
},
"dependencies": {
"@evenrealities/even_hub_sdk": "0.0.14",
"tweetnacl": "^1.0.3",
"zod": "^4.5.4"
},
"devDependencies": {
"@evenrealities/evenhub-cli": "latest",
"happy-dom": "^15.11.7",
"typescript": "^5.9.2",
"vite": "^7.1.5",
"vitest": "^3.2.4"
}
}
Loading
Loading