Repository navigation
Universal PowerSync Diagnostics (POC) #1094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
39c0aa4
feat(diagnostics-core): add core diagnostics package with agent and c…
khawarizmus 9245ed0
chore(diagnostics-ui): update pnpm lockfile, add diagnostics UI packa…
khawarizmus bd80f8f
feat(diagnostics-extension): add Chrome DevTools extension for PowerS…
khawarizmus 9cc7665
feat(schema): implement serialization for schema, tables, columns, an…
khawarizmus 3be75f7
refactor(inspector): remove unused components and composables; stream…
khawarizmus e7de22b
test(schema): add comprehensive tests for Schema serialization, inclu…
khawarizmus cd04e17
feat(diagnostics): enhance diagnostics capabilities with new event st…
khawarizmus 2772fb2
feat(diagnostics): introduce DiagnosticsAgent and related components …
khawarizmus b2a9b47
fix(connection-manager): add currentConnector to track active connect…
khawarizmus a4e5478
fix(diagnostics): implement resync functionality for DiagnosticsClien…
khawarizmus 7a38965
feat(diagnostics): update diagnostics core and UI packages with new P…
khawarizmus 845bc99
feat(diagnostics-ui): integrate theme management and enhance UI compo…
khawarizmus 845b21e
feat(diagnostics-ui): add new components for enhanced diagnostics dis…
khawarizmus 28a2d68
feat(diagnostics-ui): enhance diagnostics UI with new logs tab, bucke…
khawarizmus d57b255
feat(diagnostics-ui): improve diagnostics UI with tab persistence, re…
khawarizmus 90d8d6d
chore: revert some unrelated changes
khawarizmus c72afed
refactored(diagnostics): dropped public interface changes and documen…
khawarizmus a9d13a9
feat(diagnostics-core): define the SdkIntegration and protocol shapes
khawarizmus 82add27
refactor(diagnostics): move the protocol to the diagnostics package; …
khawarizmus 475f08f
refactor(diagnostics): add package READMEs, drop NuxtPowerSyncDatabase
khawarizmus 20ea996
fix(diagnostics): stream subscription timestamps, PowerSync dock icon
khawarizmus fe8ad22
refactor(diagnostics): address review on the protocol package
khawarizmus 8ded8d7
feat(diagnostics): ship PowerSync DevTools as a devframe definition
khawarizmus 4d1eba5
fix(diagnostics): Nuxt devtools now mounts on Vite devtools properly
khawarizmus f188aca
feat(diagnostics): MCP origin knob for node and CLI and spell out too…
khawarizmus 3dfec00
fix(diagnostics): announce source attach and detach, surface tool err…
khawarizmus 5a947a4
fix(diagnostics): keep the Nuxt plugin quiet in production, note Vite…
khawarizmus 1b72c5e
chore(diagnostics): trim traces, type the Nuxt runtime options, mark …
khawarizmus daf7d2d
feat(diagnostics): CLI --token for connectAgent clients, location gua…
khawarizmus 16e1e9d
build: make CI green for the diagnostics packages
khawarizmus ea14ca6
chore: update dependencies
khawarizmus 0e3628e
chore: updated capacitor deps
khawarizmus 9df307b
chore: pinned some dependencies
khawarizmus f43d43d
refactor(diagnostics): drop the CLI and connectAgent, add hold-to-wip…
khawarizmus 71c7757
refactor(diagnostics): move the JS agent and the UI stores out of dia…
khawarizmus 2823b63
refactor(diagnostics): broadcast core events from the web SDK only, l…
khawarizmus 597aa23
refactor(diagnostics): tighten the protocol shapes
khawarizmus 602b868
fix(diagnostics-ui): ticking times, per-SDK setup tabs, sessionStorag…
khawarizmus 72bf747
docs(diagnostics): trim READMEs, mark core and UI internal, wire DevT…
khawarizmus 65817b4
fix(demos): allow the vue-demi build script in the Node demo
khawarizmus dc105bb
chore: fix deps pinning
khawarizmus dfad39c
fix(diagnostics): serve the Node DevTools window on a random port by …
khawarizmus a43207c
feat(diagnostics): print a Node sign-in link that carries the one-tim…
khawarizmus 5b85f60
chore(nuxt): drop the unused unocss dependency; state the Node versio…
khawarizmus cd105a1
docs(diagnostics): trim the READMEs to what users need and drop unver…
khawarizmus bf558a8
chore: updated deps
khawarizmus 17ebaf3
chore: updated lock file
khawarizmus 78ea114
feat(diagnostics): show only the SDKs each host can reach on the empt…
khawarizmus 9a05212
fix(diagnostics): address review: public database type, typed log lev…
khawarizmus 255456b
chore(diagnostics): initial automated release changeset; align versio…
khawarizmus 13d0b52
feat(demos): PowerSync DevTools and a local Supabase stack in react-s…
khawarizmus 7d0c5e3
refactor(diagnostics): move the diagnostics packages to tools/
khawarizmus 170d577
fix(diagnostics): import the Node entry dynamically in examples so pr…
khawarizmus d7a38ed
docs(demos): keep the hosted setup in react-supabase-todolist and add…
khawarizmus 93446b5
Merge remote-tracking branch 'origin/main' into diagnostics-poc
khawarizmus 8c614cd
Merge remote-tracking branch 'origin/main' into diagnostics-poc
simolus3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@powersync/diagnostics-core': patch | ||
| '@powersync/diagnostics-ui': patch | ||
| '@powersync/diagnostics': patch | ||
| --- | ||
|
|
||
| Initial automated release. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@powersync/web': minor | ||
| --- | ||
|
|
||
| Add a `@powersync/web/devtools` subpath that lists the page's open databases for development tooling, and broadcast core diagnostics events to it. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@powersync/node': minor | ||
| --- | ||
|
|
||
| Forward core diagnostics events to PowerSync DevTools, so the Buckets tab shows per-bucket totals. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@powersync/shared-internals': patch | ||
| --- | ||
|
|
||
| Fix `expiresAt` and `lastSyncedAt` on sync stream subscriptions being invalid dates. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@powersync/shared-internals': minor | ||
| --- | ||
|
|
||
| Wire the core diagnostics event stream into the sync client and keep the active `connector` available for the whole connection lifetime. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@powersync/nuxt': major | ||
| --- | ||
|
|
||
| **Breaking:** `NuxtPowerSyncDatabase` is removed; use `PowerSyncDatabase` with `connect(connector, { diagnostics: true })`. Diagnostics now come from `@powersync/diagnostics`: a PowerSync tab on Nuxt DevTools 3, the devframe dock with MCP tools on Nuxt DevTools 4. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@powersync/common': minor | ||
| --- | ||
|
|
||
| Add a `diagnostics` sync option that enables the SQLite core's diagnostics event stream. |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # yaml-language-server: $schema=https://unpkg.com/@powersync/service-schema@latest/json-schema/powersync-config.json | ||
| replication: | ||
| connections: | ||
| - type: postgresql | ||
| uri: !env PS_POSTGRESQL_URI | ||
| sslmode: disable | ||
| # sslmode: verify-full | ||
| debug_api: true | ||
|
|
||
| storage: | ||
| type: postgresql | ||
| uri: !env PS_POSTGRESQL_URI | ||
| sslmode: disable | ||
| # sslmode: verify-full | ||
|
|
||
| sync_config: | ||
| path: ./sync-config.yaml | ||
|
|
||
| port: !env PS_PORT | ||
|
|
||
| client_auth: | ||
| jwks_uri: !env PS_JWKS_URI | ||
| audience: | ||
| - authenticated | ||
|
|
||
| telemetry: | ||
| prometheus_port: 9090 | ||
| disable_telemetry_sharing: true | ||
|
|
||
| api: | ||
| tokens: | ||
| - !env PS_API_TOKEN |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.