PSA/sdk/README.md
Hermes 284313f908
Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Initial import of AlgaPSA codebase from PSA server
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz

Source: /opt/alga-psa on psa.joliet.tech
2026-06-22 16:12:17 -05:00

51 lines
2.3 KiB
Markdown

# Alga PSA SDK Workspace
This `sdk/` workspace collects all developer-facing tooling, client artifacts, and runnable examples that support the Alga PSA APIs. It acts as an umbrella for multiple packages—each with its own `package.json`—alongside shared docs and samples.
## Repository Layout
```
sdk/
README.md # You are here
package.json # Scripts and deps for shared docs/samples
tsconfig.json # TypeScript config for shared tooling
docs/ # Conceptual + reference documentation source
samples/ # Standalone usage examples (Node, Postman, etc.)
scripts/ # Utility scripts (e.g., OpenAPI generation)
alga-client-sdk/ # Browser/client library (managed independently)
alga-cli/ # Command-line tooling package
extension-iframe-sdk/ # IFrame helper SDK for extensions
```
Each subpackage remains independent—run installs/tests within the respective directory. The root `package.json` is marked `private` and exists purely to support documentation, samples, and shared tooling.
## Working With Shared Docs & Samples
1. Install dependencies in this directory:
```bash
cd sdk
npm install
```
2. Set required environment variables before running a sample (see script comments).
3. Execute a sample script, for example:
```bash
npm run sample:create-service-category -- "Onboarding"
```
4. Generate the latest OpenAPI spec:
```bash
npm run openapi:generate
```
The JSON and YAML outputs land in `docs/openapi/` for documentation sites or client generation.
You can safely add more scripts under `samples/` or automation under `scripts/` without affecting the sibling SDK packages.
## Subpackage Workflow
For `alga-client-sdk`, `alga-cli`, or `extension-iframe-sdk`, continue managing dependencies and build steps from their own folders. Optional next step is to introduce a monorepo workspace (npm/pnpm) if you want unified dependency installs, but it is not required for the current layout.
## Next Steps
- Populate `docs/` with detailed guides and OpenAPI references as they become available.
- Expand `samples/` to cover additional endpoints and languages.
- Add `scripts/` automation (e.g., `generate-openapi.ts`) to keep documentation in sync with the codebase.