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

Function frameKey

packages/opencode/src/cli/cmd/run/subagent-data.ts:358–368  ·  view source on GitHub ↗
(commit: StreamCommit)

Source from the content-addressed store, hash-verified

356}
357
358function frameKey(commit: StreamCommit) {
359 if (commit.partID) {
360 return `${commit.kind}:${commit.partID}:${commit.phase}`
361 }
362
363 if (commit.messageID) {
364 return `${commit.kind}:${commit.messageID}:${commit.phase}`
365 }
366
367 return `${commit.kind}:${commit.phase}:${commit.text}`
368}
369
370function limitFrames(detail: DetailState) {
371 if (detail.frames.length <= SUBAGENT_COMMIT_LIMIT) {

Callers 1

appendCommitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected