openbot 0.3.0 → 0.3.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.
@@ -27,6 +27,7 @@ import { AI_SDK_SYSTEM_PROMPT } from '../plugins/ai-sdk/system-prompt.js';
27
27
  import { listBuiltInPlugins, parsePluginModule } from '../registry/plugins.js';
28
28
  import { OpenBotEvent, OpenBotState } from '../app/types.js';
29
29
  import { processService } from '../harness/process.js';
30
+ import { memoryService } from './memory.js';
30
31
  import { pathToFileURL } from 'node:url';
31
32
 
32
33
  const resolveBaseDir = () => {
@@ -93,6 +94,7 @@ const SYSTEM_DEFAULT_PLUGINS: PluginRef[] = [
93
94
  { id: 'delegation' },
94
95
  // { id: 'ui' },
95
96
  { id: 'approval' },
97
+ { id: 'memory' },
96
98
  ];
97
99
 
98
100
  function getSystemAgentDetails(overrides?: Partial<AgentDetails>): AgentDetails {
@@ -1220,6 +1222,11 @@ export const storageService = {
1220
1222
  return fs.readFile(targetFile, 'utf-8');
1221
1223
  },
1222
1224
 
1225
+ appendMemory: memoryService.appendMemory,
1226
+ listMemories: memoryService.listMemories,
1227
+ deleteMemory: memoryService.deleteMemory,
1228
+ updateMemory: memoryService.updateMemory,
1229
+
1223
1230
  /**
1224
1231
  * Hydrates the full OpenBot state from disk/storage before a run.
1225
1232
  */