open-index/open-npm huggingface dataset:
npm package: @sjawhar/opencode-legion-envoy
Description: OpenCode plugin for Legion's Envoy subsystem.
Latest version: 0.1.6

# @sjawhar/opencode-legion-envoy

OpenCode plugin for Legion's Envoy subsystem.

This package exposes:

- `envoy_subscribe`
- `envoy_unsubscribe`
- `envoy_list`
- `envoy_send`

It also maintains the live session registry metadata needed for Envoy to discover OpenCode sessions and their API ports.

Slack topic examples must use the real Slack `team_id`, for example:

- `notifications.slack.T09FRELLTS8.C0A0DHVU8HE.mention`

Do not use workspace slugs like `trajectorylabs` in the topic path.

## Sync to another machine

```bash
# From the repo root:
./packages/envoy-plugin/scripts/sync-host.sh sami@sami

# Or via the combined envoy sync:
./scripts/sync-envoy-host.sh sami@sami
```

The sync script downloads the latest envoy-plugin release tarball from GitHub,
extracts it to `~/legion/default/packages/envoy-plugin/` on the remote host, and
updates the remote's `opencode.json` to use a `file://` reference instead of the
npm package. Requires `gh` CLI on the machine running the script.
npm package: @sjawhar/opencode-postgres-sync
Description: Standalone Postgres sync plugin for OpenCode.
Latest version: 0.1.8

# opencode-postgres-sync

Standalone Postgres sync plugin for OpenCode.

This plugin mirrors local OpenCode session data into Postgres and supports:

- metadata sync across machines
- resumable checkpoints at safe idle points
- on-demand remote session pull into local SQLite shards
- search / analytics queries over replicated data

## Development

```bash
bun install
bun run typecheck
bun test
```

## Runtime

Set `OPENCODE_SHARED_DB` to a Postgres connection string and add this repo path to your OpenCode `plugin` config.