Skip to content

Commit 5496339

Browse files
authored
Merge pull request #42 from hack-dance/feat/global-install-recovery-setup
feat(web): expand account shell and streamline install flows
2 parents 4bee57a + fa192b2 commit 5496339

146 files changed

Lines changed: 7173 additions & 2607 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,52 @@ jobs:
150150
with:
151151
tag: ${{ needs.create-release.outputs.tag }}
152152
secrets: inherit
153+
154+
update-homebrew-tap:
155+
needs: [create-release, build]
156+
runs-on: ubuntu-latest
157+
permissions:
158+
contents: read
159+
steps:
160+
- name: Require tap push token
161+
env:
162+
TAP_TOKEN: ${{ secrets.RELEASE_PAT }}
163+
run: |
164+
if [ -z "$TAP_TOKEN" ]; then
165+
echo "Missing secret RELEASE_PAT"
166+
exit 1
167+
fi
168+
- name: Checkout hack
169+
uses: actions/checkout@v4
170+
- name: Checkout tap repo
171+
uses: actions/checkout@v4
172+
with:
173+
repository: hack-dance/homebrew-tap
174+
token: ${{ secrets.RELEASE_PAT }}
175+
ref: main
176+
path: homebrew-tap
177+
- name: Setup Bun
178+
uses: oven-sh/setup-bun@v1
179+
with:
180+
bun-version: "1.3.9"
181+
- name: Render formula
182+
env:
183+
GH_TOKEN: ${{ github.token }}
184+
run: |
185+
bun run scripts/update-homebrew-tap.ts \
186+
--tag="${{ needs.create-release.outputs.tag }}" \
187+
--version="${{ needs.create-release.outputs.version }}" \
188+
--tap-dir=homebrew-tap
189+
- name: Commit and push tap update
190+
working-directory: homebrew-tap
191+
run: |
192+
set -euo pipefail
193+
git add Formula/hack.rb
194+
if git diff --cached --quiet; then
195+
echo "No Homebrew tap changes to push."
196+
exit 0
197+
fi
198+
git config user.name "github-actions[bot]"
199+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
200+
git commit -m "build(hack): update formula to ${{ needs.create-release.outputs.tag }}"
201+
git push origin HEAD:main

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
2828
*.app-key.pem
2929
*.p8
3030
hackdance.*.private-key.pem
31+
.hack/hack.env.default.yaml
3132
.hack.secret.key
33+
.hack/.env
34+
.hack/.env.state.json
3235
.hack-secrets-file.key
3336
.hack-secrets.enc.json
37+
.hack/linear
38+
.hack/_linear
39+
.hack/internal
40+
.hack/.env.state.json
3441

3542
# caches
3643
.eslintcache

.gitleaksignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
14f9809b6a474ac2c820a4268dcbfc67fe878639:services/auth-broker/Untitled:generic-api-key:2
22
cbad51795170d25e1ab0926c1ac5a74d1e001ef9:.factory/validation/misc-admin-followups-1/user-testing/flows/management-token-email-verified.json:generic-api-key:8
33
e069b8546c112e5b5c8ab0ec82fd24a4f19ef16b:.hack/tickets/events/events-2026-03.jsonl:generic-api-key:58
4+
939c2b2cb680744707b1d085db0bc0ce8fac32e4:tests/env.test.ts:private-key:7

.hack/docker-compose.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ services:
2323
environment:
2424
CHOKIDAR_USEPOLLING: "true"
2525
WATCHPACK_POLLING: "true"
26-
HACK_WEB_APP_BASE_URL: https://hack-cli.hack
27-
HACK_AUTH_BROKER_URL: https://auth.hack-cli.hack
28-
HACK_AUTH_BROKER_INTERNAL_URL: http://auth-broker:8080
29-
NEXT_PUBLIC_HACK_WEB_APP_BASE_URL: https://hack-cli.hack
30-
NEXT_PUBLIC_HACK_AUTH_BROKER_URL: https://auth.hack-cli.hack
31-
BETTER_AUTH_TRUSTED_ORIGINS: https://hack-cli.hack,https://hack-cli.hack.gy
3226
labels:
3327
caddy: "hack-cli.hack, hack-cli.hack.gy"
3428
caddy.reverse_proxy: "{{upstreams 3000}}"
@@ -50,9 +44,6 @@ services:
5044
environment:
5145
PORT: "8080"
5246
HOST: "0.0.0.0"
53-
AUTH_BROKER_PUBLIC_BASE_URL: https://auth.hack-cli.hack
54-
HACK_WEB_APP_BASE_URL: https://hack-cli.hack
55-
BETTER_AUTH_TRUSTED_ORIGINS: https://hack-cli.hack,https://hack-cli.hack.gy
5647
labels:
5748
caddy: "auth.hack-cli.hack, auth.hack-cli.hack.gy"
5849
caddy.reverse_proxy: "{{upstreams 8080}}"

.hack/hack.env.remote.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 1
2+
environment: remote
3+
secretsprovider: project_key
4+
values:
5+
web:
6+
HACK_AUTH_BROKER_URL: https://auth.hack.broker
7+
NEXT_PUBLIC_HACK_AUTH_BROKER_URL: https://auth.hack.broker
8+
auth-broker:
9+
AUTH_BROKER_PUBLIC_BASE_URL: https://auth.hack.broker
10+
BETTER_AUTH_URL: https://auth.hack.broker
11+
# Broker custom GitHub OAuth callback for Hack-owned flows.
12+
# Better Auth browser social login uses:
13+
# ${BETTER_AUTH_URL}/api/auth/callback/github
14+
GITHUB_REDIRECT_URI: https://auth.hack.broker/gh/callback
15+
HACK_LINEAR_REDIRECT_URI: https://auth.hack.broker/linear/callback

.hack/linear/projects/7a3c8adf-ede5-4d3a-8779-9c32695c76bf/closeout-scope.json

Lines changed: 0 additions & 110 deletions
This file was deleted.

.hack/linear/projects/7a3c8adf-ede5-4d3a-8779-9c32695c76bf/delivery-audit.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.hack/linear/projects/7a3c8adf-ede5-4d3a-8779-9c32695c76bf/documents/04b4b1538d50.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

.hack/linear/projects/7a3c8adf-ede5-4d3a-8779-9c32695c76bf/documents/5babf8ed3817.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

.hack/linear/projects/7a3c8adf-ede5-4d3a-8779-9c32695c76bf/documents/683cf0d82fe9.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)