Code Farm: per-plot auto-replant pause and crop-lock check; community sync and node work
DevPlace CI / test (push) Failing after 44m45s

Continuous Delivery could never be turned off once a crop was planted. Add a
one-shot per-plot "stop after harvest" flag (POST /game/plot/stop, Devii tool
game_plot_stop, game_plots.stop_after_harvest), cleared by the next plant,
autoreplant claim or Refactor. Autoreplant now also respects crop locks through
the shared _crop_lock predicate. Plan and measurements in happyplanting.md.

Also includes the pending community sync, node network and related work in the
tree; the full suite passed (4999) with all of it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-17 02:23:43 +02:00
co-authored by Claude Sonnet 5.5
parent ce899fc5e1
commit 02ab747cd0
203 changed files with 11624 additions and 301 deletions
+4 -2
View File
@@ -18,6 +18,7 @@ def _credentials(args) -> dict:
"username": args.login_user or "",
"email": args.login_email or "",
"password": args.login_password or os.environ.get("COMMUNITY_PASSWORD", ""),
"totp": args.login_totp or os.environ.get("COMMUNITY_TOTP_SECRET", ""),
}
@@ -102,14 +103,14 @@ def cmd_community_login(args):
print(f"Unknown community '{args.slug}'")
sys.exit(1)
if args.clear:
store.update(row["uid"], login_username="", login_email="", login_password="")
store.update(row["uid"], login_username="", login_email="", login_password="", login_totp_secret="")
print(f"Removed the stored account of {row['slug']}")
else:
secrets = _credentials(args)
if not secrets["password"] or not (secrets["username"] or secrets["email"]):
print("Give --login-user or --login-email, and --login-password (or COMMUNITY_PASSWORD)")
sys.exit(1)
store.update(row["uid"], login_username=secrets["username"], login_email=secrets["email"], login_password=secrets["password"])
store.update(row["uid"], login_username=secrets["username"], login_email=secrets["email"], login_password=secrets["password"], login_totp_secret=secrets["totp"])
print(f"Stored the account for {row['slug']}; run 'community discover \"{row['query']}\" --relearn' to learn behind the login")
_audit_cli("cli.community.login", f"CLI changed the stored account of community {row['slug']}", target_label=row["slug"])
@@ -133,6 +134,7 @@ def add_login_arguments(parser):
parser.add_argument("--login-user", help="username of an account on the community")
parser.add_argument("--login-email", help="email of an account on the community")
parser.add_argument("--login-password", help="password (or set COMMUNITY_PASSWORD)")
parser.add_argument("--login-totp", help="authenticator secret of the account, for a login with two-factor codes (or set COMMUNITY_TOTP_SECRET)")
def register_community(subparsers):