MCPcopy
hub / github.com/anomalyco/opencode / put

Function put

packages/app/src/components/prompt-input/attachments.ts:141–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 const text = normalizePaste(plainText)
140
141 const put = () => {
142 if (input.addPart?.({ type: "text", content: text, start: 0, end: 0 })) return true
143 input.focusEditor?.()
144 return input.addPart?.({ type: "text", content: text, start: 0, end: 0 }) ?? false
145 }
146
147 if (pasteMode(text) === "manual") {
148 put()

Callers 5

read.test.tsFile · 0.85
lsp.test.tsFile · 0.85
edit.test.tsFile · 0.85
providers.tsFile · 0.85
handlePasteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected