Skip to content

create agent#6520

Open
EthanHealy01 wants to merge 5 commits into
mainfrom
feature/createAgent
Open

create agent#6520
EthanHealy01 wants to merge 5 commits into
mainfrom
feature/createAgent

Conversation

@EthanHealy01
Copy link
Copy Markdown
Contributor

@EthanHealy01 EthanHealy01 commented Jun 3, 2026

Added the create agent. Use these prompts to test or try your own :)

Here’s the one I use

Hey, I need to generate an employee expense report for reimbursement.
Company: Summit Consulting Partners Company address: 88 Riverside Plaza, Suite 1400, New York, NY 10069 Accounting department email: expenses@example.com
Employee details:
* Employee Name: Michael Tran
* Employee ID: EMP-1047
* Department: Client Services
* Report Date: January 20th, 2026
* Reporting Period: January 5th, 2026 – January 16th, 2026
* Manager Approver: Laura Simmons
Trip purpose: Client onsite meetings with Atlantic Energy Solutions in Boston, MA.
Expense items:
* Flight (NYC to Boston roundtrip) — $325.40 — January 5th, 2026 — Airline ticket
* Hotel (3 nights at Harborview Hotel) — $822.75 — January 5th-8th, 2026
* Taxi from airport to hotel — $48.00 — January 5th, 2026
* Client dinner (3 attendees) — $186.20 — January 6th, 2026
* Parking at JFK Airport — $72.00 — January 5th-8th, 2026
* Breakfast (per diem not used) — $18.50 — January 7th, 2026
* Uber to client office — $22.10 — January 7th, 2026
* Printing + presentation materials — $46.90 — January 8th, 2026
* Lunch with client — $39.75 — January 8th, 2026
* Office supplies (notebooks, pens) — $27.60 — January 10th, 2026
* Mileage reimbursement (client visit in NJ, 42 miles @ $0.67/mile) — $28.14 — January 14th, 2026
* Team lunch meeting (internal) — $64.30 — January 15th, 2026
Reimbursement method should be direct deposit.
Add a notes section stating: "All receipts attached. Expenses are business-related and comply with company travel policy."

@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines ignoring generated files. enhancement New feature or request labels Jun 3, 2026
@stirlingbot stirlingbot Bot added Java Pull requests that update Java code Front End Issues or pull requests related to front-end development engine and removed enhancement New feature or request labels Jun 3, 2026
Comment on lines +156 to +162
onChange({
...value,
backgroundColor: preset.color,
bodyTextColor: preset.textColor,
// Clear accent if the dark/light mode changes so we don't end up with
// a dark accent on a dark background or vice versa.
primaryColor: undefined,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selectBackground always sets primaryColor to undefined, contradicting the comment that this should happen only when dark/light mode changes.

Show fix
Suggested change
onChange({
...value,
backgroundColor: preset.color,
bodyTextColor: preset.textColor,
// Clear accent if the dark/light mode changes so we don't end up with
// a dark accent on a dark background or vice versa.
primaryColor: undefined,
const newIsDark = DARK_BACKGROUNDS.some((p) => p.color === preset.color);
const modeChanged = isDark !== newIsDark;
onChange({
...value,
backgroundColor: preset.color,
bodyTextColor: preset.textColor,
// Clear accent if the dark/light mode changes so we don't end up with
// a dark accent on a dark background or vice versa.
primaryColor: modeChanged ? undefined : value.primaryColor,
Details

✨ AI Reasoning
​The selection flow is meant to preserve accent color unless a mode switch makes it incompatible. However, the background selection handler always clears the accent, regardless of whether the new background keeps the same mode category. This creates behavior that contradicts the stated assumption and can discard valid user choices unexpectedly.

Reply @AikidoSec feedback: [FEEDBACK] to get better review comments in the future.
Reply @AikidoSec ignore: [REASON] to ignore this issue.
More info

Copy link
Copy Markdown
Contributor

@jbrunton96 jbrunton96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good start. Python structure looks sound and properly stateless which is fantastic

Path parent = dir.getParent();
if (parent == null) break;
dir = parent;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how safe this is. In the real deployment, it's likely that the backend and frontend are running on different machines, right? Is this path just for development? I can see supposed Docker paths below, which might handle the production case. Would it make sense to have a backend node_modules which just installs puppeteer locally for the backend and then ship that? Is there any existing Java code that runs things from the frontend? How does that work?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good shout. I’ll investigate and see what the best move is

Comment thread app/proprietary/src/main/resources/scripts/html_to_pdf.mjs
Comment thread engine/src/stirling/contracts/pdf_create.py
Comment thread engine/src/stirling/contracts/pdf_create.py
* - Please do NOT modify this file.
*/

const PACKAGE_VERSION = "2.14.6";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't undestand why this is showing up in the diff because I fixed it in #6526. Hopefully it disappears on an update from main?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think I just need to merge main in :) I’ll see

Comment thread scripts/html_to_pdf.mjs
@stirlingbot
Copy link
Copy Markdown
Contributor

stirlingbot Bot commented Jun 4, 2026

🚀 V2 Auto-Deployment Complete!

Your V2 PR with embedded architecture has been deployed!

🔗 Direct Test URL (non-SSL) http://54.175.155.236:6520

🔐 Secure HTTPS URL: https://6520.ssl.stirlingpdf.cloud

This deployment will be automatically cleaned up when the PR is closed.

🔄 Auto-deployed for approved V2 contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine Front End Issues or pull requests related to front-end development Java Pull requests that update Java code size:XXL This PR changes 1000+ lines ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants