---
name: tlamatini-static-version-bumper
description: Bump STATIC_VERSION in tlamatini/settings.py so the chat / ACP frontend re-fetches CSS+JS bundles after a frontend change.
metadata:
  openclaw:
    emoji: "📦"
  tlamatini:
    runtime: in-process
    requires_tools: ["chat_agent_file_creator"]
    requires_mcps: []
    budget:
      max_iterations: 2
      max_seconds: 15
      max_tokens: 3000
    permissions:
      filesystem:
        read:  ["Tlamatini/tlamatini/settings.py"]
        write: ["Tlamatini/tlamatini/settings.py"]
      shell:   []
      network: deny
      db:      deny
    inputs: []
    outputs:
      - { name: old_version, type: string,  required: true }
      - { name: new_version, type: string,  required: true }
      - { name: changed,     type: boolean, required: true }
    triggers:
      keywords: ["static version","bump static","cache bust","STATIC_VERSION"]
---
<!--
═══════════════════════════════════════════════════════════════════
  ✦  T L A M A T I N I  ✦   —   "one who knows"
  Created by  Angela López Mendoza   ·   @angelahack1
  Developer · Architect · Creator of Tlamatini
  Tlamatini Author Banner — do not remove (Angela's name is kept in every build)
═══════════════════════════════════════════════════════════════════
-->

# Static-version bumper

Increments `STATIC_VERSION` in `Tlamatini/tlamatini/settings.py` so the
`?v={{ STATIC_VERSION }}` query string at the end of every static asset
URL changes, forcing browsers to refetch.

Run this skill after **every** JavaScript, CSS, or template change, including `dialog_theme.css`, `dialog_policy.js`, `release_notes_renderer.js`, the External-MCP runtime strip, and long-operation menu behavior. `STATIC_VERSION` is an asset-cache integer and is separate from the product release resolved from Git/build metadata (current annotated release v1.60.0); never substitute one for the other.

## Procedure

1. Read `STATIC_VERSION = '<n>'` from settings.py.
2. Replace with the next integer (or rotate semver).
3. Save the file. Return `{old_version, new_version, changed}`.

If `STATIC_VERSION` is missing, return `{changed: false, old_version: '',
new_version: ''}` so the user knows.
