Move native request capture into a shared framework package

This commit is contained in:
2026-11-26 01:46:29 +00:00
parent 73023f6397
commit d0cc20c539
12 changed files with 318 additions and 215 deletions

View File

@@ -10,8 +10,8 @@ import (
"time"
"gitea.maximumdirect.net/eric/notarius/internal/core/config"
nativecapture "gitea.maximumdirect.net/eric/notarius/internal/framework/capture"
frameworkdebug "gitea.maximumdirect.net/eric/notarius/internal/framework/debug"
"gitea.maximumdirect.net/eric/notarius/internal/framework/pipeline"
"go.maximumdirect.net/configkit"
"go.maximumdirect.net/promptkit"
)
@@ -144,7 +144,7 @@ promptkit:
if err != nil {
t.Fatal(err)
}
request, capture := pipeline.CaptureNativeRequest(promptkit.RunRequest{PromptID: "fixture/request", APIKey: "direct-secret"}, newRunEvidenceRecorder(recorder, result))
request, capture := nativecapture.CaptureNativeRequest(promptkit.RunRequest{PromptID: "fixture/request", APIKey: "direct-secret"}, newRunEvidenceRecorder(recorder, result))
response, err := engine.Run(context.Background(), request)
if err != nil {
t.Fatal(err)