MCPcopy Create free account
hub / github.com/vercel/examples / update_run_project

Function update_run_project

python/vibe-coding-ide/backend/src/run_store.py:36–46  ·  view source on GitHub ↗

Update only the project map for the stored run payload if present.

(run_id: str, project: dict[str, str])

Source from the content-addressed store, hash-verified

34
35
36async def update_run_project(run_id: str, project: dict[str, str]) -> None:
37 """Update only the project map for the stored run payload if present."""
38 base = await cache.get(_cache_key(run_id))
39 if isinstance(base, dict):
40 updated = dict(base)
41 updated["project"] = dict(project)
42 await cache.set(
43 _cache_key(run_id),
44 updated,
45 {"ttl": _TTL_SECONDS, "tags": [f"run:{run_id}"]},
46 )
47
48
49# Per-user active sandbox mappings (name -> sandbox_id)

Callers 2

tool_completed_sseFunction · 0.90
run_agent_flowFunction · 0.90

Calls 3

_cache_keyFunction · 0.85
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected