@dbx-tools/appkit-mastra 0.3.14 → 0.3.16

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/package.json CHANGED
@@ -27,22 +27,22 @@
27
27
  "@opentelemetry/api": "^1.9.1",
28
28
  "pg": "^8.22.0",
29
29
  "zod": "^4.3.6",
30
- "@dbx-tools/appkit": "0.3.14",
31
- "@dbx-tools/databricks": "0.3.14",
32
- "@dbx-tools/genie": "0.3.14",
33
- "@dbx-tools/core": "0.3.14",
34
- "@dbx-tools/model": "0.3.14",
35
- "@dbx-tools/shared-core": "0.3.14",
36
- "@dbx-tools/shared-model": "0.3.14",
37
- "@dbx-tools/shared-mastra": "0.3.14",
38
- "@dbx-tools/shared-genie": "0.3.14"
30
+ "@dbx-tools/appkit": "0.3.16",
31
+ "@dbx-tools/core": "0.3.16",
32
+ "@dbx-tools/genie": "0.3.16",
33
+ "@dbx-tools/shared-core": "0.3.16",
34
+ "@dbx-tools/model": "0.3.16",
35
+ "@dbx-tools/shared-mastra": "0.3.16",
36
+ "@dbx-tools/shared-model": "0.3.16",
37
+ "@dbx-tools/shared-genie": "0.3.16",
38
+ "@dbx-tools/databricks": "0.3.16"
39
39
  },
40
40
  "main": "index.ts",
41
41
  "license": "UNLICENSED",
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "version": "0.3.14",
45
+ "version": "0.3.16",
46
46
  "types": "index.ts",
47
47
  "type": "module",
48
48
  "exports": {
package/src/agents.ts CHANGED
@@ -11,6 +11,8 @@
11
11
  * When no agents are registered the plugin falls back to a single
12
12
  * built-in analyst so the bare `mastra()` call still mounts a working
13
13
  * streamable agent for demos.
14
+ *
15
+ * @module
14
16
  */
15
17
 
16
18
  import type { AgentConfig, ToolsInput } from "@mastra/core/agent";
package/src/chart.ts CHANGED
@@ -23,6 +23,8 @@
23
23
  * Wire-format schemas live in `@dbx-tools/shared-mastra` so
24
24
  * the demo client and any other UI consumer share the exact same
25
25
  * shape this module reads and writes.
26
+ *
27
+ * @module
26
28
  */
27
29
 
28
30
  import { CacheManager } from "@databricks/appkit";
package/src/config.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  *
4
4
  * Kept in a leaf module so `plugin.ts`, `server.ts`, `model.ts`, and
5
5
  * `memory.ts` can import them without creating a cycle.
6
+ *
7
+ * @module
6
8
  */
7
9
 
8
10
  import type { BasePluginConfig } from "@databricks/appkit";
@@ -9,6 +9,8 @@
9
9
  * Path helpers ({@link normalizeDatabricksBasePath}, {@link isDbfsPath}, …)
10
10
  * are exported for tests and callers that need to reason about Databricks
11
11
  * paths without constructing a filesystem.
12
+ *
13
+ * @module
12
14
  */
13
15
 
14
16
  import { getExecutionContext } from "@databricks/appkit";
package/src/genie.ts CHANGED
@@ -32,6 +32,8 @@
32
32
  * {@link GENIE_INSTRUCTIONS}; compose it into the agent's own
33
33
  * `instructions` when you want the canonical "how to drive the
34
34
  * Genie tools" guidance.
35
+ *
36
+ * @module
35
37
  */
36
38
 
37
39
  import { CacheManager, genie } from "@databricks/appkit";
package/src/history.ts CHANGED
@@ -14,6 +14,8 @@
14
14
  * `MASTRA_THREAD_ID_KEY` and `MASTRA_RESOURCE_ID_KEY` by the time
15
15
  * the handler runs - no cookie or user lookups happen here, and the
16
16
  * session-cookie logic stays the single source of truth in `server.ts`.
17
+ *
18
+ * @module
17
19
  */
18
20
 
19
21
  import type {
package/src/mcp.ts CHANGED
@@ -8,6 +8,8 @@
8
8
  * `Mastra` instance via `mcpServers`, which makes `@mastra/express`
9
9
  * serve the stock MCP routes under the plugin's base path; the plugin
10
10
  * never registers a bespoke MCP route of its own.
11
+ *
12
+ * @module
11
13
  */
12
14
 
13
15
  import type { Agent } from "@mastra/core/agent";
package/src/memory.ts CHANGED
@@ -25,6 +25,8 @@
25
25
  * Plugin-level `config.storage` / `config.memory` act as the baseline
26
26
  * (auto-defaulted to `true` in `plugin.ts` when the `lakebase` plugin
27
27
  * is registered); per-agent settings cascade on top of that.
28
+ *
29
+ * @module
28
30
  */
29
31
 
30
32
  import { getUsernameWithApiLookup } from "@databricks/appkit";
package/src/mlflow.ts CHANGED
@@ -15,6 +15,8 @@
15
15
  * asynchronous, so the just-finished trace may not exist in MLflow yet
16
16
  * when the user reacts; the log call retries briefly on "not found"
17
17
  * before giving up softly.
18
+ *
19
+ * @module
18
20
  */
19
21
 
20
22
  import { feedback } from "@dbx-tools/shared-mastra";
package/src/model.ts CHANGED
@@ -19,6 +19,8 @@
19
19
  * the resolved id in the OpenAI-compatible provider config Mastra
20
20
  * expects. Catalogue fetches fail loud: network / auth errors
21
21
  * propagate so callers see the real SDK message.
22
+ *
23
+ * @module
22
24
  */
23
25
 
24
26
  import { getExecutionContext } from "@databricks/appkit";
@@ -29,6 +29,8 @@
29
29
  * When `OTEL_EXPORTER_OTLP_ENDPOINT` is unset the bridge is not
30
30
  * registered at all (unless `observability: true` forces it on), so
31
31
  * Mastra does not emit `[OtelBridge] No OTEL span found` warnings.
32
+ *
33
+ * @module
32
34
  */
33
35
 
34
36
  import { Observability } from "@mastra/observability";
package/src/pagination.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  * (`history` / `threads`). Each route keeps its own page-size default
4
4
  * and hard cap and passes them in, so the coercion rules stay in one
5
5
  * place without collapsing the routes' distinct sizing.
6
+ *
7
+ * @module
6
8
  */
7
9
 
8
10
  /** Bounds for {@link clampPerPage}. */
package/src/plugin.ts CHANGED
@@ -37,6 +37,8 @@
37
37
  * instance via `mcpServers`, so `@mastra/express` serves the stock
38
38
  * MCP transport routes (`/mcp/<serverId>/...`) under the mount. See
39
39
  * `./mcp.js`.
40
+ *
41
+ * @module
40
42
  */
41
43
 
42
44
  import {
package/src/processors.ts CHANGED
@@ -10,6 +10,8 @@
10
10
  * - An **output** processor ({@link ResultProcessor}) that trims the
11
11
  * bulky, redundant payload fields off targeted outbound stream frames
12
12
  * before they're serialized to the SSE client.
13
+ *
14
+ * @module
13
15
  */
14
16
 
15
17
  import { log } from "@dbx-tools/shared-core";
package/src/server.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  * stamps the per-request `RequestContext`, and a route-patch middleware
4
4
  * that lets the plugin's custom API routes (e.g. `historyRoute`) work
5
5
  * behind an Express mount point.
6
+ *
7
+ * @module
6
8
  */
7
9
 
8
10
  import { getExecutionContext } from "@databricks/appkit";
package/src/serving.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * Mastra plugin: pulling a per-request model override off an HTTP
8
8
  * request (header / query / body) and projecting the plugin config
9
9
  * onto the knobs `buildModel` and the `/models` route share.
10
+ *
11
+ * @module
10
12
  */
11
13
 
12
14
  import { override } from "@dbx-tools/shared-mastra";
package/src/statement.ts CHANGED
@@ -15,6 +15,8 @@
15
15
  * which producer (Genie, a tool, a notebook, etc.) submitted the
16
16
  * query. Co-located here so consumers can fetch / cap / handle
17
17
  * 404s without reaching into the Genie tool module.
18
+ *
19
+ * @module
18
20
  */
19
21
 
20
22
  import { WorkspaceClient } from "@databricks/sdk-experimental";
package/src/summarize.ts CHANGED
@@ -15,6 +15,8 @@
15
15
  * Mirrors the chart-planner wiring in `chart.ts`: a per-config cached
16
16
  * `Agent` on the fast tier, invoked via `agent.generate(...)` inside
17
17
  * the active `asUser` scope so tokens stay user-scoped.
18
+ *
19
+ * @module
18
20
  */
19
21
 
20
22
  import { model } from "@dbx-tools/shared-model";
package/src/threads.ts CHANGED
@@ -17,6 +17,8 @@
17
17
  * cookie) on `RequestContext` by the time a handler runs. Resource
18
18
  * scoping lives here so a caller can only ever see, rename, or delete
19
19
  * its own threads; no cookie or user lookups happen in this module.
20
+ *
21
+ * @module
20
22
  */
21
23
 
22
24
  import {
package/src/workspaces.ts CHANGED
@@ -6,6 +6,8 @@
6
6
  * OBO client on {@link MASTRA_USER_KEY}. Optional mount resolver
7
7
  * contributions merge extra filesystems and skill scan roots; built-in
8
8
  * Assistant skill trees are toggled with `assistantSkills` (on by default).
9
+ *
10
+ * @module
9
11
  */
10
12
 
11
13
  import type { WorkspaceClient } from "@databricks/sdk-experimental";
package/src/writer.ts CHANGED
@@ -8,6 +8,8 @@
8
8
  * the most likely culprit when events go missing client-side) but
9
9
  * swallowed so a cancelled request or a client that navigated
10
10
  * away can't crash a tool mid-flight.
11
+ *
12
+ * @module
11
13
  */
12
14
 
13
15
  import type { MastraWriter } from "@dbx-tools/shared-mastra";