Логотип Signal Deploy

Signal Deploy

Організація
nightly-labs
signal-deploy

Check and deploy Signal (the `remote-api` service in `remote/`) to production from a release tag. Use when asked to deploy, redeploy, update or roll back Signal, to check that a Signal deployment has all its secrets and no regressions, or when a release tag changes `remote/` or `packages/contracts/src/signal-protocol`.

Огляд

Видавецьnightly-labs
Репозиторійopenbot
Назва навичкиsignal-deploy
Зірки
521
Форки
81
Файли в пакеті
1
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: nightly-labs. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Signal Deploy у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/nightly-labs/openbot/tree/main/.agents/skills/signal-deploy
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nightly-labs/openbot.git /tmp/openbot
mkdir -p .claude/skills
cp -r /tmp/openbot/.agents/skills/signal-deploy .claude/skills/signal-deploy
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Signal Deploy в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Signal Deploy, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Signal Deploy не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Signal deploy

Signal runs on sui-alexandria in the Compose project openbot-remote (/opt/openbot/remote). It has no database: a restart closes the signalling WebSockets and empties the in-memory rooms, routes and resume-token cache. Active WebRTC data channels stay up. coturn is a separate container.

docs/remote-session-deployment.md is the source for the staging, build and rollback commands. This skill adds the checks before and after them.

When to deploy

CI and the release workflow do not deploy Signal. For each release, find the running commit (step 1). When git diff --quiet <running> <tag> -- remote packages/contracts/src/signal-protocol finds changes, deploy Signal from the local tag before the tag is pushed. Compare with the running commit, not with the previous tag: an earlier release can have left Signal behind. The push starts the release workflow, which does not wait for Signal (docs/RELEASING.md, preflight item 16). Example: #1661. The v0.33.0 clients sent webhookRoute, but production Signal was older than #1520. It had no /v1/webhooks route and refused webhook-only ingress sockets with authentication_required.

Rules

  • Deploy only a release tag, from a detached worktree: git worktree add --detach <dir> <tag>. Do not check out the tag in a checkout that another agent uses.
  • Deploy Signal only. Do not run remote:update or remote:up: they also recreate coturn and end relay sessions. Change coturn only when the developer asks.
  • Never print, copy off the host, or log an environment value, .env.keys, a container environment, a token, a ticket or raw connection logs. Compare secrets by key name, or by a hash on the host.
  • The deploy reads the host files /opt/openbot/remote/.env.production and .env.keys through symlinks, not the remote/.env.production of the tag. The two files can differ.
  • Get explicit approval from the developer before each production change: the deploy, a change to the host environment file, and a change to the host Nginx configuration.

1. Find the running version

First read commit from the public health route:

sh
curl -fsS https://signal.openbot.run/health/live

If commit is missing (a build from before this field) or unknown (built without OPENBOT_SOURCE_COMMIT), find the commit by checksum:

sh
ssh sui-alexandria 'docker inspect openbot-remote-remote-api-1 --format "{{.Image}} {{.Created}} {{.State.Health.Status}}"'
ssh sui-alexandria 'docker exec openbot-remote-remote-api-1 sh -c "cd /app/remote/api/src && sha256sum *.ts"'
ssh sui-alexandria 'ls -t /opt/openbot/releases'

Each release directory has the full commit SHA as its name. Compare the container checksums with git show "${commit}:remote/api/src/<file>" | shasum -a 256 for the newest release directories and tags. In zsh, write "${commit}:remote/...": $commit:r is a modifier. Record the running commit.

2. Check for regressions

Diff the running commit against the tag:

sh
git diff --stat <running> <tag> -- remote packages/contracts/src/signal-protocol
git merge-base --is-ancestor <running> <tag>

If the running commit is not an ancestor of the tag, stop and report: the deploy would remove changes that are live now.

  • Protocol. In packages/contracts/src/signal-protocol, released messages and auth events must stay compatible. New message types and optional fields are safe; a removed or renamed field is not. A new hello field or a new public route that released clients use needs this Signal before those clients ship.
  • Account service. A new Signal call to the Worker (for example /v2/remote/<x>-route/...) must exist in the deployed Worker. An unauthenticated POST https://api.openbot.run/<path> gives 401 when the route exists and 404 when it does not.
  • remote/compose.yaml. A new variable with :? stops the start when the host file lacks it.
  • remote/api/Dockerfile. A new workspace package must be copied before bun install.
  • remote/nginx/signal.openbot.run.conf. The host uses its own copy at /etc/nginx/conf.d/openbot-remote.conf. A new location in the repository needs the same change on the host, after a backup, nginx -t and systemctl reload nginx. Without it, the request goes through location /, which has the default 1 MB body limit and writes the path to the access log.
  • Tests. In the tag worktree: bun install --frozen-lockfile, then bun run --cwd remote/api test.

3. Check the secrets

  1. Compare key names. Required keys are those that remote/compose.yaml marks with :?; optional keys turn a feature off when they are empty (Slack, Discord, Telegram).

    sh
    git show <tag>:remote/.env.production | grep -vE '^#|^$' | cut -d= -f1 | sort
    ssh sui-alexandria "grep -vE '^#|^$' /opt/openbot/remote/.env.production | cut -d= -f1 | sort"
  2. Make sure that DOTENV_PUBLIC_KEY_PRODUCTION is the same in both files. Then the host .env.keys decrypts the encrypted values of the tag file.

  3. For keys in both files, compare values by hash on the host: copy the encrypted tag file to a umask 077 temporary file, run bin/dotenvx get -f <file> -fk .env.keys for each file, and print only <key> same|DIFFERENT|only-in-tag|only-on-host. Delete the temporary files.

  4. Report each key that is only in the tag or that is different. The developer decides which value goes live. To add a key, copy its encrypted line from the tag file into the host file after cp .env.production .env.production.bak-<date>-<reason>. Do not replace the whole host file.

4. Deploy

Report the results of steps 1 to 3 and get approval. Then follow "Deployment procedure" in docs/remote-session-deployment.md with these changes:

  • Use git archive <tag> and the release directory /opt/openbot/releases/$(git rev-parse <tag>^{commit}). If the directory exists, do not write into it again.
  • Tag the running image as openbot-remote-api:before-<tag> before the build.
  • Build from the release directory. The document's build command passes its name, the tag commit, as --build-arg OPENBOT_SOURCE_COMMIT, and stops when the name is not a full commit SHA.
  • Run the Compose commands with -p openbot-remote, and build and start only remote-api.

5. Verify

  • docker inspect openbot-remote-remote-api-1 --format '{{.Image}} {{.State.Health.Status}}' shows the new image and healthy.
  • curl --fail https://signal.openbot.run/health/ready succeeds.
  • curl --fail https://signal.openbot.run/health/live shows commit equal to the tag commit (tags from before this field show no commit; use the checksums then).
  • The container sha256sum of /app/remote/api/src/*.ts matches the tag.
  • docker logs --since <deploy time> openbot-remote-remote-api-1 2>&1 | grep -iE 'error|disabled|off|telegram|discord|slack' shows no start errors, and shows each enabled feature. Do not print other log lines.
  • Unauthenticated probes of each public route that the diff adds give 401 or 403, not 404 or 502. For example, POST /v1/webhooks/x with content-type: application/json gives 401.

If a check fails, use the rollback commands of the deployment document with the before-<tag> image. Keep that image until the developer confirms the device checks of the deployment document.

Report

One table: running commit before and after (from /health/live, or from checksums), image IDs, each secret key status, each regression area, health, test result, and the checks that need a device or the developer.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Signal Deploy?

Check and deploy Signal (the `remote-api` service in `remote/`) to production from a release tag. Use when asked to deploy, redeploy, update or roll back Signal, to check that a Signal deployment has all its secrets and no regressions, or when a release tag changes `remote/` or `packages/contracts/src/signal-protocol`.

Навіщо використовувати Signal Deploy у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Signal Deploy — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Signal Deploy у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/nightly-labs/openbot/tree/main/.agents/skills/signal-deploy. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Signal Deploy?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Signal Deploy?

Зі скількома забажаєте. У TypingMind ви можете використовувати Signal Deploy із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Signal Deploy?

На GitHub цю навичку публікує nightly-labs. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇