MCPcopy Create free account
hub / github.com/anomalyco/opencode / appendPrompt

Function appendPrompt

sdks/vscode/src/extension.ts:93–101  ·  view source on GitHub ↗
(port: number, text: string)

Source from the content-addressed store, hash-verified

91 }
92
93 async function appendPrompt(port: number, text: string) {
94 await fetch(`http://localhost:${port}/tui/append-prompt`, {
95 method: "POST",
96 headers: {
97 "Content-Type": "application/json",
98 },
99 body: JSON.stringify({ text }),
100 })
101 }
102
103 function getActiveFile() {
104 const activeEditor = vscode.window.activeTextEditor

Callers 2

activateFunction · 0.85
openTerminalFunction · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected