@christianmaf80/agentic-workflow 1.32.0-beta.8 → 1.32.0-beta.9
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/bin/cli.js +2 -1
- package/dist/cli/commands/mcp.js +9 -1
- package/dist/cli/commands/mcp.js.map +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -57,7 +57,8 @@ program
|
|
|
57
57
|
program
|
|
58
58
|
.command('mcp')
|
|
59
59
|
.description('Start MCP runtime server (stdio)')
|
|
60
|
-
.
|
|
60
|
+
.option('--workspace <path>', 'Workspace root (absolute path)')
|
|
61
|
+
.action((options) => mcpCommand(options));
|
|
61
62
|
|
|
62
63
|
program
|
|
63
64
|
.command('register-mcp')
|
package/dist/cli/commands/mcp.js
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
1
2
|
import { startMcpServer } from '../../mcp/server.js';
|
|
2
3
|
import { checkMcpRegistration } from './register-mcp.js';
|
|
3
4
|
import { Logger } from '../../infrastructure/logger/index.js';
|
|
4
|
-
export async function mcpCommand() {
|
|
5
|
+
export async function mcpCommand(options = {}) {
|
|
5
6
|
const registration = await checkMcpRegistration();
|
|
6
7
|
if (!registration.antigravity && !registration.codex) {
|
|
7
8
|
Logger.warn('MCP', 'Server not registered in any MCP client. Run: agentic-workflow register-mcp');
|
|
8
9
|
}
|
|
10
|
+
const workspacePath = options.workspace ? path.resolve(options.workspace) : undefined;
|
|
11
|
+
if (workspacePath && !path.isAbsolute(workspacePath)) {
|
|
12
|
+
throw new Error('El workspace debe ser una ruta absoluta.');
|
|
13
|
+
}
|
|
14
|
+
if (workspacePath) {
|
|
15
|
+
process.env.AGENTIC_WORKSPACE = workspacePath;
|
|
16
|
+
}
|
|
9
17
|
await startMcpServer();
|
|
10
18
|
}
|
|
11
19
|
//# sourceMappingURL=mcp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../src/cli/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAE9D,MAAM,CAAC,KAAK,UAAU,UAAU;
|
|
1
|
+
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../src/cli/commands/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAE9D,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,UAAkC,EAAE;IACnE,MAAM,YAAY,GAAG,MAAM,oBAAoB,EAAE,CAAC;IAElD,IAAI,CAAC,YAAY,CAAC,WAAW,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;QACrD,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,6EAA6E,CAAC,CAAC;IACpG,CAAC;IAED,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACtF,IAAI,aAAa,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IACD,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,aAAa,CAAC;IAChD,CAAC;IAED,MAAM,cAAc,EAAE,CAAC;AACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christianmaf80/agentic-workflow",
|
|
3
|
-
"version": "1.32.0-beta.
|
|
3
|
+
"version": "1.32.0-beta.9",
|
|
4
4
|
"description": "Portable agentic workflow orchestration system with strict identity and gate discipline",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"displayName": "Agentic Workflow",
|