HUB
Sign inSign up

mmackie/plore-opencode-dev:1.0.1

Manifest digest

sha256:3451db8a581e784be0086468b85edd6644ed7662a8f27c9e7f9f0013208a4a14

Last pushed

2 days by mmackie

Type

Sandbox Kit

Manifest digest

sha256:3451db8a581e784be0086468b85edd6644ed7662a8f27c9e7f9f0013208a4a14

yaml
schemaVersion: "3"
displayName: Plore opencode development
version: 1.0.1
licenses:
    - MIT
kind: workload
provides:
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - [email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/ca-certificates@20250419
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/iputils-ping@20240905
    - deb/[email protected]
    - deb/less@668
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/tzdata@2026
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
    - deb/[email protected]
capabilities:
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-dotnet:1.0.1
                path: capabilities[0]
              type: com.docker.sandbox/network-policy@1
              config:
                install:
                    allow:
                        - deb.debian.org:80
                        - deb.debian.org:443
                        - security.debian.org:80
                        - security.debian.org:443
                        - api.nuget.org:443
                        - '*.nuget.org:443'
                        - aka.ms:443
                        - dot.net:443
                        - builds.dotnet.microsoft.com:443
                        - ci.dot.net:443
                runtime:
                    allow:
                        - api.nuget.org:443
                        - '*.nuget.org:443'
                        - aka.ms:443
                        - dot.net:443
                        - builds.dotnet.microsoft.com:443
                        - ci.dot.net:443
      declarationBlocks:
        - "0:0"
      source:
        kit: docker.io/mmackie/plore-dotnet:1.0.1
        path: capabilities[0]
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-dotnet:1.0.1
                path: capabilities[1]
              type: com.docker.sandbox/lifecycle@1
              config:
                install:
                    - command: /bin/bash /opt/plore/mixins/dotnet/install.sh
                      env:
                        - HTTP_PROXY
                        - HTTPS_PROXY
                        - ALL_PROXY
                        - NO_PROXY
                        - http_proxy
                        - https_proxy
                        - all_proxy
                        - no_proxy
                        - SSL_CERT_FILE
                        - SSL_CERT_DIR
                        - CURL_CA_BUNDLE
                      user: "0"
      declarationBlocks:
        - "0:0"
      source:
        kit: docker.io/mmackie/plore-dotnet:1.0.1
        path: capabilities[1]
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-dotnet-framework:1.0.1
                path: capabilities[0]
              type: com.docker.sandbox/network-policy@1
              config:
                install:
                    allow:
                        - deb.debian.org:80
                        - deb.debian.org:443
                        - security.debian.org:80
                        - security.debian.org:443
                        - api.nuget.org:443
                        - '*.nuget.org:443'
                        - dist.nuget.org:443
                runtime:
                    allow:
                        - api.nuget.org:443
                        - '*.nuget.org:443'
                        - dist.nuget.org:443
      declarationBlocks:
        - "1:0"
      source:
        kit: docker.io/mmackie/plore-dotnet-framework:1.0.1
        path: capabilities[0]
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-dotnet-framework:1.0.1
                path: capabilities[1]
              type: com.docker.sandbox/lifecycle@1
              config:
                install:
                    - command: /bin/bash /opt/plore/mixins/dotnet-framework/install.sh
                      env:
                        - HTTP_PROXY
                        - HTTPS_PROXY
                        - ALL_PROXY
                        - NO_PROXY
                        - http_proxy
                        - https_proxy
                        - all_proxy
                        - no_proxy
                        - SSL_CERT_FILE
                        - SSL_CERT_DIR
                        - CURL_CA_BUNDLE
                      user: "0"
      declarationBlocks:
        - "1:0"
      source:
        kit: docker.io/mmackie/plore-dotnet-framework:1.0.1
        path: capabilities[1]
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-node:1.0.1
                path: capabilities[0]
              type: com.docker.sandbox/network-policy@1
              config:
                install:
                    allow:
                        - deb.debian.org:80
                        - deb.debian.org:443
                        - security.debian.org:80
                        - security.debian.org:443
                        - registry.npmjs.org:443
                        - nodejs.org:443
                        - github.com:443
                        - '*.githubusercontent.com:443'
                runtime:
                    allow:
                        - registry.npmjs.org:443
                        - nodejs.org:443
                        - github.com:443
                        - '*.githubusercontent.com:443'
      declarationBlocks:
        - "2:0"
      source:
        kit: docker.io/mmackie/plore-node:1.0.1
        path: capabilities[0]
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-node:1.0.1
                path: capabilities[1]
              type: com.docker.sandbox/lifecycle@1
              config:
                install:
                    - command: /bin/bash /opt/plore/mixins/node/install.sh
                      env:
                        - HTTP_PROXY
                        - HTTPS_PROXY
                        - ALL_PROXY
                        - NO_PROXY
                        - http_proxy
                        - https_proxy
                        - all_proxy
                        - no_proxy
                        - SSL_CERT_FILE
                        - SSL_CERT_DIR
                        - CURL_CA_BUNDLE
                      user: "0"
      declarationBlocks:
        - "2:0"
      source:
        kit: docker.io/mmackie/plore-node:1.0.1
        path: capabilities[1]
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-angular-testing:1.0.1
                path: capabilities[0]
              type: com.docker.sandbox/network-policy@1
              config:
                install:
                    allow:
                        - deb.debian.org:80
                        - deb.debian.org:443
                        - security.debian.org:80
                        - security.debian.org:443
      declarationBlocks:
        - "3:0"
      source:
        kit: docker.io/mmackie/plore-angular-testing:1.0.1
        path: capabilities[0]
    - group:
        capabilities:
            - source:
                kit: docker.io/mmackie/plore-angular-testing:1.0.1
                path: capabilities[1]
              type: com.docker.sandbox/lifecycle@1
              config:
                install:
                    - command: /bin/bash /opt/plore/mixins/angular-testing/install.sh
                      env:
                        - HTTP_PROXY
                        - HTTPS_PROXY
                        - ALL_PROXY
                        - NO_PROXY
                        - http_proxy
                        - https_proxy
                        - all_proxy
                        - no_proxy
                        - SSL_CERT_FILE
                        - SSL_CERT_DIR
                        - CURL_CA_BUNDLE
                      user: "0"
      declarationBlocks:
        - "3:0"
      source:
        kit: docker.io/mmackie/plore-angular-testing:1.0.1
        path: capabilities[1]
    - group:
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[0]
              type: com.docker.sandbox/sbx@1
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[0]
    - group:
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[1]
              type: com.docker.sandbox/network-policy@1
              config:
                runtime:
                    allow:
                        - api.anthropic.com:443
                        - claude.ai:443
                        - console.anthropic.com:443
                        - api.business.githubcopilot.com:443
                        - api.enterprise.githubcopilot.com:443
                        - api.github.com:443
                        - api.githubcopilot.com:443
                        - api.individual.githubcopilot.com:443
                        - copilot.github.com:443
                        - github.com:443
                        - '*.githubusercontent.com:443'
                        - raw.githubusercontent.com:443
                        - codeload.github.com:443
                        - aiplatform.googleapis.com:443
                        - generativelanguage.googleapis.com:443
                        - oauth2.googleapis.com:443
                        - vertexai.googleapis.com:443
                        - api.groq.com:443
                        - api.openai.com:443
                        - openai.com:443
                        - auth.openai.com:443
                        - chatgpt.com:443
                        - openrouter.ai:443
                        - api.x.ai:443
                        - registry.npmjs.org:443
                        - opencode.ai:443
                        - '*.opencode.ai:443'
                        - deb.debian.org:80
                        - dhi.io:80
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[1]
    - group:
        description: GitHub and Copilot access
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[2]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: api.business.githubcopilot.com
                          format: Bearer %s
                          header: Authorization
                        - domain: api.enterprise.githubcopilot.com
                          format: Bearer %s
                          header: Authorization
                        - domain: api.github.com
                          format: Bearer %s
                          header: Authorization
                        - domain: api.githubcopilot.com
                          format: Bearer %s
                          header: Authorization
                        - domain: api.individual.githubcopilot.com
                          format: Bearer %s
                          header: Authorization
                        - domain: copilot.github.com
                          format: Bearer %s
                          header: Authorization
                        - domain: github.com
                          format: Bearer %s
                          header: Authorization
                        - domain: raw.githubusercontent.com
                          format: Bearer %s
                          header: Authorization
                    name: GITHUB_TOKEN
                    proxyManaged: true
                phase: runtime
                service: github
              description: GitHub and Copilot access
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[2]
    - group:
        description: Google AI API access
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[3]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: aiplatform.googleapis.com
                          format: '%s'
                          header: x-goog-api-key
                        - domain: generativelanguage.googleapis.com
                          format: '%s'
                          header: x-goog-api-key
                        - domain: oauth2.googleapis.com
                          format: '%s'
                          header: x-goog-api-key
                        - domain: vertexai.googleapis.com
                          format: '%s'
                          header: x-goog-api-key
                    name: GOOGLE_GENERATIVE_AI_API_KEY
                    proxyManaged: true
                phase: runtime
                service: google
              description: Google AI API access
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[3]
    - group:
        description: Groq API access
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[4]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: api.groq.com
                          format: Bearer %s
                          header: Authorization
                    name: GROQ_API_KEY
                    proxyManaged: true
                phase: runtime
                service: groq
              description: Groq API access
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[4]
    - group:
        description: OpenAI API access (API key or ChatGPT OAuth)
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[5]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: api.openai.com
                          format: Bearer %s
                          header: Authorization
                        - domain: openai.com
                          format: Bearer %s
                          header: Authorization
                    name: OPENAI_API_KEY
                    proxyManaged: true
                oauth:
                    credentialFile:
                        path: ~/.local/share/opencode/auth.json
                        structure:
                            openai:
                                access: '{{.AccessToken}}'
                                expires: '{{.ExpiresAt}}'
                                refresh: '{{.RefreshToken}}'
                                type: oauth
                    resourceHosts:
                        - chatgpt.com
                    sentinels:
                        accessToken: oai-oat01-proxy-managed
                        refreshToken: oai-ort01-proxy-managed
                    tokenEndpoint:
                        host: auth.openai.com
                        path: /oauth/token
                phase: runtime
                service: openai
              description: OpenAI API access (API key or ChatGPT OAuth)
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[5]
    - group:
        description: Anthropic API access
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[6]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: api.anthropic.com
                          format: '%s'
                          header: x-api-key
                        - domain: claude.ai
                          format: '%s'
                          header: x-api-key
                        - domain: console.anthropic.com
                          format: '%s'
                          header: x-api-key
                    name: ANTHROPIC_API_KEY
                    proxyManaged: true
                phase: runtime
                service: anthropic
              description: Anthropic API access
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[6]
    - group:
        description: OpenRouter API access
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[7]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: openrouter.ai
                          format: Bearer %s
                          header: Authorization
                    name: OPENROUTER_API_KEY
                    proxyManaged: true
                phase: runtime
                service: openrouter
              description: OpenRouter API access
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[7]
    - group:
        description: xAI API access
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[8]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: api.x.ai
                          format: Bearer %s
                          header: Authorization
                    name: XAI_API_KEY
                    proxyManaged: true
                phase: runtime
                service: xai
              description: xAI API access
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[8]
    - group:
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[9]
              type: com.docker.sandbox/lifecycle@1
              config:
                install:
                    - command: mkdir -p /home/agent/.config/opencode && chown agent:agent /home/agent/.config /home/agent/.config/opencode
                      description: Ensure ~/.config/opencode is owned by agent
                      user: "0"
                    - command: |
                        set -e
                        model=''
                        effort=''
                        [ -n "$model$effort" ] || exit 0
                        if [ -z "$model" ]; then
                          echo "reasoningEffort=$effort needs a model: add --kit-arg model=<provider/model>. OpenCode applies an effort as a variant of a named model." >&2
                          exit 1
                        fi
                        [ -z "$effort" ] || model="$model#$effort"
                        cfg=/home/agent/.config/opencode/opencode.json
                        [ -s "$cfg" ] || echo '{}' > "$cfg"
                        tmp=$(mktemp "$cfg.XXXXXX")
                        trap 'rm -f "$tmp"' EXIT
                        jq --arg model "$model" '.model = $model' "$cfg" > "$tmp"
                        mv -f "$tmp" "$cfg"
                      description: Write the model and reasoning effort kit arguments to opencode.json
                      user: agent
                startup:
                    - command: |
                        set -e
                        [ -n "$MCP_GATEWAY_URL" ] || exit 0
                        mkdir -p "$HOME/.config/opencode"
                        cfg="$HOME/.config/opencode/opencode.json"
                        frag=/tmp/sandbox-mcp-gateway.json
                        jq -n --arg url "$MCP_GATEWAY_URL" --arg auth "Bearer $MCP_SENTINEL_TOKEN_NAME" \
                          '{"$schema": "https://opencode.ai/config.json", mcp: {"mcp-gateway": {type: "remote", url: $url, enabled: true, headers: {Authorization: $auth}}}}' > "$frag"
                        [ -f "$cfg" ] || echo '{}' > "$cfg"
                        jq -s '.[0] * .[1]' "$cfg" "$frag" > "$cfg.tmp"
                        mv "$cfg.tmp" "$cfg"
                        rm -f "$frag"
                      description: Register the sandbox MCP gateway by merging into opencode.json
                      env:
                        - MCP_GATEWAY_URL
                        - MCP_SENTINEL_TOKEN_NAME
                      user: agent
                    - command:
                        - sh
                        - -c
                        - |
                          set -e
                          umask 077
                          # Local sandboxes always carry GH_TOKEN and say via the mode var whether a
                          # credential backs it; cloud sets GH_TOKEN only when one does and no mode var.
                          [ -n "${GH_TOKEN:-}" ] || exit 0
                          [ "${SBX_CRED_GITHUB_MODE:-}" != none ] || exit 0
                          auth="$HOME/.local/share/opencode/auth.json"
                          mkdir -p "$(dirname "$auth")"
                          # A canceled start can leave its seed running; retries must recheck auth.json after it finishes.
                          exec 9>>"$(dirname "$auth")/.copilot-seed.lock"
                          flock 9
                          # mv would nest the seed inside a directory here and still exit 0.
                          if [ -e "$auth" ] && [ ! -f "$auth" ]; then
                            echo "auth.json is not a regular file; leaving the GitHub Copilot provider unseeded" >&2
                            exit 0
                          fi
                          # Every start re-fires this seed. One pass keeps an entry that fits OpenCode's Oauth schema and still
                          # carries the token as refresh (so an exchanged access survives), leaves a malformed file alone, and re-seeds the rest.
                          if ! merged=$({ if [ -s "$auth" ]; then cat "$auth"; else echo '{}'; fi; } | jq -s --arg token "$GH_TOKEN" '
                              if length != 1 or (.[0] | type) != "object" then error("auth.json must hold exactly one JSON object")
                              elif (.[0]."github-copilot" | type == "object" and .type == "oauth" and .refresh == $token
                                    and (.access | type) == "string" and (.expires | type == "number" and . >= 0 and . == floor)
                                    and ((has("accountId") | not) or (.accountId | type) == "string")
                                    and ((has("enterpriseUrl") | not) or (.enterpriseUrl | type) == "string")) then empty
                              else .[0] | ."github-copilot" = {type: "oauth", refresh: $token, access: $token, expires: 0} end'); then
                            echo "auth.json is not a single JSON object; leaving the GitHub Copilot provider unseeded" >&2
                            exit 0
                          fi
                          [ -n "$merged" ] || exit 0
                          # The temp name is unpredictable, so a stale or crashed leftover is never installed. The
                          # same uid owns this directory, so no write pattern here is a boundary against a co-resident process.
                          tmp=$(mktemp "$(dirname "$auth")/auth.json.XXXXXX")
                          trap 'rm -f "$tmp"' EXIT
                          printf '%s\n' "$merged" > "$tmp"
                          mv -f "$tmp" "$auth"
                      description: Seed OpenCode's GitHub Copilot provider from the GH_TOKEN sentinel
                      env:
                        - GH_TOKEN
                        - SBX_CRED_GITHUB_MODE
                      user: agent
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[9]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[10]
              type: com.docker.sandbox/agent-sessions@1
              config:
                prompt:
                    - run
                    - '{{.Prompt}}'
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[10]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[11]
              type: com.docker.sandbox/agent-interactive-sessions@1
              config:
                continue:
                    - --continue
                prompt:
                    - --prompt={{.Prompt}}
                resume:
                    - --session
                    - '{{.SessionID}}'
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[11]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[12]
              type: com.docker.sandbox/agent-skills@1
              config:
                path: /home/agent/.config/opencode/skills
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[12]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[13]
              type: com.docker.sandbox/agent-context@1
              config:
                contentFile: /usr/share/sandbox/kit/plore-opencode-dev/context.md.parts/0.md
                directory: /home/agent/.config/opencode
                filename: AGENTS.md
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[13]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[14]
              type: com.docker.sandbox/agent-context@2
              config:
                content: |
                    # OpenCode

                    This sandbox runs OpenCode, a multi-provider coding agent. Provider keys
                    are proxy-managed sentinels; ChatGPT-subscription OAuth renders into
                    ~/.local/share/opencode/auth.json for OpenCode's codex auth plugin.
                directory: /home/agent/.config/opencode
                filename: AGENTS.md
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[14]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[15]
              type: com.docker.sandbox/dockerd@1
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[15]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[16]
              type: com.docker.sandbox/acp@1
              config:
                agent: opencode
                command:
                    - opencode
                    - acp
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[16]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/opencode:latest
                path: capabilities[17]
              type: com.docker.sandbox/open-url@1
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/opencode:latest
        path: capabilities[17]
kits:
    - ref: docker.io/sbx/opencode:latest
      digest: sha256:65f109ef1b028dc7163a22b92f453a0357d9cb8b39644c08fb9fcaf1c9674cec
    - ref: docker.io/mmackie/plore-dotnet:1.0.1
      digest: sha256:bac0b7be5323a84423f64e72c2e354410c66894d0a5de2c4f498fe25dedc0cd9
    - ref: docker.io/mmackie/plore-dotnet-framework:1.0.1
      digest: sha256:ddd70dc5f55af166f281bbfd25be990580816d5becf494b2c4c1296a0e6e2a4e
    - ref: docker.io/mmackie/plore-node:1.0.1
      digest: sha256:ea2cab40db33495d15ece3ec5f0c3d6958698121de9f08ca8b2adb7e96cba405
    - ref: docker.io/mmackie/plore-angular-testing:1.0.1
      digest: sha256:90eac75725240f2e50f8a70db8ec63588e02ff275ff833bfb6bcc0e6ea1a8938