@dbx-tools/appkit-mastra 0.1.4 → 0.1.9

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.
Files changed (46) hide show
  1. package/README.md +304 -503
  2. package/index.ts +46 -36
  3. package/package.json +58 -47
  4. package/src/agents.ts +255 -72
  5. package/src/chart.ts +695 -0
  6. package/src/config.ts +282 -18
  7. package/src/filesystems.ts +1090 -0
  8. package/src/genie.ts +1025 -288
  9. package/src/history.ts +297 -0
  10. package/src/mcp.ts +105 -0
  11. package/src/memory.ts +129 -74
  12. package/src/mlflow.ts +149 -0
  13. package/src/model.ts +80 -408
  14. package/src/observability.ts +144 -0
  15. package/src/pagination.ts +34 -0
  16. package/src/plugin.ts +587 -52
  17. package/src/processors.ts +168 -0
  18. package/src/rest.ts +67 -0
  19. package/src/server.ts +292 -80
  20. package/src/serving-sanitize.ts +167 -0
  21. package/src/serving.ts +27 -224
  22. package/src/statement.ts +89 -0
  23. package/src/storage-schema.ts +41 -0
  24. package/src/summarize.ts +176 -0
  25. package/src/threads.ts +338 -0
  26. package/src/workspaces.ts +346 -0
  27. package/src/writer.ts +44 -0
  28. package/tsconfig.json +41 -0
  29. package/dist/index.d.ts +0 -18
  30. package/dist/index.js +0 -18
  31. package/dist/src/agents.d.ts +0 -306
  32. package/dist/src/agents.js +0 -379
  33. package/dist/src/config.d.ts +0 -170
  34. package/dist/src/config.js +0 -12
  35. package/dist/src/genie.d.ts +0 -109
  36. package/dist/src/genie.js +0 -271
  37. package/dist/src/memory.d.ts +0 -79
  38. package/dist/src/memory.js +0 -197
  39. package/dist/src/model.d.ts +0 -159
  40. package/dist/src/model.js +0 -423
  41. package/dist/src/plugin.d.ts +0 -120
  42. package/dist/src/plugin.js +0 -235
  43. package/dist/src/server.d.ts +0 -42
  44. package/dist/src/server.js +0 -109
  45. package/dist/src/serving.d.ts +0 -156
  46. package/dist/src/serving.js +0 -214
package/index.ts CHANGED
@@ -1,36 +1,46 @@
1
- /**
2
- * AppKit Mastra integration: {@link MastraPlugin} / {@link mastra},
3
- * plugin config types, agent registration helpers, Genie tool
4
- * builders, and dynamic Model Serving endpoint resolution.
5
- *
6
- * Client-side consumers should import URL helpers and the
7
- * {@link MastraClientConfig} type from `@dbx-tools/appkit-mastra-shared`
8
- * instead - that package is pure (no pg / fastembed / Mastra deps) and
9
- * is the right surface for browser bundles and `usePluginClientConfig`
10
- * consumers.
11
- */
12
- export * from "./src/plugin.js";
13
- export * from "@dbx-tools/appkit-mastra-shared";
14
- export * from "./src/config.js";
15
- export * from "./src/agents.js";
16
- export * from "./src/genie.js";
17
- export {
18
- clearServingEndpointsCache,
19
- extractModelOverride,
20
- listServingEndpoints,
21
- MASTRA_MODEL_OVERRIDE_KEY,
22
- MODEL_OVERRIDE_BODY_FIELDS,
23
- MODEL_OVERRIDE_HEADER,
24
- MODEL_OVERRIDE_QUERY,
25
- resolveModelId,
26
- type ResolvedModel,
27
- type ResolveModelOptions,
28
- type ServingEndpointSummary,
29
- } from "./src/serving.js";
30
- export {
31
- FALLBACK_MODEL_IDS,
32
- MODEL_CATALOG,
33
- modelForTier,
34
- modelsForTier,
35
- ModelTier,
36
- } from "./src/model.js";
1
+ // GENERATED by projen watch - DO NOT EDIT.
2
+ // Regenerated from the exporting modules in ./src.
3
+ // Hand edits are overwritten on the next watch; this file is read-only.
4
+
5
+ export * as agents from "./src/agents";
6
+ export * as chart from "./src/chart";
7
+ export * as config from "./src/config";
8
+ export * as filesystems from "./src/filesystems";
9
+ export * as genie from "./src/genie";
10
+ export * as history from "./src/history";
11
+ export * as mcp from "./src/mcp";
12
+ export * as memory from "./src/memory";
13
+ export * as mlflow from "./src/mlflow";
14
+ export * as model from "./src/model";
15
+ export * as observability from "./src/observability";
16
+ export * as pagination from "./src/pagination";
17
+ export * as plugin from "./src/plugin";
18
+ export * as processors from "./src/processors";
19
+ export * as rest from "./src/rest";
20
+ export * as server from "./src/server";
21
+ export * as serving from "./src/serving";
22
+ export * as servingSanitize from "./src/serving-sanitize";
23
+ export * as statement from "./src/statement";
24
+ export * as storageSchema from "./src/storage-schema";
25
+ export * as summarize from "./src/summarize";
26
+ export * as threads from "./src/threads";
27
+ export * as workspaces from "./src/workspaces";
28
+ export * as writer from "./src/writer";
29
+ export type { MastraTools, AppKitToolOptions, ToolkitOptions, MastraPluginToolkitProvider, MastraPlugins, MastraToolsFn, MastraAgentWorkspaceResolver, MastraAgentDefinition, MastraStorageConfigOverride, MastraMemoryConfigOverride, BuiltAgents } from "./src/agents";
30
+ export type { ChartPlannerRequest, PrepareChartOptions, FetchChartOptions } from "./src/chart";
31
+ export type { User, MastraMemoryConfig, MastraMcpConfig, MastraPluginConfig } from "./src/config";
32
+ export type { DatabricksMkdirsMode, DatabricksWorkspaceFilesystemOptions } from "./src/filesystems";
33
+ export type { GenieSpaceConfig, GenieSpacesConfig } from "./src/genie";
34
+ export type { LoadHistoryOptions, ClearHistoryOptions, HistoryRouteOptions } from "./src/history";
35
+ export type { ResolvedMcp } from "./src/mcp";
36
+ export type { LogFeedbackParams } from "./src/mlflow";
37
+ export type { BuildModelOverrides } from "./src/model";
38
+ export type { BuildObservabilityOptions } from "./src/observability";
39
+ export type { PerPageBounds } from "./src/pagination";
40
+ export type { DatabricksFetchInit } from "./src/rest";
41
+ export type { MastraApiGateOptions } from "./src/server";
42
+ export type { ModelOverrideRequest } from "./src/serving";
43
+ export type { ServingChatMessage } from "./src/serving-sanitize";
44
+ export type { SummarizeOptions } from "./src/summarize";
45
+ export type { ListThreadsOptions, DeleteThreadOptions, RenameThreadOptions, ThreadsRouteOptions } from "./src/threads";
46
+ export type { CreateWorkspaceOptions } from "./src/workspaces";
package/package.json CHANGED
@@ -1,55 +1,66 @@
1
1
  {
2
- "main": "dist/index.js",
3
- "types": "dist/index.d.ts",
4
- "exports": {
5
- ".": {
6
- "source": "./index.ts",
7
- "types": "./dist/index.d.ts",
8
- "default": "./dist/index.js"
9
- }
10
- },
11
- "files": [
12
- "dist",
13
- "index.ts",
14
- "src"
15
- ],
16
- "license": "Apache-2.0",
17
- "homepage": "https://github.com/reggie-db/dbx-tools-appkit#readme",
18
- "bugs": {
19
- "url": "https://github.com/reggie-db/dbx-tools-appkit/issues"
20
- },
21
- "publishConfig": {
22
- "registry": "https://registry.npmjs.org/",
23
- "access": "public"
24
- },
2
+ "name": "@dbx-tools/appkit-mastra",
25
3
  "repository": {
26
4
  "type": "git",
27
- "url": "git+https://github.com/reggie-db/dbx-tools-appkit.git",
28
- "directory": "packages/mastra"
5
+ "url": "git+https://github.com/reggie-db/dbx-tools.git",
6
+ "directory": "workspaces/node/appkit-mastra"
7
+ },
8
+ "devDependencies": {
9
+ "@types/express": "^5.0.5",
10
+ "@types/node": "^24.6.0",
11
+ "@types/pg": "^8",
12
+ "tsx": "^4.23.0",
13
+ "typescript": "^5.9.3"
29
14
  },
30
- "name": "@dbx-tools/appkit-mastra",
31
- "version": "0.1.4",
32
- "module": "index.ts",
33
- "type": "module",
34
15
  "dependencies": {
35
- "@dbx-tools/appkit-shared": "0.1.3",
36
- "@dbx-tools/appkit-mastra-shared": "0.1.3",
37
- "@mastra/ai-sdk": "^1.3",
38
- "@mastra/core": "^1.32",
39
- "@mastra/express": "^1.3",
40
- "@mastra/fastembed": "^1.0",
41
- "@mastra/memory": "^1.17",
42
- "@mastra/pg": "^1.10",
43
- "fuse.js": "^7.0.0",
44
- "zod": "^4.3.6"
16
+ "@databricks/appkit": "^0.43.0",
17
+ "@databricks/sdk-experimental": "^0.17.0",
18
+ "@mastra/ai-sdk": "^1.6.0",
19
+ "@mastra/core": "^1.47.0",
20
+ "@mastra/express": "^1.4.2",
21
+ "@mastra/fastembed": "^1.2.0",
22
+ "@mastra/mcp": "^1.12.0",
23
+ "@mastra/memory": "^1.21.2",
24
+ "@mastra/observability": "^1.15.2",
25
+ "@mastra/otel-bridge": "^1.4.0",
26
+ "@mastra/pg": "^1.14.2",
27
+ "@opentelemetry/api": "^1.9.1",
28
+ "pg": "^8.22.0",
29
+ "zod": "^4.3.6",
30
+ "@dbx-tools/appkit": "0.1.9",
31
+ "@dbx-tools/core": "0.1.9",
32
+ "@dbx-tools/databricks": "0.1.9",
33
+ "@dbx-tools/genie": "0.1.9",
34
+ "@dbx-tools/model": "0.1.9",
35
+ "@dbx-tools/shared-core": "0.1.9",
36
+ "@dbx-tools/shared-mastra": "0.1.9",
37
+ "@dbx-tools/shared-genie": "0.1.9",
38
+ "@dbx-tools/shared-model": "0.1.9"
45
39
  },
46
- "peerDependencies": {
47
- "@databricks/appkit": "^0.35",
48
- "express": "^5"
40
+ "main": "index.ts",
41
+ "license": "UNLICENSED",
42
+ "version": "0.1.9",
43
+ "types": "index.ts",
44
+ "type": "module",
45
+ "exports": {
46
+ ".": "./index.ts",
47
+ "./package.json": "./package.json"
49
48
  },
50
- "devDependencies": {
51
- "@types/express": "^5",
52
- "@types/pg": "^8",
53
- "express": "^5"
49
+ "dbxToolsConfig": {
50
+ "tags": [
51
+ "node"
52
+ ]
53
+ },
54
+ "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"pnpm exec projen\".",
55
+ "scripts": {
56
+ "build": "projen build",
57
+ "compile": "projen compile",
58
+ "default": "projen default",
59
+ "package": "projen package",
60
+ "post-compile": "projen post-compile",
61
+ "pre-compile": "projen pre-compile",
62
+ "test": "projen test",
63
+ "watch": "projen watch",
64
+ "projen": "projen"
54
65
  }
55
- }
66
+ }