@tinycloud/cli 1.2.6-beta.3 → 1.2.6-beta.4
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.
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +23 -8
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +6 -6
package/dist/legacy-entry.js
CHANGED
|
@@ -8540,6 +8540,8 @@ var init_dist2 = __esm({
|
|
|
8540
8540
|
REPLICATION_SYNC: "replication.sync",
|
|
8541
8541
|
REPLICATION_STATE: "replication.state",
|
|
8542
8542
|
REPLICATION_DIVERGENCE: "replication.divergence",
|
|
8543
|
+
REPLICATION_GRANT: "replication.grant",
|
|
8544
|
+
REPLICATION_LIFECYCLE: "replication.lifecycle",
|
|
8543
8545
|
/** Emitted once, on the first write rejected because storage is full. */
|
|
8544
8546
|
STORAGE_FULL: "storage.full"
|
|
8545
8547
|
};
|
|
@@ -8559,21 +8561,27 @@ var init_dist2 = __esm({
|
|
|
8559
8561
|
"fetched",
|
|
8560
8562
|
"pages",
|
|
8561
8563
|
"lagMs",
|
|
8562
|
-
"pendingCleared"
|
|
8564
|
+
"pendingCleared",
|
|
8565
|
+
"partitions",
|
|
8566
|
+
"remaining",
|
|
8567
|
+
"expiryMs"
|
|
8563
8568
|
]);
|
|
8564
|
-
SAFE_BOOLEAN_FIELDS = /* @__PURE__ */ new Set(["authenticated", "ok", "persisted"]);
|
|
8569
|
+
SAFE_BOOLEAN_FIELDS = /* @__PURE__ */ new Set(["authenticated", "ok", "persisted", "purgePending"]);
|
|
8565
8570
|
SAFE_REPLICATION_FIELDS = {
|
|
8566
8571
|
source: ["replica", "network", "none"],
|
|
8567
|
-
reason: ["hit", "absent", "deleted", "content_missing", "coverage_incomplete", "not_covered", "pending_write", "grant_missing", "grant_expired", "grant_revoked", "grant_not_yet_valid", "stale", "replica_error", "runtime_unsupported", "replica_unavailable", "unsupported_option", "network_cursor", "cursor_restart", "aborted", "REPLICA_BEHIND_OWN_WRITES", "REPLICA_UNPROVEN_SINCE_START", "NETWORK_REQUESTED"],
|
|
8572
|
+
reason: ["hit", "absent", "deleted", "content_missing", "coverage_incomplete", "not_covered", "pending_write", "grant_missing", "grant_expired", "grant_revoked", "grant_not_yet_valid", "stale", "replica_error", "runtime_unsupported", "replica_unavailable", "unsupported_option", "network_cursor", "cursor_restart", "aborted", "REPLICA_BEHIND_OWN_WRITES", "REPLICA_UNPROVEN_SINCE_START", "NETWORK_REQUESTED", "replica_gated", "sign_out", "account_switch", "consent_expired", "startup"],
|
|
8568
8573
|
op: ["get", "list", "put", "delete", "batchPut"],
|
|
8569
|
-
trigger: ["start", "interval", "stale_read", "manual"],
|
|
8574
|
+
trigger: ["start", "interval", "stale_read", "manual", "peer"],
|
|
8575
|
+
origin: ["peer"],
|
|
8570
8576
|
outcome: ["found", "not_found", "error", "committed", "failed", "ambiguous", "ok", "busy", "aborted"],
|
|
8571
|
-
class: ["offline", "authority", "storage", "node"],
|
|
8572
|
-
state: ["opened", "grant_installed", "grant_missing", "runtime_unsupported", "unavailable", "revoked", "recreated", "purged", "purge_failed", "pending_store_error", "pinned", "pending_cleared", "closed", "idle", "ready"],
|
|
8577
|
+
class: ["offline", "authority", "storage", "node", "lifecycle"],
|
|
8578
|
+
state: ["opened", "grant_installed", "grant_missing", "runtime_unsupported", "unavailable", "revoked", "recreated", "purged", "purge_failed", "pending_store_error", "pinned", "pending_cleared", "closed", "idle", "ready", "gated"],
|
|
8579
|
+
action: ["minted", "renewed", "renewal_refused", "renewal_deferred", "capped", "expired", "consent_deadline_reached", "denied", "deny_stale", "deny_failed", "database_deleted", "marker_set", "marker_cleared", "unguarded", "drained", "erased", "erase_failed", "activation_blocked", "activated", "recovered"],
|
|
8580
|
+
gate: ["not_established", "stamp_stale", "principal_mismatch", "purge_pending", "logout_pending", "gate_unavailable"],
|
|
8573
8581
|
kind: ["value", "missing_local", "extra_local", "keys", "order"],
|
|
8574
8582
|
coverage: ["empty", "bootstrapping", "complete"],
|
|
8575
8583
|
authority: ["valid", "expired", "revoked", "not-yet-valid"],
|
|
8576
|
-
code: ["NETWORK_ERROR", "TIMEOUT", "ABORTED", "REPLICA_BUSY", "REPLICA_BEHIND_OWN_WRITES", "REPLICA_UNPROVEN_SINCE_START", "NETWORK_REQUESTED", "INTEGRITY_ERROR", "STORAGE_ERROR", "REPLICA_CLOSED", "RUNTIME_UNSUPPORTED", "GRANT_EXPIRED", "GRANT_REVOKED", "GRANT_NOT_YET_VALID", "GRANT_MISSING", "GRANT_INVALID", "SOURCE_CHANGED", "PROTOCOL_ERROR", "SCOPE_VIOLATION", "NODE_ERROR", "CONTENT_MISMATCH", "STORAGE_FULL"],
|
|
8584
|
+
code: ["NETWORK_ERROR", "TIMEOUT", "ABORTED", "REPLICA_BUSY", "REPLICA_BEHIND_OWN_WRITES", "REPLICA_UNPROVEN_SINCE_START", "NETWORK_REQUESTED", "INTEGRITY_ERROR", "STORAGE_ERROR", "REPLICA_CLOSED", "RUNTIME_UNSUPPORTED", "GRANT_EXPIRED", "GRANT_REVOKED", "GRANT_NOT_YET_VALID", "GRANT_MISSING", "GRANT_INVALID", "SOURCE_CHANGED", "PROTOCOL_ERROR", "SCOPE_VIOLATION", "NODE_ERROR", "CONTENT_MISMATCH", "STORAGE_FULL", "REPLICA_GATED", "RESET_REQUIRED", "STORAGE_BUDGET", "CONSENT_EXPIRED"],
|
|
8577
8585
|
pendingState: ["in_flight", "committed", "ambiguous"],
|
|
8578
8586
|
strategy: ["session", "minted", "installed"],
|
|
8579
8587
|
verify: ["match", "diverged", "error", "aborted"]
|
|
@@ -14903,7 +14911,14 @@ function createReplicationEventSink(profileRoot, options) {
|
|
|
14903
14911
|
`);
|
|
14904
14912
|
} else if (event.type === "replication.sync") {
|
|
14905
14913
|
const pending = event.pendingCleared === void 0 ? "" : ` pendingCleared:${event.pendingCleared}`;
|
|
14906
|
-
|
|
14914
|
+
const origin = event.origin === void 0 ? "" : ` origin:${event.origin}`;
|
|
14915
|
+
process.stderr.write(`[replication] sync ${event.replica} ${event.outcome}${event.code ? ` ${event.code}` : ""}${pending}${origin}
|
|
14916
|
+
`);
|
|
14917
|
+
} else if (event.type === "replication.grant") {
|
|
14918
|
+
process.stderr.write(`[replication] grant ${event.replicaId} ${event.action}${event.code ? ` ${event.code}` : ""}${event.effectiveExpiresAt ? ` effectiveExpiresAt:${event.effectiveExpiresAt}` : ""}
|
|
14919
|
+
`);
|
|
14920
|
+
} else if (event.type === "replication.lifecycle") {
|
|
14921
|
+
process.stderr.write(`[replication] lifecycle ${event.action}${event.reason ? ` ${event.reason}` : ""}${event.gate ? ` gate:${event.gate}` : ""}${event.code ? ` ${event.code}` : ""}${event.remaining === void 0 ? "" : ` remaining:${event.remaining}`}
|
|
14907
14922
|
`);
|
|
14908
14923
|
}
|
|
14909
14924
|
}
|