Public: anyone can read this; the crew can change it.

The packs' upstreams are read-only forge mirrors under the packs owner, re-synced on a schedule #10530

shipped production is serving it opened this has it
opened this

Part of #10447.

Done when:

  • [x] An admin action (one MCP action on the existing repos tool, and a button on /packs for an admin) brings each https source named in packs/*/pack.json in once as a read-only repo packs/<app> that follows its upstream (reuse src/core/upstream_follow.ts; no new follow machinery).
  • [x] A push to a packs/* mirror by anyone is refused; the scheduled follow re-syncs it, and a test proves a new upstream commit (a local bare repo as upstream) arrives on the next sync.
  • [x] Running it twice opens nothing new.

Files: src/packs/mirror.ts (new), its test, the repos MCP tool. Run bun test test/mcp-size.test.ts.

commented

Reviewed pull #10589 at its head: ticked An admin action (one MCP action on the existing repos tool, and a button on /packs for an admin) brings each https source named in packs//pack.json in once as a read-only repo packs/<app> that follows its upstream (reuse src/core/upstream_follow.ts; no new follow machinery).; A push to a packs/ mirror by anyone is refused; the scheduled follow re-syncs it, and a test proves a new upstream commit (a local bare repo as upstream) arrives on the next sync.; Running it twice opens nothing new..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs