- d99be7650: fix: MCP
event_patterns,emerging_signalsand search denoise, and the CLI, no longer split the same log line by its date. Before mining, the Drain miner masks the date of a timestamp (weekday, day, month, year) to<DATE>, so dated lines from different days, months or years get the same template instead of one "new" and one "gone". Times and ids are not masked. Within one day lines group as before, except that klog lines with different severity letters are no longer merged. No mask changes a line's token count: theevent_patternsdrill-down predicate matches<DATE>as one or more non-whitespace characters, also inside a token (the newmasksoption of the pattern predicate builders, which only the MCP drill-down sets), and search denoise masks bodies the same way before matching. Masking instructions get an optionalperWordflag (default off, as in drain3). The web app's Event patterns view uses its own drain3 config and is unchanged.
-
a25e945e7: feat(cli):
hdx mcp installcan keep several ClickStack servers side by side--name <server-name>adds the MCP server under a name you choose, so a second ClickStack instance no longer overwrites the first. When the key belongs to more than one team, the installer asks which teams to add a server for and adds one entry per team. When it finds more than one agent it asks which to set up.
-
7935c64bc: feat: add
hdx mcp installto connect AI agents without pasting a keynpx @hyperdx/cli mcp installasks for a personal access key or an organization API key with hidden input, checks it, and adds the ClickStack MCP server to Claude Code, Codex, Cursor, and VS Code. Team Settings now leads with this command, so the key no longer has to go into a copied command or an agent chat. The per-agent snippets remain for setting up one agent by hand.
- d7df729e6: chore: GitHub links (changelog, support, package metadata) now point at
ClickHouse/ClickStack, anddocker-compose.ymlpulls the app image asclickhouse/clickstack - e2754d203: fix: use SHA256 instead of MD5 for JSON row lookup WHERE clauses so row details and drill-down work on FIPS-enabled ClickHouse deployments
-
0b1e0784: Add dashboard and saved-search authoring commands to the CLI:
hdx dashboards list(default subcommand) gains--queryname filtering and--format table|json|csvhdx dashboards export --id <id-or-name>prints a dashboard definition as JSON, round-trip compatible with importhdx dashboards createaccepts either a full definition (--file <json>) or inline charts (--name+ repeatable--chart/--chart-file, with automatic grid layout), plus--if-not-existshdx dashboards import --file <json>recreates an exported dashboard, with--if-not-existsand--name-overridehdx saved-searchescommand group:listandcreate(--name/--source/--where/--where-language/--select/--order-by/--tags)
Definitions are validated locally against the shared schema before being sent, and missing tile ids are generated automatically. Also fixes
getSavedSearches()to call the correct/saved-searchAPI path (the previous/saved-searchespath always returned 404).
- 5253b861: fix: Stop abbreviating values between 500 and 999 as "0.5k"/"0.8k" on chart axes and in large number format
- 68082b67: feat: add stacked line (stacked area) time-series display type
-
416c92a0: fix: stop discarding chart axis-tick decimals for large numbers
Axis ticks at or above 1k were always rounded to a whole number regardless of the configured Number Format, so nearby values (e.g. 950 and 1080) could both render as
1k— ticks now use as much precision as the axis's width allows, on both the web app and CLI terminal charts. Also fixed: a tightly fit Y-axis could show two ticks with the identical rounded label. -
c42dda80: fix: use compact duration labels on terminal chart axis ticks
axisTickFormatteris a documented port of the web'sformatAxisTick(fixed in #3148) and is expected to stay behaviorally in sync with it, but it fell through to the wideformatDurationMsinstead of the compact formatter for duration-formatted charts.hdx chartnow renders the same short labels (e.g. "13m" instead of "13.33min") as the web app.
-
53336f78: fix(charts): show decimals on Y-axis ticks under 10 in magnitude
The Y-axis of a time series chart (and the CLI's termchart equivalent) always rounded tick labels to 0 decimal places, regardless of the chart's Number Format settings. Charts whose values live under 1 (fractional gauges, ratios, sub-1 rates) rendered every axis tick as
0even though the tooltip and legend showed the correct value.A tick under 10 in magnitude (as displayed - a percent tick's magnitude is checked against its ×100 value, not its raw 0-1 ratio) now honors the chart's configured decimals, capped at 2 to keep the label within the axis's fixed width. A tick of 10 or more, and a tick of exactly 0, stay integers exactly as before, whatever the chart's Number Format configures
- so ordinary counts and the byte/percent tiles in the bundled dashboard templates are unaffected.
- dc29d57f: Chart formulas are now supported across every API surface that persists or accepts chart configs. The external dashboards API v2 and the MCP
save_dashboard/patch_dashboardtools acceptformulas(letter-ref arithmetic over the tile's select items, e.g.A / (A + B) * 100) andshowOperandSerieson line, stacked bar, table and number builder tiles, round-trip them through GET/PUT, and validate the expressions on write — unknown series refs, malformed syntax, combining formulas withasRatio, multiple formulas on a number tile, and formulas on formula-incapable source kinds (anything other than metric, log, or trace) are all rejected with actionable errors. MCPquery_tilecomputes formula columns for both metric and log/trace event tiles, the query-guide prompt documents the feature, and the OpenAPI spec includes the newFormulaschema. The CLI's dashboard tile pipeline now delegates its number/table config transforms to the shared common-utils implementations, so formula tiles render with operand-hiding behavior identical to the web.
- 9581e164: Rewrite the README with the full feature set and command reference (TUI, chart,
query, sources/connections/dashboards, auth, team, upload-sourcemaps) ahead of
launch, so npm and GitHub show everything the CLI can do. Also remove a stale
reference to the removed
hdx streamcommand fromhdx chart --help. - 018a6486: Clean up ESLint warnings and tighten lint enforcement. Resolved all
no-unused-varsand@typescript-eslint/ban-ts-commentwarnings (removing dead code and converting@ts-ignoreto described@ts-expect-error), then promoted those rules toerrorin the api/app/common-utils/cli/hdx-eval configs, disabled the noisy@typescript-eslint/no-empty-functionrule in app, and lowered each package's--max-warningsceiling so the counts can't regress. Behavior is unchanged.
-
386c365d: Add terminal charting to the CLI, built on the same renderChartConfig SQL pipeline as the web dashboards:
- Interactive Dashboards page in the TUI (
dkey) with tile navigation, fullscreen tiles, time-range editing, and refresh hdx chartcommand for troubleshooting from the terminal (including by AI agents): render saved dashboard tiles (-d/-t), ad-hoc builder charts (-s <source>with--agg/--value/--where/--group-by/--series), or ad-hoc raw SQL (--sqlwith$__timeFilter/$__timeIntervalmacros)- Supported chart types: line, stacked bar, number, table, bar, pie, and
markdown; flexible time ranges (
--since 1h,--from now-24h, ISO dates);--jsonoutput for structured consumption; ANSI colors auto-stripped when piping (--color auto|always|never)
- Interactive Dashboards page in the TUI (
- 1705b37a: fix: Block webhook URLs targeting known-bad IP ranges
- bb7ae21e8: Upgrade the TypeScript devDependency from 5.9 to 6.0 across all packages.
-
5c46215f8: Bump
@clickhouse/client*to1.23.0-head.fae5998.1and fix the type incompatibility it introduces.In
@clickhouse/client*1.23 each platform package (@clickhouse/client,@clickhouse/client-web) bundles its own copy of the shared types, so theirClickHouseSettingstypes — which reference the nominally-comparedSettingsMapclass — are no longer the same type as@clickhouse/client-common's. The sharedprocessClickhouseSettings()helper produces theclient-commonflavor, so assigning it into the per-platform clients'query()now requires an explicit bridge. Guard the existingas ClickHouseSettingsassertions at those boundaries (node.ts,browser.ts,cli) with a scoped@typescript-eslint/no-unsafe-type-assertiondisable, matching the existing "client library type mismatch" pattern. No runtime behavior changes. -
45954c318: Import ClickHouse client types from the platform packages (
@clickhouse/client/@clickhouse/client-web) instead of the deprecated@clickhouse/client-common. This makes the packages forward-compatible with@clickhouse/client*1.23 (whereclient-commonis deprecated and each platform package bundles and re-exports its own copy of the shared types) without bumping the pinned version. No runtime behavior changes. -
1a64796c1: Removing relative imports and using path aliases
- 3123db53: feat: experimental promql support
-
b20275c9: fix(cli): exit with non-zero code when
upload-sourcemapsfailsThe
upload-sourcemapscommand now exits with code 1 when uploads fail (missing source maps, pre-signed URL request failure, authentication failure, or any per-file upload failure after retries). Previously these failures were logged to stderr but the process exited cleanly with code 0, causing CI pipelines to treat failed uploads as successes. -
19cd7c91: fix: only use pk and row uniqueness to look up a row
-
8810ff0f: feat: Add option for force-enabling/disabling text index support
-
f6a1d021: Add support for event patterns in MCP server, reduce code duplication
-
253cf5b7: Fix CLI version flag reporting hardcoded 0.1.0 instead of the actual package version
-
41043645: feat: support multiple teams and kubectx-style team switching in the CLI
Adds three new commands for users that belong to multiple teams (HyperDX Cloud / EE):
hdx team list— list every team the authenticated user belongs to, marking the active onehdx team current— print the currently active teamhdx team use <name-or-id>— switch the active team (matched by team ID or case-insensitive name)
The active team is persisted to
~/.config/hyperdx/cli/session.jsonso the choice survives across CLI invocations, and the CLI now sends anx-hdx-teamheader on every API and ClickHouse-proxy request so the server scopes data to the chosen team.hdx auth statusalso surfaces the active team.On single-team OSS deployments these commands are effectively no-ops.
-
3571bfaf: Add
hdx queryandhdx connectionscommands for agentic ClickHouse workflows:hdx connections— list ClickHouse connections (id,name,host) for the authenticated team. Supports--jsonfor programmatic consumption.hdx query --connection-id <id> --sql <query>— run raw SQL against a configured ClickHouse connection via the/clickhouse-proxy. Default--formatisJSONEachRow(NDJSON); any ClickHouse format is accepted. Exit codes:0on success (empty stdout = zero rows),1on failure. On error, a lazy connection lookup distinguishes "unknown connection ID" from "bad SQL".hdx query --patterns— post-process the result with the Drain algorithm (@hyperdx/common-utils/dist/drain) and emit one NDJSON pattern object per cluster, sorted by count desc:{"pattern":"<template>","count":<n>,"sample":"<first sample>"}. Use--body-column <name>to cluster a single column's string value; defaults to the whole row JSON-serialized so any SELECT shape works.--helpdocuments the exit-code contract and includes sampling guidance (ORDER BY rand()+ selective WHERE warning) for mining over large tables.
-
4dea3621: Breaking: Replace
-s/--serverflag with-a/--app-urlacross all CLI commands (exceptupload-sourcemaps). Users should now provide the HyperDX app URL instead of the API URL — the CLI derives the API URL by appending/api.hdx auth loginnow prompts interactively for login method, app URL, and credentials (no flags required)- Expired/missing sessions prompt for re-login with the last URL autofilled instead of printing an error
- Add URL input validation and post-login session verification
- Existing saved sessions are auto-migrated from
apiUrltoappUrl
- 7a9882d4: Add alerts page (Shift+A) with overview and recent trigger history
- 418f70c5: Add event pattern mining view (Shift+P) with sampled estimation and drill-down
- 7953c028: feat: Add between-type alert thresholds
- fe3ab41c: Add
okeybinding to open the current trace/span in the HyperDX web app from the TUI. Deep-links to the exact view with side panel, tab, and span selection preserved. Works for both trace and log sources. - 07bb29e9: Optimize event detail and trace waterfall queries; add trace detail page and waterfall scrolling
- d3a61f9b: feat: Add additional alert threshold types
-
bdca9bd4: Improve error message rendering with visible highlighting and add SQL preview
- Add ErrorDisplay component with bordered boxes, color-coded severity, and responsive terminal height adaptation
- Preserve ClickHouseQueryError objects through the error chain to show sent query context
- Surface previously silent errors: pagination failures, row detail fetch errors, trace span detail errors
- Add Shift-D keybinding to view generated ClickHouse SQL (context-aware across all tabs)
- Copy useSqlSuggestions from app package to detect common query mistakes
- Disable follow mode toggle in event detail panel
- d995b78c: Add @hyperdx/cli package — terminal CLI for searching, tailing, and inspecting logs and traces from HyperDX with interactive TUI, trace waterfall, raw SQL queries, dashboard listing, and sourcemap uploads.