From e6912808e1d34d53a983e6443f7984b81af5ff51 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 04:56:30 +0000 Subject: [PATCH 1/4] Initial plan From 2d6c02c3ca881e00537fe48d730eef4048c4c798 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 05:00:46 +0000 Subject: [PATCH 2/4] Add MIT license headers to all source files Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- packages/cli/bin/cli.mjs | 8 ++++++++ packages/cli/src/commands/build.mjs | 8 ++++++++ packages/cli/src/commands/dev.mjs | 8 ++++++++ packages/cli/src/commands/start.mjs | 8 ++++++++ packages/cli/src/commands/translate.mjs | 8 ++++++++ packages/cli/src/utils/translate.mjs | 8 ++++++++ packages/site/app/[lang]/docs/[[...slug]]/page.tsx | 8 ++++++++ packages/site/app/[lang]/docs/layout.tsx | 8 ++++++++ packages/site/app/[lang]/layout.tsx | 8 ++++++++ packages/site/app/[lang]/page.tsx | 8 ++++++++ packages/site/app/api/search/route.ts | 8 ++++++++ packages/site/app/layout.config.tsx | 8 ++++++++ packages/site/app/layout.tsx | 8 ++++++++ packages/site/app/page.tsx | 8 ++++++++ packages/site/lib/deep-merge.ts | 8 ++++++++ packages/site/lib/i18n.ts | 8 ++++++++ packages/site/lib/site-config.ts | 8 ++++++++ packages/site/lib/source.ts | 8 ++++++++ packages/site/lib/translations.ts | 8 ++++++++ packages/site/mdx-components.tsx | 8 ++++++++ packages/site/next.config.mjs | 8 ++++++++ packages/site/proxy.ts | 8 ++++++++ packages/site/source.config.ts | 8 ++++++++ 23 files changed, 184 insertions(+) diff --git a/packages/cli/bin/cli.mjs b/packages/cli/bin/cli.mjs index 0a56968..99728d7 100755 --- a/packages/cli/bin/cli.mjs +++ b/packages/cli/bin/cli.mjs @@ -1,4 +1,12 @@ #!/usr/bin/env node +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { cac } from 'cac'; import 'dotenv/config'; import { registerTranslateCommand } from '../src/commands/translate.mjs'; diff --git a/packages/cli/src/commands/build.mjs b/packages/cli/src/commands/build.mjs index 93e520b..f3581bb 100644 --- a/packages/cli/src/commands/build.mjs +++ b/packages/cli/src/commands/build.mjs @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { spawn } from 'child_process'; import path from 'path'; import fs from 'fs'; diff --git a/packages/cli/src/commands/dev.mjs b/packages/cli/src/commands/dev.mjs index 4054e5c..144a1a4 100644 --- a/packages/cli/src/commands/dev.mjs +++ b/packages/cli/src/commands/dev.mjs @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { spawn } from 'child_process'; import path from 'path'; import fs from 'fs'; diff --git a/packages/cli/src/commands/start.mjs b/packages/cli/src/commands/start.mjs index ae2da7e..ddb7219 100644 --- a/packages/cli/src/commands/start.mjs +++ b/packages/cli/src/commands/start.mjs @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { spawn } from 'node:child_process'; import path from 'node:path'; import fs from 'node:fs'; diff --git a/packages/cli/src/commands/translate.mjs b/packages/cli/src/commands/translate.mjs index ce93726..1e90685 100644 --- a/packages/cli/src/commands/translate.mjs +++ b/packages/cli/src/commands/translate.mjs @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import fs from 'node:fs'; import path from 'node:path'; import OpenAI from 'openai'; diff --git a/packages/cli/src/utils/translate.mjs b/packages/cli/src/utils/translate.mjs index 8ff7491..60b241f 100644 --- a/packages/cli/src/utils/translate.mjs +++ b/packages/cli/src/utils/translate.mjs @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import fs from 'node:fs'; import path from 'node:path'; import OpenAI from 'openai'; diff --git a/packages/site/app/[lang]/docs/[[...slug]]/page.tsx b/packages/site/app/[lang]/docs/[[...slug]]/page.tsx index 7290110..36df286 100644 --- a/packages/site/app/[lang]/docs/[[...slug]]/page.tsx +++ b/packages/site/app/[lang]/docs/[[...slug]]/page.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { source } from '@/lib/source'; import type { Metadata } from 'next'; import { DocsPage, DocsBody } from 'fumadocs-ui/page'; diff --git a/packages/site/app/[lang]/docs/layout.tsx b/packages/site/app/[lang]/docs/layout.tsx index b2d0326..fea2696 100644 --- a/packages/site/app/[lang]/docs/layout.tsx +++ b/packages/site/app/[lang]/docs/layout.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { source } from '@/lib/source'; import { DocsLayout } from 'fumadocs-ui/layouts/docs'; import type { ReactNode } from 'react'; diff --git a/packages/site/app/[lang]/layout.tsx b/packages/site/app/[lang]/layout.tsx index a5078c8..6c8e9b0 100644 --- a/packages/site/app/[lang]/layout.tsx +++ b/packages/site/app/[lang]/layout.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import 'fumadocs-ui/style.css'; import { RootProvider } from 'fumadocs-ui/provider/next'; import { defineI18nUI } from 'fumadocs-ui/i18n'; diff --git a/packages/site/app/[lang]/page.tsx b/packages/site/app/[lang]/page.tsx index 859930b..eb15f38 100644 --- a/packages/site/app/[lang]/page.tsx +++ b/packages/site/app/[lang]/page.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { redirect, notFound } from 'next/navigation'; diff --git a/packages/site/app/api/search/route.ts b/packages/site/app/api/search/route.ts index 793e090..7b848a7 100644 --- a/packages/site/app/api/search/route.ts +++ b/packages/site/app/api/search/route.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { source } from '@/lib/source'; import { createSearchAPI } from 'fumadocs-core/search/server'; diff --git a/packages/site/app/layout.config.tsx b/packages/site/app/layout.config.tsx index 5c361b0..7bd76a2 100644 --- a/packages/site/app/layout.config.tsx +++ b/packages/site/app/layout.config.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { type BaseLayoutProps } from 'fumadocs-ui/layouts/shared'; import { siteConfig } from '@/lib/site-config'; import Image from 'next/image'; diff --git a/packages/site/app/layout.tsx b/packages/site/app/layout.tsx index cde7a9b..a28ae3d 100644 --- a/packages/site/app/layout.tsx +++ b/packages/site/app/layout.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import 'fumadocs-ui/style.css'; import { RootProvider } from 'fumadocs-ui/provider/next'; import { defineI18nUI } from 'fumadocs-ui/i18n'; diff --git a/packages/site/app/page.tsx b/packages/site/app/page.tsx index cbde5a4..d7ff01e 100644 --- a/packages/site/app/page.tsx +++ b/packages/site/app/page.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { redirect } from 'next/navigation'; /** diff --git a/packages/site/lib/deep-merge.ts b/packages/site/lib/deep-merge.ts index 85ac06f..d203d7c 100644 --- a/packages/site/lib/deep-merge.ts +++ b/packages/site/lib/deep-merge.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export function isObject(item: any): item is Record { return (item && typeof item === 'object' && !Array.isArray(item)); } diff --git a/packages/site/lib/i18n.ts b/packages/site/lib/i18n.ts index b3175cb..0a03c51 100644 --- a/packages/site/lib/i18n.ts +++ b/packages/site/lib/i18n.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { siteConfig } from './site-config'; import { defineI18n } from 'fumadocs-core/i18n'; diff --git a/packages/site/lib/site-config.ts b/packages/site/lib/site-config.ts index f5c5f26..a89087e 100644 --- a/packages/site/lib/site-config.ts +++ b/packages/site/lib/site-config.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { deepMerge } from './deep-merge'; import objectDocsConfig from '@/docs.site.json'; diff --git a/packages/site/lib/source.ts b/packages/site/lib/source.ts index 774f52f..54e302d 100644 --- a/packages/site/lib/source.ts +++ b/packages/site/lib/source.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { loader } from 'fumadocs-core/source'; import { docs, meta } from '@/.source/server'; import { toFumadocsSource } from 'fumadocs-mdx/runtime/server'; diff --git a/packages/site/lib/translations.ts b/packages/site/lib/translations.ts index fb661d6..b8c6237 100644 --- a/packages/site/lib/translations.ts +++ b/packages/site/lib/translations.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { siteConfig } from './site-config'; /** diff --git a/packages/site/mdx-components.tsx b/packages/site/mdx-components.tsx index 1c2caa9..8649618 100644 --- a/packages/site/mdx-components.tsx +++ b/packages/site/mdx-components.tsx @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import defaultComponents from 'fumadocs-ui/mdx'; import type { MDXComponents } from 'mdx/types'; import { Steps, Step } from 'fumadocs-ui/components/steps'; diff --git a/packages/site/next.config.mjs b/packages/site/next.config.mjs index bfee7f4..6b173d9 100644 --- a/packages/site/next.config.mjs +++ b/packages/site/next.config.mjs @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { createMDX } from 'fumadocs-mdx/next'; const withMDX = createMDX(); diff --git a/packages/site/proxy.ts b/packages/site/proxy.ts index 905305c..24919ba 100644 --- a/packages/site/proxy.ts +++ b/packages/site/proxy.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { createI18nMiddleware } from 'fumadocs-core/i18n/middleware'; import { i18n } from '@/lib/i18n'; import { NextResponse, NextRequest, NextFetchEvent } from 'next/server'; diff --git a/packages/site/source.config.ts b/packages/site/source.config.ts index a02cea7..ac489f5 100644 --- a/packages/site/source.config.ts +++ b/packages/site/source.config.ts @@ -1,3 +1,11 @@ +/** + * ObjectDocs + * Copyright (c) 2026-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import { defineConfig, defineDocs } from 'fumadocs-mdx/config'; import { siteConfig } from './lib/site-config'; import path from 'node:path'; From b3f1f533c7369eead4873f8826f848c4628057d4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 05:19:23 +0000 Subject: [PATCH 3/4] Initial plan From 077c16d51391008d37db9f3736837f14e3121535 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 18 Jan 2026 05:22:25 +0000 Subject: [PATCH 4/4] Add lucide-react dependency to fix build errors Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index d911bd1..b6306e6 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "fumadocs-core": "16.4.7", "fumadocs-mdx": "14.2.5", "fumadocs-ui": "16.4.7", + "lucide-react": "^0.562.0", "react": "^19.2.3", "react-dom": "^19.2.3", "server-only": "^0.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4010bb4..0ac2799 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: fumadocs-ui: specifier: 16.4.7 version: 16.4.7(@types/react@19.2.8)(fumadocs-core@16.4.7(@types/react@19.2.8)(lucide-react@0.562.0(react@19.2.3))(next@16.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(zod@4.3.5))(next@16.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(tailwindcss@4.1.18) + lucide-react: + specifier: ^0.562.0 + version: 0.562.0(react@19.2.3) react: specifier: ^19.2.3 version: 19.2.3