feat: add agent runtime skeleton

This commit is contained in:
HWLAB Code Queue
2026-05-21 14:57:00 +00:00
parent 6509a35804
commit 6fc28c3f4a
11 changed files with 694 additions and 9 deletions
+17 -1
View File
@@ -1,5 +1,21 @@
#!/usr/bin/env sh
set -eu
echo "HWLAB worker entrypoint placeholder"
repo_root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
workspace_root="${HWLAB_WORKSPACE_ROOT:-/workspace}"
agent_session_id="${HWLAB_AGENT_SESSION_ID:-agent_local}"
project_id="${HWLAB_PROJECT_ID:-prj_local}"
skill_commit_id="${HWLAB_SKILL_COMMIT_ID:-}"
mkdir -p "$workspace_root"
echo "HWLAB worker starting"
echo "repo=$repo_root"
echo "workspace=$workspace_root"
echo "agentSessionId=$agent_session_id"
echo "projectId=$project_id"
if [ -n "$skill_commit_id" ]; then
echo "skillsCommitId=$skill_commit_id"
fi
exec "$@"