diff --git a/group_vars/all/main.yml b/group_vars/all/main.yml index 4075594..a099f2d 100644 --- a/group_vars/all/main.yml +++ b/group_vars/all/main.yml @@ -1132,12 +1132,13 @@ omarchy_plugins: # omarchy.agents bar panel (AI agents' usage, limits and pace). MIT. Its # manifest declares clonedFrom omarchy.agents, so enabling it makes the # shell disable the built-in (PluginRegistry.setEnabled): one Agents icon, - # in the built-in's section. No tags yet: pinned to a commit of main. - # Collectors are Python stdlib only. + # in the built-in's section. No tags yet: pinned to a commit of main + # (with the meters' time cursor and elapsed-time tooltips). Collectors + # are Python stdlib only. - name: Agents repo: https://github.com/lbssousa/agents-omarchy.git id: lbssousa.agents - ref: 5758af97e4615fe1677120fb1a5b29e15240ec59 + ref: ae845098d0d404dad68ea1065aca399795643d18 section: right packages: - python diff --git a/playbooks/user/plugins.yml b/playbooks/user/plugins.yml index 560c96f..0b06edc 100644 --- a/playbooks/user/plugins.yml +++ b/playbooks/user/plugins.yml @@ -149,11 +149,19 @@ # shell, the pinned ref is the record of what was reviewed. `omarchy # plugin update` fast-forwards a pinned clone off its tag (a detached # HEAD still takes the fast-forward) and the next run pins it back; - # bump `ref` to move forward on purpose. + # bump `ref` to move forward on purpose. A plugin directory that is a + # link is a working copy put there by hand (a plugin's own `just + # link`): it is left on whatever its developer checked out, since a + # checkout through the link would move their repository back to the + # pin. ansible.builtin.shell: cmd: | set -euo pipefail dir={{ (omarchy_plugins_dir ~ '/' ~ item.id) | quote }} + if [ -L "$dir" ]; then + echo "linked to $(readlink -f "$dir"), left as it is" + exit 0 + fi if ! target=$(git -C "$dir" rev-parse --verify --quiet {{ item.ref | quote }}^{commit}); then git -C "$dir" fetch --quiet origin {{ item.ref | quote }} target=$(git -C "$dir" rev-parse --verify {{ item.ref | quote }}^{commit})