bruce-models 6.9.1 → 6.9.3

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.
@@ -9267,9 +9267,14 @@
9267
9267
  percent: 100,
9268
9268
  uploaded: true
9269
9269
  });
9270
- return {
9271
- tempFileId: tempFile["TempFile.ID"]
9272
- };
9270
+ // Keeping any other magic properties in there.
9271
+ // When we upload a plant-3dz file it also returns its 'projects' which is a fun magic side-effect we really need to kill.
9272
+ const res = Object.assign({}, tempFile);
9273
+ if (res["TempFile.ID"]) {
9274
+ res.tempFileId = res["TempFile.ID"];
9275
+ delete res["TempFile.ID"];
9276
+ }
9277
+ return res;
9273
9278
  });
9274
9279
  }
9275
9280
  ClientFile.UploadTemp = UploadTemp;
@@ -16155,8 +16160,8 @@
16155
16160
  Tracking.GetData = GetData;
16156
16161
  })(exports.Tracking || (exports.Tracking = {}));
16157
16162
 
16158
- const JOB_POLL_INTERVAL_MS = 1000;
16159
- const JOB_POLL_TIMEOUT_MS = 4 * 60 * 1000; // match server timeout (4 minutes)
16163
+ const DEFAULT_JOB_POLL_INTERVAL_MS = 1000;
16164
+ const DEFAULT_JOB_POLL_TIMEOUT_MS = 4 * 60 * 1000; // match server timeout (4 minutes)
16160
16165
  const DEFAULT_BASE_URL = "http://localhost:8888";
16161
16166
  /**
16162
16167
  * Lightweight client for the Navigator MCP chat HTTP endpoints.
@@ -16165,10 +16170,12 @@
16165
16170
  */
16166
16171
  class NavigatorChatClient {
16167
16172
  constructor(options = {}) {
16168
- var _a, _b;
16173
+ var _a, _b, _c, _d;
16169
16174
  this.baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : DEFAULT_BASE_URL;
16170
16175
  this.fetchImpl = options.fetchImpl;
16171
16176
  this.defaultHeaders = (_b = options.defaultHeaders) !== null && _b !== void 0 ? _b : {};
16177
+ this.jobPollIntervalMs = (_c = options.jobPollIntervalMs) !== null && _c !== void 0 ? _c : DEFAULT_JOB_POLL_INTERVAL_MS;
16178
+ this.jobPollTimeoutMs = (_d = options.jobPollTimeoutMs) !== null && _d !== void 0 ? _d : DEFAULT_JOB_POLL_TIMEOUT_MS;
16172
16179
  }
16173
16180
  /**
16174
16181
  * Ask a question via the MCP chat endpoint.
@@ -16244,11 +16251,11 @@
16244
16251
  }
16245
16252
  const pollPath = (_a = envelope.pollUrl) !== null && _a !== void 0 ? _a : `/chat/jobs/${envelope.jobId}`;
16246
16253
  const startedAt = Date.now();
16247
- while (Date.now() - startedAt < JOB_POLL_TIMEOUT_MS) {
16254
+ while (Date.now() - startedAt < this.jobPollTimeoutMs) {
16248
16255
  const statusPayload = yield this.fetchJobStatus(pollPath, auth);
16249
16256
  const status = statusPayload === null || statusPayload === void 0 ? void 0 : statusPayload.status;
16250
16257
  if (!status) {
16251
- yield this.delay(JOB_POLL_INTERVAL_MS);
16258
+ yield this.delay(this.jobPollIntervalMs);
16252
16259
  continue;
16253
16260
  }
16254
16261
  const combinedSteps = [
@@ -16273,7 +16280,7 @@
16273
16280
  const error = message.trim() || "Chat job failed";
16274
16281
  throw new Error(error);
16275
16282
  }
16276
- yield this.delay(JOB_POLL_INTERVAL_MS);
16283
+ yield this.delay(this.jobPollIntervalMs);
16277
16284
  }
16278
16285
  throw new Error("Chat job polling timed out. Please try again later.");
16279
16286
  });
@@ -16517,7 +16524,7 @@
16517
16524
  }
16518
16525
 
16519
16526
  // This is updated with the package.json version on build.
16520
- const VERSION = "6.9.1";
16527
+ const VERSION = "6.9.3";
16521
16528
 
16522
16529
  exports.VERSION = VERSION;
16523
16530
  exports.AbstractApi = AbstractApi;