:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: Add path and secret status to Hogli info screen (#60993)
Jordan Mryyanafe1c995d7d7
diff --git a/tools/hogli-commands/hogli_commands/devenv/generator.py b/tools/hogli-commands/hogli_commands/devenv/generator.pyindex 5b7d29c41b9c..8f8cc8d961c8 100644--- a/tools/hogli-commands/hogli_commands/devenv/generator.py+++ b/tools/hogli-commands/hogli_commands/devenv/generator.py@@ -240,8 +240,14 @@ printf ' {blue}hogli dev:setup{reset} Configure which services run\\n'printf ' {blue}hogli dev:explain{reset} Show why each service is running\\n'echo ''printf '{gray} ─────────────────────────────────────{reset}\\n'+printf ' {bold}Path:{reset} {gray}%s{reset}\\n' "${{REPOSITORY_ROOT:-$PWD}}"printf ' {bold}Products:{reset} {blue}{", ".join(products)}{reset}\\n'printf ' {bold}Processes:{reset} {process_count} active\\n'+if [ -n "${{_POSTHOG_OP_RESOLVED:-}}" ]; then+ printf ' {bold}Secrets:{reset} {blue}1Password{reset} {gray}(op run){reset}\\n'+else+ printf ' {bold}Secrets:{reset} {gray}local .env files{reset}\\n'+fiecho ''printf ' {bold}Log in with:{reset} [email protected] - {blue}12345678{reset}\\n'printf ' {gray}Run {reset}{blue}hogli dev:setup{reset}{gray} to tailor this to your workflow.{reset}\\n'diff --git a/tools/hogli-commands/hogli_commands/tests/test_devenv.py b/tools/hogli-commands/hogli_commands/tests/test_devenv.pyindex 054f70ed421f..2dae29e0aa9f 100644--- a/tools/hogli-commands/hogli_commands/tests/test_devenv.py+++ b/tools/hogli-commands/hogli_commands/tests/test_devenv.py@@ -564,6 +564,19 @@ class TestInfoProcess:assert "hogli dev:setup" in shellassert "hogli dev:explain" in shell+ def test_info_process_includes_path_and_secrets(self) -> None:+ """Info process shell surfaces repo path and secrets source live."""+ procs = self._generate_with_intents(["feature_flags"])+ shell = procs["info"]["shell"]++ assert "Path:" in shell+ assert "${REPOSITORY_ROOT:-$PWD}" in shell++ assert "Secrets:" in shell+ assert "_POSTHOG_OP_RESOLVED" in shell+ assert "1Password" in shell+ assert "local .env files" in shell+class TestMprocsGeneratorRegression:"""Regression tests for generator behavior with the real intent map."""