'use strict';

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const features = require('@mastra/core/features');

function hasMethod(obj, method) {
  return method in obj && typeof obj[method] === "function";
}
const isWorkspaceV1Supported = (client) => {
  const workspaceClientMethods = ["listWorkspaces", "getWorkspace"];
  const coreSupported = features.coreFeatures.has("workspaces-v1");
  const clientSupported = workspaceClientMethods.every((method) => hasMethod(client, method));
  return coreSupported && clientSupported;
};

exports.isWorkspaceV1Supported = isWorkspaceV1Supported;
//# sourceMappingURL=utils.cjs.js.map
