mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 23:08:38 +01:00
- orchestration-events schema + queries: persistent event log for agent lifecycle (input_requested, close_requested, task_started, session_closed events per project) - navigation.ts: isCurrentPath helper for active-link detection in sidebar/nav - codex-wrapper: snap Codex config bridge — copies ~/.codex/config.toml into the snap home so the Snap-packaged Codex sees the user's model/API key configuration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
575 B
Bash
24 lines
575 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
real_home="${HOME}"
|
|
snap_home="${real_home}/snap/codex/current"
|
|
snap_config_dir="${snap_home}/.codex"
|
|
snap_xdg_config_dir="${snap_home}/.config"
|
|
real_config="${real_home}/.codex/config.toml"
|
|
snap_config="${snap_config_dir}/config.toml"
|
|
|
|
mkdir -p "${snap_config_dir}" "${snap_xdg_config_dir}"
|
|
|
|
if [[ -r "${real_config}" ]]; then
|
|
cp "${real_config}" "${snap_config}"
|
|
chmod 600 "${snap_config}"
|
|
fi
|
|
|
|
export HOME="${snap_home}"
|
|
export XDG_CONFIG_HOME="${snap_xdg_config_dir}"
|
|
export CODEX_HOME="${snap_home}"
|
|
|
|
exec /snap/bin/codex "$@"
|