@frontmcp/plugin-codecall 1.8.7 → 1.9.1-rc.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/plugin-codecall",
3
- "version": "1.8.7",
3
+ "version": "1.9.1-rc.1",
4
4
  "description": "CodeCall plugin for FrontMCP - AgentScript-based meta-tools for orchestrating MCP tools",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "license": "Apache-2.0",
@@ -48,16 +48,16 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@enclave-vm/ast": "^2.15.3",
52
- "@enclave-vm/core": "^2.15.3",
53
- "@frontmcp/protocol": "1.8.7",
54
- "@frontmcp/sdk": "1.8.7",
51
+ "@enclave-vm/ast": "^2.16.0",
52
+ "@enclave-vm/core": "^2.16.0",
53
+ "@frontmcp/protocol": "1.9.1-rc.1",
54
+ "@frontmcp/sdk": "1.9.1-rc.1",
55
55
  "acorn": "^8.15.0",
56
56
  "vectoriadb": "^2.3.2"
57
57
  },
58
58
  "peerDependencies": {
59
- "@frontmcp/lazy-zod": "1.8.7",
60
- "@frontmcp/plugin-cache": "1.8.7"
59
+ "@frontmcp/lazy-zod": "1.9.1-rc.1",
60
+ "@frontmcp/plugin-cache": "1.9.1-rc.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "reflect-metadata": "^0.2.2"
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The call context CodeCall passes to `tools:call-tool`, marked as CodeCall's own dispatch. The mark
3
+ * is not enumerable, so it never shows up when the context is logged or serialized.
4
+ */
5
+ export declare function asCodeCallDispatch<T extends object>(ctx: T): T;
6
+ /**
7
+ * Whether a `tools:call-tool` run was dispatched in process rather than asked for by a client:
8
+ * by CodeCall, by the SDK's trusted in-process dispatch (`this.callTool()` from a tool, agent or
9
+ * job, which sets `internalCall`), or from inside a running tool. A client's own `tools/call`
10
+ * (MCP, a widget, an in-page agent, `DirectMcpServer.callTool()`) is none of these.
11
+ */
12
+ export declare function isInProcessDispatch(ctx: unknown): boolean;
13
+ //# sourceMappingURL=codecall-dispatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codecall-dispatch.d.ts","sourceRoot":"","sources":["../../src/security/codecall-dispatch.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAKzD"}
@@ -1,3 +1,4 @@
1
+ export * from './codecall-dispatch';
1
2
  export * from './codecall-tool-policy';
2
3
  export * from './self-reference-guard';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":"AAEA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"execute.tool.d.ts","sourceRoot":"","sources":["../../src/tools/execute.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,WAAW,EAAkB,MAAM,eAAe,CAAC;AAwBlF,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAyC1B,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAIjB,OAAO,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CA4VvE"}
1
+ {"version":3,"file":"execute.tool.d.ts","sourceRoot":"","sources":["../../src/tools/execute.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,WAAW,EAAkB,MAAM,eAAe,CAAC;AAyBlF,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAyC1B,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAIjB,OAAO,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CA6VvE"}
@@ -1,5 +1,5 @@
1
1
  import { ToolContext } from '@frontmcp/sdk';
2
- import { InvokeToolInput, InvokeToolOutput } from './invoke.schema';
2
+ import { type InvokeToolInput, type InvokeToolOutput } from './invoke.schema';
3
3
  /**
4
4
  * InvokeTool allows direct tool invocation without running JavaScript code.
5
5
  * Returns the same CallToolResult format as a standard MCP tool call.
@@ -1 +1 @@
1
- {"version":3,"file":"invoke.tool.d.ts","sourceRoot":"","sources":["../../src/tools/invoke.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAEL,eAAe,EAEf,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AAYzB;;;;;;;;;GASG;AAeH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IAC3C,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CA+DjE"}
1
+ {"version":3,"file":"invoke.tool.d.ts","sourceRoot":"","sources":["../../src/tools/invoke.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AAYzB;;;;;;;;;GASG;AAeH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IAC3C,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAgEjE"}
@@ -1,5 +1,5 @@
1
1
  import { ToolContext } from '@frontmcp/sdk';
2
- import { SearchToolInput, SearchToolOutput } from './search.schema';
2
+ import { type SearchToolInput, type SearchToolOutput } from './search.schema';
3
3
  export default class SearchTool extends ToolContext {
4
4
  execute(input: SearchToolInput): Promise<SearchToolOutput>;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"search.tool.d.ts","sourceRoot":"","sources":["../../src/tools/search.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,WAAW,EAAE,MAAM,eAAe,CAAC;AAIlE,OAAO,EAEL,eAAe,EAEf,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AA6BzB,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IAC3C,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAuGjE"}
1
+ {"version":3,"file":"search.tool.d.ts","sourceRoot":"","sources":["../../src/tools/search.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,WAAW,EAAE,MAAM,eAAe,CAAC;AAIlE,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,iBAAiB,CAAC;AA6BzB,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IAC3C,OAAO,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAuGjE"}