Skip to content

Commit c1a2ced

Browse files
committed
Merge remote-tracking branch 'upstream/main' into streaming-responses
2 parents e31b728 + 1a76d34 commit c1a2ced

File tree

396 files changed

+6749
-3303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

396 files changed

+6749
-3303
lines changed

.github/prompts/update-documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ You are a world-class documentation writer tasked with keeping the OpenHands Age
1414
### 1. Codebase Analysis
1515

1616
- Scan `examples/` for available examples
17-
- Scan `openhands/tools/` for all available runtime tools
18-
- Check `openhands/sdk/tool/builtins/` for built-in tools
17+
- Scan `openhands-tools/` for all available runtime tools
18+
- Check `openhands-sdk/openhands/tool/builtins/` for built-in tools
1919
- Identify any new tools or removed tools since last update
2020

2121
### 2. Documentation Review

.github/workflows/assign-reviews.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ permissions:
2222

2323
jobs:
2424
run-task:
25-
runs-on: ubuntu-latest
25+
runs-on: blacksmith-4vcpu-ubuntu-2404
2626
env:
2727
# Configuration (modify these values as needed)
28-
AGENT_SCRIPT_URL:
29-
https://raw.githubusercontent.com/All-Hands-AI/agent-sdk/main/examples/03_github_workflows/01_basic_action/agent_script.py
28+
AGENT_SCRIPT_URL: https://raw.githubusercontent.com/OpenHands/agent-sdk/main/examples/03_github_workflows/01_basic_action/agent_script.py
3029
# Provide either PROMPT_LOCATION (URL/file) OR PROMPT_STRING (direct text), not both
3130
# Option 1: Use a URL or file path for the prompt
3231
PROMPT_LOCATION: ''
@@ -79,23 +78,23 @@ jobs:
7978
LLM_BASE_URL: https://llm-proxy.eval.all-hands.dev
8079
steps:
8180
- name: Checkout repository
82-
uses: actions/checkout@v4
81+
uses: actions/checkout@v5
8382

8483
- name: Set up Python
85-
uses: actions/setup-python@v5
84+
uses: actions/setup-python@v6
8685
with:
8786
python-version: '3.12'
8887

8988
- name: Install uv
90-
uses: astral-sh/setup-uv@v6
89+
uses: astral-sh/setup-uv@v7
9190
with:
9291
enable-cache: true
9392

9493
- name: Install OpenHands dependencies
9594
run: |
9695
# Install OpenHands SDK and tools from git repository
97-
uv pip install --system "openhands-sdk @ git+https://github.com/All-Hands-AI/agent-sdk.git@main#subdirectory=openhands/sdk"
98-
uv pip install --system "openhands-tools @ git+https://github.com/All-Hands-AI/agent-sdk.git@main#subdirectory=openhands/tools"
96+
uv pip install --system "openhands-sdk @ git+https://github.com/OpenHands/agent-sdk.git@main#subdirectory=openhands-sdk"
97+
uv pip install --system "openhands-tools @ git+https://github.com/OpenHands/agent-sdk.git@main#subdirectory=openhands-tools"
9998
10099
- name: Check required configuration
101100
env:

.github/workflows/deploy-docs.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@ name: Dispatch to docs repo
33

44
on:
55
push:
6-
branches: [main]
6+
branches:
7+
- main
78
paths:
8-
- docs/**
9+
- openhands-agent-server/**
910
workflow_dispatch:
10-
1111
jobs:
1212
dispatch:
13-
runs-on: blacksmith-2vcpu-ubuntu-2404
14-
strategy:
15-
matrix:
16-
repo: [All-Hands-AI/docs]
13+
runs-on: blacksmith-4vcpu-ubuntu-2404
14+
permissions:
15+
contents: write
1716
steps:
18-
- name: Push to docs repo
17+
- name: Trigger docs repo sync
1918
uses: peter-evans/repository-dispatch@v4
2019
with:
2120
token: ${{ secrets.ALLHANDS_BOT_GITHUB_PAT }}
22-
repository: ${{ matrix.repo }}
21+
repository: OpenHands/docs
2322
event-type: update
24-
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "module": "agent-sdk", "branch": "main"}'
23+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

.github/workflows/oh-update-documentation.yml.back

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
update-docs:
11-
runs-on: ubuntu-latest
11+
runs-on: blacksmith-4vcpu-ubuntu-2404
1212
permissions:
1313
contents: write
1414
pull-requests: write

.github/workflows/pr-review-by-openhands.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ permissions:
1414
jobs:
1515
pr-review:
1616
if: github.event.label.name == 'review-this'
17-
runs-on: ubuntu-latest
17+
runs-on: blacksmith-4vcpu-ubuntu-2404
1818
env:
19-
# Configuration (modify these values as needed)
2019
LLM_MODEL: litellm_proxy/claude-sonnet-4-5-20250929
2120
LLM_BASE_URL: https://llm-proxy.eval.all-hands.dev
2221
# PR context will be automatically provided by the agent script
@@ -28,13 +27,13 @@ jobs:
2827
REPO_NAME: ${{ github.repository }}
2928
steps:
3029
- name: Checkout agent-sdk repository
31-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3231
with:
33-
repository: All-Hands-AI/agent-sdk
32+
repository: OpenHands/agent-sdk
3433
path: agent-sdk
3534

3635
- name: Checkout PR repository
37-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3837
with:
3938
# Fetch the full history to get the diff
4039
fetch-depth: 0
@@ -43,12 +42,12 @@ jobs:
4342
ref: ${{ github.event.pull_request.head.ref }}
4443

4544
- name: Set up Python
46-
uses: actions/setup-python@v5
45+
uses: actions/setup-python@v6
4746
with:
4847
python-version: '3.12'
4948

5049
- name: Install uv
51-
uses: astral-sh/setup-uv@v6
50+
uses: astral-sh/setup-uv@v7
5251
with:
5352
enable-cache: true
5453

@@ -61,8 +60,8 @@ jobs:
6160
- name: Install OpenHands dependencies
6261
run: |
6362
# Install OpenHands SDK and tools from git repository
64-
uv pip install --system "openhands-sdk @ git+https://github.com/All-Hands-AI/agent-sdk.git@main#subdirectory=openhands/sdk"
65-
uv pip install --system "openhands-tools @ git+https://github.com/All-Hands-AI/agent-sdk.git@main#subdirectory=openhands/tools"
63+
uv pip install --system "openhands-sdk @ git+https://github.com/OpenHands/agent-sdk.git@main#subdirectory=openhands-sdk"
64+
uv pip install --system "openhands-tools @ git+https://github.com/OpenHands/agent-sdk.git@main#subdirectory=openhands-tools"
6665
6766
- name: Check required configuration
6867
env:

.github/workflows/pypi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
publish:
10-
runs-on: ubuntu-latest
10+
runs-on: blacksmith-4vcpu-ubuntu-2404
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v5

.github/workflows/server.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
image:
1818
description: GHCR image name
1919
type: string
20-
default: ghcr.io/all-hands-ai/agent-server
20+
default: ghcr.io/openhands/agent-server
2121
platforms:
2222
description: Target platforms
2323
type: string
@@ -121,7 +121,6 @@ jobs:
121121
- name: Checkout PR branch
122122
uses: actions/checkout@v5
123123
with:
124-
ref: ${{ github.head_ref }}
125124
fetch-depth: 0
126125

127126
- name: Install uv
@@ -130,7 +129,7 @@ jobs:
130129
version: latest
131130

132131
- name: Install Node.js (for npx)
133-
uses: actions/setup-node@v5
132+
uses: actions/setup-node@v6
134133
with:
135134
node-version: 22
136135

@@ -147,10 +146,12 @@ jobs:
147146
148147
build-and-push-image:
149148
name: Build & Push
150-
# Run on all commits (push events and pull requests)
149+
# Run on push events and pull requests from the same repository (not forks)
150+
# Fork PRs cannot push to GHCR and would fail authentication
151151
if: >
152152
github.event_name == 'push' ||
153-
github.event_name == 'pull_request'
153+
(github.event_name == 'pull_request' &&
154+
!github.event.pull_request.head.repo.fork)
154155
strategy:
155156
fail-fast: false
156157
matrix:
@@ -176,7 +177,7 @@ jobs:
176177
runs-on: ${{ matrix.runner }}
177178

178179
env:
179-
IMAGE: ${{ inputs.image != '' && inputs.image || 'ghcr.io/all-hands-ai/agent-server' }}
180+
IMAGE: ${{ inputs.image != '' && inputs.image || 'ghcr.io/openhands/agent-server' }}
180181
BASE_IMAGE: ${{ inputs.base_image != '' && inputs.base_image || matrix.base_image }}
181182
CUSTOM_TAGS: ${{ matrix.name }}
182183
TARGET: binary
@@ -208,7 +209,7 @@ jobs:
208209
id: build
209210
run: |
210211
uv sync --frozen
211-
uv run ./openhands/agent_server/docker/build.py
212+
uv run ./openhands-agent-server/openhands/agent_server/docker/build.py
212213
213214
- name: Summary (${{ matrix.name }}) - outputs
214215
run: |
@@ -244,7 +245,7 @@ jobs:
244245
# Run if it's a PR and the matrix job completed (even if some variants failed)
245246
if: github.event_name == 'pull_request' && always() && (needs.build-and-push-image.result == 'success' || needs.build-and-push-image.result ==
246247
'failure')
247-
runs-on: ubuntu-latest
248+
runs-on: blacksmith-4vcpu-ubuntu-2404
248249
outputs:
249250
build_summary: ${{ steps.consolidate.outputs.build_summary }}
250251
steps:
@@ -316,7 +317,7 @@ jobs:
316317
BUILD_SUMMARY=$(jq -n \
317318
--arg image "$IMAGE" \
318319
--arg short_sha "$SHORT_SHA" \
319-
--arg ghcr_url "https://github.com/All-Hands-AI/agent-sdk/pkgs/container/agent-server" \
320+
--arg ghcr_url "https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server" \
320321
--arg all_tags "$ALL_TAGS" \
321322
--argjson variants "$VARIANTS_JSON" \
322323
'{

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: tj-actions/changed-files@v47
2525
with:
2626
files: |
27-
openhands/sdk/**
27+
openhands-sdk/**
2828
tests/sdk/**
2929
pyproject.toml
3030
uv.lock
@@ -59,7 +59,7 @@ jobs:
5959
rm -f .coverage
6060
CI=true uv run python -m pytest -vvs \
6161
--forked \
62-
--cov=openhands/sdk \
62+
--cov=openhands-sdk \
6363
--cov-report=term-missing \
6464
--cov-fail-under=0 \
6565
--cov-config=pyproject.toml \
@@ -90,7 +90,7 @@ jobs:
9090
uses: tj-actions/changed-files@v47
9191
with:
9292
files: |
93-
openhands/tools/**
93+
openhands-tools/**
9494
tests/tools/**
9595
pyproject.toml
9696
uv.lock
@@ -113,7 +113,7 @@ jobs:
113113
rm -f .coverage
114114
CI=true uv run python -m pytest -vvs \
115115
--forked \
116-
--cov=openhands/tools \
116+
--cov=openhands-tools \
117117
--cov-report=term-missing \
118118
--cov-fail-under=0 \
119119
--cov-config=pyproject.toml \
@@ -144,7 +144,7 @@ jobs:
144144
uses: tj-actions/changed-files@v47
145145
with:
146146
files: |
147-
openhands/agent_server/**
147+
openhands-agent-server/**
148148
tests/agent_server/**
149149
pyproject.toml
150150
uv.lock
@@ -167,7 +167,7 @@ jobs:
167167
rm -f .coverage
168168
CI=true uv run python -m pytest -vvs \
169169
--forked \
170-
--cov=openhands/agent_server \
170+
--cov=openhands-agent-server \
171171
--cov-report=term-missing \
172172
--cov-fail-under=0 \
173173
--cov-config=pyproject.toml \

0 commit comments

Comments
 (0)