Skip to content

fix: Windows/PowerShell docs + public_url for agent-storage:// images (#31)#32

Merged
web3guru888 merged 1 commit intomainfrom
fix/issue-31-windows-docs-public-url
May 4, 2026
Merged

fix: Windows/PowerShell docs + public_url for agent-storage:// images (#31)#32
web3guru888 merged 1 commit intomainfrom
fix/issue-31-windows-docs-public-url

Conversation

@web3guru888
Copy link
Copy Markdown
Collaborator

Fixes #31 — two improvements based on community feedback from @yash.raj.


Summary of changes

🖼️ public_url for agent-storage:// image responses

When Agentverse image agents return images via agent-storage:// URIs, the response now also includes a public_url field — a direct browser-openable HTTPS URL.

Before:

{
  "status": "success",
  "image_url": "agent-storage://https://agentverse.ai/v1/storage/47cecfda-...",
  ...
}

After:

{
  "status": "success",
  "image_url": "agent-storage://https://agentverse.ai/v1/storage/47cecfda-...",
  "public_url": "https://agentverse.ai/v1/storage/47cecfda-...",
  ...
}

Files changed:

  • skills/_common/agentverse_relay.py — new resolve_public_url() and enrich_with_public_url() helpers
  • skills/agentverse-image-gen/scripts/generate_image.py — adds public_url to success response
  • skills/agentverse-chat/scripts/agentverse_chat.py — enriches resource responses with public_url
  • skills/agentverse-image-gen/SKILL.md — updated output examples for both CDN and agent-storage cases

🪟 Windows / PowerShell documentation

Added full Windows support docs so users on PowerShell are not blocked by Unix-only commands.

Files changed:

  • README.md — separate macOS/Linux and PowerShell command blocks in Quick Start; new dedicated Windows / PowerShell section with $env:VAR syntax, py launcher, backtick line continuation, persistent env var setup, and troubleshooting tips
  • docs/authentication.md — PowerShell $env: equivalents for both API keys
  • docs/troubleshooting.md — PowerShell variant for 'key not set' error; new Windows / PowerShell Issues section

Tests

  • All 19 unit tests pass (pytest tests/ --ignore=tests/test_integration.py)
  • New utility functions verified: URI stripping, https passthrough, unknown schemes, selective enrichment, no-mutation guarantee

Checklist

  • Unit tests pass
  • All modified Python files parse cleanly
  • CHANGELOG.md updated
  • SKILL.md version bumped (1.0.0 → 1.1.0)

…#31)

## Changes

### feat: public_url field for agent-storage:// image responses
- Add resolve_public_url() to _common/agentverse_relay.py: strips the
  agent-storage:// prefix to expose a direct browser-openable HTTPS URL
- Add enrich_with_public_url() to post-process resource result lists
- generate_image.py: success response now includes public_url when the
  image_url is an agent-storage:// URI
- agentverse_chat.py: resource responses enriched with public_url before
  returning results to the caller
- SKILL.md (agentverse-image-gen): updated output examples to show both
  cases (CDN URL and agent-storage:// with public_url)

### docs: Windows / PowerShell support
- README.md: separate macOS/Linux and Windows/PowerShell command blocks in
  Quick Start; new dedicated 'Windows / PowerShell' section with full setup
  guide, command cheat sheet, and troubleshooting tips
- docs/authentication.md: PowerShell $env: equivalents for both
  AGENTVERSE_API_KEY and ASI_ONE_API_KEY
- docs/troubleshooting.md: PowerShell variant for 'API key not set' error;
  new 'Windows / PowerShell Issues' section covering py launcher, env var
  persistence, SSL errors, and backtick line continuation

Closes #31
@web3guru888 web3guru888 merged commit 9b842c4 into main May 4, 2026
3 checks passed
@web3guru888 web3guru888 deleted the fix/issue-31-windows-docs-public-url branch May 4, 2026 04:12
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.

User Feedback: Windows/PowerShell docs support + public URL for generated images

1 participant