Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Fix CI: Link Checker errors & webhook bugs (#1124)
ddupont11d2b9de9146
diff --git a/.github/workflows/ci-check-links.yml b/.github/workflows/ci-check-links.ymlindex edc52f3acf..ea7ecd7f27 100644--- a/.github/workflows/ci-check-links.yml+++ b/.github/workflows/ci-check-links.yml@@ -1,7 +1,7 @@name: "CI: Check Links"on:- pull_request_target:+ pull_request:branches: [main, master]push:branches:@@ -21,6 +21,7 @@ jobs:with:# Check all markdown files# Exclude news.ycombinator.com as it returns 503 for automated requests (anti-bot protection)+ # Specific URL exclusions are in .lycheeignoreargs: --verbose --no-progress --max-cache-age 1d --accept 200..=299,403 --exclude '^file://' --exclude 'localhost' --exclude '127\.0\.0\.1' --exclude 'news\.ycombinator\.com' '**/*.md'# Output results to file for parsingoutput: lychee-output.md@@ -33,10 +34,16 @@ jobs:id: parse-resultsif: always()run: |- # Use lychee exit code: 0 = success, >0 = errors foundEXIT_CODE="${{ steps.lychee.outputs.exit_code }}"- echo "Exit code: $EXIT_CODE"+ # Debug info+ echo "--- DEBUG ---"+ echo "Exit code: '$EXIT_CODE'"+ echo "Working dir: $(pwd)"+ echo "lychee-output.md exists: $(test -f lychee-output.md && echo YES || echo NO)"+ echo "GITHUB_ENV path: $GITHUB_ENV"+ ls -la lychee-output.md 2>/dev/null || echo "lychee-output.md not found"+ echo "--- END DEBUG ---"# Show summary if output file existsif [ -f "lychee-output.md" ]; then@@ -44,23 +51,38 @@ jobs:cat lychee-output.mdfi- # Set status based on exit code- if [ "$EXIT_CODE" = "0" ]; then- echo "STATUS_ICON=✅" >> $GITHUB_ENV- echo "STATUS_TEXT=All links are working" >> $GITHUB_ENV- echo "COLOR=#36a64f" >> $GITHUB_ENV- elif [ "$EXIT_CODE" = "2" ]; then- echo "STATUS_ICON=❌" >> $GITHUB_ENV- echo "STATUS_TEXT=Link checker failed to run" >> $GITHUB_ENV- echo "COLOR=#dc3545" >> $GITHUB_ENV+ # Set status: check output file exists first (means lychee actually ran)+ if [ ! -f "lychee-output.md" ]; then+ echo "STATUS_ICON=❌" >> "$GITHUB_ENV"+ echo "STATUS_TEXT=Link checker failed to run (no output file)" >> "$GITHUB_ENV"+ echo "COLOR=#dc3545" >> "$GITHUB_ENV"+ elif [ "$EXIT_CODE" = "0" ]; then+ echo "STATUS_ICON=✅" >> "$GITHUB_ENV"+ echo "STATUS_TEXT=All links are working" >> "$GITHUB_ENV"+ echo "COLOR=#36a64f" >> "$GITHUB_ENV"else- echo "STATUS_ICON=⚠️" >> $GITHUB_ENV- echo "STATUS_TEXT=Found broken links" >> $GITHUB_ENV- echo "COLOR=#ffa500" >> $GITHUB_ENV+ echo "STATUS_ICON=⚠️" >> "$GITHUB_ENV"+ echo "STATUS_TEXT=Found broken links (exit code: $EXIT_CODE)" >> "$GITHUB_ENV"+ echo "COLOR=#ffa500" >> "$GITHUB_ENV"fi+ echo "Wrote status to GITHUB_ENV"++ # Extract up to 5 broken links (lychee format: "* [404] <https://...> | ...")+ if [ -f "lychee-output.md" ]; then+ BROKEN=$(grep -oP '\[\d+\] <?\Khttps?://[^\s|>]+' lychee-output.md | sed 's/>*$//' | head -5 | sed 's/^/• /' || true)+ echo "Extracted broken links: '$BROKEN'"+ else+ BROKEN=""+ fi+ {+ echo "BROKEN_LINKS<<EOF"+ echo "$BROKEN"+ echo "EOF"+ } >> "$GITHUB_ENV"+- name: Send results to Slack- if: always() && github.ref == 'refs/heads/main'+ if: always()uses: rtCamp/action-slack-notify@v2env:SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}@@ -72,4 +94,6 @@ jobs:*Branch:* `${{ github.ref_name }}`+ ${{ env.BROKEN_LINKS }}+<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}${{ github.event.pull_request.number && format('?pr={0}', github.event.pull_request.number) || '' }}|View broken links>diff --git a/.lycheeignore b/.lycheeignorenew file mode 100644index 0000000000..a47e66bc53--- /dev/null+++ b/.lycheeignore@@ -0,0 +1,2 @@+https://cua.ai/+https://api.cua.ai/diff --git a/blog/build-your-own-operator-on-macos-1.md b/blog/build-your-own-operator-on-macos-1.mdindex 6d0df4eaed..93f6e63b5f 100644--- a/blog/build-your-own-operator-on-macos-1.md+++ b/blog/build-your-own-operator-on-macos-1.md@@ -84,7 +84,7 @@ Think of it like this:3. It sends back instructions (like "click here" or "type this")4. We execute those instructions in our VM-The [Responses API](https://platform.openai.com/docs/guides/responses) is OpenAI's newest way to interact with their AI models. It comes with several built-in tools:+The [Responses API](https://developers.openai.com/api/docs/guides/migrate-to-responses) is OpenAI's newest way to interact with their AI models. It comes with several built-in tools:- **Web search**: Let the AI search the internet- **File search**: Help the AI find documentsdiff --git a/blog/build-your-own-operator-on-macos-2.md b/blog/build-your-own-operator-on-macos-2.mdindex c350363b9f..a6edd63bb4 100644--- a/blog/build-your-own-operator-on-macos-2.md+++ b/blog/build-your-own-operator-on-macos-2.md@@ -470,7 +470,7 @@ async for result in agent.run(task):print(f" Text: {action.get('text')}")```-This detailed information is invaluable for debugging, logging, and understanding the agent's decision-making process in an agentic system. More details can be found in the [OpenAI Agent SDK Specification](https://platform.openai.com/docs/guides/responses-vs-chat-completions).+This detailed information is invaluable for debugging, logging, and understanding the agent's decision-making process in an agentic system. More details can be found in the [OpenAI Agent SDK Specification](https://developers.openai.com/api/docs/guides/migrate-to-responses).## Building a Gradio UIdiff --git a/libs/python/cua-cli/README.md b/libs/python/cua-cli/README.mdindex f7f02df1a0..00b5585890 100644--- a/libs/python/cua-cli/README.md+++ b/libs/python/cua-cli/README.md@@ -94,7 +94,7 @@ Individual permissions: `sandbox:list`, `sandbox:create`, `sandbox:delete`, `san## Environment Variables- `CUA_API_KEY`: API key for authentication-- `CUA_API_BASE`: API base URL (default: https://api.cua.ai)+- `CUA_API_BASE`: API base URL (default: `https://api.cua.ai`)- `CUA_WEBSITE_URL`: Website URL for OAuth (default: https://cua.ai)- `CUA_MCP_PERMISSIONS`: Default MCP permissions (comma-separated)- `CUA_SANDBOX`: Default sandbox name for computer commands