2
0

2 Commits

Author SHA1 Message Date
9580480f90 Update module path to git.marketally.com/gitcaddy/actions-proto-go 2026-01-10 04:48:09 -05:00
07088bedbc Add CapabilitiesJson field to DeclareRequest
This allows runners to report their capabilities (OS, arch, docker,
tools, etc.) as a JSON string when declaring themselves to Gitea.

This enables AI-friendly workflow generation by providing structured
capability information that AI tools can query before writing workflows.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 04:46:26 -05:00
2 changed files with 11 additions and 3 deletions

2
go.mod
View File

@@ -1,4 +1,4 @@
module code.gitea.io/actions-proto-go
module git.marketally.com/gitcaddy/actions-proto-go
go 1.19

View File

@@ -282,8 +282,9 @@ type DeclareRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
CapabilitiesJson string `protobuf:"bytes,3,opt,name=capabilities_json,json=capabilitiesJson,proto3" json:"capabilities_json,omitempty"`
}
func (x *DeclareRequest) Reset() {
@@ -332,6 +333,13 @@ func (x *DeclareRequest) GetLabels() []string {
return nil
}
func (x *DeclareRequest) GetCapabilitiesJson() string {
if x != nil {
return x.CapabilitiesJson
}
return ""
}
type DeclareResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache