@semiont/core 0.5.19 → 0.5.21
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.d.ts +74 -48
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/testing.d.ts +69 -47
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/testing.d.ts
CHANGED
|
@@ -293,6 +293,20 @@ interface components {
|
|
|
293
293
|
BeckonSparkleEvent: {
|
|
294
294
|
annotationId: string;
|
|
295
295
|
};
|
|
296
|
+
/** @description One edit to a linking annotation's body list: add or remove a body item, or replace an existing one. */
|
|
297
|
+
BindBodyOperation: {
|
|
298
|
+
/**
|
|
299
|
+
* @description The type of body operation
|
|
300
|
+
* @enum {string}
|
|
301
|
+
*/
|
|
302
|
+
op: "add" | "remove" | "replace";
|
|
303
|
+
/** @description Body item for add operations */
|
|
304
|
+
item?: components["schemas"]["AnnotationBody"];
|
|
305
|
+
/** @description Previous body item for replace operations */
|
|
306
|
+
oldItem?: components["schemas"]["AnnotationBody"];
|
|
307
|
+
/** @description Replacement body item for replace operations */
|
|
308
|
+
newItem?: components["schemas"]["AnnotationBody"];
|
|
309
|
+
};
|
|
296
310
|
/** @description Void success reply emitted on the bind:body-updated channel after bind:update-body has been applied, matched to the originating command by correlationId. */
|
|
297
311
|
BindBodyUpdated: {
|
|
298
312
|
/** @description Correlation id echoed from the originating bind:update-body command so busRequest can match the reply. */
|
|
@@ -319,20 +333,8 @@ interface components {
|
|
|
319
333
|
annotationId: string;
|
|
320
334
|
/** @description Branded ResourceId of the resource the annotation belongs to */
|
|
321
335
|
resourceId: string;
|
|
322
|
-
/** @description
|
|
323
|
-
operations:
|
|
324
|
-
/**
|
|
325
|
-
* @description The type of body operation
|
|
326
|
-
* @enum {string}
|
|
327
|
-
*/
|
|
328
|
-
op: "add" | "remove" | "replace";
|
|
329
|
-
/** @description Body item for add operations */
|
|
330
|
-
item?: components["schemas"]["AnnotationBody"];
|
|
331
|
-
/** @description Previous body item for replace operations */
|
|
332
|
-
oldItem?: components["schemas"]["AnnotationBody"];
|
|
333
|
-
/** @description Replacement body item for replace operations */
|
|
334
|
-
newItem?: components["schemas"]["AnnotationBody"];
|
|
335
|
-
}[];
|
|
336
|
+
/** @description Ordered body-list edits to apply. */
|
|
337
|
+
operations: components["schemas"]["BindBodyOperation"][];
|
|
336
338
|
};
|
|
337
339
|
BodyOperationAdd: {
|
|
338
340
|
/** @enum {string} */
|
|
@@ -471,7 +473,7 @@ interface components {
|
|
|
471
473
|
BrowsePanelOpenEvent: {
|
|
472
474
|
panel: string;
|
|
473
475
|
scrollToAnnotationId?: string;
|
|
474
|
-
motivation?:
|
|
476
|
+
motivation?: components["schemas"]["Motivation"];
|
|
475
477
|
};
|
|
476
478
|
/** @description Emitted when a browse panel is toggled */
|
|
477
479
|
BrowsePanelToggleEvent: {
|
|
@@ -784,6 +786,15 @@ interface components {
|
|
|
784
786
|
/** @description The gathered annotation context (unified GatheredContext, focus.kind:'annotation') */
|
|
785
787
|
response: components["schemas"]["GatheredContext"];
|
|
786
788
|
};
|
|
789
|
+
/** @description Optional configuration for an annotation-focus gather, which windows text around a mark. Distinct from the resource-focus options (depth / maxResources / includeContent / includeSummary), which traverse the resource graph. */
|
|
790
|
+
GatherAnnotationOptions: {
|
|
791
|
+
/** @description Whether to include source context in the gathered result */
|
|
792
|
+
includeSourceContext?: boolean;
|
|
793
|
+
/** @description Whether to include target context in the gathered result */
|
|
794
|
+
includeTargetContext?: boolean;
|
|
795
|
+
/** @description Characters of surrounding text context to include */
|
|
796
|
+
contextWindow?: number;
|
|
797
|
+
};
|
|
787
798
|
/** @description Request payload sent on the gather:requested bus channel to gather context for an annotation. */
|
|
788
799
|
GatherAnnotationRequest: {
|
|
789
800
|
/** @description Client-generated correlation ID to thread the response back to the originating request */
|
|
@@ -792,15 +803,7 @@ interface components {
|
|
|
792
803
|
annotationId: string;
|
|
793
804
|
/** @description Branded ResourceId of the resource the annotation belongs to */
|
|
794
805
|
resourceId: string;
|
|
795
|
-
|
|
796
|
-
options?: {
|
|
797
|
-
/** @description Whether to include source context in the gathered result */
|
|
798
|
-
includeSourceContext?: boolean;
|
|
799
|
-
/** @description Whether to include target context in the gathered result */
|
|
800
|
-
includeTargetContext?: boolean;
|
|
801
|
-
/** @description Characters of surrounding text context to include */
|
|
802
|
-
contextWindow?: number;
|
|
803
|
-
};
|
|
806
|
+
options?: components["schemas"]["GatherAnnotationOptions"];
|
|
804
807
|
};
|
|
805
808
|
/** @description Progress payload emitted on the gather:annotation-progress SSE channel during LLM context gathering. */
|
|
806
809
|
GatherProgress: {
|
|
@@ -1400,12 +1403,8 @@ interface components {
|
|
|
1400
1403
|
MatchSearchResult: {
|
|
1401
1404
|
correlationId: string;
|
|
1402
1405
|
referenceId: string;
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
score?: number;
|
|
1406
|
-
/** @description Human-readable reason for the match */
|
|
1407
|
-
matchReason?: string;
|
|
1408
|
-
})[];
|
|
1406
|
+
/** @description The scored candidates, best first. */
|
|
1407
|
+
response: components["schemas"]["ScoredResource"][];
|
|
1409
1408
|
};
|
|
1410
1409
|
MediaTokenRequest: {
|
|
1411
1410
|
/** @description The resource ID to generate a media token for */
|
|
@@ -1607,6 +1606,13 @@ interface components {
|
|
|
1607
1606
|
contentChecksum: string;
|
|
1608
1607
|
contentByteSize?: number;
|
|
1609
1608
|
};
|
|
1609
|
+
/** @description A resource returned by a search, carrying its relevance score and the reason it matched. */
|
|
1610
|
+
ScoredResource: components["schemas"]["ResourceDescriptor"] & {
|
|
1611
|
+
/** @description Relevance score assigned by the matcher; higher is a better candidate. */
|
|
1612
|
+
score?: number;
|
|
1613
|
+
/** @description Human-readable reason for the match. */
|
|
1614
|
+
matchReason?: string;
|
|
1615
|
+
};
|
|
1610
1616
|
/** @description Selection data for user-initiated annotations. Captures the text range and optional selector information from a user's highlight in the UI. */
|
|
1611
1617
|
SelectionData: {
|
|
1612
1618
|
/** @description The exact selected text */
|
|
@@ -2075,6 +2081,23 @@ type StoredEvent<T extends EventBase = PersistedEvent> = T & {
|
|
|
2075
2081
|
signature?: EventSignature;
|
|
2076
2082
|
};
|
|
2077
2083
|
|
|
2084
|
+
/**
|
|
2085
|
+
* Viewport-space rectangle of a clicked annotation element — runtime-only
|
|
2086
|
+
* view geometry riding UI events (never wire vocabulary; deliberately not in
|
|
2087
|
+
* the OpenAPI schemas). Structurally satisfied by a DOM `DOMRect`, spelled
|
|
2088
|
+
* out here because this package compiles without the DOM lib.
|
|
2089
|
+
*/
|
|
2090
|
+
interface AnchorRect {
|
|
2091
|
+
x: number;
|
|
2092
|
+
y: number;
|
|
2093
|
+
width: number;
|
|
2094
|
+
height: number;
|
|
2095
|
+
top: number;
|
|
2096
|
+
right: number;
|
|
2097
|
+
bottom: number;
|
|
2098
|
+
left: number;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2078
2101
|
/**
|
|
2079
2102
|
* Bus Protocol
|
|
2080
2103
|
*
|
|
@@ -2118,22 +2141,6 @@ type BindUpdateBodyCommand = components['schemas']['BindUpdateBodyCommand'] & {
|
|
|
2118
2141
|
* - Commands/reads/results/UI: OpenAPI schema refs — plain strings
|
|
2119
2142
|
* - void: UI-only signals with no payload
|
|
2120
2143
|
*/
|
|
2121
|
-
/**
|
|
2122
|
-
* Viewport-space rectangle of a clicked annotation element — runtime-only
|
|
2123
|
-
* view geometry riding UI events (never wire vocabulary; deliberately not in
|
|
2124
|
-
* the OpenAPI schemas). Structurally satisfied by a DOM `DOMRect`, spelled
|
|
2125
|
-
* out here because this package compiles without the DOM lib.
|
|
2126
|
-
*/
|
|
2127
|
-
interface AnchorRect {
|
|
2128
|
-
x: number;
|
|
2129
|
-
y: number;
|
|
2130
|
-
width: number;
|
|
2131
|
-
height: number;
|
|
2132
|
-
top: number;
|
|
2133
|
-
right: number;
|
|
2134
|
-
bottom: number;
|
|
2135
|
-
left: number;
|
|
2136
|
-
}
|
|
2137
2144
|
type EventMap = {
|
|
2138
2145
|
'yield:created': StoredEvent<EventOfType<'yield:created'>>;
|
|
2139
2146
|
'yield:cloned': StoredEvent<EventOfType<'yield:cloned'>>;
|
|
@@ -2212,8 +2219,23 @@ type EventMap = {
|
|
|
2212
2219
|
'mark:cancel-pending': void;
|
|
2213
2220
|
'mark:submit': components['schemas']['MarkSubmitEvent'];
|
|
2214
2221
|
'mark:assist-request': components['schemas']['MarkAssistRequestEvent'];
|
|
2215
|
-
'mark:assist-cancelled': void;
|
|
2216
2222
|
'mark:progress-dismiss': void;
|
|
2223
|
+
'mark:assist-timeout': {
|
|
2224
|
+
resourceId: string;
|
|
2225
|
+
motivation: components['schemas']['Motivation'];
|
|
2226
|
+
};
|
|
2227
|
+
'mark:create-error': {
|
|
2228
|
+
resourceId: string;
|
|
2229
|
+
message: string;
|
|
2230
|
+
};
|
|
2231
|
+
'mark:delete-error': {
|
|
2232
|
+
resourceId: string;
|
|
2233
|
+
message: string;
|
|
2234
|
+
};
|
|
2235
|
+
'bind:body-error': {
|
|
2236
|
+
resourceId: string;
|
|
2237
|
+
message: string;
|
|
2238
|
+
};
|
|
2217
2239
|
'frame:entity-type-added': StoredEvent<EventOfType<'frame:entity-type-added'>>;
|
|
2218
2240
|
'frame:tag-schema-added': StoredEvent<EventOfType<'frame:tag-schema-added'>>;
|
|
2219
2241
|
'frame:add-entity-type': components['schemas']['FrameAddEntityTypeCommand'];
|