Repository navigation
Conversation
| public async componentDidMount() { | ||
| const zen = await this.octo.zen.read() | ||
| console.log('zen', zen) | ||
| this.state = {selectedRow: -1, user: props.usersStore.getUsers()[0]} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Just pulled this down to have a play and it seems to launch a second instance of the app when performing the callback (this is from Edge in Win10). I gather that's TBC, just wanted to call it out here. EDIT: of course someone has already gone ahead and implemented this
Oh. I got you bb. |
|
See #35 to make Windows (and I suppose Linux) work with this new OAuth flow |
manage single instance of desktop app
|
Alright, I think this is ready for 👀 |
|
FWIW, I went the browser OAuth route because it was both easy (less UI) and necessary (for Enterprise customers with SSO). Further down the road we can talk about whether we want to provide authentication in-app as well. |
| const DefaultHeaders: {[key: string]: string} = { | ||
| 'Accept': 'application/vnd.github.v3+json, application/json', | ||
| 'Content-Type': 'application/json', | ||
| 'User-Agent': `${app.getName()}/${app.getVersion}` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🍎 |
|
🍏 |
Релиз каждой платформы теперь запускается своим файлом: прогон Windows- архитектуры больше не пересобирает и не перезаписывает linux-фид, а linux- артефакт можно обновить, не собирая Windows. Что изменено? - `.github/workflows/release-fork.yml` → `release-fork-windows.yml` (+6/-79): переименование через `git mv` (история файла сохранена), `name: Release Fork (Windows)`, из файла вырезана джоба `linux`. Десять шагов Windows-прогона (`Build production app`, `Guard the feed before packaging`, `Package Windows installer`, `Guard the shortcut name`, `Write build info and release notes`, `Zip portable bundle`, `Publish to GitHub Release` и три служебных) перенесены байт-в-байт, вместе со всеми комментариями, где лежат замерные строки. В шапке — четыре строки о том, куда уехала джоба и почему. - `.github/workflows/release-fork-linux.yml` (+93/-0): `name: Release Fork (Linux)`, `on: workflow_dispatch` без входов (у portable-сборки одна архитектура, выбирать нечего), те же `NODE_VERSION`/`RELEASE_CHANNEL` в `env`, джоба `linux` тем же телом. Правлены только три перекрёстных комментария, которые ссылались на «шаг установки выше» и на «win-джобу»: теперь они называют `release-fork-windows.yml` полным путём, потому что соседа в файле больше нет. `workflow_dispatch` записан маппингом, как в `draft-release.yml` и `triage-scheduled-tasks.yml`, а не скаляром. - `docs/fork-releases.md` (+20/-9): команды запуска в обеих секциях, абзац «Прогон делает две джобы» переписан на «релиз каждой платформы живёт своим файлом» с перечислением того, что раньше терялось; в секции локальной linux-сборки — строки о том, что в тег публикует `release-fork-linux.yml`, а сборка в контейнере не публикует ничего; в «Схеме блока» оба представления теперь загружает каждый релизный workflow. - `README.md` (+3/-2), `docs/fork-oauth-client.md` (+8/-6), `gdlab/release.sh` (+3/-3): пересъёмка ссылок на файл и имя workflow, включая номер строки `RELEASE_CHANNEL` (`release-fork.yml:25` → `release-fork-windows.yml:30`), и новая строка таблицы «Как собрать» для linux-прогона. Зачем? Один workflow собирал обе платформы сразу: джоба `linux` не гейтится входом `arch`, поэтому прогон `arch=arm64` (задача desktop#34) неизбежно перезаписывал ассеты и notes тега `latest-linux-x64` — фида, к которому arm64-клиент не обращается. Обратная связка тоже мешала: обновить linux-артефакт можно было только вместе с девятью минутами Windows-сборки. Разделение убирает обе помехи, не меняя ни одного шага и ни одного публикуемого артефакта. Замеры? Сняты 09.10.2026 в `docker exec gdlab` (`/work` — это же рабочее дерево): - `js-yaml` разбирает оба файла, `jobs` = `windows` и `linux`: ни одна джоба не осталась в двух местах. - Склейка списков шагов двух файлов байт-в-байт равна списку шагов `git show HEAD:.github/workflows/release-fork.yml`: 18 = 10 + 8, `reunited equals orig: true` — шаг не потерялся и не переписался. - `node_modules/.bin/prettier --check` по обоим yml: «All matched files use Prettier code style» (гейт `yarn prettier` покрывает `*.yml`). - `bash -n gdlab/release.sh` — ok, там правлены только комментарии и подсказка. - `grep -rn "release-fork.yml"` по репозиторию: единственное вхождение — намеренный исторический рассказ в `docs/fork-releases.md:148`, висячих ссылок нет. - `grep -rn "DESKTOP_OAUTH_" .github`: только `ci.yml:37-38`, `116-118`, `196-198`, то есть утверждение `docs/fork-oauth-client.md` о незадаанных реквизитах после появления второго файла верно и проверено заново, а не унаследовано. - `tsc --noEmit` и тесты не запускались: дифф не трогает `.ts`/`.tsx`, тронуты только yml, md и bash-комментарии. Принятый остаток? - Преамбула (checkout, setup-node, `yarn install` с гашением DEP0169/DEP0040) сознательно продублирована в двух файлах: reusable-workflow ради трёх шагов добавил бы слой `uses:`/`secrets: inherit` и спрятал бы платформенные различия, которые и есть смысл разделения. - Историю прогонов старого «Release Fork» GitHub продолжит показывать под прежним именем файла: записи Actions не переименовываются. - `gdlab/release.sh` по-прежнему собирает linux локально и ничего не публикует, публикация в тег — только workflow. - Пуш и запуск релизных прогонов (в том числе `arch=arm64` из desktop#34) — за пользователем, здесь только файлы. - Отдельная неточность, не связанная с разделением: `docs/fork-releases.md:90-93` утверждает, что оба опубликованных тега собраны из `6075cf5da8`, а по API 08.10.2026 `latest-win-x64` собран из `5e33127f00` (builtAt 20:04:28Z), `latest-linux-x64` — из `11a0cf6941`. Мерка устарела, но чинить её здесь нельзя: этот коммит о структуре workflow. Итог Каждый релизный прогон пишет ровно один тег фида, и сборка нужной архитектуры больше не зависит от чужой платформы. Держит это структура файлов, а не условие внутри одной джобы. --- EN: The fork's release workflow is split per platform Each platform now has its own workflow file: a Windows architecture run no longer rebuilds or overwrites the linux feed, and the linux artifact can be republished without building Windows. What changed? - `.github/workflows/release-fork.yml` → `release-fork-windows.yml` (+6/-79): renamed with `git mv` so the file history survives, `name: Release Fork (Windows)`, the `linux` job cut out. The ten Windows steps — `Build production app`, `Guard the feed before packaging`, `Package Windows installer`, `Guard the shortcut name`, `Write build info and release notes`, `Zip portable bundle`, `Publish to GitHub Release` and three service steps — moved byte-for-byte, comments with measurements included. The header gained four lines on where the job went and why. - `.github/workflows/release-fork-linux.yml` (+93/-0): `name: Release Fork (Linux)`, `on: workflow_dispatch` with no inputs (a portable build has one architecture, there is nothing to choose), the same `NODE_VERSION` / `RELEASE_CHANNEL` env, and the `linux` job with the identical body. Only three cross-referencing comments were reworded: they pointed at "the install step above" and at "the win job", and now name `release-fork-windows.yml` by full path because the neighbour is gone. `workflow_dispatch` is written as a mapping, like `draft-release.yml` and `triage-scheduled-tasks.yml`, not as a scalar. - `docs/fork-releases.md` (+20/-9): the run commands in both sections, the "the run makes two jobs" paragraph rewritten as "each platform lives in its own file" with what used to be lost spelled out, lines in the local linux build section saying the tag is published by `release-fork-linux.yml` while the container build publishes nothing, and the build-info block section now naming both release workflows. - `README.md` (+3/-2), `docs/fork-oauth-client.md` (+8/-6), `gdlab/release.sh` (+3/-3): references to the file and the workflow name re-taken, including the `RELEASE_CHANNEL` line number (`release-fork.yml:25` → `release-fork-windows.yml:30`), plus a new "How to build" table row for the linux run. Why? A single workflow built both platforms at once: the `linux` job is not gated by the `arch` input, so an `arch=arm64` run (task desktop#34) unavoidably overwrote the assets and the notes of the `latest-linux-x64` tag — a feed no arm64 client reads. The other coupling hurt too: the linux artifact could only be refreshed together with nine minutes of Windows build time. Splitting removes both without changing a single step or a published artifact. Verified Taken 09.10.2026 in `docker exec gdlab` (`/work` is this working tree): - `js-yaml` parses both files and `jobs` come out as `windows` and `linux`, so no job survived in two places. - Concatenating the step lists of the two files equals the step list of `git show HEAD:.github/workflows/release-fork.yml`: 18 = 10 + 8, `reunited equals orig: true` — not one step lost or rewritten. - `node_modules/.bin/prettier --check` on both yml files: "All matched files use Prettier code style" (`yarn prettier` covers `*.yml`). - `bash -n gdlab/release.sh` — ok, only comments and a hint changed there. - `grep -rn "release-fork.yml"` across the repository: the single hit is the deliberate historical note at `docs/fork-releases.md:148`, no dangling links. - `grep -rn "DESKTOP_OAUTH_" .github`: only `ci.yml:37-38`, `116-118`, `196-198`, so the claim in `docs/fork-oauth-client.md` about unset OAuth credentials still holds after the second file appeared — re-checked, not inherited. - `tsc --noEmit` and the test suite were not run: the diff touches no `.ts`/`.tsx`, only yml, md and bash comments. Accepted remainder - The preamble (checkout, setup-node, `yarn install` suppressing DEP0169 and DEP0040) is duplicated in both files on purpose: a reusable workflow for three steps would add a `uses:` / `secrets: inherit` layer and hide the platform differences that are the whole point of the split. - GitHub will keep showing the run history of the old "Release Fork" under its previous name; Actions records are not renamed. - `gdlab/release.sh` still builds linux locally and publishes nothing; writing to a tag is only what a workflow does. - Pushing and launching the release runs (including `arch=arm64` from desktop#34) remain with the user; this commit contains files only. - One inaccuracy unrelated to the split: `docs/fork-releases.md:90-93` says both published tags were built from `6075cf5da8`, while the API on 08.10.2026 reports `latest-win-x64` from `5e33127f00` (builtAt 20:04:28Z) and `latest-linux-x64` from `11a0cf6941`. The measurement went stale; fixing it here would mix it into a commit about workflow structure. Result Every release run writes exactly one feed tag, and building a given architecture no longer depends on the other platform. The file structure holds that, rather than a condition inside one job.
Раздел «Где взять собранное» называл оба опубликованных тега собранными из `6075cf5da8`; прогон 08.10 вечером это опроверг, и заодно стало видно, что один прогон обновил обе платформы сразу. Что изменено? - `docs/fork-releases.md` (+7/-3): дата мерки — 09.10.2026; хеш сборки обоих тегов — `c8dbb984f7` (из блока `fork-build-info` в notes релиза), версия та же — `3.6.7-beta3`; добавлены `builtAt` обеих сборок (21:29:51Z и 21:41:34Z) и вывод, что это один и тот же прогон — то есть ссылка на раздел о разделении джоб, и команда arm64-прогона приведена к новому имени файла (`gh workflow run release-fork-windows.yml -f arch=arm64 -f first_run=true`). Зачем? Документ — единственный источник, по которому судят, что уже роздано: фраза «оба тега собраны из 6075cf5» после вечерних прогонов стала неверной, а с ней неверным и ответ на вопрос «до какого коммита доживает фид». Заодно заметка про один прогон на обе платформы — это доказательство полезности вчерашнего разделения workflow, а не только моё утверждение. Замеры? Снято 09.10.2026 из API GitHub (`releases?per_page=10`, owner `bahooo22`, repo `github_desktop`): в списке ровно два релиза — `latest-win-x64` и `latest-linux-x64`; в их `body` блоки `<!--fork-build-info {"sha":"c8dbb984f7…","version":"3.6.7-beta3","builtAt":…}-->` с `builtAt` 2026-10-08T21:29:51.446Z и 2026-10-08T21:41:34.510Z. `latest-win-arm64` в списке отсутствует, то есть 404 из задачи desktop#34 подтверждён повторно. Логи самого прогона не читала — вывод строится на содержимом релизов. Гейты: `*.md` в `.prettierignore`, кода не касалось, поэтому prettier/eslint/tsc и тесты под этот дифф не гонялись; мерка — `git diff --numstat` (7/3, файл по-прежнему LF). Принятый остаток? `published_at` обоих релизов — 08.10 (тег переиспользуется, дата создания не меняется), поэтому в тексте дата создания прогона не приводится: только `builtAt` из notes, который перезаписывается каждым прогоном. Итог Раздел «Где взять собранное» теперь описывает фид тем, каким его видит API, и содержит команду arm64-прогона под новым именем workflow. --- EN: Release documentation: re-taken measurement of which commits the feed tags hold The "Где взять собранное" section named both tags as built from `6075cf5da8`; the evening run on 08.10 disproved that, and it also showed one run updating both platforms at once. What changed? - `docs/fork-releases.md` (+7/-3): measurement date is 09.10.2026; the build hash of both tags is `c8dbb984f7` (read from the `fork-build-info` block in the release notes), version unchanged at `3.6.7-beta3`; added both `builtAt` values (21:29:51Z and 21:41:34Z) and the conclusion that they come from the same run — which points at the section about splitting the jobs — and the arm64 command now uses the new file name (`gh workflow run release-fork-windows.yml -f arch=arm64 -f first_run=true`). Why? The document is the only place that says what has already been shipped: after the evening runs both tags were from `c8dbb984f7`, and keeping `6075cf5da8` would make every later answer to "how far does the feed reach" wrong. The same-run note is also evidence that yesterday's workflow split was worth it, not just my claim. Verified Taken 09.10.2026 from the GitHub API (`releases?per_page=10`, owner `bahooo22`, repo `github_desktop`): exactly two releases are listed, `latest-win-x64` and `latest-linux-x64`, whose bodies carry `<!--fork-build-info {"sha":"c8dbb984f7…","version":"3.6.7-beta3","builtAt":…}-->` with builtAt 2026-10-08T21:29:51.446Z and 2026-10-08T21:41:34.510Z. `latest-win-arm64` is absent, so the 404 from task desktop#34 is confirmed again. I did not read the run logs — the conclusion comes from the release contents. Gates: `*.md` is in `.prettierignore` and no code is touched, so prettier, eslint, tsc and the tests were not run for this diff; the measurement is `git diff --numstat` (7/3, the file stays LF). Accepted remainder `published_at` of both releases is still 08.10 (the tag is reused, creation date does not move), so the text quotes no run creation date — only `builtAt` from the notes, which every run rewrites. Result The "where to get a build" section now describes the feed as the API sees it, and carries the arm64 command under the new workflow name.
…ктуры Прогон `arch=arm64` 09.10.2026 упал на `yarn build:prod` ещё до первого webpack-компилята: `Cannot find module '@koromix/koffi-win32-arm64'`, rc=2. В `jobs.windows` добавлен шаг, который досстанавливает платформенные пакеты цели. Что изменено? - `.github/workflows/release-fork-windows.yml` (+65/-0): новый шаг `Install target-architecture native runtimes` между `yarn install` и `Build production app`, `shell: bash`, `TARGET_ARCH` из входа `arch`. Функция `add_target_runtime(parent, prefix)` собирает имя `$prefix-<process.platform>-$TARGET_ARCH`, берёт версию из `optionalDependencies` уже установленного родителя и, если директории нет, зовёт `yarn add --optional --ignore-platform --ignore-scripts` — тот же приём, что в апстримном `.github/actions/setup-ci-environment/action.yml:41-53`. Родителя два: `koffi` (→ `@koromix/[email protected]`) и `@github/copilot-sdk` (→ `…[email protected]`). Отдельного отсутствующего ключа в `optionalDependencies` шаг не прощает: падает с `::error::` и названием цели. Финальная проверка разделена: `koffi` резолвится тем же `require.resolve(…, { paths: ['./app/node_modules'] })`, что делает сборка (`script/webpack-koffi.ts:12`), а пакет SDK проверяется наличием директории. Зачем? Yarn 1 выбирает `optionalDependencies` по машине, на которой запускается: он сверяется с `process.arch`, а не с `npm_config_arch`, поэтому на windows-раннере (x64) платформенный пакет для arm64 не появляется никогда — как раз тогда, когда `app/webpack.common.ts:72` просит `script/webpack-koffi.ts` собрать целевой `koffi`: там резолв сделан заранее и назван решением «отсутствующая цель должна ронять сборку, а не давать приложение без SDK». То есть arm64-фид (desktop#34) был недостижим не из-за отсутствия тега, а из-за setup'а зависимостей. Версии берутся из `optionalDependencies` родителей, поэтому состав `node_modules` не уезжает от `app/yarn.lock`, а `--ignore-scripts` не даёт нативным пакетам ничего собирать. Для `arch=x64` шаг — no-op: его пакет уже положен обычным install. Замеры? Сняты 09.10.2026 в `docker exec gdlab` (`/work` — это же рабочее дерево). Тело шага извлекалось из YAML (`js-yaml`), а не пересказывалось, и гонялось как есть: - `TARGET_ARCH=x64` → rc=0: `@koromix/[email protected] уже установлен этим install`, `@github/[email protected] уже установлен этим install`, `Целевые нативные пакеты для linux/x64 на месте.` - `TARGET_ARCH=s390x` (цели нет ни у одного родителя) → rc=1 с текстом `::error::В koffi нет optionalDependencies для @koromix/koffi-linux-s390x…` — падение до любой установки, ничего не дописано. - Находка по ходу замера: первая версия проверки резолвила оба пакета одинаково и на x64 дала rc=1 — у `@github/copilot-sdk-linux-x64` нет поля `main` (`node -p` по его package.json: `main= undefined`), то есть `require.resolve` на нём падает даже когда пакет на месте. Остаться такой проверка означало бы сломать уже рабочий x64-прогон; проверка разделена, и после раздела x64 снова rc=0. - `prettier --check .github/workflows/release-fork-windows.yml` — «All matched files use Prettier code style»; `js-yaml` разбирает файл, шагов в `jobs.windows` стало 11 (было 10). - Механика установки проверена на третьей цели (`linux-riscv64`): `yarn add` отработал (`Done in 38.44 s`) и записал `optionalDependencies` в `app/package.json` (+3 строки) — изменение откачено `git restore`, `app/yarn.lock` не тронут. Повторять эту ветку в bind-дереве нельзя, для неё нужен detached worktree. Принятый остаток? - Живого arm64-артефакта всё ещё нет: фикс доказан на извлечённом теле шага и на хостовой архитектуре, а досстановку `win32-arm64` может подтвердить только прогон на windows-раннере. До зелёного прогона `latest-win-arm64` не существует, и задача desktop#34 остаётся открытой. - `release-fork-linux.yml` не тронут: он собирается на x64-раннере, где цель совпадает с хостом, и шаг был бы там чистым расходом. - Шум `DEP0169`/`DEP0040` от `yarn add` в этом шаге не гасится: `NODE_OPTIONS` задан на шагах install и build, а шаг досстановки добавлен после них; если прогон покажет нечитаемый лог — флаг добавляется одной строкой. Итог Архитектура цели перестаёт зависеть от архитектуры раннера: `koffi` и пакет SDK досстанавливаются под неё до сборки, а падение покрывается проверкой, которая повторяет именно тот резолв, на котором сборка и вставала. --- EN: Windows build of the fork: installing the target architecture's native packages The `arch=arm64` run of 09.10.2026 died in `yarn build:prod` before the first webpack compilation: `Cannot find module '@koromix/koffi-win32-arm64'`, rc=2. A step was added to `jobs.windows` that installs the platform packages of the target. What changed? - `.github/workflows/release-fork-windows.yml` (+65/-0): a new step `Install target-architecture native runtimes` between `yarn install` and `Build production app`, `shell: bash`, `TARGET_ARCH` from the `arch` input. The `add_target_runtime(parent, prefix)` function builds `$prefix-<process.platform>-$TARGET_ARCH`, reads the version out of the `optionalDependencies` of the already-installed parent, and, if the directory is missing, runs `yarn add --optional --ignore-platform --ignore-scripts` — the same move as upstream's `.github/actions/setup-ci-environment/action.yml:41-53`. There are two parents: `koffi` (→ `@koromix/[email protected]`) and `@github/copilot-sdk` (→ `…[email protected]`). A missing key in `optionalDependencies` is not tolerated: the step fails with `::error::` and the target name. The final check is split: `koffi` is resolved with the very `require.resolve(…, { paths: ['./app/node_modules'] })` the build performs (`script/webpack-koffi.ts:12`), while the SDK package is checked by directory. Why? Yarn 1 picks `optionalDependencies` by the machine it runs on: it compares `process.arch`, not `npm_config_arch`, so on a windows runner (x64) the arm64 platform package never appears — exactly when `app/webpack.common.ts:72` asks `script/webpack-koffi.ts` to bundle the target `koffi`, which resolves eagerly and is documented as "a missing target must fail the build rather than ship an app without the SDK". The arm64 feed (desktop#34) was unreachable because of dependency setup, not because of a missing tag. Versions come from the parents' `optionalDependencies`, so `node_modules` does not drift from `app/yarn.lock`, and `--ignore-scripts` keeps the native packages from building anything. For `arch=x64` the step is a no-op: its package is already placed by the regular install. Verified Taken 09.10.2026 in `docker exec gdlab` (`/work` is this working tree). The step body was extracted from the YAML (`js-yaml`) rather than retold, then executed verbatim: - `TARGET_ARCH=x64` → rc=0: `@koromix/[email protected] уже установлен этим install`, `@github/[email protected] уже установлен этим install`, `Целевые нативные пакеты для linux/x64 на месте.` - `TARGET_ARCH=s390x` (neither parent knows the target) → rc=1 with `::error::В koffi нет optionalDependencies для @koromix/koffi-linux-s390x…` — failing before any install, nothing written. - Finding during the measurement: the first version of the check resolved both packages the same way and returned rc=1 on x64 — `@github/copilot-sdk-linux-x64` has no `main` field (`node -p` on its package.json: `main= undefined`), so `require.resolve` fails on it even when the package is present. Leaving the check shared would have broken the already working x64 run; it is now split, and x64 returns rc=0 again. - `prettier --check .github/workflows/release-fork-windows.yml` — "All matched files use Prettier code style"; `js-yaml` parses the file and `jobs.windows` has 11 steps (was 10). - The install mechanics were checked on a third target (`linux-riscv64`): `yarn add` worked (`Done in 38.44 s`) and wrote `optionalDependencies` into `app/package.json` (+3 lines) — reverted with `git restore`, `app/yarn.lock` untouched. That branch must not be repeated in the bind-mounted tree; it needs a detached worktree. Accepted remainder - There is still no live arm64 artifact: the fix is proven on the extracted step body and on the host architecture, and only a windows-runner run can confirm the `win32-arm64` installation. Until a green run, `latest-win-arm64` does not exist and task desktop#34 stays open. - `release-fork-linux.yml` is untouched: it builds on an x64 runner where target equals host, so the step there would be pure cost. - `DEP0169`/`DEP0040` noise from `yarn add` in this step is not suppressed: `NODE_OPTIONS` is set on the install and build steps, and this step sits after them; if the log turns out unreadable, the flag is one line to add. Result The target architecture stops depending on the runner's architecture: `koffi` and the SDK package are installed for the target before the build, and the failure is covered by a check that repeats exactly the resolution the build was dying on.
Что изменено? - `AGENTS.md` (+34/-0): теперь англоязычный CI-свод форка — две строки о самом форке (локализационное ядро `app/src/lib/l10n` и каталоги `app/locales/en.json`, `ru.json`, `uk.json`), затем обязательные проверки по фактическим скриптам `package.json`: `yarn lint` (он же подхватывает `--rulesdir ./eslint-rules` через `yarn eslint`, поэтому отдельный bare-eslint вызов не предписан), `yarn test` с точечной формой `yarn test app/test/unit/<file>-test.ts`, `yarn test:script`, `yarn test:eslint`, четыре `yarn l10n:*`, `yarn check:eslint` и `yarn markdownlint`; дальше указатели на `.github/copilot-instructions.md`, `docs/contributing/setup.md`, `docs/contributing/styleguide.md` и `docs/fork-releases.md` и одна строка о том, что заметки агентов намеренно вне дерева. - Блок «Медленные Node-тесты» (17 строк старого файла) из `AGENTS.md` убран и перенесён дословно в `agents/instructions/node-tests.md` (1721 байт, игнорируется правилом `.gitignore:33`) — сверка `diff` строк 3-17 прежнего файла с этим документом дала пустой вывод. - `agents/instructions/commit-ritual.md` (16 строк, 1509 байт, вне git): правило единой поверхности тел коммита — только `.git/MSG_<slug>` на время прогона, затем `msg-<hash>.txt` в хранилище сессии; записаны фактические остатки 09.10: 27 файлов в `.git/MSG_*` и 13 в `tmp/MSG_*`. Зачем? Файл был в игноре, и сторонний контрибьютор или CI не могли узнать, какие проверки обязан пройти коммит в форке с собственным слоем переводов; при этом русские ритуалы агента не должны попадать в публичное дерево форка и в чужие диффы. Замеры? - `git check-ignore -v AGENTS.md` → пустой вывод, rc=1: файл больше не игнорируется. - `git diff HEAD --numstat -- .gitignore` → пусто: строка `AGENTS.md` не была в истории, её добавляло незакоммиченное рабочее дерево, поэтому правка вернула `.gitignore` к состоянию HEAD и в этот коммит он не входит. Снято 09.10 после последней правки файла. - `node_modules/.bin/markdownlint AGENTS.md --config .markdownlint.js --rules .markdownlint-rules.js` в контейнере `gdlab` (каталог `/work`) → rc=0, нарушений нет. - `node_modules/.bin/prettier --check AGENTS.md` там же → rc=0; дополнительно `.prettierignore:17` = `*.md`, то есть полный `yarn lint` на этот файл не влияет. - Перенос блока: `diff` строк 3-17 прежнего `AGENTS.md` против `agents/instructions/node-tests.md` → пустой вывод. - Не зелёное: `python agents/test_report_archive.py` на хосте (Python 3.14.5) печатает «Ran 0 tests in 0.000s» при rc=0 — самозапуск собирает только потомков `unittest.TestCase`, а классы в файле в pytest-стиле. Код навыка в этом коммите не меняется. Принятый остаток? - Расхождения SKILL.md с его реализацией (`agents/report_archive.py:40` ищет JSONL по относительному пути `subagents/`, обещанного `agent-report-<slug>-<id8>.md` в коде нет, кириллический slug вырезается фильтром `[^a-z0-9]+`) не чинятся: правка поведения модуля и его теста — отдельное решение пользователя. - Имена обёрток в панели Actions появятся только после первого прогона (задача desktop#34); пуш — за вами. Итог `AGENTS.md` теперь отслеживаемый и описывает только проверки, а ритуалы агента живут в `agents/instructions/` и доказанно не попадают в дерево (`.gitignore:33`, `git ls-files agents` пуст). --- EN: AGENTS.md — CI checks only, rituals moved to agents/instructions/ User decision from 09.10: bring the file back under version control, but keep in it exactly what anyone committing into this tree must run. Agent rituals moved out to the uncommitted `agents/` layer. What changed? - `AGENTS.md` (+34/-0): now an English CI summary of the fork — two lines about the fork itself (localization core `app/src/lib/l10n` and the `app/locales/en.json`, `ru.json`, `uk.json` catalogs), then the required checks taken from the actual `package.json` scripts: `yarn lint` (which already passes `--rulesdir ./eslint-rules` through `yarn eslint`, so no bare eslint invocation is prescribed), `yarn test` with the narrow form `yarn test app/test/unit/<file>-test.ts`, `yarn test:script`, `yarn test:eslint`, the four `yarn l10n:*` scripts, `yarn check:eslint` and `yarn markdownlint`; then pointers to `.github/copilot-instructions.md`, `docs/contributing/setup.md`, `docs/contributing/styleguide.md` and `docs/fork-releases.md`, plus one line stating that agent notes are deliberately kept out of the tree. - The "Slow Node tests" block (17 lines of the previous file) is removed from `AGENTS.md` and moved verbatim into `agents/instructions/node-tests.md` (1721 bytes, ignored by `.gitignore:33`) — diffing lines 3-17 of the old file against that document produced no output. - `agents/instructions/commit-ritual.md` (16 lines, 1509 bytes, outside git): the single-surface rule for commit bodies — only `.git/MSG_<slug>` for the duration of a run, then `msg-<hash>.txt` in the session store; records the measured leftovers of 09.10: 27 files in `.git/MSG_*` and 13 in `tmp/MSG_*`. Why? The file was ignored, so a third-party contributor or CI could not learn which checks a commit in a fork with its own translation layer must pass; at the same time the agent's Russian rituals must not enter the fork's public tree or unrelated diffs. Verified - `git check-ignore -v AGENTS.md` → no output, rc=1: the file is no longer ignored. - `git diff HEAD --numstat -- .gitignore` → empty: the `AGENTS.md` line was never in history, an uncommitted working tree had added it, so the edit returned `.gitignore` to its HEAD state and the file is not part of this commit. Measured on 09.10 after the last edit. - `node_modules/.bin/markdownlint AGENTS.md --config .markdownlint.js --rules .markdownlint-rules.js` inside the `gdlab` container (`/work`) → rc=0, no violations. - `node_modules/.bin/prettier --check AGENTS.md` there → rc=0; additionally `.prettierignore:17` = `*.md`, so the full `yarn lint` does not touch this file. - Block move: diffing lines 3-17 of the previous `AGENTS.md` against `agents/instructions/node-tests.md` → no output. - Not green: `python agents/test_report_archive.py` on the host (Python 3.14.5) prints "Ran 0 tests in 0.000s" while returning rc=0 — the self-runner collects only `unittest.TestCase` descendants and the classes in the file are written pytest-style. The skill's code is unchanged here. Accepted remainder - The mismatches between the skill's SKILL.md and its implementation (`agents/report_archive.py:40` looks up JSONL under the relative path `subagents/`, the promised `agent-report-<slug>-<id8>.md` name is not in the code, and a Cyrillic slug is stripped by the `[^a-z0-9]+` filter) are not fixed: changing the module's behavior and its test is a separate user decision. - Wrapper names in the Actions panel appear only after the first run (task desktop#34); the push is yours. Result `AGENTS.md` is tracked again and describes only the checks, while agent rituals live in `agents/instructions/` and are proven to stay out of the tree (`.gitignore:33`, `git ls-files agents` is empty).
Get some barebones OAuth up and running.