@sdxc/kit 2026.11.1 → 2026.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +68 -0
  2. package/changelog.jsonl +260 -0
  3. package/config.schema.json +14 -0
  4. package/dist/ci/install.d.ts +15 -0
  5. package/dist/ci/install.js +27 -0
  6. package/dist/ci/locate.d.ts +23 -0
  7. package/dist/ci/locate.js +43 -0
  8. package/dist/cli.js +6 -0
  9. package/dist/commands/ci/clean.d.ts +11 -0
  10. package/dist/commands/ci/clean.js +15 -0
  11. package/dist/commands/ci/list.d.ts +16 -0
  12. package/dist/commands/ci/list.js +24 -0
  13. package/dist/commands/ci/run.d.ts +70 -0
  14. package/dist/commands/ci/run.js +43 -0
  15. package/dist/commands/ci/signoff.d.ts +15 -0
  16. package/dist/commands/ci/signoff.js +15 -0
  17. package/dist/commands/ci/verify.d.ts +17 -0
  18. package/dist/commands/ci/verify.js +15 -0
  19. package/dist/commands/create.js +3 -0
  20. package/dist/commands/pkg.d.ts +16 -0
  21. package/dist/commands/pkg.js +71 -0
  22. package/dist/commands/routes.d.ts +1 -1
  23. package/dist/config.d.ts +10 -4
  24. package/dist/config.js +8 -0
  25. package/dist/contract.d.ts +65 -1
  26. package/dist/contract.js +51 -0
  27. package/dist/create/workspace.d.ts +15 -0
  28. package/dist/create/workspace.js +42 -0
  29. package/dist/doctor/checks.js +4 -0
  30. package/dist/doctor/ci.d.ts +15 -0
  31. package/dist/doctor/ci.js +63 -0
  32. package/dist/doctor/translations.d.ts +19 -0
  33. package/dist/doctor/translations.js +144 -0
  34. package/dist/package-manager.d.ts +2 -0
  35. package/dist/package-manager.js +16 -2
  36. package/dist/pkg/catalog.d.ts +12 -0
  37. package/dist/pkg/catalog.js +153 -0
  38. package/dist/pkg/resolve.d.ts +67 -0
  39. package/dist/pkg/resolve.js +147 -0
  40. package/dist/upgrade/changelog.d.ts +2 -2
  41. package/dist/upgrade/project.d.ts +2 -2
  42. package/package.json +10 -8
  43. package/registry/ui/banner.json +16 -0
  44. package/registry/ui/confirm.json +8 -4
  45. package/registry/ui/group.json +2 -2
  46. package/registry/ui/input.json +2 -2
  47. package/registry/ui/link-button.json +2 -2
  48. package/registry/ui/property-list.json +18 -0
  49. package/registry/ui/relative-time.json +17 -0
  50. package/registry/ui/status-dot.json +16 -0
  51. package/registry/ui/text-field.json +7 -3
  52. package/registry/ui/timeline.json +16 -0
  53. package/registry/ui/typeset.json +2 -2
  54. package/templates/app/.config/sdxc/ci.ts +26 -0
  55. package/templates/app/.github/workflows/ci.yml +46 -0
  56. package/templates/app/README.md +4 -0
  57. package/templates/app/package.json +1 -0
  58. package/templates/app/public/_headers +4 -0
@@ -0,0 +1,46 @@
1
+ # Runs the same script `sdxc ci` runs locally (.config/sdxc/ci.ts). The gate job skips the
2
+ # whole run for a commit a contributor already signed off with a green local `sdxc ci`.
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ pull_request:
9
+
10
+ permissions:
11
+ contents: read
12
+ statuses: read
13
+
14
+ concurrency:
15
+ group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
16
+ cancel-in-progress: true
17
+
18
+ jobs:
19
+ gate:
20
+ name: Signoff
21
+ runs-on: ubuntu-latest
22
+ outputs:
23
+ signed: ${{ steps.verify.outputs.signed }}
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: oven-sh/setup-bun@v2
27
+ - run: bun install --frozen-lockfile
28
+ - id: verify
29
+ env:
30
+ GITHUB_TOKEN: ${{ github.token }}
31
+ SHA: ${{ github.event.pull_request.head.sha || github.sha }}
32
+ run: |
33
+ if bunx sdxc ci verify "$SHA" --wait 60s; then
34
+ echo "signed=true" >> "$GITHUB_OUTPUT"
35
+ fi
36
+
37
+ ci:
38
+ name: CI
39
+ needs: gate
40
+ if: needs.gate.outputs.signed != 'true'
41
+ runs-on: ubuntu-latest
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - uses: oven-sh/setup-bun@v2
45
+ - run: bun install --frozen-lockfile
46
+ - run: bunx sdxc ci --runner remote
@@ -100,3 +100,7 @@ sdxc deploy
100
100
  `sdxc deploy` builds, then runs `sdxc run db migrate --remote` and `sdxc run deploy`, and asks
101
101
  before it changes production. To migrate or deploy differently, edit `app/commands/db/migrate.ts`
102
102
  or `app/commands/deploy.ts`.
103
+
104
+ The build names every file under `/assets/` after its content, and `public/_headers` serves them
105
+ with `Cache-Control: public, max-age=31536000, immutable`, so a browser keeps each one for a year.
106
+ Put a file you add to `public/` anywhere outside `public/assets/`, where it is revalidated.
@@ -54,6 +54,7 @@
54
54
  "devDependencies": {
55
55
  "@cloudflare/vite-plugin": "2.0.0-beta.sha-ad79608dd",
56
56
  "@pitlane/vite-plugin-remix": "0.8.0",
57
+ "@sdxc/ci": "0.0.1",
57
58
  "@sdxc/cloudflare-mocks": "0.0.1",
58
59
  "@sdxc/kit": "0.0.1",
59
60
  "@sdxc/spec": "0.0.1",
@@ -0,0 +1,4 @@
1
+ # Vite names every file it writes under /assets/ after its content, so a changed file ships
2
+ # under a new URL and a browser can keep each one for a year without asking again.
3
+ /assets/*
4
+ Cache-Control: public, max-age=31536000, immutable