widefleet-darwin-arm64 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -14
- package/package.json +3 -1
- package/release.json +1 -1
- package/starter/AGENTS.md +4 -14
- package/starter/README.md +12 -15
- package/starter/package.json +3 -2
- package/starter/pnpm-lock.yaml +33 -75
- package/starter/pnpm-workspace.yaml +1 -0
- package/starters/tanstack-start/.gitattributes +2 -0
- package/starters/tanstack-start/.gitignore +19 -0
- package/starters/tanstack-start/.oxfmtrc.json +33 -0
- package/starters/tanstack-start/.oxlintrc.json +69 -0
- package/starters/tanstack-start/AGENTS.md +24 -0
- package/starters/tanstack-start/LICENSE +21 -0
- package/starters/tanstack-start/package.json +47 -0
- package/starters/tanstack-start/pnpm-lock.yaml +3130 -0
- package/starters/tanstack-start/pnpm-workspace.yaml +6 -0
- package/starters/tanstack-start/src/client.tsx +20 -0
- package/starters/tanstack-start/src/env.d.ts +7 -0
- package/starters/tanstack-start/src/lib/capture-error.ts +47 -0
- package/starters/tanstack-start/src/lib/errors.ts +42 -0
- package/starters/tanstack-start/src/lib/notes.functions.ts +86 -0
- package/starters/tanstack-start/src/lib/report-error.ts +7 -0
- package/starters/tanstack-start/src/lib/server/browser-errors.ts +88 -0
- package/starters/tanstack-start/src/lib/server/capture-error.ts +35 -0
- package/starters/tanstack-start/src/lib/server/context.ts +7 -0
- package/starters/tanstack-start/src/lib/server/data.ts +48 -0
- package/starters/tanstack-start/src/lib/server/identity.ts +30 -0
- package/starters/tanstack-start/src/register.d.ts +13 -0
- package/starters/tanstack-start/src/router.tsx +12 -0
- package/starters/tanstack-start/src/routes/__root.tsx +28 -0
- package/starters/tanstack-start/src/routes/index.tsx +127 -0
- package/starters/tanstack-start/src/routes/photos.$id.ts +27 -0
- package/starters/tanstack-start/src/server.ts +67 -0
- package/starters/tanstack-start/src/start.ts +28 -0
- package/starters/tanstack-start/src/styles.css +122 -0
- package/starters/tanstack-start/tools/build.ts +26 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/LICENSE +21 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/UPSTREAM.md +7 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/index.ts +21 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-effect-error-tag.ts +52 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-tag-comparison.ts +45 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-tagged-construction.ts +37 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-service-constructor-imports.ts +52 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/prefer-effect-match.ts +54 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/shared/tagged-values.ts +97 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/index.ts +47 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-array-filter-map.ts +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-chained-type-assertions.ts +77 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-conditional-empty-object-spread.ts +49 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-known-value-widening.ts +415 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-module-mocking.ts +80 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-object-parameters.ts +83 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reduce-accumulator-copy.ts +109 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reflect-apply.ts +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reflect-get.ts +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-runtime-typeof.ts +77 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts +46 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-parameters.ts +69 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-returns.ts +82 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-type-aliases.ts +54 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts +154 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-widen-then-assert.ts +366 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/require-readable-spacing.ts +47 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/require-safety-comment-for-type-assertion.ts +131 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/array-method.ts +94 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/dictionary-types.ts +515 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/function-parameters.ts +49 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/lexical-type-parameters.ts +61 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/reflect-method.ts +24 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/scope.ts +15 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/type-alias-resolution.ts +250 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/LICENSE +22 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/UPSTREAM.md +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-ast.ts +51 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-between-statements.ts +906 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-options.d.ts +87 -0
- package/starters/tanstack-start/tools/types.ts +31 -0
- package/starters/tanstack-start/tsconfig.json +20 -0
- package/starters/tanstack-start/vite.config.ts +49 -0
- package/starters/tanstack-start/wrangler.jsonc +17 -0
- package/widefleet +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* GENERATED, DO NOT EDIT DIRECTLY */
|
|
2
|
+
|
|
3
|
+
/* @checksum: 3QCTtOH6rJM5_AGJ58rGpeEaBEfaJz17MSCxWB4X_PU */
|
|
4
|
+
|
|
5
|
+
export type PaddingType = 'any' | 'never' | 'always'
|
|
6
|
+
export type StatementOption =
|
|
7
|
+
| StatementMatcher
|
|
8
|
+
| [StatementMatcher, ...StatementMatcher[]]
|
|
9
|
+
export type StatementMatcher =
|
|
10
|
+
| StatementType
|
|
11
|
+
| SelectorOption
|
|
12
|
+
export type StatementType =
|
|
13
|
+
| '*'
|
|
14
|
+
| 'exports'
|
|
15
|
+
| 'require'
|
|
16
|
+
| 'directive'
|
|
17
|
+
| 'iife'
|
|
18
|
+
| 'block'
|
|
19
|
+
| 'empty'
|
|
20
|
+
| 'function'
|
|
21
|
+
| 'ts-method'
|
|
22
|
+
| 'break'
|
|
23
|
+
| 'case'
|
|
24
|
+
| 'class'
|
|
25
|
+
| 'continue'
|
|
26
|
+
| 'debugger'
|
|
27
|
+
| 'default'
|
|
28
|
+
| 'do'
|
|
29
|
+
| 'for'
|
|
30
|
+
| 'if'
|
|
31
|
+
| 'import'
|
|
32
|
+
| 'switch'
|
|
33
|
+
| 'throw'
|
|
34
|
+
| 'try'
|
|
35
|
+
| 'while'
|
|
36
|
+
| 'with'
|
|
37
|
+
| 'cjs-export'
|
|
38
|
+
| 'cjs-import'
|
|
39
|
+
| 'enum'
|
|
40
|
+
| 'interface'
|
|
41
|
+
| 'function-overload'
|
|
42
|
+
| 'block-like'
|
|
43
|
+
| 'singleline-block-like'
|
|
44
|
+
| 'multiline-block-like'
|
|
45
|
+
| 'expression'
|
|
46
|
+
| 'singleline-expression'
|
|
47
|
+
| 'multiline-expression'
|
|
48
|
+
| 'return'
|
|
49
|
+
| 'singleline-return'
|
|
50
|
+
| 'multiline-return'
|
|
51
|
+
| 'export'
|
|
52
|
+
| 'singleline-export'
|
|
53
|
+
| 'multiline-export'
|
|
54
|
+
| 'var'
|
|
55
|
+
| 'singleline-var'
|
|
56
|
+
| 'multiline-var'
|
|
57
|
+
| 'let'
|
|
58
|
+
| 'singleline-let'
|
|
59
|
+
| 'multiline-let'
|
|
60
|
+
| 'const'
|
|
61
|
+
| 'singleline-const'
|
|
62
|
+
| 'multiline-const'
|
|
63
|
+
| 'using'
|
|
64
|
+
| 'singleline-using'
|
|
65
|
+
| 'multiline-using'
|
|
66
|
+
| 'type'
|
|
67
|
+
| 'singleline-type'
|
|
68
|
+
| 'multiline-type'
|
|
69
|
+
export type PaddingLineBetweenStatementsSchema0 = {
|
|
70
|
+
blankLine: PaddingType
|
|
71
|
+
prev: StatementOption
|
|
72
|
+
next: StatementOption
|
|
73
|
+
}[]
|
|
74
|
+
|
|
75
|
+
export interface SelectorOption {
|
|
76
|
+
selector: string
|
|
77
|
+
lineMode?: 'any' | 'singleline' | 'multiline'
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type PaddingLineBetweenStatementsRuleOptions
|
|
81
|
+
= PaddingLineBetweenStatementsSchema0
|
|
82
|
+
|
|
83
|
+
export type RuleOptions
|
|
84
|
+
= PaddingLineBetweenStatementsRuleOptions
|
|
85
|
+
export type MessageIds =
|
|
86
|
+
| 'unexpectedBlankLine'
|
|
87
|
+
| 'expectedBlankLine'
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { mkdir, readFile } from "node:fs/promises";
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { once } from "node:events";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { Generator, getConfig } from "@tanstack/router-generator";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
|
|
8
|
+
await mkdir(new URL("../.platform", import.meta.url), { recursive: true });
|
|
9
|
+
|
|
10
|
+
const manifest = new URL(import.meta.resolve("wrangler/package.json"));
|
|
11
|
+
|
|
12
|
+
const { bin } = z
|
|
13
|
+
.object({ bin: z.object({ wrangler: z.string() }) })
|
|
14
|
+
.parse(JSON.parse(await readFile(manifest, "utf8")));
|
|
15
|
+
|
|
16
|
+
const child = spawn(
|
|
17
|
+
process.execPath,
|
|
18
|
+
[fileURLToPath(new URL(bin.wrangler, manifest)), "types", ".platform/worker-configuration.d.ts"],
|
|
19
|
+
{ stdio: "inherit" },
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const [code] = z
|
|
23
|
+
.tuple([z.number().nullable(), z.string().nullable()])
|
|
24
|
+
.parse(await once(child, "exit"));
|
|
25
|
+
|
|
26
|
+
if (code !== 0) throw new Error("Wrangler type generation failed");
|
|
27
|
+
|
|
28
|
+
await new Generator({
|
|
29
|
+
root: process.cwd(),
|
|
30
|
+
config: getConfig({ generatedRouteTree: ".platform/routeTree.gen.ts" }, process.cwd()),
|
|
31
|
+
}).run();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@tsconfig/strictest/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2023",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "Bundler",
|
|
7
|
+
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
8
|
+
"verbatimModuleSyntax": true,
|
|
9
|
+
"isolatedModules": true,
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"allowJs": false,
|
|
13
|
+
"checkJs": false,
|
|
14
|
+
"jsx": "react-jsx",
|
|
15
|
+
"types": ["vite/client"],
|
|
16
|
+
"skipLibCheck": true
|
|
17
|
+
},
|
|
18
|
+
"include": ["src", "tools", "vite.config.ts", ".platform/worker-configuration.d.ts"],
|
|
19
|
+
"exclude": ["tools/oxlint"]
|
|
20
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
3
|
+
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
4
|
+
import react from "@vitejs/plugin-react";
|
|
5
|
+
import { defineConfig } from "vite";
|
|
6
|
+
|
|
7
|
+
export default defineConfig(({ command }) => {
|
|
8
|
+
const buildId = process.env["WIDEFLEET_BUILD_ID"];
|
|
9
|
+
|
|
10
|
+
if (command === "build" && !buildId)
|
|
11
|
+
throw new Error("Run pnpm build to generate a shared build version.");
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
define: {
|
|
15
|
+
__WIDEFLEET_BUILD_ID__: JSON.stringify(buildId ?? "development"),
|
|
16
|
+
"process.env.NODE_ENV": JSON.stringify(command === "build" ? "production" : "development"),
|
|
17
|
+
},
|
|
18
|
+
build: { sourcemap: true },
|
|
19
|
+
environments: {
|
|
20
|
+
client: { build: { outDir: "build/public" } },
|
|
21
|
+
ssr: { build: { outDir: "build/server" } },
|
|
22
|
+
},
|
|
23
|
+
plugins: [
|
|
24
|
+
cloudflare({
|
|
25
|
+
viteEnvironment: { name: "ssr" },
|
|
26
|
+
config: { main: "src/server.ts" },
|
|
27
|
+
}),
|
|
28
|
+
tanstackStart({
|
|
29
|
+
router: {
|
|
30
|
+
generatedRouteTree: fileURLToPath(
|
|
31
|
+
new URL("./.platform/routeTree.gen.ts", import.meta.url),
|
|
32
|
+
),
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
35
|
+
react(),
|
|
36
|
+
{
|
|
37
|
+
name: "widefleet-build-version",
|
|
38
|
+
generateBundle() {
|
|
39
|
+
if (this.environment.name === "client")
|
|
40
|
+
this.emitFile({
|
|
41
|
+
type: "asset",
|
|
42
|
+
fileName: "_widefleet/version.json",
|
|
43
|
+
source: JSON.stringify({ version: buildId }),
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
};
|
|
49
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "node_modules/wrangler/config-schema.json",
|
|
3
|
+
"name": "team-notes",
|
|
4
|
+
"main": "build/server/index.js",
|
|
5
|
+
"compatibility_date": "2026-10-01",
|
|
6
|
+
"compatibility_flags": ["nodejs_compat"],
|
|
7
|
+
"assets": { "directory": "build/public", "binding": "ASSETS" },
|
|
8
|
+
"vars": { "APP_NAME": "Team-Notizen" },
|
|
9
|
+
"d1_databases": [
|
|
10
|
+
{
|
|
11
|
+
"binding": "DB",
|
|
12
|
+
"database_name": "notes",
|
|
13
|
+
"database_id": "00000000-0000-4000-8000-000000000010",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
"r2_buckets": [{ "binding": "FILES", "bucket_name": "photos" }],
|
|
17
|
+
}
|
package/widefleet
CHANGED
|
Binary file
|