@agent-smith/server 0.1.0 → 0.1.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/dist/callbacks.js CHANGED
@@ -163,7 +163,7 @@ function buildCallbacks(msg, ctx, confirmToolCalls) {
163
163
  //console.log("TOOL CALL END", toolResData);
164
164
  ctx.websocket.send(JSON.stringify(rsm));
165
165
  };
166
- msg.options.confirmToolUsage = async (tc, from) => {
166
+ msg.options.onConfirmToolUsage = async (tc, from) => {
167
167
  if (!tc?.id) {
168
168
  tc.id = crypto.randomUUID();
169
169
  }
@@ -106,7 +106,8 @@ function runserver(routes, staticDir) {
106
106
  ctx.websocket.send(JSON.stringify(rsm));
107
107
  buf = "";
108
108
  }, sendTokensInterval);*/
109
- //console.log("AGENT SRV EXEC", msg);
109
+ //console.log("AGENT SRV EXEC H", msg.options.history);
110
+ //console.log("AGENT SRV EXEC P", msg.payload);
110
111
  await executeAgent(msg.command, msg.payload, msg.options);
111
112
  //setTimeout(() => {
112
113
  //clearInterval(it);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-smith/server",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Agent Smith Nodejs server",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "type": "module",
12
12
  "dependencies": {
13
- "@agent-smith/core": "^0.0.2",
13
+ "@agent-smith/core": "^0.0.3",
14
14
  "@koa/cors": "^5.0.0",
15
15
  "@koa/router": "^15.6.0",
16
16
  "ansi-colors": "^4.1.3",
@@ -22,7 +22,7 @@
22
22
  "yaml": "^2.9.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@agent-smith/types": "^0.0.5",
25
+ "@agent-smith/types": "^0.0.6",
26
26
  "@types/better-sqlite3": "^7.6.13",
27
27
  "@types/koa": "^3.0.3",
28
28
  "@types/koa__cors": "^5.0.1",
@@ -30,7 +30,7 @@
30
30
  "@types/koa-route": "^3.2.9",
31
31
  "@types/koa-static": "^4.0.4",
32
32
  "@types/koa-websocket": "^5.0.11",
33
- "@types/node": "^25.9.2",
33
+ "@types/node": "^25.9.3",
34
34
  "ts-node": "^10.9.2",
35
35
  "tslib": "2.8.1",
36
36
  "typescript": "^6.0.3"