Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.25.0'
- name: Check code formatting
run: |
if [ -n "$(gofmt -s -l .)" ]; then
echo "Go code is not formatted:"
gofmt -s -d .
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
run: golangci-lint run

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.25.0'
- name: Build
run: go build -v ./...

docker:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: warpdotdev/warp-agent-worker:latest
12 changes: 6 additions & 6 deletions internal/types/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ type TaskDefinition struct {

// AmbientAgentConfig represents the agent configuration
type AmbientAgentConfig struct {
EnvironmentID *string `json:"environment_id,omitempty"`
BasePrompt *string `json:"base_prompt,omitempty"`
ModelID *string `json:"model_id,omitempty"`
ProfileID *string `json:"profile_id,omitempty"`
SkillSpec *string `json:"skill_spec,omitempty"`
MCPServers map[string]json.RawMessage `json:"mcp_servers,omitempty"`
EnvironmentID *string `json:"environment_id,omitempty"`
BasePrompt *string `json:"base_prompt,omitempty"`
ModelID *string `json:"model_id,omitempty"`
ProfileID *string `json:"profile_id,omitempty"`
SkillSpec *string `json:"skill_spec,omitempty"`
MCPServers map[string]json.RawMessage `json:"mcp_servers,omitempty"`
}

// Task represents an ambient agent job.
Expand Down