feat: add builtin role profiles
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
return yoi.profile {
|
||||
slug = "coder",
|
||||
description = "Coder role profile with bundled reusable policy",
|
||||
|
||||
scope = yoi.scope.workspace_write(),
|
||||
|
||||
feature = {
|
||||
task = { enabled = false },
|
||||
memory = { enabled = true },
|
||||
web = { enabled = true },
|
||||
pods = { enabled = false },
|
||||
ticket = { enabled = false, access = "lifecycle" },
|
||||
ticket_orchestration = { enabled = false },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
return yoi.profile {
|
||||
slug = "companion",
|
||||
description = "Companion role profile with bundled reusable policy",
|
||||
|
||||
scope = yoi.scope.workspace_read(),
|
||||
|
||||
feature = {
|
||||
task = { enabled = false },
|
||||
memory = { enabled = true },
|
||||
web = { enabled = true },
|
||||
pods = { enabled = false },
|
||||
ticket = { enabled = false, access = "lifecycle" },
|
||||
ticket_orchestration = { enabled = false },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
return yoi.profile {
|
||||
slug = "intake",
|
||||
description = "Intake role profile with bundled reusable policy",
|
||||
|
||||
scope = yoi.scope.workspace_read(),
|
||||
|
||||
feature = {
|
||||
task = { enabled = false },
|
||||
memory = { enabled = true },
|
||||
web = { enabled = true },
|
||||
pods = { enabled = false },
|
||||
ticket = { enabled = true, access = "lifecycle" },
|
||||
ticket_orchestration = { enabled = false },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
return yoi.profile {
|
||||
slug = "orchestrator",
|
||||
description = "Orchestrator role profile with bundled reusable policy",
|
||||
|
||||
scope = yoi.scope.workspace_read(),
|
||||
|
||||
feature = {
|
||||
task = { enabled = false },
|
||||
memory = { enabled = true },
|
||||
web = { enabled = true },
|
||||
pods = { enabled = true },
|
||||
ticket = { enabled = true, access = "lifecycle" },
|
||||
ticket_orchestration = { enabled = true },
|
||||
},
|
||||
|
||||
delegation_scope = yoi.scope.workspace_write(),
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
return yoi.profile {
|
||||
slug = "reviewer",
|
||||
description = "Reviewer role profile with bundled reusable policy",
|
||||
|
||||
scope = yoi.scope.workspace_read(),
|
||||
|
||||
feature = {
|
||||
task = { enabled = false },
|
||||
memory = { enabled = true },
|
||||
web = { enabled = true },
|
||||
pods = { enabled = false },
|
||||
ticket = { enabled = false, access = "lifecycle" },
|
||||
ticket_orchestration = { enabled = false },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user