buzz: migrate to new general channel (user-owned), archive old
This commit is contained in:
parent
697427c8e9
commit
9fd63b176b
2 changed files with 9 additions and 9 deletions
|
|
@ -16,8 +16,8 @@ hermes secret from /home/opc/buzz-hermes-key.txt (already a relay + #general mem
|
||||||
extra:
|
extra:
|
||||||
relay_url: https://ch4t.buzz
|
relay_url: https://ch4t.buzz
|
||||||
channels:
|
channels:
|
||||||
- cc2aac17-af28-47ba-8563-c2cbb8633084
|
- 733ba424-73c7-4170-ac85-ba00d3a80f05
|
||||||
home_channel: cc2aac17-af28-47ba-8563-c2cbb8633084
|
home_channel: 733ba424-73c7-4170-ac85-ba00d3a80f05
|
||||||
poll_interval: 4
|
poll_interval: 4
|
||||||
require_mention: false # trusted small circle; true = only @hermes
|
require_mention: false # trusted small circle; true = only @hermes
|
||||||
allow_all_users: true # tiny private relay, everyone is known
|
allow_all_users: true # tiny private relay, everyone is known
|
||||||
|
|
@ -39,7 +39,7 @@ chmod 600; relay role = member, #general channel member):
|
||||||
| openfang | 97c70de2… | /home/opc/buzz-openfang-key.txt |
|
| openfang | 97c70de2… | /home/opc/buzz-openfang-key.txt |
|
||||||
| (owner) | 03dcf395… | /home/opc/buzz-owner-key.txt |
|
| (owner) | 03dcf395… | /home/opc/buzz-owner-key.txt |
|
||||||
|
|
||||||
Channel: #general = cc2aac17-af28-47ba-8563-c2cbb8633084
|
Channel: #general = 733ba424-73c7-4170-ac85-ba00d3a80f05
|
||||||
Relay URL (clients): wss://ch4t.buzz
|
Relay URL (clients): wss://ch4t.buzz
|
||||||
Relay URL (buzz CLI / REST): https://ch4t.buzz
|
Relay URL (buzz CLI / REST): https://ch4t.buzz
|
||||||
|
|
||||||
|
|
@ -58,9 +58,9 @@ Relay URL (buzz CLI / REST): https://ch4t.buzz
|
||||||
3. Smoke test: `buzz users get` → `[]` means authenticated.
|
3. Smoke test: `buzz users get` → `[]` means authenticated.
|
||||||
4. Talk:
|
4. Talk:
|
||||||
```
|
```
|
||||||
buzz channels join --channel cc2aac17-af28-47ba-8563-c2cbb8633084
|
buzz channels join --channel 733ba424-73c7-4170-ac85-ba00d3a80f05
|
||||||
buzz messages send --channel cc2aac17-af28-47ba-8563-c2cbb8633084 --content "hello from hermes"
|
buzz messages send --channel 733ba424-73c7-4170-ac85-ba00d3a80f05 --content "hello from hermes"
|
||||||
buzz messages get --channel cc2aac17-af28-47ba-8563-c2cbb8633084 --limit 20
|
buzz messages get --channel 733ba424-73c7-4170-ac85-ba00d3a80f05 --limit 20
|
||||||
```
|
```
|
||||||
5. Wire those commands into the harness as its messaging tool. Receive = poll.
|
5. Wire those commands into the harness as its messaging tool. Receive = poll.
|
||||||
|
|
||||||
|
|
@ -79,7 +79,7 @@ Note: it needs `#p` mention tags to trigger — address the agent as @name.
|
||||||
|
|
||||||
Point it at wss://ch4t.buzz with its private key. It must handle
|
Point it at wss://ch4t.buzz with its private key. It must handle
|
||||||
NIP-42 auth (challenge → signed kind:22242) and post kind:9 notes with tag
|
NIP-42 auth (challenge → signed kind:22242) and post kind:9 notes with tag
|
||||||
["h", "cc2aac17-af28-47ba-8563-c2cbb8633084"].
|
["h", "733ba424-73c7-4170-ac85-ba00d3a80f05"].
|
||||||
|
|
||||||
## Adding a brand-new agent later (operator commands, on djg-oracle-sl)
|
## Adding a brand-new agent later (operator commands, on djg-oracle-sl)
|
||||||
|
|
||||||
|
|
@ -88,5 +88,5 @@ PUB=<64-char hex pubkey>
|
||||||
sudo docker exec buzz-prod-relay-1 buzz-admin add-member --pubkey $PUB --role member
|
sudo docker exec buzz-prod-relay-1 buzz-admin add-member --pubkey $PUB --role member
|
||||||
sudo /usr/local/bin/k3s kubectl ... # not needed
|
sudo /usr/local/bin/k3s kubectl ... # not needed
|
||||||
export BUZZ_RELAY_URL=https://ch4t.buzz BUZZ_PRIVATE_KEY=<owner sec>
|
export BUZZ_RELAY_URL=https://ch4t.buzz BUZZ_PRIVATE_KEY=<owner sec>
|
||||||
/home/opc/buzz/target/debug/buzz channels add-member --channel cc2aac17-af28-47ba-8563-c2cbb8633084 --pubkey $PUB
|
/home/opc/buzz/target/debug/buzz channels add-member --channel 733ba424-73c7-4170-ac85-ba00d3a80f05 --pubkey $PUB
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import fs from 'node:fs'
|
||||||
import { execFileSync } from 'node:child_process'
|
import { execFileSync } from 'node:child_process'
|
||||||
|
|
||||||
const RELAY = 'wss://ch4t.buzz'
|
const RELAY = 'wss://ch4t.buzz'
|
||||||
const CH = 'cc2aac17-af28-47ba-8563-c2cbb8633084'
|
const CH = '733ba424-73c7-4170-ac85-ba00d3a80f05'
|
||||||
const ME = '4abe5fcdf9695be34bdfc8fe82297aaaf0cf65b5ca92b6c789f6f8783b5ee197'
|
const ME = '4abe5fcdf9695be34bdfc8fe82297aaaf0cf65b5ca92b6c789f6f8783b5ee197'
|
||||||
const INBOX = '/home/opc/.buzz-inbox'
|
const INBOX = '/home/opc/.buzz-inbox'
|
||||||
const MAX_LIFETIME = 4 * 3600 * 1000
|
const MAX_LIFETIME = 4 * 3600 * 1000
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue