mindoodb-app-sdk 0.0.70 → 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/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-7oOzrSr5.js';
2
- export { q as MINDOODB_APP_ACCEPTS_MAX, r as MINDOODB_APP_COMPONENTS_MAX, s as MINDOODB_APP_COMPONENT_CONTRACT_PATTERN, t as MINDOODB_APP_DEFINITION_FILE_NAME, u as MINDOODB_APP_DEFINITION_FORMAT, v as MINDOODB_APP_DEFINITION_PERMISSIONS, w as MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS, x as MINDOODB_APP_DEFINITION_VERSION, y as MINDOODB_APP_LISTING_DESCRIPTION_MAX, z as MINDOODB_APP_LISTING_MAX_SCREENSHOTS, A as MINDOODB_APP_LISTING_SUMMARY_MAX, B as MINDOODB_APP_SEAL_SIGNING_DOMAIN, C as MINDOODB_APP_WELL_KNOWN_DRAG_TYPES, D as MindooDBAppAcceptSpec, E as MindooDBAppAccessDecision, F as MindooDBAppAccessTier, G as MindooDBAppAgentApi, H as MindooDBAppAgentRegistration, I as MindooDBAppAgentToolAnnotations, J as MindooDBAppAgentToolDescriptor, K as MindooDBAppAgentToolScope, L as MindooDBAppAttachmentApi, N as MindooDBAppAttachmentChunk, O as MindooDBAppAttachmentInfo, P as MindooDBAppAttachmentPreviewOptions, Q as MindooDBAppAttachmentPreviewSession, R as MindooDBAppAutomergeChangesPatch, S as MindooDBAppAutomergeChangesSince, T as MindooDBAppAutomergeGetOptions, U as MindooDBAppAutomergePatchResult, V as MindooDBAppAutomergeSnapshot, W as MindooDBAppBridgeAgentInvokeMessage, X as MindooDBAppBridgeAgentResultMessage, Y as MindooDBAppBridgeBeforeCloseAck, Z as MindooDBAppBridgeBeforeCloseMessage, _ as MindooDBAppBridgeConnectMessage, $ as MindooDBAppBridgeConnectOptions, a0 as MindooDBAppBridgeConnectedMessage, a1 as MindooDBAppBridgeDragDropMessage, a2 as MindooDBAppBridgeDragLeaveMessage, a3 as MindooDBAppBridgeDragOverMessage, a4 as MindooDBAppBridgeEmbedEventMessage, a5 as MindooDBAppBridgeEmbeddingRequestMessage, a6 as MindooDBAppBridgeErrorPayload, a7 as MindooDBAppBridgeHandshakeErrorMessage, a8 as MindooDBAppBridgeHostFocusChangedMessage, a9 as MindooDBAppBridgeIncomingContentMessage, aa as MindooDBAppBridgeLocaleChangedMessage, ab as MindooDBAppBridgePortMessage, ac as MindooDBAppBridgeQueryResultMessage, ad as MindooDBAppBridgeReminderOpenedMessage, ae as MindooDBAppBridgeRpcError, af as MindooDBAppBridgeRpcMessage, ag as MindooDBAppBridgeRpcRequest, ah as MindooDBAppBridgeRpcSuccess, ai as MindooDBAppBridgeShortcutInvokedMessage, aj as MindooDBAppBridgeShortcutsChangedMessage, ak as MindooDBAppBridgeStreamAbortRequest, al as MindooDBAppBridgeStreamAck, am as MindooDBAppBridgeStreamCloseRequest, an as MindooDBAppBridgeStreamError, ao as MindooDBAppBridgeStreamMessage, ap as MindooDBAppBridgeStreamOpenResult, aq as MindooDBAppBridgeStreamReadRequest, ar as MindooDBAppBridgeStreamWriteRequest, as as MindooDBAppBridgeThemeChangedMessage, at as MindooDBAppBridgeUiPreferencesChangedMessage, au as MindooDBAppBridgeViewChangedMessage, av as MindooDBAppBridgeViewportChangedMessage, aw as MindooDBAppBridgeWorkspaceFocusRequestedMessage, ax as MindooDBAppBrowserFeatures, ay as MindooDBAppCapability, az as MindooDBAppComponentCategory, aA as MindooDBAppComponentChildren, aB as MindooDBAppComponentContract, aC as MindooDBAppComponentFieldValue, aD as MindooDBAppComponentInfo, aE as MindooDBAppComponentIntent, aF as MindooDBAppComponentQuery, aG as MindooDBAppComponentReference, aH as MindooDBAppComponentSpec, aI as MindooDBAppComponentsApi, aJ as MindooDBAppConfiguredViewCategorizationStyle, aK as MindooDBAppConfiguredViewColumn, aL as MindooDBAppConfiguredViewColumnRole, aM as MindooDBAppConfiguredViewExpressionMode, aN as MindooDBAppConfiguredViewFieldExpression, aO as MindooDBAppConfiguredViewFilterDefinition, aP as MindooDBAppConfiguredViewFilterMode, aQ as MindooDBAppConfiguredViewFilterRule, aR as MindooDBAppConfiguredViewFormulaExpression, aS as MindooDBAppConfiguredViewFormulaFilterDefinition, aT as MindooDBAppConfiguredViewPreviewMode, aU as MindooDBAppConfiguredViewRuleFilterDefinition, aV as MindooDBAppConfiguredViewRuleMatchMode, aW as MindooDBAppConfiguredViewRuleOperator, aX as MindooDBAppConfiguredViewValueExpression, aY as MindooDBAppCreateKeyInfo, aZ as MindooDBAppCreateViewInput, a_ as MindooDBAppCreateViewNavigatorInput, a$ as MindooDBAppDatabaseInfo, b0 as MindooDBAppDefinitionDatabase, b1 as MindooDBAppDefinitionListing, b2 as MindooDBAppDefinitionPermission, b3 as MindooDBAppDefinitionRegistrationPermission, b4 as MindooDBAppDefinitionScreenshot, b5 as MindooDBAppDefinitionValidation, b6 as MindooDBAppDirectoryApi, b7 as MindooDBAppDirectoryEntry, b8 as MindooDBAppDocumentApi, b9 as MindooDBAppDocumentHeadCursorResult, ba as MindooDBAppDocumentHistoryEntry, bb as MindooDBAppDocumentListQuery, bc as MindooDBAppDocumentListResult, bd as MindooDBAppDocumentQuery, be as MindooDBAppDocumentRevisionId, 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 MindooDBAppEmbedCloseReason, by as MindooDBAppEmbedClosedEvent, bz as MindooDBAppEmbedContext, bA as MindooDBAppEmbedDirtyEvent, bB as MindooDBAppEmbedOpenInput, bC as MindooDBAppEmbedRect, bD as MindooDBAppEmbeddingApi, bE as MindooDBAppEmbeddingLookupOptions, bF as MindooDBAppEmbeddingLookupResult, bG as MindooDBAppEmbedsApi, bH as MindooDBAppEntryAttachmentRef, bI as MindooDBAppEntryProvenance, bJ as MindooDBAppExtractDocumentTextInput, bK as MindooDBAppExtractDocumentTextResult, bL as MindooDBAppExtractTextFormat, bM as MindooDBAppExtractionSetup, bN as MindooDBAppFulltextSetup, bO as MindooDBAppHistoricalDocument, bP as MindooDBAppHistoryQuery, bQ as MindooDBAppHostTheme, bR as MindooDBAppIdentityApi, bS as MindooDBAppInaccessibleDocument, bT as MindooDBAppInaccessibleDocumentListQuery, bU as MindooDBAppInaccessibleDocumentListResult, bV as MindooDBAppIncomingContent, bW as MindooDBAppIncomingContentHandler, bX as MindooDBAppIncomingContentInfo, bY as MindooDBAppIncomingItem, bZ as MindooDBAppIncomingItemInfo, b_ as MindooDBAppIncomingResult, b$ as MindooDBAppIncomingSource, c0 as MindooDBAppJsonCounterIncrementPatch, c1 as MindooDBAppJsonListDeletePatch, c2 as MindooDBAppJsonListInsertPatch, c3 as MindooDBAppJsonPatch, c4 as MindooDBAppJsonSetPatch, c5 as MindooDBAppJsonTextMarkPatch, c6 as MindooDBAppJsonTextSplicePatch, c7 as MindooDBAppJsonTextUnmarkPatch, c8 as MindooDBAppJsonUnsetPatch, c9 as MindooDBAppLaunchContext, ca as MindooDBAppListUsersOptions, cb as MindooDBAppListUsersPage, cc as MindooDBAppLiveQuerySubscription, cd as MindooDBAppLocalizedText, ce as MindooDBAppMenuAnchor, cf as MindooDBAppMenuApi, cg as MindooDBAppMenuCommandItem, ch as MindooDBAppMenuDismissReason, ci as MindooDBAppMenuDismissedResult, cj as MindooDBAppMenuItem, ck as MindooDBAppMenuKind, cl as MindooDBAppMenuPlacement, cm as MindooDBAppMenuPointAnchor, cn as MindooDBAppMenuRect, co as MindooDBAppMenuRectAnchor, cp as MindooDBAppMenuSelectionResult, cq as MindooDBAppMenuSeparatorItem, cr as MindooDBAppNotificationSeverity, cs as MindooDBAppNotifyInput, ct as MindooDBAppNotifyResult, cu as MindooDBAppPdfApi, cv as MindooDBAppPdfSignInput, cw as MindooDBAppPdfSignResult, cx as MindooDBAppPdfSignaturePosition, cy as MindooDBAppPdfSigner, cz as MindooDBAppProposeAppInput, cA as MindooDBAppProposeAppResult, cB as MindooDBAppQueryCoverage, cC as MindooDBAppQueryInclude, cD as MindooDBAppQueryIncludeCardinality, cE as MindooDBAppQueryIncludeSlots, cF as MindooDBAppQueryResult, cG as MindooDBAppQueryRow, cH as MindooDBAppQuerySortKey, cI as MindooDBAppQueryTextClause, cJ as MindooDBAppReadableAttachmentStream, cK as MindooDBAppRecipientOptions, cL as MindooDBAppReminder, cM as MindooDBAppReminderOpened, cN as MindooDBAppReminderOpenedHandler, cO as MindooDBAppReminderRequest, cP as MindooDBAppReminderScheduleResult, cQ as MindooDBAppRemindersApi, cR as MindooDBAppResolvedViewDefinition, cS as MindooDBAppResolvedViewSource, cT as MindooDBAppRevisionPhase, cU as MindooDBAppRevisionVerification, cV as MindooDBAppRichTextBlockSpan, cW as MindooDBAppRichTextGetOptions, cX as MindooDBAppRichTextImmutableString, cY as MindooDBAppRichTextMarkRange, cZ as MindooDBAppRichTextMaterializeValue, c_ as MindooDBAppRichTextPatch, c$ as MindooDBAppRichTextScalar, d0 as MindooDBAppRichTextSpliceStep, d1 as MindooDBAppRichTextStep, d2 as MindooDBAppRichTextStepPatch, d3 as MindooDBAppRichTextTextSpan, d4 as MindooDBAppRuntime, d5 as MindooDBAppScanAttachmentOptions, d6 as MindooDBAppScanAttachmentResult, d7 as MindooDBAppScopedDocId, d8 as MindooDBAppScopedDocumentSummary, d9 as MindooDBAppSealIntent, da as MindooDBAppSealedChannelOpenInput, db as MindooDBAppSealedChannelOpenResult, dc as MindooDBAppSealedChannelRequestInput, dd as MindooDBAppSession, de as MindooDBAppShowMenuInput, df as MindooDBAppShowMenuResult, dg as MindooDBAppSignPreview, dh as MindooDBAppSignPreviewScope, di as MindooDBAppSignStatementInput, dj as MindooDBAppSignStatementResult, dk as MindooDBAppStorageApi, dl as MindooDBAppSummarySetup, dm as MindooDBAppTextCursorOptions, dn as MindooDBAppTextCursorPosition, dp as MindooDBAppTextCursorPositionsResult, dq as MindooDBAppTextCursorsResult, dr as MindooDBAppTextEdit, ds as MindooDBAppTextPatch, dt as MindooDBAppThemeMode, du as MindooDBAppTimestampApi, dv as MindooDBAppTimestampInput, dw as MindooDBAppTimestampProvider, dx as MindooDBAppTimestampResult, dy as MindooDBAppUiPreferences, dz as MindooDBAppUpdateDocumentInput, dA as MindooDBAppViewCursorDocumentListResult, dB as MindooDBAppViewCursorResult, dC as MindooDBAppViewEntry, dD as MindooDBAppViewEntryKind, dE as MindooDBAppViewNavigator, dF as MindooDBAppViewNavigatorExpansionState, dG as MindooDBAppViewNavigatorOpenOptions, dH as MindooDBAppViewNavigatorPageOptions, dI as MindooDBAppViewNavigatorPageResult, dJ as MindooDBAppViewNavigatorRangeQuery, dK as MindooDBAppViewNavigatorSelectionState, dL as MindooDBAppViewUpdateStats, dM as MindooDBAppViewport, dN as MindooDBAppWellKnownDragType, dO as MindooDBAppWritableAttachmentStream, dP as mindooDBAppAcceptMatchesType, dQ as mindooDBAppComponentFieldsMatch, dR as resolveMindooDBAppDefinitionUrl, dS as resolveMindooDBAppListingAssetUrl, dT as resolveMindooDBAppLocalizedText, dU as validateMindooDBAppAccepts, dV as validateMindooDBAppComponents, dW as validateMindooDBAppDefinition } from './types-7oOzrSr5.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, MINDOODB_APP_VALUE_TAG, 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, type MindooDBAppAtomicValue, MindooDBAppAttachmentPreviewMode, MindooDBAppBridge, type MindooDBAppCounterValue, MindooDBAppCreateDocumentInput, MindooDBAppDatabase, MindooDBAppDefinition, MindooDBAppDocument, MindooDBAppDragBindSourceOptions, MindooDBAppDragInputError, MindooDBAppDragPreview, MindooDBAppDragStartInput, MindooDBAppDragStartResult, MindooDBAppHostShortcutAction, MindooDBAppHostShortcutBinding, MindooDBAppHostingMode, MindooDBAppRichTextSnapshot, MindooDBAppRichTextSpan, type MindooDBAppTimestampValue, type MindooDBAppTypedValue, MindooDBAppValue, 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 };
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
@@ -3,6 +3,15 @@ import {
3
3
  DEFAULT_DRAG_POINTER_THRESHOLD_PX,
4
4
  DEFAULT_HAVEN_HOST_SHORTCUTS,
5
5
  MINDOODB_APP_ACCEPTS_MAX,
6
+ MINDOODB_APP_AGENT_CAPABILITIES_MAX,
7
+ MINDOODB_APP_AGENT_CAPABILITY_TITLE_MAX,
8
+ MINDOODB_APP_AGENT_CAPABILITY_TOOLS_MAX,
9
+ MINDOODB_APP_AGENT_EXAMPLE_MAX,
10
+ MINDOODB_APP_AGENT_GUIDE_MAX_BYTES,
11
+ MINDOODB_APP_AGENT_LIMIT_MAX,
12
+ MINDOODB_APP_AGENT_LIST_MAX,
13
+ MINDOODB_APP_AGENT_SUMMARY_MAX,
14
+ MINDOODB_APP_AGENT_TOOL_NAME_PATTERN,
6
15
  MINDOODB_APP_COMPONENTS_MAX,
7
16
  MINDOODB_APP_COMPONENT_CONTRACT_PATTERN,
8
17
  MINDOODB_APP_DEFINITION_FILE_NAME,
@@ -10,6 +19,10 @@ import {
10
19
  MINDOODB_APP_DEFINITION_PERMISSIONS,
11
20
  MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS,
12
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,
13
26
  MINDOODB_APP_LISTING_DESCRIPTION_MAX,
14
27
  MINDOODB_APP_LISTING_MAX_SCREENSHOTS,
15
28
  MINDOODB_APP_LISTING_SUMMARY_MAX,
@@ -20,14 +33,19 @@ import {
20
33
  MINDOODB_APP_VALUE_TAG,
21
34
  MINDOODB_CUSTOM_DOCUMENT_ID_PATTERN,
22
35
  MINDOODB_DOCUMENT_ID_PREFIX_PATTERN,
36
+ MINDOODB_INSPECT_DOCUMENT,
37
+ MINDOODB_INSPECT_SLIDES,
38
+ MINDOODB_INSPECT_SPREADSHEET,
23
39
  MINIMAL_DRAG_PREVIEW_PNG,
24
40
  MindooDBAppAgentToolError,
25
41
  MindooDBAppDragInputError,
42
+ MindooDBAppEmbedValidationError,
26
43
  MindooDBAppValue,
27
44
  applyHostedDocumentOverscrollContain,
28
45
  assertValidMindooDBCreateIds,
29
46
  bindDragSource,
30
47
  createMindooDBAppBridge,
48
+ defineDocumentRules,
31
49
  installHostShortcutCapture,
32
50
  isHostShortcutAction,
33
51
  isMindooDBAppDragType,
@@ -35,21 +53,33 @@ import {
35
53
  matchHostShortcut,
36
54
  mindooDBAppAcceptMatchesType,
37
55
  mindooDBAppComponentFieldsMatch,
56
+ mindooDBAppComponentSupports,
57
+ mindooDBAppInspectContracts,
58
+ mindooDBAppInspectRules,
59
+ mindooDBAppInspectionSummaryValue,
38
60
  mindooDBDocumentId,
39
61
  normalizeAgentToolInput,
40
62
  normalizeDragAccepts,
41
63
  normalizeDragPointerInput,
42
64
  normalizeDragStartInput,
65
+ normalizeMindooDBAppInspectAnchor,
66
+ normalizeMindooDBAppInspectRequest,
67
+ normalizeMindooDBAppInspection,
68
+ normalizeMindooDBAppIssues,
69
+ readMindooDBAppInspectionSummary,
43
70
  releaseMindooDBAppBridgeSessions,
44
71
  resolveMindooDBAppDefinitionUrl,
72
+ resolveMindooDBAppEmbedValidation,
45
73
  resolveMindooDBAppListingAssetUrl,
46
74
  resolveMindooDBAppLocalizedText,
47
75
  sanitizeHostShortcutBindings,
48
76
  snapshotElementToPng,
77
+ summarizeMindooDBAppInspection,
49
78
  validateMindooDBAppAccepts,
79
+ validateMindooDBAppAgentProfile,
50
80
  validateMindooDBAppComponents,
51
81
  validateMindooDBAppDefinition
52
- } from "./chunk-P7SOHCEQ.js";
82
+ } from "./chunk-UFP7O4OJ.js";
53
83
  import {
54
84
  MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME,
55
85
  MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME,
@@ -1367,6 +1397,15 @@ export {
1367
1397
  DEFAULT_HAVEN_HOST_SHORTCUTS,
1368
1398
  DEFAULT_HAVEN_URL,
1369
1399
  MINDOODB_APP_ACCEPTS_MAX,
1400
+ MINDOODB_APP_AGENT_CAPABILITIES_MAX,
1401
+ MINDOODB_APP_AGENT_CAPABILITY_TITLE_MAX,
1402
+ MINDOODB_APP_AGENT_CAPABILITY_TOOLS_MAX,
1403
+ MINDOODB_APP_AGENT_EXAMPLE_MAX,
1404
+ MINDOODB_APP_AGENT_GUIDE_MAX_BYTES,
1405
+ MINDOODB_APP_AGENT_LIMIT_MAX,
1406
+ MINDOODB_APP_AGENT_LIST_MAX,
1407
+ MINDOODB_APP_AGENT_SUMMARY_MAX,
1408
+ MINDOODB_APP_AGENT_TOOL_NAME_PATTERN,
1370
1409
  MINDOODB_APP_BUNDLE_ARCHIVE_FILE_NAME,
1371
1410
  MINDOODB_APP_BUNDLE_MANIFEST_FILE_NAME,
1372
1411
  MINDOODB_APP_BUNDLE_MANIFEST_FORMAT,
@@ -1379,6 +1418,10 @@ export {
1379
1418
  MINDOODB_APP_DEFINITION_REGISTRATION_PERMISSIONS,
1380
1419
  MINDOODB_APP_DEFINITION_VERSION,
1381
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,
1382
1425
  MINDOODB_APP_LAUNCH_ID_QUERY_PARAM,
1383
1426
  MINDOODB_APP_LISTING_DESCRIPTION_MAX,
1384
1427
  MINDOODB_APP_LISTING_MAX_SCREENSHOTS,
@@ -1392,9 +1435,13 @@ export {
1392
1435
  MINDOODB_APP_WELL_KNOWN_DRAG_TYPES,
1393
1436
  MINDOODB_CUSTOM_DOCUMENT_ID_PATTERN,
1394
1437
  MINDOODB_DOCUMENT_ID_PREFIX_PATTERN,
1438
+ MINDOODB_INSPECT_DOCUMENT,
1439
+ MINDOODB_INSPECT_SLIDES,
1440
+ MINDOODB_INSPECT_SPREADSHEET,
1395
1441
  MINIMAL_DRAG_PREVIEW_PNG,
1396
1442
  MindooDBAppAgentToolError,
1397
1443
  MindooDBAppDragInputError,
1444
+ MindooDBAppEmbedValidationError,
1398
1445
  MindooDBAppValue,
1399
1446
  MindooDBRichTextHandle,
1400
1447
  MindooDBTextBuffer,
@@ -1412,6 +1459,7 @@ export {
1412
1459
  createMindooDBRichTextHandle,
1413
1460
  createMindooDBTextBuffer,
1414
1461
  createViewLanguage,
1462
+ defineDocumentRules,
1415
1463
  expandAbbreviatedName,
1416
1464
  inheritDocumentEncryption,
1417
1465
  installHavenStorageShim,
@@ -1426,27 +1474,39 @@ export {
1426
1474
  matchHostShortcut,
1427
1475
  mindooDBAppAcceptMatchesType,
1428
1476
  mindooDBAppComponentFieldsMatch,
1477
+ mindooDBAppComponentSupports,
1478
+ mindooDBAppInspectContracts,
1479
+ mindooDBAppInspectRules,
1480
+ mindooDBAppInspectionSummaryValue,
1429
1481
  mindooDBDocumentId,
1430
1482
  normalizeAgentToolInput,
1431
1483
  normalizeDragAccepts,
1432
1484
  normalizeDragPointerInput,
1433
1485
  normalizeDragStartInput,
1434
1486
  normalizeMindooDBAppBundlePath,
1487
+ normalizeMindooDBAppInspectAnchor,
1488
+ normalizeMindooDBAppInspectRequest,
1489
+ normalizeMindooDBAppInspection,
1490
+ normalizeMindooDBAppIssues,
1435
1491
  parseListingMarkdown,
1436
1492
  queryDocuments,
1437
1493
  readMindooDBAppHostingMode,
1494
+ readMindooDBAppInspectionSummary,
1438
1495
  readMindooDBAppLaunchId,
1439
1496
  releaseMindooDBAppBridgeSessions,
1440
1497
  renderAgentGuideGroup,
1441
1498
  renderHavenAppLandingPage,
1442
1499
  resolveCurrentHavenAppUrl,
1443
1500
  resolveMindooDBAppDefinitionUrl,
1501
+ resolveMindooDBAppEmbedValidation,
1444
1502
  resolveMindooDBAppListingAssetUrl,
1445
1503
  resolveMindooDBAppLocalizedText,
1446
1504
  sanitizeHostShortcutBindings,
1447
1505
  sanitizeListingHref,
1448
1506
  snapshotElementToPng,
1507
+ summarizeMindooDBAppInspection,
1449
1508
  validateMindooDBAppAccepts,
1509
+ validateMindooDBAppAgentProfile,
1450
1510
  validateMindooDBAppBundleManifest,
1451
1511
  validateMindooDBAppComponents,
1452
1512
  validateMindooDBAppDefinition,
@@ -1,4 +1,4 @@
1
- import { aD as MindooDBAppComponentInfo, bC as MindooDBAppEmbedRect, bv as MindooDBAppEmbedAgentTools, bE as MindooDBAppEmbeddingLookupOptions, bF as MindooDBAppEmbeddingLookupResult, bt as MindooDBAppEmbedAccessPair, J as MindooDBAppAgentToolDescriptor, f as MindooDBAppAgentToolErrorCode, X as MindooDBAppBridgeAgentResultMessage, W as MindooDBAppBridgeAgentInvokeMessage, a_ as MindooDBAppCreateViewNavigatorInput, dE as MindooDBAppViewNavigator, ag as MindooDBAppBridgeRpcRequest, bQ as MindooDBAppHostTheme, ay as MindooDBAppCapability, dz as MindooDBAppUpdateDocumentInput, m as MindooDBAppDocument, k as MindooDBAppDefinition, L as MindooDBAppAttachmentApi, e as MindooDBAppBridge, dd as MindooDBAppSession, cz as MindooDBAppProposeAppInput, dM as MindooDBAppViewport, dy as MindooDBAppUiPreferences, cF as MindooDBAppQueryResult, dL as MindooDBAppViewUpdateStats, ab as MindooDBAppBridgePortMessage, a$ as MindooDBAppDatabaseInfo, cv as MindooDBAppPdfSignInput, bs as MindooDBAppEmbedAccessInput, bx as MindooDBAppEmbedCloseReason, a6 as MindooDBAppBridgeErrorPayload, c9 as MindooDBAppLaunchContext, b8 as MindooDBAppDocumentApi, dG as MindooDBAppViewNavigatorOpenOptions, bR as MindooDBAppIdentityApi, du as MindooDBAppTimestampApi, b6 as MindooDBAppDirectoryApi, bN as MindooDBAppFulltextSetup, bM as MindooDBAppExtractionSetup, dl as MindooDBAppSummarySetup, cA as MindooDBAppProposeAppResult, b$ as MindooDBAppIncomingSource, c as MindooDBAppDragStartResult, bp as MindooDBAppDragProfile, b_ as MindooDBAppIncomingResult, cL as MindooDBAppReminder } from '../types-7oOzrSr5.js';
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
+ /** 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[];
20
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
  /**
@@ -411,6 +453,42 @@ declare function previewJson(value: unknown, maxString?: number, maxItems?: numb
411
453
  declare function modeSwitch(current: "single" | "two"): HTMLElement;
412
454
  declare function mountHavenTestHost(options: MountHavenTestHostOptions): BrowserTestHost;
413
455
 
456
+ interface AgentManifestCheckOptions {
457
+ /** haven-app.json as parsed JSON, or an already validated definition. */
458
+ definition: unknown;
459
+ /**
460
+ * The prefix agents see. Defaults to the definition's `agentToolPrefix`, else the
461
+ * prefix Haven derives from the app id.
462
+ */
463
+ toolPrefix?: string;
464
+ /** The tools the app registers: names as in `registerTools`, or the tool objects. */
465
+ tools: ReadonlyArray<string | {
466
+ name: string;
467
+ }>;
468
+ /**
469
+ * Texts agents read that name tools: agent.md files, the ops_guide output, tool
470
+ * descriptions. An object names each text in the messages.
471
+ */
472
+ guideTexts?: Record<string, string> | readonly string[];
473
+ /** Registered tools that need no capability (no warning when none lists them). */
474
+ internalTools?: readonly string[];
475
+ /** Names in guide texts that look like tools but are not, e.g. an op called `node_add`. */
476
+ ignore?: readonly string[];
477
+ }
478
+ interface AgentManifestCheckResult {
479
+ errors: string[];
480
+ warnings: string[];
481
+ }
482
+ /**
483
+ * Compares the agent profile with the registered tools and the guide texts. Errors: a
484
+ * capability names a tool that is not registered, a guide text names a missing tool,
485
+ * the summary is missing or too long, the locales of summary, titles and examples
486
+ * differ. Warning: a registered tool belongs to no capability.
487
+ */
488
+ declare function checkAgentManifest(options: AgentManifestCheckOptions): AgentManifestCheckResult;
489
+ /** {@link checkAgentManifest} for a test: throws with every error; returns the warnings. */
490
+ declare function assertAgentManifest(options: AgentManifestCheckOptions): string[];
491
+
414
492
  /**
415
493
  * In-memory attachments for mock databases: what an app writes can be listed and read
416
494
  * back, like in Haven. The default mock attachment API stores nothing; the browser test
@@ -578,6 +656,14 @@ interface CreateMockMindooDBAppSessionOptions {
578
656
  * those Haven would ask for. Without it every pair is allowed.
579
657
  */
580
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"];
581
667
  /**
582
668
  * Answer `embeds.open` with a `container` like a current Haven: with this page
583
669
  * for the SDK to frame (e.g. `about:blank`). Without it the host behaves like an
@@ -671,6 +757,30 @@ interface MockMindooDBAppSessionController {
671
757
  getEmbeddingDirty(): boolean | undefined;
672
758
  /** For an app under test that runs as a component: asks it to save, as its host would. */
673
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;
674
784
  }
675
785
 
676
786
  /** Content for `emitIncomingContent`. */
@@ -810,6 +920,30 @@ interface FakeBridgeHostController {
810
920
  * over the port and resolves or rejects with the app's answer.
811
921
  */
812
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;
813
947
  /**
814
948
  * Haven's agent-tool side: the tools and context the app declared, files in the
815
949
  * exchange, and `call()` to run a tool as an agent would.
@@ -818,4 +952,4 @@ interface FakeBridgeHostController {
818
952
  }
819
953
  declare function createFakeBridgeHost(options?: CreateFakeBridgeHostOptions): FakeBridgeHostController;
820
954
 
821
- export { ALL_CAPABILITIES, 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, capabilitiesForDefinitionPermissions, 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 };