Skip to content

Commit 7dd3668

Browse files
committed
Disable commands by default in package.json
Add `enablement: "false"` to refresh commands and disable several commands in the when clause to prevent accidental usage. This ensures commands are only available when explicitly enabled, improving user experience and preventing unintended actions.
1 parent fb26987 commit 7dd3668

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

package.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@
204204
"command": "kfc.mcp.refresh",
205205
"title": "Refresh MCP Status",
206206
"category": "Kiro for Codex",
207-
"icon": "$(refresh)"
207+
"icon": "$(refresh)",
208+
"enablement": "false"
208209
},
209210
{
210211
"command": "kfc.settings.open",
@@ -234,7 +235,8 @@
234235
"command": "kfc.agents.refresh",
235236
"title": "Refresh Agents",
236237
"category": "Kiro for Codex",
237-
"icon": "$(refresh)"
238+
"icon": "$(refresh)",
239+
"enablement": "false"
238240
},
239241
{
240242
"command": "kfc.help.open",
@@ -353,6 +355,22 @@
353355
},
354356
{
355357
"command": "kfc.checkForUpdates"
358+
},
359+
{
360+
"command": "kfc.spec.createWithAgents",
361+
"when": "false"
362+
},
363+
{
364+
"command": "kfc.hooks.refresh",
365+
"when": "false"
366+
},
367+
{
368+
"command": "kfc.mcp.refresh",
369+
"when": "false"
370+
},
371+
{
372+
"command": "kfc.agents.refresh",
373+
"when": "false"
356374
}
357375
]
358376
},
@@ -460,4 +478,4 @@
460478
"webpack": "^5.100.2",
461479
"webpack-cli": "^6.0.1"
462480
}
463-
}
481+
}

0 commit comments

Comments
 (0)