mindoodb-app-sdk 0.0.71 → 0.0.72
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 +70 -1
- package/dist/{chunk-GTNDGA7P.js → chunk-UFP7O4OJ.js} +571 -39
- package/dist/index.d.ts +3 -55
- package/dist/index.js +41 -1
- package/dist/testing/index.d.ts +101 -3
- package/dist/testing/index.js +340 -17
- package/dist/{types-Dff-SyIx.d.ts → types-DN-E0X34.d.ts} +476 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,62 +1,10 @@
|
|
|
1
|
-
import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppDragBindSourceOptions, b as MindooDBAppDragStartInput, c as MindooDBAppDragStartResult, d as MindooDBAppDragPreview, e as MindooDBAppBridge, f as MindooDBAppAgentToolErrorCode, g as MindooDBAppAgentTool, h as MindooDBAppHostShortcutBinding, i as MindooDBAppHostShortcutAction, j as MindooDBAppHostingMode, k as MindooDBAppDefinition, l as MindooDBAppDatabase, m as MindooDBAppDocument, n as MindooDBAppRichTextSpan, o as MindooDBAppRichTextSnapshot, p as MindooDBAppCreateDocumentInput } from './types-
|
|
2
|
-
export { q as MINDOODB_APP_ACCEPTS_MAX, r as MINDOODB_APP_AGENT_CAPABILITIES_MAX, s as MINDOODB_APP_AGENT_CAPABILITY_TITLE_MAX, t as MINDOODB_APP_AGENT_CAPABILITY_TOOLS_MAX, u as MINDOODB_APP_AGENT_EXAMPLE_MAX, v as MINDOODB_APP_AGENT_GUIDE_MAX_BYTES, w as MINDOODB_APP_AGENT_LIMIT_MAX, x as MINDOODB_APP_AGENT_LIST_MAX, y as MINDOODB_APP_AGENT_SUMMARY_MAX, z as MINDOODB_APP_AGENT_TOOL_NAME_PATTERN, A as MINDOODB_APP_COMPONENTS_MAX, B as MINDOODB_APP_COMPONENT_CONTRACT_PATTERN, C as MINDOODB_APP_DEFINITION_FILE_NAME, D as MINDOODB_APP_DEFINITION_FORMAT, E as MINDOODB_APP_DEFINITION_PERMISSIONS, F as MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS, G as MINDOODB_APP_DEFINITION_VERSION, H as MINDOODB_APP_LISTING_DESCRIPTION_MAX, I as MINDOODB_APP_LISTING_MAX_SCREENSHOTS, J as MINDOODB_APP_LISTING_SUMMARY_MAX, K as MINDOODB_APP_SEAL_SIGNING_DOMAIN, L as MINDOODB_APP_WELL_KNOWN_DRAG_TYPES, N as MindooDBAppAcceptSpec, O as MindooDBAppAccessDecision, P as MindooDBAppAccessTier, Q as MindooDBAppAgentApi, R as MindooDBAppAgentCapability, S as MindooDBAppAgentProfile, T as MindooDBAppAgentRegistration, U as MindooDBAppAgentToolAnnotations, V as MindooDBAppAgentToolDescriptor, W as MindooDBAppAgentToolScope, X as MindooDBAppAttachmentApi, Y as MindooDBAppAttachmentChunk, Z as MindooDBAppAttachmentInfo, _ as MindooDBAppAttachmentPreviewOptions, $ as MindooDBAppAttachmentPreviewSession, a0 as MindooDBAppAutomergeChangesPatch, a1 as MindooDBAppAutomergeChangesSince, a2 as MindooDBAppAutomergeGetOptions, a3 as MindooDBAppAutomergePatchResult, a4 as MindooDBAppAutomergeSnapshot, a5 as MindooDBAppBridgeAgentInvokeMessage, a6 as MindooDBAppBridgeAgentResultMessage, a7 as MindooDBAppBridgeBeforeCloseAck, a8 as MindooDBAppBridgeBeforeCloseMessage, a9 as MindooDBAppBridgeConnectMessage, aa as MindooDBAppBridgeConnectOptions, ab as MindooDBAppBridgeConnectedMessage, ac as MindooDBAppBridgeDragDropMessage, ad as MindooDBAppBridgeDragLeaveMessage, ae as MindooDBAppBridgeDragOverMessage, af as MindooDBAppBridgeEmbedEventMessage, ag as MindooDBAppBridgeEmbeddingRequestMessage, ah as MindooDBAppBridgeErrorPayload, ai as MindooDBAppBridgeHandshakeErrorMessage, aj as MindooDBAppBridgeHostFocusChangedMessage, ak as MindooDBAppBridgeIncomingContentMessage, al as MindooDBAppBridgeLocaleChangedMessage, am as MindooDBAppBridgePortMessage, an as MindooDBAppBridgeQueryResultMessage, ao as MindooDBAppBridgeReminderOpenedMessage, ap as MindooDBAppBridgeRpcError, aq as MindooDBAppBridgeRpcMessage, ar as MindooDBAppBridgeRpcRequest, as as MindooDBAppBridgeRpcSuccess, at as MindooDBAppBridgeShortcutInvokedMessage, au as MindooDBAppBridgeShortcutsChangedMessage, av as MindooDBAppBridgeStreamAbortRequest, aw as MindooDBAppBridgeStreamAck, ax as MindooDBAppBridgeStreamCloseRequest, ay as MindooDBAppBridgeStreamError, az as MindooDBAppBridgeStreamMessage, aA as MindooDBAppBridgeStreamOpenResult, aB as MindooDBAppBridgeStreamReadRequest, aC as MindooDBAppBridgeStreamWriteRequest, aD as MindooDBAppBridgeThemeChangedMessage, aE as MindooDBAppBridgeUiPreferencesChangedMessage, aF as MindooDBAppBridgeViewChangedMessage, aG as MindooDBAppBridgeViewportChangedMessage, aH as MindooDBAppBridgeWorkspaceFocusRequestedMessage, aI as MindooDBAppBrowserFeatures, aJ as MindooDBAppCapability, aK as MindooDBAppComponentCategory, aL as MindooDBAppComponentChildren, aM as MindooDBAppComponentContract, aN as MindooDBAppComponentFieldValue, aO as MindooDBAppComponentInfo, aP as MindooDBAppComponentIntent, aQ as MindooDBAppComponentQuery, aR as MindooDBAppComponentReference, aS as MindooDBAppComponentSpec, aT as MindooDBAppComponentsApi, aU as MindooDBAppConfiguredViewCategorizationStyle, aV as MindooDBAppConfiguredViewColumn, aW as MindooDBAppConfiguredViewColumnRole, aX as MindooDBAppConfiguredViewExpressionMode, aY as MindooDBAppConfiguredViewFieldExpression, aZ as MindooDBAppConfiguredViewFilterDefinition, a_ as MindooDBAppConfiguredViewFilterMode, a$ as MindooDBAppConfiguredViewFilterRule, b0 as MindooDBAppConfiguredViewFormulaExpression, b1 as MindooDBAppConfiguredViewFormulaFilterDefinition, b2 as MindooDBAppConfiguredViewPreviewMode, b3 as MindooDBAppConfiguredViewRuleFilterDefinition, b4 as MindooDBAppConfiguredViewRuleMatchMode, b5 as MindooDBAppConfiguredViewRuleOperator, b6 as MindooDBAppConfiguredViewValueExpression, b7 as MindooDBAppCreateKeyInfo, b8 as MindooDBAppCreateViewInput, b9 as MindooDBAppCreateViewNavigatorInput, ba as MindooDBAppDatabaseInfo, bb as MindooDBAppDefinitionDatabase, bc as MindooDBAppDefinitionListing, bd as MindooDBAppDefinitionPermission, be as MindooDBAppDefinitionRegistrationPermission, bf as MindooDBAppDefinitionScreenshot, bg as MindooDBAppDefinitionValidation, bh as MindooDBAppDirectoryApi, bi as MindooDBAppDirectoryEntry, bj as MindooDBAppDocumentApi, bk as MindooDBAppDocumentHeadCursorResult, bl as MindooDBAppDocumentHistoryEntry, bm as MindooDBAppDocumentListQuery, bn as MindooDBAppDocumentListResult, bo as MindooDBAppDocumentQuery, bp as MindooDBAppDocumentRevisionId, bq as MindooDBAppDocumentScanPreset, br as MindooDBAppDocumentSummary, bs as MindooDBAppDragApi, bt as MindooDBAppDragCancelReason, bu as MindooDBAppDragDropEvent, bv as MindooDBAppDragEffect, bw as MindooDBAppDragHoverResult, bx as MindooDBAppDragOffer, by as MindooDBAppDragOverEvent, bz as MindooDBAppDragPointer, bA as MindooDBAppDragProfile, bB as MindooDBAppEmbed, bC as MindooDBAppEmbedAccessComponent, bD as MindooDBAppEmbedAccessInput, bE as MindooDBAppEmbedAccessPair, bF as MindooDBAppEmbedAccessResult, bG as MindooDBAppEmbedAgentTools, bH as MindooDBAppEmbedAgentToolsEvent, bI as MindooDBAppEmbedCloseReason, bJ as MindooDBAppEmbedClosedEvent, bK as MindooDBAppEmbedContext, bL as MindooDBAppEmbedDirtyEvent, bM as MindooDBAppEmbedOpenInput, bN as MindooDBAppEmbedRect, bO as MindooDBAppEmbeddingApi, bP as MindooDBAppEmbeddingLookupOptions, bQ as MindooDBAppEmbeddingLookupResult, bR as MindooDBAppEmbedsApi, bS as MindooDBAppEntryAttachmentRef, bT as MindooDBAppEntryProvenance, bU as MindooDBAppExtractDocumentTextInput, bV as MindooDBAppExtractDocumentTextResult, bW as MindooDBAppExtractTextFormat, bX as MindooDBAppExtractionSetup, bY as MindooDBAppFulltextSetup, bZ as MindooDBAppHistoricalDocument, b_ as MindooDBAppHistoryQuery, b$ as MindooDBAppHostTheme, c0 as MindooDBAppIdentityApi, c1 as MindooDBAppInaccessibleDocument, c2 as MindooDBAppInaccessibleDocumentListQuery, c3 as MindooDBAppInaccessibleDocumentListResult, c4 as MindooDBAppIncomingContent, c5 as MindooDBAppIncomingContentHandler, c6 as MindooDBAppIncomingContentInfo, c7 as MindooDBAppIncomingItem, c8 as MindooDBAppIncomingItemInfo, c9 as MindooDBAppIncomingResult, ca as MindooDBAppIncomingSource, cb as MindooDBAppJsonCounterIncrementPatch, cc as MindooDBAppJsonListDeletePatch, cd as MindooDBAppJsonListInsertPatch, ce as MindooDBAppJsonPatch, cf as MindooDBAppJsonSetPatch, cg as MindooDBAppJsonTextMarkPatch, ch as MindooDBAppJsonTextSplicePatch, ci as MindooDBAppJsonTextUnmarkPatch, cj as MindooDBAppJsonUnsetPatch, ck as MindooDBAppLaunchContext, cl as MindooDBAppListUsersOptions, cm as MindooDBAppListUsersPage, cn as MindooDBAppLiveQuerySubscription, co as MindooDBAppLocaleMap, cp as MindooDBAppLocalizedText, cq as MindooDBAppMenuAnchor, cr as MindooDBAppMenuApi, cs as MindooDBAppMenuCommandItem, ct as MindooDBAppMenuDismissReason, cu as MindooDBAppMenuDismissedResult, cv as MindooDBAppMenuItem, cw as MindooDBAppMenuKind, cx as MindooDBAppMenuPlacement, cy as MindooDBAppMenuPointAnchor, cz as MindooDBAppMenuRect, cA as MindooDBAppMenuRectAnchor, cB as MindooDBAppMenuSelectionResult, cC as MindooDBAppMenuSeparatorItem, cD as MindooDBAppNotificationSeverity, cE as MindooDBAppNotifyInput, cF as MindooDBAppNotifyResult, cG as MindooDBAppPdfApi, cH as MindooDBAppPdfSignInput, cI as MindooDBAppPdfSignResult, cJ as MindooDBAppPdfSignaturePosition, cK as MindooDBAppPdfSigner, cL as MindooDBAppProposeAppInput, cM as MindooDBAppProposeAppResult, cN as MindooDBAppQueryCoverage, cO as MindooDBAppQueryInclude, cP as MindooDBAppQueryIncludeCardinality, cQ as MindooDBAppQueryIncludeSlots, cR as MindooDBAppQueryResult, cS as MindooDBAppQueryRow, cT as MindooDBAppQuerySortKey, cU as MindooDBAppQueryTextClause, cV as MindooDBAppReadableAttachmentStream, cW as MindooDBAppRecipientOptions, cX as MindooDBAppReminder, cY as MindooDBAppReminderOpened, cZ as MindooDBAppReminderOpenedHandler, c_ as MindooDBAppReminderRequest, c$ as MindooDBAppReminderScheduleResult, d0 as MindooDBAppRemindersApi, d1 as MindooDBAppResolvedViewDefinition, d2 as MindooDBAppResolvedViewSource, d3 as MindooDBAppRevisionPhase, d4 as MindooDBAppRevisionVerification, d5 as MindooDBAppRichTextBlockSpan, d6 as MindooDBAppRichTextGetOptions, d7 as MindooDBAppRichTextImmutableString, d8 as MindooDBAppRichTextMarkRange, d9 as MindooDBAppRichTextMaterializeValue, da as MindooDBAppRichTextPatch, db as MindooDBAppRichTextScalar, dc as MindooDBAppRichTextSpliceStep, dd as MindooDBAppRichTextStep, de as MindooDBAppRichTextStepPatch, df as MindooDBAppRichTextTextSpan, dg as MindooDBAppRuntime, dh as MindooDBAppScanAttachmentOptions, di as MindooDBAppScanAttachmentResult, dj as MindooDBAppScopedDocId, dk as MindooDBAppScopedDocumentSummary, dl as MindooDBAppSealIntent, dm as MindooDBAppSealedChannelOpenInput, dn as MindooDBAppSealedChannelOpenResult, dp as MindooDBAppSealedChannelRequestInput, dq as MindooDBAppSession, dr as MindooDBAppShowMenuInput, ds as MindooDBAppShowMenuResult, dt as MindooDBAppSignPreview, du as MindooDBAppSignPreviewScope, dv as MindooDBAppSignStatementInput, dw as MindooDBAppSignStatementResult, dx as MindooDBAppStorageApi, dy as MindooDBAppSummarySetup, dz as MindooDBAppTextCursorOptions, dA as MindooDBAppTextCursorPosition, dB as MindooDBAppTextCursorPositionsResult, dC as MindooDBAppTextCursorsResult, dD as MindooDBAppTextEdit, dE as MindooDBAppTextPatch, dF as MindooDBAppThemeMode, dG as MindooDBAppTimestampApi, dH as MindooDBAppTimestampInput, dI as MindooDBAppTimestampProvider, dJ as MindooDBAppTimestampResult, dK as MindooDBAppUiPreferences, dL as MindooDBAppUpdateDocumentInput, dM as MindooDBAppViewCursorDocumentListResult, dN as MindooDBAppViewCursorResult, dO as MindooDBAppViewEntry, dP as MindooDBAppViewEntryKind, dQ as MindooDBAppViewNavigator, dR as MindooDBAppViewNavigatorExpansionState, dS as MindooDBAppViewNavigatorOpenOptions, dT as MindooDBAppViewNavigatorPageOptions, dU as MindooDBAppViewNavigatorPageResult, dV as MindooDBAppViewNavigatorRangeQuery, dW as MindooDBAppViewNavigatorSelectionState, dX as MindooDBAppViewUpdateStats, dY as MindooDBAppViewport, dZ as MindooDBAppWellKnownDragType, d_ as MindooDBAppWritableAttachmentStream, d$ as mindooDBAppAcceptMatchesType, e0 as mindooDBAppComponentFieldsMatch, e1 as resolveMindooDBAppDefinitionUrl, e2 as resolveMindooDBAppListingAssetUrl, e3 as resolveMindooDBAppLocalizedText, e4 as validateMindooDBAppAccepts, e5 as validateMindooDBAppAgentProfile, e6 as validateMindooDBAppComponents, e7 as validateMindooDBAppDefinition } from './types-Dff-SyIx.js';
|
|
1
|
+
import { M as MindooDBAppAttachmentPreviewMode, a as MindooDBAppDragBindSourceOptions, b as MindooDBAppDragStartInput, c as MindooDBAppDragStartResult, d as MindooDBAppDragPreview, e as MindooDBAppBridge, f as MindooDBAppAgentToolErrorCode, g as MindooDBAppAgentTool, h as MindooDBAppHostShortcutBinding, i as MindooDBAppHostShortcutAction, j as MindooDBAppHostingMode, k as MindooDBAppDefinition, l as MindooDBAppDatabase, m as MindooDBAppDocument, n as MindooDBAppRichTextSpan, o as MindooDBAppRichTextSnapshot, p as MindooDBAppCreateDocumentInput } from './types-DN-E0X34.js';
|
|
2
|
+
export { q as MINDOODB_APP_ACCEPTS_MAX, r as MINDOODB_APP_AGENT_CAPABILITIES_MAX, s as MINDOODB_APP_AGENT_CAPABILITY_TITLE_MAX, t as MINDOODB_APP_AGENT_CAPABILITY_TOOLS_MAX, u as MINDOODB_APP_AGENT_EXAMPLE_MAX, v as MINDOODB_APP_AGENT_GUIDE_MAX_BYTES, w as MINDOODB_APP_AGENT_LIMIT_MAX, x as MINDOODB_APP_AGENT_LIST_MAX, y as MINDOODB_APP_AGENT_SUMMARY_MAX, z as MINDOODB_APP_AGENT_TOOL_NAME_PATTERN, A as MINDOODB_APP_COMPONENTS_MAX, B as MINDOODB_APP_COMPONENT_CONTRACT_PATTERN, C as MINDOODB_APP_DEFINITION_FILE_NAME, D as MINDOODB_APP_DEFINITION_FORMAT, E as MINDOODB_APP_DEFINITION_PERMISSIONS, F as MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS, G as MINDOODB_APP_DEFINITION_VERSION, H as MINDOODB_APP_INSPECTION_FIELD, I as MINDOODB_APP_INSPECTION_MAX_BYTES, J as MINDOODB_APP_INSPECTION_SUMMARY_MAX_BYTES, K as MINDOODB_APP_ISSUES_MAX, L as MINDOODB_APP_LISTING_DESCRIPTION_MAX, N as MINDOODB_APP_LISTING_MAX_SCREENSHOTS, O as MINDOODB_APP_LISTING_SUMMARY_MAX, P as MINDOODB_APP_SEAL_SIGNING_DOMAIN, Q as MINDOODB_APP_VALUE_TAG, R as MINDOODB_APP_WELL_KNOWN_DRAG_TYPES, S as MINDOODB_INSPECT_DOCUMENT, T as MINDOODB_INSPECT_SLIDES, U as MINDOODB_INSPECT_SPREADSHEET, V as MindooDBAppAcceptSpec, W as MindooDBAppAccessDecision, X as MindooDBAppAccessTier, Y as MindooDBAppAgentApi, Z as MindooDBAppAgentCapability, _ as MindooDBAppAgentProfile, $ as MindooDBAppAgentRegistration, a0 as MindooDBAppAgentToolAnnotations, a1 as MindooDBAppAgentToolDescriptor, a2 as MindooDBAppAgentToolScope, a3 as MindooDBAppAtomicValue, a4 as MindooDBAppAttachmentApi, a5 as MindooDBAppAttachmentChunk, a6 as MindooDBAppAttachmentInfo, a7 as MindooDBAppAttachmentPreviewOptions, a8 as MindooDBAppAttachmentPreviewSession, a9 as MindooDBAppAutomergeChangesPatch, aa as MindooDBAppAutomergeChangesSince, ab as MindooDBAppAutomergeGetOptions, ac as MindooDBAppAutomergePatchResult, ad as MindooDBAppAutomergeSnapshot, ae as MindooDBAppBridgeAgentInvokeMessage, af as MindooDBAppBridgeAgentResultMessage, ag as MindooDBAppBridgeBeforeCloseAck, ah as MindooDBAppBridgeBeforeCloseMessage, ai as MindooDBAppBridgeConnectMessage, aj as MindooDBAppBridgeConnectOptions, ak as MindooDBAppBridgeConnectedMessage, al as MindooDBAppBridgeDragDropMessage, am as MindooDBAppBridgeDragLeaveMessage, an as MindooDBAppBridgeDragOverMessage, ao as MindooDBAppBridgeEmbedEventMessage, ap as MindooDBAppBridgeEmbedRequestMessage, aq as MindooDBAppBridgeEmbeddingRequestMessage, ar as MindooDBAppBridgeErrorPayload, as as MindooDBAppBridgeHandshakeErrorMessage, at as MindooDBAppBridgeHostFocusChangedMessage, au as MindooDBAppBridgeIncomingContentMessage, av as MindooDBAppBridgeLocaleChangedMessage, aw as MindooDBAppBridgePortMessage, ax as MindooDBAppBridgeQueryResultMessage, ay as MindooDBAppBridgeReminderOpenedMessage, az as MindooDBAppBridgeRpcError, aA as MindooDBAppBridgeRpcMessage, aB as MindooDBAppBridgeRpcRequest, aC as MindooDBAppBridgeRpcSuccess, aD as MindooDBAppBridgeShortcutInvokedMessage, aE as MindooDBAppBridgeShortcutsChangedMessage, aF as MindooDBAppBridgeStreamAbortRequest, aG as MindooDBAppBridgeStreamAck, aH as MindooDBAppBridgeStreamCloseRequest, aI as MindooDBAppBridgeStreamError, aJ as MindooDBAppBridgeStreamMessage, aK as MindooDBAppBridgeStreamOpenResult, aL as MindooDBAppBridgeStreamReadRequest, aM as MindooDBAppBridgeStreamWriteRequest, aN as MindooDBAppBridgeThemeChangedMessage, aO as MindooDBAppBridgeUiPreferencesChangedMessage, aP as MindooDBAppBridgeViewChangedMessage, aQ as MindooDBAppBridgeViewportChangedMessage, aR as MindooDBAppBridgeWorkspaceFocusRequestedMessage, aS as MindooDBAppBrowserFeatures, aT as MindooDBAppCapability, aU as MindooDBAppComponentCategory, aV as MindooDBAppComponentChildren, aW as MindooDBAppComponentContract, aX as MindooDBAppComponentFieldValue, aY as MindooDBAppComponentInfo, aZ as MindooDBAppComponentIntent, a_ as MindooDBAppComponentQuery, a$ as MindooDBAppComponentReference, b0 as MindooDBAppComponentSpec, b1 as MindooDBAppComponentsApi, b2 as MindooDBAppConfiguredViewCategorizationStyle, b3 as MindooDBAppConfiguredViewColumn, b4 as MindooDBAppConfiguredViewColumnRole, b5 as MindooDBAppConfiguredViewExpressionMode, b6 as MindooDBAppConfiguredViewFieldExpression, b7 as MindooDBAppConfiguredViewFilterDefinition, b8 as MindooDBAppConfiguredViewFilterMode, b9 as MindooDBAppConfiguredViewFilterRule, ba as MindooDBAppConfiguredViewFormulaExpression, bb as MindooDBAppConfiguredViewFormulaFilterDefinition, bc as MindooDBAppConfiguredViewPreviewMode, bd as MindooDBAppConfiguredViewRuleFilterDefinition, be as MindooDBAppConfiguredViewRuleMatchMode, bf as MindooDBAppConfiguredViewRuleOperator, bg as MindooDBAppConfiguredViewValueExpression, bh as MindooDBAppCounterValue, bi as MindooDBAppCreateKeyInfo, bj as MindooDBAppCreateViewInput, bk as MindooDBAppCreateViewNavigatorInput, bl as MindooDBAppDatabaseInfo, bm as MindooDBAppDefinitionDatabase, bn as MindooDBAppDefinitionListing, bo as MindooDBAppDefinitionPermission, bp as MindooDBAppDefinitionRegistrationPermission, bq as MindooDBAppDefinitionScreenshot, br as MindooDBAppDefinitionValidation, bs as MindooDBAppDirectoryApi, bt as MindooDBAppDirectoryEntry, bu as MindooDBAppDocumentApi, bv as MindooDBAppDocumentHeadCursorResult, bw as MindooDBAppDocumentHistoryEntry, bx as MindooDBAppDocumentInspection, by as MindooDBAppDocumentListQuery, bz as MindooDBAppDocumentListResult, bA as MindooDBAppDocumentQuery, bB as MindooDBAppDocumentRevisionId, bC as MindooDBAppDocumentRule, bD as MindooDBAppDocumentRuleOutcome, bE as MindooDBAppDocumentRules, bF as MindooDBAppDocumentScanPreset, bG as MindooDBAppDocumentSummary, bH as MindooDBAppDragApi, bI as MindooDBAppDragCancelReason, bJ as MindooDBAppDragDropEvent, bK as MindooDBAppDragEffect, bL as MindooDBAppDragHoverResult, bM as MindooDBAppDragOffer, bN as MindooDBAppDragOverEvent, bO as MindooDBAppDragPointer, bP as MindooDBAppDragProfile, bQ as MindooDBAppEmbed, bR as MindooDBAppEmbedAccessComponent, bS as MindooDBAppEmbedAccessInput, bT as MindooDBAppEmbedAccessPair, bU as MindooDBAppEmbedAccessResult, bV as MindooDBAppEmbedAgentTools, bW as MindooDBAppEmbedAgentToolsEvent, bX as MindooDBAppEmbedBeforeSaveInput, bY as MindooDBAppEmbedBeforeSaveResult, bZ as MindooDBAppEmbedCloseReason, b_ as MindooDBAppEmbedClosedEvent, b$ as MindooDBAppEmbedContext, c0 as MindooDBAppEmbedDirtyEvent, c1 as MindooDBAppEmbedOpenInput, c2 as MindooDBAppEmbedRect, c3 as MindooDBAppEmbedSavedEvent, c4 as MindooDBAppEmbedValidation, c5 as MindooDBAppEmbedValidationError, c6 as MindooDBAppEmbeddingApi, c7 as MindooDBAppEmbeddingLookupOptions, c8 as MindooDBAppEmbeddingLookupResult, c9 as MindooDBAppEmbeddingResult, ca as MindooDBAppEmbeddingSaveContext, cb as MindooDBAppEmbedsApi, cc as MindooDBAppEntryAttachmentRef, cd as MindooDBAppEntryProvenance, ce as MindooDBAppExtractDocumentTextInput, cf as MindooDBAppExtractDocumentTextResult, cg as MindooDBAppExtractTextFormat, ch as MindooDBAppExtractionSetup, ci as MindooDBAppFulltextSetup, cj as MindooDBAppHistoricalDocument, ck as MindooDBAppHistoryQuery, cl as MindooDBAppHostTheme, cm as MindooDBAppIdentityApi, cn as MindooDBAppInaccessibleDocument, co as MindooDBAppInaccessibleDocumentListQuery, cp as MindooDBAppInaccessibleDocumentListResult, cq as MindooDBAppIncomingContent, cr as MindooDBAppIncomingContentHandler, cs as MindooDBAppIncomingContentInfo, ct as MindooDBAppIncomingItem, cu as MindooDBAppIncomingItemInfo, cv as MindooDBAppIncomingResult, cw as MindooDBAppIncomingSource, cx as MindooDBAppInspectAnchor, cy as MindooDBAppInspectRequest, cz as MindooDBAppInspectedCell, cA as MindooDBAppInspection, cB as MindooDBAppInspectionBase, cC as MindooDBAppIssue, cD as MindooDBAppIssueSeverity, cE as MindooDBAppJsonCounterIncrementPatch, cF as MindooDBAppJsonListDeletePatch, cG as MindooDBAppJsonListInsertPatch, cH as MindooDBAppJsonPatch, cI as MindooDBAppJsonSetPatch, cJ as MindooDBAppJsonTextMarkPatch, cK as MindooDBAppJsonTextSplicePatch, cL as MindooDBAppJsonTextUnmarkPatch, cM as MindooDBAppJsonUnsetPatch, cN as MindooDBAppLaunchContext, cO as MindooDBAppListUsersOptions, cP as MindooDBAppListUsersPage, cQ as MindooDBAppLiveQuerySubscription, cR as MindooDBAppLocaleMap, cS as MindooDBAppLocalizedText, cT as MindooDBAppMenuAnchor, cU as MindooDBAppMenuApi, cV as MindooDBAppMenuCommandItem, cW as MindooDBAppMenuDismissReason, cX as MindooDBAppMenuDismissedResult, cY as MindooDBAppMenuItem, cZ as MindooDBAppMenuKind, c_ as MindooDBAppMenuPlacement, c$ as MindooDBAppMenuPointAnchor, d0 as MindooDBAppMenuRect, d1 as MindooDBAppMenuRectAnchor, d2 as MindooDBAppMenuSelectionResult, d3 as MindooDBAppMenuSeparatorItem, d4 as MindooDBAppNotificationSeverity, d5 as MindooDBAppNotifyInput, d6 as MindooDBAppNotifyResult, d7 as MindooDBAppPdfApi, d8 as MindooDBAppPdfSignInput, d9 as MindooDBAppPdfSignResult, da as MindooDBAppPdfSignaturePosition, db as MindooDBAppPdfSigner, dc as MindooDBAppProposeAppInput, dd as MindooDBAppProposeAppResult, de as MindooDBAppQueryCoverage, df as MindooDBAppQueryInclude, dg as MindooDBAppQueryIncludeCardinality, dh as MindooDBAppQueryIncludeSlots, di as MindooDBAppQueryResult, dj as MindooDBAppQueryRow, dk as MindooDBAppQuerySortKey, dl as MindooDBAppQueryTextClause, dm as MindooDBAppReadableAttachmentStream, dn as MindooDBAppRecipientOptions, dp as MindooDBAppReminder, dq as MindooDBAppReminderOpened, dr as MindooDBAppReminderOpenedHandler, ds as MindooDBAppReminderRequest, dt as MindooDBAppReminderScheduleResult, du as MindooDBAppRemindersApi, dv as MindooDBAppResolvedViewDefinition, dw as MindooDBAppResolvedViewSource, dx as MindooDBAppRevisionPhase, dy as MindooDBAppRevisionVerification, dz as MindooDBAppRichTextBlockSpan, dA as MindooDBAppRichTextGetOptions, dB as MindooDBAppRichTextImmutableString, dC as MindooDBAppRichTextMarkRange, dD as MindooDBAppRichTextMaterializeValue, dE as MindooDBAppRichTextPatch, dF as MindooDBAppRichTextScalar, dG as MindooDBAppRichTextSpliceStep, dH as MindooDBAppRichTextStep, dI as MindooDBAppRichTextStepPatch, dJ as MindooDBAppRichTextTextSpan, dK as MindooDBAppRuntime, dL as MindooDBAppScanAttachmentOptions, dM as MindooDBAppScanAttachmentResult, dN as MindooDBAppScopedDocId, dO as MindooDBAppScopedDocumentSummary, dP as MindooDBAppSealIntent, dQ as MindooDBAppSealedChannelOpenInput, dR as MindooDBAppSealedChannelOpenResult, dS as MindooDBAppSealedChannelRequestInput, dT as MindooDBAppSession, dU as MindooDBAppShowMenuInput, dV as MindooDBAppShowMenuResult, dW as MindooDBAppSignPreview, dX as MindooDBAppSignPreviewScope, dY as MindooDBAppSignStatementInput, dZ as MindooDBAppSignStatementResult, d_ as MindooDBAppSlidesInspection, d$ as MindooDBAppSpreadsheetInspection, e0 as MindooDBAppStorageApi, e1 as MindooDBAppSummarySetup, e2 as MindooDBAppTextCursorOptions, e3 as MindooDBAppTextCursorPosition, e4 as MindooDBAppTextCursorPositionsResult, e5 as MindooDBAppTextCursorsResult, e6 as MindooDBAppTextEdit, e7 as MindooDBAppTextPatch, e8 as MindooDBAppThemeMode, e9 as MindooDBAppTimestampApi, ea as MindooDBAppTimestampInput, eb as MindooDBAppTimestampProvider, ec as MindooDBAppTimestampResult, ed as MindooDBAppTimestampValue, ee as MindooDBAppTypedValue, ef as MindooDBAppUiPreferences, eg as MindooDBAppUpdateDocumentInput, eh as MindooDBAppValue, ei as MindooDBAppViewCursorDocumentListResult, ej as MindooDBAppViewCursorResult, ek as MindooDBAppViewEntry, el as MindooDBAppViewEntryKind, em as MindooDBAppViewNavigator, en as MindooDBAppViewNavigatorExpansionState, eo as MindooDBAppViewNavigatorOpenOptions, ep as MindooDBAppViewNavigatorPageOptions, eq as MindooDBAppViewNavigatorPageResult, er as MindooDBAppViewNavigatorRangeQuery, es as MindooDBAppViewNavigatorSelectionState, et as MindooDBAppViewUpdateStats, eu as MindooDBAppViewport, ev as MindooDBAppWellKnownDragType, ew as MindooDBAppWritableAttachmentStream, ex as defineDocumentRules, ey as mindooDBAppAcceptMatchesType, ez as mindooDBAppComponentFieldsMatch, eA as mindooDBAppComponentSupports, eB as mindooDBAppInspectContracts, eC as mindooDBAppInspectRules, eD as mindooDBAppInspectionSummaryValue, eE as normalizeMindooDBAppInspectAnchor, eF as normalizeMindooDBAppInspectRequest, eG as normalizeMindooDBAppInspection, eH as normalizeMindooDBAppIssues, eI as readMindooDBAppInspectionSummary, eJ as resolveMindooDBAppDefinitionUrl, eK as resolveMindooDBAppEmbedValidation, eL as resolveMindooDBAppListingAssetUrl, eM as resolveMindooDBAppLocalizedText, eN as summarizeMindooDBAppInspection, eO as validateMindooDBAppAccepts, eP as validateMindooDBAppAgentProfile, eQ as validateMindooDBAppComponents, eR as validateMindooDBAppDefinition } from './types-DN-E0X34.js';
|
|
3
3
|
export { M as MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME, a as MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME, b as MINDOODB_APP_BUNDLE_MANIFEST_FORMAT, c as MINDOODB_APP_BUNDLE_MANIFEST_VERSION, d as MindooDBAppBundleArchive, e as MindooDBAppBundleFileEntry, f as MindooDBAppBundleHash, g as MindooDBAppBundleManifest, h as MindooDBAppBundleManifestValidation, i as buildMindooDBAppBundleContentHashInput, j as isMindooDBAppBundleHash, n as normalizeMindooDBAppBundlePath, v as validateMindooDBAppBundleManifest } from './appBundleManifest-B0xfpaXG.js';
|
|
4
4
|
import { MindooDBAppBooleanExpression } from 'mindoodb-view-language';
|
|
5
5
|
export { MindooDBAppBooleanExpression, MindooDBAppExpression, MindooDBAppFilterDefinition, MindooDBAppViewCategoryChildrenPageRequest, MindooDBAppViewColumn, MindooDBAppViewColumnRole, MindooDBAppViewDefinition, MindooDBAppViewExpansionState, MindooDBAppViewExpressionBase, MindooDBAppViewExpressionDatePart, MindooDBAppViewExpressionOperation, MindooDBAppViewFieldExpression, MindooDBAppViewIfExpression, MindooDBAppViewLetExpression, MindooDBAppViewLiteralExpression, MindooDBAppViewLookupByPath, MindooDBAppViewOperationExpression, MindooDBAppViewOriginExpression, MindooDBAppViewPageRequest, MindooDBAppViewPageResult, MindooDBAppViewRow, MindooDBAppViewSortDirection, MindooDBAppViewTotalMode, MindooDBAppViewValueExpressionRef, MindooDBAppViewVariableExpression, createViewLanguage } from 'mindoodb-view-language';
|
|
6
6
|
import { MindooDB, MindooQuerySortKey, MindooQueryOptions, MindooQueryResult } from 'mindoodb';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* Typed document values that plain JSON cannot express.
|
|
10
|
-
*
|
|
11
|
-
* Each helper returns a tagged plain object such as
|
|
12
|
-
* `{ $mindoo: "counter", value: 0 }`. Use it anywhere a value is written:
|
|
13
|
-
* `documents.create({ set })`, `documents.update({ set })`, JSON patch `set`
|
|
14
|
-
* and `listInsert` values, also nested inside objects and arrays. Haven turns
|
|
15
|
-
* the tags into the matching collaborative type. Reads return plain JSON:
|
|
16
|
-
* atomic strings as strings, counters as numbers, timestamps as ISO 8601
|
|
17
|
-
* strings.
|
|
18
|
-
*
|
|
19
|
-
* The object key `$mindoo` is reserved; an object carrying it must be one of
|
|
20
|
-
* these values, otherwise the write is rejected.
|
|
21
|
-
*/
|
|
22
|
-
/** Reserved object key that marks a typed value. */
|
|
23
|
-
declare const MINDOODB_APP_VALUE_TAG = "$mindoo";
|
|
24
|
-
/** A string that is replaced as a whole on concurrent writes. */
|
|
25
|
-
interface MindooDBAppAtomicValue {
|
|
26
|
-
$mindoo: "atomic";
|
|
27
|
-
value: string;
|
|
28
|
-
}
|
|
29
|
-
/** A number whose concurrent increments are summed on merge. */
|
|
30
|
-
interface MindooDBAppCounterValue {
|
|
31
|
-
$mindoo: "counter";
|
|
32
|
-
value: number;
|
|
33
|
-
}
|
|
34
|
-
/** A point in time: epoch milliseconds or an ISO 8601 date-time string. */
|
|
35
|
-
interface MindooDBAppTimestampValue {
|
|
36
|
-
$mindoo: "timestamp";
|
|
37
|
-
value: number | string;
|
|
38
|
-
}
|
|
39
|
-
type MindooDBAppTypedValue = MindooDBAppAtomicValue | MindooDBAppCounterValue | MindooDBAppTimestampValue;
|
|
40
|
-
declare const MindooDBAppValue: {
|
|
41
|
-
/**
|
|
42
|
-
* An atomic string for identifiers, status and enum values, URLs, hashes
|
|
43
|
-
* and stored text cursors. Plain strings are collaborative text, where two
|
|
44
|
-
* concurrent changes of `"open"` to `"closed"` and `"blocked"` can
|
|
45
|
-
* interleave into a mix of both words.
|
|
46
|
-
*/
|
|
47
|
-
readonly atomic: (value: string) => MindooDBAppAtomicValue;
|
|
48
|
-
/**
|
|
49
|
-
* A collaborative counter with an initial value (a safe integer). Create it
|
|
50
|
-
* once, then change it only with `json.counterIncrement`: writing a new
|
|
51
|
-
* counter is an assignment that does not merge with concurrent increments.
|
|
52
|
-
*/
|
|
53
|
-
readonly counter: (value?: number) => MindooDBAppCounterValue;
|
|
54
|
-
/** A timestamp from a `Date`, epoch milliseconds or an ISO 8601 string. */
|
|
55
|
-
readonly timestamp: (value: Date | number | string) => MindooDBAppTimestampValue;
|
|
56
|
-
/** Whether `value` is a tagged typed value (any kind). */
|
|
57
|
-
readonly isTyped: (value: unknown) => value is MindooDBAppTypedValue;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
8
|
/**
|
|
61
9
|
* Rules for document ids an app chooses itself, as MindooDB enforces them
|
|
62
10
|
* (`CUSTOM_DOC_ID_REGEX` / `DOC_ID_PREFIX_REGEX` in mindoodb's core types).
|
|
@@ -723,4 +671,4 @@ declare function inheritDocumentEncryption(parent: Pick<MindooDBAppDocument, "de
|
|
|
723
671
|
*/
|
|
724
672
|
declare function watchWordChunks(database: MindooDBAppDatabase, parentId: string, listener: (docIds: string[]) => void): Promise<() => Promise<void>>;
|
|
725
673
|
|
|
726
|
-
export { type CreateMindooDBRichTextHandleOptions, type CreateMindooDBTextBufferOptions, DEFAULT_DRAG_LONG_PRESS_MS, DEFAULT_DRAG_POINTER_THRESHOLD_PX, DEFAULT_HAVEN_HOST_SHORTCUTS, DEFAULT_HAVEN_URL, type HavenAppLandingPage, type HavenStorageShimHandle, type InstallHavenStorageShimOptions, type ListingBlock, type ListingInline, MINDOODB_APP_HOSTING_QUERY_PARAM, MINDOODB_APP_LAUNCH_ID_QUERY_PARAM, MINDOODB_APP_MAX_DRAG_PAYLOAD_BYTES, MINDOODB_APP_MAX_DRAG_PREVIEW_BYTES, MINDOODB_APP_MAX_DRAG_PREVIEW_EDGE, MINDOODB_APP_MAX_DRAG_TYPES,
|
|
674
|
+
export { type CreateMindooDBRichTextHandleOptions, type CreateMindooDBTextBufferOptions, DEFAULT_DRAG_LONG_PRESS_MS, DEFAULT_DRAG_POINTER_THRESHOLD_PX, DEFAULT_HAVEN_HOST_SHORTCUTS, DEFAULT_HAVEN_URL, type HavenAppLandingPage, type HavenStorageShimHandle, type InstallHavenStorageShimOptions, type ListingBlock, type ListingInline, MINDOODB_APP_HOSTING_QUERY_PARAM, MINDOODB_APP_LAUNCH_ID_QUERY_PARAM, MINDOODB_APP_MAX_DRAG_PAYLOAD_BYTES, MINDOODB_APP_MAX_DRAG_PREVIEW_BYTES, MINDOODB_APP_MAX_DRAG_PREVIEW_EDGE, MINDOODB_APP_MAX_DRAG_TYPES, MINDOODB_CUSTOM_DOCUMENT_ID_PATTERN, MINDOODB_DOCUMENT_ID_PREFIX_PATTERN, MINIMAL_DRAG_PREVIEW_PNG, type MindooDBAppAgentGuideField, type MindooDBAppAgentGuideGroup, type MindooDBAppAgentGuideOp, type MindooDBAppAgentGuideOptions, MindooDBAppAgentTool, MindooDBAppAgentToolError, MindooDBAppAgentToolErrorCode, MindooDBAppAttachmentPreviewMode, MindooDBAppBridge, MindooDBAppCreateDocumentInput, MindooDBAppDatabase, MindooDBAppDefinition, MindooDBAppDocument, MindooDBAppDragBindSourceOptions, MindooDBAppDragInputError, MindooDBAppDragPreview, MindooDBAppDragStartInput, MindooDBAppDragStartResult, MindooDBAppHostShortcutAction, MindooDBAppHostShortcutBinding, MindooDBAppHostingMode, MindooDBAppRichTextSnapshot, MindooDBAppRichTextSpan, MindooDBRichTextHandle, type MindooDBRichTextHandleChangeListener, type MindooDBRichTextHandleFlushResult, MindooDBTextBuffer, type MindooDBTextBufferFlushResult, type RenderHavenAppLandingPageOptions, abbreviateCanonicalName, agentGuideExamples, agentGuideSignatureIndex, applyHostedDocumentOverscrollContain, assertValidMindooDBCreateIds, bindDragSource, buildHavenAppInstallUrl, canPreviewAttachment, createAgentGuideTool, createMindooDBAppBridge, createMindooDBRichTextHandle, createMindooDBTextBuffer, expandAbbreviatedName, inheritDocumentEncryption, installHavenStorageShim, installHostShortcutCapture, isHostShortcutAction, isHostedBundleRuntime, isLaunchedByHaven, isMindooDBAppDragType, isValidMindooDBDocumentId, listingMarkdownToPlainText, matchHostShortcut, mindooDBDocumentId, normalizeAgentToolInput, normalizeDragAccepts, normalizeDragPointerInput, normalizeDragStartInput, parseListingMarkdown, queryDocuments, readMindooDBAppHostingMode, readMindooDBAppLaunchId, releaseMindooDBAppBridgeSessions, renderAgentGuideGroup, renderHavenAppLandingPage, resolveCurrentHavenAppUrl, sanitizeHostShortcutBindings, sanitizeListingHref, snapshotElementToPng, watchWordChunks };
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,10 @@ import {
|
|
|
19
19
|
MINDOODB_APP_DEFINITION_PERMISSIONS,
|
|
20
20
|
MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS,
|
|
21
21
|
MINDOODB_APP_DEFINITION_VERSION,
|
|
22
|
+
MINDOODB_APP_INSPECTION_FIELD,
|
|
23
|
+
MINDOODB_APP_INSPECTION_MAX_BYTES,
|
|
24
|
+
MINDOODB_APP_INSPECTION_SUMMARY_MAX_BYTES,
|
|
25
|
+
MINDOODB_APP_ISSUES_MAX,
|
|
22
26
|
MINDOODB_APP_LISTING_DESCRIPTION_MAX,
|
|
23
27
|
MINDOODB_APP_LISTING_MAX_SCREENSHOTS,
|
|
24
28
|
MINDOODB_APP_LISTING_SUMMARY_MAX,
|
|
@@ -29,14 +33,19 @@ import {
|
|
|
29
33
|
MINDOODB_APP_VALUE_TAG,
|
|
30
34
|
MINDOODB_CUSTOM_DOCUMENT_ID_PATTERN,
|
|
31
35
|
MINDOODB_DOCUMENT_ID_PREFIX_PATTERN,
|
|
36
|
+
MINDOODB_INSPECT_DOCUMENT,
|
|
37
|
+
MINDOODB_INSPECT_SLIDES,
|
|
38
|
+
MINDOODB_INSPECT_SPREADSHEET,
|
|
32
39
|
MINIMAL_DRAG_PREVIEW_PNG,
|
|
33
40
|
MindooDBAppAgentToolError,
|
|
34
41
|
MindooDBAppDragInputError,
|
|
42
|
+
MindooDBAppEmbedValidationError,
|
|
35
43
|
MindooDBAppValue,
|
|
36
44
|
applyHostedDocumentOverscrollContain,
|
|
37
45
|
assertValidMindooDBCreateIds,
|
|
38
46
|
bindDragSource,
|
|
39
47
|
createMindooDBAppBridge,
|
|
48
|
+
defineDocumentRules,
|
|
40
49
|
installHostShortcutCapture,
|
|
41
50
|
isHostShortcutAction,
|
|
42
51
|
isMindooDBAppDragType,
|
|
@@ -44,22 +53,33 @@ import {
|
|
|
44
53
|
matchHostShortcut,
|
|
45
54
|
mindooDBAppAcceptMatchesType,
|
|
46
55
|
mindooDBAppComponentFieldsMatch,
|
|
56
|
+
mindooDBAppComponentSupports,
|
|
57
|
+
mindooDBAppInspectContracts,
|
|
58
|
+
mindooDBAppInspectRules,
|
|
59
|
+
mindooDBAppInspectionSummaryValue,
|
|
47
60
|
mindooDBDocumentId,
|
|
48
61
|
normalizeAgentToolInput,
|
|
49
62
|
normalizeDragAccepts,
|
|
50
63
|
normalizeDragPointerInput,
|
|
51
64
|
normalizeDragStartInput,
|
|
65
|
+
normalizeMindooDBAppInspectAnchor,
|
|
66
|
+
normalizeMindooDBAppInspectRequest,
|
|
67
|
+
normalizeMindooDBAppInspection,
|
|
68
|
+
normalizeMindooDBAppIssues,
|
|
69
|
+
readMindooDBAppInspectionSummary,
|
|
52
70
|
releaseMindooDBAppBridgeSessions,
|
|
53
71
|
resolveMindooDBAppDefinitionUrl,
|
|
72
|
+
resolveMindooDBAppEmbedValidation,
|
|
54
73
|
resolveMindooDBAppListingAssetUrl,
|
|
55
74
|
resolveMindooDBAppLocalizedText,
|
|
56
75
|
sanitizeHostShortcutBindings,
|
|
57
76
|
snapshotElementToPng,
|
|
77
|
+
summarizeMindooDBAppInspection,
|
|
58
78
|
validateMindooDBAppAccepts,
|
|
59
79
|
validateMindooDBAppAgentProfile,
|
|
60
80
|
validateMindooDBAppComponents,
|
|
61
81
|
validateMindooDBAppDefinition
|
|
62
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-UFP7O4OJ.js";
|
|
63
83
|
import {
|
|
64
84
|
MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME,
|
|
65
85
|
MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME,
|
|
@@ -1398,6 +1418,10 @@ export {
|
|
|
1398
1418
|
MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS,
|
|
1399
1419
|
MINDOODB_APP_DEFINITION_VERSION,
|
|
1400
1420
|
MINDOODB_APP_HOSTING_QUERY_PARAM,
|
|
1421
|
+
MINDOODB_APP_INSPECTION_FIELD,
|
|
1422
|
+
MINDOODB_APP_INSPECTION_MAX_BYTES,
|
|
1423
|
+
MINDOODB_APP_INSPECTION_SUMMARY_MAX_BYTES,
|
|
1424
|
+
MINDOODB_APP_ISSUES_MAX,
|
|
1401
1425
|
MINDOODB_APP_LAUNCH_ID_QUERY_PARAM,
|
|
1402
1426
|
MINDOODB_APP_LISTING_DESCRIPTION_MAX,
|
|
1403
1427
|
MINDOODB_APP_LISTING_MAX_SCREENSHOTS,
|
|
@@ -1411,9 +1435,13 @@ export {
|
|
|
1411
1435
|
MINDOODB_APP_WELL_KNOWN_DRAG_TYPES,
|
|
1412
1436
|
MINDOODB_CUSTOM_DOCUMENT_ID_PATTERN,
|
|
1413
1437
|
MINDOODB_DOCUMENT_ID_PREFIX_PATTERN,
|
|
1438
|
+
MINDOODB_INSPECT_DOCUMENT,
|
|
1439
|
+
MINDOODB_INSPECT_SLIDES,
|
|
1440
|
+
MINDOODB_INSPECT_SPREADSHEET,
|
|
1414
1441
|
MINIMAL_DRAG_PREVIEW_PNG,
|
|
1415
1442
|
MindooDBAppAgentToolError,
|
|
1416
1443
|
MindooDBAppDragInputError,
|
|
1444
|
+
MindooDBAppEmbedValidationError,
|
|
1417
1445
|
MindooDBAppValue,
|
|
1418
1446
|
MindooDBRichTextHandle,
|
|
1419
1447
|
MindooDBTextBuffer,
|
|
@@ -1431,6 +1459,7 @@ export {
|
|
|
1431
1459
|
createMindooDBRichTextHandle,
|
|
1432
1460
|
createMindooDBTextBuffer,
|
|
1433
1461
|
createViewLanguage,
|
|
1462
|
+
defineDocumentRules,
|
|
1434
1463
|
expandAbbreviatedName,
|
|
1435
1464
|
inheritDocumentEncryption,
|
|
1436
1465
|
installHavenStorageShim,
|
|
@@ -1445,26 +1474,37 @@ export {
|
|
|
1445
1474
|
matchHostShortcut,
|
|
1446
1475
|
mindooDBAppAcceptMatchesType,
|
|
1447
1476
|
mindooDBAppComponentFieldsMatch,
|
|
1477
|
+
mindooDBAppComponentSupports,
|
|
1478
|
+
mindooDBAppInspectContracts,
|
|
1479
|
+
mindooDBAppInspectRules,
|
|
1480
|
+
mindooDBAppInspectionSummaryValue,
|
|
1448
1481
|
mindooDBDocumentId,
|
|
1449
1482
|
normalizeAgentToolInput,
|
|
1450
1483
|
normalizeDragAccepts,
|
|
1451
1484
|
normalizeDragPointerInput,
|
|
1452
1485
|
normalizeDragStartInput,
|
|
1453
1486
|
normalizeMindooDBAppBundlePath,
|
|
1487
|
+
normalizeMindooDBAppInspectAnchor,
|
|
1488
|
+
normalizeMindooDBAppInspectRequest,
|
|
1489
|
+
normalizeMindooDBAppInspection,
|
|
1490
|
+
normalizeMindooDBAppIssues,
|
|
1454
1491
|
parseListingMarkdown,
|
|
1455
1492
|
queryDocuments,
|
|
1456
1493
|
readMindooDBAppHostingMode,
|
|
1494
|
+
readMindooDBAppInspectionSummary,
|
|
1457
1495
|
readMindooDBAppLaunchId,
|
|
1458
1496
|
releaseMindooDBAppBridgeSessions,
|
|
1459
1497
|
renderAgentGuideGroup,
|
|
1460
1498
|
renderHavenAppLandingPage,
|
|
1461
1499
|
resolveCurrentHavenAppUrl,
|
|
1462
1500
|
resolveMindooDBAppDefinitionUrl,
|
|
1501
|
+
resolveMindooDBAppEmbedValidation,
|
|
1463
1502
|
resolveMindooDBAppListingAssetUrl,
|
|
1464
1503
|
resolveMindooDBAppLocalizedText,
|
|
1465
1504
|
sanitizeHostShortcutBindings,
|
|
1466
1505
|
sanitizeListingHref,
|
|
1467
1506
|
snapshotElementToPng,
|
|
1507
|
+
summarizeMindooDBAppInspection,
|
|
1468
1508
|
validateMindooDBAppAccepts,
|
|
1469
1509
|
validateMindooDBAppAgentProfile,
|
|
1470
1510
|
validateMindooDBAppBundleManifest,
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aY as MindooDBAppComponentInfo, c2 as MindooDBAppEmbedRect, bV as MindooDBAppEmbedAgentTools, cy as MindooDBAppInspectRequest, cC as MindooDBAppIssue, cx as MindooDBAppInspectAnchor, c7 as MindooDBAppEmbeddingLookupOptions, c8 as MindooDBAppEmbeddingLookupResult, bT as MindooDBAppEmbedAccessPair, cB as MindooDBAppInspectionBase, c4 as MindooDBAppEmbedValidation, a1 as MindooDBAppAgentToolDescriptor, f as MindooDBAppAgentToolErrorCode, af as MindooDBAppBridgeAgentResultMessage, ae as MindooDBAppBridgeAgentInvokeMessage, bk as MindooDBAppCreateViewNavigatorInput, em as MindooDBAppViewNavigator, aB as MindooDBAppBridgeRpcRequest, cl as MindooDBAppHostTheme, aT as MindooDBAppCapability, eg as MindooDBAppUpdateDocumentInput, m as MindooDBAppDocument, k as MindooDBAppDefinition, a4 as MindooDBAppAttachmentApi, e as MindooDBAppBridge, dT as MindooDBAppSession, dc as MindooDBAppProposeAppInput, eu as MindooDBAppViewport, ef as MindooDBAppUiPreferences, di as MindooDBAppQueryResult, et as MindooDBAppViewUpdateStats, aw as MindooDBAppBridgePortMessage, bl as MindooDBAppDatabaseInfo, d8 as MindooDBAppPdfSignInput, bS as MindooDBAppEmbedAccessInput, bZ as MindooDBAppEmbedCloseReason, ar as MindooDBAppBridgeErrorPayload, cN as MindooDBAppLaunchContext, bu as MindooDBAppDocumentApi, eo as MindooDBAppViewNavigatorOpenOptions, cm as MindooDBAppIdentityApi, e9 as MindooDBAppTimestampApi, bs as MindooDBAppDirectoryApi, ci as MindooDBAppFulltextSetup, ch as MindooDBAppExtractionSetup, e1 as MindooDBAppSummarySetup, dd as MindooDBAppProposeAppResult, cw as MindooDBAppIncomingSource, c as MindooDBAppDragStartResult, bP as MindooDBAppDragProfile, cv as MindooDBAppIncomingResult, dp as MindooDBAppReminder } from '../types-DN-E0X34.js';
|
|
2
2
|
import * as mindoodb from 'mindoodb';
|
|
3
3
|
import 'mindoodb-view-language';
|
|
4
4
|
|
|
@@ -17,7 +17,30 @@ interface MockEmbedState {
|
|
|
17
17
|
active: boolean;
|
|
18
18
|
/** The agent tools it offers (`setEmbedAgentTools`), as the host app sees them. */
|
|
19
19
|
agentTools: MindooDBAppEmbedAgentTools | null;
|
|
20
|
-
|
|
20
|
+
/** The component's `supports`. */
|
|
21
|
+
supports: string[];
|
|
22
|
+
/** Set while the app checks saves (`embed.onBeforeSave`): the inspection it asked for. */
|
|
23
|
+
beforeSave: {
|
|
24
|
+
inspect: MindooDBAppInspectRequest;
|
|
25
|
+
} | null;
|
|
26
|
+
/** What the app asked of the component, oldest first. */
|
|
27
|
+
requests: MockEmbedRequest[];
|
|
28
|
+
}
|
|
29
|
+
/** One request of the host app to its component, as the mock recorded it. */
|
|
30
|
+
type MockEmbedRequest = {
|
|
31
|
+
request: "inspect";
|
|
32
|
+
inspect: MindooDBAppInspectRequest;
|
|
33
|
+
} | {
|
|
34
|
+
request: "showIssues";
|
|
35
|
+
issues: MindooDBAppIssue[];
|
|
36
|
+
} | {
|
|
37
|
+
request: "reveal";
|
|
38
|
+
anchor: MindooDBAppInspectAnchor;
|
|
39
|
+
} | {
|
|
40
|
+
request: "callTool";
|
|
41
|
+
name: string;
|
|
42
|
+
input: Record<string, unknown>;
|
|
43
|
+
};
|
|
21
44
|
/** How an app running as an embedded component finished (`session.embedding`). */
|
|
22
45
|
interface MockEmbeddingFinish {
|
|
23
46
|
reason: "completed" | "cancelled";
|
|
@@ -40,6 +63,25 @@ interface MockEmbedHostOptions {
|
|
|
40
63
|
* ask for and returns the ones the user allows. Without it every pair is allowed.
|
|
41
64
|
*/
|
|
42
65
|
embedAccess?: (pairs: MindooDBAppEmbedAccessPair[]) => MindooDBAppEmbedAccessPair[] | Promise<MindooDBAppEmbedAccessPair[]>;
|
|
66
|
+
/**
|
|
67
|
+
* Plays the components for `embed.inspect` and save checks: describes the
|
|
68
|
+
* embed's document. Without it components cannot describe theirs (`unsupported`).
|
|
69
|
+
*/
|
|
70
|
+
embedInspection?: (embed: MockEmbedState, request: MindooDBAppInspectRequest) => MindooDBAppInspectionBase | Promise<MindooDBAppInspectionBase>;
|
|
71
|
+
/** Plays the components for `embed.callTool`; without it calls fail with `unsupported`. */
|
|
72
|
+
embedTools?: (embed: MockEmbedState, name: string, input: Record<string, unknown>) => unknown;
|
|
73
|
+
/**
|
|
74
|
+
* Plays the user when a save check found only warnings: true saves anyway (the
|
|
75
|
+
* default), false keeps the document unsaved.
|
|
76
|
+
*/
|
|
77
|
+
confirmSaveWarnings?: (warnings: MindooDBAppIssue[]) => boolean | Promise<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* For an app under test that runs as a component: what Haven answers to its
|
|
80
|
+
* `session.embedding.validate`, i.e. its host's checks. Without it every save is fine.
|
|
81
|
+
*/
|
|
82
|
+
embeddingValidation?: (options: {
|
|
83
|
+
interactive: boolean;
|
|
84
|
+
}) => MindooDBAppEmbedValidation | Promise<MindooDBAppEmbedValidation>;
|
|
43
85
|
}
|
|
44
86
|
|
|
45
87
|
/**
|
|
@@ -614,6 +656,14 @@ interface CreateMockMindooDBAppSessionOptions {
|
|
|
614
656
|
* those Haven would ask for. Without it every pair is allowed.
|
|
615
657
|
*/
|
|
616
658
|
embedAccess?: MockEmbedHostOptions["embedAccess"];
|
|
659
|
+
/** Plays the components for `embed.inspect` and save checks (see `MockEmbedHostOptions`). */
|
|
660
|
+
embedInspection?: MockEmbedHostOptions["embedInspection"];
|
|
661
|
+
/** Plays the components for `embed.callTool`. */
|
|
662
|
+
embedTools?: MockEmbedHostOptions["embedTools"];
|
|
663
|
+
/** Plays the user when a save check found only warnings; default: save anyway. */
|
|
664
|
+
confirmSaveWarnings?: MockEmbedHostOptions["confirmSaveWarnings"];
|
|
665
|
+
/** For an app under test that runs as a component: its host's checks (`embedding.validate`). */
|
|
666
|
+
embeddingValidation?: MockEmbedHostOptions["embeddingValidation"];
|
|
617
667
|
/**
|
|
618
668
|
* Answer `embeds.open` with a `container` like a current Haven: with this page
|
|
619
669
|
* for the SDK to frame (e.g. `about:blank`). Without it the host behaves like an
|
|
@@ -707,6 +757,30 @@ interface MockMindooDBAppSessionController {
|
|
|
707
757
|
getEmbeddingDirty(): boolean | undefined;
|
|
708
758
|
/** For an app under test that runs as a component: asks it to save, as its host would. */
|
|
709
759
|
requestEmbeddingSave(): Promise<void>;
|
|
760
|
+
/**
|
|
761
|
+
* As if the embedded component asked before saving (`embedding.validate`): runs
|
|
762
|
+
* the app's `onBeforeSave` check and resolves as Haven would.
|
|
763
|
+
*/
|
|
764
|
+
validateEmbed(embedId: string, options?: {
|
|
765
|
+
interactive?: boolean;
|
|
766
|
+
}): Promise<MindooDBAppEmbedValidation>;
|
|
767
|
+
/** As if the embedded component saved: the app's `onAfterSave` listeners run. */
|
|
768
|
+
notifyEmbedSaved(embedId: string): void;
|
|
769
|
+
/** What the app asked of this embed's component (`inspect`, `showIssues`, `reveal`, `callTool`). */
|
|
770
|
+
getEmbedRequests(embedId: string): MockEmbedRequest[];
|
|
771
|
+
/** For an app under test that runs as a component: asks it to describe its document, as its host would. */
|
|
772
|
+
requestEmbeddingInspection(request?: MindooDBAppInspectRequest): Promise<MindooDBAppInspectionBase>;
|
|
773
|
+
/** For an app under test that runs as a component: hands it the host's issues. */
|
|
774
|
+
requestEmbeddingShowIssues(issues: MindooDBAppIssue[]): Promise<void>;
|
|
775
|
+
/** For an app under test that runs as a component: asks it to scroll to `anchor`. */
|
|
776
|
+
requestEmbeddingReveal(anchor: MindooDBAppInspectAnchor): Promise<void>;
|
|
777
|
+
/** For an app under test that runs as a component: its `embedding.validate` calls so far. */
|
|
778
|
+
getEmbeddingValidations(): Array<{
|
|
779
|
+
interactive: boolean;
|
|
780
|
+
result: MindooDBAppEmbedValidation;
|
|
781
|
+
}>;
|
|
782
|
+
/** For an app under test that runs as a component: how often it reported a save (`embedding.save`). */
|
|
783
|
+
getEmbeddingSaveCount(): number;
|
|
710
784
|
}
|
|
711
785
|
|
|
712
786
|
/** Content for `emitIncomingContent`. */
|
|
@@ -846,6 +920,30 @@ interface FakeBridgeHostController {
|
|
|
846
920
|
* over the port and resolves or rejects with the app's answer.
|
|
847
921
|
*/
|
|
848
922
|
requestEmbeddingSave(): Promise<void>;
|
|
923
|
+
/**
|
|
924
|
+
* As if the embedded component asked before saving (`embedding.validate`): runs
|
|
925
|
+
* the app's `onBeforeSave` check and resolves as Haven would.
|
|
926
|
+
*/
|
|
927
|
+
validateEmbed(embedId: string, options?: {
|
|
928
|
+
interactive?: boolean;
|
|
929
|
+
}): Promise<MindooDBAppEmbedValidation>;
|
|
930
|
+
/** As if the embedded component saved: the app's `onAfterSave` listeners run. */
|
|
931
|
+
notifyEmbedSaved(embedId: string): void;
|
|
932
|
+
/** What the app asked of this embed's component (`inspect`, `showIssues`, `reveal`, `callTool`). */
|
|
933
|
+
getEmbedRequests(embedId: string): MockEmbedRequest[];
|
|
934
|
+
/** For an app under test that runs as a component: asks it to describe its document, as its host would. */
|
|
935
|
+
requestEmbeddingInspection(request?: MindooDBAppInspectRequest): Promise<MindooDBAppInspectionBase>;
|
|
936
|
+
/** For an app under test that runs as a component: hands it the host's issues. */
|
|
937
|
+
requestEmbeddingShowIssues(issues: MindooDBAppIssue[]): Promise<void>;
|
|
938
|
+
/** For an app under test that runs as a component: asks it to scroll to `anchor`. */
|
|
939
|
+
requestEmbeddingReveal(anchor: MindooDBAppInspectAnchor): Promise<void>;
|
|
940
|
+
/** For an app under test that runs as a component: its `embedding.validate` calls so far. */
|
|
941
|
+
getEmbeddingValidations(): Array<{
|
|
942
|
+
interactive: boolean;
|
|
943
|
+
result: MindooDBAppEmbedValidation;
|
|
944
|
+
}>;
|
|
945
|
+
/** For an app under test that runs as a component: how often it reported a save (`embedding.save`). */
|
|
946
|
+
getEmbeddingSaveCount(): number;
|
|
849
947
|
/**
|
|
850
948
|
* Haven's agent-tool side: the tools and context the app declared, files in the
|
|
851
949
|
* exchange, and `call()` to run a tool as an agent would.
|
|
@@ -854,4 +952,4 @@ interface FakeBridgeHostController {
|
|
|
854
952
|
}
|
|
855
953
|
declare function createFakeBridgeHost(options?: CreateFakeBridgeHostOptions): FakeBridgeHostController;
|
|
856
954
|
|
|
857
|
-
export { ALL_CAPABILITIES, type AgentManifestCheckOptions, type AgentManifestCheckResult, type BrowserTestHost, type BrowserTestHostLog, type BrowserTestHostScan, type BrowserTestHostScanMode, type CreateBrowserTestHostOptions, type CreateFakeBridgeHostOptions, type CreateMockMindooDBAppSessionOptions, DEFAULT_TEST_HOST_USERS, type EvaluatingViewDocument, type FakeBridgeHostController, type FakeBridgePortMessageHandler, type FakeBridgeRequestHandler, type FakeBridgeRpcResponse, type MockAgentCall, type MockAgentCallResult, type MockAgentConsent, type MockAgentFile, type MockAgentHost, type MockAgentHostController, type MockAgentHostOptions, type MockDatabaseOverride, type MockDatabasesFromDefinitionOptions, type MockEmbedState, type MockEmbeddingFinish, MockForbiddenError, type MockIncomingContentInput, type MockMindooDBAppDatabaseDefinition, type MockMindooDBAppSessionController, type MockPdfSignOutcome, type MockRemoteUpdateOptions, type MockSealedChannelOptions, type MockSeedDocument, type MountHavenTestHostOptions, TEST_HOST_LOCALES, type TestHostUrlSettings, type TestHostUser, type TwoUserTestHost, assertAgentManifest, capabilitiesForDefinitionPermissions, checkAgentManifest, createBrowserTestHost, createEvaluatingViewNavigator, createFakeBridgeHost, createMemoryAttachments, createMockAgentHost, createMockMindooDBAppBridge, createMockMindooDBAppSession, generateDirectoryUsers, loadMindoodbForTesting, mockAgentToolPrefix, mockDatabasesFromDefinition, mockReplicaDifferences, modeSwitch, mountHavenTestHost, mountTwoUserTestHost, previewJson, readTestHostUrlSettings, syncMockReplicas, validateMockAgentTools };
|
|
955
|
+
export { ALL_CAPABILITIES, type AgentManifestCheckOptions, type AgentManifestCheckResult, type BrowserTestHost, type BrowserTestHostLog, type BrowserTestHostScan, type BrowserTestHostScanMode, type CreateBrowserTestHostOptions, type CreateFakeBridgeHostOptions, type CreateMockMindooDBAppSessionOptions, DEFAULT_TEST_HOST_USERS, type EvaluatingViewDocument, type FakeBridgeHostController, type FakeBridgePortMessageHandler, type FakeBridgeRequestHandler, type FakeBridgeRpcResponse, type MockAgentCall, type MockAgentCallResult, type MockAgentConsent, type MockAgentFile, type MockAgentHost, type MockAgentHostController, type MockAgentHostOptions, type MockDatabaseOverride, type MockDatabasesFromDefinitionOptions, type MockEmbedRequest, type MockEmbedState, type MockEmbeddingFinish, MockForbiddenError, type MockIncomingContentInput, type MockMindooDBAppDatabaseDefinition, type MockMindooDBAppSessionController, type MockPdfSignOutcome, type MockRemoteUpdateOptions, type MockSealedChannelOptions, type MockSeedDocument, type MountHavenTestHostOptions, TEST_HOST_LOCALES, type TestHostUrlSettings, type TestHostUser, type TwoUserTestHost, assertAgentManifest, capabilitiesForDefinitionPermissions, checkAgentManifest, createBrowserTestHost, createEvaluatingViewNavigator, createFakeBridgeHost, createMemoryAttachments, createMockAgentHost, createMockMindooDBAppBridge, createMockMindooDBAppSession, generateDirectoryUsers, loadMindoodbForTesting, mockAgentToolPrefix, mockDatabasesFromDefinition, mockReplicaDifferences, modeSwitch, mountHavenTestHost, mountTwoUserTestHost, previewJson, readTestHostUrlSettings, syncMockReplicas, validateMockAgentTools };
|