sql-preview 0.6.7 → 0.6.8

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/Changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [Unreleased]
4
+
5
+ ## [0.6.8] - 2026-07-12
6
+
7
+ ### Added
8
+
9
+ - Comprehensive query telemetry (RFC-068): query events now carry a closed-enum `connector` dimension; a layered, connector-aware error classifier replaces the old substring matching (previously ~95% of failures were `unknown`); MCP tool calls and agent/web-originated queries are now telemetered daemon-side (fail-closed, consent inherited from the extension or explicit `SQL_PREVIEW_TELEMETRY=1` standalone opt-in); a new `mcp_tool_invoked` event measures agent usage. Telemetry schema `2.1` (additive).
10
+ - Internal/dev traffic isolation: telemetry is suppressed in Extension Development/Test hosts (override with `SQL_PREVIEW_POSTHOG_TOKEN` for debug projects), a new `sqlPreview.telemetry.internal` setting (or `SQL_PREVIEW_TELEMETRY_INTERNAL=1`) stamps every event with `internal_user`, and `SQL Preview: Show Telemetry Status` now displays the anonymous install ID for PostHog exclusion filters.
11
+
12
+ ### Changed
13
+
14
+ - Query error payloads now include an advisory machine-readable `errorKind` alongside the existing message/details (no SQL text or message content is ever sent to telemetry; only the classified enum).
15
+ - Fully implemented MCP Streamable HTTP Spec compliance (RFC-072). The `/mcp` HTTP endpoint now strictly follows the `@modelcontextprotocol/sdk` (pinned to 1.27.1) stateful session specifications, properly supporting Claude Code HTTP transports and standard MCP external clients.
16
+
3
17
  ## [0.6.7] - 2026-07-08
4
18
 
5
19
  ### Changed
package/dist/mcp-app.html CHANGED
@@ -12574,6 +12574,8 @@ const useAppStore = create((set, get) => ({
12574
12574
  mcpEnabled: false,
12575
12575
  mcpSafeMode: true,
12576
12576
  mcpPort: null,
12577
+ daemonVersion: null,
12578
+ daemonPid: null,
12577
12579
  currentVersion: null,
12578
12580
  latestVersion: null,
12579
12581
  settingsPanelTab: null,
@@ -12620,7 +12622,7 @@ const useAppStore = create((set, get) => ({
12620
12622
  showGuideHub: (state) => set({ guideHub: state, settingsPanelTab: null }),
12621
12623
  closeGuideHub: () => set({ guideHub: null }),
12622
12624
  applyConfig: (c) => set((state) => {
12623
- var _a3;
12625
+ var _a3, _b2, _c3;
12624
12626
  const newState = { ...state };
12625
12627
  if (c.fontSize !== void 0) {
12626
12628
  newState.fontSize = c.fontSize != null && c.fontSize > 0 ? c.fontSize : null;
@@ -12637,8 +12639,10 @@ const useAppStore = create((set, get) => ({
12637
12639
  if (c.mcpSafeMode !== void 0) {
12638
12640
  newState.mcpSafeMode = c.mcpSafeMode;
12639
12641
  }
12640
- if (((_a3 = c.mcpStatus) == null ? void 0 : _a3.port) !== void 0) {
12641
- newState.mcpPort = c.mcpStatus.port;
12642
+ if (c.mcpStatus !== void 0) {
12643
+ newState.mcpPort = ((_a3 = c.mcpStatus) == null ? void 0 : _a3.port) ?? null;
12644
+ newState.daemonVersion = ((_b2 = c.mcpStatus) == null ? void 0 : _b2.version) ?? null;
12645
+ newState.daemonPid = ((_c3 = c.mcpStatus) == null ? void 0 : _c3.pid) ?? null;
12642
12646
  }
12643
12647
  return newState;
12644
12648
  }),
@@ -12678,7 +12682,9 @@ const useAppStore = create((set, get) => ({
12678
12682
  setActiveTab: (id) => set({ activeTabId: id }),
12679
12683
  updateTab: (id, updates) => set((state) => ({
12680
12684
  tabs: state.tabs.map((tab) => {
12681
- if (tab.id !== id) return tab;
12685
+ if (tab.id !== id) {
12686
+ return tab;
12687
+ }
12682
12688
  const next = { ...tab, ...updates };
12683
12689
  if (updates.isLoading === true && !tab.isLoading) {
12684
12690
  next.loadingStartedAt = Date.now();