MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / ServerResolvesSearchCollection

Method ServerResolvesSearchCollection

internal/cli/client.go:595–598  ·  view source on GitHub ↗

ServerResolvesSearchCollection reports whether GET /search resolves its `collection` filter server-side (BUG-2659), so the CLI can send the collection exactly as typed and let an exact match beat the alias. An indeterminate probe answers false: the fallback is today's client-side normalisation, whic

()

Source from the content-addressed store, hash-verified

593// normalisation, which on a read-only filter can only misscope a search,
594// never write anywhere.
595func (c *Client) ServerResolvesSearchCollection() bool {
596 caps, definitive := c.serverCapabilities()
597 return definitive && caps.SearchCollectionResolution
598}
599
600// serverCapabilities returns the cached definitive capability answer, probing
601// once if there is none. definitive is false when the probe was

Callers 1

searchCmdFunction · 0.80

Calls 1

serverCapabilitiesMethod · 0.95

Tested by

no test coverage detected