chore:turbo config

This commit is contained in:
lirz 2025-05-08 21:22:54 +08:00 committed by lirun
parent da482e26a9
commit 86cd49fae6
11 changed files with 15217 additions and 24967 deletions

15694
package-lock.json generated

File diff suppressed because it is too large Load Diff

13989
renderer/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{
"name": "renderer",
"name": "@openmcp/renderer",
"version": "0.1.0",
"private": true,
"scripts": {

View File

@ -0,0 +1,9 @@
import fsPath from 'node:path';
import fs from 'node:fs';
import * as process from "node:process";
const cwd = process.cwd();
const sdkPath = fsPath.join(cwd, 'openmcp-sdk');
console.log(cwd);
// fs.rmSync(sdkPath, { recursive: true, force: true });

5023
service/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,13 @@
{
"name": "openmcp-service",
"name": "@openmcp/service",
"version": "0.0.1",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "commonjs",
"exports": {
".": "./src/index.ts"
},
"scripts": {
"serve": "ts-node-dev --respawn --transpile-only src/main.ts",
"build": "tsc",

View File

@ -9,7 +9,8 @@
"outDir": "./dist",
"declaration": true,
"declarationMap": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"moduleResolution": "node"
},
"paths": {
"@/*": [
@ -18,4 +19,4 @@
},
"include": ["src/**/*"],
"exclude": ["node_modules", "src/main.ts"] // main.ts
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{
"name": "openmcp-electron",
"name": "@openmcp/electron",
"version": "0.0.1",
"description": "",
"main": "dist/main.js",
@ -13,6 +13,7 @@
"email": "1193466151@qq.com"
},
"dependencies": {
"@openmcp/service": "*",
"@modelcontextprotocol/sdk": "^1.10.2",
"@seald-io/nedb": "^4.1.1",
"axios": "^1.7.7",

View File

@ -1,5 +1,5 @@
import { app, BrowserWindow, ipcMain } from 'electron';
import * as OpenMCPService from '../openmcp-sdk/service';
import * as OpenMCPService from '@openmcp/service';
import * as path from 'path';
import { ElectronIPCLike, getInitConnectionOption, ILaunchSigature, updateConnectionOption } from './util';
@ -33,7 +33,7 @@ function createWindow(): void {
const option = getInitConnectionOption();
// 注册消息接受的管线
webview.onDidReceiveMessage((message: any) => {
webview.onDidReceiveMessage((message: any) => {
console.info(`command: [${message.command || 'No Command'}]`);
const { command, data } = message;
@ -51,7 +51,7 @@ function createWindow(): void {
url: option.url,
oauth: option.oauth || ''
};
const launchResult = {
code: 200,
msg: launchResultMessage
@ -63,11 +63,11 @@ function createWindow(): void {
});
break;
case 'electron/update-connection-sigature':
updateConnectionOption(data);
break;
default:
OpenMCPService.routeMessage(command, data, webview);
break;
@ -94,4 +94,4 @@ app.whenReady().then(() => {
app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit()
})
})

0
turbo.json Normal file
View File