chadtmiller.com/group-host
atmosphere group host
0
0
Atmosphere Groups: lexicons at org.atgrp, the command atgrp
.changeset/atmosphere-groups.mdnew+13−0
| @@ -0,0 +1,13 @@ | ||
--- | ||
default: minor | ||
--- | ||
| ||
# The project is Atmosphere Groups | ||
| ||
The lexicons are `org.atgrp.*`, and the host's own methods `org.atgrp.internal.*`; they were `fyi.opensocial.*`. | ||
| ||
The command is `atgrp`, and reads `ATGRP_AS`, `ATGRP_PASSWORD`, `ATGRP_HOST`, `ATGRP_HOST_DID`, `ATGRP_SEED_INVITE` and `ATGRP_IMPORT_PASSWORD`. `just atgrp` runs it. | ||
| ||
The host's DID document names its service `#atgrp`, of type `AtgrpGroupHost`, so an app proxies to `<did>#atgrp`. | ||
| ||
The project is Atmosphere Groups, implementing the Atmosphere Groups proposal. | ||
.changeset/internal-methods-and-no-sites.md+2−2
| @@ -4,10 +4,10 @@ default: minor | ||
| ||
# The host's own methods are internal, and groups no longer have websites | ||
| ||
The methods that are this host's own, not the opensocial proposal's, moved to `fyi.opensocial.internal.*`, with the views they answer in `fyi.opensocial.internal.defs`. A caller names them by their new NSIDs. | ||
The methods that are this host's own, not the Atmosphere Groups proposal's, moved to `org.atgrp.internal.*`, with the views they answer in `org.atgrp.internal.defs`. A caller names them by their new NSIDs. | ||
| ||
A group's website is gone: `putSite`, `deleteSite`, the `fyi.opensocial.site` record, the `fyi.opensocial.siteSpace` space type, the site kit and the page the host served around a site, `opensocial site` and the `site_publish` and `site_delete` MCP tools. A group's address now only redirects, to its own domain or to its page in the console. | ||
| ||
A group's own domain stays, as `fyi.opensocial.internal.putGroupDomain` and `deleteGroupDomain`, `opensocial group domain` and the `group_domain` MCP tool, and the group's view names it as `domain`. `SITE_CHECK_AT` is now `DOMAIN_CHECK_AT`, and the host no longer reads `SITE_SHELL_DIR`, `SITE_HANDLE_RESOLVER` or `SITE_PLC_URL`. | ||
A group's own domain stays, as `org.atgrp.internal.putGroupDomain` and `deleteGroupDomain`, `atgrp group domain` and the `group_domain` MCP tool, and the group's view names it as `domain`. `SITE_CHECK_AT` is now `DOMAIN_CHECK_AT`, and the host no longer reads `SITE_SHELL_DIR`, `SITE_HANDLE_RESOLVER` or `SITE_PLC_URL`. | ||
| ||
`@opensocial/sdk` is gone. | ||
.claude/skills/docs/context.md+3−3
| @@ -14,7 +14,7 @@ protocol instead of the page. | ||
MCP client a member signs in gets what those roles allow and nothing more. | ||
- The host is one Rust server over SQLite, with a console (a SvelteKit | ||
app) where people start and run groups and approve apps, and a command, | ||
`opensocial`, that does the same from a terminal. | ||
`atgrp`, that does the same from a terminal. | ||
| ||
## The reader | ||
| ||
| @@ -33,7 +33,7 @@ for more. | ||
**handle** is a changeable name that resolves to it. A **PLC | ||
operation** changes a `did:plc` document, signed by a **rotation key**. | ||
- **record / collection / rkey**: a JSON document in a collection (an | ||
NSID such as `fyi.opensocial.rule`) in an account's repo, addressed by a | ||
NSID such as `org.atgrp.rule`) in an account's repo, addressed by a | ||
key. | ||
- **blob**: binary data stored beside records (an avatar, a file). | ||
- **space**: a private record store from atproto's permissioned-data | ||
| @@ -46,7 +46,7 @@ for more. | ||
- **OAuth / DPoP**: atproto's OAuth, where a client signs in to an | ||
account at its authorization server; DPoP binds each token to a key the | ||
client holds. | ||
- **lexicon**: the schema for a record or method (`lexicons/fyi/opensocial/`). | ||
- **lexicon**: the schema for a record or method (`lexicons/org/atgrp/`). | ||
- **label**: a moderation tag on a record or account. | ||
- **MCP**: the protocol an AI app uses to call tools on a server. | ||
| ||
.claude/skills/guides/SKILL.md+1−1
| @@ -93,7 +93,7 @@ path, and facts about it, one a line, tagged: | ||
refuses and what it then says, a limit, what happens after (name the | ||
file). | ||
- `[both]` | ||
- `[cli]` the `opensocial` command and MCP tool for the same act, from | ||
- `[cli]` the `atgrp` command and MCP tool for the same act, from | ||
`TOOLS` in `crates/group-host-mcp/src/lib.rs` and | ||
`docs/reference/cli.md`. | ||
| ||
.claude/skills/guides/walker.md+1−1
| @@ -47,7 +47,7 @@ Picture: [target/look/...png] | ||
- `[code]`: what the picture cannot show, read in `web/src`: what each | ||
field takes and refuses, what is said when it does, what happens once | ||
it is sent, which pages it reaches. | ||
- `[cli]`: the `opensocial` command and MCP tool doing the same, from | ||
- `[cli]`: the `atgrp` command and MCP tool doing the same, from | ||
`TOOLS` in `crates/group-host-mcp/src/lib.rs`, or none. | ||
| ||
Walk every branch a reader meets: an empty list before it fills, a | ||
.claude/skills/ui/SKILL.md+1−1
| @@ -142,7 +142,7 @@ items, field labels, dialog titles, notes and errors ("Invite someone", | ||
"Asking to join", "Sign out"). Only the first word and proper nouns take | ||
a capital: Atmosphere, Bluesky, PDS, DID, AI. Labels end with no full | ||
stop; what is said, a sentence, ends with one. Names stay as written: | ||
opensocial, handles, roles such as `admin`. No `text-transform`. | ||
Atmosphere Groups, handles, roles such as `admin`. No `text-transform`. | ||
| ||
**Optional fields.** A text field a form can be sent without says so | ||
after its label, `<span>Note <span class="optional">(optional)</span></span>`, | ||
.knotless/workflows/e2e.yml+1−1
| @@ -67,7 +67,7 @@ steps: | ||
run: | | ||
export PATH=/opt/node/bin:$PATH | ||
# The host and the console side by side, as neither needs the other. | ||
cargo build -p group-host -p opensocial & cargo=$! | ||
cargo build -p group-host -p atgrp & cargo=$! | ||
(cd web && npm run build) || { kill $cargo; exit 1; } | ||
wait $cargo | ||
- name: flows | ||
.knotless/workflows/test.yml+6−0
| @@ -44,5 +44,11 @@ steps: | ||
# target kept in debug/deps from before are stale, and cargo-llvm-cov, | ||
# walking the whole directory, would count their lines as never run. | ||
rm -rf target/llvm-cov-target/debug/deps | ||
# So are those under debug/build/ of a package Cargo.lock no longer | ||
# names, such as a crate taken out of the workspace. | ||
known=$(sed -n 's/^name = "\(.*\)"$/\1/p' Cargo.lock) | ||
for dir in target/llvm-cov-target/debug/build/*/; do | ||
echo "$known" | grep -qx "$(basename "$dir")" || rm -rf "$dir" | ||
.knotless/workflows/test.ymlline 51
| ||
done | ||
cargo llvm-cov --workspace --ignore-filename-regex '(tests/|harness/)' \ | ||
--fail-under-lines 100 --fail-under-functions 100 --show-missing-lines | ||
.knotless/issue.md+1−1
| @@ -21,5 +21,5 @@ | ||
| ||
## Where | ||
| ||
<!-- a local host or a deployed one; the console, the opensocial command, or | ||
<!-- a local host or a deployed one; the console, the atgrp command, or | ||
MCP; the commit you built from. --> | ||
crates/opensocial/src/bin/opensocial.rs → crates/atgrp/src/bin/atgrp.rsrenamed+3−3
| @@ -1,10 +1,10 @@ | ||
//! `opensocial`: see [`opensocial::USAGE`]. | ||
//! `atgrp`: see [`atgrp::USAGE`]. | ||
| ||
#[tokio::main] | ||
async fn main() { | ||
let args: Vec<String> = std::env::args().skip(1).collect(); | ||
let env = opensocial::Env::from(|k| std::env::var(k).ok()); | ||
match opensocial::run(&args, &env).await { | ||
let env = atgrp::Env::from(|k| std::env::var(k).ok()); | ||
match atgrp::run(&args, &env).await { | ||
Ok(out) => print!("{out}"), | ||
Err(e) => { | ||
eprintln!("{e:#}"); | ||
crates/opensocial/src/lib.rs → crates/atgrp/src/lib.rsrenamed+30−30
crates/opensocial/tests/cli.rs → crates/atgrp/tests/cli.rsrenamed+11−14
crates/opensocial/tests/commands.rs → crates/atgrp/tests/commands.rsrenamed+29−38
crates/opensocial/Cargo.toml → crates/atgrp/Cargo.tomlrenamed+4−4
crates/group-host/src/account_move.rs+2−2
crates/group-host/src/actor_search.rs+1−1
crates/group-host/src/admin.rs+2−2
crates/group-host/src/api.rs+2−2
crates/group-host/src/group_api.rs+1−1
crates/group-host/src/group_spaces.rs+2−2
crates/group-host/src/import_space.rs+2−2
crates/group-host/src/lexicons.rs+87−87
crates/group-host/src/lib.rs+64−73
crates/group-host/src/limits.rs+4−3
crates/group-host/src/logs.rs+1−1
crates/group-host/src/migration.rs+4−4
crates/group-host/src/moderation.rs+5−5
crates/group-host/src/oauth.rs+1−1
crates/group-host/src/oauth_scope.rs+11−11
crates/group-host/src/rbac.rs+6−6
crates/group-host/src/stats.rs+1−1
crates/group-host/tests/common/groups.rs+2−2
crates/group-host/tests/common/members.rs+1−1
crates/group-host/tests/common/spaces.rs+3−3
crates/group-host/tests/account_move.rs+1−1
crates/group-host/tests/actor_search.rs+1−1
crates/group-host/tests/actors.rs+1−2
crates/group-host/tests/admin.rs+5−5
crates/group-host/tests/app_passwords.rs+1−1
crates/group-host/tests/authority.rs+1−1
crates/group-host/tests/authorization.rs+18−13
crates/group-host/tests/blobs.rs+5−5
crates/group-host/tests/firehose.rs+6−6
crates/group-host/tests/group_config.rs+3−2
crates/group-host/tests/group_spaces.rs+8−8
crates/group-host/tests/group_tokens.rs+2−2
crates/group-host/tests/groups.rs+5−5
crates/group-host/tests/import.rs+8−18
crates/group-host/tests/index.rs+8−8
crates/group-host/tests/interop.rs+14−12
crates/group-host/tests/invites.rs+1−1
crates/group-host/tests/lexicons.rs+9−12
crates/group-host/tests/lifecycle.rs+1−1
crates/group-host/tests/mcp.rs+1−1
crates/group-host/tests/members.rs+5−15
crates/group-host/tests/migration.rs+10−13
crates/group-host/tests/moderation.rs+7−7
crates/group-host/tests/oauth_scope.rs+20−20
crates/group-host/tests/provision.rs+5−5
crates/group-host/tests/rbac.rs+11−11
crates/group-host/tests/repos.rs+22−22
crates/group-host/tests/serve.rs+5−5
crates/group-host/tests/spaces.rs+25−36
crates/group-host/tests/tokens.rs+3−3
crates/group-host/Cargo.toml+1−1
crates/group-host-mcp/src/lib.rs+14−14
crates/group-host-mcp/tests/protocol.rs+30−36
crates/group-host-mcp/Cargo.toml+1−1
docs/design/groups.md+11−11
docs/design/mcp.md+3−3
docs/design/membership.md+17−17
docs/design/moderation.md+7−7
docs/design/moving.md+3−3
docs/design/README.md+6−6
docs/design/signing-in.md+16−16
docs/design/spaces.md+11−11
docs/guides/shots/apps-activity-dark.png+0−0
A binary file, not shown.
docs/guides/shots/apps-activity.png+0−0
A binary file, not shown.
docs/guides/shots/apps-empty-dark.png+0−0
A binary file, not shown.
docs/guides/shots/apps-empty.png+0−0
A binary file, not shown.
docs/guides/shots/apps-empty.txt+2−2
docs/guides/shots/apps-made-dark.png+0−0
A binary file, not shown.
docs/guides/shots/apps-made.png+0−0
A binary file, not shown.
docs/guides/shots/apps-new-dark.png+0−0
A binary file, not shown.
docs/guides/shots/apps-new.png+0−0
A binary file, not shown.
docs/guides/shots/apps-new.txt+2−2
docs/guides/shots/apps-revoke-password-dark.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-escalate-sent-dark.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-escalate-sent.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-label-dialog-dark.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-label-dialog.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-queue-dark.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-queue.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-remove-dialog-dark.png+0−0
A binary file, not shown.
docs/guides/shots/moderating-remove-dialog.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-added-dark.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-added.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-refused.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-removed-dark.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-removed.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-start-dark.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-start.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-start.txt+2−2
docs/guides/shots/recovery-tab-dark.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-tab.png+0−0
A binary file, not shown.
docs/guides/shots/recovery-tab.txt+2−2
docs/guides/shots/rules-delete-dark.png+0−0
A binary file, not shown.
docs/guides/shots/rules-give-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-bob-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-bob.png+0−0
A binary file, not shown.
docs/guides/shots/starting-bob.txt+2−2
docs/guides/shots/starting-new-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-new.png+0−0
A binary file, not shown.
docs/guides/shots/starting-new.txt+2−2
docs/guides/shots/starting-started-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-started.png+0−0
A binary file, not shown.
docs/guides/shots/starting-started.txt+2−2
docs/guides/shots/starting-taken-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-taken.png+0−0
A binary file, not shown.
docs/guides/shots/starting-taken.txt+2−2
docs/guides/shots/starting-words-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-words.png+0−0
A binary file, not shown.
docs/guides/shots/starting-words.txt+2−2
docs/guides/shots/starting-your-groups-dark.png+0−0
A binary file, not shown.
docs/guides/shots/starting-your-groups.png+0−0
A binary file, not shown.