@kaelio/ktx 0.0.0 → 0.1.0-rc.1
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 +201 -0
- package/assets/demo/orbit/demo.db +0 -0
- package/assets/demo/orbit/links/provenance.json +209 -0
- package/assets/demo/orbit/manifest.json +58 -0
- package/assets/demo/orbit/raw-sources/bi/account_retention.view.lkml +67 -0
- package/assets/demo/orbit/raw-sources/bi/arr_daily.view.lkml +28 -0
- package/assets/demo/orbit/raw-sources/bi/customer_health.view.lkml +50 -0
- package/assets/demo/orbit/raw-sources/bi/procurement_activity.view.lkml +46 -0
- package/assets/demo/orbit/raw-sources/bi/retention_exec_q1.dashboard.lookml +28 -0
- package/assets/demo/orbit/raw-sources/bi/revenue_daily.view.lkml +52 -0
- package/assets/demo/orbit/raw-sources/bi/revenue_exec.dashboard.lookml +28 -0
- package/assets/demo/orbit/raw-sources/dbt/dbt_project.yml +10 -0
- package/assets/demo/orbit/raw-sources/dbt/models/marts/mart_arr_daily.sql +5 -0
- package/assets/demo/orbit/raw-sources/dbt/models/marts/mart_customer_health.sql +10 -0
- package/assets/demo/orbit/raw-sources/dbt/models/marts/mart_revenue_daily.sql +8 -0
- package/assets/demo/orbit/raw-sources/dbt/schema.yml +455 -0
- package/assets/demo/orbit/raw-sources/dbt/sources.yml +48 -0
- package/assets/demo/orbit/raw-sources/notion/activation-policy-decision-record.md +49 -0
- package/assets/demo/orbit/raw-sources/notion/analyst-onboarding.md +35 -0
- package/assets/demo/orbit/raw-sources/notion/arr-and-contract-reporting-notes.md +64 -0
- package/assets/demo/orbit/raw-sources/notion/customer-health-playbook.md +55 -0
- package/assets/demo/orbit/raw-sources/notion/retention-and-nrr-definition-notes.md +58 -0
- package/assets/demo/orbit/raw-sources/notion/revenue-reporting-policy.md +64 -0
- package/assets/demo/orbit/raw-sources/notion/sales-ops-segmentation-guide.md +58 -0
- package/assets/demo/orbit/raw-sources/notion/support-escalation-runbook.md +38 -0
- package/assets/demo/orbit/raw-sources/warehouse/accounts.csv +211 -0
- package/assets/demo/orbit/raw-sources/warehouse/arr_movements.csv +721 -0
- package/assets/demo/orbit/raw-sources/warehouse/contracts.csv +321 -0
- package/assets/demo/orbit/raw-sources/warehouse/invoices.csv +3001 -0
- package/assets/demo/orbit/raw-sources/warehouse/plans.csv +5 -0
- package/assets/demo/orbit/raw-sources/warehouse/purchase_requests.csv +5201 -0
- package/assets/demo/orbit/raw-sources/warehouse/support_tickets.csv +521 -0
- package/assets/demo/orbit/raw-sources/warehouse/users.csv +1261 -0
- package/assets/demo/orbit/replay.memory-flow.v1.json +707 -0
- package/assets/demo/orbit/reports/seeded-demo-report.json +40 -0
- package/assets/demo/orbit/semantic-layer/.gitkeep +0 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/int_activation_policy_windows.yaml +27 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/int_active_contract_arr.yaml +24 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/int_customer_health_signals.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/int_parent_account_arr_movements.yaml +49 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/int_procurement_qualifying_actions.yaml +27 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/int_revenue_components.yaml +37 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_account_activity.yaml +23 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_account_segments.yaml +27 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_arr_daily.yaml +20 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_customer_health.yaml +30 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_nrr_quarterly.yaml +22 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_procurement_activity.yaml +24 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_retention_movement_breakout.yaml +31 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/mart_revenue_daily.yaml +37 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_account_hierarchy.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_account_owners.yaml +33 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_accounts.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_activation_events.yaml +33 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_approval_events.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_arr_movements.yaml +29 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_contract_discount_terms.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_contracts.yaml +29 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_invoice_line_items.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_invoices.yaml +33 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_plan_segment_mapping.yaml +33 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_plans.yaml +17 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_purchase_orders.yaml +29 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_purchase_requests.yaml +29 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_refunds.yaml +29 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_sessions.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_subscriptions.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_supplier_onboarding_events.yaml +29 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_suppliers.yaml +21 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_support_tickets.yaml +29 -0
- package/assets/demo/orbit/semantic-layer/dbt-main/stg_users.yaml +21 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/_schema/orbit_analytics.yaml +1400 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/_schema/orbit_raw.yaml +989 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/large_contract_requesters.yaml +44 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_account_activity.yaml +10 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_account_segments.yaml +18 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_arr_daily.yaml +10 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_customer_health.yaml +27 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_nrr_quarterly.yaml +19 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_procurement_activity.yaml +13 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_retention_movement_breakout.yaml +25 -0
- package/assets/demo/orbit/semantic-layer/postgres-warehouse/mart_revenue_daily.yaml +20 -0
- package/assets/demo/orbit/wiki/global/.gitkeep +0 -0
- package/assets/demo/orbit/wiki/global/customer-communication-policy.md +44 -0
- package/assets/demo/orbit/wiki/global/new-hire-onboarding-policy.md +47 -0
- package/assets/demo/orbit/wiki/global/orbit-activation-kpi-glossary.md +64 -0
- package/assets/demo/orbit/wiki/global/orbit-activation-policy-change-jan-2026.md +46 -0
- package/assets/demo/orbit/wiki/global/orbit-arr-contract-first-definition.md +39 -0
- package/assets/demo/orbit/wiki/global/orbit-company-overview.md +71 -0
- package/assets/demo/orbit/wiki/global/orbit-customer-health-risk-definition.md +46 -0
- package/assets/demo/orbit/wiki/global/orbit-customer-stakeholder-needs.md +42 -0
- package/assets/demo/orbit/wiki/global/orbit-customers-source.md +60 -0
- package/assets/demo/orbit/wiki/global/orbit-dbt-exposures.md +44 -0
- package/assets/demo/orbit/wiki/global/orbit-dbt-project-overview.md +54 -0
- package/assets/demo/orbit/wiki/global/orbit-how-we-work.md +75 -0
- package/assets/demo/orbit/wiki/global/orbit-known-product-gaps.md +47 -0
- package/assets/demo/orbit/wiki/global/orbit-mart-account-activity.md +49 -0
- package/assets/demo/orbit/wiki/global/orbit-mart-account-segments.md +55 -0
- package/assets/demo/orbit/wiki/global/orbit-mart-arr-daily.md +46 -0
- package/assets/demo/orbit/wiki/global/orbit-mart-nrr-quarterly.md +55 -0
- package/assets/demo/orbit/wiki/global/orbit-mart-procurement-activity.md +47 -0
- package/assets/demo/orbit/wiki/global/orbit-mart-retention-movement-breakout.md +55 -0
- package/assets/demo/orbit/wiki/global/orbit-mart-revenue-daily.md +56 -0
- package/assets/demo/orbit/wiki/global/orbit-metabase-sql-library-patterns.md +71 -0
- package/assets/demo/orbit/wiki/global/orbit-nrr-discount-expiration-treatment.md +47 -0
- package/assets/demo/orbit/wiki/global/orbit-plan-segment-normalization.md +49 -0
- package/assets/demo/orbit/wiki/global/orbit-procurement-qualifying-actions.md +46 -0
- package/assets/demo/orbit/wiki/global/orbit-product-design-principles.md +43 -0
- package/assets/demo/orbit/wiki/global/orbit-product-review-checklist.md +44 -0
- package/assets/demo/orbit/wiki/global/orbit-revenue-gross-to-net-reconciliation.md +50 -0
- package/assets/demo/orbit/wiki/global/sales-ops-cs-handoff-process.md +58 -0
- package/assets/python/kaelio_ktx-0.1.0-py3-none-any.whl +0 -0
- package/assets/python/manifest.json +11 -0
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +7 -0
- package/dist/clack.d.ts +26 -0
- package/dist/clack.js +45 -0
- package/dist/claude-code-prompt-caching.d.ts +4 -0
- package/dist/claude-code-prompt-caching.js +22 -0
- package/dist/cli-program.d.ts +53 -0
- package/dist/cli-program.js +372 -0
- package/dist/cli-program.test.d.ts +1 -0
- package/dist/cli-program.test.js +45 -0
- package/dist/cli-runtime.d.ts +46 -0
- package/dist/cli-runtime.js +44 -0
- package/dist/command-schemas.d.ts +34 -0
- package/dist/command-schemas.js +32 -0
- package/dist/command-tree.d.ts +10 -0
- package/dist/command-tree.js +41 -0
- package/dist/command-tree.test.d.ts +1 -0
- package/dist/command-tree.test.js +126 -0
- package/dist/commands/connection-commands.d.ts +3 -0
- package/dist/commands/connection-commands.js +46 -0
- package/dist/commands/ingest-commands.d.ts +9 -0
- package/dist/commands/ingest-commands.js +65 -0
- package/dist/commands/knowledge-commands.d.ts +3 -0
- package/dist/commands/knowledge-commands.js +57 -0
- package/dist/commands/mcp-commands.d.ts +3 -0
- package/dist/commands/mcp-commands.js +117 -0
- package/dist/commands/mcp-commands.test.d.ts +1 -0
- package/dist/commands/mcp-commands.test.js +47 -0
- package/dist/commands/runtime-commands.d.ts +3 -0
- package/dist/commands/runtime-commands.js +68 -0
- package/dist/commands/setup-commands.d.ts +3 -0
- package/dist/commands/setup-commands.js +347 -0
- package/dist/commands/sl-commands.d.ts +3 -0
- package/dist/commands/sl-commands.js +130 -0
- package/dist/commands/status-commands.d.ts +3 -0
- package/dist/commands/status-commands.js +47 -0
- package/dist/connection.d.ts +28 -0
- package/dist/connection.js +258 -0
- package/dist/connection.test.d.ts +1 -0
- package/dist/connection.test.js +405 -0
- package/dist/context-build-view.d.ts +106 -0
- package/dist/context-build-view.js +868 -0
- package/dist/context-build-view.test.d.ts +1 -0
- package/dist/context-build-view.test.js +927 -0
- package/dist/database-tree-picker.d.ts +24 -0
- package/dist/database-tree-picker.js +134 -0
- package/dist/database-tree-picker.test.d.ts +1 -0
- package/dist/database-tree-picker.test.js +135 -0
- package/dist/demo-assets.d.ts +17 -0
- package/dist/demo-assets.js +150 -0
- package/dist/demo-assets.test.d.ts +1 -0
- package/dist/demo-assets.test.js +95 -0
- package/dist/demo-metrics.d.ts +35 -0
- package/dist/demo-metrics.js +131 -0
- package/dist/demo-metrics.test.d.ts +1 -0
- package/dist/demo-metrics.test.js +108 -0
- package/dist/dev.d.ts +3 -0
- package/dist/dev.js +48 -0
- package/dist/dev.test.d.ts +1 -0
- package/dist/dev.test.js +169 -0
- package/dist/doctor.d.ts +72 -0
- package/dist/doctor.js +460 -0
- package/dist/doctor.test.d.ts +1 -0
- package/dist/doctor.test.js +604 -0
- package/dist/example-smoke.test.d.ts +1 -0
- package/dist/example-smoke.test.js +83 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +12 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +1213 -0
- package/dist/ingest-depth.d.ts +8 -0
- package/dist/ingest-depth.js +58 -0
- package/dist/ingest-query-executor.d.ts +9 -0
- package/dist/ingest-query-executor.js +30 -0
- package/dist/ingest-query-executor.test.d.ts +1 -0
- package/dist/ingest-query-executor.test.js +71 -0
- package/dist/ingest-report-file.d.ts +2 -0
- package/dist/ingest-report-file.js +20 -0
- package/dist/ingest-report-file.test.d.ts +1 -0
- package/dist/ingest-report-file.test.js +63 -0
- package/dist/ingest-viz.test.d.ts +1 -0
- package/dist/ingest-viz.test.js +691 -0
- package/dist/ingest.d.ts +64 -0
- package/dist/ingest.js +561 -0
- package/dist/ingest.test-utils.d.ts +119 -0
- package/dist/ingest.test-utils.js +625 -0
- package/dist/ingest.test.d.ts +1 -0
- package/dist/ingest.test.js +1302 -0
- package/dist/io/logger.d.ts +11 -0
- package/dist/io/logger.js +22 -0
- package/dist/io/logger.test.d.ts +1 -0
- package/dist/io/logger.test.js +55 -0
- package/dist/io/mode.d.ts +9 -0
- package/dist/io/mode.js +28 -0
- package/dist/io/mode.test.d.ts +1 -0
- package/dist/io/mode.test.js +48 -0
- package/dist/io/print-list.d.ts +42 -0
- package/dist/io/print-list.js +192 -0
- package/dist/io/print-list.test.d.ts +1 -0
- package/dist/io/print-list.test.js +275 -0
- package/dist/io/symbols.d.ts +10 -0
- package/dist/io/symbols.js +33 -0
- package/dist/knowledge.d.ts +23 -0
- package/dist/knowledge.js +86 -0
- package/dist/knowledge.test.d.ts +1 -0
- package/dist/knowledge.test.js +113 -0
- package/dist/local-adapters.d.ts +13 -0
- package/dist/local-adapters.js +295 -0
- package/dist/local-adapters.test.d.ts +1 -0
- package/dist/local-adapters.test.js +162 -0
- package/dist/local-scan-connectors.d.ts +3 -0
- package/dist/local-scan-connectors.js +54 -0
- package/dist/local-scan-connectors.test.d.ts +1 -0
- package/dist/local-scan-connectors.test.js +92 -0
- package/dist/managed-local-embeddings.d.ts +38 -0
- package/dist/managed-local-embeddings.js +49 -0
- package/dist/managed-local-embeddings.test.d.ts +1 -0
- package/dist/managed-local-embeddings.test.js +161 -0
- package/dist/managed-mcp-daemon.d.ts +73 -0
- package/dist/managed-mcp-daemon.js +183 -0
- package/dist/managed-mcp-daemon.test.d.ts +1 -0
- package/dist/managed-mcp-daemon.test.js +104 -0
- package/dist/managed-python-command.d.ts +29 -0
- package/dist/managed-python-command.js +77 -0
- package/dist/managed-python-command.test.d.ts +1 -0
- package/dist/managed-python-command.test.js +206 -0
- package/dist/managed-python-daemon.d.ts +112 -0
- package/dist/managed-python-daemon.js +585 -0
- package/dist/managed-python-daemon.test.d.ts +1 -0
- package/dist/managed-python-daemon.test.js +340 -0
- package/dist/managed-python-http.d.ts +39 -0
- package/dist/managed-python-http.js +110 -0
- package/dist/managed-python-http.test.d.ts +1 -0
- package/dist/managed-python-http.test.js +177 -0
- package/dist/managed-python-runtime.d.ts +122 -0
- package/dist/managed-python-runtime.js +313 -0
- package/dist/managed-python-runtime.test.d.ts +1 -0
- package/dist/managed-python-runtime.test.js +396 -0
- package/dist/mcp-http-server.d.ts +43 -0
- package/dist/mcp-http-server.js +270 -0
- package/dist/mcp-http-server.test.d.ts +1 -0
- package/dist/mcp-http-server.test.js +209 -0
- package/dist/memory-flow-hud.d.ts +32 -0
- package/dist/memory-flow-hud.js +219 -0
- package/dist/memory-flow-interactive.d.ts +29 -0
- package/dist/memory-flow-interactive.js +94 -0
- package/dist/memory-flow-interactive.test.d.ts +1 -0
- package/dist/memory-flow-interactive.test.js +109 -0
- package/dist/memory-flow-tui.d.ts +76 -0
- package/dist/memory-flow-tui.js +343 -0
- package/dist/memory-flow-tui.test.d.ts +1 -0
- package/dist/memory-flow-tui.test.js +247 -0
- package/dist/next-steps.d.ts +36 -0
- package/dist/next-steps.js +67 -0
- package/dist/next-steps.test.d.ts +1 -0
- package/dist/next-steps.test.js +75 -0
- package/dist/notion-page-picker.d.ts +35 -0
- package/dist/notion-page-picker.js +208 -0
- package/dist/notion-page-picker.test.d.ts +1 -0
- package/dist/notion-page-picker.test.js +244 -0
- package/dist/print-command-tree.d.ts +4 -0
- package/dist/print-command-tree.js +31 -0
- package/dist/print-command-tree.test.d.ts +1 -0
- package/dist/print-command-tree.test.js +37 -0
- package/dist/project-dir.test.d.ts +1 -0
- package/dist/project-dir.test.js +124 -0
- package/dist/project-resolver.d.ts +7 -0
- package/dist/project-resolver.js +42 -0
- package/dist/project-resolver.test.d.ts +1 -0
- package/dist/project-resolver.test.js +49 -0
- package/dist/prompt-navigation.d.ts +6 -0
- package/dist/prompt-navigation.js +60 -0
- package/dist/prompt-navigation.test.d.ts +1 -0
- package/dist/prompt-navigation.test.js +33 -0
- package/dist/public-ingest-copy.d.ts +3 -0
- package/dist/public-ingest-copy.js +32 -0
- package/dist/public-ingest-copy.test.d.ts +1 -0
- package/dist/public-ingest-copy.test.js +24 -0
- package/dist/public-ingest.d.ts +111 -0
- package/dist/public-ingest.js +546 -0
- package/dist/public-ingest.test.d.ts +1 -0
- package/dist/public-ingest.test.js +737 -0
- package/dist/runtime.d.ts +44 -0
- package/dist/runtime.js +151 -0
- package/dist/runtime.test.d.ts +1 -0
- package/dist/runtime.test.js +380 -0
- package/dist/scan.d.ts +34 -0
- package/dist/scan.js +275 -0
- package/dist/scan.test.d.ts +1 -0
- package/dist/scan.test.js +983 -0
- package/dist/setup-agents.d.ts +87 -0
- package/dist/setup-agents.js +471 -0
- package/dist/setup-agents.test.d.ts +1 -0
- package/dist/setup-agents.test.js +352 -0
- package/dist/setup-context.d.ts +86 -0
- package/dist/setup-context.js +553 -0
- package/dist/setup-context.test.d.ts +1 -0
- package/dist/setup-context.test.js +490 -0
- package/dist/setup-database-context-depth.d.ts +22 -0
- package/dist/setup-database-context-depth.js +83 -0
- package/dist/setup-databases.d.ts +82 -0
- package/dist/setup-databases.js +1858 -0
- package/dist/setup-databases.test.d.ts +1 -0
- package/dist/setup-databases.test.js +1883 -0
- package/dist/setup-demo-tour.d.ts +33 -0
- package/dist/setup-demo-tour.js +302 -0
- package/dist/setup-demo-tour.test.d.ts +1 -0
- package/dist/setup-demo-tour.test.js +221 -0
- package/dist/setup-embeddings.d.ts +57 -0
- package/dist/setup-embeddings.js +347 -0
- package/dist/setup-embeddings.test.d.ts +1 -0
- package/dist/setup-embeddings.test.js +379 -0
- package/dist/setup-interrupt.d.ts +15 -0
- package/dist/setup-interrupt.js +71 -0
- package/dist/setup-interrupt.test.d.ts +1 -0
- package/dist/setup-interrupt.test.js +77 -0
- package/dist/setup-models.d.ts +90 -0
- package/dist/setup-models.js +760 -0
- package/dist/setup-models.test.d.ts +1 -0
- package/dist/setup-models.test.js +857 -0
- package/dist/setup-project.d.ts +45 -0
- package/dist/setup-project.js +289 -0
- package/dist/setup-project.test.d.ts +1 -0
- package/dist/setup-project.test.js +229 -0
- package/dist/setup-prompts.d.ts +54 -0
- package/dist/setup-prompts.js +88 -0
- package/dist/setup-prompts.test.d.ts +1 -0
- package/dist/setup-prompts.test.js +170 -0
- package/dist/setup-ready-menu.d.ts +18 -0
- package/dist/setup-ready-menu.js +31 -0
- package/dist/setup-ready-menu.test.d.ts +1 -0
- package/dist/setup-ready-menu.test.js +41 -0
- package/dist/setup-secrets.d.ts +7 -0
- package/dist/setup-secrets.js +15 -0
- package/dist/setup-secrets.test.d.ts +1 -0
- package/dist/setup-secrets.test.js +30 -0
- package/dist/setup-sources.d.ts +105 -0
- package/dist/setup-sources.js +1606 -0
- package/dist/setup-sources.test.d.ts +1 -0
- package/dist/setup-sources.test.js +1277 -0
- package/dist/setup.d.ts +130 -0
- package/dist/setup.js +478 -0
- package/dist/setup.test.d.ts +1 -0
- package/dist/setup.test.js +1478 -0
- package/dist/skills/research/SKILL.md +49 -0
- package/dist/sl.d.ts +60 -0
- package/dist/sl.js +167 -0
- package/dist/sl.test.d.ts +1 -0
- package/dist/sl.test.js +452 -0
- package/dist/source-mapping.d.ts +26 -0
- package/dist/source-mapping.js +151 -0
- package/dist/standalone-smoke.test.d.ts +1 -0
- package/dist/standalone-smoke.test.js +247 -0
- package/dist/startup-profile.d.ts +3 -0
- package/dist/startup-profile.js +44 -0
- package/dist/status-project.d.ts +118 -0
- package/dist/status-project.js +723 -0
- package/dist/text-ingest.d.ts +29 -0
- package/dist/text-ingest.js +270 -0
- package/dist/text-ingest.test.d.ts +1 -0
- package/dist/text-ingest.test.js +247 -0
- package/dist/tree-picker-state.d.ts +73 -0
- package/dist/tree-picker-state.js +416 -0
- package/dist/tree-picker-state.test.d.ts +1 -0
- package/dist/tree-picker-state.test.js +303 -0
- package/dist/tree-picker-tui.d.ts +78 -0
- package/dist/tree-picker-tui.js +226 -0
- package/dist/tree-picker-tui.test.d.ts +1 -0
- package/dist/tree-picker-tui.test.js +248 -0
- package/dist/viz-fallback.d.ts +28 -0
- package/dist/viz-fallback.js +51 -0
- package/dist/viz-fallback.test.d.ts +1 -0
- package/dist/viz-fallback.test.js +77 -0
- package/node_modules/@ktx/connector-bigquery/dist/connector.d.ts +141 -0
- package/node_modules/@ktx/connector-bigquery/dist/connector.js +371 -0
- package/node_modules/@ktx/connector-bigquery/dist/connector.test.d.ts +1 -0
- package/node_modules/@ktx/connector-bigquery/dist/connector.test.js +247 -0
- package/node_modules/@ktx/connector-bigquery/dist/dialect.d.ts +29 -0
- package/node_modules/@ktx/connector-bigquery/dist/dialect.js +178 -0
- package/node_modules/@ktx/connector-bigquery/dist/dialect.test.d.ts +1 -0
- package/node_modules/@ktx/connector-bigquery/dist/dialect.test.js +36 -0
- package/node_modules/@ktx/connector-bigquery/dist/index.d.ts +3 -0
- package/node_modules/@ktx/connector-bigquery/dist/index.js +3 -0
- package/node_modules/@ktx/connector-bigquery/dist/live-database-introspection.d.ts +10 -0
- package/node_modules/@ktx/connector-bigquery/dist/live-database-introspection.js +20 -0
- package/node_modules/@ktx/connector-bigquery/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/connector-bigquery/dist/package-exports.test.js +10 -0
- package/node_modules/@ktx/connector-bigquery/package.json +20 -0
- package/node_modules/@ktx/connector-clickhouse/dist/connector.d.ts +113 -0
- package/node_modules/@ktx/connector-clickhouse/dist/connector.js +345 -0
- package/node_modules/@ktx/connector-clickhouse/dist/connector.test.d.ts +1 -0
- package/node_modules/@ktx/connector-clickhouse/dist/connector.test.js +228 -0
- package/node_modules/@ktx/connector-clickhouse/dist/dialect.d.ts +33 -0
- package/node_modules/@ktx/connector-clickhouse/dist/dialect.js +236 -0
- package/node_modules/@ktx/connector-clickhouse/dist/dialect.test.d.ts +1 -0
- package/node_modules/@ktx/connector-clickhouse/dist/dialect.test.js +36 -0
- package/node_modules/@ktx/connector-clickhouse/dist/index.d.ts +3 -0
- package/node_modules/@ktx/connector-clickhouse/dist/index.js +3 -0
- package/node_modules/@ktx/connector-clickhouse/dist/live-database-introspection.d.ts +11 -0
- package/node_modules/@ktx/connector-clickhouse/dist/live-database-introspection.js +21 -0
- package/node_modules/@ktx/connector-clickhouse/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/connector-clickhouse/dist/package-exports.test.js +10 -0
- package/node_modules/@ktx/connector-clickhouse/package.json +20 -0
- package/node_modules/@ktx/connector-mysql/dist/connector.d.ts +116 -0
- package/node_modules/@ktx/connector-mysql/dist/connector.js +385 -0
- package/node_modules/@ktx/connector-mysql/dist/connector.test.d.ts +1 -0
- package/node_modules/@ktx/connector-mysql/dist/connector.test.js +218 -0
- package/node_modules/@ktx/connector-mysql/dist/dialect.d.ts +29 -0
- package/node_modules/@ktx/connector-mysql/dist/dialect.js +171 -0
- package/node_modules/@ktx/connector-mysql/dist/dialect.test.d.ts +1 -0
- package/node_modules/@ktx/connector-mysql/dist/dialect.test.js +36 -0
- package/node_modules/@ktx/connector-mysql/dist/index.d.ts +3 -0
- package/node_modules/@ktx/connector-mysql/dist/index.js +3 -0
- package/node_modules/@ktx/connector-mysql/dist/live-database-introspection.d.ts +11 -0
- package/node_modules/@ktx/connector-mysql/dist/live-database-introspection.js +21 -0
- package/node_modules/@ktx/connector-mysql/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/connector-mysql/dist/package-exports.test.js +11 -0
- package/node_modules/@ktx/connector-mysql/package.json +20 -0
- package/node_modules/@ktx/connector-postgres/dist/connector.d.ts +140 -0
- package/node_modules/@ktx/connector-postgres/dist/connector.js +497 -0
- package/node_modules/@ktx/connector-postgres/dist/connector.test.d.ts +1 -0
- package/node_modules/@ktx/connector-postgres/dist/connector.test.js +336 -0
- package/node_modules/@ktx/connector-postgres/dist/dialect.d.ts +29 -0
- package/node_modules/@ktx/connector-postgres/dist/dialect.js +182 -0
- package/node_modules/@ktx/connector-postgres/dist/dialect.test.d.ts +1 -0
- package/node_modules/@ktx/connector-postgres/dist/dialect.test.js +37 -0
- package/node_modules/@ktx/connector-postgres/dist/historic-sql-query-client.d.ts +14 -0
- package/node_modules/@ktx/connector-postgres/dist/historic-sql-query-client.js +24 -0
- package/node_modules/@ktx/connector-postgres/dist/historic-sql-query-client.test.d.ts +1 -0
- package/node_modules/@ktx/connector-postgres/dist/historic-sql-query-client.test.js +45 -0
- package/node_modules/@ktx/connector-postgres/dist/index.d.ts +4 -0
- package/node_modules/@ktx/connector-postgres/dist/index.js +4 -0
- package/node_modules/@ktx/connector-postgres/dist/live-database-introspection.d.ts +11 -0
- package/node_modules/@ktx/connector-postgres/dist/live-database-introspection.js +21 -0
- package/node_modules/@ktx/connector-postgres/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/connector-postgres/dist/package-exports.test.js +12 -0
- package/node_modules/@ktx/connector-postgres/package.json +20 -0
- package/node_modules/@ktx/connector-snowflake/dist/connector.d.ts +129 -0
- package/node_modules/@ktx/connector-snowflake/dist/connector.js +517 -0
- package/node_modules/@ktx/connector-snowflake/dist/connector.test.d.ts +1 -0
- package/node_modules/@ktx/connector-snowflake/dist/connector.test.js +210 -0
- package/node_modules/@ktx/connector-snowflake/dist/dialect.d.ts +29 -0
- package/node_modules/@ktx/connector-snowflake/dist/dialect.js +156 -0
- package/node_modules/@ktx/connector-snowflake/dist/dialect.test.d.ts +1 -0
- package/node_modules/@ktx/connector-snowflake/dist/dialect.test.js +34 -0
- package/node_modules/@ktx/connector-snowflake/dist/index.d.ts +3 -0
- package/node_modules/@ktx/connector-snowflake/dist/index.js +3 -0
- package/node_modules/@ktx/connector-snowflake/dist/live-database-introspection.d.ts +11 -0
- package/node_modules/@ktx/connector-snowflake/dist/live-database-introspection.js +21 -0
- package/node_modules/@ktx/connector-snowflake/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/connector-snowflake/dist/package-exports.test.js +10 -0
- package/node_modules/@ktx/connector-snowflake/package.json +20 -0
- package/node_modules/@ktx/connector-sqlite/dist/connector.d.ts +59 -0
- package/node_modules/@ktx/connector-sqlite/dist/connector.js +251 -0
- package/node_modules/@ktx/connector-sqlite/dist/connector.test.d.ts +1 -0
- package/node_modules/@ktx/connector-sqlite/dist/connector.test.js +196 -0
- package/node_modules/@ktx/connector-sqlite/dist/dialect.d.ts +29 -0
- package/node_modules/@ktx/connector-sqlite/dist/dialect.js +146 -0
- package/node_modules/@ktx/connector-sqlite/dist/dialect.test.d.ts +1 -0
- package/node_modules/@ktx/connector-sqlite/dist/dialect.test.js +23 -0
- package/node_modules/@ktx/connector-sqlite/dist/index.d.ts +3 -0
- package/node_modules/@ktx/connector-sqlite/dist/index.js +3 -0
- package/node_modules/@ktx/connector-sqlite/dist/live-database-introspection.d.ts +8 -0
- package/node_modules/@ktx/connector-sqlite/dist/live-database-introspection.js +20 -0
- package/node_modules/@ktx/connector-sqlite/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/connector-sqlite/dist/package-exports.test.js +11 -0
- package/node_modules/@ktx/connector-sqlite/package.json +20 -0
- package/node_modules/@ktx/connector-sqlserver/dist/connector.d.ts +137 -0
- package/node_modules/@ktx/connector-sqlserver/dist/connector.js +503 -0
- package/node_modules/@ktx/connector-sqlserver/dist/connector.test.d.ts +1 -0
- package/node_modules/@ktx/connector-sqlserver/dist/connector.test.js +269 -0
- package/node_modules/@ktx/connector-sqlserver/dist/dialect.d.ts +30 -0
- package/node_modules/@ktx/connector-sqlserver/dist/dialect.js +169 -0
- package/node_modules/@ktx/connector-sqlserver/dist/dialect.test.d.ts +1 -0
- package/node_modules/@ktx/connector-sqlserver/dist/dialect.test.js +36 -0
- package/node_modules/@ktx/connector-sqlserver/dist/index.d.ts +3 -0
- package/node_modules/@ktx/connector-sqlserver/dist/index.js +3 -0
- package/node_modules/@ktx/connector-sqlserver/dist/live-database-introspection.d.ts +11 -0
- package/node_modules/@ktx/connector-sqlserver/dist/live-database-introspection.js +21 -0
- package/node_modules/@ktx/connector-sqlserver/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/connector-sqlserver/dist/package-exports.test.js +10 -0
- package/node_modules/@ktx/connector-sqlserver/package.json +20 -0
- package/node_modules/@ktx/context/dist/agent/agent-runner.service.d.ts +18 -0
- package/node_modules/@ktx/context/dist/agent/agent-runner.service.js +10 -0
- package/node_modules/@ktx/context/dist/agent/agent-runner.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/agent/agent-runner.service.test.js +308 -0
- package/node_modules/@ktx/context/dist/agent/index.d.ts +2 -0
- package/node_modules/@ktx/context/dist/agent/index.js +1 -0
- package/node_modules/@ktx/context/dist/connections/connection-type.d.ts +25 -0
- package/node_modules/@ktx/context/dist/connections/connection-type.js +24 -0
- package/node_modules/@ktx/context/dist/connections/dialects.d.ts +9 -0
- package/node_modules/@ktx/context/dist/connections/dialects.js +71 -0
- package/node_modules/@ktx/context/dist/connections/dialects.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/connections/dialects.test.js +24 -0
- package/node_modules/@ktx/context/dist/connections/index.d.ts +11 -0
- package/node_modules/@ktx/context/dist/connections/index.js +9 -0
- package/node_modules/@ktx/context/dist/connections/local-query-executor.d.ts +6 -0
- package/node_modules/@ktx/context/dist/connections/local-query-executor.js +21 -0
- package/node_modules/@ktx/context/dist/connections/local-query-executor.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/connections/local-query-executor.test.js +48 -0
- package/node_modules/@ktx/context/dist/connections/local-warehouse-descriptor.d.ts +20 -0
- package/node_modules/@ktx/context/dist/connections/local-warehouse-descriptor.js +72 -0
- package/node_modules/@ktx/context/dist/connections/local-warehouse-descriptor.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/connections/local-warehouse-descriptor.test.js +53 -0
- package/node_modules/@ktx/context/dist/connections/notion-config.d.ts +41 -0
- package/node_modules/@ktx/context/dist/connections/notion-config.js +132 -0
- package/node_modules/@ktx/context/dist/connections/notion-config.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/connections/notion-config.test.js +121 -0
- package/node_modules/@ktx/context/dist/connections/postgres-query-executor.d.ts +25 -0
- package/node_modules/@ktx/context/dist/connections/postgres-query-executor.js +53 -0
- package/node_modules/@ktx/context/dist/connections/postgres-query-executor.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/connections/postgres-query-executor.test.js +91 -0
- package/node_modules/@ktx/context/dist/connections/query-executor.d.ts +19 -0
- package/node_modules/@ktx/context/dist/connections/query-executor.js +3 -0
- package/node_modules/@ktx/context/dist/connections/read-only-sql.d.ts +2 -0
- package/node_modules/@ktx/context/dist/connections/read-only-sql.js +19 -0
- package/node_modules/@ktx/context/dist/connections/read-only-sql.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/connections/read-only-sql.test.js +20 -0
- package/node_modules/@ktx/context/dist/connections/sqlite-query-executor.d.ts +3 -0
- package/node_modules/@ktx/context/dist/connections/sqlite-query-executor.js +73 -0
- package/node_modules/@ktx/context/dist/connections/sqlite-query-executor.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/connections/sqlite-query-executor.test.js +113 -0
- package/node_modules/@ktx/context/dist/core/config-reference.d.ts +2 -0
- package/node_modules/@ktx/context/dist/core/config-reference.js +29 -0
- package/node_modules/@ktx/context/dist/core/config-reference.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/core/config-reference.test.js +27 -0
- package/node_modules/@ktx/context/dist/core/config.d.ts +25 -0
- package/node_modules/@ktx/context/dist/core/config.js +14 -0
- package/node_modules/@ktx/context/dist/core/embedding.d.ts +5 -0
- package/node_modules/@ktx/context/dist/core/embedding.js +1 -0
- package/node_modules/@ktx/context/dist/core/file-store.d.ts +30 -0
- package/node_modules/@ktx/context/dist/core/file-store.js +1 -0
- package/node_modules/@ktx/context/dist/core/git-env.d.ts +2 -0
- package/node_modules/@ktx/context/dist/core/git-env.js +26 -0
- package/node_modules/@ktx/context/dist/core/git.service.assert-worktree-clean.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/core/git.service.assert-worktree-clean.test.js +62 -0
- package/node_modules/@ktx/context/dist/core/git.service.d.ts +194 -0
- package/node_modules/@ktx/context/dist/core/git.service.delete-directories.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/core/git.service.delete-directories.test.js +61 -0
- package/node_modules/@ktx/context/dist/core/git.service.js +804 -0
- package/node_modules/@ktx/context/dist/core/git.service.reset-hard.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/core/git.service.reset-hard.test.js +47 -0
- package/node_modules/@ktx/context/dist/core/git.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/core/git.service.test.js +325 -0
- package/node_modules/@ktx/context/dist/core/index.d.ts +10 -0
- package/node_modules/@ktx/context/dist/core/index.js +5 -0
- package/node_modules/@ktx/context/dist/core/redaction.d.ts +4 -0
- package/node_modules/@ktx/context/dist/core/redaction.js +39 -0
- package/node_modules/@ktx/context/dist/core/session-worktree.service.d.ts +38 -0
- package/node_modules/@ktx/context/dist/core/session-worktree.service.js +65 -0
- package/node_modules/@ktx/context/dist/core/session-worktree.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/core/session-worktree.service.test.js +97 -0
- package/node_modules/@ktx/context/dist/daemon/index.d.ts +1 -0
- package/node_modules/@ktx/context/dist/daemon/index.js +1 -0
- package/node_modules/@ktx/context/dist/daemon/semantic-layer-compute.d.ts +72 -0
- package/node_modules/@ktx/context/dist/daemon/semantic-layer-compute.js +191 -0
- package/node_modules/@ktx/context/dist/daemon/semantic-layer-compute.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/daemon/semantic-layer-compute.test.js +301 -0
- package/node_modules/@ktx/context/dist/index.d.ts +21 -0
- package/node_modules/@ktx/context/dist/index.js +18 -0
- package/node_modules/@ktx/context/dist/index.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/index.test.js +10 -0
- package/node_modules/@ktx/context/dist/ingest/action-identity.d.ts +3 -0
- package/node_modules/@ktx/context/dist/ingest/action-identity.js +6 -0
- package/node_modules/@ktx/context/dist/ingest/action-identity.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/action-identity.test.js +19 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/chunk.d.ts +7 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/chunk.js +110 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/chunk.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/chunk.test.js +30 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/dbt.adapter.d.ts +18 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/dbt.adapter.js +43 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/dbt.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/dbt.adapter.test.js +43 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/detect.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/detect.js +12 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/fetch.d.ts +19 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/fetch.js +43 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/fetch.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/fetch.test.js +30 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/parse.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/parse.js +23 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/parse.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt/parse.test.js +7 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/match-tables.d.ts +27 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/match-tables.js +80 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/match-tables.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/match-tables.test.js +59 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/merge-semantic-model-tables.d.ts +3 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/merge-semantic-model-tables.js +28 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/merge-semantic-model-tables.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/merge-semantic-model-tables.test.js +55 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/parse-schema.d.ts +65 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/parse-schema.js +432 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/parse-schema.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/parse-schema.test.js +195 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-description-updates.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-description-updates.js +46 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-description-updates.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-description-updates.test.js +88 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-metadata-updates.d.ts +9 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-metadata-updates.js +57 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-metadata-updates.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-metadata-updates.test.js +68 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-relationship-updates.d.ts +12 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-relationship-updates.js +34 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-relationship-updates.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-descriptions/to-relationship-updates.test.js +56 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-extraction-golden-parity.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/dbt-extraction-golden-parity.test.js +392 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/fake/fake.adapter.d.ts +7 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/fake/fake.adapter.js +42 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/bigquery-query-history-reader.d.ts +14 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/bigquery-query-history-reader.js +199 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/bigquery-query-history-reader.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/bigquery-query-history-reader.test.js +121 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/buckets.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/buckets.js +64 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/buckets.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/buckets.test.js +49 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/chunk-unified.d.ts +3 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/chunk-unified.js +86 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/chunk-unified.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/chunk-unified.test.js +160 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/detect.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/detect.js +25 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/detect.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/detect.test.js +48 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/errors.d.ts +35 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/errors.js +32 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence-tool.d.ts +41 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence-tool.js +88 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence-tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence-tool.test.js +67 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence.d.ts +77 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence.js +32 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/evidence.test.js +43 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/historic-sql.adapter.d.ts +14 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/historic-sql.adapter.js +33 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/historic-sql.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/historic-sql.adapter.test.js +98 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/local-ingest-acceptance.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/local-ingest-acceptance.test.js +235 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/pattern-inputs.d.ts +21 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/pattern-inputs.js +66 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/pattern-inputs.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/pattern-inputs.test.js +68 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/post-processor.d.ts +4 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/post-processor.js +38 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/post-processor.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/post-processor.test.js +63 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/postgres-pgss-reader.d.ts +5 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/postgres-pgss-reader.js +233 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/postgres-pgss-reader.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/postgres-pgss-reader.test.js +205 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/projection.d.ts +19 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/projection.js +272 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/projection.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/projection.test.js +309 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/redaction.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/redaction.js +30 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/redaction.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/redaction.test.js +22 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/skill-schemas.d.ts +37 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/skill-schemas.js +24 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/skill-schemas.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/skill-schemas.test.js +62 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/snowflake-query-history-reader.d.ts +8 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/snowflake-query-history-reader.js +180 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/snowflake-query-history-reader.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/snowflake-query-history-reader.test.js +117 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/stage-unified.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/stage-unified.js +269 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/stage-unified.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/stage-unified.test.js +405 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/types.d.ts +184 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/types.js +99 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/types.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/historic-sql/types.test.js +87 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/chunk.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/chunk.js +44 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/chunk.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/chunk.test.js +95 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/daemon-introspection.d.ts +20 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/daemon-introspection.js +187 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/daemon-introspection.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/daemon-introspection.test.js +204 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/extracted-schema.d.ts +29 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/extracted-schema.js +28 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/extracted-schema.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/extracted-schema.test.js +129 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/live-database.adapter.d.ts +11 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/live-database.adapter.js +24 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/live-database.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/live-database.adapter.test.js +55 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/manifest.d.ts +65 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/manifest.js +190 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/manifest.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/manifest.test.js +291 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/stage.d.ts +12 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/stage.js +105 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/stage.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/stage.test.js +133 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/structural-sync.d.ts +89 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/structural-sync.js +335 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/structural-sync.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/structural-sync.test.js +416 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/types.d.ts +8 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/live-database/types.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/chunk.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/chunk.js +146 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/chunk.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/chunk.test.js +142 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/client-boundary.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/client-boundary.test.js +12 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/client.d.ts +83 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/client.js +554 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/client.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/client.test.js +407 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/daemon-table-identifier-parser.d.ts +7 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/daemon-table-identifier-parser.js +57 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/daemon-table-identifier-parser.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/daemon-table-identifier-parser.test.js +40 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/detect.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/detect.js +26 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/detect.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/detect.test.js +39 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/evidence-documents.d.ts +3 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/evidence-documents.js +311 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/evidence-documents.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/evidence-documents.test.js +178 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/factory.d.ts +21 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/factory.js +22 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/factory.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/factory.test.js +55 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch-report.d.ts +3 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch-report.js +21 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch-report.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch-report.test.js +71 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch.d.ts +31 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch.js +395 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/fetch.test.js +592 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/local-looker.adapter.d.ts +11 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/local-looker.adapter.js +45 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/local-runtime-store.d.ts +50 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/local-runtime-store.js +196 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/local-runtime-store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/local-runtime-store.test.js +106 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/looker.adapter.d.ts +57 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/looker.adapter.js +47 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/looker.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/looker.adapter.test.js +99 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/mapping.d.ts +126 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/mapping.js +303 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/mapping.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/mapping.test.js +334 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/reconcile.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/reconcile.js +20 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/reconcile.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/reconcile.test.js +22 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/scope.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/scope.js +55 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/scope.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/scope.test.js +84 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/target-connections.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/target-connections.js +38 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/target-connections.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/target-connections.test.js +71 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/tools/looker-query-to-sl.tool.d.ts +107 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/tools/looker-query-to-sl.tool.js +236 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/tools/looker-query-to-sl.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/tools/looker-query-to-sl.tool.test.js +211 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/types.d.ts +438 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/types.js +198 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/types.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/looker/types.test.js +260 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/chunk.d.ts +19 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/chunk.js +128 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/chunk.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/chunk.test.js +213 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/detect.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/detect.js +11 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/detect.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/detect.test.js +37 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch-report.d.ts +15 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch-report.js +98 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch-report.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch-report.test.js +82 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch.d.ts +15 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch.js +54 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/fetch.test.js +121 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/graph.d.ts +16 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/graph.js +85 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/graph.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/graph.test.js +105 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/lookml.adapter.d.ts +17 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/lookml.adapter.js +44 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/lookml.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/lookml.adapter.test.js +49 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/parse.d.ts +35 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/parse.js +149 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/parse.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/parse.test.js +118 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/pull-config.d.ts +37 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/pull-config.js +26 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/pull-config.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/lookml/pull-config.test.js +128 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/card-references.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/card-references.js +37 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/card-references.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/card-references.test.js +36 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/chunk.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/chunk.js +208 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/chunk.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/chunk.test.js +299 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client-boundary.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client-boundary.test.js +38 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client-port.d.ts +167 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client-port.js +9 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client-port.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client-port.test.js +86 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client.d.ts +114 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client.js +671 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/client.test.js +377 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/detect.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/detect.js +20 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/detect.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/detect.test.js +42 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fanout-planner.d.ts +17 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fanout-planner.js +23 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fanout-planner.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fanout-planner.test.js +44 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch-scope.d.ts +31 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch-scope.js +72 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch-scope.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch-scope.test.js +124 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch.d.ts +16 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch.js +239 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/fetch.test.js +516 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-metabase.adapter.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-metabase.adapter.js +41 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-metabase.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-metabase.adapter.test.js +56 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-source-state-store.d.ts +43 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-source-state-store.js +176 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-source-state-store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/local-source-state-store.test.js +99 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/mapping.d.ts +92 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/mapping.js +220 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/mapping.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/mapping.test.js +215 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/metabase.adapter.d.ts +19 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/metabase.adapter.js +41 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/metabase.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/metabase.adapter.test.js +129 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/serialize-card.d.ts +53 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/serialize-card.js +67 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/serialize-card.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/serialize-card.test.js +205 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/source-state-port.d.ts +23 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/source-state-port.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/types.d.ts +142 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/types.js +106 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/types.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metabase/types.test.js +75 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/chunk.d.ts +19 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/chunk.js +81 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/chunk.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/chunk.test.js +114 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/deep-parse.d.ts +77 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/deep-parse.js +460 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/deep-parse.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/deep-parse.test.js +1139 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/detect.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/detect.js +34 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/detect.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/detect.test.js +43 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/fetch.d.ts +11 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/fetch.js +51 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/fetch.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/fetch.test.js +97 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/graph.d.ts +25 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/graph.js +163 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/graph.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/graph.test.js +245 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/import-semantic-models.d.ts +29 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/import-semantic-models.js +136 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/import-semantic-models.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/import-semantic-models.test.js +318 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/metricflow.adapter.d.ts +16 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/metricflow.adapter.js +44 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/metricflow.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/metricflow.adapter.test.js +97 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/parse.d.ts +42 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/parse.js +150 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/parse.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/parse.test.js +171 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/pull-config.d.ts +37 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/pull-config.js +24 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/pull-config.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/pull-config.test.js +57 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/semantic-models.d.ts +39 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/semantic-models.js +278 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/semantic-models.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/metricflow/semantic-models.test.js +204 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/chunk.d.ts +4 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/chunk.js +137 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/cluster.d.ts +10 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/cluster.js +82 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/cluster.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/cluster.test.js +123 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/detect.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/detect.js +20 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/fetch.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/fetch.js +517 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/fetch.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/fetch.test.js +358 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/local-state-store.d.ts +12 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/local-state-store.js +46 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/local-state-store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/local-state-store.test.js +29 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/normalize.d.ts +10 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/normalize.js +165 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/normalize.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/normalize.test.js +64 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion-client.d.ts +74 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion-client.js +107 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion-client.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion-client.test.js +49 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion.adapter.d.ts +46 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion.adapter.js +119 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion.adapter.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/notion.adapter.test.js +315 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/pull-config.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/pull-config.js +4 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/types.d.ts +97 -0
- package/node_modules/@ktx/context/dist/ingest/adapters/notion/types.js +62 -0
- package/node_modules/@ktx/context/dist/ingest/canonical-pins.d.ts +10 -0
- package/node_modules/@ktx/context/dist/ingest/canonical-pins.js +43 -0
- package/node_modules/@ktx/context/dist/ingest/canonical-pins.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/canonical-pins.test.js +66 -0
- package/node_modules/@ktx/context/dist/ingest/clustering/kmeans.d.ts +11 -0
- package/node_modules/@ktx/context/dist/ingest/clustering/kmeans.js +101 -0
- package/node_modules/@ktx/context/dist/ingest/clustering/kmeans.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/clustering/kmeans.test.js +61 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/candidate-dedup.service.d.ts +27 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/candidate-dedup.service.js +234 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/candidate-dedup.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/candidate-dedup.service.test.js +216 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/context-candidate-carryforward.service.d.ts +31 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/context-candidate-carryforward.service.js +131 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/context-candidate-carryforward.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/context-candidate-carryforward.service.test.js +161 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/curator-pagination.service.d.ts +64 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/curator-pagination.service.js +240 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/curator-pagination.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/curator-pagination.service.test.js +168 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/embedding-text.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/embedding-text.js +3 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/embedding-text.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/embedding-text.test.js +10 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/index.d.ts +9 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/index.js +4 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/store.d.ts +24 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/store.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/store.test.js +67 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/types.d.ts +103 -0
- package/node_modules/@ktx/context/dist/ingest/context-candidates/types.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/context-evidence-index.service.d.ts +53 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/context-evidence-index.service.js +303 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/context-evidence-index.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/context-evidence-index.service.test.js +374 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/index.d.ts +5 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/index.js +2 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/sqlite-context-evidence-store.d.ts +89 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/sqlite-context-evidence-store.js +1025 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/sqlite-context-evidence-store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/sqlite-context-evidence-store.test.js +416 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/store.d.ts +10 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/store.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/store.test.js +55 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/types.d.ts +49 -0
- package/node_modules/@ktx/context/dist/ingest/context-evidence/types.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/project-vars.d.ts +12 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/project-vars.js +86 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/project-vars.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/project-vars.test.js +90 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/schema-files.d.ts +3 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/schema-files.js +62 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/schema-files.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/dbt-shared/schema-files.test.js +35 -0
- package/node_modules/@ktx/context/dist/ingest/diff-set.service.d.ts +8 -0
- package/node_modules/@ktx/context/dist/ingest/diff-set.service.js +41 -0
- package/node_modules/@ktx/context/dist/ingest/diff-set.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/diff-set.service.test.js +132 -0
- package/node_modules/@ktx/context/dist/ingest/git-env.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/git-env.js +33 -0
- package/node_modules/@ktx/context/dist/ingest/index.d.ts +148 -0
- package/node_modules/@ktx/context/dist/ingest/index.js +93 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-bundle.runner.d.ts +38 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-bundle.runner.js +1263 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-bundle.runner.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-bundle.runner.test.js +1727 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-prompts.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-prompts.test.js +32 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-runtime-assets.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/ingest-runtime-assets.test.js +89 -0
- package/node_modules/@ktx/context/dist/ingest/local-adapters.d.ts +35 -0
- package/node_modules/@ktx/context/dist/ingest/local-adapters.js +247 -0
- package/node_modules/@ktx/context/dist/ingest/local-adapters.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/local-adapters.test.js +625 -0
- package/node_modules/@ktx/context/dist/ingest/local-bundle-ingest.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/local-bundle-ingest.test.js +768 -0
- package/node_modules/@ktx/context/dist/ingest/local-bundle-runtime.d.ts +32 -0
- package/node_modules/@ktx/context/dist/ingest/local-bundle-runtime.js +558 -0
- package/node_modules/@ktx/context/dist/ingest/local-bundle-runtime.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/local-bundle-runtime.test.js +160 -0
- package/node_modules/@ktx/context/dist/ingest/local-embedding-provider.integration.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/local-embedding-provider.integration.test.js +140 -0
- package/node_modules/@ktx/context/dist/ingest/local-ingest.d.ts +86 -0
- package/node_modules/@ktx/context/dist/ingest/local-ingest.js +302 -0
- package/node_modules/@ktx/context/dist/ingest/local-mapping-reconcile.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/local-mapping-reconcile.js +26 -0
- package/node_modules/@ktx/context/dist/ingest/local-mapping-reconcile.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/local-mapping-reconcile.test.js +61 -0
- package/node_modules/@ktx/context/dist/ingest/local-metabase-ingest.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/local-metabase-ingest.test.js +227 -0
- package/node_modules/@ktx/context/dist/ingest/local-stage-ingest.d.ts +53 -0
- package/node_modules/@ktx/context/dist/ingest/local-stage-ingest.js +280 -0
- package/node_modules/@ktx/context/dist/ingest/local-stage-ingest.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/local-stage-ingest.test.js +552 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/acceptance-fixtures.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/acceptance-fixtures.js +155 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/acceptance.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/acceptance.test.js +43 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/events.d.ts +9 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/events.js +196 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/events.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/events.test.js +319 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/index.d.ts +6 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/index.js +4 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interaction.d.ts +9 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interaction.js +315 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interaction.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interaction.test.js +264 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interactive-render.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interactive-render.js +121 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interactive-render.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/interactive-render.test.js +160 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/known-errors.d.ts +7 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/known-errors.js +17 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/live-buffer.d.ts +3 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/live-buffer.js +53 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/live-buffer.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/live-buffer.test.js +77 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/package-export.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/package-export.test.js +9 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/render.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/render.js +84 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/render.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/render.test.js +105 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/schema.d.ts +190 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/schema.js +155 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/schema.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/schema.test.js +146 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/summary.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/summary.js +88 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/summary.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/summary.test.js +130 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/types.d.ts +207 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/types.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/view-model.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/view-model.js +450 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/view-model.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/view-model.test.js +397 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/visuals.d.ts +20 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/visuals.js +44 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/visuals.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/memory-flow/visuals.test.js +49 -0
- package/node_modules/@ktx/context/dist/ingest/metabase-mapping.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/metabase-mapping.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/page-triage/index.d.ts +2 -0
- package/node_modules/@ktx/context/dist/ingest/page-triage/index.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/page-triage/page-triage.service.d.ts +84 -0
- package/node_modules/@ktx/context/dist/ingest/page-triage/page-triage.service.js +318 -0
- package/node_modules/@ktx/context/dist/ingest/page-triage/page-triage.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/page-triage/page-triage.service.test.js +311 -0
- package/node_modules/@ktx/context/dist/ingest/parsed-target-table.d.ts +21 -0
- package/node_modules/@ktx/context/dist/ingest/parsed-target-table.js +24 -0
- package/node_modules/@ktx/context/dist/ingest/ports.d.ts +339 -0
- package/node_modules/@ktx/context/dist/ingest/ports.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/raw-sources-paths.d.ts +4 -0
- package/node_modules/@ktx/context/dist/ingest/raw-sources-paths.js +16 -0
- package/node_modules/@ktx/context/dist/ingest/raw-sources-paths.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/raw-sources-paths.test.js +18 -0
- package/node_modules/@ktx/context/dist/ingest/repo-fetch.d.ts +34 -0
- package/node_modules/@ktx/context/dist/ingest/repo-fetch.js +132 -0
- package/node_modules/@ktx/context/dist/ingest/repo-fetch.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/repo-fetch.test.js +168 -0
- package/node_modules/@ktx/context/dist/ingest/report-snapshot.d.ts +202 -0
- package/node_modules/@ktx/context/dist/ingest/report-snapshot.js +160 -0
- package/node_modules/@ktx/context/dist/ingest/report-snapshot.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/report-snapshot.test.js +205 -0
- package/node_modules/@ktx/context/dist/ingest/reports.d.ts +79 -0
- package/node_modules/@ktx/context/dist/ingest/reports.js +54 -0
- package/node_modules/@ktx/context/dist/ingest/source-adapter-registry.d.ts +8 -0
- package/node_modules/@ktx/context/dist/ingest/source-adapter-registry.js +23 -0
- package/node_modules/@ktx/context/dist/ingest/source-adapter-registry.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/source-adapter-registry.test.js +35 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-bundle-ingest-store.d.ts +38 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-bundle-ingest-store.js +501 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-bundle-ingest-store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-bundle-ingest-store.test.js +517 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-local-ingest-store.d.ts +19 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-local-ingest-store.js +190 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-local-ingest-store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/sqlite-local-ingest-store.test.js +143 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-reconcile-context.context-candidates.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-reconcile-context.context-candidates.test.js +102 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-reconcile-context.d.ts +61 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-reconcile-context.js +122 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-reconcile-context.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-reconcile-context.test.js +141 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-wu-context.d.ts +27 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-wu-context.js +87 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-wu-context.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/build-wu-context.test.js +196 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-1-stage-raw-files.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-1-stage-raw-files.js +24 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-1-stage-raw-files.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-1-stage-raw-files.test.js +54 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-3-work-units.d.ts +44 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-3-work-units.js +104 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-3-work-units.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-3-work-units.test.js +146 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-4-reconciliation.d.ts +28 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-4-reconciliation.js +17 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-4-reconciliation.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-4-reconciliation.test.js +144 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-index.types.d.ts +50 -0
- package/node_modules/@ktx/context/dist/ingest/stages/stage-index.types.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/validate-wu-sources.d.ts +9 -0
- package/node_modules/@ktx/context/dist/ingest/stages/validate-wu-sources.js +14 -0
- package/node_modules/@ktx/context/dist/ingest/stages/validate-wu-sources.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/stages/validate-wu-sources.test.js +27 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-artifact-resolution.tool.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-artifact-resolution.tool.js +40 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-conflict-resolution.tool.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-conflict-resolution.tool.js +31 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-eviction-decision.tool.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-eviction-decision.tool.js +38 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-reconciliation-records.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-reconciliation-records.tool.test.js +237 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-unmapped-fallback.tool.d.ts +14 -0
- package/node_modules/@ktx/context/dist/ingest/tools/emit-unmapped-fallback.tool.js +91 -0
- package/node_modules/@ktx/context/dist/ingest/tools/eviction-list.tool.d.ts +8 -0
- package/node_modules/@ktx/context/dist/ingest/tools/eviction-list.tool.js +25 -0
- package/node_modules/@ktx/context/dist/ingest/tools/eviction-list.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/eviction-list.tool.test.js +44 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-file.tool.d.ts +8 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-file.tool.js +34 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-file.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-file.tool.test.js +45 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-span.tool.d.ts +10 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-span.tool.js +40 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-span.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/read-raw-span.tool.test.js +34 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-diff.tool.d.ts +8 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-diff.tool.js +37 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-diff.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-diff.tool.test.js +112 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-list.tool.d.ts +5 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-list.tool.js +32 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-list.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/stage-list.tool.test.js +58 -0
- package/node_modules/@ktx/context/dist/ingest/tools/tool-call-logger.d.ts +33 -0
- package/node_modules/@ktx/context/dist/ingest/tools/tool-call-logger.js +80 -0
- package/node_modules/@ktx/context/dist/ingest/tools/tool-transcript-summary.d.ts +13 -0
- package/node_modules/@ktx/context/dist/ingest/tools/tool-transcript-summary.js +150 -0
- package/node_modules/@ktx/context/dist/ingest/tools/tool-transcript-summary.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/tool-transcript-summary.test.js +141 -0
- package/node_modules/@ktx/context/dist/ingest/tools/verification-ledger.tool.d.ts +14 -0
- package/node_modules/@ktx/context/dist/ingest/tools/verification-ledger.tool.js +71 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/discover-data.tool.d.ts +36 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/discover-data.tool.js +94 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/discover-data.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/discover-data.tool.test.js +107 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/entity-details.tool.d.ts +43 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/entity-details.tool.js +137 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/entity-details.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/entity-details.tool.test.js +146 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/index.d.ts +9 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/index.js +18 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/sql-execution.tool.d.ts +31 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/sql-execution.tool.js +84 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/sql-execution.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/tools/warehouse-verification/sql-execution.tool.test.js +50 -0
- package/node_modules/@ktx/context/dist/ingest/types.d.ts +144 -0
- package/node_modules/@ktx/context/dist/ingest/types.js +1 -0
- package/node_modules/@ktx/context/dist/ingest/wiki-sl-ref-repair.d.ts +19 -0
- package/node_modules/@ktx/context/dist/ingest/wiki-sl-ref-repair.js +89 -0
- package/node_modules/@ktx/context/dist/ingest/wiki-sl-ref-repair.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/ingest/wiki-sl-ref-repair.test.js +81 -0
- package/node_modules/@ktx/context/dist/llm/ai-sdk-runtime.d.ts +23 -0
- package/node_modules/@ktx/context/dist/llm/ai-sdk-runtime.js +133 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-env.d.ts +2 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-env.js +21 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-env.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-env.test.js +17 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-models.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-models.js +17 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-models.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-models.test.js +15 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-runtime.d.ts +36 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-runtime.js +242 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-runtime.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/claude-code-runtime.test.js +384 -0
- package/node_modules/@ktx/context/dist/llm/debug-request-recorder.d.ts +44 -0
- package/node_modules/@ktx/context/dist/llm/debug-request-recorder.js +79 -0
- package/node_modules/@ktx/context/dist/llm/debug-request-recorder.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/debug-request-recorder.test.js +112 -0
- package/node_modules/@ktx/context/dist/llm/embedding-port.d.ts +17 -0
- package/node_modules/@ktx/context/dist/llm/embedding-port.js +31 -0
- package/node_modules/@ktx/context/dist/llm/embedding-port.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/embedding-port.test.js +34 -0
- package/node_modules/@ktx/context/dist/llm/generation.d.ts +8 -0
- package/node_modules/@ktx/context/dist/llm/generation.js +6 -0
- package/node_modules/@ktx/context/dist/llm/index.d.ts +13 -0
- package/node_modules/@ktx/context/dist/llm/index.js +10 -0
- package/node_modules/@ktx/context/dist/llm/local-config.d.ts +22 -0
- package/node_modules/@ktx/context/dist/llm/local-config.js +145 -0
- package/node_modules/@ktx/context/dist/llm/local-config.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/local-config.test.js +165 -0
- package/node_modules/@ktx/context/dist/llm/runtime-local-config.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/runtime-local-config.test.js +17 -0
- package/node_modules/@ktx/context/dist/llm/runtime-port.d.ts +59 -0
- package/node_modules/@ktx/context/dist/llm/runtime-port.js +9 -0
- package/node_modules/@ktx/context/dist/llm/runtime-tools.d.ts +10 -0
- package/node_modules/@ktx/context/dist/llm/runtime-tools.js +68 -0
- package/node_modules/@ktx/context/dist/llm/runtime-tools.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/llm/runtime-tools.test.js +36 -0
- package/node_modules/@ktx/context/dist/mcp/context-tools.d.ts +9 -0
- package/node_modules/@ktx/context/dist/mcp/context-tools.js +398 -0
- package/node_modules/@ktx/context/dist/mcp/index.d.ts +5 -0
- package/node_modules/@ktx/context/dist/mcp/index.js +3 -0
- package/node_modules/@ktx/context/dist/mcp/local-project-ports.d.ts +18 -0
- package/node_modules/@ktx/context/dist/mcp/local-project-ports.js +631 -0
- package/node_modules/@ktx/context/dist/mcp/local-project-ports.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/mcp/local-project-ports.test.js +1388 -0
- package/node_modules/@ktx/context/dist/mcp/server.d.ts +7 -0
- package/node_modules/@ktx/context/dist/mcp/server.js +69 -0
- package/node_modules/@ktx/context/dist/mcp/server.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/mcp/server.test.js +991 -0
- package/node_modules/@ktx/context/dist/mcp/types.d.ts +347 -0
- package/node_modules/@ktx/context/dist/mcp/types.js +1 -0
- package/node_modules/@ktx/context/dist/memory/capture-signals.d.ts +8 -0
- package/node_modules/@ktx/context/dist/memory/capture-signals.js +103 -0
- package/node_modules/@ktx/context/dist/memory/index.d.ts +6 -0
- package/node_modules/@ktx/context/dist/memory/index.js +5 -0
- package/node_modules/@ktx/context/dist/memory/local-memory-runs.d.ts +22 -0
- package/node_modules/@ktx/context/dist/memory/local-memory-runs.js +165 -0
- package/node_modules/@ktx/context/dist/memory/local-memory.d.ts +22 -0
- package/node_modules/@ktx/context/dist/memory/local-memory.js +385 -0
- package/node_modules/@ktx/context/dist/memory/local-memory.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/memory/local-memory.test.js +159 -0
- package/node_modules/@ktx/context/dist/memory/memory-agent.service.d.ts +59 -0
- package/node_modules/@ktx/context/dist/memory/memory-agent.service.ingest.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/memory/memory-agent.service.ingest.test.js +355 -0
- package/node_modules/@ktx/context/dist/memory/memory-agent.service.js +539 -0
- package/node_modules/@ktx/context/dist/memory/memory-agent.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/memory/memory-agent.service.test.js +413 -0
- package/node_modules/@ktx/context/dist/memory/memory-runs.d.ts +54 -0
- package/node_modules/@ktx/context/dist/memory/memory-runs.js +78 -0
- package/node_modules/@ktx/context/dist/memory/memory-runs.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/memory/memory-runs.test.js +158 -0
- package/node_modules/@ktx/context/dist/memory/memory-runtime-assets.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/memory/memory-runtime-assets.test.js +162 -0
- package/node_modules/@ktx/context/dist/memory/types.d.ts +133 -0
- package/node_modules/@ktx/context/dist/memory/types.js +1 -0
- package/node_modules/@ktx/context/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/package-exports.test.js +249 -0
- package/node_modules/@ktx/context/dist/project/config.d.ts +568 -0
- package/node_modules/@ktx/context/dist/project/config.js +331 -0
- package/node_modules/@ktx/context/dist/project/config.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/project/config.test.js +467 -0
- package/node_modules/@ktx/context/dist/project/driver-schemas.d.ts +98 -0
- package/node_modules/@ktx/context/dist/project/driver-schemas.js +180 -0
- package/node_modules/@ktx/context/dist/project/driver-schemas.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/project/driver-schemas.test.js +125 -0
- package/node_modules/@ktx/context/dist/project/index.d.ts +12 -0
- package/node_modules/@ktx/context/dist/project/index.js +6 -0
- package/node_modules/@ktx/context/dist/project/local-git-file-store.d.ts +23 -0
- package/node_modules/@ktx/context/dist/project/local-git-file-store.js +140 -0
- package/node_modules/@ktx/context/dist/project/local-git-file-store.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/project/local-git-file-store.test.js +71 -0
- package/node_modules/@ktx/context/dist/project/local-state-db.d.ts +2 -0
- package/node_modules/@ktx/context/dist/project/local-state-db.js +4 -0
- package/node_modules/@ktx/context/dist/project/mappings-yaml-schema.d.ts +58 -0
- package/node_modules/@ktx/context/dist/project/mappings-yaml-schema.js +109 -0
- package/node_modules/@ktx/context/dist/project/mappings-yaml-schema.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/project/mappings-yaml-schema.test.js +79 -0
- package/node_modules/@ktx/context/dist/project/project.d.ts +29 -0
- package/node_modules/@ktx/context/dist/project/project.js +93 -0
- package/node_modules/@ktx/context/dist/project/project.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/project/project.test.js +55 -0
- package/node_modules/@ktx/context/dist/project/setup-config.d.ts +12 -0
- package/node_modules/@ktx/context/dist/project/setup-config.js +70 -0
- package/node_modules/@ktx/context/dist/project/setup-config.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/project/setup-config.test.js +37 -0
- package/node_modules/@ktx/context/dist/prompts/index.d.ts +2 -0
- package/node_modules/@ktx/context/dist/prompts/index.js +1 -0
- package/node_modules/@ktx/context/dist/prompts/prompt.service.d.ts +28 -0
- package/node_modules/@ktx/context/dist/prompts/prompt.service.js +84 -0
- package/node_modules/@ktx/context/dist/prompts/prompt.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/prompts/prompt.service.test.js +43 -0
- package/node_modules/@ktx/context/dist/scan/credentials.d.ts +8 -0
- package/node_modules/@ktx/context/dist/scan/credentials.js +38 -0
- package/node_modules/@ktx/context/dist/scan/credentials.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/credentials.test.js +161 -0
- package/node_modules/@ktx/context/dist/scan/data-dictionary.d.ts +22 -0
- package/node_modules/@ktx/context/dist/scan/data-dictionary.js +66 -0
- package/node_modules/@ktx/context/dist/scan/data-dictionary.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/data-dictionary.test.js +92 -0
- package/node_modules/@ktx/context/dist/scan/description-generation.d.ts +122 -0
- package/node_modules/@ktx/context/dist/scan/description-generation.js +556 -0
- package/node_modules/@ktx/context/dist/scan/description-generation.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/description-generation.test.js +587 -0
- package/node_modules/@ktx/context/dist/scan/embedding-text.d.ts +21 -0
- package/node_modules/@ktx/context/dist/scan/embedding-text.js +23 -0
- package/node_modules/@ktx/context/dist/scan/embedding-text.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/embedding-text.test.js +36 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-state.d.ts +48 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-state.js +44 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-state.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-state.test.js +147 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-summary.d.ts +4 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-summary.js +44 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-summary.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-summary.test.js +34 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-types.d.ts +104 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-types.js +1 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-types.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/enrichment-types.test.js +141 -0
- package/node_modules/@ktx/context/dist/scan/entity-details.d.ts +57 -0
- package/node_modules/@ktx/context/dist/scan/entity-details.js +216 -0
- package/node_modules/@ktx/context/dist/scan/entity-details.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/entity-details.test.js +234 -0
- package/node_modules/@ktx/context/dist/scan/index.d.ts +72 -0
- package/node_modules/@ktx/context/dist/scan/index.js +37 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment-artifacts.d.ts +32 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment-artifacts.js +274 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment-artifacts.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment-artifacts.test.js +767 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment.d.ts +49 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment.js +494 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/local-enrichment.test.js +757 -0
- package/node_modules/@ktx/context/dist/scan/local-scan.d.ts +68 -0
- package/node_modules/@ktx/context/dist/scan/local-scan.js +427 -0
- package/node_modules/@ktx/context/dist/scan/local-scan.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/local-scan.test.js +1399 -0
- package/node_modules/@ktx/context/dist/scan/local-structural-artifacts.d.ts +10 -0
- package/node_modules/@ktx/context/dist/scan/local-structural-artifacts.js +86 -0
- package/node_modules/@ktx/context/dist/scan/local-structural-artifacts.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/local-structural-artifacts.test.js +144 -0
- package/node_modules/@ktx/context/dist/scan/orchestrator.d.ts +44 -0
- package/node_modules/@ktx/context/dist/scan/orchestrator.js +186 -0
- package/node_modules/@ktx/context/dist/scan/orchestrator.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/orchestrator.test.js +335 -0
- package/node_modules/@ktx/context/dist/scan/relationship-artifacts.d.ts +20 -0
- package/node_modules/@ktx/context/dist/scan/relationship-artifacts.js +45 -0
- package/node_modules/@ktx/context/dist/scan/relationship-artifacts.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-artifacts.test.js +268 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmark-report.d.ts +52 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmark-report.js +252 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmark-report.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmark-report.test.js +389 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmarks.d.ts +148 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmarks.js +646 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmarks.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-benchmarks.test.js +1072 -0
- package/node_modules/@ktx/context/dist/scan/relationship-budget.d.ts +19 -0
- package/node_modules/@ktx/context/dist/scan/relationship-budget.js +34 -0
- package/node_modules/@ktx/context/dist/scan/relationship-budget.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-budget.test.js +71 -0
- package/node_modules/@ktx/context/dist/scan/relationship-candidates.d.ts +49 -0
- package/node_modules/@ktx/context/dist/scan/relationship-candidates.js +556 -0
- package/node_modules/@ktx/context/dist/scan/relationship-candidates.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-candidates.test.js +747 -0
- package/node_modules/@ktx/context/dist/scan/relationship-composite-candidates.d.ts +66 -0
- package/node_modules/@ktx/context/dist/scan/relationship-composite-candidates.js +422 -0
- package/node_modules/@ktx/context/dist/scan/relationship-composite-candidates.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-composite-candidates.test.js +69 -0
- package/node_modules/@ktx/context/dist/scan/relationship-diagnostics.d.ts +94 -0
- package/node_modules/@ktx/context/dist/scan/relationship-diagnostics.js +224 -0
- package/node_modules/@ktx/context/dist/scan/relationship-diagnostics.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-diagnostics.test.js +333 -0
- package/node_modules/@ktx/context/dist/scan/relationship-discovery.d.ts +27 -0
- package/node_modules/@ktx/context/dist/scan/relationship-discovery.js +247 -0
- package/node_modules/@ktx/context/dist/scan/relationship-discovery.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-discovery.test.js +618 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-calibration.d.ts +70 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-calibration.js +170 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-calibration.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-calibration.test.js +175 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-export.d.ts +54 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-export.js +96 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-export.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-feedback-export.test.js +241 -0
- package/node_modules/@ktx/context/dist/scan/relationship-formal-metadata.d.ts +7 -0
- package/node_modules/@ktx/context/dist/scan/relationship-formal-metadata.js +43 -0
- package/node_modules/@ktx/context/dist/scan/relationship-formal-metadata.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-formal-metadata.test.js +125 -0
- package/node_modules/@ktx/context/dist/scan/relationship-graph-resolver.d.ts +48 -0
- package/node_modules/@ktx/context/dist/scan/relationship-graph-resolver.js +367 -0
- package/node_modules/@ktx/context/dist/scan/relationship-graph-resolver.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-graph-resolver.test.js +604 -0
- package/node_modules/@ktx/context/dist/scan/relationship-llm-proposal.d.ts +25 -0
- package/node_modules/@ktx/context/dist/scan/relationship-llm-proposal.js +193 -0
- package/node_modules/@ktx/context/dist/scan/relationship-llm-proposal.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-llm-proposal.test.js +197 -0
- package/node_modules/@ktx/context/dist/scan/relationship-locality.d.ts +15 -0
- package/node_modules/@ktx/context/dist/scan/relationship-locality.js +129 -0
- package/node_modules/@ktx/context/dist/scan/relationship-locality.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-locality.test.js +128 -0
- package/node_modules/@ktx/context/dist/scan/relationship-name-similarity.d.ts +13 -0
- package/node_modules/@ktx/context/dist/scan/relationship-name-similarity.js +123 -0
- package/node_modules/@ktx/context/dist/scan/relationship-name-similarity.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-name-similarity.test.js +68 -0
- package/node_modules/@ktx/context/dist/scan/relationship-profiling.d.ts +55 -0
- package/node_modules/@ktx/context/dist/scan/relationship-profiling.js +321 -0
- package/node_modules/@ktx/context/dist/scan/relationship-profiling.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-profiling.test.js +313 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-apply.d.ts +34 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-apply.js +152 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-apply.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-apply.test.js +321 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-decisions.d.ts +46 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-decisions.js +92 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-decisions.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-review-decisions.test.js +312 -0
- package/node_modules/@ktx/context/dist/scan/relationship-scoring.d.ts +29 -0
- package/node_modules/@ktx/context/dist/scan/relationship-scoring.js +95 -0
- package/node_modules/@ktx/context/dist/scan/relationship-scoring.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-scoring.test.js +86 -0
- package/node_modules/@ktx/context/dist/scan/relationship-threshold-advice.d.ts +60 -0
- package/node_modules/@ktx/context/dist/scan/relationship-threshold-advice.js +190 -0
- package/node_modules/@ktx/context/dist/scan/relationship-threshold-advice.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-threshold-advice.test.js +205 -0
- package/node_modules/@ktx/context/dist/scan/relationship-validation.d.ts +44 -0
- package/node_modules/@ktx/context/dist/scan/relationship-validation.js +240 -0
- package/node_modules/@ktx/context/dist/scan/relationship-validation.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/relationship-validation.test.js +450 -0
- package/node_modules/@ktx/context/dist/scan/sqlite-local-enrichment-state-store.d.ts +12 -0
- package/node_modules/@ktx/context/dist/scan/sqlite-local-enrichment-state-store.js +190 -0
- package/node_modules/@ktx/context/dist/scan/type-normalization.d.ts +8 -0
- package/node_modules/@ktx/context/dist/scan/type-normalization.js +23 -0
- package/node_modules/@ktx/context/dist/scan/type-normalization.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/type-normalization.test.js +21 -0
- package/node_modules/@ktx/context/dist/scan/types.d.ts +309 -0
- package/node_modules/@ktx/context/dist/scan/types.js +13 -0
- package/node_modules/@ktx/context/dist/scan/types.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/types.test.js +206 -0
- package/node_modules/@ktx/context/dist/scan/warehouse-catalog.d.ts +69 -0
- package/node_modules/@ktx/context/dist/scan/warehouse-catalog.js +311 -0
- package/node_modules/@ktx/context/dist/scan/warehouse-catalog.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/scan/warehouse-catalog.test.js +158 -0
- package/node_modules/@ktx/context/dist/search/backend-conformance.d.ts +39 -0
- package/node_modules/@ktx/context/dist/search/backend-conformance.js +88 -0
- package/node_modules/@ktx/context/dist/search/backend-conformance.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/backend-conformance.test.js +408 -0
- package/node_modules/@ktx/context/dist/search/discover.d.ts +30 -0
- package/node_modules/@ktx/context/dist/search/discover.js +340 -0
- package/node_modules/@ktx/context/dist/search/discover.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/discover.test.js +197 -0
- package/node_modules/@ktx/context/dist/search/hybrid-search-core.d.ts +4 -0
- package/node_modules/@ktx/context/dist/search/hybrid-search-core.js +106 -0
- package/node_modules/@ktx/context/dist/search/hybrid-search-core.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/hybrid-search-core.test.js +113 -0
- package/node_modules/@ktx/context/dist/search/index.d.ts +8 -0
- package/node_modules/@ktx/context/dist/search/index.js +5 -0
- package/node_modules/@ktx/context/dist/search/pglite-owner-process.d.ts +27 -0
- package/node_modules/@ktx/context/dist/search/pglite-owner-process.js +89 -0
- package/node_modules/@ktx/context/dist/search/pglite-owner-process.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/pglite-owner-process.test.js +286 -0
- package/node_modules/@ktx/context/dist/search/pglite-runtime-boundary.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/pglite-runtime-boundary.test.js +48 -0
- package/node_modules/@ktx/context/dist/search/pglite-spike.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/pglite-spike.test.js +249 -0
- package/node_modules/@ktx/context/dist/search/query.d.ts +3 -0
- package/node_modules/@ktx/context/dist/search/query.js +15 -0
- package/node_modules/@ktx/context/dist/search/query.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/query.test.js +23 -0
- package/node_modules/@ktx/context/dist/search/rrf.d.ts +5 -0
- package/node_modules/@ktx/context/dist/search/rrf.js +13 -0
- package/node_modules/@ktx/context/dist/search/rrf.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/search/rrf.test.js +47 -0
- package/node_modules/@ktx/context/dist/search/types.d.ts +73 -0
- package/node_modules/@ktx/context/dist/search/types.js +1 -0
- package/node_modules/@ktx/context/dist/skills/index.d.ts +2 -0
- package/node_modules/@ktx/context/dist/skills/index.js +1 -0
- package/node_modules/@ktx/context/dist/skills/skills-registry.service.d.ts +35 -0
- package/node_modules/@ktx/context/dist/skills/skills-registry.service.js +215 -0
- package/node_modules/@ktx/context/dist/skills/skills-registry.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/skills/skills-registry.service.test.js +161 -0
- package/node_modules/@ktx/context/dist/sl/description-normalization.d.ts +5 -0
- package/node_modules/@ktx/context/dist/sl/description-normalization.js +100 -0
- package/node_modules/@ktx/context/dist/sl/descriptions.d.ts +14 -0
- package/node_modules/@ktx/context/dist/sl/descriptions.js +20 -0
- package/node_modules/@ktx/context/dist/sl/dictionary-search.d.ts +42 -0
- package/node_modules/@ktx/context/dist/sl/dictionary-search.js +121 -0
- package/node_modules/@ktx/context/dist/sl/dictionary-search.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/dictionary-search.test.js +204 -0
- package/node_modules/@ktx/context/dist/sl/index.d.ts +15 -0
- package/node_modules/@ktx/context/dist/sl/index.js +10 -0
- package/node_modules/@ktx/context/dist/sl/local-query.d.ts +17 -0
- package/node_modules/@ktx/context/dist/sl/local-query.js +111 -0
- package/node_modules/@ktx/context/dist/sl/local-query.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/local-query.test.js +218 -0
- package/node_modules/@ktx/context/dist/sl/local-sl.d.ts +60 -0
- package/node_modules/@ktx/context/dist/sl/local-sl.js +484 -0
- package/node_modules/@ktx/context/dist/sl/local-sl.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/local-sl.test.js +334 -0
- package/node_modules/@ktx/context/dist/sl/pglite-sl-search-prototype.d.ts +16 -0
- package/node_modules/@ktx/context/dist/sl/pglite-sl-search-prototype.js +433 -0
- package/node_modules/@ktx/context/dist/sl/pglite-sl-search-prototype.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/pglite-sl-search-prototype.test.js +240 -0
- package/node_modules/@ktx/context/dist/sl/ports.d.ts +61 -0
- package/node_modules/@ktx/context/dist/sl/ports.js +1 -0
- package/node_modules/@ktx/context/dist/sl/schemas.contract.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/schemas.contract.test.js +62 -0
- package/node_modules/@ktx/context/dist/sl/schemas.d.ts +282 -0
- package/node_modules/@ktx/context/dist/sl/schemas.js +181 -0
- package/node_modules/@ktx/context/dist/sl/semantic-layer.service.d.ts +214 -0
- package/node_modules/@ktx/context/dist/sl/semantic-layer.service.js +1334 -0
- package/node_modules/@ktx/context/dist/sl/semantic-layer.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/semantic-layer.service.test.js +1084 -0
- package/node_modules/@ktx/context/dist/sl/sl-dictionary-profile.d.ts +9 -0
- package/node_modules/@ktx/context/dist/sl/sl-dictionary-profile.js +80 -0
- package/node_modules/@ktx/context/dist/sl/sl-dictionary-profile.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/sl-dictionary-profile.test.js +88 -0
- package/node_modules/@ktx/context/dist/sl/sl-search.service.d.ts +17 -0
- package/node_modules/@ktx/context/dist/sl/sl-search.service.js +156 -0
- package/node_modules/@ktx/context/dist/sl/sl-search.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/sl-search.service.test.js +195 -0
- package/node_modules/@ktx/context/dist/sl/sl-validator.port.d.ts +7 -0
- package/node_modules/@ktx/context/dist/sl/sl-validator.port.js +1 -0
- package/node_modules/@ktx/context/dist/sl/sqlite-sl-sources-index.d.ts +56 -0
- package/node_modules/@ktx/context/dist/sl/sqlite-sl-sources-index.js +419 -0
- package/node_modules/@ktx/context/dist/sl/sqlite-sl-sources-index.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/sqlite-sl-sources-index.test.js +151 -0
- package/node_modules/@ktx/context/dist/sl/tools/base-semantic-layer.tool.d.ts +45 -0
- package/node_modules/@ktx/context/dist/sl/tools/base-semantic-layer.tool.js +91 -0
- package/node_modules/@ktx/context/dist/sl/tools/connection-id-schema.d.ts +2 -0
- package/node_modules/@ktx/context/dist/sl/tools/connection-id-schema.js +5 -0
- package/node_modules/@ktx/context/dist/sl/tools/connection-id-schema.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/connection-id-schema.test.js +14 -0
- package/node_modules/@ktx/context/dist/sl/tools/index.d.ts +11 -0
- package/node_modules/@ktx/context/dist/sl/tools/index.js +8 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-discover.tool.d.ts +52 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-discover.tool.js +260 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-discover.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-discover.tool.test.js +72 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-edit-source.tool.d.ts +33 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-edit-source.tool.js +173 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-edit-source.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-edit-source.tool.test.js +169 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-read-source.tool.d.ts +23 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-read-source.tool.js +47 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-read-source.tool.session.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-read-source.tool.session.test.js +55 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-rollback.tool.d.ts +25 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-rollback.tool.js +63 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-rollback.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-rollback.tool.test.js +57 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-validate.tool.d.ts +23 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-validate.tool.js +100 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-validate.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-validate.tool.test.js +54 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-warehouse-validation.d.ts +29 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-warehouse-validation.js +245 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-warehouse-validation.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-warehouse-validation.test.js +136 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-write-source.tool.d.ts +422 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-write-source.tool.js +315 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-write-source.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sl/tools/sl-write-source.tool.test.js +285 -0
- package/node_modules/@ktx/context/dist/sl/types.d.ts +147 -0
- package/node_modules/@ktx/context/dist/sl/types.js +1 -0
- package/node_modules/@ktx/context/dist/sql-analysis/http-sql-analysis-port.d.ts +7 -0
- package/node_modules/@ktx/context/dist/sql-analysis/http-sql-analysis-port.js +188 -0
- package/node_modules/@ktx/context/dist/sql-analysis/http-sql-analysis-port.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/sql-analysis/http-sql-analysis-port.test.js +147 -0
- package/node_modules/@ktx/context/dist/sql-analysis/index.d.ts +3 -0
- package/node_modules/@ktx/context/dist/sql-analysis/index.js +1 -0
- package/node_modules/@ktx/context/dist/sql-analysis/ports.d.ts +33 -0
- package/node_modules/@ktx/context/dist/sql-analysis/ports.js +1 -0
- package/node_modules/@ktx/context/dist/test/make-local-git-repo.d.ts +10 -0
- package/node_modules/@ktx/context/dist/test/make-local-git-repo.js +34 -0
- package/node_modules/@ktx/context/dist/tools/action-raw-paths.d.ts +10 -0
- package/node_modules/@ktx/context/dist/tools/action-raw-paths.js +18 -0
- package/node_modules/@ktx/context/dist/tools/authors.d.ts +8 -0
- package/node_modules/@ktx/context/dist/tools/authors.js +4 -0
- package/node_modules/@ktx/context/dist/tools/base-tool.d.ts +85 -0
- package/node_modules/@ktx/context/dist/tools/base-tool.js +94 -0
- package/node_modules/@ktx/context/dist/tools/context-candidate-mark.tool.d.ts +41 -0
- package/node_modules/@ktx/context/dist/tools/context-candidate-mark.tool.js +44 -0
- package/node_modules/@ktx/context/dist/tools/context-candidate-write.tool.d.ts +64 -0
- package/node_modules/@ktx/context/dist/tools/context-candidate-write.tool.js +140 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-ids.d.ts +3 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-ids.js +12 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-neighbors.tool.d.ts +48 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-neighbors.tool.js +69 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-read.tool.d.ts +37 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-read.tool.js +118 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-search.tool.d.ts +57 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-search.tool.js +92 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-tool-store.d.ts +112 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-tool-store.js +1 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-tools.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/tools/context-evidence-tools.test.js +486 -0
- package/node_modules/@ktx/context/dist/tools/context-ingest-metadata.d.ts +9 -0
- package/node_modules/@ktx/context/dist/tools/context-ingest-metadata.js +13 -0
- package/node_modules/@ktx/context/dist/tools/index.d.ts +18 -0
- package/node_modules/@ktx/context/dist/tools/index.js +11 -0
- package/node_modules/@ktx/context/dist/tools/sql-edit-replacer.d.ts +16 -0
- package/node_modules/@ktx/context/dist/tools/sql-edit-replacer.js +173 -0
- package/node_modules/@ktx/context/dist/tools/tool-session.d.ts +54 -0
- package/node_modules/@ktx/context/dist/tools/tool-session.js +1 -0
- package/node_modules/@ktx/context/dist/tools/touched-sl-sources.d.ts +12 -0
- package/node_modules/@ktx/context/dist/tools/touched-sl-sources.js +47 -0
- package/node_modules/@ktx/context/dist/tools/touched-sl-sources.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/tools/touched-sl-sources.test.js +31 -0
- package/node_modules/@ktx/context/dist/wiki/index.d.ts +9 -0
- package/node_modules/@ktx/context/dist/wiki/index.js +6 -0
- package/node_modules/@ktx/context/dist/wiki/keys.d.ts +11 -0
- package/node_modules/@ktx/context/dist/wiki/keys.js +26 -0
- package/node_modules/@ktx/context/dist/wiki/knowledge-search-text.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/knowledge-search-text.js +7 -0
- package/node_modules/@ktx/context/dist/wiki/knowledge-wiki.service.d.ts +76 -0
- package/node_modules/@ktx/context/dist/wiki/knowledge-wiki.service.js +346 -0
- package/node_modules/@ktx/context/dist/wiki/knowledge-wiki.service.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/knowledge-wiki.service.test.js +134 -0
- package/node_modules/@ktx/context/dist/wiki/local-knowledge.d.ts +55 -0
- package/node_modules/@ktx/context/dist/wiki/local-knowledge.js +286 -0
- package/node_modules/@ktx/context/dist/wiki/local-knowledge.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/local-knowledge.test.js +226 -0
- package/node_modules/@ktx/context/dist/wiki/ports.d.ts +70 -0
- package/node_modules/@ktx/context/dist/wiki/ports.js +1 -0
- package/node_modules/@ktx/context/dist/wiki/sqlite-knowledge-index.d.ts +43 -0
- package/node_modules/@ktx/context/dist/wiki/sqlite-knowledge-index.js +208 -0
- package/node_modules/@ktx/context/dist/wiki/sqlite-knowledge-index.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/sqlite-knowledge-index.test.js +103 -0
- package/node_modules/@ktx/context/dist/wiki/tools/index.d.ts +5 -0
- package/node_modules/@ktx/context/dist/wiki/tools/index.js +5 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-list-tags.tool.d.ts +16 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-list-tags.tool.js +34 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-list-tags.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-list-tags.tool.test.js +35 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-read.tool.d.ts +28 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-read.tool.js +59 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-read.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-read.tool.test.js +66 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-remove.tool.d.ts +28 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-remove.tool.js +85 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-remove.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-remove.tool.test.js +95 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-search.tool.d.ts +49 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-search.tool.js +51 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-search.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-search.tool.test.js +35 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-write.tool.d.ts +80 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-write.tool.js +255 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-write.tool.test.d.ts +1 -0
- package/node_modules/@ktx/context/dist/wiki/tools/wiki-write.tool.test.js +236 -0
- package/node_modules/@ktx/context/dist/wiki/types.d.ts +50 -0
- package/node_modules/@ktx/context/dist/wiki/types.js +1 -0
- package/node_modules/@ktx/context/package.json +117 -0
- package/node_modules/@ktx/context/prompts/memory_agent_backfill.md +21 -0
- package/node_modules/@ktx/context/prompts/memory_agent_bundle_ingest_reconcile.md +29 -0
- package/node_modules/@ktx/context/prompts/memory_agent_bundle_ingest_work_unit.md +32 -0
- package/node_modules/@ktx/context/prompts/memory_agent_external_ingest.md +28 -0
- package/node_modules/@ktx/context/prompts/memory_agent_research.md +30 -0
- package/node_modules/@ktx/context/prompts/skills/light_extraction.md +40 -0
- package/node_modules/@ktx/context/prompts/skills/page_triage_classifier.md +40 -0
- package/node_modules/@ktx/context/skills/_shared/identifier-verification.md +27 -0
- package/node_modules/@ktx/context/skills/dbt_ingest/SKILL.md +76 -0
- package/node_modules/@ktx/context/skills/historic_sql_patterns/SKILL.md +91 -0
- package/node_modules/@ktx/context/skills/historic_sql_table_digest/SKILL.md +89 -0
- package/node_modules/@ktx/context/skills/ingest_triage/SKILL.md +77 -0
- package/node_modules/@ktx/context/skills/live_database_ingest/SKILL.md +89 -0
- package/node_modules/@ktx/context/skills/looker_ingest/SKILL.md +248 -0
- package/node_modules/@ktx/context/skills/lookml_ingest/SKILL.md +219 -0
- package/node_modules/@ktx/context/skills/metabase_ingest/SKILL.md +253 -0
- package/node_modules/@ktx/context/skills/metricflow_ingest/SKILL.md +313 -0
- package/node_modules/@ktx/context/skills/notion_synthesize/SKILL.md +104 -0
- package/node_modules/@ktx/context/skills/sl/SKILL.md +247 -0
- package/node_modules/@ktx/context/skills/sl_capture/SKILL.md +346 -0
- package/node_modules/@ktx/context/skills/wiki_capture/SKILL.md +160 -0
- package/node_modules/@ktx/llm/dist/embedding-health.d.ts +14 -0
- package/node_modules/@ktx/llm/dist/embedding-health.js +36 -0
- package/node_modules/@ktx/llm/dist/embedding-health.test.d.ts +1 -0
- package/node_modules/@ktx/llm/dist/embedding-health.test.js +72 -0
- package/node_modules/@ktx/llm/dist/embedding-provider.d.ts +35 -0
- package/node_modules/@ktx/llm/dist/embedding-provider.js +287 -0
- package/node_modules/@ktx/llm/dist/embedding-provider.test.d.ts +1 -0
- package/node_modules/@ktx/llm/dist/embedding-provider.test.js +99 -0
- package/node_modules/@ktx/llm/dist/index.d.ts +11 -0
- package/node_modules/@ktx/llm/dist/index.js +6 -0
- package/node_modules/@ktx/llm/dist/message-builder.d.ts +45 -0
- package/node_modules/@ktx/llm/dist/message-builder.js +151 -0
- package/node_modules/@ktx/llm/dist/message-builder.test.d.ts +1 -0
- package/node_modules/@ktx/llm/dist/message-builder.test.js +127 -0
- package/node_modules/@ktx/llm/dist/model-health.d.ts +18 -0
- package/node_modules/@ktx/llm/dist/model-health.js +38 -0
- package/node_modules/@ktx/llm/dist/model-health.test.d.ts +1 -0
- package/node_modules/@ktx/llm/dist/model-health.test.js +55 -0
- package/node_modules/@ktx/llm/dist/model-provider.d.ts +22 -0
- package/node_modules/@ktx/llm/dist/model-provider.js +150 -0
- package/node_modules/@ktx/llm/dist/model-provider.test.d.ts +1 -0
- package/node_modules/@ktx/llm/dist/model-provider.test.js +246 -0
- package/node_modules/@ktx/llm/dist/package-exports.test.d.ts +1 -0
- package/node_modules/@ktx/llm/dist/package-exports.test.js +17 -0
- package/node_modules/@ktx/llm/dist/repair.d.ts +8 -0
- package/node_modules/@ktx/llm/dist/repair.js +75 -0
- package/node_modules/@ktx/llm/dist/repair.test.d.ts +1 -0
- package/node_modules/@ktx/llm/dist/repair.test.js +78 -0
- package/node_modules/@ktx/llm/dist/types.d.ts +105 -0
- package/node_modules/@ktx/llm/dist/types.js +1 -0
- package/node_modules/@ktx/llm/package.json +20 -0
- package/package.json +74 -7
- package/README.md +0 -3
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
import { publicDatabaseIngestMessage, publicQueryHistoryMessage } from './public-ingest-copy.js';
|
|
2
|
+
import { buildPublicIngestPlan, executePublicIngestTarget } from './public-ingest.js';
|
|
3
|
+
import { formatDuration } from './demo-metrics.js';
|
|
4
|
+
import { profileMark } from './startup-profile.js';
|
|
5
|
+
profileMark('module:context-build-view');
|
|
6
|
+
const SPINNER_FRAMES = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
7
|
+
const ESC = String.fromCharCode(0x1b);
|
|
8
|
+
const PHASE_LABELS = {
|
|
9
|
+
'database-schema': 'Schema',
|
|
10
|
+
'query-history': 'Query history',
|
|
11
|
+
'source-ingest': 'Source ingest',
|
|
12
|
+
};
|
|
13
|
+
function makePhasesForTarget(target) {
|
|
14
|
+
const make = (key) => ({
|
|
15
|
+
key,
|
|
16
|
+
name: PHASE_LABELS[key],
|
|
17
|
+
status: 'queued',
|
|
18
|
+
percent: 0,
|
|
19
|
+
detail: null,
|
|
20
|
+
summary: null,
|
|
21
|
+
startedAt: null,
|
|
22
|
+
elapsedMs: 0,
|
|
23
|
+
progressUpdatedAtMs: null,
|
|
24
|
+
});
|
|
25
|
+
if (target.operation === 'database-ingest') {
|
|
26
|
+
const phases = [make('database-schema')];
|
|
27
|
+
if (target.queryHistory?.enabled === true) {
|
|
28
|
+
phases.push(make('query-history'));
|
|
29
|
+
}
|
|
30
|
+
return phases;
|
|
31
|
+
}
|
|
32
|
+
return [make('source-ingest')];
|
|
33
|
+
}
|
|
34
|
+
// --- Rendering ---
|
|
35
|
+
function green(text) {
|
|
36
|
+
return `${ESC}[32m${text}${ESC}[39m`;
|
|
37
|
+
}
|
|
38
|
+
function red(text) {
|
|
39
|
+
return `${ESC}[31m${text}${ESC}[39m`;
|
|
40
|
+
}
|
|
41
|
+
function cyan(text) {
|
|
42
|
+
return `${ESC}[36m${text}${ESC}[39m`;
|
|
43
|
+
}
|
|
44
|
+
function dim(text) {
|
|
45
|
+
return `${ESC}[2m${text}${ESC}[22m`;
|
|
46
|
+
}
|
|
47
|
+
function statusIcon(status, frame, styled) {
|
|
48
|
+
if (!styled) {
|
|
49
|
+
switch (status) {
|
|
50
|
+
case 'done':
|
|
51
|
+
return '✓';
|
|
52
|
+
case 'failed':
|
|
53
|
+
return '✗';
|
|
54
|
+
case 'running':
|
|
55
|
+
return SPINNER_FRAMES[frame % SPINNER_FRAMES.length] ?? '⠋';
|
|
56
|
+
default:
|
|
57
|
+
return '○';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
switch (status) {
|
|
61
|
+
case 'done':
|
|
62
|
+
return green('✓');
|
|
63
|
+
case 'failed':
|
|
64
|
+
return red('✗');
|
|
65
|
+
case 'running':
|
|
66
|
+
return cyan(SPINNER_FRAMES[frame % SPINNER_FRAMES.length] ?? '⠋');
|
|
67
|
+
default:
|
|
68
|
+
return dim('○');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function phaseStatusIcon(status, frame, styled) {
|
|
72
|
+
const raw = (() => {
|
|
73
|
+
switch (status) {
|
|
74
|
+
case 'done':
|
|
75
|
+
return '✓';
|
|
76
|
+
case 'failed':
|
|
77
|
+
return '✗';
|
|
78
|
+
case 'running':
|
|
79
|
+
return SPINNER_FRAMES[frame % SPINNER_FRAMES.length] ?? '⠋';
|
|
80
|
+
case 'skipped':
|
|
81
|
+
return '·';
|
|
82
|
+
default:
|
|
83
|
+
return '○';
|
|
84
|
+
}
|
|
85
|
+
})();
|
|
86
|
+
if (!styled)
|
|
87
|
+
return raw;
|
|
88
|
+
switch (status) {
|
|
89
|
+
case 'done':
|
|
90
|
+
return green(raw);
|
|
91
|
+
case 'failed':
|
|
92
|
+
return red(raw);
|
|
93
|
+
case 'running':
|
|
94
|
+
return cyan(raw);
|
|
95
|
+
default:
|
|
96
|
+
return dim(raw);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function extractPercent(detailLine) {
|
|
100
|
+
if (!detailLine)
|
|
101
|
+
return null;
|
|
102
|
+
const match = detailLine.match(/^\[(\d+)%\]/);
|
|
103
|
+
return match ? Number(match[1]) : null;
|
|
104
|
+
}
|
|
105
|
+
const BAR_WIDTH = 12;
|
|
106
|
+
const BAR_FILLED = '█';
|
|
107
|
+
const BAR_EMPTY = '░';
|
|
108
|
+
const STALE_PROGRESS_UPDATE_MS = 30_000;
|
|
109
|
+
function renderProgressBar(percent, styled) {
|
|
110
|
+
const filled = Math.round((percent / 100) * BAR_WIDTH);
|
|
111
|
+
const empty = BAR_WIDTH - filled;
|
|
112
|
+
const bar = `${BAR_FILLED.repeat(filled)}${BAR_EMPTY.repeat(empty)}`;
|
|
113
|
+
return styled ? cyan(bar) : bar;
|
|
114
|
+
}
|
|
115
|
+
function staleProgressText(target, styled) {
|
|
116
|
+
if (target.startedAt === null || target.progressUpdatedAtMs === null || target.elapsedMs <= 0) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
const currentTimeMs = target.startedAt + target.elapsedMs;
|
|
120
|
+
const staleMs = currentTimeMs - target.progressUpdatedAtMs;
|
|
121
|
+
if (staleMs < STALE_PROGRESS_UPDATE_MS) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
const text = `last update ${formatDuration(staleMs)} ago`;
|
|
125
|
+
return styled ? dim(text) : text;
|
|
126
|
+
}
|
|
127
|
+
function targetDetail(target, styled, options) {
|
|
128
|
+
if (target.status === 'done') {
|
|
129
|
+
const parts = [];
|
|
130
|
+
if (target.summaryText)
|
|
131
|
+
parts.push(target.summaryText);
|
|
132
|
+
parts.push(formatDuration(target.elapsedMs));
|
|
133
|
+
return parts.join(' · ');
|
|
134
|
+
}
|
|
135
|
+
if (target.status === 'failed') {
|
|
136
|
+
const failureText = target.failureText ?? 'failed';
|
|
137
|
+
return styled ? red(failureText) : failureText;
|
|
138
|
+
}
|
|
139
|
+
if (target.status === 'running') {
|
|
140
|
+
const percent = extractPercent(target.detailLine);
|
|
141
|
+
const progressText = target.detailLine?.replace(/^\[\d+%\]\s*/, '') ??
|
|
142
|
+
(target.target.operation === 'database-ingest'
|
|
143
|
+
? (options.scanRunningText ?? 'reading schema')
|
|
144
|
+
: (options.sourceIngestRunningText ?? 'ingesting...'));
|
|
145
|
+
const elapsed = target.elapsedMs > 0 ? `(${formatDuration(target.elapsedMs)})` : null;
|
|
146
|
+
const parts = [];
|
|
147
|
+
if (percent !== null) {
|
|
148
|
+
parts.push(`${renderProgressBar(percent, styled)} ${percent}%`);
|
|
149
|
+
}
|
|
150
|
+
parts.push(progressText);
|
|
151
|
+
const stale = staleProgressText(target, styled);
|
|
152
|
+
if (stale)
|
|
153
|
+
parts.push(stale);
|
|
154
|
+
if (elapsed)
|
|
155
|
+
parts.push(styled ? dim(elapsed) : elapsed);
|
|
156
|
+
return parts.join(' ');
|
|
157
|
+
}
|
|
158
|
+
return styled ? dim('queued') : 'queued';
|
|
159
|
+
}
|
|
160
|
+
const PHASE_NAME_WIDTH = 14;
|
|
161
|
+
function renderRunningTargetHeaderDetail(target, styled) {
|
|
162
|
+
const elapsed = target.elapsedMs > 0 ? `(${formatDuration(target.elapsedMs)})` : '';
|
|
163
|
+
if (!elapsed)
|
|
164
|
+
return '';
|
|
165
|
+
return styled ? dim(elapsed) : elapsed;
|
|
166
|
+
}
|
|
167
|
+
function renderPhaseRow(phase, frame, styled) {
|
|
168
|
+
const icon = phaseStatusIcon(phase.status, frame, styled);
|
|
169
|
+
const name = phase.name.padEnd(PHASE_NAME_WIDTH);
|
|
170
|
+
const segments = [];
|
|
171
|
+
if (phase.status === 'queued' || phase.status === 'skipped') {
|
|
172
|
+
const emptyBar = BAR_EMPTY.repeat(BAR_WIDTH);
|
|
173
|
+
segments.push(styled ? dim(emptyBar) : emptyBar);
|
|
174
|
+
segments.push(styled ? dim(' —') : ' —');
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
const pct = Math.max(0, Math.min(100, Math.round(phase.percent)));
|
|
178
|
+
segments.push(renderProgressBar(pct, styled));
|
|
179
|
+
segments.push(`${String(pct).padStart(3)}%`);
|
|
180
|
+
}
|
|
181
|
+
let trailing = '';
|
|
182
|
+
if (phase.status === 'done') {
|
|
183
|
+
const parts = [];
|
|
184
|
+
if (phase.summary)
|
|
185
|
+
parts.push(phase.summary);
|
|
186
|
+
if (phase.elapsedMs > 0) {
|
|
187
|
+
const elapsed = `(${formatDuration(phase.elapsedMs)})`;
|
|
188
|
+
parts.push(styled ? dim(elapsed) : elapsed);
|
|
189
|
+
}
|
|
190
|
+
trailing = parts.join(' ');
|
|
191
|
+
}
|
|
192
|
+
else if (phase.status === 'running') {
|
|
193
|
+
const parts = [];
|
|
194
|
+
if (phase.detail)
|
|
195
|
+
parts.push(phase.detail);
|
|
196
|
+
if (phase.elapsedMs > 0) {
|
|
197
|
+
const elapsed = `(${formatDuration(phase.elapsedMs)})`;
|
|
198
|
+
parts.push(styled ? dim(elapsed) : elapsed);
|
|
199
|
+
}
|
|
200
|
+
trailing = parts.join(' ');
|
|
201
|
+
}
|
|
202
|
+
else if (phase.status === 'queued') {
|
|
203
|
+
trailing = styled ? dim('queued') : 'queued';
|
|
204
|
+
}
|
|
205
|
+
else if (phase.status === 'skipped') {
|
|
206
|
+
trailing = styled ? dim('skipped') : 'skipped';
|
|
207
|
+
}
|
|
208
|
+
else if (phase.status === 'failed') {
|
|
209
|
+
trailing = styled ? red('failed') : 'failed';
|
|
210
|
+
}
|
|
211
|
+
const bar = `${segments.join(' ')} ${trailing}`.trimEnd();
|
|
212
|
+
return ` ${icon} ${name} ${bar}`;
|
|
213
|
+
}
|
|
214
|
+
function columnWidth(state) {
|
|
215
|
+
const all = [...state.primarySources, ...state.contextSources];
|
|
216
|
+
return Math.max(12, ...all.map((t) => t.target.connectionId.length)) + 2;
|
|
217
|
+
}
|
|
218
|
+
function renderTargetRows(target, frame, styled, width, options) {
|
|
219
|
+
const icon = statusIcon(target.status, frame, styled);
|
|
220
|
+
const name = target.target.connectionId.padEnd(width);
|
|
221
|
+
const anyPhaseStarted = target.phases.some((p) => p.status !== 'queued');
|
|
222
|
+
if (target.status === 'running' && target.phases.length > 0 && anyPhaseStarted) {
|
|
223
|
+
const headerDetail = renderRunningTargetHeaderDetail(target, styled);
|
|
224
|
+
const headerLine = ` ${icon} ${name} ${headerDetail}`.trimEnd();
|
|
225
|
+
return [headerLine, ...target.phases.map((phase) => renderPhaseRow(phase, frame, styled))];
|
|
226
|
+
}
|
|
227
|
+
return [` ${icon} ${name} ${targetDetail(target, styled, options)}`];
|
|
228
|
+
}
|
|
229
|
+
function renderTargetGroup(label, targets, frame, styled, width, options) {
|
|
230
|
+
if (targets.length === 0)
|
|
231
|
+
return [];
|
|
232
|
+
return ['', ` ${label}:`, ...targets.flatMap((t) => renderTargetRows(t, frame, styled, width, options))];
|
|
233
|
+
}
|
|
234
|
+
function renderMessageGroup(label, messages, styled) {
|
|
235
|
+
if (messages.length === 0)
|
|
236
|
+
return [];
|
|
237
|
+
const renderedMessages = messages.map((message) => ` - ${message}`);
|
|
238
|
+
return ['', ` ${label}:`, ...renderedMessages.map((line) => (styled ? dim(line) : line))];
|
|
239
|
+
}
|
|
240
|
+
function retryCommand(input) {
|
|
241
|
+
const projectPart = input.projectDir ? ` --project-dir ${input.projectDir}` : '';
|
|
242
|
+
if (input.entrypoint === 'ingest' && input.connectionId) {
|
|
243
|
+
const depthPart = input.depth ? ` --${input.depth}` : '';
|
|
244
|
+
const queryHistoryPart = input.queryHistory ? ' --query-history' : '';
|
|
245
|
+
const windowPart = input.queryHistory && input.queryHistoryWindowDays !== undefined
|
|
246
|
+
? ` --query-history-window-days ${input.queryHistoryWindowDays}`
|
|
247
|
+
: '';
|
|
248
|
+
return `ktx ingest ${input.connectionId}${projectPart}${depthPart}${queryHistoryPart}${windowPart}`;
|
|
249
|
+
}
|
|
250
|
+
return input.projectDir ? `ktx setup --project-dir ${input.projectDir}` : 'ktx setup';
|
|
251
|
+
}
|
|
252
|
+
export function renderContextBuildView(state, options = {}) {
|
|
253
|
+
const styled = options.styled ?? true;
|
|
254
|
+
const width = columnWidth(state);
|
|
255
|
+
const allTargets = [...state.primarySources, ...state.contextSources];
|
|
256
|
+
const doneCount = allTargets.filter((t) => t.status === 'done' || t.status === 'failed').length;
|
|
257
|
+
const totalCount = allTargets.length;
|
|
258
|
+
const hasActive = allTargets.some((t) => t.status === 'running' || t.status === 'queued');
|
|
259
|
+
const allDone = totalCount > 0 && !hasActive;
|
|
260
|
+
const headerParts = [options.title ?? 'Building KTX context'];
|
|
261
|
+
if (totalCount > 0) {
|
|
262
|
+
const progressParts = [`${doneCount}/${totalCount}`];
|
|
263
|
+
if (state.totalElapsedMs > 0)
|
|
264
|
+
progressParts.push(formatDuration(state.totalElapsedMs));
|
|
265
|
+
const progress = `(${progressParts.join(' · ')})`;
|
|
266
|
+
headerParts.push(styled ? dim(progress) : progress);
|
|
267
|
+
}
|
|
268
|
+
const header = headerParts.join(' ');
|
|
269
|
+
const headerPlainLength = header.replace(/\x1b\[[0-9;]*m/g, '').length;
|
|
270
|
+
const separator = '─'.repeat(Math.max(21, headerPlainLength));
|
|
271
|
+
const lines = [
|
|
272
|
+
'',
|
|
273
|
+
header,
|
|
274
|
+
separator,
|
|
275
|
+
...(options.projectDir ? [` Project: ${options.projectDir}`] : []),
|
|
276
|
+
...renderTargetGroup(options.primaryGroupLabel ?? 'Databases', state.primarySources, state.frame, styled, width, options),
|
|
277
|
+
...renderTargetGroup(options.contextGroupLabel ?? 'Context sources', state.contextSources, state.frame, styled, width, options),
|
|
278
|
+
...renderMessageGroup('Notices', options.notices ?? [], styled),
|
|
279
|
+
...renderMessageGroup('Warnings', options.warnings ?? [], styled),
|
|
280
|
+
'',
|
|
281
|
+
];
|
|
282
|
+
if (allDone && state.totalElapsedMs > 0) {
|
|
283
|
+
const itemName = options.completedItemName ?? { singular: 'source', plural: 'sources' };
|
|
284
|
+
const sourcesLabel = totalCount === 1 ? `1 ${itemName.singular}` : `${totalCount} ${itemName.plural}`;
|
|
285
|
+
const summary = ` Done in ${formatDuration(state.totalElapsedMs)} · ${sourcesLabel} processed`;
|
|
286
|
+
lines.push(styled ? green(summary) : summary);
|
|
287
|
+
lines.push('');
|
|
288
|
+
}
|
|
289
|
+
if (options.showHint && hasActive) {
|
|
290
|
+
const hintContent = options.hintText ?? 'Ctrl+C to stop';
|
|
291
|
+
const hint = ` ${hintContent}`;
|
|
292
|
+
lines.push(styled ? dim(hint) : hint);
|
|
293
|
+
lines.push('');
|
|
294
|
+
}
|
|
295
|
+
return `${lines.join('\n')}\n`;
|
|
296
|
+
}
|
|
297
|
+
// --- IO Capture ---
|
|
298
|
+
const ESC_K_RE = new RegExp(`${ESC.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}\\[K`, 'g');
|
|
299
|
+
const ANSI_RE = /\x1b\[[0-9;]*m/g;
|
|
300
|
+
export function extractProgressMessage(chunk) {
|
|
301
|
+
const cleaned = chunk.replace(/^\r/, '').replace(ESC_K_RE, '').replace(/\n$/, '').trim();
|
|
302
|
+
const match = cleaned.match(/^\[(\d+)%\]\s*(.+)$/);
|
|
303
|
+
return match ? `[${match[1]}%] ${match[2]}` : null;
|
|
304
|
+
}
|
|
305
|
+
export function parseScanSummary(output) {
|
|
306
|
+
const match = output.match(/(\d+) changes? across (\d+) tables?/);
|
|
307
|
+
return match ? `${match[2]} tables` : null;
|
|
308
|
+
}
|
|
309
|
+
export function parseIngestSummary(output) {
|
|
310
|
+
const savedMemory = output.match(/Saved memory: (.+)/);
|
|
311
|
+
if (savedMemory)
|
|
312
|
+
return savedMemory[1];
|
|
313
|
+
const tasks = output.match(/(?:Tasks|Work units): (\d+)/);
|
|
314
|
+
if (tasks)
|
|
315
|
+
return `${tasks[1]} tasks`;
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
function collectOutputMetadata(output, operation) {
|
|
319
|
+
const reportIds = new Set();
|
|
320
|
+
const artifactPaths = new Set();
|
|
321
|
+
for (const line of output.split(/\r?\n/)) {
|
|
322
|
+
const trimmed = line.trim();
|
|
323
|
+
const reportLine = trimmed.match(/^Report:\s*(.+)$/);
|
|
324
|
+
if (reportLine) {
|
|
325
|
+
const value = reportLine[1].trim();
|
|
326
|
+
if (value && value !== 'none') {
|
|
327
|
+
if (operation === 'database-ingest')
|
|
328
|
+
artifactPaths.add(value);
|
|
329
|
+
else
|
|
330
|
+
reportIds.add(value);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
const rawSourcesLine = trimmed.match(/^Raw sources:\s*(.+)$/);
|
|
334
|
+
if (rawSourcesLine) {
|
|
335
|
+
const value = rawSourcesLine[1].trim();
|
|
336
|
+
if (value && value !== 'none')
|
|
337
|
+
artifactPaths.add(value);
|
|
338
|
+
}
|
|
339
|
+
if (operation === 'source-ingest') {
|
|
340
|
+
for (const match of trimmed.matchAll(/\breport=([^\s]+)/g)) {
|
|
341
|
+
reportIds.add(match[1]);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return { reportIds: [...reportIds], artifactPaths: [...artifactPaths] };
|
|
346
|
+
}
|
|
347
|
+
function createCaptureIo(onProgress, isTTY) {
|
|
348
|
+
let buffer = '';
|
|
349
|
+
return {
|
|
350
|
+
io: {
|
|
351
|
+
stdout: {
|
|
352
|
+
isTTY,
|
|
353
|
+
write(chunk) {
|
|
354
|
+
buffer += chunk;
|
|
355
|
+
const progress = extractProgressMessage(chunk);
|
|
356
|
+
if (progress)
|
|
357
|
+
onProgress(progress);
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
stderr: {
|
|
361
|
+
write(chunk) {
|
|
362
|
+
buffer += chunk;
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
captured: () => buffer,
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
// --- Source progress helpers ---
|
|
370
|
+
function progressFieldsFromDetailLine(detailLine, updatedAtMs) {
|
|
371
|
+
if (!detailLine)
|
|
372
|
+
return {};
|
|
373
|
+
const percent = extractPercent(detailLine);
|
|
374
|
+
const message = detailLine.replace(/^\[\d+%\]\s*/, '');
|
|
375
|
+
return {
|
|
376
|
+
...(percent !== null ? { percent } : {}),
|
|
377
|
+
...(message ? { message } : {}),
|
|
378
|
+
...(updatedAtMs !== null ? { updatedAtMs } : {}),
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
function detailLineFromProgressSource(source) {
|
|
382
|
+
if (!source.message)
|
|
383
|
+
return null;
|
|
384
|
+
if (typeof source.percent === 'number' && Number.isFinite(source.percent)) {
|
|
385
|
+
const percent = Math.max(0, Math.min(100, Math.round(source.percent)));
|
|
386
|
+
return `[${percent}%] ${source.message}`;
|
|
387
|
+
}
|
|
388
|
+
return source.message;
|
|
389
|
+
}
|
|
390
|
+
function collectSourceProgress(targets) {
|
|
391
|
+
return targets.map((t) => {
|
|
392
|
+
const progressFields = progressFieldsFromDetailLine(t.detailLine, t.progressUpdatedAtMs);
|
|
393
|
+
return {
|
|
394
|
+
connectionId: t.target.connectionId,
|
|
395
|
+
operation: t.target.operation,
|
|
396
|
+
status: t.status,
|
|
397
|
+
...(t.startedAt !== null ? { startedAtMs: t.startedAt } : {}),
|
|
398
|
+
...(t.elapsedMs > 0 ? { elapsedMs: t.elapsedMs } : {}),
|
|
399
|
+
...progressFields,
|
|
400
|
+
...(t.summaryText ? { summaryText: t.summaryText } : {}),
|
|
401
|
+
};
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
export function viewStateFromSourceProgress(sources, now, startedAtMs) {
|
|
405
|
+
const makeTarget = (s) => ({
|
|
406
|
+
target: { connectionId: s.connectionId, driver: '', operation: s.operation, debugCommand: '', steps: [] },
|
|
407
|
+
status: s.status,
|
|
408
|
+
detailLine: detailLineFromProgressSource(s),
|
|
409
|
+
summaryText: s.summaryText ?? null,
|
|
410
|
+
failureText: null,
|
|
411
|
+
startedAt: s.startedAtMs ?? null,
|
|
412
|
+
elapsedMs: s.status === 'running' && s.startedAtMs ? now - s.startedAtMs : (s.elapsedMs ?? 0),
|
|
413
|
+
progressUpdatedAtMs: s.updatedAtMs ?? null,
|
|
414
|
+
phases: [],
|
|
415
|
+
});
|
|
416
|
+
return {
|
|
417
|
+
primarySources: sources.filter((s) => s.operation === 'database-ingest').map(makeTarget),
|
|
418
|
+
contextSources: sources.filter((s) => s.operation === 'source-ingest').map(makeTarget),
|
|
419
|
+
frame: 0,
|
|
420
|
+
startedAt: startedAtMs ?? null,
|
|
421
|
+
totalElapsedMs: startedAtMs ? now - startedAtMs : 0,
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
// --- Repaint ---
|
|
425
|
+
export function createRepainter(io) {
|
|
426
|
+
let hasPainted = false;
|
|
427
|
+
let lastCursorUpRows = 0;
|
|
428
|
+
const terminalColumns = () => {
|
|
429
|
+
for (const columns of [io.stdout.columns, process.stdout.columns]) {
|
|
430
|
+
if (typeof columns === 'number' && Number.isFinite(columns) && columns > 0)
|
|
431
|
+
return columns;
|
|
432
|
+
}
|
|
433
|
+
return 80;
|
|
434
|
+
};
|
|
435
|
+
const visualRows = (line, columns) => {
|
|
436
|
+
const plainLength = line.replace(ANSI_RE, '').length;
|
|
437
|
+
return Math.max(1, Math.ceil(plainLength / columns));
|
|
438
|
+
};
|
|
439
|
+
const cursorUpRowsAfterWrite = (content) => {
|
|
440
|
+
const columns = terminalColumns();
|
|
441
|
+
const endsWithNewline = content.endsWith('\n');
|
|
442
|
+
const lines = content.split('\n');
|
|
443
|
+
return lines.reduce((sum, line, index) => {
|
|
444
|
+
if (index === lines.length - 1) {
|
|
445
|
+
return endsWithNewline ? sum : sum + Math.max(0, visualRows(line, columns) - 1);
|
|
446
|
+
}
|
|
447
|
+
return sum + visualRows(line, columns);
|
|
448
|
+
}, 0);
|
|
449
|
+
};
|
|
450
|
+
return {
|
|
451
|
+
paint(content) {
|
|
452
|
+
if (hasPainted) {
|
|
453
|
+
if (lastCursorUpRows > 0) {
|
|
454
|
+
io.stdout.write(`${ESC}[${lastCursorUpRows}A`);
|
|
455
|
+
}
|
|
456
|
+
io.stdout.write('\r');
|
|
457
|
+
}
|
|
458
|
+
io.stdout.write(`${ESC}[2K`);
|
|
459
|
+
io.stdout.write(content.replaceAll('\n', `\n${ESC}[2K`));
|
|
460
|
+
io.stdout.write(`${ESC}[J`);
|
|
461
|
+
hasPainted = true;
|
|
462
|
+
lastCursorUpRows = cursorUpRowsAfterWrite(content);
|
|
463
|
+
},
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
// --- Orchestration ---
|
|
467
|
+
function makeTargetState(target) {
|
|
468
|
+
return {
|
|
469
|
+
target,
|
|
470
|
+
status: 'queued',
|
|
471
|
+
detailLine: null,
|
|
472
|
+
summaryText: null,
|
|
473
|
+
failureText: null,
|
|
474
|
+
startedAt: null,
|
|
475
|
+
elapsedMs: 0,
|
|
476
|
+
progressUpdatedAtMs: null,
|
|
477
|
+
phases: makePhasesForTarget(target),
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
const NETWORK_ERROR_REASONS = {
|
|
481
|
+
EADDRNOTAVAIL: 'network address unavailable',
|
|
482
|
+
ECONNRESET: 'connection reset',
|
|
483
|
+
ECONNREFUSED: 'connection refused',
|
|
484
|
+
ENETUNREACH: 'network unreachable',
|
|
485
|
+
ENOTFOUND: 'host not found',
|
|
486
|
+
ETIMEDOUT: 'connection timed out',
|
|
487
|
+
EHOSTUNREACH: 'host unreachable',
|
|
488
|
+
};
|
|
489
|
+
function unknownErrorMessage(error) {
|
|
490
|
+
return error instanceof Error ? error.message : String(error);
|
|
491
|
+
}
|
|
492
|
+
function networkErrorCodeFromText(text) {
|
|
493
|
+
for (const code of Object.keys(NETWORK_ERROR_REASONS)) {
|
|
494
|
+
if (new RegExp(`\\b${code}\\b`).test(text)) {
|
|
495
|
+
return code;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
return null;
|
|
499
|
+
}
|
|
500
|
+
function networkErrorCode(error, capturedOutput = '') {
|
|
501
|
+
const directCode = typeof error?.code === 'string'
|
|
502
|
+
? error.code
|
|
503
|
+
: null;
|
|
504
|
+
if (directCode && NETWORK_ERROR_REASONS[directCode]) {
|
|
505
|
+
return directCode;
|
|
506
|
+
}
|
|
507
|
+
return networkErrorCodeFromText(`${unknownErrorMessage(error)}\n${capturedOutput}`);
|
|
508
|
+
}
|
|
509
|
+
function isLocalSqlAnalysisConnectionRefused(input) {
|
|
510
|
+
const text = `${input.capturedOutput ?? ''}\n${input.fallback ?? ''}`;
|
|
511
|
+
return /\bECONNREFUSED\b/.test(text) && /\b(?:127\.0\.0\.1|localhost):8765\b/.test(text);
|
|
512
|
+
}
|
|
513
|
+
function friendlyDriverName(driver) {
|
|
514
|
+
const normalized = driver.toLowerCase();
|
|
515
|
+
if (normalized === 'postgres' || normalized === 'postgresql')
|
|
516
|
+
return 'PostgreSQL';
|
|
517
|
+
if (normalized === 'mysql')
|
|
518
|
+
return 'MySQL';
|
|
519
|
+
if (normalized === 'sqlserver')
|
|
520
|
+
return 'SQL Server';
|
|
521
|
+
if (normalized === 'bigquery')
|
|
522
|
+
return 'BigQuery';
|
|
523
|
+
if (normalized === 'snowflake')
|
|
524
|
+
return 'Snowflake';
|
|
525
|
+
if (normalized === 'clickhouse')
|
|
526
|
+
return 'ClickHouse';
|
|
527
|
+
if (normalized === 'sqlite')
|
|
528
|
+
return 'SQLite';
|
|
529
|
+
return driver || 'the source';
|
|
530
|
+
}
|
|
531
|
+
function failedStepDetail(result) {
|
|
532
|
+
return result.steps.find((step) => step.status === 'failed')?.detail ?? null;
|
|
533
|
+
}
|
|
534
|
+
const INTERNAL_FAILURE_LINE_RE = /^(Report|Run|Job|Status|Adapter|Connection|Sync|Mode|Dry run|Diff|Tasks|Work units|Failed tasks|Saved memory|Provenance rows):\s*/;
|
|
535
|
+
const ACTIONABLE_FAILURE_LINE_RE = /^(Missing bundled Python runtime manifest|KTX Python runtime is required|KTX managed daemon|Error:|Failed\b|Could not\b|Cannot\b)/;
|
|
536
|
+
function firstCapturedFailureLine(output) {
|
|
537
|
+
const lines = (output ?? '')
|
|
538
|
+
.split(/\r?\n/)
|
|
539
|
+
.map((candidate) => candidate.trim())
|
|
540
|
+
.filter((candidate) => candidate.length > 0)
|
|
541
|
+
.filter((candidate) => !candidate.startsWith('KTX scan completed'))
|
|
542
|
+
.filter((candidate) => !INTERNAL_FAILURE_LINE_RE.test(candidate));
|
|
543
|
+
return lines.find((candidate) => ACTIONABLE_FAILURE_LINE_RE.test(candidate)) ?? lines.at(-1) ?? null;
|
|
544
|
+
}
|
|
545
|
+
function isGenericFailedAtDetail(target, detail) {
|
|
546
|
+
return new RegExp(`^${target.connectionId} failed at [a-z-]+\\.?(?: Retry: .*)?$`).test(detail ?? '');
|
|
547
|
+
}
|
|
548
|
+
function appendRetryIfNeeded(input) {
|
|
549
|
+
const base = input.message.trim().replace(/\.+$/, '');
|
|
550
|
+
if (/\bRetry:\s/.test(base)) {
|
|
551
|
+
return base;
|
|
552
|
+
}
|
|
553
|
+
return `${base}. Retry: ${retryCommand({
|
|
554
|
+
projectDir: input.projectDir,
|
|
555
|
+
entrypoint: input.entrypoint,
|
|
556
|
+
connectionId: input.target.connectionId,
|
|
557
|
+
depth: input.target.databaseDepth,
|
|
558
|
+
queryHistory: input.target.queryHistory?.enabled === true,
|
|
559
|
+
queryHistoryWindowDays: input.target.queryHistory?.windowDays,
|
|
560
|
+
})}`;
|
|
561
|
+
}
|
|
562
|
+
function failureTextForTarget(input) {
|
|
563
|
+
const code = networkErrorCode(input.error, input.capturedOutput);
|
|
564
|
+
if (code && isLocalSqlAnalysisConnectionRefused({ capturedOutput: input.capturedOutput, fallback: input.fallback })) {
|
|
565
|
+
return [
|
|
566
|
+
`KTX could not reach the local SQL analysis runtime while processing query history for ${input.target.connectionId}.`,
|
|
567
|
+
`Reason: ${NETWORK_ERROR_REASONS[code]} (${code}).`,
|
|
568
|
+
`Retry: ${retryCommand({
|
|
569
|
+
projectDir: input.projectDir,
|
|
570
|
+
entrypoint: input.entrypoint,
|
|
571
|
+
connectionId: input.target.connectionId,
|
|
572
|
+
depth: input.target.databaseDepth,
|
|
573
|
+
queryHistory: input.target.queryHistory?.enabled === true,
|
|
574
|
+
queryHistoryWindowDays: input.target.queryHistory?.windowDays,
|
|
575
|
+
})}`,
|
|
576
|
+
].join(' ');
|
|
577
|
+
}
|
|
578
|
+
if (code) {
|
|
579
|
+
const operation = input.target.operation === 'database-ingest' ? 'reading schema for' : 'ingesting';
|
|
580
|
+
return [
|
|
581
|
+
`KTX lost its connection to ${friendlyDriverName(input.target.driver)} while ${operation} ${input.target.connectionId}.`,
|
|
582
|
+
`Reason: ${NETWORK_ERROR_REASONS[code]} (${code}).`,
|
|
583
|
+
`Retry: ${retryCommand({
|
|
584
|
+
projectDir: input.projectDir,
|
|
585
|
+
entrypoint: input.entrypoint,
|
|
586
|
+
connectionId: input.target.connectionId,
|
|
587
|
+
depth: input.target.databaseDepth,
|
|
588
|
+
queryHistory: input.target.queryHistory?.enabled === true,
|
|
589
|
+
queryHistoryWindowDays: input.target.queryHistory?.windowDays,
|
|
590
|
+
})}`,
|
|
591
|
+
].join(' ');
|
|
592
|
+
}
|
|
593
|
+
const capturedFailure = firstCapturedFailureLine(input.capturedOutput);
|
|
594
|
+
const fallback = capturedFailure && isGenericFailedAtDetail(input.target, input.fallback)
|
|
595
|
+
? capturedFailure
|
|
596
|
+
: (input.fallback ?? capturedFailure ?? `${input.target.connectionId} failed.`);
|
|
597
|
+
if (input.entrypoint === 'ingest') {
|
|
598
|
+
return appendRetryIfNeeded({
|
|
599
|
+
message: fallback,
|
|
600
|
+
target: input.target,
|
|
601
|
+
projectDir: input.projectDir,
|
|
602
|
+
entrypoint: input.entrypoint,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
return fallback;
|
|
606
|
+
}
|
|
607
|
+
export function initViewState(targets) {
|
|
608
|
+
return {
|
|
609
|
+
primarySources: targets.filter((t) => t.operation === 'database-ingest').map(makeTargetState),
|
|
610
|
+
contextSources: targets.filter((t) => t.operation === 'source-ingest').map(makeTargetState),
|
|
611
|
+
frame: 0,
|
|
612
|
+
startedAt: null,
|
|
613
|
+
totalElapsedMs: 0,
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
function publicProgressMessage(message, target) {
|
|
617
|
+
let current = message;
|
|
618
|
+
if (target.operation === 'database-ingest') {
|
|
619
|
+
current = publicDatabaseIngestMessage(current);
|
|
620
|
+
}
|
|
621
|
+
if (target.steps.includes('query-history')) {
|
|
622
|
+
current = publicQueryHistoryMessage(current, target.connectionId);
|
|
623
|
+
}
|
|
624
|
+
return current;
|
|
625
|
+
}
|
|
626
|
+
function formatProgressDetail(update, target) {
|
|
627
|
+
const percent = Math.max(0, Math.min(100, Math.round(update.percent)));
|
|
628
|
+
return `[${percent}%] ${publicProgressMessage(update.message, target)}`;
|
|
629
|
+
}
|
|
630
|
+
function createContextBuildProgressPort(onProgress, state = { progress: 0 }, start = 0, weight = 1) {
|
|
631
|
+
return {
|
|
632
|
+
async update(value, message, options) {
|
|
633
|
+
const absoluteValue = start + Math.max(0, Math.min(1, value)) * weight;
|
|
634
|
+
state.progress = Math.max(state.progress, Math.min(1, absoluteValue));
|
|
635
|
+
if (!message)
|
|
636
|
+
return;
|
|
637
|
+
onProgress({
|
|
638
|
+
percent: Math.max(0, Math.min(100, Math.round(state.progress * 100))),
|
|
639
|
+
message,
|
|
640
|
+
...(options?.transient !== undefined ? { transient: options.transient } : {}),
|
|
641
|
+
});
|
|
642
|
+
},
|
|
643
|
+
startPhase(phaseWeight) {
|
|
644
|
+
return createContextBuildProgressPort(onProgress, state, state.progress, weight * phaseWeight);
|
|
645
|
+
},
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
export async function runContextBuild(project, args, io, deps = {}) {
|
|
649
|
+
const plan = buildPublicIngestPlan(project, {
|
|
650
|
+
projectDir: args.projectDir,
|
|
651
|
+
...(args.targetConnectionId ? { targetConnectionId: args.targetConnectionId } : {}),
|
|
652
|
+
all: args.all ?? true,
|
|
653
|
+
...(args.depth ? { depth: args.depth } : {}),
|
|
654
|
+
...(args.queryHistory ? { queryHistory: args.queryHistory } : {}),
|
|
655
|
+
...(args.queryHistoryWindowDays !== undefined ? { queryHistoryWindowDays: args.queryHistoryWindowDays } : {}),
|
|
656
|
+
...(args.scanMode ? { scanMode: args.scanMode } : {}),
|
|
657
|
+
});
|
|
658
|
+
const state = initViewState(plan.targets);
|
|
659
|
+
const isTTY = io.stdout.isTTY === true;
|
|
660
|
+
const nowFn = deps.now ?? (() => Date.now());
|
|
661
|
+
state.startedAt = nowFn();
|
|
662
|
+
const repainter = isTTY ? createRepainter(io) : null;
|
|
663
|
+
const viewOpts = {
|
|
664
|
+
styled: true,
|
|
665
|
+
projectDir: args.projectDir,
|
|
666
|
+
notices: plan.notices ?? [],
|
|
667
|
+
warnings: plan.warnings,
|
|
668
|
+
};
|
|
669
|
+
const paint = (hint) => repainter?.paint(renderContextBuildView(state, { ...viewOpts, showHint: hint }));
|
|
670
|
+
paint(true);
|
|
671
|
+
let spinnerInterval = null;
|
|
672
|
+
if (repainter) {
|
|
673
|
+
spinnerInterval = setInterval(() => {
|
|
674
|
+
state.frame++;
|
|
675
|
+
if (state.startedAt !== null) {
|
|
676
|
+
state.totalElapsedMs = nowFn() - state.startedAt;
|
|
677
|
+
}
|
|
678
|
+
for (const t of [...state.primarySources, ...state.contextSources]) {
|
|
679
|
+
if (t.status === 'running' && t.startedAt !== null) {
|
|
680
|
+
t.elapsedMs = nowFn() - t.startedAt;
|
|
681
|
+
}
|
|
682
|
+
for (const phase of t.phases) {
|
|
683
|
+
if (phase.status === 'running' && phase.startedAt !== null) {
|
|
684
|
+
phase.elapsedMs = nowFn() - phase.startedAt;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
paint(true);
|
|
689
|
+
}, 140);
|
|
690
|
+
}
|
|
691
|
+
const orderedTargets = [...state.primarySources, ...state.contextSources];
|
|
692
|
+
const execTarget = deps.executeTarget ?? executePublicIngestTarget;
|
|
693
|
+
const reportIds = new Set();
|
|
694
|
+
const artifactPaths = new Set();
|
|
695
|
+
const sourceProgressThrottleMs = deps.sourceProgressThrottleMs ?? 750;
|
|
696
|
+
let lastSourceProgressPublishedAt = Number.NEGATIVE_INFINITY;
|
|
697
|
+
const publishSourceProgress = (force = false) => {
|
|
698
|
+
if (!deps.onSourceProgress)
|
|
699
|
+
return false;
|
|
700
|
+
const now = nowFn();
|
|
701
|
+
if (!force && now - lastSourceProgressPublishedAt < sourceProgressThrottleMs) {
|
|
702
|
+
return false;
|
|
703
|
+
}
|
|
704
|
+
lastSourceProgressPublishedAt = now;
|
|
705
|
+
deps.onSourceProgress(collectSourceProgress(orderedTargets));
|
|
706
|
+
return true;
|
|
707
|
+
};
|
|
708
|
+
const runArgs = {
|
|
709
|
+
command: 'run',
|
|
710
|
+
projectDir: args.projectDir,
|
|
711
|
+
...(args.targetConnectionId ? { targetConnectionId: args.targetConnectionId } : {}),
|
|
712
|
+
all: args.all ?? true,
|
|
713
|
+
json: false,
|
|
714
|
+
inputMode: args.inputMode,
|
|
715
|
+
...(args.depth ? { depth: args.depth } : {}),
|
|
716
|
+
...(args.queryHistory ? { queryHistory: args.queryHistory } : {}),
|
|
717
|
+
...(args.queryHistoryWindowDays !== undefined ? { queryHistoryWindowDays: args.queryHistoryWindowDays } : {}),
|
|
718
|
+
...(args.scanMode ? { scanMode: args.scanMode } : {}),
|
|
719
|
+
...(args.detectRelationships !== undefined ? { detectRelationships: args.detectRelationships } : {}),
|
|
720
|
+
...(args.cliVersion ? { cliVersion: args.cliVersion } : {}),
|
|
721
|
+
...(args.runtimeInstallPolicy ? { runtimeInstallPolicy: args.runtimeInstallPolicy } : {}),
|
|
722
|
+
};
|
|
723
|
+
let hasFailure = false;
|
|
724
|
+
try {
|
|
725
|
+
for (const targetState of orderedTargets) {
|
|
726
|
+
targetState.status = 'running';
|
|
727
|
+
targetState.startedAt = nowFn();
|
|
728
|
+
paint(true);
|
|
729
|
+
publishSourceProgress(true);
|
|
730
|
+
let hasPendingProgressPublish = false;
|
|
731
|
+
const ingestPhaseKeyForTarget = targetState.target.operation === 'database-ingest' ? 'query-history' : 'source-ingest';
|
|
732
|
+
const updateNamedPhase = (key, update) => {
|
|
733
|
+
const phase = targetState.phases.find((p) => p.key === key);
|
|
734
|
+
if (phase) {
|
|
735
|
+
if (phase.status === 'queued') {
|
|
736
|
+
phase.status = 'running';
|
|
737
|
+
phase.startedAt = nowFn();
|
|
738
|
+
}
|
|
739
|
+
const sanitizedMessage = update.message.replace(/^\[\d+%\]\s*/, '');
|
|
740
|
+
phase.detail = publicProgressMessage(sanitizedMessage, targetState.target);
|
|
741
|
+
phase.percent = Math.max(phase.percent, Math.max(0, Math.min(100, Math.round(update.percent))));
|
|
742
|
+
phase.progressUpdatedAtMs = nowFn();
|
|
743
|
+
}
|
|
744
|
+
targetState.detailLine = formatProgressDetail(update, targetState.target);
|
|
745
|
+
targetState.progressUpdatedAtMs = nowFn();
|
|
746
|
+
if (!repainter) {
|
|
747
|
+
io.stdout.write(`${targetState.detailLine}\n`);
|
|
748
|
+
}
|
|
749
|
+
paint(true);
|
|
750
|
+
hasPendingProgressPublish = !publishSourceProgress(false);
|
|
751
|
+
};
|
|
752
|
+
const updateSchemaPhase = (update) => updateNamedPhase('database-schema', update);
|
|
753
|
+
const updateIngestPhase = (update) => updateNamedPhase(ingestPhaseKeyForTarget, update);
|
|
754
|
+
const capture = createCaptureIo((message) => {
|
|
755
|
+
targetState.detailLine = publicProgressMessage(message, targetState.target);
|
|
756
|
+
targetState.progressUpdatedAtMs = nowFn();
|
|
757
|
+
if (!repainter) {
|
|
758
|
+
io.stdout.write(`${targetState.detailLine}\n`);
|
|
759
|
+
}
|
|
760
|
+
paint(true);
|
|
761
|
+
hasPendingProgressPublish = !publishSourceProgress(false);
|
|
762
|
+
}, false);
|
|
763
|
+
const onPhaseStart = (key) => {
|
|
764
|
+
const phase = targetState.phases.find((p) => p.key === key);
|
|
765
|
+
if (!phase)
|
|
766
|
+
return;
|
|
767
|
+
phase.status = 'running';
|
|
768
|
+
if (phase.startedAt === null)
|
|
769
|
+
phase.startedAt = nowFn();
|
|
770
|
+
phase.progressUpdatedAtMs = nowFn();
|
|
771
|
+
paint(true);
|
|
772
|
+
hasPendingProgressPublish = !publishSourceProgress(false);
|
|
773
|
+
};
|
|
774
|
+
const onPhaseEnd = (key, status, summary) => {
|
|
775
|
+
const phase = targetState.phases.find((p) => p.key === key);
|
|
776
|
+
if (!phase)
|
|
777
|
+
return;
|
|
778
|
+
phase.status = status;
|
|
779
|
+
if (phase.startedAt !== null) {
|
|
780
|
+
phase.elapsedMs = nowFn() - phase.startedAt;
|
|
781
|
+
}
|
|
782
|
+
if (status === 'done') {
|
|
783
|
+
phase.percent = 100;
|
|
784
|
+
}
|
|
785
|
+
let resolvedSummary = summary;
|
|
786
|
+
if (status === 'done' && !resolvedSummary) {
|
|
787
|
+
const captured = capture.captured();
|
|
788
|
+
if (key === 'database-schema') {
|
|
789
|
+
resolvedSummary = parseScanSummary(captured) ?? undefined;
|
|
790
|
+
}
|
|
791
|
+
else if (key === 'query-history' || key === 'source-ingest') {
|
|
792
|
+
resolvedSummary = parseIngestSummary(captured) ?? undefined;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
if (resolvedSummary) {
|
|
796
|
+
phase.summary = resolvedSummary;
|
|
797
|
+
}
|
|
798
|
+
paint(true);
|
|
799
|
+
hasPendingProgressPublish = !publishSourceProgress(false);
|
|
800
|
+
};
|
|
801
|
+
const progressDeps = {
|
|
802
|
+
scanProgress: createContextBuildProgressPort(updateSchemaPhase),
|
|
803
|
+
ingestProgress: updateIngestPhase,
|
|
804
|
+
onPhaseStart,
|
|
805
|
+
onPhaseEnd,
|
|
806
|
+
};
|
|
807
|
+
let result = null;
|
|
808
|
+
let thrownError = null;
|
|
809
|
+
try {
|
|
810
|
+
result = await execTarget(targetState.target, runArgs, capture.io, progressDeps);
|
|
811
|
+
}
|
|
812
|
+
catch (error) {
|
|
813
|
+
thrownError = error;
|
|
814
|
+
}
|
|
815
|
+
if (hasPendingProgressPublish) {
|
|
816
|
+
publishSourceProgress(true);
|
|
817
|
+
}
|
|
818
|
+
targetState.elapsedMs = nowFn() - (targetState.startedAt ?? nowFn());
|
|
819
|
+
const failed = thrownError !== null || result?.steps.some((s) => s.status === 'failed') === true;
|
|
820
|
+
targetState.status = failed ? 'failed' : 'done';
|
|
821
|
+
targetState.detailLine = null;
|
|
822
|
+
const capturedOutput = capture.captured();
|
|
823
|
+
const metadata = collectOutputMetadata(capturedOutput, targetState.target.operation);
|
|
824
|
+
for (const reportId of metadata.reportIds)
|
|
825
|
+
reportIds.add(reportId);
|
|
826
|
+
for (const artifactPath of metadata.artifactPaths)
|
|
827
|
+
artifactPaths.add(artifactPath);
|
|
828
|
+
if (!failed) {
|
|
829
|
+
targetState.summaryText =
|
|
830
|
+
targetState.target.operation === 'database-ingest'
|
|
831
|
+
? parseScanSummary(capturedOutput)
|
|
832
|
+
: parseIngestSummary(capturedOutput);
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
targetState.failureText = failureTextForTarget({
|
|
836
|
+
target: targetState.target,
|
|
837
|
+
projectDir: args.projectDir,
|
|
838
|
+
entrypoint: args.entrypoint,
|
|
839
|
+
capturedOutput,
|
|
840
|
+
error: thrownError,
|
|
841
|
+
fallback: result ? failedStepDetail(result) : null,
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
if (failed)
|
|
845
|
+
hasFailure = true;
|
|
846
|
+
paint(true);
|
|
847
|
+
publishSourceProgress(true);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
finally {
|
|
851
|
+
if (spinnerInterval)
|
|
852
|
+
clearInterval(spinnerInterval);
|
|
853
|
+
}
|
|
854
|
+
if (state.startedAt !== null) {
|
|
855
|
+
state.totalElapsedMs = nowFn() - state.startedAt;
|
|
856
|
+
}
|
|
857
|
+
if (!repainter) {
|
|
858
|
+
io.stdout.write(renderContextBuildView(state, { ...viewOpts, styled: false }));
|
|
859
|
+
}
|
|
860
|
+
else {
|
|
861
|
+
paint(false);
|
|
862
|
+
}
|
|
863
|
+
return {
|
|
864
|
+
exitCode: hasFailure ? 1 : 0,
|
|
865
|
+
...(reportIds.size > 0 ? { reportIds: [...reportIds] } : {}),
|
|
866
|
+
...(artifactPaths.size > 0 ? { artifactPaths: [...artifactPaths] } : {}),
|
|
867
|
+
};
|
|
868
|
+
}
|