Skip to content

v0.1.26

Choose a tag to compare

@reggie-db reggie-db released this 08 Jun 22:49
· 16 commits to main since this release

v0.1.26

Features

  • Statement Execution helpers (appkit-mastra/src/statement.ts): new module exposing fetchStatementData, STATEMENT_ROW_CAP, and isStatementNotFoundError for fetching, capping, and error-handling Databricks statement results across the plugin's tools and routes.
  • URL helpers (appkit-mastra-shared/src/mastra.ts): new chatUrl, historyUrl, chartUrl, and statementUrl builders for the Mastra plugin's client config surface.
  • Mastra client hook (demo/client/src/lib/mastra-client.ts): new shared React module (useMastraConfig, useMastraClient) replacing the removed genie-history.ts with a unified Mastra-native client layer.
  • @dbx-tools/shared string/common expansions: significant additions to stringUtils (tokenize, identifier, key helpers) and commonUtils (FNV hash variants), with new test coverage.

Fixes

  • Fix placeholder handling in Genie protocol responses.

Internals

  • Rename project to dbx-tools-js across package.json, databricks.yml, READMEs, and cursor rules.
  • Genie module refactor (appkit-mastra/src/genie.ts): large-scale restructure (~1300 lines changed) consolidating Genie tool logic and conversation management.
  • Chart pipeline refactor (appkit-mastra/src/chart.ts): ~820 lines reworked for clearer separation of chart planning, rendering, and writer-event emission.
  • Plugin mount (appkit-mastra/src/plugin.ts): expanded route registration and config surface.
  • Demo chat-view rewrite (demo/client/src/components/chat-view.tsx): ~800 lines reworked to consume the new Mastra client hooks and statement/chart URL helpers.
  • Remove demo/client/src/lib/genie-history.ts (replaced by mastra-client.ts).
  • genie-shared/src/protocol.ts: wire-format type updates (+71 lines).
  • appkit-mastra-shared/src/protocol.ts: expanded MastraClientConfig schema with statementsPathTemplate and chartsPathTemplate.
  • scripts/codegen.ts: codegen adjustments (~65 lines).
  • README updates across shared, appkit-mastra, and appkit-mastra-shared.
  • Expanded test suites for shared/common, shared/string, and genie/chat.