From 07088bedbc6942de3fe20f8492cd4d6c269e6bb2 Mon Sep 17 00:00:00 2001 From: logikonline Date: Sat, 10 Jan 2026 04:46:26 -0500 Subject: [PATCH] Add CapabilitiesJson field to DeclareRequest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- runner/v1/messages.pb.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/runner/v1/messages.pb.go b/runner/v1/messages.pb.go index 6f293da..59a6c27 100644 --- a/runner/v1/messages.pb.go +++ b/runner/v1/messages.pb.go @@ -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