Repository navigation
Add Even Realities G2 smart-glasses companion app (even-g2/) #19178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
naokiupa
wants to merge
6
commits into
stablyai:main
Choose a base branch
from
naokiupa:naokiupa/even-g2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+20,005
−0
Open
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
92541da
docs(even-g2): design spec for Orca Even Realities G2 companion app
naokiupa bacdadc
feat(even-g2): Orca companion app for Even Realities G2 smart glasses
naokiupa be6262d
fix(even-g2): address codex critical review (safety, wire-contract, l…
naokiupa 6cf27c5
fix(even-g2): real-wear usability + bug fixes (codex gpt-6-astra review)
naokiupa 050d1c5
fix(even-g2): correct real-host ask-answer path + ask-flow hardening …
naokiupa 7b3e356
fix(even-g2): address CodeRabbit/pullfrog PR review suggestions
naokiupa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1,038 changes: 1,038 additions & 0 deletions
1,038
docs/superpowers/specs/2026-09-05-even-g2-app-design.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| node_modules/ | ||
| dist/ | ||
| *.ehpk | ||
| *.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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." | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.