Lossless Changelog
product

Every eventhog.cc Signup Gets Its Own Private Team

One Worker now hosts many teams. A signup starts a team of its own and invites teammates with add_person; Edviro's data stays where it was.

Tanuj SiripurapuCreatoraugmented with Cursor agent

Why Care?

The eventhog.cc desk points at Edviro's Worker, so a signup used to join Edviro's workspace, and add_person could only add people to Edviro. Now a signup gets a private team: its own events, contacts, slides and database, which no other team on the server can see.

What's New?

  • SELF_SERVE: "teams". A fresh landing-page key starts a new team, and that person is its admin. whoami and get_started say which team you're in. "open" still joins the home team, and unset is still invite-only.

  • Invites stay in the inviter's team. add_person makes a connector on the inviter's team. Someone who already has a team of their own gets a second URL; both keep working and nothing is merged.

  • Edviro is the home team, untouched: same database, same repos, same media, and enrich_people still on. Teams can't use enrich_people (it spends Edviro's context.dev credits); the tool tells them how to deploy their own.

  • delete_team, for admins on the home team only: lists teams, shows what deleting one would remove, and with confirm erases its repos, files and database and locks its connectors out.

  • Limits: 20 events and 25 connectors per team, and at most 50 new teams a day (MAX_NEW_TEAMS_PER_DAY).

  • The PEOPLE secret is retired on Edviro's deployment: its three people were copied into connector_people (key hashes only) and the secret deleted. The code still reads PEOPLE if one is set.

Under the Hood

  • Each team runs in its own SQLite-backed Durable Object (Team, src/team-do.ts). The Worker resolves the key in D1, then hands the team's whole MCP call, capture post or upload to that object in one RPC. The object runs the same handlers with a scoped env: CRM is a D1-shaped adapter over its own SQLite (CRM migrations applied in the constructor), repos are tm-<id>-*, the kit is tm-<id>-kit (bundled until first write), and media goes under teams/<id>/.

  • open() and repoFor() refuse repos outside the caller's team; home refuses tm- names. list_events lists a team's own event_instances, and home skips tm- repos.

  • 0011_teams.sql adds teams and team_id, admin and profile columns on connector_people. query_crm refuses teams as well as the key tables.

  • src/worker.ts is the new entry module. Once a Durable Object class is exported, workerd rejects named exports that aren't handlers, such as CONTACTS_CSV from index.ts. This also fixes wrangler dev.

  • scripts/isolation-test.mjs: two teams with the same event slug, 52 checks, ending with delete_team. It passed locally and on production.