Skip to content

feat(global): automate macOS recovery setup during install#41

Merged
roodboi merged 3 commits into
mainfrom
feat/global-install-recovery-setup
Apr 2, 2026
Merged

feat(global): automate macOS recovery setup during install#41
roodboi merged 3 commits into
mainfrom
feat/global-install-recovery-setup

Conversation

@roodboi

@roodboi roodboi commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add hack global authorize for one-time macOS DNS recovery authorization
  • have hack global install offer passwordless DNS recovery and hackd launchd setup during initial install
  • switch macOS DNS recovery paths to try non-interactive sudo first and cover the install/recovery flows with tests

Verification

  • bun test tests/global-command.test.ts tests/global-command.macos.test.ts
  • bun x ultracite check src/commands/global.ts tests/global-command.macos.test.ts

Notes

  • ultracite still reports two pre-existing complexity warnings in src/commands/global.ts.

@changeset-bot

changeset-bot Bot commented Apr 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7038b5f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2da43bb72b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/commands/global.ts Outdated
@roodboi

roodboi commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the inline review note about TTY handling. hack global — Manage machine-wide infra (DNS/TLS, Caddy proxy, logs)

Usage:
hack global [options]

Subcommands:
hack global install Bootstrap ~/.hack and start Caddy + Grafana/Loki/Alloy
hack global up Start global infra containers
hack global down Stop global infra containers
hack global status Show status for global infra (containers + networks)
hack global logs [service] Tail global infra logs (caddy|grafana|loki|alloy)
hack global ca Export Caddy Local CA cert (print path or PEM)
hack global cert <hosts...> Generate local TLS certs via mkcert (for non-Caddy services)
hack global trust Trust Caddy Local CA (macOS) so https://*.hack is trusted
hack global logs-reset Wipe Loki/Grafana volumes (fresh logs + dashboards)
hack global authorize Authorize passwordless DNS recovery commands on macOS

Options:
--help, -h Show help
--version, -v Show version now treats interactive stdin as sufficient for sudo fallback, and there is a regression test covering redirected stdout with interactive stdin.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7038b5fbfd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/commands/global.ts
@roodboi
roodboi merged commit 9eea06d into main Apr 2, 2026
3 checks passed
@roodboi
roodboi deleted the feat/global-install-recovery-setup branch April 2, 2026 15:35
roodboi pushed a commit that referenced this pull request Apr 2, 2026
## 2.3.0 (2026-04-02)

* Merge pull request #41 from hack-dance/feat/global-install-recovery-setup ([9eea06d](9eea06d)), closes [#41](#41)
* fix(env): skip secret backend for empty legacy contracts ([67da0a6](67da0a6))
* fix(global): preserve sudo fallback when stdout is redirected ([7038b5f](7038b5f))
* feat(global): automate macOS recovery setup during install ([2da43bb](2da43bb))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant