@allbluecn/web-app 0.8.0 → 0.9.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/package.json +1 -2
- package/src/components/layout/sidebar-03/user-menu.tsx +1 -1
- package/src/components/project/project-activity-list.tsx +1 -1
- package/src/components/project/project-member-manager.tsx +1 -1
- package/src/components/settings/ai/create-custom-model-dialog.tsx +2 -2
- package/src/components/settings/ai/model-card.tsx +1 -1
- package/src/components/settings/ai/model-manager.tsx +1 -1
- package/src/components/settings/ai/provider-card.tsx +2 -2
- package/src/components/settings/ai/provider-detail-form.tsx +1 -1
- package/src/components/settings/ai/provider-icon.tsx +1 -1
- package/src/components/settings/ai/provider-logo.tsx +2 -2
- package/src/components/settings/personal-team/account/account-client.tsx +1 -1
- package/src/components/settings/personal-team/account/avatar/avatar-config.ts +1 -1
- package/src/components/settings/personal-team/account/avatar/notion-avatar.tsx +1 -1
- package/src/components/settings/personal-team/team/team-member-list.tsx +1 -1
- package/src/components/story/types.ts +1 -1
- package/src/components/ui-shared/ai-command-button.tsx +1 -1
- package/src/components/ui-shared/notion-avatar.tsx +1 -1
- package/src/components/ui-shared/reference-inline.tsx +1 -1
- package/src/components/ui-shared/reference-search.tsx +1 -1
- package/src/components/ui-shared/user-avatar.tsx +1 -1
- package/src/hooks/use-entity-subscription.ts +1 -1
- package/src/lib/__tests__/module-registry.test.ts +2 -2
- package/src/lib/changelog/sdk-versions.ts +2 -2
- package/src/lib/perf.ts +1 -1
- package/src/lib/prd/__tests__/stack-layout.test.ts +1 -1
- package/src/lib/prd/stack-layout.ts +1 -1
- package/src/lib/sse-transport.ts +1 -1
- package/src/lib/stores/prd-canvas-store.ts +1 -1
- package/src/plugins/core/prd/components/component-editor/__tests__/field-utils.test.ts +1 -1
- package/src/plugins/core/prd/components/component-editor/content-section.tsx +1 -1
- package/src/plugins/core/prd/components/component-editor/field-utils.ts +1 -1
- package/src/plugins/core/prd/components/component-editor/position-section.tsx +1 -1
- package/src/plugins/core/prd/components/component-editor/style-fields.tsx +1 -1
- package/src/plugins/core/prd/components/component-editor/use-field.ts +1 -1
- package/src/plugins/core/prd/components/dialog/prd-detail-client.tsx +1 -1
- package/src/plugins/core/prd/components/page-version-panel.tsx +1 -1
- package/src/plugins/core/prd/components/page-version-tree.tsx +1 -1
- package/src/plugins/core/prd/components/prd-agent-panel.tsx +1 -1
- package/src/plugins/core/prd/components/prd-comment-review-panel.tsx +1 -1
- package/src/plugins/core/prd/components/prd-component-editor-content.tsx +1 -1
- package/src/plugins/core/prd/components/prd-dashboard.tsx +1 -1
- package/src/plugins/core/prd/components/prd-editor-layout.tsx +2 -2
- package/src/plugins/core/prd/components/prd-left-sidebar.tsx +1 -1
- package/src/plugins/core/prd/components/prd-navigation.tsx +1 -1
- package/src/plugins/core/prd/components/prd-outline-tab.tsx +2 -2
- package/src/plugins/core/prd/components/prd-prototype-panel.tsx +2 -2
- package/src/plugins/core/prd/components/prd-right-sidebar.tsx +1 -1
- package/src/plugins/core/prd/components/prototype/PrototypeCanvas.tsx +1 -1
- package/src/plugins/core/prd/components/prototype/PrototypeElement.tsx +1 -1
- package/src/plugins/core/prd/components/prototype/ResizeHandles.tsx +1 -1
- package/src/plugins/core/prd/components/share/share-comment-panel.tsx +1 -1
- package/src/plugins/core/prd/serverFns/ai/agent-conversations.ts +1 -1
- package/src/plugins/core/prd/serverFns/ai/fill-annotation.ts +1 -1
- package/src/plugins/core/prd/serverFns/ai/generate-prototype.ts +1 -1
- package/src/plugins/core/prd/serverFns/ai/providers.ts +2 -2
- package/src/plugins/core/tags/__tests__/tags.test.ts +2 -2
- package/src/routes/_nav/projects/$projectId/index.lazy.tsx +1 -1
- package/src/server/__tests__/agent-client-graph.test.ts +3 -3
- package/src/server/__tests__/entitlements.test.ts +1 -1
- package/src/server/__tests__/start-client-graph.test.ts +1 -1
- package/src/server/ai-gateway/provider-router.ts +2 -2
- package/src/server/references/engine.ts +2 -2
- package/src/server/serverFns/story/story-crud/labels.ts +2 -2
- package/src/server/serverFns/story/types.ts +1 -1
- package/src/start.ts +1 -1
- package/src/types/outline.ts +1 -1
- package/src/types/prd.ts +1 -1
- package/src/types/prototype.ts +1 -1
- package/vite.shared.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allbluecn/web-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -197,7 +197,6 @@
|
|
|
197
197
|
"three": "^0.180.0",
|
|
198
198
|
"tw-animate-css": "^1.4.0",
|
|
199
199
|
"zod": "^4.4.3",
|
|
200
|
-
"@allbluecn/shared": "workspace:*",
|
|
201
200
|
"@open-file-viewer/core": "^0.1.43",
|
|
202
201
|
"@open-file-viewer/react": "^0.1.43"
|
|
203
202
|
},
|
|
@@ -48,7 +48,7 @@ import { useRouter, useMatches } from "@tanstack/react-router";
|
|
|
48
48
|
import { useTranslation } from "react-i18next";
|
|
49
49
|
import { getQueryClient } from "@/lib/query-client-seam";
|
|
50
50
|
import { UserAvatar } from "@/components/ui-shared";
|
|
51
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
51
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
|
|
52
52
|
import { SparklesText } from "@/components/magicui/sparkles-text";
|
|
53
53
|
|
|
54
54
|
export function UserMenu() {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { useTranslation } from "react-i18next"
|
|
19
19
|
import { getClientI18n } from "@/i18n/client"
|
|
20
20
|
import { UserAvatar } from "@/components/ui-shared";
|
|
21
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
21
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
|
|
22
22
|
import { cn } from "@/lib/utils";
|
|
23
23
|
import { formatDate } from "@/lib/datetime";
|
|
24
24
|
import { useTimezone } from "@/providers/timezone-provider";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
AlertDialogTitle,
|
|
41
41
|
} from "@/components/ui/alert-dialog";
|
|
42
42
|
import { UserAvatar } from "@/components/ui-shared";
|
|
43
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
43
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
|
|
44
44
|
import { InviteMemberDialog } from "./invite-member-dialog";
|
|
45
45
|
import {
|
|
46
46
|
removeProjectMemberFn,
|
|
@@ -20,8 +20,8 @@ import { useState } from "react"
|
|
|
20
20
|
import { useMutation } from "@tanstack/react-query"
|
|
21
21
|
import { useTranslation } from "react-i18next"
|
|
22
22
|
import { toast } from '@/components/ui/sonner'
|
|
23
|
-
import { MODEL_CAPABILITY_OPTIONS } from "@allbluecn/
|
|
24
|
-
import type { ModelCapability } from "@allbluecn/
|
|
23
|
+
import { MODEL_CAPABILITY_OPTIONS } from "@allbluecn/kernel"
|
|
24
|
+
import type { ModelCapability } from "@allbluecn/kernel"
|
|
25
25
|
import { Button } from "@/components/ui/button"
|
|
26
26
|
import { Input } from "@/components/ui/input"
|
|
27
27
|
import { Label } from "@/components/ui/label"
|
|
@@ -21,7 +21,7 @@ import { Calendar, Coins, GripVertical } from "lucide-react"
|
|
|
21
21
|
import type {
|
|
22
22
|
AiModelMeta,
|
|
23
23
|
AiProviderMeta,
|
|
24
|
-
} from "@allbluecn/
|
|
24
|
+
} from "@allbluecn/kernel"
|
|
25
25
|
import { Badge } from "@/components/ui/badge"
|
|
26
26
|
import { Switch } from "@/components/ui/switch"
|
|
27
27
|
import { cn } from "@/lib/utils"
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
type AiProviderMeta,
|
|
29
29
|
type ModelCapability,
|
|
30
30
|
type ModelTab,
|
|
31
|
-
} from "@allbluecn/
|
|
31
|
+
} from "@allbluecn/kernel"
|
|
32
32
|
import { Button } from "@/components/ui/button"
|
|
33
33
|
import { Input } from "@/components/ui/input"
|
|
34
34
|
import { Switch } from "@/components/ui/switch"
|
|
@@ -21,8 +21,8 @@ import { Link, useRouter } from "@tanstack/react-router"
|
|
|
21
21
|
import { AlertTriangle, Check } from "lucide-react"
|
|
22
22
|
import { useTranslation } from "react-i18next"
|
|
23
23
|
import { toast } from '@/components/ui/sonner'
|
|
24
|
-
import type { AiProviderMeta } from "@allbluecn/
|
|
25
|
-
import { PROVIDER_BADGE_STYLES } from "@allbluecn/
|
|
24
|
+
import type { AiProviderMeta } from "@allbluecn/kernel"
|
|
25
|
+
import { PROVIDER_BADGE_STYLES } from "@allbluecn/kernel"
|
|
26
26
|
import { Badge } from "@/components/ui/badge"
|
|
27
27
|
import { Switch } from "@/components/ui/switch"
|
|
28
28
|
import { cn } from "@/lib/utils"
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "lucide-react"
|
|
33
33
|
import { toast } from "@/components/ui/sonner"
|
|
34
34
|
import { useTranslation } from "react-i18next"
|
|
35
|
-
import type { AiModelMeta, AiProviderMeta } from "@allbluecn/
|
|
35
|
+
import type { AiModelMeta, AiProviderMeta } from "@allbluecn/kernel"
|
|
36
36
|
import { Button } from "@/components/ui/button"
|
|
37
37
|
import { Input } from "@/components/ui/input"
|
|
38
38
|
import { Switch } from "@/components/ui/switch"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
// apps/web/src/components/settings/ai/provider-icon.tsx
|
|
19
|
-
import type { AiProviderMeta } from "@allbluecn/
|
|
19
|
+
import type { AiProviderMeta } from "@allbluecn/kernel"
|
|
20
20
|
import { cn } from "@/lib/utils"
|
|
21
21
|
import { ProviderLogo } from "./provider-logo"
|
|
22
22
|
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
// apps/web/src/components/settings/ai/provider-logo.tsx
|
|
19
19
|
import { useEffect, useState } from "react"
|
|
20
|
-
import type { AiProviderMeta } from "@allbluecn/
|
|
21
|
-
import { LOBE_ICON_MAP } from "@allbluecn/
|
|
20
|
+
import type { AiProviderMeta } from "@allbluecn/kernel"
|
|
21
|
+
import { LOBE_ICON_MAP } from "@allbluecn/kernel"
|
|
22
22
|
|
|
23
23
|
type LobeIconComponent = React.ComponentType<{ size?: number; className?: string }> & {
|
|
24
24
|
Color?: React.ComponentType<{ size?: number; className?: string }>
|
|
@@ -28,7 +28,7 @@ import SettingsProfile, { type ProfileData } from "@/components/settings/persona
|
|
|
28
28
|
import { useState, useCallback } from "react"
|
|
29
29
|
import { useTranslation } from "react-i18next"
|
|
30
30
|
import { type AvatarConfig, getRandomConfig } from "@/components/settings/personal-team/account/avatar/avatar-config"
|
|
31
|
-
import type { ShapeType } from "@allbluecn/
|
|
31
|
+
import type { ShapeType } from "@allbluecn/kernel"
|
|
32
32
|
import { useQueryClient } from "@tanstack/react-query"
|
|
33
33
|
import { updateAvatarFn } from "@/server/serverFns/user/avatar"
|
|
34
34
|
import { toast } from '@/components/ui/sonner'
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import type { AvatarPart, AvatarConfig, ShapeType } from "@allbluecn/
|
|
18
|
+
import type { AvatarPart, AvatarConfig, ShapeType } from "@allbluecn/kernel"
|
|
19
19
|
|
|
20
20
|
export type { AvatarPart, AvatarConfig, ShapeType }
|
|
21
21
|
|
|
@@ -16,7 +16,7 @@ import { cn } from "@/lib/utils"
|
|
|
16
16
|
import { formatDate } from "@/lib/datetime"
|
|
17
17
|
import { useTimezone } from "@/providers/timezone-provider"
|
|
18
18
|
import { UserAvatar } from "@/components/ui-shared"
|
|
19
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
19
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel"
|
|
20
20
|
import { Badge } from "@/components/ui/badge"
|
|
21
21
|
import { Button } from "@/components/ui/button"
|
|
22
22
|
import {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import type { StoryState, StoryPriority } from "./constants";
|
|
19
|
-
import type { AvatarConfig } from "@allbluecn/
|
|
19
|
+
import type { AvatarConfig } from "@allbluecn/kernel";
|
|
20
20
|
|
|
21
21
|
export interface UserBrief {
|
|
22
22
|
id: string;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import type { AICommandDef } from "@allbluecn/
|
|
18
|
+
import type { AICommandDef } from "@allbluecn/kernel";
|
|
19
19
|
|
|
20
20
|
interface Props {
|
|
21
21
|
command: AICommandDef;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"use client"
|
|
19
19
|
|
|
20
20
|
import { useEffect, useState } from "react"
|
|
21
|
-
import type { AvatarConfig, AvatarPart, ShapeType } from "@allbluecn/
|
|
21
|
+
import type { AvatarConfig, AvatarPart, ShapeType } from "@allbluecn/kernel"
|
|
22
22
|
|
|
23
23
|
const noneParts: AvatarPart[] = ["glasses", "hair", "accessories", "details", "beard"]
|
|
24
24
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"use client"
|
|
19
19
|
|
|
20
20
|
import { useState, useEffect } from "react"
|
|
21
|
-
import type { RefDisplay, EntityUpdateEvent } from "@allbluecn/
|
|
21
|
+
import type { RefDisplay, EntityUpdateEvent } from "@allbluecn/kernel"
|
|
22
22
|
|
|
23
23
|
interface ReferenceInlineProps {
|
|
24
24
|
display: RefDisplay
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import type { SearchResult } from "@allbluecn/
|
|
18
|
+
import type { SearchResult } from "@allbluecn/kernel";
|
|
19
19
|
|
|
20
20
|
interface Props {
|
|
21
21
|
open: boolean;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"use client"
|
|
19
19
|
|
|
20
20
|
import { NotionAvatar } from "./notion-avatar"
|
|
21
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
21
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel"
|
|
22
22
|
|
|
23
23
|
type UserAvatarProps = {
|
|
24
24
|
avatarConfig?: AvatarConfig | null
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
import { useEffect, useState } from "react"
|
|
20
|
-
import type { EntityUpdateEvent } from "@allbluecn/
|
|
20
|
+
import type { EntityUpdateEvent } from "@allbluecn/kernel"
|
|
21
21
|
|
|
22
22
|
export function useEntitySubscription(entityIds: string[]): EntityUpdateEvent | null {
|
|
23
23
|
const [lastEvent, setLastEvent] = useState<EntityUpdateEvent | null>(null)
|
|
@@ -19,11 +19,11 @@ import { describe, it, expect, beforeEach } from 'vitest'
|
|
|
19
19
|
import type { AllBlueModule } from '@allbluecn/kernel'
|
|
20
20
|
|
|
21
21
|
describe('ModuleRegistry', () => {
|
|
22
|
-
let registry: typeof import('@allbluecn/
|
|
22
|
+
let registry: typeof import('@allbluecn/kernel')['moduleRegistry']
|
|
23
23
|
|
|
24
24
|
beforeEach(async () => {
|
|
25
25
|
vi.resetModules()
|
|
26
|
-
const mod = await import('@allbluecn/
|
|
26
|
+
const mod = await import('@allbluecn/kernel')
|
|
27
27
|
registry = mod.moduleRegistry
|
|
28
28
|
})
|
|
29
29
|
|
|
@@ -95,14 +95,14 @@ export const SDK_GROUPS: SdkGroup[] = [
|
|
|
95
95
|
"items": [
|
|
96
96
|
{
|
|
97
97
|
"name": "@allbluecn/web-app",
|
|
98
|
-
"version": "v0.
|
|
98
|
+
"version": "v0.9.0",
|
|
99
99
|
"lastUpdate": "Sep 3, 2026",
|
|
100
100
|
"source": "apps/web/package.json",
|
|
101
101
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"name": "@allbluecn/kernel",
|
|
105
|
-
"version": "v0.
|
|
105
|
+
"version": "v0.5.0",
|
|
106
106
|
"lastUpdate": "Sep 3, 2026",
|
|
107
107
|
"source": "packages/kernel/package.json",
|
|
108
108
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
package/src/lib/perf.ts
CHANGED
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
// 全站虚拟化/分页门槛常量统一自 @allbluecn/shared(web / admin / desktop 共享)
|
|
19
|
-
export { VIRTUALIZE_THRESHOLD, LOAD_MORE_STEP, DND_STICKY_THRESHOLD } from "@allbluecn/
|
|
19
|
+
export { VIRTUALIZE_THRESHOLD, LOAD_MORE_STEP, DND_STICKY_THRESHOLD } from "@allbluecn/kernel";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect } from "vitest"
|
|
19
19
|
import { computeStackPositions } from "../stack-layout"
|
|
20
|
-
import type { CanvasElement } from "@allbluecn/
|
|
20
|
+
import type { CanvasElement } from "@allbluecn/kernel"
|
|
21
21
|
|
|
22
22
|
describe("computeStackPositions", () => {
|
|
23
23
|
it("空画板时,组件从顶部起始位置按各自高度纵向排列", () => {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import type { CanvasElement } from "@allbluecn/
|
|
18
|
+
import type { CanvasElement } from "@allbluecn/kernel"
|
|
19
19
|
|
|
20
20
|
export interface StackLayoutOptions {
|
|
21
21
|
startX: number
|
package/src/lib/sse-transport.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import type { RealtimeTransport, EntityUpdateEvent } from "@allbluecn/
|
|
18
|
+
import type { RealtimeTransport, EntityUpdateEvent } from "@allbluecn/kernel"
|
|
19
19
|
|
|
20
20
|
const INITIAL_DELAY = 1000
|
|
21
21
|
const MAX_DELAY = 30000
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import type { SetStateAction } from 'react'
|
|
19
19
|
import { createStore } from '@tanstack/store'
|
|
20
|
-
import type { CanvasElement } from '@allbluecn/
|
|
20
|
+
import type { CanvasElement } from '@allbluecn/kernel'
|
|
21
21
|
|
|
22
22
|
interface PrdCanvasState {
|
|
23
23
|
elements: CanvasElement[]
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { describe, it, expect } from "vitest";
|
|
19
19
|
import { readField, applyFieldPatch } from "../field-utils";
|
|
20
|
-
import type { CanvasElement } from "@allbluecn/
|
|
20
|
+
import type { CanvasElement } from "@allbluecn/kernel";
|
|
21
21
|
|
|
22
22
|
const baseElement: CanvasElement = {
|
|
23
23
|
id: "elem_1",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import type { CanvasElement, EditablePropField } from "@allbluecn/
|
|
18
|
+
import type { CanvasElement, EditablePropField } from "@allbluecn/kernel";
|
|
19
19
|
import { Input } from "@/components/ui-shared/input";
|
|
20
20
|
import { Textarea } from "@/components/ui-shared/textarea";
|
|
21
21
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui-shared/select";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import type { CanvasElement } from "@allbluecn/
|
|
18
|
+
import type { CanvasElement } from "@allbluecn/kernel";
|
|
19
19
|
|
|
20
20
|
export type FieldNamespace = "overrides" | "style";
|
|
21
21
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { useTranslation } from "react-i18next";
|
|
19
|
-
import type { CanvasElement } from "@allbluecn/
|
|
19
|
+
import type { CanvasElement } from "@allbluecn/kernel";
|
|
20
20
|
import { FieldRow } from "./style-fields";
|
|
21
21
|
|
|
22
22
|
export function PositionSection({ element }: { element: CanvasElement }) {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { useRef } from "react";
|
|
19
19
|
import { useTranslation } from "react-i18next";
|
|
20
|
-
import type { CanvasElement } from "@allbluecn/
|
|
20
|
+
import type { CanvasElement } from "@allbluecn/kernel";
|
|
21
21
|
import { Input } from "@/components/ui-shared/input";
|
|
22
22
|
import {
|
|
23
23
|
Select,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { useCallback } from "react";
|
|
19
|
-
import type { CanvasElement } from "@allbluecn/
|
|
19
|
+
import type { CanvasElement } from "@allbluecn/kernel";
|
|
20
20
|
import { getComponent } from "@/lib/prototype-registry";
|
|
21
21
|
import { readField, applyFieldPatch, type FieldNamespace } from "./field-utils";
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ import { Badge } from "@/components/ui-shared/badge";
|
|
|
24
24
|
import { TagBadge } from '@/plugins/core/tags/tag-badge'
|
|
25
25
|
import { Trash2, FileText } from "lucide-react";
|
|
26
26
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui-shared/tooltip";
|
|
27
|
-
import { ICON_MAP, type PRDDetail as PRD } from "@allbluecn/
|
|
27
|
+
import { ICON_MAP, type PRDDetail as PRD } from "@allbluecn/kernel";
|
|
28
28
|
import { deletePrdFn } from "../../serverFns/prd";
|
|
29
29
|
import { formatDate } from "@/lib/datetime";
|
|
30
30
|
import { useTimezone } from "@/components/ui-shared/timezone-provider";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
} from "lucide-react";
|
|
56
56
|
import { cn } from "@/components/ui-shared/utils";
|
|
57
57
|
import { buildTree, TreeNode, PRDPage } from "@/lib/prd-tree-utils";
|
|
58
|
-
import { type PRDVersionWithSemver as PRDVersion } from "@allbluecn/
|
|
58
|
+
import { type PRDVersionWithSemver as PRDVersion } from "@allbluecn/kernel";
|
|
59
59
|
import { SUBTABS } from "./page-version-panel/constants";
|
|
60
60
|
import { PageVersionPanelProps, type PageVersion } from "./page-version-panel/types";
|
|
61
61
|
import { CreateVersionDialog } from "./page-version-panel/components/create-version-dialog";
|
|
@@ -23,7 +23,7 @@ import { Button } from "@/components/ui-shared/button";
|
|
|
23
23
|
import { Badge } from "@/components/ui-shared/badge";
|
|
24
24
|
import { ChevronRight, ChevronDown, File, Folder, RotateCcw } from "lucide-react";
|
|
25
25
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui-shared/tooltip";
|
|
26
|
-
import { type PRDVersionWithPages as PRDVersion } from "@allbluecn/
|
|
26
|
+
import { type PRDVersionWithPages as PRDVersion } from "@allbluecn/kernel";
|
|
27
27
|
import { formatDate } from "@/lib/datetime";
|
|
28
28
|
import { useTimezone } from "@/components/ui-shared/timezone-provider";
|
|
29
29
|
|
|
@@ -20,7 +20,7 @@ import { useTranslation } from "react-i18next"
|
|
|
20
20
|
import { Bot, Loader2, User, Plus, Trash2, ChevronDown, MessageSquare } from "lucide-react"
|
|
21
21
|
import { cn } from "@/components/ui-shared/utils"
|
|
22
22
|
import { toast } from '@/components/ui-shared/sonner'
|
|
23
|
-
import type { CanvasElement } from "@allbluecn/
|
|
23
|
+
import type { CanvasElement } from "@allbluecn/kernel"
|
|
24
24
|
import { getAllComponents } from "@/lib/prototype-registry"
|
|
25
25
|
import { generatePrototypeFn, type GeneratedComponent } from "@/plugins/core/prd/serverFns/ai/generate-prototype"
|
|
26
26
|
import { computeStackPositions } from "@/lib/prd/stack-layout"
|
|
@@ -27,7 +27,7 @@ import { toast } from '@/components/ui-shared/sonner';
|
|
|
27
27
|
import { useSession } from "@/components/ui-shared/auth-client";
|
|
28
28
|
import { maskEmail, formatTime, formatEditedTime } from "@/lib/comment-utils";
|
|
29
29
|
import { UserAvatar } from "@/components/ui-shared";
|
|
30
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
30
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
|
|
31
31
|
import { listCommentsFn, ignoreCommentFn } from "@/plugins/core/prd/serverFns/comments";
|
|
32
32
|
|
|
33
33
|
const SUBTABS = [
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import { useTranslation } from "react-i18next";
|
|
19
19
|
import { Trash2, Package } from "lucide-react";
|
|
20
|
-
import type { CanvasElement } from "@allbluecn/
|
|
20
|
+
import type { CanvasElement } from "@allbluecn/kernel";
|
|
21
21
|
import { getComponent } from "@/lib/prototype-registry";
|
|
22
22
|
import { Button } from "@/components/ui-shared/button";
|
|
23
23
|
import { Skeleton } from "@/components/ui-shared/skeleton";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
AlertDialogTitle,
|
|
37
37
|
} from "@/components/ui-shared/alert-dialog";
|
|
38
38
|
import { CreatePRDDialog } from "./dialog/create-prd-dialog";
|
|
39
|
-
import { ICON_MAP, type PRD } from "@allbluecn/
|
|
39
|
+
import { ICON_MAP, type PRD } from "@allbluecn/kernel";
|
|
40
40
|
import { listPrdFn, deletePrdFn } from "../serverFns/prd";
|
|
41
41
|
import {
|
|
42
42
|
Clock,
|
|
@@ -28,7 +28,7 @@ import { PRDDocPanel } from "./prd-doc-panel";
|
|
|
28
28
|
import { PRDRightSidebar } from "./prd-right-sidebar";
|
|
29
29
|
import { PRDNavigation } from "./prd-navigation";
|
|
30
30
|
import { useHotkey } from "@tanstack/react-hotkeys";
|
|
31
|
-
import { CanvasElement } from "@allbluecn/
|
|
31
|
+
import { CanvasElement } from "@allbluecn/kernel";
|
|
32
32
|
import type { Editor } from "@tiptap/react";
|
|
33
33
|
import { getComponent } from "@/lib/prototype-registry";
|
|
34
34
|
import { htmlToPmContent } from "@/lib/annotation-template";
|
|
@@ -36,7 +36,7 @@ import { AnnotationOverlay } from "./component-annotation-overlay/AnnotationOver
|
|
|
36
36
|
import { ElementContext } from "./element-context";
|
|
37
37
|
import { formatSaveTime } from "@/lib/time-format";
|
|
38
38
|
import { useTimezone } from "@/components/ui-shared/timezone-provider";
|
|
39
|
-
import type { PRD } from "@allbluecn/
|
|
39
|
+
import type { PRD } from "@allbluecn/kernel";
|
|
40
40
|
import { updatePrdPageFn, getPrdPageFn } from "../serverFns/pages"
|
|
41
41
|
import { updatePrdFn } from "../serverFns/prd"
|
|
42
42
|
import { toast } from '@/components/ui-shared/sonner'
|
|
@@ -56,7 +56,7 @@ import { PRDPageTab } from "./prd-tree-page-tab";
|
|
|
56
56
|
import { OutlineTab } from "./prd-outline-tab";
|
|
57
57
|
import { FilterBar } from "./prd-filter-bar";
|
|
58
58
|
import { PRDAgentPanel } from "./prd-agent-panel";
|
|
59
|
-
import { CanvasElement } from "@allbluecn/
|
|
59
|
+
import { CanvasElement } from "@allbluecn/kernel";
|
|
60
60
|
import { listComponentsFn } from "@/plugins/core/prd/serverFns/components";
|
|
61
61
|
import { BUILTIN_COMPONENTS, ICON_COMPONENTS, ICON_LUCIDE_MAP } from "./prototype";
|
|
62
62
|
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui-shared/select";
|
|
33
33
|
import { NameConfirmDialog } from "@/components/ui-shared/name-confirm-dialog";
|
|
34
34
|
import { useRouter } from "@tanstack/react-router";
|
|
35
|
-
import { ICON_MAP, type PRD } from "@allbluecn/
|
|
35
|
+
import { ICON_MAP, type PRD } from "@allbluecn/kernel";
|
|
36
36
|
import { deletePrdFn } from "../serverFns/prd";
|
|
37
37
|
import { TagBadge } from '@/plugins/core/tags/tag-badge'
|
|
38
38
|
import {
|
|
@@ -19,8 +19,8 @@ import React, { useMemo } from "react";
|
|
|
19
19
|
import { useTranslation } from "react-i18next";
|
|
20
20
|
import { LayoutTemplate, Box } from "lucide-react";
|
|
21
21
|
import { buildOutline } from "@/lib/outline-utils";
|
|
22
|
-
import { OutlineNode } from "@allbluecn/
|
|
23
|
-
import { CanvasElement } from "@allbluecn/
|
|
22
|
+
import { OutlineNode } from "@allbluecn/kernel";
|
|
23
|
+
import { CanvasElement } from "@allbluecn/kernel";
|
|
24
24
|
|
|
25
25
|
export function OutlineTab({ elements, onSelect }: { elements: CanvasElement[]; onSelect?: (elementId: string) => void }) {
|
|
26
26
|
const { t } = useTranslation("prd");
|
|
@@ -22,10 +22,10 @@ import { cn } from "@/components/ui-shared/utils";
|
|
|
22
22
|
import { Monitor, Smartphone, Tablet } from "lucide-react";
|
|
23
23
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui-shared/tooltip";
|
|
24
24
|
import { PrototypeCanvas } from "./prototype/PrototypeCanvas";
|
|
25
|
-
import { CanvasElement, DeviceType } from "@allbluecn/
|
|
25
|
+
import { CanvasElement, DeviceType } from "@allbluecn/kernel";
|
|
26
26
|
import { registerComponent, registerComponents, getComponent, unregisterComponent } from "@/lib/prototype-registry";
|
|
27
27
|
import { BUILTIN_COMPONENTS, GenericPrototype, LOCAL_IMPORTED_COMPONENTS, ICON_COMPONENTS } from "./prototype";
|
|
28
|
-
import { ComponentSource } from "@allbluecn/
|
|
28
|
+
import { ComponentSource } from "@allbluecn/kernel";
|
|
29
29
|
import { listComponentsFn } from "@/plugins/core/prd/serverFns/components";
|
|
30
30
|
|
|
31
31
|
interface PRDPrototypePanelProps {
|
|
@@ -25,7 +25,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui-shared/
|
|
|
25
25
|
import { PRDComponentEditorContent } from "./prd-component-editor-content";
|
|
26
26
|
import { PageVersionPanel } from "./page-version-panel";
|
|
27
27
|
import { PRDCommentReviewPanel } from "./prd-comment-review-panel";
|
|
28
|
-
import type { CanvasElement } from "@allbluecn/
|
|
28
|
+
import type { CanvasElement } from "@allbluecn/kernel";
|
|
29
29
|
|
|
30
30
|
interface PageData {
|
|
31
31
|
id: string;
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
type DragEndEvent,
|
|
27
27
|
type DragMoveEvent,
|
|
28
28
|
} from "@dnd-kit/react";
|
|
29
|
-
import { CanvasElement, DeviceType, DEVICE_SIZES } from "@allbluecn/
|
|
29
|
+
import { CanvasElement, DeviceType, DEVICE_SIZES } from "@allbluecn/kernel";
|
|
30
30
|
import { getAllComponents } from "@/lib/prototype-registry";
|
|
31
31
|
import { PrototypeElement } from "./PrototypeElement";
|
|
32
32
|
import { Skeleton } from "@/components/ui-shared/skeleton";
|
|
@@ -20,7 +20,7 @@ import React, { useCallback, useRef, useState, useLayoutEffect } from "react";
|
|
|
20
20
|
import { useTranslation } from "react-i18next";
|
|
21
21
|
import { useDraggable } from "@dnd-kit/react";
|
|
22
22
|
import { MessageSquareQuote } from "lucide-react";
|
|
23
|
-
import { CanvasElement, type ResizeDirection } from "@allbluecn/
|
|
23
|
+
import { CanvasElement, type ResizeDirection } from "@allbluecn/kernel";
|
|
24
24
|
import { getComponent } from "@/lib/prototype-registry";
|
|
25
25
|
import { GenericPrototype } from "@/components/prototype";
|
|
26
26
|
import { ResizeHandles } from "./ResizeHandles";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
import React, { useCallback } from "react";
|
|
20
|
-
import type { ResizeDirection } from "@allbluecn/
|
|
20
|
+
import type { ResizeDirection } from "@allbluecn/kernel";
|
|
21
21
|
|
|
22
22
|
interface ResizeHandlesProps {
|
|
23
23
|
onResize: (dx: number, dy: number, direction: ResizeDirection) => void;
|
|
@@ -26,7 +26,7 @@ import { toast } from "@/components/ui-shared/sonner";
|
|
|
26
26
|
import { useSession } from "@/components/ui-shared/auth-client";
|
|
27
27
|
import { maskEmail, formatTime, formatEditedTime } from "@/lib/comment-utils";
|
|
28
28
|
import { UserAvatar } from "@/components/ui-shared";
|
|
29
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
29
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
|
|
30
30
|
import {
|
|
31
31
|
listCommentsFn,
|
|
32
32
|
createCommentFn,
|
|
@@ -19,7 +19,7 @@ import { createServerFn } from "@tanstack/react-start"
|
|
|
19
19
|
import { getRequest } from "@tanstack/react-start/server"
|
|
20
20
|
import { z } from "zod"
|
|
21
21
|
import { prisma } from "@allbluecn/database"
|
|
22
|
-
import { getServerSeam } from "@allbluecn/
|
|
22
|
+
import { getServerSeam } from "@allbluecn/kernel"
|
|
23
23
|
|
|
24
24
|
/** 列出用户在某个 PRD 下的所有 Agent 会话 */
|
|
25
25
|
export const listAgentConversationsFn = createServerFn({ method: "GET" })
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { createServerFn } from "@tanstack/react-start"
|
|
19
19
|
import { getRequest } from "@tanstack/react-start/server"
|
|
20
20
|
import { z } from "zod"
|
|
21
|
-
import { getServerSeam } from "@allbluecn/
|
|
21
|
+
import { getServerSeam } from "@allbluecn/kernel"
|
|
22
22
|
import { runChatWithModel } from "@/server/ai-gateway"
|
|
23
23
|
import { buildFillPrompt } from "../../lib/ai/annotation-prompt"
|
|
24
24
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { createServerFn } from "@tanstack/react-start"
|
|
19
19
|
import { getRequest } from "@tanstack/react-start/server"
|
|
20
20
|
import { z } from "zod"
|
|
21
|
-
import { getServerSeam } from "@allbluecn/
|
|
21
|
+
import { getServerSeam } from "@allbluecn/kernel"
|
|
22
22
|
import { checkAiRateLimit } from "../../../server/rate-limit"
|
|
23
23
|
import { runChatWithModel } from "@/server/ai-gateway"
|
|
24
24
|
|
|
@@ -24,8 +24,8 @@ import type {
|
|
|
24
24
|
AiModelMeta,
|
|
25
25
|
AiProviderMeta,
|
|
26
26
|
ModelCapability,
|
|
27
|
-
} from "@allbluecn/
|
|
28
|
-
import { getServerSeam } from "@allbluecn/
|
|
27
|
+
} from "@allbluecn/kernel"
|
|
28
|
+
import { getServerSeam } from "@allbluecn/kernel"
|
|
29
29
|
import { checkAiRateLimit } from "../../../server/rate-limit"
|
|
30
30
|
import {
|
|
31
31
|
listVisibleProvidersForUser,
|
|
@@ -89,8 +89,8 @@ vi.mock('@tanstack/react-start/server', () => ({
|
|
|
89
89
|
getRequest: () => ({}),
|
|
90
90
|
}))
|
|
91
91
|
|
|
92
|
-
vi.mock('@allbluecn/
|
|
93
|
-
const actual = await importOriginal<typeof import('@allbluecn/
|
|
92
|
+
vi.mock('@allbluecn/kernel', async (importOriginal) => {
|
|
93
|
+
const actual = await importOriginal<typeof import('@allbluecn/kernel')>()
|
|
94
94
|
const UnauthorizedError = class UnauthorizedError extends Error {
|
|
95
95
|
constructor(message: string = 'UNAUTHORIZED') {
|
|
96
96
|
super(message)
|
|
@@ -20,7 +20,7 @@ import { useTranslation } from "react-i18next";
|
|
|
20
20
|
import { Settings, LayoutGrid, Activity as ActivityIcon, CalendarRange } from "lucide-react";
|
|
21
21
|
import { useTheme } from "next-themes";
|
|
22
22
|
import { UserAvatar } from "@/components/ui-shared";
|
|
23
|
-
import type { AvatarConfig, ShapeType } from "@allbluecn/
|
|
23
|
+
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
|
|
24
24
|
import { Button } from "@/components/ui/button";
|
|
25
25
|
import { AvatarGroup } from "@/components/magicui/components/animate/avatar-group";
|
|
26
26
|
import { GlyphMatrix } from "@/components/magicui/glyph-matrix";
|
|
@@ -28,14 +28,14 @@ const CLIENT_SAFE_SPECIFIERS = new Set([
|
|
|
28
28
|
'tailwind-merge',
|
|
29
29
|
'date-fns',
|
|
30
30
|
'date-fns/locale',
|
|
31
|
-
'@allbluecn/
|
|
31
|
+
'@allbluecn/kernel',
|
|
32
32
|
'@allbluecn/kernel',
|
|
33
33
|
'@/components/ui-shared',
|
|
34
34
|
'@/lib/desktop-detect',
|
|
35
35
|
'@/server/ai-gateway/tools',
|
|
36
|
-
'@allbluecn/shared',
|
|
37
36
|
'@allbluecn/kernel',
|
|
38
|
-
'@allbluecn/
|
|
37
|
+
'@allbluecn/kernel',
|
|
38
|
+
'@allbluecn/kernel',
|
|
39
39
|
'@allbluecn/kernel',
|
|
40
40
|
'@/plugins/modules.gen',
|
|
41
41
|
])
|
|
@@ -28,7 +28,7 @@ vi.mock('@/server/entitlements-token-client', () => ({
|
|
|
28
28
|
readVerifiedEntitlements: vi.fn().mockResolvedValue(null),
|
|
29
29
|
}))
|
|
30
30
|
|
|
31
|
-
vi.mock('@allbluecn/
|
|
31
|
+
vi.mock('@allbluecn/kernel', async (importOriginal) => {
|
|
32
32
|
const actual = await importOriginal()
|
|
33
33
|
return actual
|
|
34
34
|
})
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
// apps/web/src/server/ai/provider-router.ts
|
|
19
19
|
import { prisma } from "@allbluecn/database"
|
|
20
|
-
import type { AiProviderMeta } from "@allbluecn/
|
|
21
|
-
import { SEED_AI_PROVIDERS } from "@allbluecn/
|
|
20
|
+
import type { AiProviderMeta } from "@allbluecn/kernel"
|
|
21
|
+
import { SEED_AI_PROVIDERS } from "@allbluecn/kernel"
|
|
22
22
|
import type { ResolvedProviderConfig } from "./types"
|
|
23
23
|
import { getPorts } from "./runtime"
|
|
24
24
|
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { prisma } from "@allbluecn/database"
|
|
19
|
-
import type { Reference, ResolvedRef, RefDisplay, SearchResult } from "@allbluecn/
|
|
20
|
-
import { moduleRegistry } from "@allbluecn/
|
|
19
|
+
import type { Reference, ResolvedRef, RefDisplay, SearchResult } from "@allbluecn/kernel"
|
|
20
|
+
import { moduleRegistry } from "@allbluecn/kernel"
|
|
21
21
|
|
|
22
22
|
async function resolveDisplay(
|
|
23
23
|
targetModule: string,
|
|
@@ -57,7 +57,7 @@ export const listUsersBriefFn = createServerFn({ method: "GET" })
|
|
|
57
57
|
});
|
|
58
58
|
return users.map((u) => ({
|
|
59
59
|
...u,
|
|
60
|
-
avatarConfig: (u.avatarConfig as import("@allbluecn/
|
|
60
|
+
avatarConfig: (u.avatarConfig as import("@allbluecn/kernel").AvatarConfig | null) ?? null,
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -79,7 +79,7 @@ export const listUsersBriefFn = createServerFn({ method: "GET" })
|
|
|
79
79
|
});
|
|
80
80
|
return users.map((u) => ({
|
|
81
81
|
...u,
|
|
82
|
-
avatarConfig: (u.avatarConfig as import("@allbluecn/
|
|
82
|
+
avatarConfig: (u.avatarConfig as import("@allbluecn/kernel").AvatarConfig | null) ?? null,
|
|
83
83
|
}));
|
|
84
84
|
});
|
|
85
85
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import { prisma, Prisma } from "@allbluecn/database";
|
|
19
|
-
import type { AvatarConfig } from "@allbluecn/
|
|
19
|
+
import type { AvatarConfig } from "@allbluecn/kernel";
|
|
20
20
|
import type { StoryState, StoryPriority } from "@/components/story/constants";
|
|
21
21
|
import type {
|
|
22
22
|
UserBrief,
|
package/src/start.ts
CHANGED
|
@@ -85,7 +85,7 @@ const apiCorsMiddleware = createMiddleware().server(async ({ request, next }: an
|
|
|
85
85
|
|
|
86
86
|
export const startInstance = createStart(async () => {
|
|
87
87
|
if (import.meta.env.SSR) {
|
|
88
|
-
const { registerServerSeam } = await import('@allbluecn/
|
|
88
|
+
const { registerServerSeam } = await import('@allbluecn/kernel')
|
|
89
89
|
const { requireAuth, requireUserInDb } = await import('@/server/auth-helpers')
|
|
90
90
|
const { getCurrentSession } = await import('@/lib/session')
|
|
91
91
|
const { isDesktopServer } = await import('@/server/desktop-guest')
|
package/src/types/outline.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@allbluecn/
|
|
1
|
+
export * from '@allbluecn/kernel'
|
package/src/types/prd.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@allbluecn/
|
|
1
|
+
export * from '@allbluecn/kernel'
|
package/src/types/prototype.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@allbluecn/
|
|
1
|
+
export * from '@allbluecn/kernel'
|
package/vite.shared.ts
CHANGED
|
@@ -148,12 +148,12 @@ export function createWebViteConfig(opts: WebViteConfigOptions) {
|
|
|
148
148
|
},
|
|
149
149
|
},
|
|
150
150
|
optimizeDeps: {
|
|
151
|
-
exclude: ['@allbluecn/database', '@allbluecn/
|
|
151
|
+
exclude: ['@allbluecn/database', '@allbluecn/kernel', ],
|
|
152
152
|
include: ['@tanstack/react-router', 'use-sync-external-store', 'swr'],
|
|
153
153
|
},
|
|
154
154
|
ssr: {
|
|
155
155
|
noExternal: [
|
|
156
|
-
'@allbluecn/
|
|
156
|
+
'@allbluecn/kernel',
|
|
157
157
|
'@allbluecn/database',
|
|
158
158
|
'@allblue/devtools',
|
|
159
159
|
'@open-file-viewer/core',
|