Skip to content

refactor(zalouser): use native typing API - #107716

Merged
steipete merged 1 commit into
mainfrom
codex/zca-native-typing
Jul 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/zca-native-typing

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Zalouser typing path kept a local capability type, runtime method probe, assertion, and fallback error for a method guaranteed by the pinned dependency.

Why This Change Was Made

Use the native [email protected] API.sendTypingEvent contract directly. Both login paths construct API; its type requires the method and its constructor always installs the factory.

This removes 11 production lines without changing arguments or error propagation.

User Impact

None expected. Valid Zalo sessions follow the same typing request path; impossible compatibility scaffolding is gone.

Evidence

  • Direct dependency inspection: dist/apis.d.ts requires sendTypingEvent, dist/apis.js assigns it in the constructor, and the factory signature matches the existing call.
  • node scripts/run-vitest.mjs extensions/zalouser/src/zalo-js.credentials.test.ts extensions/zalouser/src/send.test.ts extensions/zalouser/src/zca-client.test.ts extensions/zalouser/src/monitor.group-gating.test.ts — 53 tests passed.
  • Package-boundary TypeScript contract probe — zero diagnostics.
  • Scoped oxlint, oxfmt, and git diff --check — passed.
  • Fresh local and branch autoreview — no accepted or actionable findings.
  • No live Zalo session proof; this is a behavior-neutral dependency-contract cleanup.
  • Hosted CI intentionally not awaited per maintainer direction.

@openclaw-barnacle openclaw-barnacle Bot added channel: zalouser Channel integration: zalouser size: XS labels Jul 14, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for head a3612cebccf56c1daddbba3360570a158ecb7337:

Known proof gap: no live Zalo account session was used. This change removes an impossible guard without changing dependency calls. Hosted CI intentionally not awaited per maintainer direction.

@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Jul 14, 2026
@steipete
steipete merged commit 61df1db into main Jul 14, 2026
59 of 62 checks passed
@steipete
steipete deleted the codex/zca-native-typing branch July 14, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: zalouser Channel integration: zalouser maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant