quoin-cockpit 0.2.0__tar.gz
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.
- quoin_cockpit-0.2.0/.gitignore +21 -0
- quoin_cockpit-0.2.0/PKG-INFO +112 -0
- quoin_cockpit-0.2.0/README.md +97 -0
- quoin_cockpit-0.2.0/pyproject.toml +70 -0
- quoin_cockpit-0.2.0/quoin/dev/tests/fixtures/streamdeck_prototype/README.md +5 -0
- quoin_cockpit-0.2.0/quoin/docs/streamdeck/README.md +346 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/__init__.py +3 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/__main__.py +5 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/addon.py +63 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/cli.py +325 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/components.py +721 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/core/scripts/dashboard_assets/app.js +781 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/core/scripts/dashboard_assets/dashboard.css +797 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/core/scripts/dashboard_assets/index.html +72 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/core/scripts/dashboard_assets/memory.js +203 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/core/scripts/dashboard_model.py +944 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/plugins/context-tracker/.claude-plugin/plugin.json +9 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/plugins/context-tracker/hooks/hooks.json +1 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/plugins/context-tracker/hooks/register.test.ts +103 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/plugins/context-tracker/hooks/register.tsx +451 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/plugins/context-tracker/tsconfig.json +3 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/plugins/context-tracker/types/index.d.ts +62 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/scripts/dashboard_cost.py +336 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/scripts/dashboard_model.py +21 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/scripts/dashboard_server.py +620 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/tools/agentdesk/KEYBIND-VERIFY.md +244 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/tools/agentdesk/agentdesk.zsh +2579 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/data/tools/agentdesk/setup-agentdesk.sh +1986 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/sessions.py +532 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/__init__.py +38 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/cli.py +85 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/engine.py +2131 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/hooks_merge.py +295 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/jsonfile.py +168 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/macos.py +34 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/manifest.py +387 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/migrations.py +377 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/notice.py +21 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/paths.py +162 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/controller.py +312 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/dashboard.py +392 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/deckenv.py +463 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/monitor.py +320 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/plugin/category.png +0 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/plugin/icon.png +0 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/plugin/icon@2x.png +0 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/plugin/plugin.js +236 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload/terminal.zsh +50 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/payload_build.py +190 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/prereqs.py +533 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/shims.py +223 -0
- quoin_cockpit-0.2.0/src/quoin_cockpit/streamdeck/status.py +359 -0
- quoin_cockpit-0.2.0/vscode-extension/README.md +76 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
**/*.egg-info/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
.pytest_cache/
|
|
8
|
+
.venv/
|
|
9
|
+
node_modules/
|
|
10
|
+
*.vsix
|
|
11
|
+
|
|
12
|
+
# Generated by the plugin tooling; never vendored
|
|
13
|
+
src/quoin_cockpit/data/plugins/*/.claude-plugin/types/
|
|
14
|
+
src/quoin_cockpit/data/plugins/**/node_modules/
|
|
15
|
+
|
|
16
|
+
# Stream Deck payload: runtime state and junk must never ship
|
|
17
|
+
/src/quoin_cockpit/streamdeck/payload/state/
|
|
18
|
+
/src/quoin_cockpit/streamdeck/payload/agents/
|
|
19
|
+
/src/quoin_cockpit/streamdeck/payload/**/*.log
|
|
20
|
+
/src/quoin_cockpit/streamdeck/payload/**/*.lock
|
|
21
|
+
/src/quoin_cockpit/streamdeck/payload/health.json
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: quoin-cockpit
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Cockpit add-on for quoin: Stream Deck integration, Agent Desk, workflow dashboard and the context-tracker Claude Code mod
|
|
5
|
+
Author: IvGor
|
|
6
|
+
License: PolyForm Noncommercial 1.0.0
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: quoin>=0.104
|
|
9
|
+
Provides-Extra: dev
|
|
10
|
+
Requires-Dist: build; extra == 'dev'
|
|
11
|
+
Requires-Dist: hatchling<1.19,>=1.18; extra == 'dev'
|
|
12
|
+
Requires-Dist: pytest-timeout; extra == 'dev'
|
|
13
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# quoin-cockpit
|
|
17
|
+
|
|
18
|
+
Cockpit tools for working with coding agents, as an add-on for
|
|
19
|
+
[quoin](https://github.com/FourthWiz/quoin). They were split out of quoin at the
|
|
20
|
+
`legacy` tag (v0.94.3) with their git history, and now install on top of the
|
|
21
|
+
current quoin (0.104 or newer) as their own package, `quoin_cockpit`. Nothing is
|
|
22
|
+
written into the `quoin` package.
|
|
23
|
+
|
|
24
|
+
## What is here
|
|
25
|
+
|
|
26
|
+
| Component | What it is | Where `install` puts it |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| `context-tracker` | the context-tracker Claude Code mod (`/ctx` pane) | `$CLAUDE_CONFIG_DIR/skills/context-tracker/` (default `~/.claude`) |
|
|
29
|
+
| `dashboard` | the local workflow dashboard (read-only HTTP server on 127.0.0.1) | `~/.claude/scripts/` and `~/.claude/core/scripts/` |
|
|
30
|
+
| `agentdesk` | the Agent Desk zellij launcher and its setup script | `~/.config/agentdesk/` |
|
|
31
|
+
| `streamdeck` | the Stream Deck integration (macOS only) | see [the Stream Deck guide](quoin/docs/streamdeck/README.md) |
|
|
32
|
+
|
|
33
|
+
The VS Code extension in `vscode-extension/` is built and published on its own.
|
|
34
|
+
|
|
35
|
+
## Install
|
|
36
|
+
|
|
37
|
+
Requires Python 3.10 or newer. Once it is on PyPI:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install quoin-cockpit
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Until then, install it from git:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pip install 'quoin-cockpit @ git+https://github.com/FourthWiz/quoin-cockpit'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Then deploy the components:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
quoin-cockpit install # everything (streamdeck on macOS only)
|
|
53
|
+
quoin-cockpit install --component context-tracker,dashboard
|
|
54
|
+
quoin-cockpit install --component agentdesk --setup-agentdesk # also run the Homebrew/zellij/~/.zshrc setup
|
|
55
|
+
quoin-cockpit status
|
|
56
|
+
quoin-cockpit remove --component dashboard # or no --component for everything
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`quoin install` discovers the add-on through the `quoin.addons` entry point and
|
|
60
|
+
offers it. Accepting installs the context-tracker mod, the dashboard and the
|
|
61
|
+
Agent Desk files (without the Homebrew setup), and the Stream Deck component
|
|
62
|
+
only on macOS when its prerequisites are already met; otherwise it prints a
|
|
63
|
+
note.
|
|
64
|
+
|
|
65
|
+
`remove` deletes only what the cockpit installed: the context-tracker folder
|
|
66
|
+
only when its `plugin.json` names the mod (never a symlink or a folder someone
|
|
67
|
+
else made), and dashboard and Agent Desk files only while they still hold the
|
|
68
|
+
bytes the cockpit wrote. What it wrote is recorded in
|
|
69
|
+
`~/.config/quoin-cockpit/installed.json`.
|
|
70
|
+
|
|
71
|
+
## Commands
|
|
72
|
+
|
|
73
|
+
| Command | What it does |
|
|
74
|
+
|---|---|
|
|
75
|
+
| `quoin-cockpit install [--component NAME ...]` | install components (default: all) |
|
|
76
|
+
| `quoin-cockpit remove [--component NAME ...]` | remove components (default: all) |
|
|
77
|
+
| `quoin-cockpit status` | show what is installed |
|
|
78
|
+
| `quoin-cockpit streamdeck install\|upgrade\|status\|uninstall` | manage the Stream Deck component |
|
|
79
|
+
| `quoin-cockpit dashboard [--port N] [--no-browser] [--project-root DIR]` | run the dashboard |
|
|
80
|
+
| `quoin-cockpit sessions [--all] [kill NAME\|prune]` | list, kill or prune Agent Desk sessions |
|
|
81
|
+
| `quoin-cockpit attach [NAME]` | attach to an Agent Desk session |
|
|
82
|
+
|
|
83
|
+
## How it relates to quoin
|
|
84
|
+
|
|
85
|
+
The dashboard loads shared quoin scripts (`status_graph`, `path_resolve`,
|
|
86
|
+
`cost_event`, `memory_select`, `spend_monitor`, `cost_from_jsonl`). quoin now
|
|
87
|
+
installs as a Claude Code plugin and no longer copies them into `~/.claude`, so
|
|
88
|
+
the `dashboard` and `agentdesk` components copy them from the installed quoin
|
|
89
|
+
package next to the dashboard. `quoin-cockpit dashboard` runs the packaged
|
|
90
|
+
dashboard and reads them from the quoin package directly.
|
|
91
|
+
|
|
92
|
+
The Stream Deck manifest still records the quoin version (`quoin.__about__`)
|
|
93
|
+
it was installed with.
|
|
94
|
+
|
|
95
|
+
## Development
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
python3 -m venv .venv
|
|
99
|
+
.venv/bin/pip install quoin==0.104.0
|
|
100
|
+
.venv/bin/pip install -e '.[dev]'
|
|
101
|
+
.venv/bin/python -m pytest
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Every test runs against a temporary HOME. The live zellij tests
|
|
105
|
+
(`test_agentdesk_layout_live.py`, `test_agentdesk_keybinds_live.py`,
|
|
106
|
+
`test_agentdesk_sessions_live.py`) need zellij and a session they can drive.
|
|
107
|
+
|
|
108
|
+
The VS Code extension builds and tests on its own:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
cd vscode-extension && npm ci && npm test
|
|
112
|
+
```
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# quoin-cockpit
|
|
2
|
+
|
|
3
|
+
Cockpit tools for working with coding agents, as an add-on for
|
|
4
|
+
[quoin](https://github.com/FourthWiz/quoin). They were split out of quoin at the
|
|
5
|
+
`legacy` tag (v0.94.3) with their git history, and now install on top of the
|
|
6
|
+
current quoin (0.104 or newer) as their own package, `quoin_cockpit`. Nothing is
|
|
7
|
+
written into the `quoin` package.
|
|
8
|
+
|
|
9
|
+
## What is here
|
|
10
|
+
|
|
11
|
+
| Component | What it is | Where `install` puts it |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `context-tracker` | the context-tracker Claude Code mod (`/ctx` pane) | `$CLAUDE_CONFIG_DIR/skills/context-tracker/` (default `~/.claude`) |
|
|
14
|
+
| `dashboard` | the local workflow dashboard (read-only HTTP server on 127.0.0.1) | `~/.claude/scripts/` and `~/.claude/core/scripts/` |
|
|
15
|
+
| `agentdesk` | the Agent Desk zellij launcher and its setup script | `~/.config/agentdesk/` |
|
|
16
|
+
| `streamdeck` | the Stream Deck integration (macOS only) | see [the Stream Deck guide](quoin/docs/streamdeck/README.md) |
|
|
17
|
+
|
|
18
|
+
The VS Code extension in `vscode-extension/` is built and published on its own.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
Requires Python 3.10 or newer. Once it is on PyPI:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install quoin-cockpit
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Until then, install it from git:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install 'quoin-cockpit @ git+https://github.com/FourthWiz/quoin-cockpit'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then deploy the components:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
quoin-cockpit install # everything (streamdeck on macOS only)
|
|
38
|
+
quoin-cockpit install --component context-tracker,dashboard
|
|
39
|
+
quoin-cockpit install --component agentdesk --setup-agentdesk # also run the Homebrew/zellij/~/.zshrc setup
|
|
40
|
+
quoin-cockpit status
|
|
41
|
+
quoin-cockpit remove --component dashboard # or no --component for everything
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`quoin install` discovers the add-on through the `quoin.addons` entry point and
|
|
45
|
+
offers it. Accepting installs the context-tracker mod, the dashboard and the
|
|
46
|
+
Agent Desk files (without the Homebrew setup), and the Stream Deck component
|
|
47
|
+
only on macOS when its prerequisites are already met; otherwise it prints a
|
|
48
|
+
note.
|
|
49
|
+
|
|
50
|
+
`remove` deletes only what the cockpit installed: the context-tracker folder
|
|
51
|
+
only when its `plugin.json` names the mod (never a symlink or a folder someone
|
|
52
|
+
else made), and dashboard and Agent Desk files only while they still hold the
|
|
53
|
+
bytes the cockpit wrote. What it wrote is recorded in
|
|
54
|
+
`~/.config/quoin-cockpit/installed.json`.
|
|
55
|
+
|
|
56
|
+
## Commands
|
|
57
|
+
|
|
58
|
+
| Command | What it does |
|
|
59
|
+
|---|---|
|
|
60
|
+
| `quoin-cockpit install [--component NAME ...]` | install components (default: all) |
|
|
61
|
+
| `quoin-cockpit remove [--component NAME ...]` | remove components (default: all) |
|
|
62
|
+
| `quoin-cockpit status` | show what is installed |
|
|
63
|
+
| `quoin-cockpit streamdeck install\|upgrade\|status\|uninstall` | manage the Stream Deck component |
|
|
64
|
+
| `quoin-cockpit dashboard [--port N] [--no-browser] [--project-root DIR]` | run the dashboard |
|
|
65
|
+
| `quoin-cockpit sessions [--all] [kill NAME\|prune]` | list, kill or prune Agent Desk sessions |
|
|
66
|
+
| `quoin-cockpit attach [NAME]` | attach to an Agent Desk session |
|
|
67
|
+
|
|
68
|
+
## How it relates to quoin
|
|
69
|
+
|
|
70
|
+
The dashboard loads shared quoin scripts (`status_graph`, `path_resolve`,
|
|
71
|
+
`cost_event`, `memory_select`, `spend_monitor`, `cost_from_jsonl`). quoin now
|
|
72
|
+
installs as a Claude Code plugin and no longer copies them into `~/.claude`, so
|
|
73
|
+
the `dashboard` and `agentdesk` components copy them from the installed quoin
|
|
74
|
+
package next to the dashboard. `quoin-cockpit dashboard` runs the packaged
|
|
75
|
+
dashboard and reads them from the quoin package directly.
|
|
76
|
+
|
|
77
|
+
The Stream Deck manifest still records the quoin version (`quoin.__about__`)
|
|
78
|
+
it was installed with.
|
|
79
|
+
|
|
80
|
+
## Development
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
python3 -m venv .venv
|
|
84
|
+
.venv/bin/pip install quoin==0.104.0
|
|
85
|
+
.venv/bin/pip install -e '.[dev]'
|
|
86
|
+
.venv/bin/python -m pytest
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Every test runs against a temporary HOME. The live zellij tests
|
|
90
|
+
(`test_agentdesk_layout_live.py`, `test_agentdesk_keybinds_live.py`,
|
|
91
|
+
`test_agentdesk_sessions_live.py`) need zellij and a session they can drive.
|
|
92
|
+
|
|
93
|
+
The VS Code extension builds and tests on its own:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
cd vscode-extension && npm ci && npm test
|
|
97
|
+
```
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.18,<1.19"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "quoin-cockpit"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Cockpit add-on for quoin: Stream Deck integration, Agent Desk, workflow dashboard and the context-tracker Claude Code mod"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = { text = "PolyForm Noncommercial 1.0.0" }
|
|
12
|
+
authors = [{ name = "IvGor" }]
|
|
13
|
+
dependencies = ["quoin>=0.104"]
|
|
14
|
+
|
|
15
|
+
[project.optional-dependencies]
|
|
16
|
+
dev = [
|
|
17
|
+
"pytest>=7.0",
|
|
18
|
+
"pytest-timeout",
|
|
19
|
+
"build",
|
|
20
|
+
"hatchling>=1.18,<1.19",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[project.scripts]
|
|
24
|
+
quoin-cockpit = "quoin_cockpit.cli:main"
|
|
25
|
+
|
|
26
|
+
[project.entry-points."quoin.addons"]
|
|
27
|
+
cockpit = "quoin_cockpit.addon:addon"
|
|
28
|
+
|
|
29
|
+
[tool.hatch.version]
|
|
30
|
+
path = "src/quoin_cockpit/__init__.py"
|
|
31
|
+
|
|
32
|
+
[tool.hatch.build.targets.wheel]
|
|
33
|
+
packages = ["src/quoin_cockpit"]
|
|
34
|
+
exclude = [
|
|
35
|
+
"**/.DS_Store",
|
|
36
|
+
"**/__pycache__",
|
|
37
|
+
"**/*.pyc",
|
|
38
|
+
"src/quoin_cockpit/streamdeck/payload/**/dist",
|
|
39
|
+
"src/quoin_cockpit/streamdeck/payload/**/*.json",
|
|
40
|
+
"src/quoin_cockpit/streamdeck/payload/**/*.log",
|
|
41
|
+
"src/quoin_cockpit/streamdeck/payload/**/*.lock",
|
|
42
|
+
"src/quoin_cockpit/streamdeck/payload/state",
|
|
43
|
+
"src/quoin_cockpit/streamdeck/payload/agents",
|
|
44
|
+
"src/quoin_cockpit/data/plugins/*/.claude-plugin/types",
|
|
45
|
+
"src/quoin_cockpit/data/plugins/**/node_modules",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[tool.hatch.build.targets.sdist]
|
|
49
|
+
include = ["src/quoin_cockpit", "README.md", "pyproject.toml"]
|
|
50
|
+
exclude = [
|
|
51
|
+
"**/.DS_Store",
|
|
52
|
+
"**/__pycache__",
|
|
53
|
+
"**/*.pyc",
|
|
54
|
+
"src/quoin_cockpit/streamdeck/payload/state",
|
|
55
|
+
"src/quoin_cockpit/streamdeck/payload/agents",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[tool.pytest.ini_options]
|
|
59
|
+
testpaths = ["quoin/dev/tests"]
|
|
60
|
+
python_files = "test_*.py"
|
|
61
|
+
python_functions = "test_*"
|
|
62
|
+
python_classes = "Test*"
|
|
63
|
+
addopts = "-q"
|
|
64
|
+
pythonpath = ["src", "."]
|
|
65
|
+
timeout = 240
|
|
66
|
+
timeout_method = "thread"
|
|
67
|
+
markers = [
|
|
68
|
+
"smoke: fast smoke subset",
|
|
69
|
+
"slow_fs: touches the working tree / Drive mount; allow a longer timeout",
|
|
70
|
+
]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Frozen copy of the pre-component Stream Deck runtime scripts, byte-identical to
|
|
2
|
+
the prototype as first committed. Compatibility tests load these to prove the
|
|
3
|
+
new monitor and dashboard still interoperate with a running prototype, and the
|
|
4
|
+
later state-migration tests reuse them as input. They are never shipped (the
|
|
5
|
+
sdist excludes `quoin/dev/`).
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
# Quoin Stream Deck component
|
|
2
|
+
|
|
3
|
+
A live 15-key Stream Deck panel for the coding agents running in your Agent Desk sessions. It is optional: Quoin
|
|
4
|
+
installs and upgrades it only when you ask.
|
|
5
|
+
|
|
6
|
+
## What it does
|
|
7
|
+
|
|
8
|
+
The panel shows one key per Zellij session and a few action keys:
|
|
9
|
+
|
|
10
|
+
- Keys 1-9 are sessions. Each shows the session name and how many agents it holds, the project folder when all its
|
|
11
|
+
agents share one, and the combined status of its agents. The most urgent status wins, in this order: orange NEEDS
|
|
12
|
+
YOU (an agent asks a question or a permission), green DONE (finished its turn and no background subagent is still
|
|
13
|
+
running), blue WORKING, then grey IDLE, NO SIGNAL and OFFLINE. An orange session key blinks. More than nine
|
|
14
|
+
sessions page.
|
|
15
|
+
- Pressing a session key opens it. Key 1 becomes BACK with the session name, and keys 2-9 show that session's agents,
|
|
16
|
+
each with the runtime (Claude or Codex), the project, the session and pane, and its own status colour. More than
|
|
17
|
+
eight agents page. Pressing an agent there focuses its Zellij pane in Ghostty and keeps the session open. BACK
|
|
18
|
+
returns to the session page you left. If the open session closes, the panel returns to the session list on its own.
|
|
19
|
+
- An agent record without a session gets its own key after the sessions.
|
|
20
|
+
- Key 10 is the attention queue: it counts the agents that wait for you in all sessions. A press focuses the next
|
|
21
|
+
waiting agent in any session without changing what the panel shows; holding it turns to the next page of whatever
|
|
22
|
+
the panel is showing, and its page line follows that view. A hold turns the page at once and no longer triggers a
|
|
23
|
+
fresh snapshot refresh afterwards, so the page may show data up to one refresh interval (about 2.5 seconds) old. The
|
|
24
|
+
Glass sound still plays when a new agent starts waiting.
|
|
25
|
+
- The bottom row holds Desk (two Codex panes and a shell through Agent Desk; hold for its menu), + Claude and
|
|
26
|
+
+ Codex (a new pane), and previous and next Ghostty tab.
|
|
27
|
+
|
|
28
|
+
It ships in the `quoin-cockpit` package. `quoin-cockpit streamdeck install` sets it up on its own;
|
|
29
|
+
`quoin-cockpit install` includes it on macOS, and the cockpit add-on that `quoin install` offers adds it only when the
|
|
30
|
+
prerequisites below are already met. It works on macOS only. On any other platform `install` and `upgrade` exit 2, `status` prints
|
|
31
|
+
"unsupported platform" and exits 0, and `uninstall` has nothing to do.
|
|
32
|
+
|
|
33
|
+
## Prerequisites
|
|
34
|
+
|
|
35
|
+
`quoin-cockpit streamdeck install` checks these first and then explains, for each missing item, what it is, why it
|
|
36
|
+
matters and the command it proposes.
|
|
37
|
+
|
|
38
|
+
| Item | Used for | How it is checked | Proposed install |
|
|
39
|
+
|---|---|---|---|
|
|
40
|
+
| Python 3.9 or later with `fcntl` | the hooks and the plugin's snapshot helper | the path you pass with `--python`, else the recorded one, else `python3` from `PATH`; `/usr/bin/python3` is only probed when `xcode-select -p` succeeds. A path inside the Python environment Quoin runs from (a virtual environment or `site-packages`) is never used. The unresolved path is what gets recorded | `brew install python` (or `xcode-select --install`) |
|
|
41
|
+
| Stream Deck app 6.6 or later | the panel itself | `Elgato Stream Deck.app` in `/Applications`, or in the folder named by `QUOIN_STREAMDECK_APPS_DIR`, with a Spotlight lookup as the fallback | `brew install --cask elgato-stream-deck` |
|
|
42
|
+
| Node with a global `WebSocket` | the plugin process | a `node` on `PATH` that provides it is preferred; with app 7.1 or later the app's bundled Node can be used (`--node bundled`) | `brew install node` |
|
|
43
|
+
| Agent Desk | launching and attaching sessions | `agentdesk.zsh` containing an `AGENTDESK_API_VERSION` line; it is searched, never sourced | redeploys the same files `quoin-cockpit install` deploys |
|
|
44
|
+
| zellij with `list-panes` and `focus-pane-id` | observing and focusing panes | `zellij action --help` is probed | `brew install zellij` |
|
|
45
|
+
| Ghostty with its AppleScript dictionary | focusing windows and tabs | the app's scripting dictionary is read | `brew install --cask ghostty` |
|
|
46
|
+
| Homebrew | only to run the commands above | found on `PATH` or through a login shell; never installed for you | see https://brew.sh |
|
|
47
|
+
|
|
48
|
+
Python, the Stream Deck app and Node are core: without them the component installs dormant. Agent Desk, zellij and
|
|
49
|
+
Ghostty are features: the panel installs without them and the missing ones show as informational lines in
|
|
50
|
+
`status`.
|
|
51
|
+
|
|
52
|
+
How the questions work:
|
|
53
|
+
|
|
54
|
+
- After the checks, each missing item gets a `[y/N]` question. `--prereqs all` answers yes to every proposed
|
|
55
|
+
install, `--prereqs none` answers no, and the default `ask` asks.
|
|
56
|
+
- Without a terminal nothing third-party is ever installed, whatever `--prereqs` says.
|
|
57
|
+
- Declined items are recorded and `status` lists them as "not installed by choice".
|
|
58
|
+
- A core item missing on a fresh install produces a dormant install: the code, manifest, config and profile are
|
|
59
|
+
written, but no plugin and no hooks. An active install is never deactivated without a yes on a terminal.
|
|
60
|
+
|
|
61
|
+
## Commands
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
quoin-cockpit streamdeck install
|
|
65
|
+
quoin-cockpit streamdeck upgrade
|
|
66
|
+
quoin-cockpit streamdeck status
|
|
67
|
+
quoin-cockpit streamdeck uninstall
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Examples with options:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
quoin-cockpit streamdeck install --dry-run
|
|
74
|
+
quoin-cockpit streamdeck install --python /path/to/python3 --prereqs none
|
|
75
|
+
quoin-cockpit streamdeck status --json
|
|
76
|
+
quoin-cockpit streamdeck uninstall --purge --state-root DIR
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Options, by command:
|
|
80
|
+
|
|
81
|
+
- `install`, `upgrade`: `--runtime-dir`, `--plugins-dir`, `--state-root`, `--claude-settings`, `--codex-home`,
|
|
82
|
+
`--agentdesk`, `--runtimes`, `--python`, `--node`, `--prereqs`, `--dry-run`, `--open-profile`, `--no-open-profile`,
|
|
83
|
+
`--allow-downgrade`.
|
|
84
|
+
- `status`: `--runtime-dir`, `--plugins-dir`, `--state-root`, `--claude-settings`, `--codex-home`, `--agentdesk`,
|
|
85
|
+
`--json`.
|
|
86
|
+
- `uninstall`: `--runtime-dir`, `--plugins-dir`, `--state-root`, `--claude-settings`, `--codex-home`,
|
|
87
|
+
`--agentdesk`, `--runtimes`, `--dry-run`, `--purge`.
|
|
88
|
+
|
|
89
|
+
What they do:
|
|
90
|
+
|
|
91
|
+
- `install` is a fresh install, a repair, the adoption of a prototype install, or an upgrade when the manifest is
|
|
92
|
+
older than the package (it says so). A manifest that is newer than the package is refused unless you pass
|
|
93
|
+
`--allow-downgrade`.
|
|
94
|
+
- `upgrade` needs an existing install or a prototype. Otherwise it stops with
|
|
95
|
+
"not installed; run `quoin-cockpit streamdeck install`".
|
|
96
|
+
- `--runtimes` on `install` and `upgrade` defaults to both Claude and Codex; Codex is managed only when it is
|
|
97
|
+
detected (on `PATH`, `CODEX_HOME`, a `~/.codex` folder, existing entries, or a recorded earlier install). An
|
|
98
|
+
explicit shorter list removes the omitted runtime's entries. On `uninstall`, `--runtimes` removes only those
|
|
99
|
+
runtimes' entries and keeps the component.
|
|
100
|
+
- `--dry-run` takes no lock and writes nothing (prerequisites are treated as `none`), and it reports a pending
|
|
101
|
+
roll back or completion.
|
|
102
|
+
- `--open-profile` always opens the generated profile after the install; `--no-open-profile` never does. Without
|
|
103
|
+
either, `install` opens it only when Stream Deck does not have it yet (see Profile).
|
|
104
|
+
- `--python PATH` and `--node auto|bundled|PATH` choose the interpreter and Node instead of discovering them.
|
|
105
|
+
- `--json` makes `status` print its report as JSON: `state`, `problems`, `info` and `exit_code`.
|
|
106
|
+
|
|
107
|
+
Exit codes of `install`, `upgrade` and `uninstall`: 0 success (including a dormant install and an adoption that is
|
|
108
|
+
pending), 1 refused or failed, 2 unsupported platform or a usage error.
|
|
109
|
+
|
|
110
|
+
Exit codes of `status`: 0 healthy (or unsupported platform), 10 not installed (including when only inert hook stubs
|
|
111
|
+
are left), 11 problems found, 12 an operation was interrupted.
|
|
112
|
+
|
|
113
|
+
## Upgrading
|
|
114
|
+
|
|
115
|
+
`pip install --upgrade quoin-cockpit` changes the package payload only. It does not change the installed component, the
|
|
116
|
+
hooks, the plugin, the profile or the state: those live in the runtime folder, which the hooks and the plugin
|
|
117
|
+
reference directly. They never point into `site-packages` or a virtual environment, so upgrading with pip or
|
|
118
|
+
rebuilding the virtual environment never breaks a running deck.
|
|
119
|
+
|
|
120
|
+
When the installed component differs from the package, `quoin install` (through the cockpit add-on) prints one line
|
|
121
|
+
saying so. Run
|
|
122
|
+
`quoin-cockpit streamdeck upgrade` to bring the component up to date. It is idempotent: when nothing changed, a re-run only
|
|
123
|
+
refreshes `last_verified_at` in the manifest. The hook command is stable, so an upgrade normally needs no new Codex
|
|
124
|
+
review; the output says when it does.
|
|
125
|
+
|
|
126
|
+
## Where things live
|
|
127
|
+
|
|
128
|
+
Runtime folder (default `~/Library/Application Support/QuoinStreamDeck`):
|
|
129
|
+
|
|
130
|
+
- `install-manifest.json`: what is installed and where.
|
|
131
|
+
- `operation.json`: only while an operation is running or was interrupted.
|
|
132
|
+
- `.install.lock`: held while an operation runs.
|
|
133
|
+
- `versions/<version>-<12 hex>/`: the deployed payload, with `current` pointing at the live one.
|
|
134
|
+
- `bin/quoin-deck-hook` and `bin/quoin-deck-terminal`: the entry points hooks and the plugin call.
|
|
135
|
+
- `profile/Quoin Live Agents.streamDeckProfile`: the profile to import.
|
|
136
|
+
- `staging/`: transient, empty between runs.
|
|
137
|
+
- `backups/quoin-<UTC timestamp>[-NN]/`: the newest five reference copies of your settings files from before each
|
|
138
|
+
change. They are never restored automatically and `--purge` keeps them (delete them by hand), so the runtime
|
|
139
|
+
folder itself survives a purge.
|
|
140
|
+
- `uninstalled.json` and inert stubs: left by `uninstall` so running agents keep working.
|
|
141
|
+
- Legacy forwarders (`monitor.py`, `dashboard.py`, `controller.py`, `terminal.zsh`) after adopting a prototype.
|
|
142
|
+
- Untouched leftovers from a prototype: older `backups/` entries, `Buttons/`, `prototype-backup.sdProfile`, a root
|
|
143
|
+
`health.json`, `.DS_Store`.
|
|
144
|
+
|
|
145
|
+
Plugin folder: `local.quoin.agentdesk.sdPlugin` inside the Stream Deck plugins folder, holding `manifest.json`,
|
|
146
|
+
`plugin.js`, the icons, `plugin-config.json`, and `launch.sh` only when an external Node is used.
|
|
147
|
+
|
|
148
|
+
Config: `~/.config/agentdesk/streamdeck/config.json` (mode 0600: project, session, projects).
|
|
149
|
+
|
|
150
|
+
State: `~/.config/agentdesk/streamdeck/state/` (mode 0700): `agents/` records, `health.json`, `errors.log` plus one
|
|
151
|
+
rotation, and `surfaces.json`. A legacy `monitor.lock` or `controller.lock` stays in the state root. `--purge`
|
|
152
|
+
removes a legacy `monitor.lock` but leaves a legacy `controller.lock`, so an adopted install's state root may
|
|
153
|
+
survive a purge.
|
|
154
|
+
|
|
155
|
+
Overrides: the flags above, and these environment variables: `QUOIN_STREAMDECK_RUNTIME_DIR`,
|
|
156
|
+
`QUOIN_STREAMDECK_PLUGINS_DIR`, `QUOIN_STREAMDECK_STATE_ROOT`, `QUOIN_STREAMDECK_APPS_DIR`, `CLAUDE_CONFIG_DIR`
|
|
157
|
+
and `CODEX_HOME`. After an install, `upgrade`, `uninstall` and `status` use the
|
|
158
|
+
recorded paths; a shell value that differs prints a note, and a flag overrides.
|
|
159
|
+
|
|
160
|
+
## Hooks and trust
|
|
161
|
+
|
|
162
|
+
The component adds one managed entry per event, in its own group without a matcher:
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
{"type":"command","command":"'<runtime>/bin/quoin-deck-hook' claude","timeout":3}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
(`codex` instead of `claude` for Codex.) The events are:
|
|
169
|
+
|
|
170
|
+
- Claude Code (16): SessionStart, SessionEnd, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, Stop,
|
|
171
|
+
PreCompact, PostCompact, PostToolUseFailure, Notification, StopFailure, Elicitation, ElicitationResult,
|
|
172
|
+
SubagentStart, SubagentStop. The last two only let the deck keep WORKING until the last background subagent
|
|
173
|
+
stops; a subagent that never reports its stop stops counting after three hours.
|
|
174
|
+
- Codex (10): SessionStart, SessionEnd, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, Stop,
|
|
175
|
+
PreCompact, PostCompact, Interrupt.
|
|
176
|
+
|
|
177
|
+
Only the component's own entries are added, replaced in place or removed. Foreign entries, Quoin's own stanzas,
|
|
178
|
+
other keys and their order are untouched, and no extra JSON keys appear. A first install appends its entries at
|
|
179
|
+
the end. Files are written atomically to the symlink target with their mode kept. A settings file that is
|
|
180
|
+
malformed or unreadable stops the whole operation and is left unchanged; `uninstall --runtimes <other>` is the
|
|
181
|
+
escape hatch. A hook run always exits 0 and prints nothing.
|
|
182
|
+
|
|
183
|
+
Codex: Quoin never writes trust. Review changed entries in Codex `/hooks`. Migrating from the prototype changes
|
|
184
|
+
the definitions once. Uninstalling can shift later foreign entries, and Codex then asks again; the output lists
|
|
185
|
+
the events. Claude Code: new sessions pick up the changes; review in `/hooks` if you are asked.
|
|
186
|
+
|
|
187
|
+
## Profile
|
|
188
|
+
|
|
189
|
+
The generated profile is `profile/Quoin Live Agents.streamDeckProfile` in the runtime folder. An active `install`
|
|
190
|
+
opens it in Stream Deck, which imports it, unless Stream Deck already holds a "Quoin — Live Agents" profile (or a
|
|
191
|
+
renamed copy of it); then select it on your device. `upgrade` never opens it, so a profile you deleted stays deleted.
|
|
192
|
+
`--open-profile` opens it even when it is already imported, and `--no-open-profile` never opens it; you can also
|
|
193
|
+
double-click the file. Quoin never edits or deletes profiles. The plugin and action UUIDs are fixed, so an
|
|
194
|
+
imported "Quoin — Live Agents" profile keeps working across upgrades.
|
|
195
|
+
|
|
196
|
+
A Quoin key dragged onto another profile by hand has no role or slot, so it always shows the first key of the current view (the first session, or BACK while a session is open). Use the
|
|
197
|
+
generated profile, or set each key's settings to match it.
|
|
198
|
+
|
|
199
|
+
Restart Stream Deck to load a new plugin version. Quoin never quits or restarts it; the output tells you when it
|
|
200
|
+
is running.
|
|
201
|
+
|
|
202
|
+
## Status and problem codes
|
|
203
|
+
|
|
204
|
+
`quoin-cockpit streamdeck status` reads the manifest, the marker, the files, both settings files, the recorded binaries
|
|
205
|
+
and the plugin's health file, and changes nothing. With `--json` it prints `state`, `problems[]`, `info[]` and
|
|
206
|
+
`exit_code`.
|
|
207
|
+
|
|
208
|
+
Problems (exit 11, or 12 for an interrupted operation):
|
|
209
|
+
|
|
210
|
+
| Code | Meaning and action |
|
|
211
|
+
|---|---|
|
|
212
|
+
| `OPERATION_INCOMPLETE` | an operation was interrupted; the detail names the exact command that completes it |
|
|
213
|
+
| `MANIFEST_INVALID` | the manifest does not validate; fix it or run `quoin-cockpit streamdeck uninstall` |
|
|
214
|
+
| `PROTOTYPE_UNADOPTED` | the prototype install is present and not yet adopted; run `quoin-cockpit streamdeck install` |
|
|
215
|
+
| `SETTINGS_UNREADABLE` | a settings file could not be read |
|
|
216
|
+
| `SETTINGS_MALFORMED` | a settings file is not valid JSON of the expected shape |
|
|
217
|
+
| `FILE_MISSING` | a file the manifest lists is gone or is not a regular file |
|
|
218
|
+
| `FILE_MODIFIED` | a listed file no longer matches its recorded checksum |
|
|
219
|
+
| `MODE_DORMANT` | installed without plugin and hooks because core prerequisites are missing |
|
|
220
|
+
| `MODE_ADOPTION_PENDING` | the prototype was left untouched because core prerequisites are missing |
|
|
221
|
+
| `CURRENT_MISSING` | `current` is missing or not a symlink |
|
|
222
|
+
| `CURRENT_MISMATCH` | `current` points at a different version than the manifest records |
|
|
223
|
+
| `HOOKS_NONE_RECORDED` | an active install with no recorded hook entries |
|
|
224
|
+
| `HOOK_MISSING` | a managed hook entry is gone from a settings file |
|
|
225
|
+
| `HOOK_DUPLICATE` | a managed hook entry appears more than once |
|
|
226
|
+
| `HOOK_STALE` | a managed hook entry differs from the expected command, or sits on an event the component does not use |
|
|
227
|
+
| `HOOK_SHADOWED` | a managed hook entry shares its group with a matcher or other hooks, so it may not run for every event |
|
|
228
|
+
| `PREREQ_CORE_MISSING` | a core prerequisite recorded as missing |
|
|
229
|
+
| `BINARY_VANISHED` | a recorded binary no longer exists or is not executable |
|
|
230
|
+
| `HEALTH_STALE` | the plugin's health file is older than five minutes: is Stream Deck running? |
|
|
231
|
+
|
|
232
|
+
Informational lines (they do not change the exit code):
|
|
233
|
+
|
|
234
|
+
| Code | Meaning |
|
|
235
|
+
|---|---|
|
|
236
|
+
| `PATHS_DIFFER` | this shell resolves a path differently from the recorded one; `status` uses the recorded path |
|
|
237
|
+
| `UPGRADE_AVAILABLE` | the installed component differs from the package; run `quoin-cockpit streamdeck upgrade` |
|
|
238
|
+
| `UNMANAGED_LEFTOVER` | a prototype leftover that Quoin does not manage |
|
|
239
|
+
| `CODEX_TRUST` | whether a Codex trust record exists for each managed entry |
|
|
240
|
+
| `PREREQ_FEATURE_UNAVAILABLE` | a feature prerequisite you chose not to install |
|
|
241
|
+
| `OPTIONAL_TOOL_MISSING` | an optional tool was not found, or no longer exists |
|
|
242
|
+
| `PLUGIN_NEVER_RAN` | no health file yet: start Stream Deck |
|
|
243
|
+
| `HEALTH_UNREADABLE` | the health file exists but cannot be read |
|
|
244
|
+
| `PLUGIN_SNAPSHOT_ERROR` | the plugin's last snapshot failed; the error type is named |
|
|
245
|
+
| `PROFILE_NOT_IMPORTED` | Stream Deck has no Quoin Live Agents profile; the file to open is named |
|
|
246
|
+
| `SETTINGS_UNREADABLE`, `SETTINGS_MALFORMED` | the same two codes, but only informational when nothing is installed |
|
|
247
|
+
|
|
248
|
+
For an installed component `SETTINGS_UNREADABLE` and `SETTINGS_MALFORMED` are problems; when nothing is installed
|
|
249
|
+
they are informational.
|
|
250
|
+
|
|
251
|
+
## Interrupted runs and recovery
|
|
252
|
+
|
|
253
|
+
Every install, upgrade and uninstall writes `operation.json` while it works.
|
|
254
|
+
|
|
255
|
+
- A run interrupted before its commit point is rolled back by the next run, which says
|
|
256
|
+
"rolled back an interrupted operation".
|
|
257
|
+
- A run interrupted after it is completed by the next run, which says "completing an interrupted operation".
|
|
258
|
+
`status` reports exit 12 until then and names the command.
|
|
259
|
+
- "another quoin-cockpit streamdeck operation is running" means another run holds the lock; wait and retry.
|
|
260
|
+
- A run that waited for the lock and found the state changed stops with "another quoin-cockpit streamdeck operation
|
|
261
|
+
changed the install state while this one was waiting; re-run the command".
|
|
262
|
+
- The warning "ignored an unexpected path in the operation record" means the record named a path outside the
|
|
263
|
+
folders the component owns, or a link out of them; that path was skipped and never deleted.
|
|
264
|
+
- "manifest invalid ...; fix it or run `quoin-cockpit streamdeck uninstall`" means the manifest cannot be read as an
|
|
265
|
+
install record.
|
|
266
|
+
- A manifest that records a different runtime folder is followed only when that folder holds a matching manifest;
|
|
267
|
+
otherwise the run stops and asks for `--runtime-dir`.
|
|
268
|
+
- `uninstall --purge` refuses when the state is recorded somewhere other than this shell resolves, and names the
|
|
269
|
+
`--state-root` to pass.
|
|
270
|
+
- A symlinked `state` or `agents` folder is refused rather than followed; replace the link with a real folder and
|
|
271
|
+
re-run.
|
|
272
|
+
|
|
273
|
+
## Migrating the prototype install
|
|
274
|
+
|
|
275
|
+
This is a manual sequence; nothing is stopped or restarted for you.
|
|
276
|
+
|
|
277
|
+
1. Upgrade the package (`pip install --upgrade quoin-cockpit`, or install from your checkout) and run
|
|
278
|
+
`quoin-cockpit install --component agentdesk`, so Agent Desk gets its public launch interface.
|
|
279
|
+
2. `quoin-cockpit streamdeck status`. Expect `PROTOTYPE_UNADOPTED` and exit 11.
|
|
280
|
+
3. `quoin-cockpit streamdeck install --dry-run` to see the plan.
|
|
281
|
+
4. In a terminal, run `quoin-cockpit streamdeck install` and answer the prerequisite questions.
|
|
282
|
+
5. `quoin-cockpit streamdeck status` should now exit 0 (informational lines are fine).
|
|
283
|
+
6. In Codex, open `/hooks` and review and trust the changed entries once.
|
|
284
|
+
7. Claude Code: new sessions use the managed hooks; running ones keep working through the forwarders.
|
|
285
|
+
8. Restart the agents the output lists when convenient, and restart Stream Deck when convenient. The
|
|
286
|
+
"Quoin — Live Agents" profile needs no re-import.
|
|
287
|
+
9. Check the keys.
|
|
288
|
+
|
|
289
|
+
Adoption keeps your config selections, merges the agent records into `state/agents`, moves surfaces to
|
|
290
|
+
`state/surfaces.json` and `errors.log` into the state folder, and leaves the legacy locks, `backups/`, `Buttons/`,
|
|
291
|
+
`prototype-backup.sdProfile` and the root `health.json` alone.
|
|
292
|
+
|
|
293
|
+
If a core prerequisite is missing the outcome is adoption pending: the prototype is left exactly as it was and
|
|
294
|
+
`status` exits 11. Fix the missing item and re-run `quoin-cockpit streamdeck install`.
|
|
295
|
+
|
|
296
|
+
## Uninstall and rollback
|
|
297
|
+
|
|
298
|
+
`quoin-cockpit streamdeck uninstall` removes the hook entries, the plugin (when its UUID matches), the versions, `current`,
|
|
299
|
+
the forwarders and the manifest. It leaves inert stubs where running agents still call the old hook paths, and it
|
|
300
|
+
keeps your config and state. A second run says "nothing to remove".
|
|
301
|
+
|
|
302
|
+
- `--purge` also removes the stubs, the config and the state. Restart the agents first; the output lists them.
|
|
303
|
+
It keeps `backups/` in the runtime folder and a legacy `controller.lock` in the state root, so remove those by
|
|
304
|
+
hand if you want nothing left.
|
|
305
|
+
- `--runtimes claude` or `--runtimes codex` removes only that runtime's entries and keeps the component.
|
|
306
|
+
- `--dry-run` prints what would be removed.
|
|
307
|
+
- Profiles are never removed; delete the profile in the Stream Deck app.
|
|
308
|
+
|
|
309
|
+
There is no automatic return to the prototype; its older `backups/` stay for reference.
|
|
310
|
+
|
|
311
|
+
## Privacy
|
|
312
|
+
|
|
313
|
+
Agent records keep only status and routing metadata: id, kind, session, pane, socket, project, status, pending
|
|
314
|
+
markers, the last event name, timestamps, the process id and its start time, and how the record arrived. They never
|
|
315
|
+
hold prompts, tool input or output, assistant text, transcript paths or notification bodies.
|
|
316
|
+
|
|
317
|
+
`errors.log` holds a timestamp, the exception type and a one-line message of at most 200 characters.
|
|
318
|
+
`health.json` holds `updated`, the agent count and the failure type, never a message.
|
|
319
|
+
|
|
320
|
+
## Troubleshooting
|
|
321
|
+
|
|
322
|
+
- "not found" inside panes the deck starts: in those sessions the agents and their own subprocesses (MCP servers
|
|
323
|
+
through `npx` or `uvx`, `gh`, `jq` and so on) see only the directories of the recorded binaries and tools
|
|
324
|
+
(python, node, zellij, claude, codex, ccr, lazygit, python3) plus the `PATH` Stream Deck was launched with, which
|
|
325
|
+
is launchd's minimal one. Run `quoin-cockpit streamdeck upgrade` from a shell where those tools resolve so they are
|
|
326
|
+
recorded, or install them next to a recorded binary. Tools that resolve only inside the Python environment
|
|
327
|
+
Quoin runs from (its virtual environment, or a `site-packages` path) are never recorded, so rebuilding that
|
|
328
|
+
environment cannot change the agents' `PATH`.
|
|
329
|
+
- "Agent Desk is not installed" on a key press: Agent Desk is missing; `quoin-cockpit streamdeck install` proposes it.
|
|
330
|
+
- The plugin does not show up: restart Stream Deck, then check `status` for `HEALTH_STALE` or `PLUGIN_NEVER_RAN`.
|
|
331
|
+
- `status` reports `MODE_DORMANT`: a core prerequisite was missing at install time; fix it and re-run
|
|
332
|
+
`quoin-cockpit streamdeck install`.
|
|
333
|
+
- Key presses are ignored while a picker or dialog from a previous press is open. That is by design.
|
|
334
|
+
- `agentdesk --if-exists attach` needs a terminal. The deck always starts it inside Ghostty; scripts without a
|
|
335
|
+
terminal should use `--if-exists new` or `--if-exists fail`.
|
|
336
|
+
- "no usable python is recorded" from `install` or `upgrade` means the deck would stay active without a working
|
|
337
|
+
interpreter. No component files, hooks or plugin were changed. Re-run with `--python PATH` (Python 3.9 or later),
|
|
338
|
+
or run `quoin-cockpit streamdeck uninstall`.
|
|
339
|
+
- The warning "ignored an unusable binary record in the operation record" after an interrupted run is
|
|
340
|
+
informational: that record was dropped and this run checked the tool again.
|
|
341
|
+
|
|
342
|
+
## What is still checked by hand
|
|
343
|
+
|
|
344
|
+
Everything that needs real Stream Deck hardware, a trusted Codex session or a real Zellij session is verified by
|
|
345
|
+
hand, not by the automated tests. [`VALIDATION.md`](VALIDATION.md) separates what the tests cover, what was checked
|
|
346
|
+
manually, and what is not yet verified, with the steps to check each remaining item.
|