chadtmiller.com/group-host
atmosphere group host
0
0
The opensocial command starts, inspects, runs, moves and seeds groups
Merged Approved
This adds the opensocial commands (create-group, inspect, membership, migrate, seed). They sign in at the person's PDS and get a per-method service token for the host. I read the whole diff and found no bugs. The usage errors, arity checks and the four migrate steps look right. The tests cover each command and each error path.
Two small things, neither blocking:
- AGENTS.md says an environment variable goes in
docs/reference/config.md. This pull listsOPENSOCIAL_AS,OPENSOCIAL_PASSWORD,PDS_URL,OPENSOCIAL_HOST,OPENSOCIAL_HOST_DIDandOPENSOCIAL_SEED_INVITEonly incli.md. A search ofdocs/forPDS_URLfinds nothing. Add them toconfig.md, or link tocli.mdfrom it. --reasonand--messageare accepted by everymembershipsubcommand, but onlyejectuses--reasonand onlyinviteuses--message. Elsewhere they are silently ignored, for exampleassign --reason x. This is harmless, and rejecting them would be a nicer failure.
Merged as 3f81f91
What changes
The
opensocialcommand starts, inspects, runs, moves and seeds groups (crates/opensocial,docs/reference/cli.md). It acts as a person: it signs in at their own PDS (OPENSOCIAL_AS,OPENSOCIAL_PASSWORD, atPDS_URL; an app password is enough), and asks that PDS for a service token for each method it calls on the host (OPENSOCIAL_HOST, its DIDOPENSOCIAL_HOST_DID, by default the did:web of its address), as an app does. The commands:create-group <handle> [--name] [--description] [--join]inspect <group>: its roles, members and spaces, as you may see them;membership assign|eject|invite;migrate <group> --to <address> [--to-did], which walks the four steps of moving a group;seed <handle>: a group with two rules, a moderator role, and invites forOPENSOCIAL_SEED_INVITE.A group or a person is named by handle or DID. A refusal says what the host said.
Why
This is step 9's first part, from the prototype's
packages/cli(create-group,inspect,membership,migrate, seeds). Moving the host itself isgroup-host move-host, because it needs the host's own database and keys. The seed is small, a group to try things on: the prototype's seeds were mostly its sites module's content.How it was checked
crates/opensocial/tests/commands.rsruns the commands in process. They sign in as the reference PDS's accounts (harness/pds.mjs) and act on hosts of this repo's own, atlocalhost, since the reference PDS makes service tokens only for a did:web of a name. The tests cover:tests/cli.rsruns the binary.just covis at 100% locally.Shortcomings
🤖 Generated with Claude Code