motia 0.5.11-beta.120-011950 → 0.5.11-beta.120-356715

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 (24) hide show
  1. package/dist/cjs/create/templates/python/steps/api_step.py.txt +1 -1
  2. package/dist/cjs/create/templates/python/tutorial.tsx.txt +1 -1
  3. package/dist/cjs/create/templates/typescript/steps/api.step.ts.txt +2 -2
  4. package/dist/cjs/create/templates/typescript/tutorial.tsx.txt +1 -1
  5. package/dist/dot-files/.cursor/rules/ai-agent-patterns.mdc +725 -0
  6. package/dist/dot-files/.cursor/rules/api-design-patterns.mdc +740 -0
  7. package/dist/dot-files/.cursor/rules/api-steps.mdc +125 -64
  8. package/dist/dot-files/.cursor/rules/authentication-patterns.mdc +620 -0
  9. package/dist/dot-files/.cursor/rules/background-job-patterns.mdc +628 -0
  10. package/dist/dot-files/.cursor/rules/complete-application-patterns.mdc +433 -0
  11. package/dist/dot-files/.cursor/rules/complete-backend-generator.mdc +415 -0
  12. package/dist/dot-files/.cursor/rules/event-steps.mdc +271 -133
  13. package/dist/dot-files/.cursor/rules/multi-language-workflows.mdc +1059 -0
  14. package/dist/dot-files/.cursor/rules/production-deployment.mdc +668 -0
  15. package/dist/dot-files/.cursor/rules/realtime-streaming.mdc +656 -0
  16. package/dist/dot-files/.cursor/rules/state-management.mdc +133 -87
  17. package/dist/dot-files/.cursor/rules/steps.mdc +68 -12
  18. package/dist/dot-files/.cursor/rules/workflow-patterns.mdc +938 -0
  19. package/dist/dot-files/CLAUDE.md +334 -129
  20. package/dist/esm/create/templates/python/steps/api_step.py.txt +1 -1
  21. package/dist/esm/create/templates/python/tutorial.tsx.txt +1 -1
  22. package/dist/esm/create/templates/typescript/steps/api.step.ts.txt +2 -2
  23. package/dist/esm/create/templates/typescript/tutorial.tsx.txt +1 -1
  24. package/package.json +4 -4
@@ -49,4 +49,4 @@ async def handler(req, context):
49
49
  },
50
50
  })
51
51
 
52
- return {"status": 200, "body": new_pet_record}
52
+ return {"status": 200, "body": {**new_pet_record, "traceId": context.trace_id}}
@@ -611,7 +611,7 @@ export const steps: TutorialStep[] = [
611
611
  <br />
612
612
  <br />
613
613
  We recommend you give our{' '}
614
- <a href="https://www.motia.dev/docs/getting-started/core-concepts" target="_blank">
614
+ <a href="https://www.motia.dev/docs/concepts" target="_blank">
615
615
  core concepts
616
616
  </a>{' '}
617
617
  a read if you wish to learn further about Motia's fundamentals.
@@ -29,7 +29,7 @@ export const config: ApiRouteConfig = {
29
29
  emits: ['process-food-order'],
30
30
  }
31
31
 
32
- export const handler: Handlers['ApiTrigger'] = async (req, { logger, emit }) => {
32
+ export const handler: Handlers['ApiTrigger'] = async (req, { logger, traceId, emit }) => {
33
33
  logger.info('Step 01 – Processing API Step', { body: req.body })
34
34
 
35
35
  const { pet, foodOrder } = req.body
@@ -46,5 +46,5 @@ export const handler: Handlers['ApiTrigger'] = async (req, { logger, emit }) =>
46
46
  })
47
47
  }
48
48
 
49
- return { status: 200, body: newPetRecord }
49
+ return { status: 200, body: {...newPetRecord, traceId } }
50
50
  }
@@ -611,7 +611,7 @@ export const steps: TutorialStep[] = [
611
611
  <br />
612
612
  <br />
613
613
  We recommend you give our{' '}
614
- <a href="https://www.motia.dev/docs/getting-started/core-concepts" target="_blank">
614
+ <a href="https://www.motia.dev/docs/concepts" target="_blank">
615
615
  core concepts
616
616
  </a>{' '}
617
617
  a read if you wish to learn further about Motia's fundamentals.