@devframes/agentic 0.10.0 → 1.0.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.
@@ -161,12 +161,7 @@ async function probePort(port, timeoutMs) {
161
161
  };
162
162
  }
163
163
  async function listInstanceTools(url, token) {
164
- return withInstanceClient(url, token, async (client) => {
165
- return (await client.listTools()).tools.map((tool) => ({
166
- name: tool.name,
167
- description: tool.description
168
- }));
169
- });
164
+ return withInstanceClient(url, token, async (client) => (await client.listTools()).tools);
170
165
  }
171
166
  async function call(options, args) {
172
167
  if (typeof args.port !== "number" || typeof args.tool !== "string") throw diagnostics.DF0049();
@@ -174,7 +169,7 @@ async function call(options, args) {
174
169
  instancesDir: options.instancesDir,
175
170
  timeoutMs: options.timeoutMs
176
171
  });
177
- const record = live.find((r) => r.port === args.port) ?? await probePort(args.port, options.timeoutMs);
172
+ const record = live.find((record) => record.port === args.port && record.mcp) ?? await probePort(args.port, options.timeoutMs);
178
173
  if (!record) throw diagnostics.DF0050({ port: args.port });
179
174
  if (!record.mcp) throw diagnostics.DF0051({ port: args.port });
180
175
  return withInstanceClient(`${record.origin}${record.mcp.path}`, resolveAuthToken(options.authToken, record), async (client) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/agentic",
3
3
  "type": "module",
4
- "version": "0.10.0",
4
+ "version": "1.0.0",
5
5
  "description": "Agent-surface implementation for devframe: installing it next to devframe enables the MCP adapter (devframe/adapters/mcp) and the devframe connect gateway.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "peerDependencies": {
33
- "devframe": "0.10.0"
33
+ "devframe": "1.0.0"
34
34
  },
35
35
  "dependencies": {
36
36
  "@modelcontextprotocol/client": "^2.0.0",
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@standard-schema/spec": "^1.1.0",
43
43
  "@types/node": "^26.5.1",
44
- "devframe": "0.10.0",
44
+ "devframe": "1.0.0",
45
45
  "tsdown": "^0.23.0",
46
46
  "valibot": "^1.5.0"
47
47
  },