@nexiq/cli 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/eslint.config.js DELETED
@@ -1,33 +0,0 @@
1
- import js from "@eslint/js";
2
- import globals from "globals";
3
- import tseslint from "typescript-eslint";
4
- import { defineConfig, globalIgnores } from "eslint/config";
5
-
6
- export default defineConfig([
7
- globalIgnores(["dist", "coverage"]),
8
- {
9
- extends: [js.configs.recommended, ...tseslint.configs.recommended],
10
- files: ["**/*.{ts,tsx}"],
11
- languageOptions: {
12
- ecmaVersion: 2020,
13
- globals: globals.node,
14
- parserOptions: {
15
- projectService: true,
16
- tsconfigRootDir: import.meta.dirname,
17
- },
18
- },
19
- rules: {
20
- "@typescript-eslint/no-unused-vars": [
21
- "error",
22
- {
23
- argsIgnorePattern: "^_",
24
- varsIgnorePattern: "^_",
25
- caughtErrorsIgnorePattern: "^_",
26
- },
27
- ],
28
- "@typescript-eslint/switch-exhaustiveness-check": "error",
29
- "no-debugger": "warn",
30
- "@typescript-eslint/no-explicit-any": "error",
31
- },
32
- },
33
- ]);
package/src/index.ts DELETED
@@ -1,32 +0,0 @@
1
- import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
2
- import { ProjectManager } from "./projectManager.js";
3
- import { BackendServer } from "./server.js";
4
-
5
- export { ProjectManager, BackendServer };
6
-
7
- // If this file is run directly (e.g., pnpm start)
8
- if (import.meta.url === `file://${process.argv[1]}`) {
9
- const projectManager = new ProjectManager();
10
- const server = new BackendServer(projectManager);
11
-
12
- const main = async () => {
13
- const transport = new StdioServerTransport();
14
- server.startWebSocketServer();
15
- await server.startMcpServer(transport);
16
- };
17
-
18
- main().catch((error: unknown) => {
19
- console.error("Fatal error in main():", error);
20
- process.exit(1);
21
- });
22
-
23
- process.on("SIGINT", async () => {
24
- await projectManager.closeAll();
25
- process.exit(0);
26
- });
27
-
28
- process.on("SIGTERM", async () => {
29
- await projectManager.closeAll();
30
- process.exit(0);
31
- });
32
- }