anhedral 0.13.0 → 0.16.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 +23 -229
- package/assets/patches/audit-deps.mjs +12 -2
- package/assets/stack/ai-schema.ts.txt +5 -0
- package/assets/stack/ai.ts.txt +30 -0
- package/assets/stack/api-index.ts.txt +15 -0
- package/assets/stack/auth-features.ts.txt +4 -0
- package/assets/stack/auth-journal.json.txt +13 -0
- package/assets/stack/auth-migration.sql.txt +53 -0
- package/assets/stack/auth-routes.ts.txt +11 -0
- package/assets/stack/auth-schema.ts.txt +64 -0
- package/assets/stack/auth-snapshot.json.txt +346 -0
- package/assets/stack/auth.ts.txt +32 -0
- package/assets/stack/billing-mode.ts.txt +8 -0
- package/assets/stack/billing-schema.ts.txt +11 -0
- package/assets/stack/desktop.rs.txt +21 -0
- package/assets/stack/entitlement-guard.ts.txt +32 -0
- package/assets/stack/entitlements.ts.txt +8 -0
- package/assets/stack/events-schema.ts.txt +12 -0
- package/assets/stack/events.ts.txt +59 -0
- package/assets/stack/mobile-auth.ts.txt +25 -0
- package/assets/stack/mobile-billing.tsx.txt +63 -0
- package/assets/stack/mobile-session.tsx.txt +83 -0
- package/assets/stack/native-button.tsx.txt +108 -0
- package/assets/stack/native-global.css.txt +4 -0
- package/assets/stack/native-lib-utils.ts.txt +5 -0
- package/assets/stack/native-metro.config.js.txt +6 -0
- package/assets/stack/native-nativewind-env.d.ts.txt +1 -0
- package/assets/stack/native-tailwind.config.js.txt +73 -0
- package/assets/stack/native-text.tsx.txt +89 -0
- package/assets/stack/purchases.ts.txt +65 -0
- package/assets/stack/revenuecat.ts.txt +88 -0
- package/assets/stack/rtc-schema.ts.txt +10 -0
- package/assets/stack/rtc.ts.txt +122 -0
- package/assets/stack/security.ts.txt +31 -0
- package/assets/stack/storage.ts.txt +36 -0
- package/assets/stack/stripe.ts.txt +126 -0
- package/assets/stack/web-sign-in.tsx.txt +51 -0
- package/assets/ui/LICENSE.react-native-reusables +21 -0
- package/assets/ui/LICENSE.shadcn +21 -0
- package/assets/ui/UPSTREAM.json +39 -0
- package/assets/ui/catalog.json +891 -0
- package/assets/ui/extensions/registry.json +6 -0
- package/assets/ui/native/_controls.tsx +521 -0
- package/assets/ui/native/_core.tsx +118 -0
- package/assets/ui/native/_data.tsx +200 -0
- package/assets/ui/native/_display.tsx +453 -0
- package/assets/ui/native/_feedback.tsx +242 -0
- package/assets/ui/native/_legacy-dialog.tsx +38 -0
- package/assets/ui/native/_motion.tsx +520 -0
- package/assets/ui/native/_overlay.tsx +402 -0
- package/assets/ui/native/_selection.tsx +366 -0
- package/assets/ui/native/accordion.tsx +1 -0
- package/assets/ui/native/alert-dialog.tsx +11 -0
- package/assets/ui/native/alert.tsx +1 -0
- package/assets/ui/native/aspect-ratio.tsx +1 -0
- package/assets/ui/native/attachment.tsx +8 -0
- package/assets/ui/native/avatar.tsx +8 -0
- package/assets/ui/native/badge.tsx +1 -0
- package/assets/ui/native/breadcrumb.tsx +9 -0
- package/assets/ui/native/bubble.tsx +1 -0
- package/assets/ui/native/button-group.tsx +1 -0
- package/assets/ui/native/button.tsx +86 -0
- package/assets/ui/native/calendar.tsx +170 -0
- package/assets/ui/native/card.tsx +44 -0
- package/assets/ui/native/carousel.tsx +1 -0
- package/assets/ui/native/chart.tsx +193 -0
- package/assets/ui/native/checkbox.tsx +1 -0
- package/assets/ui/native/code-block.tsx +137 -0
- package/assets/ui/native/collapsible.tsx +1 -0
- package/assets/ui/native/combobox.tsx +1 -0
- package/assets/ui/native/command.tsx +11 -0
- package/assets/ui/native/context-menu.tsx +16 -0
- package/assets/ui/native/data-table.tsx +1 -0
- package/assets/ui/native/date-picker.tsx +43 -0
- package/assets/ui/native/dialog.tsx +15 -0
- package/assets/ui/native/direction.tsx +1 -0
- package/assets/ui/native/drawer.tsx +10 -0
- package/assets/ui/native/dropdown-menu.tsx +16 -0
- package/assets/ui/native/empty.tsx +8 -0
- package/assets/ui/native/field.tsx +13 -0
- package/assets/ui/native/hover-card.tsx +1 -0
- package/assets/ui/native/input-group.tsx +8 -0
- package/assets/ui/native/input-otp.tsx +1 -0
- package/assets/ui/native/input.tsx +28 -0
- package/assets/ui/native/item.tsx +12 -0
- package/assets/ui/native/kbd.tsx +1 -0
- package/assets/ui/native/label.tsx +4 -0
- package/assets/ui/native/layout.tsx +26 -0
- package/assets/ui/native/marker.tsx +1 -0
- package/assets/ui/native/menubar.tsx +17 -0
- package/assets/ui/native/message-scroller.tsx +6 -0
- package/assets/ui/native/message.tsx +10 -0
- package/assets/ui/native/native-select.tsx +1 -0
- package/assets/ui/native/navigation-menu.tsx +10 -0
- package/assets/ui/native/pagination.tsx +9 -0
- package/assets/ui/native/popover.tsx +1 -0
- package/assets/ui/native/progress.tsx +1 -0
- package/assets/ui/native/questionnaire.tsx +130 -0
- package/assets/ui/native/radio-group.tsx +1 -0
- package/assets/ui/native/registry.json +1103 -0
- package/assets/ui/native/resizable.tsx +1 -0
- package/assets/ui/native/scroll-area.tsx +1 -0
- package/assets/ui/native/select.tsx +11 -0
- package/assets/ui/native/separator.tsx +1 -0
- package/assets/ui/native/sheet.tsx +10 -0
- package/assets/ui/native/sidebar.tsx +22 -0
- package/assets/ui/native/skeleton.tsx +1 -0
- package/assets/ui/native/slider.tsx +1 -0
- package/assets/ui/native/spinner.tsx +1 -0
- package/assets/ui/native/switch.tsx +1 -0
- package/assets/ui/native/table.tsx +10 -0
- package/assets/ui/native/tabs.tsx +1 -0
- package/assets/ui/native/text.tsx +20 -0
- package/assets/ui/native/textarea.tsx +1 -0
- package/assets/ui/native/theme-switcher.tsx +22 -0
- package/assets/ui/native/toast.tsx +11 -0
- package/assets/ui/native/toggle-group.tsx +1 -0
- package/assets/ui/native/toggle.tsx +1 -0
- package/assets/ui/native/tooltip.tsx +1 -0
- package/assets/ui/native/trace.tsx +20 -0
- package/assets/ui/native/typography.tsx +15 -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/bin.js +7 -12
- package/dist/capabilities.d.ts +4 -33
- package/dist/capabilities.js +2 -84
- package/dist/capability-catalog.d.ts +83 -0
- package/dist/capability-catalog.js +121 -0
- package/dist/capability-command.d.ts +3 -0
- package/dist/capability-command.js +188 -0
- package/dist/capability-editor.d.ts +17 -0
- package/dist/capability-editor.js +97 -0
- package/dist/capability-recipes.d.ts +4 -0
- package/dist/capability-recipes.js +520 -0
- package/dist/capability-references.d.ts +4 -0
- package/dist/capability-references.js +7 -0
- package/dist/cli-commands.d.ts +1 -2
- package/dist/cli-commands.js +10 -104
- package/dist/cli-output.d.ts +1 -2
- package/dist/cli-output.js +6 -251
- package/dist/command-schema.js +40 -374
- package/dist/dependencies.d.ts +34 -62
- package/dist/dependencies.js +112 -199
- package/dist/index.d.ts +1 -45
- package/dist/index.js +1 -30
- package/dist/platforms/mobile.js +29 -139
- package/dist/platforms/web.d.ts +3 -0
- package/dist/platforms/web.js +251 -0
- package/dist/project-config.d.ts +2 -13
- package/dist/project-config.js +10 -83
- package/dist/registry/context.js +0 -1
- package/dist/registry/options.js +6 -40
- package/dist/registry/resolve.d.ts +3 -4
- package/dist/registry/resolve.js +18 -108
- package/dist/registry/types.d.ts +1 -7
- package/dist/registry/usage.js +3 -9
- package/dist/runtime-policy.d.ts +0 -2
- package/dist/runtime-policy.js +0 -16
- package/dist/scaffold/backend.d.ts +0 -4
- package/dist/scaffold/backend.js +1 -189
- 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 +19 -126
- package/dist/scaffold/documentation.d.ts +0 -1
- package/dist/scaffold/documentation.js +82 -84
- package/dist/scaffold/expo-runtime.d.ts +2 -2
- package/dist/scaffold/expo-runtime.js +9 -101
- package/dist/scaffold/native-ui.d.ts +2 -0
- package/dist/scaffold/native-ui.js +74 -0
- package/dist/scaffold/stack-documentation.d.ts +0 -1
- package/dist/scaffold/stack-documentation.js +3 -49
- package/dist/scaffold/storage.d.ts +2 -0
- package/dist/scaffold/storage.js +21 -0
- package/dist/scaffold/styling.d.ts +1 -1
- package/dist/scaffold/styling.js +20 -28
- package/dist/scaffold/workspace.js +63 -199
- package/dist/stack-registry.d.ts +2 -58
- package/dist/stack-registry.js +22 -446
- package/dist/standard.js +7 -24
- package/dist/ui-catalog.d.ts +26 -0
- package/dist/ui-catalog.js +31 -0
- package/dist/ui-command.d.ts +3 -0
- package/dist/ui-command.js +219 -0
- package/dist/ui-project.d.ts +22 -0
- package/dist/ui-project.js +110 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/anhedral-stack.md +4 -119
- package/docs/capabilities.md +110 -0
- package/docs/native-ui.md +102 -0
- package/docs/software-factory.md +16 -577
- package/docs/stack-standard.md +11 -307
- package/docs/ui.md +33 -0
- package/docs/verification.md +511 -0
- package/package.json +26 -27
- package/dist/access.d.ts +0 -10
- package/dist/access.js +0 -93
- package/dist/auth-schema-snapshot.d.ts +0 -346
- package/dist/auth-schema-snapshot.js +0 -347
- package/dist/auth-schema.d.ts +0 -1
- package/dist/auth-schema.js +0 -57
- package/dist/capability-contract.d.ts +0 -47
- package/dist/capability-contract.js +0 -168
- package/dist/catalog-model.d.ts +0 -24
- package/dist/catalog-model.js +0 -1
- package/dist/catalog-registration.d.ts +0 -16
- package/dist/catalog-registration.js +0 -22
- package/dist/catalog-snapshot.d.ts +0 -5
- package/dist/catalog-snapshot.js +0 -97
- package/dist/cli-delivery.d.ts +0 -3
- package/dist/cli-delivery.js +0 -172
- package/dist/cloudflare.d.ts +0 -25
- package/dist/cloudflare.js +0 -226
- package/dist/delivery-evidence.d.ts +0 -62
- package/dist/delivery-evidence.js +0 -186
- package/dist/delivery.d.ts +0 -88
- package/dist/delivery.js +0 -570
- package/dist/inspector-model.d.ts +0 -123
- package/dist/inspector-model.js +0 -1
- package/dist/integration-service-readers.d.ts +0 -13
- package/dist/integration-service-readers.js +0 -173
- package/dist/lifecycle-model.d.ts +0 -15
- package/dist/lifecycle-model.js +0 -20
- package/dist/lifecycle.d.ts +0 -11
- package/dist/lifecycle.js +0 -91
- package/dist/management.d.ts +0 -3
- package/dist/management.js +0 -47
- package/dist/mobile-delivery.d.ts +0 -77
- package/dist/mobile-delivery.js +0 -366
- 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/project-catalog.d.ts +0 -41
- package/dist/project-catalog.js +0 -288
- package/dist/project-inspector.d.ts +0 -4
- package/dist/project-inspector.js +0 -702
- package/dist/project-lifecycle.d.ts +0 -25
- package/dist/project-lifecycle.js +0 -57
- package/dist/project-state.d.ts +0 -49
- package/dist/project-state.js +0 -563
- package/dist/provider-auth.d.ts +0 -41
- package/dist/provider-auth.js +0 -215
- package/dist/provider-readiness.d.ts +0 -30
- package/dist/provider-readiness.js +0 -104
- package/dist/providers/adapters.d.ts +0 -17
- package/dist/providers/adapters.js +0 -278
- package/dist/providers/api.d.ts +0 -29
- package/dist/providers/api.js +0 -253
- package/dist/providers/config.d.ts +0 -15
- package/dist/providers/config.js +0 -182
- package/dist/providers/definitions.d.ts +0 -318
- package/dist/providers/definitions.js +0 -127
- package/dist/providers/provision.d.ts +0 -24
- package/dist/providers/provision.js +0 -76
- package/dist/providers/receipts.d.ts +0 -20
- package/dist/providers/receipts.js +0 -66
- package/dist/providers/recovery-verification.d.ts +0 -7
- package/dist/providers/recovery-verification.js +0 -112
- package/dist/providers/recovery.d.ts +0 -30
- package/dist/providers/recovery.js +0 -34
- package/dist/providers/runtime.d.ts +0 -10
- package/dist/providers/runtime.js +0 -265
- package/dist/providers/schema.d.ts +0 -28
- package/dist/providers/schema.js +0 -49
- package/dist/providers/state.d.ts +0 -55
- package/dist/providers/state.js +0 -289
- package/dist/provision.d.ts +0 -55
- package/dist/provision.js +0 -284
- package/dist/r2-service-data.d.ts +0 -2
- package/dist/r2-service-data.js +0 -136
- package/dist/readiness.d.ts +0 -23
- package/dist/readiness.js +0 -122
- package/dist/registry/add.d.ts +0 -24
- package/dist/registry/add.js +0 -270
- package/dist/registry/bootstrap.d.ts +0 -2
- package/dist/registry/bootstrap.js +0 -14
- package/dist/registry/commands.d.ts +0 -3
- package/dist/registry/commands.js +0 -85
- package/dist/registry/presets.d.ts +0 -4
- package/dist/registry/presets.js +0 -41
- package/dist/registry/preview.d.ts +0 -11
- package/dist/registry/preview.js +0 -91
- package/dist/registry/receipt.d.ts +0 -3
- package/dist/registry/receipt.js +0 -68
- package/dist/repository.d.ts +0 -24
- package/dist/repository.js +0 -96
- package/dist/scaffold/auth.d.ts +0 -3
- package/dist/scaffold/auth.js +0 -151
- package/dist/scaffold/billing-config.d.ts +0 -1
- package/dist/scaffold/billing-config.js +0 -73
- package/dist/scaffold/billing-contracts.d.ts +0 -2
- package/dist/scaffold/billing-contracts.js +0 -48
- package/dist/scaffold/billing-providers.d.ts +0 -1
- package/dist/scaffold/billing-providers.js +0 -249
- package/dist/scaffold/billing-schema.d.ts +0 -1
- package/dist/scaffold/billing-schema.js +0 -34
- package/dist/scaffold/billing-security.d.ts +0 -1
- package/dist/scaffold/billing-security.js +0 -46
- package/dist/scaffold/billing-server.d.ts +0 -1
- package/dist/scaffold/billing-server.js +0 -139
- package/dist/scaffold/billing-store.d.ts +0 -1
- package/dist/scaffold/billing-store.js +0 -72
- package/dist/scaffold/billing.d.ts +0 -2
- package/dist/scaffold/billing.js +0 -216
- package/dist/scaffold/cloudflare-services.d.ts +0 -8
- package/dist/scaffold/cloudflare-services.js +0 -198
- package/dist/scaffold/expo-auth.d.ts +0 -3
- package/dist/scaffold/expo-auth.js +0 -192
- package/dist/scaffold/expo-billing.d.ts +0 -3
- package/dist/scaffold/expo-billing.js +0 -292
- package/dist/scaffold/integrations.d.ts +0 -4
- package/dist/scaffold/integrations.js +0 -12
- 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/service-deletion.d.ts +0 -29
- package/dist/service-deletion.js +0 -195
- package/dist/service-descriptor.d.ts +0 -10
- package/dist/service-descriptor.js +0 -78
- package/dist/service-model.d.ts +0 -49
- package/dist/service-model.js +0 -8
- package/dist/service-operations.d.ts +0 -29
- package/dist/service-operations.js +0 -78
- package/dist/service-readers.d.ts +0 -8
- package/dist/service-readers.js +0 -247
- package/dist/services-command.d.ts +0 -39
- package/dist/services-command.js +0 -102
- package/dist/ship.d.ts +0 -348
- package/dist/ship.js +0 -239
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResizablePanelGroup, ResizablePanel, ResizableHandle } from './_motion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScrollArea, ScrollBar } from './_data';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Separator } from './_display';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export {
|
|
2
|
+
SidebarProvider,
|
|
3
|
+
useSidebar,
|
|
4
|
+
Sidebar,
|
|
5
|
+
SidebarTrigger,
|
|
6
|
+
SidebarInset,
|
|
7
|
+
SidebarHeader,
|
|
8
|
+
SidebarFooter,
|
|
9
|
+
SidebarContent,
|
|
10
|
+
SidebarGroup,
|
|
11
|
+
SidebarGroupContent,
|
|
12
|
+
SidebarGroupLabel,
|
|
13
|
+
SidebarMenu,
|
|
14
|
+
SidebarMenuItem,
|
|
15
|
+
SidebarMenuButton,
|
|
16
|
+
SidebarMenuAction,
|
|
17
|
+
SidebarMenuBadge,
|
|
18
|
+
SidebarSeparator,
|
|
19
|
+
SidebarMenuSub,
|
|
20
|
+
SidebarMenuSubItem,
|
|
21
|
+
SidebarMenuSubButton,
|
|
22
|
+
} from './_feedback';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton } from './_display';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Slider } from './_motion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner } from './_display';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch } from './_controls';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './_controls';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Text as NativeText, StyleSheet, type TextProps as NativeTextProps } from 'react-native';
|
|
2
|
+
import { useTheme } from '../theme';
|
|
3
|
+
export type TextProps = NativeTextProps & {
|
|
4
|
+
variant?: 'heading' | 'title' | 'body' | 'muted' | 'caption' | 'label';
|
|
5
|
+
};
|
|
6
|
+
const typography = StyleSheet.create({
|
|
7
|
+
heading: { fontSize: 24, lineHeight: 32, fontWeight: '600' },
|
|
8
|
+
title: { fontSize: 16, lineHeight: 22, fontWeight: '500' },
|
|
9
|
+
body: { fontSize: 14, lineHeight: 20, fontWeight: '400' },
|
|
10
|
+
muted: { fontSize: 14, lineHeight: 20, fontWeight: '400' },
|
|
11
|
+
caption: { fontSize: 12, lineHeight: 20, fontWeight: '400' },
|
|
12
|
+
label: { fontSize: 14, lineHeight: 20, fontWeight: '500' },
|
|
13
|
+
});
|
|
14
|
+
export function Text({ variant = 'body', style, ...props }: TextProps) {
|
|
15
|
+
const { colors } = useTheme();
|
|
16
|
+
const color = ['muted', 'caption'].includes(variant)
|
|
17
|
+
? colors['muted-foreground']
|
|
18
|
+
: colors.foreground;
|
|
19
|
+
return <NativeText {...props} style={[typography[variant], { color }, style]} />;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Textarea } from './_controls';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Stack } from './layout';
|
|
2
|
+
import { Button } from './button';
|
|
3
|
+
import { Text } from './text';
|
|
4
|
+
import { useTheme } from '../theme';
|
|
5
|
+
export function ThemeSwitcher() {
|
|
6
|
+
const { preference, setPreference } = useTheme();
|
|
7
|
+
return (
|
|
8
|
+
<Stack>
|
|
9
|
+
<Text variant="label">Appearance</Text>
|
|
10
|
+
{(['system', 'light', 'dark'] as const).map((value) => (
|
|
11
|
+
<Button
|
|
12
|
+
key={value}
|
|
13
|
+
variant={preference === value ? 'secondary' : 'ghost'}
|
|
14
|
+
accessibilityState={{ selected: preference === value }}
|
|
15
|
+
onPress={() => setPreference(value)}
|
|
16
|
+
>
|
|
17
|
+
{value === 'system' ? 'System' : value === 'light' ? 'Light' : 'Dark'}
|
|
18
|
+
</Button>
|
|
19
|
+
))}
|
|
20
|
+
</Stack>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToggleGroup, ToggleGroupItem } from './_controls';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toggle } from './_controls';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, TooltipClose } from './_overlay';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Box, LabelText, Muted, row } from './_core';
|
|
2
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from './_controls';
|
|
3
|
+
import { CodeBlock } from './code-block';
|
|
4
|
+
import type { ViewProps } from 'react-native';
|
|
5
|
+
export const Trace = Box;
|
|
6
|
+
export const TraceItem = Collapsible;
|
|
7
|
+
export const TraceTrigger = CollapsibleTrigger;
|
|
8
|
+
export const TraceContent = CollapsibleContent;
|
|
9
|
+
export const TraceTitle = LabelText;
|
|
10
|
+
export const TraceDescription = Muted;
|
|
11
|
+
export const TraceIcon = Box;
|
|
12
|
+
export const TraceHeader = ({ style, ...props }: ViewProps) => (
|
|
13
|
+
<Box {...props} style={row(style)} />
|
|
14
|
+
);
|
|
15
|
+
export const TraceCode = CodeBlock;
|
|
16
|
+
export const TraceStatus = ({
|
|
17
|
+
status,
|
|
18
|
+
}: {
|
|
19
|
+
status: 'pending' | 'running' | 'complete' | 'error';
|
|
20
|
+
}) => <LabelText accessibilityLiveRegion="polite">{status}</LabelText>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export {
|
|
2
|
+
Typography,
|
|
3
|
+
TypographyH1,
|
|
4
|
+
TypographyH2,
|
|
5
|
+
TypographyH3,
|
|
6
|
+
TypographyH4,
|
|
7
|
+
TypographyP,
|
|
8
|
+
TypographyMuted,
|
|
9
|
+
TypographyLead,
|
|
10
|
+
TypographyLarge,
|
|
11
|
+
TypographySmall,
|
|
12
|
+
TypographyBlockquote,
|
|
13
|
+
TypographyInlineCode,
|
|
14
|
+
TypographyList,
|
|
15
|
+
} from './_display';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Appearance } from 'react-native';
|
|
2
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
3
|
+
import * as SystemUI from 'expo-system-ui';
|
|
4
|
+
const key = 'anhedral-theme';
|
|
5
|
+
export async function readPreference() {
|
|
6
|
+
try {
|
|
7
|
+
return await AsyncStorage.getItem(key);
|
|
8
|
+
} catch {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export async function savePreference(value: string) {
|
|
13
|
+
try {
|
|
14
|
+
await AsyncStorage.setItem(key, value);
|
|
15
|
+
} catch {
|
|
16
|
+
/* Preferences remain usable without storage. */
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export function applyTheme(mode: 'light' | 'dark', background: string, preference: string) {
|
|
20
|
+
Appearance.setColorScheme(preference === 'system' ? 'unspecified' : mode);
|
|
21
|
+
void SystemUI.setBackgroundColorAsync(background).catch(() => {});
|
|
22
|
+
}
|
|
23
|
+
export function subscribePreference(_listener: (value: unknown) => void) {
|
|
24
|
+
return () => {};
|
|
25
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { createContext, useContext, useEffect, useRef, useState, type ReactNode } from 'react';
|
|
2
|
+
import { useColorScheme } from 'react-native';
|
|
3
|
+
import { styling } from '@workspace/styling';
|
|
4
|
+
type ThemeColors = Record<string, string> & { background: string; foreground: string };
|
|
5
|
+
const colors = (tokens: Record<string, string>) =>
|
|
6
|
+
Object.fromEntries(
|
|
7
|
+
Object.entries(tokens)
|
|
8
|
+
.filter(([key]) => key !== '--radius')
|
|
9
|
+
.map(([key, value]) => [key.slice(2), 'hsl(' + value.replaceAll(' ', ', ') + ')']),
|
|
10
|
+
) as ThemeColors;
|
|
11
|
+
const themes = { light: colors(styling.themes.light), dark: colors(styling.themes.dark) };
|
|
12
|
+
import { readPreference, savePreference, applyTheme, subscribePreference } from './theme-storage';
|
|
13
|
+
|
|
14
|
+
export type ThemePreference = 'system' | 'light' | 'dark';
|
|
15
|
+
export function isThemePreference(value: unknown): value is ThemePreference {
|
|
16
|
+
return value === 'system' || value === 'light' || value === 'dark';
|
|
17
|
+
}
|
|
18
|
+
const ThemeContext = createContext<{
|
|
19
|
+
preference: ThemePreference;
|
|
20
|
+
mode: 'light' | 'dark';
|
|
21
|
+
colors: typeof themes.light;
|
|
22
|
+
setPreference: (value: ThemePreference) => void;
|
|
23
|
+
} | null>(null);
|
|
24
|
+
export function ThemeProvider({ children }: { children: ReactNode }) {
|
|
25
|
+
const system = useColorScheme();
|
|
26
|
+
const [preference, setPreferenceState] = useState<ThemePreference>('system');
|
|
27
|
+
const [ready, setReady] = useState(false);
|
|
28
|
+
const changed = useRef(false);
|
|
29
|
+
const mode = preference === 'system' ? (system === 'dark' ? 'dark' : 'light') : preference;
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
let active = true;
|
|
32
|
+
void readPreference()
|
|
33
|
+
.then((saved) => {
|
|
34
|
+
if (active && !changed.current && isThemePreference(saved)) setPreferenceState(saved);
|
|
35
|
+
})
|
|
36
|
+
.finally(() => {
|
|
37
|
+
if (active) setReady(true);
|
|
38
|
+
});
|
|
39
|
+
const unsubscribe = subscribePreference((saved) => {
|
|
40
|
+
if (isThemePreference(saved)) setPreferenceState(saved);
|
|
41
|
+
});
|
|
42
|
+
return () => {
|
|
43
|
+
active = false;
|
|
44
|
+
unsubscribe();
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (ready) applyTheme(mode, themes[mode].background, preference);
|
|
49
|
+
}, [mode, ready, preference]);
|
|
50
|
+
function setPreference(value: ThemePreference) {
|
|
51
|
+
if (!isThemePreference(value)) return;
|
|
52
|
+
changed.current = true;
|
|
53
|
+
setPreferenceState(value);
|
|
54
|
+
void savePreference(value);
|
|
55
|
+
}
|
|
56
|
+
return (
|
|
57
|
+
<ThemeContext.Provider value={{ preference, mode, colors: themes[mode], setPreference }}>
|
|
58
|
+
{children}
|
|
59
|
+
</ThemeContext.Provider>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export function useTheme() {
|
|
63
|
+
const value = useContext(ThemeContext);
|
|
64
|
+
if (!value) throw new Error('Mount ThemeProvider at the application root.');
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Button as ButtonPrimitive } from '@base-ui/react/button';
|
|
3
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { cn } from '@/lib/utils';
|
|
5
|
+
|
|
6
|
+
/** @public Shared shadcn variant API for application components. */
|
|
7
|
+
export const buttonVariants = cva(
|
|
8
|
+
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/80',
|
|
13
|
+
outline:
|
|
14
|
+
'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
|
|
15
|
+
secondary:
|
|
16
|
+
'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
|
|
17
|
+
ghost:
|
|
18
|
+
'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',
|
|
19
|
+
destructive:
|
|
20
|
+
'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40',
|
|
21
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
default:
|
|
25
|
+
'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
|
|
26
|
+
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
27
|
+
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
28
|
+
lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
|
|
29
|
+
icon: 'size-8',
|
|
30
|
+
'icon-xs':
|
|
31
|
+
"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
32
|
+
'icon-sm':
|
|
33
|
+
'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',
|
|
34
|
+
'icon-lg': 'size-9',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
variant: 'default',
|
|
39
|
+
size: 'default',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
function Button({
|
|
45
|
+
className,
|
|
46
|
+
variant = 'default',
|
|
47
|
+
size = 'default',
|
|
48
|
+
...props
|
|
49
|
+
}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {
|
|
50
|
+
return (
|
|
51
|
+
<ButtonPrimitive
|
|
52
|
+
data-slot="button"
|
|
53
|
+
className={cn(buttonVariants({ variant, size, className }))}
|
|
54
|
+
{...props}
|
|
55
|
+
/>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { Button };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Input as InputPrimitive } from '@base-ui/react/input';
|
|
5
|
+
import { cn } from '@/lib/utils';
|
|
6
|
+
|
|
7
|
+
function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
|
|
8
|
+
return (
|
|
9
|
+
<InputPrimitive
|
|
10
|
+
type={type}
|
|
11
|
+
data-slot="input"
|
|
12
|
+
className={cn(
|
|
13
|
+
'h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
|
|
14
|
+
className,
|
|
15
|
+
)}
|
|
16
|
+
{...props}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { Input };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { cn } from '@/lib/utils';
|
|
5
|
+
|
|
6
|
+
function Label({ className, ...props }: React.ComponentProps<'label'>) {
|
|
7
|
+
return (
|
|
8
|
+
<label
|
|
9
|
+
data-slot="label"
|
|
10
|
+
className={cn(
|
|
11
|
+
'flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',
|
|
12
|
+
className,
|
|
13
|
+
)}
|
|
14
|
+
{...props}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { Label };
|
package/dist/bin.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { argv } from 'node:process';
|
|
3
3
|
import { runCommand } from './cli-commands.js';
|
|
4
|
-
import { DELIVERY_COMMANDS } from './cli-delivery.js';
|
|
5
4
|
import { STANDARD_USAGE, commandHelp } from './registry/usage.js';
|
|
6
5
|
import { GENERATOR_VERSION } from './version.js';
|
|
7
6
|
import { PostCommitError } from './transaction.js';
|
|
@@ -54,22 +53,18 @@ async function main() {
|
|
|
54
53
|
process.env.ANHEDRAL_VERBOSE = '1';
|
|
55
54
|
await runCommand(command, args, { json, quiet: global.quiet });
|
|
56
55
|
}
|
|
57
|
-
const errorCodes = {
|
|
58
|
-
...Object.fromEntries([...DELIVERY_COMMANDS, 'repository', 'integrations'].map((name) => [name, 'DELIVERY_FAILED'])),
|
|
59
|
-
inspect: 'INSPECTION_FAILED',
|
|
60
|
-
services: 'SERVICE_FAILED',
|
|
61
|
-
auth: 'AUTH_FAILED',
|
|
62
|
-
doctor: 'INVALID_ARGUMENT',
|
|
63
|
-
init: 'GENERATION_FAILED',
|
|
64
|
-
add: 'ADDITION_FAILED',
|
|
65
|
-
registry: 'REGISTRY_FAILED',
|
|
66
|
-
};
|
|
67
56
|
function failureCode(error) {
|
|
68
57
|
if (error instanceof CliArgumentError)
|
|
69
58
|
return error.code;
|
|
70
59
|
if (error instanceof PostCommitError)
|
|
71
60
|
return 'POST_COMMIT_FAILED';
|
|
72
|
-
return
|
|
61
|
+
return command === 'init'
|
|
62
|
+
? 'GENERATION_FAILED'
|
|
63
|
+
: command === 'add' || command === 'stack'
|
|
64
|
+
? 'CAPABILITY_COMMAND_FAILED'
|
|
65
|
+
: command === 'ui'
|
|
66
|
+
? 'UI_COMMAND_FAILED'
|
|
67
|
+
: 'UNKNOWN_COMMAND';
|
|
73
68
|
}
|
|
74
69
|
try {
|
|
75
70
|
await main();
|
package/dist/capabilities.d.ts
CHANGED
|
@@ -1,40 +1,11 @@
|
|
|
1
|
-
import type { StandardOptions
|
|
2
|
-
export type Capability = SetupRequirements & {
|
|
3
|
-
selection: StackSelection;
|
|
4
|
-
};
|
|
5
|
-
export declare const CAPABILITIES: Record<StandardProduct, Capability>;
|
|
6
|
-
export declare const CAPABILITY_REGISTRY: {
|
|
7
|
-
schemaVersion: number;
|
|
8
|
-
cliVersion: string;
|
|
9
|
-
capabilities: Record<"next" | "electron" | "wxt" | "expo" | "vinext" | "realtime" | "workflows" | "styling" | "hono" | "neon" | "d1" | "neon-realtime" | "local-data" | "clerk" | "better-auth" | "r2" | "kv" | "stream" | "queues" | "cron" | "analytics-engine" | "images" | "realtimekit" | "video" | "openai" | "ai-sdk" | "workers-ai" | "resend" | "stripe" | "revenuecat" | "sentry" | "basin" | "posthog", Capability>;
|
|
10
|
-
};
|
|
1
|
+
import type { StandardOptions } from './registry/types.js';
|
|
11
2
|
export declare function createSetupPlan(options: StandardOptions, registry?: import("./registry/resolve.js").ResolvedStackRegistry): {
|
|
12
3
|
schemaVersion: number;
|
|
13
4
|
cliVersion: string;
|
|
14
|
-
registryVersion: number;
|
|
15
|
-
standard: string;
|
|
16
5
|
root: string;
|
|
17
6
|
name: string;
|
|
18
|
-
products: ("
|
|
19
|
-
hosting: import("./registry/types.js").Hosting;
|
|
20
|
-
registry: import("./registry/resolve.js").ResolvedStackRegistry;
|
|
21
|
-
bootstrap: ("next" | "pnpm" | "shadcn@4.21.4" | "dlx" | "init" | "--monorepo" | "--template")[];
|
|
7
|
+
products: ("hono" | "expo" | "r2" | "next" | "styling" | "d1")[];
|
|
22
8
|
dryRun: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
access: string[];
|
|
26
|
-
capabilities: {
|
|
27
|
-
selection: StackSelection;
|
|
28
|
-
status: "planned" | "starter";
|
|
29
|
-
purpose: string;
|
|
30
|
-
tools: readonly string[];
|
|
31
|
-
access: readonly string[];
|
|
32
|
-
credentials: readonly string[];
|
|
33
|
-
resources: readonly string[];
|
|
34
|
-
verify: readonly string[];
|
|
35
|
-
id: "next" | "electron" | "wxt" | "expo" | "vinext" | "realtime" | "workflows" | "styling" | "hono" | "neon" | "d1" | "neon-realtime" | "local-data" | "clerk" | "better-auth" | "r2" | "kv" | "stream" | "queues" | "cron" | "analytics-engine" | "images" | "realtimekit" | "video" | "openai" | "ai-sdk" | "workers-ai" | "resend" | "stripe" | "revenuecat" | "sentry" | "basin" | "posthog";
|
|
36
|
-
}[];
|
|
37
|
-
completion: string[];
|
|
38
|
-
resourcesProvisioned: boolean;
|
|
39
|
-
};
|
|
9
|
+
registry: import("./registry/resolve.js").ResolvedStackRegistry;
|
|
10
|
+
resourcesProvisioned: boolean;
|
|
40
11
|
};
|
package/dist/capabilities.js
CHANGED
|
@@ -1,96 +1,14 @@
|
|
|
1
|
-
import { usesVoidSelection } from './runtime-policy.js';
|
|
2
1
|
import { resolveStackRegistry } from './registry/resolve.js';
|
|
3
|
-
import { BOOTSTRAP_COMMAND } from './registry/bootstrap.js';
|
|
4
2
|
import { GENERATOR_VERSION } from './version.js';
|
|
5
|
-
import { PACKAGE_MANAGER } from './dependencies.js';
|
|
6
|
-
import { STANDARD_PRODUCTS, getStackDefinition } from './stack-registry.js';
|
|
7
|
-
export const CAPABILITIES = Object.fromEntries(STANDARD_PRODUCTS.map((id) => {
|
|
8
|
-
const definition = getStackDefinition(id);
|
|
9
|
-
return [id, { ...definition.setup, selection: definition.selection }];
|
|
10
|
-
}));
|
|
11
|
-
export const CAPABILITY_REGISTRY = {
|
|
12
|
-
schemaVersion: 1,
|
|
13
|
-
cliVersion: GENERATOR_VERSION,
|
|
14
|
-
capabilities: CAPABILITIES,
|
|
15
|
-
};
|
|
16
|
-
const HOSTING_SETUP = {
|
|
17
|
-
cloudflare: {
|
|
18
|
-
tools: ['Cloudflare integration or API', 'Void', 'Wrangler'],
|
|
19
|
-
access: [
|
|
20
|
-
'Client-owned Cloudflare account; account ID; scoped OAuth/API access; service-compatible plan; DNS access only when needed',
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
vercel: {
|
|
24
|
-
tools: ['Vercel integration or CLI'],
|
|
25
|
-
access: [
|
|
26
|
-
'Client-owned Vercel team/project access; Hobby only for personal non-commercial use; suitable authorized plan for commercial apps',
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
3
|
export function createSetupPlan(options, registry = resolveStackRegistry(options)) {
|
|
31
|
-
const voidWorkspace = usesVoidSelection(options.products, options.hosting);
|
|
32
|
-
const items = new Map(registry.items.map((item) => [item.name, item]));
|
|
33
|
-
const capabilities = options.products.map((id) => {
|
|
34
|
-
const item = items.get(id);
|
|
35
|
-
return {
|
|
36
|
-
id,
|
|
37
|
-
...item.setup,
|
|
38
|
-
selection: item.selection,
|
|
39
|
-
status: options.dryRun ? 'planned' : 'starter',
|
|
40
|
-
};
|
|
41
|
-
});
|
|
42
|
-
const providers = [
|
|
43
|
-
...new Set([
|
|
44
|
-
...(options.products.includes('next') || options.products.includes('vinext')
|
|
45
|
-
? [options.hosting]
|
|
46
|
-
: []),
|
|
47
|
-
...capabilities.flatMap(({ tools }) => tools.includes('Wrangler') ? ['cloudflare'] : []),
|
|
48
|
-
]),
|
|
49
|
-
].map((provider) => HOSTING_SETUP[provider]);
|
|
50
4
|
return {
|
|
51
5
|
schemaVersion: 1,
|
|
52
6
|
cliVersion: GENERATOR_VERSION,
|
|
53
|
-
registryVersion: CAPABILITY_REGISTRY.schemaVersion,
|
|
54
|
-
standard: 'anhedral-application-stack',
|
|
55
7
|
root: options.root,
|
|
56
8
|
name: options.name,
|
|
57
9
|
products: options.products,
|
|
58
|
-
hosting: options.hosting,
|
|
59
|
-
registry,
|
|
60
|
-
bootstrap: [...BOOTSTRAP_COMMAND],
|
|
61
10
|
dryRun: options.dryRun,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
...new Set([
|
|
65
|
-
'Git',
|
|
66
|
-
voidWorkspace
|
|
67
|
-
? 'Node.js 24.21.0+ for Void workspaces'
|
|
68
|
-
: 'Node.js 22.13+ on 22.x, or Node.js 24+ for generated workspaces',
|
|
69
|
-
PACKAGE_MANAGER.replace('@', ' '),
|
|
70
|
-
'GitHub integration or gh',
|
|
71
|
-
'Fallow',
|
|
72
|
-
'Cloudflare security audit skill',
|
|
73
|
-
...providers.flatMap((provider) => provider.tools),
|
|
74
|
-
...capabilities.flatMap((item) => item.tools),
|
|
75
|
-
]),
|
|
76
|
-
],
|
|
77
|
-
access: [
|
|
78
|
-
'User-owned GitHub repository and CI access',
|
|
79
|
-
...(options.hosting === 'vercel' && options.products.includes('next')
|
|
80
|
-
? ['Vercel GitHub installation access for the selected web repository']
|
|
81
|
-
: []),
|
|
82
|
-
...providers.flatMap((provider) => provider.access),
|
|
83
|
-
],
|
|
84
|
-
capabilities,
|
|
85
|
-
completion: [
|
|
86
|
-
'Guide GitHub authentication, own local Git checkout, reviewed initial commit and private user-owned remote; verify the selected deployment source connection',
|
|
87
|
-
'Discover available plugins and fallbacks; verify the selected account and scope',
|
|
88
|
-
'Configure separate environments, bindings and server-side secrets',
|
|
89
|
-
'Implement starter behavior and meaningful tests',
|
|
90
|
-
'Run pnpm check plus platform/provider verification',
|
|
91
|
-
'Verify deployed preview; obtain required production authorization; record rollback and operating ownership',
|
|
92
|
-
],
|
|
93
|
-
resourcesProvisioned: false,
|
|
94
|
-
},
|
|
11
|
+
registry,
|
|
12
|
+
resourcesProvisioned: false,
|
|
95
13
|
};
|
|
96
14
|
}
|