Skip to content

Conversation

@TimPietruskyRunPod
Copy link
Collaborator

Changes

  • refactor(mastra): Centralize database utilities in utils module

    • Move database credential checking and storage creation logic to src/mastra/utils/db.ts
    • Eliminate duplication between index.ts and agent files
    • Add createStorage() for global PostgresStore creation
    • Add createAgentMemory() for agent Memory with PgVector
  • feat(hub): Add RunPod Hub integration files

    • Add hub.json with worker metadata and environment variable configuration
    • Add tests.json with automated endpoint tests for Hub validation
    • Add README.md with Hub-specific documentation and API usage examples

Benefits

  • Database logic is now centralized, making it easier to add new agents
  • RunPod Hub integration enables marketplace publishing
  • Improved code organization and maintainability

move database credential checking and storage creation logic to
src/mastra/utils/db.ts to eliminate duplication between index.ts
and agent files.

- add createStorage() for global PostgresStore creation
- add createAgentMemory() for agent Memory with PgVector
- refactor index.ts to use createStorage() utility
- refactor weather-agent.ts to use createAgentMemory() utility
- update context.md to document centralized database utilities
add hub publishing configuration for runpod hub marketplace:
- hub.json: worker metadata, environment variables, and deployment config
- tests.json: automated endpoint tests for hub validation
- README.md: hub-specific documentation with api usage examples
- replace conditional spread in weather-agent.ts memory property
- replace conditional spread in index.ts storage property
- fixes mastra babel transform build errors
- add build constraints section documenting no conditional spread operators
- explains mastra babel transform limitation
@TimPietruskyRunPod TimPietruskyRunPod merged commit b96bf6e into main Dec 10, 2025
1 check passed
@TimPietruskyRunPod TimPietruskyRunPod deleted the feat/hub-integration branch December 10, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants