Skip to content

Align examples with project-scoped Runtime API - #7

Merged
matviychuk merged 2 commits into
mainfrom
feat/project-scoped-runtime-api
Apr 9, 2026
Merged

Align examples with project-scoped Runtime API#7
matviychuk merged 2 commits into
mainfrom
feat/project-scoped-runtime-api

Conversation

@matviychuk

@matviychuk matviychuk commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates planvault-examples to match the current PlanVault Runtime API: all session routes live under /api/v1/projects/{projectId}/sessions/..., POST .../messages returns HTTP 202 with messageId, and PromptRequest is { "message": "..." } only (no autoExecute).

Changes

  • scripts/bash-e2e/script.sh: require PLANVAULT_PROJECT_ID; use project-prefixed URLs; drop autoExecute from the sample message body.
  • frontend/react-chat: VITE_PLANVAULT_PROJECT_ID + UI field; runtimeSessionsBase() for fetch URLs; SSE and actions use the same base; send only { message }.
  • Docs: README.md, frontend/react-chat/README.md, .env.example — env vars and API behaviour notes (tools under /projects/{projectId}/tools, etc.).
  • formatSseText.ts: narrow unwrapJsonStringBlob catch return so tsc --noEmit passes (small typing fix).

Verification

  • npm test and npm run build in frontend/react-chat
  • npx tsc --noEmit in frontend/react-chat

Bohdan added 2 commits April 9, 2026 02:13
- Use /api/v1/projects/{projectId}/sessions/... for bash e2e and React sample
- Require PLANVAULT_PROJECT_ID / VITE_PLANVAULT_PROJECT_ID; add UI field
- POST messages: drop autoExecute; body is { message } only (202 Accepted)
- Refresh README copy (tools paths, plannerMode, removed legacy routes)
- Fix formatSseText unwrapJsonStringBlob return type for tsc --noEmit

Made-with: Cursor
Resolve conflicts by taking main for overlapping docs and samples: project-
scoped Runtime URLs, X-Request-Id / error instance handling, no per-message
status polling, and updated tools/Admin API wording. Brings in webhook and
MCP README correlation notes from main.

Made-with: Cursor
@matviychuk
matviychuk merged commit 3db03f2 into main Apr 9, 2026
10 checks passed
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