@crvouga/homelab 0.25.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mise/locks/npm-vercel/{68.2.0 → 68.5.0}/aube-lock.yaml +177 -177
- package/.mise/locks/npm-vercel/{68.2.0 → 68.5.0}/package.json +1 -1
- package/.mise/locks/npm-wrangler/{4.170.0 → 4.171.0}/aube-lock.yaml +46 -46
- package/.mise/locks/npm-wrangler/{4.170.0 → 4.171.0}/package.json +1 -1
- package/README.md +0 -6
- package/ansible/monitoring/compose.yml +1 -1
- package/ansible/monitoring/lock.json +1 -1
- package/ansible/ubuntu/baseline.yml +14 -0
- package/ansible/ubuntu/policy.json +3 -1
- package/ansible/ubuntu/t3-boot-readiness.py +38 -0
- package/ansible/ubuntu/t3-desktop.yml +6 -1
- package/ansible/ubuntu/tasks/recovery.yml +27 -0
- package/docs/runbooks.md +2 -6
- package/docs/ubuntu-sync.md +3 -1
- package/docs/worker-contract.md +23 -5
- package/mise.lock +76 -76
- package/mise.toml +4 -4
- package/package.json +3 -3
- package/schema/check-ids.json +1 -9
- package/schema/fleet.schema.json +1 -11
- package/src/check-registry.ts +1 -2
- package/src/ide/definition.ts +2 -25
- package/src/ide/ide.ts +3 -4
- package/src/ide/t3.ts +0 -8
- package/src/manager-sync.ts +12 -1
- package/src/package-info.ts +48 -18
- package/src/worker-host-checks.ts +61 -12
- package/src/t3/profile.ts +0 -204
package/mise.lock
CHANGED
|
@@ -1613,16 +1613,16 @@ backend = "npm:@yarnpkg/cli-dist"
|
|
|
1613
1613
|
specifiers = ["4.19.0"]
|
|
1614
1614
|
|
|
1615
1615
|
[[tools."npm:vercel"]]
|
|
1616
|
-
version = "68.
|
|
1617
|
-
aube = { path = ".mise/locks/npm-vercel/68.
|
|
1616
|
+
version = "68.5.0"
|
|
1617
|
+
aube = { path = ".mise/locks/npm-vercel/68.5.0", digest = "sha256:acb7702f21b240b54230d4827c12f68ca25efd8bf572113d49921bbea38683c1" }
|
|
1618
1618
|
backend = "npm:vercel"
|
|
1619
|
-
specifiers = ["68.
|
|
1619
|
+
specifiers = ["68.5.0"]
|
|
1620
1620
|
|
|
1621
1621
|
[[tools."npm:wrangler"]]
|
|
1622
|
-
version = "4.
|
|
1623
|
-
aube = { path = ".mise/locks/npm-wrangler/4.
|
|
1622
|
+
version = "4.171.0"
|
|
1623
|
+
aube = { path = ".mise/locks/npm-wrangler/4.171.0", digest = "sha256:fcb2d440403de048e88881e422829f885c4bed4f4a4a4c2ca7a35a2f2957df36" }
|
|
1624
1624
|
backend = "npm:wrangler"
|
|
1625
|
-
specifiers = ["4.
|
|
1625
|
+
specifiers = ["4.171.0"]
|
|
1626
1626
|
|
|
1627
1627
|
[[tools.opentofu]]
|
|
1628
1628
|
version = "1.13.11"
|
|
@@ -1696,74 +1696,74 @@ url = "https://github.com/opentofu/opentofu/releases/download/v1.13.11/tofu_1.13
|
|
|
1696
1696
|
url_api = "https://api.github.com/repos/opentofu/opentofu/releases/assets/813177535"
|
|
1697
1697
|
|
|
1698
1698
|
[[tools.pnpm]]
|
|
1699
|
-
version = "12.
|
|
1699
|
+
version = "12.26.0"
|
|
1700
1700
|
backend = "aqua:pnpm/pnpm"
|
|
1701
|
-
specifiers = ["12.
|
|
1701
|
+
specifiers = ["12.26.0"]
|
|
1702
1702
|
|
|
1703
1703
|
[tools.pnpm."platforms.linux-arm64"]
|
|
1704
|
-
checksum = "sha256:
|
|
1705
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1706
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1704
|
+
checksum = "sha256:321767eb7939c3d09577fed77d1c0c1b0802b690000f301382ea0b9297e01c2e"
|
|
1705
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-linux-arm64.tar.gz"
|
|
1706
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897786"
|
|
1707
1707
|
provenance = "github-attestations"
|
|
1708
1708
|
|
|
1709
1709
|
[tools.pnpm."platforms.linux-arm64-musl"]
|
|
1710
|
-
checksum = "sha256:
|
|
1711
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1712
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1710
|
+
checksum = "sha256:d90eb5287fe7adc27467d06388e2aafa37e3982de2ec4eaa08cd710b9b34b7b1"
|
|
1711
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-linux-arm64-musl.tar.gz"
|
|
1712
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897783"
|
|
1713
1713
|
provenance = "github-attestations"
|
|
1714
1714
|
|
|
1715
1715
|
[tools.pnpm."platforms.linux-x64"]
|
|
1716
|
-
checksum = "sha256:
|
|
1717
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1718
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1716
|
+
checksum = "sha256:1b27412c9d86763b5722a6e563c34f894e9ddcfa8f613d8778a476633b4e4402"
|
|
1717
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-linux-x64.tar.gz"
|
|
1718
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897768"
|
|
1719
1719
|
provenance = "github-attestations"
|
|
1720
1720
|
|
|
1721
1721
|
[tools.pnpm."platforms.linux-x64-baseline"]
|
|
1722
|
-
checksum = "sha256:
|
|
1723
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1724
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1722
|
+
checksum = "sha256:1b27412c9d86763b5722a6e563c34f894e9ddcfa8f613d8778a476633b4e4402"
|
|
1723
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-linux-x64.tar.gz"
|
|
1724
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897768"
|
|
1725
1725
|
provenance = "github-attestations"
|
|
1726
1726
|
|
|
1727
1727
|
[tools.pnpm."platforms.linux-x64-musl"]
|
|
1728
|
-
checksum = "sha256:
|
|
1729
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1730
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1728
|
+
checksum = "sha256:69a290bc5f10574bac61086b969c902f73d979c6a1d81070600ba95408cabbe8"
|
|
1729
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-linux-x64-musl.tar.gz"
|
|
1730
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897775"
|
|
1731
1731
|
provenance = "github-attestations"
|
|
1732
1732
|
|
|
1733
1733
|
[tools.pnpm."platforms.linux-x64-musl-baseline"]
|
|
1734
|
-
checksum = "sha256:
|
|
1735
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1736
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1734
|
+
checksum = "sha256:69a290bc5f10574bac61086b969c902f73d979c6a1d81070600ba95408cabbe8"
|
|
1735
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-linux-x64-musl.tar.gz"
|
|
1736
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897775"
|
|
1737
1737
|
provenance = "github-attestations"
|
|
1738
1738
|
|
|
1739
1739
|
[tools.pnpm."platforms.macos-arm64"]
|
|
1740
|
-
checksum = "sha256:
|
|
1741
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1742
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1740
|
+
checksum = "sha256:3b71a8a0cf3f1bdb8d65c2d06bf54575201ee4a62b7ec568e874af5c31022760"
|
|
1741
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-darwin-arm64.tar.gz"
|
|
1742
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897787"
|
|
1743
1743
|
provenance = "github-attestations"
|
|
1744
1744
|
|
|
1745
1745
|
[tools.pnpm."platforms.macos-x64"]
|
|
1746
|
-
checksum = "sha256:
|
|
1747
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1748
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1746
|
+
checksum = "sha256:8d224eb669a321628a167a4dc0dcacbf25d3aea446b67683f8340aa7858e8805"
|
|
1747
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-darwin-x64.tar.gz"
|
|
1748
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897779"
|
|
1749
1749
|
provenance = "github-attestations"
|
|
1750
1750
|
|
|
1751
1751
|
[tools.pnpm."platforms.macos-x64-baseline"]
|
|
1752
|
-
checksum = "sha256:
|
|
1753
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1754
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1752
|
+
checksum = "sha256:8d224eb669a321628a167a4dc0dcacbf25d3aea446b67683f8340aa7858e8805"
|
|
1753
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-darwin-x64.tar.gz"
|
|
1754
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897779"
|
|
1755
1755
|
provenance = "github-attestations"
|
|
1756
1756
|
|
|
1757
1757
|
[tools.pnpm."platforms.windows-x64"]
|
|
1758
|
-
checksum = "sha256:
|
|
1759
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1760
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1758
|
+
checksum = "sha256:a69c7aad32dd39eef8f1dbb0cc06d81d12e58cd77ba9aae8f2f45ebd8895bd7d"
|
|
1759
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-win32-x64.zip"
|
|
1760
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897770"
|
|
1761
1761
|
provenance = "github-attestations"
|
|
1762
1762
|
|
|
1763
1763
|
[tools.pnpm."platforms.windows-x64-baseline"]
|
|
1764
|
-
checksum = "sha256:
|
|
1765
|
-
url = "https://github.com/pnpm/pnpm/releases/download/v12.
|
|
1766
|
-
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/
|
|
1764
|
+
checksum = "sha256:a69c7aad32dd39eef8f1dbb0cc06d81d12e58cd77ba9aae8f2f45ebd8895bd7d"
|
|
1765
|
+
url = "https://github.com/pnpm/pnpm/releases/download/v12.26.0/pnpm-win32-x64.zip"
|
|
1766
|
+
url_api = "https://api.github.com/repos/pnpm/pnpm/releases/assets/819897770"
|
|
1767
1767
|
provenance = "github-attestations"
|
|
1768
1768
|
|
|
1769
1769
|
[[tools.python]]
|
|
@@ -1997,75 +1997,75 @@ backend = "core:rust"
|
|
|
1997
1997
|
specifiers = ["1.100.1"]
|
|
1998
1998
|
|
|
1999
1999
|
[[tools.shellcheck]]
|
|
2000
|
-
version = "0.
|
|
2000
|
+
version = "0.12.0"
|
|
2001
2001
|
backend = "aqua:koalaman/shellcheck"
|
|
2002
|
-
specifiers = ["0.
|
|
2002
|
+
specifiers = ["0.12.0"]
|
|
2003
2003
|
|
|
2004
2004
|
[tools.shellcheck."platforms.linux-arm64"]
|
|
2005
|
-
checksum = "sha256:
|
|
2005
|
+
checksum = "sha256:ce1d8583a588c1065afc6808ee2d80746d463228323281e625300b3c5df35491"
|
|
2006
2006
|
checksum_source = "mise-versions"
|
|
2007
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2008
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2007
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.linux.aarch64.tar.xz"
|
|
2008
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569078"
|
|
2009
2009
|
|
|
2010
2010
|
[tools.shellcheck."platforms.linux-arm64-musl"]
|
|
2011
|
-
checksum = "sha256:
|
|
2011
|
+
checksum = "sha256:ce1d8583a588c1065afc6808ee2d80746d463228323281e625300b3c5df35491"
|
|
2012
2012
|
checksum_source = "mise-versions"
|
|
2013
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2014
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2013
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.linux.aarch64.tar.xz"
|
|
2014
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569078"
|
|
2015
2015
|
|
|
2016
2016
|
[tools.shellcheck."platforms.linux-x64"]
|
|
2017
|
-
checksum = "sha256:
|
|
2017
|
+
checksum = "sha256:28827970d4166f58329182a0593f506ea54b40e34f18414ff43392baff9dc754"
|
|
2018
2018
|
checksum_source = "mise-versions"
|
|
2019
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2020
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2019
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.linux.x86_64.tar.xz"
|
|
2020
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569156"
|
|
2021
2021
|
|
|
2022
2022
|
[tools.shellcheck."platforms.linux-x64-baseline"]
|
|
2023
|
-
checksum = "sha256:
|
|
2023
|
+
checksum = "sha256:28827970d4166f58329182a0593f506ea54b40e34f18414ff43392baff9dc754"
|
|
2024
2024
|
checksum_source = "mise-versions"
|
|
2025
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2026
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2025
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.linux.x86_64.tar.xz"
|
|
2026
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569156"
|
|
2027
2027
|
|
|
2028
2028
|
[tools.shellcheck."platforms.linux-x64-musl"]
|
|
2029
|
-
checksum = "sha256:
|
|
2029
|
+
checksum = "sha256:28827970d4166f58329182a0593f506ea54b40e34f18414ff43392baff9dc754"
|
|
2030
2030
|
checksum_source = "mise-versions"
|
|
2031
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2032
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2031
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.linux.x86_64.tar.xz"
|
|
2032
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569156"
|
|
2033
2033
|
|
|
2034
2034
|
[tools.shellcheck."platforms.linux-x64-musl-baseline"]
|
|
2035
|
-
checksum = "sha256:
|
|
2035
|
+
checksum = "sha256:28827970d4166f58329182a0593f506ea54b40e34f18414ff43392baff9dc754"
|
|
2036
2036
|
checksum_source = "mise-versions"
|
|
2037
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2038
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2037
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.linux.x86_64.tar.xz"
|
|
2038
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569156"
|
|
2039
2039
|
|
|
2040
2040
|
[tools.shellcheck."platforms.macos-arm64"]
|
|
2041
|
-
checksum = "sha256:
|
|
2041
|
+
checksum = "sha256:4ea9ce683eb2a3350fb87940161b0c2c15e5d98dff3f410860401c9c9664c11a"
|
|
2042
2042
|
checksum_source = "mise-versions"
|
|
2043
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2044
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2043
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.darwin.aarch64.tar.xz"
|
|
2044
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569010"
|
|
2045
2045
|
|
|
2046
2046
|
[tools.shellcheck."platforms.macos-x64"]
|
|
2047
|
-
checksum = "sha256:
|
|
2047
|
+
checksum = "sha256:31b90f7479ff233e612e5a30b8120bd16194bc7453e9dfdbec40328ad791850a"
|
|
2048
2048
|
checksum_source = "mise-versions"
|
|
2049
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2050
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2049
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.darwin.x86_64.tar.xz"
|
|
2050
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569011"
|
|
2051
2051
|
|
|
2052
2052
|
[tools.shellcheck."platforms.macos-x64-baseline"]
|
|
2053
|
-
checksum = "sha256:
|
|
2053
|
+
checksum = "sha256:31b90f7479ff233e612e5a30b8120bd16194bc7453e9dfdbec40328ad791850a"
|
|
2054
2054
|
checksum_source = "mise-versions"
|
|
2055
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2056
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2055
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.darwin.x86_64.tar.xz"
|
|
2056
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569011"
|
|
2057
2057
|
|
|
2058
2058
|
[tools.shellcheck."platforms.windows-x64"]
|
|
2059
|
-
checksum = "sha256:
|
|
2059
|
+
checksum = "sha256:42c9b96f4fe8a066c2895af28eb6ddfc95cc90ec17d0b7ddb8ced40237418507"
|
|
2060
2060
|
checksum_source = "mise-versions"
|
|
2061
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2062
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2061
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.zip"
|
|
2062
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569174"
|
|
2063
2063
|
|
|
2064
2064
|
[tools.shellcheck."platforms.windows-x64-baseline"]
|
|
2065
|
-
checksum = "sha256:
|
|
2065
|
+
checksum = "sha256:42c9b96f4fe8a066c2895af28eb6ddfc95cc90ec17d0b7ddb8ced40237418507"
|
|
2066
2066
|
checksum_source = "mise-versions"
|
|
2067
|
-
url = "https://github.com/koalaman/shellcheck/releases/download/v0.
|
|
2068
|
-
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/
|
|
2067
|
+
url = "https://github.com/koalaman/shellcheck/releases/download/v0.12.0/shellcheck-v0.12.0.zip"
|
|
2068
|
+
url_api = "https://api.github.com/repos/koalaman/shellcheck/releases/assets/825569174"
|
|
2069
2069
|
|
|
2070
2070
|
[[tools.shfmt]]
|
|
2071
2071
|
version = "3.15.0"
|
package/mise.toml
CHANGED
|
@@ -15,7 +15,7 @@ delta = "conda:git-delta"
|
|
|
15
15
|
|
|
16
16
|
[tools]
|
|
17
17
|
gh = "2.106.0"
|
|
18
|
-
shellcheck = "0.
|
|
18
|
+
shellcheck = "0.12.0"
|
|
19
19
|
actionlint = "1.7.12"
|
|
20
20
|
opentofu = "1.13.11"
|
|
21
21
|
bun = "1.4.5"
|
|
@@ -26,7 +26,7 @@ azure-cli = { version = "2.94.0", lazy = true }
|
|
|
26
26
|
restic = { version = "0.20.0", os = ["linux", "macos"], lazy = true }
|
|
27
27
|
# Replicates the fleet state database to the storage bucket (src/state).
|
|
28
28
|
litestream = { version = "0.5.19", os = ["linux", "macos"], lazy = true }
|
|
29
|
-
pnpm = "12.
|
|
29
|
+
pnpm = "12.26.0"
|
|
30
30
|
"npm:@yarnpkg/cli-dist" = "4.19.0"
|
|
31
31
|
deno = "2.9.8"
|
|
32
32
|
python = "3.15.2"
|
|
@@ -43,8 +43,8 @@ bat = "0.27.0"
|
|
|
43
43
|
delta = "0.23.0"
|
|
44
44
|
git-lfs = "3.8.1"
|
|
45
45
|
docker-cli = "29.10.1"
|
|
46
|
-
"npm:vercel" = "68.
|
|
47
|
-
"npm:wrangler" = "4.
|
|
46
|
+
"npm:vercel" = "68.5.0"
|
|
47
|
+
"npm:wrangler" = "4.171.0"
|
|
48
48
|
railway = "5.77.1"
|
|
49
49
|
vault = "2.2.2"
|
|
50
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/homelab",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "Keeps a set of development machines in sync: one manager and many workers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:crvouga/homelab",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
77
|
-
"gitCommittedAt": "2026-12-
|
|
76
|
+
"gitHead": "debd78cddc6e71eff3b3d6eecf5b86187687d603",
|
|
77
|
+
"gitCommittedAt": "2026-12-03"
|
|
78
78
|
}
|
package/schema/check-ids.json
CHANGED
|
@@ -1431,14 +1431,6 @@
|
|
|
1431
1431
|
"manual": "Approve first T3 pairing in interactive converge or with t3.pairOnEnrollment; a replaced worker is paired by replace or the next converge, and converge applies the rest."
|
|
1432
1432
|
}
|
|
1433
1433
|
},
|
|
1434
|
-
{
|
|
1435
|
-
"id": "t3:profile",
|
|
1436
|
-
"meaning": "The declared T3 settings are in place on this machine.",
|
|
1437
|
-
"severity": "required",
|
|
1438
|
-
"repair": {
|
|
1439
|
-
"manual": "Approve first T3 pairing in interactive converge or with t3.pairOnEnrollment; a replaced worker is paired by replace or the next converge, and converge applies the rest."
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
1434
|
{
|
|
1443
1435
|
"id": "t3:running-version",
|
|
1444
1436
|
"meaning": "The running T3 server is the installed release and no restart of it is pending; a pending restart waits for running agent turns, until its deadline.",
|
|
@@ -2216,7 +2208,7 @@
|
|
|
2216
2208
|
},
|
|
2217
2209
|
{
|
|
2218
2210
|
"id": "worker:t3-health",
|
|
2219
|
-
"meaning": "T3 local API answers with its environment identity within 10 seconds.",
|
|
2211
|
+
"meaning": "T3 local API answers with its environment identity within 10 seconds, and any recorded first successful loopback probe falls within the boot-serving limit.",
|
|
2220
2212
|
"severity": "required",
|
|
2221
2213
|
"repair": {
|
|
2222
2214
|
"manual": "Re-converge the worker with converge: it applies the whole worker policy at the approved revision."
|
package/schema/fleet.schema.json
CHANGED
|
@@ -665,18 +665,8 @@
|
|
|
665
665
|
"t3": {
|
|
666
666
|
"type": "object",
|
|
667
667
|
"additionalProperties": false,
|
|
668
|
-
"description": "
|
|
668
|
+
"description": "How the T3 Code environments reach each other.",
|
|
669
669
|
"properties": {
|
|
670
|
-
"profile": {
|
|
671
|
-
"type": "object",
|
|
672
|
-
"description": "Top-level T3 settings every machine holds the same (tool servers, projects, selected preferences). Keys not named here stay local; a key edited on a machine since homelab last wrote it is reported as a conflict, never overwritten.",
|
|
673
|
-
"propertyNames": {
|
|
674
|
-
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$",
|
|
675
|
-
"not": {
|
|
676
|
-
"const": "providerInstances"
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
670
|
"meshAccess": {
|
|
681
671
|
"const": "full-access",
|
|
682
672
|
"description": "Maintain directed full-access T3 grants between all enrolled environments."
|
package/src/check-registry.ts
CHANGED
|
@@ -399,7 +399,6 @@ export const CHECK_MEANINGS: Record<string, string> = {
|
|
|
399
399
|
't3:private-route': "T3's private HTTPS route is served.",
|
|
400
400
|
't3:client-settings':
|
|
401
401
|
'The complete T3 desktop preferences match the manager’s snapshot.',
|
|
402
|
-
't3:profile': 'The declared T3 settings are in place on this machine.',
|
|
403
402
|
't3:running-version':
|
|
404
403
|
'The running T3 server is the installed release and no restart of it is pending; a pending restart waits for running agent turns, until its deadline.',
|
|
405
404
|
't3:service': 'The pinned T3 app runs.',
|
|
@@ -515,7 +514,7 @@ export const CHECK_MEANINGS: Record<string, string> = {
|
|
|
515
514
|
'worker:service-recovery': 'Worker services recover after failure.',
|
|
516
515
|
'worker:sudo': 'Designated worker user has noninteractive sudo.',
|
|
517
516
|
'worker:t3-health':
|
|
518
|
-
'T3 local API answers with its environment identity within 10 seconds.',
|
|
517
|
+
'T3 local API answers with its environment identity within 10 seconds, and any recorded first successful loopback probe falls within the boot-serving limit.',
|
|
519
518
|
'worker:convergence':
|
|
520
519
|
'The worker last applied the approved revision and its last apply succeeded.',
|
|
521
520
|
'worker:pressure-events':
|
package/src/ide/definition.ts
CHANGED
|
@@ -9,20 +9,11 @@ export type IdeId = (typeof SUPPORTED_IDES)[number];
|
|
|
9
9
|
|
|
10
10
|
/** What `t3` in fleet.json declares for every machine's T3. */
|
|
11
11
|
export interface T3Definition {
|
|
12
|
-
/** Top-level T3 settings every machine holds the same: tool servers,
|
|
13
|
-
* projects, selected preferences. A key not named here stays local.
|
|
14
|
-
*/
|
|
15
|
-
profile?: Record<string, unknown>;
|
|
16
12
|
/** Allow first pairing during sync; absent asks on an interactive terminal. */
|
|
17
13
|
pairOnEnrollment?: boolean;
|
|
18
14
|
meshAccess?: 'full-access';
|
|
19
|
-
/** Models T3 must offer for every account of a tool, by tool. */
|
|
20
15
|
}
|
|
21
16
|
|
|
22
|
-
const KEY = /^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/;
|
|
23
|
-
/** Settings another part of homelab owns. */
|
|
24
|
-
const RESERVED = ['providerInstances'];
|
|
25
|
-
|
|
26
17
|
function invalid(detail: string): never {
|
|
27
18
|
throw new FleetUsageError(`Invalid fleet.json: ${detail}`);
|
|
28
19
|
}
|
|
@@ -53,29 +44,15 @@ export function parseT3(value: unknown): T3Definition {
|
|
|
53
44
|
if (
|
|
54
45
|
!record(value) ||
|
|
55
46
|
Object.keys(value).some(
|
|
56
|
-
(key) => !['
|
|
47
|
+
(key) => !['pairOnEnrollment', 'meshAccess'].includes(key)
|
|
57
48
|
)
|
|
58
49
|
)
|
|
59
|
-
invalid('t3 holds only
|
|
50
|
+
invalid('t3 holds only pairOnEnrollment and meshAccess.');
|
|
60
51
|
const result = meshPolicy(value['meshAccess']);
|
|
61
52
|
if (value['pairOnEnrollment'] !== undefined) {
|
|
62
53
|
if (typeof value['pairOnEnrollment'] !== 'boolean')
|
|
63
54
|
invalid('t3.pairOnEnrollment must be a boolean.');
|
|
64
55
|
result.pairOnEnrollment = value['pairOnEnrollment'];
|
|
65
56
|
}
|
|
66
|
-
if (value['profile'] !== undefined) {
|
|
67
|
-
const profile = value['profile'];
|
|
68
|
-
if (
|
|
69
|
-
!record(profile) ||
|
|
70
|
-
Object.keys(profile).some(
|
|
71
|
-
(key) => !KEY.test(key) || RESERVED.includes(key)
|
|
72
|
-
) ||
|
|
73
|
-
JSON.stringify(profile).length > 65_536
|
|
74
|
-
)
|
|
75
|
-
invalid(
|
|
76
|
-
't3.profile names top-level T3 settings (not providerInstances) and stays under 64 KiB.'
|
|
77
|
-
);
|
|
78
|
-
result.profile = profile;
|
|
79
|
-
}
|
|
80
57
|
return result;
|
|
81
58
|
}
|
package/src/ide/ide.ts
CHANGED
|
@@ -2,15 +2,14 @@ import type { Check, FleetNode, Runner } from '../types';
|
|
|
2
2
|
|
|
3
3
|
/** What every supported IDE is asked for. An implementation owns its own
|
|
4
4
|
* install, service and policy (an Ansible role per IDE, with the common
|
|
5
|
-
* variable contract: version, checksum, policy, instances
|
|
5
|
+
* variable contract: version, checksum, policy, instances) and is
|
|
6
6
|
* reached only through these calls, so the orchestration never names one.
|
|
7
7
|
*/
|
|
8
8
|
export interface Ide {
|
|
9
9
|
/** The name the fleet configuration enables it by, under `ides`. */
|
|
10
10
|
readonly id: string;
|
|
11
|
-
/** The IDE's settings on this machine
|
|
12
|
-
*
|
|
13
|
-
* and on every worker by the machine itself.
|
|
11
|
+
/** The IDE's settings on this machine. Run on the manager and on every
|
|
12
|
+
* worker by the machine itself.
|
|
14
13
|
*/
|
|
15
14
|
settings(context: MachineContext): Promise<Check[]>;
|
|
16
15
|
/** The manager's own IDE: its settings, its pinned version and its policy. */
|
package/src/ide/t3.ts
CHANGED
|
@@ -3,8 +3,6 @@ import { homedir } from 'node:os';
|
|
|
3
3
|
import { join, resolve } from 'node:path';
|
|
4
4
|
import type { Check, FleetNode } from '../types';
|
|
5
5
|
import type { Ide, MachineContext, WorkerContext } from './ide';
|
|
6
|
-
import { fleet } from '../fleet-config';
|
|
7
|
-
import { profileCheck } from '../t3/profile';
|
|
8
6
|
import { retireManagedProviders } from '../t3/retire-providers';
|
|
9
7
|
import { MACOS_POLICY, updatesCheck, workerVersion } from '../t3/version';
|
|
10
8
|
import { verifyT3Endpoint } from '../t3-endpoint';
|
|
@@ -19,7 +17,6 @@ const t3Home = (): string =>
|
|
|
19
17
|
/** What the T3 checks read besides the machine: injected by scenarios. */
|
|
20
18
|
export interface T3Inputs {
|
|
21
19
|
t3Home?: string;
|
|
22
|
-
profile?: Record<string, unknown>;
|
|
23
20
|
policyPath?: string;
|
|
24
21
|
}
|
|
25
22
|
|
|
@@ -31,11 +28,6 @@ export function t3Ide(inputs: T3Inputs = {}): Ide {
|
|
|
31
28
|
const home = () => inputs.t3Home ?? t3Home();
|
|
32
29
|
const settings = async (context: MachineContext): Promise<Check[]> => [
|
|
33
30
|
await retireManagedProviders(home(), context.apply),
|
|
34
|
-
await profileCheck(
|
|
35
|
-
join(home(), 'userdata/settings.json'),
|
|
36
|
-
inputs.profile ?? fleet.t3?.profile ?? {},
|
|
37
|
-
{ apply: context.apply }
|
|
38
|
-
),
|
|
39
31
|
];
|
|
40
32
|
return {
|
|
41
33
|
id: 't3',
|
package/src/manager-sync.ts
CHANGED
|
@@ -281,9 +281,20 @@ async function applyNodes(
|
|
|
281
281
|
? chooseCanary(workers, input.canary, input.nodes)
|
|
282
282
|
: undefined;
|
|
283
283
|
if (canary) report.canary = canary.node;
|
|
284
|
+
// A T3 restart is scheduled after converge exits, so a manager (or a
|
|
285
|
+
// canary) whose T3 still runs an older version never gates a rollout.
|
|
286
|
+
// A version that has not been measured yet is not a failure either, and
|
|
287
|
+
// neither is `rollout`: that marker only means this revision has not been
|
|
288
|
+
// applied, which is what the rollout is about to do. Only a version check
|
|
289
|
+
// that ran and failed holds the other workers back.
|
|
284
290
|
const unverified = (node: ManagerNode) =>
|
|
285
291
|
input.definition.softwarePolicy &&
|
|
286
|
-
pendingVersions(input.definition, node, input.revision).
|
|
292
|
+
pendingVersions(input.definition, node, input.revision).some(
|
|
293
|
+
(pending) =>
|
|
294
|
+
pending !== 'rollout' &&
|
|
295
|
+
!pending.startsWith('t3') &&
|
|
296
|
+
node.checks.some((check) => check.id === pending && blocking(check))
|
|
297
|
+
);
|
|
287
298
|
let blocked =
|
|
288
299
|
report.checks.some(blocking) ||
|
|
289
300
|
report.nodes.some((node) => node.role === 'manager' && unverified(node));
|
package/src/package-info.ts
CHANGED
|
@@ -120,44 +120,74 @@ export function decodeRelease(
|
|
|
120
120
|
export const RELEASE_ENV = 'HOMELAB_RELEASE';
|
|
121
121
|
|
|
122
122
|
/** The release this process runs: what it was told, else its own package.
|
|
123
|
-
* A checkout
|
|
123
|
+
* A checkout's manifest stays at the development version and names no
|
|
124
|
+
* commit, so the commit and its date come from Git, and the version is the
|
|
125
|
+
* nearest tag that checkout can see. A hand-off that only knows the
|
|
126
|
+
* development version has not told this process anything.
|
|
124
127
|
*/
|
|
125
128
|
export function releaseIdentity(cwd = PACKAGE_ROOT): ReleaseIdentity {
|
|
126
129
|
const told = decodeRelease(process.env[RELEASE_ENV]);
|
|
127
|
-
if (told) return told;
|
|
130
|
+
if (told?.revision) return told;
|
|
128
131
|
const info = packageInfo(cwd);
|
|
132
|
+
const revision = info.revision ?? headCommit(cwd);
|
|
133
|
+
const version =
|
|
134
|
+
info.version === DEVELOPMENT_VERSION
|
|
135
|
+
? (nearestRelease(cwd) ?? info.version)
|
|
136
|
+
: info.version;
|
|
129
137
|
return {
|
|
130
|
-
version
|
|
131
|
-
revision
|
|
138
|
+
version,
|
|
139
|
+
revision,
|
|
132
140
|
committedAt:
|
|
133
|
-
info.committedAt ??
|
|
134
|
-
(info.revision ? commitDate(info.revision, cwd) : null),
|
|
141
|
+
info.committedAt ?? (revision ? commitDate(revision, cwd) : null),
|
|
135
142
|
};
|
|
136
143
|
}
|
|
137
144
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
const DEVELOPMENT_VERSION = '0.0.0-development';
|
|
146
|
+
|
|
147
|
+
/** `HEAD` when this directory is a checkout of a commit, else null. */
|
|
148
|
+
function headCommit(cwd: string): string | null {
|
|
149
|
+
const revision = git(cwd, ['rev-parse', 'HEAD']);
|
|
150
|
+
return revision && /^[a-f0-9]{40}$/.test(revision) ? revision : null;
|
|
141
151
|
}
|
|
142
152
|
|
|
143
|
-
/** The
|
|
144
|
-
*
|
|
153
|
+
/** The version named by the nearest tag at or before `HEAD`, else null.
|
|
154
|
+
* `v1.4.0` is `1.4.0`. A checkout fetched without tags has none.
|
|
145
155
|
*/
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
)
|
|
150
|
-
|
|
156
|
+
function nearestRelease(cwd: string): string | null {
|
|
157
|
+
const tag = git(cwd, ['describe', '--tags', '--abbrev=0']);
|
|
158
|
+
if (!tag) return null;
|
|
159
|
+
const version = tag.startsWith('v') ? tag.slice(1) : tag;
|
|
160
|
+
return /^\d+\.\d+\.\d+/.test(version) ? version : null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function git(cwd: string, args: string[]): string | null {
|
|
151
164
|
try {
|
|
152
|
-
const
|
|
165
|
+
const text = execFileSync('git', args, {
|
|
153
166
|
cwd,
|
|
154
167
|
stdio: ['ignore', 'pipe', 'ignore'],
|
|
155
168
|
timeout: 5_000,
|
|
156
169
|
})
|
|
157
170
|
.toString()
|
|
158
171
|
.trim();
|
|
159
|
-
return
|
|
172
|
+
return text || null;
|
|
160
173
|
} catch {
|
|
161
174
|
return null;
|
|
162
175
|
}
|
|
163
176
|
}
|
|
177
|
+
|
|
178
|
+
/** `homelab 0.23.14 (952dd2ba7785, 2026-12-01)`. */
|
|
179
|
+
export function releaseLine(release: ReleaseIdentity): string {
|
|
180
|
+
return `homelab ${release.version} (${(release.revision ?? 'unknown').slice(0, 12)}, ${release.committedAt ?? 'unknown'})`;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** The calendar date of a commit this checkout can see, `YYYY-MM-DD`, or
|
|
184
|
+
* null. A published package already carries the date; a checkout asks Git.
|
|
185
|
+
*/
|
|
186
|
+
export function commitDate(
|
|
187
|
+
revision: string,
|
|
188
|
+
cwd = PACKAGE_ROOT
|
|
189
|
+
): string | null {
|
|
190
|
+
if (!/^[a-f0-9]{40}$/.test(revision)) return null;
|
|
191
|
+
const date = git(cwd, ['log', '-1', '--format=%cs', revision]);
|
|
192
|
+
return date && calendarDate(date) ? date : null;
|
|
193
|
+
}
|