CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

jbaruch/nanoclaw-construction

Read the house build's site camera and review source-cited construction payment proposals through protected owner callbacks and a host-owned append journal.

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

digest-precheck.pyskills/construction-site/scripts/

#!/usr/bin/env python3
"""Nightly precheck: wake when the last finished capture day has no saved digest.

No arguments. The last stdout line is {"wake_agent": bool, "data": {"site_date": D}}.
A failure exits 1 with a repair on stderr, which the scheduler records as a failed run.
"""

from __future__ import annotations

import json
import sys

import frames


def main() -> int:
    try:
        zone = frames.site_zone()
    except frames.SiteError as error:
        print(str(error), file=sys.stderr)
        return 1
    day = frames.finished_day(zone, frames.utc_now())
    saved = frames.digest_path(day).exists()
    print(json.dumps({"wake_agent": not saved, "data": {"site_date": day.isoformat()}}))
    return 0


if __name__ == "__main__":
    raise SystemExit(main())

skills

LICENSE

README.md

tile.json