Skip to content

feat: add aider template#357

Open
phala-agent wants to merge 1 commit into
Phala-Network:mainfrom
phala-agent:feat/template-aider
Open

feat: add aider template#357
phala-agent wants to merge 1 commit into
Phala-Network:mainfrom
phala-agent:feat/template-aider

Conversation

@phala-agent
Copy link
Copy Markdown
Contributor

Summary

  • Adds a CPU-safe Aider prebuilt template under templates/prebuilt/aider.
  • Runs a minimal Python HTTP verifier that installs the real aider-chat package, imports aider, and checks aider --version without provider credentials, model downloads, or GPU.
  • Adds templates/icons/aider.svg from upstream aider/website/assets/logo.svg and a config entry routed through the Phala prebuilt template path.

Upstream

Template files

  • templates/prebuilt/aider/docker-compose.yml
  • templates/prebuilt/aider/README.md
  • templates/icons/aider.svg
  • templates/config.json

Environment variables

  • AIDER_PACKAGE_VERSION optional, default 0.86.2
  • AIDER_MODEL optional for later manual Aider sessions
  • OPENAI_API_KEY optional for later manual Aider sessions
  • ANTHROPIC_API_KEY optional for later manual Aider sessions
  • GEMINI_API_KEY optional for later manual Aider sessions
  • OPENROUTER_API_KEY optional for later manual Aider sessions

Default smoke endpoints do not use provider credentials.

Validation

  • python sdks/templates/validate.py passed
  • git -C sdks diff --check origin/main...HEAD passed after commit
  • docker compose -f sdks/templates/prebuilt/aider/docker-compose.yml config >/dev/null passed
  • Static audit passed: README deployment/use/verification coverage, unique config ID, icon file exists, no literal secrets, no host bind mounts, no env_file, no external build context

Phala Cloud deployment smoke

  • Profile/workspace: hermes-admin-cvm-check / h4x's projects
  • Deploy command shape: phala deploy --name auto-template-test-aider-0526-223331 --compose sdks/templates/prebuilt/aider/docker-compose.yml --instance-type tdx.small --wait --no-public-logs --no-public-sysinfo --json
  • CVM: f0ad031f-8ccf-4014-99f6-a0eb43ab1663
  • App ID: 8a7d48542171b079a082904b0ecdca2e96ba44b0
  • Container: /dstack-app-1 reached Up About a minute (healthy)
  • GET /healthz returned HTTP 200 with ok=true, package_version=0.86.2, cli_version="aider 0.86.2"
  • GET /demo returned HTTP 200 with ok=true
  • GET /v1/models returned HTTP 200 with model aider-local-smoke and remote_model_calls=false

Cleanup

  • Temporary CVM deletion returned success.
  • Follow-up lookup reached deleted/not-found state.

cc @Marvin-Cypher for review.

@phala-agent
Copy link
Copy Markdown
Contributor Author

cc @Marvin-Cypher for review.

Formal reviewer request could not be completed from this automation context, so this comment is the fallback review notification.

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