mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
Setup wizard flow tweaks: - Add a reveal-tail password prompt (reveal-password-prompt.ts) that unmasks the last few characters of a typed/pasted secret, and wire it into the setup prompt adapter in place of clack's password(); adds the @clack/core dep. - Reorder wizard select options: surface "Paste a key" before the environment-variable option across embeddings/models/sources, promote Metabase/Notion in the source list, put Git URL before Local path, reorder the Notion crawl-mode choices, and relabel the sources "Done" action. Query-history filter picker output: - Collapse the per-template parse-failure lines into a single count in the setup output and route the full template-id list to --debug stderr. - Model parse failures as a structured parseFailedTemplateIds field instead of warning strings. - Add a privacy-safe query_history_filter_completed telemetry event (counts/enums only), mirrored into the Python daemon schema.
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
from __future__ import annotations
|
|
|
|
import json
|
|
from pathlib import Path
|
|
|
|
|
|
def test_python_schema_copy_matches_node_schema() -> None:
|
|
repo_root = Path(__file__).resolve().parents[3]
|
|
node_schema = json.loads(
|
|
(repo_root / "packages/cli/src/telemetry/events.schema.json").read_text(
|
|
encoding="utf-8"
|
|
)
|
|
)
|
|
python_schema = json.loads(
|
|
(
|
|
repo_root / "python/ktx-daemon/src/ktx_daemon/telemetry/events.schema.json"
|
|
).read_text(encoding="utf-8")
|
|
)
|
|
|
|
assert python_schema == node_schema
|
|
assert [event["name"] for event in python_schema["x-ktx-catalog"]] == [
|
|
"install_first_run",
|
|
"command",
|
|
"setup_step",
|
|
"connection_added",
|
|
"connection_test",
|
|
"project_stack_snapshot",
|
|
"ingest_completed",
|
|
"scan_completed",
|
|
"sl_validate_completed",
|
|
"sl_query_completed",
|
|
"sql_completed",
|
|
"wiki_query_completed",
|
|
"mcp_request_completed",
|
|
"daemon_started",
|
|
"daemon_stopped",
|
|
"sl_plan_completed",
|
|
"sql_gen_completed",
|
|
"query_history_filter_completed",
|
|
]
|