@justmpm/comunicate 0.1.2 → 0.1.3

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.
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Wrapper para o comando comunicate
4
+ * - Sem argumentos: inicia o servidor MCP
5
+ * - Com argumentos: executa CLI
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=bin-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin-wrapper.d.ts","sourceRoot":"","sources":["../src/bin-wrapper.ts"],"names":[],"mappings":";AACA;;;;GAIG"}
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Wrapper para o comando comunicate
4
+ * - Sem argumentos: inicia o servidor MCP
5
+ * - Com argumentos: executa CLI
6
+ */
7
+ import { spawn } from 'child_process';
8
+ import { fileURLToPath } from 'url';
9
+ import { resolve, dirname } from 'path';
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = dirname(__filename);
12
+ const args = process.argv.slice(2);
13
+ // Se não houver argumentos, inicia o servidor MCP
14
+ // Se houver argumentos, executa o CLI
15
+ const script = args.length === 0 ? 'mcp-server.js' : 'cli.js';
16
+ const scriptPath = resolve(__dirname, script);
17
+ const child = spawn('node', [scriptPath, ...args], {
18
+ stdio: 'inherit',
19
+ shell: true
20
+ });
21
+ child.on('exit', (code) => {
22
+ process.exit(code ?? 0);
23
+ });
24
+ //# sourceMappingURL=bin-wrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin-wrapper.js","sourceRoot":"","sources":["../src/bin-wrapper.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAExC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEnC,kDAAkD;AAClD,sCAAsC;AACtC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC9D,MAAM,UAAU,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAE9C,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,EAAE;IACjD,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,IAAI;CACZ,CAAC,CAAC;AAEH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@justmpm/comunicate",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Sistema de Comunicação Entre Agentes - @justmpm/comunicate File-Based para Windows",
5
5
  "type": "module",
6
6
  "main": "dist/mcp-server.js",
7
7
  "bin": {
8
- "comunicate": "dist/mcp-server.js"
8
+ "comunicate": "dist/bin-wrapper.js"
9
9
  },
10
10
  "files": [
11
11
  "dist/",