MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / graphLens

Method graphLens

internal/daemon/server.go:666–681  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

664}
665
666func (s Server) graphLens(w http.ResponseWriter, r *http.Request) {
667 limit, err := intQuery(r, "limit", 500)
668 if err != nil {
669 writeResult(w, nil, err)
670 return
671 }
672 result, err := provenance.BuildGraphLens(s.DB, provenance.GraphLensOptions{
673 RunID: r.URL.Query().Get("run"),
674 Lens: r.URL.Query().Get("lens"),
675 Focus: r.URL.Query().Get("focus"),
676 Detail: r.URL.Query().Get("detail"),
677 Overlays: r.URL.Query()["overlay"],
678 Limit: limit,
679 })
680 writeResult(w, result, err)
681}
682
683func (s Server) evidenceManifest(w http.ResponseWriter, r *http.Request) {
684 runID := r.URL.Query().Get("run")

Callers

nothing calls this directly

Calls 3

BuildGraphLensFunction · 0.92
intQueryFunction · 0.85
writeResultFunction · 0.85

Tested by

no test coverage detected