@pgxsinkit/contracts 0.2.4 → 0.2.5

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/runtime.d.ts CHANGED
@@ -2,9 +2,10 @@ export type SyncRuntimePhase = "booting" | "syncing" | "ready" | "degraded" | "a
2
2
  export interface SyncRuntimeStatus {
3
3
  /**
4
4
  * `auth-needed` (ADR-0013): the read path is hitting auth errors (401/403) and is retrying
5
- * forever with backoff — distinct from `degraded` (a sync commit exhausted its retries). The app
6
- * should prompt re-login; sync auto-resumes (phase returns to `ready`/`syncing`) the instant
7
- * re-authentication makes the token valid again. It never silently wedges or permanently stops.
5
+ * forever with backoff — distinct from `degraded`, which covers the read path not being SERVED (a
6
+ * shape stream erroring, or unable to reach the server at all) and a sync commit that exhausted its
7
+ * retries. The app should prompt re-login; sync auto-resumes (phase returns to `ready`/`syncing`) the
8
+ * instant re-authentication makes the token valid again. It never silently wedges or permanently stops.
8
9
  */
9
10
  phase: SyncRuntimePhase;
10
11
  isRunning: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC;AAE5F,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,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AE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,gGAAgG;IAChG,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,uFAAuF;IACvF,YAAY,EAAE,MAAM,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgxsinkit/contracts",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "keywords": [
5
5
  "tanstack-intent"
6
6
  ],
@@ -15,7 +15,7 @@ description: >-
15
15
  metadata:
16
16
  type: core
17
17
  library: "@pgxsinkit/contracts"
18
- library_version: "0.2.4"
18
+ library_version: "0.2.5"
19
19
  source: https://pgxsinkit.github.io/start/getting-started/
20
20
  ---
21
21
 
package/src/runtime.ts CHANGED
@@ -3,9 +3,10 @@ export type SyncRuntimePhase = "booting" | "syncing" | "ready" | "degraded" | "a
3
3
  export interface SyncRuntimeStatus {
4
4
  /**
5
5
  * `auth-needed` (ADR-0013): the read path is hitting auth errors (401/403) and is retrying
6
- * forever with backoff — distinct from `degraded` (a sync commit exhausted its retries). The app
7
- * should prompt re-login; sync auto-resumes (phase returns to `ready`/`syncing`) the instant
8
- * re-authentication makes the token valid again. It never silently wedges or permanently stops.
6
+ * forever with backoff — distinct from `degraded`, which covers the read path not being SERVED (a
7
+ * shape stream erroring, or unable to reach the server at all) and a sync commit that exhausted its
8
+ * retries. The app should prompt re-login; sync auto-resumes (phase returns to `ready`/`syncing`) the
9
+ * instant re-authentication makes the token valid again. It never silently wedges or permanently stops.
9
10
  */
10
11
  phase: SyncRuntimePhase;
11
12
  isRunning: boolean;