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
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "llm-wiki",
"source": "./plugins/llm-wiki",
"description": "Create and query project wikis with optional maintenance automation.",
"version": "0.3.2",
"version": "0.3.3",
"author": {
"name": "ivankuznetsov",
"url": "https://github.com/ivankuznetsov"
Expand Down
2 changes: 1 addition & 1 deletion docs/agent-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ plugin directory so a copied package does not depend on the repository root.
| Agent Reviewer | `0.3.1` | Stable | `skills/agent-reviewer/SKILL.md` | agents, references, scripts, eval harness |
| Agent SEO | `2.0.1` | Stable | `skills/seo/SKILL.md` | agents, context, data sources, hooks, scripts |
| Agent Writing | `0.5.2` | Stable | `skills/writing/SKILL.md` | agents, voice/style context |
| LLM Wiki | `0.3.2` | Stable | five files under `skills/` | assets, consent-gated maintenance templates |
| LLM Wiki | `0.3.3` | Stable | five files under `skills/` | assets, consent-gated maintenance templates |
| Screenote | `3.0.1` | Stable | `skills/{screenote,snapshot,feedback}/SKILL.md` | CLI launcher, references, evals |

## Plugin invocations
Expand Down
2 changes: 1 addition & 1 deletion plugin-surfaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
{
"name": "llm-wiki",
"path": "plugins/llm-wiki",
"version": "0.3.2",
"version": "0.3.3",
"stability": "stable",
"metadata": {
"display_name": "LLM Wiki",
Expand Down
4 changes: 2 additions & 2 deletions plugin-surfaces.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
}
},
"llm-wiki": {
"version": "0.3.2",
"version": "0.3.3",
"canonical": {
"skills/bootstrap/SKILL.md": {
"sha256": "6e446e783ac32d2f605f036891fcee29651aca14696065f2753cec13eab58a16",
Expand Down Expand Up @@ -722,7 +722,7 @@
},
"templates": {
"exists": true,
"sha256": "264d01db93a76080b4ecb586a5cbe98608edc6358820a36f676a1c2683f3d2af",
"sha256": "ad03c9d5a6457d631a1556039484c119e81a89d5eff6f3953e93be7014c61452",
"files": [
"templates/compile-log.sh",
"templates/install-systemd-scheduler.sh",
Expand Down
2 changes: 1 addition & 1 deletion plugins/llm-wiki/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llm-wiki",
"version": "0.3.2",
"version": "0.3.3",
"description": "Create and query project wikis with optional maintenance automation.",
"author": {
"name": "ivankuznetsov",
Expand Down
2 changes: 1 addition & 1 deletion plugins/llm-wiki/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llm-wiki",
"version": "0.3.2",
"version": "0.3.3",
"description": "Create and query project wikis with optional maintenance automation.",
"author": {
"name": "ivankuznetsov",
Expand Down
15 changes: 15 additions & 0 deletions plugins/llm-wiki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to **llm-wiki** are documented here. The format follows
[Keep a Changelog](https://keepachangelog.com/), and the project adheres to
[Semantic Versioning](https://semver.org/).

## [0.3.3] - 2026-07-22

### Fixed

- Reconstruct the standard user-systemd bus environment in headless commit
hooks and scheduler upgrades, so the installed 4 GiB/no-swap worker remains
reachable without an interactive shell.
- Preserve the repository scheduler marker when a best-effort service signal
fails, while retaining the machine-wide serialized fallback for the current
queue.
- Skip commits whose only changed path is compiled `wiki/log.md`, preventing a
generated projection from launching another provider-backed refresh.
- Preserve the four-agent consent and OpenClaw ownership adaptations while
vendoring the standalone 0.1.17 runtime fix.

## [0.3.2] - 2026-07-22

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion plugins/llm-wiki/openclaw.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "llm-wiki",
"name": "LLM Wiki",
"description": "Create and query project wikis with optional maintenance automation.",
"version": "0.3.2",
"version": "0.3.3",
"skills": [
"./openclaw/skills"
],
Expand Down
2 changes: 1 addition & 1 deletion plugins/llm-wiki/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llm-wiki",
"version": "0.3.2",
"version": "0.3.3",
"type": "module",
"description": "Create and query project wikis with optional maintenance automation.",
"homepage": "https://github.com/ivankuznetsov/llm-wiki",
Expand Down
28 changes: 23 additions & 5 deletions plugins/llm-wiki/templates/install-systemd-scheduler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,22 @@ decode_systemd_path() {
sed -e 's/\\x22/"/g' -e 's/\\x20/ /g' -e 's/\\x5c/\\/g'
}

systemctl_command=(systemctl)
configure_user_systemctl_command() {
local uid runtime_dir bus_address
uid="$(id -u)"
runtime_dir="${XDG_RUNTIME_DIR:-/run/user/$uid}"
bus_address="${DBUS_SESSION_BUS_ADDRESS:-}"

systemctl_command=(systemctl)
if [ -S "$runtime_dir/bus" ]; then
bus_address="${bus_address:-unix:path=$runtime_dir/bus}"
systemctl_command=(
env "XDG_RUNTIME_DIR=$runtime_dir" "DBUS_SESSION_BUS_ADDRESS=$bus_address" systemctl
)
fi
}

base="$(basename "$primary_root" | sed 's/[^A-Za-z0-9_.-]/-/g')"
slug="$base-$(digest "$primary_root")"
service_name="llm-wiki-$slug.service"
Expand Down Expand Up @@ -161,9 +177,10 @@ for candidate in "${obsolete[@]}"; do
[ -e "$candidate" ] || [ -L "$candidate" ] || continue
if [ "${LLM_WIKI_SKIP_SYSTEMCTL:-${HIVE_SKIP_LLM_WIKI_SYSTEMCTL:-}}" != 1 ] && \
command -v systemctl >/dev/null 2>&1; then
configure_user_systemctl_command
case "$candidate" in
*.service|*.timer)
systemctl --user stop "$(basename "$candidate")" >/dev/null 2>&1 || true
"${systemctl_command[@]}" --user stop "$(basename "$candidate")" >/dev/null 2>&1 || true
;;
esac
fi
Expand All @@ -177,11 +194,12 @@ fi

if [ "${LLM_WIKI_SKIP_SYSTEMCTL:-${HIVE_SKIP_LLM_WIKI_SYSTEMCTL:-}}" != 1 ] && \
command -v systemctl >/dev/null 2>&1; then
systemctl --user daemon-reload
systemctl --user stop "$service_name" >/dev/null 2>&1 || true
systemctl --user stop "$timer_name" >/dev/null 2>&1 || true
configure_user_systemctl_command
"${systemctl_command[@]}" --user daemon-reload
"${systemctl_command[@]}" --user stop "$service_name" >/dev/null 2>&1 || true
"${systemctl_command[@]}" --user stop "$timer_name" >/dev/null 2>&1 || true
if [ "$enable_timer" -eq 1 ]; then
systemctl --user start "$timer_name"
"${systemctl_command[@]}" --user start "$timer_name"
fi
fi
printf 'llm-wiki: installed one bounded scheduler for repository: %s\n' "$primary_root"
28 changes: 25 additions & 3 deletions plugins/llm-wiki/templates/post-commit-refresh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ run_with_timeout() {
run_without_git_env "$timeout_bin" -k "$kill_after" "$seconds" "$@"
}

USER_SYSTEMCTL_COMMAND=(systemctl)
configure_user_systemctl_command() {
local uid runtime_dir bus_address
uid="$(id -u)"
runtime_dir="${XDG_RUNTIME_DIR:-/run/user/$uid}"
bus_address="${DBUS_SESSION_BUS_ADDRESS:-}"

USER_SYSTEMCTL_COMMAND=(systemctl)
if [ -S "$runtime_dir/bus" ]; then
bus_address="${bus_address:-unix:path=$runtime_dir/bus}"
USER_SYSTEMCTL_COMMAND=(
env "XDG_RUNTIME_DIR=$runtime_dir" "DBUS_SESSION_BUS_ADDRESS=$bus_address" systemctl
)
fi
}

clear_git_tool_environment() {
local name
for name in "${GIT_ENV_NAMES[@]}"; do
Expand Down Expand Up @@ -185,6 +201,12 @@ if [ "$drain_mode" -eq 0 ] && [ -z "$retry_selector" ]; then
changed_files="$(git diff-tree --no-commit-id --name-only -r HEAD 2>/dev/null || true)"
[ -n "$changed_files" ] || exit 0

# wiki/log.md is compiled from wiki/log.d fragments. A commit that only
# rewrites the compiled projection contains no new source for the wiki agent.
if ! printf '%s\n' "$changed_files" | grep -Fqvx 'wiki/log.md'; then
exit 0
fi

if ! printf '%s\n' "$changed_files" | grep -Eq \
'(^|/)(schema\.rb|structure\.sql|db/migrate/|migrations/|models/|entities/|prisma/schema\.prisma|routes|controllers|handlers|resolvers|app/|src/|lib/|test/|tests/|spec/|templates/|config/|bin/|README\.md|Gemfile|Gemfile\.lock|package\.json|package-lock\.json|go\.mod|go\.sum|Cargo\.toml|Cargo\.lock|requirements\.txt|pyproject\.toml|poetry\.lock|composer\.json|composer\.lock|docs/|wiki/|raw/notes/|plans/|todos/|CHANGELOG\.md|AGENTS\.md|CLAUDE\.md)'; then
exit 0
Expand Down Expand Up @@ -220,15 +242,15 @@ if [ "$drain_mode" -eq 0 ] && [ -z "$retry_selector" ]; then
scheduler_service="$(sed -n '1p' "$state_dir/scheduler-service" 2>/dev/null || true)"
if [ "${LLM_WIKI_SKIP_SYSTEMCTL:-${HIVE_SKIP_LLM_WIKI_SYSTEMCTL:-}}" != "1" ] && \
[[ "$scheduler_service" =~ ^llm-wiki-[A-Za-z0-9_.-]+\.service$ ]]; then
configure_user_systemctl_command
if command -v systemctl >/dev/null 2>&1 && \
run_with_timeout "${LLM_WIKI_SYSTEMCTL_TIMEOUT:-10}" \
systemctl --user start --no-block "$scheduler_service" \
"${USER_SYSTEMCTL_COMMAND[@]}" --user start --no-block "$scheduler_service" \
>>"$log_file" 2>&1; then
log_line "queued source $sha for memory-bounded systemd worker $scheduler_service"
exit 0
else
rm -f -- "$state_dir/scheduler-service"
log_line "WARN: memory-bounded systemd worker $scheduler_service could not be started; using machine-wide serialized fallback"
log_line "WARN: memory-bounded systemd worker $scheduler_service could not be signalled; keeping its configured marker and using machine-wide serialized fallback"
fi
fi
fi
Expand Down
Loading
Loading