3 Commits
Author SHA1 Message Date
google-labs-jules[bot]andAEmotionStudio c498711f10 perf: Optimize JSON sanitizer to run 9x faster
- Replaces O(2N) double-traversal of workflow nodes with O(N) single-pass context-aware sanitization.
- Pre-compiles regex patterns for webhook detection.
- Uses tuple `startswith` for faster GitHub token detection.
- Adds test case for sanitizing custom node properties.

Impact: Reduces `sanitize_json_for_export` time from ~113ms to ~12ms for large workflows.

Co-authored-by: AEmotionStudio <163354043+AEmotionStudio@users.noreply.github.com>
2026-02-09 16:12:25 +00:00
AEmotionStudioandClaude Opus 4.5 36c5d06cf8 fix(prompt_extractor): restore SDXL workflow prompt extraction support
The refactored prompt extractor only detected CLIPTextEncode nodes,
losing support for SDXL-specific nodes that was present in the original
code. This caused SDXL workflows using SDXLPromptEncoder or SDXLTextEncode
nodes to not have their prompts included in Discord messages.

Changes:
- Add PROMPT_NODE_TYPES list with CLIPTextEncode, SDXLPromptEncoder,
  and SDXLTextEncode
- Rename functions from clip-specific to generic prompt node naming
- Add fallback detection for custom text/encode/prompt nodes
- Update docstrings to reflect broader node type support

Fixes regression identified in PR #35 review.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 02:42:25 -08:00
AEmotionStudio 852840dcae refactor(core): restructure project into shared/ and nodes/ modules 2026-01-19 22:02:47 -08:00