@happyvertical/smrt-web 0.49.1 → 0.49.3
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/README.md +13 -0
- package/dist/chunks/{src-DHH8ptH8.js → src-BSrj5jW0.js} +3 -3
- package/dist/chunks/{src-DHH8ptH8.js.map → src-BSrj5jW0.js.map} +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/webmcp.d.ts +7 -1
- package/dist/webmcp.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1635,7 +1635,7 @@ export declare interface WebMcpBespokeToolSpec {
|
|
|
1635
1635
|
openWorldHint?: boolean;
|
|
1636
1636
|
untrustedContentHint?: boolean;
|
|
1637
1637
|
};
|
|
1638
|
-
execute: (args: Record<string, unknown
|
|
1638
|
+
execute: (args: Record<string, unknown>, options?: WebMcpToolExecutionOptions) => string | Promise<string>;
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
1641
|
/** The MCP-shaped annotation set a resolved classification emits. */
|
|
@@ -1738,6 +1738,12 @@ export declare interface WebMcpToolDefinition extends WebToolDescriptor {
|
|
|
1738
1738
|
*/
|
|
1739
1739
|
export declare type WebMcpToolEffect = 'read' | 'write' | 'destructive';
|
|
1740
1740
|
|
|
1741
|
+
/** Host-supplied per-invocation options, distinct from registration lifetime. */
|
|
1742
|
+
export declare interface WebMcpToolExecutionOptions {
|
|
1743
|
+
/** Caller cancellation. Older hosts may omit execution options entirely. */
|
|
1744
|
+
signal?: AbortSignal;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1741
1747
|
/**
|
|
1742
1748
|
* Thrown synchronously when a name is already held. Carries the colliding
|
|
1743
1749
|
* name and the owner that holds it so a host can report both without parsing
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MAX_SMRT_WEB_DATA_QUERY_OFFSET, C as offlineOutbox, D as MAX_SMRT_WEB_DATA_QUERY_CONTAINER_ITEMS, E as wipeDurableStore, F as MAX_SMRT_WEB_DATA_QUERY_WARNINGS, I as executeSmrtWebDataQuery, L as normalizeSmrtWebDataQueryResult, M as MAX_SMRT_WEB_DATA_QUERY_RESULT_BYTES, N as MAX_SMRT_WEB_DATA_QUERY_ROWS, O as MAX_SMRT_WEB_DATA_QUERY_FACETS, P as MAX_SMRT_WEB_DATA_QUERY_STRING_LENGTH, R as runWrapMutation, S as getOutboxHandle, T as registerDurableResource, _ as createSmrtWebEventSubscriber, a as createSmrtWebClient, b as DEFAULT_PERSIST_DEBOUNCE_MS, c as newLocalId, d as unwrapListResult, f as validateSmrtWebClient, g as createUpdateState, h as registerWebMcpTools, i as createSmrtCollection, j as MAX_SMRT_WEB_DATA_QUERY_PAGE_LIMIT, k as MAX_SMRT_WEB_DATA_QUERY_FACET_VALUES, l as throwIfSmrtWebError, m as registerWebMcpBespokeTool, n as buildListQuery, o as getEngineCollection, p as registerViewIntent, r as createDefinitionFetchers, s as invalidateSmrtWebCollections, t as SmrtWebRequestError, u as unwrapItemResult, v as liveInvalidation, w as durableStoreNamespace, x as persistCollection, y as createSmrtWebQuery } from "./chunks/src-
|
|
1
|
+
import { A as MAX_SMRT_WEB_DATA_QUERY_OFFSET, C as offlineOutbox, D as MAX_SMRT_WEB_DATA_QUERY_CONTAINER_ITEMS, E as wipeDurableStore, F as MAX_SMRT_WEB_DATA_QUERY_WARNINGS, I as executeSmrtWebDataQuery, L as normalizeSmrtWebDataQueryResult, M as MAX_SMRT_WEB_DATA_QUERY_RESULT_BYTES, N as MAX_SMRT_WEB_DATA_QUERY_ROWS, O as MAX_SMRT_WEB_DATA_QUERY_FACETS, P as MAX_SMRT_WEB_DATA_QUERY_STRING_LENGTH, R as runWrapMutation, S as getOutboxHandle, T as registerDurableResource, _ as createSmrtWebEventSubscriber, a as createSmrtWebClient, b as DEFAULT_PERSIST_DEBOUNCE_MS, c as newLocalId, d as unwrapListResult, f as validateSmrtWebClient, g as createUpdateState, h as registerWebMcpTools, i as createSmrtCollection, j as MAX_SMRT_WEB_DATA_QUERY_PAGE_LIMIT, k as MAX_SMRT_WEB_DATA_QUERY_FACET_VALUES, l as throwIfSmrtWebError, m as registerWebMcpBespokeTool, n as buildListQuery, o as getEngineCollection, p as registerViewIntent, r as createDefinitionFetchers, s as invalidateSmrtWebCollections, t as SmrtWebRequestError, u as unwrapItemResult, v as liveInvalidation, w as durableStoreNamespace, x as persistCollection, y as createSmrtWebQuery } from "./chunks/src-BSrj5jW0.js";
|
|
2
2
|
import { n as compileViewIntentToolSpec, o as viewIntentToolName } from "./chunks/intents-BUTyN7YQ.js";
|
|
3
3
|
import { WebMcpToolNameCollisionError, reserveWebMcpToolNames, webMcpToolNameOwner } from "./webmcp-tool-names.js";
|
|
4
4
|
export { DEFAULT_PERSIST_DEBOUNCE_MS, MAX_SMRT_WEB_DATA_QUERY_CONTAINER_ITEMS, MAX_SMRT_WEB_DATA_QUERY_FACETS, MAX_SMRT_WEB_DATA_QUERY_FACET_VALUES, MAX_SMRT_WEB_DATA_QUERY_OFFSET, MAX_SMRT_WEB_DATA_QUERY_PAGE_LIMIT, MAX_SMRT_WEB_DATA_QUERY_RESULT_BYTES, MAX_SMRT_WEB_DATA_QUERY_ROWS, MAX_SMRT_WEB_DATA_QUERY_STRING_LENGTH, MAX_SMRT_WEB_DATA_QUERY_WARNINGS, SmrtWebRequestError, WebMcpToolNameCollisionError, buildListQuery, compileViewIntentToolSpec, createDefinitionFetchers, createSmrtCollection, createSmrtWebClient, createSmrtWebEventSubscriber, createSmrtWebQuery, createUpdateState, durableStoreNamespace, executeSmrtWebDataQuery, getEngineCollection, getOutboxHandle, invalidateSmrtWebCollections, liveInvalidation, newLocalId, normalizeSmrtWebDataQueryResult, offlineOutbox, persistCollection, registerDurableResource, registerViewIntent, registerWebMcpBespokeTool, registerWebMcpTools, reserveWebMcpToolNames, runWrapMutation, throwIfSmrtWebError, unwrapItemResult, unwrapListResult, validateSmrtWebClient, viewIntentToolName, webMcpToolNameOwner, wipeDurableStore };
|
package/dist/webmcp.d.ts
CHANGED
|
@@ -445,7 +445,7 @@ export declare interface WebMcpBespokeToolSpec {
|
|
|
445
445
|
openWorldHint?: boolean;
|
|
446
446
|
untrustedContentHint?: boolean;
|
|
447
447
|
};
|
|
448
|
-
execute: (args: Record<string, unknown
|
|
448
|
+
execute: (args: Record<string, unknown>, options?: WebMcpToolExecutionOptions) => string | Promise<string>;
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
/** A fully resolved classification. */
|
|
@@ -528,6 +528,12 @@ declare interface WebMcpToolDefinition extends WebToolDescriptor {
|
|
|
528
528
|
*/
|
|
529
529
|
export declare type WebMcpToolEffect = 'read' | 'write' | 'destructive';
|
|
530
530
|
|
|
531
|
+
/** Host-supplied per-invocation options, distinct from registration lifetime. */
|
|
532
|
+
export declare interface WebMcpToolExecutionOptions {
|
|
533
|
+
/** Caller cancellation. Older hosts may omit execution options entirely. */
|
|
534
|
+
signal?: AbortSignal;
|
|
535
|
+
}
|
|
536
|
+
|
|
531
537
|
/**
|
|
532
538
|
* Thrown synchronously when a name is already held. Carries the colliding
|
|
533
539
|
* name and the owner that holds it so a host can report both without parsing
|
package/dist/webmcp.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { h as registerWebMcpTools, m as registerWebMcpBespokeTool, p as registerViewIntent } from "./chunks/src-
|
|
1
|
+
import { h as registerWebMcpTools, m as registerWebMcpBespokeTool, p as registerViewIntent } from "./chunks/src-BSrj5jW0.js";
|
|
2
2
|
import { WebMcpToolNameCollisionError, reserveWebMcpToolNames, webMcpToolNameOwner } from "./webmcp-tool-names.js";
|
|
3
3
|
export { WebMcpToolNameCollisionError, registerViewIntent, registerWebMcpBespokeTool, registerWebMcpTools, reserveWebMcpToolNames, webMcpToolNameOwner };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-web",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.3",
|
|
4
4
|
"description": "SMRT browser client data runtime: typed collection factory wrapping the client-data engine over generated REST clients",
|
|
5
5
|
"author": "HappyVertical",
|
|
6
6
|
"type": "module",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@tanstack/query-db-collection": "^1.0.46"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@happyvertical/smrt-core": "0.49.
|
|
40
|
-
"@happyvertical/smrt-scanner": "0.49.
|
|
39
|
+
"@happyvertical/smrt-core": "0.49.3",
|
|
40
|
+
"@happyvertical/smrt-scanner": "0.49.3",
|
|
41
41
|
"@types/node": "24.13.2",
|
|
42
42
|
"fake-indexeddb": "^6.2.5",
|
|
43
43
|
"typescript": "5.9.3",
|