-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.json
More file actions
212 lines (212 loc) · 5.98 KB
/
Copy pathmanifest.json
File metadata and controls
212 lines (212 loc) · 5.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
{
"name": "cortex-plugin-approval-workflow",
"version": "1.0.4",
"description": "Human-in-the-Loop Approval \u2014 pauses agent execution at critical decision points and routes to a human reviewer via Slack/Discord/Web UI with diff previews and one-click approve/deny",
"kind": "esm",
"entryPoint": "mod.ts",
"runtime": "deno",
"author": "CortexPrism",
"license": "MIT",
"repository": "https://github.com/CortexPrism/cortex-plugin-approval-workflow",
"capabilities": [
"tools",
"events:listener"
],
"tools": [
{
"name": "approval_request",
"description": "Create an approval request for a pending action. Pauses execution and routes to human reviewers with diff previews.",
"params": [
{
"name": "action",
"type": "string",
"description": "Description of what needs approval",
"required": true
},
{
"name": "details",
"type": "string",
"description": "Diff, command, or change details to review",
"required": true
},
{
"name": "risk_level",
"type": "string",
"description": "Severity of the action being approved",
"required": false
},
{
"name": "timeout_minutes",
"type": "number",
"description": "Minutes before the request auto-denies (overrides default)",
"required": false
},
{
"name": "auto_deny_on_timeout",
"type": "boolean",
"description": "Whether to auto-deny when the timeout expires",
"required": false
}
]
},
{
"name": "approval_check",
"description": "Check the status of an approval request by its ID",
"params": [
{
"name": "request_id",
"type": "string",
"description": "The ID of the approval request to check",
"required": true
}
]
},
{
"name": "approval_list",
"description": "List approval requests filtered by status",
"params": [
{
"name": "status",
"type": "string",
"description": "Filter by status: pending, approved, denied, or all",
"required": false
},
{
"name": "limit",
"type": "number",
"description": "Maximum number of requests to return (default 20)",
"required": false
}
]
},
{
"name": "approval_cancel",
"description": "Cancel a pending approval request",
"params": [
{
"name": "request_id",
"type": "string",
"description": "The ID of the approval request to cancel",
"required": true
},
{
"name": "reason",
"type": "string",
"description": "Reason for cancellation",
"required": false
}
]
},
{
"name": "approval_policy",
"description": "View or update the approval policy rules that determine which actions require approval",
"params": [
{
"name": "action",
"type": "string",
"description": "Whether to view or update the policy rules",
"required": false
},
{
"name": "rules",
"type": "string",
"description": "JSON array of rule objects (required when action is 'update')",
"required": false
}
]
},
{
"name": "approval_stats",
"description": "Get statistics about approval requests",
"params": [
{
"name": "since",
"type": "string",
"description": "ISO date filter \u2014 only include requests created after this date",
"required": false
}
]
}
],
"ui": {
"settings": [
{
"section": "General",
"fields": [
{
"type": "number",
"label": "Default Timeout (minutes)",
"description": "Minutes before a pending request times out",
"defaultValue": 30,
"key": "defaultTimeoutMinutes"
},
{
"type": "boolean",
"label": "Auto-Deny on Timeout",
"description": "Automatically deny requests when the timeout expires",
"defaultValue": true,
"key": "autoDenyOnTimeout"
},
{
"type": "select",
"label": "Require Approval For",
"description": "Minimum risk level that requires human approval",
"defaultValue": "high_and_critical",
"key": "requireApprovalFor",
"options": [
{
"label": "Critical Only",
"value": "critical_only"
},
{
"label": "High & Critical",
"value": "high_and_critical"
},
{
"label": "Medium+",
"value": "medium_and_above"
},
{
"label": "All",
"value": "all"
}
]
}
]
},
{
"section": "Notifications",
"fields": [
{
"type": "text",
"label": "Slack Webhook URL",
"description": "Send approval notifications to this Slack webhook",
"required": false,
"key": "notifySlack"
},
{
"type": "text",
"label": "Discord Webhook URL",
"description": "Send approval notifications to this Discord webhook",
"required": false,
"key": "notifyDiscord"
}
]
}
]
},
"dependencies": {},
"peerDependencies": {
"cortex": ">=0.51.0"
},
"aiDisclosure": {
"tools": [
"Claude Code (Anthropic) \u2014 scaffold and implementation"
],
"humanReview": true
},
"events": [
"tool:pre-execute"
],
"homepage": "https://github.com/CortexPrism/cortex-plugin-approval-workflow"
}