@playrunner/integration-sdk
v0.1.6
Published
Shared contracts and UI helpers for Playrunner integration packages.
Downloads
770
Readme
@playrunner/integration-sdk
Shared contracts, host interfaces, and UI helpers for Playrunner integration packages.
Install
npm install @playrunner/integration-sdkIntegration packages normally declare the SDK as a peer dependency. The consuming Playrunner frontend, API, or orchestrator must provide the matching SDK version directly.
Package surfaces
@playrunner/integration-sdkand@playrunner/integration-sdk/frontendexpose frontend contracts, the host provider, connection inputs, setup helpers, and settings-modal primitives.@playrunner/integration-sdk/apiexposes API contribution contracts and helpers.@playrunner/integration-sdk/orchestratorexposes the versioned orchestrator executor contract.@playrunner/integration-sdk/e2eexposes the package-owned scenario, data, page-object, and host contracts used by the shared browser harness.
import {
IntegrationConfigField,
IntegrationSdkProvider,
useIntegrationHost,
} from '@playrunner/integration-sdk';
import { createApiContribution } from '@playrunner/integration-sdk/api';
import { createOrchestratorContribution } from '@playrunner/integration-sdk/orchestrator';Testing
Run the SDK checks and integration-composition test from the repository root:
npm run format:check --prefix packages/integration-sdk
npm run lint --prefix packages/integration-sdk
npm run typecheck --prefix packages/integration-sdk
npm run test:integration-composition
npm run test:e2e:mockThe SDK does not register a provider scenario of its own. The mock E2E suite exercises its contracts through every installed package contribution while using the real Playrunner frontend, API, authentication, and dedicated E2E database.
Documentation
See the integration package architecture documentation for package metadata, host selection, and contribution composition.
License
Licensed under the Playrunner Sustainable Use License.
