• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

enboxorg / gitd / 22549333560

01 Mar 2026 06:06PM UTC coverage: 41.415% (-42.9%) from 84.356%
22549333560

push

github

web-flow
feat: migrate to @enbox/auth AuthManager + Web5→Enbox rename (#149)

* feat: migrate to @enbox/auth AuthManager + Web5→Enbox rename

Replace the hand-rolled agent bootstrap in cli/agent.ts with
@enbox/auth's AuthManager. This eliminates ~140 lines of manual
vault/identity/registration code.

Key changes:
- agent.ts: AuthManager.create({ agent }) with pre-built SQLite agent
  replaces manual Web5UserAgent.create() + firstLaunch + initialize
  + start + identity.create + registerWithDwnServers + Web5.connect()
- DWN registration now uses AuthManager's built-in registration support
  with onProviderAuthRequired + registrationTokens + onRegistrationTokens
  callbacks (same file-based token persistence, now wired declaratively)
- Enbox.connect({ session }) replaces deprecated Web5.connect()
- TypedWeb5 → TypedEnbox across 5 git-server files
- Web5 → Enbox in did-service.ts, AgentContext.web5 → AgentContext.enbox
- Web5UserAgent → EnboxUserAgent in credential-main.ts
- Added @enbox/agent, @enbox/api@0.4.0, @enbox/auth@0.3.0 as deps
  (will resolve once published to npm)

Closes #148

* ci: link unpublished @enbox/auth from SDK checkout

@enbox/auth is not yet published to npm, so bun install fails to
resolve it. Until it's published, CI checks out and builds the enbox
SDK monorepo, then patches package.json to use link: references to
the locally-built packages before running bun install.

* ci: use symlinks instead of link: protocol for SDK packages

Bun's link: protocol tries to resolve workspace:* deps inside the
linked package, which fails outside the monorepo context. Instead,
remove the unpublished deps before install, then manually symlink
the locally-built SDK packages into node_modules.

* ci: move SDK checkout outside working tree to avoid lint OOM

ESLint was following symlinks into the SDK checkout and trying to lint
thousands of .ts files, causing OOM (SIGABRT). Moving the SDK to a
sibling directory keeps it outside eslint's file discovery scope... (continued)

23 of 44 new or added lines in 6 files covered. (52.27%)

3193 existing lines in 32 files now uncovered.

2675 of 6459 relevant lines covered (41.42%)

13.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

46.6
/src/github-shim/server.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc