Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

feat: add support for inlined files in workspace specifications

JBD532635dd2428
diff --git a/docs/manifests.md b/docs/manifests.md
index 744248f..b066455 100644
--- a/docs/manifests.md
+++ b/docs/manifests.md
@@ -63,6 +63,12 @@ spec:
- name: origin
repo: "https://github.com/chalk/chalk.git"
branch: "main"
+ files:
+ - path: "AGENTS.md"
+ content: |
+ # Project Guidelines
+ - Run `go test ./...` before submitting changes.
+ - Keep dependencies minimal.
mcp:
registries:
- provider: google
diff --git a/internal/workspace/setup.go b/internal/workspace/setup.go
index 600d2d7..78acf93 100644
--- a/internal/workspace/setup.go
+++ b/internal/workspace/setup.go
@@ -109,6 +109,7 @@ func SetupWorkspace(ctx context.Context, ws *v1alpha1.Workspace, targetPath stri
gitOK := true
if ws != nil && ws.Spec != nil {
+ writeFiles(ws.Spec.Files, targetPath)
res.ClonedRepos, gitOK = cloneRepos(ctx, ws.Spec.Git, targetPath)
res.SkillsMounted = setupSkills(ws.Spec.Skills)
}
@@ -374,3 +375,27 @@ func RepoDirName(repoURL string) string {
}
return trimmed[idx+1:]
}
+
+// writeFiles writes inlined files into the workspace directory.
+func writeFiles(files []*v1alpha1.File, targetPath string) {
+ for _, f := range files {
+ if f == nil || f.GetPath() == "" {
+ continue
+ }
+ var dest string
+ if filepath.IsAbs(f.GetPath()) {
+ dest = f.GetPath()
+ } else {
+ dest = filepath.Join(targetPath, f.GetPath())
+ }
+ if err := os.MkdirAll(filepath.Dir(dest), dirPerm); err != nil {
+ slog.Warn("failed to create directory for workspace file", "path", dest, "error", err)
+ continue
+ }
+ if err := os.WriteFile(dest, []byte(f.GetContent()), filePerm); err != nil {
+ slog.Warn("failed to write workspace file", "path", dest, "error", err)
+ continue
+ }
+ slog.Info("wrote inlined workspace file", "path", dest)
+ }
+}
diff --git a/internal/workspace/setup_test.go b/internal/workspace/setup_test.go
index 9026369..eb27a00 100644
--- a/internal/workspace/setup_test.go
+++ b/internal/workspace/setup_test.go
@@ -284,3 +284,50 @@ func TestMarkerName(t *testing.T) {
}
}
}
+
+func TestSetupWorkspace_InlinedFiles(t *testing.T) {
+ tempDir, err := os.MkdirTemp("", "ax-ws-files-*")
+ if err != nil {
+ t.Fatalf("failed to create temp dir: %v", err)
+ }
+ defer os.RemoveAll(tempDir)
+
+ ws := &v1alpha1.Workspace{
+ Metadata: &v1alpha1.ObjectMeta{Name: "files-ws"},
+ Spec: &v1alpha1.WorkspaceSpec{
+ Files: []*v1alpha1.File{
+ {Path: "config/settings.json", Content: `{"env": "production"}`},
+ {Path: "notes.txt", Content: "Hello AX"},
+ },
+ },
+ }
+
+ stateDir := filepath.Join(tempDir, "ax-state")
+ origAXDir := workspace.AXDir
+ workspace.AXDir = stateDir
+ defer func() { workspace.AXDir = origAXDir }()
+
+ res, err := workspace.SetupWorkspace(context.Background(), ws, tempDir, "")
+ if err != nil {
+ t.Fatalf("setup failed: %v", err)
+ }
+ if !res.IsMaidenRun {
+ t.Errorf("expected maiden run to be true")
+ }
+
+ configData, err := os.ReadFile(filepath.Join(tempDir, "config", "settings.json"))
+ if err != nil {
+ t.Fatalf("reading config/settings.json: %v", err)
+ }
+ if string(configData) != `{"env": "production"}` {
+ t.Errorf("unexpected content in config/settings.json: %s", string(configData))
+ }
+
+ notesData, err := os.ReadFile(filepath.Join(tempDir, "notes.txt"))
+ if err != nil {
+ t.Fatalf("reading notes.txt: %v", err)
+ }
+ if string(notesData) != "Hello AX" {
+ t.Errorf("unexpected content in notes.txt: %s", string(notesData))
+ }
+}
diff --git a/pkg/apis/v1alpha1/ax.pb.go b/pkg/apis/v1alpha1/ax.pb.go
index fa3d02e..003430f 100644
--- a/pkg/apis/v1alpha1/ax.pb.go
+++ b/pkg/apis/v1alpha1/ax.pb.go
@@ -830,8 +830,9 @@ func (x *Workspace) GetSpec() *WorkspaceSpec {
type WorkspaceSpec struct {
state protoimpl.MessageState `protogen:"open.v1"`
Git []*GitRepo `protobuf:"bytes,1,rep,name=git,proto3" json:"git,omitempty"`
- Mcp *MCPConfig `protobuf:"bytes,2,opt,name=mcp,proto3" json:"mcp,omitempty"`
- Skills *SkillsConfig `protobuf:"bytes,3,opt,name=skills,proto3" json:"skills,omitempty"`
+ Files []*File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
+ Mcp *MCPConfig `protobuf:"bytes,3,opt,name=mcp,proto3" json:"mcp,omitempty"`
+ Skills *SkillsConfig `protobuf:"bytes,4,opt,name=skills,proto3" json:"skills,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -873,6 +874,13 @@ func (x *WorkspaceSpec) GetGit() []*GitRepo {
return nil
}
+func (x *WorkspaceSpec) GetFiles() []*File {
+ if x != nil {
+ return x.Files
+ }
+ return nil
+}
+
func (x *WorkspaceSpec) GetMcp() *MCPConfig {
if x != nil {
return x.Mcp
@@ -963,6 +971,58 @@ func (x *GitRepo) GetDepth() int32 {
return 0
}
+type File struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
+ Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *File) Reset() {
+ *x = File{}
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[14]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *File) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*File) ProtoMessage() {}
+
+func (x *File) ProtoReflect() protoreflect.Message {
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[14]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use File.ProtoReflect.Descriptor instead.
+func (*File) Descriptor() ([]byte, []int) {
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{14}
+}
+
+func (x *File) GetPath() string {
+ if x != nil {
+ return x.Path
+ }
+ return ""
+}
+
+func (x *File) GetContent() string {
+ if x != nil {
+ return x.Content
+ }
+ return ""
+}
+
type MCPConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
Registries []*MCPRegistry `protobuf:"bytes,1,rep,name=registries,proto3" json:"registries,omitempty"`
@@ -973,7 +1033,7 @@ type MCPConfig struct {
func (x *MCPConfig) Reset() {
*x = MCPConfig{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[14]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -985,7 +1045,7 @@ func (x *MCPConfig) String() string {
func (*MCPConfig) ProtoMessage() {}
func (x *MCPConfig) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[14]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -998,7 +1058,7 @@ func (x *MCPConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use MCPConfig.ProtoReflect.Descriptor instead.
func (*MCPConfig) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{14}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{15}
}
func (x *MCPConfig) GetRegistries() []*MCPRegistry {
@@ -1027,7 +1087,7 @@ type MCPRegistry struct {
func (x *MCPRegistry) Reset() {
*x = MCPRegistry{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[15]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1039,7 +1099,7 @@ func (x *MCPRegistry) String() string {
func (*MCPRegistry) ProtoMessage() {}
func (x *MCPRegistry) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[15]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1052,7 +1112,7 @@ func (x *MCPRegistry) ProtoReflect() protoreflect.Message {
// Deprecated: Use MCPRegistry.ProtoReflect.Descriptor instead.
func (*MCPRegistry) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{15}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{16}
}
func (x *MCPRegistry) GetProvider() string {
@@ -1095,7 +1155,7 @@ type MCPServer struct {
func (x *MCPServer) Reset() {
*x = MCPServer{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[16]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1107,7 +1167,7 @@ func (x *MCPServer) String() string {
func (*MCPServer) ProtoMessage() {}
func (x *MCPServer) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[16]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1120,7 +1180,7 @@ func (x *MCPServer) ProtoReflect() protoreflect.Message {
// Deprecated: Use MCPServer.ProtoReflect.Descriptor instead.
func (*MCPServer) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{16}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{17}
}
func (x *MCPServer) GetName() string {
@@ -1161,7 +1221,7 @@ type SkillsConfig struct {
func (x *SkillsConfig) Reset() {
*x = SkillsConfig{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[17]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1173,7 +1233,7 @@ func (x *SkillsConfig) String() string {
func (*SkillsConfig) ProtoMessage() {}
func (x *SkillsConfig) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[17]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1186,7 +1246,7 @@ func (x *SkillsConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use SkillsConfig.ProtoReflect.Descriptor instead.
func (*SkillsConfig) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{17}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{18}
}
func (x *SkillsConfig) GetRegistries() []*SkillRegistry {
@@ -1214,7 +1274,7 @@ type SkillRegistry struct {
func (x *SkillRegistry) Reset() {
*x = SkillRegistry{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[18]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1226,7 +1286,7 @@ func (x *SkillRegistry) String() string {
func (*SkillRegistry) ProtoMessage() {}
func (x *SkillRegistry) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[18]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1239,7 +1299,7 @@ func (x *SkillRegistry) ProtoReflect() protoreflect.Message {
// Deprecated: Use SkillRegistry.ProtoReflect.Descriptor instead.
func (*SkillRegistry) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{18}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{19}
}
func (x *SkillRegistry) GetProvider() string {
@@ -1275,7 +1335,7 @@ type Model struct {
func (x *Model) Reset() {
*x = Model{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[19]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1287,7 +1347,7 @@ func (x *Model) String() string {
func (*Model) ProtoMessage() {}
func (x *Model) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[19]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1300,7 +1360,7 @@ func (x *Model) ProtoReflect() protoreflect.Message {
// Deprecated: Use Model.ProtoReflect.Descriptor instead.
func (*Model) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{19}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{20}
}
func (x *Model) GetApiVersion() string {
@@ -1345,7 +1405,7 @@ type ModelSpec struct {
func (x *ModelSpec) Reset() {
*x = ModelSpec{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[20]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1357,7 +1417,7 @@ func (x *ModelSpec) String() string {
func (*ModelSpec) ProtoMessage() {}
func (x *ModelSpec) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[20]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1370,7 +1430,7 @@ func (x *ModelSpec) ProtoReflect() protoreflect.Message {
// Deprecated: Use ModelSpec.ProtoReflect.Descriptor instead.
func (*ModelSpec) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{20}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{21}
}
func (x *ModelSpec) GetProvider() string {
@@ -1411,7 +1471,7 @@ type SecretKeyRef struct {
func (x *SecretKeyRef) Reset() {
*x = SecretKeyRef{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[21]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1423,7 +1483,7 @@ func (x *SecretKeyRef) String() string {
func (*SecretKeyRef) ProtoMessage() {}
func (x *SecretKeyRef) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[21]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1436,7 +1496,7 @@ func (x *SecretKeyRef) ProtoReflect() protoreflect.Message {
// Deprecated: Use SecretKeyRef.ProtoReflect.Descriptor instead.
func (*SecretKeyRef) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{21}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{22}
}
func (x *SecretKeyRef) GetName() string {
@@ -1464,7 +1524,7 @@ type GetTaskRequest struct {
func (x *GetTaskRequest) Reset() {
*x = GetTaskRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[22]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1476,7 +1536,7 @@ func (x *GetTaskRequest) String() string {
func (*GetTaskRequest) ProtoMessage() {}
func (x *GetTaskRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[22]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1489,7 +1549,7 @@ func (x *GetTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead.
func (*GetTaskRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{22}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{23}
}
func (x *GetTaskRequest) GetAtespace() string {
@@ -1517,7 +1577,7 @@ type ListTasksRequest struct {
func (x *ListTasksRequest) Reset() {
*x = ListTasksRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[23]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1529,7 +1589,7 @@ func (x *ListTasksRequest) String() string {
func (*ListTasksRequest) ProtoMessage() {}
func (x *ListTasksRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[23]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1542,7 +1602,7 @@ func (x *ListTasksRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.
func (*ListTasksRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{23}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{24}
}
func (x *ListTasksRequest) GetAtespace() string {
@@ -1575,7 +1635,7 @@ type ListTasksResponse struct {
func (x *ListTasksResponse) Reset() {
*x = ListTasksResponse{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[24]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1587,7 +1647,7 @@ func (x *ListTasksResponse) String() string {
func (*ListTasksResponse) ProtoMessage() {}
func (x *ListTasksResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[24]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1600,7 +1660,7 @@ func (x *ListTasksResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.
func (*ListTasksResponse) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{24}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{25}
}
func (x *ListTasksResponse) GetTasks() []*Task {
@@ -1619,7 +1679,7 @@ type CreateTaskRequest struct {
func (x *CreateTaskRequest) Reset() {
*x = CreateTaskRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[25]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1631,7 +1691,7 @@ func (x *CreateTaskRequest) String() string {
func (*CreateTaskRequest) ProtoMessage() {}
func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[25]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1644,7 +1704,7 @@ func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead.
func (*CreateTaskRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{25}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{26}
}
func (x *CreateTaskRequest) GetTask() *Task {
@@ -1664,7 +1724,7 @@ type DeleteTaskRequest struct {
func (x *DeleteTaskRequest) Reset() {
*x = DeleteTaskRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[26]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1676,7 +1736,7 @@ func (x *DeleteTaskRequest) String() string {
func (*DeleteTaskRequest) ProtoMessage() {}
func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[26]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1689,7 +1749,7 @@ func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead.
func (*DeleteTaskRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{26}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{27}
}
func (x *DeleteTaskRequest) GetAtespace() string {
@@ -1714,7 +1774,7 @@ type DeleteTaskResponse struct {
func (x *DeleteTaskResponse) Reset() {
*x = DeleteTaskResponse{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[27]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1726,7 +1786,7 @@ func (x *DeleteTaskResponse) String() string {
func (*DeleteTaskResponse) ProtoMessage() {}
func (x *DeleteTaskResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[27]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1739,7 +1799,7 @@ func (x *DeleteTaskResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteTaskResponse.ProtoReflect.Descriptor instead.
func (*DeleteTaskResponse) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{27}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{28}
}
type SuspendTaskRequest struct {
@@ -1752,7 +1812,7 @@ type SuspendTaskRequest struct {
func (x *SuspendTaskRequest) Reset() {
*x = SuspendTaskRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[28]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1764,7 +1824,7 @@ func (x *SuspendTaskRequest) String() string {
func (*SuspendTaskRequest) ProtoMessage() {}
func (x *SuspendTaskRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[28]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1777,7 +1837,7 @@ func (x *SuspendTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SuspendTaskRequest.ProtoReflect.Descriptor instead.
func (*SuspendTaskRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{28}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{29}
}
func (x *SuspendTaskRequest) GetAtespace() string {
@@ -1804,7 +1864,7 @@ type ResumeTaskRequest struct {
func (x *ResumeTaskRequest) Reset() {
*x = ResumeTaskRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[29]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1816,7 +1876,7 @@ func (x *ResumeTaskRequest) String() string {
func (*ResumeTaskRequest) ProtoMessage() {}
func (x *ResumeTaskRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[29]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1829,7 +1889,7 @@ func (x *ResumeTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ResumeTaskRequest.ProtoReflect.Descriptor instead.
func (*ResumeTaskRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{29}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{30}
}
func (x *ResumeTaskRequest) GetAtespace() string {
@@ -1856,7 +1916,7 @@ type WatchTaskRequest struct {
func (x *WatchTaskRequest) Reset() {
*x = WatchTaskRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[30]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1868,7 +1928,7 @@ func (x *WatchTaskRequest) String() string {
func (*WatchTaskRequest) ProtoMessage() {}
func (x *WatchTaskRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[30]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1881,7 +1941,7 @@ func (x *WatchTaskRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WatchTaskRequest.ProtoReflect.Descriptor instead.
func (*WatchTaskRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{30}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{31}
}
func (x *WatchTaskRequest) GetAtespace() string {
@@ -1908,7 +1968,7 @@ type WatchTaskResponse struct {
func (x *WatchTaskResponse) Reset() {
*x = WatchTaskResponse{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[31]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1920,7 +1980,7 @@ func (x *WatchTaskResponse) String() string {
func (*WatchTaskResponse) ProtoMessage() {}
func (x *WatchTaskResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[31]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1933,7 +1993,7 @@ func (x *WatchTaskResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use WatchTaskResponse.ProtoReflect.Descriptor instead.
func (*WatchTaskResponse) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{31}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{32}
}
func (x *WatchTaskResponse) GetTask() *Task {
@@ -1961,7 +2021,7 @@ type GetWorkspaceRequest struct {
func (x *GetWorkspaceRequest) Reset() {
*x = GetWorkspaceRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[32]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1973,7 +2033,7 @@ func (x *GetWorkspaceRequest) String() string {
func (*GetWorkspaceRequest) ProtoMessage() {}
func (x *GetWorkspaceRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[32]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1986,7 +2046,7 @@ func (x *GetWorkspaceRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetWorkspaceRequest.ProtoReflect.Descriptor instead.
func (*GetWorkspaceRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{32}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{33}
}
func (x *GetWorkspaceRequest) GetAtespace() string {
@@ -2012,7 +2072,7 @@ type ListWorkspacesRequest struct {
func (x *ListWorkspacesRequest) Reset() {
*x = ListWorkspacesRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[33]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2024,7 +2084,7 @@ func (x *ListWorkspacesRequest) String() string {
func (*ListWorkspacesRequest) ProtoMessage() {}
func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[33]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2037,7 +2097,7 @@ func (x *ListWorkspacesRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListWorkspacesRequest.ProtoReflect.Descriptor instead.
func (*ListWorkspacesRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{33}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{34}
}
func (x *ListWorkspacesRequest) GetAtespace() string {
@@ -2056,7 +2116,7 @@ type ListWorkspacesResponse struct {
func (x *ListWorkspacesResponse) Reset() {
*x = ListWorkspacesResponse{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[34]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2068,7 +2128,7 @@ func (x *ListWorkspacesResponse) String() string {
func (*ListWorkspacesResponse) ProtoMessage() {}
func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[34]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2081,7 +2141,7 @@ func (x *ListWorkspacesResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListWorkspacesResponse.ProtoReflect.Descriptor instead.
func (*ListWorkspacesResponse) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{34}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{35}
}
func (x *ListWorkspacesResponse) GetWorkspaces() []*Workspace {
@@ -2100,7 +2160,7 @@ type UpdateWorkspaceRequest struct {
func (x *UpdateWorkspaceRequest) Reset() {
*x = UpdateWorkspaceRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[35]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2112,7 +2172,7 @@ func (x *UpdateWorkspaceRequest) String() string {
func (*UpdateWorkspaceRequest) ProtoMessage() {}
func (x *UpdateWorkspaceRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[35]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2125,7 +2185,7 @@ func (x *UpdateWorkspaceRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateWorkspaceRequest.ProtoReflect.Descriptor instead.
func (*UpdateWorkspaceRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{35}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{36}
}
func (x *UpdateWorkspaceRequest) GetWorkspace() *Workspace {
@@ -2145,7 +2205,7 @@ type DeleteWorkspaceRequest struct {
func (x *DeleteWorkspaceRequest) Reset() {
*x = DeleteWorkspaceRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[36]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2157,7 +2217,7 @@ func (x *DeleteWorkspaceRequest) String() string {
func (*DeleteWorkspaceRequest) ProtoMessage() {}
func (x *DeleteWorkspaceRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[36]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2170,7 +2230,7 @@ func (x *DeleteWorkspaceRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteWorkspaceRequest.ProtoReflect.Descriptor instead.
func (*DeleteWorkspaceRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{36}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{37}
}
func (x *DeleteWorkspaceRequest) GetAtespace() string {
@@ -2195,7 +2255,7 @@ type DeleteWorkspaceResponse struct {
func (x *DeleteWorkspaceResponse) Reset() {
*x = DeleteWorkspaceResponse{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[37]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2207,7 +2267,7 @@ func (x *DeleteWorkspaceResponse) String() string {
func (*DeleteWorkspaceResponse) ProtoMessage() {}
func (x *DeleteWorkspaceResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[37]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2220,7 +2280,7 @@ func (x *DeleteWorkspaceResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteWorkspaceResponse.ProtoReflect.Descriptor instead.
func (*DeleteWorkspaceResponse) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{37}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{38}
}
// Models
@@ -2234,7 +2294,7 @@ type GetModelRequest struct {
func (x *GetModelRequest) Reset() {
*x = GetModelRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[38]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2246,7 +2306,7 @@ func (x *GetModelRequest) String() string {
func (*GetModelRequest) ProtoMessage() {}
func (x *GetModelRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[38]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[39]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2259,7 +2319,7 @@ func (x *GetModelRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.
func (*GetModelRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{38}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{39}
}
func (x *GetModelRequest) GetAtespace() string {
@@ -2285,7 +2345,7 @@ type ListModelsRequest struct {
func (x *ListModelsRequest) Reset() {
*x = ListModelsRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[39]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2297,7 +2357,7 @@ func (x *ListModelsRequest) String() string {
func (*ListModelsRequest) ProtoMessage() {}
func (x *ListModelsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[39]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[40]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2310,7 +2370,7 @@ func (x *ListModelsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.
func (*ListModelsRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{39}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{40}
}
func (x *ListModelsRequest) GetAtespace() string {
@@ -2329,7 +2389,7 @@ type ListModelsResponse struct {
func (x *ListModelsResponse) Reset() {
*x = ListModelsResponse{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[40]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2341,7 +2401,7 @@ func (x *ListModelsResponse) String() string {
func (*ListModelsResponse) ProtoMessage() {}
func (x *ListModelsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[40]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[41]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2354,7 +2414,7 @@ func (x *ListModelsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.
func (*ListModelsResponse) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{40}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{41}
}
func (x *ListModelsResponse) GetModels() []*Model {
@@ -2373,7 +2433,7 @@ type UpdateModelRequest struct {
func (x *UpdateModelRequest) Reset() {
*x = UpdateModelRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[41]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2385,7 +2445,7 @@ func (x *UpdateModelRequest) String() string {
func (*UpdateModelRequest) ProtoMessage() {}
func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[41]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[42]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2398,7 +2458,7 @@ func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateModelRequest.ProtoReflect.Descriptor instead.
func (*UpdateModelRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{41}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{42}
}
func (x *UpdateModelRequest) GetModel() *Model {
@@ -2418,7 +2478,7 @@ type DeleteModelRequest struct {
func (x *DeleteModelRequest) Reset() {
*x = DeleteModelRequest{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[42]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[43]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2430,7 +2490,7 @@ func (x *DeleteModelRequest) String() string {
func (*DeleteModelRequest) ProtoMessage() {}
func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[42]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[43]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2443,7 +2503,7 @@ func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.
func (*DeleteModelRequest) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{42}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{43}
}
func (x *DeleteModelRequest) GetAtespace() string {
@@ -2468,7 +2528,7 @@ type DeleteModelResponse struct {
func (x *DeleteModelResponse) Reset() {
*x = DeleteModelResponse{}
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[43]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[44]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2480,7 +2540,7 @@ func (x *DeleteModelResponse) String() string {
func (*DeleteModelResponse) ProtoMessage() {}
func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message {
- mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[43]
+ mi := &file_pkg_apis_v1alpha1_ax_proto_msgTypes[44]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2493,7 +2553,7 @@ func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteModelResponse.ProtoReflect.Descriptor instead.
func (*DeleteModelResponse) Descriptor() ([]byte, []int) {
- return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{43}
+ return file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP(), []int{44}
}
var File_pkg_apis_v1alpha1_ax_proto protoreflect.FileDescriptor
@@ -2565,17 +2625,21 @@ const file_pkg_apis_v1alpha1_ax_proto_rawDesc = "" +
"apiVersion\x12\x12\n" +
"\x04kind\x18\x02 \x01(\tR\x04kind\x123\n" +
"\bmetadata\x18\x03 \x01(\v2\x17.ax.v1alpha1.ObjectMetaR\bmetadata\x12.\n" +
- "\x04spec\x18\x04 \x01(\v2\x1a.ax.v1alpha1.WorkspaceSpecR\x04spec\"\x94\x01\n" +
+ "\x04spec\x18\x04 \x01(\v2\x1a.ax.v1alpha1.WorkspaceSpecR\x04spec\"\xbd\x01\n" +
"\rWorkspaceSpec\x12&\n" +
- "\x03git\x18\x01 \x03(\v2\x14.ax.v1alpha1.GitRepoR\x03git\x12(\n" +
- "\x03mcp\x18\x02 \x01(\v2\x16.ax.v1alpha1.MCPConfigR\x03mcp\x121\n" +
- "\x06skills\x18\x03 \x01(\v2\x19.ax.v1alpha1.SkillsConfigR\x06skills\"q\n" +
+ "\x03git\x18\x01 \x03(\v2\x14.ax.v1alpha1.GitRepoR\x03git\x12'\n" +
+ "\x05files\x18\x02 \x03(\v2\x11.ax.v1alpha1.FileR\x05files\x12(\n" +
+ "\x03mcp\x18\x03 \x01(\v2\x16.ax.v1alpha1.MCPConfigR\x03mcp\x121\n" +
+ "\x06skills\x18\x04 \x01(\v2\x19.ax.v1alpha1.SkillsConfigR\x06skills\"q\n" +
"\aGitRepo\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
"\x04repo\x18\x02 \x01(\tR\x04repo\x12\x16\n" +
"\x06branch\x18\x03 \x01(\tR\x06branch\x12\x10\n" +
"\x03dir\x18\x04 \x01(\tR\x03dir\x12\x14\n" +
- "\x05depth\x18\x05 \x01(\x05R\x05depth\"w\n" +
+ "\x05depth\x18\x05 \x01(\x05R\x05depth\"4\n" +
+ "\x04File\x12\x12\n" +
+ "\x04path\x18\x01 \x01(\tR\x04path\x12\x18\n" +
+ "\acontent\x18\x02 \x01(\tR\acontent\"w\n" +
"\tMCPConfig\x128\n" +
"\n" +
"registries\x18\x01 \x03(\v2\x18.ax.v1alpha1.MCPRegistryR\n" +
@@ -2706,7 +2770,7 @@ func file_pkg_apis_v1alpha1_ax_proto_rawDescGZIP() []byte {
return file_pkg_apis_v1alpha1_ax_proto_rawDescData
}
-var file_pkg_apis_v1alpha1_ax_proto_msgTypes = make([]protoimpl.MessageInfo, 44)
+var file_pkg_apis_v1alpha1_ax_proto_msgTypes = make([]protoimpl.MessageInfo, 45)
var file_pkg_apis_v1alpha1_ax_proto_goTypes = []any{
(*ObjectMeta)(nil), // 0: ax.v1alpha1.ObjectMeta
(*Task)(nil), // 1: ax.v1alpha1.Task
@@ -2722,41 +2786,42 @@ var file_pkg_apis_v1alpha1_ax_proto_goTypes = []any{
(*Workspace)(nil), // 11: ax.v1alpha1.Workspace
(*WorkspaceSpec)(nil), // 12: ax.v1alpha1.WorkspaceSpec
(*GitRepo)(nil), // 13: ax.v1alpha1.GitRepo
- (*MCPConfig)(nil), // 14: ax.v1alpha1.MCPConfig
- (*MCPRegistry)(nil), // 15: ax.v1alpha1.MCPRegistry
- (*MCPServer)(nil), // 16: ax.v1alpha1.MCPServer
- (*SkillsConfig)(nil), // 17: ax.v1alpha1.SkillsConfig
- (*SkillRegistry)(nil), // 18: ax.v1alpha1.SkillRegistry
- (*Model)(nil), // 19: ax.v1alpha1.Model
- (*ModelSpec)(nil), // 20: ax.v1alpha1.ModelSpec
- (*SecretKeyRef)(nil), // 21: ax.v1alpha1.SecretKeyRef
- (*GetTaskRequest)(nil), // 22: ax.v1alpha1.GetTaskRequest
- (*ListTasksRequest)(nil), // 23: ax.v1alpha1.ListTasksRequest
- (*ListTasksResponse)(nil), // 24: ax.v1alpha1.ListTasksResponse
- (*CreateTaskRequest)(nil), // 25: ax.v1alpha1.CreateTaskRequest
- (*DeleteTaskRequest)(nil), // 26: ax.v1alpha1.DeleteTaskRequest
- (*DeleteTaskResponse)(nil), // 27: ax.v1alpha1.DeleteTaskResponse
- (*SuspendTaskRequest)(nil), // 28: ax.v1alpha1.SuspendTaskRequest
- (*ResumeTaskRequest)(nil), // 29: ax.v1alpha1.ResumeTaskRequest
- (*WatchTaskRequest)(nil), // 30: ax.v1alpha1.WatchTaskRequest
- (*WatchTaskResponse)(nil), // 31: ax.v1alpha1.WatchTaskResponse
- (*GetWorkspaceRequest)(nil), // 32: ax.v1alpha1.GetWorkspaceRequest
- (*ListWorkspacesRequest)(nil), // 33: ax.v1alpha1.ListWorkspacesRequest
- (*ListWorkspacesResponse)(nil), // 34: ax.v1alpha1.ListWorkspacesResponse
- (*UpdateWorkspaceRequest)(nil), // 35: ax.v1alpha1.UpdateWorkspaceRequest
- (*DeleteWorkspaceRequest)(nil), // 36: ax.v1alpha1.DeleteWorkspaceRequest
- (*DeleteWorkspaceResponse)(nil), // 37: ax.v1alpha1.DeleteWorkspaceResponse
- (*GetModelRequest)(nil), // 38: ax.v1alpha1.GetModelRequest
- (*ListModelsRequest)(nil), // 39: ax.v1alpha1.ListModelsRequest
- (*ListModelsResponse)(nil), // 40: ax.v1alpha1.ListModelsResponse
- (*UpdateModelRequest)(nil), // 41: ax.v1alpha1.UpdateModelRequest
- (*DeleteModelRequest)(nil), // 42: ax.v1alpha1.DeleteModelRequest
- (*DeleteModelResponse)(nil), // 43: ax.v1alpha1.DeleteModelResponse
- (*timestamppb.Timestamp)(nil), // 44: google.protobuf.Timestamp
- (*structpb.Struct)(nil), // 45: google.protobuf.Struct
+ (*File)(nil), // 14: ax.v1alpha1.File
+ (*MCPConfig)(nil), // 15: ax.v1alpha1.MCPConfig
+ (*MCPRegistry)(nil), // 16: ax.v1alpha1.MCPRegistry
+ (*MCPServer)(nil), // 17: ax.v1alpha1.MCPServer
+ (*SkillsConfig)(nil), // 18: ax.v1alpha1.SkillsConfig
+ (*SkillRegistry)(nil), // 19: ax.v1alpha1.SkillRegistry
+ (*Model)(nil), // 20: ax.v1alpha1.Model
+ (*ModelSpec)(nil), // 21: ax.v1alpha1.ModelSpec
+ (*SecretKeyRef)(nil), // 22: ax.v1alpha1.SecretKeyRef
+ (*GetTaskRequest)(nil), // 23: ax.v1alpha1.GetTaskRequest
+ (*ListTasksRequest)(nil), // 24: ax.v1alpha1.ListTasksRequest
+ (*ListTasksResponse)(nil), // 25: ax.v1alpha1.ListTasksResponse
+ (*CreateTaskRequest)(nil), // 26: ax.v1alpha1.CreateTaskRequest
+ (*DeleteTaskRequest)(nil), // 27: ax.v1alpha1.DeleteTaskRequest
+ (*DeleteTaskResponse)(nil), // 28: ax.v1alpha1.DeleteTaskResponse
+ (*SuspendTaskRequest)(nil), // 29: ax.v1alpha1.SuspendTaskRequest
+ (*ResumeTaskRequest)(nil), // 30: ax.v1alpha1.ResumeTaskRequest
+ (*WatchTaskRequest)(nil), // 31: ax.v1alpha1.WatchTaskRequest
+ (*WatchTaskResponse)(nil), // 32: ax.v1alpha1.WatchTaskResponse
+ (*GetWorkspaceRequest)(nil), // 33: ax.v1alpha1.GetWorkspaceRequest
+ (*ListWorkspacesRequest)(nil), // 34: ax.v1alpha1.ListWorkspacesRequest
+ (*ListWorkspacesResponse)(nil), // 35: ax.v1alpha1.ListWorkspacesResponse
+ (*UpdateWorkspaceRequest)(nil), // 36: ax.v1alpha1.UpdateWorkspaceRequest
+ (*DeleteWorkspaceRequest)(nil), // 37: ax.v1alpha1.DeleteWorkspaceRequest
+ (*DeleteWorkspaceResponse)(nil), // 38: ax.v1alpha1.DeleteWorkspaceResponse
+ (*GetModelRequest)(nil), // 39: ax.v1alpha1.GetModelRequest
+ (*ListModelsRequest)(nil), // 40: ax.v1alpha1.ListModelsRequest
+ (*ListModelsResponse)(nil), // 41: ax.v1alpha1.ListModelsResponse
+ (*UpdateModelRequest)(nil), // 42: ax.v1alpha1.UpdateModelRequest
+ (*DeleteModelRequest)(nil), // 43: ax.v1alpha1.DeleteModelRequest
+ (*DeleteModelResponse)(nil), // 44: ax.v1alpha1.DeleteModelResponse
+ (*timestamppb.Timestamp)(nil), // 45: google.protobuf.Timestamp
+ (*structpb.Struct)(nil), // 46: google.protobuf.Struct
}
var file_pkg_apis_v1alpha1_ax_proto_depIdxs = []int32{
- 44, // 0: ax.v1alpha1.ObjectMeta.creation_timestamp:type_name -> google.protobuf.Timestamp
+ 45, // 0: ax.v1alpha1.ObjectMeta.creation_timestamp:type_name -> google.protobuf.Timestamp
0, // 1: ax.v1alpha1.Task.metadata:type_name -> ax.v1alpha1.ObjectMeta
2, // 2: ax.v1alpha1.Task.spec:type_name -> ax.v1alpha1.TaskSpec
7, // 3: ax.v1alpha1.Task.status:type_name -> ax.v1alpha1.TaskStatus
@@ -2768,63 +2833,64 @@ var file_pkg_apis_v1alpha1_ax_proto_depIdxs = []int32{
8, // 9: ax.v1alpha1.TaskStatus.pending_approval:type_name -> ax.v1alpha1.PendingApproval
9, // 10: ax.v1alpha1.TaskStatus.usage:type_name -> ax.v1alpha1.UsageStats
10, // 11: ax.v1alpha1.TaskStatus.conditions:type_name -> ax.v1alpha1.Condition
- 44, // 12: ax.v1alpha1.PendingApproval.requested_at:type_name -> google.protobuf.Timestamp
- 44, // 13: ax.v1alpha1.Condition.last_transition_time:type_name -> google.protobuf.Timestamp
+ 45, // 12: ax.v1alpha1.PendingApproval.requested_at:type_name -> google.protobuf.Timestamp
+ 45, // 13: ax.v1alpha1.Condition.last_transition_time:type_name -> google.protobuf.Timestamp
0, // 14: ax.v1alpha1.Workspace.metadata:type_name -> ax.v1alpha1.ObjectMeta
12, // 15: ax.v1alpha1.Workspace.spec:type_name -> ax.v1alpha1.WorkspaceSpec
13, // 16: ax.v1alpha1.WorkspaceSpec.git:type_name -> ax.v1alpha1.GitRepo
- 14, // 17: ax.v1alpha1.WorkspaceSpec.mcp:type_name -> ax.v1alpha1.MCPConfig
- 17, // 18: ax.v1alpha1.WorkspaceSpec.skills:type_name -> ax.v1alpha1.SkillsConfig
- 15, // 19: ax.v1alpha1.MCPConfig.registries:type_name -> ax.v1alpha1.MCPRegistry
- 16, // 20: ax.v1alpha1.MCPConfig.servers:type_name -> ax.v1alpha1.MCPServer
- 16, // 21: ax.v1alpha1.MCPRegistry.servers:type_name -> ax.v1alpha1.MCPServer
- 18, // 22: ax.v1alpha1.SkillsConfig.registries:type_name -> ax.v1alpha1.SkillRegistry
- 0, // 23: ax.v1alpha1.Model.metadata:type_name -> ax.v1alpha1.ObjectMeta
- 20, // 24: ax.v1alpha1.Model.spec:type_name -> ax.v1alpha1.ModelSpec
- 21, // 25: ax.v1alpha1.ModelSpec.secret_key:type_name -> ax.v1alpha1.SecretKeyRef
- 45, // 26: ax.v1alpha1.ModelSpec.parameters:type_name -> google.protobuf.Struct
- 1, // 27: ax.v1alpha1.ListTasksResponse.tasks:type_name -> ax.v1alpha1.Task
- 1, // 28: ax.v1alpha1.CreateTaskRequest.task:type_name -> ax.v1alpha1.Task
- 1, // 29: ax.v1alpha1.WatchTaskResponse.task:type_name -> ax.v1alpha1.Task
- 11, // 30: ax.v1alpha1.ListWorkspacesResponse.workspaces:type_name -> ax.v1alpha1.Workspace
- 11, // 31: ax.v1alpha1.UpdateWorkspaceRequest.workspace:type_name -> ax.v1alpha1.Workspace
- 19, // 32: ax.v1alpha1.ListModelsResponse.models:type_name -> ax.v1alpha1.Model
- 19, // 33: ax.v1alpha1.UpdateModelRequest.model:type_name -> ax.v1alpha1.Model
- 22, // 34: ax.v1alpha1.AX.GetTask:input_type -> ax.v1alpha1.GetTaskRequest
- 23, // 35: ax.v1alpha1.AX.ListTasks:input_type -> ax.v1alpha1.ListTasksRequest
- 25, // 36: ax.v1alpha1.AX.CreateTask:input_type -> ax.v1alpha1.CreateTaskRequest
- 26, // 37: ax.v1alpha1.AX.DeleteTask:input_type -> ax.v1alpha1.DeleteTaskRequest
- 28, // 38: ax.v1alpha1.AX.SuspendTask:input_type -> ax.v1alpha1.SuspendTaskRequest
- 29, // 39: ax.v1alpha1.AX.ResumeTask:input_type -> ax.v1alpha1.ResumeTaskRequest
- 30, // 40: ax.v1alpha1.AX.WatchTask:input_type -> ax.v1alpha1.WatchTaskRequest
- 32, // 41: ax.v1alpha1.AX.GetWorkspace:input_type -> ax.v1alpha1.GetWorkspaceRequest
- 33, // 42: ax.v1alpha1.AX.ListWorkspaces:input_type -> ax.v1alpha1.ListWorkspacesRequest
- 35, // 43: ax.v1alpha1.AX.UpdateWorkspace:input_type -> ax.v1alpha1.UpdateWorkspaceRequest
- 36, // 44: ax.v1alpha1.AX.DeleteWorkspace:input_type -> ax.v1alpha1.DeleteWorkspaceRequest
- 38, // 45: ax.v1alpha1.AX.GetModel:input_type -> ax.v1alpha1.GetModelRequest
- 39, // 46: ax.v1alpha1.AX.ListModels:input_type -> ax.v1alpha1.ListModelsRequest
- 41, // 47: ax.v1alpha1.AX.UpdateModel:input_type -> ax.v1alpha1.UpdateModelRequest
- 42, // 48: ax.v1alpha1.AX.DeleteModel:input_type -> ax.v1alpha1.DeleteModelRequest
- 1, // 49: ax.v1alpha1.AX.GetTask:output_type -> ax.v1alpha1.Task
- 24, // 50: ax.v1alpha1.AX.ListTasks:output_type -> ax.v1alpha1.ListTasksResponse
- 1, // 51: ax.v1alpha1.AX.CreateTask:output_type -> ax.v1alpha1.Task
- 27, // 52: ax.v1alpha1.AX.DeleteTask:output_type -> ax.v1alpha1.DeleteTaskResponse
- 1, // 53: ax.v1alpha1.AX.SuspendTask:output_type -> ax.v1alpha1.Task
- 1, // 54: ax.v1alpha1.AX.ResumeTask:output_type -> ax.v1alpha1.Task
- 31, // 55: ax.v1alpha1.AX.WatchTask:output_type -> ax.v1alpha1.WatchTaskResponse
- 11, // 56: ax.v1alpha1.AX.GetWorkspace:output_type -> ax.v1alpha1.Workspace
- 34, // 57: ax.v1alpha1.AX.ListWorkspaces:output_type -> ax.v1alpha1.ListWorkspacesResponse
- 11, // 58: ax.v1alpha1.AX.UpdateWorkspace:output_type -> ax.v1alpha1.Workspace
- 37, // 59: ax.v1alpha1.AX.DeleteWorkspace:output_type -> ax.v1alpha1.DeleteWorkspaceResponse
- 19, // 60: ax.v1alpha1.AX.GetModel:output_type -> ax.v1alpha1.Model
- 40, // 61: ax.v1alpha1.AX.ListModels:output_type -> ax.v1alpha1.ListModelsResponse
- 19, // 62: ax.v1alpha1.AX.UpdateModel:output_type -> ax.v1alpha1.Model
- 43, // 63: ax.v1alpha1.AX.DeleteModel:output_type -> ax.v1alpha1.DeleteModelResponse
- 49, // [49:64] is the sub-list for method output_type
- 34, // [34:49] is the sub-list for method input_type
- 34, // [34:34] is the sub-list for extension type_name
- 34, // [34:34] is the sub-list for extension extendee
- 0, // [0:34] is the sub-list for field type_name
+ 14, // 17: ax.v1alpha1.WorkspaceSpec.files:type_name -> ax.v1alpha1.File
+ 15, // 18: ax.v1alpha1.WorkspaceSpec.mcp:type_name -> ax.v1alpha1.MCPConfig
+ 18, // 19: ax.v1alpha1.WorkspaceSpec.skills:type_name -> ax.v1alpha1.SkillsConfig
+ 16, // 20: ax.v1alpha1.MCPConfig.registries:type_name -> ax.v1alpha1.MCPRegistry
+ 17, // 21: ax.v1alpha1.MCPConfig.servers:type_name -> ax.v1alpha1.MCPServer
+ 17, // 22: ax.v1alpha1.MCPRegistry.servers:type_name -> ax.v1alpha1.MCPServer
+ 19, // 23: ax.v1alpha1.SkillsConfig.registries:type_name -> ax.v1alpha1.SkillRegistry
+ 0, // 24: ax.v1alpha1.Model.metadata:type_name -> ax.v1alpha1.ObjectMeta
+ 21, // 25: ax.v1alpha1.Model.spec:type_name -> ax.v1alpha1.ModelSpec
+ 22, // 26: ax.v1alpha1.ModelSpec.secret_key:type_name -> ax.v1alpha1.SecretKeyRef
+ 46, // 27: ax.v1alpha1.ModelSpec.parameters:type_name -> google.protobuf.Struct
+ 1, // 28: ax.v1alpha1.ListTasksResponse.tasks:type_name -> ax.v1alpha1.Task
+ 1, // 29: ax.v1alpha1.CreateTaskRequest.task:type_name -> ax.v1alpha1.Task
+ 1, // 30: ax.v1alpha1.WatchTaskResponse.task:type_name -> ax.v1alpha1.Task
+ 11, // 31: ax.v1alpha1.ListWorkspacesResponse.workspaces:type_name -> ax.v1alpha1.Workspace
+ 11, // 32: ax.v1alpha1.UpdateWorkspaceRequest.workspace:type_name -> ax.v1alpha1.Workspace
+ 20, // 33: ax.v1alpha1.ListModelsResponse.models:type_name -> ax.v1alpha1.Model
+ 20, // 34: ax.v1alpha1.UpdateModelRequest.model:type_name -> ax.v1alpha1.Model
+ 23, // 35: ax.v1alpha1.AX.GetTask:input_type -> ax.v1alpha1.GetTaskRequest
+ 24, // 36: ax.v1alpha1.AX.ListTasks:input_type -> ax.v1alpha1.ListTasksRequest
+ 26, // 37: ax.v1alpha1.AX.CreateTask:input_type -> ax.v1alpha1.CreateTaskRequest
+ 27, // 38: ax.v1alpha1.AX.DeleteTask:input_type -> ax.v1alpha1.DeleteTaskRequest
+ 29, // 39: ax.v1alpha1.AX.SuspendTask:input_type -> ax.v1alpha1.SuspendTaskRequest
+ 30, // 40: ax.v1alpha1.AX.ResumeTask:input_type -> ax.v1alpha1.ResumeTaskRequest
+ 31, // 41: ax.v1alpha1.AX.WatchTask:input_type -> ax.v1alpha1.WatchTaskRequest
+ 33, // 42: ax.v1alpha1.AX.GetWorkspace:input_type -> ax.v1alpha1.GetWorkspaceRequest
+ 34, // 43: ax.v1alpha1.AX.ListWorkspaces:input_type -> ax.v1alpha1.ListWorkspacesRequest
+ 36, // 44: ax.v1alpha1.AX.UpdateWorkspace:input_type -> ax.v1alpha1.UpdateWorkspaceRequest
+ 37, // 45: ax.v1alpha1.AX.DeleteWorkspace:input_type -> ax.v1alpha1.DeleteWorkspaceRequest
+ 39, // 46: ax.v1alpha1.AX.GetModel:input_type -> ax.v1alpha1.GetModelRequest
+ 40, // 47: ax.v1alpha1.AX.ListModels:input_type -> ax.v1alpha1.ListModelsRequest
+ 42, // 48: ax.v1alpha1.AX.UpdateModel:input_type -> ax.v1alpha1.UpdateModelRequest
+ 43, // 49: ax.v1alpha1.AX.DeleteModel:input_type -> ax.v1alpha1.DeleteModelRequest
+ 1, // 50: ax.v1alpha1.AX.GetTask:output_type -> ax.v1alpha1.Task
+ 25, // 51: ax.v1alpha1.AX.ListTasks:output_type -> ax.v1alpha1.ListTasksResponse
+ 1, // 52: ax.v1alpha1.AX.CreateTask:output_type -> ax.v1alpha1.Task
+ 28, // 53: ax.v1alpha1.AX.DeleteTask:output_type -> ax.v1alpha1.DeleteTaskResponse
+ 1, // 54: ax.v1alpha1.AX.SuspendTask:output_type -> ax.v1alpha1.Task
+ 1, // 55: ax.v1alpha1.AX.ResumeTask:output_type -> ax.v1alpha1.Task
+ 32, // 56: ax.v1alpha1.AX.WatchTask:output_type -> ax.v1alpha1.WatchTaskResponse
+ 11, // 57: ax.v1alpha1.AX.GetWorkspace:output_type -> ax.v1alpha1.Workspace
+ 35, // 58: ax.v1alpha1.AX.ListWorkspaces:output_type -> ax.v1alpha1.ListWorkspacesResponse
+ 11, // 59: ax.v1alpha1.AX.UpdateWorkspace:output_type -> ax.v1alpha1.Workspace
+ 38, // 60: ax.v1alpha1.AX.DeleteWorkspace:output_type -> ax.v1alpha1.DeleteWorkspaceResponse
+ 20, // 61: ax.v1alpha1.AX.GetModel:output_type -> ax.v1alpha1.Model
+ 41, // 62: ax.v1alpha1.AX.ListModels:output_type -> ax.v1alpha1.ListModelsResponse
+ 20, // 63: ax.v1alpha1.AX.UpdateModel:output_type -> ax.v1alpha1.Model
+ 44, // 64: ax.v1alpha1.AX.DeleteModel:output_type -> ax.v1alpha1.DeleteModelResponse
+ 50, // [50:65] is the sub-list for method output_type
+ 35, // [35:50] is the sub-list for method input_type
+ 35, // [35:35] is the sub-list for extension type_name
+ 35, // [35:35] is the sub-list for extension extendee
+ 0, // [0:35] is the sub-list for field type_name
}
func init() { file_pkg_apis_v1alpha1_ax_proto_init() }
@@ -2838,7 +2904,7 @@ func file_pkg_apis_v1alpha1_ax_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pkg_apis_v1alpha1_ax_proto_rawDesc), len(file_pkg_apis_v1alpha1_ax_proto_rawDesc)),
NumEnums: 0,
- NumMessages: 44,
+ NumMessages: 45,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/pkg/apis/v1alpha1/ax.proto b/pkg/apis/v1alpha1/ax.proto
index 518f5a2..9aed114 100644
--- a/pkg/apis/v1alpha1/ax.proto
+++ b/pkg/apis/v1alpha1/ax.proto
@@ -142,8 +142,9 @@ message Workspace {
message WorkspaceSpec {
repeated GitRepo git = 1;
- MCPConfig mcp = 2;
- SkillsConfig skills = 3;
+ repeated File files = 2;
+ MCPConfig mcp = 3;
+ SkillsConfig skills = 4;
}
message GitRepo {
@@ -154,6 +155,11 @@ message GitRepo {
int32 depth = 5;
}
+message File {
+ string path = 1;
+ string content = 2;
+}
+
message MCPConfig {
repeated MCPRegistry registries = 1;
repeated MCPServer servers = 2;
diff --git a/pkg/apis/v1alpha1/types.go b/pkg/apis/v1alpha1/types.go
index c3195d1..362722b 100644
--- a/pkg/apis/v1alpha1/types.go
+++ b/pkg/apis/v1alpha1/types.go
@@ -284,7 +284,18 @@ func ValidateObjectMeta(meta *ObjectMeta) error {
// ValidateWorkspace reports the first problem with a workspace that would make
// it unusable. It is called by the API server before saving.
func ValidateWorkspace(w *Workspace) error {
- return ValidateObjectMeta(w.GetMetadata())
+ if err := ValidateObjectMeta(w.GetMetadata()); err != nil {
+ return err
+ }
+ if w.GetSpec() != nil {
+ for i, f := range w.GetSpec().GetFiles() {
+ field := fmt.Sprintf("spec.files[%d]", i)
+ if f == nil || f.GetPath() == "" {
+ return fmt.Errorf("%s: path is required", field)
+ }
+ }
+ }
+ return nil
}
// ValidateModel reports the first problem with a model that would make it
diff --git a/pkg/apis/v1alpha1/types_test.go b/pkg/apis/v1alpha1/types_test.go
index 0cf1ab0..035f22e 100644
--- a/pkg/apis/v1alpha1/types_test.go
+++ b/pkg/apis/v1alpha1/types_test.go
@@ -540,3 +540,58 @@ spec:
t.Errorf("round trip changed the task:\n%s", out)
}
}
+
+func TestWorkspace_Files_YAML(t *testing.T) {
+ wsYAML := `
+apiVersion: ax.io/v1alpha1
+kind: Workspace
+metadata:
+ name: files-demo
+spec:
+ files:
+ - path: AGENTS.md
+ content: "# Agent Guidelines\nFollow best practices."
+ - path: README.md
+ content: "# Demo Workspace\nWelcome!"
+`
+ var ws v1alpha1.Workspace
+ if err := yaml.Unmarshal([]byte(wsYAML), &ws); err != nil {
+ t.Fatalf("unmarshaling workspace: %v", err)
+ }
+ if len(ws.GetSpec().GetFiles()) != 2 {
+ t.Fatalf("expected 2 files, got %d", len(ws.GetSpec().GetFiles()))
+ }
+ if ws.GetSpec().GetFiles()[0].GetPath() != "AGENTS.md" || ws.GetSpec().GetFiles()[0].GetContent() != "# Agent Guidelines\nFollow best practices." {
+ t.Errorf("unexpected file 0: %+v", ws.GetSpec().GetFiles()[0])
+ }
+ if ws.GetSpec().GetFiles()[1].GetPath() != "README.md" {
+ t.Errorf("unexpected file 1: %+v", ws.GetSpec().GetFiles()[1])
+ }
+
+ out, err := yaml.Marshal(&ws)
+ if err != nil {
+ t.Fatal(err)
+ }
+
+ var back v1alpha1.Workspace
+ if err := yaml.Unmarshal(out, &back); err != nil {
+ t.Fatalf("round trip: %v", err)
+ }
+ if !proto.Equal(&ws, &back) {
+ t.Errorf("round trip changed workspace:\n%s", out)
+ }
+}
+
+func TestValidateWorkspace_Files(t *testing.T) {
+ ws := &v1alpha1.Workspace{
+ Metadata: &v1alpha1.ObjectMeta{Name: "valid-ws"},
+ Spec: &v1alpha1.WorkspaceSpec{
+ Files: []*v1alpha1.File{
+ {Path: "", Content: "missing path"},
+ },
+ },
+ }
+ if err := v1alpha1.ValidateWorkspace(ws); err == nil || !strings.Contains(err.Error(), "spec.files[0]: path is required") {
+ t.Errorf("expected path is required error, got %v", err)
+ }
+}