damage-control-dev 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- damage_control/__init__.py +9 -0
- damage_control/__main__.py +7 -0
- damage_control/adapter.py +179 -0
- damage_control/audit.py +432 -0
- damage_control/breakglass.py +155 -0
- damage_control/claude_code.py +148 -0
- damage_control/cli.py +173 -0
- damage_control/engine.py +10656 -0
- damage_control/groups.py +114 -0
- damage_control/harness_config.py +205 -0
- damage_control/hook.py +54 -0
- damage_control/install.py +618 -0
- damage_control/packs.py +219 -0
- damage_control/policy.py +323 -0
- damage_control/profile.py +177 -0
- damage_control/rules/aws.json +85 -0
- damage_control/rules/aws.yaml +76 -0
- damage_control/rules/cloud-hosting.json +162 -0
- damage_control/rules/cloud-hosting.yaml +163 -0
- damage_control/rules/containers.json +67 -0
- damage_control/rules/containers.yaml +69 -0
- damage_control/rules/control-plane.json +7 -0
- damage_control/rules/control-plane.yaml +21 -0
- damage_control/rules/core.json +332 -0
- damage_control/rules/core.yaml +441 -0
- damage_control/rules/databases.json +117 -0
- damage_control/rules/databases.yaml +123 -0
- damage_control/rules/firebase.json +34 -0
- damage_control/rules/firebase.yaml +30 -0
- damage_control/rules/gcp.json +60 -0
- damage_control/rules/gcp.yaml +57 -0
- damage_control/rules/git.json +119 -0
- damage_control/rules/git.yaml +120 -0
- damage_control/rules/infrastructure.json +69 -0
- damage_control/rules/infrastructure.yaml +66 -0
- damage_control/rules/mcp-tools.json +11 -0
- damage_control/rules/mcp-tools.yaml +47 -0
- damage_control/rules/outbound.json +40 -0
- damage_control/rules/outbound.yaml +58 -0
- damage_control/rules/payloads.json +120 -0
- damage_control/rules/payloads.yaml +155 -0
- damage_control/rules/publish.json +46 -0
- damage_control/rules/publish.yaml +46 -0
- damage_control/rules/registry.json +10 -0
- damage_control/rules/registry.yaml +11 -0
- damage_control/rules/remote.json +31 -0
- damage_control/rules/remote.yaml +53 -0
- damage_control/rules/tmux.json +17 -0
- damage_control/rules/tmux.yaml +16 -0
- damage_control/ruleset.py +94 -0
- damage_control/tooldefs/aws.json +140 -0
- damage_control/tooldefs/aws.yaml +119 -0
- damage_control/tooldefs/docker.json +146 -0
- damage_control/tooldefs/docker.yaml +123 -0
- damage_control/tooldefs/gcp.json +186 -0
- damage_control/tooldefs/gcp.yaml +158 -0
- damage_control/tooldefs/gh.json +172 -0
- damage_control/tooldefs/gh.yaml +145 -0
- damage_control/tooldefs/git.json +166 -0
- damage_control/tooldefs/git.yaml +143 -0
- damage_control/tooldefs/kubectl.json +101 -0
- damage_control/tooldefs/kubectl.yaml +85 -0
- damage_control/tooldefs/npm.json +77 -0
- damage_control/tooldefs/npm.yaml +65 -0
- damage_control/tooldefs/terraform.json +68 -0
- damage_control/tooldefs/terraform.yaml +57 -0
- damage_control/tooldefs/uv.json +112 -0
- damage_control/tooldefs/uv.yaml +97 -0
- damage_control_dev-0.1.0.dist-info/METADATA +15 -0
- damage_control_dev-0.1.0.dist-info/RECORD +74 -0
- damage_control_dev-0.1.0.dist-info/WHEEL +4 -0
- damage_control_dev-0.1.0.dist-info/entry_points.txt +2 -0
- damage_control_dev-0.1.0.dist-info/licenses/LICENSE +201 -0
- damage_control_dev-0.1.0.dist-info/licenses/NOTICE +4 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Google Cloud CLI",
|
|
3
|
+
"binary": "gcloud",
|
|
4
|
+
"purpose": "Manage Google Cloud Platform resources — compute, storage, databases, IAM, and more",
|
|
5
|
+
"docs": "https://cloud.google.com/sdk/gcloud/reference",
|
|
6
|
+
"install": "brew install --cask google-cloud-sdk",
|
|
7
|
+
"commands": [
|
|
8
|
+
{
|
|
9
|
+
"id": "tooldef.google-cloud-cli-authenticate-with-a-google-account",
|
|
10
|
+
"cmd": "gcloud auth login",
|
|
11
|
+
"access": "write",
|
|
12
|
+
"description": "Authenticate with a Google account"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"cmd": "gcloud auth list",
|
|
16
|
+
"access": "read",
|
|
17
|
+
"description": "List credentialed accounts"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"cmd": "gcloud config list",
|
|
21
|
+
"access": "read",
|
|
22
|
+
"description": "Show current CLI configuration"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "tooldef.google-cloud-cli-set-the-active-gcp-project",
|
|
26
|
+
"cmd": "gcloud config set project <project-id>",
|
|
27
|
+
"access": "write",
|
|
28
|
+
"description": "Set the active GCP project"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"cmd": "gcloud projects list",
|
|
32
|
+
"access": "read",
|
|
33
|
+
"description": "List all GCP projects"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"cmd": "gcloud projects describe <project-id>",
|
|
37
|
+
"access": "read",
|
|
38
|
+
"description": "Show project details"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "tooldef.google-cloud-cli-create-a-new-gcp-project",
|
|
42
|
+
"cmd": "gcloud projects create <project-id>",
|
|
43
|
+
"access": "write",
|
|
44
|
+
"description": "Create a new GCP project"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"cmd": "gcloud projects delete <project-id>",
|
|
48
|
+
"access": "blocked",
|
|
49
|
+
"description": "Delete an entire GCP project and all its resources (unrecoverable)"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"cmd": "gcloud compute instances list",
|
|
53
|
+
"access": "read",
|
|
54
|
+
"description": "List VM instances"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"cmd": "gcloud compute instances describe <name>",
|
|
58
|
+
"access": "read",
|
|
59
|
+
"description": "Show VM instance details"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "tooldef.google-cloud-cli-start-a-stopped-vm-instance",
|
|
63
|
+
"cmd": "gcloud compute instances start <name>",
|
|
64
|
+
"access": "write",
|
|
65
|
+
"description": "Start a stopped VM instance"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "tooldef.google-cloud-cli-stop-a-running-vm-instance",
|
|
69
|
+
"cmd": "gcloud compute instances stop <name>",
|
|
70
|
+
"access": "write",
|
|
71
|
+
"description": "Stop a running VM instance"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "tooldef.google-cloud-cli-create-a-new-vm-instance",
|
|
75
|
+
"cmd": "gcloud compute instances create <name>",
|
|
76
|
+
"access": "write",
|
|
77
|
+
"description": "Create a new VM instance"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"cmd": "gcloud compute instances delete <name>",
|
|
81
|
+
"access": "blocked",
|
|
82
|
+
"description": "Permanently delete a VM instance"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"cmd": "gcloud storage ls [gs://<bucket>]",
|
|
86
|
+
"access": "read",
|
|
87
|
+
"description": "List buckets or objects"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "tooldef.google-cloud-cli-copy-files-to-from-cloud-storage",
|
|
91
|
+
"cmd": "gcloud storage cp <src> <dst>",
|
|
92
|
+
"access": "write",
|
|
93
|
+
"description": "Copy files to/from Cloud Storage"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "tooldef.google-cloud-cli-delete-a-single-object",
|
|
97
|
+
"cmd": "gcloud storage rm gs://<bucket>/<object>",
|
|
98
|
+
"access": "write",
|
|
99
|
+
"description": "Delete a single object"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"cmd": "gcloud storage rm -r gs://<bucket>",
|
|
103
|
+
"access": "blocked",
|
|
104
|
+
"description": "Recursively delete all objects in a bucket"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"cmd": "gcloud sql instances list",
|
|
108
|
+
"access": "read",
|
|
109
|
+
"description": "List Cloud SQL instances"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"cmd": "gcloud sql instances describe <name>",
|
|
113
|
+
"access": "read",
|
|
114
|
+
"description": "Show Cloud SQL instance details"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "tooldef.google-cloud-cli-create-a-cloud-sql-instance",
|
|
118
|
+
"cmd": "gcloud sql instances create <name>",
|
|
119
|
+
"access": "write",
|
|
120
|
+
"description": "Create a Cloud SQL instance"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"cmd": "gcloud sql instances delete <name>",
|
|
124
|
+
"access": "blocked",
|
|
125
|
+
"description": "Delete a Cloud SQL instance (data loss)"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"cmd": "gcloud functions list",
|
|
129
|
+
"access": "read",
|
|
130
|
+
"description": "List Cloud Functions"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"cmd": "gcloud functions describe <name>",
|
|
134
|
+
"access": "read",
|
|
135
|
+
"description": "Show function details"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "tooldef.google-cloud-cli-deploy-a-cloud-function",
|
|
139
|
+
"cmd": "gcloud functions deploy <name>",
|
|
140
|
+
"access": "write",
|
|
141
|
+
"description": "Deploy a Cloud Function"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"cmd": "gcloud functions delete <name>",
|
|
145
|
+
"access": "blocked",
|
|
146
|
+
"description": "Delete a Cloud Function"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"cmd": "gcloud iam service-accounts list",
|
|
150
|
+
"access": "read",
|
|
151
|
+
"description": "List service accounts"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "tooldef.google-cloud-cli-create-a-service-account",
|
|
155
|
+
"cmd": "gcloud iam service-accounts create <name>",
|
|
156
|
+
"access": "write",
|
|
157
|
+
"description": "Create a service account"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"cmd": "gcloud iam service-accounts delete <email>",
|
|
161
|
+
"access": "blocked",
|
|
162
|
+
"description": "Delete a service account"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"cmd": "gcloud container clusters list",
|
|
166
|
+
"access": "read",
|
|
167
|
+
"description": "List GKE clusters"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"cmd": "gcloud container clusters describe <name>",
|
|
171
|
+
"access": "read",
|
|
172
|
+
"description": "Show GKE cluster details"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "tooldef.google-cloud-cli-create-a-gke-cluster",
|
|
176
|
+
"cmd": "gcloud container clusters create <name>",
|
|
177
|
+
"access": "write",
|
|
178
|
+
"description": "Create a GKE cluster"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"cmd": "gcloud container clusters delete <name>",
|
|
182
|
+
"access": "blocked",
|
|
183
|
+
"description": "Delete a GKE cluster and all workloads"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
name: Google Cloud CLI
|
|
2
|
+
binary: gcloud
|
|
3
|
+
purpose: Manage Google Cloud Platform resources — compute, storage, databases, IAM, and more
|
|
4
|
+
docs: https://cloud.google.com/sdk/gcloud/reference
|
|
5
|
+
install: brew install --cask google-cloud-sdk
|
|
6
|
+
|
|
7
|
+
commands:
|
|
8
|
+
# Auth & config
|
|
9
|
+
- id: tooldef.google-cloud-cli-authenticate-with-a-google-account
|
|
10
|
+
cmd: "gcloud auth login"
|
|
11
|
+
access: write
|
|
12
|
+
description: Authenticate with a Google account
|
|
13
|
+
|
|
14
|
+
- cmd: "gcloud auth list"
|
|
15
|
+
access: read
|
|
16
|
+
description: List credentialed accounts
|
|
17
|
+
|
|
18
|
+
- cmd: "gcloud config list"
|
|
19
|
+
access: read
|
|
20
|
+
description: Show current CLI configuration
|
|
21
|
+
|
|
22
|
+
- id: tooldef.google-cloud-cli-set-the-active-gcp-project
|
|
23
|
+
cmd: "gcloud config set project <project-id>"
|
|
24
|
+
access: write
|
|
25
|
+
description: Set the active GCP project
|
|
26
|
+
|
|
27
|
+
# Projects
|
|
28
|
+
- cmd: "gcloud projects list"
|
|
29
|
+
access: read
|
|
30
|
+
description: List all GCP projects
|
|
31
|
+
|
|
32
|
+
- cmd: "gcloud projects describe <project-id>"
|
|
33
|
+
access: read
|
|
34
|
+
description: Show project details
|
|
35
|
+
|
|
36
|
+
- id: tooldef.google-cloud-cli-create-a-new-gcp-project
|
|
37
|
+
cmd: "gcloud projects create <project-id>"
|
|
38
|
+
access: write
|
|
39
|
+
description: Create a new GCP project
|
|
40
|
+
|
|
41
|
+
- cmd: "gcloud projects delete <project-id>"
|
|
42
|
+
access: blocked
|
|
43
|
+
description: Delete an entire GCP project and all its resources (unrecoverable)
|
|
44
|
+
|
|
45
|
+
# Compute (VMs)
|
|
46
|
+
- cmd: "gcloud compute instances list"
|
|
47
|
+
access: read
|
|
48
|
+
description: List VM instances
|
|
49
|
+
|
|
50
|
+
- cmd: "gcloud compute instances describe <name>"
|
|
51
|
+
access: read
|
|
52
|
+
description: Show VM instance details
|
|
53
|
+
|
|
54
|
+
- id: tooldef.google-cloud-cli-start-a-stopped-vm-instance
|
|
55
|
+
cmd: "gcloud compute instances start <name>"
|
|
56
|
+
access: write
|
|
57
|
+
description: Start a stopped VM instance
|
|
58
|
+
|
|
59
|
+
- id: tooldef.google-cloud-cli-stop-a-running-vm-instance
|
|
60
|
+
cmd: "gcloud compute instances stop <name>"
|
|
61
|
+
access: write
|
|
62
|
+
description: Stop a running VM instance
|
|
63
|
+
|
|
64
|
+
- id: tooldef.google-cloud-cli-create-a-new-vm-instance
|
|
65
|
+
cmd: "gcloud compute instances create <name>"
|
|
66
|
+
access: write
|
|
67
|
+
description: Create a new VM instance
|
|
68
|
+
|
|
69
|
+
- cmd: "gcloud compute instances delete <name>"
|
|
70
|
+
access: blocked
|
|
71
|
+
description: Permanently delete a VM instance
|
|
72
|
+
|
|
73
|
+
# Cloud Storage
|
|
74
|
+
- cmd: "gcloud storage ls [gs://<bucket>]"
|
|
75
|
+
access: read
|
|
76
|
+
description: List buckets or objects
|
|
77
|
+
|
|
78
|
+
- id: tooldef.google-cloud-cli-copy-files-to-from-cloud-storage
|
|
79
|
+
cmd: "gcloud storage cp <src> <dst>"
|
|
80
|
+
access: write
|
|
81
|
+
description: Copy files to/from Cloud Storage
|
|
82
|
+
|
|
83
|
+
- id: tooldef.google-cloud-cli-delete-a-single-object
|
|
84
|
+
cmd: "gcloud storage rm gs://<bucket>/<object>"
|
|
85
|
+
access: write
|
|
86
|
+
description: Delete a single object
|
|
87
|
+
|
|
88
|
+
- cmd: "gcloud storage rm -r gs://<bucket>"
|
|
89
|
+
access: blocked
|
|
90
|
+
description: Recursively delete all objects in a bucket
|
|
91
|
+
|
|
92
|
+
# Cloud SQL
|
|
93
|
+
- cmd: "gcloud sql instances list"
|
|
94
|
+
access: read
|
|
95
|
+
description: List Cloud SQL instances
|
|
96
|
+
|
|
97
|
+
- cmd: "gcloud sql instances describe <name>"
|
|
98
|
+
access: read
|
|
99
|
+
description: Show Cloud SQL instance details
|
|
100
|
+
|
|
101
|
+
- id: tooldef.google-cloud-cli-create-a-cloud-sql-instance
|
|
102
|
+
cmd: "gcloud sql instances create <name>"
|
|
103
|
+
access: write
|
|
104
|
+
description: Create a Cloud SQL instance
|
|
105
|
+
|
|
106
|
+
- cmd: "gcloud sql instances delete <name>"
|
|
107
|
+
access: blocked
|
|
108
|
+
description: Delete a Cloud SQL instance (data loss)
|
|
109
|
+
|
|
110
|
+
# Cloud Functions
|
|
111
|
+
- cmd: "gcloud functions list"
|
|
112
|
+
access: read
|
|
113
|
+
description: List Cloud Functions
|
|
114
|
+
|
|
115
|
+
- cmd: "gcloud functions describe <name>"
|
|
116
|
+
access: read
|
|
117
|
+
description: Show function details
|
|
118
|
+
|
|
119
|
+
- id: tooldef.google-cloud-cli-deploy-a-cloud-function
|
|
120
|
+
cmd: "gcloud functions deploy <name>"
|
|
121
|
+
access: write
|
|
122
|
+
description: Deploy a Cloud Function
|
|
123
|
+
|
|
124
|
+
- cmd: "gcloud functions delete <name>"
|
|
125
|
+
access: blocked
|
|
126
|
+
description: Delete a Cloud Function
|
|
127
|
+
|
|
128
|
+
# IAM
|
|
129
|
+
- cmd: "gcloud iam service-accounts list"
|
|
130
|
+
access: read
|
|
131
|
+
description: List service accounts
|
|
132
|
+
|
|
133
|
+
- id: tooldef.google-cloud-cli-create-a-service-account
|
|
134
|
+
cmd: "gcloud iam service-accounts create <name>"
|
|
135
|
+
access: write
|
|
136
|
+
description: Create a service account
|
|
137
|
+
|
|
138
|
+
- cmd: "gcloud iam service-accounts delete <email>"
|
|
139
|
+
access: blocked
|
|
140
|
+
description: Delete a service account
|
|
141
|
+
|
|
142
|
+
# GKE
|
|
143
|
+
- cmd: "gcloud container clusters list"
|
|
144
|
+
access: read
|
|
145
|
+
description: List GKE clusters
|
|
146
|
+
|
|
147
|
+
- cmd: "gcloud container clusters describe <name>"
|
|
148
|
+
access: read
|
|
149
|
+
description: Show GKE cluster details
|
|
150
|
+
|
|
151
|
+
- id: tooldef.google-cloud-cli-create-a-gke-cluster
|
|
152
|
+
cmd: "gcloud container clusters create <name>"
|
|
153
|
+
access: write
|
|
154
|
+
description: Create a GKE cluster
|
|
155
|
+
|
|
156
|
+
- cmd: "gcloud container clusters delete <name>"
|
|
157
|
+
access: blocked
|
|
158
|
+
description: Delete a GKE cluster and all workloads
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "GitHub CLI",
|
|
3
|
+
"binary": "gh",
|
|
4
|
+
"purpose": "Interact with GitHub — repos, PRs, issues, releases, actions",
|
|
5
|
+
"docs": "https://cli.github.com/manual/",
|
|
6
|
+
"install": "brew install gh",
|
|
7
|
+
"commands": [
|
|
8
|
+
{
|
|
9
|
+
"cmd": "gh repo list [<owner>]",
|
|
10
|
+
"access": "read",
|
|
11
|
+
"description": "List repositories"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"cmd": "gh repo view [<repo>]",
|
|
15
|
+
"access": "read",
|
|
16
|
+
"description": "View repository details"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "tooldef.github-cli-clone-a-repository",
|
|
20
|
+
"cmd": "gh repo clone <repo>",
|
|
21
|
+
"access": "write",
|
|
22
|
+
"description": "Clone a repository"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "tooldef.github-cli-create-a-new-repository",
|
|
26
|
+
"cmd": "gh repo create [<name>]",
|
|
27
|
+
"access": "write",
|
|
28
|
+
"description": "Create a new repository"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "tooldef.github-cli-fork-a-repository",
|
|
32
|
+
"cmd": "gh repo fork <repo>",
|
|
33
|
+
"access": "write",
|
|
34
|
+
"description": "Fork a repository"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"cmd": "gh repo delete <repo>",
|
|
38
|
+
"access": "blocked",
|
|
39
|
+
"description": "Permanently delete a repository"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"cmd": "gh pr list",
|
|
43
|
+
"access": "read",
|
|
44
|
+
"description": "List pull requests"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"cmd": "gh pr view [<pr>]",
|
|
48
|
+
"access": "read",
|
|
49
|
+
"description": "View PR details"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"cmd": "gh pr diff [<pr>]",
|
|
53
|
+
"access": "read",
|
|
54
|
+
"description": "View PR diff"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"cmd": "gh pr checks [<pr>]",
|
|
58
|
+
"access": "read",
|
|
59
|
+
"description": "View PR CI status"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"cmd": "gh pr create",
|
|
63
|
+
"access": "write",
|
|
64
|
+
"description": "Create a pull request",
|
|
65
|
+
"id": "gh.pr-create"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "tooldef.github-cli-merge-a-pull-request",
|
|
69
|
+
"cmd": "gh pr merge [<pr>]",
|
|
70
|
+
"access": "write",
|
|
71
|
+
"description": "Merge a pull request"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "tooldef.github-cli-close-a-pull-request",
|
|
75
|
+
"cmd": "gh pr close [<pr>]",
|
|
76
|
+
"access": "write",
|
|
77
|
+
"description": "Close a pull request"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "tooldef.github-cli-add-a-comment-to-a-pr",
|
|
81
|
+
"cmd": "gh pr comment [<pr>] --body '<text>'",
|
|
82
|
+
"access": "write",
|
|
83
|
+
"description": "Add a comment to a PR"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "tooldef.github-cli-approve-a-pull-request",
|
|
87
|
+
"cmd": "gh pr review [<pr>] --approve",
|
|
88
|
+
"access": "write",
|
|
89
|
+
"description": "Approve a pull request"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"cmd": "gh issue list",
|
|
93
|
+
"access": "read",
|
|
94
|
+
"description": "List issues"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"cmd": "gh issue view <issue>",
|
|
98
|
+
"access": "read",
|
|
99
|
+
"description": "View issue details"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "tooldef.github-cli-create-an-issue",
|
|
103
|
+
"cmd": "gh issue create",
|
|
104
|
+
"access": "write",
|
|
105
|
+
"description": "Create an issue"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "tooldef.github-cli-close-an-issue",
|
|
109
|
+
"cmd": "gh issue close <issue>",
|
|
110
|
+
"access": "write",
|
|
111
|
+
"description": "Close an issue"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "tooldef.github-cli-comment-on-an-issue",
|
|
115
|
+
"cmd": "gh issue comment <issue> --body '<text>'",
|
|
116
|
+
"access": "write",
|
|
117
|
+
"description": "Comment on an issue"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"cmd": "gh release list",
|
|
121
|
+
"access": "read",
|
|
122
|
+
"description": "List releases"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"cmd": "gh release view <tag>",
|
|
126
|
+
"access": "read",
|
|
127
|
+
"description": "View release details"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "tooldef.github-cli-create-a-release",
|
|
131
|
+
"cmd": "gh release create <tag>",
|
|
132
|
+
"access": "write",
|
|
133
|
+
"description": "Create a release"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"cmd": "gh release delete <tag>",
|
|
137
|
+
"access": "blocked",
|
|
138
|
+
"description": "Delete a release"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"cmd": "gh run list",
|
|
142
|
+
"access": "read",
|
|
143
|
+
"description": "List workflow runs"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"cmd": "gh run view <run-id>",
|
|
147
|
+
"access": "read",
|
|
148
|
+
"description": "View workflow run details"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"cmd": "gh run watch <run-id>",
|
|
152
|
+
"access": "read",
|
|
153
|
+
"description": "Watch a workflow run in real time"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"cmd": "gh workflow list",
|
|
157
|
+
"access": "read",
|
|
158
|
+
"description": "List workflows"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "tooldef.github-cli-manually-trigger-a-workflow",
|
|
162
|
+
"cmd": "gh workflow run <workflow>",
|
|
163
|
+
"access": "write",
|
|
164
|
+
"description": "Manually trigger a workflow"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"cmd": "gh auth status",
|
|
168
|
+
"access": "read",
|
|
169
|
+
"description": "Show current auth state"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
name: GitHub CLI
|
|
2
|
+
binary: gh
|
|
3
|
+
purpose: Interact with GitHub — repos, PRs, issues, releases, actions
|
|
4
|
+
docs: https://cli.github.com/manual/
|
|
5
|
+
install: brew install gh
|
|
6
|
+
|
|
7
|
+
commands:
|
|
8
|
+
# Repos
|
|
9
|
+
- cmd: "gh repo list [<owner>]"
|
|
10
|
+
access: read
|
|
11
|
+
description: List repositories
|
|
12
|
+
|
|
13
|
+
- cmd: "gh repo view [<repo>]"
|
|
14
|
+
access: read
|
|
15
|
+
description: View repository details
|
|
16
|
+
|
|
17
|
+
- id: tooldef.github-cli-clone-a-repository
|
|
18
|
+
cmd: "gh repo clone <repo>"
|
|
19
|
+
access: write
|
|
20
|
+
description: Clone a repository
|
|
21
|
+
|
|
22
|
+
- id: tooldef.github-cli-create-a-new-repository
|
|
23
|
+
cmd: "gh repo create [<name>]"
|
|
24
|
+
access: write
|
|
25
|
+
description: Create a new repository
|
|
26
|
+
|
|
27
|
+
- id: tooldef.github-cli-fork-a-repository
|
|
28
|
+
cmd: "gh repo fork <repo>"
|
|
29
|
+
access: write
|
|
30
|
+
description: Fork a repository
|
|
31
|
+
|
|
32
|
+
- cmd: "gh repo delete <repo>"
|
|
33
|
+
access: blocked
|
|
34
|
+
description: Permanently delete a repository
|
|
35
|
+
|
|
36
|
+
# Pull Requests
|
|
37
|
+
- cmd: "gh pr list"
|
|
38
|
+
access: read
|
|
39
|
+
description: List pull requests
|
|
40
|
+
|
|
41
|
+
- cmd: "gh pr view [<pr>]"
|
|
42
|
+
access: read
|
|
43
|
+
description: View PR details
|
|
44
|
+
|
|
45
|
+
- cmd: "gh pr diff [<pr>]"
|
|
46
|
+
access: read
|
|
47
|
+
description: View PR diff
|
|
48
|
+
|
|
49
|
+
- cmd: "gh pr checks [<pr>]"
|
|
50
|
+
access: read
|
|
51
|
+
description: View PR CI status
|
|
52
|
+
|
|
53
|
+
- cmd: "gh pr create"
|
|
54
|
+
access: write
|
|
55
|
+
description: Create a pull request
|
|
56
|
+
id: gh.pr-create
|
|
57
|
+
|
|
58
|
+
- id: tooldef.github-cli-merge-a-pull-request
|
|
59
|
+
cmd: "gh pr merge [<pr>]"
|
|
60
|
+
access: write
|
|
61
|
+
description: Merge a pull request
|
|
62
|
+
|
|
63
|
+
- id: tooldef.github-cli-close-a-pull-request
|
|
64
|
+
cmd: "gh pr close [<pr>]"
|
|
65
|
+
access: write
|
|
66
|
+
description: Close a pull request
|
|
67
|
+
|
|
68
|
+
- id: tooldef.github-cli-add-a-comment-to-a-pr
|
|
69
|
+
cmd: "gh pr comment [<pr>] --body '<text>'"
|
|
70
|
+
access: write
|
|
71
|
+
description: Add a comment to a PR
|
|
72
|
+
|
|
73
|
+
- id: tooldef.github-cli-approve-a-pull-request
|
|
74
|
+
cmd: "gh pr review [<pr>] --approve"
|
|
75
|
+
access: write
|
|
76
|
+
description: Approve a pull request
|
|
77
|
+
|
|
78
|
+
# Issues
|
|
79
|
+
- cmd: "gh issue list"
|
|
80
|
+
access: read
|
|
81
|
+
description: List issues
|
|
82
|
+
|
|
83
|
+
- cmd: "gh issue view <issue>"
|
|
84
|
+
access: read
|
|
85
|
+
description: View issue details
|
|
86
|
+
|
|
87
|
+
- id: tooldef.github-cli-create-an-issue
|
|
88
|
+
cmd: "gh issue create"
|
|
89
|
+
access: write
|
|
90
|
+
description: Create an issue
|
|
91
|
+
|
|
92
|
+
- id: tooldef.github-cli-close-an-issue
|
|
93
|
+
cmd: "gh issue close <issue>"
|
|
94
|
+
access: write
|
|
95
|
+
description: Close an issue
|
|
96
|
+
|
|
97
|
+
- id: tooldef.github-cli-comment-on-an-issue
|
|
98
|
+
cmd: "gh issue comment <issue> --body '<text>'"
|
|
99
|
+
access: write
|
|
100
|
+
description: Comment on an issue
|
|
101
|
+
|
|
102
|
+
# Releases
|
|
103
|
+
- cmd: "gh release list"
|
|
104
|
+
access: read
|
|
105
|
+
description: List releases
|
|
106
|
+
|
|
107
|
+
- cmd: "gh release view <tag>"
|
|
108
|
+
access: read
|
|
109
|
+
description: View release details
|
|
110
|
+
|
|
111
|
+
- id: tooldef.github-cli-create-a-release
|
|
112
|
+
cmd: "gh release create <tag>"
|
|
113
|
+
access: write
|
|
114
|
+
description: Create a release
|
|
115
|
+
|
|
116
|
+
- cmd: "gh release delete <tag>"
|
|
117
|
+
access: blocked
|
|
118
|
+
description: Delete a release
|
|
119
|
+
|
|
120
|
+
# Actions / Workflows
|
|
121
|
+
- cmd: "gh run list"
|
|
122
|
+
access: read
|
|
123
|
+
description: List workflow runs
|
|
124
|
+
|
|
125
|
+
- cmd: "gh run view <run-id>"
|
|
126
|
+
access: read
|
|
127
|
+
description: View workflow run details
|
|
128
|
+
|
|
129
|
+
- cmd: "gh run watch <run-id>"
|
|
130
|
+
access: read
|
|
131
|
+
description: Watch a workflow run in real time
|
|
132
|
+
|
|
133
|
+
- cmd: "gh workflow list"
|
|
134
|
+
access: read
|
|
135
|
+
description: List workflows
|
|
136
|
+
|
|
137
|
+
- id: tooldef.github-cli-manually-trigger-a-workflow
|
|
138
|
+
cmd: "gh workflow run <workflow>"
|
|
139
|
+
access: write
|
|
140
|
+
description: Manually trigger a workflow
|
|
141
|
+
|
|
142
|
+
# Auth
|
|
143
|
+
- cmd: "gh auth status"
|
|
144
|
+
access: read
|
|
145
|
+
description: Show current auth state
|