Skip to content

Aidbox client - #35

Merged
andreyorst merged 2 commits into
masterfrom
aidbox-client
Dec 3, 2025
Merged

Aidbox client#35
andreyorst merged 2 commits into
masterfrom
aidbox-client

Conversation

@andreyorst

@andreyorst andreyorst commented Nov 13, 2025

Copy link
Copy Markdown
Collaborator

This adds a new aidbox-client package that implements logic for communicating with aidbox


Note

Adds the new @health-samurai/aidbox-client package with typed FHIR client APIs, tests, and CI workflows; streamlines Storybook build and tweaks release build.

  • Packages:
    • packages/aidbox-client (new):
      • Client: makeClient with typed FHIR HTTP ops (read, vread, search*, create, update, patch, delete, history*, capabilities, batch/transaction, operation, validate).
      • Auth: BrowserAuthProvider (cookie-based session, login/logout).
      • Types/Utils: Result/Errors, coerceBody (JSON/YAML), generated FHIR R4 core types, typegen script.
      • Infra/Tests: Vitest tests, docker-compose Aidbox env, resources, tsconfig/biome config, README/DESIGN.
  • CI/CD:
    • New workflow aidbox-client.yaml: spins Aidbox via Docker and runs package tests (uses BOX_LICENSE).
    • New common.yaml: repo-wide lint, build, and type-check jobs.
    • Updated react-components.yaml: keep Storybook build and GitHub Pages deploy; remove separate prepare/lint/typecheck/build jobs.
    • release.yaml: build uses pnpm -r run --sort build.
  • Repo:
    • Root package.json: bump packageManager to pnpm@10.21.0.

Written by Cursor Bugbot for commit a4c36c1. This will update automatically on new commits. Configure here.

Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/types.ts Outdated
Comment thread packages/aidbox-client/src/types.ts Outdated
Comment thread packages/aidbox-client/package.json Outdated
Comment thread packages/aidbox-client/package.json Outdated
Comment thread packages/aidbox-client/tsconfig.json Outdated
@ryukzak
ryukzak force-pushed the aidbox-client branch 2 times, most recently from d1d2820 to 1230083 Compare November 14, 2025 11:54
@ryukzak
ryukzak force-pushed the aidbox-client branch 3 times, most recently from 1427eae to c01864b Compare November 17, 2025 13:11

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/fhir-http.ts
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/fhir-http.ts
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/fhir-http.ts
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/fhir-http.ts
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts
Comment thread .github/workflows/aidbox-client.yaml Outdated
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/fhir-http.ts
Comment thread packages/aidbox-client/src/fhir-http.ts Outdated
Comment thread packages/aidbox-client/src/types.ts Outdated
Comment thread packages/aidbox-client/package.json
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/auth-providers.ts
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/auth-providers.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/client.ts Outdated
Comment thread packages/aidbox-client/src/auth-providers.ts
Comment thread packages/aidbox-client/src/client.ts
Comment thread packages/aidbox-client/src/auth-providers.ts
Comment thread packages/aidbox-client/test/fhir-http.test.ts Outdated
Comment thread packages/aidbox-client/src/auth-providers.ts
Comment thread packages/aidbox-client/src/auth-providers.ts
andreyorst and others added 2 commits December 3, 2025 22:01
Co-authored-by: Aleksandr Penskoi <alexandr.penskoi@health-samurai.io>
Co-authored-by: Panthevm <panthevm@yandex.ru>
Co-authored-by: Vasilii Kupriakov <vasiliy.kupryakov@health-samurai.io>
Co-authored-by: Vasilii Kupriakov <vasiliy.kupryakov@health-samurai.io>
@andreyorst
andreyorst merged commit 1d1c210 into master Dec 3, 2025
6 checks passed
@andreyorst
andreyorst deleted the aidbox-client branch December 3, 2025 14:12
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.

2 participants