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

Function promptPartText

packages/opencode/src/cli/cmd/run/prompt.editor.ts:83–89  ·  view source on GitHub ↗
(part: Mention)

Source from the content-addressed store, hash-verified

81}
82
83function promptPartText(part: Mention) {
84 if (part.type === "agent") {
85 return part.source?.value
86 }
87
88 return part.source?.text.value
89}
90
91function promptPartStart(part: Mention) {
92 if (part.type === "agent") {

Callers 1

realignEditorPromptPartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected