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

Function cmp

packages/app/src/context/global-sync/utils.ts:5–5  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

3export { pathKey as directoryKey, type PathKey as DirectoryKey } from "@/utils/path-key"
4
5export const cmp = (a: string, b: string) => (a < b ? -1 : a > b ? 1 : 0)
6
7function isAgent(input: unknown): input is Agent {
8 if (!input || typeof input !== "object") return false

Callers 4

compareSessionRecentFunction · 0.90
trimSessionsFunction · 0.90
loadProjectsQueryFunction · 0.90
bootstrapDirectoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected