bump
This commit is contained in:
		| @@ -35,7 +35,7 @@ | |||||||
|     "@kevisual/ai-graph": "workspace:^", |     "@kevisual/ai-graph": "workspace:^", | ||||||
|     "@kevisual/ai-lang": "workspace:^", |     "@kevisual/ai-lang": "workspace:^", | ||||||
|     "@kevisual/auth": "1.0.5", |     "@kevisual/auth": "1.0.5", | ||||||
|     "@kevisual/local-app-manager": "0.1.6-alpha.2", |     "@kevisual/local-app-manager": "0.1.6-alpha.3", | ||||||
|     "@kevisual/router": "^0.0.6-alpha-2", |     "@kevisual/router": "^0.0.6-alpha-2", | ||||||
|     "@types/semver": "^7.5.8", |     "@types/semver": "^7.5.8", | ||||||
|     "archiver": "^7.0.1", |     "archiver": "^7.0.1", | ||||||
| @@ -66,7 +66,7 @@ | |||||||
|     "zod": "^3.23.8" |     "zod": "^3.23.8" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@kevisual/use-config": "^1.0.5", |     "@kevisual/use-config": "^1.0.7", | ||||||
|     "@rollup/plugin-alias": "^5.1.1", |     "@rollup/plugin-alias": "^5.1.1", | ||||||
|     "@rollup/plugin-commonjs": "^28.0.1", |     "@rollup/plugin-commonjs": "^28.0.1", | ||||||
|     "@rollup/plugin-json": "^6.1.0", |     "@rollup/plugin-json": "^6.1.0", | ||||||
|   | |||||||
 Submodule packages/var-proxy updated: 5c91ac8b8d...a9afc2ffea
									
								
							
							
								
								
									
										722
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										722
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -60,6 +60,19 @@ const config = { | |||||||
|     }), |     }), | ||||||
|     json(), |     json(), | ||||||
|   ], |   ], | ||||||
|   external: ['sequelize', '@kevisual/router', 'ioredis', 'socket.io', 'minio'], |   external: [ | ||||||
|  |     /@kevisual\/router(\/.*)?/, //, // 路由 | ||||||
|  |     /@kevisual\/use-config(\/.*)?/, // | ||||||
|  |  | ||||||
|  |     'sequelize', // 数据库 orm | ||||||
|  |     'ioredis', // redis | ||||||
|  |     'socket.io', // socket.io | ||||||
|  |     'minio', // minio | ||||||
|  |  | ||||||
|  |     'pg', // pg | ||||||
|  |     'pino', // pino | ||||||
|  |     'pino-pretty', // pino-pretty | ||||||
|  |     '@msgpack/msgpack', // msgpack | ||||||
|  |   ], | ||||||
| }; | }; | ||||||
| export default config; | export default config; | ||||||
|   | |||||||
| @@ -4,8 +4,7 @@ import { dynamicImport } from './lib/dynamic-import.ts'; | |||||||
| import { redisPublisher, redisSubscriber, redis } from './modules/redis.ts'; | import { redisPublisher, redisSubscriber, redis } from './modules/redis.ts'; | ||||||
| import { minioClient } from './modules/minio.ts'; | import { minioClient } from './modules/minio.ts'; | ||||||
| import { sequelize } from './modules/sequelize.ts'; | import { sequelize } from './modules/sequelize.ts'; | ||||||
| import { useContextKey , useContext} from '@kevisual/use-config/context'; | import { useContextKey, useContext } from '@kevisual/use-config/context'; | ||||||
| useContext({}); |  | ||||||
| useConfig(); | useConfig(); | ||||||
| export const emit = (channel: string, message?: any) => { | export const emit = (channel: string, message?: any) => { | ||||||
|   redisPublisher.publish(channel, JSON.stringify(message)); |   redisPublisher.publish(channel, JSON.stringify(message)); | ||||||
| @@ -29,7 +28,9 @@ const init = () => { | |||||||
|   }); |   }); | ||||||
| }; | }; | ||||||
| export const app = useContextKey('app', init); | export const app = useContextKey('app', init); | ||||||
|  | // @ts-ignore | ||||||
|  | // app.name = 'main-app'; | ||||||
|  | // console.log('app context', global.context); | ||||||
| const clients = []; | const clients = []; | ||||||
| // 订阅频道 pageEdit, container 单个页面预览 container 整个页面预览 | // 订阅频道 pageEdit, container 单个页面预览 container 整个页面预览 | ||||||
| type ClientData = { | type ClientData = { | ||||||
|   | |||||||
| @@ -4,15 +4,15 @@ import './page/index.ts'; | |||||||
|  |  | ||||||
| import './resource/index.ts'; | import './resource/index.ts'; | ||||||
|  |  | ||||||
| // import './prompt-graph/index.ts'; | import './prompt-graph/index.ts'; | ||||||
|  |  | ||||||
| import './agent/index.ts'; | import './agent/index.ts'; | ||||||
|  |  | ||||||
| import './user/index.ts'; | import './user/index.ts'; | ||||||
|  |  | ||||||
| // import './chat-prompt/index.ts'; | import './chat-prompt/index.ts'; | ||||||
|  |  | ||||||
| // import './chat-history/index.ts'; | import './chat-history/index.ts'; | ||||||
|  |  | ||||||
| import './github/index.ts'; | import './github/index.ts'; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import { app } from '@/app.ts'; | // import { app } from '@/app.ts'; | ||||||
| import { manager, loadManager, app as ManagerApp } from '@kevisual/local-app-manager'; | import { manager, loadManager, app as ManagerApp } from '@kevisual/local-app-manager'; | ||||||
| export const existDenpend = [ | export const existDenpend = [ | ||||||
|   'sequelize', // commonjs |   'sequelize', // commonjs | ||||||
| @@ -13,6 +13,7 @@ export const existDenpend = [ | |||||||
| ]; | ]; | ||||||
| // export const manager = new Manager({ mainApp: app }); | // export const manager = new Manager({ mainApp: app }); | ||||||
| export { manager }; | export { manager }; | ||||||
|  | // console.log('app', app, ); | ||||||
| console.log('app equal', app === ManagerApp); | // console.log('app2 context', global.context); | ||||||
|  | // console.log('app equal', app === ManagerApp); | ||||||
| loadManager(); | loadManager(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user