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

Function equivalent

packages/core/src/session/input.ts:191–198  ·  view source on GitHub ↗
(
  input: Admitted,
  expected: {
    readonly sessionID: SessionSchema.ID
    readonly prompt: Prompt
    readonly delivery: Delivery
  },
)

Source from the content-addressed store, hash-verified

189})
190
191export const equivalent = (
192 input: Admitted,
193 expected: {
194 readonly sessionID: SessionSchema.ID
195 readonly prompt: Prompt
196 readonly delivery: Delivery
197 },
198) => input.delivery === expected.delivery && matchesPrompt(input, expected)
199
200const matchesPrompt = (input: Admitted, expected: { readonly sessionID: SessionSchema.ID; readonly prompt: Prompt }) =>
201 input.sessionID === expected.sessionID &&

Callers 2

matchesProjectionFunction · 0.85
makeFunction · 0.85

Calls 1

matchesPromptFunction · 0.85

Tested by

no test coverage detected