feat: init @affine/copilot (#2511)

This commit is contained in:
Himself65
2023-05-30 18:02:49 +08:00
committed by GitHub
parent f669164674
commit 6648fe4dcc
49 changed files with 2963 additions and 1331 deletions
+3 -1
View File
@@ -5,7 +5,7 @@
"module": "./src/index.ts",
"devDependencies": {
"@blocksuite/global": "0.0.0-20230530061436-d0702cc0-nightly",
"next": "^13.4.2",
"next": "=13.4.2",
"react": "18.3.0-canary-16d053d59-20230506",
"react-dom": "18.3.0-canary-16d053d59-20230506",
"zod": "^3.21.4"
@@ -20,6 +20,8 @@
"@blocksuite/global": "0.0.0-20230409084303-221991d4-nightly"
},
"dependencies": {
"@affine/copilot": "workspace:*",
"@toeverything/plugin-infra": "workspace:*",
"lit": "^2.7.4"
},
"version": "0.7.0-canary.2"
+7
View File
@@ -0,0 +1,7 @@
import { config, getEnvironment, setupGlobal } from './config';
if (config.enablePlugin && !getEnvironment().isServer) {
import('@affine/copilot');
}
setupGlobal();
+1
View File
@@ -12,6 +12,7 @@ export const buildFlagsSchema = z.object({
* filter feature in the all pages.
*/
enableAllPageFilter: z.boolean(),
enablePlugin: z.boolean(),
enableImagePreviewModal: z.boolean(),
enableTestProperties: z.boolean(),
enableBroadCastChannelProvider: z.boolean(),