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

Method timeline

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

Source from the content-addressed store, hash-verified

767}
768
769func (s Server) timeline(w http.ResponseWriter, r *http.Request) {
770 limit, err := intQuery(r, "limit", 0)
771 if err != nil {
772 writeResult(w, nil, err)
773 return
774 }
775 result, err := provenance.BuildTimeline(s.DB, provenance.TimelineOptions{
776 RunID: r.URL.Query().Get("run"),
777 ToolCall: r.URL.Query().Get("tool_call"),
778 ProcessID: r.URL.Query().Get("process"),
779 Type: r.URL.Query().Get("type"),
780 Limit: limit,
781 Cursor: r.URL.Query().Get("cursor"),
782 View: r.URL.Query().Get("view"),
783 })
784 writeResult(w, result, err)
785}
786
787func (s Server) securityRisks(w http.ResponseWriter, r *http.Request) {
788 result, err := securitymodel.BuildRiskSignalsReport(s.DB, r.URL.Query().Get("run"))

Callers

nothing calls this directly

Calls 3

BuildTimelineFunction · 0.92
intQueryFunction · 0.85
writeResultFunction · 0.85

Tested by

no test coverage detected