@daeda/mcp-pro 0.1.41 → 0.1.42

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 +13 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28192,6 +28192,17 @@ var createEnsureFresh = (deps, options2) => {
28192
28192
  syncEnabled: true
28193
28193
  };
28194
28194
  }
28195
+ if (!deps.isMasterClient()) {
28196
+ if (!deps.hasLocalDatabase(portalId)) {
28197
+ throw new Error(
28198
+ `Portal ${portalId} has no synced data yet. Background sync in progress - retry shortly.`
28199
+ );
28200
+ }
28201
+ return {
28202
+ usedStaleData: true,
28203
+ syncEnabled: true
28204
+ };
28205
+ }
28195
28206
  const drained = await deps.waitForPortalDrain(portalId, queueDrainTimeoutMs);
28196
28207
  if (!drained) {
28197
28208
  throw new Error(`Timed out waiting for portal ${portalId} artifact queue drain.`);
@@ -28258,6 +28269,7 @@ var waitForPortalSyncedAtAfter = (portalFileState, portalId, sinceMs, timeoutMs)
28258
28269
  var makeEnsureFresh = (deps, options2) => createEnsureFresh(
28259
28270
  {
28260
28271
  getSelectedPortalId: deps.getSelectedPortalId,
28272
+ isMasterClient: deps.isMasterClient,
28261
28273
  isPortalSyncEnabled: deps.isPortalSyncEnabled,
28262
28274
  waitForPortalDrain,
28263
28275
  hasLocalDatabase: (portalId) => fs13.existsSync(dbPath(portalId)),
@@ -28417,6 +28429,7 @@ var mainProgram = Effect143.gen(function* () {
28417
28429
  };
28418
28430
  const ensureFresh = makeEnsureFresh({
28419
28431
  getSelectedPortalId: getPortalId,
28432
+ isMasterClient,
28420
28433
  isPortalSyncEnabled: isPortalSyncActive,
28421
28434
  ws,
28422
28435
  portalData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daeda/mcp-pro",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "MCP server for HubSpot CRM — sync, query, and manage your portal data",
5
5
  "type": "module",
6
6
  "bin": {