widefleet-darwin-arm64 0.3.2 → 0.4.0

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 (83) hide show
  1. package/README.md +26 -10
  2. package/package.json +3 -1
  3. package/release.json +1 -1
  4. package/starter/AGENTS.md +4 -14
  5. package/starter/README.md +13 -16
  6. package/starter/package.json +3 -2
  7. package/starter/pnpm-lock.yaml +33 -75
  8. package/starter/pnpm-workspace.yaml +1 -0
  9. package/starters/tanstack-start/.gitattributes +2 -0
  10. package/starters/tanstack-start/.gitignore +19 -0
  11. package/starters/tanstack-start/.oxfmtrc.json +33 -0
  12. package/starters/tanstack-start/.oxlintrc.json +69 -0
  13. package/starters/tanstack-start/AGENTS.md +24 -0
  14. package/starters/tanstack-start/LICENSE +21 -0
  15. package/starters/tanstack-start/README.md +66 -0
  16. package/starters/tanstack-start/package.json +47 -0
  17. package/starters/tanstack-start/pnpm-lock.yaml +3130 -0
  18. package/starters/tanstack-start/pnpm-workspace.yaml +6 -0
  19. package/starters/tanstack-start/src/client.tsx +20 -0
  20. package/starters/tanstack-start/src/env.d.ts +7 -0
  21. package/starters/tanstack-start/src/lib/capture-error.ts +47 -0
  22. package/starters/tanstack-start/src/lib/errors.ts +42 -0
  23. package/starters/tanstack-start/src/lib/notes.functions.ts +86 -0
  24. package/starters/tanstack-start/src/lib/report-error.ts +7 -0
  25. package/starters/tanstack-start/src/lib/server/browser-errors.ts +88 -0
  26. package/starters/tanstack-start/src/lib/server/capture-error.ts +35 -0
  27. package/starters/tanstack-start/src/lib/server/context.ts +7 -0
  28. package/starters/tanstack-start/src/lib/server/data.ts +48 -0
  29. package/starters/tanstack-start/src/lib/server/identity.ts +30 -0
  30. package/starters/tanstack-start/src/register.d.ts +13 -0
  31. package/starters/tanstack-start/src/router.tsx +12 -0
  32. package/starters/tanstack-start/src/routes/__root.tsx +28 -0
  33. package/starters/tanstack-start/src/routes/index.tsx +127 -0
  34. package/starters/tanstack-start/src/routes/photos.$id.ts +27 -0
  35. package/starters/tanstack-start/src/server.ts +67 -0
  36. package/starters/tanstack-start/src/start.ts +28 -0
  37. package/starters/tanstack-start/src/styles.css +122 -0
  38. package/starters/tanstack-start/tools/build.ts +26 -0
  39. package/starters/tanstack-start/tools/oxlint/anti-slop/LICENSE +21 -0
  40. package/starters/tanstack-start/tools/oxlint/anti-slop/UPSTREAM.md +7 -0
  41. package/starters/tanstack-start/tools/oxlint/anti-slop/effect/index.ts +21 -0
  42. package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-effect-error-tag.ts +52 -0
  43. package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-tag-comparison.ts +45 -0
  44. package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-tagged-construction.ts +37 -0
  45. package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-service-constructor-imports.ts +52 -0
  46. package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/prefer-effect-match.ts +54 -0
  47. package/starters/tanstack-start/tools/oxlint/anti-slop/effect/shared/tagged-values.ts +97 -0
  48. package/starters/tanstack-start/tools/oxlint/anti-slop/index.ts +47 -0
  49. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-array-filter-map.ts +28 -0
  50. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-chained-type-assertions.ts +77 -0
  51. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-conditional-empty-object-spread.ts +49 -0
  52. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-known-value-widening.ts +415 -0
  53. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-module-mocking.ts +80 -0
  54. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-object-parameters.ts +83 -0
  55. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reduce-accumulator-copy.ts +109 -0
  56. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reflect-apply.ts +28 -0
  57. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reflect-get.ts +28 -0
  58. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-runtime-typeof.ts +77 -0
  59. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts +46 -0
  60. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-parameters.ts +69 -0
  61. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-returns.ts +82 -0
  62. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-type-aliases.ts +54 -0
  63. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts +154 -0
  64. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-widen-then-assert.ts +366 -0
  65. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/require-readable-spacing.ts +47 -0
  66. package/starters/tanstack-start/tools/oxlint/anti-slop/rules/require-safety-comment-for-type-assertion.ts +131 -0
  67. package/starters/tanstack-start/tools/oxlint/anti-slop/shared/array-method.ts +94 -0
  68. package/starters/tanstack-start/tools/oxlint/anti-slop/shared/dictionary-types.ts +515 -0
  69. package/starters/tanstack-start/tools/oxlint/anti-slop/shared/function-parameters.ts +49 -0
  70. package/starters/tanstack-start/tools/oxlint/anti-slop/shared/lexical-type-parameters.ts +61 -0
  71. package/starters/tanstack-start/tools/oxlint/anti-slop/shared/reflect-method.ts +24 -0
  72. package/starters/tanstack-start/tools/oxlint/anti-slop/shared/scope.ts +15 -0
  73. package/starters/tanstack-start/tools/oxlint/anti-slop/shared/type-alias-resolution.ts +250 -0
  74. package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/LICENSE +22 -0
  75. package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/UPSTREAM.md +28 -0
  76. package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-ast.ts +51 -0
  77. package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-between-statements.ts +906 -0
  78. package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-options.d.ts +87 -0
  79. package/starters/tanstack-start/tools/types.ts +31 -0
  80. package/starters/tanstack-start/tsconfig.json +20 -0
  81. package/starters/tanstack-start/vite.config.ts +49 -0
  82. package/starters/tanstack-start/wrangler.jsonc +17 -0
  83. package/widefleet +0 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Everyday Systems 42 GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,66 @@
1
+ # TanStack Start app on Widefleet
2
+
3
+ This independent React app uses TanStack Start, D1 notes and private R2 photos.
4
+ You need Node.js 22.18 or newer, an existing pnpm 10.34.5 or newer installation,
5
+ and the Widefleet CLI release that generated this project. With pnpm's default
6
+ version management, the project automatically downloads and uses its pinned pnpm
7
+ 12.4.2. Docker and the Widefleet source repository are not required.
8
+
9
+ ```sh
10
+ pnpm install --frozen-lockfile
11
+ pnpm check
12
+ pnpm dev
13
+ ```
14
+
15
+ Open the local URL printed by the development server. The page shows a synthetic
16
+ identity; create a note with a photo to verify local storage. JavaScript is
17
+ required to submit the example form.
18
+
19
+ ## Build and deploy
20
+
21
+ Stop the development server and connect to your company's installation:
22
+
23
+ ```sh
24
+ widefleet login
25
+ pnpm check
26
+ widefleet deploy
27
+ ```
28
+
29
+ The CLI builds the app and deploys the Worker declared in `wrangler.jsonc`. Review
30
+ its `name` and the platform selected by `widefleet config show` before deploying.
31
+ After activation, open the printed app URL and sign in with your company account.
32
+ See [CLI installation](https://widefleet.com/docs/getting-started/installation)
33
+ for setup and login recovery.
34
+
35
+ ## App development
36
+
37
+ Edit `src/routes` and use `context.user` in server functions and server routes
38
+ for the verified company identity. Preserve authentication in `src/server.ts`
39
+ and CSRF protection in `src/start.ts`. Deployed apps cannot use separate cookie
40
+ sessions.
41
+
42
+ Declare resources in `wrangler.jsonc`. Run `pnpm types` after adding routes or
43
+ changing bindings; `.platform` contains generated files. Use `pnpm build` when
44
+ building manually: it generates a single version for browser and server error
45
+ reports. Direct `vite build` exits with a message to use the build script.
46
+
47
+ The example uses `DB` and `FILES`; keep those declarations while using its notes
48
+ and photos. Database and file contents survive code deployments and rollback.
49
+ Use [explicit migrations](https://widefleet.com/docs/guides/migrations) when
50
+ changing an existing schema.
51
+
52
+ The starter captures unexpected server and browser errors. For caught technical
53
+ failures, use `captureError` from `src/lib/server/capture-error.ts` on the server
54
+ or `src/lib/capture-error.ts` in browser code. Keep source maps private and
55
+ preserve the browser's embedded build version.
56
+
57
+ ```sh
58
+ widefleet logs --level error --since 1h --json
59
+ ```
60
+
61
+ Runtime logs require the operator's telemetry services. If the command fails,
62
+ report that failure rather than assuming there are no errors.
63
+
64
+ Next, [publish an isolated preview](https://widefleet.com/docs/guides/deployments)
65
+ or follow [app development](https://widefleet.com/docs/guides/app-development)
66
+ for resources, network permissions and IT connectors.
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@platform/starter-tanstack-start",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "scripts": {
8
+ "dev": "vite --host 127.0.0.1",
9
+ "types": "node tools/types.ts",
10
+ "build": "node tools/build.ts",
11
+ "typecheck": "pnpm types && tsc --noEmit",
12
+ "lint": "oxlint --type-aware --deny-warnings .",
13
+ "format": "oxfmt --write .",
14
+ "format:check": "oxfmt --check .",
15
+ "check": "pnpm typecheck && pnpm format:check && pnpm lint"
16
+ },
17
+ "dependencies": {
18
+ "@tanstack/react-router": "1.170.42",
19
+ "@tanstack/react-start": "1.168.61",
20
+ "better-result": "3.0.1",
21
+ "react": "19.3.0",
22
+ "react-dom": "19.3.0",
23
+ "zod": "4.6.5"
24
+ },
25
+ "devDependencies": {
26
+ "@cloudflare/vite-plugin": "1.62.0",
27
+ "@oxlint/plugins": "1.86.0",
28
+ "@tanstack/router-generator": "1.167.41",
29
+ "@tsconfig/strictest": "2.0.8",
30
+ "@types/node": "22.18.0",
31
+ "@types/react": "19.3.0",
32
+ "@types/react-dom": "19.3.0",
33
+ "@vitejs/plugin-react": "6.1.2",
34
+ "crossws": "0.4.15",
35
+ "oxfmt": "0.71.0",
36
+ "oxlint": "1.86.0",
37
+ "oxlint-tsgolint": "7.0.2003",
38
+ "typescript": "6.0.3",
39
+ "vite": "8.3.2",
40
+ "wrangler": "4.147.0"
41
+ },
42
+ "engines": {
43
+ "node": ">=22.18.0",
44
+ "pnpm": ">=10.34.5"
45
+ },
46
+ "packageManager": "pnpm@12.4.2"
47
+ }