Skip to content

feat: allow editor agent to fetch remote web pages via cURL#141

Open
JOORVIS wants to merge 2 commits intomainfrom
feature/issue-52-editor-agent-remote-page-curl
Open

feat: allow editor agent to fetch remote web pages via cURL#141
JOORVIS wants to merge 2 commits intomainfrom
feature/issue-52-editor-agent-remote-page-curl

Conversation

@JOORVIS
Copy link
Collaborator

@JOORVIS JOORVIS commented Feb 22, 2026

Summary

  • add a new fetch_remote_web_page editor-agent tool and wire it through ContentEditorAgent + WorkspaceToolingServiceInterface
  • implement cURL-backed remote page retrieval in WorkspaceToolingFacade with URL validation (http/https only), timeout limits, metadata parsing, bounded content truncation, and structured non-throwing JSON error responses
  • update prompt template guidance, progress message mapping/translations, and unit tests for facade behavior, tool registration, and progress/template assertions

Test plan

  • mise run tests
  • mise run quality (fails in this workspace due pre-existing ESLint errors in .productbuilder-runtime/bin/index.js, outside this change set)

Closes #52

Expose a new fetch_remote_web_page tool so the editor agent can retrieve external page content with safe URL validation, bounded output, and structured JSON responses for reliable downstream handling.
@manuelkiessling
Copy link
Member

Looks like the quality checks are failing (PHPStan).

Add explicit string assertions for JSON-decoded error and content fields so phpstan can infer safe string usage in the new remote web page tool tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow the Editor Agent to retrieve remote web page contents via cURL

2 participants