Documentation
¶
Overview ¶
Package projecttxn serializes mutations to project-scoped ToolHive state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
Lock acquires the bounded in-process stripe for projectRoot. Waiting is governed exclusively by ctx; callers without a deadline may wait until the current project mutation completes.
func Run ¶
Run executes fn while holding both the process-wide project stripe and the stable OS-backed lock shared by ToolHive processes. Lock files are retained after release because deleting one can split waiters across different inodes. Skills and AI plugins use this same transaction because both mutate toolhive.lock.yaml and related project bookkeeping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.