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

Function status

packages/session-ui/src/components/apply-patch-file.ts:32–36  ·  view source on GitHub ↗
(type: Kind)

Source from the content-addressed store, hash-verified

30}
31
32function status(type: Kind): "added" | "deleted" | "modified" {
33 if (type === "add") return "added"
34 if (type === "delete") return "deleted"
35 return "modified"
36}
37
38export function patchFile(raw: unknown): ApplyPatchFile | undefined {
39 if (!raw || typeof raw !== "object") return

Callers 4

SessionTurnFunction · 0.70
FileMediaFunction · 0.70
patchFileFunction · 0.70
SubscribeModalFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected