anhedral 0.8.6 → 0.10.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 +137 -38
- package/assets/anhedral-cli-init-technical.svg +15 -15
- package/assets/anhedral-cli-init.svg +16 -16
- package/dist/access.d.ts +10 -0
- package/dist/access.js +93 -0
- package/dist/auth-schema-snapshot.d.ts +346 -0
- package/dist/auth-schema-snapshot.js +347 -0
- package/dist/auth-schema.d.ts +1 -0
- package/dist/auth-schema.js +57 -0
- package/dist/bin.js +349 -39
- package/dist/bounded-file.d.ts +2 -0
- package/dist/bounded-file.js +30 -0
- package/dist/capabilities.d.ts +24 -42
- package/dist/capabilities.js +73 -75
- package/dist/cloudflare.d.ts +14 -0
- package/dist/cloudflare.js +66 -0
- package/dist/command.js +12 -3
- package/dist/delivery.d.ts +118 -0
- package/dist/delivery.js +611 -0
- package/dist/dependencies.d.ts +24 -3
- package/dist/dependencies.js +112 -74
- package/dist/dependency-order.d.ts +2 -0
- package/dist/dependency-order.js +24 -0
- package/dist/index.d.ts +16 -3
- package/dist/index.js +11 -2
- package/dist/managed-hosting.d.ts +49 -0
- package/dist/managed-hosting.js +373 -0
- package/dist/management.d.ts +3 -0
- package/dist/management.js +47 -0
- package/dist/platforms/desktop.d.ts +2 -2
- package/dist/platforms/desktop.js +25 -15
- package/dist/platforms/extension.d.ts +2 -2
- package/dist/platforms/extension.js +104 -66
- package/dist/platforms/mobile.d.ts +2 -2
- package/dist/platforms/mobile.js +13 -7
- package/dist/pnpm-policy.d.ts +0 -2
- package/dist/pnpm-policy.js +18 -13
- package/dist/project-state.d.ts +28 -0
- package/dist/project-state.js +226 -0
- package/dist/provider-readiness.d.ts +30 -0
- package/dist/provider-readiness.js +87 -0
- package/dist/provision.d.ts +46 -0
- package/dist/provision.js +197 -0
- package/dist/readiness.d.ts +4 -2
- package/dist/readiness.js +64 -14
- package/dist/registry/add.d.ts +18 -0
- package/dist/registry/add.js +163 -0
- package/dist/registry/bootstrap.d.ts +2 -0
- package/dist/registry/bootstrap.js +14 -0
- package/dist/registry/commands.d.ts +2 -0
- package/dist/registry/commands.js +48 -0
- package/dist/registry/context.d.ts +3 -0
- package/dist/registry/context.js +21 -0
- package/dist/registry/options.d.ts +2 -0
- package/dist/registry/options.js +65 -0
- package/dist/registry/receipt.d.ts +2 -0
- package/dist/registry/receipt.js +52 -0
- package/dist/registry/resolve.d.ts +10 -0
- package/dist/registry/resolve.js +98 -0
- package/dist/registry/types.d.ts +64 -0
- package/dist/registry/usage.d.ts +1 -0
- package/dist/registry/usage.js +37 -0
- package/dist/render.d.ts +0 -4
- package/dist/render.js +3 -16
- package/dist/repository.d.ts +24 -0
- package/dist/repository.js +96 -0
- package/dist/scaffold/api.d.ts +2 -0
- package/dist/scaffold/api.js +13 -0
- package/dist/scaffold/auth.d.ts +3 -0
- package/dist/scaffold/auth.js +95 -0
- package/dist/scaffold/bootstrap.d.ts +3 -0
- package/dist/scaffold/bootstrap.js +39 -0
- package/dist/scaffold/compose.d.ts +4 -0
- package/dist/scaffold/compose.js +34 -0
- package/dist/scaffold/database.d.ts +2 -0
- package/dist/scaffold/database.js +43 -0
- package/dist/scaffold/documentation.d.ts +3 -0
- package/dist/scaffold/documentation.js +91 -0
- package/dist/scaffold/environment.d.ts +2 -0
- package/dist/scaffold/environment.js +5 -0
- package/dist/scaffold/files.d.ts +25 -0
- package/dist/scaffold/files.js +108 -0
- package/dist/scaffold/integrations.d.ts +3 -0
- package/dist/scaffold/integrations.js +7 -0
- package/dist/scaffold/services.d.ts +5 -0
- package/dist/scaffold/services.js +84 -0
- package/dist/scaffold/web.d.ts +2 -0
- package/dist/scaffold/web.js +102 -0
- package/dist/scaffold/workspace.d.ts +3 -0
- package/dist/scaffold/workspace.js +150 -0
- package/dist/security-backports.js +7 -2
- package/dist/stack-registry.d.ts +80 -0
- package/dist/stack-registry.js +424 -0
- package/dist/standard.d.ts +6 -19
- package/dist/standard.js +45 -658
- package/dist/transaction.js +47 -56
- package/dist/util.js +12 -2
- package/dist/vercel.d.ts +98 -0
- package/dist/vercel.js +796 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/vinext.d.ts +1 -0
- package/dist/vinext.js +83 -0
- package/dist/workspace-graph.d.ts +7 -0
- package/dist/workspace-graph.js +73 -0
- package/docs/application-stack-standard.md +76 -91
- package/docs/delivery-workflow.md +83 -0
- package/docs/managed-hosting-architecture.md +87 -0
- package/docs/sponsorships.md +25 -0
- package/package.json +23 -29
- package/dist/evidence-validation.d.ts +0 -2
- package/dist/evidence-validation.js +0 -18
- package/dist/foundation.d.ts +0 -6
- package/dist/foundation.js +0 -49
- package/dist/progress-view.d.ts +0 -57
- package/dist/progress-view.js +0 -69
- package/dist/progress.d.ts +0 -95
- package/dist/progress.js +0 -327
- package/dist/project.d.ts +0 -5
- package/dist/standard-products.d.ts +0 -2
- package/dist/standard-products.js +0 -6
- /package/assets/{images/svg/logo-white-subtract.svg → anhedral-mark.svg} +0 -0
- /package/dist/{project.js → registry/types.js} +0 -0
package/dist/dependencies.js
CHANGED
|
@@ -1,138 +1,176 @@
|
|
|
1
1
|
export const DESKTOP_DEPENDENCIES = {
|
|
2
|
-
|
|
2
|
+
dependencies: {
|
|
3
3
|
// renovate: datasource=npm depName=react
|
|
4
|
-
|
|
4
|
+
react: '19.2.7',
|
|
5
5
|
// renovate: datasource=npm depName=react-dom
|
|
6
|
-
|
|
6
|
+
'react-dom': '19.2.7',
|
|
7
7
|
// renovate: datasource=npm depName=clsx
|
|
8
|
-
|
|
8
|
+
clsx: '2.1.1',
|
|
9
9
|
// renovate: datasource=npm depName=tailwind-merge
|
|
10
|
-
|
|
10
|
+
'tailwind-merge': '3.4.0',
|
|
11
11
|
},
|
|
12
|
-
|
|
12
|
+
devDependencies: {
|
|
13
13
|
// renovate: datasource=npm depName=@tailwindcss/postcss
|
|
14
|
-
|
|
14
|
+
'@tailwindcss/postcss': '4.1.18',
|
|
15
15
|
// renovate: datasource=npm depName=@vitejs/plugin-react
|
|
16
|
-
|
|
16
|
+
'@vitejs/plugin-react': '5.2.0',
|
|
17
17
|
// renovate: datasource=npm depName=@types/node
|
|
18
|
-
|
|
18
|
+
'@types/node': '20.19.43',
|
|
19
19
|
// renovate: datasource=npm depName=@types/react
|
|
20
|
-
|
|
20
|
+
'@types/react': '19.2.7',
|
|
21
21
|
// renovate: datasource=npm depName=@types/react-dom
|
|
22
|
-
|
|
22
|
+
'@types/react-dom': '19.2.3',
|
|
23
23
|
// renovate: datasource=npm depName=electron
|
|
24
|
-
|
|
24
|
+
electron: '43.7.8',
|
|
25
25
|
// renovate: datasource=npm depName=electron-builder
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
'electron-builder': '26.15.3',
|
|
27
|
+
eslint: '10.0.3',
|
|
28
28
|
// renovate: datasource=npm depName=tailwindcss
|
|
29
|
-
|
|
29
|
+
tailwindcss: '4.1.18',
|
|
30
30
|
// renovate: datasource=npm depName=postcss
|
|
31
|
-
|
|
31
|
+
postcss: '8.5.23',
|
|
32
32
|
// renovate: datasource=npm depName=typescript
|
|
33
|
-
|
|
33
|
+
typescript: '5.9.3',
|
|
34
34
|
// renovate: datasource=npm depName=vite
|
|
35
|
-
|
|
36
|
-
}
|
|
35
|
+
vite: '7.3.6',
|
|
36
|
+
},
|
|
37
37
|
};
|
|
38
38
|
export const EXTENSION_DEPENDENCIES = {
|
|
39
|
-
|
|
39
|
+
dependencies: {
|
|
40
40
|
// renovate: datasource=npm depName=react
|
|
41
|
-
|
|
41
|
+
react: '19.2.7',
|
|
42
42
|
// renovate: datasource=npm depName=react-dom
|
|
43
|
-
|
|
43
|
+
'react-dom': '19.2.7',
|
|
44
44
|
// renovate: datasource=npm depName=clsx
|
|
45
|
-
|
|
45
|
+
clsx: '2.1.1',
|
|
46
46
|
// renovate: datasource=npm depName=tailwind-merge
|
|
47
|
-
|
|
47
|
+
'tailwind-merge': '3.4.0',
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
devDependencies: {
|
|
50
50
|
// renovate: datasource=npm depName=@types/chrome
|
|
51
|
-
|
|
51
|
+
'@types/chrome': '0.1.9',
|
|
52
52
|
// renovate: datasource=npm depName=@types/react
|
|
53
|
-
|
|
53
|
+
'@types/react': '19.2.7',
|
|
54
54
|
// renovate: datasource=npm depName=@types/react-dom
|
|
55
|
-
|
|
55
|
+
'@types/react-dom': '19.2.3',
|
|
56
56
|
// renovate: datasource=npm depName=@wxt-dev/module-react
|
|
57
|
-
|
|
58
|
-
// renovate: datasource=npm depName
|
|
59
|
-
|
|
57
|
+
'@wxt-dev/module-react': '1.2.2',
|
|
58
|
+
// renovate: datasource=npm depName=autoprefixer
|
|
59
|
+
autoprefixer: '10.4.23',
|
|
60
60
|
// renovate: datasource=npm depName=postcss
|
|
61
|
-
|
|
61
|
+
postcss: '8.5.23',
|
|
62
62
|
// renovate: datasource=npm depName=tailwindcss
|
|
63
|
-
|
|
63
|
+
tailwindcss: '3.4.19',
|
|
64
64
|
// renovate: datasource=npm depName=typescript
|
|
65
|
-
|
|
65
|
+
typescript: '5.9.3',
|
|
66
66
|
// renovate: datasource=npm depName=wxt
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"vite": '8.3.3'
|
|
70
|
-
}
|
|
67
|
+
wxt: '0.20.27',
|
|
68
|
+
},
|
|
71
69
|
};
|
|
72
70
|
export const MOBILE_APP_DEPENDENCIES = {
|
|
73
|
-
|
|
71
|
+
dependencies: {
|
|
74
72
|
// renovate: datasource=npm depName=@rn-primitives/portal
|
|
75
|
-
|
|
73
|
+
'@rn-primitives/portal': '1.5.2',
|
|
76
74
|
// renovate: datasource=npm depName=clsx
|
|
77
|
-
|
|
75
|
+
clsx: '2.1.1',
|
|
78
76
|
// renovate: datasource=npm depName=expo
|
|
79
|
-
|
|
77
|
+
expo: '57.0.8',
|
|
80
78
|
// renovate: datasource=npm depName=expo-linking
|
|
81
|
-
|
|
79
|
+
'expo-linking': '57.0.4',
|
|
82
80
|
// renovate: datasource=npm depName=expo-router
|
|
83
|
-
|
|
81
|
+
'expo-router': '57.0.8',
|
|
84
82
|
// renovate: datasource=npm depName=expo-status-bar
|
|
85
|
-
|
|
83
|
+
'expo-status-bar': '57.0.1',
|
|
86
84
|
// renovate: datasource=npm depName=react
|
|
87
|
-
|
|
85
|
+
react: '19.2.3',
|
|
88
86
|
// renovate: datasource=npm depName=react-dom
|
|
89
|
-
|
|
87
|
+
'react-dom': '19.2.3',
|
|
90
88
|
// renovate: datasource=npm depName=react-native
|
|
91
|
-
|
|
89
|
+
'react-native': '0.86.0',
|
|
92
90
|
// renovate: datasource=npm depName=react-native-reanimated
|
|
93
|
-
|
|
91
|
+
'react-native-reanimated': '4.5.0',
|
|
94
92
|
// renovate: datasource=npm depName=react-native-safe-area-context
|
|
95
|
-
|
|
93
|
+
'react-native-safe-area-context': '5.7.0',
|
|
96
94
|
// renovate: datasource=npm depName=react-native-screens
|
|
97
|
-
|
|
95
|
+
'react-native-screens': '4.26.2',
|
|
98
96
|
// renovate: datasource=npm depName=react-native-worklets
|
|
99
|
-
|
|
97
|
+
'react-native-worklets': '0.10.0',
|
|
100
98
|
// renovate: datasource=npm depName=react-native-web
|
|
101
|
-
|
|
99
|
+
'react-native-web': '0.21.2',
|
|
102
100
|
// renovate: datasource=npm depName=tailwind-merge
|
|
103
|
-
|
|
101
|
+
'tailwind-merge': '3.5.0',
|
|
104
102
|
// renovate: datasource=npm depName=tailwindcss-animate
|
|
105
|
-
|
|
103
|
+
'tailwindcss-animate': '1.0.7',
|
|
106
104
|
},
|
|
107
|
-
|
|
105
|
+
devDependencies: {
|
|
108
106
|
// renovate: datasource=npm depName=@babel/core
|
|
109
|
-
|
|
110
|
-
// renovate: datasource=npm depName=@babel/plugin-transform-react-jsx
|
|
111
|
-
"@babel/plugin-transform-react-jsx": '7.29.7',
|
|
107
|
+
'@babel/core': '7.29.7',
|
|
112
108
|
// renovate: datasource=npm depName=babel-preset-expo
|
|
113
|
-
|
|
109
|
+
'babel-preset-expo': '57.0.14',
|
|
114
110
|
// renovate: datasource=npm depName=@testing-library/dom
|
|
115
|
-
|
|
111
|
+
'@testing-library/dom': '10.4.1',
|
|
116
112
|
// renovate: datasource=npm depName=@react-native/metro-config
|
|
117
|
-
|
|
113
|
+
'@react-native/metro-config': '0.86.0',
|
|
118
114
|
// renovate: datasource=npm depName=@types/react
|
|
119
|
-
|
|
115
|
+
'@types/react': '19.2.10',
|
|
116
|
+
// renovate: datasource=npm depName=@types/react-dom
|
|
117
|
+
'@types/react-dom': '19.2.3',
|
|
120
118
|
// renovate: datasource=npm depName=typescript
|
|
121
|
-
|
|
122
|
-
}
|
|
119
|
+
typescript: '6.0.3',
|
|
120
|
+
},
|
|
123
121
|
};
|
|
124
122
|
export const MOBILE_NATIVEWIND_DEPENDENCIES = {
|
|
125
|
-
|
|
123
|
+
dependencies: {
|
|
126
124
|
// renovate: datasource=npm depName=nativewind
|
|
127
|
-
|
|
125
|
+
nativewind: '4.2.6',
|
|
128
126
|
// renovate: datasource=npm depName=react-native-css-interop
|
|
129
|
-
|
|
127
|
+
'react-native-css-interop': '0.2.6',
|
|
130
128
|
// renovate: datasource=npm depName=tailwindcss
|
|
131
|
-
|
|
132
|
-
}
|
|
129
|
+
tailwindcss: '3.4.19',
|
|
130
|
+
},
|
|
133
131
|
};
|
|
134
|
-
export const PACKAGE_MANAGER = 'pnpm@
|
|
132
|
+
export const PACKAGE_MANAGER = 'pnpm@10.34.5';
|
|
135
133
|
// renovate: datasource=npm depName=eas-cli
|
|
136
|
-
export const EAS_CLI_VERSION = '
|
|
137
|
-
// renovate: datasource=npm depName=
|
|
138
|
-
export const
|
|
134
|
+
export const EAS_CLI_VERSION = '21.0.1';
|
|
135
|
+
// renovate: datasource=npm depName=shadcn
|
|
136
|
+
export const SHADCN_VERSION = '4.21.4';
|
|
137
|
+
export const STACK_DEPENDENCIES = {
|
|
138
|
+
// renovate: datasource=npm depName=drizzle-orm
|
|
139
|
+
'drizzle-orm': '0.45.4',
|
|
140
|
+
// renovate: datasource=npm depName=@clerk/nextjs
|
|
141
|
+
'@clerk/nextjs': '7.9.14',
|
|
142
|
+
// renovate: datasource=npm depName=@clerk/backend
|
|
143
|
+
'@clerk/backend': '3.23.2',
|
|
144
|
+
// renovate: datasource=npm depName=wrangler
|
|
145
|
+
wrangler: '4.149.0',
|
|
146
|
+
// renovate: datasource=npm depName=typescript
|
|
147
|
+
typescript: '5.9.3',
|
|
148
|
+
// renovate: datasource=npm depName=@types/node
|
|
149
|
+
'@types/node': '22.20.5',
|
|
150
|
+
// renovate: datasource=npm depName=eslint
|
|
151
|
+
eslint: '9.39.5',
|
|
152
|
+
// renovate: datasource=npm depName=postcss-load-config
|
|
153
|
+
'postcss-load-config': '6.0.1',
|
|
154
|
+
// renovate: datasource=npm depName=@opennextjs/cloudflare
|
|
155
|
+
'@opennextjs/cloudflare': '1.20.10',
|
|
156
|
+
// renovate: datasource=npm depName=drizzle-kit
|
|
157
|
+
'drizzle-kit': '0.31.11',
|
|
158
|
+
// renovate: datasource=npm depName=hono
|
|
159
|
+
hono: '4.13.13',
|
|
160
|
+
// renovate: datasource=npm depName=@hono/zod-openapi
|
|
161
|
+
'@hono/zod-openapi': '1.6.3',
|
|
162
|
+
// renovate: datasource=npm depName=fallow
|
|
163
|
+
fallow: '3.33.1',
|
|
164
|
+
// renovate: datasource=npm depName=openai
|
|
165
|
+
openai: '6.49.0',
|
|
166
|
+
// renovate: datasource=npm depName=ai
|
|
167
|
+
ai: '6.0.303',
|
|
168
|
+
// renovate: datasource=npm depName=@ai-sdk/openai
|
|
169
|
+
'@ai-sdk/openai': '3.0.125',
|
|
170
|
+
// renovate: datasource=npm depName=resend
|
|
171
|
+
resend: '6.32.1',
|
|
172
|
+
// renovate: datasource=npm depName=stripe
|
|
173
|
+
stripe: '20.4.1',
|
|
174
|
+
// renovate: datasource=npm depName=posthog-node
|
|
175
|
+
'posthog-node': '5.55.2',
|
|
176
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Sort a directed dependency graph in O(vertices + edges), rejecting unresolved edges and cycles. */
|
|
2
|
+
export function dependencyOrder(graph, label) {
|
|
3
|
+
const visiting = new Set();
|
|
4
|
+
const visited = new Set();
|
|
5
|
+
const order = [];
|
|
6
|
+
const visit = (name) => {
|
|
7
|
+
if (visited.has(name))
|
|
8
|
+
return;
|
|
9
|
+
if (visiting.has(name))
|
|
10
|
+
throw new Error(`${label} dependency cycle at ${name}.`);
|
|
11
|
+
const dependencies = graph.get(name);
|
|
12
|
+
if (!dependencies)
|
|
13
|
+
throw new Error(`${label} dependency missing: ${name}.`);
|
|
14
|
+
visiting.add(name);
|
|
15
|
+
for (const dependency of dependencies)
|
|
16
|
+
visit(dependency);
|
|
17
|
+
visiting.delete(name);
|
|
18
|
+
visited.add(name);
|
|
19
|
+
order.push(name);
|
|
20
|
+
};
|
|
21
|
+
for (const name of graph.keys())
|
|
22
|
+
visit(name);
|
|
23
|
+
return order;
|
|
24
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
export { STANDARD_PRODUCTS, STANDARD_USAGE, parseStandardOptions,
|
|
1
|
+
export { STANDARD_PRODUCTS, STANDARD_USAGE, parseStandardOptions, scaffoldStandardProject, } from './standard.js';
|
|
2
2
|
export type { StandardOptions, StandardProduct, StandardRunner } from './standard.js';
|
|
3
3
|
export { GENERATOR_VERSION } from './version.js';
|
|
4
4
|
export { CAPABILITIES, CAPABILITY_REGISTRY, createSetupPlan } from './capabilities.js';
|
|
5
5
|
export type { Capability } from './capabilities.js';
|
|
6
6
|
export { inspectProject, validateSetupPlan } from './readiness.js';
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
7
|
+
export { registerApplication, readApplication, connectApplication, planDelivery, shipApplication, applicationStatus, verifyApplication, rollbackApplication, recoverApplication, } from './delivery.js';
|
|
8
|
+
export type { ApplicationProject, DeploymentTarget, DeliveryRunner } from './delivery.js';
|
|
9
|
+
export { planProvisioning, provisionApplication } from './provision.js';
|
|
10
|
+
export { registerVercelApplication, connectVercelApplication, planVercelDelivery, shipVercelApplication, vercelApplicationStatus, verifyVercelApplication, rollbackVercelApplication, adoptVercelApplication, recoverVercelApplication, } from './vercel.js';
|
|
11
|
+
export { setupRepository, githubRepository } from './repository.js';
|
|
12
|
+
export { inspectProviderReadiness } from './provider-readiness.js';
|
|
13
|
+
export { registerManagedApplication, stageManagedVersion, saveManagedVersion, deployManagedVersion, managedApplicationStatus, } from './managed-hosting.js';
|
|
14
|
+
export { STACK_REGISTRY, STACK_ITEMS, getStackItem } from './stack-registry.js';
|
|
15
|
+
export type { StackItemId } from './stack-registry.js';
|
|
16
|
+
export type { StackRegistryItem } from './registry/types.js';
|
|
17
|
+
export { inspectWorkspaceGraph } from './workspace-graph.js';
|
|
18
|
+
export { resolveStackRegistry } from './registry/resolve.js';
|
|
19
|
+
export type { ResolvedStackRegistry } from './registry/resolve.js';
|
|
20
|
+
export { addStackItems } from './registry/add.js';
|
|
21
|
+
export type { AddRequest } from './registry/add.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
export { STANDARD_PRODUCTS, STANDARD_USAGE, parseStandardOptions,
|
|
1
|
+
export { STANDARD_PRODUCTS, STANDARD_USAGE, parseStandardOptions, scaffoldStandardProject, } from './standard.js';
|
|
2
2
|
export { GENERATOR_VERSION } from './version.js';
|
|
3
3
|
export { CAPABILITIES, CAPABILITY_REGISTRY, createSetupPlan } from './capabilities.js';
|
|
4
4
|
export { inspectProject, validateSetupPlan } from './readiness.js';
|
|
5
|
-
export {
|
|
5
|
+
export { registerApplication, readApplication, connectApplication, planDelivery, shipApplication, applicationStatus, verifyApplication, rollbackApplication, recoverApplication, } from './delivery.js';
|
|
6
|
+
export { planProvisioning, provisionApplication } from './provision.js';
|
|
7
|
+
export { registerVercelApplication, connectVercelApplication, planVercelDelivery, shipVercelApplication, vercelApplicationStatus, verifyVercelApplication, rollbackVercelApplication, adoptVercelApplication, recoverVercelApplication, } from './vercel.js';
|
|
8
|
+
export { setupRepository, githubRepository } from './repository.js';
|
|
9
|
+
export { inspectProviderReadiness } from './provider-readiness.js';
|
|
10
|
+
export { registerManagedApplication, stageManagedVersion, saveManagedVersion, deployManagedVersion, managedApplicationStatus, } from './managed-hosting.js';
|
|
11
|
+
export { STACK_REGISTRY, STACK_ITEMS, getStackItem } from './stack-registry.js';
|
|
12
|
+
export { inspectWorkspaceGraph } from './workspace-graph.js';
|
|
13
|
+
export { resolveStackRegistry } from './registry/resolve.js';
|
|
14
|
+
export { addStackItems } from './registry/add.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface ManagedProject {
|
|
2
|
+
schemaVersion: 1;
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
provider: 'anhedral';
|
|
6
|
+
ownerId: string | null;
|
|
7
|
+
projectId: string | null;
|
|
8
|
+
audience: 'private' | 'public';
|
|
9
|
+
hostingOrigin?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ManagedVersion {
|
|
12
|
+
schemaVersion: 1;
|
|
13
|
+
projectId: string;
|
|
14
|
+
commit: string;
|
|
15
|
+
sourceSha256: string;
|
|
16
|
+
artifactSha256: string;
|
|
17
|
+
sourceBytes: number;
|
|
18
|
+
artifactBytes: number;
|
|
19
|
+
stageId: string;
|
|
20
|
+
state: 'staged' | 'saved';
|
|
21
|
+
versionId?: string;
|
|
22
|
+
}
|
|
23
|
+
export type ManagedFetch = typeof fetch;
|
|
24
|
+
export declare function registerManagedApplication(root: string, audience?: 'private' | 'public'): ManagedProject;
|
|
25
|
+
export declare function stageManagedVersion(root: string, artifactDirectory: string): Promise<ManagedVersion>;
|
|
26
|
+
export declare function saveManagedVersion(root: string, stageId: string, send?: ManagedFetch): Promise<ManagedVersion>;
|
|
27
|
+
export declare function deployManagedVersion(root: string, stageId: string, send?: ManagedFetch): Promise<{
|
|
28
|
+
productVerification: string;
|
|
29
|
+
url?: unknown;
|
|
30
|
+
projectId: string;
|
|
31
|
+
ownerId: string;
|
|
32
|
+
audience: "public" | "private";
|
|
33
|
+
deploymentId: string;
|
|
34
|
+
versionId: string;
|
|
35
|
+
commit: string;
|
|
36
|
+
artifactSha256: string;
|
|
37
|
+
state: unknown;
|
|
38
|
+
}>;
|
|
39
|
+
export declare function managedApplicationStatus(root: string, send?: ManagedFetch): Promise<{
|
|
40
|
+
project: ManagedProject;
|
|
41
|
+
state: string;
|
|
42
|
+
productVerification: string;
|
|
43
|
+
evidence?: undefined;
|
|
44
|
+
} | {
|
|
45
|
+
project: ManagedProject;
|
|
46
|
+
evidence: string;
|
|
47
|
+
state: unknown;
|
|
48
|
+
productVerification: string;
|
|
49
|
+
}>;
|