MCPcopy Index your code
hub / github.com/anomalyco/opencode / basePart

Function basePart

packages/opencode/test/session/message-v2.test.ts:106–112  ·  view source on GitHub ↗
(messageID: string, id: string)

Source from the content-addressed store, hash-verified

104}
105
106function basePart(messageID: string, id: string) {
107 return {
108 id: PartID.make(id.startsWith("prt") ? id : `prt_${id}`),
109 sessionID,
110 messageID: MessageID.make(messageID.startsWith("msg") ? messageID : `msg_${messageID}`),
111 }
112}
113
114describe("session.message-v2.toModelMessage", () => {
115 test("filters out messages with no parts", async () => {

Callers 1

message-v2.test.tsFile · 0.85

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected