chore:turbo config
This commit is contained in:
parent
da482e26a9
commit
86cd49fae6
15694
package-lock.json
generated
15694
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13989
renderer/package-lock.json
generated
13989
renderer/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "renderer",
|
"name": "@openmcp/renderer",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
9
renderer/scripts/post-build.mjs
Normal file
9
renderer/scripts/post-build.mjs
Normal 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
5023
service/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "openmcp-service",
|
"name": "@openmcp/service",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
"type": "commonjs",
|
||||||
|
"exports": {
|
||||||
|
".": "./src/index.ts"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "ts-node-dev --respawn --transpile-only src/main.ts",
|
"serve": "ts-node-dev --respawn --transpile-only src/main.ts",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
"experimentalDecorators": true
|
"experimentalDecorators": true,
|
||||||
|
"moduleResolution": "node"
|
||||||
},
|
},
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": [
|
||||||
@ -18,4 +19,4 @@
|
|||||||
},
|
},
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": ["node_modules", "src/main.ts"] // 排除 main.ts
|
"exclude": ["node_modules", "src/main.ts"] // 排除 main.ts
|
||||||
}
|
}
|
||||||
|
5437
software/package-lock.json
generated
5437
software/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "openmcp-electron",
|
"name": "@openmcp/electron",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
@ -13,6 +13,7 @@
|
|||||||
"email": "1193466151@qq.com"
|
"email": "1193466151@qq.com"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@openmcp/service": "*",
|
||||||
"@modelcontextprotocol/sdk": "^1.10.2",
|
"@modelcontextprotocol/sdk": "^1.10.2",
|
||||||
"@seald-io/nedb": "^4.1.1",
|
"@seald-io/nedb": "^4.1.1",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.7",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { app, BrowserWindow, ipcMain } from 'electron';
|
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 * as path from 'path';
|
||||||
import { ElectronIPCLike, getInitConnectionOption, ILaunchSigature, updateConnectionOption } from './util';
|
import { ElectronIPCLike, getInitConnectionOption, ILaunchSigature, updateConnectionOption } from './util';
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ function createWindow(): void {
|
|||||||
const option = getInitConnectionOption();
|
const option = getInitConnectionOption();
|
||||||
|
|
||||||
// 注册消息接受的管线
|
// 注册消息接受的管线
|
||||||
webview.onDidReceiveMessage((message: any) => {
|
webview.onDidReceiveMessage((message: any) => {
|
||||||
console.info(`command: [${message.command || 'No Command'}]`);
|
console.info(`command: [${message.command || 'No Command'}]`);
|
||||||
|
|
||||||
const { command, data } = message;
|
const { command, data } = message;
|
||||||
@ -51,7 +51,7 @@ function createWindow(): void {
|
|||||||
url: option.url,
|
url: option.url,
|
||||||
oauth: option.oauth || ''
|
oauth: option.oauth || ''
|
||||||
};
|
};
|
||||||
|
|
||||||
const launchResult = {
|
const launchResult = {
|
||||||
code: 200,
|
code: 200,
|
||||||
msg: launchResultMessage
|
msg: launchResultMessage
|
||||||
@ -63,11 +63,11 @@ function createWindow(): void {
|
|||||||
});
|
});
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'electron/update-connection-sigature':
|
case 'electron/update-connection-sigature':
|
||||||
updateConnectionOption(data);
|
updateConnectionOption(data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
OpenMCPService.routeMessage(command, data, webview);
|
OpenMCPService.routeMessage(command, data, webview);
|
||||||
break;
|
break;
|
||||||
@ -94,4 +94,4 @@ app.whenReady().then(() => {
|
|||||||
|
|
||||||
app.on('window-all-closed', function () {
|
app.on('window-all-closed', function () {
|
||||||
if (process.platform !== 'darwin') app.quit()
|
if (process.platform !== 'darwin') app.quit()
|
||||||
})
|
})
|
||||||
|
0
turbo.json
Normal file
0
turbo.json
Normal file
Loading…
x
Reference in New Issue
Block a user