@akohn/dashql 0.0.0-stage → 0.0.19-dev.247
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 +373 -0
- package/NOTICE +66 -0
- package/README.md +155 -2
- package/dist/_virtual/_rolldown/runtime.js +12 -0
- package/dist/core/api.d.ts +321 -0
- package/dist/core/api.js +881 -0
- package/dist/core/batch.d.ts +31 -0
- package/dist/core/batch.js +92 -0
- package/dist/core/batch_worker.d.ts +1 -0
- package/dist/core/batch_worker.js +43 -0
- package/dist/core/batch_worker_client.d.ts +20 -0
- package/dist/core/batch_worker_client.js +85 -0
- package/dist/core/batch_worker_protocol.d.ts +13 -0
- package/dist/core/batch_worker_protocol.js +0 -0
- package/dist/core/browser_worker.d.ts +3 -0
- package/dist/core/browser_worker.js +1 -0
- package/dist/core/buffers.d.ts +15 -0
- package/dist/core/buffers.js +35 -0
- package/dist/core/comment_tags.d.ts +22 -0
- package/dist/core/comment_tags.js +48 -0
- package/dist/core/connection.d.ts +3 -0
- package/dist/core/connection.js +1 -0
- package/dist/core/dataflow.d.ts +79 -0
- package/dist/core/dataflow.js +124 -0
- package/dist/core/flatbuffer_view.d.ts +14 -0
- package/dist/core/flatbuffer_view.js +43 -0
- package/dist/core/format.d.ts +4 -0
- package/dist/core/format.js +23 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.js +15 -0
- package/dist/core/lookup.d.ts +10 -0
- package/dist/core/lookup.js +129 -0
- package/dist/core/query_history.d.ts +13 -0
- package/dist/core/query_history.js +20 -0
- package/dist/core/runtime.d.ts +2 -0
- package/dist/core/runtime.js +1 -0
- package/dist/core/tokens.d.ts +9 -0
- package/dist/core/tokens.js +78 -0
- package/dist/core/variant.d.ts +4 -0
- package/dist/core/variant.js +0 -0
- package/dist/core/workbook.d.ts +6 -0
- package/dist/core/workbook.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression-function.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression-function.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/binary-expression.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/column-ref-expression.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/column-ref-expression.js +84 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison-function.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison-function.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/comparison.js +165 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-function-cast.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-function-cast.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-interval-cast.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-interval-cast.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-type-cast.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/const-type-cast.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression-sub-type.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression-sub-type.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/expression.js +142 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-expression.d.ts +46 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-expression.js +111 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-modifier.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/function-call-modifier.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/literal.js +77 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression-function.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression-function.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/nary-expression.js +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/resolved-column.d.ts +41 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/resolved-column.js +132 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-expression.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-expression.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-function.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra/unary-function.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra.d.ts +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/algebra.js +57 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzed-script.d.ts +211 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzed-script.js +563 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-severity.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-severity.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-type.d.ts +15 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error-type.js +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-error.js +145 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-warning.d.ts +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/analyzer-warning.js +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-call.d.ts +50 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-call.js +152 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-effect.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/client-function-effect.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/constant-expression.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/constant-expression.js +79 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/database-declaration.d.ts +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/database-declaration.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-declaration.d.ts +48 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-declaration.js +154 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-param.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-param.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-reference.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/function-reference.js +105 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-column-reference.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-column-reference.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-table-reference.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/indexed-table-reference.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inference-confidence.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inference-confidence.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-column.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-column.js +109 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-table-schema.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/inferred-table-schema.js +113 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-statement.d.ts +70 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-statement.js +192 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-target-column.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/insert-target-column.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-scope.d.ts +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-scope.js +197 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-tag.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/name-tag.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter-kind.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter-kind.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter.d.ts +54 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/parameter.js +139 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-column-name.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-column-name.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-function-name.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-function-name.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-table-name.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/qualified-table-name.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/resolved-table.d.ts +43 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/resolved-table.js +128 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/schema-declaration.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/schema-declaration.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/semantic-node-marker-type.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/semantic-node-marker-type.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type-kind.d.ts +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type-kind.js +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type.d.ts +102 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/sql-type.js +256 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-column.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-column.js +94 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference-role.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference-role.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table-reference.js +166 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/table.js +193 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/visualization-spec.d.ts +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer/visualization-spec.js +157 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/analyzer.js +104 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-diagnostic.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-diagnostic.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-request.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-request.js +94 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-result.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-result.js +69 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-input.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-input.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-result.d.ts +67 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/batch-script-result.js +211 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/descriptor-buffer.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/descriptor-buffer.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/diagnostic-severity.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/diagnostic-severity.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/processing-stage.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch/processing-stage.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/batch.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-content-statistics.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-content-statistics.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor-pool.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor-pool.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-descriptor.js +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entries.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entries.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-statistics.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-statistics.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry.d.ts +43 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-entry.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-layer.d.ts +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-layer.js +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-memory-statistics.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-memory-statistics.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-statistics.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-statistics.js +84 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-table-update.d.ts +52 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/catalog-table-update.js +128 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog-entry.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog-entry.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog.d.ts +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/flat-catalog.js +252 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-database-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-database-entry.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-schema-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-schema-entry.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-table-entry.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/indexed-flat-table-entry.js +62 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptor.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptor.js +96 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptors.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-descriptors.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table-column.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table-column.js +76 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table.d.ts +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/schema-table.js +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/touched-relations.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog/touched-relations.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/catalog.js +66 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/candidate-tag.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/candidate-tag.js +36 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-field.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-field.js +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-info.d.ts +78 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-info.js +177 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object.d.ts +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate-object.js +305 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate.d.ts +97 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-candidate.js +230 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-strategy.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-strategy.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-table-parameter.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion-table-parameter.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion/completion.js +155 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/completion.js +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/relative-symbol-position.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/relative-symbol-position.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-column-ref-context.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-column-ref-context.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-context.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-context.js +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-table-ref-context.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor-table-ref-context.js +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor.d.ts +116 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor/script-cursor.js +303 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/cursor.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op-code.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op-code.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op.d.ts +51 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff-op.js +144 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff/script-diff.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff.d.ts +3 -0
- package/dist/gen/flatbuffers/dashql/buffers/diff.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-analysis-version.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-analysis-version.js +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-board-position.d.ts +44 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-board-position.js +135 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-comment-tag.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-comment-tag.js +93 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-context.d.ts +91 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-context.js +274 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-kind.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-semantic-kind.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-state.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-cursor-state.js +99 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-severity.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-severity.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-source.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic-source.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-diagnostic.js +101 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-action.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-action.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-intent.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-intent.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-origin.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event-origin.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event.d.ts +62 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-event.js +187 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-flow-position.d.ts +53 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-flow-position.js +144 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-offset-unit.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-offset-unit.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-processing-statistics.d.ts +65 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-processing-statistics.js +234 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-script-annotations.d.ts +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-script-annotations.js +210 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-selection.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-selection.js +81 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-reference-kind.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-reference-kind.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-resolution.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-resolution.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-span.d.ts +48 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-semantic-span.js +138 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement-description.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement-description.js +88 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-statement.js +88 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-syntax-span.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-syntax-span.js +74 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-table-definition.d.ts +26 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-table-definition.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-change.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-change.js +93 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-span.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-text-span.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update-status.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update-status.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update.d.ts +158 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor/editor-update.js +508 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor.d.ts +29 -0
- package/dist/gen/flatbuffers/dashql/buffers/editor.js +82 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script-reference.d.ts +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script-reference.js +156 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/checked-script.js +115 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/compiled-visualization.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/compiled-visualization.js +104 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-attachment.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-attachment.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge-kind.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge-kind.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-edge.js +145 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-script.d.ts +54 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-script.js +137 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-statement.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/dataflow-statement.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-access.js +96 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-attachment.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-attachment.js +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-catalog-object-id.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-catalog-object-id.js +69 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection-kind.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection-kind.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-connection.js +74 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-diagnostic.d.ts +46 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-diagnostic.js +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge-reason.d.ts +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge-reason.js +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-edge.js +130 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity-type.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity-type.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-entity.js +148 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-materialization.d.ts +42 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-materialization.js +99 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-node.d.ts +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-node.js +343 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script-reference.d.ts +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script-reference.js +180 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script.d.ts +98 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-script.js +268 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-unresolved-reference.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph-unresolved-reference.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph.d.ts +95 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/execution-graph.js +314 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error-code.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error-code.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-error.js +117 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-result.d.ts +41 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-result.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-statement-kind.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-compilation-statement-kind.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-check.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-check.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-kind.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/script-reference-kind.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-dataflow.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-dataflow.js +159 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-consumer.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-consumer.js +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-type-source.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input-type-source.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input.d.ts +83 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-input.js +184 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-inputs.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/session-inputs.js +72 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/table-parameter-collision.d.ts +56 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution/table-parameter-collision.js +121 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/execution.js +107 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-config.d.ts +63 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-config.js +167 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-dialect.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-dialect.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/formatting-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/keyword-case.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting/keyword-case.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/formatting.js +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/aconst-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/aconst-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attach-database-statement.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attach-database-statement.js +85 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attribute-key.d.ts +320 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/attribute-key.js +323 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/character-type.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/character-type.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/column-constraint.d.ts +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/column-constraint.js +12 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-modifier.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-modifier.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-operation.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/combine-operation.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block-type.d.ts +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block-type.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block.d.ts +53 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/comment-block.js +126 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/constraint-attribute.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/constraint-attribute.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/error.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/error.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/expression-operator.d.ts +49 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/expression-operator.js +52 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/extract-target.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/extract-target.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/group-by-item-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/group-by-item-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/interval-type.d.ts +16 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/interval-type.js +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/join-type.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/join-type.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-command.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-command.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-trigger.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-action-trigger.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-match.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/key-match.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/known-function.d.ts +24 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/known-function.js +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node-type.d.ts +151 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node-type.js +154 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node.d.ts +35 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/node.js +100 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/numeric-type.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/numeric-type.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/on-commit-option.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/on-commit-option.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-direction.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-direction.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-null-rule.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/order-null-rule.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/parsed-script.d.ts +80 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/parsed-script.js +250 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-block-behavior.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-block-behavior.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-strength.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/row-locking-strength.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/sample-count-unit.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/sample-count-unit.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanned-script.d.ts +40 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanned-script.js +125 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-token-type.d.ts +15 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-token-type.js +18 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-tokens.d.ts +59 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/scanner-tokens.js +156 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target-type.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target-type.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target.d.ts +30 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-target.js +80 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-type.d.ts +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement-type.js +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement.d.ts +67 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/statement.js +234 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/subquery-quantifier.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/subquery-quantifier.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/symbol-span.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/symbol-span.js +55 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/table-constraint.d.ts +6 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/table-constraint.js +9 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/temp-type.d.ts +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/temp-type.js +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/text-span.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/text-span.js +55 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/trim-direction.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/trim-direction.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-direction.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-direction.js +7 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-bound-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-exclusion-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-exclusion-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-range-mode.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser/window-range-mode.js +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser.d.ts +47 -0
- package/dist/gen/flatbuffers/dashql/buffers/parser.js +110 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/derived-profile-layout-config.d.ts +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/derived-profile-layout-config.js +73 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-attribute.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-attribute.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-engine.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-engine.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-entity.d.ts +10 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-entity.js +13 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-execution-status.d.ts +8 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-execution-status.js +11 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-fragment.d.ts +64 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-fragment.js +147 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-config.d.ts +95 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-config.js +219 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-orientation.d.ts +14 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-orientation.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-rect.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-layout-rect.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-cross-edge.d.ts +39 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-cross-edge.js +89 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-edge.d.ts +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-edge.js +103 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-kind.d.ts +58 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator-kind.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator.d.ts +124 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-operator.js +288 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-pipeline.d.ts +51 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-pipeline.js +117 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot-role.d.ts +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot-role.js +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot.d.ts +34 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-slot.js +77 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats-field.d.ts +19 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats-field.js +22 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats.d.ts +102 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-stats.js +233 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-update-event.d.ts +50 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/profile-update-event.js +122 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile-events.d.ts +38 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile-events.js +91 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile.d.ts +170 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile/query-profile.js +398 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/profile.js +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-memory-statistics.d.ts +27 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-memory-statistics.js +65 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-memory-statistics.d.ts +57 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-memory-statistics.js +131 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-timings.d.ts +33 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-processing-timings.js +75 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-statistics.d.ts +31 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics/script-statistics.js +71 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics.d.ts +4 -0
- package/dist/gen/flatbuffers/dashql/buffers/statistics.js +17 -0
- package/dist/gen/flatbuffers/dashql/buffers/status/status-code.d.ts +25 -0
- package/dist/gen/flatbuffers/dashql/buffers/status/status-code.js +28 -0
- package/dist/gen/flatbuffers/dashql/buffers/status.d.ts +1 -0
- package/dist/gen/flatbuffers/dashql/buffers/status.js +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/dashboard-spec.d.ts +37 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/dashboard-spec.js +115 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node-type.d.ts +20 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node-type.js +23 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node.d.ts +61 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-node.js +202 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-spec.d.ts +32 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/markdown-spec.js +90 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/table-spec.d.ts +21 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization/table-spec.js +45 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization.d.ts +5 -0
- package/dist/gen/flatbuffers/dashql/buffers/visualization.js +19 -0
- package/dist/gen/jsonschema/app_folder.d.ts +26 -0
- package/dist/gen/jsonschema/app_manifest.d.ts +281 -0
- package/dist/gen/jsonschema/app_workbook.d.ts +355 -0
- package/dist/gen/jsonschema/auth.d.ts +273 -0
- package/dist/gen/jsonschema/connection.d.ts +1609 -0
- package/dist/gen/protobuf/google/protobuf/any_pb.d.ts +24 -0
- package/dist/gen/protobuf/google/protobuf/any_pb.js +7 -0
- package/dist/gen/protobuf/google/protobuf/empty_pb.d.ts +15 -0
- package/dist/gen/protobuf/google/protobuf/empty_pb.js +7 -0
- package/dist/gen/protobuf/google/rpc/status_pb.d.ts +29 -0
- package/dist/gen/protobuf/google/rpc/status_pb.js +18 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/error_details_pb.d.ts +62 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/error_details_pb.js +23 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/hyper_service_pb.d.ts +386 -0
- package/dist/gen/protobuf/salesforce/hyperdb/grpc/v1/hyper_service_pb.js +199 -0
- package/dist/hyperdb-edge/node/runtime_check.d.ts +21 -0
- package/dist/hyperdb-edge/node/runtime_check.js +66 -0
- package/dist/platform/channel_common.d.ts +24 -0
- package/dist/platform/channel_common.js +15 -0
- package/dist/platform/compute/arrow_formatter.d.ts +43 -0
- package/dist/platform/compute/arrow_formatter.js +450 -0
- package/dist/platform/compute/computation_types.d.ts +100 -0
- package/dist/platform/compute/computation_types.js +150 -0
- package/dist/platform/compute/query_result_search_sql.d.ts +10 -0
- package/dist/platform/compute/query_result_search_sql.js +34 -0
- package/dist/platform/connections/clfn_spec.d.ts +97 -0
- package/dist/platform/connections/clfn_spec.js +0 -0
- package/dist/platform/connections/clfn_specs.d.ts +4 -0
- package/dist/platform/connections/clfn_specs.js +12 -0
- package/dist/platform/connections/connection_params.d.ts +19 -0
- package/dist/platform/connections/connection_params.js +63 -0
- package/dist/platform/connections/connection_state.d.ts +24 -0
- package/dist/platform/connections/connection_state.js +29 -0
- package/dist/platform/connections/connector_configs.d.ts +18 -0
- package/dist/platform/connections/connector_configs.js +12 -0
- package/dist/platform/connections/connector_descriptor.d.ts +20 -0
- package/dist/platform/connections/connector_descriptor.js +37 -0
- package/dist/platform/connections/connector_info.d.ts +33 -0
- package/dist/platform/connections/connector_info.js +95 -0
- package/dist/platform/connections/embedded_database_channel.d.ts +20 -0
- package/dist/platform/connections/embedded_database_channel.js +133 -0
- package/dist/platform/connections/hyper/hyper_error_info.d.ts +41 -0
- package/dist/platform/connections/hyper/hyper_error_info.js +117 -0
- package/dist/platform/connections/hyper/hyperdb_grpc_client.d.ts +26 -0
- package/dist/platform/connections/hyper/hyperdb_grpc_client.js +0 -0
- package/dist/platform/connections/hyper/local_cloud.d.ts +15 -0
- package/dist/platform/connections/hyper/local_cloud.js +14 -0
- package/dist/platform/connections/query_channel.d.ts +3 -0
- package/dist/platform/connections/query_channel.js +11 -0
- package/dist/platform/connections/query_execution.d.ts +19 -0
- package/dist/platform/connections/query_execution.js +24 -0
- package/dist/platform/connections/query_execution_args.d.ts +24 -0
- package/dist/platform/connections/query_execution_args.js +0 -0
- package/dist/platform/connections/salesforce/salesforce_api_client.d.ts +10 -0
- package/dist/platform/connections/salesforce/salesforce_api_client.js +14 -0
- package/dist/platform/connections/salesforce/salesforce_api_client_mock.d.ts +16 -0
- package/dist/platform/connections/salesforce/salesforce_connection_state.d.ts +2 -0
- package/dist/platform/connections/salesforce/salesforce_connection_state.js +7 -0
- package/dist/platform/connections/trino_catalogs.d.ts +4 -0
- package/dist/platform/connections/trino_catalogs.js +11 -0
- package/dist/platform/electron_fs.d.ts +4 -0
- package/dist/platform/electron_fs.js +21 -0
- package/dist/platform/embedded_database.d.ts +55 -0
- package/dist/platform/embedded_database.js +5 -0
- package/dist/platform/file_system.d.ts +36 -0
- package/dist/platform/file_system.js +5 -0
- package/dist/platform/http_client.d.ts +16 -0
- package/dist/platform/http_client.js +0 -0
- package/dist/platform/hyper_link_target.d.ts +8 -0
- package/dist/platform/hyper_link_target.js +35 -0
- package/dist/platform/hyperdb/hyperdb_arrow_insert.d.ts +7 -0
- package/dist/platform/hyperdb/hyperdb_arrow_insert.js +119 -0
- package/dist/platform/hyperdb/hyperdb_opfs_instance.d.ts +24 -0
- package/dist/platform/hyperdb/hyperdb_opfs_instance.js +117 -0
- package/dist/platform/hyperdb/hyperdb_parquet_export.d.ts +9 -0
- package/dist/platform/hyperdb/hyperdb_parquet_export.js +42 -0
- package/dist/platform/hyperdb/hyperdb_settings.d.ts +25 -0
- package/dist/platform/hyperdb/hyperdb_settings.js +32 -0
- package/dist/platform/hyperdb/hyperdb_wasm.d.ts +94 -0
- package/dist/platform/hyperdb/hyperdb_wasm.js +494 -0
- package/dist/platform/key_value_storage.d.ts +4 -0
- package/dist/platform/key_value_storage.js +0 -0
- package/dist/platform/logger/log_buffer.d.ts +53 -0
- package/dist/platform/logger/log_buffer.js +126 -0
- package/dist/platform/logger/logger.d.ts +57 -0
- package/dist/platform/logger/logger.js +181 -0
- package/dist/platform/logger/trace_context.d.ts +14 -0
- package/dist/platform/logger/trace_context.js +32 -0
- package/dist/platform/node/node_core.d.ts +3 -0
- package/dist/platform/node/node_core.js +17 -0
- package/dist/platform/node/node_directory_handle.d.ts +44 -0
- package/dist/platform/node/node_directory_handle.js +185 -0
- package/dist/platform/node/node_file_system.d.ts +3 -0
- package/dist/platform/node/node_file_system.js +108 -0
- package/dist/platform/node/node_hyperdb.d.ts +21 -0
- package/dist/platform/node/node_hyperdb.js +113 -0
- package/dist/platform/node/node_instance_locks.d.ts +2 -0
- package/dist/platform/node/node_instance_locks.js +37 -0
- package/dist/platform/node/node_locks.d.ts +20 -0
- package/dist/platform/node/node_locks.js +64 -0
- package/dist/platform/oauth_flow.d.ts +16 -0
- package/dist/platform/oauth_flow.js +0 -0
- package/dist/platform/oauth_types.d.ts +23 -0
- package/dist/platform/oauth_types.js +0 -0
- package/dist/platform/opfs_root.d.ts +5 -0
- package/dist/platform/opfs_root.js +19 -0
- package/dist/platform/proto.d.ts +11 -0
- package/dist/platform/proto.js +15 -0
- package/dist/platform/query/profile_execution_state.d.ts +21 -0
- package/dist/platform/query/profile_execution_state.js +60 -0
- package/dist/platform/query/profile_layout_config.d.ts +5 -0
- package/dist/platform/query/profile_layout_config.js +32 -0
- package/dist/platform/query/profile_operator_symbol.d.ts +6 -0
- package/dist/platform/query/profile_operator_symbol.js +50 -0
- package/dist/platform/query/query_execution_state.d.ts +65 -0
- package/dist/platform/query/query_execution_state.js +33 -0
- package/dist/platform/query/query_progress.d.ts +42 -0
- package/dist/platform/query/query_progress.js +78 -0
- package/dist/platform/query/query_result_cache.d.ts +47 -0
- package/dist/platform/query/query_result_cache.js +8 -0
- package/dist/platform/session/agent_session_client.d.ts +41 -0
- package/dist/platform/session/agent_session_client.js +177 -0
- package/dist/platform/session/agent_session_protocol.d.ts +15 -0
- package/dist/platform/session/agent_session_protocol.js +43 -0
- package/dist/platform/session/agent_session_state.d.ts +45 -0
- package/dist/platform/session/agent_session_state.js +127 -0
- package/dist/platform/session/workbook_journal.d.ts +48 -0
- package/dist/platform/session/workbook_journal.js +94 -0
- package/dist/platform/sql/sql_format.d.ts +9 -0
- package/dist/platform/sql/sql_format.js +40 -0
- package/dist/platform/sql/sql_lint.d.ts +27 -0
- package/dist/platform/sql/sql_lint.js +69 -0
- package/dist/platform/sql/sql_report.d.ts +18 -0
- package/dist/platform/sql/sql_report.js +80 -0
- package/dist/platform/storage/native_storage_backend.d.ts +48 -0
- package/dist/platform/storage/native_storage_backend.js +194 -0
- package/dist/platform/storage/opfs_query_result_cache.d.ts +15 -0
- package/dist/platform/storage/opfs_query_result_cache.js +237 -0
- package/dist/platform/storage/storage_backend.d.ts +89 -0
- package/dist/platform/storage/storage_backend.js +53 -0
- package/dist/platform/storage/storage_root.d.ts +2 -0
- package/dist/platform/storage/storage_root.js +90 -0
- package/dist/platform/storage/storage_versions.d.ts +3 -0
- package/dist/platform/storage/storage_versions.js +13 -0
- package/dist/platform/storage/workbook_tables.d.ts +92 -0
- package/dist/platform/storage/workbook_tables.js +57 -0
- package/dist/platform/storage/workbook_tree.d.ts +29 -0
- package/dist/platform/storage/workbook_tree.js +161 -0
- package/dist/platform/utils/arrow_vectors.d.ts +6 -0
- package/dist/platform/utils/arrow_vectors.js +82 -0
- package/dist/platform/utils/async_consumer.d.ts +14 -0
- package/dist/platform/utils/async_consumer.js +24 -0
- package/dist/platform/utils/async_value.d.ts +20 -0
- package/dist/platform/utils/async_value.js +50 -0
- package/dist/platform/utils/base64.d.ts +19 -0
- package/dist/platform/utils/base64.js +162 -0
- package/dist/platform/utils/crc32.d.ts +6 -0
- package/dist/platform/utils/crc32.js +34 -0
- package/dist/platform/utils/error.d.ts +4 -0
- package/dist/platform/utils/error.js +0 -0
- package/dist/platform/utils/int128.d.ts +7 -0
- package/dist/platform/utils/int128.js +35 -0
- package/dist/platform/utils/pkce.d.ts +2 -0
- package/dist/platform/utils/pkce.js +12 -0
- package/dist/platform/utils/progress.d.ts +14 -0
- package/dist/platform/utils/progress.js +44 -0
- package/dist/platform/utils/sleep.d.ts +1 -0
- package/dist/platform/utils/sleep.js +5 -0
- package/dist/platform/utils/sql_quote.d.ts +2 -0
- package/dist/platform/utils/sql_quote.js +8 -0
- package/dist/platform/utils/variant.d.ts +5 -0
- package/dist/platform/utils/variant.js +0 -0
- package/dist/platform/utils/yield_to_browser.d.ts +1 -0
- package/dist/platform/utils/yield_to_browser.js +5 -0
- package/dist/platform/web_http_client.d.ts +7 -0
- package/dist/platform/web_http_client.js +12 -0
- package/dist/platform/workbook/attachment_mirror.d.ts +2 -0
- package/dist/platform/workbook/attachment_mirror.js +25 -0
- package/dist/platform/workbook/attachment_mounts.d.ts +5 -0
- package/dist/platform/workbook/attachment_mounts.js +62 -0
- package/dist/platform/workbook/run_events.d.ts +66 -0
- package/dist/platform/workbook/run_events.js +38 -0
- package/dist/platform/workbook/script_compilation.d.ts +4 -0
- package/dist/platform/workbook/script_compilation.js +52 -0
- package/dist/platform/workbook/script_editor_state.d.ts +12 -0
- package/dist/platform/workbook/script_editor_state.js +0 -0
- package/dist/platform/workbook/script_reference_check.d.ts +27 -0
- package/dist/platform/workbook/script_reference_check.js +59 -0
- package/dist/platform/workbook/script_types.d.ts +53 -0
- package/dist/platform/workbook/script_types.js +21 -0
- package/dist/platform/workbook/workbook_attachments.d.ts +3 -0
- package/dist/platform/workbook/workbook_attachments.js +9 -0
- package/dist/platform/workbook/workbook_execution.d.ts +31 -0
- package/dist/platform/workbook/workbook_execution.js +28 -0
- package/dist/platform/workbook/workbook_inputs.d.ts +41 -0
- package/dist/platform/workbook/workbook_inputs.js +94 -0
- package/dist/platform/workbook/workbook_scripts.d.ts +58 -0
- package/dist/platform/workbook/workbook_scripts.js +21 -0
- package/dist/platform/workbook/workbook_zip.d.ts +5 -0
- package/dist/platform/workbook/workbook_zip.js +28 -0
- package/dist/runtime/compute_database.d.ts +18 -0
- package/dist/runtime/compute_database.js +56 -0
- package/dist/runtime/compute_platform.d.ts +5 -0
- package/dist/runtime/compute_platform.js +76 -0
- package/dist/runtime/embedded_session.d.ts +8 -0
- package/dist/runtime/embedded_session.js +23 -0
- package/dist/runtime/node/node_platform.d.ts +12 -0
- package/dist/runtime/node/node_platform.js +23 -0
- package/dist/runtime/platform_requests.d.ts +18 -0
- package/dist/runtime/platform_requests.js +104 -0
- package/dist/runtime/query/cache_pins.d.ts +8 -0
- package/dist/runtime/query/cache_pins.js +27 -0
- package/dist/runtime/query/query_channels.d.ts +34 -0
- package/dist/runtime/query/query_channels.js +250 -0
- package/dist/runtime/query/query_projection.d.ts +4 -0
- package/dist/runtime/query/query_projection.js +41 -0
- package/dist/runtime/query/query_result_stream.d.ts +15 -0
- package/dist/runtime/query/query_result_stream.js +100 -0
- package/dist/runtime/run_mounts.d.ts +6 -0
- package/dist/runtime/run_mounts.js +44 -0
- package/dist/runtime/runtime.d.ts +149 -0
- package/dist/runtime/runtime.js +420 -0
- package/dist/runtime/runtime_storage.d.ts +47 -0
- package/dist/runtime/runtime_storage.js +118 -0
- package/dist/runtime/store/handles.d.ts +30 -0
- package/dist/runtime/store/handles.js +46 -0
- package/dist/runtime/store/projection.d.ts +8 -0
- package/dist/runtime/store/projection.js +51 -0
- package/dist/runtime/store/runtime_store.d.ts +53 -0
- package/dist/runtime/store/runtime_store.js +195 -0
- package/dist/runtime/store/runtime_tables.d.ts +10 -0
- package/dist/runtime/store/runtime_tables.js +115 -0
- package/dist/runtime/store/update_scheduler.d.ts +6 -0
- package/dist/runtime/store/update_scheduler.js +7 -0
- package/dist/runtime/workbook_archives.d.ts +7 -0
- package/dist/runtime/workbook_archives.js +103 -0
- package/dist/runtime/workbook_projection.d.ts +28 -0
- package/dist/runtime/workbook_projection.js +178 -0
- package/dist/runtime/workbook_run_report.d.ts +22 -0
- package/dist/runtime/workbook_run_report.js +248 -0
- package/dist/wasm/dashql_core.d.ts +4147 -0
- package/dist/wasm/dashql_core.js +4487 -0
- package/dist/wasm/dashql_core.wasm +0 -0
- package/dist/wasm/dashql_dataflow.d.ts +148 -0
- package/dist/wasm/dashql_dataflow.js +474 -0
- package/dist/wasm/dashql_dataflow.wasm +0 -0
- package/package.json +44 -4
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { QueryProfileEvents } from "../../gen/flatbuffers/dashql/buffers/profile/query-profile-events.js";
|
|
2
|
+
import { readFlatBuffer } from "../../core/flatbuffer_view.js";
|
|
3
|
+
import "../../core/index.js";
|
|
4
|
+
import { ProfileExecutionState } from "./profile_execution_state.js";
|
|
5
|
+
// dist/.stage/src/platform/query/query_progress.ts
|
|
6
|
+
function profileKeys(progress) {
|
|
7
|
+
return progress == null ? null : {
|
|
8
|
+
revision: progress.revision,
|
|
9
|
+
structureVersion: progress.structureVersion
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function projectProfileProgress(view, previous, source, readProfile) {
|
|
13
|
+
if (previous != null && previous.revision === view.revision && previous.structureVersion === view.structureVersion) return previous;
|
|
14
|
+
const structure = previous?.structureVersion === view.structureVersion ? previous.structure : view.structure != null ? readProfile(view.structure) : null;
|
|
15
|
+
if (structure == null) return null;
|
|
16
|
+
const execution = view.execution != null ? ProfileExecutionState.EMPTY.withEvents(readFlatBuffer(view.execution, (bb) => QueryProfileEvents.getRootAsQueryProfileEvents(bb))) : previous?.execution ?? ProfileExecutionState.EMPTY;
|
|
17
|
+
return {
|
|
18
|
+
revision: view.revision,
|
|
19
|
+
structureVersion: view.structureVersion,
|
|
20
|
+
structure,
|
|
21
|
+
execution,
|
|
22
|
+
source
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function projectQueryProgress(core, view, previous, source) {
|
|
26
|
+
if (view == null) return null;
|
|
27
|
+
if (previous != null && previous.view === view) return previous.progress;
|
|
28
|
+
const profileProgress = view.profile == null ? null : projectProfileProgress(view.profile, previous?.progress.profileProgress ?? null, source, (bytes) => core.readQueryProfile(bytes));
|
|
29
|
+
return {
|
|
30
|
+
isQueued: view.isQueued,
|
|
31
|
+
progressPercent: view.progressPercent,
|
|
32
|
+
resultRows: view.resultRows,
|
|
33
|
+
rowsProcessed: view.rowsProcessed,
|
|
34
|
+
executionTimeMs: view.executionTimeMs,
|
|
35
|
+
metrics: view.metrics,
|
|
36
|
+
phase: view.phase,
|
|
37
|
+
profileProgress
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function readProgressRecording(progress) {
|
|
41
|
+
if (progress.source == null) return null;
|
|
42
|
+
try {
|
|
43
|
+
return progress.source.runtime.queryProgressRecording(progress.source.queryId) ?? null;
|
|
44
|
+
} catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function replayProgressRecording(core, recording, untilMs = Number.MAX_SAFE_INTEGER, layout = null) {
|
|
49
|
+
const view = core.replayQueryProgress(recording, untilMs, layout);
|
|
50
|
+
return view == null ? null : projectProfileProgress(view, null, null, (bytes) => core.readQueryProfile(bytes));
|
|
51
|
+
}
|
|
52
|
+
var QueryProgressFollower = class {
|
|
53
|
+
core;
|
|
54
|
+
native;
|
|
55
|
+
previous = null;
|
|
56
|
+
constructor(core, layout) {
|
|
57
|
+
this.core = core;
|
|
58
|
+
this.native = core.createQueryProgressFollower(layout);
|
|
59
|
+
}
|
|
60
|
+
follow(progress) {
|
|
61
|
+
const source = progress.source;
|
|
62
|
+
if (source == null) return null;
|
|
63
|
+
const held = this.previous?.source;
|
|
64
|
+
const previous = held != null && held.runtime === source.runtime && held.queryId === source.queryId ? this.previous : null;
|
|
65
|
+
try {
|
|
66
|
+
const view = this.native.follow(source.runtime, source.queryId, profileKeys(previous));
|
|
67
|
+
this.previous = view == null ? null : projectProfileProgress(view, previous, source, (bytes) => this.core.readQueryProfile(bytes));
|
|
68
|
+
} catch {
|
|
69
|
+
this.previous = null;
|
|
70
|
+
}
|
|
71
|
+
return this.previous;
|
|
72
|
+
}
|
|
73
|
+
destroy() {
|
|
74
|
+
this.native.destroy();
|
|
75
|
+
this.previous = null;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
export { QueryProgressFollower, projectQueryProgress, readProgressRecording, replayProgressRecording };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type * as arrow from 'apache-arrow';
|
|
2
|
+
import type { ParquetDatabase } from '../hyperdb/hyperdb_parquet_export.js';
|
|
3
|
+
export declare class QueryCacheMissError extends Error {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
6
|
+
export interface QueryResultCacheEntry {
|
|
7
|
+
name: string;
|
|
8
|
+
key: string;
|
|
9
|
+
size: number;
|
|
10
|
+
cachedAtMs: number;
|
|
11
|
+
lastAccessMs: number;
|
|
12
|
+
}
|
|
13
|
+
export interface CacheFileStat {
|
|
14
|
+
name: string;
|
|
15
|
+
size: number;
|
|
16
|
+
mtimeMs: number;
|
|
17
|
+
lastAccessMs: number;
|
|
18
|
+
}
|
|
19
|
+
export interface QueryResultCache {
|
|
20
|
+
readonly mountPath: string;
|
|
21
|
+
lookup(key: string): Promise<QueryResultCacheEntry | null>;
|
|
22
|
+
has(key: string): Promise<boolean>;
|
|
23
|
+
retain(key: string): Promise<{
|
|
24
|
+
entry: QueryResultCacheEntry;
|
|
25
|
+
release: () => Promise<void>;
|
|
26
|
+
} | null>;
|
|
27
|
+
list(): Promise<QueryResultCacheEntry[]>;
|
|
28
|
+
touch(name: string): Promise<void>;
|
|
29
|
+
delete(key: string): Promise<boolean>;
|
|
30
|
+
clear(): Promise<string[]>;
|
|
31
|
+
pin(name: string): Promise<() => Promise<void>>;
|
|
32
|
+
newFileName(key: string): string;
|
|
33
|
+
newTransientFileName(): string;
|
|
34
|
+
mount(database: ParquetDatabase): Promise<void>;
|
|
35
|
+
writeTable(database: ParquetDatabase, table: arrow.Table, name: string): Promise<File>;
|
|
36
|
+
readTable(database: ParquetDatabase, name: string): Promise<arrow.Table>;
|
|
37
|
+
readFile(name: string): Promise<Blob>;
|
|
38
|
+
importFile(key: string, data: Blob, options?: {
|
|
39
|
+
crc32?: number;
|
|
40
|
+
}): Promise<boolean>;
|
|
41
|
+
readonly capacity: {
|
|
42
|
+
maxBytes: number;
|
|
43
|
+
maxFiles: number;
|
|
44
|
+
};
|
|
45
|
+
fileStats(): Promise<CacheFileStat[]>;
|
|
46
|
+
remove(name: string): Promise<boolean>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { AgentSessionState } from './agent_session_state.js';
|
|
2
|
+
import type { SessionConnections } from './workbook_journal.js';
|
|
3
|
+
export interface AgentSessionTarget {
|
|
4
|
+
endpoint: string;
|
|
5
|
+
token: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function parseAgentSessionTarget(endpoint: unknown, token: unknown): AgentSessionTarget | null;
|
|
8
|
+
export declare function agentSessionStreamUrl(target: AgentSessionTarget): string;
|
|
9
|
+
export interface AgentSessionRunRequest {
|
|
10
|
+
workbookId: string;
|
|
11
|
+
label: string;
|
|
12
|
+
scripts: string[];
|
|
13
|
+
refresh: boolean;
|
|
14
|
+
rows: number;
|
|
15
|
+
}
|
|
16
|
+
export type AgentSessionRunMessage = ({
|
|
17
|
+
type: 'run';
|
|
18
|
+
runId: string;
|
|
19
|
+
} & AgentSessionRunRequest) | {
|
|
20
|
+
type: 'stop';
|
|
21
|
+
runId: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const AGENT_SESSION_RUN_HEADER = "X-DashQL-Run";
|
|
24
|
+
export declare function followAgentSession(target: AgentSessionTarget, onState: (state: AgentSessionState) => void, signal: AbortSignal, onRun?: (message: AgentSessionRunMessage) => void): Promise<void>;
|
|
25
|
+
export interface AgentSessionWorkbookFile {
|
|
26
|
+
path: string;
|
|
27
|
+
content: string | Uint8Array<ArrayBuffer> | Blob;
|
|
28
|
+
}
|
|
29
|
+
export declare function writeAgentSessionWorkbook(target: AgentSessionTarget, workbookId: string, files: readonly AgentSessionWorkbookFile[], signal?: AbortSignal): Promise<void>;
|
|
30
|
+
export declare function writeAgentSessionWorkbookFile(target: AgentSessionTarget, workbookId: string, file: AgentSessionWorkbookFile, signal?: AbortSignal): Promise<void>;
|
|
31
|
+
export declare function deleteAgentSessionWorkbookFile(target: AgentSessionTarget, workbookId: string, path: string, signal?: AbortSignal): Promise<void>;
|
|
32
|
+
export declare function readAgentSessionWorkbookText(target: AgentSessionTarget, workbookId: string, path: string, signal?: AbortSignal): Promise<string>;
|
|
33
|
+
export declare function readWorkbookFolderFiles(folder: FileSystemDirectoryHandle): Promise<AgentSessionWorkbookFile[] | null>;
|
|
34
|
+
export declare function writeAgentSessionConnections(target: AgentSessionTarget, connections: SessionConnections, signal?: AbortSignal): Promise<void>;
|
|
35
|
+
export declare function startAgentSessionRun(target: AgentSessionTarget, request: AgentSessionRunRequest): Promise<{
|
|
36
|
+
runId: string;
|
|
37
|
+
events: ReadableStream<Uint8Array>;
|
|
38
|
+
}>;
|
|
39
|
+
export declare function stopAgentSessionRun(target: AgentSessionTarget, runId: string): Promise<void>;
|
|
40
|
+
export declare function postAgentSessionRunEvent(target: AgentSessionTarget, runId: string, event: unknown): Promise<boolean>;
|
|
41
|
+
export declare function writeAgentSessionResult(target: AgentSessionTarget, key: string, data: Blob): Promise<string>;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { STORAGE_ATTACHMENTS_FOLDER, STORAGE_SCRIPTS_FOLDER, STORAGE_WORKBOOK_FILE } from "../storage/storage_backend.js";
|
|
2
|
+
import { fetchAgentSession } from "./agent_session_protocol.js";
|
|
3
|
+
// dist/.stage/src/platform/session/agent_session_client.ts
|
|
4
|
+
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set([
|
|
5
|
+
"127.0.0.1",
|
|
6
|
+
"localhost",
|
|
7
|
+
"[::1]"
|
|
8
|
+
]);
|
|
9
|
+
function parseAgentSessionTarget(endpoint, token) {
|
|
10
|
+
if (typeof endpoint !== "string" || typeof token !== "string" || token.length === 0) return null;
|
|
11
|
+
let url;
|
|
12
|
+
try {
|
|
13
|
+
url = new URL(endpoint);
|
|
14
|
+
} catch {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
if (url.protocol !== "http:" || !LOOPBACK_HOSTS.has(url.hostname)) return null;
|
|
18
|
+
return {
|
|
19
|
+
endpoint: url.origin,
|
|
20
|
+
token
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function agentSessionStreamUrl(target) {
|
|
24
|
+
const url = new URL("/v1/stream", target.endpoint);
|
|
25
|
+
url.searchParams.set("token", target.token);
|
|
26
|
+
return url.toString();
|
|
27
|
+
}
|
|
28
|
+
var AGENT_SESSION_RUN_HEADER = "X-DashQL-Run";
|
|
29
|
+
async function followAgentSession(target, onState, signal, onRun) {
|
|
30
|
+
const response = await fetchAgentSession(agentSessionStreamUrl(target), {
|
|
31
|
+
signal,
|
|
32
|
+
headers: { Accept: "text/event-stream" }
|
|
33
|
+
});
|
|
34
|
+
if (!response.ok || response.body == null) throw new Error(`the session answered with ${response.status}`);
|
|
35
|
+
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
36
|
+
let buffered = "";
|
|
37
|
+
while (true) {
|
|
38
|
+
const { value, done } = await reader.read();
|
|
39
|
+
if (done) return;
|
|
40
|
+
buffered += value;
|
|
41
|
+
let end;
|
|
42
|
+
while ((end = buffered.indexOf("\n\n")) >= 0) {
|
|
43
|
+
const block = buffered.slice(0, end);
|
|
44
|
+
buffered = buffered.slice(end + 2);
|
|
45
|
+
const lines = block.split("\n");
|
|
46
|
+
const data = lines.filter((line) => line.startsWith("data:")).map((line) => line.slice(5).trimStart()).join("\n");
|
|
47
|
+
if (data.length === 0) continue;
|
|
48
|
+
if (lines.some((line) => line === "event: run")) onRun?.(JSON.parse(data));
|
|
49
|
+
else onState(JSON.parse(data));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function workbookUrl(target, workbookId, file) {
|
|
54
|
+
const parts = [
|
|
55
|
+
"v1",
|
|
56
|
+
"workbooks",
|
|
57
|
+
target.token,
|
|
58
|
+
workbookId,
|
|
59
|
+
...file?.split("/") ?? []
|
|
60
|
+
];
|
|
61
|
+
return new URL(`/${parts.map(encodeURIComponent).join("/")}`, target.endpoint).toString();
|
|
62
|
+
}
|
|
63
|
+
async function expectOk(response, what) {
|
|
64
|
+
if (!response.ok) throw new Error(`the session answered ${what} with ${response.status}`);
|
|
65
|
+
}
|
|
66
|
+
async function writeAgentSessionWorkbook(target, workbookId, files, signal) {
|
|
67
|
+
await expectOk(await fetchAgentSession(workbookUrl(target, workbookId), {
|
|
68
|
+
method: "DELETE",
|
|
69
|
+
signal
|
|
70
|
+
}), "the removal of the copy");
|
|
71
|
+
const ordered = [...files.filter((file) => file.path !== STORAGE_WORKBOOK_FILE), ...files.filter((file) => file.path === STORAGE_WORKBOOK_FILE)];
|
|
72
|
+
for (const file of ordered) await writeAgentSessionWorkbookFile(target, workbookId, file, signal);
|
|
73
|
+
}
|
|
74
|
+
async function writeAgentSessionWorkbookFile(target, workbookId, file, signal) {
|
|
75
|
+
await expectOk(await fetchAgentSession(workbookUrl(target, workbookId, file.path), {
|
|
76
|
+
method: "PUT",
|
|
77
|
+
body: file.content,
|
|
78
|
+
signal
|
|
79
|
+
}), `the write of ${file.path}`);
|
|
80
|
+
}
|
|
81
|
+
async function deleteAgentSessionWorkbookFile(target, workbookId, path, signal) {
|
|
82
|
+
await expectOk(await fetchAgentSession(workbookUrl(target, workbookId, path), {
|
|
83
|
+
method: "DELETE",
|
|
84
|
+
signal
|
|
85
|
+
}), `the removal of ${path}`);
|
|
86
|
+
}
|
|
87
|
+
async function readAgentSessionWorkbookText(target, workbookId, path, signal) {
|
|
88
|
+
const response = await fetchAgentSession(workbookUrl(target, workbookId, path), { signal });
|
|
89
|
+
await expectOk(response, `the read of ${path}`);
|
|
90
|
+
return await response.text();
|
|
91
|
+
}
|
|
92
|
+
async function readWorkbookFolderFiles(folder) {
|
|
93
|
+
let workbook;
|
|
94
|
+
try {
|
|
95
|
+
workbook = await (await folder.getFileHandle(STORAGE_WORKBOOK_FILE)).getFile();
|
|
96
|
+
} catch {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
const files = [];
|
|
100
|
+
for (const sub of [STORAGE_SCRIPTS_FOLDER, STORAGE_ATTACHMENTS_FOLDER]) {
|
|
101
|
+
let dir;
|
|
102
|
+
try {
|
|
103
|
+
dir = await folder.getDirectoryHandle(sub);
|
|
104
|
+
} catch {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
const entries = [];
|
|
108
|
+
for await (const [name, handle] of dir.entries()) if (handle.kind === "file") entries.push([name, handle]);
|
|
109
|
+
entries.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
110
|
+
for (const [name, handle] of entries) files.push({
|
|
111
|
+
path: `${sub}/${name}`,
|
|
112
|
+
content: await handle.getFile()
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
return [{
|
|
116
|
+
path: STORAGE_WORKBOOK_FILE,
|
|
117
|
+
content: workbook
|
|
118
|
+
}, ...files];
|
|
119
|
+
}
|
|
120
|
+
async function writeAgentSessionConnections(target, connections, signal) {
|
|
121
|
+
const url = new URL(`/v1/connections/${encodeURIComponent(target.token)}`, target.endpoint);
|
|
122
|
+
await expectOk(await fetchAgentSession(url, {
|
|
123
|
+
method: "PUT",
|
|
124
|
+
body: JSON.stringify(connections),
|
|
125
|
+
signal
|
|
126
|
+
}), "the connections of the agent");
|
|
127
|
+
}
|
|
128
|
+
function runUrl(target, runId) {
|
|
129
|
+
const parts = [
|
|
130
|
+
"v1",
|
|
131
|
+
"runs",
|
|
132
|
+
target.token,
|
|
133
|
+
...runId == null ? [] : [runId]
|
|
134
|
+
];
|
|
135
|
+
return new URL(`/${parts.map(encodeURIComponent).join("/")}`, target.endpoint);
|
|
136
|
+
}
|
|
137
|
+
async function startAgentSessionRun(target, request) {
|
|
138
|
+
const response = await fetchAgentSession(runUrl(target), {
|
|
139
|
+
method: "POST",
|
|
140
|
+
body: JSON.stringify(request)
|
|
141
|
+
});
|
|
142
|
+
const runId = response.headers.get(AGENT_SESSION_RUN_HEADER);
|
|
143
|
+
if (!response.ok || runId == null || response.body == null) {
|
|
144
|
+
let error = `the session answered the run with ${response.status}`;
|
|
145
|
+
try {
|
|
146
|
+
const answer = await response.json();
|
|
147
|
+
if (typeof answer?.error === "string") error = answer.error;
|
|
148
|
+
} catch {}
|
|
149
|
+
throw new Error(error);
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
runId,
|
|
153
|
+
events: response.body
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
async function stopAgentSessionRun(target, runId) {
|
|
157
|
+
await expectOk(await fetchAgentSession(runUrl(target, runId), { method: "DELETE" }), "the stop of the run");
|
|
158
|
+
}
|
|
159
|
+
async function postAgentSessionRunEvent(target, runId, event) {
|
|
160
|
+
const response = await fetchAgentSession(runUrl(target, runId), {
|
|
161
|
+
method: "POST",
|
|
162
|
+
body: JSON.stringify(event)
|
|
163
|
+
});
|
|
164
|
+
if (response.status === 404) return false;
|
|
165
|
+
await expectOk(response, "the event of the run");
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
async function writeAgentSessionResult(target, key, data) {
|
|
169
|
+
const url = new URL(`/v1/results/${encodeURIComponent(target.token)}/${encodeURIComponent(key)}`, target.endpoint);
|
|
170
|
+
const response = await fetchAgentSession(url, {
|
|
171
|
+
method: "PUT",
|
|
172
|
+
body: data
|
|
173
|
+
});
|
|
174
|
+
await expectOk(response, `the result ${key}`);
|
|
175
|
+
return (await response.json()).file;
|
|
176
|
+
}
|
|
177
|
+
export { AGENT_SESSION_RUN_HEADER, agentSessionStreamUrl, deleteAgentSessionWorkbookFile, followAgentSession, parseAgentSessionTarget, postAgentSessionRunEvent, readAgentSessionWorkbookText, readWorkbookFolderFiles, startAgentSessionRun, stopAgentSessionRun, writeAgentSessionConnections, writeAgentSessionResult, writeAgentSessionWorkbook, writeAgentSessionWorkbookFile };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const AGENT_SESSION_PROTOCOL = 1;
|
|
2
|
+
export declare const AGENT_SESSION_MIN_PROTOCOL = 1;
|
|
3
|
+
export declare const AGENT_SESSION_PROTOCOL_HEADER = "X-DashQL-Protocol";
|
|
4
|
+
export declare const AGENT_SESSION_MIN_PROTOCOL_HEADER = "X-DashQL-Min-Protocol";
|
|
5
|
+
export type AgentSessionOutdated = 'server' | 'client';
|
|
6
|
+
export declare class AgentSessionProtocolError extends Error {
|
|
7
|
+
readonly outdated: AgentSessionOutdated;
|
|
8
|
+
readonly serverProtocol: number | null;
|
|
9
|
+
constructor(outdated: AgentSessionOutdated, serverProtocol: number | null);
|
|
10
|
+
}
|
|
11
|
+
export declare function parseAgentSessionProtocol(value: string | readonly string[] | null | undefined): number | null;
|
|
12
|
+
export declare function serverAcceptsAgentSessionClient(clientProtocol: number | null): boolean;
|
|
13
|
+
export declare function outdatedAgentSessionSide(serverProtocol: number | null, serverMinProtocol: number | null): AgentSessionOutdated | null;
|
|
14
|
+
export declare function checkAgentSessionAnswer(response: Response): void;
|
|
15
|
+
export declare function fetchAgentSession(input: URL | string, init?: RequestInit, send?: typeof fetch): Promise<Response>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// dist/.stage/src/platform/session/agent_session_protocol.ts
|
|
2
|
+
var AGENT_SESSION_PROTOCOL = 1;
|
|
3
|
+
var AGENT_SESSION_MIN_PROTOCOL = 1;
|
|
4
|
+
var AGENT_SESSION_PROTOCOL_HEADER = "X-DashQL-Protocol";
|
|
5
|
+
var AGENT_SESSION_MIN_PROTOCOL_HEADER = "X-DashQL-Min-Protocol";
|
|
6
|
+
var AgentSessionProtocolError = class extends Error {
|
|
7
|
+
outdated;
|
|
8
|
+
serverProtocol;
|
|
9
|
+
constructor(outdated, serverProtocol) {
|
|
10
|
+
super(outdated === "server" ? `the server of the session speaks protocol ${serverProtocol ?? "none"}, this client needs 1 or newer: update dashql-cli` : `the server of the session speaks protocol ${serverProtocol ?? "none"} and needs a newer client than protocol 1`);
|
|
11
|
+
this.outdated = outdated;
|
|
12
|
+
this.serverProtocol = serverProtocol;
|
|
13
|
+
this.name = "AgentSessionProtocolError";
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
function parseAgentSessionProtocol(value) {
|
|
17
|
+
if (typeof value !== "string" || !/^\s*\d{1,9}\s*$/.test(value)) return null;
|
|
18
|
+
return Number(value);
|
|
19
|
+
}
|
|
20
|
+
function serverAcceptsAgentSessionClient(clientProtocol) {
|
|
21
|
+
return clientProtocol != null && clientProtocol >= 1;
|
|
22
|
+
}
|
|
23
|
+
function outdatedAgentSessionSide(serverProtocol, serverMinProtocol) {
|
|
24
|
+
if (serverProtocol == null || serverMinProtocol == null || serverProtocol < 1) return "server";
|
|
25
|
+
if (1 < serverMinProtocol) return "client";
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
function checkAgentSessionAnswer(response) {
|
|
29
|
+
const serverProtocol = parseAgentSessionProtocol(response.headers.get(AGENT_SESSION_PROTOCOL_HEADER));
|
|
30
|
+
const outdated = outdatedAgentSessionSide(serverProtocol, parseAgentSessionProtocol(response.headers.get(AGENT_SESSION_MIN_PROTOCOL_HEADER)));
|
|
31
|
+
if (outdated != null) throw new AgentSessionProtocolError(outdated, serverProtocol);
|
|
32
|
+
}
|
|
33
|
+
async function fetchAgentSession(input, init = {}, send = fetch) {
|
|
34
|
+
const headers = new Headers(init.headers);
|
|
35
|
+
headers.set(AGENT_SESSION_PROTOCOL_HEADER, String(1));
|
|
36
|
+
const response = await send(input, {
|
|
37
|
+
...init,
|
|
38
|
+
headers
|
|
39
|
+
});
|
|
40
|
+
checkAgentSessionAnswer(response);
|
|
41
|
+
return response;
|
|
42
|
+
}
|
|
43
|
+
export { AGENT_SESSION_MIN_PROTOCOL, AGENT_SESSION_MIN_PROTOCOL_HEADER, AGENT_SESSION_PROTOCOL, AGENT_SESSION_PROTOCOL_HEADER, AgentSessionProtocolError, checkAgentSessionAnswer, fetchAgentSession, outdatedAgentSessionSide, parseAgentSessionProtocol, serverAcceptsAgentSessionClient };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { LogRecord } from '../logger/log_buffer.js';
|
|
2
|
+
import { type JournalFile, type SessionWorkbook } from './workbook_journal.js';
|
|
3
|
+
export type AgentSessionEventName = 'SessionStart' | 'UserPromptSubmit' | 'PreToolUse' | 'PostToolUse' | 'Stop' | 'SessionEnd';
|
|
4
|
+
export interface AgentSessionEvent {
|
|
5
|
+
event: AgentSessionEventName;
|
|
6
|
+
harness: string;
|
|
7
|
+
folder: string;
|
|
8
|
+
prompt?: string | null;
|
|
9
|
+
status?: string | null;
|
|
10
|
+
files?: string[];
|
|
11
|
+
toolUseId?: string | null;
|
|
12
|
+
message?: string | null;
|
|
13
|
+
error?: string | null;
|
|
14
|
+
}
|
|
15
|
+
export interface AgentSessionStep {
|
|
16
|
+
label: string;
|
|
17
|
+
toolUseId: string | null;
|
|
18
|
+
startedAt: number;
|
|
19
|
+
endedAt: number | null;
|
|
20
|
+
failed: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface AgentSessionTurn {
|
|
23
|
+
turnId: number;
|
|
24
|
+
question: string;
|
|
25
|
+
status: string | null;
|
|
26
|
+
error: string | null;
|
|
27
|
+
note: string | null;
|
|
28
|
+
files: string[];
|
|
29
|
+
steps: AgentSessionStep[];
|
|
30
|
+
}
|
|
31
|
+
export interface AgentSessionState {
|
|
32
|
+
harness: string;
|
|
33
|
+
folder: string;
|
|
34
|
+
ended: boolean;
|
|
35
|
+
turns: AgentSessionTurn[];
|
|
36
|
+
workbooks: SessionWorkbook[];
|
|
37
|
+
log: LogRecord[];
|
|
38
|
+
version: number;
|
|
39
|
+
}
|
|
40
|
+
export declare const MAX_AGENT_SESSION_TURNS = 50;
|
|
41
|
+
export declare const MAX_AGENT_SESSION_STEPS = 30;
|
|
42
|
+
export declare const MAX_AGENT_SESSION_LOG = 100;
|
|
43
|
+
export declare function createAgentSessionState(harness: string, folder: string): AgentSessionState;
|
|
44
|
+
export declare function reduceAgentSessionEvent(state: AgentSessionState, event: AgentSessionEvent, now?: number): AgentSessionState;
|
|
45
|
+
export declare function reduceAgentSessionJournal(state: AgentSessionState, record: LogRecord, files?: JournalFile[]): AgentSessionState;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { isJournalMarker, reduceJournalMarker } from "./workbook_journal.js";
|
|
2
|
+
// dist/.stage/src/platform/session/agent_session_state.ts
|
|
3
|
+
var MAX_AGENT_SESSION_TURNS = 50;
|
|
4
|
+
var MAX_AGENT_SESSION_STEPS = 30;
|
|
5
|
+
var MAX_AGENT_SESSION_LOG = 100;
|
|
6
|
+
function createAgentSessionState(harness, folder) {
|
|
7
|
+
return {
|
|
8
|
+
harness,
|
|
9
|
+
folder,
|
|
10
|
+
ended: false,
|
|
11
|
+
turns: [],
|
|
12
|
+
workbooks: [],
|
|
13
|
+
log: [],
|
|
14
|
+
version: 0
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function newTurn(state, question) {
|
|
18
|
+
return {
|
|
19
|
+
turnId: (state.turns[state.turns.length - 1]?.turnId ?? 0) + 1,
|
|
20
|
+
question,
|
|
21
|
+
status: "working",
|
|
22
|
+
error: null,
|
|
23
|
+
note: null,
|
|
24
|
+
files: [],
|
|
25
|
+
steps: []
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function endSteps(steps, now) {
|
|
29
|
+
return steps.map((step) => step.endedAt == null ? {
|
|
30
|
+
...step,
|
|
31
|
+
endedAt: now
|
|
32
|
+
} : step);
|
|
33
|
+
}
|
|
34
|
+
function openStepOf(steps, toolUseId, label) {
|
|
35
|
+
if (toolUseId != null) {
|
|
36
|
+
const index = steps.findIndex((step) => step.endedAt == null && step.toolUseId === toolUseId);
|
|
37
|
+
if (index >= 0) return index;
|
|
38
|
+
}
|
|
39
|
+
return steps.findIndex((step) => step.endedAt == null && (step.toolUseId == null || toolUseId == null) && step.label === label);
|
|
40
|
+
}
|
|
41
|
+
function reduceAgentSessionEvent(state, event, now = Date.now()) {
|
|
42
|
+
let turns = state.turns;
|
|
43
|
+
const last = turns[turns.length - 1];
|
|
44
|
+
const open = last != null && last.status != null ? last : null;
|
|
45
|
+
switch (event.event) {
|
|
46
|
+
case "SessionStart": break;
|
|
47
|
+
case "UserPromptSubmit":
|
|
48
|
+
turns = [...turns, newTurn(state, event.prompt ?? "")];
|
|
49
|
+
break;
|
|
50
|
+
case "PreToolUse":
|
|
51
|
+
case "PostToolUse": {
|
|
52
|
+
const turn = open ?? newTurn(state, "");
|
|
53
|
+
const files = [...turn.files];
|
|
54
|
+
for (const file of event.files ?? []) if (!files.includes(file)) files.push(file);
|
|
55
|
+
const label = event.status ?? "tool";
|
|
56
|
+
const toolUseId = event.toolUseId ?? null;
|
|
57
|
+
const steps = [...turn.steps];
|
|
58
|
+
if (event.event === "PreToolUse") steps.push({
|
|
59
|
+
label,
|
|
60
|
+
toolUseId,
|
|
61
|
+
startedAt: now,
|
|
62
|
+
endedAt: null,
|
|
63
|
+
failed: false
|
|
64
|
+
});
|
|
65
|
+
else {
|
|
66
|
+
const failed = event.error != null;
|
|
67
|
+
const index = openStepOf(steps, toolUseId, label);
|
|
68
|
+
if (index >= 0) steps[index] = {
|
|
69
|
+
...steps[index],
|
|
70
|
+
endedAt: now,
|
|
71
|
+
failed
|
|
72
|
+
};
|
|
73
|
+
else steps.push({
|
|
74
|
+
label,
|
|
75
|
+
toolUseId,
|
|
76
|
+
startedAt: now,
|
|
77
|
+
endedAt: now,
|
|
78
|
+
failed
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const next = {
|
|
82
|
+
...turn,
|
|
83
|
+
status: event.status ?? turn.status,
|
|
84
|
+
files,
|
|
85
|
+
steps: steps.slice(-30)
|
|
86
|
+
};
|
|
87
|
+
turns = open != null ? [...turns.slice(0, -1), next] : [...turns, next];
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
case "Stop":
|
|
91
|
+
if (open != null) turns = [...turns.slice(0, -1), {
|
|
92
|
+
...open,
|
|
93
|
+
status: null,
|
|
94
|
+
note: event.message ?? null,
|
|
95
|
+
error: event.error ?? null,
|
|
96
|
+
steps: endSteps(open.steps, now)
|
|
97
|
+
}];
|
|
98
|
+
break;
|
|
99
|
+
case "SessionEnd": if (open != null) turns = [...turns.slice(0, -1), {
|
|
100
|
+
...open,
|
|
101
|
+
status: null,
|
|
102
|
+
steps: endSteps(open.steps, now)
|
|
103
|
+
}];
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
harness: event.harness || state.harness,
|
|
107
|
+
folder: event.folder || state.folder,
|
|
108
|
+
ended: event.event === "SessionEnd" ? true : event.event === "SessionStart" ? false : state.ended,
|
|
109
|
+
turns: turns.slice(-50),
|
|
110
|
+
workbooks: state.workbooks,
|
|
111
|
+
log: state.log,
|
|
112
|
+
version: state.version + 1
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function reduceAgentSessionJournal(state, record, files = []) {
|
|
116
|
+
if (isJournalMarker(record)) return {
|
|
117
|
+
...state,
|
|
118
|
+
workbooks: reduceJournalMarker(state.workbooks, record, files),
|
|
119
|
+
version: state.version + 1
|
|
120
|
+
};
|
|
121
|
+
return {
|
|
122
|
+
...state,
|
|
123
|
+
log: [...state.log, record].slice(-100),
|
|
124
|
+
version: state.version + 1
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export { MAX_AGENT_SESSION_LOG, MAX_AGENT_SESSION_STEPS, MAX_AGENT_SESSION_TURNS, createAgentSessionState, reduceAgentSessionEvent, reduceAgentSessionJournal };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { LogKeyValues, LogRecord } from '../logger/log_buffer.js';
|
|
2
|
+
export declare const SESSION_JOURNAL_FOLDER = ".dashql";
|
|
3
|
+
export declare const SESSION_JOURNAL_FILE = "journal.jsonl";
|
|
4
|
+
export declare const SESSION_JOURNAL_SESSIONS = "sessions";
|
|
5
|
+
export declare const SESSION_CONNECTIONS_FILE = "connections.json";
|
|
6
|
+
export interface SessionConnection {
|
|
7
|
+
connectionId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SessionConnections {
|
|
11
|
+
connections: SessionConnection[];
|
|
12
|
+
}
|
|
13
|
+
export declare function parseSessionConnections(text: string): SessionConnections | null;
|
|
14
|
+
export declare const SESSION_WORKBOOK_COPIES = "workbooks";
|
|
15
|
+
export declare function isSessionName(name: string): boolean;
|
|
16
|
+
export declare const isWorkbookCopyId: typeof isSessionName;
|
|
17
|
+
export declare function workbookCopyPath(workbookId: string): string;
|
|
18
|
+
export declare function sessionJournalPath(session: string | null): string[];
|
|
19
|
+
export declare const JOURNAL_TARGET = "workbook_journal";
|
|
20
|
+
export declare const JOURNAL_FILES = "Workbook files";
|
|
21
|
+
export declare const JOURNAL_KEYS: {
|
|
22
|
+
readonly workbook: "workbook";
|
|
23
|
+
readonly workbookId: "workbook_id";
|
|
24
|
+
readonly files: "files";
|
|
25
|
+
};
|
|
26
|
+
export interface JournalFile {
|
|
27
|
+
path: string;
|
|
28
|
+
size: number;
|
|
29
|
+
mtimeMs: number;
|
|
30
|
+
}
|
|
31
|
+
export interface SessionWorkbook {
|
|
32
|
+
path: string;
|
|
33
|
+
workbookId: string;
|
|
34
|
+
files: JournalFile[];
|
|
35
|
+
}
|
|
36
|
+
export interface JournalWorkbookRef {
|
|
37
|
+
workbook: string;
|
|
38
|
+
workbookId: string;
|
|
39
|
+
}
|
|
40
|
+
export interface JournalMarker {
|
|
41
|
+
message: string;
|
|
42
|
+
keyValues: LogKeyValues;
|
|
43
|
+
}
|
|
44
|
+
export declare function journalFilesMarker(ref: JournalWorkbookRef, files: readonly string[]): JournalMarker;
|
|
45
|
+
export declare function parseJournalLines(text: string): LogRecord[];
|
|
46
|
+
export declare function isJournalMarker(record: LogRecord): boolean;
|
|
47
|
+
export declare function journalFilePaths(record: LogRecord): string[] | null;
|
|
48
|
+
export declare function reduceJournalMarker(workbooks: readonly SessionWorkbook[], record: LogRecord, files?: JournalFile[]): SessionWorkbook[];
|