amp/template.yaml

View on GitHub ↗
amp/template.yaml
name: amp
version: "1.1.0"
description: "Sourcegraph Amp CLI. amp_execute runs amp -x; amp_version and amp_setup_check do not need a key."
author: "alibaba-agent-sandbox"
license: Apache-2.0
spec_version: 2

base: "fc-e2b-registry.<region>.cr.aliyuncs.com/runtime/base:<tag>"
generation: 2
start_cmd: "agent-sandbox-server serve --port 9000 --commands /home/user/app/commands.py"
ready_cmd: "agent-sandbox-server healthcheck --port 9000"

resources:
  cpu: 2
  memory: 2048

ports:
  - 9000

tags:
  - amp
  - sourcegraph
  - ai-coding
  - ai-agent

priority: P1
wave: 1
tested_on:
  - alicloud-express

capabilities:
  - shell
  - files
  - code
  - ports

env:
  AMP_API_KEY: ""
  ABX_SERVER_TOKEN: ""

smoke:
  - command: amp_version
    args: {}
    expect: "0.0.1792022479-ge66e24"
  - command: amp_setup_check
    args: {}
    expect:
      installed: true
      package: "@ampcode/cli"
      version: "0.0.1792022479-ge66e24"
      api_key_set: false
      settings_path: "/home/user/.config/amp/settings.json"
      dangerously_allow_all: true
      updates_mode: "disabled"