@rubytech/taskmaster 1.0.87 → 1.0.88
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/build-info.json +3 -3
- package/dist/memory/manager.js +0 -13
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/memory/manager.js
CHANGED
|
@@ -283,25 +283,12 @@ export class MemoryIndexManager {
|
|
|
283
283
|
sessionWarm = new Set();
|
|
284
284
|
syncing = null;
|
|
285
285
|
syncProgress = null;
|
|
286
|
-
/**
|
|
287
|
-
* Ensure standard memory directory structure exists.
|
|
288
|
-
* Creates: memory/public, memory/shared, memory/admin, memory/users
|
|
289
|
-
*/
|
|
290
|
-
static async ensureMemoryStructure(workspaceDir) {
|
|
291
|
-
const memoryDir = path.join(workspaceDir, "memory");
|
|
292
|
-
const standardDirs = ["public", "shared", "admin", "users"];
|
|
293
|
-
for (const dir of standardDirs) {
|
|
294
|
-
await ensureDir(path.join(memoryDir, dir));
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
286
|
static async get(params) {
|
|
298
287
|
const { cfg, agentId } = params;
|
|
299
288
|
const settings = resolveMemorySearchConfig(cfg, agentId);
|
|
300
289
|
if (!settings)
|
|
301
290
|
return null;
|
|
302
291
|
const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId);
|
|
303
|
-
// Ensure standard memory folder structure exists
|
|
304
|
-
await MemoryIndexManager.ensureMemoryStructure(workspaceDir);
|
|
305
292
|
const key = `${agentId}:${workspaceDir}:${JSON.stringify(settings)}`;
|
|
306
293
|
const existing = INDEX_CACHE.get(key);
|
|
307
294
|
if (existing)
|