@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,273 @@
|
|
|
1
|
+
/** Client-side SQLite schema additions on top of the PowerSync-managed
|
|
2
|
+
* `blocks` table. None of these tables are synced — they're the local
|
|
3
|
+
* mechanism for tx context, per-row audit, per-tx audit, upload routing,
|
|
4
|
+
* and local side indexes. The client-only triggers live here too —
|
|
5
|
+
* server-side Postgres has no `powersync_crud` and no need for any of
|
|
6
|
+
* them. See data-layer-redesign §4.2 / §4.3 / §4.4 / §4.5 / §4.1.1.
|
|
7
|
+
*
|
|
8
|
+
* Run from `repoProvider.ts` after PowerSync's own schema initialization:
|
|
9
|
+
*
|
|
10
|
+
* for (const stmt of CLIENT_SCHEMA_STATEMENTS) {
|
|
11
|
+
* await db.execute(stmt)
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
/** Single-row table. Triggers read it via
|
|
15
|
+
* `(SELECT … FROM tx_context WHERE id = 1)`. Why not a TEMP table:
|
|
16
|
+
* triggers in `main` schema cannot reference `temp.X` tables. The
|
|
17
|
+
* TxEngine sets all five fields at the start of `writeTransaction`
|
|
18
|
+
* and clears them (back to NULL) at the end.
|
|
19
|
+
*
|
|
20
|
+
* `tx_seq` is the integer tx-grouping key the upload-routing triggers
|
|
21
|
+
* copy into `ps_crud.tx_id`. PowerSync's `getNextCrudTransaction()`
|
|
22
|
+
* groups CRUD entries by `ps_crud.tx_id`; without it, a multi-row
|
|
23
|
+
* `repo.tx` uploads as N separate server-side transactions. The text
|
|
24
|
+
* `tx_id` (above) is what `row_events` records — distinct because
|
|
25
|
+
* audit doesn't need integer grouping and the text form is friendlier
|
|
26
|
+
* for log inspection. */
|
|
27
|
+
export declare const CREATE_TX_CONTEXT_TABLE_SQL = "\n CREATE TABLE IF NOT EXISTS tx_context (\n id INTEGER PRIMARY KEY CHECK (id = 1),\n tx_id TEXT,\n tx_seq INTEGER,\n user_id TEXT,\n scope TEXT,\n source TEXT\n )\n";
|
|
28
|
+
/** Idempotent seed of the single row. Re-runs are no-ops. */
|
|
29
|
+
export declare const SEED_TX_CONTEXT_ROW_SQL = "\n INSERT OR IGNORE INTO tx_context (id) VALUES (1)\n";
|
|
30
|
+
/** Per-row audit + invalidation log. Trigger-written. tx_id = NULL for
|
|
31
|
+
* sync-applied writes (see the COALESCE / CASE in the row_events
|
|
32
|
+
* triggers below). */
|
|
33
|
+
export declare const CREATE_ROW_EVENTS_TABLE_SQL = "\n CREATE TABLE IF NOT EXISTS row_events (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n tx_id TEXT,\n block_id TEXT NOT NULL,\n kind TEXT NOT NULL,\n before_json TEXT,\n after_json TEXT,\n source TEXT NOT NULL,\n created_at INTEGER NOT NULL\n )\n";
|
|
34
|
+
export declare const CREATE_ROW_EVENTS_TX_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_row_events_tx\n ON row_events (tx_id)\n";
|
|
35
|
+
export declare const CREATE_ROW_EVENTS_BLOCK_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_row_events_block\n ON row_events (block_id, created_at DESC)\n";
|
|
36
|
+
export declare const CREATE_ROW_EVENTS_CREATED_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_row_events_created\n ON row_events (created_at DESC)\n";
|
|
37
|
+
/** Per-tx metadata. One row per `repo.tx` invocation. Sync-applied writes
|
|
38
|
+
* don't go through `repo.tx` and therefore don't produce
|
|
39
|
+
* `command_events`. */
|
|
40
|
+
export declare const CREATE_COMMAND_EVENTS_TABLE_SQL = "\n CREATE TABLE IF NOT EXISTS command_events (\n tx_id TEXT PRIMARY KEY,\n description TEXT,\n scope TEXT NOT NULL,\n user_id TEXT NOT NULL,\n workspace_id TEXT,\n mutator_calls TEXT NOT NULL,\n source TEXT NOT NULL,\n created_at INTEGER NOT NULL\n )\n";
|
|
41
|
+
export declare const CREATE_COMMAND_EVENTS_CREATED_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_command_events_created\n ON command_events (created_at DESC)\n";
|
|
42
|
+
export declare const CREATE_COMMAND_EVENTS_WORKSPACE_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_command_events_workspace\n ON command_events (workspace_id, created_at DESC)\n";
|
|
43
|
+
/** Trigger-maintained side index of `(workspace_id, alias) → block_id`,
|
|
44
|
+
* derived from the `alias` entry in each live block's `properties_json`.
|
|
45
|
+
*
|
|
46
|
+
* The previous shape walked `json_each(properties_json, '$.alias')` per
|
|
47
|
+
* query, which scans the full workspace partition every time. With
|
|
48
|
+
* 150-MB-class workspaces this is the dominant cost in alias-heavy
|
|
49
|
+
* paths (Roam import, parseReferences, autocomplete). The
|
|
50
|
+
* index gives O(log n) `(workspace_id, alias_lower?)` lookup at the
|
|
51
|
+
* cost of three triggers and one extra row per (block, alias) pair.
|
|
52
|
+
*
|
|
53
|
+
* Local-only: the table is fully derivable from `blocks.properties_json`
|
|
54
|
+
* so it is not synced — PowerSync's CRUD-apply path writes through
|
|
55
|
+
* `BLOCKS_RAW_TABLE.put` (an `INSERT … ON CONFLICT DO UPDATE`) which
|
|
56
|
+
* fires our INSERT/UPDATE triggers, populating this table on incoming
|
|
57
|
+
* sync the same way local writes do.
|
|
58
|
+
*
|
|
59
|
+
* Soft-delete: triggers keep block_aliases empty for blocks where
|
|
60
|
+
* `deleted = 1`. Hard-delete (the DELETE row_event trigger on blocks
|
|
61
|
+
* is reserved for future purges) also clears via the DELETE trigger
|
|
62
|
+
* here. Restoring a tombstone (`UPDATE deleted = 1 → 0`) re-fires the
|
|
63
|
+
* UPDATE trigger and re-populates from `properties_json`.
|
|
64
|
+
*
|
|
65
|
+
* PRIMARY KEY (block_id, alias) makes the per-(block, alias) write
|
|
66
|
+
* idempotent under `INSERT OR IGNORE` (e.g. duplicate aliases on the
|
|
67
|
+
* same block, or backfill running over already-populated rows).
|
|
68
|
+
* `alias` is stored verbatim (case preserved); `alias_lower` is the
|
|
69
|
+
* pre-computed `LOWER(alias)` so case-insensitive autocomplete doesn't
|
|
70
|
+
* re-evaluate `LOWER()` per row.
|
|
71
|
+
*/
|
|
72
|
+
export declare const CREATE_BLOCK_ALIASES_TABLE_SQL = "\n CREATE TABLE IF NOT EXISTS block_aliases (\n block_id TEXT NOT NULL,\n workspace_id TEXT NOT NULL,\n alias TEXT NOT NULL,\n alias_lower TEXT NOT NULL,\n PRIMARY KEY (block_id, alias)\n )\n";
|
|
73
|
+
/** Case-sensitive exact-match path: parseReferences `lookupAliasTarget`
|
|
74
|
+
* and `findBlockByAliasInWorkspace`. */
|
|
75
|
+
export declare const CREATE_BLOCK_ALIASES_WS_ALIAS_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_block_aliases_ws_alias\n ON block_aliases (workspace_id, alias)\n";
|
|
76
|
+
/** Tiny key/value table for one-shot schema-bootstrapping markers
|
|
77
|
+
* (currently only the alias backfill). Local-only — the markers
|
|
78
|
+
* describe the state of a derived index on this device, not anything
|
|
79
|
+
* the server cares about.
|
|
80
|
+
*
|
|
81
|
+
* Why a dedicated table instead of "is block_aliases empty?": a
|
|
82
|
+
* legitimately empty workspace, or a workspace whose user removed
|
|
83
|
+
* every alias, would otherwise re-trigger the full backfill scan on
|
|
84
|
+
* every launch — which is exactly what the LIMIT 1 short-circuit was
|
|
85
|
+
* meant to avoid. The marker captures "we ran the backfill once for
|
|
86
|
+
* this schema version" directly. */
|
|
87
|
+
export declare const CREATE_CLIENT_SCHEMA_STATE_TABLE_SQL = "\n CREATE TABLE IF NOT EXISTS client_schema_state (\n key TEXT PRIMARY KEY,\n completed_at INTEGER NOT NULL\n )\n";
|
|
88
|
+
/** Case-insensitive substring/prefix path for alias autocomplete. */
|
|
89
|
+
export declare const CREATE_BLOCK_ALIASES_WS_ALIAS_LOWER_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_block_aliases_ws_alias_lower\n ON block_aliases (workspace_id, alias_lower)\n";
|
|
90
|
+
export declare const DROP_BLOCKS_WORKSPACE_TYPE_INDEX_SQL = "\n DROP INDEX IF EXISTS idx_blocks_workspace_type\n";
|
|
91
|
+
/** Trigger-maintained membership index over `properties_json.$.types`.
|
|
92
|
+
* This replaces the old scalar `$.type` expression index: SQLite
|
|
93
|
+
* cannot expression-index array membership directly, so by-type
|
|
94
|
+
* queries join through this local side table. */
|
|
95
|
+
export declare const CREATE_BLOCK_TYPES_TABLE_SQL = "\n CREATE TABLE IF NOT EXISTS block_types (\n block_id TEXT NOT NULL,\n workspace_id TEXT NOT NULL,\n type TEXT NOT NULL,\n PRIMARY KEY (block_id, type)\n )\n";
|
|
96
|
+
export declare const CREATE_BLOCK_TYPES_TYPE_WORKSPACE_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_block_types_type_workspace\n ON block_types (type, workspace_id)\n";
|
|
97
|
+
/** Quarantine for `ps_crud` rows whose upload the server refused with a
|
|
98
|
+
* permanent error (FK violation, RLS denial, insufficient privilege,
|
|
99
|
+
* 4xx that can't recover on retry). The PowerSync upload handler moves
|
|
100
|
+
* rejected txs here so the queue can keep draining instead of blocking
|
|
101
|
+
* on a write that will never succeed; the row preserves enough context
|
|
102
|
+
* for a later UI surface ("N changes couldn't sync") and post-hoc
|
|
103
|
+
* inspection.
|
|
104
|
+
*
|
|
105
|
+
* Local-only — the server has no view of what its own rejections
|
|
106
|
+
* looked like from the client side, and these rows reference the
|
|
107
|
+
* client's `ps_crud.id` which doesn't exist on the server anyway. */
|
|
108
|
+
export declare const CREATE_PS_CRUD_REJECTED_TABLE_SQL = "\n CREATE TABLE IF NOT EXISTS ps_crud_rejected (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n original_id INTEGER NOT NULL,\n tx_id INTEGER NOT NULL,\n data TEXT NOT NULL,\n error_code TEXT,\n error_message TEXT,\n rejected_at INTEGER NOT NULL\n )\n";
|
|
109
|
+
export declare const CREATE_PS_CRUD_REJECTED_REJECTED_AT_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_ps_crud_rejected_rejected_at\n ON ps_crud_rejected (rejected_at DESC)\n";
|
|
110
|
+
export declare const CREATE_PS_CRUD_REJECTED_TX_ID_INDEX_SQL = "\n CREATE INDEX IF NOT EXISTS idx_ps_crud_rejected_tx_id\n ON ps_crud_rejected (tx_id)\n";
|
|
111
|
+
export declare const CREATE_BLOCKS_INSERT_ROW_EVENT_TRIGGER_SQL: string;
|
|
112
|
+
export declare const CREATE_BLOCKS_UPDATE_ROW_EVENT_TRIGGER_SQL: string;
|
|
113
|
+
/** DELETE row_event writer is reserved for hard purges. v1 ships no purge
|
|
114
|
+
* mechanism; the trigger exists for future use (e.g. a job that purges
|
|
115
|
+
* soft-deleted rows older than N days). Hard deletes do not sync —
|
|
116
|
+
* PowerSync sees the row vanish locally; soft-delete via the synced
|
|
117
|
+
* `deleted` column is what propagates "this row is gone" through sync. */
|
|
118
|
+
export declare const CREATE_BLOCKS_DELETE_ROW_EVENT_TRIGGER_SQL: string;
|
|
119
|
+
export declare const CREATE_BLOCKS_UPLOAD_INSERT_TRIGGER_SQL: string;
|
|
120
|
+
export declare const CREATE_BLOCKS_UPLOAD_UPDATE_TRIGGER_SQL: string;
|
|
121
|
+
export declare const CREATE_BLOCKS_WORKSPACE_INVARIANT_INSERT_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_parent_workspace_check_insert\n BEFORE INSERT ON blocks\n WHEN NEW.parent_id IS NOT NULL\n AND (SELECT source FROM tx_context WHERE id = 1) IS NOT NULL\n BEGIN\n SELECT RAISE(ABORT, 'parent must exist and share workspace_id')\n WHERE NOT EXISTS (\n SELECT 1 FROM blocks\n WHERE id = NEW.parent_id\n AND workspace_id = NEW.workspace_id\n );\n END\n";
|
|
122
|
+
export declare const CREATE_BLOCKS_WORKSPACE_INVARIANT_UPDATE_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_parent_workspace_check_update\n BEFORE UPDATE OF parent_id, workspace_id ON blocks\n WHEN NEW.parent_id IS NOT NULL\n AND (SELECT source FROM tx_context WHERE id = 1) IS NOT NULL\n BEGIN\n SELECT RAISE(ABORT, 'parent must exist and share workspace_id')\n WHERE NOT EXISTS (\n SELECT 1 FROM blocks\n WHERE id = NEW.parent_id\n AND workspace_id = NEW.workspace_id\n );\n END\n";
|
|
123
|
+
export declare const CREATE_BLOCKS_PARENT_NOT_DELETED_INSERT_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_parent_not_deleted_check_insert\n BEFORE INSERT ON blocks\n WHEN NEW.parent_id IS NOT NULL\n AND NEW.deleted = 0\n AND (SELECT source FROM tx_context WHERE id = 1) IS NOT NULL\n BEGIN\n SELECT RAISE(ABORT,\n 'parent_deleted' || char(31) || NEW.parent_id\n )\n WHERE EXISTS (\n SELECT 1 FROM blocks\n WHERE id = NEW.parent_id\n AND deleted = 1\n );\n END\n";
|
|
124
|
+
export declare const CREATE_BLOCKS_PARENT_NOT_DELETED_UPDATE_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_parent_not_deleted_check_update\n BEFORE UPDATE OF parent_id, deleted ON blocks\n WHEN NEW.parent_id IS NOT NULL\n AND NEW.deleted = 0\n AND (SELECT source FROM tx_context WHERE id = 1) IS NOT NULL\n BEGIN\n SELECT RAISE(ABORT,\n 'parent_deleted' || char(31) || NEW.parent_id\n )\n WHERE EXISTS (\n SELECT 1 FROM blocks\n WHERE id = NEW.parent_id\n AND deleted = 1\n );\n END\n";
|
|
125
|
+
export declare const CREATE_BLOCKS_ALIAS_INSERT_TRIGGER_SQL: string;
|
|
126
|
+
/** Fires only when `properties_json`, `deleted`, or `workspace_id`
|
|
127
|
+
* changes — content edits, parent moves, and order_key changes don't
|
|
128
|
+
* touch the alias index. Always wipes the row's prior aliases first
|
|
129
|
+
* (cheap: PK lookup), then re-inserts unless the row is now soft-
|
|
130
|
+
* deleted. Restoring a tombstone re-populates via the same path. */
|
|
131
|
+
export declare const CREATE_BLOCKS_ALIAS_UPDATE_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_alias_update\n AFTER UPDATE OF properties_json, deleted, workspace_id ON blocks\n BEGIN\n DELETE FROM block_aliases WHERE block_id = NEW.id;\n INSERT OR IGNORE INTO block_aliases (block_id, workspace_id, alias, alias_lower)\n SELECT NEW.id, NEW.workspace_id, je.value, LOWER(je.value)\n FROM json_each(NEW.properties_json, '$.alias') AS je\n WHERE NEW.deleted = 0 AND typeof(je.value) = 'text';\n END\n";
|
|
132
|
+
/** Hard-delete cleanup. Soft-deletes go through the UPDATE trigger
|
|
133
|
+
* above (which sees `NEW.deleted = 1` and writes nothing back). */
|
|
134
|
+
export declare const CREATE_BLOCKS_ALIAS_DELETE_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_alias_delete\n AFTER DELETE ON blocks\n BEGIN\n DELETE FROM block_aliases WHERE block_id = OLD.id;\n END\n";
|
|
135
|
+
/** Workspace-scoped alias uniqueness — enforced at the storage layer
|
|
136
|
+
* so the invariant holds regardless of which write path arrives at
|
|
137
|
+
* the table (local `tx.create` + `setProperty`, `tx.restore`,
|
|
138
|
+
* applyRaw from undo, future mutators). Fires BEFORE every INSERT
|
|
139
|
+
* into `block_aliases`; if any other live block already claims the
|
|
140
|
+
* same `(workspace_id, alias)`, RAISE(ABORT) rolls back the entire
|
|
141
|
+
* user tx atomically.
|
|
142
|
+
*
|
|
143
|
+
* Blank aliases (`NEW.alias = ''`) are skipped to match the
|
|
144
|
+
* `tx.aliasLookup` semantics: lookup returns null for `''` because
|
|
145
|
+
* blanks aren't meaningful claims. Without the skip, two blocks
|
|
146
|
+
* each carrying an empty entry in their alias array (e.g. notes
|
|
147
|
+
* the user cleared) would spuriously collide on the second write.
|
|
148
|
+
*
|
|
149
|
+
* The RAISE message is structured: `alias_collision` followed by
|
|
150
|
+
* US-separated (char(31)) HEX-encoded workspace_id, alias, and
|
|
151
|
+
* attempting block_id. Hex encoding guarantees the delimiter never
|
|
152
|
+
* appears inside a field, even if the alias text itself contains
|
|
153
|
+
* control chars — earlier comments asserted the codec rejected
|
|
154
|
+
* control chars, but `codecs.string` only checks typeof, so the
|
|
155
|
+
* encoding has to defend itself rather than relying on data-shape
|
|
156
|
+
* invariants. The tx engine hex-decodes each field and looks up
|
|
157
|
+
* the existing claimant to construct
|
|
158
|
+
* `ProcessorRejection('alias.collision', meta)`.
|
|
159
|
+
*
|
|
160
|
+
* Skipped when `tx_context.source IS NULL` so PowerSync sync-apply
|
|
161
|
+
* doesn't fail on dupes propagating from other clients (mirrors the
|
|
162
|
+
* workspace-invariant trigger's policy). V1 leaves cross-client
|
|
163
|
+
* alias merges as latent; the user-facing merge flow is V2.
|
|
164
|
+
* Backfill (`BACKFILL_BLOCK_ALIASES_SQL`) also runs outside a
|
|
165
|
+
* `tx_context.source` setting, so the one-time index re-population
|
|
166
|
+
* on schema upgrade is tolerant of any latent dupes that predate
|
|
167
|
+
* this trigger.
|
|
168
|
+
*
|
|
169
|
+
* Self-reclaim is handled naturally: `blocks_alias_update` DELETEs
|
|
170
|
+
* the row's prior aliases before re-inserting, so a row rewriting
|
|
171
|
+
* its own alias sees no other claimant at INSERT time. */
|
|
172
|
+
export declare const CREATE_BLOCK_ALIASES_WORKSPACE_UNIQUE_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS block_aliases_workspace_alias_unique\n BEFORE INSERT ON block_aliases\n WHEN (SELECT source FROM tx_context WHERE id = 1) IS NOT NULL\n AND NEW.alias != ''\n BEGIN\n SELECT RAISE(ABORT,\n 'alias_collision' || char(31) ||\n hex(NEW.workspace_id) || char(31) ||\n hex(NEW.alias) || char(31) ||\n hex(NEW.block_id)\n )\n WHERE EXISTS (\n SELECT 1 FROM block_aliases\n WHERE workspace_id = NEW.workspace_id\n AND alias = NEW.alias\n AND block_id != NEW.block_id\n );\n END\n";
|
|
173
|
+
export declare const CREATE_BLOCKS_TYPE_INSERT_TRIGGER_SQL: string;
|
|
174
|
+
export declare const CREATE_BLOCKS_TYPE_UPDATE_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_type_update\n AFTER UPDATE OF properties_json, deleted, workspace_id ON blocks\n BEGIN\n DELETE FROM block_types WHERE block_id = NEW.id;\n INSERT OR IGNORE INTO block_types (block_id, workspace_id, type)\n SELECT NEW.id, NEW.workspace_id, je.value\n FROM json_each(NEW.properties_json, '$.types') AS je\n WHERE NEW.deleted = 0 AND typeof(je.value) = 'text';\n END\n";
|
|
175
|
+
export declare const CREATE_BLOCKS_TYPE_DELETE_TRIGGER_SQL = "\n CREATE TRIGGER IF NOT EXISTS blocks_type_delete\n AFTER DELETE ON blocks\n BEGIN\n DELETE FROM block_types WHERE block_id = OLD.id;\n END\n";
|
|
176
|
+
/** One-shot backfill from `blocks.properties_json`. Called after the
|
|
177
|
+
* CLIENT_SCHEMA_STATEMENTS run, gated on a `client_schema_state` row
|
|
178
|
+
* so existing installations populate the index once on the first
|
|
179
|
+
* startup with this schema, and steady-state startups are a single
|
|
180
|
+
* cheap PK lookup. New installations also no-op (no blocks ⇒
|
|
181
|
+
* nothing to backfill, marker still recorded so subsequent starts
|
|
182
|
+
* short-circuit).
|
|
183
|
+
*
|
|
184
|
+
* Marker key vs derived state: an earlier shape probed `block_aliases`
|
|
185
|
+
* for any row, treating non-empty as proof the backfill ran. That
|
|
186
|
+
* conflated "backfill complete" with "this workspace has any aliases
|
|
187
|
+
* at all", so a workspace with zero alias-bearing blocks (or one that
|
|
188
|
+
* later had every alias removed) re-ran the full table scan on every
|
|
189
|
+
* launch. The dedicated marker captures the intent directly.
|
|
190
|
+
*
|
|
191
|
+
* Why not part of CLIENT_SCHEMA_STATEMENTS: the SELECT scans the
|
|
192
|
+
* blocks table, which is multi-million rows on big workspaces.
|
|
193
|
+
* Running unconditionally on every app start would defeat the index
|
|
194
|
+
* the user just paid for. */
|
|
195
|
+
export declare const ALIAS_BACKFILL_MARKER_KEY = "block_aliases_backfill_v1";
|
|
196
|
+
export declare const SELECT_BLOCK_ALIASES_BACKFILL_DONE_SQL = "\n SELECT 1 FROM client_schema_state WHERE key = 'block_aliases_backfill_v1'\n";
|
|
197
|
+
export declare const RECORD_BLOCK_ALIASES_BACKFILL_DONE_SQL = "\n INSERT OR REPLACE INTO client_schema_state (key, completed_at)\n VALUES ('block_aliases_backfill_v1', strftime('%s', 'now') * 1000)\n";
|
|
198
|
+
export declare const BACKFILL_BLOCK_ALIASES_SQL = "\n INSERT OR IGNORE INTO block_aliases (block_id, workspace_id, alias, alias_lower)\n SELECT b.id, b.workspace_id, je.value, LOWER(je.value)\n FROM blocks b, json_each(b.properties_json, '$.alias') AS je\n WHERE b.deleted = 0 AND typeof(je.value) = 'text'\n";
|
|
199
|
+
export declare const BLOCK_TYPES_BACKFILL_MARKER_KEY = "block_types_backfill_v1";
|
|
200
|
+
export declare const SELECT_BLOCK_TYPES_BACKFILL_DONE_SQL = "\n SELECT 1 FROM client_schema_state WHERE key = 'block_types_backfill_v1'\n";
|
|
201
|
+
export declare const RECORD_BLOCK_TYPES_BACKFILL_DONE_SQL = "\n INSERT OR REPLACE INTO client_schema_state (key, completed_at)\n VALUES ('block_types_backfill_v1', strftime('%s', 'now') * 1000)\n";
|
|
202
|
+
export declare const BACKFILL_BLOCK_TYPES_SQL = "\n INSERT OR IGNORE INTO block_types (block_id, workspace_id, type)\n SELECT b.id, b.workspace_id, je.value\n FROM blocks b, json_each(b.properties_json, '$.types') AS je\n WHERE b.deleted = 0 AND typeof(je.value) = 'text'\n";
|
|
203
|
+
/** One-shot enqueue of pre-existing UI-state subtrees that the old
|
|
204
|
+
* routing left out of the upload queue. Phase 2 dropped the
|
|
205
|
+
* `source: 'local-ephemeral'` sink, so every NEW UI-state write goes
|
|
206
|
+
* through ps_crud — but rows already in the local DB at upgrade time
|
|
207
|
+
* are still server-side missing. Without this backfill, the first
|
|
208
|
+
* user-touch on an existing UI-state row (e.g. selection state on a
|
|
209
|
+
* panel) would PATCH→upsert and FK-fail on the chain of never-uploaded
|
|
210
|
+
* ancestors (`ui-state` → `layout-sessions` → `<session>` → panel).
|
|
211
|
+
*
|
|
212
|
+
* Identification: a row whose latest `row_events.source` is
|
|
213
|
+
* `'local-ephemeral'` has never reached the upload queue (later 'user'
|
|
214
|
+
* rows would be in ps_crud already; later 'sync' rows mean the server
|
|
215
|
+
* already has the row).
|
|
216
|
+
*
|
|
217
|
+
* Atomicity: every enqueued row gets the SAME `tx_id` so PowerSync
|
|
218
|
+
* ships them as one server-side transaction. The composite FK on
|
|
219
|
+
* `(workspace_id, parent_id)` is DEFERRABLE INITIALLY DEFERRED, so
|
|
220
|
+
* the in-tx-but-not-yet-committed parents satisfy each child at
|
|
221
|
+
* COMMIT time regardless of insertion order. If the batch somehow
|
|
222
|
+
* fails, the orchestrator's per-tx fallback quarantines them all
|
|
223
|
+
* together — visible via the rejection-quarantine UI for manual retry. */
|
|
224
|
+
export declare const LOCAL_EPHEMERAL_BACKFILL_MARKER_KEY = "local_ephemeral_upload_backfill_v1";
|
|
225
|
+
export declare const SELECT_LOCAL_EPHEMERAL_BACKFILL_DONE_SQL = "\n SELECT 1 FROM client_schema_state WHERE key = 'local_ephemeral_upload_backfill_v1'\n";
|
|
226
|
+
export declare const RECORD_LOCAL_EPHEMERAL_BACKFILL_DONE_SQL = "\n INSERT OR REPLACE INTO client_schema_state (key, completed_at)\n VALUES ('local_ephemeral_upload_backfill_v1', strftime('%s', 'now') * 1000)\n";
|
|
227
|
+
/** Counts what BACKFILL_LOCAL_EPHEMERAL_UPLOADS_SQL would enqueue. Used
|
|
228
|
+
* by the bootstrap wrapper to decide whether to log and to expose a
|
|
229
|
+
* number for debugging. */
|
|
230
|
+
export declare const COUNT_LOCAL_EPHEMERAL_BACKFILL_PENDING_SQL = "\n SELECT COUNT(*) AS n FROM blocks b\n WHERE b.id IN (\n SELECT r1.block_id FROM row_events r1\n WHERE r1.source = 'local-ephemeral'\n AND NOT EXISTS (\n SELECT 1 FROM row_events r2\n WHERE r2.block_id = r1.block_id AND r2.id > r1.id\n )\n )\n";
|
|
231
|
+
/** Emits one PUT envelope per qualifying block, all stamped with the
|
|
232
|
+
* same `?` tx_id parameter. */
|
|
233
|
+
export declare const BACKFILL_LOCAL_EPHEMERAL_UPLOADS_SQL: string;
|
|
234
|
+
/** Per-name reprojection markers. Once `reprojectRefTypedProperties`
|
|
235
|
+
* has done a catch-up pass for property name `X`, a row keyed
|
|
236
|
+
* `reproject_ref:<X>` lands in `client_schema_state`. Subsequent
|
|
237
|
+
* cold-starts (kernel→merged delta, plugins→user-data delta) skip
|
|
238
|
+
* scanning blocks for `X` because the references processor has been
|
|
239
|
+
* maintaining `references_json` incrementally on every write since.
|
|
240
|
+
*
|
|
241
|
+
* Marker is cleared (DELETE) when reprojection runs for a name whose
|
|
242
|
+
* current schema is no longer ref-typed (cleanup case): a future
|
|
243
|
+
* re-add-as-ref needs the catch-up scan again because writes during
|
|
244
|
+
* the non-ref window left properties_json values without
|
|
245
|
+
* references_json entries. */
|
|
246
|
+
export declare const REPROJECT_REF_MARKER_PREFIX = "reproject_ref:";
|
|
247
|
+
export declare const SELECT_REPROJECT_REF_MARKERS_SQL = "\n SELECT key FROM client_schema_state WHERE key LIKE 'reproject_ref:%'\n";
|
|
248
|
+
export declare const RECORD_REPROJECT_REF_MARKER_SQL = "\n INSERT OR REPLACE INTO client_schema_state (key, completed_at)\n VALUES (?, strftime('%s', 'now') * 1000)\n";
|
|
249
|
+
export declare const CLEAR_REPROJECT_REF_MARKER_SQL = "\n DELETE FROM client_schema_state WHERE key = ?\n";
|
|
250
|
+
export declare const CLIENT_SCHEMA_STATEMENTS: readonly string[];
|
|
251
|
+
export declare const CLIENT_SCHEMA_TRIGGER_NAMES: readonly ["blocks_row_event_insert", "blocks_row_event_update", "blocks_row_event_delete", "blocks_upload_insert", "blocks_upload_update", "blocks_parent_workspace_check_insert", "blocks_parent_workspace_check_update", "blocks_parent_not_deleted_check_insert", "blocks_parent_not_deleted_check_update", "blocks_alias_insert", "blocks_alias_update", "blocks_alias_delete", "block_aliases_workspace_alias_unique", "blocks_type_insert", "blocks_type_update", "blocks_type_delete"];
|
|
252
|
+
interface ClientSchemaBootstrapDb {
|
|
253
|
+
execute: (sql: string, params?: unknown[]) => Promise<unknown>;
|
|
254
|
+
getOptional: <T>(sql: string) => Promise<T | null>;
|
|
255
|
+
}
|
|
256
|
+
/** Run after CLIENT_SCHEMA_STATEMENTS to populate block_aliases from
|
|
257
|
+
* pre-existing blocks rows on the first app start that includes the
|
|
258
|
+
* alias-index schema. Subsequent starts are a single cheap LIMIT 1
|
|
259
|
+
* read because triggers maintain the table from then on.
|
|
260
|
+
*
|
|
261
|
+
* Tests open a fresh database with no blocks → noop. Production
|
|
262
|
+
* picks up the existing PowerSync-synced blocks → one large INSERT
|
|
263
|
+
* on the first start, then noop on every start after. */
|
|
264
|
+
export declare const backfillBlockAliasesIfEmpty: (db: ClientSchemaBootstrapDb) => Promise<void>;
|
|
265
|
+
export declare const backfillBlockTypesIfEmpty: (db: ClientSchemaBootstrapDb) => Promise<void>;
|
|
266
|
+
/** Enqueue pre-existing UI-state rows for upload on the first app
|
|
267
|
+
* start after Phase 2 (see `LOCAL_EPHEMERAL_BACKFILL_MARKER_KEY` for
|
|
268
|
+
* the full rationale). `newTxSeq` produces the integer tx_id every
|
|
269
|
+
* enqueued row shares, so the server applies them atomically and the
|
|
270
|
+
* DEFERRABLE composite FK doesn't trip on intra-batch parent chains. */
|
|
271
|
+
export declare const backfillLocalEphemeralUploadsIfPending: (db: ClientSchemaBootstrapDb, newTxSeq: () => number) => Promise<void>;
|
|
272
|
+
export {};
|
|
273
|
+
//# sourceMappingURL=clientSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientSchema.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/clientSchema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Commit pipeline (§10): drives a `repo.tx` invocation end-to-end.
|
|
3
|
+
*
|
|
4
|
+
* 1. Validate scope vs. read-only mode.
|
|
5
|
+
* 2. Open `db.writeTransaction(fn)`.
|
|
6
|
+
* a. Set `tx_context` (tx_id, user_id, scope, source).
|
|
7
|
+
* b. Construct TxImpl + snapshots map.
|
|
8
|
+
* c. Run user fn (primitives write through to SQL inline).
|
|
9
|
+
* d. INSERT command_events row.
|
|
10
|
+
* e. Clear `tx_context` (all four → NULL).
|
|
11
|
+
* 3. On COMMIT (post-fn-resolve, before promise resolves):
|
|
12
|
+
* a. Walk snapshots map: update cache to `after` per id (or evict
|
|
13
|
+
* on hard-delete).
|
|
14
|
+
* b. (Future) record undo entry.
|
|
15
|
+
* c. Resolve repo.tx promise with user fn's return.
|
|
16
|
+
* 4. Post-resolve: dispatch afterCommit jobs (their own
|
|
17
|
+
* writeTransactions). (Stage 1.3: jobs collected only; the
|
|
18
|
+
* processor framework that actually fires them lands in 1.5.)
|
|
19
|
+
*
|
|
20
|
+
* Failure modes:
|
|
21
|
+
* - User fn throws → SQLite rolls back the writeTransaction. Snapshots
|
|
22
|
+
* map is discarded. **Cache was never mutated**, so there's nothing
|
|
23
|
+
* to revert; outside-tx readers saw the pre-tx state throughout.
|
|
24
|
+
* afterCommit jobs are discarded — they only fire on commit (§5.3).
|
|
25
|
+
* - DB error inside the writeTransaction → same rollback path.
|
|
26
|
+
*/
|
|
27
|
+
import type { AnyMutator, AnyPostCommitProcessor, AnyPropertySchema, AnySameTxProcessor, RepoTxOptions, Tx, User } from '@/data/api';
|
|
28
|
+
import { type AfterCommitJob, type TxDb } from './txEngine';
|
|
29
|
+
import { type SnapshotsMap } from './txSnapshots';
|
|
30
|
+
import type { BlockCache } from '@/data/blockCache';
|
|
31
|
+
/** Minimal subset of the full PowerSync DB our pipeline + Repo talks
|
|
32
|
+
* to. The test harness (`createTestDb`) returns a real
|
|
33
|
+
* `PowerSyncDatabase` that satisfies this; production passes the
|
|
34
|
+
* same. Both `writeTransaction` (for tx primitives) and the read
|
|
35
|
+
* surface (`getAll` / `getOptional` / `get` for `repo.load`) are
|
|
36
|
+
* needed. `onChange` is the table-change subscription used by
|
|
37
|
+
* reactive query hooks until the row_events tail in Phase 2 ships a
|
|
38
|
+
* typed invalidation surface. */
|
|
39
|
+
export interface PowerSyncDbChangeHandler {
|
|
40
|
+
onChange: () => void | Promise<void>;
|
|
41
|
+
onError?: (error: unknown) => void;
|
|
42
|
+
}
|
|
43
|
+
export interface PowerSyncDbChangeOptions {
|
|
44
|
+
tables?: readonly string[];
|
|
45
|
+
throttleMs?: number;
|
|
46
|
+
}
|
|
47
|
+
export interface PowerSyncDb {
|
|
48
|
+
writeTransaction<R>(fn: (tx: TxDb) => Promise<R>): Promise<R>;
|
|
49
|
+
getAll<T>(sql: string, params?: unknown[]): Promise<T[]>;
|
|
50
|
+
getOptional<T>(sql: string, params?: unknown[]): Promise<T | null>;
|
|
51
|
+
get<T>(sql: string, params?: unknown[]): Promise<T>;
|
|
52
|
+
/** Execute an arbitrary SQL statement (no result rows). Used by the
|
|
53
|
+
* agent runtime bridge for `mode='execute'` SQL. Avoid in
|
|
54
|
+
* application code — every write should go through `repo.tx`. */
|
|
55
|
+
execute(sql: string, params?: unknown[]): Promise<unknown>;
|
|
56
|
+
onChange(handler: PowerSyncDbChangeHandler, options?: PowerSyncDbChangeOptions): () => void;
|
|
57
|
+
/** Release the underlying connection (OPFS sync access handle on
|
|
58
|
+
* web, file handle in node). Used by `exportSqliteDb` when
|
|
59
|
+
* swapping the live .db file out from under the worker. */
|
|
60
|
+
close(): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
export interface RunTxParams<R> {
|
|
63
|
+
db: PowerSyncDb;
|
|
64
|
+
cache: BlockCache;
|
|
65
|
+
fn: (tx: Tx) => Promise<R>;
|
|
66
|
+
opts: RepoTxOptions;
|
|
67
|
+
user: User;
|
|
68
|
+
isReadOnly: boolean;
|
|
69
|
+
newTxId: () => string;
|
|
70
|
+
/** Monotonically increasing INTEGER per `repo.tx`. Written into
|
|
71
|
+
* `tx_context.tx_seq` so the upload-routing triggers can stamp
|
|
72
|
+
* `ps_crud.tx_id` and PowerSync's `getNextCrudTransaction()` groups
|
|
73
|
+
* multi-row writes correctly. Required to be strictly increasing
|
|
74
|
+
* across calls within a single `Repo`; the default Repo provider
|
|
75
|
+
* uses a counter seeded from `Date.now()`. */
|
|
76
|
+
newTxSeq: () => number;
|
|
77
|
+
newId: () => string;
|
|
78
|
+
now: () => number;
|
|
79
|
+
mutators: ReadonlyMap<string, AnyMutator>;
|
|
80
|
+
/** Processor registry snapshot, captured at tx start. Used by
|
|
81
|
+
* `tx.afterCommit` to validate scheduledArgs at enqueue time. */
|
|
82
|
+
processors: ReadonlyMap<string, AnyPostCommitProcessor>;
|
|
83
|
+
/** Same-tx processor registry snapshot, captured at tx start. The
|
|
84
|
+
* runner walks this in registration order between `fn` returning
|
|
85
|
+
* and the `command_events` insert, inside the writeTransaction.
|
|
86
|
+
* Throws (e.g. `ProcessorRejection`) propagate out and roll back
|
|
87
|
+
* the user's tx atomically. */
|
|
88
|
+
sameTxProcessors: ReadonlyMap<string, AnySameTxProcessor>;
|
|
89
|
+
/** Merged property-schema registry snapshot, captured at the same
|
|
90
|
+
* boundary as `processors` so processor code sees a consistent
|
|
91
|
+
* runtime bundle. */
|
|
92
|
+
propertySchemas: ReadonlyMap<string, AnyPropertySchema>;
|
|
93
|
+
}
|
|
94
|
+
export interface TxResult<R> {
|
|
95
|
+
/** User fn's return value (resolved synchronously after commit walk). */
|
|
96
|
+
value: R;
|
|
97
|
+
/** afterCommit jobs scheduled by the tx — to be dispatched by the
|
|
98
|
+
* caller (Repo) after the tx promise resolves. Empty if rollback. */
|
|
99
|
+
afterCommitJobs: AfterCommitJob[];
|
|
100
|
+
/** Snapshots map for the committed tx — used by the post-commit
|
|
101
|
+
* processor framework to compute field-watch matches. Empty map if
|
|
102
|
+
* the user fn made no writes. */
|
|
103
|
+
snapshots: SnapshotsMap;
|
|
104
|
+
/** Pinned workspace at commit time. `null` for zero-write txs;
|
|
105
|
+
* CommittedEvent contracts on this being a string when present, so
|
|
106
|
+
* the runner skips field-watch + explicit dispatch entirely when
|
|
107
|
+
* null (no work to do anyway — no field changed, and afterCommit
|
|
108
|
+
* threw WorkspaceNotPinnedError if called pre-write). */
|
|
109
|
+
workspaceId: string | null;
|
|
110
|
+
/** Tx id (for processor CommittedEvent.txId). */
|
|
111
|
+
txId: string;
|
|
112
|
+
/** User who ran the tx (for processor CommittedEvent.user). */
|
|
113
|
+
user: User;
|
|
114
|
+
/** Processor registry snapshot taken at tx start. The runner walks
|
|
115
|
+
* this (not its current registry) so a `setFacetRuntime` call that
|
|
116
|
+
* lands while a tx is in flight can't remove or replace processors
|
|
117
|
+
* before that tx's field-watch / explicit jobs fire — the spec says
|
|
118
|
+
* registries are snapshotted at tx start (§3, §8). */
|
|
119
|
+
processors: ReadonlyMap<string, AnyPostCommitProcessor>;
|
|
120
|
+
/** Merged property-schema registry snapshot paired with `processors`. */
|
|
121
|
+
propertySchemas: ReadonlyMap<string, AnyPropertySchema>;
|
|
122
|
+
}
|
|
123
|
+
export declare const runTx: <R>(params: RunTxParams<R>) => Promise<TxResult<R>>;
|
|
124
|
+
export declare const __debug: {
|
|
125
|
+
scopeUploadsToServer: (scope: import("@/data/api").ChangeScope) => boolean;
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=commitPipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commitPipeline.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/commitPipeline.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kernel property schemas (data layer). Exposed as plain
|
|
3
|
+
* `PropertySchema<T>` exports today; `propertySchemasFacet`
|
|
4
|
+
* registration arrives with full-runtime wiring in Phase 1 stage 2 / 3.
|
|
5
|
+
*
|
|
6
|
+
* `aliasesProp` is the alias list parseReferences writes when a tx
|
|
7
|
+
* inserts a target block (e.g. `[[Inbox]]` produces a target with
|
|
8
|
+
* aliases: ['Inbox']). The same schema is consulted by alias-lookup
|
|
9
|
+
* queries that resolve `[[alias]]` to a target id.
|
|
10
|
+
*/
|
|
11
|
+
import { type PropertySchema } from '@/data/api';
|
|
12
|
+
/** Alias list stored on alias-target / daily-note blocks (§7). The
|
|
13
|
+
* encoded shape in `properties_json` is `string[]`; the codec is the
|
|
14
|
+
* list-of-strings combinator. */
|
|
15
|
+
export declare const aliasesProp: PropertySchema<string[]>;
|
|
16
|
+
//# sourceMappingURL=coreProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coreProperties.d.ts","sourceRoot":"","sources":["../../../../../../../src/data/internals/coreProperties.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAuC,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AAErF;;kCAEkC;AAClC,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,MAAM,EAAE,CAI/C,CAAA"}
|