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

Function createKnownTextPart

packages/opencode/test/acp/permission.test.ts:84–99  ·  view source on GitHub ↗
(
  session: ACPSession.Interface,
  sessionId: string,
  messageId: string,
  partId: string,
)

Source from the content-addressed store, hash-verified

82}
83
84async function createKnownTextPart(
85 session: ACPSession.Interface,
86 sessionId: string,
87 messageId: string,
88 partId: string,
89) {
90 await Effect.runPromise(
91 session.recordPartMetadata({
92 sessionId,
93 messageId,
94 partId,
95 partType: "text",
96 role: "assistant",
97 }),
98 )
99}
100
101function permissionAsked(
102 sessionID: string,

Callers 1

permission.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected