← Commit history

Publish 1.2.1

Colby Knox ·990d8cc477 ·3mo ago ·parent 951aac4
3 files changed +27−2
install.sh+25
@@ -111,6 +111,31 @@ else   echo "        app call '$HOOK' on its own interval (it is throttled + idempotent, safe to call often)." fi +# Default model (fleet policy, 2026-07-17): new/unset workspaces default to Opus+# with the 1M context window. Sonnet cold-starts describe the platform skills+# without ACTING on them (observed: it never ran the identity/profile lookups an+# Opus session does), so an unconfigured container gives a visibly worse first+# session. ONLY-IF-ABSENT: a user's explicit model choice (or an org's managed+# settings) is never overwritten -- change it any time with /model, and this+# respects that choice on every later run. ADOM_HOOK_NO_MODEL_DEFAULT=1 skips.+if [ -z "${ADOM_HOOK_NO_MODEL_DEFAULT:-}" ]; then+  python3 - "${HOME}/.claude/settings.json" <<'PY'+import json, sys+path = sys.argv[1]+try:+    with open(path) as f: d = json.load(f)+    if not isinstance(d, dict): d = {}+except Exception:+    d = {}+if not d.get("model"):+    d["model"] = "opus[1m]"+    import os+    os.makedirs(os.path.dirname(path), exist_ok=True)+    with open(path, "w") as f: json.dump(d, f, indent=2)+    print("  set default Claude Code model: opus[1m] (override any time with /model)")+PY+fi+ # Retire a gallia statusline if one is wired (gallia is gone; revert to default). # Targeted: only removed when the statusline command points at gallia. python3 - "${HOME}/.claude/settings.json" <<'PY'
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "hook",-  "version": "1.2.0",+  "version": "1.2.1",   "type": "app",   "org": "adom",   "bundled": true,
page.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "hook",-  "version": "1.2.0",+  "version": "1.2.1",   "type": "app",   "org": "adom",   "bundled": true,