Skip to content

chore: trim repo to store-only, remove carried-over monorepo build contexts#23

Merged
ALLiDoizCode merged 1 commit into
mainfrom
chore/trim-to-store-only
Jun 25, 2026
Merged

chore: trim repo to store-only, remove carried-over monorepo build contexts#23
ALLiDoizCode merged 1 commit into
mainfrom
chore/trim-to-store-only

Conversation

@ALLiDoizCode

Copy link
Copy Markdown
Contributor

Re-does the trim that closed-stale #9 attempted, against current main (post dvm→store rename #19 and the pnpm-lock/Dockerfile.store fixes #16/#18). #9 was unsalvageable: it targeted the now-renamed entrypoint-dvm.ts and added a package-lock.json against main's committed pnpm-lock.yaml.

What this removes

The repo was carved from the monorepo docker/ aggregator and still carried every other image's build context. Now that store is a standalone payment-oblivious POST /store backend behind the connector (#19), this trims to just the store image:

  • 11 non-store DockerfilesDockerfile.{agent-runtime-patched,akash-anvil,akash-solana,akash-solana-explorer,mill,nix,oyster,sdk-e2e,toon-client,town,townhouse-api} — plus docker-compose-oyster.yml, supervisord.conf.
  • Build-context dirsconfigs/, dev-fixtures/, akash-ator-probe/, townhouse-ator-sidecar/.
  • Non-store src/ entrypoints + helpers + testsentrypoint-{sdk,toon-client,toon-client-helpers,town,townhouse-api}, attestation-server, shared. The store path (entrypoint-store.tsstore-backend.ts) imports none of them (verified via import graph).

Config touch-ups

  • esbuild.config.mjs: build only src/entrypoint-store.ts (the other two entryPoints are now deleted).
  • package.json: main/startdist/entrypoint-store.js; drop unused @types/dockerode; refresh description.
  • pnpm-lock.yaml: regenerated — dockerode types only (34 lines removed, 0 added) so --frozen-lockfile stays valid.
  • README.md: the "Trim to store-only" follow-up is now marked done.

Scope note (deferred)

Only @types/dockerode was removed from deps. The heavier runtime deps (arweave, @ardrive/turbo-sdk, better-sqlite3, fastify/noble/solana externals, etc.) are part of the connector/sdk runtime closure that Dockerfile.store cherry-picks from the pnpm hoist trees, so a deeper dep prune needs a full docker build to validate and is intentionally left out of this PR.

Verification

pnpm install --frozen-lockfile   # lockfile in sync
pnpm build                       # → dist/entrypoint-store.js ONLY (246 KB)
pnpm test                        # → 22/22 pass (entrypoint-store.test.ts)

🤖 Generated with Claude Code

…ntexts

The repo was carved from the monorepo docker/ aggregator and still carried
every other image's build context. Now that store is a standalone,
payment-oblivious POST /store backend behind the connector (#19), trim to
just the store image:

- Delete 11 non-store Dockerfiles (akash-*, mill, town, townhouse-api, nix,
  oyster, sdk-e2e, toon-client, agent-runtime-patched), docker-compose-oyster.yml,
  supervisord.conf, and the configs/, dev-fixtures/, akash-ator-probe/,
  townhouse-ator-sidecar/ build-context dirs.
- Delete the non-store src entrypoints + helpers (entrypoint-{sdk,toon-client,
  toon-client-helpers,town,townhouse-api}, attestation-server, shared) and their
  tests. The store path (entrypoint-store.ts -> store-backend.ts) imports none
  of them.
- esbuild.config.mjs: build only src/entrypoint-store.ts.
- package.json: point main/start at dist/entrypoint-store.js; drop unused
  @types/dockerode devDep; refresh description. pnpm-lock.yaml regenerated
  (dockerode types only) so --frozen-lockfile stays valid.
- README: mark the trim-to-store-only follow-up done.

Supersedes the stale #9 (which predated the dvm->store rename + pnpm lockfile).
Verified: pnpm build -> dist/entrypoint-store.js only; 22/22 tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant