@dbx-tools/appkit-mastra 0.1.98 → 0.1.100

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 (2) hide show
  1. package/dist/index.js +11 -5
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -881,7 +881,11 @@ const ASSISTANT_WORKSPACE_SKILLS_MOUNT = "/workspace_skills";
881
881
  /** Composite mount for the caller's `/.assistant/skills` tree. */
882
882
  const ASSISTANT_USER_SKILLS_MOUNT = "/workspace_user_skills";
883
883
  /** OAuth scopes that gate Databricks workspace file mounts. */
884
- const WORKSPACE_FILE_SCOPES = ["workspace", "all-apis"];
884
+ const WORKSPACE_FILE_SCOPES = [
885
+ "workspace",
886
+ "workspace.workspace",
887
+ "all-apis"
888
+ ];
885
889
  const log$8 = logUtils.logger("mastra/workspaces");
886
890
  /**
887
891
  * Create a Mastra {@link Workspace} with per-request Databricks mounts.
@@ -908,6 +912,8 @@ function createWorkspace(options = {}) {
908
912
  const { id, name } = resolveWorkspaceIdentity(options);
909
913
  const resolvers = buildMountResolvers(options);
910
914
  const skills = options.skills ?? (resolvers.length > 0 ? buildWorkspaceSkillsResolver(resolvers) : void 0);
915
+ const checkSkillFileMtime = options.checkSkillFileMtime ?? options.assistantSkills !== false;
916
+ const bm25 = options.bm25 !== false;
911
917
  log$8.debug("workspace:create", {
912
918
  id,
913
919
  name,
@@ -915,8 +921,8 @@ function createWorkspace(options = {}) {
915
921
  assistantSkills: options.assistantSkills !== false,
916
922
  customMountResolvers: options.mounts?.length ?? 0,
917
923
  customSkillsResolver: Boolean(options.skills),
918
- checkSkillFileMtime: options.checkSkillFileMtime ?? options.assistantSkills !== false,
919
- bm25: options.bm25 !== false
924
+ checkSkillFileMtime,
925
+ bm25
920
926
  });
921
927
  return new Workspace({
922
928
  id,
@@ -924,9 +930,9 @@ function createWorkspace(options = {}) {
924
930
  filesystem: (context) => resolveWorkspaceFilesystem(resolvers, context),
925
931
  ...skills ? {
926
932
  skills,
927
- checkSkillFileMtime: options.checkSkillFileMtime ?? options.assistantSkills !== false
933
+ checkSkillFileMtime
928
934
  } : {},
929
- ...options.bm25 !== false ? { bm25: true } : {}
935
+ bm25
930
936
  });
931
937
  }
932
938
  /**
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@dbx-tools/appkit-mastra",
3
- "version": "0.1.98",
3
+ "version": "0.1.100",
4
4
  "dependencies": {
5
5
  "@databricks/sdk-experimental": "^0.17.0",
6
- "@dbx-tools/appkit-mastra-shared": "0.1.98",
7
- "@dbx-tools/genie": "0.1.98",
8
- "@dbx-tools/genie-shared": "0.1.98",
9
- "@dbx-tools/model": "0.1.98",
10
- "@dbx-tools/shared": "0.1.98",
6
+ "@dbx-tools/appkit-mastra-shared": "0.1.100",
7
+ "@dbx-tools/genie": "0.1.100",
8
+ "@dbx-tools/genie-shared": "0.1.100",
9
+ "@dbx-tools/model": "0.1.100",
10
+ "@dbx-tools/shared": "0.1.100",
11
11
  "@mastra/ai-sdk": "^1.6.0",
12
12
  "@mastra/core": "^1.47.0",
13
13
  "@mastra/express": "^1.4.2",