Skip to content

Comments

api: port api-beta fixes + add npm publish pipeline#5503

Open
dnbrwstr wants to merge 2 commits intodb/standalone-apifrom
db/standalone-api-publish
Open

api: port api-beta fixes + add npm publish pipeline#5503
dnbrwstr wants to merge 2 commits intodb/standalone-apifrom
db/standalone-api-publish

Conversation

@dnbrwstr
Copy link
Contributor

Summary

  • ports key runtime fixes from tloncorp/api-beta into monorepo packages/api
  • adds npm publish infrastructure for @tloncorp/api (build, package shaping, workflow)

api-beta parity brought in

  • formatScryPath now formats numeric segments as @ud (dot-separated)
  • configureClient is async, supports injected client, and bootstraps connect+eventSource when getCode is provided
  • Node cookie handling now strips Set-Cookie attributes before reuse
  • fixes thread spider endpoint to include .json
  • guards getTextContent against non-array content

publish infrastructure

  • adds packages/api/tsconfig.build.json (emit JS + d.ts, excludes tests)
  • adds packages/api/scripts/prepare-publish.mjs to generate dist/package.json for npm
  • adds package scripts: build, clean, prepack, pack:dry-run
  • adds packages/api/README.md
  • adds workflow .github/workflows/publish-api.yml
    • manual trigger (dry_run option)
    • tag trigger (api-v*)
    • validates tag version == package version
    • typecheck/tests/builds and publishes from packages/api/dist

Validation

  • pnpm --filter @tloncorp/api tsc
  • pnpm --filter @tloncorp/api test
  • pnpm --filter @tloncorp/api prepack
  • pnpm -r tsc
  • pnpm -r lint (warnings only)

Notes

  • kept standalone dependency constraints intact (no reintroduction of React Query/Expo deps)
  • pnpm --filter @tloncorp/shared test run in local env fails due native better-sqlite3 ABI mismatch, not code-level regressions

@dnbrwstr dnbrwstr force-pushed the db/standalone-api-publish branch from acf06ab to add5530 Compare February 20, 2026 16:23
@dnbrwstr dnbrwstr force-pushed the db/standalone-api-publish branch from add5530 to 51940e5 Compare February 20, 2026 16:25
@dnbrwstr dnbrwstr force-pushed the db/standalone-api-publish branch 2 times, most recently from ee2d03c to e6e2550 Compare February 20, 2026 16:35
@dnbrwstr dnbrwstr force-pushed the db/standalone-api-publish branch from e6e2550 to bddde45 Compare February 20, 2026 17:16
@dnbrwstr dnbrwstr force-pushed the db/standalone-api-publish branch from bddde45 to 5bfe521 Compare February 20, 2026 17:46
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