@agi-cli/server 0.1.75 → 0.1.76

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": "@agi-cli/server",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "HTTP API server for AGI CLI",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,8 +29,8 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@agi-cli/sdk": "0.1.75",
33
- "@agi-cli/database": "0.1.75",
32
+ "@agi-cli/sdk": "0.1.76",
33
+ "@agi-cli/database": "0.1.76",
34
34
  "drizzle-orm": "^0.44.5",
35
35
  "hono": "^4.9.9",
36
36
  "zod": "^4.1.8"
@@ -195,6 +195,11 @@ export function getOpenAPISpec() {
195
195
  },
196
196
  provider: { $ref: '#/components/schemas/Provider' },
197
197
  model: { type: 'string' },
198
+ userContext: {
199
+ type: 'string',
200
+ description:
201
+ 'Optional user-provided context to include in the system prompt.',
202
+ },
198
203
  },
199
204
  },
200
205
  },
@@ -40,7 +40,7 @@ export async function dispatchAssistantMessage(
40
40
 
41
41
  // DEBUG: Log userContext in dispatch
42
42
  debugLog(
43
- `[MESSAGE_SERVICE] dispatchAssistantMessage called with userContext: ${userContext ? userContext.substring(0, 50) + '...' : 'NONE'}`,
43
+ `[MESSAGE_SERVICE] dispatchAssistantMessage called with userContext: ${userContext ? `${userContext.substring(0, 50)}...` : 'NONE'}`,
44
44
  );
45
45
 
46
46
  const sessionId = session.id;
@@ -108,7 +108,7 @@ export async function dispatchAssistantMessage(
108
108
 
109
109
  // DEBUG: Log before enqueue
110
110
  debugLog(
111
- `[MESSAGE_SERVICE] Enqueuing assistant run with userContext: ${userContext ? userContext.substring(0, 50) + '...' : 'NONE'}`,
111
+ `[MESSAGE_SERVICE] Enqueuing assistant run with userContext: ${userContext ? `${userContext.substring(0, 50)}...` : 'NONE'}`,
112
112
  );
113
113
 
114
114
  enqueueAssistantRun({