@happyvertical/smrt-web 0.53.4 → 0.53.6
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.md +1 -1
- package/dist/chunks/{src-D6-Y3V-1.js → src-BFQJky1a.js} +2 -1
- package/dist/chunks/{src-D6-Y3V-1.js.map → src-BFQJky1a.js.map} +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/webmcp.js +1 -1
- package/package.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -25,7 +25,7 @@ mutations without hand-wiring cache keys or fetch/state.
|
|
|
25
25
|
derived from the generated definition (same URL scheme as the generated
|
|
26
26
|
client, but HTTP error statuses reject instead of resolving).
|
|
27
27
|
- `unwrapListResult` / `unwrapItemResult` — normalize generated-client payloads
|
|
28
|
-
(`T[]`, `{ data }` envelopes, `{ error }` bodies → thrown
|
|
28
|
+
(`T[]`, `{ items }` list envelopes, `{ data }` envelopes, `{ error }` bodies → thrown
|
|
29
29
|
`SmrtWebRequestError`).
|
|
30
30
|
|
|
31
31
|
## Modules
|
|
@@ -3082,6 +3082,7 @@ function unwrapListResult(result, collectionName) {
|
|
|
3082
3082
|
if (Array.isArray(result)) return result;
|
|
3083
3083
|
if (result && typeof result === "object") {
|
|
3084
3084
|
const record = result;
|
|
3085
|
+
if (Array.isArray(record.items)) return record.items;
|
|
3085
3086
|
if (Array.isArray(record.data)) return record.data;
|
|
3086
3087
|
}
|
|
3087
3088
|
throw new SmrtWebRequestError(`[smrt-web] list(${collectionName}) returned an unexpected payload shape`, result);
|
|
@@ -3555,4 +3556,4 @@ function createSmrtCollection(definition, options) {
|
|
|
3555
3556
|
//#endregion
|
|
3556
3557
|
export { MAX_SMRT_WEB_DATA_SURFACE_ACTION_IDENTIFIER_LENGTH as A, MAX_SMRT_WEB_DATA_QUERY_OFFSET as B, getOutboxHandle as C, registerDurableResource as D, durableStoreNamespace as E, executeSmrtWebDataSurfaceAction as F, MAX_SMRT_WEB_DATA_QUERY_WARNINGS as G, MAX_SMRT_WEB_DATA_QUERY_RESULT_BYTES as H, normalizeSmrtWebDataSurfaceActionResult as I, runWrapMutation as J, executeSmrtWebDataQuery as K, MAX_SMRT_WEB_DATA_QUERY_CONTAINER_ITEMS as L, MAX_SMRT_WEB_DATA_SURFACE_ACTION_RESULT_BYTES as M, classifySmrtWebDataSurfaceActionResult as N, wipeDurableStore as O, dataSurfaceActionCommandTransport as P, MAX_SMRT_WEB_DATA_QUERY_FACETS as R, persistDataSurface as S, offlineOutbox as T, MAX_SMRT_WEB_DATA_QUERY_ROWS as U, MAX_SMRT_WEB_DATA_QUERY_PAGE_LIMIT as V, MAX_SMRT_WEB_DATA_QUERY_STRING_LENGTH as W, 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_JSON_DEPTH as j, MAX_SMRT_WEB_DATA_SURFACE_ACTION_CONTAINER_ITEMS as k, throwIfSmrtWebError as l, registerWebMcpBespokeTool as m, buildListQuery as n, getEngineCollection as o, registerViewIntent as p, normalizeSmrtWebDataQueryResult 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_FACET_VALUES as z };
|
|
3557
3558
|
|
|
3558
|
-
//# sourceMappingURL=src-
|
|
3559
|
+
//# sourceMappingURL=src-BFQJky1a.js.map
|