Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
75 changes: 38 additions & 37 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,44 @@ Codex's databases, rollout files, or configuration.

## Source layout

| Path | Responsibility |
| ------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| `src/plugin.ts` | Action registration, profile activation, serialized refresh lifecycle, cleanup |
| `src/types.ts` | Shared snapshot and record types |
| `src/actions/` | Stream Deck key and dial event handlers, one file per action |
| `src/lib/codex-store.ts` | Read model for tasks, live composer state, context, model, reasoning, and usage |
| `src/lib/codex-ui-control.ts` | Typed bridge to the native Accessibility helper |
| `src/lib/automation.ts` | Command dispatch, workflow launch, and the push-to-talk lifecycle |
| `src/lib/input-release-guard.ts` | Idempotent held-input release ledger used by push-to-talk |
| `src/lib/app-server-rpc.ts` | Bounded JSON-line transport to `codex app-server` |
| `src/lib/app-server.ts` | Allowed app-server operations and Codex binary discovery |
| `src/lib/bounded-process.ts` | Output caps and TERM/KILL/reap lifecycle shared by child processes |
| `src/lib/desktop-active.ts` | Focused-thread witness from the Codex desktop logs |
| `src/lib/rollout-status.ts` | Rollout JSONL reduction into idle/running/unread/needs-input/error |
| `src/lib/context.ts`, `usage.ts` | Token-context and account-usage parsing and availability |
| `src/lib/model.ts`, `reasoning.ts` | Model catalog filtering and dial preview/apply state |
| `src/lib/availability.ts` | `Availability<T>` and the reason-code vocabulary every surface shares |
| `src/lib/health.ts` | Health snapshot and transition logging |
| `src/lib/commands.ts`, `workflows.ts`, `keycap-workflows.ts` | Static catalogs of commands, dial commands, and keycap workflows |
| `src/lib/chat-label.ts` | Compact session labels for keys and the touch strip |
| `src/lib/visuals.ts` | SVG key renderers, dial feedback shapes, and the status palette |
| `src/lib/render-cache.ts` | Deduplicated, serialized key and dial transport |
| `src/lib/refresh-coordinator.ts` | Serial tick runner that collapses overlapping refreshes |
| `src/lib/bundled-profiles.ts` | Device-type to profile mapping and activation checks |
| `src/lib/build-info.ts` | Build identity injected by the bundler |
| `src/lib/lucide-paths.ts`, `wordmark-paths.ts` | Generated icon and wordmark path data |
| `native/Accessibility.swift` | Accessibility traversal and element helpers |
| `native/Targeting.swift` | Exact frontmost task/window witnesses and incremental continuity checks |
| `native/ComposerControls.swift` | Picker, composer, mode, permission, PTT, and workflow operations |
| `native/Models.swift` | Native request, response, snapshot, and error types |
| `native/Fixtures.swift` | Compiled native fixture entry points used by acceptance tests |
| `native/main.swift` | Native command allow-list and CLI dispatch |
| `profile-src/` | `profile-contract.json` (the 50-key source of truth) and generated device profiles |
| `com.todd.streamdeckcodex.sdPlugin/` | Manifest, action artwork, property inspector, and the `ptt-guard.mjs` watchdog |
| `scripts/` | Generated assets/profiles, packaging, release validation, and connected QA |
| `marketplace/`, `assets/` | Maker Console media and the fonts and photos the generators use |
| `test/` | Unit, compiled-native, event-path, profile, visual, and safety regression tests |
| Path | Responsibility |
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- |
| `src/plugin.ts` | Action registration, profile activation, serialized refresh lifecycle, cleanup |
| `src/types.ts` | Shared snapshot and record types |
| `src/actions/` | Stream Deck key and dial event handlers, one file per action |
| `src/lib/codex-store.ts` | Read model for tasks, live composer state, context, model, reasoning, and usage |
| `src/lib/codex-ui-control.ts` | Typed bridge to the native Accessibility helper |
| `src/lib/automation.ts` | Command dispatch, workflow launch, and the push-to-talk lifecycle |
| `src/lib/input-release-guard.ts` | Idempotent held-input release ledger used by push-to-talk |
| `src/lib/app-server-rpc.ts` | Bounded JSON-line transport to `codex app-server` |
| `src/lib/app-server.ts` | Allowed app-server operations and Codex binary discovery |
| `src/lib/bounded-process.ts` | Output caps and TERM/KILL/reap lifecycle shared by child processes |
| `src/lib/desktop-active.ts` | Focused-thread witness from the Codex desktop logs |
| `src/lib/rollout-status.ts` | Rollout JSONL reduction into idle/running/unread/needs-input/error |
| `src/lib/antigravity.ts`, `native/Antigravity.swift` | Google Antigravity quota and context over its local server; composer permission preset over Accessibility |
| `src/lib/context.ts`, `usage.ts` | Token-context and account-usage parsing and availability |
| `src/lib/model.ts`, `reasoning.ts` | Model catalog filtering and dial preview/apply state |
| `src/lib/availability.ts` | `Availability<T>` and the reason-code vocabulary every surface shares |
| `src/lib/health.ts` | Health snapshot and transition logging |
| `src/lib/commands.ts`, `workflows.ts`, `keycap-workflows.ts` | Static catalogs of commands, dial commands, and keycap workflows |
| `src/lib/chat-label.ts` | Compact session labels for keys and the touch strip |
| `src/lib/visuals.ts` | SVG key renderers, dial feedback shapes, and the status palette |
| `src/lib/render-cache.ts` | Deduplicated, serialized key and dial transport |
| `src/lib/refresh-coordinator.ts` | Serial tick runner that collapses overlapping refreshes |
| `src/lib/bundled-profiles.ts` | Device-type to profile mapping and activation checks |
| `src/lib/build-info.ts` | Build identity injected by the bundler |
| `src/lib/lucide-paths.ts`, `wordmark-paths.ts` | Generated icon and wordmark path data |
| `native/Accessibility.swift` | Accessibility traversal and element helpers |
| `native/Targeting.swift` | Exact frontmost task/window witnesses and incremental continuity checks |
| `native/ComposerControls.swift` | Picker, composer, mode, permission, PTT, and workflow operations |
| `native/Models.swift` | Native request, response, snapshot, and error types |
| `native/Fixtures.swift` | Compiled native fixture entry points used by acceptance tests |
| `native/main.swift` | Native command allow-list and CLI dispatch |
| `profile-src/` | `profile-contract.json` (the 50-key source of truth) and generated device profiles |
| `com.todd.streamdeckcodex.sdPlugin/` | Manifest, action artwork, property inspector, and the `ptt-guard.mjs` watchdog |
| `scripts/` | Generated assets/profiles, packaging, release validation, and connected QA |
| `marketplace/`, `assets/` | Maker Console media and the fonts and photos the generators use |
| `test/` | Unit, compiled-native, event-path, profile, visual, and safety regression tests |

## Runtime flow

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project are documented here.

## 0.3.0-beta.3 — 2026-11-14

- Update to Stream Deck SDK 3.0.7, CLI 1.10.6, and current build and test
dependencies; run CI and releases on the macos-15 runner.
- Add three Google Antigravity keys that read its local language server (no
screen reading): Antigravity Left (each model group's weekly and five-hour
quota), Antigravity Context, and Antigravity Permissions (steps the open
Expand Down
4 changes: 2 additions & 2 deletions MARKETPLACE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ It is release evidence, not a substitute for Maker Console review.
- [x] Reverse-DNS plugin UUID includes author and product identity.
- [x] Every action UUID is prefixed by the plugin UUID.
- [x] SDK version 3 and Stream Deck 7.1 minimum.
- [x] Node.js SDK `@elgato/streamdeck` 3.0.1 and Node.js 24 runtime.
- [x] Node.js SDK `@elgato/streamdeck` 3.0.7 and Node.js 24 runtime.
- [x] macOS 13 minimum is declared.
- [x] Plugin and category names are aligned.
- [x] Eleven actions—within Elgato's recommended 2–30 range.
- [x] Eighteen actions—within Elgato's recommended 2–30 range.
- [x] Descriptive action names and tooltips.
- [x] Profile-only generic keycap action is hidden from the action list.
- [x] Failed actions use `showAlert`; successful actions use state updates or
Expand Down
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,26 @@ Codex version, and the failing action when
action list, and press it to cycle through focus, permissions, context,
model, reasoning, usage, and input.

### Google Antigravity keys

Three keys read [Google Antigravity](https://antigravity.google) and need no
settings. Find them in the action list as **Antigravity Left**, **Antigravity
Context**, and **Antigravity Permissions**.

| Key | Shows | Press |
| ----------------------- | ------------------------------------------------------------- | --------------------------------------- |
| Antigravity Left | One quota bucket: a model group's weekly or five-hour limit | Step to the next bucket |
| Antigravity Context | Context left in the conversation viewed most recently | Refresh now |
| Antigravity Permissions | The open conversation's preset, as named in its composer menu | Request Review → Default → Auto → Turbo |

Usage and context come from Antigravity's own language server on `localhost`,
using the port and per-launch token it writes under
`~/.gemini/antigravity/daemon/`; nothing is read from the screen and no account
credential is touched. Permissions drive the preset menu in the conversation's
composer through macOS Accessibility, and report success only once that menu
shows the chosen preset. Antigravity does not need to be in front. The keys
show **NOT OPEN** while Antigravity is closed.

### Live status colors

| State | Color |
Expand Down Expand Up @@ -330,6 +350,13 @@ Include the plugin build SHA printed by `npm run doctor -- --json`.
is replaced.
- Stream Deck preserves customized profiles during plugin upgrades; profiles
do not auto-update in place.
- Codex chats that run on another machine over SSH show no focus, context,
model, effort, or permissions: the companion reads Codex state stored on this
Mac, and a remote chat's transcript lives on the remote host. Account usage
still works.
- Antigravity keys are not part of "Follow active app" or the bundled profiles;
add them from the action list. With several Antigravity conversations open in
one window, the Permissions key fails closed rather than guess.

## Build from source

Expand Down
2 changes: 1 addition & 1 deletion THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Lucide icons

All pictograms are generated from `lucide-static` v1.38.0, under the ISC
All pictograms are generated from `lucide-static` v1.85.0, under the ISC
License. Copyright © 2026 Lucide Icons and Contributors; icons derived from
Feather are © 2013–present Cole Bemis under the MIT License. The bundled
`THIRD_PARTY_LICENSES.txt` carries the full text.
Expand Down
Loading
Loading