Files
scaffold/CHANGELOG.md
T
ZencacheandClaude Opus 4.6 fa1bca1d3d v2.1.0 — Native dark scrollbars, OpenClaw schema, Linux docs
- Fix dark mode scrollbars via setColorScheme(Dark) for native rendering
- Add OpenClaw tool schema with --restart gateway flag
- Add Linux install troubleshooting to README
- Update Support section with crypto donation addresses
- Side-by-side screenshots, updated badges and assertion counts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 14:39:30 -04:00

16 KiB
Raw Permalink Blame History

Changelog

All notable changes to Scaffold are documented here.

[v2.1.0] — 2026-03-29

Added

  • OpenClaw tool schema (tools/openclaw.json) — AI agent platform with 10+ subcommands including gateway, channels, models, browser automation, and node management
  • Gateway --restart flag — added missing --restart boolean to the openclaw gateway subcommand
  • Linux install troubleshooting — README note covering --break-system-packages workaround and libxcb-cursor0 dependency for Ubuntu/Debian users
  • Crypto donation addresses — updated Support section with BTC, LTC, ETH, BCH, and SOL addresses

Fixed

  • Dark mode scrollbars now match light mode exactly — replaced custom QSS scrollbar styling with QStyleHints.setColorScheme(Qt.ColorScheme.Dark), which tells the Windows platform plugin to render scrollbars using the native dark-mode renderer. This preserves all native behavior — smooth animations, expand-on-hover, arrow buttons appearing — with dark colors, because the exact same native renderer draws both modes. Previous QSS and QProxyStyle approaches could not replicate native behavior because QSS bypasses the native renderer entirely and the Windows theme API ignores QPalette for scrollbar painting. Gracefully falls back on Qt < 6.8.

Improved

  • Side-by-side screenshots in README — nmap and hashcat examples displayed at 48% width
  • README updates — line-count badge updated to 2,646; assertion count updated to 157; openclaw added to example schemas table

Tested

  • Functional test suite: 105/105 assertions pass
  • Examples feature test suite: 52/52 assertions pass
  • Scrollbar visual parity: dark mode scrollbars confirmed identical to light mode (size, animation, hover expansion, arrow buttons) on Windows 11 with PySide6 6.11.0

[v2.0.1] — 2026-03-29

Fixed

  • README assertion count — second mention in "About This Project" section still said 661; corrected to 156

[v2.0.0] — 2026-03-29

Added

  • __version__ constant (2.0.0) and --version / -V CLI flag for bug reports and preset compatibility
  • Shebang line (#!/usr/bin/env python3) for direct execution on Unix (./scaffold.py)
  • Minimum Python version documented in module docstring (3.10)
  • Resizable output panel — drag handle between command controls and output panel
    • Custom DragHandle widget with two-line grip indicator and vertical resize cursor
    • Drag up to shrink, drag down to grow (80px–800px range)
    • Panel height persisted across sessions via QSettings
  • Command options border — form area wrapped in a rounded QFrame with a subtle border to visually distinguish it from the preview and output sections below
  • Separator line between tool header and command options for cleaner visual hierarchy
  • UI polish — section labels, separator lines, and colored action button
    • Centered, uppercase "Command Preview" and "Output" section labels with theme-aware styling
    • Subtle horizontal separator lines before each section for visual clarity
    • Run button styled green; switches to red when in "Stop" state
    • All new elements update correctly on light/dark theme toggle
  • New example tool schemas: nikto.json, gobuster.json, hashcat.json, ffmpegv2.json
    • nikto: demonstrates string+examples for code-concatenation flags (-Tuning, -Display, -evasion)
    • gobuster: demonstrates full subcommand architecture (7 modes with scoped flags)
    • hashcat: demonstrates examples-vs-enum distinction (-m as string vs -a as enum)
    • ffmpegv2: demonstrates large schema with 123 arguments across encoding, filtering, and I/O
  • New screenshot: hashcat example.png
  • Validation feedback tip in README — paste errors back into LLM to self-correct

Improved

  • Tighter vertical spacing — reduced padding on section labels, status bar, action bar, and command preview to reclaim screen space for tools with many arguments
  • Higher contrast light theme — borders for form frame, separators, and drag handle darkened from #d0d0d0/#aaaaaa to #999999/#888888 for better visibility
  • --help output now includes version number and --version flag; replaced em dash with ASCII dash to avoid encoding issues on Windows cp1252 terminals
  • Updated nmap screenshot — reflects new UI (form border, section labels, drag handle, colored Run button); optimized from 445 KB to 114 KB
  • README updates — line-count badge updated to 2,634; assertion count corrected to 156; nikto, gobuster, hashcat added to example schemas table
  • PROMPT.txt rewrite — 5-stage review, test, iterate, harden, slim
    • Added complete example JSON (5 arguments demonstrating all key patterns)
    • Added type hallucination guard table with wrong→correct name mappings
    • Added JSON formatting rules (no comments, no trailing commas, null not "")
    • Added completeness + accuracy rules (don't truncate, don't invent flags)
    • Added no-duplicates rule (short+long forms = one entry, aliases merged)
    • Strengthened positional placement rule (MUST be last in array)
    • Clarified flag vs short_flag convention (long form in flag, short in short_flag)
    • Expanded separator detection guidance (look for "=" in docs)
    • Added unclear/incomplete docs handling ("inferred — verify" annotation, version notes)
    • Added examples-vs-enum "why" explanation to prevent silent misclassification
    • Collapsed self-check into compact 9-item checklist
    • Compressed prompt to ~1,039 words while preserving all rules

Fixed

  • QPushButton stylesheet parse error — added missing whitespace between QSS rule blocks in Run/Stop button styling (both dark and light mode)
  • nmap.json -sC mislabeled as short_flag of --script — -sC is a distinct flag (--script=default), not the short form of --script. Split into separate "Default Scripts" boolean entry

Tested

  • Full pre-release audit (9 sections): first impressions, dependencies, cross-platform, security, error handling, UI polish, file deliverables, CLI interface, final sanity
  • Security audit passed — no shell=True, no eval()/exec(), binary passed as single string to QProcess.setProgram(), extra flags use shlex.split(), JSON loaded with json.loads() in try/except, no secrets in QSettings
  • Cross-platform audit passed — all paths use pathlib.Path, elevation gated by sys.platform, shutil.which() for binary detection, QSettings("Scaffold", "Scaffold")
  • CLI entry points verified — --help, --version, --validate, --prompt, direct path, missing file, invalid file all produce clean output with correct exit codes and no tracebacks
  • Functional test suite: 104/104 assertions pass (tool picker, all 9 widget types, tooltips, required fields, defaults, mutual exclusivity, dependencies, extra flags, command preview, process execution, stop, dark mode, presets, session persistence, subcommands, editable dropdowns, file/directory widgets, output batching, file size guard)
  • Examples feature test suite: 52/52 assertions pass (schema normalization, validation rules, editable dropdowns, command assembly)
  • Schema conformance check: all 8 bundled tool schemas (nmap, ping, git, curl, nikto, gobuster, hashcat, ffmpegv2) pass PROMPT.txt 15-field spec with all top-level keys present; original 4 schemas audited against new prompt conventions (flag/short_flag, no duplicates, positionals last, boolean separators)
  • Prompt validated against 6 CLI tools across 3 complexity levels (ping, nmap, curl, nikto, gobuster, hashcat)
  • All generated schemas pass scaffold.py --validate with zero structural errors
  • Cross-model testing: Opus 4.6 (zero failures) and Haiku 4.5 (structural pass, semantic improvements from guardrails)
  • --prompt output verified on Windows (cp1252 encoding handled correctly)

[v1.4.0] — 2026-03-28

Improved

  • Code review — Part 5: Final cleanup
    • Added --help / -h flag with usage summary listing all available CLI modes
    • Expanded module-level docstring with usage examples and dependency note
    • Linted with ruff check — all checks pass (E402 suppressed for intentional deferred PySide6 imports, E741 fixed by renaming l → le in browse lambdas)
    • Updated README line-count badge to 2,441
    • Verified internal structure follows: constants → helpers → data layer → widget classes → main window → entry point
  • Code review — Part 4: Functional test
    • Fixed UnicodeEncodeError in --prompt on Windows terminals using cp1252 (PROMPT.txt contains U+2192 arrow character)
    • Added comprehensive automated functional test suite (test_functional.py, 101 assertions) covering: launch/navigation, all 9 widget types, tooltips, required fields, defaults, mutual exclusivity, dependencies, extra flags, command preview, process execution, stop, dark mode, presets, session persistence, subcommands, editable dropdowns, file/directory widgets, output batching, and file size guard
  • Code review — Part 3: Performance
    • Output panel now buffers readyRead data and flushes every 100ms via QTimer, preventing UI stalls on high-volume output
    • Output panel capped at 10,000 lines (setMaximumBlockCount) — older lines are automatically discarded to bound memory usage
    • Tool schema loader rejects files over 1 MB with a clear error, preventing accidental hangs from oversized or malicious JSON files
    • Verified: signal connections are not duplicated on subcommand switch (visibility toggle, not rebuild)
    • Verified: live preview has no signal loops (build_command does not emit signals)
    • Verified: ToolForm cleanup via deleteLater() on tool switch — no memory leaks
    • Verified: shutil.which() per-tool during picker scan is fast with 20+ schemas
  • Code review — Part 1: Cleanup and consistency
    • Organized imports: moved tempfile to stdlib section, consolidated PySide6 imports (QPoint, QPolygon) at top level
    • Extracted magic numbers into named constants: SPINBOX_RANGE, REPEAT_SPIN_MAX, REPEAT_SPIN_WIDTH, TEXT_WIDGET_HEIGHT, MULTI_ENUM_HEIGHT, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT
    • Extracted theme-independent output/status colors into named constants: COLOR_OK, COLOR_ERR, COLOR_WARN, COLOR_CMD, COLOR_DIM, OUTPUT_BG, OUTPUT_FG, LIGHT_WARNING_BG, LIGHT_WARNING_FG, LIGHT_WARNING_BORDER
    • Converted apply_theme QSS stylesheet from % dict formatting to f-strings
    • Renamed signal handlers for clarity: _read_stdout → _on_stdout_ready, _read_stderr → _on_stderr_ready
    • Removed misleading phase-number comments from section banners
    • Simplified reset_to_defaults by collapsing redundant elif/else branches
    • Simplified _is_field_active with tuple-form isinstance
    • Simplified _on_run_stop empty-list check to idiomatic if not cmd:
    • Removed unused local variable in _apply_widget_theme
    • Removed trivial inline comments in _build_shortcuts
    • Removed stale comment referencing removed radio field type
    • Added docstrings to MainWindow, ToolForm, ToolPicker, and 40+ methods
    • Added Python 3.10+ type hints (str | None style) to all key function signatures
  • Code review — Part 2: Error handling audit
    • load_tool: added separate PermissionError handler before generic OSError
    • _on_save_preset: wrapped write_text() in try/except OSError with user-facing error dialog
    • _on_delete_preset: wrapped unlink() in try/except OSError with user-facing error dialog
    • _tools_dir / _presets_dir: added guard against file-at-directory-path before mkdir()
    • print_prompt: wrapped read_text() in try/except OSError with stderr fallback
    • Audited all QProcess error paths — confirmed Run button and command preview reset correctly in all cases
    • Audited all empty-state edge cases — confirmed all already handled

[v1.3.1] — 2026-03-28

Improved

  • Added right padding between form fields and scrollbar for cleaner layout

[v1.3.0] — 2026-03-28

Added

  • Elevated execution (sudo/admin) support — run commands with elevated privileges from within Scaffold
  • New elevated schema field: null, "never", "optional", or "always"
  • Platform-specific elevation: gsudo on Windows, pkexec on Linux, pkexec on macOS
  • Elevation checkbox in tool form with contextual notes for optional vs always
  • "Running as administrator" status bar indicator when app is already elevated
  • Elevation state included in preset save/load
  • Graceful handling of missing elevation tools, cancelled password dialogs (exit 126/127), and binary-not-found errors
  • Custom arrow icons for dropdown and spinbox controls in dark mode
  • Updated PROMPT.txt with elevated field and decision rule
  • All example tool schemas updated with elevated field (nmap: optional, others: null)

Security

  • Full command injection audit passed — QProcess uses list-based execution, no shell invocation anywhere
  • Malicious schema values (defaults, flags, binary) treated as literal strings, never interpreted

[v1.2.3] — 2026-03-28

Improved

  • Added prerequisites section to Getting Started (Python version, pip, CLI tool installation, JSON schema)
  • Added platform compatibility note (tested on Windows, should work on macOS/Linux)

[v1.2.2] — 2026-03-28

Added

  • Dark mode with system detection and manual toggle (View > Theme menu, Ctrl+D shortcut)
  • Three theme options: Light, Dark, and System Default — persisted across sessions
  • Catppuccin Mocha-inspired dark color palette with full widget coverage
  • Getting started instructions at the top of README

Improved

  • Comprehensive dark mode styling for all widgets (dropdowns, checkboxes, spinboxes, tables, scrollbars, buttons, menus, tooltips, group boxes)
  • README disclaimer now notes limitations with large/complex CLI tools

[v1.2.1] — 2026-03-28

Improved

  • Command preview bar now uses a scrollable widget with a horizontal scrollbar for long commands

[v1.2.0] — 2026-03-28

Added

  • Examples field for string arguments — editable dropdown (QComboBox) showing common values as suggestions while still allowing custom input
  • Updated PROMPT.txt to include examples field (15 fields per argument)
  • Updated all example tool schemas (nmap, ping, git, curl) with expanded argument coverage and examples support
  • LLM context window note added to schema generation docs in README

[v1.1.0] — 2026-03-28

Added

  • Binary availability check in tool picker — green checkmark for installed tools, red X for missing ones
  • Tools sorted by availability (available first, unavailable second, invalid last)
  • 4-column tool picker table (status, tool, description, path)

[v1.0.1] — 2026-03-28

Added

  • ffmpeg example schema (later removed as incomplete)

[v1.0] — 2026-03-28

Added

  • Initial release of Scaffold
  • Single-file PySide6 application (scaffold.py)
  • 9 widget types: boolean, string, text, integer, float, enum, multi_enum, file, directory
  • Live command preview with copy-to-clipboard
  • Process execution with colored stdout/stderr output
  • Preset save/load/delete/reset with JSON persistence
  • Subcommand support (e.g., git clone, git commit)
  • Mutual exclusivity groups (radio-button behavior for conflicting flags)
  • Dependency chains (fields activate when parent is set)
  • Regex validation for string fields
  • Repeatable boolean flags with count spinner
  • Separator modes: space, equals, none
  • Session persistence (window size/position, last opened tool)
  • Drag-and-drop schema loading
  • Keyboard shortcuts (Ctrl+Enter, Escape, Ctrl+S, Ctrl+L, etc.)
  • CLI validation mode (--validate)
  • LLM prompt for schema generation (--prompt / PROMPT.txt)
  • Example schemas: nmap, ping, git, curl
  • README with full documentation and schema reference
  • MIT license