feat(core)!: introduce runtime extension registry and flat module conventions

BREAKING CHANGE: sup config now derives entries from package.json#exports and a server/client glob instead of manual lists; module structure follows flat + barrel convention with .server.js/.client.js runtime suffixes
This commit is contained in:
2026-04-22 14:13:30 -04:00
parent 61388f04a6
commit 0106bc4ea0
35 changed files with 917 additions and 528 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
'use client';
import React from 'react';
import { Recycle03Icon } from '../Icons';
import { Recycle03Icon } from '../icons/index.js';
const Loading = ({ size = 'md' }) => {
const sizes = {
+1 -1
View File
@@ -1,6 +1,6 @@
import React from 'react';
import { Dialog } from '@headlessui/react';
import { Cancel01Icon } from '../Icons';
import { Cancel01Icon } from '../icons/index.js';
import Button from './Button';
const Modal = ({
+1 -1
View File
@@ -2,7 +2,7 @@
import React from 'react';
import Badge from './Badge';
import { TorriGateIcon } from '../Icons';
import { TorriGateIcon } from '../icons/index.js';
const ROW_SIZE = {
sm: { cell: 'px-4 py-[11px]', header: 'px-4 py-[9px]', mobile: 'p-4' },
+1 -1
View File
@@ -16,7 +16,7 @@
import { configureRouter, registerFeatureRoutes, clearRouterConfig, clearFeatureRoutes } from '@zen/core/api';
import { registerStoragePolicies, clearStorageConfig } from '@zen/core/storage';
import { validateSession } from '../../features/auth/lib/session.js';
import { validateSession } from '../../features/auth/session.js';
import { routes as authRoutes } from '../../features/auth/api.js';
import { storageAccessPolicies } from '../../features/auth/storage-policies.js';
import { done, warn } from './logger.js';