Skip to main content

Module savings

Module savings 

Source
Expand description

Daemon-based savings tracking for gcode.

Reports token savings to the Gobby daemon via HTTP POST when gcode returns compact symbol/outline data instead of full file contents.

Display output follows the gsqz pattern: stderr prefix showing savings.

Functions§

print_savings
Print savings info to stderr in gsqz-style format.
report_savings
Report a savings event to the Gobby daemon via HTTP POST.
resolve_daemon_url
Resolve the daemon URL from config or environment.
savings_pct
Calculate savings percentage.