Skip to content

Commit 8216cbb

Browse files
fix(cli): gate destructive v2 commands
1 parent b20179a commit 8216cbb

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

apps/docs/content/docs/en/cli/knowledge.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ sim knowledge connectors delete <id> <connectorId> [options]
268268
| --- | --- | --- |
269269
| `--delete-documents` | No | Also permanently delete documents produced by this connector. |
270270
| `--no-delete-documents` | No | Send --delete-documents as false. |
271+
| `-y, --yes` | Yes | Confirm this destructive operation. |
271272

272273
</CommandTable>
273274

apps/docs/content/docs/en/cli/reference.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,7 @@ sim knowledge connectors delete <id> <connectorId> [options]
12321232
| --- | --- | --- |
12331233
| `--delete-documents` | No | Also permanently delete documents produced by this connector. |
12341234
| `--no-delete-documents` | No | Send --delete-documents as false. |
1235+
| `-y, --yes` | Yes | Confirm this destructive operation. |
12351236

12361237
</CommandTable>
12371238

@@ -2202,6 +2203,7 @@ sim skills editors delete <id> [options]
22022203
| Option | Required | Description |
22032204
| --- | --- | --- |
22042205
| `--email <value>` | Yes | Email address of a current workspace member. |
2206+
| `-y, --yes` | Yes | Confirm this destructive operation. |
22052207

22062208
</CommandTable>
22072209

apps/docs/content/docs/en/cli/skills.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ sim skills editors delete <id> [options]
146146
| Option | Required | Description |
147147
| --- | --- | --- |
148148
| `--email <value>` | Yes | Email address of a current workspace member. |
149+
| `-y, --yes` | Yes | Confirm this destructive operation. |
149150

150151
</CommandTable>
151152

packages/sim-cli/src/contract/commands.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,18 @@ export const CLI_CONTRACT: CliContract = {
176176
pathArgumentNames: KNOWLEDGE_BASE_PATH_ARGUMENT,
177177
confirm: 'This deletes the document and its embeddings.',
178178
},
179+
deleteKnowledgeConnector: {
180+
confirm:
181+
'This deletes the connector; --delete-documents also deletes its synchronized documents.',
182+
},
179183
deleteFile: { confirm: 'This archives the file.' },
180184
deleteCredential: {
181185
confirm: 'This disconnects the credential and removes its stored authentication.',
182186
},
183187
deleteSkill: { confirm: 'This deletes the skill.' },
188+
revokeSkillEditor: {
189+
confirm: 'This revokes the explicit skill editor grant for the selected email.',
190+
},
184191
deleteCustomTool: { confirm: 'This deletes the custom tool.' },
185192
deleteMcpServer: {
186193
confirm: 'This removes the MCP server and the tools it provides.',

0 commit comments

Comments
 (0)