diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..694db8b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# What rustfmt enforces (rustfmt.toml), for editors that don't run it. +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[*.rs] +indent_size = 4 +max_line_length = 120 + +[*.md] +trim_trailing_whitespace = false diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index a60f40a..957f8dd 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,6 +1,7 @@ name: Preview -# Each pull request from this repository gets a preview version of hermitbox-site at +# Each pull request from this repository runs bun run check (Biome, tests, typecheck, the build and +# its checks) and gets a preview version of hermitbox-site at # pr--site.priv.hbx.sh and -site.priv.hbx.sh, linked in one comment on it. Uploading a # version never changes production. Fork pull requests get none: they have no secrets. on: @@ -37,17 +38,13 @@ jobs: else echo 'ready=true' >> "$GITHUB_OUTPUT" fi - - if: steps.token.outputs.ready == 'true' - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - if: steps.token.outputs.ready == 'true' - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: - bun-version: 1.4.4 - - if: steps.token.outputs.ready == 'true' - run: bun install --frozen-lockfile - - if: steps.token.outputs.ready == 'true' - run: bun run check + bun-version: 1.4.5 + - run: bun install --frozen-lockfile + - run: bun run check - if: steps.token.outputs.ready == 'true' run: scripts/preview.sh site . diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..d1fa125 --- /dev/null +++ b/biome.json @@ -0,0 +1,52 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.6.9/schema.json", + "files": { + "includes": [ + "**", + "!node_modules", + "!dist", + "!.astro", + "!.wrangler", + "!bun.lock", + "!public/design-system", + "!LICENSE.md" + ] + }, + "formatter": { + "indentStyle": "space", + "indentWidth": 2, + "lineWidth": 80 + }, + "javascript": { + "formatter": { + "quoteStyle": "single", + "semicolons": "asNeeded" + } + }, + "assist": { + "actions": { + "source": { + "organizeImports": "on" + } + } + }, + "linter": { + "enabled": true, + "rules": { + "preset": "recommended" + } + }, + "overrides": [ + { + "includes": ["**/*.astro"], + "linter": { + "rules": { + "correctness": { + "noUnusedVariables": "off", + "noUnusedImports": "off" + } + } + } + } + ] +} diff --git a/bun.lock b/bun.lock index f1d3b7f..4fa6833 100644 --- a/bun.lock +++ b/bun.lock @@ -5,12 +5,13 @@ "": { "name": "hermitbox-site", "dependencies": { - "astro": "7.4.12", + "astro": "7.4.13", }, "devDependencies": { - "@cloudflare/workers-types": "4.20251128.0", - "@types/bun": "1.3.3", - "typescript": "5.9.3", + "@biomejs/biome": "2.6.9", + "@cloudflare/workers-types": "5.20261129.1", + "@types/bun": "1.4.5", + "typescript": "7.0.2", }, }, }, @@ -59,6 +60,28 @@ "@babel/types": ["@babel/types@7.29.15", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.15", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ=="], + "@biomejs/biome": ["@biomejs/biome@2.6.9", "", { "optionalDependencies": { "@biomejs/cli-android-arm64": "2.6.9", "@biomejs/cli-android-x64": "2.6.9", "@biomejs/cli-darwin-arm64": "2.6.9", "@biomejs/cli-darwin-x64": "2.6.9", "@biomejs/cli-linux-arm64": "2.6.9", "@biomejs/cli-linux-arm64-musl": "2.6.9", "@biomejs/cli-linux-x64": "2.6.9", "@biomejs/cli-linux-x64-musl": "2.6.9", "@biomejs/cli-win32-arm64": "2.6.9", "@biomejs/cli-win32-x64": "2.6.9" }, "bin": { "biome": "bin/biome" } }, "sha512-RelCBDzTXu4DBU8c35P4iMrDO80SUjW0OgjDA7CT1z3UcCU5IclWTZ2XnMelI4frQL//xg2K2BQxAhcOKxdPQA=="], + + "@biomejs/cli-android-arm64": ["@biomejs/cli-android-arm64@2.6.9", "", { "os": "android", "cpu": "arm64" }, "sha512-/3Aj5aiG+Iz8yDBJJb/GFDsptr9ONk3n1wZUIERuU+pVXMIslBaOnrTYJI5QVVXZ9jE494myQHiIvFrjQCBYeQ=="], + + "@biomejs/cli-android-x64": ["@biomejs/cli-android-x64@2.6.9", "", { "os": "android", "cpu": "x64" }, "sha512-erjbUpD9KJhzTsGHY9oStJ1bSiUJ1ikUXgdr0iOFoIAMiKqW+GdVdEqAlEyqiZA6CBiFqf2fV+g0AVl3hYOuYg=="], + + "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.6.9", "", { "os": "darwin", "cpu": "arm64" }, "sha512-fO67s0SF+lKGhNPQ7jUXiz0yXGl/1Qm3XTIn/4Hd2Z2z3ewQMrotWIMVdIPxZAgLJdQtRLBOzgsTRzTl981yWA=="], + + "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.6.9", "", { "os": "darwin", "cpu": "x64" }, "sha512-RdjT3Z6dLlii0x6EroncTp9jg38FMx2R1aeaaU4BbZ4//3TJ2mA2R39KMIrZYxHdHXcfv9X2V5hwKkXhg08w/g=="], + + "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.6.9", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-x73OpQSuQLuvNfzXWEjf0mK95NxlJQX4eG/jmuSrGWOz+/jcLUE4N/21yBu3n0X+wa8bJ3NsWNvmNacLnyc2CQ=="], + + "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.6.9", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-qoG0R5MhJ8VFozVFZQC42V3qCI1TInDhL/YcPPg0oTzfv3vuh0ZDXj+2nNahq8gboHUMv7MWpGjRDLhpQatJ+A=="], + + "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.6.9", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-uVrqS0HDjRzFlx88ZpfmlZvJ+xIwTU+110vunzrYvZQ5OqXl/1ugMTNvAs61hejH7jh7iequKJwagRVarrYcSQ=="], + + "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.6.9", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-o73Sk1hCbGOFOrDlxtpHGIubnLwMXscT32+ujMwUyq9o0f4onxO7OznzkFgcZGbwKy1R3ohroOkqZDXqj1u29g=="], + + "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.6.9", "", { "os": "win32", "cpu": "arm64" }, "sha512-4yvNG4nQGJsJA/PTVAt8IBFXvY6hXk4UdjtPlTf4QTMIjH7ysOwBew78bKThkRv1eyRwH2mGLIk4lAZp8tfAdw=="], + + "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.6.9", "", { "os": "win32", "cpu": "x64" }, "sha512-mwarNc4GEg5JknsRaJDyJDFr4kICD7snsGM8yYFOoIHimSU1ekWNbcZ44QDa6/30fUZC9077wbBpXE8fp03aug=="], + "@bruits/satteri-android-arm64": ["@bruits/satteri-android-arm64@0.11.7", "", { "os": "android", "cpu": "arm64" }, "sha512-ej+1rIKs+yb6/OtcIe1SO22OXjJV0qqUopl5VNZF8Sqc/Pj4m1DXoqBQsPxW5OUYYiDUymIy6hnnn8M78VYk2w=="], "@bruits/satteri-darwin-arm64": ["@bruits/satteri-darwin-arm64@0.11.7", "", { "os": "darwin", "cpu": "arm64" }, "sha512-yllQOX1kVWrwqL7tamQlp4NP0loIb4KuadjuNrAe4JEOerHpgYISPRDb8DqLipgvP7Ks4e87LydZpdakMR1rhQ=="], @@ -87,13 +110,13 @@ "@clack/prompts": ["@clack/prompts@1.9.0", "", { "dependencies": { "@clack/core": "1.6.0", "fast-string-width": "^3.0.2", "fast-wrap-ansi": "^0.2.0", "sisteransi": "^2.0.0" } }, "sha512-tEj8X2No2A1c9NDnZECxiiJ8TP3vmFlN9tLlLeSaMqVW4tUmVG2R4qpv/eP4zymWxnymYLkLcIYVV0VcWj3RCQ=="], - "@cloudflare/workers-types": ["@cloudflare/workers-types@4.20251128.0", "", {}, "sha512-gQxQvxLRsFb+mDlaBKGoJwEHWt+ox9telZZEuRMbNUAD6v78XYqZepTI4yPDdKhkRTlqYcDqDhIdAI3HrsGk7w=="], + "@cloudflare/workers-types": ["@cloudflare/workers-types@5.20261129.1", "", {}, "sha512-jBsVCaw85CI+Unqy3XTwWu/jdKeZaHX92plaSJ8Gh5qvNguOwyNqWYlwiJDDYjNEMv5hU2BCW0HuMKB6yisPgg=="], - "@emnapi/core": ["@emnapi/core@2.0.0-beta.2", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A=="], + "@emnapi/core": ["@emnapi/core@1.11.3", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.3", "tslib": "^2.4.0" } }, "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg=="], - "@emnapi/runtime": ["@emnapi/runtime@2.0.0-beta.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw=="], + "@emnapi/runtime": ["@emnapi/runtime@1.11.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="], - "@emnapi/wasi-threads": ["@emnapi/wasi-threads@2.2.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw=="], + "@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g=="], "@img/colour": ["@img/colour@1.1.0", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="], @@ -151,43 +174,43 @@ "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.6.0", "", {}, "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw=="], - "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.6", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" } }, "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw=="], + "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.7", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" } }, "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ=="], "@oslojs/encoding": ["@oslojs/encoding@1.1.0", "", {}, "sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ=="], - "@oxc-project/types": ["@oxc-project/types@0.156.0", "", {}, "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw=="], + "@oxc-project/types": ["@oxc-project/types@0.160.0", "", {}, "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA=="], - "@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.2.19", "", { "os": "android", "cpu": "arm" }, "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A=="], + "@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.3.4", "", { "os": "android", "cpu": "arm" }, "sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg=="], - "@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.2.19", "", { "os": "android", "cpu": "arm64" }, "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA=="], + "@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.3.4", "", { "os": "android", "cpu": "arm64" }, "sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ=="], - "@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.2.19", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g=="], + "@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.3.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q=="], - "@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.2.19", "", { "os": "darwin", "cpu": "x64" }, "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg=="], + "@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.3.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q=="], - "@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.2.19", "", { "os": "freebsd", "cpu": "x64" }, "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA=="], + "@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.3.4", "", { "os": "freebsd", "cpu": "x64" }, "sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg=="], - "@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.2.19", "", { "os": "linux", "cpu": "arm" }, "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw=="], + "@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.3.4", "", { "os": "linux", "cpu": "arm" }, "sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA=="], - "@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.2.19", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA=="], + "@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw=="], - "@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.2.19", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg=="], + "@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw=="], - "@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.2.19", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q=="], + "@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.3.4", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w=="], - "@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.2.19", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw=="], + "@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.3.4", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q=="], - "@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.2.19", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q=="], + "@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ=="], - "@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.2.19", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A=="], + "@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q=="], - "@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.2.19", "", { "os": "none", "cpu": "arm64" }, "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA=="], + "@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.3.4", "", { "os": "none", "cpu": "arm64" }, "sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug=="], - "@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.2.19", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.2", "@emnapi/runtime": "2.0.0-beta.2", "@napi-rs/wasm-runtime": "1.2.6" }, "cpu": "none" }, "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg=="], + "@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.3.4", "", { "dependencies": { "@oxc-project/types": "0.160.0" }, "cpu": "none" }, "sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA=="], - "@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.2.19", "", { "os": "win32", "cpu": "arm64" }, "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ=="], + "@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.3.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA=="], - "@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.2.19", "", { "os": "win32", "cpu": "x64" }, "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag=="], + "@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.3.4", "", { "os": "win32", "cpu": "x64" }, "sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg=="], "@rolldown/pluginutils": ["@rolldown/pluginutils@1.1.1", "", {}, "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA=="], @@ -209,7 +232,7 @@ "@tybys/wasm-util": ["@tybys/wasm-util@0.10.5", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA=="], - "@types/bun": ["@types/bun@1.3.3", "", { "dependencies": { "bun-types": "1.3.3" } }, "sha512-ogrKbJ2X5N0kWLLFKeytG0eHDleBYtngtlbu9cyBKFtNL3cnpDZkNdQj8flVf6WTZUX5ulI9AY1oa7ljhSrp+g=="], + "@types/bun": ["@types/bun@1.4.5", "", { "dependencies": { "bun-types": "1.4.5" } }, "sha512-DpgwNI9z0L1S0gtb45QLCWgwCUcMLnsHYMJHQvpNj7erGiCGBvpggltAIeARrtobNMKMuy0UP7i56tKKgwFs/Q=="], "@types/estree": ["@types/estree@1.0.11", "", {}, "sha512-YBdNe5JcjYR0sPhJW1QIeRCmI11YhYvaRuGCs9+WCeTTb+Yhb2BE2XMe5/wAqF10FK5g3+q1PDhQABfT7aX0gg=="], @@ -225,6 +248,46 @@ "@types/unist": ["@types/unist@3.0.3", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="], + "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="], + + "@typescript/typescript-darwin-arm64": ["@typescript/typescript-darwin-arm64@7.0.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA=="], + + "@typescript/typescript-darwin-x64": ["@typescript/typescript-darwin-x64@7.0.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA=="], + + "@typescript/typescript-freebsd-arm64": ["@typescript/typescript-freebsd-arm64@7.0.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ=="], + + "@typescript/typescript-freebsd-x64": ["@typescript/typescript-freebsd-x64@7.0.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw=="], + + "@typescript/typescript-linux-arm": ["@typescript/typescript-linux-arm@7.0.2", "", { "os": "linux", "cpu": "arm" }, "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ=="], + + "@typescript/typescript-linux-arm64": ["@typescript/typescript-linux-arm64@7.0.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ=="], + + "@typescript/typescript-linux-loong64": ["@typescript/typescript-linux-loong64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ=="], + + "@typescript/typescript-linux-mips64el": ["@typescript/typescript-linux-mips64el@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA=="], + + "@typescript/typescript-linux-ppc64": ["@typescript/typescript-linux-ppc64@7.0.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA=="], + + "@typescript/typescript-linux-riscv64": ["@typescript/typescript-linux-riscv64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ=="], + + "@typescript/typescript-linux-s390x": ["@typescript/typescript-linux-s390x@7.0.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw=="], + + "@typescript/typescript-linux-x64": ["@typescript/typescript-linux-x64@7.0.2", "", { "os": "linux", "cpu": "x64" }, "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A=="], + + "@typescript/typescript-netbsd-arm64": ["@typescript/typescript-netbsd-arm64@7.0.2", "", { "os": "none", "cpu": "arm64" }, "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA=="], + + "@typescript/typescript-netbsd-x64": ["@typescript/typescript-netbsd-x64@7.0.2", "", { "os": "none", "cpu": "x64" }, "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA=="], + + "@typescript/typescript-openbsd-arm64": ["@typescript/typescript-openbsd-arm64@7.0.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ=="], + + "@typescript/typescript-openbsd-x64": ["@typescript/typescript-openbsd-x64@7.0.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg=="], + + "@typescript/typescript-sunos-x64": ["@typescript/typescript-sunos-x64@7.0.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g=="], + + "@typescript/typescript-win32-arm64": ["@typescript/typescript-win32-arm64@7.0.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ=="], + + "@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="], + "@ungap/structured-clone": ["@ungap/structured-clone@1.4.0", "", {}, "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ=="], "am-i-vibing": ["am-i-vibing@0.5.0", "", { "dependencies": { "process-ancestry": "^0.1.0" }, "bin": { "am-i-vibing": "dist/cli.mjs" } }, "sha512-KLcsDhqf1XRrJmJr+9I/C0EX2K+sGrAGZFgkmd84c8TJO9zJBu+/kFInjazu1KfJWFhWDKdRWkpBzEs7s35DVA=="], @@ -233,7 +296,7 @@ "aria-query": ["aria-query@5.3.2", "", {}, "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="], - "astro": ["astro@7.4.12", "", { "dependencies": { "@astrojs/compiler-rs": "^0.5.2", "@astrojs/internal-helpers": "^0.13.2", "@astrojs/markdown-satteri": "^0.4.10", "@astrojs/runtime": "^0.1.1", "@astrojs/telemetry": "^3.4.2", "@astrojs/vite-plugin-astro": "^0.1.3", "@capsizecss/unpack": "^4.0.1", "@clack/prompts": "^1.8.1", "@oslojs/encoding": "^1.1.0", "am-i-vibing": "^0.5.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", "ci-info": "^4.4.0", "cookie": "^2.0.2", "devalue": "^6.0.3", "diff": "^9.0.0", "dset": "^3.1.4", "es-module-lexer": "^3.0.4", "flattie": "^1.1.1", "fontace": "~0.4.1", "get-tsconfig": "5.0.0-beta.6", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.3.0", "jsonc-parser": "^3.3.1", "magic-string": "^1.4.5", "magicast": "^0.5.5", "mri": "^1.2.0", "mrmime": "^2.0.1", "neotraverse": "^1.0.1", "obug": "^3.0.0", "p-limit": "^7.3.3", "p-queue": "^10.0.0", "package-manager-detector": "^1.9.0", "piccolore": "^0.1.3", "picomatch": "^4.0.7", "rolldown": "~1.2.16", "shiki": "^4.6.0", "smol-toml": "^1.9.1", "svgo": "^4.1.0", "tinyclip": "^1.0.3", "tinyexec": "^1.3.1", "tinyglobby": "^0.2.17", "tinyps": "^0.5.1", "ultrahtml": "^1.7.0", "unifont": "^1.0.3", "unstorage": "^1.17.6", "verkit": "^0.5.0", "vite": "^8.3.6", "vitefu": "^1.1.3", "xxhash-wasm": "^1.1.0", "zod": "^4.6.7" }, "optionalDependencies": { "sharp": "^0.35.4" }, "peerDependencies": { "@astrojs/markdown-remark": "^7.3.0" }, "optionalPeers": ["@astrojs/markdown-remark"], "bin": { "astro": "./bin/astro.mjs" } }, "sha512-DKX+Ds0rqV49HrLwEB9JFrCyfvQeC16FCe1HrPK8S3osiJH/e2vQ22CHIDOpI48UaeiPbxPT26peXgGTy6w0ig=="], + "astro": ["astro@7.4.13", "", { "dependencies": { "@astrojs/compiler-rs": "^0.5.3", "@astrojs/internal-helpers": "^0.13.2", "@astrojs/markdown-satteri": "^0.4.10", "@astrojs/runtime": "^0.1.2", "@astrojs/telemetry": "^3.4.2", "@astrojs/vite-plugin-astro": "^0.1.3", "@capsizecss/unpack": "^4.0.1", "@clack/prompts": "^1.9.0", "@oslojs/encoding": "^1.1.0", "am-i-vibing": "^0.5.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", "ci-info": "^4.5.0", "cookie": "^2.0.2", "devalue": "^6.0.3", "diff": "^9.0.0", "dset": "^3.1.4", "es-module-lexer": "^3.0.4", "flattie": "^1.1.1", "fontace": "~0.4.1", "get-tsconfig": "5.0.0-beta.6", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.3.0", "jsonc-parser": "^3.3.1", "magic-string": "^1.4.5", "magicast": "^0.5.5", "mri": "^1.2.0", "mrmime": "^2.0.1", "neotraverse": "^1.0.2", "obug": "^3.0.0", "p-limit": "^7.3.3", "p-queue": "^10.0.0", "package-manager-detector": "^1.9.0", "piccolore": "^0.1.3", "picomatch": "^4.0.7", "rolldown": "~1.3.2", "shiki": "^4.6.0", "smol-toml": "^1.9.1", "svgo": "^4.1.0", "tinyclip": "^1.0.3", "tinyexec": "^1.3.1", "tinyglobby": "^0.2.17", "tinyps": "^0.5.2", "ultrahtml": "^1.7.0", "unifont": "^1.0.3", "unstorage": "^1.17.6", "verkit": "^0.5.0", "vite": "^8.3.8", "vitefu": "^1.1.3", "xxhash-wasm": "^1.1.0", "zod": "^4.6.7" }, "optionalDependencies": { "sharp": "^0.35.4" }, "peerDependencies": { "@astrojs/markdown-remark": "^7.3.0" }, "optionalPeers": ["@astrojs/markdown-remark"], "bin": { "astro": "./bin/astro.mjs" } }, "sha512-tcpMXEB9jypYzbnzT/g6yxL0jRkFlj3WsvxcWgsxRjPBUE6r81qLo/7kN5GMWz6hC7spzrg6fvCeL2HG0Bl68g=="], "axobject-query": ["axobject-query@4.1.0", "", {}, "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="], @@ -241,7 +304,7 @@ "boolbase": ["boolbase@1.0.0", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="], - "bun-types": ["bun-types@1.3.3", "", { "dependencies": { "@types/node": "*" } }, "sha512-z3Xwlg7j2l9JY27x5Qn3Wlyos8YAp0kKRlrePAOjgjMGS5IG6E7Jnlx736vH9UVI4wUICwwhC9anYL++XeOgTQ=="], + "bun-types": ["bun-types@1.4.5", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-ECHn+9dhL3wv0G6u0+7dQvrnaimXiRDxxerYBmhTaLyJEEuvTPWk2Fye3XIf5Y++JIIiHKfQw4Z7V5D8KuiXbg=="], "ccount": ["ccount@2.0.1", "", {}, "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg=="], @@ -453,7 +516,7 @@ "retext-smartypants": ["retext-smartypants@6.2.0", "", { "dependencies": { "@types/nlcst": "^2.0.0", "nlcst-to-string": "^4.0.0", "unist-util-visit": "^5.0.0" } }, "sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ=="], - "rolldown": ["rolldown@1.2.19", "", { "dependencies": { "@oxc-project/types": "=0.156.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.2.19", "@rolldown/binding-android-arm64": "1.2.19", "@rolldown/binding-darwin-arm64": "1.2.19", "@rolldown/binding-darwin-x64": "1.2.19", "@rolldown/binding-freebsd-x64": "1.2.19", "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", "@rolldown/binding-linux-arm64-gnu": "1.2.19", "@rolldown/binding-linux-arm64-musl": "1.2.19", "@rolldown/binding-linux-ppc64-gnu": "1.2.19", "@rolldown/binding-linux-s390x-gnu": "1.2.19", "@rolldown/binding-linux-x64-gnu": "1.2.19", "@rolldown/binding-linux-x64-musl": "1.2.19", "@rolldown/binding-openharmony-arm64": "1.2.19", "@rolldown/binding-wasm32-wasi": "1.2.19", "@rolldown/binding-win32-arm64-msvc": "1.2.19", "@rolldown/binding-win32-x64-msvc": "1.2.19" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA=="], + "rolldown": ["rolldown@1.3.4", "", { "dependencies": { "@oxc-project/types": "=0.160.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.3.4", "@rolldown/binding-android-arm64": "1.3.4", "@rolldown/binding-darwin-arm64": "1.3.4", "@rolldown/binding-darwin-x64": "1.3.4", "@rolldown/binding-freebsd-x64": "1.3.4", "@rolldown/binding-linux-arm-gnueabihf": "1.3.4", "@rolldown/binding-linux-arm64-gnu": "1.3.4", "@rolldown/binding-linux-arm64-musl": "1.3.4", "@rolldown/binding-linux-ppc64-gnu": "1.3.4", "@rolldown/binding-linux-s390x-gnu": "1.3.4", "@rolldown/binding-linux-x64-gnu": "1.3.4", "@rolldown/binding-linux-x64-musl": "1.3.4", "@rolldown/binding-openharmony-arm64": "1.3.4", "@rolldown/binding-wasm32-wasi": "1.3.4", "@rolldown/binding-win32-arm64-msvc": "1.3.4", "@rolldown/binding-win32-x64-msvc": "1.3.4" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q=="], "satteri": ["satteri@0.11.7", "", { "dependencies": { "@types/estree-jsx": "^1.0.5", "@types/hast": "^3.0.5", "@types/mdast": "^4.0.4", "@types/unist": "^3.0.3" }, "optionalDependencies": { "@bruits/satteri-android-arm64": "0.11.7", "@bruits/satteri-darwin-arm64": "0.11.7", "@bruits/satteri-darwin-x64": "0.11.7", "@bruits/satteri-freebsd-x64": "0.11.7", "@bruits/satteri-linux-arm64-gnu": "0.11.7", "@bruits/satteri-linux-arm64-musl": "0.11.7", "@bruits/satteri-linux-x64-gnu": "0.11.7", "@bruits/satteri-linux-x64-musl": "0.11.7", "@bruits/satteri-wasm32-wasi": "0.11.7", "@bruits/satteri-win32-arm64-msvc": "0.11.7", "@bruits/satteri-win32-x64-msvc": "0.11.7" } }, "sha512-xDOSxkc1ew3z3IovIjmsqJaVHRXTGYJkPvx0LL/U6o90km8kSU+pmrZVvnWd5creJeE0UnvMEienlkPuYQdJaA=="], @@ -495,7 +558,7 @@ "tslib": ["tslib@2.9.1", "", {}, "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA=="], - "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], + "typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="], "ufo": ["ufo@1.6.4", "", {}, "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA=="], @@ -543,64 +606,60 @@ "zwitch": ["zwitch@2.0.4", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="], - "@astrojs/compiler-binding-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.11.3", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.3", "tslib": "^2.4.0" } }, "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg=="], - - "@astrojs/compiler-binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.11.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="], - - "@astrojs/compiler-binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.7", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" } }, "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ=="], + "@astrojs/vite-plugin-astro/rolldown": ["rolldown@1.2.19", "", { "dependencies": { "@oxc-project/types": "=0.156.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.2.19", "@rolldown/binding-android-arm64": "1.2.19", "@rolldown/binding-darwin-arm64": "1.2.19", "@rolldown/binding-darwin-x64": "1.2.19", "@rolldown/binding-freebsd-x64": "1.2.19", "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", "@rolldown/binding-linux-arm64-gnu": "1.2.19", "@rolldown/binding-linux-arm64-musl": "1.2.19", "@rolldown/binding-linux-ppc64-gnu": "1.2.19", "@rolldown/binding-linux-s390x-gnu": "1.2.19", "@rolldown/binding-linux-x64-gnu": "1.2.19", "@rolldown/binding-linux-x64-musl": "1.2.19", "@rolldown/binding-openharmony-arm64": "1.2.19", "@rolldown/binding-wasm32-wasi": "1.2.19", "@rolldown/binding-win32-arm64-msvc": "1.2.19", "@rolldown/binding-win32-x64-msvc": "1.2.19" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA=="], "@bruits/satteri-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.11.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.2", "tslib": "^2.4.0" } }, "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ=="], "@bruits/satteri-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.11.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw=="], - "@bruits/satteri-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.7", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" } }, "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ=="], - - "@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/runtime@1.11.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="], - "anymatch/picomatch": ["picomatch@2.3.2", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="], "csso/css-tree": ["css-tree@2.2.1", "", { "dependencies": { "mdn-data": "2.0.28", "source-map-js": "^1.0.1" } }, "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA=="], - "vite/rolldown": ["rolldown@1.3.4", "", { "dependencies": { "@oxc-project/types": "=0.160.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.3.4", "@rolldown/binding-android-arm64": "1.3.4", "@rolldown/binding-darwin-arm64": "1.3.4", "@rolldown/binding-darwin-x64": "1.3.4", "@rolldown/binding-freebsd-x64": "1.3.4", "@rolldown/binding-linux-arm-gnueabihf": "1.3.4", "@rolldown/binding-linux-arm64-gnu": "1.3.4", "@rolldown/binding-linux-arm64-musl": "1.3.4", "@rolldown/binding-linux-ppc64-gnu": "1.3.4", "@rolldown/binding-linux-s390x-gnu": "1.3.4", "@rolldown/binding-linux-x64-gnu": "1.3.4", "@rolldown/binding-linux-x64-musl": "1.3.4", "@rolldown/binding-openharmony-arm64": "1.3.4", "@rolldown/binding-wasm32-wasi": "1.3.4", "@rolldown/binding-win32-arm64-msvc": "1.3.4", "@rolldown/binding-win32-x64-msvc": "1.3.4" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q=="], + "@astrojs/vite-plugin-astro/rolldown/@oxc-project/types": ["@oxc-project/types@0.156.0", "", {}, "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw=="], - "@astrojs/compiler-binding-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.2.19", "", { "os": "android", "cpu": "arm" }, "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A=="], - "@bruits/satteri-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.2.19", "", { "os": "android", "cpu": "arm64" }, "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA=="], - "csso/css-tree/mdn-data": ["mdn-data@2.0.28", "", {}, "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.2.19", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g=="], + + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.2.19", "", { "os": "darwin", "cpu": "x64" }, "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg=="], - "vite/rolldown/@oxc-project/types": ["@oxc-project/types@0.160.0", "", {}, "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.2.19", "", { "os": "freebsd", "cpu": "x64" }, "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA=="], - "vite/rolldown/@rolldown/binding-android-arm-eabi": ["@rolldown/binding-android-arm-eabi@1.3.4", "", { "os": "android", "cpu": "arm" }, "sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.2.19", "", { "os": "linux", "cpu": "arm" }, "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw=="], - "vite/rolldown/@rolldown/binding-android-arm64": ["@rolldown/binding-android-arm64@1.3.4", "", { "os": "android", "cpu": "arm64" }, "sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.2.19", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA=="], - "vite/rolldown/@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.3.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.2.19", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg=="], - "vite/rolldown/@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.3.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.2.19", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q=="], - "vite/rolldown/@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.3.4", "", { "os": "freebsd", "cpu": "x64" }, "sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.2.19", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw=="], - "vite/rolldown/@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.3.4", "", { "os": "linux", "cpu": "arm" }, "sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.2.19", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q=="], - "vite/rolldown/@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.2.19", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A=="], - "vite/rolldown/@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.3.4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.2.19", "", { "os": "none", "cpu": "arm64" }, "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA=="], - "vite/rolldown/@rolldown/binding-linux-ppc64-gnu": ["@rolldown/binding-linux-ppc64-gnu@1.3.4", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.2.19", "", { "dependencies": { "@emnapi/core": "2.0.0-beta.2", "@emnapi/runtime": "2.0.0-beta.2", "@napi-rs/wasm-runtime": "1.2.6" }, "cpu": "none" }, "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg=="], - "vite/rolldown/@rolldown/binding-linux-s390x-gnu": ["@rolldown/binding-linux-s390x-gnu@1.3.4", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.2.19", "", { "os": "win32", "cpu": "arm64" }, "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ=="], - "vite/rolldown/@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.2.19", "", { "os": "win32", "cpu": "x64" }, "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag=="], - "vite/rolldown/@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.3.4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q=="], + "@bruits/satteri-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="], + + "csso/css-tree/mdn-data": ["mdn-data@2.0.28", "", {}, "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g=="], - "vite/rolldown/@rolldown/binding-openharmony-arm64": ["@rolldown/binding-openharmony-arm64@1.3.4", "", { "os": "none", "cpu": "arm64" }, "sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/core": ["@emnapi/core@2.0.0-beta.2", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A=="], - "vite/rolldown/@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.3.4", "", { "dependencies": { "@oxc-project/types": "0.160.0" }, "cpu": "none" }, "sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@2.0.0-beta.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw=="], - "vite/rolldown/@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.3.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.2.6", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" } }, "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw=="], - "vite/rolldown/@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.3.4", "", { "os": "win32", "cpu": "x64" }, "sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg=="], + "@astrojs/vite-plugin-astro/rolldown/@rolldown/binding-wasm32-wasi/@emnapi/core/@emnapi/wasi-threads": ["@emnapi/wasi-threads@2.2.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw=="], } } diff --git a/design-system.lock.json b/design-system.lock.json index 1274da8..a96b5cb 100644 --- a/design-system.lock.json +++ b/design-system.lock.json @@ -14,4 +14,4 @@ "fonts/SchibstedGrotesk-Variable.woff2": "0710caa3e5fb5736c5b6a83ca16631f391ffd339957ca6d7534e15b25ba30921", "tokens.css": "2cb58182698724771b41ffb2e09ae2d806be8facd1b712553b05b056c14ec7f6" } -} \ No newline at end of file +} diff --git a/docs/decisions.md b/docs/decisions.md index c411670..6851942 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -3,7 +3,7 @@ Each line records one choice hermitbox.dev made and why. - hermitbox.dev is its own repository, licensed AGPL-3.0-only, reaching hermitbox only through its public API, SDK and CLI, so it releases on its own schedule and its CI never waits on hermitbox's. -- The site is built with Astro 7.4.12 (MIT) as static pages, because a maintained generator gives components and a plain-HTML build with no client framework. +- The site is built with Astro 7.4.13 (MIT) as static pages, because a maintained generator gives components and a plain-HTML build with no client framework. - It is served by the Worker `hermitbox-site` with Workers Static Assets on Cloudflare; the Worker adds security headers, keeps every host but `hermitbox.dev` out of search engines with `X-Robots-Tag`, and fills the download page. - Wrangler 4.169.0 (MIT OR Apache-2.0) deploys it, run with `bunx` at that version and never shipped. - The design system's `tokens.css`, `components/bundle.css`, `components/bundle.js` and fonts are vendored unchanged under `public/design-system/`, pinned by SHA-256 in `design-system.lock.json`; `scripts/check-build.ts` fails if a byte differs. Its pixel art is copied verbatim into `src/lib/art.ts`. @@ -15,3 +15,6 @@ Each line records one choice hermitbox.dev made and why. - The download page reads `https://dl.hbx.sh/desktop/downloads.json` at request time (cached 5 minutes) and links only files that manifest lists on `dl.hbx.sh` with a SHA-512, an ML-DSA-65 statement and its signature; with no manifest it says no build is published. - Copy buttons use the site's own handler (`src/scripts/copy.js`), not the design system's `bindCopy`, which shows "copied" even when the clipboard refuses: ours says so only after the write succeeds, and otherwise shows the full text selected to copy by hand. - Each pull request from this repository uploads a preview version of `hermitbox-site` (`.github/workflows/preview.yml`, `scripts/preview.sh`, Wrangler `versions upload --preview-alias pr-`), served at `pr--site.priv.hbx.sh` and `-site.priv.hbx.sh` by Hermitbox's preview router and linked in one comment on the pull request; uploading never changes production, and fork pull requests get no preview because they have no secrets. +- Biome 2.6.9 (MIT OR Apache-2.0), pinned in `package.json`, formats and lints the site with hermitbox's settings (`biome.json`, `.editorconfig`: two spaces, 80 columns, single quotes, no semicolons, organised imports, the recommended rules), so the three repositories read alike; `bun run check` runs `biome ci .` first, and the Preview job runs the check on every pull request from this repository, with or without the preview token, so Biome has no job of its own. +- The download page puts the visitor's machine first and marks it "Your machine" (`src/lib/machine.ts`, in the browser): the client hints from `navigator.userAgentData.getHighEntropyValues`, else `navigator.platform` and the user agent. It offers the file for that machine's cpu. A Mac with no cpu answer gets both dmgs, because Safari reports Apple silicon as Intel. A phone, a tablet, ChromeOS or no answer keeps the built order, which is also what a browser without JavaScript sees. +- The toolchain is the newest release of each, checked against its registry on 2026-11-29 and pinned exactly: Bun 1.4.5 (MIT; `packageManager` and the Preview job), TypeScript 7.0.2 (Apache-2.0), `@cloudflare/workers-types` 5.20261129.1 (MIT OR Apache-2.0), `@types/bun` 1.4.5 (MIT), Astro 7.4.13, Biome 2.6.9 and Wrangler 4.169.0. `LICENSE.md` is left out of Biome, which now formats Markdown, so the licence text stays as published. diff --git a/package.json b/package.json index 4b6e45c..9e0b117 100644 --- a/package.json +++ b/package.json @@ -3,19 +3,21 @@ "private": true, "type": "module", "license": "AGPL-3.0-only", - "packageManager": "bun@1.4.4", + "packageManager": "bun@1.4.5", "scripts": { "build": "ASTRO_TELEMETRY_DISABLED=1 astro build", "dev": "ASTRO_TELEMETRY_DISABLED=1 astro dev --host 127.0.0.1", - "check": "bun test && tsc --noEmit -p tsconfig.json && bun run build && bun scripts/check-build.ts", - "deploy": "sh scripts/deploy.sh" + "check": "biome ci . && tsc --noEmit -p tsconfig.json && bun run build && bun scripts/check-build.ts && bun test", + "deploy": "sh scripts/deploy.sh", + "lint": "biome check ." }, "dependencies": { - "astro": "7.4.12" + "astro": "7.4.13" }, "devDependencies": { - "@cloudflare/workers-types": "4.20251128.0", - "@types/bun": "1.3.3", - "typescript": "5.9.3" + "@biomejs/biome": "2.6.9", + "@cloudflare/workers-types": "5.20261129.1", + "@types/bun": "1.4.5", + "typescript": "7.0.2" } } diff --git a/scripts/check-build.ts b/scripts/check-build.ts index 46400c7..c47dd80 100644 --- a/scripts/check-build.ts +++ b/scripts/check-build.ts @@ -5,31 +5,54 @@ import { createHash } from 'node:crypto' import { readdirSync, readFileSync } from 'node:fs' import { join, relative } from 'node:path' -const lock = JSON.parse(readFileSync('design-system.lock.json', 'utf8')) as { files: Record } +const lock = JSON.parse(readFileSync('design-system.lock.json', 'utf8')) as { + files: Record +} const failures: string[] = [] const walk = (dir: string): string[] => readdirSync(dir, { withFileTypes: true }).flatMap((entry) => entry.isDirectory() ? walk(join(dir, entry.name)) : [join(dir, entry.name)], ) for (const root of ['public/design-system', 'dist/design-system']) { - const found = walk(root).map((file) => relative(root, file)).sort() + const found = walk(root) + .map((file) => relative(root, file)) + .sort() if (JSON.stringify(found) !== JSON.stringify(Object.keys(lock.files).sort())) - failures.push(`${root} holds other files than design-system.lock.json lists`) + failures.push( + `${root} holds other files than design-system.lock.json lists`, + ) for (const [file, digest] of Object.entries(lock.files)) { - const actual = createHash('sha256').update(readFileSync(join(root, file))).digest('hex') - if (actual !== digest) failures.push(`${root}/${file} differs from the vendored design system`) + const actual = createHash('sha256') + .update(readFileSync(join(root, file))) + .digest('hex') + if (actual !== digest) + failures.push(`${root}/${file} differs from the vendored design system`) } } const pages = walk('dist').filter((file) => file.endsWith('.html')) for (const page of pages) { const html = readFileSync(page, 'utf8') - for (const needle of ['class="hb-agent', 'curl -fsSL https://hbx.sh | sh', 'hb-agent__copy--primary', 'data-copy-text=', 'id="agent-cursor"', 'rel="describedby"']) + for (const needle of [ + 'class="hb-agent', + 'curl -fsSL https://hbx.sh | sh', + 'hb-agent__copy--primary', + 'data-copy-text=', + 'id="agent-cursor"', + 'rel="describedby"', + ]) if (!html.includes(needle)) failures.push(`${page} lacks ${needle}`) } -for (const file of ['dist/llms.txt', 'dist/llms-full.txt', 'dist/favicon.svg', 'dist/robots.txt']) +for (const file of [ + 'dist/llms.txt', + 'dist/llms-full.txt', + 'dist/favicon.svg', + 'dist/robots.txt', +]) if (!readFileSync(file, 'utf8').length) failures.push(`${file} is empty`) if (failures.length) { console.error(failures.join('\n')) process.exit(1) } -console.log(`Build: ${pages.length} pages carry the agent panel; the design system matches its digests`) +console.log( + `Build: ${pages.length} pages carry the agent panel; the design system matches its digests`, +) diff --git a/src/components/AgentPanel.astro b/src/components/AgentPanel.astro index f9e6b36..61142c8 100644 --- a/src/components/AgentPanel.astro +++ b/src/components/AgentPanel.astro @@ -2,9 +2,19 @@ // SPDX-License-Identifier: AGPL-3.0-only /** The design system's agent install panel: the install line, the copy-prompt (the one red action) * and the one-click targets, which open each agent's dialog (AgentDialogs) or, without script, /agents/. */ -import { agents, docsUrl, installLine, platformLine, prompt, promptLabel } from '../lib/agents' +import { + agents, + docsUrl, + installLine, + platformLine, + prompt, + promptLabel, +} from '../lib/agents' import { art } from '../lib/art' -interface Props { variant?: 'hero' | 'compact' } + +interface Props { + variant?: 'hero' | 'compact' +} const { variant } = Astro.props ---
diff --git a/src/components/AgentSteps.astro b/src/components/AgentSteps.astro index 7da9ed9..0c2f218 100644 --- a/src/components/AgentSteps.astro +++ b/src/components/AgentSteps.astro @@ -3,10 +3,18 @@ /** One agent's install steps, shared by its dialog and its section on /agents/. */ import { type Agent, rootNote } from '../lib/agents' import { art } from '../lib/art' -interface Props { agent: Agent; root?: boolean } + +interface Props { + agent: Agent + root?: boolean +} const { agent, root = true } = Astro.props const inline = (text: string) => - text.replace(/[&<>]/g, (c) => ({ '&': '&', '<': '<', '>': '>' })[c] as string) + text + .replace( + /[&<>]/g, + (c) => ({ '&': '&', '<': '<', '>': '>' })[c] as string, + ) .replace(/`([^`]+)`/g, '$1') ---

{agent.lead}

diff --git a/src/components/TopNav.astro b/src/components/TopNav.astro index bfd2a91..10a1c30 100644 --- a/src/components/TopNav.astro +++ b/src/components/TopNav.astro @@ -3,7 +3,10 @@ /** The top bar on every page. */ import { docsUrl, repoUrl } from '../lib/agents' import { art } from '../lib/art' -interface Props { current?: string } + +interface Props { + current?: string +} const { current } = Astro.props const links = [ { href: `${docsUrl}/`, label: 'Docs' }, diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index 1d1cd91..485e373 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -5,7 +5,12 @@ import AgentDialogs from '../components/AgentDialogs.astro' import Footer from '../components/Footer.astro' import TopNav from '../components/TopNav.astro' import '../styles/site.css' -interface Props { title: string; description: string; path: string } + +interface Props { + title: string + description: string + path: string +} const { title, description, path } = Astro.props const canonical = new URL(path, 'https://hermitbox.dev').href --- diff --git a/src/lib/agents.ts b/src/lib/agents.ts index 1425ebb..797d66c 100644 --- a/src/lib/agents.ts +++ b/src/lib/agents.ts @@ -22,16 +22,31 @@ export const prompt = [ ].join('\n') /** `lang` is the command's fence in llms-full.txt: a shell command unless it says otherwise. */ -export type Step = { text: string; command?: string; lang?: 'sh' | 'json'; link?: { label: string; href: string } } +export type Step = { + text: string + command?: string + lang?: 'sh' | 'json' + link?: { label: string; href: string } +} /** `button` is false where no one-step install exists yet: the agent keeps its section on /agents/ only. * `id` is also the agent's anchor on /agents/ and on the docs' agents page. */ -export type Agent = { id: string; name: string; lead: string; steps: Step[]; note?: string; button?: boolean } +export type Agent = { + id: string + name: string + lead: string + steps: Step[] + note?: string + button?: boolean +} const server = (command: string) => ({ command, args: ['mcp'] }) const base64 = (text: string) => Buffer.from(text, 'utf8').toString('base64') /** Cursor resolves `${userHome}` in `command` (cursor.com/docs/context/mcp, read 2026-11-28). */ -export const cursorConfig = JSON.stringify(server('${userHome}/.local/bin/hermitbox')) +export const cursorConfig = JSON.stringify( + // biome-ignore lint/suspicious/noTemplateCurlyInString: Cursor's own variable, not a template. + server('${userHome}/.local/bin/hermitbox'), +) export const cursorLink = `cursor://anysphere.cursor-deeplink/mcp/install?name=hermitbox&config=${base64(cursorConfig)}` /** In the fixed order the design system gives: Claude, Cursor, VS Code, Codex, ChatGPT. */ @@ -41,12 +56,17 @@ export const agents: Agent[] = [ name: 'Claude', lead: 'Claude Code adds it with one command.', steps: [ - { text: 'Install Hermitbox, if it is not on this machine yet.', command: installLine }, + { + text: 'Install Hermitbox, if it is not on this machine yet.', + command: installLine, + }, { text: 'Add the MCP server for your user:', command: `claude mcp add --transport stdio --scope user hermitbox -- ${userBinary} mcp`, }, - { text: 'Check it: `claude mcp get hermitbox`. In Claude Desktop, paste the prompt instead.' }, + { + text: 'Check it: `claude mcp get hermitbox`. In Claude Desktop, paste the prompt instead.', + }, ], note: 'A one-click Claude Desktop extension is not published yet.', }, @@ -55,9 +75,19 @@ export const agents: Agent[] = [ name: 'Cursor', lead: 'Cursor opens its own install dialog from this link.', steps: [ - { text: 'Install Hermitbox, if it is not on this machine yet.', command: installLine }, - { text: 'Open the link and confirm in Cursor.', link: { label: 'Add to Cursor', href: cursorLink } }, - { text: 'Or put this server in `~/.cursor/mcp.json` under `mcpServers.hermitbox`:', command: cursorConfig, lang: 'json' }, + { + text: 'Install Hermitbox, if it is not on this machine yet.', + command: installLine, + }, + { + text: 'Open the link and confirm in Cursor.', + link: { label: 'Add to Cursor', href: cursorLink }, + }, + { + text: 'Or put this server in `~/.cursor/mcp.json` under `mcpServers.hermitbox`:', + command: cursorConfig, + lang: 'json', + }, ], }, { @@ -65,7 +95,10 @@ export const agents: Agent[] = [ name: 'VS Code', lead: 'VS Code adds it to your user profile with one command.', steps: [ - { text: 'Install Hermitbox, if it is not on this machine yet.', command: installLine }, + { + text: 'Install Hermitbox, if it is not on this machine yet.', + command: installLine, + }, { text: 'Add the MCP server:', command: `code --add-mcp "{\\"name\\":\\"hermitbox\\",\\"type\\":\\"stdio\\",\\"command\\":\\"$HOME/.local/bin/hermitbox\\",\\"args\\":[\\"mcp\\"]}"`, @@ -79,31 +112,51 @@ export const agents: Agent[] = [ name: 'Codex', lead: 'Codex adds it with one command.', steps: [ - { text: 'Install Hermitbox, if it is not on this machine yet.', command: installLine }, - { text: 'Add the MCP server:', command: `codex mcp add hermitbox -- ${userBinary} mcp` }, - { text: 'It lands in `~/.codex/config.toml` as `[mcp_servers.hermitbox]`.' }, + { + text: 'Install Hermitbox, if it is not on this machine yet.', + command: installLine, + }, + { + text: 'Add the MCP server:', + command: `codex mcp add hermitbox -- ${userBinary} mcp`, + }, + { + text: 'It lands in `~/.codex/config.toml` as `[mcp_servers.hermitbox]`.', + }, ], }, { id: 'chatgpt', name: 'ChatGPT', lead: 'ChatGPT on the web connects to a public MCP server over HTTPS. Hermitbox’s MCP server listens on your machine, so there is nothing for ChatGPT to add.', - steps: [{ text: 'Give the prompt to an agent that runs on your machine, or use Codex.' }], + steps: [ + { + text: 'Give the prompt to an agent that runs on your machine, or use Codex.', + }, + ], button: false, }, - ] /** One agent's steps as Markdown, for /agents/ in llms-full.txt. */ export function agentMarkdown(agent: Agent) { const lines = [`### ${agent.name}`, '', agent.lead, ''] agent.steps.forEach((step, i) => { - lines.push(`${i + 1}. ${step.text}${step.link ? ` [${step.link.label}](${step.link.href})` : ''}`) - if (step.command) lines.push('', ` \`\`\`${step.lang ?? 'sh'}`, ` ${step.command}`, ' ```') + lines.push( + `${i + 1}. ${step.text}${step.link ? ` [${step.link.label}](${step.link.href})` : ''}`, + ) + if (step.command) + lines.push( + '', + ` \`\`\`${step.lang ?? 'sh'}`, + ` ${step.command}`, + ' ```', + ) }) if (agent.note) lines.push('', agent.note) return lines.join('\n') } export const rootNote = `Installed as root? Use \`${rootBinary}\` instead of \`${userBinary}\`. No key goes in any config: \`hermitbox mcp\` reads the credentials the installer saved.` -export const platformLine = 'Linux (x86_64 or aarch64), as your own user. No root, no Docker.' +export const platformLine = + 'Linux (x86_64 or aarch64), as your own user. No root, no Docker.' diff --git a/src/lib/art.ts b/src/lib/art.ts index d9909f8..680a190 100644 --- a/src/lib/art.ts +++ b/src/lib/art.ts @@ -2,21 +2,34 @@ /** The design system's pixel art, copied verbatim from its Marketing example (version 1795865510-b0d4). * The mark is the lockup's own 16 by 12 mark, without the wordmark. Never redrawn or recoloured here. */ export const art = { - "logo": "", - "github": "", - "plug": "", - "copy": "", - "verb-start": "", - "verb-stop": "", - "verb-sleep": "", - "verb-wake": "", - "verb-rest": "", - "verb-snapshot": "", - "feat-terminal": "", - "feat-files": "", - "feat-git": "", - "feat-ports": "", - "feat-webhooks": "", - "feat-idle-policy": "", - "mark": "" + logo: '', + github: + '', + plug: '', + copy: '', + 'verb-start': + '', + 'verb-stop': + '', + 'verb-sleep': + '', + 'verb-wake': + '', + 'verb-rest': + '', + 'verb-snapshot': + '', + 'feat-terminal': + '', + 'feat-files': + '', + 'feat-git': + '', + 'feat-ports': + '', + 'feat-webhooks': + '', + 'feat-idle-policy': + '', + mark: '', } as const diff --git a/src/lib/downloads.ts b/src/lib/downloads.ts index fa6e79f..46d84fe 100644 --- a/src/lib/downloads.ts +++ b/src/lib/downloads.ts @@ -12,7 +12,8 @@ export const downloadHost = 'dl.hbx.sh' export const desktopKeyFile = 'desktop-release.pem' export const desktopKeyUrl = `https://github.com/hermitbox/desktop/blob/main/keys/${desktopKeyFile}` export const desktopKeyRawUrl = `https://raw.githubusercontent.com/hermitbox/desktop/main/keys/${desktopKeyFile}` -export const desktopKeyBeside = (version: string) => `https://${downloadHost}/desktop/${version}/${desktopKeyFile}` +export const desktopKeyBeside = (version: string) => + `https://${downloadHost}/desktop/${version}/${desktopKeyFile}` /** Checking a download by hand. A file's statement (`.statement`) is four lines, each ending * in a newline: `hermitbox-desktop release`, the version, the file's id and its SHA-512 in hex. Its @@ -35,16 +36,72 @@ sha512sum ` export type Platform = 'linux' | 'macos' | 'windows' export type FileId = (typeof files)[number]['id'] -/** Every file the page has a place for, in the order it shows them. */ +/** Every file the page has a place for, in the order it shows them. `cpu` is the machine it runs on. */ export const files = [ - { id: 'linux-x86_64-appimage', platform: 'linux', label: 'AppImage', arch: 'x86_64', main: true }, - { id: 'linux-aarch64-appimage', platform: 'linux', label: 'AppImage', arch: 'arm64', main: false }, - { id: 'linux-x86_64-deb', platform: 'linux', label: '.deb', arch: 'x86_64', main: false }, - { id: 'linux-x86_64-rpm', platform: 'linux', label: '.rpm', arch: 'x86_64', main: false }, - { id: 'macos-aarch64-dmg', platform: 'macos', label: '.dmg', arch: 'Apple silicon', main: true }, - { id: 'macos-x86_64-dmg', platform: 'macos', label: '.dmg', arch: 'Intel', main: false }, - { id: 'windows-x86_64-exe', platform: 'windows', label: 'Installer (.exe)', arch: 'x64', main: true }, - { id: 'windows-x86_64-msi', platform: 'windows', label: '.msi', arch: 'x64', main: false }, + { + id: 'linux-x86_64-appimage', + platform: 'linux', + label: 'AppImage', + arch: 'x86_64', + cpu: 'x86_64', + main: true, + }, + { + id: 'linux-aarch64-appimage', + platform: 'linux', + label: 'AppImage', + arch: 'arm64', + cpu: 'aarch64', + main: false, + }, + { + id: 'linux-x86_64-deb', + platform: 'linux', + label: '.deb', + arch: 'x86_64', + cpu: 'x86_64', + main: false, + }, + { + id: 'linux-x86_64-rpm', + platform: 'linux', + label: '.rpm', + arch: 'x86_64', + cpu: 'x86_64', + main: false, + }, + { + id: 'macos-aarch64-dmg', + platform: 'macos', + label: '.dmg', + arch: 'Apple silicon', + cpu: 'aarch64', + main: true, + }, + { + id: 'macos-x86_64-dmg', + platform: 'macos', + label: '.dmg', + arch: 'Intel', + cpu: 'x86_64', + main: false, + }, + { + id: 'windows-x86_64-exe', + platform: 'windows', + label: 'Installer (.exe)', + arch: 'x64', + cpu: 'x86_64', + main: true, + }, + { + id: 'windows-x86_64-msi', + platform: 'windows', + label: '.msi', + arch: 'x64', + cpu: 'x86_64', + main: false, + }, ] as const export type PublishedFile = { @@ -62,7 +119,12 @@ const onDownloadHost = (value: unknown): value is string => { if (typeof value !== 'string') return false try { const url = new URL(value) - return url.protocol === 'https:' && url.hostname === downloadHost && !url.username && !url.password + return ( + url.protocol === 'https:' && + url.hostname === downloadHost && + !url.username && + !url.password + ) } catch { return false } @@ -72,17 +134,34 @@ const onDownloadHost = (value: unknown): value is string => { * never links somewhere else; an unusable manifest is `undefined` and the page says nothing is out. */ export function parseManifest(value: unknown): Manifest | undefined { if (!value || typeof value !== 'object') return undefined - const { version, files: listed } = value as { version?: unknown; files?: unknown } - if (typeof version !== 'string' || !/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/.test(version)) return undefined + const { version, files: listed } = value as { + version?: unknown + files?: unknown + } + if ( + typeof version !== 'string' || + !/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/.test(version) + ) + return undefined if (!Array.isArray(listed)) return undefined const seen = new Set() const published = listed.filter((file): file is PublishedFile => { if (!file || typeof file !== 'object') return false - const { id, url, bytes, sha512, statement, signature } = file as Record + const { id, url, bytes, sha512, statement, signature } = file as Record< + string, + unknown + > if (typeof id !== 'string' || !known.has(id) || seen.has(id)) return false - if (!onDownloadHost(url) || !onDownloadHost(statement) || !onDownloadHost(signature)) return false - if (typeof bytes !== 'number' || !Number.isSafeInteger(bytes) || bytes <= 0) return false - if (typeof sha512 !== 'string' || !/^[0-9a-f]{128}$/.test(sha512)) return false + if ( + !onDownloadHost(url) || + !onDownloadHost(statement) || + !onDownloadHost(signature) + ) + return false + if (typeof bytes !== 'number' || !Number.isSafeInteger(bytes) || bytes <= 0) + return false + if (typeof sha512 !== 'string' || !/^[0-9a-f]{128}$/.test(sha512)) + return false seen.add(id) return true }) @@ -99,5 +178,7 @@ export function parseManifest(value: unknown): Manifest | undefined { } export function size(bytes: number) { - return bytes >= 1024 * 1024 ? `${(bytes / 1024 / 1024).toFixed(1)} MB` : `${Math.ceil(bytes / 1024)} KB` + return bytes >= 1024 * 1024 + ? `${(bytes / 1024 / 1024).toFixed(1)} MB` + : `${Math.ceil(bytes / 1024)} KB` } diff --git a/src/lib/llms.ts b/src/lib/llms.ts index 5a2e8bd..394baee 100644 --- a/src/lib/llms.ts +++ b/src/lib/llms.ts @@ -2,8 +2,21 @@ /** The site as Markdown for agents: llms.txt (the index, after llmstxt.org) and llms-full.txt (every * page's content). Built from the same data as the pages. Not for the product docs, which publish * their own llms.txt at docs.hermitbox.dev. */ -import { agentMarkdown, agents, docsUrl, installLine, prompt, repoUrl } from './agents' -import { desktopKeyBeside, desktopKeyUrl, files, type Platform, verifyCommands } from './downloads' +import { + agentMarkdown, + agents, + docsUrl, + installLine, + prompt, + repoUrl, +} from './agents' +import { + desktopKeyBeside, + desktopKeyUrl, + files, + type Platform, + verifyCommands, +} from './downloads' const site = 'https://hermitbox.dev' const summary = @@ -36,9 +49,19 @@ Install: \`${installLine}\` (Linux x86_64 or aarch64, as an ordinary user, no ro } export function llmsFull() { - const names = { linux: 'Linux', macos: 'macOS', windows: 'Windows' } as const satisfies Record + const names = { + linux: 'Linux', + macos: 'macOS', + windows: 'Windows', + } as const satisfies Record const platforms = (Object.keys(names) as Platform[]) - .map((platform) => `- ${names[platform]}: ${files.filter((f) => f.platform === platform).map((f) => `${f.label} (${f.arch})`).join(', ')}`) + .map( + (platform) => + `- ${names[platform]}: ${files + .filter((f) => f.platform === platform) + .map((f) => `${f.label} (${f.arch})`) + .join(', ')}`, + ) .join('\n') return `# Hermitbox diff --git a/src/lib/machine.ts b/src/lib/machine.ts new file mode 100644 index 0000000..a821fca --- /dev/null +++ b/src/lib/machine.ts @@ -0,0 +1,104 @@ +// SPDX-License-Identifier: AGPL-3.0-only +/** Which computer the visitor's browser runs on, and which desktop files to put first for it. It reads + * the browser's client hints (`navigator.userAgentData.getHighEntropyValues`), then + * `navigator.platform` and the user agent. A phone, a tablet or anything else unknown gets no answer, + * and the page keeps its order. Not for deciding what is published (the manifest does, downloads.ts). */ +import { type FileId, files, type Platform } from './downloads' + +export type Cpu = 'x86_64' | 'aarch64' +export type Machine = { platform: Platform; cpu?: Cpu } + +/** What `getHighEntropyValues(['architecture', 'bitness', 'platform'])` answers (WICG UA Client Hints). */ +export type Hints = { + platform?: string + architecture?: string + bitness?: string + mobile?: boolean +} +/** The older answers every browser still gives. */ +export type Legacy = { + platform?: string + userAgent?: string + maxTouchPoints?: number +} + +const platforms: Record = { + macOS: 'macos', + Windows: 'windows', + Linux: 'linux', +} +const cpus: Record = { x86: 'x86_64', arm: 'aarch64' } + +export function fromHints(hints: Hints): Machine | undefined { + const platform = platforms[hints.platform ?? ''] + if (hints.mobile || !platform) return undefined + const cpu = + hints.bitness === '64' ? cpus[hints.architecture ?? ''] : undefined + return cpu ? { platform, cpu } : { platform } +} + +/** Safari reports an Apple silicon Mac as Intel (`MacIntel`), so a Mac found here has no cpu; an iPad + * asking for the desktop site also says `MacIntel`, and only its touch points tell it apart. */ +export function fromLegacy({ + platform = '', + userAgent = '', + maxTouchPoints = 0, +}: Legacy): Machine | undefined { + if (/Android|iPhone|iPad|iPod|CrOS|Mobile/.test(userAgent)) return undefined + const text = `${platform} ${userAgent}` + if (/Win(32|64|dows)/.test(text)) return { platform: 'windows' } + if (/Mac/.test(text)) + return maxTouchPoints > 1 ? undefined : { platform: 'macos' } + if (!/Linux/.test(text)) return undefined + const cpu = /x86_64|amd64/.test(text) + ? 'x86_64' + : /aarch64|arm64/.test(text) + ? 'aarch64' + : undefined + return cpu ? { platform: 'linux', cpu } : { platform: 'linux' } +} + +type UserAgentData = { + mobile?: boolean + getHighEntropyValues?: (hints: string[]) => Promise +} + +export async function detect( + browser: Legacy & { userAgentData?: UserAgentData }, +): Promise { + const data = browser.userAgentData + if (data?.mobile) return undefined + if (data?.getHighEntropyValues) { + try { + const found = fromHints( + await data.getHighEntropyValues([ + 'architecture', + 'bitness', + 'platform', + ]), + ) + if (found) return found + } catch { + // A browser may refuse high-entropy hints; the older answers still say something. + } + } + return fromLegacy(browser) +} + +/** A platform's download buttons: its main file and the same kind of file for its other cpus. */ +export function buttons(platform: Platform) { + const mine = files.filter((file) => file.platform === platform) + const main = mine.find((file) => file.main) + return mine.filter((file) => file.label === main?.label) +} + +/** The buttons to show for a machine: the one for its cpu, both Mac builds when a Mac's cpu is + * unknown, and otherwise the platform's main file. */ +export function offer(machine: Machine): FileId[] { + const choices = buttons(machine.platform) + const exact = choices.filter((file) => file.cpu === machine.cpu) + if (exact.length) return exact.map((file) => file.id) + if (machine.platform === 'macos' && !machine.cpu) + return choices.map((file) => file.id) + return choices.filter((file) => file.main).map((file) => file.id) +} diff --git a/src/pages/download.astro b/src/pages/download.astro index 3de027f..819d335 100644 --- a/src/pages/download.astro +++ b/src/pages/download.astro @@ -5,11 +5,34 @@ import AgentPanel from '../components/AgentPanel.astro' import Page from '../layouts/Page.astro' import { installLine } from '../lib/agents' -import { desktopKeyBeside, desktopKeyFile, desktopKeyUrl, files, verifyCommands } from '../lib/downloads' +import { + desktopKeyBeside, + desktopKeyFile, + desktopKeyUrl, + files, + verifyCommands, +} from '../lib/downloads' +import { buttons } from '../lib/machine' + const platforms = [ - { id: 'linux', name: 'Linux', needs: 'x86_64 or arm64. Runs Hermitbox natively, as your user, without root.' }, - { id: 'macos', name: 'macOS', needs: 'Apple silicon or Intel. Runs Hermitbox in a small Linux VM the app manages.' }, - { id: 'windows', name: 'Windows', needs: 'Windows 10 or 11, 64-bit. Runs Hermitbox in its own WSL2 distribution, which the app sets up.' }, + { + id: 'linux', + name: 'Linux', + needs: + 'x86_64 or arm64. Runs Hermitbox natively, as your user, without root.', + }, + { + id: 'macos', + name: 'macOS', + needs: + 'Apple silicon or Intel. Runs Hermitbox in a small Linux VM the app manages.', + }, + { + id: 'windows', + name: 'Windows', + needs: + 'Windows 10 or 11, 64-bit. Runs Hermitbox in its own WSL2 distribution, which the app sets up.', + }, ] as const --- @@ -27,13 +50,18 @@ const platforms = [ {platforms.map((platform) => { const mine = files.filter((file) => file.platform === platform.id) const main = mine.find((file) => file.main) + const offered = buttons(platform.id) + const name = (file: (typeof offered)[number]) => + offered.length > 1 ? `Download for ${platform.name} (${file.arch})` : `Download for ${platform.name}` return ( -
-
{platform.name}{main?.arch}
+
+
{platform.name} {main?.arch}

{platform.name}

{platform.needs}

- Not published yet + {offered.map((file) => ( + + ))}
    {mine.map((file) => (
  • {file.label} · {file.arch}not yet
  • @@ -70,3 +98,24 @@ const platforms = [
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index cc71f4c..cab37c6 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -6,17 +6,54 @@ import AgentPanel from '../components/AgentPanel.astro' import Page from '../layouts/Page.astro' import { docsUrl, repoUrl } from '../lib/agents' import { art } from '../lib/art' + const verbs = ['start', 'stop', 'sleep', 'wake', 'rest', 'snapshot'] as const const features = [ - { art: art['feat-terminal'], title: 'Commands', text: 'Run a command and get the result, or stream it as it runs.', code: 'box.run() · box.stream()' }, - { art: art['feat-files'], title: 'Files', text: 'Read and write files that stay with the box under /data.', code: 'box.read() · box.write()' }, - { art: art['feat-git'], title: 'Git', text: 'Clone, branch, commit and push inside the box.', code: 'box.git.clone()' }, - { art: art['feat-ports'], title: 'Ports', text: 'Publish a port and get a URL for it.', code: 'box.expose(port)' }, - { art: art['feat-webhooks'], title: 'Webhooks', text: 'Get a signed call on every state change.', code: 'hb.webhook()' }, - { art: art['feat-idle-policy'], title: 'Idle policy', text: 'Keep a box awake, or let it sleep after a quiet spell.', code: 'box.keepAlive() · box.setIdle()' }, + { + art: art['feat-terminal'], + title: 'Commands', + text: 'Run a command and get the result, or stream it as it runs.', + code: 'box.run() · box.stream()', + }, + { + art: art['feat-files'], + title: 'Files', + text: 'Read and write files that stay with the box under /data.', + code: 'box.read() · box.write()', + }, + { + art: art['feat-git'], + title: 'Git', + text: 'Clone, branch, commit and push inside the box.', + code: 'box.git.clone()', + }, + { + art: art['feat-ports'], + title: 'Ports', + text: 'Publish a port and get a URL for it.', + code: 'box.expose(port)', + }, + { + art: art['feat-webhooks'], + title: 'Webhooks', + text: 'Get a signed call on every state change.', + code: 'hb.webhook()', + }, + { + art: art['feat-idle-policy'], + title: 'Idle policy', + text: 'Keep a box awake, or let it sleep after a quiet spell.', + code: 'box.keepAlive() · box.setIdle()', + }, ] const ascii = Array.from({ length: 16 }, (_, row) => - Array.from({ length: 40 }, (_, col) => ['~~~ ', '- ', ' ~ ~ ', ' . ', ' ~~ '][(row * 7 + col * 3) % 5]).join(''), + Array.from( + { length: 40 }, + (_, col) => + ['~~~ ', '- ', ' ~ ~ ', ' . ', ' ~~ '][ + (row * 7 + col * 3) % 5 + ], + ).join(''), ).join('\n') --- diff --git a/src/pages/llms-full.txt.ts b/src/pages/llms-full.txt.ts index cd7f168..491a2f7 100644 --- a/src/pages/llms-full.txt.ts +++ b/src/pages/llms-full.txt.ts @@ -1,4 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-only /** /llms-full.txt, built at build time. */ import { llmsFull } from '../lib/llms' -export const GET = () => new Response(llmsFull(), { headers: { 'Content-Type': 'text/markdown; charset=utf-8' } }) +export const GET = () => + new Response(llmsFull(), { + headers: { 'Content-Type': 'text/markdown; charset=utf-8' }, + }) diff --git a/src/pages/llms.txt.ts b/src/pages/llms.txt.ts index 55c5629..3017a8d 100644 --- a/src/pages/llms.txt.ts +++ b/src/pages/llms.txt.ts @@ -1,4 +1,7 @@ // SPDX-License-Identifier: AGPL-3.0-only /** /llms.txt, built at build time. */ import { llmsIndex } from '../lib/llms' -export const GET = () => new Response(llmsIndex(), { headers: { 'Content-Type': 'text/markdown; charset=utf-8' } }) +export const GET = () => + new Response(llmsIndex(), { + headers: { 'Content-Type': 'text/markdown; charset=utf-8' }, + }) diff --git a/src/styles/site.css b/src/styles/site.css index 1207f09..3e87924 100644 --- a/src/styles/site.css +++ b/src/styles/site.css @@ -2,207 +2,902 @@ /* The site's own compositions, after the design system's Marketing example. Colours, type and * components come from tokens.css and bundle.css, loaded first and never changed here. */ -html, body { margin: 0; } -body { background: var(--bg); } -.mk { color: var(--ink); font-family: var(--font-sans); background: var(--bg); overflow-x: clip; } -.mk .in { max-width: var(--content-max); margin: 0 auto; padding: 0 40px; position: relative; } -.mk a { color: var(--sea-ink); } -.mk p code, .mk li code { font-family: var(--font-mono); } -.skip { position: absolute; left: -9999px; } -.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); color: var(--ink); padding: 8px 12px; outline: 2px solid var(--focus); } -.eb { font: 13px/16px var(--font-mono); color: var(--ink-muted); } -.eb::before { content: "▚ "; color: var(--coral-bright); } +html, +body { + margin: 0; +} +body { + background: var(--bg); +} +.mk { + color: var(--ink); + font-family: var(--font-sans); + background: var(--bg); + overflow-x: clip; +} +.mk .in { + max-width: var(--content-max); + margin: 0 auto; + padding: 0 40px; + position: relative; +} +.mk a { + color: var(--sea-ink); +} +.mk p code, +.mk li code { + font-family: var(--font-mono); +} +.skip { + position: absolute; + left: -9999px; +} +.skip:focus { + left: 16px; + top: 16px; + z-index: 10; + background: var(--surface); + color: var(--ink); + padding: 8px 12px; + outline: 2px solid var(--focus); +} +.eb { + font: 13px / 16px var(--font-mono); + color: var(--ink-muted); +} +.eb::before { + content: "▚ "; + color: var(--coral-bright); +} /* top bar */ -.topbar { position: relative; z-index: 3; border-bottom: 1px solid var(--border); background: var(--bg); } -.topbar .in { display: flex; align-items: center; gap: 28px; height: var(--topnav-height); } -.topbar .hb-logo { color: var(--ink); } -.topbar__links { display: flex; gap: 24px; font: 13px/16px var(--font-mono); } -.mk .topbar__links a { color: var(--ink-muted); text-decoration: none; } -.mk .topbar__links a:hover, .mk .topbar__links a[aria-current="page"] { color: var(--ink); } -.topbar__links a[aria-current="page"]::before { content: "> "; color: var(--coral); } -.topbar .end { margin-left: auto; display: flex; gap: 10px; align-items: center; } -.mk .hb-btn--secondary { border-color: var(--border-control); color: var(--ink); } +.topbar { + position: relative; + z-index: 3; + border-bottom: 1px solid var(--border); + background: var(--bg); +} +.topbar .in { + display: flex; + align-items: center; + gap: 28px; + height: var(--topnav-height); +} +.topbar .hb-logo { + color: var(--ink); +} +.topbar__links { + display: flex; + gap: 24px; + font: 13px / 16px var(--font-mono); +} +.mk .topbar__links a { + color: var(--ink-muted); + text-decoration: none; +} +.mk .topbar__links a:hover, +.mk .topbar__links a[aria-current="page"] { + color: var(--ink); +} +.topbar__links a[aria-current="page"]::before { + content: "> "; + color: var(--coral); +} +.topbar .end { + margin-left: auto; + display: flex; + gap: 10px; + align-items: center; +} +.mk .hb-btn--secondary { + border-color: var(--border-control); + color: var(--ink); +} /* hero */ -.hero { position: relative; padding-bottom: 400px; } -.hero .beach { position: absolute; left: 0; right: 0; bottom: 0; height: 420px; z-index: 0; } -.hero .copy { position: relative; z-index: 2; padding-top: 56px; max-width: 720px; } -.hero h1 { font: 400 84px/80px var(--font-display); letter-spacing: -1.5px; margin: 16px 0; } -.hero h1 b { font-weight: 700; color: var(--coral-bright); } -.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 580px; margin: 0 0 24px; } -.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; } -.hero .hb-scene-hint { bottom: 96px; } +.hero { + position: relative; + padding-bottom: 400px; +} +.hero .beach { + position: absolute; + left: 0; + right: 0; + bottom: 0; + height: 420px; + z-index: 0; +} +.hero .copy { + position: relative; + z-index: 2; + padding-top: 56px; + max-width: 720px; +} +.hero h1 { + font: 400 84px / 80px var(--font-display); + letter-spacing: -1.5px; + margin: 16px 0; +} +.hero h1 b { + font-weight: 700; + color: var(--coral-bright); +} +.lead { + font-size: 18px; + line-height: 28px; + color: var(--ink-muted); + max-width: 580px; + margin: 0 0 24px; +} +.ctas { + display: flex; + flex-wrap: wrap; + gap: 10px; + margin-top: 18px; +} +.hero .hb-scene-hint { + bottom: 96px; +} /* sections */ -.sec { padding: 112px 0; position: relative; isolation: isolate; } -.sec > .hb-tex, .sec > .tex-band { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none; overflow: hidden; } -.sec .in { z-index: 2; } -.mk .hb-seam { --seam: var(--bg); } -.mk .hb-tex--ascii pre { color: var(--border-strong); } -.sec-h { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: end; margin-bottom: 44px; } -.sec-h h2, .page-h h1 { font: 400 56px/56px var(--font-display); letter-spacing: -0.8px; margin: 14px 0 0; } -.sec-h h2 b, .page-h h1 b { font-weight: 700; } -.sec-h p { font-size: 16px; line-height: 26px; color: var(--ink-muted); margin: 0; } +.sec { + padding: 112px 0; + position: relative; + isolation: isolate; +} +.sec > .hb-tex, +.sec > .tex-band { + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + z-index: 0; + pointer-events: none; + overflow: hidden; +} +.sec .in { + z-index: 2; +} +.mk .hb-seam { + --seam: var(--bg); +} +.mk .hb-tex--ascii pre { + color: var(--border-strong); +} +.sec-h { + display: grid; + grid-template-columns: 1fr 380px; + gap: 48px; + align-items: end; + margin-bottom: 44px; +} +.sec-h h2, +.page-h h1 { + font: 400 56px / 56px var(--font-display); + letter-spacing: -0.8px; + margin: 14px 0 0; +} +.sec-h h2 b, +.page-h h1 b { + font-weight: 700; +} +.sec-h p { + font-size: 16px; + line-height: 26px; + color: var(--ink-muted); + margin: 0; +} /* three tiles */ -.three { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); background: var(--bg); } -.three > div + div { border-left: 1px solid var(--border); } -.panel-bar { display: flex; justify-content: space-between; height: 36px; align-items: center; padding: 0 14px; font: 12px/16px var(--font-mono); color: var(--ink-subtle); border-bottom: 1px solid var(--border); background: var(--surface-sunk); } -.panel-bar b { font-weight: 400; color: var(--ink); } -.mini { height: 200px; border-bottom: 1px solid var(--border); } -.cmd { font: 12px/18px var(--font-mono); color: var(--term-muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--term-bg); overflow-x: auto; white-space: nowrap; } -.cmd .p { color: var(--term-prompt); user-select: none; } -.cmd b { font-weight: 400; color: var(--term-ok); } -.txt { padding: 20px 20px 24px; } -.txt h3 { font: 400 26px/30px var(--font-heading); margin: 0 0 8px; } -.txt p { font-size: 15px; line-height: 23px; margin: 0 0 14px; color: var(--ink-muted); } -.chips { display: flex; flex-wrap: wrap; gap: 6px; } -.chip { font: 12px/16px var(--font-mono); padding: 3px 8px; border: 1px solid var(--border-strong); color: var(--ink-muted); } +.three { + display: grid; + grid-template-columns: repeat(3, 1fr); + border: 1px solid var(--border); + background: var(--bg); +} +.three > div + div { + border-left: 1px solid var(--border); +} +.panel-bar { + display: flex; + justify-content: space-between; + height: 36px; + align-items: center; + padding: 0 14px; + font: 12px / 16px var(--font-mono); + color: var(--ink-subtle); + border-bottom: 1px solid var(--border); + background: var(--surface-sunk); +} +.panel-bar b { + font-weight: 400; + color: var(--ink); +} +.mini { + height: 200px; + border-bottom: 1px solid var(--border); +} +.cmd { + font: 12px / 18px var(--font-mono); + color: var(--term-muted); + padding: 10px 14px; + border-bottom: 1px solid var(--border); + background: var(--term-bg); + overflow-x: auto; + white-space: nowrap; +} +.cmd .p { + color: var(--term-prompt); + user-select: none; +} +.cmd b { + font-weight: 400; + color: var(--term-ok); +} +.txt { + padding: 20px 20px 24px; +} +.txt h3 { + font: 400 26px / 30px var(--font-heading); + margin: 0 0 8px; +} +.txt p { + font-size: 15px; + line-height: 23px; + margin: 0 0 14px; + color: var(--ink-muted); +} +.chips { + display: flex; + flex-wrap: wrap; + gap: 6px; +} +.chip { + font: 12px / 16px var(--font-mono); + padding: 3px 8px; + border: 1px solid var(--border-strong); + color: var(--ink-muted); +} /* lifecycle on the dusk beach */ -.dusk { position: relative; min-height: 760px; isolation: isolate; } -.dusk .scene { position: absolute; inset: 0; z-index: 0; } -.dusk .in { z-index: 2; padding-top: 140px; padding-bottom: 80px; } -.life { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; } -.life > div:first-child { background: var(--bg); border: 1px solid var(--border-strong); padding: 28px 28px 20px; } -.life h2 { font: 400 42px/44px var(--font-display); letter-spacing: -1px; margin: 14px 0 16px; } -.life h2 b { font-weight: 700; } -.life p { font-size: 16px; line-height: 26px; color: var(--ink-muted); margin: 0 0 20px; } -.life ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); } -.life li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--ink-muted); } -.life li code { font: 13px/20px var(--font-mono); color: var(--ink); } -.demo { border: 1px solid var(--border-strong); background: var(--surface); } -.demo .ctl { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); } -.demo .ctl button { flex: 1; appearance: none; background: none; border: 0; border-right: 1px solid var(--border); color: var(--ink-muted); font: 12px/1 var(--font-mono); height: 40px; min-width: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; } -.demo .ctl button:last-child { border-right: 0; } -.demo .ctl button:hover, .demo .ctl button[aria-pressed="true"] { background: var(--surface-hover); color: var(--ink); } -.demo .ctl button[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--coral-bright); } -.demo .ctl button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; } -.demo .say { font: 13px/20px var(--font-mono); padding: 10px 14px; background: var(--term-bg); color: var(--term-ink); display: flex; justify-content: space-between; gap: 12px; } -.demo .say .k { color: var(--code-keyword); } .demo .say .f { color: var(--code-fn); } .demo .say .m { color: var(--term-muted); } -.demo .hb-status { font: 12px/16px var(--font-mono); color: var(--coral-ink); } +.dusk { + position: relative; + min-height: 760px; + isolation: isolate; +} +.dusk .scene { + position: absolute; + inset: 0; + z-index: 0; +} +.dusk .in { + z-index: 2; + padding-top: 140px; + padding-bottom: 80px; +} +.life { + display: grid; + grid-template-columns: 5fr 6fr; + gap: 56px; + align-items: start; +} +.life > div:first-child { + background: var(--bg); + border: 1px solid var(--border-strong); + padding: 28px 28px 20px; +} +.life h2 { + font: 400 42px / 44px var(--font-display); + letter-spacing: -1px; + margin: 14px 0 16px; +} +.life h2 b { + font-weight: 700; +} +.life p { + font-size: 16px; + line-height: 26px; + color: var(--ink-muted); + margin: 0 0 20px; +} +.life ul { + list-style: none; + margin: 0; + padding: 0; + border-top: 1px solid var(--border); +} +.life li { + display: grid; + grid-template-columns: 110px 1fr; + gap: 16px; + padding: 10px 0; + border-bottom: 1px solid var(--border); + font-size: 14px; + line-height: 20px; + color: var(--ink-muted); +} +.life li code { + font: 13px / 20px var(--font-mono); + color: var(--ink); +} +.demo { + border: 1px solid var(--border-strong); + background: var(--surface); +} +.demo .ctl { + display: flex; + flex-wrap: wrap; + border-bottom: 1px solid var(--border); +} +.demo .ctl button { + flex: 1; + appearance: none; + background: none; + border: 0; + border-right: 1px solid var(--border); + color: var(--ink-muted); + font: 12px / 1 var(--font-mono); + height: 40px; + min-width: 72px; + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + cursor: pointer; +} +.demo .ctl button:last-child { + border-right: 0; +} +.demo .ctl button:hover, +.demo .ctl button[aria-pressed="true"] { + background: var(--surface-hover); + color: var(--ink); +} +.demo .ctl button[aria-pressed="true"] { + box-shadow: inset 0 -2px 0 var(--coral-bright); +} +.demo .ctl button:focus-visible { + outline: 2px solid var(--focus); + outline-offset: -2px; +} +.demo .say { + font: 13px / 20px var(--font-mono); + padding: 10px 14px; + background: var(--term-bg); + color: var(--term-ink); + display: flex; + justify-content: space-between; + gap: 12px; +} +.demo .say .k { + color: var(--code-keyword); +} +.demo .say .f { + color: var(--code-fn); +} +.demo .say .m { + color: var(--term-muted); +} +.demo .hb-status { + font: 12px / 16px var(--font-mono); + color: var(--coral-ink); +} /* the sdk */ -.codegrid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } -.codegrid h2 { font: 400 48px/50px var(--font-display); letter-spacing: -1px; margin: 14px 0 0; } -.codegrid h2 b { font-weight: 700; } -.steps { margin-top: 28px; border-top: 1px solid var(--border); } -.step { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); } -.step .n { font: 13px/24px var(--font-mono); color: var(--term-prompt); } -.step h3 { font: 650 16px/24px var(--font-sans); margin: 0 0 2px; } -.step p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); } -.step code { font: 13px var(--font-mono); color: var(--ink); } -.codewin { background: var(--code-bg); border: 1px solid var(--border-strong); position: relative; min-width: 0; } -.codewin .tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--surface-sunk); } -.codewin .tabs button { appearance: none; border: 0; background: none; color: var(--ink-subtle); font: 12px/16px var(--font-mono); padding: 10px 16px; cursor: pointer; } -.codewin .tabs button[aria-selected="true"] { color: var(--ink); background: var(--code-bg); box-shadow: inset 0 2px 0 var(--coral-bright); } -.codewin .tabs span { margin-left: auto; padding: 10px 14px; font: 12px/16px var(--font-mono); color: var(--ink-subtle); } -.codewin pre { margin: 0; padding: 20px 22px 24px; font: 13px/21px var(--font-mono); color: var(--term-ink); overflow: auto; } -.codewin pre[hidden] { display: none; } -.codewin .k { color: var(--code-keyword); } .codewin .s { color: var(--code-string); } .codewin .f { color: var(--code-fn); } .codewin .c { color: var(--code-comment); } -.perch { position: absolute; right: 24px; top: -89px; } +.codegrid { + display: grid; + grid-template-columns: 5fr 7fr; + gap: 56px; + align-items: start; +} +.codegrid h2 { + font: 400 48px / 50px var(--font-display); + letter-spacing: -1px; + margin: 14px 0 0; +} +.codegrid h2 b { + font-weight: 700; +} +.steps { + margin-top: 28px; + border-top: 1px solid var(--border); +} +.step { + display: grid; + grid-template-columns: 48px 1fr; + gap: 12px; + padding: 16px 0; + border-bottom: 1px solid var(--border); +} +.step .n { + font: 13px / 24px var(--font-mono); + color: var(--term-prompt); +} +.step h3 { + font: 650 16px / 24px var(--font-sans); + margin: 0 0 2px; +} +.step p { + margin: 0; + font-size: 14px; + line-height: 22px; + color: var(--ink-muted); +} +.step code { + font: 13px var(--font-mono); + color: var(--ink); +} +.codewin { + background: var(--code-bg); + border: 1px solid var(--border-strong); + position: relative; + min-width: 0; +} +.codewin .tabs { + display: flex; + border-bottom: 1px solid var(--border); + background: var(--surface-sunk); +} +.codewin .tabs button { + appearance: none; + border: 0; + background: none; + color: var(--ink-subtle); + font: 12px / 16px var(--font-mono); + padding: 10px 16px; + cursor: pointer; +} +.codewin .tabs button[aria-selected="true"] { + color: var(--ink); + background: var(--code-bg); + box-shadow: inset 0 2px 0 var(--coral-bright); +} +.codewin .tabs span { + margin-left: auto; + padding: 10px 14px; + font: 12px / 16px var(--font-mono); + color: var(--ink-subtle); +} +.codewin pre { + margin: 0; + padding: 20px 22px 24px; + font: 13px / 21px var(--font-mono); + color: var(--term-ink); + overflow: auto; +} +.codewin pre[hidden] { + display: none; +} +.codewin .k { + color: var(--code-keyword); +} +.codewin .s { + color: var(--code-string); +} +.codewin .f { + color: var(--code-fn); +} +.codewin .c { + color: var(--code-comment); +} +.perch { + position: absolute; + right: 24px; + top: -89px; +} /* features */ -.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--bg); } -.feat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 22px 24px; display: grid; grid-template-columns: 102px 1fr; gap: 18px; align-items: center; } -.feat:hover { background: var(--surface); } -.feat h3 { font: 650 16px/24px var(--font-sans); margin: 0 0 4px; } -.feat p { margin: 0 0 6px; font-size: 14px; line-height: 21px; color: var(--ink-muted); } -.feat code { font: 12px/16px var(--font-mono); color: var(--sea-ink); } +.feats { + display: grid; + grid-template-columns: repeat(3, 1fr); + border-top: 1px solid var(--border); + border-left: 1px solid var(--border); + background: var(--bg); +} +.feat { + border-right: 1px solid var(--border); + border-bottom: 1px solid var(--border); + padding: 22px 22px 24px; + display: grid; + grid-template-columns: 102px 1fr; + gap: 18px; + align-items: center; +} +.feat:hover { + background: var(--surface); +} +.feat h3 { + font: 650 16px / 24px var(--font-sans); + margin: 0 0 4px; +} +.feat p { + margin: 0 0 6px; + font-size: 14px; + line-height: 21px; + color: var(--ink-muted); +} +.feat code { + font: 12px / 16px var(--font-mono); + color: var(--sea-ink); +} /* paper and desktop */ -.paperrow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } -.paperrow .hb-paper h2 { font: 400 40px/44px var(--font-heading); margin: 12px 0 14px; color: #0A1150; } -.paperrow .hb-paper p { font-size: 16px; line-height: 26px; margin: 0 0 16px; color: #2A2F6A; } -.paperrow .hb-paper a { color: #1D47C8; } +.paperrow { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 48px; + align-items: center; +} +.paperrow .hb-paper h2 { + font: 400 40px / 44px var(--font-heading); + margin: 12px 0 14px; + color: #0a1150; +} +.paperrow .hb-paper p { + font-size: 16px; + line-height: 26px; + margin: 0 0 16px; + color: #2a2f6a; +} +.paperrow .hb-paper a { + color: #1d47c8; +} /* close */ -.close { position: relative; min-height: 860px; } -.close .scene { position: absolute; inset: 0; z-index: 0; } -.close .in { z-index: 2; padding-top: 130px; text-align: center; } -.close h2 { font: 400 72px/70px var(--font-display); letter-spacing: -1.5px; margin: 16px auto; } -.close h2 b { font-weight: 700; color: var(--coral-bright); } -.close p { font-size: 17px; line-height: 27px; max-width: 520px; margin: 0 auto 26px; color: var(--ink-muted); } -.close .hb-agent { text-align: left; margin: 0 auto; } +.close { + position: relative; + min-height: 860px; +} +.close .scene { + position: absolute; + inset: 0; + z-index: 0; +} +.close .in { + z-index: 2; + padding-top: 130px; + text-align: center; +} +.close h2 { + font: 400 72px / 70px var(--font-display); + letter-spacing: -1.5px; + margin: 16px auto; +} +.close h2 b { + font-weight: 700; + color: var(--coral-bright); +} +.close p { + font-size: 17px; + line-height: 27px; + max-width: 520px; + margin: 0 auto 26px; + color: var(--ink-muted); +} +.close .hb-agent { + text-align: left; + margin: 0 auto; +} /* footer */ -.foot { background: var(--term-bg); padding: 56px 0 28px; color: var(--ink-muted); } -.foot .g { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } -.foot pre { font: 13px/16px var(--font-mono); margin: 0 0 16px; color: var(--term-box); } -.foot pre .cr { color: var(--term-prompt); } .foot pre .cl { color: var(--term-claw); } -.foot .foot-h { font: 12px/16px var(--font-mono); color: var(--ink-subtle); margin: 0 0 12px; font-weight: 400; } -.mk .foot a { display: block; color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 28px; } -.mk .foot a:hover { color: var(--ink); } -.foot .hb-logo { color: var(--ink); } -.foot .bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); font: 12px/16px var(--font-mono); color: var(--ink-subtle); } +.foot { + background: var(--term-bg); + padding: 56px 0 28px; + color: var(--ink-muted); +} +.foot .g { + display: grid; + grid-template-columns: 2fr 1fr 1fr 1fr; + gap: 32px; +} +.foot pre { + font: 13px / 16px var(--font-mono); + margin: 0 0 16px; + color: var(--term-box); +} +.foot pre .cr { + color: var(--term-prompt); +} +.foot pre .cl { + color: var(--term-claw); +} +.foot .foot-h { + font: 12px / 16px var(--font-mono); + color: var(--ink-subtle); + margin: 0 0 12px; + font-weight: 400; +} +.mk .foot a { + display: block; + color: var(--ink-muted); + text-decoration: none; + font-size: 14px; + line-height: 28px; +} +.mk .foot a:hover { + color: var(--ink); +} +.foot .hb-logo { + color: var(--ink); +} +.foot .bar { + display: flex; + flex-wrap: wrap; + gap: 12px; + justify-content: space-between; + margin-top: 40px; + padding-top: 16px; + border-top: 1px solid var(--border); + font: 12px / 16px var(--font-mono); + color: var(--ink-subtle); +} /* inner pages */ -.page-h { padding: 72px 0 56px; position: relative; isolation: isolate; } -.page-h > .hb-tex { position: absolute; inset: 0; z-index: 0; pointer-events: none; } -.page-h .in { z-index: 2; } -.page-h .lead { margin-top: 18px; } -.prose { max-width: var(--prose-max); } -.prose h2 { font: 400 28px/34px var(--font-heading); margin: 48px 0 12px; } -.prose p, .prose li { font-size: 16px; line-height: 26px; color: var(--ink-muted); } -.prose strong { color: var(--ink); } -.prose h3 { font: 650 16px/24px var(--font-sans); color: var(--ink); margin: 20px 0 4px; } -.prose pre { margin: 0 0 16px; padding: 14px 16px; background: var(--code-bg); color: var(--term-ink); border: 1px solid var(--border-strong); font: 13px/20px var(--font-mono); overflow-x: auto; } +.page-h { + padding: 72px 0 56px; + position: relative; + isolation: isolate; +} +.page-h > .hb-tex { + position: absolute; + inset: 0; + z-index: 0; + pointer-events: none; +} +.page-h .in { + z-index: 2; +} +.page-h .lead { + margin-top: 18px; +} +.prose { + max-width: var(--prose-max); +} +.prose h2 { + font: 400 28px / 34px var(--font-heading); + margin: 48px 0 12px; +} +.prose p, +.prose li { + font-size: 16px; + line-height: 26px; + color: var(--ink-muted); +} +.prose strong { + color: var(--ink); +} +.prose h3 { + font: 650 16px / 24px var(--font-sans); + color: var(--ink); + margin: 20px 0 4px; +} +.prose pre { + margin: 0 0 16px; + padding: 14px 16px; + background: var(--code-bg); + color: var(--term-ink); + border: 1px solid var(--border-strong); + font: 13px / 20px var(--font-mono); + overflow-x: auto; +} /* downloads */ -.platforms { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); background: var(--bg); } -.platform + .platform { border-left: 1px solid var(--border); } -.platform .txt { display: grid; gap: 12px; align-content: start; } -.platform .txt h2 { font: 400 26px/30px var(--font-heading); margin: 0; } -.platform ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); } -.platform li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font: 12px/16px var(--font-mono); color: var(--ink-subtle); } -.platform li a { color: var(--ink); } -.dl-state { border: 1px solid var(--kraft); background: var(--kraft-soft); padding: 14px 16px; font-size: 15px; line-height: 24px; margin: 0 0 32px; max-width: var(--prose-max); } -[data-dl-state="ready"] .dl-state--none, [data-dl-state="none"] .dl-state--ready { display: none; } -.sha { font: 11px/16px var(--font-mono); color: var(--ink-subtle); word-break: break-all; } -.unsigned { border-left: 3px solid var(--kraft); padding-left: 16px; } +.platforms { + display: grid; + grid-template-columns: repeat(3, 1fr); + border: 1px solid var(--border); + background: var(--bg); +} +.platform + .platform { + border-left: 1px solid var(--border); +} +.platform .txt { + display: grid; + gap: 12px; + align-content: start; +} +.platform .txt h2 { + font: 400 26px / 30px var(--font-heading); + margin: 0; +} +.platform ul { + list-style: none; + margin: 0; + padding: 0; + border-top: 1px solid var(--border); +} +.platform li { + display: flex; + justify-content: space-between; + align-items: center; + gap: 8px; + padding: 8px 0; + border-bottom: 1px solid var(--border); + font: 12px / 16px var(--font-mono); + color: var(--ink-subtle); +} +/* The design system's buttons and badges set display, which would show them through `hidden`; + this selector is more specific than theirs. */ +.platform [hidden] { + display: none; +} +.platform li a { + color: var(--ink); +} +.dl-state { + border: 1px solid var(--kraft); + background: var(--kraft-soft); + padding: 14px 16px; + font-size: 15px; + line-height: 24px; + margin: 0 0 32px; + max-width: var(--prose-max); +} +[data-dl-state="ready"] .dl-state--none, +[data-dl-state="none"] .dl-state--ready { + display: none; +} +.sha { + font: 11px / 16px var(--font-mono); + color: var(--ink-subtle); + word-break: break-all; +} +.unsigned { + border-left: 3px solid var(--kraft); + padding-left: 16px; +} /* agents */ -.agent-list { display: grid; gap: 0; border: 1px solid var(--border); max-width: 880px; } -.agent-list section { padding: 28px; scroll-margin-top: 24px; } -.agent-list section + section { border-top: 1px solid var(--border); } -.agent-list h3 { font: 400 28px/34px var(--font-heading); margin: 0 0 6px; } -.steps-lead { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; } -.agent-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--ink-muted); font-size: 14px; line-height: 22px; } -.agent-steps p { margin: 0 0 8px; } -.agent-steps .hb-agent__cmd code { font-size: 13px; } -.hb-agent__cmd .p { user-select: none; } -.steps-note { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-subtle); } -.prompt-full { white-space: pre-wrap; quotes: none; } +.agent-list { + display: grid; + gap: 0; + border: 1px solid var(--border); + max-width: 880px; +} +.agent-list section { + padding: 28px; + scroll-margin-top: 24px; +} +.agent-list section + section { + border-top: 1px solid var(--border); +} +.agent-list h3 { + font: 400 28px / 34px var(--font-heading); + margin: 0 0 6px; +} +.steps-lead { + margin: 0; + color: var(--ink-muted); + font-size: 15px; + line-height: 24px; +} +.agent-steps { + margin: 0; + padding-left: 20px; + display: grid; + gap: 12px; + color: var(--ink-muted); + font-size: 14px; + line-height: 22px; +} +.agent-steps p { + margin: 0 0 8px; +} +.agent-steps .hb-agent__cmd code { + font-size: 13px; +} +.hb-agent__cmd .p { + user-select: none; +} +.steps-note { + margin: 0; + font-size: 13px; + line-height: 20px; + color: var(--ink-subtle); +} +.prompt-full { + white-space: pre-wrap; + quotes: none; +} /* dialogs */ -dialog.agent-dialog { padding: 0; color: var(--ink); width: min(620px, calc(100% - 32px)); max-height: calc(100% - 48px); } -dialog.agent-dialog::backdrop { background: rgba(2, 5, 28, 0.72); } -dialog.agent-dialog .hb-dialog__body { overflow: auto; } +dialog.agent-dialog { + padding: 0; + color: var(--ink); + width: min(620px, calc(100% - 32px)); + max-height: calc(100% - 48px); +} +dialog.agent-dialog::backdrop { + background: rgba(2, 5, 28, 0.72); +} +dialog.agent-dialog .hb-dialog__body { + overflow: auto; +} @media (max-width: 900px) { - .three, .feats, .platforms { grid-template-columns: 1fr; } - .three > div + div, .platform + .platform { border-left: 0; border-top: 1px solid var(--border); } - .life, .codegrid, .paperrow, .sec-h { grid-template-columns: 1fr; } - .hero h1 { font-size: 60px; line-height: 58px; } - .sec-h h2, .page-h h1 { font-size: 44px; line-height: 46px; } - .close h2 { font-size: 52px; line-height: 52px; } - .foot .g { grid-template-columns: 1fr 1fr; } - .perch { display: none; } + .three, + .feats, + .platforms { + grid-template-columns: 1fr; + } + .three > div + div, + .platform + .platform { + border-left: 0; + border-top: 1px solid var(--border); + } + .life, + .codegrid, + .paperrow, + .sec-h { + grid-template-columns: 1fr; + } + .hero h1 { + font-size: 60px; + line-height: 58px; + } + .sec-h h2, + .page-h h1 { + font-size: 44px; + line-height: 46px; + } + .close h2 { + font-size: 52px; + line-height: 52px; + } + .foot .g { + grid-template-columns: 1fr 1fr; + } + .perch { + display: none; + } } @media (max-width: 560px) { - .mk .in { padding: 0 16px; } - .topbar .in { gap: 12px; } - .topbar__links { gap: 12px; } - .hide-sm, .topbar__links { display: none; } - .hero { padding-bottom: 300px; } - .hero .beach { height: 300px; } - .hero h1 { font-size: 44px; line-height: 44px; } - .sec { padding: 72px 0; } - .feat { grid-template-columns: 1fr; } - .life li { grid-template-columns: 1fr; gap: 4px; } - .agent-list section { padding: 20px 16px; } -} -dialog.agent-dialog, dialog.agent-dialog * { box-sizing: border-box; } -dialog.agent-dialog .hb-dialog__body > *, .agent-steps > li { min-width: 0; } -.agent-steps .hb-agent__cmd code { overflow-x: auto; } + .mk .in { + padding: 0 16px; + } + .topbar .in { + gap: 12px; + } + .topbar__links { + gap: 12px; + } + .hide-sm, + .topbar__links { + display: none; + } + .hero { + padding-bottom: 300px; + } + .hero .beach { + height: 300px; + } + .hero h1 { + font-size: 44px; + line-height: 44px; + } + .sec { + padding: 72px 0; + } + .feat { + grid-template-columns: 1fr; + } + .life li { + grid-template-columns: 1fr; + gap: 4px; + } + .agent-list section { + padding: 20px 16px; + } +} +dialog.agent-dialog, +dialog.agent-dialog * { + box-sizing: border-box; +} +dialog.agent-dialog .hb-dialog__body > *, +.agent-steps > li { + min-width: 0; +} +.agent-steps .hb-agent__cmd code { + overflow-x: auto; +} diff --git a/test/agents.test.ts b/test/agents.test.ts index 8d409b0..fce496e 100644 --- a/test/agents.test.ts +++ b/test/agents.test.ts @@ -1,11 +1,23 @@ // SPDX-License-Identifier: AGPL-3.0-only /** The agent data every page shares: the fixed order, the prompt and the one real deep link. */ import { expect, test } from 'bun:test' -import { agents, cursorConfig, cursorLink, installLine, prompt } from '../src/lib/agents' +import { + agents, + cursorConfig, + cursorLink, + installLine, + prompt, +} from '../src/lib/agents' import { llmsFull, llmsIndex } from '../src/lib/llms' test('agents come in the design system order', () => { - expect(agents.map((agent) => agent.name)).toEqual(['Claude', 'Cursor', 'VS Code', 'Codex', 'ChatGPT']) + expect(agents.map((agent) => agent.name)).toEqual([ + 'Claude', + 'Cursor', + 'VS Code', + 'Codex', + 'ChatGPT', + ]) }) test('the prompt carries the install line and never asks for a key', () => { expect(installLine).toBe('curl -fsSL https://hbx.sh | sh') @@ -15,7 +27,9 @@ test('the prompt carries the install line and never asks for a key', () => { }) test("Cursor's link carries its server config, base64 encoded, with no key", () => { const config = new URL(cursorLink).searchParams.get('config') ?? '' - expect(JSON.parse(Buffer.from(config, 'base64').toString('utf8'))).toEqual(JSON.parse(cursorConfig)) + expect(JSON.parse(Buffer.from(config, 'base64').toString('utf8'))).toEqual( + JSON.parse(cursorConfig), + ) expect(cursorConfig).not.toContain('KEY') }) test('llms.txt follows llmstxt.org: an H1, a blockquote, then H2 link lists', () => { diff --git a/test/downloads.test.ts b/test/downloads.test.ts index 54b1871..d328a36 100644 --- a/test/downloads.test.ts +++ b/test/downloads.test.ts @@ -2,8 +2,15 @@ /** The manifest from dl.hbx.sh: what the page accepts, and how the Worker fills the built page. */ import { describe, expect, test } from 'bun:test' import { readFileSync } from 'node:fs' -import { desktopKeyRawUrl, desktopKeyUrl, files, parseManifest, verifyCommands } from '../src/lib/downloads' +import { + desktopKeyRawUrl, + desktopKeyUrl, + files, + parseManifest, + verifyCommands, +} from '../src/lib/downloads' import { llmsFull } from '../src/lib/llms' +import { buttons } from '../src/lib/machine' import { fillDownloads, readManifest } from '../worker/download' const sha = 'a'.repeat(128) @@ -12,13 +19,18 @@ const good = { url: 'https://dl.hbx.sh/desktop/0.1.0/Hermitbox-0.1.0-x86_64.AppImage', bytes: 92_000_000, sha512: sha, - statement: 'https://dl.hbx.sh/desktop/0.1.0/Hermitbox-0.1.0-x86_64.AppImage.statement', - signature: 'https://dl.hbx.sh/desktop/0.1.0/Hermitbox-0.1.0-x86_64.AppImage.statement.sig', + statement: + 'https://dl.hbx.sh/desktop/0.1.0/Hermitbox-0.1.0-x86_64.AppImage.statement', + signature: + 'https://dl.hbx.sh/desktop/0.1.0/Hermitbox-0.1.0-x86_64.AppImage.statement.sig', } describe('parseManifest', () => { test('keeps a well-formed file on dl.hbx.sh', () => { - expect(parseManifest({ version: '0.1.0', files: [good] })).toEqual({ version: '0.1.0', files: [good] }) + expect(parseManifest({ version: '0.1.0', files: [good] })).toEqual({ + version: '0.1.0', + files: [good], + }) }) test('leaves out files off dl.hbx.sh, unknown, repeated or malformed', () => { const bad = [ @@ -33,15 +45,24 @@ describe('parseManifest', () => { null, ] expect(parseManifest({ version: '0.1.0', files: bad })).toBeUndefined() - expect(parseManifest({ version: '0.1.0', files: [good, good] })?.files).toHaveLength(1) + expect( + parseManifest({ version: '0.1.0', files: [good, good] })?.files, + ).toHaveLength(1) }) test('refuses a manifest without a version or files', () => { - for (const value of [null, 'x', {}, { version: 'latest', files: [good] }, { version: '0.1.0', files: {} }]) + for (const value of [ + null, + 'x', + {}, + { version: 'latest', files: [good] }, + { version: '0.1.0', files: {} }, + ]) expect(parseManifest(value)).toBeUndefined() }) test('normalises links so no quote reaches the page', () => { const quoted = { ...good, url: 'https://dl.hbx.sh/a">' } - const url = parseManifest({ version: '0.1.0', files: [quoted] })?.files[0]?.url + const url = parseManifest({ version: '0.1.0', files: [quoted] })?.files[0] + ?.url expect(url).not.toContain('"') expect(url).not.toContain('<') }) @@ -51,13 +72,20 @@ describe('parseManifest', () => { }) describe('readManifest', () => { - const answer = (body: unknown, status = 200) => (async () => Response.json(body, { status })) as unknown as typeof fetch + const answer = (body: unknown, status = 200) => + (async () => Response.json(body, { status })) as unknown as typeof fetch test('reads a published manifest', async () => { - expect((await readManifest(answer({ version: '0.1.0', files: [good] })))?.files).toHaveLength(1) + expect( + (await readManifest(answer({ version: '0.1.0', files: [good] })))?.files, + ).toHaveLength(1) }) test('is undefined when dl.hbx.sh has nothing or is unreachable', async () => { expect(await readManifest(answer({}, 404))).toBeUndefined() - expect(await readManifest((async () => { throw new Error('no route') }) as unknown as typeof fetch)).toBeUndefined() + expect( + await readManifest((async () => { + throw new Error('no route') + }) as unknown as typeof fetch), + ).toBeUndefined() }) }) @@ -82,7 +110,10 @@ describe('fillDownloads', () => { expect(html).toContain('Download for Linux') expect(html).toContain(sha) expect(html).toContain('>0.1.0<') - expect(html.match(/aria-disabled="true"/g)).toHaveLength(2) + const every = (['linux', 'macos', 'windows'] as const).flatMap((platform) => + buttons(platform), + ) + expect(html.match(/aria-disabled="true"/g)).toHaveLength(every.length - 1) }) }) diff --git a/test/machine.test.ts b/test/machine.test.ts new file mode 100644 index 0000000..9a11c97 --- /dev/null +++ b/test/machine.test.ts @@ -0,0 +1,157 @@ +// SPDX-License-Identifier: AGPL-3.0-only +/** Which machine the download page puts first, from what real browsers report. */ +import { describe, expect, test } from 'bun:test' +import { detect, fromHints, fromLegacy, offer } from '../src/lib/machine' + +const ua = { + safariMac: + 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15', + firefoxLinux: + 'Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0', + firefoxLinuxArm: + 'Mozilla/5.0 (X11; Linux aarch64; rv:133.0) Gecko/20100101 Firefox/133.0', + edgeWindows: + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0', + chromeAndroid: + 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36', + chromeOs: + 'Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', +} + +describe('fromHints', () => { + test('a Mac with Apple silicon and one with Intel', () => { + expect( + fromHints({ platform: 'macOS', architecture: 'arm', bitness: '64' }), + ).toEqual({ + platform: 'macos', + cpu: 'aarch64', + }) + expect( + fromHints({ platform: 'macOS', architecture: 'x86', bitness: '64' }), + ).toEqual({ + platform: 'macos', + cpu: 'x86_64', + }) + }) + test('no cpu without a 64-bit answer, and nothing for a phone or another system', () => { + expect( + fromHints({ platform: 'Windows', architecture: 'x86', bitness: '32' }), + ).toEqual({ + platform: 'windows', + }) + expect( + fromHints({ platform: 'Linux', architecture: '', bitness: '' }), + ).toEqual({ platform: 'linux' }) + expect(fromHints({ platform: 'Android', mobile: true })).toBeUndefined() + expect( + fromHints({ platform: 'Chrome OS', architecture: 'x86', bitness: '64' }), + ).toBeUndefined() + }) +}) + +describe('fromLegacy', () => { + test('Safari never says which Mac it is', () => { + expect( + fromLegacy({ + platform: 'MacIntel', + userAgent: ua.safariMac, + maxTouchPoints: 0, + }), + ).toEqual({ + platform: 'macos', + }) + }) + test('an iPad asking for the desktop site is not a Mac', () => { + expect( + fromLegacy({ + platform: 'MacIntel', + userAgent: ua.safariMac, + maxTouchPoints: 5, + }), + ).toBeUndefined() + }) + test('Linux names its cpu, Windows is Windows', () => { + expect( + fromLegacy({ platform: 'Linux x86_64', userAgent: ua.firefoxLinux }), + ).toEqual({ + platform: 'linux', + cpu: 'x86_64', + }) + expect( + fromLegacy({ platform: 'Linux aarch64', userAgent: ua.firefoxLinuxArm }), + ).toEqual({ + platform: 'linux', + cpu: 'aarch64', + }) + expect( + fromLegacy({ platform: 'Win32', userAgent: ua.edgeWindows }), + ).toEqual({ platform: 'windows' }) + }) + test('Android and ChromeOS get no answer', () => { + expect( + fromLegacy({ platform: 'Linux armv8l', userAgent: ua.chromeAndroid }), + ).toBeUndefined() + expect( + fromLegacy({ platform: 'Linux x86_64', userAgent: ua.chromeOs }), + ).toBeUndefined() + expect(fromLegacy({})).toBeUndefined() + }) +}) + +describe('detect', () => { + test('prefers the client hints', async () => { + const browser = { + platform: 'MacIntel', + userAgent: ua.safariMac, + userAgentData: { + getHighEntropyValues: async () => ({ + platform: 'macOS', + architecture: 'arm', + bitness: '64', + }), + }, + } + expect(await detect(browser)).toEqual({ platform: 'macos', cpu: 'aarch64' }) + }) + test('falls back when the hints are refused, and stops at a phone', async () => { + const refused = { + platform: 'Linux x86_64', + userAgent: ua.firefoxLinux, + userAgentData: { + getHighEntropyValues: () => + Promise.reject(new Error('NotAllowedError')), + }, + } + expect(await detect(refused)).toEqual({ platform: 'linux', cpu: 'x86_64' }) + expect( + await detect({ + userAgent: ua.chromeAndroid, + userAgentData: { mobile: true }, + }), + ).toBeUndefined() + }) +}) + +describe('offer', () => { + test('a Mac whose cpu is unknown gets both dmgs, one whose cpu is known gets its own', () => { + expect(offer({ platform: 'macos' })).toEqual([ + 'macos-aarch64-dmg', + 'macos-x86_64-dmg', + ]) + expect(offer({ platform: 'macos', cpu: 'x86_64' })).toEqual([ + 'macos-x86_64-dmg', + ]) + expect(offer({ platform: 'macos', cpu: 'aarch64' })).toEqual([ + 'macos-aarch64-dmg', + ]) + }) + test('Linux gets the AppImage for its cpu; Windows on Arm keeps the x64 installer', () => { + expect(offer({ platform: 'linux', cpu: 'aarch64' })).toEqual([ + 'linux-aarch64-appimage', + ]) + expect(offer({ platform: 'linux' })).toEqual(['linux-x86_64-appimage']) + expect(offer({ platform: 'windows', cpu: 'aarch64' })).toEqual([ + 'windows-x86_64-exe', + ]) + }) +}) diff --git a/test/worker.test.ts b/test/worker.test.ts index f58a7c2..a504a85 100644 --- a/test/worker.test.ts +++ b/test/worker.test.ts @@ -3,18 +3,26 @@ import { expect, test } from 'bun:test' import worker from '../worker/index' -const assets = { fetch: async () => new Response('

page

', { status: 200 }) } as unknown as Fetcher +const assets = { + fetch: async () => new Response('

page

', { status: 200 }), +} as unknown as Fetcher const get = (url: string) => worker.fetch(new Request(url), { ASSETS: assets }) test('www.hermitbox.dev redirects to the same path on hermitbox.dev', async () => { const answer = await get('https://www.hermitbox.dev/agents/?a=1#cursor') expect(answer.status).toBe(301) - expect(answer.headers.get('Location')).toBe('https://hermitbox.dev/agents/?a=1#cursor') + expect(answer.headers.get('Location')).toBe( + 'https://hermitbox.dev/agents/?a=1#cursor', + ) }) test('only hermitbox.dev is open to search engines', async () => { - expect((await get('https://hermitbox.dev/')).headers.get('X-Robots-Tag')).toBeNull() - expect((await get('https://hermitbox-site.cloudflare-c49.workers.dev/')).headers.get('X-Robots-Tag')).toBe( - 'noindex, nofollow', - ) + expect( + (await get('https://hermitbox.dev/')).headers.get('X-Robots-Tag'), + ).toBeNull() + expect( + ( + await get('https://hermitbox-site.cloudflare-c49.workers.dev/') + ).headers.get('X-Robots-Tag'), + ).toBe('noindex, nofollow') }) diff --git a/tsconfig.json b/tsconfig.json index 4f27c8e..3364dbc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,8 @@ { "extends": "astro/tsconfigs/strict", - "compilerOptions": { "types": ["@cloudflare/workers-types", "bun"], "noEmit": true }, + "compilerOptions": { + "types": ["@cloudflare/workers-types", "bun"], + "noEmit": true + }, "include": ["src/lib", "worker", "test", "scripts"] } diff --git a/worker/download.ts b/worker/download.ts index 6edc814..dfbbb2e 100644 --- a/worker/download.ts +++ b/worker/download.ts @@ -1,30 +1,50 @@ // SPDX-License-Identifier: AGPL-3.0-only /** Fills the built download page with the files dl.hbx.sh has published. Only files the manifest * lists, on dl.hbx.sh, get a link; everything else keeps the built "not published yet" state. */ -import { type Manifest, manifestUrl, parseManifest, size } from '../src/lib/downloads' +import { + type Manifest, + manifestUrl, + parseManifest, + size, +} from '../src/lib/downloads' /** How long a manifest is reused before dl.hbx.sh is asked again. */ export const manifestSeconds = 300 -export async function readManifest(fetcher: typeof fetch = fetch): Promise { +export async function readManifest( + fetcher: typeof fetch = fetch, +): Promise { try { - const answer = await fetcher(manifestUrl, { cf: { cacheTtl: manifestSeconds, cacheEverything: true } }) + const answer = await fetcher(manifestUrl, { + cf: { cacheTtl: manifestSeconds, cacheEverything: true }, + }) return answer.ok ? parseManifest(await answer.json()) : undefined } catch { return undefined } } -const escape = (text: string) => - text.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c] as string) +const escapeHtml = (text: string) => + text.replace( + /[&<>"']/g, + (c) => + ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[ + c + ] as string, + ) export function fillDownloads(page: Response, manifest: Manifest | undefined) { if (!manifest) return page const published = new Map(manifest.files.map((file) => [file.id, file])) - const row = (id: string | null) => (id ? published.get(id as never) : undefined) + const row = (id: string | null) => + id ? published.get(id as never) : undefined return new HTMLRewriter() - .on('[data-dl-state]', { element: (el) => void el.setAttribute('data-dl-state', 'ready') }) - .on('[data-dl-version]', { element: (el) => void el.setInnerContent(manifest.version) }) + .on('[data-dl-state]', { + element: (el) => void el.setAttribute('data-dl-state', 'ready'), + }) + .on('[data-dl-version]', { + element: (el) => void el.setInnerContent(manifest.version), + }) .on('a[data-dl-file]', { element(el) { const file = row(el.getAttribute('data-dl-file')) @@ -39,9 +59,10 @@ export function fillDownloads(page: Response, manifest: Manifest | undefined) { const file = row(el.getAttribute('data-dl-size')) if (!file) return const name = new URL(file.url).pathname.split('/').at(-1) ?? 'download' - const link = (href: string, text: string) => `${escape(text)}` + const link = (href: string, text: string) => + `${escapeHtml(text)}` el.setInnerContent( - `${link(file.url, size(file.bytes))} · ${link(file.statement, 'statement')} · ${link(file.signature, 'signature')}
${file.sha512}`, + `${link(file.url, size(file.bytes))} · ${link(file.statement, 'statement')} · ${link(file.signature, 'signature')}
${file.sha512}`, { html: true }, ) }, diff --git a/worker/index.ts b/worker/index.ts index 7a1e158..6c9bce4 100644 --- a/worker/index.ts +++ b/worker/index.ts @@ -26,15 +26,23 @@ export default { return Response.redirect(url.toString(), 301) } let answer = await env.ASSETS.fetch(request) - if (url.pathname === '/download/' && answer.ok) answer = fillDownloads(answer, await readManifest()) + if (url.pathname === '/download/' && answer.ok) + answer = fillDownloads(answer, await readManifest()) const headers = new Headers(answer.headers) - for (const [name, value] of Object.entries(security)) headers.set(name, value) + for (const [name, value] of Object.entries(security)) + headers.set(name, value) if (url.pathname === '/download/') { headers.set('Cache-Control', 'public, max-age=60') headers.delete('ETag') } - if (url.pathname.endsWith('.txt')) headers.set('Content-Type', 'text/plain; charset=utf-8') - if (url.hostname !== productionHost) headers.set('X-Robots-Tag', 'noindex, nofollow') - return new Response(answer.body, { status: answer.status, statusText: answer.statusText, headers }) + if (url.pathname.endsWith('.txt')) + headers.set('Content-Type', 'text/plain; charset=utf-8') + if (url.hostname !== productionHost) + headers.set('X-Robots-Tag', 'noindex, nofollow') + return new Response(answer.body, { + status: answer.status, + statusText: answer.statusText, + headers, + }) }, } satisfies ExportedHandler