@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,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursive CTEs for tree operations against the v2 blocks schema (§11
|
|
3
|
+
* of the data-layer redesign). Two guards on every recursion:
|
|
4
|
+
*
|
|
5
|
+
* 1. `depth < 100` — defensive cap. Catches pathological non-cycle
|
|
6
|
+
* deep trees and is the safety net if the visited-id guard fails.
|
|
7
|
+
*
|
|
8
|
+
* 2. `INSTR(path, '!' || hex(id) || '/') = 0` — visited-id check via
|
|
9
|
+
* path-INSTR. Skips any row whose id already appears in the
|
|
10
|
+
* recursion path-so-far. **Without this guard, UNION ALL would
|
|
11
|
+
* re-emit cycle members on every loop iteration**, exploding the
|
|
12
|
+
* result. With it, each block appears at most once.
|
|
13
|
+
*
|
|
14
|
+
* Path encoding: `!hex(id)/` segments separated by `<order_key>`.
|
|
15
|
+
* - `hex()` makes the path lexically safe regardless of id format
|
|
16
|
+
* (block ids may contain `/`; e.g. deterministic `daily/<ws>/<date>`).
|
|
17
|
+
* - `!` (0x21) is the in-segment separator: lexicographically less
|
|
18
|
+
* than every char in any order_key alphabet (digits, lowercase
|
|
19
|
+
* letters, `_`) AND every uppercase hex char (`0-9A-F`). This is
|
|
20
|
+
* what makes `ORDER BY path` produce correct sibling ordering when
|
|
21
|
+
* one order_key is a prefix of another (e.g. keys `a` and `aa` —
|
|
22
|
+
* comparing position-by-position, `a == a`, then `!` < `a` →
|
|
23
|
+
* `a!hex1/` sorts before `aa!hex2/`).
|
|
24
|
+
* - Trailing `/` per segment makes the visited-id INSTR match
|
|
25
|
+
* unambiguous (`!hex/` is found only as a complete segment, never
|
|
26
|
+
* as a prefix of a longer hex).
|
|
27
|
+
*
|
|
28
|
+
* Path is internal to the CTE; consumers ignore it.
|
|
29
|
+
*/
|
|
30
|
+
/** Returns the rooted subtree, ordered by path (i.e. depth-first, with
|
|
31
|
+
* siblings sorted by `(order_key, id)` via the path encoding). Filters
|
|
32
|
+
* `deleted = 0`. */
|
|
33
|
+
export declare const SUBTREE_SQL = "\n WITH RECURSIVE subtree AS (\n SELECT *,\n '!' || hex(id) || '/' AS path,\n 0 AS depth\n FROM blocks\n WHERE id = ? AND deleted = 0\n UNION ALL\n SELECT child.*,\n subtree.path || child.order_key || '!' || hex(child.id) || '/',\n subtree.depth + 1\n FROM subtree\n JOIN blocks AS child ON child.parent_id = subtree.id\n WHERE child.deleted = 0\n AND subtree.depth < 100\n AND INSTR(subtree.path, '!' || hex(child.id) || '/') = 0\n )\n SELECT * FROM subtree ORDER BY path\n";
|
|
34
|
+
/** Returns the leaf-to-root chain, excluding the start id. Filters
|
|
35
|
+
* `deleted = 0`. */
|
|
36
|
+
export declare const ANCESTORS_SQL = "\n WITH RECURSIVE chain AS (\n SELECT *,\n '!' || hex(id) || '/' AS path,\n 0 AS depth\n FROM blocks\n WHERE id = ? AND deleted = 0\n UNION ALL\n SELECT parent.*,\n chain.path || '!' || hex(parent.id) || '/',\n chain.depth + 1\n FROM chain\n JOIN blocks AS parent ON parent.id = chain.parent_id\n WHERE parent.deleted = 0\n AND chain.depth < 100\n AND INSTR(chain.path, '!' || hex(parent.id) || '/') = 0\n )\n SELECT * FROM chain WHERE id != ? ORDER BY depth ASC\n";
|
|
37
|
+
/** Many-id variant of `ANCESTORS_SQL` — runs the recursive walk for
|
|
38
|
+
* every seed id in one statement, tagging each row with the seed it
|
|
39
|
+
* belongs to. Used by `core.manyAncestors` to avoid N round-trips
|
|
40
|
+
* when a backlinks panel needs the parent chain for every visible
|
|
41
|
+
* source block.
|
|
42
|
+
*
|
|
43
|
+
* Caller supplies `idCount` `?` placeholders bound to the seed ids;
|
|
44
|
+
* ordering of the input array is not preserved in the result, so
|
|
45
|
+
* consumers must group by `chain_start_id` themselves. Each chain is
|
|
46
|
+
* returned leaf-to-root (ascending `depth`) so it matches the
|
|
47
|
+
* single-id `ANCESTORS_SQL` shape exactly. */
|
|
48
|
+
export declare const manyAncestorsSql: (idCount: number) => string;
|
|
49
|
+
/** Existence check: is :potentialAncestor an ancestor of :id?
|
|
50
|
+
* Used by `tx.move`'s cycle-validation: would the new parent be a
|
|
51
|
+
* descendant of `id`? Parameter order in the SQL: `?, ?` for
|
|
52
|
+
* `(id, potentialAncestor)`. */
|
|
53
|
+
export declare const IS_DESCENDANT_OF_SQL = "\n WITH RECURSIVE chain AS (\n SELECT id, parent_id,\n '!' || hex(id) || '/' AS path,\n 0 AS depth\n FROM blocks\n WHERE id = ? AND deleted = 0\n UNION ALL\n SELECT b.id, b.parent_id,\n chain.path || '!' || hex(b.id) || '/',\n chain.depth + 1\n FROM blocks AS b\n JOIN chain ON chain.parent_id = b.id\n WHERE b.deleted = 0\n AND chain.depth < 100\n AND INSTR(chain.path, '!' || hex(b.id) || '/') = 0\n )\n SELECT 1 AS hit FROM chain WHERE id = ? LIMIT 1\n";
|
|
54
|
+
/** Bounded scan over a set of affected ids — for each id, walks up
|
|
55
|
+
* parent_id and, if its chain closes onto itself, reports every id
|
|
56
|
+
* visited along that closing chain (i.e. every member of the cycle
|
|
57
|
+
* the input id is part of). Used by the row_events tail to surface
|
|
58
|
+
* sync-introduced cycles (§4.7 detection-only telemetry).
|
|
59
|
+
*
|
|
60
|
+
* Parameter shape: pass `idCount` `?` placeholders bound to the ids
|
|
61
|
+
* to scan. Caller is responsible for matching the count.
|
|
62
|
+
*
|
|
63
|
+
* Why report every cycle member, not just the input id that closed:
|
|
64
|
+
* drains can split per-row when sync-applied writes arrive in
|
|
65
|
+
* separate `db.onChange` ticks. For a 2-cycle A↔B introduced by two
|
|
66
|
+
* sync writes (A.parent←B, then B.parent←A), the drain that sees
|
|
67
|
+
* the first write scans `idList=[A]` against pre-second-write state
|
|
68
|
+
* and finds nothing; only the second drain (idList=[B], post-both-
|
|
69
|
+
* writes) sees the cycle. Reporting just `start_id` would emit
|
|
70
|
+
* `[B]` and lose A. Reporting the full cycle (`[A, B]`) gives
|
|
71
|
+
* consumers a complete view from any single drain that catches the
|
|
72
|
+
* closure, regardless of which member's mutation triggered the
|
|
73
|
+
* drain. The column alias stays `start_id` so the surface caller
|
|
74
|
+
* reads (`hits.map(h => h.start_id)`) is unchanged.
|
|
75
|
+
*
|
|
76
|
+
* Why scoped to affected ids (not all blocks): cycle scans are O(n)
|
|
77
|
+
* per starting row and we don't need to find every cycle in the DB
|
|
78
|
+
* — only the ones the just-applied sync writes might have closed. */
|
|
79
|
+
export declare const cycleScanSql: (idCount: number) => string;
|
|
80
|
+
/** Direct children of a parent, ordered `(order_key, id)`, filtered
|
|
81
|
+
* `deleted = 0`. */
|
|
82
|
+
export declare const CHILDREN_SQL = "\n SELECT * FROM blocks\n WHERE parent_id = ? AND deleted = 0\n ORDER BY order_key, id\n";
|
|
83
|
+
/** Same as CHILDREN_SQL but returns only `id` — for the child-id-only
|
|
84
|
+
* handle (`repo.childIds`) which doesn't need to hydrate the full row
|
|
85
|
+
* and only declares structural deps (`parent-edge`). */
|
|
86
|
+
export declare const CHILDREN_IDS_SQL = "\n SELECT id FROM blocks\n WHERE parent_id = ? AND deleted = 0\n ORDER BY order_key, id\n";
|
|
87
|
+
//# sourceMappingURL=treeQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"treeQueries.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/treeQueries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;qBAEqB;AACrB,eAAO,MAAM,WAAW,sjBAkBvB,CAAA;AAED;qBACqB;AACrB,eAAO,MAAM,aAAa,4iBAkBzB,CAAA;AAED;;;;;;;;;;+CAU+C;AAC/C,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,KAAG,MA0BlD,CAAA;AAED;;;iCAGiC;AACjC,eAAO,MAAM,oBAAoB,miBAkBhC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;sEAwBsE;AACtE,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,KAAG,MAqB9C,CAAA;AAED;qBACqB;AACrB,eAAO,MAAM,YAAY,kGAIxB,CAAA;AAED;;yDAEyD;AACzD,eAAO,MAAM,gBAAgB,mGAI5B,CAAA"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tx engine — implements the public `Tx` interface (`src/data/api/tx.ts`)
|
|
3
|
+
* over a PowerSync `writeTransaction` callback context. Spec §5.3, §10.
|
|
4
|
+
*
|
|
5
|
+
* Write-through to SQL: every primitive runs INSERT / UPDATE inline
|
|
6
|
+
* against the writeTransaction's lock context. Triggers fire per
|
|
7
|
+
* primitive (row_events written, upload routing decided). The engine
|
|
8
|
+
* captures `(before, after)` per id in a tx-private snapshots map for
|
|
9
|
+
* commit-walk handle diffing + undo recording. The shared cache is NOT
|
|
10
|
+
* mutated mid-tx (v4.24) — outside-tx readers see only committed state.
|
|
11
|
+
*
|
|
12
|
+
* Reads:
|
|
13
|
+
* - `tx.get` / `tx.childrenOf` / `tx.parentOf` — SQL via the
|
|
14
|
+
* writeTransaction (read-your-own-writes natively).
|
|
15
|
+
* - `tx.peek` — sync; snapshots map first (own writes), then the
|
|
16
|
+
* pre-tx cache; never reads SQL.
|
|
17
|
+
*
|
|
18
|
+
* What lives here: primitives, cycle check, single-workspace pin,
|
|
19
|
+
* snapshots capture, codec at the four boundary sites.
|
|
20
|
+
*
|
|
21
|
+
* What lives in `commitPipeline.ts`: the writeTransaction shell,
|
|
22
|
+
* tx_context set/clear, command_events insert, post-commit cache walk,
|
|
23
|
+
* undo recording, afterCommit dispatch.
|
|
24
|
+
*/
|
|
25
|
+
import type { AnyMutator, AnyPostCommitProcessor, BlockData, BlockDataPatch, ChangeScope, Mutator, NewBlockData, PropertySchema, Tx, TxMeta, TxSource, TxWriteOpts, User } from '@/data/api';
|
|
26
|
+
import { type SnapshotsMap } from './txSnapshots';
|
|
27
|
+
import type { BlockCache } from '@/data/blockCache';
|
|
28
|
+
/** Minimal subset of `@powersync/common`'s `LockContext` we actually use.
|
|
29
|
+
* Production passes the real type; the test harness's
|
|
30
|
+
* `writeTransaction` callback exposes the same shape. */
|
|
31
|
+
export interface TxDb {
|
|
32
|
+
execute(sql: string, params?: unknown[]): Promise<unknown>;
|
|
33
|
+
getAll<T>(sql: string, params?: unknown[]): Promise<T[]>;
|
|
34
|
+
getOptional<T>(sql: string, params?: unknown[]): Promise<T | null>;
|
|
35
|
+
get<T>(sql: string, params?: unknown[]): Promise<T>;
|
|
36
|
+
}
|
|
37
|
+
/** Per-tx scheduling record produced by `tx.afterCommit`. The commit
|
|
38
|
+
* pipeline picks these up post-commit; rollback discards them. */
|
|
39
|
+
export interface AfterCommitJob {
|
|
40
|
+
processorName: string;
|
|
41
|
+
args: unknown;
|
|
42
|
+
delayMs?: number;
|
|
43
|
+
}
|
|
44
|
+
/** A single mutator call captured during the tx — pushed by `tx.run`
|
|
45
|
+
* (spec §4.4 / §13.3). Written into `command_events.mutator_calls`
|
|
46
|
+
* as JSON at commit time so audit and undo can see what each tx did
|
|
47
|
+
* in mutator-grain terms, not just the row-grain row_events log. */
|
|
48
|
+
export interface MutatorCallRecord {
|
|
49
|
+
name: string;
|
|
50
|
+
args: unknown;
|
|
51
|
+
}
|
|
52
|
+
/** Construction context for `TxImpl`. The pipeline assembles this and
|
|
53
|
+
* hands it off; primitives use the fields directly. */
|
|
54
|
+
export interface TxImplContext {
|
|
55
|
+
txDb: TxDb;
|
|
56
|
+
snapshots: SnapshotsMap;
|
|
57
|
+
cache: BlockCache;
|
|
58
|
+
meta: TxMeta;
|
|
59
|
+
afterCommitJobs: AfterCommitJob[];
|
|
60
|
+
/** Mutable list of mutator calls captured during the tx. Pushed by
|
|
61
|
+
* `tx.run`; the pipeline pre-populates with the outermost call from
|
|
62
|
+
* `repo.mutate.X` / `repo.run`. JSON-serialized into
|
|
63
|
+
* `command_events.mutator_calls` at commit time. */
|
|
64
|
+
mutatorCalls: MutatorCallRecord[];
|
|
65
|
+
/** Now provider — injected for testability (deterministic timestamps). */
|
|
66
|
+
now: () => number;
|
|
67
|
+
/** Mutator registry snapshot (taken at tx start). For stage 1.3 the
|
|
68
|
+
* registry is empty in v1; tx.run with an unregistered mutator
|
|
69
|
+
* throws MutatorNotRegisteredError. */
|
|
70
|
+
mutators: ReadonlyMap<string, AnyMutator>;
|
|
71
|
+
/** Processor registry snapshot (taken at tx start). Used by
|
|
72
|
+
* `tx.afterCommit` to validate `scheduledArgs` against the
|
|
73
|
+
* processor's `scheduledArgsSchema` at enqueue time so a bad arg
|
|
74
|
+
* fails the originating tx (clean rollback) instead of failing
|
|
75
|
+
* later at fire time. */
|
|
76
|
+
processors: ReadonlyMap<string, AnyPostCommitProcessor>;
|
|
77
|
+
/** UUID generator — injected for testability. */
|
|
78
|
+
newId: () => string;
|
|
79
|
+
}
|
|
80
|
+
export declare class TxImpl implements Tx {
|
|
81
|
+
readonly meta: TxMeta;
|
|
82
|
+
private readonly ctx;
|
|
83
|
+
/** True once `meta.workspaceId` has been pinned by the first write
|
|
84
|
+
* (or first write candidate that the engine validated to insert). */
|
|
85
|
+
private workspacePinned;
|
|
86
|
+
constructor(ctx: TxImplContext);
|
|
87
|
+
get(id: string): Promise<BlockData | null>;
|
|
88
|
+
peek(id: string): BlockData | null;
|
|
89
|
+
create(data: NewBlockData, opts?: TxWriteOpts): Promise<string>;
|
|
90
|
+
createOrGet(data: NewBlockData & {
|
|
91
|
+
id: string;
|
|
92
|
+
}, opts?: TxWriteOpts): Promise<{
|
|
93
|
+
id: string;
|
|
94
|
+
inserted: boolean;
|
|
95
|
+
}>;
|
|
96
|
+
delete(id: string): Promise<void>;
|
|
97
|
+
restore(id: string, patch?: BlockDataPatch, opts?: TxWriteOpts): Promise<void>;
|
|
98
|
+
update(id: string, patch: BlockDataPatch, opts?: TxWriteOpts): Promise<void>;
|
|
99
|
+
move(id: string, target: {
|
|
100
|
+
parentId: string | null;
|
|
101
|
+
orderKey: string;
|
|
102
|
+
}, opts?: TxWriteOpts): Promise<void>;
|
|
103
|
+
setProperty<T>(id: string, schema: PropertySchema<T>, value: T, opts?: TxWriteOpts): Promise<void>;
|
|
104
|
+
getProperty<T>(id: string, schema: PropertySchema<T>): Promise<T>;
|
|
105
|
+
run<Args, R>(mutator: Mutator<Args, R>, args: Args): Promise<R>;
|
|
106
|
+
childrenOf(parentId: string | null, workspaceId?: string): Promise<BlockData[]>;
|
|
107
|
+
parentOf(childId: string): Promise<BlockData | null>;
|
|
108
|
+
aliasLookup(alias: string, workspaceId: string): Promise<BlockData | null>;
|
|
109
|
+
afterCommit<P extends string>(processorName: P, args: unknown, options?: {
|
|
110
|
+
delayMs?: number;
|
|
111
|
+
}): void;
|
|
112
|
+
/** Drive the row at `id` to exactly `target` (or soft-delete if target
|
|
113
|
+
* is null). Bypasses the public primitives — intentionally — because
|
|
114
|
+
* undo replay restores arbitrary snapshot state that the narrow patch
|
|
115
|
+
* shape of `tx.update` can't express (e.g. `parent_id` + `order_key`
|
|
116
|
+
* + `deleted` flipping in one write). Spec §10 step 7 + the
|
|
117
|
+
* BlockDataPatch comment in `api/blockData.ts`.
|
|
118
|
+
*
|
|
119
|
+
* Cycle / parent-deleted UX checks are skipped: the snapshot was
|
|
120
|
+
* captured from a previously-committed tx, so the target state is
|
|
121
|
+
* known to be valid (the engine validated it then). The
|
|
122
|
+
* workspace-invariant trigger still fires on UPDATE-of-parent_id, so
|
|
123
|
+
* the storage-level guarantee holds. `updatedAt` / `updatedBy` are
|
|
124
|
+
* stamped to the replay tx's user + now() — a redo at 10:01 by user
|
|
125
|
+
* B is correctly attributed to B@10:01, not the original write.
|
|
126
|
+
*
|
|
127
|
+
* Captures `(currentRow, applied)` into the snapshots map so the
|
|
128
|
+
* pipeline's commit-walk updates the cache and fires handles for the
|
|
129
|
+
* rolled-back row. */
|
|
130
|
+
applyRaw(id: string, target: BlockData | null): Promise<void>;
|
|
131
|
+
/** Validate that a write to `workspaceId` is allowed in this tx.
|
|
132
|
+
* Pre-pin (no writes yet) anything goes. Post-pin, must match. */
|
|
133
|
+
private checkWorkspace;
|
|
134
|
+
/** Pin the tx's workspace_id from the first successful primitive.
|
|
135
|
+
* Idempotent. Mutates `this.meta` so external readers see the pin. */
|
|
136
|
+
private pinWorkspace;
|
|
137
|
+
private metadataPatch;
|
|
138
|
+
/** Build a fresh BlockData for `tx.create` / `tx.createOrGet` insert
|
|
139
|
+
* paths. Engine sets all four metadata columns from tx_context unless
|
|
140
|
+
* `opts.skipMetadata` (used only by bookkeeping writes). */
|
|
141
|
+
private buildNewBlockRow;
|
|
142
|
+
private requireExisting;
|
|
143
|
+
private requireParentInWorkspace;
|
|
144
|
+
}
|
|
145
|
+
/** Build the initial `meta` for a tx — used by the pipeline at the
|
|
146
|
+
* start of `repo.tx`. The workspaceId starts null; the first write
|
|
147
|
+
* primitive pins it. */
|
|
148
|
+
export declare const newTxMeta: (params: {
|
|
149
|
+
txId: string;
|
|
150
|
+
scope: ChangeScope;
|
|
151
|
+
source: TxSource;
|
|
152
|
+
user: User;
|
|
153
|
+
description?: string;
|
|
154
|
+
}) => TxMeta;
|
|
155
|
+
//# sourceMappingURL=txEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"txEngine.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/txEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,sBAAsB,EACtB,SAAS,EACT,cAAc,EACd,WAAW,EACX,OAAO,EACP,YAAY,EACZ,cAAc,EACd,EAAE,EACF,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACL,MAAM,YAAY,CAAA;AAqBnB,OAAO,EAAe,KAAK,YAAY,EAAgB,MAAM,eAAe,CAAA;AAG5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;0DAE0D;AAC1D,MAAM,WAAW,IAAI;IACnB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1D,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAA;IACxD,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;IAClE,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CACpD;AAED;mEACmE;AACnE,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CAGjB;AAED;;;qEAGqE;AACrE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;CACd;AAED;wDACwD;AACxD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAA;IACV,SAAS,EAAE,YAAY,CAAA;IACvB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC;;;yDAGqD;IACrD,YAAY,EAAE,iBAAiB,EAAE,CAAA;IACjC,0EAA0E;IAC1E,GAAG,EAAE,MAAM,MAAM,CAAA;IACjB;;4CAEwC;IACxC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACzC;;;;8BAI0B;IAC1B,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;IACvD,iDAAiD;IACjD,KAAK,EAAE,MAAM,MAAM,CAAA;CACpB;AAsBD,qBAAa,MAAO,YAAW,EAAE;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAe;IAEnC;0EACsE;IACtE,OAAO,CAAC,eAAe,CAAQ;gBAEnB,GAAG,EAAE,aAAa;IAUxB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAKhD,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAQ5B,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC;IAgB/D,WAAW,CACf,IAAI,EAAE,YAAY,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EACnC,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IAsCvC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBjC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAkC9E,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IA4B5E,IAAI,CACR,EAAE,EAAE,MAAM,EACV,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EACrD,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC;IAsCV,WAAW,CAAC,CAAC,EACjB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,KAAK,EAAE,CAAC,EACR,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC;IAkBV,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAWjE,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC;IA0B/D,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAuB/E,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAKpD,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAiBhF,WAAW,CAAC,CAAC,SAAS,MAAM,EAC1B,aAAa,EAAE,CAAC,EAChB,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAC7B,IAAI;IAoCP;;;;;;;;;;;;;;;;;2BAiBuB;IACjB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IA0EnE;uEACmE;IACnE,OAAO,CAAC,cAAc;IAMtB;2EACuE;IACvE,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,aAAa;IAQrB;;iEAE6D;IAC7D,OAAO,CAAC,gBAAgB;YA4BV,eAAe;YAMf,wBAAwB;CAcvC;AAaD;;yBAEyB;AACzB,eAAO,MAAM,SAAS,GAAI,QAAQ;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,WAAW,CAAA;IAClB,MAAM,EAAE,QAAQ,CAAA;IAChB,IAAI,EAAE,IAAI,CAAA;IACV,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,KAAG,MAOF,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-tx snapshots map. The single source of "what this tx wrote" — used
|
|
3
|
+
* by the commit pipeline (§10) for cache update + handle diffing + undo
|
|
4
|
+
* entry, and by `tx.peek` for sync within-tx reads.
|
|
5
|
+
*
|
|
6
|
+
* Capture rule: on the first touch of an id during a tx, the engine
|
|
7
|
+
* SELECTs the current row (`before`). Subsequent writes for the same id
|
|
8
|
+
* update `after`. On rollback the map is discarded — there is nothing to
|
|
9
|
+
* revert because the shared cache was never mutated mid-tx (v4.24).
|
|
10
|
+
*/
|
|
11
|
+
import type { BlockData } from '@/data/api';
|
|
12
|
+
export interface SnapshotEntry {
|
|
13
|
+
/** State at first touch. `null` means no row existed when this tx
|
|
14
|
+
* first looked at the id (i.e. the tx is creating it). */
|
|
15
|
+
before: BlockData | null;
|
|
16
|
+
/** State after this tx's most recent write. `null` means hard-delete
|
|
17
|
+
* (not used by tx primitives in v1; soft-delete keeps the row with
|
|
18
|
+
* `deleted: true`). */
|
|
19
|
+
after: BlockData | null;
|
|
20
|
+
}
|
|
21
|
+
/** Tx-private snapshots map. One per `repo.tx` invocation. */
|
|
22
|
+
export type SnapshotsMap = Map<string, SnapshotEntry>;
|
|
23
|
+
export declare const newSnapshotsMap: () => SnapshotsMap;
|
|
24
|
+
/** Record a write. If this is the first touch of `id`, `before` is the
|
|
25
|
+
* passed-in current state (the engine SELECTed it just before issuing
|
|
26
|
+
* the write). On subsequent writes, `before` is preserved and only
|
|
27
|
+
* `after` is updated. */
|
|
28
|
+
export declare const recordWrite: (snapshots: SnapshotsMap, id: string, before: BlockData | null, after: BlockData | null) => void;
|
|
29
|
+
/** Look up an own-write for a given id. Used by `tx.peek` to see this
|
|
30
|
+
* tx's pending writes before the cache. */
|
|
31
|
+
export declare const peekSnapshot: (snapshots: SnapshotsMap, id: string) => BlockData | null | undefined;
|
|
32
|
+
//# sourceMappingURL=txSnapshots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"txSnapshots.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/txSnapshots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;+DAC2D;IAC3D,MAAM,EAAE,SAAS,GAAG,IAAI,CAAA;IACxB;;4BAEwB;IACxB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAA;CACxB;AAED,8DAA8D;AAC9D,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;AAErD,eAAO,MAAM,eAAe,QAAO,YAAyB,CAAA;AAE5D;;;0BAG0B;AAC1B,eAAO,MAAM,WAAW,GACtB,WAAW,YAAY,EACvB,IAAI,MAAM,EACV,QAAQ,SAAS,GAAG,IAAI,EACxB,OAAO,SAAS,GAAG,IAAI,KACtB,IAOF,CAAA;AAED;4CAC4C;AAC5C,eAAO,MAAM,YAAY,GACvB,WAAW,YAAY,EACvB,IAAI,MAAM,KACT,SAAS,GAAG,IAAI,GAAG,SAGrB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type AnyPropertySchema, type BlockPredicate, type ResolvedTypedBlockQuery } from '@/data/api';
|
|
2
|
+
export interface CompiledTypedBlockQuery {
|
|
3
|
+
readonly sql: string;
|
|
4
|
+
readonly params: readonly unknown[];
|
|
5
|
+
}
|
|
6
|
+
export type TypedBlockQueryProjection = 'rows' | 'ids';
|
|
7
|
+
export declare const jsonPathForProperty: (name: string) => string;
|
|
8
|
+
export declare const normalizeTypedBlockQuery: (query: ResolvedTypedBlockQuery) => ResolvedTypedBlockQuery;
|
|
9
|
+
export declare const hasAncestorScope: (predicates: readonly BlockPredicate[]) => boolean;
|
|
10
|
+
/** Does this `where[name]` value narrow the candidate set, or does
|
|
11
|
+
* it only match rows lacking the property? `null` and the operator
|
|
12
|
+
* form `{exists: false}` are semantic duplicates — both compile to
|
|
13
|
+
* `IS NULL` — so both have to be classified as non-selective; if
|
|
14
|
+
* only one were, ancestor-gate and dep-wiring decisions would drift
|
|
15
|
+
* based on which shorthand the caller happened to use. */
|
|
16
|
+
export declare const isSelectiveWhereValue: (value: unknown) => boolean;
|
|
17
|
+
/** Ancestor-scope predicates require at least one candidate-bounding
|
|
18
|
+
* filter; otherwise the recursive walk seeds from every live block
|
|
19
|
+
* in the workspace. Throw before the walk runs — callers that
|
|
20
|
+
* pre-fetch ancestor dep nodes (e.g. `resolveTypedBlocks`) call this
|
|
21
|
+
* before issuing the dep SQL so an invalid query doesn't trigger
|
|
22
|
+
* exactly the expensive walk the gate is meant to prevent. */
|
|
23
|
+
export declare const assertAncestorWalkBounded: (query: ResolvedTypedBlockQuery) => void;
|
|
24
|
+
/** Build the `candidates AS (...)` CTE body that selects the
|
|
25
|
+
* fully self-filtered result set for a typed-block query. Shared
|
|
26
|
+
* between the main SQL compiler and the ancestor-dep seed walk in
|
|
27
|
+
* `resolveTypedBlocks` so both observe the SAME candidate set —
|
|
28
|
+
* the row-dep declarations stay scoped to rows that actually feed
|
|
29
|
+
* into the result. */
|
|
30
|
+
export declare const buildCandidatesCte: (query: ResolvedTypedBlockQuery, propertySchemas: ReadonlyMap<string, AnyPropertySchema>) => {
|
|
31
|
+
sql: string;
|
|
32
|
+
params: unknown[];
|
|
33
|
+
};
|
|
34
|
+
export declare const compileTypedBlockQuery: (query: ResolvedTypedBlockQuery, propertySchemas: ReadonlyMap<string, AnyPropertySchema>, opts?: {
|
|
35
|
+
projection?: TypedBlockQueryProjection;
|
|
36
|
+
}) => CompiledTypedBlockQuery;
|
|
37
|
+
//# sourceMappingURL=typedBlockQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedBlockQuery.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/typedBlockQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAE7B,MAAM,YAAY,CAAA;AAGnB,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAA;CACpC;AAED,MAAM,MAAM,yBAAyB,GAAG,MAAM,GAAG,KAAK,CAAA;AAEtD,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,MACY,CAAA;AA2U/D,eAAO,MAAM,wBAAwB,GACnC,OAAO,uBAAuB,KAC7B,uBAUD,CAAA;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,SAAS,cAAc,EAAE,KAAG,OAC3B,CAAA;AAK9C;;;;;2DAK2D;AAC3D,eAAO,MAAM,qBAAqB,GAAI,OAAO,OAAO,KAAG,OAOtD,CAAA;AAcD;;;;;+DAK+D;AAC/D,eAAO,MAAM,yBAAyB,GAAI,OAAO,uBAAuB,KAAG,IAmB1E,CAAA;AAED;;;;;uBAKuB;AACvB,eAAO,MAAM,kBAAkB,GAC7B,OAAO,uBAAuB,EAC9B,iBAAiB,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,KACtD;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,EAAE,CAAA;CAoEjC,CAAA;AA0BD,eAAO,MAAM,sBAAsB,GACjC,OAAO,uBAAuB,EAC9B,iBAAiB,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,EACvD,OAAM;IAAC,UAAU,CAAC,EAAE,yBAAyB,CAAA;CAAM,KAClD,uBAkDF,CAAA"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Undo / redo manager (spec §10 step 7, §17 line 2228).
|
|
3
|
+
*
|
|
4
|
+
* Per-scope undo + redo stacks. Every committed `repo.tx` whose scope
|
|
5
|
+
* is undoable (`BlockDefault`, `References`) gets one entry on its
|
|
6
|
+
* scope's undo stack — the entry holds the tx's snapshots map, which
|
|
7
|
+
* already captures `(before, after)` per touched id. Replay walks the
|
|
8
|
+
* map and uses `TxImpl.applyRaw` to drive each row to either `before`
|
|
9
|
+
* (undo direction) or `after` (redo direction). Replays themselves
|
|
10
|
+
* are not recorded on the undo stack — they push the SAME entry across
|
|
11
|
+
* stacks (manager-managed), so the cycle is symmetric and idempotent
|
|
12
|
+
* across repeated undo/redo presses.
|
|
13
|
+
*
|
|
14
|
+
* What this is NOT:
|
|
15
|
+
* - Checkpoint coalescing for fine-grained typing (§16.4 — deferred).
|
|
16
|
+
* v1 granularity is one entry per `repo.tx`; CodeMirror's internal
|
|
17
|
+
* undo handles per-keystroke during edit-mode, and the document
|
|
18
|
+
* write happens once on save/blur — already coarse-grained.
|
|
19
|
+
* - Events-derived undo (§16.6 — deferred). row_events.before_json
|
|
20
|
+
* enables a future drift-tolerant variant; for now snapshots are
|
|
21
|
+
* in-memory only.
|
|
22
|
+
*
|
|
23
|
+
* Scope semantics:
|
|
24
|
+
* - `BlockDefault` — user undo stack (the cmd-Z target).
|
|
25
|
+
* - `References` — separate bucket; recorded for parity with the spec
|
|
26
|
+
* but not exposed to user undo (§7.3, §5.8). `repo.undo` defaults
|
|
27
|
+
* to `BlockDefault`.
|
|
28
|
+
* - `UserPrefs` — never recorded. Preference writes sync, but cmd-Z
|
|
29
|
+
* should not toggle recents / app settings.
|
|
30
|
+
* - `UiState` — never recorded (selection / focus state isn't
|
|
31
|
+
* undoable). The `record` call no-ops on this scope.
|
|
32
|
+
*/
|
|
33
|
+
import { ChangeScope } from '@/data/api';
|
|
34
|
+
import type { SnapshotsMap } from './txSnapshots';
|
|
35
|
+
export interface UndoEntry {
|
|
36
|
+
scope: ChangeScope;
|
|
37
|
+
txId: string;
|
|
38
|
+
snapshots: SnapshotsMap;
|
|
39
|
+
description?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface UndoManagerOptions {
|
|
42
|
+
/** Cap per-scope stack depth. Older entries fall off. Default 100;
|
|
43
|
+
* matches typical editor undo bounds. */
|
|
44
|
+
maxDepth?: number;
|
|
45
|
+
}
|
|
46
|
+
export declare class UndoManager {
|
|
47
|
+
private readonly undoStacks;
|
|
48
|
+
private readonly redoStacks;
|
|
49
|
+
private readonly listenersByScope;
|
|
50
|
+
private readonly maxDepth;
|
|
51
|
+
constructor(opts?: UndoManagerOptions);
|
|
52
|
+
/** Push an entry onto the undo stack of its scope. Side-effects:
|
|
53
|
+
* clears the redo stack for that scope (a new action invalidates
|
|
54
|
+
* the redo branch). No-op for non-undoable scopes and zero-write txs.
|
|
55
|
+
*
|
|
56
|
+
* Subscriber-visible state must be consistent at notify-time, so the
|
|
57
|
+
* redo clear happens BEFORE pushUndo's notify fires — otherwise a
|
|
58
|
+
* listener that recomputes `depths()` would see the stale pre-clear
|
|
59
|
+
* redo count and keep redo UI enabled. */
|
|
60
|
+
record(entry: UndoEntry): void;
|
|
61
|
+
peekUndo(scope: ChangeScope): UndoEntry | null;
|
|
62
|
+
peekRedo(scope: ChangeScope): UndoEntry | null;
|
|
63
|
+
popUndo(scope: ChangeScope): UndoEntry | null;
|
|
64
|
+
popRedo(scope: ChangeScope): UndoEntry | null;
|
|
65
|
+
pushUndo(scope: ChangeScope, entry: UndoEntry): void;
|
|
66
|
+
pushRedo(scope: ChangeScope, entry: UndoEntry): void;
|
|
67
|
+
/** Subscribe to stack-shape changes for `scope`. Fires after any
|
|
68
|
+
* record / push / pop on either the undo or redo stack of that
|
|
69
|
+
* scope. Used by reactive UI (toast button enable-state, future
|
|
70
|
+
* Edit-menu Undo/Redo) to re-read `peekUndo` / `depths`. Returns
|
|
71
|
+
* an unsubscribe; listener exceptions are isolated by CallbackSet. */
|
|
72
|
+
subscribe(scope: ChangeScope, listener: () => void): () => void;
|
|
73
|
+
/** Drop all stacks (for tests + an eventual "clear history" UX).
|
|
74
|
+
* Notifies subscribers on every scope that previously had state. */
|
|
75
|
+
clear(): void;
|
|
76
|
+
/** Stack depths — used by UI to enable / disable undo/redo buttons. */
|
|
77
|
+
depths(scope: ChangeScope): {
|
|
78
|
+
undo: number;
|
|
79
|
+
redo: number;
|
|
80
|
+
};
|
|
81
|
+
/** Only document/reference scopes are undoable. */
|
|
82
|
+
private isUndoable;
|
|
83
|
+
private getUndo;
|
|
84
|
+
private getRedo;
|
|
85
|
+
private listenersFor;
|
|
86
|
+
private notify;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=undoManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undoManager.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/undoManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,WAAW,EAAmB,MAAM,YAAY,CAAA;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,WAAW,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,YAAY,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC;8CAC0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA2C;IACtE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA2C;IACtE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA+C;IAChF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAErB,IAAI,GAAE,kBAAuB;IAIzC;;;;;;;+CAO2C;IAC3C,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAO9B,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAI9C,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAI9C,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAM7C,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,IAAI;IAM7C,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI;IAOpD,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI;IAOpD;;;;2EAIuE;IACvE,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAI/D;yEACqE;IACrE,KAAK,IAAI,IAAI;IAUb,uEAAuE;IACvE,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAO1D,mDAAmD;IACnD,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,MAAM;CAGf"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { BlockData } from '@/data/api';
|
|
2
|
+
export type PluginInvalidationKeys = ReadonlySet<string> | readonly string[];
|
|
3
|
+
export type PluginInvalidationMap = ReadonlyMap<string, PluginInvalidationKeys>;
|
|
4
|
+
export interface ChangeSnapshotSide {
|
|
5
|
+
id?: string;
|
|
6
|
+
parentId: string | null;
|
|
7
|
+
orderKey?: string;
|
|
8
|
+
workspaceId: string;
|
|
9
|
+
deleted?: boolean;
|
|
10
|
+
/** Block content. Surfaced here for the kernel `content` invalidation
|
|
11
|
+
* channel — fires when content actually changes, so substring-search
|
|
12
|
+
* / recent-blocks queries don't invalidate on UiState property
|
|
13
|
+
* writes. Type-level only: runtime values are full `BlockData`
|
|
14
|
+
* snapshots that already carry `content`. */
|
|
15
|
+
content?: string;
|
|
16
|
+
references?: ReadonlyArray<{
|
|
17
|
+
id: string;
|
|
18
|
+
sourceField?: string;
|
|
19
|
+
}>;
|
|
20
|
+
/** Encoded property bag — same shape as `BlockData.properties`. Surfaced
|
|
21
|
+
* here so invalidation rules can diff per-property values without
|
|
22
|
+
* importing `BlockData`. The runtime values are full `BlockData`
|
|
23
|
+
* snapshots (`SnapshotEntry`); this type is the slim view rules see. */
|
|
24
|
+
properties?: Readonly<Record<string, unknown>>;
|
|
25
|
+
}
|
|
26
|
+
export interface ChangeSnapshot {
|
|
27
|
+
before: ChangeSnapshotSide | null;
|
|
28
|
+
after: ChangeSnapshotSide | null;
|
|
29
|
+
}
|
|
30
|
+
export interface InvalidationRowEvent {
|
|
31
|
+
blockId: string;
|
|
32
|
+
kind: string;
|
|
33
|
+
before: BlockData | null;
|
|
34
|
+
after: BlockData | null;
|
|
35
|
+
}
|
|
36
|
+
export type PluginInvalidationEmit = (channel: string, key: string) => void;
|
|
37
|
+
export interface InvalidationRule {
|
|
38
|
+
id: string;
|
|
39
|
+
collectFromSnapshots?: (snapshots: ReadonlyMap<string, ChangeSnapshot>, emit: PluginInvalidationEmit) => void;
|
|
40
|
+
collectFromRowEvent?: (event: InvalidationRowEvent, emit: PluginInvalidationEmit) => void;
|
|
41
|
+
}
|
|
42
|
+
export type MutablePluginInvalidationMap = Map<string, Set<string>>;
|
|
43
|
+
export declare const emitPluginInvalidation: (out: MutablePluginInvalidationMap, channel: string, key: string) => void;
|
|
44
|
+
export declare const createPluginInvalidationEmitter: (out: MutablePluginInvalidationMap) => PluginInvalidationEmit;
|
|
45
|
+
export declare const collectPluginInvalidationsFromSnapshots: (rules: readonly InvalidationRule[], snapshots: ReadonlyMap<string, ChangeSnapshot>) => PluginInvalidationMap | undefined;
|
|
46
|
+
export declare const pluginInvalidationSize: (pluginInvalidations: PluginInvalidationMap | undefined) => number;
|
|
47
|
+
//# sourceMappingURL=invalidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalidation.d.ts","sourceRoot":"","sources":["../../../../../../src/data/invalidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,MAAM,EAAE,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;AAE/E,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;kDAI8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAChE;;;6EAGyE;IACzE,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAC/C;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAAA;IACjC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,SAAS,GAAG,IAAI,CAAA;IACxB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;AAE3E,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,oBAAoB,CAAC,EAAE,CACrB,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,EAC9C,IAAI,EAAE,sBAAsB,KACzB,IAAI,CAAA;IACT,mBAAmB,CAAC,EAAE,CACpB,KAAK,EAAE,oBAAoB,EAC3B,IAAI,EAAE,sBAAsB,KACzB,IAAI,CAAA;CACV;AAED,MAAM,MAAM,4BAA4B,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;AAEnE,eAAO,MAAM,sBAAsB,GACjC,KAAK,4BAA4B,EACjC,SAAS,MAAM,EACf,KAAK,MAAM,KACV,IAQF,CAAA;AAED,eAAO,MAAM,+BAA+B,GAC1C,KAAK,4BAA4B,KAChC,sBAC0D,CAAA;AAE7D,eAAO,MAAM,uCAAuC,GAClD,OAAO,SAAS,gBAAgB,EAAE,EAClC,WAAW,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,KAC7C,qBAAqB,GAAG,SAM1B,CAAA;AAED,eAAO,MAAM,sBAAsB,GACjC,qBAAqB,qBAAqB,GAAG,SAAS,KACrD,MAOF,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kernel data-layer AppExtension — wraps the kernel mutators, queries,
|
|
3
|
+
* property schemas, and any core-only post-commit processors as facet
|
|
4
|
+
* contributions so the FacetRuntime carries them. The Repo bootstraps
|
|
5
|
+
* with kernel registries directly, but `repo.setFacetRuntime(runtime)`
|
|
6
|
+
* REPLACES those registries, so the runtime's data facets must include
|
|
7
|
+
* the kernel contributions to keep `repo.mutate.<kernel>` and
|
|
8
|
+
* `repo.query.<kernel>` working after that call.
|
|
9
|
+
*
|
|
10
|
+
* Property schemas (Phase 3 — chunk A): the kernel descriptors live
|
|
11
|
+
* in `data/properties.ts` + `data/internals/coreProperties.ts` and are
|
|
12
|
+
* exported as plain consts; this extension surfaces them through
|
|
13
|
+
* `propertySchemasFacet` so non-React surfaces (the property panel's
|
|
14
|
+
* schema lookup, future CLI / server-side audit) and plugin authors
|
|
15
|
+
* can resolve names through the same registry that plugin schemas
|
|
16
|
+
* register into.
|
|
17
|
+
*
|
|
18
|
+
* Queries (Phase 4 — chunk B): KERNEL_QUERIES are facet-contributed
|
|
19
|
+
* here so `repo.setFacetRuntime(runtime)` includes them alongside
|
|
20
|
+
* plugin queries. Repo also registers them at construction time
|
|
21
|
+
* (RepoOptions.registerKernelQueries, default true) so `repo.query.X`
|
|
22
|
+
* works pre-Stage-1 in the same way `repo.mutate.X` does — the
|
|
23
|
+
* setFacetRuntime call replaces the registry with the merged
|
|
24
|
+
* kernel + plugin set, so the kernel queries must be in the runtime
|
|
25
|
+
* to keep `repo.query.<kernel>` working after that call.
|
|
26
|
+
*
|
|
27
|
+
* No facet sources beyond the data layer here — UI facets
|
|
28
|
+
* (renderers, actions, contexts) live in their own extensions.
|
|
29
|
+
*/
|
|
30
|
+
import type { AppExtension } from '@/extensions/facet';
|
|
31
|
+
export declare const kernelDataExtension: AppExtension;
|
|
32
|
+
//# sourceMappingURL=kernelDataExtension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kernelDataExtension.d.ts","sourceRoot":"","sources":["../../../../../../src/data/kernelDataExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAkBH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGtD,eAAO,MAAM,mBAAmB,EAAE,YAahC,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Per-workspace kernel-page bootstrap. Each workspace owns a small set
|
|
2
|
+
* of singleton pages (Properties, Types, future Saved Queries /
|
|
3
|
+
* Dashboards / Command palette). They share a shape: deterministic
|
|
4
|
+
* uuid-v5 id derived from `workspaceId`, alias-based human-readable
|
|
5
|
+
* surface, navigable as a normal page (`PAGE_TYPE`) plus a marker
|
|
6
|
+
* block-type so `block_types`-indexed lookups can find them, and
|
|
7
|
+
* soft-delete-restore on first reach.
|
|
8
|
+
*
|
|
9
|
+
* Idempotent across offline launches — two clients booting offline
|
|
10
|
+
* converge on the same row at next sync.
|
|
11
|
+
*/
|
|
12
|
+
import { Block } from '@/data/block';
|
|
13
|
+
import type { Repo } from '@/data/repo';
|
|
14
|
+
export interface KernelPageSpec {
|
|
15
|
+
/** uuid v5 namespace; the page id is `uuidv5(workspaceId, namespace)`.
|
|
16
|
+
* Choose a fresh, randomly-generated namespace per page kind so two
|
|
17
|
+
* kernel pages never collide on the same row. */
|
|
18
|
+
namespace: string;
|
|
19
|
+
/** Primary alias. Used as the page's `content` and as the sole entry
|
|
20
|
+
* of its aliases prop. */
|
|
21
|
+
alias: string;
|
|
22
|
+
/** Marker block-type tagged alongside `PAGE_TYPE`. The marker is what
|
|
23
|
+
* callers query for (`subscribeBlocks({types: [markerType]})`). */
|
|
24
|
+
markerType: string;
|
|
25
|
+
/** OrderKey for the page under the workspace root. Defaults to 'a0';
|
|
26
|
+
* kernel pages share this value and tiebreak by id (stable enough
|
|
27
|
+
* for navigation, no uniqueness invariant to maintain). */
|
|
28
|
+
orderKey?: string;
|
|
29
|
+
}
|
|
30
|
+
/** Deterministic block id for a kernel page in a given workspace. */
|
|
31
|
+
export declare const kernelPageBlockId: (workspaceId: string, namespace: string) => string;
|
|
32
|
+
/** Get-or-create a per-workspace kernel page. Repairs a live page that's
|
|
33
|
+
* missing the expected types or alias; restores a soft-deleted row;
|
|
34
|
+
* otherwise creates fresh. */
|
|
35
|
+
export declare const getOrCreateKernelPage: (repo: Repo, workspaceId: string, spec: KernelPageSpec) => Promise<Block>;
|
|
36
|
+
//# sourceMappingURL=kernelPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kernelPage.d.ts","sourceRoot":"","sources":["../../../../../../src/data/kernelPage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAYvC,MAAM,WAAW,cAAc;IAC7B;;sDAEkD;IAClD,SAAS,EAAE,MAAM,CAAA;IACjB;+BAC2B;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb;wEACoE;IACpE,UAAU,EAAE,MAAM,CAAA;IAClB;;gEAE4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,EAAE,WAAW,MAAM,KAAG,MAC3C,CAAA;AAEhC;;+BAE+B;AAC/B,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,EACV,aAAa,MAAM,EACnB,MAAM,cAAc,KACnB,OAAO,CAAC,KAAK,CAmDf,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AppExtension } from '@/extensions/facet.js';
|
|
2
|
+
import { type LocalSchemaContribution, type LocalSchemaDb } from './facets.ts';
|
|
3
|
+
export declare const resolveLocalSchemaContributions: (extensions: readonly AppExtension[]) => readonly LocalSchemaContribution[];
|
|
4
|
+
export declare const applyLocalSchemaContributions: (db: LocalSchemaDb, contributions: readonly LocalSchemaContribution[]) => Promise<void>;
|
|
5
|
+
//# sourceMappingURL=localSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localSchema.d.ts","sourceRoot":"","sources":["../../../../../../src/data/localSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EACnB,MAAM,aAAa,CAAA;AAEpB,eAAO,MAAM,+BAA+B,GAC1C,YAAY,SAAS,YAAY,EAAE,KAClC,SAAS,uBAAuB,EACyB,CAAA;AAE5D,eAAO,MAAM,6BAA6B,GACxC,IAAI,aAAa,EACjB,eAAe,SAAS,uBAAuB,EAAE,KAChD,OAAO,CAAC,IAAI,CAYd,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Devtools-console hook for `repo.metrics()`. Mirrors the
|
|
3
|
+
* `ensureRoamImportWindowHook` pattern — idempotent, hung off the
|
|
4
|
+
* same `window.__omniliner` namespace.
|
|
5
|
+
*
|
|
6
|
+
* Quickest cold-start workflow:
|
|
7
|
+
*
|
|
8
|
+
* __omniliner.metrics.reset()
|
|
9
|
+
* // do the thing (open page, type a keystroke, scroll, etc.)
|
|
10
|
+
* __omniliner.metrics.print()
|
|
11
|
+
*
|
|
12
|
+
* `print()` formats the snapshot as console.table groups so percentile
|
|
13
|
+
* timings line up at a glance. `snapshot()` returns the raw frozen
|
|
14
|
+
* object if you want to programmatically diff two captures.
|
|
15
|
+
*
|
|
16
|
+
* Also exposes the `Repo` instance directly as
|
|
17
|
+
* `window.__omniliner.repo` so devtools-console one-liners
|
|
18
|
+
* (`__omniliner.repo.handleStore.size()`) work without a hook.
|
|
19
|
+
*/
|
|
20
|
+
import { Repo } from './repo';
|
|
21
|
+
export declare const ensureMetricsConsoleHook: (repo: Repo) => void;
|
|
22
|
+
//# sourceMappingURL=metricsConsoleHook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricsConsoleHook.d.ts","sourceRoot":"","sources":["../../../../../../src/data/metricsConsoleHook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AA+D7B,eAAO,MAAM,wBAAwB,GAAI,MAAM,IAAI,KAAG,IAsDrD,CAAA"}
|