@mastra/factory 0.1.0-alpha.6 → 0.1.0-alpha.8

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 (47) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/factory.d.ts.map +1 -1
  3. package/dist/factory.js +161 -15
  4. package/dist/factory.js.map +1 -1
  5. package/dist/index.js +161 -15
  6. package/dist/index.js.map +1 -1
  7. package/dist/integrations/github/integration.js +108 -1
  8. package/dist/integrations/github/integration.js.map +1 -1
  9. package/dist/integrations/github/pat.d.ts +38 -0
  10. package/dist/integrations/github/pat.d.ts.map +1 -0
  11. package/dist/integrations/github/pat.js +48 -0
  12. package/dist/integrations/github/pat.js.map +1 -0
  13. package/dist/integrations/github/provenance.js.map +1 -1
  14. package/dist/integrations/github/routes.d.ts.map +1 -1
  15. package/dist/integrations/github/routes.js +94 -1
  16. package/dist/integrations/github/routes.js.map +1 -1
  17. package/dist/integrations/github/session-subscriptions.d.ts.map +1 -1
  18. package/dist/integrations/github/session-subscriptions.js +30 -0
  19. package/dist/integrations/github/session-subscriptions.js.map +1 -1
  20. package/dist/integrations/github/token-refresh.d.ts +6 -0
  21. package/dist/integrations/github/token-refresh.d.ts.map +1 -1
  22. package/dist/integrations/github/token-refresh.js +10 -0
  23. package/dist/integrations/github/token-refresh.js.map +1 -1
  24. package/dist/integrations/platform/github/integration.d.ts.map +1 -1
  25. package/dist/integrations/platform/github/integration.js +110 -2
  26. package/dist/integrations/platform/github/integration.js.map +1 -1
  27. package/dist/routes/surface.js +7 -1
  28. package/dist/routes/surface.js.map +1 -1
  29. package/dist/routes/work-items.js.map +1 -1
  30. package/dist/rules/defaults.d.ts.map +1 -1
  31. package/dist/rules/defaults.js +20 -6
  32. package/dist/rules/defaults.js.map +1 -1
  33. package/dist/rules/index.js +20 -6
  34. package/dist/rules/index.js.map +1 -1
  35. package/dist/rules/start-coordinator.d.ts.map +1 -1
  36. package/dist/rules/start-coordinator.js +7 -1
  37. package/dist/rules/start-coordinator.js.map +1 -1
  38. package/dist/workspace.d.ts +5 -0
  39. package/dist/workspace.d.ts.map +1 -1
  40. package/dist/workspace.js +65 -6
  41. package/dist/workspace.js.map +1 -1
  42. package/factory-skills/factory-plan/SKILL.md +61 -0
  43. package/factory-skills/factory-review/SKILL.md +73 -0
  44. package/factory-skills/factory-triage/SKILL.md +77 -0
  45. package/package.json +6 -6
  46. package/factory-skills/understand-issue/SKILL.md +0 -251
  47. package/factory-skills/understand-pr/SKILL.md +0 -270
@@ -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({