@korajs/devtools 1.0.0-beta.12 → 1.0.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -430,8 +430,14 @@ var EVENT_TYPE_CATEGORIES = {
430
430
  "sync:auth-failed": "sync",
431
431
  "sync:suspended": "sync",
432
432
  "sync:clock-skew": "sync",
433
+ "encryption:status": "sync",
434
+ "sync:node-id-rotated": "sync",
435
+ "sync:local-node": "sync",
433
436
  "sync:clock-rebase": "sync",
434
437
  "sync:schema-mismatch": "sync",
438
+ "sync:protocol-deprecated": "sync",
439
+ "sync:unverified-legacy-operation": "sync",
440
+ "sync:forged-duplicate": "sync",
435
441
  "sync:apply-failed": "sync",
436
442
  "sync:apply-blocked": "sync",
437
443
  "sync:apply-retrying": "sync",
@@ -445,20 +451,30 @@ var EVENT_TYPE_CATEGORIES = {
445
451
  "query:subscribed": "query",
446
452
  "query:invalidated": "query",
447
453
  "query:executed": "query",
454
+ "query:error": "query",
455
+ "storage:persistence": "connection",
448
456
  "connection:quality": "connection",
449
457
  "sync:diagnostics": "sync",
450
458
  "sync:bandwidth": "sync",
451
459
  "sync:initial-sync-progress": "sync",
452
460
  "sync:delivery-gap": "sync",
453
461
  "sync:delivery-stalled": "sync",
462
+ "sync:durability-degraded": "connection",
463
+ "sync:durability-restored": "connection",
454
464
  "awareness:updated": "sync",
455
465
  "state-machine:transition": "operation",
456
466
  "state-machine:rejected": "operation",
457
467
  "store:persistence-error": "connection",
458
468
  "store:quota-exceeded": "connection",
469
+ "store:log-integrity": "operation",
470
+ "store:rematerialized": "operation",
459
471
  "store:storage-fallback": "connection",
460
472
  "store:opfs-unavailable": "connection",
473
+ "store:durability-lost": "connection",
461
474
  "store:db-name-collision": "connection",
475
+ "store:storage-blocked": "connection",
476
+ "store:storage-migrated": "connection",
477
+ "store:schema-ahead": "connection",
462
478
  "replay:completed": "operation"
463
479
  };
464
480
  function eventTypeToCategory(type) {
@@ -726,12 +742,24 @@ function timelineLabel(event) {
726
742
  return "sync auth failed";
727
743
  case "sync:suspended":
728
744
  return `sync suspended (${event.reason})`;
745
+ case "encryption:status":
746
+ return `encryption ${event.status.state}${event.status.code ? ` (${event.status.code})` : ""}`;
729
747
  case "sync:clock-skew":
730
748
  return `clock skew ${Math.round(event.skewMs / 1e3)}s (${event.severity})`;
749
+ case "sync:node-id-rotated":
750
+ return `node id rotated (${event.reenqueuedCount} ops re-queued)`;
751
+ case "sync:local-node":
752
+ return `local node ${event.nodeId} ${event.action}`;
731
753
  case "sync:clock-rebase":
732
754
  return `clock rebase ${event.rebasedCount} ops (${Math.round(event.maxSkewMs / 1e3)}s ahead)`;
733
755
  case "sync:schema-mismatch":
734
756
  return `schema mismatch client ${event.clientSchemaVersion} server ${event.serverSchemaVersion}`;
757
+ case "sync:protocol-deprecated":
758
+ return `protocol v${event.clientProtocolVersion} deprecated (node ${event.nodeId})`;
759
+ case "sync:unverified-legacy-operation":
760
+ return `unverified legacy op ${event.operationId} (node ${event.nodeId})`;
761
+ case "sync:forged-duplicate":
762
+ return `forged duplicate refused ${event.operationId} (node ${event.nodeId})`;
735
763
  case "sync:apply-failed":
736
764
  return `sync apply failed ${event.operationId}`;
737
765
  case "sync:apply-blocked":
@@ -758,6 +786,10 @@ function timelineLabel(event) {
758
786
  return `query invalidated ${event.queryId}`;
759
787
  case "query:executed":
760
788
  return `query executed ${event.queryId}`;
789
+ case "query:error":
790
+ return `query error ${event.collection} (${event.phase}): ${event.message}`;
791
+ case "storage:persistence":
792
+ return `storage persistence ${event.state}: ${event.persisted ? "persisted" : "best-effort"}`;
761
793
  case "connection:quality":
762
794
  return `connection ${event.quality}`;
763
795
  case "sync:diagnostics":
@@ -770,6 +802,10 @@ function timelineLabel(event) {
770
802
  return `delivery gap expected ${event.expectedBase} received ${event.receivedBase}`;
771
803
  case "sync:delivery-stalled":
772
804
  return `delivery unacknowledged ${event.watermark} \u2192 ${event.outstandingMaxDeliverySequence} (${event.repeatCount} repeats)`;
805
+ case "sync:durability-degraded":
806
+ return `local durability degraded after ${event.failedAttempts} failed barriers: ${event.message}`;
807
+ case "sync:durability-restored":
808
+ return "local durability restored";
773
809
  case "awareness:updated":
774
810
  return `awareness ${event.states.size} peers`;
775
811
  case "state-machine:transition":
@@ -780,12 +816,24 @@ function timelineLabel(event) {
780
816
  return `store persistence error ${event.message}`;
781
817
  case "store:quota-exceeded":
782
818
  return "store quota exceeded";
819
+ case "store:log-integrity":
820
+ return `log integrity: ${event.repaired} repaired, ${event.quarantined} quarantined`;
821
+ case "store:rematerialized":
822
+ return `re-materialized ${event.records} records (${event.mode}), ${event.changedRows} changed`;
783
823
  case "store:storage-fallback":
784
824
  return `store fallback ${event.from} \u2192 ${event.to}`;
785
825
  case "store:opfs-unavailable":
786
826
  return `store OPFS unavailable (${event.reason}), running in memory`;
827
+ case "store:durability-lost":
828
+ return `store durability lost (${event.reason} during ${event.phase}), writes refused`;
787
829
  case "store:db-name-collision":
788
830
  return `store db-name collision ${event.dbName}`;
831
+ case "store:storage-blocked":
832
+ return `store ${event.resource} ${event.state === "waiting" ? "blocked by another holder" : "unblocked"}`;
833
+ case "store:storage-migrated":
834
+ return `store migrated ${event.from} \u2192 ${event.to}`;
835
+ case "store:schema-ahead":
836
+ return `store refused: database at schema v${event.storedVersion}, code at v${event.codeVersion}`;
789
837
  case "replay:completed":
790
838
  return `replay ${event.operationsApplied} ops`;
791
839
  }