mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 16:19:05 +08:00
chore: bump SDK deps (software-agent-sdk 1.44.0, automation 1.9.0, extensions 0.19.0) (#16968)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
*
|
||||
* Usage:
|
||||
* node scripts/check-sdk-version-sync.mjs
|
||||
* EXPECTED_SDK_VERSION=1.42.1 node scripts/check-sdk-version-sync.mjs
|
||||
* EXPECTED_SDK_VERSION=1.44.0 node scripts/check-sdk-version-sync.mjs
|
||||
* node scripts/check-sdk-version-sync.mjs --check-pypi
|
||||
*
|
||||
* Environment variables:
|
||||
@@ -78,7 +78,7 @@ Triggering from other repos:
|
||||
-H "Authorization: token \$GITHUB_TOKEN" \\
|
||||
-H "Accept: application/vnd.github.v3+json" \\
|
||||
https://api.github.com/repos/OpenHands/OpenHands/dispatches \\
|
||||
-d '{"event_type": "sdk-version-check", "client_payload": {"version": "1.42.1"}}'
|
||||
-d '{"event_type": "sdk-version-check", "client_payload": {"version": "1.44.0"}}'
|
||||
`);
|
||||
process.exit(0);
|
||||
}
|
||||
@@ -260,9 +260,9 @@ async function fetchPyPIDependencies(packageName, version) {
|
||||
* Parse PyPI requires_dist array and extract SDK package versions
|
||||
*
|
||||
* PyPI returns dependencies in PEP 508 format like:
|
||||
* "openhands-sdk>=1.42.1,<2.0.0"
|
||||
* "openhands-tools==1.42.1"
|
||||
* "openhands-workspace (>=1.42.1)"
|
||||
* "openhands-sdk>=1.44.0,<2.0.0"
|
||||
* "openhands-tools==1.44.0"
|
||||
* "openhands-workspace (>=1.44.0)"
|
||||
*/
|
||||
function parseSdkVersionsFromRequiresDist(requiresDist) {
|
||||
const versions = {};
|
||||
@@ -276,7 +276,7 @@ function parseSdkVersionsFromRequiresDist(requiresDist) {
|
||||
}
|
||||
|
||||
// Extract the version number - look for patterns like:
|
||||
// ">=1.42.1", "==1.42.1", "(>=1.42.1)", "~=1.42.1"
|
||||
// ">=1.44.0", "==1.44.0", "(>=1.44.0)", "~=1.44.0"
|
||||
// After the package name and before any comma or closing paren
|
||||
const versionPattern = /[><=~!]+\s*([0-9]+(?:\.[0-9]+)*)/;
|
||||
const match = dep.match(versionPattern);
|
||||
|
||||
+15
-1
@@ -401,6 +401,16 @@ export function validateFrontendDependencies(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Modules the agent-server imports at startup (`--import-modules`). They are
|
||||
* resolved from `tools/`, which `buildAgentServerEnv` exposes through
|
||||
* OH_EXTRA_PYTHON_PATH. Importing `canvas_ui_tool` eagerly registers the SDK's
|
||||
* builtin FinishTool so automation presets (openhands-automation >= 1.9.0) can
|
||||
* resolve it on the remote conversations they dispatch — see the note at the
|
||||
* bottom of tools/canvas_ui_tool.py.
|
||||
*/
|
||||
export const AGENT_SERVER_IMPORT_MODULES = "canvas_ui_tool";
|
||||
|
||||
/**
|
||||
* Build the uvx command and arguments for running agent-server.
|
||||
*
|
||||
@@ -411,7 +421,7 @@ export function validateFrontendDependencies(
|
||||
* edits are picked up without a manual reinstall. The agent-server itself
|
||||
* is rebuilt from local source on each invocation (--reinstall).
|
||||
* - OH_AGENT_SERVER_GIT_REF: Git commit SHA or branch name
|
||||
* - OH_AGENT_SERVER_VERSION: Specific PyPI version (e.g., "1.42.1")
|
||||
* - OH_AGENT_SERVER_VERSION: Specific PyPI version (e.g., "1.44.0")
|
||||
*
|
||||
* If none are set, defaults to the released version specified by
|
||||
* DEFAULT_AGENT_SERVER_VERSION. Set OH_AGENT_SERVER_GIT_REF to use a
|
||||
@@ -516,6 +526,10 @@ export function buildAgentServerCommand(env = process.env) {
|
||||
source = `PyPI (${DEFAULT_AGENT_SERVER_VERSION}, default)`;
|
||||
}
|
||||
|
||||
// Everything after the executable name is an agent-server CLI argument.
|
||||
// Import the registration module before any conversation is created.
|
||||
uvxArgs.push("--import-modules", AGENT_SERVER_IMPORT_MODULES);
|
||||
|
||||
return {
|
||||
command: "uvx",
|
||||
args: uvxArgs,
|
||||
|
||||
Reference in New Issue
Block a user