From d8e6af9d9dfc95443d801a7eea7e248b3029819f Mon Sep 17 00:00:00 2001 From: willigee313-debug Date: Sun, 5 Jul 2026 03:59:42 +1200 Subject: [PATCH] Update installation instructions with evaluation code Added code snippet for evaluating sessions and handling dependencies. --- docs/installation.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 8b4b621ab..47d3a41e4 100755 --- a/docs/installation.md +++ b/docs/installation.md @@ -91,3 +91,16 @@ php deployer.phar init No Composer required. +import { fromJson } from "@bufbuild/protobuf"; +import { EvaluateResponseSchema } from "replapi-types"; + +const body = await fetch(`/api/v1/sessions/${sessionId}/evaluate`, { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ schemaVersion: 1, source: "1 + 2" }), +}).then((response) => response.json()); + +const decoded = fromJson(EvaluateResponseSchema, body); +console.log(decoded.cell?.execution?.status);Remove-Item -Recurse -Force node_modules +Remove-Item -Force package-lock.json +npm install