test(sdk): add public API contract coverage#28
Merged
marmar9615-cloud merged 1 commit intomainfrom Apr 28, 2026
Merged
Conversation
43f33c8 to
7bac888
Compare
This was referenced Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds SDK public API contract coverage and a lightweight SDK example to support post-v0.4.0 SDK/API stabilization work on the road to v1.0.
PR #26 (
test(openapi): add converter regression fixtures) was merged first at09c3212f0d44199d756cf98eada5b075dcccf841. PR #28 has now been rebased onto latestmainafter PR #29 and the v0.4.0 publish/status update.Release coordination
v0.4.0exists, and all six@marmarlabs/agentbridge-*packages are live on npm at0.4.0.Unreleased, making it post-v0.4.0 SDK/API stabilization work.CHANGELOG.mdconflict resolution.Claude / parallel work context
Claude may be working near HTTP transport/auth release follow-up areas. This PR stays parallel-safe by avoiding MCP runtime and HTTP transport files entirely.
Files added
examples/sdk-basic/README.mdexamples/sdk-basic/manifest.tspackages/sdk/src/tests/public-api-contract.test.tsFiles modified
CHANGELOG.mdexamples/README.mdpackages/sdk/README.mdSDK public API behaviors pinned
defineAgentAction,createAgentBridgeManifest,createActionHandler,validateActionInput, andz.defineAgentActionpreserves manifest-facing metadata, schemas, permissions, examples, confirmation policy, risk, andhumanReadableSummaryTemplate.createAgentBridgeManifestproduces a core-valid manifest and preserves supported metadata, resources, contact, and auth fields.validateActionInputaccepts valid input, rejects missing required fields and wrong types, and preserves the existing raw JSON Schema object fallback.createActionHandlervalidates input before calling handlers, returns structured JSON success responses, handles malformed/invalid input with 400s, parses GET query parameters, and reports handler failures with 500s.examples/sdk-basicbuilds a safe simulated support-ticket action set and validates it with the core manifest validator.Validation after rebase
gh release view v0.4.0confirmed the GitHub release is published.npm view @marmarlabs/agentbridge-core@0.4.0 versionreturned0.4.0.npm view @marmarlabs/agentbridge-sdk@0.4.0 versionreturned0.4.0.npm view @marmarlabs/agentbridge-scanner@0.4.0 versionreturned0.4.0.npm view @marmarlabs/agentbridge-openapi@0.4.0 versionreturned0.4.0.npm view @marmarlabs/agentbridge-cli@0.4.0 versionreturned0.4.0.npm view @marmarlabs/agentbridge-mcp-server@0.4.0 versionreturned0.4.0.npx vitest run packages/sdk/src/tests/public-api-contract.test.tspassed: 1 file / 11 tests.npm run typecheck:cleanpassed.npm testpassed: 16 files / 196 tests.npm run buildpassed.npm run pack:dry-runpassed.npx tsx examples/sdk-basic/manifest.ts > /tmp/sdk-basic.agentbridge.json && node packages/cli/dist/bin.js validate /tmp/sdk-basic.agentbridge.jsonpassed.npm run smoke:httppassed: 13 ok, 0 fail.Safety / release confirmations
package-lock.jsonchanges.