@happyvertical/smrt-web 0.69.0 → 0.70.1
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/agents/offline-outbox.md +5 -3
- package/dist/chunks/{src-CYol5_bh.js → src-Bp1pvXgu.js} +3 -3
- package/dist/chunks/src-Bp1pvXgu.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/offline/engine.d.ts +2 -2
- package/dist/offline/engine.d.ts.map +1 -1
- package/dist/offline/types.d.ts +5 -3
- package/dist/offline/types.d.ts.map +1 -1
- package/dist/smrt-knowledge.okf.md +2 -2
- package/dist/webmcp.js +1 -1
- package/package.json +3 -3
- package/dist/chunks/src-CYol5_bh.js.map +0 -1
package/agents/offline-outbox.md
CHANGED
|
@@ -54,9 +54,11 @@ was sent but whose response was lost is blindly re-sent with no duplicate rows
|
|
|
54
54
|
the ambiguous-failure AC. Result → durable-transition mapping follows the
|
|
55
55
|
sync-apply-contract's "Web outbox (#1762)" consumer notes: `applied` → remove /
|
|
56
56
|
`synced`; `conflict` → remove + fire `onConflict` / `synced` (a conflict is a
|
|
57
|
-
RESOLVED outcome, not a failure); retryable `write_failed`
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
RESOLVED outcome, not a failure); retryable `write_failed` and `rate_limited`
|
|
58
|
+
(a host throttled the item, #5195) → keep + backoff / `pending`;
|
|
59
|
+
`auth_required`/`forbidden` → PAUSE the loop until re-auth, keep queued; other
|
|
60
|
+
terminal rejections, and any reason the engine does not know → remove /
|
|
61
|
+
`failed`; network/non-200/lost
|
|
60
62
|
response → whole batch stays `pending`.
|
|
61
63
|
|
|
62
64
|
**Shared, namespace-keyed engine** (`offline/engine.ts`,
|
|
@@ -1265,8 +1265,8 @@ var OutboxEngine = class {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
return false;
|
|
1267
1267
|
}
|
|
1268
|
-
if (reason === "write_failed") {
|
|
1269
|
-
await this.requeueRow(row,
|
|
1268
|
+
if (reason === "write_failed" || reason === "rate_limited") {
|
|
1269
|
+
await this.requeueRow(row, `sync ${reason}`);
|
|
1270
1270
|
return false;
|
|
1271
1271
|
}
|
|
1272
1272
|
await this.queue?.remove(row.seq);
|
|
@@ -3766,4 +3766,4 @@ function createSmrtCollection(definition, options) {
|
|
|
3766
3766
|
//#endregion
|
|
3767
3767
|
export { wipeDurableStore as A, MAX_SMRT_WEB_DATA_QUERY_FACETS as B, getOutboxHandle as C, pruneDurableNamespace as D, listDurableNamespaces as E, classifySmrtWebDataSurfaceActionResult as F, MAX_SMRT_WEB_DATA_QUERY_ROWS as G, MAX_SMRT_WEB_DATA_QUERY_OFFSET as H, dataSurfaceActionCommandTransport as I, executeSmrtWebDataQuery as J, MAX_SMRT_WEB_DATA_QUERY_STRING_LENGTH as K, executeSmrtWebDataSurfaceAction as L, MAX_SMRT_WEB_DATA_SURFACE_ACTION_IDENTIFIER_LENGTH as M, MAX_SMRT_WEB_DATA_SURFACE_ACTION_JSON_DEPTH as N, durableStoreNamespace as O, MAX_SMRT_WEB_DATA_SURFACE_ACTION_RESULT_BYTES as P, normalizeSmrtWebDataSurfaceActionResult as R, persistDataSurface as S, offlineOutbox as T, MAX_SMRT_WEB_DATA_QUERY_PAGE_LIMIT as U, MAX_SMRT_WEB_DATA_QUERY_FACET_VALUES as V, MAX_SMRT_WEB_DATA_QUERY_RESULT_BYTES as W, runWrapMutation as X, normalizeSmrtWebDataQueryResult as Y, createSmrtWebEventSubscriber as _, createSmrtWebClient as a, DEFAULT_PERSIST_DEBOUNCE_MS as b, newLocalId as c, unwrapListResult as d, validateSmrtWebClient as f, createUpdateState as g, registerWebMcpTools as h, createSmrtCollection as i, MAX_SMRT_WEB_DATA_SURFACE_ACTION_CONTAINER_ITEMS as j, registerDurableResource as k, throwIfSmrtWebError as l, registerWebMcpBespokeTool as m, buildListQuery as n, getEngineCollection as o, registerViewIntent as p, MAX_SMRT_WEB_DATA_QUERY_WARNINGS as q, createDefinitionFetchers as r, invalidateSmrtWebCollections as s, SmrtWebRequestError as t, unwrapItemResult as u, liveInvalidation as v, offlineCommandQueue as w, persistCollection as x, createSmrtWebQuery as y, MAX_SMRT_WEB_DATA_QUERY_CONTAINER_ITEMS as z };
|
|
3768
3768
|
|
|
3769
|
-
//# sourceMappingURL=src-
|
|
3769
|
+
//# sourceMappingURL=src-Bp1pvXgu.js.map
|