Skip to content

feat(website): a Notes site on WebsiteEnvironment, one image that passes the conformance check (FD-4683) - #429

Draft
williamloo-scale wants to merge 1 commit into
wloo/website-environment-sdkfrom
wloo/website-notes-example
Draft

williamloo-scale wants to merge 1 commit into
wloo/website-environment-sdkfrom
wloo/website-notes-example

Conversation

@williamloo-scale

@williamloo-scale williamloo-scale commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #428.

packages/agentenv-protocol/examples/website/notes/: a reference site on WebsiteEnvironment, about 130 lines of Python plus a small Vite page.

  • Per-user notes stamped with self.now(), auto sign-in as the acting user, and /api/admin/notes with roles=["admin"] (403 otherwise).
  • The page uses relative URLs, so it works under the gateway's /website/notes/ route.
  • One image: a node stage builds the page, a python stage serves it with the API on PORT, with curl for the compose health check. env.toml declares it as the server image.

Test

  • test_website_notes_example.py: 8 passed.
  • Built and ran the image: healthy, and python -m agentenv_protocol.website.conformance http://localhost:18080 --clock-host host.docker.internal passed 8/8. Pages, session, notes and the admin route checked by curl.
  • Registered with agent-env env website put --server-dockerfile ... --health-path /healthz against local stores only.

🤖 Generated with Claude Code

…ses the conformance check (FD-4683)

Per-user notes stamped by the universe clock, an admin-only route, and a Vite page that uses relative URLs so it works
under the gateway's /website/notes/ route. The image builds the page and serves it with the API on PORT, and env.toml
declares it as the env's server image.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​vite@​5.4.1091508397100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Low priority
High CVE: launch-editor: fs.existsSync() existence check can be bypassed on Windows in npm `vite`

CVE: GHSA-587h-7wmj-h5pm launch-editor: fs.existsSync() existence check can be bypassed on Windows (HIGH)

Affected versions: >= 8.3.0 < 8.3.3; >= 8.2.0 < 8.2.4; >= 8.0.0 < 8.1.6; >= 7.0.0 < 7.3.7; < 6.4.4

Patched version: 6.4.4

From: packages/agentenv-protocol/examples/website/notes/web/package-lock.json → npm/vite@5.4.10

ℹ Read more on: This package | This alert | What is a CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/vite@5.4.10. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

This branch has not been deployed

No deployments
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.

1 participant