@mastra/factory 0.1.0-alpha.8 → 0.1.0-alpha.9
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.
- package/CHANGELOG.md +8 -0
- package/dist/factory.js +10 -1
- package/dist/factory.js.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +10 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/factory
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed GitHub PATs saved in Settings not taking effect for the gh CLI in already-running Factory sessions until the server was restarted ([#20069](https://github.com/mastra-ai/mastra/pull/20069))
|
|
8
|
+
|
|
9
|
+
- Fixed web chat sessions getting stuck in a "Connection lost — reconnecting…" loop while the session workspace was still starting up ([#20067](https://github.com/mastra-ai/mastra/pull/20067))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.8
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/factory.js
CHANGED
|
@@ -38580,6 +38580,13 @@ function createWorkspaceFactory(options = {}) {
|
|
|
38580
38580
|
if (registered) {
|
|
38581
38581
|
registerGithubTokenInjector(requestContext, registered.inject);
|
|
38582
38582
|
registerGithubPatKind(requestContext, registered.patKind);
|
|
38583
|
+
try {
|
|
38584
|
+
const pat = await getGithubPat(() => github.integrationStorage, session.orgId, registered.patKind);
|
|
38585
|
+
if (pat && pat !== registered.ghToken) {
|
|
38586
|
+
registered.inject(pat);
|
|
38587
|
+
}
|
|
38588
|
+
} catch {
|
|
38589
|
+
}
|
|
38583
38590
|
}
|
|
38584
38591
|
return existing;
|
|
38585
38592
|
}
|
|
@@ -38626,8 +38633,10 @@ function createWorkspaceFactory(options = {}) {
|
|
|
38626
38633
|
throw new Error("The active sandbox provider does not support runtime GitHub token refresh.");
|
|
38627
38634
|
}
|
|
38628
38635
|
sandbox.setEnvironmentVariable("GH_TOKEN", freshToken);
|
|
38636
|
+
const registered = githubTokenInjectors.get(workspaceId);
|
|
38637
|
+
if (registered) registered.ghToken = freshToken;
|
|
38629
38638
|
};
|
|
38630
|
-
githubTokenInjectors.set(workspaceId, { inject: injectGithubToken2, patKind });
|
|
38639
|
+
githubTokenInjectors.set(workspaceId, { inject: injectGithubToken2, patKind, ghToken: ghCliToken });
|
|
38631
38640
|
registerGithubTokenInjector(requestContext, injectGithubToken2);
|
|
38632
38641
|
registerGithubPatKind(requestContext, patKind);
|
|
38633
38642
|
const filesystem = new SandboxFilesystem({ sandbox, workdir });
|