Skip to content

Conversation

@acharneski
Copy link
Member

Corrects the expansionExpressionPattern regex in AdaptivePlanningMode.kt to properly match closing braces. Also bumps libraryVersion to 2.0.27 in gradle.properties.

Corrects the expansionExpressionPattern regex in AdaptivePlanningMode.kt to properly match closing braces. Also bumps libraryVersion to 2.0.27 in gradle.properties.
@acharneski acharneski requested a review from Copilot November 7, 2025 21:44
Copy link

Copilot AI left a 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() to getDocumentReader() 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()) {
Copy link

Copilot AI Nov 7, 2025

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.

Copilot uses AI. Check for mistakes.
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
validateDistributionUrl=true
networkTimeout=10000
validateDistributionUrl=true
Copy link

Copilot AI Nov 7, 2025

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.

Suggested change
validateDistributionUrl=true

Copilot uses AI. Check for mistakes.
@acharneski acharneski merged commit 066b1e7 into main Nov 7, 2025
1 check passed
@acharneski acharneski deleted the 2.0.27 branch November 7, 2025 22:04
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants