@mindstudio-ai/local-model-tunnel 0.5.57 → 0.5.58

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.
@@ -250,7 +250,7 @@ async function fetchCallbackToken(appId, sessionId) {
250
250
  `${basePath(appId)}/manage/token`,
251
251
  getHeaders(sessionId)
252
252
  );
253
- return data.authorizationToken;
253
+ return { authorizationToken: data.authorizationToken, secrets: data.secrets };
254
254
  }
255
255
  async function getUploadUrl(appId, sessionId, extension, contentType) {
256
256
  return apiRequest(
@@ -1654,7 +1654,7 @@ var DevRunner = class {
1654
1654
  const startTime = Date.now();
1655
1655
  log.info("runner", "Method received", { requestId, method: opts.methodExport, source: "direct", sessionId: this.session.sessionId });
1656
1656
  try {
1657
- const authorizationToken = await fetchCallbackToken(this.appId, this.session.sessionId);
1657
+ const { authorizationToken, secrets } = await fetchCallbackToken(this.appId, this.session.sessionId);
1658
1658
  const transpiledPath = await this.transpiler.transpile(opts.methodPath);
1659
1659
  const userId = opts.userId === TEST_USER_SENTINEL ? await this.resolveTestUserId() : opts.userId ?? this.session.auth.userId;
1660
1660
  const roles = opts.roles ?? this.roleOverride;
@@ -1672,7 +1672,8 @@ var DevRunner = class {
1672
1672
  authorizationToken,
1673
1673
  apiBaseUrl: getApiBaseUrl(),
1674
1674
  projectRoot: this.projectRoot,
1675
- sessionId: this.session.sessionId
1675
+ sessionId: this.session.sessionId,
1676
+ secrets
1676
1677
  });
1677
1678
  const duration = Date.now() - startTime;
1678
1679
  if (result.success) {
@@ -1741,7 +1742,7 @@ var DevRunner = class {
1741
1742
  }
1742
1743
  log.debug("runner", "Transpiling scenario", { path: scenario.path });
1743
1744
  const transpiledPath = await this.transpiler.transpile(scenario.path);
1744
- const authorizationToken = await fetchCallbackToken(this.appId, this.session.sessionId);
1745
+ const { authorizationToken, secrets } = await fetchCallbackToken(this.appId, this.session.sessionId);
1745
1746
  log.debug("runner", "Running scenario seed function", { export: scenario.export });
1746
1747
  const result = await executeMethod({
1747
1748
  requestId,
@@ -1753,7 +1754,8 @@ var DevRunner = class {
1753
1754
  authorizationToken,
1754
1755
  apiBaseUrl: getApiBaseUrl(),
1755
1756
  projectRoot: this.projectRoot,
1756
- sessionId: this.session.sessionId
1757
+ sessionId: this.session.sessionId,
1758
+ secrets
1757
1759
  });
1758
1760
  if (!result.success) {
1759
1761
  const error = result.error?.message ?? "Scenario seed failed";
@@ -3479,4 +3481,4 @@ export {
3479
3481
  watchTableFiles,
3480
3482
  watchConfigFile
3481
3483
  };
3482
- //# sourceMappingURL=chunk-4Y45MX5M.js.map
3484
+ //# sourceMappingURL=chunk-ENW2BU6M.js.map