mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[agent-workbench][ai-review]: report all available review agents and YOLO mode in FUS (FUS-7722)
Extend available agents GitOrigin-RevId: 9e2fcabdbe11f53d8dbe1bddd836654148ee6194
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4d3ef7f315
commit
9cadaefbc9
@@ -3,8 +3,11 @@
|
||||
|
||||
<!-- region Generated dependencies - run `Generate Product Layouts` to regenerate -->
|
||||
<dependencies>
|
||||
<module name="intellij.agent.workbench.prompt.core"/>
|
||||
<plugin id="intellij.problemView.plugin"/>
|
||||
<module name="intellij.platform.ai.agent.core"/>
|
||||
<module name="intellij.agent.workbench.prompt.core"/>
|
||||
<module name="intellij.platform.problemView.shared"/>
|
||||
<module name="intellij.platform.problemView.ui"/>
|
||||
<module name="intellij.platform.vcs"/>
|
||||
</dependencies>
|
||||
<!-- endregion -->
|
||||
|
||||
+10
-1
@@ -14,9 +14,10 @@ import com.intellij.openapi.diagnostic.logger
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.vcs.VcsException
|
||||
import com.intellij.openapi.vcs.changes.Change
|
||||
import com.intellij.platform.ai.agent.core.session.AgentSessionProvider
|
||||
|
||||
internal object AIReviewCollector : CounterUsagesCollector() {
|
||||
private val group = EventLogGroup("agent.workbench.ai.review", 6)
|
||||
private val group = EventLogGroup("agent.workbench.ai.review", 4)
|
||||
|
||||
private val REQUEST_ID = EventFields.Long("request_id", "ID of the review request.")
|
||||
private val RATING = EventFields.Enum("rating", ReviewRating::class.java)
|
||||
@@ -45,6 +46,13 @@ internal object AIReviewCollector : CounterUsagesCollector() {
|
||||
|
||||
private val SUCCESS = EventFields.Boolean("success")
|
||||
|
||||
private val AVAILABLE_AI_REVIEW_AGENT_PROVIDERS: List<AgentSessionProvider> = listOf(
|
||||
AgentSessionProvider.CODEX,
|
||||
AgentSessionProvider.CLAUDE,
|
||||
AgentSessionProvider.JUNIE,
|
||||
AgentSessionProvider.OPENCODE,
|
||||
)
|
||||
|
||||
private val AGENT = EventFields.String("agent", AVAILABLE_AI_REVIEW_AGENT_PROVIDERS.map { it.value })
|
||||
private val YOLO = EventFields.Boolean("yolo", "Whether the agent was launched in YOLO (skip-permissions / full-auto) mode.")
|
||||
|
||||
@@ -235,4 +243,5 @@ internal object AIReviewCollector : CounterUsagesCollector() {
|
||||
charsRemoved = charsRemoved,
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user