anhedral 0.12.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 -172
- 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 -39
- 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 -80
- package/dist/command.js +9 -11
- 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 +23 -102
- package/dist/dependencies.d.ts +12 -58
- package/dist/dependencies.js +67 -189
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -3
- 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.d.ts +1 -1
- package/dist/platforms/mobile.js +64 -114
- 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 +6 -86
- package/dist/provider-auth.js +3 -32
- package/dist/provider-readiness.d.ts +1 -1
- package/dist/provider-readiness.js +5 -24
- package/dist/providers/adapters.js +9 -178
- 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 +15 -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 -6
- package/dist/registry/add.js +11 -38
- 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 -26
- package/dist/registry/resolve.d.ts +3 -2
- package/dist/registry/resolve.js +26 -82
- package/dist/registry/types.d.ts +2 -7
- package/dist/registry/usage.js +2 -2
- package/dist/runtime-policy.d.ts +0 -2
- package/dist/runtime-policy.js +0 -13
- package/dist/scaffold/api.js +10 -2
- package/dist/scaffold/auth.d.ts +1 -2
- package/dist/scaffold/auth.js +57 -116
- package/dist/scaffold/backend.d.ts +2 -0
- package/dist/scaffold/backend.js +39 -0
- package/dist/scaffold/billing-config.d.ts +1 -0
- package/dist/scaffold/billing-config.js +73 -0
- package/dist/scaffold/billing-contracts.d.ts +2 -0
- package/dist/scaffold/billing-contracts.js +48 -0
- package/dist/scaffold/billing-providers.d.ts +1 -0
- package/dist/scaffold/billing-providers.js +249 -0
- package/dist/scaffold/billing-schema.d.ts +1 -0
- package/dist/scaffold/billing-schema.js +34 -0
- package/dist/scaffold/billing-security.d.ts +1 -0
- package/dist/scaffold/billing-security.js +46 -0
- package/dist/scaffold/billing-server.d.ts +1 -0
- package/dist/scaffold/billing-server.js +139 -0
- package/dist/scaffold/billing-store.d.ts +1 -0
- package/dist/scaffold/billing-store.js +72 -0
- package/dist/scaffold/billing.d.ts +2 -0
- package/dist/scaffold/billing.js +208 -0
- package/dist/scaffold/bootstrap.d.ts +2 -3
- package/dist/scaffold/bootstrap.js +37 -43
- package/dist/scaffold/compose.js +2 -12
- package/dist/scaffold/database.d.ts +1 -1
- package/dist/scaffold/database.js +20 -111
- package/dist/scaffold/documentation.d.ts +0 -1
- package/dist/scaffold/documentation.js +22 -82
- package/dist/scaffold/expo-auth.d.ts +3 -0
- package/dist/scaffold/expo-auth.js +203 -0
- package/dist/scaffold/expo-billing.d.ts +3 -0
- package/dist/scaffold/expo-billing.js +257 -0
- package/dist/scaffold/expo-runtime.d.ts +3 -0
- package/dist/scaffold/expo-runtime.js +43 -0
- package/dist/scaffold/integrations.d.ts +1 -2
- package/dist/scaffold/integrations.js +9 -5
- 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 -189
- 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 +13 -143
- package/dist/stack-registry.d.ts +2 -43
- package/dist/stack-registry.js +80 -308
- 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 -0
- package/docs/assets/anhedral-stack-light.png +0 -0
- package/docs/assets/anhedral-stack.png +0 -0
- package/docs/software-factory.md +25 -499
- package/docs/stack-standard.md +48 -226
- package/docs/verification.md +433 -0
- package/package.json +22 -21
- 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/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 -256
- package/dist/scaffold/web.d.ts +0 -2
- package/dist/scaffold/web.js +0 -128
- 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,87 +3,41 @@ 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: {
|
|
14
|
+
readonly zod: "4.6.6";
|
|
18
15
|
readonly '@typescript-eslint/parser': "8.71.2";
|
|
19
16
|
readonly '@typescript-eslint/eslint-plugin': "8.71.2";
|
|
20
|
-
readonly '@next/eslint-plugin-next': "16.4.2";
|
|
21
17
|
readonly turbo: "2.11.7";
|
|
22
18
|
readonly tsx: "4.23.15";
|
|
23
19
|
readonly 'better-auth': "1.7.7";
|
|
20
|
+
readonly '@better-auth/expo': "1.7.7";
|
|
21
|
+
readonly 'expo-secure-store': "57.0.4";
|
|
22
|
+
readonly 'expo-network': "57.0.2";
|
|
24
23
|
readonly '@better-auth/drizzle-adapter': "1.7.7";
|
|
25
|
-
readonly '@neondatabase/serverless': "1.2.0";
|
|
26
|
-
readonly '@neon/realtime': "0.1.0";
|
|
27
|
-
readonly '@neon/realtime-drizzle': "0.1.0";
|
|
28
24
|
readonly 'drizzle-orm': "0.45.4";
|
|
29
|
-
readonly
|
|
30
|
-
readonly '@clerk/backend': "3.23.2";
|
|
31
|
-
readonly wrangler: "4.149.0";
|
|
25
|
+
readonly wrangler: "4.151.0";
|
|
32
26
|
readonly typescript: "5.9.3";
|
|
33
27
|
readonly '@types/node': "22.20.5";
|
|
34
28
|
readonly eslint: "9.39.5";
|
|
35
|
-
readonly 'postcss-load-config': "6.0.1";
|
|
36
|
-
readonly '@opennextjs/cloudflare': "1.20.10";
|
|
37
29
|
readonly 'drizzle-kit': "0.31.11";
|
|
38
30
|
readonly hono: "4.13.13";
|
|
39
31
|
readonly '@hono/zod-openapi': "1.6.3";
|
|
40
|
-
readonly fallow: "3.
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly resend: "6.32.1";
|
|
45
|
-
readonly stripe: "20.4.1";
|
|
46
|
-
readonly 'posthog-node': "5.55.2";
|
|
32
|
+
readonly fallow: "3.34.0";
|
|
33
|
+
readonly undici: "7.30.1";
|
|
34
|
+
readonly 'react-native-purchases': "10.14.0";
|
|
35
|
+
readonly stripe: "23.0.0";
|
|
47
36
|
};
|
|
48
|
-
/** Vinext's RSC/React versions form a separately verified compatibility group. */
|
|
49
|
-
export declare const VINEXT_DEPENDENCIES: DependencyGroup;
|
|
50
37
|
/** Separate HTTP and inspector ports let all selected Workers run together. */
|
|
51
38
|
export declare const WORKER_DEV_PORTS: {
|
|
52
39
|
readonly api: {
|
|
53
40
|
readonly http: 8787;
|
|
54
41
|
readonly inspector: 9231;
|
|
55
42
|
};
|
|
56
|
-
readonly realtime: {
|
|
57
|
-
readonly http: 8788;
|
|
58
|
-
readonly inspector: 9232;
|
|
59
|
-
};
|
|
60
|
-
readonly jobs: {
|
|
61
|
-
readonly http: 8789;
|
|
62
|
-
readonly inspector: 9233;
|
|
63
|
-
};
|
|
64
|
-
readonly scheduled: {
|
|
65
|
-
readonly http: 8790;
|
|
66
|
-
readonly inspector: 9234;
|
|
67
|
-
};
|
|
68
|
-
readonly workflows: {
|
|
69
|
-
readonly http: 8791;
|
|
70
|
-
readonly inspector: 9235;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
/** Compatible security overrides are catalog pins and must be audited too. */
|
|
74
|
-
export declare const SECURITY_OVERRIDE_DEPENDENCIES: {
|
|
75
|
-
readonly '@vitejs/plugin-react': "5.2.0";
|
|
76
|
-
readonly sharp: "0.35.5";
|
|
77
|
-
readonly 'source-map-js': "1.2.2";
|
|
78
|
-
readonly 'shell-quote': "1.12.0";
|
|
79
|
-
readonly tmp: "0.2.7";
|
|
80
|
-
readonly 'adm-zip': "0.6.1";
|
|
81
|
-
readonly 'baseline-browser-mapping': "2.11.27";
|
|
82
|
-
readonly browserslist: "4.29.3";
|
|
83
|
-
readonly esbuild: "0.25.12";
|
|
84
43
|
};
|
|
85
|
-
export declare const GLOB_10_OVERRIDE_VERSION = "10.5.0";
|
|
86
|
-
export declare const GLOB_11_OVERRIDE_VERSION = "11.1.0";
|
|
87
|
-
export declare const BRACE_EXPANSION_1_OVERRIDE_VERSION = "1.1.21";
|
|
88
|
-
export declare const BRACE_EXPANSION_2_OVERRIDE_VERSION = "2.1.7";
|
|
89
|
-
export declare const BRACE_EXPANSION_5_OVERRIDE_VERSION = "5.0.12";
|
package/dist/dependencies.js
CHANGED
|
@@ -1,82 +1,11 @@
|
|
|
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',
|
|
7
|
+
// renovate: datasource=npm depName=expo-dev-client
|
|
8
|
+
'expo-dev-client': '57.0.20',
|
|
80
9
|
// renovate: datasource=npm depName=expo-linking
|
|
81
10
|
'expo-linking': '57.0.4',
|
|
82
11
|
// renovate: datasource=npm depName=expo-router
|
|
@@ -85,8 +14,6 @@ export const MOBILE_APP_DEPENDENCIES = {
|
|
|
85
14
|
'expo-status-bar': '57.0.1',
|
|
86
15
|
// renovate: datasource=npm depName=react
|
|
87
16
|
react: '19.2.3',
|
|
88
|
-
// renovate: datasource=npm depName=react-dom
|
|
89
|
-
'react-dom': '19.2.3',
|
|
90
17
|
// renovate: datasource=npm depName=react-native
|
|
91
18
|
'react-native': '0.86.0',
|
|
92
19
|
// renovate: datasource=npm depName=react-native-reanimated
|
|
@@ -97,12 +24,6 @@ export const MOBILE_APP_DEPENDENCIES = {
|
|
|
97
24
|
'react-native-screens': '4.26.2',
|
|
98
25
|
// renovate: datasource=npm depName=react-native-worklets
|
|
99
26
|
'react-native-worklets': '0.10.0',
|
|
100
|
-
// renovate: datasource=npm depName=react-native-web
|
|
101
|
-
'react-native-web': '0.21.2',
|
|
102
|
-
// renovate: datasource=npm depName=tailwind-merge
|
|
103
|
-
'tailwind-merge': '3.5.0',
|
|
104
|
-
// renovate: datasource=npm depName=tailwindcss-animate
|
|
105
|
-
'tailwindcss-animate': '1.0.7',
|
|
106
27
|
},
|
|
107
28
|
devDependencies: {
|
|
108
29
|
// renovate: datasource=npm depName=@babel/core
|
|
@@ -115,73 +36,99 @@ export const MOBILE_APP_DEPENDENCIES = {
|
|
|
115
36
|
'@react-native/metro-config': '0.86.0',
|
|
116
37
|
// renovate: datasource=npm depName=@types/react
|
|
117
38
|
'@types/react': '19.2.10',
|
|
118
|
-
// renovate: datasource=npm depName=@types/react-dom
|
|
119
|
-
'@types/react-dom': '19.2.3',
|
|
120
39
|
// renovate: datasource=npm depName=typescript
|
|
121
40
|
typescript: '6.0.3',
|
|
122
41
|
},
|
|
123
42
|
};
|
|
124
|
-
export const
|
|
43
|
+
export const WEB_DEPENDENCIES = {
|
|
125
44
|
dependencies: {
|
|
126
|
-
// renovate: datasource=npm depName=
|
|
127
|
-
|
|
128
|
-
// renovate: datasource=npm depName=react
|
|
129
|
-
|
|
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: {
|
|
130
67
|
// renovate: datasource=npm depName=tailwindcss
|
|
131
|
-
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',
|
|
132
85
|
},
|
|
133
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';
|
|
134
97
|
export const WORKSPACE_NODE_ENGINE = '^22.13.0 || >=24.0.0';
|
|
135
98
|
export const PACKAGE_MANAGER = 'pnpm@10.34.5';
|
|
136
99
|
// renovate: datasource=npm depName=eas-cli
|
|
137
100
|
export const EAS_CLI_VERSION = '21.0.1';
|
|
138
|
-
// renovate: datasource=npm depName=vercel
|
|
139
|
-
export const VERCEL_CLI_VERSION = '62.7.0';
|
|
140
|
-
// renovate: datasource=npm depName=shadcn
|
|
141
|
-
export const SHADCN_VERSION = '4.21.4';
|
|
142
|
-
// renovate: datasource=npm depName=next
|
|
143
|
-
export const NEXT_VERCEL_VERSION = '16.4.0';
|
|
144
|
-
// renovate: datasource=npm depName=next
|
|
145
|
-
export const NEXT_OPENNEXT_VERSION = '16.3.8';
|
|
146
101
|
export const STACK_DEPENDENCIES = {
|
|
102
|
+
// renovate: datasource=npm depName=zod
|
|
103
|
+
zod: '4.6.6',
|
|
147
104
|
// renovate: datasource=npm depName=@typescript-eslint/parser
|
|
148
105
|
'@typescript-eslint/parser': '8.71.2',
|
|
149
106
|
// renovate: datasource=npm depName=@typescript-eslint/eslint-plugin
|
|
150
107
|
'@typescript-eslint/eslint-plugin': '8.71.2',
|
|
151
|
-
// renovate: datasource=npm depName=@next/eslint-plugin-next
|
|
152
|
-
'@next/eslint-plugin-next': '16.4.2',
|
|
153
108
|
// renovate: datasource=npm depName=turbo
|
|
154
109
|
turbo: '2.11.7',
|
|
155
110
|
// renovate: datasource=npm depName=tsx
|
|
156
111
|
tsx: '4.23.15',
|
|
157
112
|
// renovate: datasource=npm depName=better-auth
|
|
158
113
|
'better-auth': '1.7.7',
|
|
114
|
+
// renovate: datasource=npm depName=@better-auth/expo
|
|
115
|
+
'@better-auth/expo': '1.7.7',
|
|
116
|
+
// renovate: datasource=npm depName=expo-secure-store
|
|
117
|
+
'expo-secure-store': '57.0.4',
|
|
118
|
+
// renovate: datasource=npm depName=expo-network
|
|
119
|
+
'expo-network': '57.0.2',
|
|
159
120
|
// renovate: datasource=npm depName=@better-auth/drizzle-adapter
|
|
160
121
|
'@better-auth/drizzle-adapter': '1.7.7',
|
|
161
|
-
// renovate: datasource=npm depName=@neondatabase/serverless
|
|
162
|
-
'@neondatabase/serverless': '1.2.0',
|
|
163
|
-
// renovate: datasource=npm depName=@neon/realtime
|
|
164
|
-
'@neon/realtime': '0.1.0',
|
|
165
|
-
// renovate: datasource=npm depName=@neon/realtime-drizzle
|
|
166
|
-
'@neon/realtime-drizzle': '0.1.0',
|
|
167
122
|
// renovate: datasource=npm depName=drizzle-orm
|
|
168
123
|
'drizzle-orm': '0.45.4',
|
|
169
|
-
// renovate: datasource=npm depName=@clerk/nextjs
|
|
170
|
-
'@clerk/nextjs': '7.9.14',
|
|
171
|
-
// renovate: datasource=npm depName=@clerk/backend
|
|
172
|
-
'@clerk/backend': '3.23.2',
|
|
173
124
|
// renovate: datasource=npm depName=wrangler
|
|
174
|
-
wrangler: '4.
|
|
125
|
+
wrangler: '4.151.0',
|
|
175
126
|
// renovate: datasource=npm depName=typescript
|
|
176
127
|
typescript: '5.9.3',
|
|
177
128
|
// renovate: datasource=npm depName=@types/node
|
|
178
129
|
'@types/node': '22.20.5',
|
|
179
130
|
// renovate: datasource=npm depName=eslint
|
|
180
131
|
eslint: '9.39.5',
|
|
181
|
-
// renovate: datasource=npm depName=postcss-load-config
|
|
182
|
-
'postcss-load-config': '6.0.1',
|
|
183
|
-
// renovate: datasource=npm depName=@opennextjs/cloudflare
|
|
184
|
-
'@opennextjs/cloudflare': '1.20.10',
|
|
185
132
|
// renovate: datasource=npm depName=drizzle-kit
|
|
186
133
|
'drizzle-kit': '0.31.11',
|
|
187
134
|
// renovate: datasource=npm depName=hono
|
|
@@ -189,84 +136,15 @@ export const STACK_DEPENDENCIES = {
|
|
|
189
136
|
// renovate: datasource=npm depName=@hono/zod-openapi
|
|
190
137
|
'@hono/zod-openapi': '1.6.3',
|
|
191
138
|
// renovate: datasource=npm depName=fallow
|
|
192
|
-
fallow: '3.
|
|
193
|
-
// renovate: datasource=npm depName=
|
|
194
|
-
|
|
195
|
-
// renovate: datasource=npm depName=
|
|
196
|
-
|
|
197
|
-
// renovate: datasource=npm depName=@ai-sdk/openai
|
|
198
|
-
'@ai-sdk/openai': '3.0.125',
|
|
199
|
-
// renovate: datasource=npm depName=resend
|
|
200
|
-
resend: '6.32.1',
|
|
139
|
+
fallow: '3.34.0',
|
|
140
|
+
// renovate: datasource=npm depName=undici
|
|
141
|
+
undici: '7.30.1',
|
|
142
|
+
// renovate: datasource=npm depName=react-native-purchases
|
|
143
|
+
'react-native-purchases': '10.14.0',
|
|
201
144
|
// renovate: datasource=npm depName=stripe
|
|
202
|
-
stripe: '
|
|
203
|
-
// renovate: datasource=npm depName=posthog-node
|
|
204
|
-
'posthog-node': '5.55.2',
|
|
205
|
-
};
|
|
206
|
-
/** Vinext's RSC/React versions form a separately verified compatibility group. */
|
|
207
|
-
export const VINEXT_DEPENDENCIES = {
|
|
208
|
-
dependencies: {
|
|
209
|
-
// renovate: datasource=npm depName=vinext
|
|
210
|
-
vinext: '1.1.0',
|
|
211
|
-
next: NEXT_VERCEL_VERSION,
|
|
212
|
-
// renovate: datasource=npm depName=react
|
|
213
|
-
react: '19.2.8',
|
|
214
|
-
// renovate: datasource=npm depName=react-dom
|
|
215
|
-
'react-dom': '19.2.8',
|
|
216
|
-
// renovate: datasource=npm depName=react-server-dom-webpack
|
|
217
|
-
'react-server-dom-webpack': '19.2.8',
|
|
218
|
-
},
|
|
219
|
-
devDependencies: {
|
|
220
|
-
// renovate: datasource=npm depName=vite
|
|
221
|
-
vite: '8.3.4',
|
|
222
|
-
// renovate: datasource=npm depName=@cloudflare/vite-plugin
|
|
223
|
-
'@cloudflare/vite-plugin': '1.63.1',
|
|
224
|
-
// renovate: datasource=npm depName=@vitejs/plugin-rsc
|
|
225
|
-
'@vitejs/plugin-rsc': '0.5.36',
|
|
226
|
-
// renovate: datasource=npm depName=@vitejs/plugin-react
|
|
227
|
-
'@vitejs/plugin-react': '6.1.2',
|
|
228
|
-
wrangler: STACK_DEPENDENCIES.wrangler,
|
|
229
|
-
},
|
|
145
|
+
stripe: '23.0.0',
|
|
230
146
|
};
|
|
231
147
|
/** Separate HTTP and inspector ports let all selected Workers run together. */
|
|
232
148
|
export const WORKER_DEV_PORTS = {
|
|
233
149
|
api: { http: 8787, inspector: 9231 },
|
|
234
|
-
realtime: { http: 8788, inspector: 9232 },
|
|
235
|
-
jobs: { http: 8789, inspector: 9233 },
|
|
236
|
-
scheduled: { http: 8790, inspector: 9234 },
|
|
237
|
-
workflows: { http: 8791, inspector: 9235 },
|
|
238
|
-
};
|
|
239
|
-
/** Compatible security overrides are catalog pins and must be audited too. */
|
|
240
|
-
export const SECURITY_OVERRIDE_DEPENDENCIES = {
|
|
241
|
-
// renovate: datasource=npm depName=@vitejs/plugin-react
|
|
242
|
-
'@vitejs/plugin-react': '5.2.0',
|
|
243
|
-
// renovate: datasource=npm depName=sharp
|
|
244
|
-
sharp: '0.35.5',
|
|
245
|
-
// renovate: datasource=npm depName=source-map-js
|
|
246
|
-
'source-map-js': '1.2.2',
|
|
247
|
-
// renovate: datasource=npm depName=shell-quote
|
|
248
|
-
'shell-quote': '1.12.0',
|
|
249
|
-
// renovate: datasource=npm depName=tmp
|
|
250
|
-
tmp: '0.2.7',
|
|
251
|
-
// renovate: datasource=npm depName=adm-zip
|
|
252
|
-
'adm-zip': '0.6.1',
|
|
253
|
-
// renovate: datasource=npm depName=baseline-browser-mapping
|
|
254
|
-
'baseline-browser-mapping': '2.11.27',
|
|
255
|
-
// renovate: datasource=npm depName=browserslist
|
|
256
|
-
browserslist: '4.29.3',
|
|
257
|
-
// renovate: datasource=npm depName=esbuild
|
|
258
|
-
esbuild: '0.25.12',
|
|
259
150
|
};
|
|
260
|
-
// Keep each compatible major independently reviewed.
|
|
261
|
-
// renovate: datasource=npm depName=glob
|
|
262
|
-
export const GLOB_10_OVERRIDE_VERSION = '10.5.0';
|
|
263
|
-
// renovate: datasource=npm depName=glob
|
|
264
|
-
export const GLOB_11_OVERRIDE_VERSION = '11.1.0';
|
|
265
|
-
// renovate: datasource=npm depName=brace-expansion
|
|
266
|
-
export const BRACE_EXPANSION_1_OVERRIDE_VERSION = '1.1.21';
|
|
267
|
-
// renovate: datasource=npm depName=brace-expansion
|
|
268
|
-
export const BRACE_EXPANSION_2_OVERRIDE_VERSION = '2.1.7';
|
|
269
|
-
// No blanket 3.x override: GHSA-3jxr-9vmj-r5cp lists no repaired 3.x
|
|
270
|
-
// release, and supported locked profiles do not consume that major.
|
|
271
|
-
// renovate: datasource=npm depName=brace-expansion
|
|
272
|
-
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';
|
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';
|
|
@@ -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) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RecipeContext } from '../registry/types.js';
|
|
2
|
-
export declare function scaffoldExpo(
|
|
2
|
+
export declare function scaffoldExpo(context: RecipeContext): Promise<void>;
|