@cotal-ai/connector-core 0.18.0 → 0.19.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.
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +12 -2
- package/dist/agent.js.map +1 -1
- package/dist/agui-holder.d.ts +89 -0
- package/dist/agui-holder.d.ts.map +1 -0
- package/dist/agui-holder.js +135 -0
- package/dist/agui-holder.js.map +1 -0
- package/dist/agui-render.d.ts +100 -0
- package/dist/agui-render.d.ts.map +1 -0
- package/dist/agui-render.js +283 -0
- package/dist/agui-render.js.map +1 -0
- package/dist/agui-wal-path.d.ts +103 -0
- package/dist/agui-wal-path.d.ts.map +1 -0
- package/dist/agui-wal-path.js +324 -0
- package/dist/agui-wal-path.js.map +1 -0
- package/dist/agui.d.ts +727 -0
- package/dist/agui.d.ts.map +1 -0
- package/dist/agui.js +1114 -0
- package/dist/agui.js.map +1 -0
- package/dist/docs-bundle.generated.d.ts.map +1 -1
- package/dist/docs-bundle.generated.js +16 -9
- package/dist/docs-bundle.generated.js.map +1 -1
- package/dist/durable-source.d.ts +127 -0
- package/dist/durable-source.d.ts.map +1 -0
- package/dist/durable-source.js +219 -0
- package/dist/durable-source.js.map +1 -0
- package/dist/event-wal.d.ts +265 -0
- package/dist/event-wal.d.ts.map +1 -0
- package/dist/event-wal.js +698 -0
- package/dist/event-wal.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/launch.d.ts +78 -2
- package/dist/launch.d.ts.map +1 -1
- package/dist/launch.js +120 -0
- package/dist/launch.js.map +1 -1
- package/dist/tool-specs.d.ts +40 -2
- package/dist/tool-specs.d.ts.map +1 -1
- package/dist/tool-specs.js +51 -1
- package/dist/tool-specs.js.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +5 -6
- package/dist/tools.js.map +1 -1
- package/package.json +8 -2
package/dist/tools.js
CHANGED
|
@@ -7,13 +7,12 @@ function toContent(r) {
|
|
|
7
7
|
* channel_info, join, leave, spawn, feedback) on an MCP server. `source` names the
|
|
8
8
|
* hosting connector for outgoing feedback. */
|
|
9
9
|
export function registerCotalTools(server, agent, config, source) {
|
|
10
|
+
// No schemaless branch. Registering a tool WITHOUT an `inputSchema` is what let a no-argument
|
|
11
|
+
// tool accept `{owner, actor}` and drop it: the host has nothing to check against, so it forwards
|
|
12
|
+
// whatever arrived. Every spec now carries a closed object, empty ones included, and the host
|
|
13
|
+
// refuses the extras for us.
|
|
10
14
|
for (const spec of cotalToolSpecs(config, source)) {
|
|
11
|
-
|
|
12
|
-
server.registerTool(spec.name, { title: spec.title, description: spec.description, inputSchema: spec.schema }, async (args) => toContent(await spec.run(agent, config, args)));
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
server.registerTool(spec.name, { title: spec.title, description: spec.description }, async () => toContent(await spec.run(agent, config, {})));
|
|
16
|
-
}
|
|
15
|
+
server.registerTool(spec.name, { title: spec.title, description: spec.description, inputSchema: spec.schema }, async (args) => toContent(await spec.run(agent, config, args)));
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=tools.js.map
|
package/dist/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAIlE,SAAS,SAAS,CAAC,CAAa;IAC9B,MAAM,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1D,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,IAAa,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;AACvE,CAAC;AAED;;+CA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-core",
|
|
3
3
|
"description": "Shared MCP-bridge runtime for Cotal connectors: the mesh agent, cotal_* tools, and hook relay.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.19.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./dist/index.d.ts",
|
|
17
17
|
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./agui-render": {
|
|
20
|
+
"types": "./dist/agui-render.d.ts",
|
|
21
|
+
"import": "./dist/agui-render.js"
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
24
|
"dependencies": {
|
|
@@ -25,7 +29,9 @@
|
|
|
25
29
|
"@cotal-ai/core": ">=0.1.0"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
|
-
"@
|
|
32
|
+
"@ag-ui/core": "0.0.57",
|
|
33
|
+
"@cotal-ai/smoke-kit": "0.0.0",
|
|
34
|
+
"@cotal-ai/core": "0.19.0"
|
|
29
35
|
},
|
|
30
36
|
"files": [
|
|
31
37
|
"dist"
|