@mastra/factory 0.1.0-alpha.5 → 0.1.0-alpha.7
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 +13 -0
- package/dist/factory.d.ts +2 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/factory.js +141 -9
- package/dist/factory.js.map +1 -1
- package/dist/index.js +141 -9
- package/dist/index.js.map +1 -1
- package/dist/integrations/github/integration.js +108 -1
- package/dist/integrations/github/integration.js.map +1 -1
- package/dist/integrations/github/pat.d.ts +38 -0
- package/dist/integrations/github/pat.d.ts.map +1 -0
- package/dist/integrations/github/pat.js +48 -0
- package/dist/integrations/github/pat.js.map +1 -0
- package/dist/integrations/github/provenance.js.map +1 -1
- package/dist/integrations/github/routes.d.ts.map +1 -1
- package/dist/integrations/github/routes.js +94 -1
- package/dist/integrations/github/routes.js.map +1 -1
- package/dist/integrations/github/session-subscriptions.d.ts.map +1 -1
- package/dist/integrations/github/session-subscriptions.js +30 -0
- package/dist/integrations/github/session-subscriptions.js.map +1 -1
- package/dist/integrations/github/token-refresh.d.ts +6 -0
- package/dist/integrations/github/token-refresh.d.ts.map +1 -1
- package/dist/integrations/github/token-refresh.js +10 -0
- package/dist/integrations/github/token-refresh.js.map +1 -1
- package/dist/integrations/platform/github/integration.d.ts.map +1 -1
- package/dist/integrations/platform/github/integration.js +110 -2
- package/dist/integrations/platform/github/integration.js.map +1 -1
- package/dist/routes/surface.js +7 -1
- package/dist/routes/surface.js.map +1 -1
- package/dist/routes/work-items.js.map +1 -1
- package/dist/rules/start-coordinator.d.ts.map +1 -1
- package/dist/rules/start-coordinator.js +7 -1
- package/dist/rules/start-coordinator.js.map +1 -1
- package/dist/workspace.d.ts +5 -0
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +64 -5
- package/dist/workspace.js.map +1 -1
- package/package.json +4 -4
package/dist/routes/surface.js
CHANGED
|
@@ -25177,13 +25177,19 @@ var FactoryStartCoordinator = class {
|
|
|
25177
25177
|
if (!request.requestContext) {
|
|
25178
25178
|
requestContext.set("user", { workosId: request.userId, organizationId: request.orgId });
|
|
25179
25179
|
}
|
|
25180
|
+
const sessionState = {
|
|
25181
|
+
factoryProjectId: request.factoryProjectId,
|
|
25182
|
+
projectRepositoryId: sourceSession.projectRepositoryId
|
|
25183
|
+
};
|
|
25180
25184
|
const session = await this.#controller.createSession({
|
|
25181
25185
|
id: sourceSession.sessionId,
|
|
25182
25186
|
ownerId: request.userId,
|
|
25183
25187
|
resourceId: sourceSession.sessionId,
|
|
25184
25188
|
threadId: sourceSession.sessionId,
|
|
25185
|
-
requestContext
|
|
25189
|
+
requestContext,
|
|
25190
|
+
tags: sessionState
|
|
25186
25191
|
});
|
|
25192
|
+
await session.state.set(sessionState);
|
|
25187
25193
|
const threadId = await configureThread(session, request);
|
|
25188
25194
|
const kickoffMessage = await resolveKickoffMessage(session, request.invocation);
|
|
25189
25195
|
const prepared = await storage.prepareRunStart({
|