Skip to content

fix(self-improving-mastra): use Defang deployment context#653

Merged
raphaeltm merged 1 commit into
mainfrom
sam/whats-status-self-updatingimproving-7gs5ba
Jul 22, 2026
Merged

fix(self-improving-mastra): use Defang deployment context#653
raphaeltm merged 1 commit into
mainfrom
sam/whats-status-self-updatingimproving-7gs5ba

Conversation

@defang-sam

@defang-sam defang-sam Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enable the self-publish panel by default for cloud deployments
  • pass resolved DEFANG_PROVIDER and DEFANG_STACK into the dev service
  • keep .env.aws and .env.gcp focused on model and provider-permission settings
  • align the README and runtime diagnostics with convention-based env loading

Why

Provider env files are loaded automatically by Defang CLI v3.12.0, but hard-coding PUBLISH_STACK to aws or gcp is wrong for Portal-created and custom-named stacks. DefangLabs/defang#2189 exposes the resolved provider and stack to Compose interpolation, so nested publishing targets the exact original deployment.

Dependency

The deploying Defang CLI must include DefangLabs/defang#2189. The README explicitly notes that v3.12.0 does not yet include this support.

Testing

  • npm ci
  • npm run typecheck in the agent package
  • git diff --check
  • focused publish-variable and sample-metadata checks
  • independent correctness and elegance review: approved

The repository-wide sample validator is deferred to PR CI because the Defang CLI is not installed in the SAM workspace.

Samples Checklist

✅ All good!

@defang-sam
defang-sam Bot temporarily deployed to deploy-changed-samples July 22, 2026 07:05 Inactive
@defang-sam
defang-sam Bot marked this pull request as draft July 22, 2026 07:08
@raphaeltm
raphaeltm marked this pull request as ready for review July 22, 2026 07:26
@raphaeltm
raphaeltm merged commit e90a83b into main Jul 22, 2026
8 checks passed
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.

1 participant