Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Dec 10, 2024
1 parent a4d2fb0 commit 79eae80
Show file tree
Hide file tree
Showing 8 changed files with 723 additions and 296 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginName=intellij-aicoder
pluginRepositoryUrl=https://github.com/SimiaCryptus/intellij-aicoder
pluginVersion=1.9.2
pluginVersion=1.9.3
jvmArgs=-Xmx8g
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=1g
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AutoPlanChatAction : BaseAction() {
override fun getActionUpdateThread() = ActionUpdateThread.BGT

override fun handle(e: AnActionEvent) {
val dialog = PlanAheadConfigDialog(
val dialog = PlanConfigDialog(
e.project, PlanSettings(
defaultModel = AppSettingsState.instance.smartModel.chatModel(),
parsingModel = AppSettingsState.instance.fastModel.chatModel(),
Expand All @@ -63,7 +63,7 @@ class AutoPlanChatAction : BaseAction() {
}
}

private fun initializeChat(e: AnActionEvent, dialog: PlanAheadConfigDialog, progress: ProgressIndicator) {
private fun initializeChat(e: AnActionEvent, dialog: PlanConfigDialog, progress: ProgressIndicator) {
progress.text = "Setting up session..."
val session = Session.newGlobalID()
val root = getProjectRoot(e) ?: throw RuntimeException("Could not determine project root")
Expand All @@ -81,7 +81,7 @@ class AutoPlanChatAction : BaseAction() {
}
}

private fun setupChatSession(session: Session, root: File, e: AnActionEvent, dialog: PlanAheadConfigDialog) {
private fun setupChatSession(session: Session, root: File, e: AnActionEvent, dialog: PlanConfigDialog) {
DataStorage.sessionPaths[session] = root
SessionProxyServer.chats[session] = createChatApp(root, e, dialog)
ApplicationServer.appInfoMap[session] = AppInfoData(
Expand All @@ -94,7 +94,7 @@ class AutoPlanChatAction : BaseAction() {
SessionProxyServer.metadataStorage.setSessionName(null, session, "${javaClass.simpleName} @ ${SimpleDateFormat("HH:mm:ss").format(System.currentTimeMillis())}")
}

private fun createChatApp(root: File, e: AnActionEvent, dialog: PlanAheadConfigDialog) =
private fun createChatApp(root: File, e: AnActionEvent, dialog: PlanConfigDialog) =
object : AutoPlanChatApp(
planSettings = dialog.settings.copy(
env = mapOf(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PlanAheadAction : BaseAction() {
override fun getActionUpdateThread() = ActionUpdateThread.BGT

override fun handle(e: AnActionEvent) {
val dialog = PlanAheadConfigDialog(
val dialog = PlanConfigDialog(
e.project, PlanSettings(
defaultModel = AppSettingsState.instance.smartModel.chatModel(),
parsingModel = AppSettingsState.instance.fastModel.chatModel(),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PlanChatAction : BaseAction() {
}

private fun initializeAndOpenChat(e: AnActionEvent) {
val dialog = PlanAheadConfigDialog(
val dialog = PlanConfigDialog(
e.project, PlanSettings(
defaultModel = AppSettingsState.instance.smartModel.chatModel(),
parsingModel = AppSettingsState.instance.fastModel.chatModel(),
Expand Down
Loading

0 comments on commit 79eae80

Please sign in to comment.