@vinkius-core/mcp-fusion 2.12.0 → 2.13.0

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 @@
1
+ {"version":3,"file":"SandboxGuard.js","sourceRoot":"","sources":["../../src/sandbox/SandboxGuard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAWH,4DAA4D;AAE5D;;;;GAIG;AACH,MAAM,mBAAmB,GAAuD;IAC5E,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,mDAAmD,EAAE;IACzF,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,qDAAqD,EAAE;IACzF,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,4CAA4C,EAAE;CACtF,CAAC;AAEF;;;GAGG;AACH,MAAM,iBAAiB,GAA0B;IAC7C,kBAAkB,EAAe,aAAa;IAC9C,wBAAwB,EAAQ,WAAW;IAC3C,mBAAmB,EAAc,sBAAsB;IACvD,yBAAyB,EAAQ,2BAA2B;IAC5D,0BAA0B,EAAO,mBAAmB;IACpD,2BAA2B,EAAM,4BAA4B;IAC7D,gCAAgC,EAAE,iBAAiB;CACtD,CAAC;AAEF,4DAA4D;AAE5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC5C,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,kCAAkC,EAAE,CAAC;IACxE,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAE5B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,kCAAkC,EAAE,CAAC;IACxE,CAAC;IAED,yCAAyC;IACzC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACrB,OAAO;YACH,EAAE,EAAE,KAAK;YACT,SAAS,EACL,wDAAwD;gBACxD,mDAAmD;SAC1D,CAAC;IACN,CAAC;IAED,2DAA2D;IAC3D,KAAK,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,mBAAmB,EAAE,CAAC;QACpD,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;QAC5C,CAAC;IACL,CAAC;IAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;AACxB,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Sandbox — Barrel Export
3
+ *
4
+ * Zero-Trust Computation Delegation via isolated-vm.
5
+ * Allows LLMs to send JavaScript functions to be executed
6
+ * in a sealed V8 isolate on the client's machine.
7
+ *
8
+ * The `isolated-vm` package is an optional peerDependency.
9
+ * The framework works fully without it — sandbox is a power add-on.
10
+ */
11
+ export { SandboxEngine } from './SandboxEngine.js';
12
+ export type { SandboxConfig, SandboxResult, SandboxErrorCode } from './SandboxEngine.js';
13
+ export { validateSandboxCode } from './SandboxGuard.js';
14
+ export type { GuardResult } from './SandboxGuard.js';
15
+ /**
16
+ * System instruction auto-injected into the tool description
17
+ * when `.sandboxed()` is used. Teaches the LLM how to send
18
+ * JavaScript functions for server-side computation delegation.
19
+ *
20
+ * @internal
21
+ */
22
+ export declare const SANDBOX_SYSTEM_INSTRUCTION: string;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sandbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,QAKiC,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Sandbox — Barrel Export
3
+ *
4
+ * Zero-Trust Computation Delegation via isolated-vm.
5
+ * Allows LLMs to send JavaScript functions to be executed
6
+ * in a sealed V8 isolate on the client's machine.
7
+ *
8
+ * The `isolated-vm` package is an optional peerDependency.
9
+ * The framework works fully without it — sandbox is a power add-on.
10
+ */
11
+ export { SandboxEngine } from './SandboxEngine.js';
12
+ export { validateSandboxCode } from './SandboxGuard.js';
13
+ // ── HATEOAS Auto-Prompting Instruction ───────────────────
14
+ /**
15
+ * System instruction auto-injected into the tool description
16
+ * when `.sandboxed()` is used. Teaches the LLM how to send
17
+ * JavaScript functions for server-side computation delegation.
18
+ *
19
+ * @internal
20
+ */
21
+ export const SANDBOX_SYSTEM_INSTRUCTION = '\n\n[SYSTEM: This tool supports Zero-Trust Compute. ' +
22
+ 'You MUST pass a valid, pure, synchronous JavaScript arrow function as a string ' +
23
+ 'to filter/map the data on the server before receiving it. ' +
24
+ 'E.g.: (data) => data.filter(d => d.value > 10). ' +
25
+ 'Do not use markdown formatting, async/await, or external imports.]';
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sandbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGxD,4DAA4D;AAE5D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GACnC,sDAAsD;IACtD,iFAAiF;IACjF,4DAA4D;IAC5D,kDAAkD;IAClD,oEAAoE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinkius-core/mcp-fusion",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "MVA (Model-View-Agent) framework for the Model Context Protocol. Structured perception packages with Presenters, cognitive guardrails, self-healing errors, action consolidation, and tRPC-style type safety — so AI agents perceive and act on your data deterministically.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -52,6 +52,10 @@
52
52
  "./introspection": {
53
53
  "import": "./dist/introspection/index.js",
54
54
  "types": "./dist/introspection/index.d.ts"
55
+ },
56
+ "./sandbox": {
57
+ "import": "./dist/sandbox/index.js",
58
+ "types": "./dist/sandbox/index.d.ts"
55
59
  }
56
60
  },
57
61
  "scripts": {
@@ -108,11 +112,15 @@
108
112
  },
109
113
  "peerDependencies": {
110
114
  "@modelcontextprotocol/sdk": "^1.12.1",
111
- "zod": "^3.25.1 || ^4.0.0"
115
+ "zod": "^3.25.1 || ^4.0.0",
116
+ "isolated-vm": "^5.0.0"
112
117
  },
113
118
  "peerDependenciesMeta": {
114
119
  "zod": {
115
120
  "optional": true
121
+ },
122
+ "isolated-vm": {
123
+ "optional": true
116
124
  }
117
125
  },
118
126
  "license": "Apache-2.0"