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
18 changes: 9 additions & 9 deletions .claude/skills/readme-media/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ AW_DISCARD=$D $S/vm.sh down # копия удаляется
| `rows` | части строки по одной, потом виджет растягивают за край и возвращают |
| `look` | Light и своя тема, размер, две лампы в редакторе темы |
| `folders` | Tooling: две папки Claude Code выбираются в диалоге, в каждую ставятся хуки |
| `fullscreen` | терминал на весь экран и точка в углу; завершает остальные сессии |
| `fullscreen` | ручной сценарий для проверки маячка; в автоматическую запись не входит |
| `icon` | значок и одна сессия в терминале под ним |
| `counts` | то же в виде Counts; последним — оставляет значок в этом виде |

Перед `order`, `rows`, `look`, `folders` и `fullscreen` шаг перезапускает копию с настройками по
Перед `order`, `rows`, `look` и `folders` шаг перезапускает копию с настройками по
умолчанию (`stage.sh reset-settings`): ни один дубль не снимает следы предыдущего, и любой можно
переснять отдельно.

Весь сценарий записан в файлах, по которым новый интерфейс переснимается теми же командами:
`takes/*.sh` — что происходит на экране, `clips.txt` и `clips/*.keys` — что вырезать и куда
`native/devtool/src/media/takes/` — действия и расположение окон, `clips.txt` и `clips/*.keys` — что вырезать и куда
смотрит камера, `vm.sh shoot` — порядок. Править их нужно, только когда изменились подписи или
раскладка окон (ниже, «Когда изменился интерфейс»); новый ролик — строка в `clips.txt`.

Expand All @@ -84,7 +84,7 @@ list» ждёт дублей `start` и `menu`; если сцена поднят
Каждый дубль пишет `<дубль>.mov` и `<дубль>.marks` в `~/Library/Caches/agent-watch-media`
машины, `fetch` переносит их в тот же каталог на Mac; там же кадры, ролики и раскладки. Дубль
можно повторить отдельно: `vm.sh run takes/<дубль>.sh`; перед повторным `order`, `rows`,
`look`, `folders` или `fullscreen` — `vm.sh run stage.sh reset-settings`, как это делает `shoot`.
`look` или `folders` — `vm.sh run stage.sh reset-settings`, как это делает `shoot`.
Ролики режутся и по одному: `scripts/devtool media cut --sheet clip-menu`.
Если сцена встала на полпути, `vm.sh shoot stage` поднимает её заново и снимает всё, что после.

Expand Down Expand Up @@ -160,10 +160,10 @@ list» ждёт дублей `start` и `menu`; если сцена поднят
- **Чужого в кадре нет:** уведомлений, файлов рабочего стола (они видны на любом столе — сцену
целиком закрывают окна), почты и названия организации (их прячет `IS_DEMO=1`), путей, кроме
`~/CommonProjects/agent-watch`, строк чужих сессий (виджет и сводка меню).
- **Размер и лишние файлы.** `scripts/devtool media cut --publish` печатает размер всех роликов — сейчас около
6,4 МБ на тринадцать — и называет ролик, который есть в `docs/images`, но не в `clips.txt` или
README: переименованный ролик оставлял там старый файл. Вырос ролик — проверить, не стоит ли в
кадре что-то мигающее, или поднять `CRF`.
- **Размер и лишние файлы.** До записи запустите `scripts/devtool check-docs`: он сверяет
ссылки в README, `clips.txt` и файлы в `docs/images`. После монтажа
`scripts/devtool media cut --publish` печатает общий размер. Вырос ролик — проверить,
не стоит ли в кадре что-то мигающее, или поднять `CRF`.
- **После пуша ветки** открыть README на её странице на GitHub и только потом переносить в main:
показ AVIF на GitHub проверяется только так.

Expand All @@ -179,7 +179,7 @@ list» ждёт дублей `start` и `menu`; если сцена поднят
- **Подписи.** Сценарий находит элемент по тексту Accessibility: `click find <конец текста>` или
`click findc <часть текста>`. Дерево Accessibility держит пункты меню и закрытым, и поиск по
концу текста берёт первое совпадение — «Hide Widget» тоже кончается на «Widget».
- **Раскладка окон.** Координаты окон в `takes/*.sh` — точки экрана; сцена дубля (`STAGE`) — его
- **Раскладка окон.** Координаты окон в `native/devtool/src/media/takes/` — точки экрана; сцена дубля (`STAGE`) — его
кадр. Рамки камеры в `clips/*.keys` — пиксели сцены: `(точка − начало сцены) × 2`. Строка
`.keys`: момент (`@отметка±секунды`), x, y, ширина рамки; высота следует из размера ролика.
Одна строка — камера стоит; между двумя разными строками она плавно едет. Клики сценария
Expand Down
4 changes: 1 addition & 3 deletions .claude/skills/readme-media/scripts/clips.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# One clip a line: name, take, in, out, width, height, camera keys, and `fade=<seconds>` where the
# loop would jump from a busy last frame to a calm first one. In and out are marks of the take
# (`@mark±seconds`); the size is twice the width the README shows it at. The keys hold the whole
# scene and a focus on what changes; a focus goes no closer than pixel for pixel, but for the
# full-screen dot, which is 8 points.
# scene and a focus on what changes; a focus goes no closer than pixel for pixel.
clip-start start @scroll-2.2 @done+4.0 1600 1000 clips/start.keys fade=1
clip-menu menu @open-menu-1.2 @escape+1.4 1600 1000 clips/menu.keys
clip-icon icon @ask-1.0 @done+2.2 1280 800 clips/icon.keys
clip-counts counts @ask-1.0 @done+2.2 1280 800 clips/icon.keys
clip-fullscreen fullscreen @ask-1.2 @done+2.0 1600 1000 clips/fullscreen.keys
clip-order order @order-1.0 @drag+3.6 1600 1000 clips/order.keys
clip-rows rows @rows-0.8 @on-model+2.2 1600 1000 clips/rows.keys
clip-resize rows @wider-2.4 @back+1.6 1600 1000 clips/resize.keys
Expand Down
13 changes: 0 additions & 13 deletions .claude/skills/readme-media/scripts/clips/fullscreen.keys

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/verify-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: verify-plugin

on:
push:
branches: ["**"]
branches: ["main"]
paths:
- "ide-plugin/**"
- ".github/workflows/verify-plugin.yml"
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: verify

on:
push:
branches: ["**"]
branches: ["main"]
pull_request:
workflow_dispatch:

Expand All @@ -12,12 +12,7 @@ concurrency:

jobs:
verify:
# Both systems the app is used on: they lay out the same windows differently.
strategy:
fail-fast: false
matrix:
os: [macos-15, macos-26]
runs-on: ${{ matrix.os }}
runs-on: macos-26
steps:
- uses: actions/checkout@v5

Expand Down
8 changes: 4 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ can be tested in `AgentWatchCoreTests` without launching an application.
holds it. To create it: Keychain Access → Certificate Assistant → Create a Certificate…, Self
Signed Root, Code Signing. It need not be trusted, so `security find-identity -v` will not list
it.
- **`task verify` rebuilds `dist/` from scratch**, so hooks installed from `dist/AgentWatch.app`
point at a bundle that will be replaced. Copy it to `/Applications` and install from the copy.
- **`task verify` replaces `dist/AgentWatch.app`.** Install hooks from a copy in
`/Applications` so they keep pointing at the installed bundle.
- **A debug copy that installs hooks needs `AGENT_WATCH_HOME_DIR` beside `AGENT_WATCH_SUPPORT_DIR`.**
It names the home that holds `.claude` and `.codex`. `HOME` cannot do it: Foundation returns the
account's home whatever `HOME` says, while both agents follow `HOME`. Give the same value to a
sender you run by hand, or it reports its default folder as another one.
- **One Agent Watch runs at a time.** Quit an installed copy before running a build:
`osascript -e 'quit app "AgentWatch"'`.
- **`task dev` runs beside the installed app.** Dev has its own bundle identity, settings and
socket. Quit the installed app before replacing the copy it is running from.
- **Every worktree runs the gates of its own branch, so `core.hooksPath` stays unset.** `task setup`
puts a small dispatcher for each hook into the shared `.git/hooks/`; it runs `.githooks/<hook>` of
the worktree Git is working in. Claude rewrites `core.hooksPath` when it creates a worktree:
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

**See which Claude Code or Codex session needs you, without switching between terminals.**

A menu bar app for Apple Silicon Macs with macOS 14 or newer. Alpha: used every day, still changing.
A menu bar app for Apple Silicon Macs. Alpha: used every day, still changing.
Runtime checks use the macOS version installed on the development Mac.
[Download](https://github.com/glockbender/agentwatcher/releases) · [Install](#install) ·
[What it works with](#what-it-works-with) · [Troubleshooting](TROUBLESHOOTING.md)

Expand Down Expand Up @@ -254,6 +255,10 @@ Trash. Each proposed action names the folder and explains why it qualifies.
a `PreToolUse` entry in that profile. App state lives in `~/Library/Application Support/AgentWatch/`.
- The updater contacts GitHub to check for and download releases. When handling a push, the Git
tool contacts the project’s configured remote to check its refs and perform an approved change.
- While a Claude session is working, Agent Watch can ask Claude Code for updated plan limits
using the sign-in for its default profile. It does this at most once every 30 minutes when
the last reading is stale. The request sends no prompt and counts as a Claude Code session
in the organisation’s usage metrics.

Details: [installing into the agents](docs/agent-install.md), [architecture](docs/architecture.md).

Expand Down
Loading
Loading