Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions group_vars/all/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion playbooks/user/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
Loading