MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / wrapperFinalizingResponse

Function wrapperFinalizingResponse

services/cloud-agent-next/wrapper/src/server.ts:162–171  ·  view source on GitHub ↗
(state: WrapperState)

Source from the content-addressed store, hash-verified

160const MIN_PTY_ROWS = 2;
161const MAX_PTY_ROWS = 200;
162const WORKSPACE_TERMINAL_ENV = {
163 // Shell startup files may replace inherited PS1, so reapply it before each prompt.
164 PROMPT_COMMAND: "PS1='\\n\\W\\n\\$ '",
165 PS1: '\\n\\W\\n\\$ ',
166 [PNPM_STORE_ENV_VAR]: PNPM_STORE_DIR,
167} satisfies Record<string, string>;
168
169function jsonResponse(data: unknown, status = 200): Response {
170 return new Response(JSON.stringify(data), {
171 status,
172 headers: { 'Content-Type': 'application/json' },
173 });
174}

Callers 3

bindSessionContextFunction · 0.70
createPromptHandlerFunction · 0.70
createCommandHandlerFunction · 0.70

Calls 1

jsonResponseFunction · 0.70

Tested by

no test coverage detected