@knowledge-medium/agent-cli 0.1.0
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/LICENSE +21 -0
- package/README.md +161 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +908 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +29 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +91 -0
- package/dist/config.js.map +1 -0
- package/dist/kernel-types/assets.d.ts +14 -0
- package/dist/kernel-types/packages/agent-cli/src/protocol.d.ts +470 -0
- package/dist/kernel-types/packages/agent-cli/src/protocol.d.ts.map +1 -0
- package/dist/kernel-types/src/App.d.ts +3 -0
- package/dist/kernel-types/src/App.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockComponent.d.ts +21 -0
- package/dist/kernel-types/src/components/BlockComponent.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockEditor.d.ts +18 -0
- package/dist/kernel-types/src/components/BlockEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockLoadingPlaceholder.d.ts +15 -0
- package/dist/kernel-types/src/components/BlockLoadingPlaceholder.d.ts.map +1 -0
- package/dist/kernel-types/src/components/BlockProperties.d.ts +12 -0
- package/dist/kernel-types/src/components/BlockProperties.d.ts.map +1 -0
- package/dist/kernel-types/src/components/Header.d.ts +2 -0
- package/dist/kernel-types/src/components/Header.d.ts.map +1 -0
- package/dist/kernel-types/src/components/LazyBlockComponent.d.ts +29 -0
- package/dist/kernel-types/src/components/LazyBlockComponent.d.ts.map +1 -0
- package/dist/kernel-types/src/components/Login.d.ts +12 -0
- package/dist/kernel-types/src/components/Login.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/RefPropertyEditor.d.ts +13 -0
- package/dist/kernel-types/src/components/propertyEditors/RefPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/RefTargetTypePicker.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyEditors/RefTargetTypePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/TypesPropertyEditor.d.ts +3 -0
- package/dist/kernel-types/src/components/propertyEditors/TypesPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/defaults.d.ts +84 -0
- package/dist/kernel-types/src/components/propertyEditors/defaults.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/kernelValuePresets.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyEditors/kernelValuePresets.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/refPropertyEditorOverride.d.ts +9 -0
- package/dist/kernel-types/src/components/propertyEditors/refPropertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyEditors/typesPropertyUi.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyEditors/typesPropertyUi.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/AddPropertyForm.d.ts +16 -0
- package/dist/kernel-types/src/components/propertyPanel/AddPropertyForm.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyPicker.d.ts +54 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyPicker.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyRow.d.ts +21 -0
- package/dist/kernel-types/src/components/propertyPanel/PropertyRow.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/Rows.d.ts +8 -0
- package/dist/kernel-types/src/components/propertyPanel/Rows.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/actions.d.ts +26 -0
- package/dist/kernel-types/src/components/propertyPanel/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/layout.d.ts +7 -0
- package/dist/kernel-types/src/components/propertyPanel/layout.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/model.d.ts +58 -0
- package/dist/kernel-types/src/components/propertyPanel/model.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/shapeUi.d.ts +32 -0
- package/dist/kernel-types/src/components/propertyPanel/shapeUi.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/shapes.d.ts +6 -0
- package/dist/kernel-types/src/components/propertyPanel/shapes.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanel/visibility.d.ts +10 -0
- package/dist/kernel-types/src/components/propertyPanel/visibility.d.ts.map +1 -0
- package/dist/kernel-types/src/components/propertyPanelSections.d.ts +20 -0
- package/dist/kernel-types/src/components/propertyPanelSections.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/BlockEmbed.d.ts +4 -0
- package/dist/kernel-types/src/components/references/BlockEmbed.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/BlockRef.d.ts +6 -0
- package/dist/kernel-types/src/components/references/BlockRef.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/cycleGuard.d.ts +6 -0
- package/dist/kernel-types/src/components/references/cycleGuard.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/cycleGuardContext.d.ts +2 -0
- package/dist/kernel-types/src/components/references/cycleGuardContext.d.ts.map +1 -0
- package/dist/kernel-types/src/components/references/useBlockRefAncestors.d.ts +2 -0
- package/dist/kernel-types/src/components/references/useBlockRefAncestors.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/BlockTypeBlockRenderer.d.ts +12 -0
- package/dist/kernel-types/src/components/renderer/BlockTypeBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorContentRenderer.d.ts +3 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorContentRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorExtensionBlockRenderer.d.ts +3 -0
- package/dist/kernel-types/src/components/renderer/CodeMirrorExtensionBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/DefaultBlockRenderer.d.ts +26 -0
- package/dist/kernel-types/src/components/renderer/DefaultBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/LayoutRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/LayoutRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/MarkdownContentRenderer.d.ts +9 -0
- package/dist/kernel-types/src/components/renderer/MarkdownContentRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/MissingDataRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/MissingDataRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/PanelRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/PanelRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/PropertySchemaBlockRenderer.d.ts +12 -0
- package/dist/kernel-types/src/components/renderer/PropertySchemaBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/TopLevelRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/TopLevelRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/renderer/TypesPageBlockRenderer.d.ts +7 -0
- package/dist/kernel-types/src/components/renderer/TypesPageBlockRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/anchored-floating.d.ts +25 -0
- package/dist/kernel-types/src/components/ui/anchored-floating.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/button.d.ts +15 -0
- package/dist/kernel-types/src/components/ui/button.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/card.d.ts +27 -0
- package/dist/kernel-types/src/components/ui/card.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/checkbox.d.ts +8 -0
- package/dist/kernel-types/src/components/ui/checkbox.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/collapsible.d.ts +6 -0
- package/dist/kernel-types/src/components/ui/collapsible.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/command.d.ts +45 -0
- package/dist/kernel-types/src/components/ui/command.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/context-menu.d.ts +52 -0
- package/dist/kernel-types/src/components/ui/context-menu.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/dialog.d.ts +32 -0
- package/dist/kernel-types/src/components/ui/dialog.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/dropdown-menu.d.ts +52 -0
- package/dist/kernel-types/src/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/floating-listbox.d.ts +20 -0
- package/dist/kernel-types/src/components/ui/floating-listbox.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/index.d.ts +6 -0
- package/dist/kernel-types/src/components/ui/index.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/input.d.ts +8 -0
- package/dist/kernel-types/src/components/ui/input.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/kbd.d.ts +4 -0
- package/dist/kernel-types/src/components/ui/kbd.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/label.d.ts +11 -0
- package/dist/kernel-types/src/components/ui/label.d.ts.map +1 -0
- package/dist/kernel-types/src/components/ui/textarea.d.ts +8 -0
- package/dist/kernel-types/src/components/ui/textarea.d.ts.map +1 -0
- package/dist/kernel-types/src/components/util/LazyViewportMount.d.ts +22 -0
- package/dist/kernel-types/src/components/util/LazyViewportMount.d.ts.map +1 -0
- package/dist/kernel-types/src/components/util/error.d.ts +4 -0
- package/dist/kernel-types/src/components/util/error.d.ts.map +1 -0
- package/dist/kernel-types/src/components/util/suspense.d.ts +2 -0
- package/dist/kernel-types/src/components/util/suspense.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/CreateWorkspaceDialog.d.ts +9 -0
- package/dist/kernel-types/src/components/workspace/CreateWorkspaceDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/PendingInvitations.d.ts +2 -0
- package/dist/kernel-types/src/components/workspace/PendingInvitations.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSettingsDialog.d.ts +10 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSettingsDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSwitcher.d.ts +4 -0
- package/dist/kernel-types/src/components/workspace/WorkspaceSwitcher.d.ts.map +1 -0
- package/dist/kernel-types/src/context/block.d.ts +13 -0
- package/dist/kernel-types/src/context/block.d.ts.map +1 -0
- package/dist/kernel-types/src/context/repo.d.ts +7 -0
- package/dist/kernel-types/src/context/repo.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/blockData.d.ts +73 -0
- package/dist/kernel-types/src/data/api/blockData.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/blockType.d.ts +19 -0
- package/dist/kernel-types/src/data/api/blockType.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/changeScope.d.ts +62 -0
- package/dist/kernel-types/src/data/api/changeScope.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/codecs.d.ts +72 -0
- package/dist/kernel-types/src/data/api/codecs.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/errors.d.ts +108 -0
- package/dist/kernel-types/src/data/api/errors.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/events.d.ts +19 -0
- package/dist/kernel-types/src/data/api/events.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/handle.d.ts +17 -0
- package/dist/kernel-types/src/data/api/handle.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/index.d.ts +20 -0
- package/dist/kernel-types/src/data/api/index.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/mutator.d.ts +42 -0
- package/dist/kernel-types/src/data/api/mutator.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/processor.d.ts +115 -0
- package/dist/kernel-types/src/data/api/processor.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/propertySchema.d.ts +90 -0
- package/dist/kernel-types/src/data/api/propertySchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/query.d.ts +81 -0
- package/dist/kernel-types/src/data/api/query.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/sameTxProcessor.d.ts +112 -0
- package/dist/kernel-types/src/data/api/sameTxProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/schema.d.ts +8 -0
- package/dist/kernel-types/src/data/api/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/tx.d.ts +142 -0
- package/dist/kernel-types/src/data/api/tx.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/typedBlockQuery.d.ts +115 -0
- package/dist/kernel-types/src/data/api/typedBlockQuery.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/user.d.ts +9 -0
- package/dist/kernel-types/src/data/api/user.d.ts.map +1 -0
- package/dist/kernel-types/src/data/api/valuePresets.d.ts +56 -0
- package/dist/kernel-types/src/data/api/valuePresets.d.ts.map +1 -0
- package/dist/kernel-types/src/data/block.d.ts +140 -0
- package/dist/kernel-types/src/data/block.d.ts.map +1 -0
- package/dist/kernel-types/src/data/blockCache.d.ts +114 -0
- package/dist/kernel-types/src/data/blockCache.d.ts.map +1 -0
- package/dist/kernel-types/src/data/blockSchema.d.ts +102 -0
- package/dist/kernel-types/src/data/blockSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/blockTypes.d.ts +21 -0
- package/dist/kernel-types/src/data/blockTypes.d.ts.map +1 -0
- package/dist/kernel-types/src/data/facets.d.ts +67 -0
- package/dist/kernel-types/src/data/facets.d.ts.map +1 -0
- package/dist/kernel-types/src/data/globalState.d.ts +72 -0
- package/dist/kernel-types/src/data/globalState.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/clientSchema.d.ts +273 -0
- package/dist/kernel-types/src/data/internals/clientSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/commitPipeline.d.ts +127 -0
- package/dist/kernel-types/src/data/internals/commitPipeline.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/coreProperties.d.ts +16 -0
- package/dist/kernel-types/src/data/internals/coreProperties.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/handleStore.d.ts +366 -0
- package/dist/kernel-types/src/data/internals/handleStore.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelInvalidation.d.ts +77 -0
- package/dist/kernel-types/src/data/internals/kernelInvalidation.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelMutators.d.ts +174 -0
- package/dist/kernel-types/src/data/internals/kernelMutators.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelProcessors.d.ts +3 -0
- package/dist/kernel-types/src/data/internals/kernelProcessors.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/kernelQueries.d.ts +225 -0
- package/dist/kernel-types/src/data/internals/kernelQueries.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/mergeProperties.d.ts +21 -0
- package/dist/kernel-types/src/data/internals/mergeProperties.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/normalizeReferencesProcessor.d.ts +28 -0
- package/dist/kernel-types/src/data/internals/normalizeReferencesProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/processorRunner.d.ts +95 -0
- package/dist/kernel-types/src/data/internals/processorRunner.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/rowEventsTail.d.ts +70 -0
- package/dist/kernel-types/src/data/internals/rowEventsTail.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/timingMetrics.d.ts +115 -0
- package/dist/kernel-types/src/data/internals/timingMetrics.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/treeQueries.d.ts +87 -0
- package/dist/kernel-types/src/data/internals/treeQueries.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/txEngine.d.ts +155 -0
- package/dist/kernel-types/src/data/internals/txEngine.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/txSnapshots.d.ts +32 -0
- package/dist/kernel-types/src/data/internals/txSnapshots.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/typedBlockQuery.d.ts +37 -0
- package/dist/kernel-types/src/data/internals/typedBlockQuery.d.ts.map +1 -0
- package/dist/kernel-types/src/data/internals/undoManager.d.ts +88 -0
- package/dist/kernel-types/src/data/internals/undoManager.d.ts.map +1 -0
- package/dist/kernel-types/src/data/invalidation.d.ts +47 -0
- package/dist/kernel-types/src/data/invalidation.d.ts.map +1 -0
- package/dist/kernel-types/src/data/kernelDataExtension.d.ts +32 -0
- package/dist/kernel-types/src/data/kernelDataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/data/kernelPage.d.ts +36 -0
- package/dist/kernel-types/src/data/kernelPage.d.ts.map +1 -0
- package/dist/kernel-types/src/data/localSchema.d.ts +5 -0
- package/dist/kernel-types/src/data/localSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/metricsConsoleHook.d.ts +22 -0
- package/dist/kernel-types/src/data/metricsConsoleHook.d.ts.map +1 -0
- package/dist/kernel-types/src/data/orderKey.d.ts +38 -0
- package/dist/kernel-types/src/data/orderKey.d.ts.map +1 -0
- package/dist/kernel-types/src/data/pluginStateExtensions.d.ts +27 -0
- package/dist/kernel-types/src/data/pluginStateExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/data/properties.d.ts +137 -0
- package/dist/kernel-types/src/data/properties.d.ts.map +1 -0
- package/dist/kernel-types/src/data/propertiesPage.d.ts +8 -0
- package/dist/kernel-types/src/data/propertiesPage.d.ts.map +1 -0
- package/dist/kernel-types/src/data/repo.d.ts +745 -0
- package/dist/kernel-types/src/data/repo.d.ts.map +1 -0
- package/dist/kernel-types/src/data/repoProvider.d.ts +35 -0
- package/dist/kernel-types/src/data/repoProvider.d.ts.map +1 -0
- package/dist/kernel-types/src/data/stateBlocks.d.ts +57 -0
- package/dist/kernel-types/src/data/stateBlocks.d.ts.map +1 -0
- package/dist/kernel-types/src/data/targets.d.ts +130 -0
- package/dist/kernel-types/src/data/targets.d.ts.map +1 -0
- package/dist/kernel-types/src/data/typeExtraction.d.ts +136 -0
- package/dist/kernel-types/src/data/typeExtraction.d.ts.map +1 -0
- package/dist/kernel-types/src/data/typesPage.d.ts +8 -0
- package/dist/kernel-types/src/data/typesPage.d.ts.map +1 -0
- package/dist/kernel-types/src/data/userPrefs.d.ts +7 -0
- package/dist/kernel-types/src/data/userPrefs.d.ts.map +1 -0
- package/dist/kernel-types/src/data/userSchemasService.d.ts +73 -0
- package/dist/kernel-types/src/data/userSchemasService.d.ts.map +1 -0
- package/dist/kernel-types/src/data/userTypesService.d.ts +70 -0
- package/dist/kernel-types/src/data/userTypesService.d.ts.map +1 -0
- package/dist/kernel-types/src/data/workspaceSchema.d.ts +49 -0
- package/dist/kernel-types/src/data/workspaceSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/data/workspaces.d.ts +39 -0
- package/dist/kernel-types/src/data/workspaces.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/AppRuntimeProvider.d.ts +6 -0
- package/dist/kernel-types/src/extensions/AppRuntimeProvider.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/BlockFocusShellDecorator.d.ts +4 -0
- package/dist/kernel-types/src/extensions/BlockFocusShellDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/ExtensionRenderBoundary.d.ts +6 -0
- package/dist/kernel-types/src/extensions/ExtensionRenderBoundary.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/api.d.ts +25 -0
- package/dist/kernel-types/src/extensions/api.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/blockInteraction.d.ts +147 -0
- package/dist/kernel-types/src/extensions/blockInteraction.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/compileExtensionModule.d.ts +39 -0
- package/dist/kernel-types/src/extensions/compileExtensionModule.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/core.d.ts +99 -0
- package/dist/kernel-types/src/extensions/core.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/defaultEditorInteractions.d.ts +5 -0
- package/dist/kernel-types/src/extensions/defaultEditorInteractions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/defaultRenderers.d.ts +5 -0
- package/dist/kernel-types/src/extensions/defaultRenderers.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/dialogAppMount.d.ts +4 -0
- package/dist/kernel-types/src/extensions/dialogAppMount.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/discoverToggleTree.d.ts +34 -0
- package/dist/kernel-types/src/extensions/discoverToggleTree.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/dynamicExtensions.d.ts +59 -0
- package/dist/kernel-types/src/extensions/dynamicExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/editor.d.ts +11 -0
- package/dist/kernel-types/src/extensions/editor.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/editorAutocomplete.d.ts +11 -0
- package/dist/kernel-types/src/extensions/editorAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/exampleExtensions.d.ts +19 -0
- package/dist/kernel-types/src/extensions/exampleExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/extensionLoadErrors.d.ts +28 -0
- package/dist/kernel-types/src/extensions/extensionLoadErrors.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/extensionLookup.d.ts +25 -0
- package/dist/kernel-types/src/extensions/extensionLookup.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/facet.d.ts +84 -0
- package/dist/kernel-types/src/extensions/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/overridesCache.d.ts +36 -0
- package/dist/kernel-types/src/extensions/overridesCache.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/pluginIds.d.ts +20 -0
- package/dist/kernel-types/src/extensions/pluginIds.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/resolveAppRuntime.d.ts +50 -0
- package/dist/kernel-types/src/extensions/resolveAppRuntime.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/runtimeActions.d.ts +4 -0
- package/dist/kernel-types/src/extensions/runtimeActions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/runtimeContext.d.ts +4 -0
- package/dist/kernel-types/src/extensions/runtimeContext.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/runtimeEvents.d.ts +3 -0
- package/dist/kernel-types/src/extensions/runtimeEvents.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/staticAppExtensions.d.ts +6 -0
- package/dist/kernel-types/src/extensions/staticAppExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/staticDataExtensions.d.ts +6 -0
- package/dist/kernel-types/src/extensions/staticDataExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/toastAppMount.d.ts +4 -0
- package/dist/kernel-types/src/extensions/toastAppMount.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/togglable.d.ts +79 -0
- package/dist/kernel-types/src/extensions/togglable.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/useOverrides.d.ts +36 -0
- package/dist/kernel-types/src/extensions/useOverrides.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/useShortcutSurfaceActivations.d.ts +22 -0
- package/dist/kernel-types/src/extensions/useShortcutSurfaceActivations.d.ts.map +1 -0
- package/dist/kernel-types/src/extensions/variantFacet.d.ts +70 -0
- package/dist/kernel-types/src/extensions/variantFacet.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/block.d.ts +153 -0
- package/dist/kernel-types/src/hooks/block.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/propertySchemas.d.ts +6 -0
- package/dist/kernel-types/src/hooks/propertySchemas.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/useIsFocalRender.d.ts +24 -0
- package/dist/kernel-types/src/hooks/useIsFocalRender.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/usePendingInvitations.d.ts +8 -0
- package/dist/kernel-types/src/hooks/usePendingInvitations.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/useRendererRegistry.d.ts +5 -0
- package/dist/kernel-types/src/hooks/useRendererRegistry.d.ts.map +1 -0
- package/dist/kernel-types/src/hooks/useWorkspaces.d.ts +19 -0
- package/dist/kernel-types/src/hooks/useWorkspaces.d.ts.map +1 -0
- package/dist/kernel-types/src/initData.d.ts +26 -0
- package/dist/kernel-types/src/initData.d.ts.map +1 -0
- package/dist/kernel-types/src/lib/utils.d.ts +3 -0
- package/dist/kernel-types/src/lib/utils.d.ts.map +1 -0
- package/dist/kernel-types/src/main.d.ts +2 -0
- package/dist/kernel-types/src/main.d.ts.map +1 -0
- package/dist/kernel-types/src/markdown/MarkdownImage.d.ts +6 -0
- package/dist/kernel-types/src/markdown/MarkdownImage.d.ts.map +1 -0
- package/dist/kernel-types/src/markdown/defaultMarkdownExtension.d.ts +4 -0
- package/dist/kernel-types/src/markdown/defaultMarkdownExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/markdown/extensions.d.ts +18 -0
- package/dist/kernel-types/src/markdown/extensions.d.ts.map +1 -0
- package/dist/kernel-types/src/minimal-editor.d.ts +2 -0
- package/dist/kernel-types/src/minimal-editor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/account-header/AccountHeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/account-header/AccountHeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/account-header/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/account-header/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/AgentTokensDialog.d.ts +11 -0
- package/dist/kernel-types/src/plugins/agent-runtime/AgentTokensDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/authoringCatalog.d.ts +78 -0
- package/dist/kernel-types/src/plugins/agent-runtime/authoringCatalog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/bridge.d.ts +5 -0
- package/dist/kernel-types/src/plugins/agent-runtime/bridge.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/commands.d.ts +5 -0
- package/dist/kernel-types/src/plugins/agent-runtime/commands.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/describeRuntime.d.ts +156 -0
- package/dist/kernel-types/src/plugins/agent-runtime/describeRuntime.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/extensionLint.d.ts +37 -0
- package/dist/kernel-types/src/plugins/agent-runtime/extensionLint.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/index.d.ts +11 -0
- package/dist/kernel-types/src/plugins/agent-runtime/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/protocol.d.ts +144 -0
- package/dist/kernel-types/src/plugins/agent-runtime/protocol.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/serialization.d.ts +11 -0
- package/dist/kernel-types/src/plugins/agent-runtime/serialization.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/agent-runtime/tokens.d.ts +39 -0
- package/dist/kernel-types/src/plugins/agent-runtime/tokens.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/alias/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/alias/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/alias/index.d.ts +16 -0
- package/dist/kernel-types/src/plugins/alias/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/alias/syncProcessor.d.ts +54 -0
- package/dist/kernel-types/src/plugins/alias/syncProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/app-intents/appIntents.d.ts +44 -0
- package/dist/kernel-types/src/plugins/app-intents/appIntents.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/app-intents/index.d.ts +24 -0
- package/dist/kernel-types/src/plugins/app-intents/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkEntry.d.ts +6 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkEntry.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkFilters.d.ts +14 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinkFilters.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinksFilterPropertyEditor.d.ts +4 -0
- package/dist/kernel-types/src/plugins/backlinks/BacklinksFilterPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/LinkedReferences.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks/LinkedReferences.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/backlinkBreadcrumbShortcuts.d.ts +19 -0
- package/dist/kernel-types/src/plugins/backlinks/backlinkBreadcrumbShortcuts.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/dailyNoteDefaults.d.ts +13 -0
- package/dist/kernel-types/src/plugins/backlinks/dailyNoteDefaults.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/filterProperty.d.ts +13 -0
- package/dist/kernel-types/src/plugins/backlinks/filterProperty.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyEditorOverride.d.ts +2 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyFilter.d.ts +35 -0
- package/dist/kernel-types/src/plugins/backlinks/propertyFilter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/query.d.ts +38 -0
- package/dist/kernel-types/src/plugins/backlinks/query.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/useBacklinks.d.ts +5 -0
- package/dist/kernel-types/src/plugins/backlinks/useBacklinks.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks/useStoredBacklinkFilter.d.ts +11 -0
- package/dist/kernel-types/src/plugins/backlinks/useStoredBacklinkFilter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksEmptyState.d.ts +5 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksEmptyState.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksViewSection.d.ts +30 -0
- package/dist/kernel-types/src/plugins/backlinks-view/BacklinksViewSection.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/facet.d.ts +23 -0
- package/dist/kernel-types/src/plugins/backlinks-view/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/backlinks-view/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/backlinks-view/prop.d.ts +20 -0
- package/dist/kernel-types/src/plugins/backlinks-view/prop.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/AddTagDialog.d.ts +6 -0
- package/dist/kernel-types/src/plugins/block-tagging/AddTagDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/BlockTagsConfigEditor.d.ts +3 -0
- package/dist/kernel-types/src/plugins/block-tagging/BlockTagsConfigEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/addTagAction.d.ts +7 -0
- package/dist/kernel-types/src/plugins/block-tagging/addTagAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/appendTag.d.ts +22 -0
- package/dist/kernel-types/src/plugins/block-tagging/appendTag.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/config.d.ts +21 -0
- package/dist/kernel-types/src/plugins/block-tagging/config.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/block-tagging/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/block-tagging/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/block-tagging/propertyEditorOverride.d.ts +2 -0
- package/dist/kernel-types/src/plugins/block-tagging/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbList.d.ts +16 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbList.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbRenderer.d.ts +7 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/BreadcrumbRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/Breadcrumbs.d.ts +5 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/breadcrumbPreview.d.ts +2 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/breadcrumbPreview.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/index.d.ts +9 -0
- package/dist/kernel-types/src/plugins/breadcrumbs/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/CommandPalette.d.ts +2 -0
- package/dist/kernel-types/src/plugins/command-palette/CommandPalette.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/command-palette/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/context.d.ts +7 -0
- package/dist/kernel-types/src/plugins/command-palette/context.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/events.d.ts +2 -0
- package/dist/kernel-types/src/plugins/command-palette/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/index.d.ts +24 -0
- package/dist/kernel-types/src/plugins/command-palette/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/command-palette/useCommandPaletteActions.d.ts +8 -0
- package/dist/kernel-types/src/plugins/command-palette/useCommandPaletteActions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/CalendarGrid.d.ts +39 -0
- package/dist/kernel-types/src/plugins/daily-notes/CalendarGrid.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/DailyNotePicker.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/DailyNotePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateKeyboardScrubController.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateKeyboardScrubController.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateScrubOverlay.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/DateScrubOverlay.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/ReschedulePicker.d.ts +2 -0
- package/dist/kernel-types/src/plugins/daily-notes/ReschedulePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/SpreadDatesDialog.d.ts +9 -0
- package/dist/kernel-types/src/plugins/daily-notes/SpreadDatesDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/actions.d.ts +59 -0
- package/dist/kernel-types/src/plugins/daily-notes/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/blockDateAdapter.d.ts +45 -0
- package/dist/kernel-types/src/plugins/daily-notes/blockDateAdapter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/calendar.d.ts +26 -0
- package/dist/kernel-types/src/plugins/daily-notes/calendar.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/dailyNotes.d.ts +67 -0
- package/dist/kernel-types/src/plugins/daily-notes/dailyNotes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/daily-notes/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/dateScrubGesture.d.ts +32 -0
- package/dist/kernel-types/src/plugins/daily-notes/dateScrubGesture.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/events.d.ts +15 -0
- package/dist/kernel-types/src/plugins/daily-notes/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/index.d.ts +71 -0
- package/dist/kernel-types/src/plugins/daily-notes/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/landing.d.ts +21 -0
- package/dist/kernel-types/src/plugins/daily-notes/landing.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/localSchema.d.ts +4 -0
- package/dist/kernel-types/src/plugins/daily-notes/localSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/referenceDateAdapter.d.ts +20 -0
- package/dist/kernel-types/src/plugins/daily-notes/referenceDateAdapter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleAction.d.ts +6 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleEvents.d.ts +25 -0
- package/dist/kernel-types/src/plugins/daily-notes/rescheduleEvents.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/schema.d.ts +11 -0
- package/dist/kernel-types/src/plugins/daily-notes/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadBlockDates.d.ts +37 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadBlockDates.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadDatesAction.d.ts +7 -0
- package/dist/kernel-types/src/plugins/daily-notes/spreadDatesAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/daily-notes/wikilinkDateDecorator.d.ts +3 -0
- package/dist/kernel-types/src/plugins/daily-notes/wikilinkDateDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsOverridesEditor.d.ts +19 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsOverridesEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsSettings.d.ts +28 -0
- package/dist/kernel-types/src/plugins/extensions-settings/ExtensionsSettings.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/actions.d.ts +16 -0
- package/dist/kernel-types/src/plugins/extensions-settings/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/config.d.ts +19 -0
- package/dist/kernel-types/src/plugins/extensions-settings/config.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/extensions-settings/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/effect.d.ts +36 -0
- package/dist/kernel-types/src/plugins/extensions-settings/effect.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/index.d.ts +13 -0
- package/dist/kernel-types/src/plugins/extensions-settings/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/propertyEditorOverride.d.ts +3 -0
- package/dist/kernel-types/src/plugins/extensions-settings/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extensions-settings/useToggleTree.d.ts +21 -0
- package/dist/kernel-types/src/plugins/extensions-settings/useToggleTree.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/ExtractTypeDialog.d.ts +17 -0
- package/dist/kernel-types/src/plugins/extract-type/ExtractTypeDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/FindTypeInstancesDialog.d.ts +18 -0
- package/dist/kernel-types/src/plugins/extract-type/FindTypeInstancesDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/PropertyShapePicker.d.ts +78 -0
- package/dist/kernel-types/src/plugins/extract-type/PropertyShapePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/action.d.ts +19 -0
- package/dist/kernel-types/src/plugins/extract-type/action.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/events.d.ts +16 -0
- package/dist/kernel-types/src/plugins/extract-type/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/extract-type/index.d.ts +22 -0
- package/dist/kernel-types/src/plugins/extract-type/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/FindReplaceDialog.d.ts +2 -0
- package/dist/kernel-types/src/plugins/find-replace/FindReplaceDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/find-replace/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/dataExtension.d.ts +25 -0
- package/dist/kernel-types/src/plugins/find-replace/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/events.d.ts +2 -0
- package/dist/kernel-types/src/plugins/find-replace/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/index.d.ts +13 -0
- package/dist/kernel-types/src/plugins/find-replace/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/search.d.ts +15 -0
- package/dist/kernel-types/src/plugins/find-replace/search.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/find-replace/types.d.ts +33 -0
- package/dist/kernel-types/src/plugins/find-replace/types.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/LocationPropertyEditor.d.ts +14 -0
- package/dist/kernel-types/src/plugins/geo/LocationPropertyEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/MapView.d.ts +29 -0
- package/dist/kernel-types/src/plugins/geo/MapView.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/blockTypes.d.ts +15 -0
- package/dist/kernel-types/src/plugins/geo/blockTypes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/codeMirrorExtensions.d.ts +17 -0
- package/dist/kernel-types/src/plugins/geo/codeMirrorExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/codecs.d.ts +16 -0
- package/dist/kernel-types/src/plugins/geo/codecs.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/createOrFindPlace.d.ts +36 -0
- package/dist/kernel-types/src/plugins/geo/createOrFindPlace.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/currentLocation.d.ts +34 -0
- package/dist/kernel-types/src/plugins/geo/currentLocation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/dataExtension.d.ts +7 -0
- package/dist/kernel-types/src/plugins/geo/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/geoContentDecorator.d.ts +18 -0
- package/dist/kernel-types/src/plugins/geo/geoContentDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/googlePlacesClient.d.ts +102 -0
- package/dist/kernel-types/src/plugins/geo/googlePlacesClient.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/index.d.ts +11 -0
- package/dist/kernel-types/src/plugins/geo/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/locationsPage.d.ts +11 -0
- package/dist/kernel-types/src/plugins/geo/locationsPage.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/pickCurrentLocation.d.ts +23 -0
- package/dist/kernel-types/src/plugins/geo/pickCurrentLocation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/placeAutocomplete.d.ts +103 -0
- package/dist/kernel-types/src/plugins/geo/placeAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/properties.d.ts +33 -0
- package/dist/kernel-types/src/plugins/geo/properties.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/propertyEditorOverrides.d.ts +6 -0
- package/dist/kernel-types/src/plugins/geo/propertyEditorOverrides.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/query.d.ts +48 -0
- package/dist/kernel-types/src/plugins/geo/query.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/geo/usePlaceSearch.d.ts +43 -0
- package/dist/kernel-types/src/plugins/geo/usePlaceSearch.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupHeaderActionButton.d.ts +27 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupHeaderActionButton.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedBacklinksConfigEditor.d.ts +4 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedBacklinksConfigEditor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedLinkedReferences.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/GroupedLinkedReferences.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/config.d.ts +24 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/config.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/facet.d.ts +31 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/grouping.d.ts +23 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/grouping.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/propertyEditorOverride.d.ts +3 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/propertyEditorOverride.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/query.d.ts +34 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/query.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinks.d.ts +6 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinks.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinksConfig.d.ts +4 -0
- package/dist/kernel-types/src/plugins/grouped-backlinks/useGroupedBacklinksConfig.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/left-sidebar/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/LeftSidebar.d.ts +5 -0
- package/dist/kernel-types/src/plugins/left-sidebar/LeftSidebar.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/actions.d.ts +5 -0
- package/dist/kernel-types/src/plugins/left-sidebar/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/events.d.ts +7 -0
- package/dist/kernel-types/src/plugins/left-sidebar/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/facet.d.ts +11 -0
- package/dist/kernel-types/src/plugins/left-sidebar/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/index.d.ts +14 -0
- package/dist/kernel-types/src/plugins/left-sidebar/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/left-sidebar/shortcuts.d.ts +5 -0
- package/dist/kernel-types/src/plugins/left-sidebar/shortcuts.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/MergePicker.d.ts +2 -0
- package/dist/kernel-types/src/plugins/merge-blocks/MergePicker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/events.d.ts +17 -0
- package/dist/kernel-types/src/plugins/merge-blocks/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/index.d.ts +5 -0
- package/dist/kernel-types/src/plugins/merge-blocks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/mergeAction.d.ts +4 -0
- package/dist/kernel-types/src/plugins/merge-blocks/mergeAction.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/merge-blocks/strategy.d.ts +13 -0
- package/dist/kernel-types/src/plugins/merge-blocks/strategy.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/Button.d.ts +9 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/Button.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/MobileBottomNav.d.ts +2 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/MobileBottomNav.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/defaultItems.d.ts +9 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/defaultItems.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/facet.d.ts +12 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/facet.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/index.d.ts +9 -0
- package/dist/kernel-types/src/plugins/mobile-bottom-nav/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/MobileKeyboardToolbar.d.ts +7 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/MobileKeyboardToolbar.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/actions.d.ts +5 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/mobile-keyboard-toolbar/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/plain-outliner/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/plain-outliner/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/plain-outliner/interactions.d.ts +4 -0
- package/dist/kernel-types/src/plugins/plain-outliner/interactions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/HeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/quick-find/HeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/QuickFind.d.ts +2 -0
- package/dist/kernel-types/src/plugins/quick-find/QuickFind.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/events.d.ts +2 -0
- package/dist/kernel-types/src/plugins/quick-find/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/index.d.ts +13 -0
- package/dist/kernel-types/src/plugins/quick-find/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/recents.d.ts +13 -0
- package/dist/kernel-types/src/plugins/quick-find/recents.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/quick-find/selection.d.ts +40 -0
- package/dist/kernel-types/src/plugins/quick-find/selection.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/codeMirrorExtensions.d.ts +9 -0
- package/dist/kernel-types/src/plugins/references/codeMirrorExtensions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/invalidation.d.ts +4 -0
- package/dist/kernel-types/src/plugins/references/invalidation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/localSchema.d.ts +21 -0
- package/dist/kernel-types/src/plugins/references/localSchema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/remark-blockrefs.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/markdown/blockrefs/remark-blockrefs.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/Wikilink.d.ts +14 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/Wikilink.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/remark-wikilinks.d.ts +6 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/remark-wikilinks.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/wikilinkDecorator.d.ts +49 -0
- package/dist/kernel-types/src/plugins/references/markdown/wikilinks/wikilinkDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/referenceParser.d.ts +84 -0
- package/dist/kernel-types/src/plugins/references/referenceParser.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/referenceProjection.d.ts +3 -0
- package/dist/kernel-types/src/plugins/references/referenceProjection.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/referencesProcessor.d.ts +59 -0
- package/dist/kernel-types/src/plugins/references/referencesProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/references/renameProcessor.d.ts +56 -0
- package/dist/kernel-types/src/plugins/references/renameProcessor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/action.d.ts +6 -0
- package/dist/kernel-types/src/plugins/roam-import/action.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/content.d.ts +9 -0
- package/dist/kernel-types/src/plugins/roam-import/content.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/effect.d.ts +7 -0
- package/dist/kernel-types/src/plugins/roam-import/effect.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/ids.d.ts +9 -0
- package/dist/kernel-types/src/plugins/roam-import/ids.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/import.d.ts +37 -0
- package/dist/kernel-types/src/plugins/roam-import/import.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/index.d.ts +8 -0
- package/dist/kernel-types/src/plugins/roam-import/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/plan.d.ts +82 -0
- package/dist/kernel-types/src/plugins/roam-import/plan.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/plugin.d.ts +23 -0
- package/dist/kernel-types/src/plugins/roam-import/plugin.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/promotion.d.ts +39 -0
- package/dist/kernel-types/src/plugins/roam-import/promotion.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/properties.d.ts +62 -0
- package/dist/kernel-types/src/plugins/roam-import/properties.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/references.d.ts +2 -0
- package/dist/kernel-types/src/plugins/roam-import/references.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/report.d.ts +25 -0
- package/dist/kernel-types/src/plugins/roam-import/report.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/roamMemo.d.ts +35 -0
- package/dist/kernel-types/src/plugins/roam-import/roamMemo.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/runtime.d.ts +24 -0
- package/dist/kernel-types/src/plugins/roam-import/runtime.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/schemaReconciliation.d.ts +75 -0
- package/dist/kernel-types/src/plugins/roam-import/schemaReconciliation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/srsMarkers.d.ts +22 -0
- package/dist/kernel-types/src/plugins/roam-import/srsMarkers.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/todo.d.ts +7 -0
- package/dist/kernel-types/src/plugins/roam-import/todo.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/typeCandidates.d.ts +26 -0
- package/dist/kernel-types/src/plugins/roam-import/typeCandidates.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/roam-import/types.d.ts +32 -0
- package/dist/kernel-types/src/plugins/roam-import/types.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/PanelFocusRecovery.d.ts +38 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/PanelFocusRecovery.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/ShellDecorator.d.ts +35 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/ShellDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/actions.d.ts +7 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/index.d.ts +5 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/shell.d.ts +3 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/shell.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/surface.d.ts +4 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/surface.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/walker.d.ts +131 -0
- package/dist/kernel-types/src/plugins/spatial-navigation/walker.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/RescheduleToast.d.ts +14 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/RescheduleToast.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/index.d.ts +19 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/indicator.d.ts +9 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/indicator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/moveSrsState.d.ts +8 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/moveSrsState.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/rescheduleDecorator.d.ts +3 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/rescheduleDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/scheduler.d.ts +24 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/scheduler.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/schema.d.ts +17 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsBlockDateAdapter.d.ts +3 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsBlockDateAdapter.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsClipboard.d.ts +9 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/srsClipboard.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/swipeRightDecorator.d.ts +6 -0
- package/dist/kernel-types/src/plugins/srs-rescheduling/swipeRightDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/SwipeActionMenu.d.ts +15 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/SwipeActionMenu.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/actions.d.ts +46 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/anchor.d.ts +9 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/anchor.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/events.d.ts +31 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/swipeGesture.d.ts +13 -0
- package/dist/kernel-types/src/plugins/swipe-quick-actions/swipeGesture.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/RejectionDialog.d.ts +7 -0
- package/dist/kernel-types/src/plugins/sync-status/RejectionDialog.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/SyncStatusHeaderItem.d.ts +2 -0
- package/dist/kernel-types/src/plugins/sync-status/SyncStatusHeaderItem.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/index.d.ts +5 -0
- package/dist/kernel-types/src/plugins/sync-status/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/model.d.ts +27 -0
- package/dist/kernel-types/src/plugins/sync-status/model.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/sync-status/rejectedHelpers.d.ts +25 -0
- package/dist/kernel-types/src/plugins/sync-status/rejectedHelpers.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/theme-toggle/ThemeToggle.d.ts +2 -0
- package/dist/kernel-types/src/plugins/theme-toggle/ThemeToggle.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/theme-toggle/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/theme-toggle/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/theme-toggle/theme.d.ts +6 -0
- package/dist/kernel-types/src/plugins/theme-toggle/theme.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/actions.d.ts +9 -0
- package/dist/kernel-types/src/plugins/todo/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/dataExtension.d.ts +3 -0
- package/dist/kernel-types/src/plugins/todo/dataExtension.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/index.d.ts +6 -0
- package/dist/kernel-types/src/plugins/todo/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/todo/schema.d.ts +7 -0
- package/dist/kernel-types/src/plugins/todo/schema.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/update-indicator/UpdateIndicator.d.ts +5 -0
- package/dist/kernel-types/src/plugins/update-indicator/UpdateIndicator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/update-indicator/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/update-indicator/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/update-indicator/loadTimes.d.ts +17 -0
- package/dist/kernel-types/src/plugins/update-indicator/loadTimes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/VideoPlayerRenderer.d.ts +15 -0
- package/dist/kernel-types/src/plugins/video-player/VideoPlayerRenderer.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/VideoTimeStamp.d.ts +7 -0
- package/dist/kernel-types/src/plugins/video-player/VideoTimeStamp.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/actions.d.ts +17 -0
- package/dist/kernel-types/src/plugins/video-player/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/events.d.ts +13 -0
- package/dist/kernel-types/src/plugins/video-player/events.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/index.d.ts +3 -0
- package/dist/kernel-types/src/plugins/video-player/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/markdown.d.ts +3 -0
- package/dist/kernel-types/src/plugins/video-player/markdown.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/notes.d.ts +4 -0
- package/dist/kernel-types/src/plugins/video-player/notes.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/remark-timestamps.d.ts +4 -0
- package/dist/kernel-types/src/plugins/video-player/remark-timestamps.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/video-player/view.d.ts +5 -0
- package/dist/kernel-types/src/plugins/video-player/view.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/actions.d.ts +10 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/interactions.d.ts +5 -0
- package/dist/kernel-types/src/plugins/vim-normal-mode/interactions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/VisualNavigationShellDecorator.d.ts +3 -0
- package/dist/kernel-types/src/plugins/visual-navigation/VisualNavigationShellDecorator.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/actions.d.ts +7 -0
- package/dist/kernel-types/src/plugins/visual-navigation/actions.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/index.d.ts +7 -0
- package/dist/kernel-types/src/plugins/visual-navigation/index.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/navigation.d.ts +69 -0
- package/dist/kernel-types/src/plugins/visual-navigation/navigation.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/visual-navigation/shell.d.ts +3 -0
- package/dist/kernel-types/src/plugins/visual-navigation/shell.d.ts.map +1 -0
- package/dist/kernel-types/src/plugins/workspace-header/index.d.ts +8 -0
- package/dist/kernel-types/src/plugins/workspace-header/index.d.ts.map +1 -0
- package/dist/kernel-types/src/registerServiceWorker.d.ts +15 -0
- package/dist/kernel-types/src/registerServiceWorker.d.ts.map +1 -0
- package/dist/kernel-types/src/services/powersync.d.ts +49 -0
- package/dist/kernel-types/src/services/powersync.d.ts.map +1 -0
- package/dist/kernel-types/src/services/supabase.d.ts +6 -0
- package/dist/kernel-types/src/services/supabase.d.ts.map +1 -0
- package/dist/kernel-types/src/services/uploadErrorClassifier.d.ts +16 -0
- package/dist/kernel-types/src/services/uploadErrorClassifier.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/ActiveContexts.d.ts +26 -0
- package/dist/kernel-types/src/shortcuts/ActiveContexts.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/HotkeyReconciler.d.ts +24 -0
- package/dist/kernel-types/src/shortcuts/HotkeyReconciler.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/blockActions.d.ts +39 -0
- package/dist/kernel-types/src/shortcuts/blockActions.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/defaultContexts.d.ts +3 -0
- package/dist/kernel-types/src/shortcuts/defaultContexts.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/defaultShortcuts.d.ts +22 -0
- package/dist/kernel-types/src/shortcuts/defaultShortcuts.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/effectiveActions.d.ts +7 -0
- package/dist/kernel-types/src/shortcuts/effectiveActions.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/runAction.d.ts +20 -0
- package/dist/kernel-types/src/shortcuts/runAction.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/types.d.ts +118 -0
- package/dist/kernel-types/src/shortcuts/types.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/useActionContext.d.ts +25 -0
- package/dist/kernel-types/src/shortcuts/useActionContext.d.ts.map +1 -0
- package/dist/kernel-types/src/shortcuts/utils.d.ts +90 -0
- package/dist/kernel-types/src/shortcuts/utils.d.ts.map +1 -0
- package/dist/kernel-types/src/tutorial/outline.d.ts +39 -0
- package/dist/kernel-types/src/tutorial/outline.d.ts.map +1 -0
- package/dist/kernel-types/src/types.d.ts +104 -0
- package/dist/kernel-types/src/types.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/AliasCollisionToast.d.ts +13 -0
- package/dist/kernel-types/src/utils/AliasCollisionToast.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/ClientLocalSettings.d.ts +47 -0
- package/dist/kernel-types/src/utils/ClientLocalSettings.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/array.d.ts +9 -0
- package/dist/kernel-types/src/utils/array.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/async.d.ts +7 -0
- package/dist/kernel-types/src/utils/async.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/backlinkAutocomplete.d.ts +33 -0
- package/dist/kernel-types/src/utils/backlinkAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/blockrefAutocomplete.d.ts +18 -0
- package/dist/kernel-types/src/utils/blockrefAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/callbackSet.d.ts +29 -0
- package/dist/kernel-types/src/utils/callbackSet.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/codemirror.d.ts +46 -0
- package/dist/kernel-types/src/utils/codemirror.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/codemirrorCompletion.d.ts +3 -0
- package/dist/kernel-types/src/utils/codemirrorCompletion.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/copy.d.ts +8 -0
- package/dist/kernel-types/src/utils/copy.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/dailyPage.d.ts +7 -0
- package/dist/kernel-types/src/utils/dailyPage.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/dialogs.d.ts +38 -0
- package/dist/kernel-types/src/utils/dialogs.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/dom.d.ts +4 -0
- package/dist/kernel-types/src/utils/dom.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/exportSqliteDb.d.ts +29 -0
- package/dist/kernel-types/src/utils/exportSqliteDb.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/lastWorkspace.d.ts +4 -0
- package/dist/kernel-types/src/utils/lastWorkspace.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/layoutSessionId.d.ts +11 -0
- package/dist/kernel-types/src/utils/layoutSessionId.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/linkTargetAutocomplete.d.ts +61 -0
- package/dist/kernel-types/src/utils/linkTargetAutocomplete.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/markdownParser.d.ts +12 -0
- package/dist/kernel-types/src/utils/markdownParser.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/navigation.d.ts +64 -0
- package/dist/kernel-types/src/utils/navigation.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/object.d.ts +7 -0
- package/dist/kernel-types/src/utils/object.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/panelHistory.d.ts +70 -0
- package/dist/kernel-types/src/utils/panelHistory.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/panelLayoutProjection.d.ts +70 -0
- package/dist/kernel-types/src/utils/panelLayoutProjection.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/paste.d.ts +22 -0
- package/dist/kernel-types/src/utils/paste.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/processorRejectionToast.d.ts +26 -0
- package/dist/kernel-types/src/utils/processorRejectionToast.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/propertyCreation.d.ts +4 -0
- package/dist/kernel-types/src/utils/propertyCreation.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/propertyNavigation.d.ts +20 -0
- package/dist/kernel-types/src/utils/propertyNavigation.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/react.d.ts +2 -0
- package/dist/kernel-types/src/utils/react.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/relativeDate.d.ts +42 -0
- package/dist/kernel-types/src/utils/relativeDate.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/routing.d.ts +23 -0
- package/dist/kernel-types/src/utils/routing.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/safeMode.d.ts +5 -0
- package/dist/kernel-types/src/utils/safeMode.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/scheduleIdle.d.ts +14 -0
- package/dist/kernel-types/src/utils/scheduleIdle.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/selection.d.ts +74 -0
- package/dist/kernel-types/src/utils/selection.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/state.d.ts +17 -0
- package/dist/kernel-types/src/utils/state.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/templateLiterals.d.ts +6 -0
- package/dist/kernel-types/src/utils/templateLiterals.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/time.d.ts +3 -0
- package/dist/kernel-types/src/utils/time.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/toast.d.ts +65 -0
- package/dist/kernel-types/src/utils/toast.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/types.d.ts +6 -0
- package/dist/kernel-types/src/utils/types.d.ts.map +1 -0
- package/dist/kernel-types/src/utils/viewTransition.d.ts +29 -0
- package/dist/kernel-types/src/utils/viewTransition.d.ts.map +1 -0
- package/dist/kernelDts.d.ts +13 -0
- package/dist/kernelDts.d.ts.map +1 -0
- package/dist/kernelDts.js +47 -0
- package/dist/kernelDts.js.map +1 -0
- package/dist/protocol.d.ts +470 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +365 -0
- package/dist/protocol.js.map +1 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +554 -0
- package/dist/server.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kernel queries — raw SQL constants + `defineQuery` facet contributions
|
|
3
|
+
* for outside-tx reads (UI hooks, search, alias lookup, type
|
|
4
|
+
* filters, tree walks).
|
|
5
|
+
*
|
|
6
|
+
* Surface: SQL constants up top (used by tests, kept stable for plugin
|
|
7
|
+
* authors who want the same queries without going through the facet),
|
|
8
|
+
* then `KERNEL_QUERIES` (Phase 4 chunk B) — the bundle that the kernel
|
|
9
|
+
* data extension and the Repo's construction-time registration consume.
|
|
10
|
+
* Each `defineQuery` wraps a SQL constant and re-declares the same
|
|
11
|
+
* dependencies the legacy `repo.X(id)` factories on `Repo` did.
|
|
12
|
+
*
|
|
13
|
+
* Property-shape note: the new `BlockData.properties` is flat
|
|
14
|
+
* `{name: encodedValue}`, NOT the legacy `{name: {name, type, value}}`
|
|
15
|
+
* record. So `json_extract(properties_json, '$.alias')` returns the
|
|
16
|
+
* encoded value directly (string[] for alias, string for type, etc.).
|
|
17
|
+
* The legacy `'$.alias.value'` paths don't exist anymore.
|
|
18
|
+
*/
|
|
19
|
+
import { type AnyQuery, type BlockData, type QueryCtx, type ResolvedTypedBlockQuery } from '@/data/api';
|
|
20
|
+
export declare const SELECT_BLOCK_BY_ID_SQL: string;
|
|
21
|
+
/** Type filter — array membership via the trigger-maintained block_types index. */
|
|
22
|
+
export declare const SELECT_BLOCKS_BY_TYPE_SQL: string;
|
|
23
|
+
/** Content search — case-insensitive substring match. */
|
|
24
|
+
export declare const SELECT_BLOCKS_BY_CONTENT_SQL: string;
|
|
25
|
+
/** Recent non-empty blocks in a workspace, used by empty-query pickers. */
|
|
26
|
+
export declare const SELECT_RECENT_BLOCKS_SQL: string;
|
|
27
|
+
/** Distinct alias values in a workspace, optionally substring-filtered.
|
|
28
|
+
* Reads `block_aliases` (the trigger-maintained side index in
|
|
29
|
+
* clientSchema.ts) instead of scanning `json_each(properties_json,
|
|
30
|
+
* '$.alias')` per query. The case-insensitive filter rides
|
|
31
|
+
* `idx_block_aliases_ws_alias_lower`; the case-preserving GROUP BY
|
|
32
|
+
* collapses duplicate aliases that appear on multiple blocks. The
|
|
33
|
+
* `MIN(b.created_at)` ordering keeps the historical "oldest-first"
|
|
34
|
+
* sort even though the index itself doesn't carry timestamps. */
|
|
35
|
+
export declare const SELECT_ALIASES_IN_WORKSPACE_SQL = "\n SELECT ba.alias AS alias\n FROM block_aliases ba\n JOIN blocks b ON b.id = ba.block_id\n WHERE ba.workspace_id = ?\n AND b.deleted = 0\n AND (? = '' OR ba.alias_lower LIKE '%' || LOWER(?) || '%')\n GROUP BY ba.alias\n ORDER BY\n MIN(CASE\n WHEN ba.alias_lower = LOWER(?) THEN 0\n WHEN ba.alias_lower LIKE LOWER(?) || '%' THEN 1\n ELSE 2\n END),\n MIN(b.created_at),\n ba.alias\n";
|
|
36
|
+
/** Single-block lookup by exact alias (used by createOrRestore wrappers
|
|
37
|
+
* and call-site alias jumps). Returns the oldest match (deterministic
|
|
38
|
+
* tie-break on workspaces with two blocks accidentally claiming the
|
|
39
|
+
* same alias). Lookups go through `idx_block_aliases_ws_alias`; the
|
|
40
|
+
* blocks JOIN reads the row by primary key. */
|
|
41
|
+
export declare const SELECT_BLOCK_BY_ALIAS_IN_WORKSPACE_SQL: string;
|
|
42
|
+
/** Variant of `SELECT_BLOCK_BY_ALIAS_IN_WORKSPACE_SQL` that ignores
|
|
43
|
+
* one specific block. Same plan as above with an extra `blocks.id !=
|
|
44
|
+
* ?` predicate. Used exclusively by the same-tx collision-detection
|
|
45
|
+
* path: when a row writes its own alias inside the user's tx, the
|
|
46
|
+
* trigger-maintained index already contains that row by the time the
|
|
47
|
+
* processor runs, so a plain "oldest claimant of alias X" would
|
|
48
|
+
* return the row itself when it happens to be the oldest claimant —
|
|
49
|
+
* silently missing collisions where the actual conflicting claimant
|
|
50
|
+
* is younger. Excluding the attempting row fixes that. */
|
|
51
|
+
export declare const SELECT_BLOCK_BY_ALIAS_IN_WORKSPACE_EXCLUDING_SQL: string;
|
|
52
|
+
/** Alias substring match used by alias-search surfaces; one row per
|
|
53
|
+
* (alias, block) pair. Same index plan as the distinct-aliases query
|
|
54
|
+
* above: filter on alias_lower, JOIN blocks for content + ordering. */
|
|
55
|
+
export declare const SELECT_ALIAS_MATCHES_IN_WORKSPACE_SQL = "\n SELECT\n ba.alias AS alias,\n b.id AS blockId,\n b.content AS content\n FROM block_aliases ba\n JOIN blocks b ON b.id = ba.block_id\n WHERE ba.workspace_id = ?\n AND b.deleted = 0\n AND (? = '' OR ba.alias_lower LIKE '%' || LOWER(?) || '%')\n ORDER BY\n CASE\n WHEN ba.alias_lower = LOWER(?) THEN 0\n WHEN ba.alias_lower LIKE LOWER(?) || '%' THEN 1\n ELSE 2\n END,\n b.created_at,\n ba.alias\n LIMIT ?\n";
|
|
56
|
+
/** First child of `parentId` whose content matches exactly. Tree-shape:
|
|
57
|
+
* joins on `blocks.parent_id`, ordered by `(order_key, id)` so the
|
|
58
|
+
* "first" tie-breaks deterministically. */
|
|
59
|
+
export declare const SELECT_FIRST_CHILD_BY_CONTENT_SQL: string;
|
|
60
|
+
export interface AliasMatch {
|
|
61
|
+
alias: string;
|
|
62
|
+
blockId: string;
|
|
63
|
+
content: string;
|
|
64
|
+
}
|
|
65
|
+
/** Subtree rooted at `id`, includeRoot=true (spec §11). Identity-stable
|
|
66
|
+
* via the dispatcher's handle-store key. Dep declaration mirrors the
|
|
67
|
+
* legacy `repo.subtree(id)` factory in `repo.ts`. */
|
|
68
|
+
export declare const subtreeQuery: import("@/data/api").Query<{
|
|
69
|
+
id: string;
|
|
70
|
+
}, BlockData[]>;
|
|
71
|
+
/** Ancestor chain (excludes `id` itself). */
|
|
72
|
+
export declare const ancestorsQuery: import("@/data/api").Query<{
|
|
73
|
+
id: string;
|
|
74
|
+
}, BlockData[]>;
|
|
75
|
+
interface ManyAncestorsEntry {
|
|
76
|
+
startId: string;
|
|
77
|
+
ancestors: BlockData[];
|
|
78
|
+
}
|
|
79
|
+
/** Batched ancestor walk. Returns one entry per input id, in input
|
|
80
|
+
* order, with the leaf-to-root chain (depth-ascending) — same
|
|
81
|
+
* ordering as the single-id `core.ancestors` query.
|
|
82
|
+
*
|
|
83
|
+
* Use over N `core.ancestors` calls when a UI needs ancestors for
|
|
84
|
+
* many ids known up front (e.g. a backlinks panel rendering N
|
|
85
|
+
* source blocks each with breadcrumbs). One round-trip vs. N gives
|
|
86
|
+
* a meaningful cold-start win when the SQLite connection is
|
|
87
|
+
* contended. Empty entries are returned for ids whose row doesn't
|
|
88
|
+
* exist or is soft-deleted, so consumers can map 1:1 over the input
|
|
89
|
+
* list without nullable lookups. */
|
|
90
|
+
export declare const manyAncestorsQuery: import("@/data/api").Query<{
|
|
91
|
+
ids: readonly string[];
|
|
92
|
+
}, ManyAncestorsEntry[]>;
|
|
93
|
+
/** Direct children of `id`, ordered `(order_key, id)`. */
|
|
94
|
+
export declare const childrenQuery: import("@/data/api").Query<{
|
|
95
|
+
id: string;
|
|
96
|
+
}, BlockData[]>;
|
|
97
|
+
/** Child-id list of `id` (lean shape). With `hydrate: true`, also runs
|
|
98
|
+
* the full row SELECT and primes the cache — the consumer-facing
|
|
99
|
+
* variant the React hooks use to avoid N+1 row loads on mount. */
|
|
100
|
+
export declare const childIdsQuery: import("@/data/api").Query<{
|
|
101
|
+
id: string;
|
|
102
|
+
hydrate?: boolean;
|
|
103
|
+
}, string[]>;
|
|
104
|
+
/** Live blocks in `workspaceId` whose `type` property equals `type`.
|
|
105
|
+
* Membership reactivity rides the `typedBlocks.type` channel — fired
|
|
106
|
+
* by the kernel invalidation rule when a block's `block_types` row for
|
|
107
|
+
* `(workspaceId, type)` is inserted/removed (creation, restore,
|
|
108
|
+
* type-add/remove, soft-delete). Per-row deps from `hydrateBlocks`
|
|
109
|
+
* cover edits to currently-matched rows. */
|
|
110
|
+
export declare const byTypeQuery: import("@/data/api").Query<{
|
|
111
|
+
workspaceId: string;
|
|
112
|
+
type: string;
|
|
113
|
+
}, BlockData[]>;
|
|
114
|
+
/** Resolve a typed block query against the given context. Used both
|
|
115
|
+
* by `typedBlocksQuery` and by thin wrappers like `backlinksForBlockQuery`
|
|
116
|
+
* that compose typed-query semantics — sharing this resolver keeps
|
|
117
|
+
* the dep declarations and SQL in one place. */
|
|
118
|
+
export declare const resolveTypedBlocks: (query: ResolvedTypedBlockQuery, ctx: QueryCtx) => Promise<BlockData[]>;
|
|
119
|
+
/** Id projection for typed queries. Same typed-query semantics and
|
|
120
|
+
* membership invalidation as `resolveTypedBlocks`, but it intentionally
|
|
121
|
+
* avoids hydrating result rows, so content-only edits to current
|
|
122
|
+
* members do not invalidate collection consumers. */
|
|
123
|
+
export declare const resolveTypedBlockIds: (query: ResolvedTypedBlockQuery, ctx: QueryCtx) => Promise<string[]>;
|
|
124
|
+
/** SQLite-backed typed block query. Repo.queryBlocks / subscribeBlocks
|
|
125
|
+
* default workspaceId before dispatching here; direct query callers
|
|
126
|
+
* should pass workspaceId explicitly.
|
|
127
|
+
*
|
|
128
|
+
* Reactivity (spec §9.2 + §9.4): each filter dimension contributes its
|
|
129
|
+
* own narrow dep so the handle re-resolves only when something that
|
|
130
|
+
* could flip membership actually changes:
|
|
131
|
+
*
|
|
132
|
+
* - per `type` in `types` → `typedBlocks.type` channel
|
|
133
|
+
* - per name in `where` → `typedBlocks.property` channel
|
|
134
|
+
* - `referencedBy.id` (no field) → `typedBlocks.reference` channel
|
|
135
|
+
* - `referencedBy.id + sourceField` → `typedBlocks.referenceField` channel
|
|
136
|
+
* - per name in any `match`/`exclude` predicate's `where` → `typedBlocks.property`
|
|
137
|
+
* - per `referencedBy` in any `match`/`exclude` predicate → reference channels
|
|
138
|
+
* - any ancestor-scope predicate → row deps on every walked ancestor id
|
|
139
|
+
* - no filter at all → `typedBlocks.live` channel
|
|
140
|
+
*
|
|
141
|
+
* Per-row deps from `hydrateBlocks` cover edits to rows already in the
|
|
142
|
+
* result. The old `{kind:'workspace', workspaceId}` dep was too coarse
|
|
143
|
+
* — UiState focus writes (and unrelated content edits) re-fired it
|
|
144
|
+
* needlessly. */
|
|
145
|
+
export declare const typedBlocksQuery: import("@/data/api").Query<import("@/data/api").TypedBlockQuery, BlockData[]>;
|
|
146
|
+
export declare const typedBlockIdsQuery: import("@/data/api").Query<import("@/data/api").TypedBlockQuery, string[]>;
|
|
147
|
+
/** Substring-match content search. Empty `query` returns []. */
|
|
148
|
+
export declare const searchByContentQuery: import("@/data/api").Query<{
|
|
149
|
+
workspaceId: string;
|
|
150
|
+
query: string;
|
|
151
|
+
limit?: number;
|
|
152
|
+
}, BlockData[]>;
|
|
153
|
+
/** Recent non-empty block candidates. Empty workspaceId returns []. */
|
|
154
|
+
export declare const recentBlocksQuery: import("@/data/api").Query<{
|
|
155
|
+
workspaceId: string;
|
|
156
|
+
limit?: number;
|
|
157
|
+
}, BlockData[]>;
|
|
158
|
+
/** First child of `parentId` whose content matches exactly. */
|
|
159
|
+
export declare const firstChildByContentQuery: import("@/data/api").Query<{
|
|
160
|
+
parentId: string;
|
|
161
|
+
content: string;
|
|
162
|
+
}, BlockData | null>;
|
|
163
|
+
/** Distinct alias values in a workspace, optionally substring-filtered. */
|
|
164
|
+
export declare const aliasesInWorkspaceQuery: import("@/data/api").Query<{
|
|
165
|
+
workspaceId: string;
|
|
166
|
+
filter?: string;
|
|
167
|
+
}, string[]>;
|
|
168
|
+
/** Alias autocomplete: one row per `(alias, blockId)` pair. */
|
|
169
|
+
export declare const aliasMatchesQuery: import("@/data/api").Query<{
|
|
170
|
+
workspaceId: string;
|
|
171
|
+
filter: string;
|
|
172
|
+
limit?: number;
|
|
173
|
+
}, AliasMatch[]>;
|
|
174
|
+
/** Single-block lookup by exact alias in a workspace. */
|
|
175
|
+
export declare const aliasLookupQuery: import("@/data/api").Query<{
|
|
176
|
+
workspaceId: string;
|
|
177
|
+
alias: string;
|
|
178
|
+
}, BlockData | null>;
|
|
179
|
+
/** Workspace's `type: 'extension'` blocks (spec §8 Stage 2 — Phase 4
|
|
180
|
+
* switches `dynamicExtensionsExtension` from the legacy `byType` call
|
|
181
|
+
* to this dedicated query). Mechanically `byType('extension')`; lives
|
|
182
|
+
* as its own kernel query so callers can register against a stable
|
|
183
|
+
* name without depending on the convention.
|
|
184
|
+
*
|
|
185
|
+
* No reactive dep: the only consumer (AppRuntimeProvider) calls
|
|
186
|
+
* `.load()` once at FacetRuntime build time and feeds the result into
|
|
187
|
+
* `resolveFacetRuntime`. Nothing observes the handle after that, so a
|
|
188
|
+
* `workspace` dep would just churn the loader on every workspace write
|
|
189
|
+
* without changing any observable behavior — installing or removing
|
|
190
|
+
* an extension is picked up via the `refresh_extensions` command
|
|
191
|
+
* (`Reload extensions` in the palette / `defaultShortcuts.ts`), which
|
|
192
|
+
* re-runs `dynamicExtensionsExtension` and re-calls
|
|
193
|
+
* `repo.setFacetRuntime`. */
|
|
194
|
+
export declare const findExtensionBlocksQuery: import("@/data/api").Query<{
|
|
195
|
+
workspaceId: string;
|
|
196
|
+
}, BlockData[]>;
|
|
197
|
+
/** All kernel queries — registered at construction time when
|
|
198
|
+
* `RepoOptions.registerKernelQueries` is true (default), and
|
|
199
|
+
* contributed to the FacetRuntime via `kernelDataExtension`. */
|
|
200
|
+
export declare const KERNEL_QUERIES: ReadonlyArray<AnyQuery>;
|
|
201
|
+
/** Register every kernel query with `QueryRegistry` so call sites
|
|
202
|
+
* using `repo.query.<name>(args)` and `repo.query['core.<name>'](args)`
|
|
203
|
+
* get precise arg + result types without `as` casts. Plugins extend the
|
|
204
|
+
* same interface from their own module per §12.1. */
|
|
205
|
+
declare module '@/data/api' {
|
|
206
|
+
interface QueryRegistry {
|
|
207
|
+
'core.subtree': typeof subtreeQuery;
|
|
208
|
+
'core.ancestors': typeof ancestorsQuery;
|
|
209
|
+
'core.manyAncestors': typeof manyAncestorsQuery;
|
|
210
|
+
'core.children': typeof childrenQuery;
|
|
211
|
+
'core.childIds': typeof childIdsQuery;
|
|
212
|
+
'core.byType': typeof byTypeQuery;
|
|
213
|
+
'core.typedBlocks': typeof typedBlocksQuery;
|
|
214
|
+
'core.typedBlockIds': typeof typedBlockIdsQuery;
|
|
215
|
+
'core.searchByContent': typeof searchByContentQuery;
|
|
216
|
+
'core.recentBlocks': typeof recentBlocksQuery;
|
|
217
|
+
'core.firstChildByContent': typeof firstChildByContentQuery;
|
|
218
|
+
'core.aliasesInWorkspace': typeof aliasesInWorkspaceQuery;
|
|
219
|
+
'core.aliasMatches': typeof aliasMatchesQuery;
|
|
220
|
+
'core.aliasLookup': typeof aliasLookupQuery;
|
|
221
|
+
'core.findExtensionBlocks': typeof findExtensionBlocksQuery;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
export {};
|
|
225
|
+
//# sourceMappingURL=kernelQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kernelQueries.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/kernelQueries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,SAAS,EAEd,KAAK,QAAQ,EACb,KAAK,uBAAuB,EAE7B,MAAM,YAAY,CAAA;AA6BnB,eAAO,MAAM,sBAAsB,QAKlC,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,yBAAyB,QAUrC,CAAA;AAED,yDAAyD;AACzD,eAAO,MAAM,4BAA4B,QAexC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,QAQpC,CAAA;AAED;;;;;;;kEAOkE;AAClE,eAAO,MAAM,+BAA+B,yaAgB3C,CAAA;AAED;;;;gDAIgD;AAChD,eAAO,MAAM,sCAAsC,QASlD,CAAA;AAED;;;;;;;;2DAQ2D;AAC3D,eAAO,MAAM,gDAAgD,QAU5D,CAAA;AAED;;wEAEwE;AACxE,eAAO,MAAM,qCAAqC,2cAmBjD,CAAA;AAED;;4CAE4C;AAC5C,eAAO,MAAM,iCAAiC,QAQ7C,CAAA;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAyCD;;sDAEsD;AACtD,eAAO,MAAM,YAAY;QAAoB,MAAM;eAkBjD,CAAA;AAEF,6CAA6C;AAC7C,eAAO,MAAM,cAAc;QAAoB,MAAM;eASnD,CAAA;AAEF,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,SAAS,EAAE,CAAA;CACvB;AAMD;;;;;;;;;;qCAUqC;AACrC,eAAO,MAAM,kBAAkB;SACvB,SAAS,MAAM,EAAE;wBAgCvB,CAAA;AAEF,0DAA0D;AAC1D,eAAO,MAAM,aAAa;QAAoB,MAAM;eASlD,CAAA;AAEF;;mEAEmE;AACnE,eAAO,MAAM,aAAa;QAAoB,MAAM;cAAY,OAAO;YAarE,CAAA;AAIF;;;;;6CAK6C;AAC7C,eAAO,MAAM,WAAW;iBAA6B,MAAM;UAAQ,MAAM;eAgBvE,CAAA;AA0OF;;;iDAGiD;AACjD,eAAO,MAAM,kBAAkB,GAC7B,OAAO,uBAAuB,EAC9B,KAAK,QAAQ,KACZ,OAAO,CAAC,SAAS,EAAE,CAmCrB,CAAA;AAED;;;sDAGsD;AACtD,eAAO,MAAM,oBAAoB,GAC/B,OAAO,uBAAuB,EAC9B,KAAK,QAAQ,KACZ,OAAO,CAAC,MAAM,EAAE,CAUlB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;kBAoBkB;AAClB,eAAO,MAAM,gBAAgB,+EAK3B,CAAA;AAEF,eAAO,MAAM,kBAAkB,4EAK7B,CAAA;AAEF,gEAAgE;AAChE,eAAO,MAAM,oBAAoB;iBACjB,MAAM;WAAS,MAAM;YAAU,MAAM;eA0BnD,CAAA;AAEF,uEAAuE;AACvE,eAAO,MAAM,iBAAiB;iBACd,MAAM;YAAU,MAAM;eA2BpC,CAAA;AAEF,+DAA+D;AAC/D,eAAO,MAAM,wBAAwB;cACxB,MAAM;aAAW,MAAM;oBAgBlC,CAAA;AAIF,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB;iBACpB,MAAM;aAAW,MAAM;YAqBrC,CAAA;AAEF,+DAA+D;AAC/D,eAAO,MAAM,iBAAiB;iBACd,MAAM;YAAU,MAAM;YAAU,MAAM;gBAmCpD,CAAA;AAEF,yDAAyD;AACzD,eAAO,MAAM,gBAAgB;iBACb,MAAM;WAAS,MAAM;oBAmBnC,CAAA;AAIF;;;;;;;;;;;;;;8BAc8B;AAC9B,eAAO,MAAM,wBAAwB;iBAA6B,MAAM;eAWtE,CAAA;AAIF;;iEAEiE;AACjE,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,QAAQ,CAgBlD,CAAA;AAID;;;sDAGsD;AACtD,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,aAAa;QACrB,cAAc,EAAE,OAAO,YAAY,CAAA;QACnC,gBAAgB,EAAE,OAAO,cAAc,CAAA;QACvC,oBAAoB,EAAE,OAAO,kBAAkB,CAAA;QAC/C,eAAe,EAAE,OAAO,aAAa,CAAA;QACrC,eAAe,EAAE,OAAO,aAAa,CAAA;QACrC,aAAa,EAAE,OAAO,WAAW,CAAA;QACjC,kBAAkB,EAAE,OAAO,gBAAgB,CAAA;QAC3C,oBAAoB,EAAE,OAAO,kBAAkB,CAAA;QAC/C,sBAAsB,EAAE,OAAO,oBAAoB,CAAA;QACnD,mBAAmB,EAAE,OAAO,iBAAiB,CAAA;QAC7C,0BAA0B,EAAE,OAAO,wBAAwB,CAAA;QAC3D,yBAAyB,EAAE,OAAO,uBAAuB,CAAA;QACzD,mBAAmB,EAAE,OAAO,iBAAiB,CAAA;QAC7C,kBAAkB,EAAE,OAAO,gBAAgB,CAAA;QAC3C,0BAA0B,EAAE,OAAO,wBAAwB,CAAA;KAC5D;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge two encoded property bags into one. Used by `core.merge` to fold
|
|
3
|
+
* the source block's properties into the target.
|
|
4
|
+
*
|
|
5
|
+
* Generic by design — knows nothing about specific property names; behaviour
|
|
6
|
+
* is driven entirely by the encoded value's shape. That keeps the kernel
|
|
7
|
+
* free of plugin coupling: list-coded properties (`alias`, `types`,
|
|
8
|
+
* `refList`-flavoured props) get a natural set-union, and scalars get a
|
|
9
|
+
* predictable target-wins rule.
|
|
10
|
+
*
|
|
11
|
+
* Rules per key:
|
|
12
|
+
* 1. Key in only one side → take that value.
|
|
13
|
+
* 2. Both arrays → concat with target order first, then
|
|
14
|
+
* source-only entries (JSON-keyed dedupe).
|
|
15
|
+
* 3. Both deep-equal → keep target's value.
|
|
16
|
+
* 4. Otherwise (collision) → target wins.
|
|
17
|
+
*
|
|
18
|
+
* Inputs are never mutated; a fresh object is returned.
|
|
19
|
+
*/
|
|
20
|
+
export declare const mergeProperties: (intoProps: Record<string, unknown>, fromProps: Record<string, unknown>) => Record<string, unknown>;
|
|
21
|
+
//# sourceMappingURL=mergeProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeProperties.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/mergeProperties.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAiBxB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Same-tx processor: canonicalize `blocks.references_json` on every
|
|
3
|
+
* write. Replaces the inline `normalizeReferences(...)` calls that
|
|
4
|
+
* previously lived in `txEngine.ts` (`update`, `restore`,
|
|
5
|
+
* `insertBlockData`). Equivalent end-state — the row commits with
|
|
6
|
+
* normalized references — but pluggable, so other plugins can
|
|
7
|
+
* compose value-level normalizers onto the same pipeline stage
|
|
8
|
+
* without modifying the engine.
|
|
9
|
+
*
|
|
10
|
+
* Why the canonical form matters (excerpted from
|
|
11
|
+
* `blockData.ts:normalizeReferences` doc): on-disk shape is
|
|
12
|
+
* independent of writer-side iteration order, so equality reduces
|
|
13
|
+
* to JSON text compare; consumers (`json_each` backlinks index,
|
|
14
|
+
* BACKLINKS_FOR_BLOCK_QUERY, Map-keyed invalidation) treat
|
|
15
|
+
* references as a set.
|
|
16
|
+
*
|
|
17
|
+
* Same-tx placement notes (per docs/alias-rename-cases.html):
|
|
18
|
+
* - Cheap (pure compute, no I/O), correctness-critical (commit
|
|
19
|
+
* invariant), single-row (each tx may write several blocks but
|
|
20
|
+
* each row's normalization is independent).
|
|
21
|
+
* - Latency added is paid by the user-commit path; matches the
|
|
22
|
+
* pre-existing inline cost.
|
|
23
|
+
*/
|
|
24
|
+
import { type AnySameTxProcessor } from '@/data/api';
|
|
25
|
+
export declare const NORMALIZE_REFERENCES_PROCESSOR_NAME = "core.normalizeReferences";
|
|
26
|
+
export declare const NORMALIZE_REFERENCES_PROCESSOR: import("@/data/api").SameTxProcessor;
|
|
27
|
+
export declare const KERNEL_SAME_TX_PROCESSORS: ReadonlyArray<AnySameTxProcessor>;
|
|
28
|
+
//# sourceMappingURL=normalizeReferencesProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeReferencesProcessor.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/normalizeReferencesProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,YAAY,CAAA;AAUnB,eAAO,MAAM,mCAAmC,6BAA6B,CAAA;AAE7E,eAAO,MAAM,8BAA8B,sCAgBzC,CAAA;AAEF,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,kBAAkB,CAEvE,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Post-commit processor framework (spec §5.7, §7).
|
|
3
|
+
*
|
|
4
|
+
* Two firing channels:
|
|
5
|
+
* 1. Field-watching processors fire when a tx wrote to one of the
|
|
6
|
+
* named fields on `blocks`. Engine determines this by walking the
|
|
7
|
+
* tx's snapshots map: for each (id, before, after) where any
|
|
8
|
+
* watched field changed value, the row is added to the
|
|
9
|
+
* processor's CommittedEvent.changedRows. If at least one row
|
|
10
|
+
* changed, the processor fires once with the aggregated list.
|
|
11
|
+
*
|
|
12
|
+
* 2. Explicit processors fire only when a tx called
|
|
13
|
+
* `tx.afterCommit(name, args)`. Args are validated by the
|
|
14
|
+
* processor's `scheduledArgsSchema` at enqueue time so a buggy
|
|
15
|
+
* caller fails the originating tx (clean rollback) instead of
|
|
16
|
+
* failing silently when the processor would otherwise fire.
|
|
17
|
+
*
|
|
18
|
+
* The framework does NOT auto-open a writeTransaction for the processor
|
|
19
|
+
* (v4.32 — see §5.7). `apply(event, ctx)` runs as a plain async function
|
|
20
|
+
* with `ctx = { db, repo }`. Pure-side-effect processors do nothing more;
|
|
21
|
+
* write processors open their own `ctx.repo.tx(...)` when they decide to
|
|
22
|
+
* write. This avoids holding a writer slot through read phases (the
|
|
23
|
+
* shape that produced the §10 / `tasks/processor-tx-deadlock.md`
|
|
24
|
+
* deadlock under PowerSync's serialized single-connection config) and
|
|
25
|
+
* lets pure-side-effect processors skip the writer cost entirely.
|
|
26
|
+
*
|
|
27
|
+
* Failures are caught + logged so a crashing processor can't poison
|
|
28
|
+
* subsequent jobs.
|
|
29
|
+
*
|
|
30
|
+
* Stage-1.5 deferred:
|
|
31
|
+
* - per-block content debouncing (§7.2 row "Trigger on content change"):
|
|
32
|
+
* v1 ships every fire immediately. The dispatcher ordering is
|
|
33
|
+
* append-only and sequential, so two close-together content writes
|
|
34
|
+
* run parseReferences twice — that's slightly more work than the
|
|
35
|
+
* legacy debounced behavior, but is easier to reason about and
|
|
36
|
+
* covers correctness. Add coalescing if profiling shows pain.
|
|
37
|
+
*/
|
|
38
|
+
import { type AnyPostCommitProcessor, type AnyPropertySchema, type User } from '@/data/api';
|
|
39
|
+
import type { AfterCommitJob } from './txEngine';
|
|
40
|
+
import type { SnapshotsMap } from './txSnapshots';
|
|
41
|
+
import type { PowerSyncDb } from './commitPipeline';
|
|
42
|
+
import type { Repo } from '../repo';
|
|
43
|
+
/** Tx-grain inputs the runner needs to decide what fires + with which
|
|
44
|
+
* changedRows. Built by the commit pipeline from the snapshots map +
|
|
45
|
+
* collected afterCommit jobs. */
|
|
46
|
+
export interface CommittedTxOutcome {
|
|
47
|
+
txId: string;
|
|
48
|
+
user: User;
|
|
49
|
+
workspaceId: string | null;
|
|
50
|
+
/** Snapshots map walked into a flat list. */
|
|
51
|
+
snapshots: SnapshotsMap;
|
|
52
|
+
/** afterCommit jobs scheduled by the user fn. */
|
|
53
|
+
afterCommitJobs: AfterCommitJob[];
|
|
54
|
+
/** Processor registry snapshot taken at tx start (spec §3, §8). The
|
|
55
|
+
* runner iterates this — not its own current registry — so a
|
|
56
|
+
* `setFacetRuntime` call landing mid-flight can't change which
|
|
57
|
+
* processors fire (or with what apply fn) for an already-running tx. */
|
|
58
|
+
processors: ReadonlyMap<string, AnyPostCommitProcessor>;
|
|
59
|
+
/** Merged property-schema registry snapshot taken at the same
|
|
60
|
+
* boundary as `processors`. */
|
|
61
|
+
propertySchemas: ReadonlyMap<string, AnyPropertySchema>;
|
|
62
|
+
}
|
|
63
|
+
export declare class ProcessorRunner {
|
|
64
|
+
private readonly repo;
|
|
65
|
+
private readonly db;
|
|
66
|
+
/** In-flight processor promises. Tracked so tests (and any caller
|
|
67
|
+
* who needs deterministic ordering) can `awaitIdle()` before
|
|
68
|
+
* assertions. Each promise removes itself from the set on
|
|
69
|
+
* settlement (success or failure). */
|
|
70
|
+
private readonly pending;
|
|
71
|
+
constructor(repo: Repo, db: PowerSyncDb);
|
|
72
|
+
/** Wait until every currently-pending processor (synchronous + any
|
|
73
|
+
* already-fired delayed jobs) resolves. Does NOT advance timers —
|
|
74
|
+
* delayed jobs that haven't started yet aren't pending. Tests that
|
|
75
|
+
* need to flush a delayed job should use vi.useFakeTimers /
|
|
76
|
+
* vi.runAllTimers (or just sleep). */
|
|
77
|
+
awaitIdle(): Promise<void>;
|
|
78
|
+
/** Dispatch all matching processors for one committed tx. Called by
|
|
79
|
+
* Repo after `repo.tx` resolves. Walks the tx's processor snapshot
|
|
80
|
+
* (`outcome.processors`), not the runner's current registry — that's
|
|
81
|
+
* the §3/§8 contract: a tx fires the processors that were registered
|
|
82
|
+
* when it started, even if `setFacetRuntime` has since replaced them.
|
|
83
|
+
* Errors in any one processor are caught + logged; subsequent ones
|
|
84
|
+
* still run. */
|
|
85
|
+
dispatch(outcome: CommittedTxOutcome): Promise<void>;
|
|
86
|
+
private track;
|
|
87
|
+
/** Invoke the processor's apply with a `{db, repo}` ctx. The framework
|
|
88
|
+
* does not wrap apply in a writeTransaction (v4.32) — apply is a
|
|
89
|
+
* plain async fn that reads via `ctx.db` and (if it needs to write)
|
|
90
|
+
* opens its own tx via `ctx.repo.tx(...)`. Errors are caught + logged
|
|
91
|
+
* with the processor name + txId so one buggy processor can't poison
|
|
92
|
+
* the dispatch loop. */
|
|
93
|
+
private runOne;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=processorRunner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processorRunner.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/processorRunner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EAItB,KAAK,IAAI,EACV,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC;;kCAEkC;AAClC,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;IACV,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,6CAA6C;IAC7C,SAAS,EAAE,YAAY,CAAA;IACvB,iDAAiD;IACjD,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC;;;6EAGyE;IACzE,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;IACvD;oCACgC;IAChC,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CACxD;AAyCD,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAM;IAC3B,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAa;IAChC;;;2CAGuC;IACvC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;gBAE5C,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,WAAW;IAKvC;;;;2CAIuC;IACjC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAQhC;;;;;;qBAMiB;IACX,QAAQ,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkE1D,OAAO,CAAC,KAAK;IAKb;;;;;6BAKyB;YACX,MAAM;CAwBrB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* row_events tail — sync-applied invalidation path (spec §9.3 path 2).
|
|
3
|
+
*
|
|
4
|
+
* Local writes go through `repo.tx`, which fires the engine's fast-path
|
|
5
|
+
* `handleStore.invalidate(...)` and updates the cache directly. PowerSync
|
|
6
|
+
* sync-applied writes land in SQLite via the CRUD-apply path, BYPASSING
|
|
7
|
+
* `repo.tx` — they never set `tx_context.source`, so the `row_events`
|
|
8
|
+
* trigger COALESCEs source to `'sync'`.
|
|
9
|
+
*
|
|
10
|
+
* This tail subscribes to the `row_events` table, filters to
|
|
11
|
+
* `source = 'sync'` (avoiding overlap with the engine fast-path), and:
|
|
12
|
+
*
|
|
13
|
+
* - Reads new rows since the last consumed `id`.
|
|
14
|
+
* - Updates the BlockCache with the after_json snapshot (or evicts
|
|
15
|
+
* on hard-delete) so Block facades subscribed via cache.subscribe
|
|
16
|
+
* reflect remote changes — without this, sync writes are invisible
|
|
17
|
+
* to UI consumers that don't go through a collection handle.
|
|
18
|
+
* - Calls `handleStore.invalidate(...)` with a `ChangeNotification`
|
|
19
|
+
* that lists `rowIds` + `parentIds` + `workspaceIds` so collection
|
|
20
|
+
* handles re-resolve. `parentIds` covers both before- and after-
|
|
21
|
+
* parents of sync-applied edge changes, plus same-parent order_key
|
|
22
|
+
* changes, matching the `parent-edge` dep declared by
|
|
23
|
+
* `repo.children` / `repo.childIds`.
|
|
24
|
+
*
|
|
25
|
+
* Throttling: db.onChange's `throttleMs` coalesces sync-burst arrivals
|
|
26
|
+
* into batched processing. 100ms is the spec's recommendation (§9.3).
|
|
27
|
+
*
|
|
28
|
+
* The tail is a single subscription on the `row_events` table —
|
|
29
|
+
* regardless of how many handles exist, only one query runs per
|
|
30
|
+
* throttle window, and the dep-matching walk inside HandleStore is
|
|
31
|
+
* O(handles × deps).
|
|
32
|
+
*/
|
|
33
|
+
import type { CycleDetectedEvent } from '@/data/api';
|
|
34
|
+
import type { BlockCache } from '@/data/blockCache';
|
|
35
|
+
import type { PowerSyncDb } from './commitPipeline';
|
|
36
|
+
import type { HandleStore } from './handleStore';
|
|
37
|
+
import { type InvalidationRule } from '@/data/invalidation.js';
|
|
38
|
+
export interface RowEventsTailOptions {
|
|
39
|
+
throttleMs?: number;
|
|
40
|
+
/** Optional override for the initial high-watermark query. Tests inject
|
|
41
|
+
* this to start the tail from id=0 (consume historical rows too). */
|
|
42
|
+
initialLastId?: number;
|
|
43
|
+
onError?: (err: unknown) => void;
|
|
44
|
+
/** Fired once per drain pass when the bounded cycle scan finds at
|
|
45
|
+
* least one affected id closing back on itself. One event per
|
|
46
|
+
* workspace involved (single-workspace per cycle by construction
|
|
47
|
+
* — server FK + invariant trigger keep parent_id mutations within
|
|
48
|
+
* a workspace). Spec §4.7. */
|
|
49
|
+
onCycleDetected?: (event: CycleDetectedEvent) => void;
|
|
50
|
+
}
|
|
51
|
+
export interface RowEventsTail {
|
|
52
|
+
/** Stop the subscription. Idempotent. */
|
|
53
|
+
dispose(): void;
|
|
54
|
+
/** Run one tail-pass synchronously. Used by tests to flush without
|
|
55
|
+
* waiting on the throttle window. */
|
|
56
|
+
flush(): Promise<void>;
|
|
57
|
+
/** The id of the most recent row we consumed. Useful for tests. */
|
|
58
|
+
lastId(): number;
|
|
59
|
+
}
|
|
60
|
+
/** Start the tail subscription. Returns a handle for disposal + manual
|
|
61
|
+
* flush. The async initialization runs in the background; the returned
|
|
62
|
+
* object is usable immediately (`flush()` will await initialization). */
|
|
63
|
+
export declare const startRowEventsTail: (args: {
|
|
64
|
+
db: PowerSyncDb;
|
|
65
|
+
cache: BlockCache;
|
|
66
|
+
handleStore: HandleStore;
|
|
67
|
+
getInvalidationRules?: () => readonly InvalidationRule[];
|
|
68
|
+
options?: RowEventsTailOptions;
|
|
69
|
+
}) => RowEventsTail;
|
|
70
|
+
//# sourceMappingURL=rowEventsTail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rowEventsTail.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/rowEventsTail.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAa,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAsB,WAAW,EAAE,MAAM,eAAe,CAAA;AAEpE,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,wBAAwB,CAAA;AAe/B,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;0EACsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC;;;;mCAI+B;IAC/B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CACtD;AAED,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,OAAO,IAAI,IAAI,CAAA;IACf;0CACsC;IACtC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB,mEAAmE;IACnE,MAAM,IAAI,MAAM,CAAA;CACjB;AAED;;0EAE0E;AAC1E,eAAO,MAAM,kBAAkB,GAAI,MAAM;IACvC,EAAE,EAAE,WAAW,CAAA;IACf,KAAK,EAAE,UAAU,CAAA;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,oBAAoB,CAAC,EAAE,MAAM,SAAS,gBAAgB,EAAE,CAAA;IACxD,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B,KAAG,aAgVH,CAAA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Timing-based metrics: bounded reservoir + DB / query wrappers
|
|
3
|
+
* (perf-baseline follow-up #4 extension).
|
|
4
|
+
*
|
|
5
|
+
* Counterpart to the simple-counter metrics on HandleStore / BlockCache.
|
|
6
|
+
* Where those answer "how often", these answer "how long":
|
|
7
|
+
*
|
|
8
|
+
* - `DbMetrics` aggregates wall-clock timings for every PowerSyncDb
|
|
9
|
+
* call site that flows through the Repo (`getAll`, `getOptional`,
|
|
10
|
+
* `get`, `execute`, `writeTransaction`). Use to tell whether
|
|
11
|
+
* a slow cold-start lives in raw SQL roundtrip cost or above it.
|
|
12
|
+
* - `QueryMetrics` keys by query name (e.g. `core.subtree`,
|
|
13
|
+
* `plugin:tasks/dueSoon`) and records the wall-clock time of each
|
|
14
|
+
* `loader(ctx)` invocation. Re-resolves (LoaderHandle.invalidate)
|
|
15
|
+
* count as separate samples — the dispatcher path runs the loader
|
|
16
|
+
* fresh each time, and that's the unit you care about for "open
|
|
17
|
+
* page → ms to settle".
|
|
18
|
+
*
|
|
19
|
+
* Approximate percentiles via a fixed-capacity ring buffer (default 256
|
|
20
|
+
* samples). Cheap, bounded memory, and accurate enough for the
|
|
21
|
+
* "is this 10 ms or 100 ms?" decisions we'd make from a debug panel.
|
|
22
|
+
* For higher-precision distributions, use the bench harness instead —
|
|
23
|
+
* this exists for in-app awareness, not benchmark output.
|
|
24
|
+
*
|
|
25
|
+
* Cost: a `performance.now()` pair + ring-buffer write per call. At
|
|
26
|
+
* the rates the data layer hits (a few thousand SQL calls/sec under
|
|
27
|
+
* worst-case sync bursts) that's well under 1% of wall time.
|
|
28
|
+
*/
|
|
29
|
+
/** Approximate-percentile ring buffer. Records the last `capacity`
|
|
30
|
+
* samples; `snapshot()` sorts a copy on demand. `calls` is the total
|
|
31
|
+
* observed across the lifetime of the reservoir (not bounded by
|
|
32
|
+
* capacity), so consumers can still read "how many samples have we
|
|
33
|
+
* seen?" even after the buffer wrapped. */
|
|
34
|
+
export declare class TimingReservoir {
|
|
35
|
+
private readonly capacity;
|
|
36
|
+
private readonly samples;
|
|
37
|
+
private writeIdx;
|
|
38
|
+
private filled;
|
|
39
|
+
private callsTotal;
|
|
40
|
+
private sumMs;
|
|
41
|
+
constructor(capacity?: number);
|
|
42
|
+
record(ms: number): void;
|
|
43
|
+
reset(): void;
|
|
44
|
+
/** Frozen plain-object summary. Percentile values are 0 when
|
|
45
|
+
* `sampleCount === 0` (no samples yet); consumers should branch
|
|
46
|
+
* on that field rather than treating 0 as a real measurement. */
|
|
47
|
+
snapshot(): TimingSnapshot;
|
|
48
|
+
}
|
|
49
|
+
/** Frozen summary returned by `TimingReservoir.snapshot()`. */
|
|
50
|
+
export interface TimingSnapshot {
|
|
51
|
+
/** Total samples observed since last reset (NOT bounded by buffer
|
|
52
|
+
* capacity). */
|
|
53
|
+
readonly calls: number;
|
|
54
|
+
/** Samples actually retained in the ring buffer (capped at
|
|
55
|
+
* `capacity`). p50/p95/p99 are computed over these. */
|
|
56
|
+
readonly sampleCount: number;
|
|
57
|
+
/** Mean of the samples in the window (not the lifetime sum / calls
|
|
58
|
+
* — that pairs poorly with windowed percentiles when the buffer
|
|
59
|
+
* has wrapped). */
|
|
60
|
+
readonly meanMs: number;
|
|
61
|
+
readonly p50Ms: number;
|
|
62
|
+
readonly p95Ms: number;
|
|
63
|
+
readonly p99Ms: number;
|
|
64
|
+
readonly minMs: number;
|
|
65
|
+
readonly maxMs: number;
|
|
66
|
+
/** Sum of every observed call's duration, across the full lifetime
|
|
67
|
+
* of the reservoir (not bounded by capacity). Useful for "this
|
|
68
|
+
* query has spent X ms total since the page opened." */
|
|
69
|
+
readonly totalMs: number;
|
|
70
|
+
}
|
|
71
|
+
/** Aggregate timings for every PowerSyncDb call that flows through the
|
|
72
|
+
* Repo (read calls + writeTransaction wall-clock). One instance per
|
|
73
|
+
* Repo. */
|
|
74
|
+
export declare class DbMetrics {
|
|
75
|
+
readonly getAll: TimingReservoir;
|
|
76
|
+
readonly getOptional: TimingReservoir;
|
|
77
|
+
readonly get: TimingReservoir;
|
|
78
|
+
readonly execute: TimingReservoir;
|
|
79
|
+
/** Total `db.writeTransaction(...)` wall time, including commit
|
|
80
|
+
* overhead. Tx-internal SQL calls (via the LockContext) are timed
|
|
81
|
+
* separately under their respective fields above — so a single
|
|
82
|
+
* `mutate.setContent` typically registers 1 writeTransaction sample
|
|
83
|
+
* AND a handful of `getAll`/`execute` samples for the inner work. */
|
|
84
|
+
readonly writeTransaction: TimingReservoir;
|
|
85
|
+
reset(): void;
|
|
86
|
+
snapshot(): Readonly<Record<string, TimingSnapshot>>;
|
|
87
|
+
}
|
|
88
|
+
/** Per-query-name resolve timings. Keys are full query names
|
|
89
|
+
* (`core.subtree`, `plugin:foo/bar`, …). Empty entries don't appear
|
|
90
|
+
* in the snapshot — only queries that actually ran are surfaced. */
|
|
91
|
+
export declare class QueryMetrics {
|
|
92
|
+
private readonly perName;
|
|
93
|
+
/** Record one `loader(ctx)` invocation for `queryName`. Lazily
|
|
94
|
+
* creates a reservoir on first call so unused queries cost nothing.
|
|
95
|
+
* Capacity defaults to 256 — same as the DbMetrics reservoirs. */
|
|
96
|
+
record(queryName: string, ms: number): void;
|
|
97
|
+
reset(): void;
|
|
98
|
+
snapshot(): Readonly<Record<string, TimingSnapshot>>;
|
|
99
|
+
}
|
|
100
|
+
/** Wrap a `PowerSyncDb` with timing instrumentation. Returns a Proxy
|
|
101
|
+
* over the input — five methods (`getAll`, `getOptional`, `get`,
|
|
102
|
+
* `execute`, `writeTransaction`) are intercepted and timed; everything
|
|
103
|
+
* else (`onChange`, `close`, …) passes through to the original db.
|
|
104
|
+
* This means consumers like `exportSqliteDb` that need
|
|
105
|
+
* PowerSyncDatabase-only methods continue to work without us
|
|
106
|
+
* re-declaring them.
|
|
107
|
+
*
|
|
108
|
+
* `writeTransaction` also wraps the LockContext passed to the callback
|
|
109
|
+
* so tx-internal SQL is timed under the same metrics buckets.
|
|
110
|
+
*
|
|
111
|
+
* Type-erased to `unknown` here so the module doesn't import
|
|
112
|
+
* `PowerSyncDb`; `Repo` casts at the call site (it owns the
|
|
113
|
+
* `PowerSyncDb` type contract). */
|
|
114
|
+
export declare const wrapDbWithMetrics: (rawDb: unknown, metrics: DbMetrics) => unknown;
|
|
115
|
+
//# sourceMappingURL=timingMetrics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timingMetrics.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/timingMetrics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;4CAI4C;AAC5C,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAClC,OAAO,CAAC,QAAQ,CAAI;IACpB,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,UAAU,CAAI;IACtB,OAAO,CAAC,KAAK,CAAI;gBAEL,QAAQ,SAAM;IAM1B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAYxB,KAAK,IAAI,IAAI;IAQb;;sEAEkE;IAClE,QAAQ,IAAI,cAAc;CAkC3B;AAED,+DAA+D;AAC/D,MAAM,WAAW,cAAc;IAC7B;qBACiB;IACjB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;4DACwD;IACxD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B;;wBAEoB;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;6DAEyD;IACzD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED;;YAEY;AACZ,qBAAa,SAAS;IACpB,QAAQ,CAAC,MAAM,kBAAwB;IACvC,QAAQ,CAAC,WAAW,kBAAwB;IAC5C,QAAQ,CAAC,GAAG,kBAAwB;IACpC,QAAQ,CAAC,OAAO,kBAAwB;IACxC;;;;0EAIsE;IACtE,QAAQ,CAAC,gBAAgB,kBAAwB;IAEjD,KAAK,IAAI,IAAI;IAQb,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CASrD;AAED;;qEAEqE;AACrE,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqC;IAE7D;;uEAEmE;IACnE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAS3C,KAAK,IAAI,IAAI;IAOb,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAKrD;AAwBD;;;;;;;;;;;;;oCAaoC;AACpC,eAAO,MAAM,iBAAiB,GAAI,OAAO,OAAO,EAAE,SAAS,SAAS,KAAG,OAuEtE,CAAA"}
|