Skip to content

fix(types,http-action): align vendored SDK type and http-action floor with core - #48

Merged
rmyndharis merged 1 commit into
mainfrom
fix/sdk-type-and-http-action-floor
Jul 26, 2026
Merged

fix(types,http-action): align vendored SDK type and http-action floor with core#48
rmyndharis merged 1 commit into
mainfrom
fix/sdk-type-and-http-action-floor

Conversation

@rmyndharis

Copy link
Copy Markdown
Owner

Summary

Two low-severity contract-drift fixes against core 0.10.10.

Changes

types/openwa.d.ts — add the two missing HookEvents

The vendored plugin SDK type omitted message:persisted and ingress:error, both of which core dispatches (19 events total). A plugin that wrote ctx.registerHook('message:persisted', …) against this type got a TypeScript error even though the host accepts and dispatches it — the runtime allowed what the type forbade. The type now mirrors core's HookEvent union.

http-action/manifest.jsonminOpenWAVersion 0.8.7 → 0.8.0

The two capabilities http-action relies on — conversation:send and net.allowConfigHosts — both shipped in 0.8.0 (the Integration Fabric release, per core CHANGELOG). The 0.8.7 floor was overstated by seven patch versions, refusing an install on servers that would in fact run the plugin correctly. Widening compatibility, not a behaviour change — no version bump.

Regenerated artifacts

plugins.json and http-action/README.md regenerated by npm run catalog so the catalog and the manifest stay in sync (the catalog:check CI gate).

Verification

  • npm run typecheck clean.
  • npm run catalog:check — "Catalog up to date".
  • npm test — 435/435 pass.

Notes

  • The durable fix for the SDK type is to generate it from core's hook.interfaces.ts at release time; this PR removes the drift today.
  • http-action is beta with no testedOpenWAVersion, so widening the floor is low-risk — operators on 0.8.0+ who were previously refused can now install.

…loor with core

Two low-severity contract-drift fixes against core 0.10.10.

types/openwa.d.ts: add the two HookEvents core dispatches that the vendored
SDK type omitted — message:persisted and ingress:error. A plugin that wrote
ctx.registerHook('message:persisted', …) against this type got a TypeScript
error even though the host would accept and dispatch it; the runtime allowed
what the type forbade. The type now mirrors core's HookEvent union (19 events).

http-action: minOpenWAVersion 0.8.7 → 0.8.0. The two capabilities http-action
relies on — conversation:send and net.allowConfigHosts — both shipped in
0.8.0 (the Integration Fabric release). The 0.8.7 floor was overstated by
seven patch versions, refusing an install on servers that would in fact run
the plugin correctly. Widening compatibility, not a behaviour change — no
version bump.

plugins.json + http-action/README regenerated by `npm run catalog` so the
catalog and the manifest stay in sync (the catalog:check CI gate).
@rmyndharis
rmyndharis merged commit 0f93873 into main Jul 26, 2026
1 check passed
@rmyndharis
rmyndharis deleted the fix/sdk-type-and-http-action-floor branch July 26, 2026 19:09
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