Documentation
¶
Overview ¶
Package paths centralizes the on-disk paths the shim and broker share. Every path is overridable by an env var so tests can isolate to a temp dir.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodexState ¶
CodexState returns the managed state path for peer. Callers must validate peer before using it as a path component.
func CodexThreadLock ¶ added in v0.2.2
CodexThreadLock returns a process-lifetime lock path shared by every Intercom peer that targets the same Codex thread. The lock lives below CODEX_HOME so separate Intercom runtime directories use the same ownership namespace. Codex itself does not honor this lock; it prevents only two Intercom controllers from managing one thread concurrently.
func Dir ¶
Dir returns the runtime directory (~/.claude-intercom by default). It is created with mode 0700 if missing. The first non-nil error short- circuits subsequent helper calls in the same process.
func Lock ¶
Lock returns the path of the broker's startup lock file. Always derived from Socket() (with .lock appended) so a custom socket path moves the lock file alongside it.
Types ¶
This section is empty.