-
Notifications
You must be signed in to change notification settings - Fork 1
Fix regex pattern in AdaptivePlanningMode #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Corrects the expansionExpressionPattern regex in AdaptivePlanningMode.kt to properly match closing braces. Also bumps libraryVersion to 2.0.27 in gradle.properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces file upload functionality to the web UI, refactors document reading utilities, and includes various code quality improvements across the codebase.
Key changes:
- File upload support in FileServlet with drag-and-drop, clipboard paste, and security validation
- Refactored
getReader()togetDocumentReader()across the codebase for clarity - Consolidated input file reading logic into
AbstractTask.getInputFileContent() - Added new IntelliJ task actions (ResearchPaper, PersuasiveEssay, NarrativeGeneration, BusinessProposal)
Reviewed Changes
Copilot reviewed 61 out of 64 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| FileServlet.kt | Added file upload via doPost, multipart config, drag-and-drop UI, and filename validation |
| SessionFileServlet.kt | Added @MultipartConfig annotation for file uploads |
| ApplicationServer.kt | Configured multipart settings for file upload servlet |
| ZipServlet.kt | Removed unused parsePath call |
| AbstractTask.kt | Added shared getInputFileContent() method to reduce code duplication |
| Multiple task files | Refactored to use getDocumentReader() and shared getInputFileContent() |
| AdaptivePlanningMode.kt | Fixed regex pattern with missing closing brace |
| AbstractFileTask.kt | Fixed file matching logic order |
| settings.gradle.kts | Commented out unused modules and reordered plugin configurations |
| Various files | Updated build configs, Java version targets, and added IntelliJ actions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| treatDocumentsAsText: Boolean = true, | ||
| ): String = (files ?: listOf()) | ||
| .flatMap { pattern: String -> | ||
| if(root.resolve(pattern).exists()) { |
Copilot
AI
Nov 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after 'if' keyword. Kotlin style guide recommends a space between control flow keywords and opening parentheses.
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip | ||
| validateDistributionUrl=true | ||
| networkTimeout=10000 | ||
| validateDistributionUrl=true |
Copilot
AI
Nov 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The property 'validateDistributionUrl' is defined twice (lines 4 and 6). The duplicate on line 6 should be removed.
| validateDistributionUrl=true |
Introduces Maven Central publishing configuration, including signing and Sonatype credentials, in core and jo-penai modules. Updates build scripts to use Java 17 toolchain explicitly and adjusts group/version properties for publishing. Adds .gitattributes for consistent line endings and reverts Gradle version to 8.10.2 for compatibility.
Corrects the expansionExpressionPattern regex in AdaptivePlanningMode.kt to properly match closing braces. Also bumps libraryVersion to 2.0.27 in gradle.properties.