name: parity-sync description: Add or update a method across hdb/hdbext packages with ESM/CJS/type parity. Use when changing runtime API in either package. disable-model-invocation: true
Implement the requested method change with parity across hdb/ and hdbext/ unless explicitly told otherwise.
$ARGUMENTS
Steps
- Identify scope — Map the impacted API surface and corresponding files in both packages.
- Update runtime implementation — Edit both
index.jsandindex.cjsin each affected package. Preserve existing naming conventions (*Promisifiedsuffix for promise wrappers). - Respect known divergences —
loadProcedurePromisifiedhas different signatures (hdb: 2 params, hdbext: 3 params).callProcedurePromisifiedcallsstoredProc.exec()in hdb butstoredProc()in hdbext.destroyClient/validateClient/fetchSPMetadataare hdb-only. - Add or update tests — Use existing Mocha +
assertstyle intests/*.Test.js. Tests exercise both ESM and CJS variants via themoduleVariantsloop pattern. - Regenerate type declarations — Run
npm run typesin each affected package directory. Verify generated files under@types/reflect the updated API. - Keep changes minimal — Avoid unrelated refactors.
Output
Report:
- Files changed by package
- Parity status (full parity or justified divergence with explanation)
- Validation performed (tests/types) and any environment blockers