Skip to content

Commit e742dd1

Browse files
committed
extract constants
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
1 parent 6da6e08 commit e742dd1

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

internal/aiagentconfig/builder.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ import (
2525
"sort"
2626
"strings"
2727
"time"
28+
29+
"github.com/chainloop-dev/chainloop/internal/schemavalidators"
30+
)
31+
32+
const (
33+
claudeProvider = "claude"
2834
)
2935

3036
// Build reads discovered files and constructs the AI agent config payload.
@@ -77,8 +83,8 @@ func Build(rootDir string, filePaths []string, gitCtx *GitContext) (*Evidence, e
7783
}
7884

7985
data := Evidence{
80-
SchemaVersion: "v1alpha",
81-
Agent: Agent{Name: "claude"},
86+
SchemaVersion: string(schemavalidators.AIAgentConfigVersion0_1),
87+
Agent: Agent{Name: claudeProvider},
8288
ConfigHash: computeCombinedHash(hashes),
8389
CapturedAt: time.Now().UTC().Format(time.RFC3339),
8490
GitContext: gitCtx,

0 commit comments

Comments
 (0)