anhedral 0.13.0 → 0.15.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.
- package/README.md +35 -232
- package/assets/patches/audit-deps.mjs +12 -2
- package/assets/ui/LICENSE.shadcn +21 -0
- package/assets/ui/UPSTREAM.json +33 -0
- package/assets/ui/native/button.tsx +85 -0
- package/assets/ui/native/card.tsx +33 -0
- package/assets/ui/native/dialog.tsx +75 -0
- package/assets/ui/native/input.tsx +27 -0
- package/assets/ui/native/label.tsx +4 -0
- package/assets/ui/native/layout.tsx +26 -0
- package/assets/ui/native/text.tsx +20 -0
- package/assets/ui/native/theme-switcher.tsx +22 -0
- package/assets/ui/theme-storage.ts +25 -0
- package/assets/ui/theme.tsx +66 -0
- package/assets/ui/web/button.tsx +59 -0
- package/assets/ui/web/input.tsx +21 -0
- package/assets/ui/web/label.tsx +19 -0
- package/dist/capabilities.d.ts +5 -5
- package/dist/capabilities.js +3 -21
- package/dist/capability-contract.d.ts +3 -3
- package/dist/capability-contract.js +11 -50
- package/dist/cli-delivery.d.ts +1 -1
- package/dist/cli-delivery.js +5 -65
- package/dist/cli-output.js +3 -3
- package/dist/command-schema.js +35 -86
- package/dist/delivery-evidence.d.ts +1 -1
- package/dist/delivery-evidence.js +7 -36
- package/dist/delivery.d.ts +2 -8
- package/dist/delivery.js +20 -101
- package/dist/dependencies.d.ts +6 -57
- package/dist/dependencies.js +54 -188
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -4
- package/dist/inspector-model.d.ts +2 -2
- package/dist/integration-service-readers.d.ts +1 -2
- package/dist/integration-service-readers.js +3 -84
- package/dist/lifecycle-model.d.ts +1 -1
- package/dist/lifecycle-model.js +1 -1
- package/dist/mobile-delivery.d.ts +1 -1
- package/dist/mobile-delivery.js +4 -0
- package/dist/platforms/mobile.js +30 -121
- package/dist/platforms/web.d.ts +3 -0
- package/dist/platforms/web.js +299 -0
- package/dist/project-config.d.ts +1 -1
- package/dist/project-config.js +0 -1
- package/dist/project-inspector.js +5 -36
- package/dist/project-state.d.ts +1 -3
- package/dist/project-state.js +2 -85
- package/dist/provider-auth.js +3 -38
- package/dist/provider-readiness.d.ts +1 -1
- package/dist/provider-readiness.js +5 -24
- package/dist/providers/adapters.js +0 -175
- package/dist/providers/api.d.ts +1 -1
- package/dist/providers/api.js +3 -3
- package/dist/providers/config.js +2 -48
- package/dist/providers/definitions.d.ts +1 -204
- package/dist/providers/definitions.js +0 -85
- package/dist/providers/provision.d.ts +1 -1
- package/dist/providers/receipts.js +1 -11
- package/dist/providers/recovery-verification.js +1 -61
- package/dist/providers/runtime.js +4 -35
- package/dist/providers/state.js +1 -7
- package/dist/provision.d.ts +5 -13
- package/dist/provision.js +4 -80
- package/dist/readiness.d.ts +1 -1
- package/dist/readiness.js +3 -8
- package/dist/registry/add.js +10 -70
- package/dist/registry/bootstrap.d.ts +3 -2
- package/dist/registry/bootstrap.js +4 -13
- package/dist/registry/commands.js +8 -10
- package/dist/registry/context.js +0 -1
- package/dist/registry/options.js +8 -38
- package/dist/registry/resolve.d.ts +3 -4
- package/dist/registry/resolve.js +26 -108
- package/dist/registry/types.d.ts +1 -7
- package/dist/registry/usage.js +2 -2
- package/dist/runtime-policy.d.ts +0 -2
- package/dist/runtime-policy.js +0 -16
- package/dist/scaffold/auth.d.ts +1 -2
- package/dist/scaffold/auth.js +55 -130
- package/dist/scaffold/backend.d.ts +0 -4
- package/dist/scaffold/backend.js +1 -186
- package/dist/scaffold/billing-schema.d.ts +1 -1
- package/dist/scaffold/billing-schema.js +4 -4
- package/dist/scaffold/billing.js +11 -19
- package/dist/scaffold/bootstrap.d.ts +2 -3
- package/dist/scaffold/bootstrap.js +37 -43
- package/dist/scaffold/compose.js +2 -14
- package/dist/scaffold/database.d.ts +1 -1
- package/dist/scaffold/database.js +18 -126
- package/dist/scaffold/documentation.d.ts +0 -1
- package/dist/scaffold/documentation.js +22 -86
- package/dist/scaffold/expo-auth.js +33 -22
- package/dist/scaffold/expo-billing.js +17 -52
- package/dist/scaffold/expo-runtime.d.ts +2 -2
- package/dist/scaffold/expo-runtime.js +6 -97
- package/dist/scaffold/integrations.d.ts +1 -3
- package/dist/scaffold/integrations.js +9 -10
- package/dist/scaffold/managed-email.d.ts +3 -0
- package/dist/scaffold/managed-email.js +47 -0
- package/dist/scaffold/native-ui.d.ts +2 -0
- package/dist/scaffold/native-ui.js +69 -0
- package/dist/scaffold/password-reset.d.ts +1 -0
- package/dist/scaffold/password-reset.js +99 -0
- package/dist/scaffold/private-files.d.ts +2 -0
- package/dist/scaffold/private-files.js +78 -0
- package/dist/scaffold/stack-documentation.d.ts +0 -1
- package/dist/scaffold/stack-documentation.js +3 -49
- package/dist/scaffold/styling.d.ts +1 -1
- package/dist/scaffold/styling.js +20 -28
- package/dist/scaffold/web-billing.d.ts +2 -0
- package/dist/scaffold/web-billing.js +48 -0
- package/dist/scaffold/workspace.js +53 -194
- package/dist/service-deletion.js +1 -1
- package/dist/service-descriptor.js +5 -12
- package/dist/service-model.d.ts +1 -1
- package/dist/service-operations.js +2 -32
- package/dist/service-readers.js +1 -32
- package/dist/services-command.d.ts +1 -1
- package/dist/services-command.js +3 -9
- package/dist/ship.d.ts +3 -316
- package/dist/ship.js +10 -142
- package/dist/stack-registry.d.ts +2 -52
- package/dist/stack-registry.js +55 -403
- package/dist/standard.js +7 -14
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/anhedral-stack.md +23 -122
- package/docs/assets/anhedral-stack-light.png +0 -0
- package/docs/assets/anhedral-stack.png +0 -0
- package/docs/software-factory.md +24 -557
- package/docs/stack-standard.md +47 -294
- package/docs/verification.md +320 -0
- package/package.json +20 -22
- package/dist/neon-service-data.d.ts +0 -8
- package/dist/neon-service-data.js +0 -117
- package/dist/platforms/desktop.d.ts +0 -2
- package/dist/platforms/desktop.js +0 -415
- package/dist/platforms/extension.d.ts +0 -2
- package/dist/platforms/extension.js +0 -328
- package/dist/registry/presets.d.ts +0 -4
- package/dist/registry/presets.js +0 -41
- package/dist/scaffold/cloudflare-services.d.ts +0 -8
- package/dist/scaffold/cloudflare-services.js +0 -198
- package/dist/scaffold/lint.d.ts +0 -4
- package/dist/scaffold/lint.js +0 -56
- package/dist/scaffold/neon-realtime.d.ts +0 -2
- package/dist/scaffold/neon-realtime.js +0 -97
- package/dist/scaffold/services.d.ts +0 -5
- package/dist/scaffold/services.js +0 -108
- package/dist/scaffold/stream.d.ts +0 -2
- package/dist/scaffold/stream.js +0 -114
- package/dist/scaffold/void.d.ts +0 -4
- package/dist/scaffold/void.js +0 -264
- package/dist/scaffold/web.d.ts +0 -2
- package/dist/scaffold/web.js +0 -130
- package/dist/vercel-project.d.ts +0 -101
- package/dist/vercel-project.js +0 -305
- package/dist/vercel.d.ts +0 -67
- package/dist/vercel.js +0 -581
- package/dist/vinext.d.ts +0 -2
- package/dist/vinext.js +0 -86
- package/dist/void-execution.d.ts +0 -10
- package/dist/void-execution.js +0 -94
- package/dist/void-migrations.d.ts +0 -6
- package/dist/void-migrations.js +0 -110
- package/dist/void-state.d.ts +0 -16
- package/dist/void-state.js +0 -65
- package/dist/void.d.ts +0 -3
- package/dist/void.js +0 -5
package/dist/dependencies.d.ts
CHANGED
|
@@ -3,22 +3,17 @@ export interface DependencyGroup {
|
|
|
3
3
|
devDependencies?: Record<string, string>;
|
|
4
4
|
}
|
|
5
5
|
export declare const NATIVE_ESLINT_VERSION = "10.0.3";
|
|
6
|
-
export declare const DESKTOP_DEPENDENCIES: DependencyGroup;
|
|
7
|
-
export declare const EXTENSION_DEPENDENCIES: DependencyGroup;
|
|
8
6
|
export declare const MOBILE_APP_DEPENDENCIES: DependencyGroup;
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const WEB_DEPENDENCIES: DependencyGroup;
|
|
8
|
+
export declare const NATIVE_UI_DEPENDENCIES: DependencyGroup;
|
|
9
|
+
export declare const OPENNEXT_GLOB_VERSION = "10.5.0";
|
|
10
10
|
export declare const WORKSPACE_NODE_ENGINE = "^22.13.0 || >=24.0.0";
|
|
11
11
|
export declare const PACKAGE_MANAGER = "pnpm@10.34.5";
|
|
12
12
|
export declare const EAS_CLI_VERSION = "21.0.1";
|
|
13
|
-
export declare const VERCEL_CLI_VERSION = "62.7.0";
|
|
14
|
-
export declare const SHADCN_VERSION = "4.21.4";
|
|
15
|
-
export declare const NEXT_VERCEL_VERSION = "16.4.0";
|
|
16
|
-
export declare const NEXT_OPENNEXT_VERSION = "16.3.8";
|
|
17
13
|
export declare const STACK_DEPENDENCIES: {
|
|
18
14
|
readonly zod: "4.6.6";
|
|
19
15
|
readonly '@typescript-eslint/parser': "8.71.2";
|
|
20
16
|
readonly '@typescript-eslint/eslint-plugin': "8.71.2";
|
|
21
|
-
readonly '@next/eslint-plugin-next': "16.4.2";
|
|
22
17
|
readonly turbo: "2.11.7";
|
|
23
18
|
readonly tsx: "4.23.15";
|
|
24
19
|
readonly 'better-auth': "1.7.7";
|
|
@@ -26,69 +21,23 @@ export declare const STACK_DEPENDENCIES: {
|
|
|
26
21
|
readonly 'expo-secure-store': "57.0.4";
|
|
27
22
|
readonly 'expo-network': "57.0.2";
|
|
28
23
|
readonly '@better-auth/drizzle-adapter': "1.7.7";
|
|
29
|
-
readonly '@neondatabase/serverless': "1.2.0";
|
|
30
|
-
readonly '@neon/realtime': "0.1.0";
|
|
31
|
-
readonly '@neon/realtime-drizzle': "0.1.0";
|
|
32
24
|
readonly 'drizzle-orm': "0.45.4";
|
|
33
|
-
readonly
|
|
34
|
-
readonly '@clerk/backend': "3.23.2";
|
|
35
|
-
readonly wrangler: "4.149.0";
|
|
25
|
+
readonly wrangler: "4.151.0";
|
|
36
26
|
readonly typescript: "5.9.3";
|
|
37
27
|
readonly '@types/node': "22.20.5";
|
|
38
28
|
readonly eslint: "9.39.5";
|
|
39
|
-
readonly 'postcss-load-config': "6.0.1";
|
|
40
|
-
readonly '@opennextjs/cloudflare': "1.20.10";
|
|
41
29
|
readonly 'drizzle-kit': "0.31.11";
|
|
42
30
|
readonly hono: "4.13.13";
|
|
43
31
|
readonly '@hono/zod-openapi': "1.6.3";
|
|
44
|
-
readonly fallow: "3.
|
|
45
|
-
readonly
|
|
46
|
-
readonly ai: "6.0.303";
|
|
47
|
-
readonly '@ai-sdk/openai': "3.0.125";
|
|
48
|
-
readonly resend: "6.32.1";
|
|
32
|
+
readonly fallow: "3.34.0";
|
|
33
|
+
readonly undici: "7.30.1";
|
|
49
34
|
readonly 'react-native-purchases': "10.14.0";
|
|
50
35
|
readonly stripe: "23.0.0";
|
|
51
|
-
readonly 'posthog-node': "5.55.2";
|
|
52
36
|
};
|
|
53
|
-
/** Vinext's RSC/React versions form a separately verified compatibility group. */
|
|
54
|
-
export declare const VINEXT_DEPENDENCIES: DependencyGroup;
|
|
55
37
|
/** Separate HTTP and inspector ports let all selected Workers run together. */
|
|
56
38
|
export declare const WORKER_DEV_PORTS: {
|
|
57
39
|
readonly api: {
|
|
58
40
|
readonly http: 8787;
|
|
59
41
|
readonly inspector: 9231;
|
|
60
42
|
};
|
|
61
|
-
readonly realtime: {
|
|
62
|
-
readonly http: 8788;
|
|
63
|
-
readonly inspector: 9232;
|
|
64
|
-
};
|
|
65
|
-
readonly jobs: {
|
|
66
|
-
readonly http: 8789;
|
|
67
|
-
readonly inspector: 9233;
|
|
68
|
-
};
|
|
69
|
-
readonly scheduled: {
|
|
70
|
-
readonly http: 8790;
|
|
71
|
-
readonly inspector: 9234;
|
|
72
|
-
};
|
|
73
|
-
readonly workflows: {
|
|
74
|
-
readonly http: 8791;
|
|
75
|
-
readonly inspector: 9235;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
/** Compatible security overrides are catalog pins and must be audited too. */
|
|
79
|
-
export declare const SECURITY_OVERRIDE_DEPENDENCIES: {
|
|
80
|
-
readonly '@vitejs/plugin-react': "5.2.0";
|
|
81
|
-
readonly sharp: "0.35.5";
|
|
82
|
-
readonly 'source-map-js': "1.2.2";
|
|
83
|
-
readonly 'shell-quote': "1.12.0";
|
|
84
|
-
readonly tmp: "0.2.7";
|
|
85
|
-
readonly 'adm-zip': "0.6.1";
|
|
86
|
-
readonly 'baseline-browser-mapping': "2.11.27";
|
|
87
|
-
readonly browserslist: "4.29.3";
|
|
88
|
-
readonly esbuild: "0.25.12";
|
|
89
43
|
};
|
|
90
|
-
export declare const GLOB_10_OVERRIDE_VERSION = "10.5.0";
|
|
91
|
-
export declare const GLOB_11_OVERRIDE_VERSION = "11.1.0";
|
|
92
|
-
export declare const BRACE_EXPANSION_1_OVERRIDE_VERSION = "1.1.21";
|
|
93
|
-
export declare const BRACE_EXPANSION_2_OVERRIDE_VERSION = "2.1.7";
|
|
94
|
-
export declare const BRACE_EXPANSION_5_OVERRIDE_VERSION = "5.0.12";
|
package/dist/dependencies.js
CHANGED
|
@@ -1,80 +1,7 @@
|
|
|
1
1
|
// renovate: datasource=npm depName=eslint
|
|
2
2
|
export const NATIVE_ESLINT_VERSION = '10.0.3';
|
|
3
|
-
export const DESKTOP_DEPENDENCIES = {
|
|
4
|
-
dependencies: {
|
|
5
|
-
// renovate: datasource=npm depName=react
|
|
6
|
-
react: '19.2.7',
|
|
7
|
-
// renovate: datasource=npm depName=react-dom
|
|
8
|
-
'react-dom': '19.2.7',
|
|
9
|
-
// renovate: datasource=npm depName=clsx
|
|
10
|
-
clsx: '2.1.1',
|
|
11
|
-
// renovate: datasource=npm depName=tailwind-merge
|
|
12
|
-
'tailwind-merge': '3.4.0',
|
|
13
|
-
},
|
|
14
|
-
devDependencies: {
|
|
15
|
-
// renovate: datasource=npm depName=@tailwindcss/postcss
|
|
16
|
-
'@tailwindcss/postcss': '4.1.18',
|
|
17
|
-
// renovate: datasource=npm depName=@vitejs/plugin-react
|
|
18
|
-
'@vitejs/plugin-react': '5.2.0',
|
|
19
|
-
// renovate: datasource=npm depName=@types/node
|
|
20
|
-
'@types/node': '20.19.43',
|
|
21
|
-
// renovate: datasource=npm depName=@types/react
|
|
22
|
-
'@types/react': '19.2.7',
|
|
23
|
-
// renovate: datasource=npm depName=@types/react-dom
|
|
24
|
-
'@types/react-dom': '19.2.3',
|
|
25
|
-
// renovate: datasource=npm depName=electron
|
|
26
|
-
electron: '43.7.8',
|
|
27
|
-
// renovate: datasource=npm depName=electron-builder
|
|
28
|
-
'electron-builder': '26.15.3',
|
|
29
|
-
eslint: NATIVE_ESLINT_VERSION,
|
|
30
|
-
// renovate: datasource=npm depName=tailwindcss
|
|
31
|
-
tailwindcss: '4.1.18',
|
|
32
|
-
// renovate: datasource=npm depName=postcss
|
|
33
|
-
postcss: '8.5.23',
|
|
34
|
-
// renovate: datasource=npm depName=typescript
|
|
35
|
-
typescript: '5.9.3',
|
|
36
|
-
// renovate: datasource=npm depName=vite
|
|
37
|
-
vite: '7.3.6',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
export const EXTENSION_DEPENDENCIES = {
|
|
41
|
-
dependencies: {
|
|
42
|
-
// renovate: datasource=npm depName=react
|
|
43
|
-
react: '19.2.7',
|
|
44
|
-
// renovate: datasource=npm depName=react-dom
|
|
45
|
-
'react-dom': '19.2.7',
|
|
46
|
-
// renovate: datasource=npm depName=clsx
|
|
47
|
-
clsx: '2.1.1',
|
|
48
|
-
// renovate: datasource=npm depName=tailwind-merge
|
|
49
|
-
'tailwind-merge': '3.4.0',
|
|
50
|
-
},
|
|
51
|
-
devDependencies: {
|
|
52
|
-
// renovate: datasource=npm depName=@types/chrome
|
|
53
|
-
'@types/chrome': '0.1.9',
|
|
54
|
-
// renovate: datasource=npm depName=@types/react
|
|
55
|
-
'@types/react': '19.2.7',
|
|
56
|
-
// renovate: datasource=npm depName=@types/react-dom
|
|
57
|
-
'@types/react-dom': '19.2.3',
|
|
58
|
-
// renovate: datasource=npm depName=@wxt-dev/module-react
|
|
59
|
-
'@wxt-dev/module-react': '1.2.2',
|
|
60
|
-
// renovate: datasource=npm depName=autoprefixer
|
|
61
|
-
autoprefixer: '10.4.23',
|
|
62
|
-
// renovate: datasource=npm depName=postcss
|
|
63
|
-
postcss: '8.5.23',
|
|
64
|
-
// renovate: datasource=npm depName=tailwindcss
|
|
65
|
-
tailwindcss: '3.4.19',
|
|
66
|
-
// renovate: datasource=npm depName=typescript
|
|
67
|
-
typescript: '5.9.3',
|
|
68
|
-
// renovate: datasource=npm depName=wxt
|
|
69
|
-
wxt: '0.20.27',
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
3
|
export const MOBILE_APP_DEPENDENCIES = {
|
|
73
4
|
dependencies: {
|
|
74
|
-
// renovate: datasource=npm depName=@rn-primitives/portal
|
|
75
|
-
'@rn-primitives/portal': '1.5.2',
|
|
76
|
-
// renovate: datasource=npm depName=clsx
|
|
77
|
-
clsx: '2.1.1',
|
|
78
5
|
// renovate: datasource=npm depName=expo
|
|
79
6
|
expo: '57.0.8',
|
|
80
7
|
// renovate: datasource=npm depName=expo-dev-client
|
|
@@ -87,8 +14,6 @@ export const MOBILE_APP_DEPENDENCIES = {
|
|
|
87
14
|
'expo-status-bar': '57.0.1',
|
|
88
15
|
// renovate: datasource=npm depName=react
|
|
89
16
|
react: '19.2.3',
|
|
90
|
-
// renovate: datasource=npm depName=react-dom
|
|
91
|
-
'react-dom': '19.2.3',
|
|
92
17
|
// renovate: datasource=npm depName=react-native
|
|
93
18
|
'react-native': '0.86.0',
|
|
94
19
|
// renovate: datasource=npm depName=react-native-reanimated
|
|
@@ -99,12 +24,6 @@ export const MOBILE_APP_DEPENDENCIES = {
|
|
|
99
24
|
'react-native-screens': '4.26.2',
|
|
100
25
|
// renovate: datasource=npm depName=react-native-worklets
|
|
101
26
|
'react-native-worklets': '0.10.0',
|
|
102
|
-
// renovate: datasource=npm depName=react-native-web
|
|
103
|
-
'react-native-web': '0.21.2',
|
|
104
|
-
// renovate: datasource=npm depName=tailwind-merge
|
|
105
|
-
'tailwind-merge': '3.5.0',
|
|
106
|
-
// renovate: datasource=npm depName=tailwindcss-animate
|
|
107
|
-
'tailwindcss-animate': '1.0.7',
|
|
108
27
|
},
|
|
109
28
|
devDependencies: {
|
|
110
29
|
// renovate: datasource=npm depName=@babel/core
|
|
@@ -117,34 +36,68 @@ export const MOBILE_APP_DEPENDENCIES = {
|
|
|
117
36
|
'@react-native/metro-config': '0.86.0',
|
|
118
37
|
// renovate: datasource=npm depName=@types/react
|
|
119
38
|
'@types/react': '19.2.10',
|
|
120
|
-
// renovate: datasource=npm depName=@types/react-dom
|
|
121
|
-
'@types/react-dom': '19.2.3',
|
|
122
39
|
// renovate: datasource=npm depName=typescript
|
|
123
40
|
typescript: '6.0.3',
|
|
124
41
|
},
|
|
125
42
|
};
|
|
126
|
-
export const
|
|
43
|
+
export const WEB_DEPENDENCIES = {
|
|
127
44
|
dependencies: {
|
|
128
|
-
// renovate: datasource=npm depName=
|
|
129
|
-
|
|
130
|
-
// renovate: datasource=npm depName=react
|
|
131
|
-
|
|
45
|
+
// renovate: datasource=npm depName=next
|
|
46
|
+
next: '16.4.2',
|
|
47
|
+
// renovate: datasource=npm depName=react
|
|
48
|
+
react: '19.2.3',
|
|
49
|
+
// renovate: datasource=npm depName=react-dom
|
|
50
|
+
'react-dom': '19.2.3',
|
|
51
|
+
// renovate: datasource=npm depName=better-auth
|
|
52
|
+
'better-auth': '1.7.7',
|
|
53
|
+
// renovate: datasource=npm depName=server-only
|
|
54
|
+
'server-only': '0.0.1',
|
|
55
|
+
// renovate: datasource=npm depName=@base-ui/react
|
|
56
|
+
'@base-ui/react': '1.9.0',
|
|
57
|
+
// renovate: datasource=npm depName=class-variance-authority
|
|
58
|
+
'class-variance-authority': '0.7.1',
|
|
59
|
+
// renovate: datasource=npm depName=clsx
|
|
60
|
+
clsx: '2.1.1',
|
|
61
|
+
// renovate: datasource=npm depName=tailwind-merge
|
|
62
|
+
'tailwind-merge': '3.5.0',
|
|
63
|
+
// renovate: datasource=npm depName=@opennextjs/cloudflare
|
|
64
|
+
'@opennextjs/cloudflare': '1.20.12',
|
|
65
|
+
},
|
|
66
|
+
devDependencies: {
|
|
132
67
|
// renovate: datasource=npm depName=tailwindcss
|
|
133
|
-
tailwindcss: '3.
|
|
68
|
+
tailwindcss: '4.3.3',
|
|
69
|
+
// renovate: datasource=npm depName=@tailwindcss/postcss
|
|
70
|
+
'@tailwindcss/postcss': '4.3.3',
|
|
71
|
+
// renovate: datasource=npm depName=eslint-config-next
|
|
72
|
+
'eslint-config-next': '16.4.2',
|
|
73
|
+
// renovate: datasource=npm depName=eslint
|
|
74
|
+
eslint: '9.39.5',
|
|
75
|
+
// renovate: datasource=npm depName=typescript
|
|
76
|
+
typescript: '5.9.3',
|
|
77
|
+
// renovate: datasource=npm depName=@types/node
|
|
78
|
+
'@types/node': '22.20.5',
|
|
79
|
+
// renovate: datasource=npm depName=@types/react
|
|
80
|
+
'@types/react': '19.2.10',
|
|
81
|
+
// renovate: datasource=npm depName=@types/react-dom
|
|
82
|
+
'@types/react-dom': '19.2.3',
|
|
83
|
+
// renovate: datasource=npm depName=wrangler
|
|
84
|
+
wrangler: '4.151.0',
|
|
134
85
|
},
|
|
135
86
|
};
|
|
87
|
+
export const NATIVE_UI_DEPENDENCIES = {
|
|
88
|
+
dependencies: {
|
|
89
|
+
// renovate: datasource=npm depName=@react-native-async-storage/async-storage
|
|
90
|
+
'@react-native-async-storage/async-storage': '2.2.0',
|
|
91
|
+
// renovate: datasource=npm depName=expo-system-ui
|
|
92
|
+
'expo-system-ui': '57.0.3',
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
// renovate: datasource=npm depName=glob
|
|
96
|
+
export const OPENNEXT_GLOB_VERSION = '10.5.0';
|
|
136
97
|
export const WORKSPACE_NODE_ENGINE = '^22.13.0 || >=24.0.0';
|
|
137
98
|
export const PACKAGE_MANAGER = 'pnpm@10.34.5';
|
|
138
99
|
// renovate: datasource=npm depName=eas-cli
|
|
139
100
|
export const EAS_CLI_VERSION = '21.0.1';
|
|
140
|
-
// renovate: datasource=npm depName=vercel
|
|
141
|
-
export const VERCEL_CLI_VERSION = '62.7.0';
|
|
142
|
-
// renovate: datasource=npm depName=shadcn
|
|
143
|
-
export const SHADCN_VERSION = '4.21.4';
|
|
144
|
-
// renovate: datasource=npm depName=next
|
|
145
|
-
export const NEXT_VERCEL_VERSION = '16.4.0';
|
|
146
|
-
// renovate: datasource=npm depName=next
|
|
147
|
-
export const NEXT_OPENNEXT_VERSION = '16.3.8';
|
|
148
101
|
export const STACK_DEPENDENCIES = {
|
|
149
102
|
// renovate: datasource=npm depName=zod
|
|
150
103
|
zod: '4.6.6',
|
|
@@ -152,8 +105,6 @@ export const STACK_DEPENDENCIES = {
|
|
|
152
105
|
'@typescript-eslint/parser': '8.71.2',
|
|
153
106
|
// renovate: datasource=npm depName=@typescript-eslint/eslint-plugin
|
|
154
107
|
'@typescript-eslint/eslint-plugin': '8.71.2',
|
|
155
|
-
// renovate: datasource=npm depName=@next/eslint-plugin-next
|
|
156
|
-
'@next/eslint-plugin-next': '16.4.2',
|
|
157
108
|
// renovate: datasource=npm depName=turbo
|
|
158
109
|
turbo: '2.11.7',
|
|
159
110
|
// renovate: datasource=npm depName=tsx
|
|
@@ -168,30 +119,16 @@ export const STACK_DEPENDENCIES = {
|
|
|
168
119
|
'expo-network': '57.0.2',
|
|
169
120
|
// renovate: datasource=npm depName=@better-auth/drizzle-adapter
|
|
170
121
|
'@better-auth/drizzle-adapter': '1.7.7',
|
|
171
|
-
// renovate: datasource=npm depName=@neondatabase/serverless
|
|
172
|
-
'@neondatabase/serverless': '1.2.0',
|
|
173
|
-
// renovate: datasource=npm depName=@neon/realtime
|
|
174
|
-
'@neon/realtime': '0.1.0',
|
|
175
|
-
// renovate: datasource=npm depName=@neon/realtime-drizzle
|
|
176
|
-
'@neon/realtime-drizzle': '0.1.0',
|
|
177
122
|
// renovate: datasource=npm depName=drizzle-orm
|
|
178
123
|
'drizzle-orm': '0.45.4',
|
|
179
|
-
// renovate: datasource=npm depName=@clerk/nextjs
|
|
180
|
-
'@clerk/nextjs': '7.9.14',
|
|
181
|
-
// renovate: datasource=npm depName=@clerk/backend
|
|
182
|
-
'@clerk/backend': '3.23.2',
|
|
183
124
|
// renovate: datasource=npm depName=wrangler
|
|
184
|
-
wrangler: '4.
|
|
125
|
+
wrangler: '4.151.0',
|
|
185
126
|
// renovate: datasource=npm depName=typescript
|
|
186
127
|
typescript: '5.9.3',
|
|
187
128
|
// renovate: datasource=npm depName=@types/node
|
|
188
129
|
'@types/node': '22.20.5',
|
|
189
130
|
// renovate: datasource=npm depName=eslint
|
|
190
131
|
eslint: '9.39.5',
|
|
191
|
-
// renovate: datasource=npm depName=postcss-load-config
|
|
192
|
-
'postcss-load-config': '6.0.1',
|
|
193
|
-
// renovate: datasource=npm depName=@opennextjs/cloudflare
|
|
194
|
-
'@opennextjs/cloudflare': '1.20.10',
|
|
195
132
|
// renovate: datasource=npm depName=drizzle-kit
|
|
196
133
|
'drizzle-kit': '0.31.11',
|
|
197
134
|
// renovate: datasource=npm depName=hono
|
|
@@ -199,86 +136,15 @@ export const STACK_DEPENDENCIES = {
|
|
|
199
136
|
// renovate: datasource=npm depName=@hono/zod-openapi
|
|
200
137
|
'@hono/zod-openapi': '1.6.3',
|
|
201
138
|
// renovate: datasource=npm depName=fallow
|
|
202
|
-
fallow: '3.
|
|
203
|
-
// renovate: datasource=npm depName=
|
|
204
|
-
|
|
205
|
-
// renovate: datasource=npm depName=ai
|
|
206
|
-
ai: '6.0.303',
|
|
207
|
-
// renovate: datasource=npm depName=@ai-sdk/openai
|
|
208
|
-
'@ai-sdk/openai': '3.0.125',
|
|
209
|
-
// renovate: datasource=npm depName=resend
|
|
210
|
-
resend: '6.32.1',
|
|
139
|
+
fallow: '3.34.0',
|
|
140
|
+
// renovate: datasource=npm depName=undici
|
|
141
|
+
undici: '7.30.1',
|
|
211
142
|
// renovate: datasource=npm depName=react-native-purchases
|
|
212
143
|
'react-native-purchases': '10.14.0',
|
|
213
144
|
// renovate: datasource=npm depName=stripe
|
|
214
145
|
stripe: '23.0.0',
|
|
215
|
-
// renovate: datasource=npm depName=posthog-node
|
|
216
|
-
'posthog-node': '5.55.2',
|
|
217
|
-
};
|
|
218
|
-
/** Vinext's RSC/React versions form a separately verified compatibility group. */
|
|
219
|
-
export const VINEXT_DEPENDENCIES = {
|
|
220
|
-
dependencies: {
|
|
221
|
-
// renovate: datasource=npm depName=vinext
|
|
222
|
-
vinext: '1.1.0',
|
|
223
|
-
next: NEXT_VERCEL_VERSION,
|
|
224
|
-
// renovate: datasource=npm depName=react
|
|
225
|
-
react: '19.2.8',
|
|
226
|
-
// renovate: datasource=npm depName=react-dom
|
|
227
|
-
'react-dom': '19.2.8',
|
|
228
|
-
// renovate: datasource=npm depName=react-server-dom-webpack
|
|
229
|
-
'react-server-dom-webpack': '19.2.8',
|
|
230
|
-
},
|
|
231
|
-
devDependencies: {
|
|
232
|
-
// renovate: datasource=npm depName=vite
|
|
233
|
-
vite: '8.3.4',
|
|
234
|
-
// renovate: datasource=npm depName=@cloudflare/vite-plugin
|
|
235
|
-
'@cloudflare/vite-plugin': '1.63.1',
|
|
236
|
-
// renovate: datasource=npm depName=@vitejs/plugin-rsc
|
|
237
|
-
'@vitejs/plugin-rsc': '0.5.36',
|
|
238
|
-
// renovate: datasource=npm depName=@vitejs/plugin-react
|
|
239
|
-
'@vitejs/plugin-react': '6.1.2',
|
|
240
|
-
wrangler: STACK_DEPENDENCIES.wrangler,
|
|
241
|
-
},
|
|
242
146
|
};
|
|
243
147
|
/** Separate HTTP and inspector ports let all selected Workers run together. */
|
|
244
148
|
export const WORKER_DEV_PORTS = {
|
|
245
149
|
api: { http: 8787, inspector: 9231 },
|
|
246
|
-
realtime: { http: 8788, inspector: 9232 },
|
|
247
|
-
jobs: { http: 8789, inspector: 9233 },
|
|
248
|
-
scheduled: { http: 8790, inspector: 9234 },
|
|
249
|
-
workflows: { http: 8791, inspector: 9235 },
|
|
250
|
-
};
|
|
251
|
-
/** Compatible security overrides are catalog pins and must be audited too. */
|
|
252
|
-
export const SECURITY_OVERRIDE_DEPENDENCIES = {
|
|
253
|
-
// renovate: datasource=npm depName=@vitejs/plugin-react
|
|
254
|
-
'@vitejs/plugin-react': '5.2.0',
|
|
255
|
-
// renovate: datasource=npm depName=sharp
|
|
256
|
-
sharp: '0.35.5',
|
|
257
|
-
// renovate: datasource=npm depName=source-map-js
|
|
258
|
-
'source-map-js': '1.2.2',
|
|
259
|
-
// renovate: datasource=npm depName=shell-quote
|
|
260
|
-
'shell-quote': '1.12.0',
|
|
261
|
-
// renovate: datasource=npm depName=tmp
|
|
262
|
-
tmp: '0.2.7',
|
|
263
|
-
// renovate: datasource=npm depName=adm-zip
|
|
264
|
-
'adm-zip': '0.6.1',
|
|
265
|
-
// renovate: datasource=npm depName=baseline-browser-mapping
|
|
266
|
-
'baseline-browser-mapping': '2.11.27',
|
|
267
|
-
// renovate: datasource=npm depName=browserslist
|
|
268
|
-
browserslist: '4.29.3',
|
|
269
|
-
// renovate: datasource=npm depName=esbuild
|
|
270
|
-
esbuild: '0.25.12',
|
|
271
150
|
};
|
|
272
|
-
// Keep each compatible major independently reviewed.
|
|
273
|
-
// renovate: datasource=npm depName=glob
|
|
274
|
-
export const GLOB_10_OVERRIDE_VERSION = '10.5.0';
|
|
275
|
-
// renovate: datasource=npm depName=glob
|
|
276
|
-
export const GLOB_11_OVERRIDE_VERSION = '11.1.0';
|
|
277
|
-
// renovate: datasource=npm depName=brace-expansion
|
|
278
|
-
export const BRACE_EXPANSION_1_OVERRIDE_VERSION = '1.1.21';
|
|
279
|
-
// renovate: datasource=npm depName=brace-expansion
|
|
280
|
-
export const BRACE_EXPANSION_2_OVERRIDE_VERSION = '2.1.7';
|
|
281
|
-
// No blanket 3.x override: GHSA-3jxr-9vmj-r5cp lists no repaired 3.x
|
|
282
|
-
// release, and supported locked profiles do not consume that major.
|
|
283
|
-
// renovate: datasource=npm depName=brace-expansion
|
|
284
|
-
export const BRACE_EXPANSION_5_OVERRIDE_VERSION = '5.0.12';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,6 @@ export { inspectProject, validateSetupPlan } from './readiness.js';
|
|
|
7
7
|
export { registerApplication, readApplication, connectApplication, planDelivery, shipApplication, applicationStatus, verifyApplication, rollbackApplication, recoverApplication, } from './delivery.js';
|
|
8
8
|
export type { ApplicationProject, DeploymentTarget, DeliveryRunner } from './delivery.js';
|
|
9
9
|
export { planProvisioning, provisionApplication } from './provision.js';
|
|
10
|
-
export { supportsVoidRuntime, VOID_VERSION, VOID_NODE_ENGINE } from './void.js';
|
|
11
|
-
export { registerVercelApplication, connectVercelApplication, planVercelDelivery, shipVercelApplication, vercelApplicationStatus, verifyVercelApplication, rollbackVercelApplication, adoptVercelApplication, recoverVercelApplication, } from './vercel.js';
|
|
12
10
|
export { setupRepository, githubRepository } from './repository.js';
|
|
13
11
|
export { inspectProviderReadiness } from './provider-readiness.js';
|
|
14
12
|
export { STACK_REGISTRY, STACK_ITEMS, getStackItem } from './stack-registry.js';
|
|
@@ -24,7 +22,7 @@ export type { ProviderAuth, AuthOptions, AuthCheck } from './provider-auth.js';
|
|
|
24
22
|
export { buildMobileApplication } from './mobile-delivery.js';
|
|
25
23
|
export type { MobileBuildOptions } from './mobile-delivery.js';
|
|
26
24
|
export { shipCloudflareApplication } from './ship.js';
|
|
27
|
-
export { shipSelectedStack
|
|
25
|
+
export { shipSelectedStack } from './ship.js';
|
|
28
26
|
export { planProviderProvisioning, provisionSelectedProviders } from './providers/provision.js';
|
|
29
27
|
export { providerConfigurationTemplate } from './providers/config.js';
|
|
30
28
|
export type { ProviderConfiguration, IntegrationProvider } from './providers/config.js';
|
|
@@ -44,4 +42,3 @@ export { inspectApplication } from './project-inspector.js';
|
|
|
44
42
|
export type { ProjectInspection } from './inspector-model.js';
|
|
45
43
|
export { PROJECT_CONFIG_FILE, readProjectConfig, readProjectSection, writeProjectSection, hasProjectSection, } from './project-config.js';
|
|
46
44
|
export type { ProjectConfig, ProjectSection } from './project-config.js';
|
|
47
|
-
export { FULL_PRODUCT } from './registry/presets.js';
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,6 @@ export { CAPABILITIES, CAPABILITY_REGISTRY, createSetupPlan } from './capabiliti
|
|
|
4
4
|
export { inspectProject, validateSetupPlan } from './readiness.js';
|
|
5
5
|
export { registerApplication, readApplication, connectApplication, planDelivery, shipApplication, applicationStatus, verifyApplication, rollbackApplication, recoverApplication, } from './delivery.js';
|
|
6
6
|
export { planProvisioning, provisionApplication } from './provision.js';
|
|
7
|
-
export { supportsVoidRuntime, VOID_VERSION, VOID_NODE_ENGINE } from './void.js';
|
|
8
|
-
export { registerVercelApplication, connectVercelApplication, planVercelDelivery, shipVercelApplication, vercelApplicationStatus, verifyVercelApplication, rollbackVercelApplication, adoptVercelApplication, recoverVercelApplication, } from './vercel.js';
|
|
9
7
|
export { setupRepository, githubRepository } from './repository.js';
|
|
10
8
|
export { inspectProviderReadiness } from './provider-readiness.js';
|
|
11
9
|
export { STACK_REGISTRY, STACK_ITEMS, getStackItem } from './stack-registry.js';
|
|
@@ -15,7 +13,7 @@ export { addStackItems } from './registry/add.js';
|
|
|
15
13
|
export { PROVIDER_AUTH, requiredProviders, authenticateProviders } from './provider-auth.js';
|
|
16
14
|
export { buildMobileApplication } from './mobile-delivery.js';
|
|
17
15
|
export { shipCloudflareApplication } from './ship.js';
|
|
18
|
-
export { shipSelectedStack
|
|
16
|
+
export { shipSelectedStack } from './ship.js';
|
|
19
17
|
export { planProviderProvisioning, provisionSelectedProviders } from './providers/provision.js';
|
|
20
18
|
export { providerConfigurationTemplate } from './providers/config.js';
|
|
21
19
|
export { validateProviderConfiguration } from './providers/config.js';
|
|
@@ -28,4 +26,3 @@ export { CAPABILITY_CONTRACT, formatCapabilityContract } from './capability-cont
|
|
|
28
26
|
export { recoverDeliveryLock } from './project-state.js';
|
|
29
27
|
export { inspectApplication } from './project-inspector.js';
|
|
30
28
|
export { PROJECT_CONFIG_FILE, readProjectConfig, readProjectSection, writeProjectSection, hasProjectSection, } from './project-config.js';
|
|
31
|
-
export { FULL_PRODUCT } from './registry/presets.js';
|
|
@@ -35,7 +35,7 @@ export interface ReleaseEvidence {
|
|
|
35
35
|
}
|
|
36
36
|
export interface TargetEvidence {
|
|
37
37
|
id: string;
|
|
38
|
-
provider: 'cloudflare' | '
|
|
38
|
+
provider: 'cloudflare' | 'expo';
|
|
39
39
|
application: string;
|
|
40
40
|
audience: 'public' | 'private' | 'unconfigured' | 'not-applicable';
|
|
41
41
|
accountReference: string | null;
|
|
@@ -79,7 +79,7 @@ export interface ProjectInspection {
|
|
|
79
79
|
selection: InspectionSection<{
|
|
80
80
|
cliVersion: string | null;
|
|
81
81
|
products: string[];
|
|
82
|
-
hosting: 'cloudflare' |
|
|
82
|
+
hosting: 'cloudflare' | null;
|
|
83
83
|
}>;
|
|
84
84
|
setupProviders: InspectionSection<{
|
|
85
85
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IntegrationProvider, type ProviderSettings } from './providers/config.js';
|
|
2
2
|
import { type ApiRequest } from './providers/api.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ServiceObservation } from './service-model.js';
|
|
4
4
|
export interface IntegrationService {
|
|
5
5
|
provider: IntegrationProvider;
|
|
6
6
|
settings: ProviderSettings;
|
|
@@ -10,4 +10,3 @@ export declare function resolveIntegrationService(root: string, key: string): In
|
|
|
10
10
|
export declare function integrationRequest(service: IntegrationService, env?: NodeJS.ProcessEnv, send?: typeof fetch): ApiRequest;
|
|
11
11
|
export declare function inspectIntegrationResource(service: IntegrationService, api: ApiRequest): Promise<Record<string, unknown>>;
|
|
12
12
|
export declare function observeIntegrationService(service: IntegrationService, api: ApiRequest): Promise<ServiceObservation>;
|
|
13
|
-
export declare function posthogServiceMetrics(service: IntegrationService, api: ApiRequest, hours?: number): Promise<ServiceMetrics>;
|
|
@@ -44,28 +44,7 @@ export async function inspectIntegrationResource(service, api) {
|
|
|
44
44
|
let value;
|
|
45
45
|
let expected;
|
|
46
46
|
let returned;
|
|
47
|
-
if (provider === '
|
|
48
|
-
expected = selected(service, 'projectId', 'project');
|
|
49
|
-
value = record(record(await api(`/api/v2/projects/${expected}`)).project);
|
|
50
|
-
returned = value.id;
|
|
51
|
-
if (value.org_id !== setting(settings, 'organizationId'))
|
|
52
|
-
throw new Error('Neon organization differs.');
|
|
53
|
-
}
|
|
54
|
-
else if (provider === 'clerk') {
|
|
55
|
-
if (record(await api('/v1/platform/me')).subject !== setting(settings, 'workspaceId'))
|
|
56
|
-
throw new Error('Clerk workspace differs.');
|
|
57
|
-
expected = selected(service, 'applicationId', 'application');
|
|
58
|
-
value = record(await api(`/v1/platform/applications/${expected}?include_secret_keys=false`));
|
|
59
|
-
returned = value.application_id;
|
|
60
|
-
}
|
|
61
|
-
else if (provider === 'resend') {
|
|
62
|
-
expected = selected(service, 'domainId', 'domain');
|
|
63
|
-
value = record(await api(`/domains/${expected}`));
|
|
64
|
-
returned = value.id;
|
|
65
|
-
if (value.name !== setting(settings, 'domain'))
|
|
66
|
-
throw new Error('Resend domain differs.');
|
|
67
|
-
}
|
|
68
|
-
else if (provider === 'stripe') {
|
|
47
|
+
if (provider === 'stripe') {
|
|
69
48
|
if (record(await api('/v1/account')).id !== setting(settings, 'accountId'))
|
|
70
49
|
throw new Error('Stripe account differs.');
|
|
71
50
|
expected = resourceId(service.resources.webhook);
|
|
@@ -80,28 +59,8 @@ export async function inspectIntegrationResource(service, api) {
|
|
|
80
59
|
value = record(await api(`/v2/projects/${expected}`));
|
|
81
60
|
returned = value.id;
|
|
82
61
|
}
|
|
83
|
-
else
|
|
84
|
-
|
|
85
|
-
const slug = resourceId(setting(settings, 'project'));
|
|
86
|
-
value = record(await api(`/api/0/projects/${organization}/${slug}/`));
|
|
87
|
-
expected = resourceId(service.resources.project ?? value.id);
|
|
88
|
-
returned = value.id;
|
|
89
|
-
if (record(value.organization).slug !== organization || value.slug !== slug)
|
|
90
|
-
throw new Error('Sentry organization or project differs.');
|
|
91
|
-
}
|
|
92
|
-
else if (provider === 'posthog') {
|
|
93
|
-
expected = selected(service, 'projectId', 'project');
|
|
94
|
-
const organization = resourceId(setting(settings, 'organizationId'));
|
|
95
|
-
value = record(await api(`/api/organizations/${organization}/projects/${expected}/`));
|
|
96
|
-
returned = String(value.id);
|
|
97
|
-
if (value.organization !== organization)
|
|
98
|
-
throw new Error('PostHog organization differs.');
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
expected = selected(service, 'projectId', 'project');
|
|
102
|
-
value = record(await api(`/v1/organization/projects/${expected}`));
|
|
103
|
-
returned = value.id;
|
|
104
|
-
}
|
|
62
|
+
else
|
|
63
|
+
throw new Error('Unsupported integration.');
|
|
105
64
|
if (String(returned) !== expected)
|
|
106
65
|
throw new Error('Provider resource identity differs.');
|
|
107
66
|
return value;
|
|
@@ -131,43 +90,3 @@ export async function observeIntegrationService(service, api) {
|
|
|
131
90
|
};
|
|
132
91
|
}
|
|
133
92
|
}
|
|
134
|
-
export async function posthogServiceMetrics(service, api, hours = 24) {
|
|
135
|
-
if (service.provider !== 'posthog' || ![1, 24, 168].includes(hours))
|
|
136
|
-
throw new Error('Unsupported analytics selection.');
|
|
137
|
-
await inspectIntegrationResource(service, api);
|
|
138
|
-
const end = new Date().toISOString();
|
|
139
|
-
const start = new Date(Date.parse(end) - hours * 3600000).toISOString();
|
|
140
|
-
const id = selected(service, 'projectId', 'project');
|
|
141
|
-
const date = (value) => value.slice(0, 19).replace('T', ' ');
|
|
142
|
-
const value = record(await api(`/api/projects/${id}/query/`, 'POST', {
|
|
143
|
-
query: {
|
|
144
|
-
kind: 'HogQLQuery',
|
|
145
|
-
query: `SELECT formatDateTime(timestamp, '%Y-%m-%dT%H:00:00Z', 'UTC') AS time, count() AS events, uniqExact(distinct_id) AS visitors FROM events WHERE timestamp >= toDateTime('${date(start)}', 'UTC') AND timestamp < toDateTime('${date(end)}', 'UTC') GROUP BY time ORDER BY time LIMIT 1000`,
|
|
146
|
-
},
|
|
147
|
-
name: 'Anhedral selected-project hourly analytics',
|
|
148
|
-
async: false,
|
|
149
|
-
}));
|
|
150
|
-
if (!Array.isArray(value.results) || value.results.length >= 1000)
|
|
151
|
-
throw new Error('Analytics is pending, truncated or unavailable.');
|
|
152
|
-
const points = value.results.map((row) => {
|
|
153
|
-
if (!Array.isArray(row) ||
|
|
154
|
-
row.length !== 3 ||
|
|
155
|
-
typeof row[0] !== 'string' ||
|
|
156
|
-
!Number.isFinite(Date.parse(row[0])) ||
|
|
157
|
-
row
|
|
158
|
-
.slice(1)
|
|
159
|
-
.some((count) => typeof count !== 'number' || !Number.isFinite(count) || count < 0))
|
|
160
|
-
throw new Error('Unsupported analytics output.');
|
|
161
|
-
return { time: row[0], values: { events: row[1], visitors: row[2] } };
|
|
162
|
-
});
|
|
163
|
-
return {
|
|
164
|
-
start,
|
|
165
|
-
end,
|
|
166
|
-
fetchedAt: new Date().toISOString(),
|
|
167
|
-
source: 'PostHog hourly product analytics',
|
|
168
|
-
timezone: 'UTC',
|
|
169
|
-
sampled: false,
|
|
170
|
-
points,
|
|
171
|
-
units: { events: 'count', visitors: 'hourly bucket count' },
|
|
172
|
-
};
|
|
173
|
-
}
|
|
@@ -3,7 +3,7 @@ export type PhaseState = 'running' | 'completed' | 'failed';
|
|
|
3
3
|
export interface LifecycleOperation {
|
|
4
4
|
schemaVersion: 1;
|
|
5
5
|
id: string;
|
|
6
|
-
target: 'cloudflare' | '
|
|
6
|
+
target: 'cloudflare' | 'mobile';
|
|
7
7
|
state: OperationState;
|
|
8
8
|
startedAt: string;
|
|
9
9
|
updatedAt: string;
|
package/dist/lifecycle-model.js
CHANGED
|
@@ -5,7 +5,7 @@ export function isLifecycleOperation(value) {
|
|
|
5
5
|
return (operation.schemaVersion === 1 &&
|
|
6
6
|
typeof operation.id === 'string' &&
|
|
7
7
|
/^[a-f0-9-]{36}$/.test(operation.id) &&
|
|
8
|
-
['cloudflare', '
|
|
8
|
+
['cloudflare', 'mobile'].includes(operation.target) &&
|
|
9
9
|
['running', 'blocked', 'completed', 'failed'].includes(operation.state) &&
|
|
10
10
|
[operation.startedAt, operation.updatedAt].every((date) => typeof date === 'string' && Number.isFinite(Date.parse(date))) &&
|
|
11
11
|
Array.isArray(operation.phases) &&
|
|
@@ -45,7 +45,7 @@ export declare function buildMobileApplication(root: string, options: MobileBuil
|
|
|
45
45
|
schemaVersion: number;
|
|
46
46
|
providers: {
|
|
47
47
|
provider: keyof import("./index.js").ProviderSettingsById;
|
|
48
|
-
settings: import("./providers/definitions.js").
|
|
48
|
+
settings: import("./providers/definitions.js").StripeSettings | import("./providers/definitions.js").RevenueCatSettings;
|
|
49
49
|
credential: string;
|
|
50
50
|
missing: string[];
|
|
51
51
|
}[];
|
package/dist/mobile-delivery.js
CHANGED
|
@@ -129,6 +129,10 @@ function mobileEnvironment() {
|
|
|
129
129
|
for (const key of [...Object.values(CREDENTIALS), ...RUNTIME_KEYS])
|
|
130
130
|
if (!key.startsWith('EXPO_PUBLIC_'))
|
|
131
131
|
delete environment[key];
|
|
132
|
+
for (const name of Object.keys(environment))
|
|
133
|
+
if (!name.startsWith('EXPO_PUBLIC_') &&
|
|
134
|
+
/SECRET|PASSWORD|ADMIN_KEY|API_KEY|DATABASE_URL|AUTHORIZATION/.test(name))
|
|
135
|
+
delete environment[name];
|
|
132
136
|
return environment;
|
|
133
137
|
}
|
|
134
138
|
async function mobileSource(root, environment, run) {
|