HUB
Sign inSign up

mmackie/plore-copilot-dev:1.0.1

Manifest digest

sha256:e16cf31d04fccf813f741bc750a92c3326bd81013434d16ef460da10b32b118e

Last pushed

6 days by mmackie

Type

Sandbox Kit

Manifest digest

sha256:e16cf31d04fccf813f741bc750a92c3326bd81013434d16ef460da10b32b118e

yaml
schemaVersion: "3"
displayName: Plore copilot development
version: 1.0.1
licenses:
    - LicenseRef-Proprietary
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/copilot:latest
                path: capabilities[0]
              type: com.docker.sandbox/sbx@1
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[0]
    - group:
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[1]
              type: com.docker.sandbox/network-policy@1
              config:
                runtime:
                    allow:
                        - 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
                        - release-assets.githubusercontent.com:443
                        - deb.debian.org:80
                        - dhi.io:80
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[1]
    - group:
        description: GitHub API access for git and gh
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[2]
              type: com.docker.sandbox/credential@1
              config:
                apiKey:
                    inject:
                        - domain: api.github.com
                          format: Bearer %s
                          header: Authorization
                        - domain: github.com
                          format: Bearer %s
                          header: Authorization
                    name: GH_TOKEN
                    proxyManaged: true
                phase: runtime
                service: github
              description: GitHub API access for git and gh
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[2]
    - group:
        description: Copilot request access, separable from the broader github token
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[3]
              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.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
                    name: COPILOT_GITHUB_TOKEN
                    proxyManaged: true
                phase: runtime
                service: copilot
              description: Copilot request access, separable from the broader github token
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[3]
    - group:
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[4]
              type: com.docker.sandbox/lifecycle@1
              config:
                install:
                    - command: mkdir -p /home/agent/.copilot && chown agent:agent /home/agent/.copilot
                      description: Ensure .copilot is owned by agent before bind mounts and the config seed run
                      user: "0"
                    - command: |
                        set -e
                        cfg=/home/agent/.copilot/config.json
                        if [ -e "$cfg" ]; then exit 0; fi
                        if [ -z "$WORKSPACE_DIR" ]; then
                          echo "WORKSPACE_DIR unset; skipping Copilot trusted-folder seed" >&2
                          exit 0
                        fi
                        esc=$(printf '%s' "$WORKSPACE_DIR" | sed 's/\\/\\\\/g; s/"/\\"/g')
                        printf '{"trusted_folders": ["%s"]}\n' "$esc" > "$cfg"
                      description: Copilot config with trusted workspace folder
                      env:
                        - WORKSPACE_DIR
                      user: agent
                    - command: |
                        set -e
                        model=''
                        effort=''
                        [ -n "$model$effort" ] || exit 0
                        cfg=/home/agent/.copilot/settings.json
                        [ -s "$cfg" ] || echo '{}' > "$cfg"
                        tmp=$(mktemp "$cfg.XXXXXX")
                        trap 'rm -f "$tmp"' EXIT
                        jq --arg model "$model" --arg effort "$effort" '
                          if $model != "" then .model = $model else . end
                          | if $effort != "" then .effortLevel = $effort else . end' "$cfg" > "$tmp"
                        mv -f "$tmp" "$cfg"
                      description: Write the model and reasoning effort kit arguments to ~/.copilot/settings.json
                      user: agent
                startup:
                    - command:
                        - sh
                        - -c
                        - |
                          set -e
                          [ -n "$MCP_GATEWAY_URL" ] || exit 0
                          cfg="$HOME/.copilot/mcp-config.json"
                          dir=$(dirname "$cfg")
                          mkdir -p "$dir"
                          gateway=$(cat <<EOF
                          {
                            "mcpServers": {
                              "mcp-gateway": {
                                "type": "http",
                                "url": "$MCP_GATEWAY_URL",
                                "headers": {
                                  "Authorization": "Bearer $MCP_SENTINEL_TOKEN_NAME"
                                },
                                "tools": ["*"]
                              }
                            }
                          }
                          EOF
                          )
                          # Two overlapping starts would read-modify-write the same file.
                          exec 9>>"$dir/.mcp-config.lock"
                          flock 9
                          # mv would nest the config inside a directory here and still exit 0.
                          if [ -e "$cfg" ] && [ ! -f "$cfg" ]; then
                            echo "mcp-config.json is not a regular file; leaving the MCP gateway unregistered" >&2
                            exit 0
                          fi
                          if ! merged=$({ if [ -s "$cfg" ]; then cat "$cfg"; else echo '{}'; fi; printf '%s\n' "$gateway"; } | jq -s '
                              if length != 2 or (.[0] | type) != "object" or ((.[0].mcpServers // {}) | type) != "object" then
                                error("mcp-config.json must hold one JSON object whose mcpServers is an object")
                              else
                                .[0] + {mcpServers: ((.[0].mcpServers // {}) + .[1].mcpServers)}
                              end'); then
                            echo "mcp-config.json is not readable as JSON; leaving the MCP gateway unregistered" >&2
                            exit 0
                          fi
                          # The temp name is unpredictable, so a stale or crashed leftover is never installed.
                          tmp=$(mktemp "$dir/mcp-config.json.XXXXXX")
                          trap 'rm -f "$tmp"' EXIT
                          printf '%s\n' "$merged" > "$tmp"
                          mv -f "$tmp" "$cfg"
                      description: Register the sandbox MCP gateway in ~/.copilot/mcp-config.json
                      env:
                        - MCP_GATEWAY_URL
                        - MCP_SENTINEL_TOKEN_NAME
                      user: agent
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[4]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[5]
              type: com.docker.sandbox/agent-context@1
              config:
                contentFile: /usr/share/sandbox/kit/plore-copilot-dev/context.md.parts/0.md
                filename: AGENTS.md
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[5]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[6]
              type: com.docker.sandbox/agent-context@2
              config:
                content: |
                    GitHub Copilot is installed as `copilot`. Authentication and network access follow this Kit's capability declarations.
                filename: AGENTS.md
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[6]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[7]
              type: com.docker.sandbox/agent-sessions@1
              config:
                prompt:
                    - -p
                    - '{{.Prompt}}'
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[7]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[8]
              type: com.docker.sandbox/agent-interactive-sessions@1
              config:
                continue:
                    - --continue
                prompt:
                    - -i
                    - '{{.Prompt}}'
                resume:
                    - --resume
                    - '{{.SessionID}}'
                sessionPicker:
                    - --resume
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[8]
    - group:
        optional: true
        capabilities:
            - source:
                kit: docker.io/sbx/copilot:latest
                path: capabilities[9]
              type: com.docker.sandbox/acp@1
              config:
                agent: copilot
                command:
                    - copilot
                    - --acp
      declarationBlocks:
        - "4:0"
      source:
        kit: docker.io/sbx/copilot:latest
        path: capabilities[9]
kits:
    - ref: docker.io/sbx/copilot:latest
      digest: sha256:befc4266f0f20cfc9e7f4a1e2f09023284221060ea319e1def3c8f41eae51cfd
    - 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