agentgui 1.0.121 → 1.0.123

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/database.js CHANGED
@@ -249,17 +249,17 @@ function generateId(prefix) {
249
249
  }
250
250
 
251
251
  export const queries = {
252
- createConversation(agentId, title = null, workingDirectory = null) {
252
+ createConversation(agentType, title = null, workingDirectory = null) {
253
253
  const id = generateId('conv');
254
254
  const now = Date.now();
255
255
  const stmt = db.prepare(
256
- `INSERT INTO conversations (id, agentId, title, created_at, updated_at, status, workingDirectory) VALUES (?, ?, ?, ?, ?, ?, ?)`
256
+ `INSERT INTO conversations (id, agentType, title, created_at, updated_at, status, workingDirectory) VALUES (?, ?, ?, ?, ?, ?, ?)`
257
257
  );
258
- stmt.run(id, agentId, title, now, now, 'active', workingDirectory);
258
+ stmt.run(id, agentType, title, now, now, 'active', workingDirectory);
259
259
 
260
260
  return {
261
261
  id,
262
- agentId,
262
+ agentType,
263
263
  title,
264
264
  workingDirectory,
265
265
  created_at: now,