Merged
Conversation
Contributor
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
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>
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.