Skip to content

orpc chkit client#104

Merged
KeKs0r merged 14 commits intomainfrom
orpc-chkit-client
Mar 29, 2026
Merged

orpc chkit client#104
KeKs0r merged 14 commits intomainfrom
orpc-chkit-client

Conversation

@KeKs0r
Copy link
Copy Markdown
Contributor

@KeKs0r KeKs0r commented Mar 29, 2026

  • refactor(plugin-obsessiondb): replace hand-rolled API client with ORPC
  • fix(plugin-obsessiondb): add grant_type to device token poll request
  • fix(plugin-obsessiondb): handle 400 responses in device token polling
  • Commit currnet Progress
  • refactor(plugin-obsessiondb): migrate remote executor and services to oRPC

KeKs0r and others added 14 commits March 29, 2026 11:16
Replace the manual fetch-based api-client.ts with a typed ORPC client
backed by contracts copied from the platform repo. Narrows remote
commands to status/cancel/list and adds --job-id/--service-id flags.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
RFC 8628 requires the grant_type field in the device authorization
token request, which better-auth's device plugin enforces.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
RFC 8628 device flow returns authorization_pending and slow_down as 400
responses. The !res.ok guard was throwing before the body could be parsed,
preventing the existing switch/case from handling these expected states.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… oRPC

Replace REST API calls with oRPC client for all remote operations.
The remote executor now routes SQL through workbench.query.execute
instead of the removed /api/v1/ endpoints. Extract shared introspection
helpers (buildIntrospectedTables, normalize functions) from @chkit/clickhouse
so both local and remote executors reuse the same logic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a lightweight stderr debug logger gated by CHKIT_DEBUG=1.
Instruments config loading, command dispatch, all plugin lifecycle
hooks, ClickHouse executor (queries, timing, errors), journal
operations, schema loading, and per-command details (migrate,
generate, status, drift, check).

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Replace the manual fetch-based api-client.ts with a typed ORPC client
backed by contracts copied from the platform repo. Narrows remote
commands to status/cancel/list and adds --job-id/--service-id flags.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
RFC 8628 requires the grant_type field in the device authorization
token request, which better-auth's device plugin enforces.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
RFC 8628 device flow returns authorization_pending and slow_down as 400
responses. The !res.ok guard was throwing before the body could be parsed,
preventing the existing switch/case from handling these expected states.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… oRPC

Replace REST API calls with oRPC client for all remote operations.
The remote executor now routes SQL through workbench.query.execute
instead of the removed /api/v1/ endpoints. Extract shared introspection
helpers (buildIntrospectedTables, normalize functions) from @chkit/clickhouse
so both local and remote executors reuse the same logic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@KeKs0r KeKs0r merged commit 47a9213 into main Mar 29, 2026
3 of 4 checks passed
@KeKs0r KeKs0r deleted the orpc-chkit-client branch March 29, 2026 20:56
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