@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,745 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* New `Repo` class for the data-layer redesign (spec §3, §8).
|
|
3
|
+
*
|
|
4
|
+
* Stage 1.4 scope: holds `db` + `cache` + `user` + the mutator registry
|
|
5
|
+
* (kernel mutators registered at construction time). Exposes:
|
|
6
|
+
* - `repo.tx(fn, opts)` — primitive transactional session
|
|
7
|
+
* - `repo.mutate.X(args)` — typed-dispatch sugar (1-mutator tx wrapping)
|
|
8
|
+
* - `repo.run(name, args)` — runtime-validated dispatch (dynamic plugins)
|
|
9
|
+
* - `repo.setFacetRuntime(runtime)` — refresh mutator registry from a
|
|
10
|
+
* FacetRuntime. Minimal impl reads `mutatorsFacet` contributions.
|
|
11
|
+
*
|
|
12
|
+
* Stage 2 of Phase 1 (post-1.6) adds:
|
|
13
|
+
* - HandleStore + `repo.block(id)` / `repo.children(id)` / etc.
|
|
14
|
+
* - row_events tail subscription for sync-applied invalidation
|
|
15
|
+
*/
|
|
16
|
+
import type { FacetRuntime, Facet } from '@/extensions/facet';
|
|
17
|
+
import type { AnyMutator, AnyPostCommitProcessor, AnySameTxProcessor, AnyPropertyEditorOverride, AnyPropertySchema, AnyQuery, AnyValuePreset, BlockData, Mutator, MutatorRegistry, Query, QueryRegistry, RepoTxOptions, TypedBlockQuery, TypeContribution, TypeRegistrySnapshot, Tx, Unsubscribe, User } from '@/data/api';
|
|
18
|
+
import { ChangeScope, ProcessorRejection } from '@/data/api';
|
|
19
|
+
import { type PowerSyncDb } from './internals/commitPipeline';
|
|
20
|
+
import type { BlockCache } from '@/data/blockCache';
|
|
21
|
+
import { Block } from './block';
|
|
22
|
+
import { HandleStore, LoaderHandle } from './internals/handleStore';
|
|
23
|
+
import { DbMetrics, QueryMetrics } from './internals/timingMetrics';
|
|
24
|
+
import { type RowEventsTail, type RowEventsTailOptions } from './internals/rowEventsTail';
|
|
25
|
+
import { UndoManager } from './internals/undoManager';
|
|
26
|
+
import { UserSchemasService } from './userSchemasService';
|
|
27
|
+
import { UserTypesService } from './userTypesService';
|
|
28
|
+
/** Convert a `Mutator<Args, Result>` into the `repo.mutate` dispatcher
|
|
29
|
+
* signature `(args: Args) => Promise<Result>`. Used to project
|
|
30
|
+
* augmented `MutatorRegistry` entries into precise per-key types on
|
|
31
|
+
* the proxy field. */
|
|
32
|
+
type DispatchFor<M> = M extends Mutator<infer A, infer R> ? (args: A) => Promise<R> : never;
|
|
33
|
+
/** Per-key dispatcher types for every mutator known at compile time —
|
|
34
|
+
* every `MutatorRegistry` member, plus the bare `core.<name>`-stripped
|
|
35
|
+
* shortcut. Plugins extend this surface by augmenting the
|
|
36
|
+
* `MutatorRegistry` interface from `@/data/api`; kernel mutators are
|
|
37
|
+
* augmented in `kernelMutators.ts`. */
|
|
38
|
+
type KnownMutateDispatch = {
|
|
39
|
+
[K in keyof MutatorRegistry]: DispatchFor<MutatorRegistry[K]>;
|
|
40
|
+
} & {
|
|
41
|
+
[K in keyof MutatorRegistry as K extends `core.${infer Bare}` ? Bare : never]: DispatchFor<MutatorRegistry[K]>;
|
|
42
|
+
};
|
|
43
|
+
/** Proxy contract surface. Known keys (above) get precise typing;
|
|
44
|
+
* unknown keys fall through the `any` index signature so dynamically
|
|
45
|
+
* loaded plugins that haven't augmented `MutatorRegistry` are still
|
|
46
|
+
* callable via `repo.mutate['plugin:foo'](args)`. The runtime
|
|
47
|
+
* argsSchema validation in `dispatchMutator` stays the source of truth
|
|
48
|
+
* for safety on those paths. */
|
|
49
|
+
export type MutateProxy = KnownMutateDispatch & {
|
|
50
|
+
[name: string]: (args: any) => Promise<any>;
|
|
51
|
+
};
|
|
52
|
+
/** Convert a `Query<Args, Result>` into the `repo.query` dispatcher
|
|
53
|
+
* signature `(args: Args) => LoaderHandle<Result>`. Mirrors
|
|
54
|
+
* `DispatchFor` for mutators. Returning the concrete `LoaderHandle<R>`
|
|
55
|
+
* (not just `Handle<R>`) keeps consistency with the existing
|
|
56
|
+
* `repo.subtree(id)` / `repo.children(id)` factories. */
|
|
57
|
+
type DispatchQueryFor<Q> = Q extends Query<infer A, infer R> ? (args: A) => LoaderHandle<R> : never;
|
|
58
|
+
type KnownQueryDispatch = {
|
|
59
|
+
[K in keyof QueryRegistry]: DispatchQueryFor<QueryRegistry[K]>;
|
|
60
|
+
} & {
|
|
61
|
+
[K in keyof QueryRegistry as K extends `core.${infer Bare}` ? Bare : never]: DispatchQueryFor<QueryRegistry[K]>;
|
|
62
|
+
};
|
|
63
|
+
/** Proxy contract surface for `repo.query`. Mirrors `MutateProxy`:
|
|
64
|
+
* known keys (kernel + augmented plugins per `QueryRegistry`) get
|
|
65
|
+
* precise typing; unknown string keys fall through the `any` index
|
|
66
|
+
* so dynamically-loaded plugins are still callable via
|
|
67
|
+
* `repo.query['plugin:foo'](args)`. The argsSchema validation in
|
|
68
|
+
* `dispatchQuery` is the runtime safety boundary for those paths. */
|
|
69
|
+
export type QueryProxy = KnownQueryDispatch & {
|
|
70
|
+
[name: string]: (args: any) => LoaderHandle<any>;
|
|
71
|
+
};
|
|
72
|
+
export interface RepoOptions {
|
|
73
|
+
db: PowerSyncDb;
|
|
74
|
+
cache: BlockCache;
|
|
75
|
+
user: User;
|
|
76
|
+
/** Read-only mode disables `BlockDefault` / `References` writes.
|
|
77
|
+
* `UiState` stays local-only and `UserPrefs` degrades to local-only.
|
|
78
|
+
* Default false. */
|
|
79
|
+
isReadOnly?: boolean;
|
|
80
|
+
/** Now provider — default `Date.now`. Injected for test determinism. */
|
|
81
|
+
now?: () => number;
|
|
82
|
+
/** UUID provider — default `crypto.randomUUID`. Injected for tests
|
|
83
|
+
* that want deterministic ids. */
|
|
84
|
+
newId?: () => string;
|
|
85
|
+
/** Monotonic INTEGER tx-grouping key provider, written into
|
|
86
|
+
* `tx_context.tx_seq` and copied to `ps_crud.tx_id` by the upload
|
|
87
|
+
* triggers. Default: a counter seeded from `Date.now()` so values
|
|
88
|
+
* never collide with anything from a prior run. Tests can inject a
|
|
89
|
+
* deterministic counter. */
|
|
90
|
+
newTxSeq?: () => number;
|
|
91
|
+
/** When true (default), kernel mutators are registered at
|
|
92
|
+
* construction time so `repo.mutate.indent({...})` works
|
|
93
|
+
* immediately. Set false when a test wants to populate the registry
|
|
94
|
+
* explicitly (or when `setFacetRuntime` is the only registration
|
|
95
|
+
* path). */
|
|
96
|
+
registerKernelMutators?: boolean;
|
|
97
|
+
/** When true (default), kernel post-commit processors are registered
|
|
98
|
+
* at construction time. The kernel set is currently empty; plugin
|
|
99
|
+
* processors arrive through `setFacetRuntime`. Kept as a test/tooling
|
|
100
|
+
* switch for any future core-only processors. */
|
|
101
|
+
registerKernelProcessors?: boolean;
|
|
102
|
+
/** When true (default), kernel same-tx processors are registered at
|
|
103
|
+
* construction time. Today that's `core.normalizeReferences`. Set
|
|
104
|
+
* false in tests that need to exercise the engine without
|
|
105
|
+
* reference normalization (e.g. asserting raw-shape round-trip). */
|
|
106
|
+
registerKernelSameTxProcessors?: boolean;
|
|
107
|
+
/** When true (default), kernel queries are registered at construction
|
|
108
|
+
* time so `repo.query.subtree({id})` etc. work immediately without a
|
|
109
|
+
* `setFacetRuntime` call. Set false when a test wants to populate
|
|
110
|
+
* the query registry explicitly. Mirrors `registerKernelMutators` /
|
|
111
|
+
* `registerKernelProcessors`. */
|
|
112
|
+
registerKernelQueries?: boolean;
|
|
113
|
+
/** When true (default), the kernel `kernelInvalidationRule` is
|
|
114
|
+
* registered at construction time so `core.byType` / `core.typedBlocks`
|
|
115
|
+
* / alias / content queries fire correctly without a `setFacetRuntime`
|
|
116
|
+
* call. Tests that want to populate the invalidation-rules registry
|
|
117
|
+
* explicitly can disable this. */
|
|
118
|
+
registerKernelInvalidationRules?: boolean;
|
|
119
|
+
/** When true (default), the row_events tail subscription is started
|
|
120
|
+
* at construction time so sync-applied writes propagate into the
|
|
121
|
+
* cache + invalidate handles (spec §9.3). Set false in unit tests
|
|
122
|
+
* that want explicit control over tail timing — they can call
|
|
123
|
+
* `repo.startRowEventsTail({initialLastId: 0})` to opt back in
|
|
124
|
+
* with deterministic semantics. */
|
|
125
|
+
startRowEventsTail?: boolean;
|
|
126
|
+
/** Options forwarded to the row_events tail when started. */
|
|
127
|
+
rowEventsTailOptions?: RowEventsTailOptions;
|
|
128
|
+
}
|
|
129
|
+
export declare class Repo {
|
|
130
|
+
readonly db: PowerSyncDb;
|
|
131
|
+
readonly cache: BlockCache;
|
|
132
|
+
user: User;
|
|
133
|
+
/** Read-only mode disables `BlockDefault` / `References` writes;
|
|
134
|
+
* UI-state and UserPrefs writes still pass through and queue to
|
|
135
|
+
* ps_crud — server-side rejection (RLS) lands in the rejection
|
|
136
|
+
* quarantine. Mutate via `repo.setReadOnly(value)` rather than
|
|
137
|
+
* direct field assignment so callers from inside React hooks don't
|
|
138
|
+
* trip `react-hooks/immutability` lint (the mutation should travel
|
|
139
|
+
* through a method, not a property write). */
|
|
140
|
+
isReadOnly: boolean;
|
|
141
|
+
private readonly now;
|
|
142
|
+
private readonly newId;
|
|
143
|
+
private readonly newTxSeq;
|
|
144
|
+
private mutators;
|
|
145
|
+
private processors;
|
|
146
|
+
/** Same-tx processor registry — runs inside the user's
|
|
147
|
+
* writeTransaction in `runTx`. Kept separate from
|
|
148
|
+
* `this.processors` (post-commit) because the two have different
|
|
149
|
+
* ctx shapes and run at different pipeline stages; see
|
|
150
|
+
* `sameTxProcessorsFacet` doc in `facets.ts`. */
|
|
151
|
+
private sameTxProcessors;
|
|
152
|
+
private queries;
|
|
153
|
+
private _types;
|
|
154
|
+
private _propertySchemas;
|
|
155
|
+
private _propertyEditorOverrides;
|
|
156
|
+
private _valuePresets;
|
|
157
|
+
private invalidationRules;
|
|
158
|
+
/** Currently-installed FacetRuntime, retained so
|
|
159
|
+
* `setRuntimeContributions` can mutate runtime contribution buckets
|
|
160
|
+
* without going through a fresh runtime resolution. Null until the
|
|
161
|
+
* first setFacetRuntime call. */
|
|
162
|
+
private runtime;
|
|
163
|
+
/** Per-facet listener disposers from `onFacetChange` registrations.
|
|
164
|
+
* Cleared when `setFacetRuntime` swaps to a fresh runtime — old
|
|
165
|
+
* listeners would fire against stale rebuild closures otherwise. */
|
|
166
|
+
private runtimeFacetUnsubs;
|
|
167
|
+
/** Repo-owned runtime contribution buckets. Persisted across
|
|
168
|
+
* `setFacetRuntime` swaps and replayed onto the fresh runtime so
|
|
169
|
+
* user-data schemas (et al.) survive the dynamic-extension reload.
|
|
170
|
+
* Without this, the user-data bucket would live only on whichever
|
|
171
|
+
* FacetRuntime was current at `setRuntimeContributions` time and
|
|
172
|
+
* evaporate on the next `setFacetRuntime`.
|
|
173
|
+
*
|
|
174
|
+
* NOTE for agent-side introspection: this is a *replay cache*, NOT
|
|
175
|
+
* a general "what's registered" map. It only holds dynamic
|
|
176
|
+
* contributions added via `setRuntimeContributions` (user-data
|
|
177
|
+
* schemas, etc.), so it looks sparse compared to the full
|
|
178
|
+
* registry. The full registry lives on the FacetRuntime
|
|
179
|
+
* (`facetRuntime.facetIds()` / `contributionsById(id)`), and the
|
|
180
|
+
* agent-facing surface is `yarn agent describe-runtime`. Inner
|
|
181
|
+
* keys here are arbitrary source-id strings chosen by the caller
|
|
182
|
+
* of `setRuntimeContributions`. */
|
|
183
|
+
private readonly runtimeContributionBuckets;
|
|
184
|
+
/** Per-facet refs needed to replay buckets onto a fresh runtime —
|
|
185
|
+
* setRuntimeContributions takes a `Facet` reference (not a string
|
|
186
|
+
* id), so we cache it the first time the caller passes one. */
|
|
187
|
+
private readonly runtimeContributionFacets;
|
|
188
|
+
/** Listeners for property-schema map changes (full rebuild OR
|
|
189
|
+
* runtime-bucket update). Used by `usePropertySchemas` to drive
|
|
190
|
+
* React reruns. */
|
|
191
|
+
private readonly propertySchemasListeners;
|
|
192
|
+
/** Listeners for `_types` map changes (full rebuild OR runtime-bucket
|
|
193
|
+
* update on `typesFacet`). Symmetric to propertySchemasListeners.
|
|
194
|
+
* Used by `createTypeBlock`'s commit→registration handoff to bridge
|
|
195
|
+
* two txs without polling: once UserTypesService's subscription
|
|
196
|
+
* publishes a new type contribution, the rebuild step re-reads
|
|
197
|
+
* typesFacet, this listener fires, and the bridge wait resolves. */
|
|
198
|
+
private readonly typesListeners;
|
|
199
|
+
/** Listeners for property-editor-override map changes. */
|
|
200
|
+
private readonly propertyEditorOverridesListeners;
|
|
201
|
+
/** Listeners for value-preset map changes. */
|
|
202
|
+
private readonly valuePresetsListeners;
|
|
203
|
+
/** Listeners for user-surfaceable errors thrown from inside a
|
|
204
|
+
* `repo.tx` — currently `ProcessorRejection` from same-tx
|
|
205
|
+
* processors. Subscribers are responsible for the UI side
|
|
206
|
+
* (toast routing); the data layer stays UI-agnostic. */
|
|
207
|
+
private readonly userErrorListeners;
|
|
208
|
+
/** Rebuild step descriptors. Defined once per Repo at construction;
|
|
209
|
+
* each step declares which facets it reads. `setFacetRuntime` runs
|
|
210
|
+
* every step; `setRuntimeContributions` runs only the steps whose
|
|
211
|
+
* inputs include the changed facet. */
|
|
212
|
+
private readonly rebuildSteps;
|
|
213
|
+
/** Per-query-name generation counter. Bumped by `setFacetRuntime`
|
|
214
|
+
* (and `__setQueriesForTesting`) whenever a name's registered Query
|
|
215
|
+
* instance changes — including when a name is added or removed. The
|
|
216
|
+
* generation is folded into the query handle-store key so cached
|
|
217
|
+
* handles that closed over the OLD resolver no longer collide with
|
|
218
|
+
* fresh lookups, which produce a new LoaderHandle bound to the NEW
|
|
219
|
+
* resolver. Old handles GC after their subscribers detach (the
|
|
220
|
+
* HandleStore's normal ref-count path). Reviewer P2: prevents
|
|
221
|
+
* same-name plugin updates from continuing to dispatch through the
|
|
222
|
+
* pre-swap resolver / argsSchema. */
|
|
223
|
+
private queryGenerations;
|
|
224
|
+
private readonly processorRunner;
|
|
225
|
+
/** Per-scope undo / redo stacks (spec §10 step 7, §17 line 2228).
|
|
226
|
+
* `repo.tx` records every undoable commit here; `repo.undo` /
|
|
227
|
+
* `repo.redo` pop entries and replay them via `TxImpl.applyRaw`. */
|
|
228
|
+
readonly undoManager: UndoManager;
|
|
229
|
+
/** Identity-stable Block facades, keyed by id. Block satisfies
|
|
230
|
+
* Handle<BlockData|null> structurally (spec §5.1, §5.2) — its
|
|
231
|
+
* row-grain reactivity goes through BlockCache.subscribe directly,
|
|
232
|
+
* so it doesn't need a HandleStore entry; this map IS its identity
|
|
233
|
+
* table. */
|
|
234
|
+
private readonly blockFacades;
|
|
235
|
+
/** Handle registry for query-backed collection factories: `children`,
|
|
236
|
+
* `subtree`, `ancestors`, plugin queries, etc. Identity rule:
|
|
237
|
+
* same key → same LoaderHandle instance. GC after `gcTimeMs` of
|
|
238
|
+
* zero subscribers + zero in-flight loads. The store also walks
|
|
239
|
+
* invalidation: TxEngine fast path + row_events tail (Phase 2.C)
|
|
240
|
+
* call `handleStore.invalidate({…})` to fan out to dep-matching
|
|
241
|
+
* handles. */
|
|
242
|
+
readonly handleStore: HandleStore;
|
|
243
|
+
/** Per-PowerSyncDb-call timings (getAll / getOptional / get /
|
|
244
|
+
* execute / writeTransaction). Populated by the metrics-wrapping
|
|
245
|
+
* proxy installed around `this.db` at construction. */
|
|
246
|
+
readonly dbMetrics: DbMetrics;
|
|
247
|
+
/** Per-query-name resolve timings. The dispatcher records each
|
|
248
|
+
* `loader(ctx)` invocation here keyed by the query's full name. */
|
|
249
|
+
readonly queryMetrics: QueryMetrics;
|
|
250
|
+
/** Counters for `reprojectRefTypedProperties`. Each call to the
|
|
251
|
+
* reprojection path increments these — useful when investigating
|
|
252
|
+
* bootstrap-time write-tx amplification triggered by user/plugin
|
|
253
|
+
* schema changes. Surfaced through `repo.metrics().reprojection`. */
|
|
254
|
+
private readonly reprojectionMetrics;
|
|
255
|
+
/** Lazy in-memory mirror of the per-name reprojection markers in
|
|
256
|
+
* `client_schema_state` (rows keyed `reproject_ref:<name>`). `null`
|
|
257
|
+
* until the first reprojection call hydrates it via a single
|
|
258
|
+
* `SELECT key … LIKE 'reproject_ref:%'` round-trip; afterwards
|
|
259
|
+
* `reprojectRefTypedProperties` skips ref-typed names already in
|
|
260
|
+
* this set without further SQL. Tests / migrations that wipe the
|
|
261
|
+
* table can call `__resetReprojectionMarkerCache` to force a reload. */
|
|
262
|
+
private reprojectionMarkers;
|
|
263
|
+
/** Slowest writeTransaction observed since the last reset, by
|
|
264
|
+
* description (`opts.description` passed to `repo.tx`). Updated only
|
|
265
|
+
* when a tx exceeds the previous high-water mark, so the field is
|
|
266
|
+
* cheap to maintain in the hot path. Surfaces through
|
|
267
|
+
* `repo.metrics().db.slowestTx`. */
|
|
268
|
+
private slowestTx;
|
|
269
|
+
/** Bounded log of recent tx (description, ms) — used to attribute
|
|
270
|
+
* cold-start `writeTransaction` totals to specific call sites. The
|
|
271
|
+
* most recent `TX_LOG_CAPACITY` entries are retained; older drops
|
|
272
|
+
* are silent. Surfaces through `repo.metrics().txLog`. */
|
|
273
|
+
private readonly txLog;
|
|
274
|
+
/** Active row_events tail (spec §9.3 path 2). Lazy: created on first
|
|
275
|
+
* start, replaced on subsequent starts. Tests can `dispose()` and
|
|
276
|
+
* re-`start` for deterministic flushing. */
|
|
277
|
+
private rowEventsTail;
|
|
278
|
+
/** Backing field for `activeWorkspaceId` (see getter/setter below). */
|
|
279
|
+
private _activeWorkspaceId;
|
|
280
|
+
/** Instance discriminator for memoization keys that need to vary
|
|
281
|
+
* across Repo instances (e.g. lodash.memoize calls in the panel /
|
|
282
|
+
* user-page bootstrap). Auto-incremented per construction. */
|
|
283
|
+
private static nextInstanceId;
|
|
284
|
+
readonly instanceId: number;
|
|
285
|
+
/** Hydrate a list of `BlockRow`s into the cache + return parsed
|
|
286
|
+
* BlockData[]. Internal helper for kernel queries. Callers choose
|
|
287
|
+
* whether returned rows are part of the query result (`row` deps) or
|
|
288
|
+
* only cache priming (`no row` deps). Accepts readonly so it pairs
|
|
289
|
+
* cleanly with the QueryCtx plumbing in `dispatchQuery`. */
|
|
290
|
+
private hydrateRows;
|
|
291
|
+
get types(): ReadonlyMap<string, TypeContribution>;
|
|
292
|
+
get propertySchemas(): ReadonlyMap<string, AnyPropertySchema>;
|
|
293
|
+
get propertyEditorOverrides(): ReadonlyMap<string, AnyPropertyEditorOverride>;
|
|
294
|
+
get valuePresets(): ReadonlyMap<string, AnyValuePreset>;
|
|
295
|
+
/** Deterministic id of the workspace's Properties page (parent of
|
|
296
|
+
* all `'property-schema'` blocks). Created lazily by
|
|
297
|
+
* `getOrCreatePropertiesPage` during workspace bootstrap. */
|
|
298
|
+
get propertiesPageId(): string | null;
|
|
299
|
+
/** UserSchemasService singleton bound to this Repo. Owns the
|
|
300
|
+
* user-data contribution bucket on `propertySchemasFacet`; sharing
|
|
301
|
+
* one instance means imperative call sites (the AddPropertyForm,
|
|
302
|
+
* the Roam importer) all hit the same in-memory list rather than
|
|
303
|
+
* each fresh instance clobbering the bucket from an empty start.
|
|
304
|
+
* The block-subscription path is opt-in via `start()`; the React
|
|
305
|
+
* provider starts it once per workspace. */
|
|
306
|
+
readonly userSchemas: UserSchemasService;
|
|
307
|
+
/** UserTypesService singleton bound to this Repo. Symmetric to
|
|
308
|
+
* `userSchemas`: owns the user-data contribution bucket on
|
|
309
|
+
* `typesFacet` and is started once per workspace by the React
|
|
310
|
+
* provider. Depends on `userSchemas` for resolving
|
|
311
|
+
* block-type:properties refList entries to live property schemas. */
|
|
312
|
+
readonly userTypes: UserTypesService;
|
|
313
|
+
/** Deterministic id of the workspace's Types page (parent of every
|
|
314
|
+
* `'block-type'` block in the workspace). Created lazily by
|
|
315
|
+
* `getOrCreateTypesPage` during workspace bootstrap. */
|
|
316
|
+
get typesPageId(): string | null;
|
|
317
|
+
/** Run `CHILDREN_SQL` for `parentId` and hydrate every row into the
|
|
318
|
+
* per-row cache. Shared by the `repo.load(id, {children: true})`
|
|
319
|
+
* opts path, `repo.children(id)` handle, and the hydrating variant
|
|
320
|
+
* of `repo.childIds(id)`. Collection-level reactivity is owned by
|
|
321
|
+
* the `LoaderHandle` returned from `repo.children` / `repo.childIds`
|
|
322
|
+
* — `BlockCache` doesn't track per-parent "loaded" state. */
|
|
323
|
+
private hydrateChildren;
|
|
324
|
+
/** Typed-dispatch sugar. `repo.mutate.indent({id})` opens a 1-mutator
|
|
325
|
+
* tx with the mutator's scope and runs it. Lookup tries the literal
|
|
326
|
+
* key first (`'tasks:setDueDate'` for plugin mutators), then
|
|
327
|
+
* `'core.${name}'` (so the bare `repo.mutate.indent` resolves to
|
|
328
|
+
* `'core.indent'`).
|
|
329
|
+
*
|
|
330
|
+
* Typing surface (Phase 3 — chunk C): keys present in
|
|
331
|
+
* `MutatorRegistry` (kernel + augmented plugins, see §12.1) get
|
|
332
|
+
* precise `(args: Args) => Promise<Result>` types; the
|
|
333
|
+
* `core.<name>`-stripped form is also typed. Unknown keys
|
|
334
|
+
* (dynamically-loaded plugins that haven't augmented the registry)
|
|
335
|
+
* fall back to a permissive `(args: any) => Promise<any>` index
|
|
336
|
+
* signature so string-key access stays callable. */
|
|
337
|
+
readonly mutate: MutateProxy;
|
|
338
|
+
/** Typed query dispatch. `repo.query.subtree({id})` returns an
|
|
339
|
+
* identity-stable `LoaderHandle<R>` (the same instance for the same
|
|
340
|
+
* args, GC'd via HandleStore). Lookup tries the literal `name` first
|
|
341
|
+
* (`'core.subtree'` or `'plugin:foo'`), then `'core.${name}'` so the
|
|
342
|
+
* bare `repo.query.subtree` resolves to `'core.subtree'`. Args are
|
|
343
|
+
* validated against `Query.argsSchema` on every call.
|
|
344
|
+
*
|
|
345
|
+
* Typing surface mirrors `repo.mutate`: keys present in
|
|
346
|
+
* `QueryRegistry` (kernel + augmented plugins) get precise
|
|
347
|
+
* `(args: Args) => LoaderHandle<Result>` types; the
|
|
348
|
+
* `core.<name>`-stripped form is also typed. Unknown keys
|
|
349
|
+
* (dynamically-loaded plugins that haven't augmented the registry)
|
|
350
|
+
* fall back to a permissive `(args: any) => LoaderHandle<any>` index
|
|
351
|
+
* signature so string-key access stays callable. The runtime
|
|
352
|
+
* `argsSchema` validation in `dispatchQuery` is the safety boundary
|
|
353
|
+
* for those paths. */
|
|
354
|
+
readonly query: QueryProxy;
|
|
355
|
+
constructor(opts: RepoOptions);
|
|
356
|
+
/** Start the row_events tail subscription (spec §9.3). Idempotent
|
|
357
|
+
* in spirit: if a tail is already running, it's disposed first so
|
|
358
|
+
* the new options take effect. Returns the tail for inspection /
|
|
359
|
+
* manual flushing. */
|
|
360
|
+
startRowEventsTail(options?: RowEventsTailOptions): RowEventsTail;
|
|
361
|
+
/** Dispose the active row_events tail (no-op if none). Tests use
|
|
362
|
+
* this to detach the subscription before tearing down the test DB. */
|
|
363
|
+
stopRowEventsTail(): void;
|
|
364
|
+
/** Manually flush the row_events tail — synchronously consumes any
|
|
365
|
+
* rows not yet processed and walks `handleStore.invalidate(...)`.
|
|
366
|
+
* Tests use this instead of waiting on the throttle window. */
|
|
367
|
+
flushRowEventsTail(): Promise<void>;
|
|
368
|
+
/** Frozen snapshot of internal data-layer counters + timings
|
|
369
|
+
* (perf-baseline follow-up #4). Returns four subsections:
|
|
370
|
+
*
|
|
371
|
+
* - `handleStore` — invalidate fan-out (`invalidations`,
|
|
372
|
+
* `handlesWalked`, `handlesMatched`) and per-LoaderHandle
|
|
373
|
+
* lifecycle (`loaderInvalidations`, `loaderRuns`,
|
|
374
|
+
* `midLoadInvalidations`, `reloadsAfterSettle`,
|
|
375
|
+
* `notifiesFired`, `notifiesSkippedByDiff`).
|
|
376
|
+
* - `blockCache` — write/notify activity
|
|
377
|
+
* (`setSnapshotCalls`, `setSnapshotDedupHits/Misses`,
|
|
378
|
+
* `applySyncSnapshotCalls`, `applySyncSnapshotRejected`,
|
|
379
|
+
* `notifies`).
|
|
380
|
+
* - `queries` — per-query-name resolve timings keyed by full
|
|
381
|
+
* name (e.g. `core.subtree`, `plugin:tasks/dueSoon`). Each
|
|
382
|
+
* entry is a `TimingSnapshot` with `calls`, mean, p50/p95/p99,
|
|
383
|
+
* min/max, and totalMs. Empty until a query runs.
|
|
384
|
+
* - `db` — aggregate PowerSyncDb call timings split by method
|
|
385
|
+
* (`getAll`, `getOptional`, `get`, `execute`, `writeTransaction`).
|
|
386
|
+
* `writeTransaction` records full wall-clock for the tx; the
|
|
387
|
+
* tx-internal SQL calls also count against their respective
|
|
388
|
+
* buckets — so a single `mutate.X` typically registers one
|
|
389
|
+
* `writeTransaction` sample plus several inner-SQL samples.
|
|
390
|
+
*
|
|
391
|
+
* Plain counters are monotonic from the last `resetMetrics()` (or
|
|
392
|
+
* Repo construction). Timing reservoirs hold the last 256 samples
|
|
393
|
+
* for percentile estimation; their `calls` field is unbounded.
|
|
394
|
+
*
|
|
395
|
+
* Each call returns a fresh frozen object so callers can keep two
|
|
396
|
+
* snapshots and diff them.
|
|
397
|
+
*
|
|
398
|
+
* Useful as:
|
|
399
|
+
* - regression detection in production (`handlesWalked /
|
|
400
|
+
* invalidations` should drop once the inverted-index lands;
|
|
401
|
+
* `queries['backlinks.forBlock'].p95Ms` should drop once the
|
|
402
|
+
* backlinks index lands),
|
|
403
|
+
* - cold-start investigation (open a page, `repo.metrics()`,
|
|
404
|
+
* see which queries dominated and how many SQL roundtrips
|
|
405
|
+
* they incurred),
|
|
406
|
+
* - in-app debug panels that surface latency distributions
|
|
407
|
+
* without needing a Playwright + profiler harness. */
|
|
408
|
+
metrics(): Readonly<{
|
|
409
|
+
handleStore: Readonly<Record<string, number>>;
|
|
410
|
+
/** Live-state aggregates over the registered handle set: handle
|
|
411
|
+
* count, dep-count percentiles, and the top-3 keys by dep count.
|
|
412
|
+
* Pairs with `handleStore` counters — counters describe events
|
|
413
|
+
* since the last reset, this describes the store right now. Use
|
|
414
|
+
* the top-heavy list to spot resolvers that are over-registering
|
|
415
|
+
* deps. */
|
|
416
|
+
handleStoreInventory: ReturnType<HandleStore['snapshotInventory']>;
|
|
417
|
+
blockCache: Readonly<Record<string, number>>;
|
|
418
|
+
queries: Readonly<Record<string, ReturnType<QueryMetrics['snapshot']>[string]>>;
|
|
419
|
+
db: ReturnType<DbMetrics['snapshot']>;
|
|
420
|
+
/** High-water mark across all `repo.tx` calls since the last reset.
|
|
421
|
+
* Pairs with `db.writeTransaction.maxMs` to attribute outliers to a
|
|
422
|
+
* concrete description (e.g. 'reproject ref-typed properties after
|
|
423
|
+
* schema swap'). `description: null` means the slowest tx so far
|
|
424
|
+
* was opened without a description. */
|
|
425
|
+
slowestTx: Readonly<{
|
|
426
|
+
description: string | null;
|
|
427
|
+
ms: number;
|
|
428
|
+
}>;
|
|
429
|
+
/** Bounded list of recent (description, ms) entries — the most
|
|
430
|
+
* recent `TX_LOG_CAPACITY` writeTransactions across the Repo's
|
|
431
|
+
* lifetime since the last reset. Lets a cold-start metrics dump
|
|
432
|
+
* attribute every observed writeTransaction sample to a concrete
|
|
433
|
+
* call site. Order is oldest-to-newest. */
|
|
434
|
+
txLog: ReadonlyArray<Readonly<{
|
|
435
|
+
description: string | null;
|
|
436
|
+
ms: number;
|
|
437
|
+
}>>;
|
|
438
|
+
reprojection: Readonly<{
|
|
439
|
+
calls: number;
|
|
440
|
+
schemasReprojected: number;
|
|
441
|
+
rowsScanned: number;
|
|
442
|
+
blocksUpdated: number;
|
|
443
|
+
msTotal: number;
|
|
444
|
+
skippedByMarker: number;
|
|
445
|
+
}>;
|
|
446
|
+
}>;
|
|
447
|
+
/** Zero every counter and reservoir in `repo.metrics()`. Use to
|
|
448
|
+
* mark a baseline before measuring a discrete operation (e.g. a
|
|
449
|
+
* benchmark iteration, a UI interaction in a soak test, or a
|
|
450
|
+
* cold-start "open page → metrics" investigation). */
|
|
451
|
+
resetMetrics(): void;
|
|
452
|
+
/** Get a `Block` facade for `id`. Sync — does NOT load. Read access
|
|
453
|
+
* on the returned facade (`block.data`, `block.peek()`, etc.) is gated
|
|
454
|
+
* by what's in cache; call `block.load()` or `repo.load(id)` first
|
|
455
|
+
* for guaranteed availability. The same `Block` instance is returned
|
|
456
|
+
* on repeat calls so identity-based React keys / memo work. */
|
|
457
|
+
block(id: string): Block;
|
|
458
|
+
/** Load a row + (optionally) a neighborhood into the cache. Spec §5.2.
|
|
459
|
+
*
|
|
460
|
+
* repo.load(id) → just the row
|
|
461
|
+
* repo.load(id, {children: true}) → row + immediate children
|
|
462
|
+
* repo.load(id, {ancestors: true}) → row + full parent chain
|
|
463
|
+
* repo.load(id, {descendants: N}) → row + subtree clipped at
|
|
464
|
+
* depth N (or whole tree
|
|
465
|
+
* if N is omitted/falsy
|
|
466
|
+
* for descendants:true)
|
|
467
|
+
*
|
|
468
|
+
* Hydrates rows into the cache so subsequent `block.peek()` /
|
|
469
|
+
* `block.data` calls succeed. Collection reactivity (children /
|
|
470
|
+
* subtree handles) is owned by the HandleStore, not this loader —
|
|
471
|
+
* use `repo.query.children({id}).load()` if you want a
|
|
472
|
+
* handle-cached child-rows list with structural invalidation.
|
|
473
|
+
*
|
|
474
|
+
* Concurrency note: this method does NOT use `BlockCache.dedupLoad`.
|
|
475
|
+
* That helper keys by id only, which silently merged a plain
|
|
476
|
+
* `repo.load(id)` with a concurrent `repo.load(id, {children: true})`
|
|
477
|
+
* — the second caller would see the plain promise resolve and miss
|
|
478
|
+
* the children. Inlining the load costs at most one extra row read
|
|
479
|
+
* per concurrent caller; the cache's `setSnapshot` is
|
|
480
|
+
* fingerprint-deduplicated so listeners don't fire twice. */
|
|
481
|
+
load(id: string, opts?: {
|
|
482
|
+
children?: boolean;
|
|
483
|
+
ancestors?: boolean;
|
|
484
|
+
descendants?: boolean | number;
|
|
485
|
+
}): Promise<BlockData | null>;
|
|
486
|
+
/** Async existence check — cache-first, falls back to a single SQL
|
|
487
|
+
* hit. Soft-deleted rows count as MISSING here so create/restore
|
|
488
|
+
* flows on the caller side get the consistent "not found" signal.
|
|
489
|
+
* The cache holds tombstone snapshots after `tx.delete` (so peek
|
|
490
|
+
* can show `deleted: true`); `hasSnapshot` alone would falsely
|
|
491
|
+
* report a tombstoned row as existing, hence the `deleted` gate. */
|
|
492
|
+
exists(id: string): Promise<boolean>;
|
|
493
|
+
/** UI-visible "active" workspace pin — used by plugin hooks and
|
|
494
|
+
* panels that need a default workspace when there's no other
|
|
495
|
+
* context. `repo.tx` does NOT consult this; tx workspaces come from
|
|
496
|
+
* the first write's row per spec §5.3. */
|
|
497
|
+
get activeWorkspaceId(): string | null;
|
|
498
|
+
setActiveWorkspaceId(workspaceId: string | null): void;
|
|
499
|
+
/** Toggle read-only mode. Wrapping the field write in a method
|
|
500
|
+
* keeps call sites that come from inside React hooks lint-clean
|
|
501
|
+
* (`react-hooks/immutability` flags direct property writes on
|
|
502
|
+
* hook outputs). UI-state writes still pass through regardless of
|
|
503
|
+
* this flag; UserPrefs writes pass through but stop uploading. */
|
|
504
|
+
setReadOnly(value: boolean): void;
|
|
505
|
+
/** Run a transactional session. Spec §3, §10. */
|
|
506
|
+
tx<R>(fn: (tx: Tx) => Promise<R>, opts: RepoTxOptions): Promise<R>;
|
|
507
|
+
/** Undo the most recent committed `repo.tx` for `scope`. Default
|
|
508
|
+
* scope is `BlockDefault` (the cmd-Z target). Resolves to true if
|
|
509
|
+
* an entry was popped + replayed, false if the stack was empty.
|
|
510
|
+
* Replay opens its own `repo.tx` with `source = 'user'` so the
|
|
511
|
+
* inverse syncs upstream just like the original write did (per the
|
|
512
|
+
* spec's §7.3 + the follow-ups doc's "undo of a content edit
|
|
513
|
+
* should sync the un-edit"). Throws `ReadOnlyError` in read-only
|
|
514
|
+
* mode for scopes that cannot write locally — matches normal
|
|
515
|
+
* `repo.tx` gating. */
|
|
516
|
+
undo(scope?: ChangeScope): Promise<boolean>;
|
|
517
|
+
/** Redo the most recently undone tx for `scope`. Same default + same
|
|
518
|
+
* semantics as `undo`, mirrored. */
|
|
519
|
+
redo(scope?: ChangeScope): Promise<boolean>;
|
|
520
|
+
/** Shared `runTx` + processor-dispatch path. Used by both `tx`
|
|
521
|
+
* (records on undo stack) and `_replay` (does not).
|
|
522
|
+
*
|
|
523
|
+
* Storage-layer integrity errors are translated to user-domain
|
|
524
|
+
* exceptions here so every caller — `repo.tx`, `repo.undo`,
|
|
525
|
+
* `repo.redo` — surfaces the same shape. Currently:
|
|
526
|
+
* - `alias_collision` RAISE → `ProcessorRejection('alias.collision',
|
|
527
|
+
* …)` via the trigger on `block_aliases`.
|
|
528
|
+
* - `parent_deleted` RAISE → `ParentDeletedError(parentId)` via the
|
|
529
|
+
* trigger on `blocks` — kept as a typed error rather than a
|
|
530
|
+
* ProcessorRejection because no toast surface is wired for it and
|
|
531
|
+
* existing callers `instanceof`-check the class.
|
|
532
|
+
* Listeners (`onUserError`) fire on translated ProcessorRejections
|
|
533
|
+
* here so the toast layer sees collisions from undo/redo replay,
|
|
534
|
+
* not just from `repo.tx` directly. */
|
|
535
|
+
private _runAndDispatch;
|
|
536
|
+
/** Replay an undo / redo entry. Opens a tx in the entry's scope and
|
|
537
|
+
* raw-applies each (id → snap.before) (undo) or (id → snap.after)
|
|
538
|
+
* (redo) via the engine-internal `applyRaw` primitive. Replays do
|
|
539
|
+
* NOT push themselves onto the undo stack — the caller manages
|
|
540
|
+
* stack motion (manager.pushRedo / manager.pushUndo) so the same
|
|
541
|
+
* entry shuttles symmetrically between stacks. */
|
|
542
|
+
private _replay;
|
|
543
|
+
/** Dynamic dispatch — used by runtime-loaded plugins where the
|
|
544
|
+
* TypeScript identity isn't available. `name` is the full mutator
|
|
545
|
+
* name (e.g. `'tasks:setDueDate'` or `'core.indent'`). Args are
|
|
546
|
+
* validated at the boundary via the mutator's argsSchema. */
|
|
547
|
+
run<R = unknown>(name: string, args: unknown): Promise<R>;
|
|
548
|
+
/** Dynamic query dispatch — `repo.query[name]` for runtime-loaded
|
|
549
|
+
* plugins. Resolves the query, runs `.load()`, and returns the
|
|
550
|
+
* result. The same `core.${name}` shortcut as the proxy applies. */
|
|
551
|
+
runQuery<R = unknown>(name: string, args: unknown): Promise<R>;
|
|
552
|
+
private resolveTypedBlockQuery;
|
|
553
|
+
/** Run a typed block query once. `workspaceId` is required: callers
|
|
554
|
+
* that want the user's currently-active workspace use
|
|
555
|
+
* `queryActiveWorkspace` instead — making the workspace explicit at
|
|
556
|
+
* the call site prevents background flows / import runs from silently
|
|
557
|
+
* mis-scoping on a workspace switch (PR #47 review). */
|
|
558
|
+
queryBlocks(query: TypedBlockQuery): Promise<BlockData[]>;
|
|
559
|
+
/** Subscribe to a typed block query. `workspaceId` is required: callers
|
|
560
|
+
* that want the user's currently-active workspace use
|
|
561
|
+
* `subscribeActiveWorkspace` instead. */
|
|
562
|
+
subscribeBlocks(query: TypedBlockQuery, listener: (rows: BlockData[]) => void): Unsubscribe;
|
|
563
|
+
/** Active-workspace shorthand for `queryBlocks`. Resolves
|
|
564
|
+
* `activeWorkspaceId` at call time; if no workspace is active,
|
|
565
|
+
* returns an empty list (mirrors the historical fallback behaviour
|
|
566
|
+
* for the rare callers that legitimately want "whatever the user is
|
|
567
|
+
* looking at right now"). Most non-UI code should NOT use this —
|
|
568
|
+
* prefer the bare `queryBlocks` with an explicit workspaceId. */
|
|
569
|
+
queryActiveWorkspace(query: Omit<TypedBlockQuery, 'workspaceId'>): Promise<BlockData[]>;
|
|
570
|
+
/** Active-workspace shorthand for `subscribeBlocks`. Same caveat as
|
|
571
|
+
* `queryActiveWorkspace`: the workspace is captured at subscription
|
|
572
|
+
* time and does NOT re-resolve on later workspace switches. UI
|
|
573
|
+
* surfaces that need switch-following behaviour should resubscribe
|
|
574
|
+
* themselves when `activeWorkspaceId` changes (e.g. via
|
|
575
|
+
* `useActiveWorkspaceId`). */
|
|
576
|
+
subscribeActiveWorkspace(query: Omit<TypedBlockQuery, 'workspaceId'>, listener: (rows: BlockData[]) => void): Unsubscribe;
|
|
577
|
+
/** Count non-deleted blocks in `workspaceId` whose `properties` map
|
|
578
|
+
* has a value at `name`. Used by the property-schema editor to warn
|
|
579
|
+
* the user before deleting a schema definition that's still in use.
|
|
580
|
+
* Workspace defaults to the active one; missing workspace returns 0. */
|
|
581
|
+
countBlocksUsingProperty(name: string, workspaceId?: string): Promise<number>;
|
|
582
|
+
/** Update the data-layer registries from a FacetRuntime. Spec §8.
|
|
583
|
+
* Decomposes into named rebuild steps (per user-defined-properties
|
|
584
|
+
* §3); the same step set runs for full-runtime swaps and for the
|
|
585
|
+
* per-facet `setRuntimeContributions` change path. Kernel mutators
|
|
586
|
+
* must be present in the runtime if the caller wants them — pass
|
|
587
|
+
* them in via the static-facet bundle the kernel ships. */
|
|
588
|
+
/** Read-only handle on the currently-installed FacetRuntime. Used by
|
|
589
|
+
* non-React callers that need to consult facets at action-handler
|
|
590
|
+
* time (e.g. `pickBlockDateAdapter` from a multi-select handler
|
|
591
|
+
* where `useAppRuntime()` isn't available). Returns null before the
|
|
592
|
+
* first `setFacetRuntime` call. */
|
|
593
|
+
get facetRuntime(): FacetRuntime | null;
|
|
594
|
+
setFacetRuntime(runtime: FacetRuntime): void;
|
|
595
|
+
/** Replace the runtime contribution bucket for `facet` keyed by
|
|
596
|
+
* `sourceId`. Triggers a re-run of every rebuild step whose
|
|
597
|
+
* declared inputs include this facet, plus per-facet listener
|
|
598
|
+
* fan-out for React subscribers (e.g. usePropertySchemas).
|
|
599
|
+
* No-op if no FacetRuntime has been installed yet — callers must
|
|
600
|
+
* setFacetRuntime first. */
|
|
601
|
+
setRuntimeContributions<Input>(facet: Facet<Input, unknown>, sourceId: string, contributions: readonly Input[]): void;
|
|
602
|
+
/** Subscribe to changes on `_propertySchemas`. Fires when
|
|
603
|
+
* `setFacetRuntime` rebuilds the schema map AND when
|
|
604
|
+
* `setRuntimeContributions(propertySchemasFacet, ...)` updates the
|
|
605
|
+
* user-data bucket. Used by `usePropertySchemas` so React rerenders
|
|
606
|
+
* on user-schema add/edit/remove without a runtime swap. */
|
|
607
|
+
onPropertySchemasChange(listener: () => void): () => void;
|
|
608
|
+
/** Subscribe to changes on `_types`. Fires whenever the rebuild step
|
|
609
|
+
* that owns `_types` re-runs — i.e. after `setFacetRuntime` AND
|
|
610
|
+
* after `setRuntimeContributions(typesFacet, ...)` publishes into
|
|
611
|
+
* the user-data bucket. Symmetric to `onPropertySchemasChange`.
|
|
612
|
+
* Consumers (e.g. `createTypeBlock` waiting for `UserTypesService`
|
|
613
|
+
* to publish a freshly-committed type-definition block) recheck
|
|
614
|
+
* `repo.types` inside the listener; spurious firings are tolerated. */
|
|
615
|
+
onTypesChange(listener: () => void): () => void;
|
|
616
|
+
/** Subscribe to changes on the merged `propertyEditorOverrides` map
|
|
617
|
+
* (currently driven exclusively by `propertyEditorOverridesFacet`,
|
|
618
|
+
* but exposed as a Repo-level event so future runtime-contribution
|
|
619
|
+
* paths layer on without changing the consumer surface). */
|
|
620
|
+
onPropertyEditorOverridesChange(listener: () => void): () => void;
|
|
621
|
+
/** Subscribe to changes on the value-preset map. */
|
|
622
|
+
onValuePresetsChange(listener: () => void): () => void;
|
|
623
|
+
/** Subscribe to user-surfaceable errors thrown from `repo.tx`
|
|
624
|
+
* (currently `ProcessorRejection` from same-tx processors). The
|
|
625
|
+
* data layer fires; the UI layer (e.g. toast) listens. Returns an
|
|
626
|
+
* unsubscribe fn. Listener exception isolation is handled by
|
|
627
|
+
* `CallbackSet.notify` — one bad listener can't poison the others
|
|
628
|
+
* or break the underlying `repo.tx` error propagation. */
|
|
629
|
+
onUserError(listener: (error: ProcessorRejection) => void): () => void;
|
|
630
|
+
/** Translate a parsed alias-collision RAISE into a fully-populated
|
|
631
|
+
* `ProcessorRejection`. Runs after the user tx has already rolled
|
|
632
|
+
* back, so `block_aliases` is back to the pre-tx state — the
|
|
633
|
+
* conflicting claimant is still indexed and one PK lookup away. */
|
|
634
|
+
private buildAliasCollisionRejection;
|
|
635
|
+
snapshotTypeRegistries(): TypeRegistrySnapshot;
|
|
636
|
+
private reprojectRefTypedProperties;
|
|
637
|
+
/** Defer reprojection off the cold-start critical path. The first
|
|
638
|
+
* cold start on a fresh device (or one whose `client_schema_state`
|
|
639
|
+
* was wiped) has no markers in place yet, so reprojection scans
|
|
640
|
+
* every block whose properties_json mentions any ref-typed name —
|
|
641
|
+
* ~1.4 s on a real graph, holding the SQLite connection and
|
|
642
|
+
* blocking every read issued during page render. The references
|
|
643
|
+
* processor handles every write that lands during the deferral
|
|
644
|
+
* window, so projection correctness is preserved.
|
|
645
|
+
*
|
|
646
|
+
* Browser path: `requestIdleCallback` with a 2 s safety timeout —
|
|
647
|
+
* we want to wait until the main thread is idle, but never longer
|
|
648
|
+
* than that (so a busy session still gets its catch-up scan).
|
|
649
|
+
* Test / Node path: `setTimeout(0)` so vitest fake timers can
|
|
650
|
+
* advance the call deterministically; `requestIdleCallback` is not
|
|
651
|
+
* defined under jsdom / Node. */
|
|
652
|
+
private scheduleReprojection;
|
|
653
|
+
/** Lazy load the per-name marker set on first call, then keep it
|
|
654
|
+
* in-memory. One SQL round-trip per Repo lifetime. */
|
|
655
|
+
private loadReprojectionMarkers;
|
|
656
|
+
private setReprojectionMarker;
|
|
657
|
+
private clearReprojectionMarker;
|
|
658
|
+
/** Test escape hatch — drop the in-memory marker mirror so the next
|
|
659
|
+
* reprojection re-reads from `client_schema_state`. Used by tests
|
|
660
|
+
* that mutate the table out-of-band to simulate cross-session state. */
|
|
661
|
+
__resetReprojectionMarkerCache(): void;
|
|
662
|
+
private _addTypeInTx;
|
|
663
|
+
private _removeTypeInTx;
|
|
664
|
+
/** Strict: throws `BlockNotFoundForTypeError` if `blockId` is missing
|
|
665
|
+
* or tombstoned at write time. Use when the caller's correctness
|
|
666
|
+
* depends on the tag actually landing (orchestration / fan-out
|
|
667
|
+
* paths). For the lenient variant that silently no-ops on a missing
|
|
668
|
+
* block, see `addTypeInTxLenient` and (in-tx) the dedicated lenient
|
|
669
|
+
* entry points. */
|
|
670
|
+
addType(blockId: string, typeId: string, initialValues?: Readonly<Record<string, unknown>>): Promise<void>;
|
|
671
|
+
/** Strict in-tx variant. Throws `BlockNotFoundForTypeError` if the
|
|
672
|
+
* target block is missing or tombstoned. The default for orchestration
|
|
673
|
+
* code; pair with the lenient variant only when racing a concurrent
|
|
674
|
+
* delete is legitimate (sync-apply / processor paths). */
|
|
675
|
+
addTypeInTx(tx: Tx, blockId: string, typeId: string, initialValues?: Readonly<Record<string, unknown>>, snapshot?: TypeRegistrySnapshot): Promise<void>;
|
|
676
|
+
/** Lenient in-tx variant — silently no-ops if the target block is
|
|
677
|
+
* missing or tombstoned. Reserved for sync-apply / processor paths
|
|
678
|
+
* that may legitimately observe a concurrent delete between
|
|
679
|
+
* pre-tx state and tx-start. New orchestration code should prefer
|
|
680
|
+
* `addTypeInTx` (strict) so a footgun like the Roam-isa adoption
|
|
681
|
+
* bug (PR #47) can't be expressed. */
|
|
682
|
+
addTypeInTxLenient(tx: Tx, blockId: string, typeId: string, initialValues?: Readonly<Record<string, unknown>>, snapshot?: TypeRegistrySnapshot): Promise<void>;
|
|
683
|
+
removeType(blockId: string, typeId: string): Promise<void>;
|
|
684
|
+
removeTypeInTx(tx: Tx, blockId: string, typeId: string): Promise<void>;
|
|
685
|
+
toggleType(blockId: string, typeId: string): Promise<void>;
|
|
686
|
+
setBlockTypes(blockId: string, typeIds: readonly string[]): Promise<void>;
|
|
687
|
+
/** Constructor-time rebuild step factory. Each step closes over
|
|
688
|
+
* `this`; runs at full setFacetRuntime AND when its inputs' runtime
|
|
689
|
+
* contributions change. Order matters: types runs before
|
|
690
|
+
* propertySchemas (the merge folds in type-lifted schemas);
|
|
691
|
+
* propertySchemas runs before query swap if a future step ever
|
|
692
|
+
* needs it. */
|
|
693
|
+
private _makeRebuildSteps;
|
|
694
|
+
/** Replace the query registry, bumping the per-name generation
|
|
695
|
+
* counter for every name whose registered Query instance changed
|
|
696
|
+
* (including newly-added and removed names). This invalidates the
|
|
697
|
+
* handle-store keys for those queries so subsequent dispatch
|
|
698
|
+
* produces fresh `LoaderHandle`s bound to the new resolvers. */
|
|
699
|
+
private swapQueries;
|
|
700
|
+
/** Wait until the post-commit processor framework has nothing
|
|
701
|
+
* pending — useful in tests + scripted scenarios that need
|
|
702
|
+
* deterministic ordering after a `repo.tx` resolves. Does NOT
|
|
703
|
+
* advance timers; jobs scheduled with `delayMs` only enter the
|
|
704
|
+
* pending set when the timer fires. */
|
|
705
|
+
awaitProcessors(): Promise<void>;
|
|
706
|
+
/** Test-only escape hatch retained for stage-level tests that wire
|
|
707
|
+
* specific processor sets without a FacetRuntime. */
|
|
708
|
+
__setProcessorsForTesting(processors: ReadonlyArray<AnyPostCommitProcessor>): void;
|
|
709
|
+
/** Test-only mirror of `__setProcessorsForTesting` for same-tx
|
|
710
|
+
* processors. Used by stage-level tests that need to exercise
|
|
711
|
+
* the in-tx runner without going through the facet runtime. */
|
|
712
|
+
__setSameTxProcessorsForTesting(processors: ReadonlyArray<AnySameTxProcessor>): void;
|
|
713
|
+
/** Build the dispatcher closure for a mutator name. Resolution order:
|
|
714
|
+
* 1. literal `name` (kernel full-name like `'core.indent'`,
|
|
715
|
+
* plugin full-name like `'tasks:setDueDate'`)
|
|
716
|
+
* 2. `'core.${name}'` (so `repo.mutate.indent` resolves to
|
|
717
|
+
* `'core.indent'` even though the registry key is full-prefixed)
|
|
718
|
+
* Throws `MutatorNotRegisteredError` if neither matches. */
|
|
719
|
+
private dispatchMutator;
|
|
720
|
+
/** Internal: register an array of mutators into the registry by name.
|
|
721
|
+
* Used by the constructor's `registerKernel: true` path. */
|
|
722
|
+
private registerMutators;
|
|
723
|
+
/** Test-only escape hatch retained for stage 1.3 carryover tests
|
|
724
|
+
* that wired specific mutator sets without a FacetRuntime. New
|
|
725
|
+
* tests should prefer `setFacetRuntime` or the
|
|
726
|
+
* `registerKernel: false` constructor flag plus `setFacetRuntime`. */
|
|
727
|
+
__setMutatorsForTesting(mutators: ReadonlyArray<AnyMutator>): void;
|
|
728
|
+
/** Build the dispatcher closure for a query name. Same resolution
|
|
729
|
+
* order as `dispatchMutator`: literal name first, then
|
|
730
|
+
* `'core.${name}'`. The returned closure validates args via the
|
|
731
|
+
* query's `argsSchema`, then `getOrCreate`s an identity-stable
|
|
732
|
+
* `LoaderHandle` keyed by `(queryName, args)`. The loader wraps the
|
|
733
|
+
* query's `resolve` with a `QueryCtx` that forwards `depend` to the
|
|
734
|
+
* handle's `ResolveContext` and exposes `db` / `repo` /
|
|
735
|
+
* `hydrateBlocks`. */
|
|
736
|
+
private dispatchQuery;
|
|
737
|
+
/** Test-only escape hatch parallel to `__setMutatorsForTesting`.
|
|
738
|
+
* Bypasses the FacetRuntime so unit tests can register a single
|
|
739
|
+
* query without standing up a full kernel runtime. Routes through
|
|
740
|
+
* `swapQueries` so generation bookkeeping stays consistent with
|
|
741
|
+
* the production `setFacetRuntime` path. */
|
|
742
|
+
__setQueriesForTesting(queries: ReadonlyArray<AnyQuery>): void;
|
|
743
|
+
}
|
|
744
|
+
export {};
|
|
745
|
+
//# sourceMappingURL=repo.d.ts.map
|