memorix 1.9.4 → 1.9.6
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/CHANGELOG.md +75 -1
- package/README.md +12 -6
- package/README.zh-CN.md +12 -6
- package/dist/cli/index.js +2533 -585
- package/dist/index.d.ts +15 -8
- package/dist/index.js +1201 -284
- package/dist/maintenance-runner.js +387 -216
- package/dist/media-audio-runner.js +300 -129
- package/dist/media-video-runner.js +300 -129
- package/dist/memcode-runtime/CHANGELOG.md +75 -1
- package/dist/sdk.d.ts +1 -0
- package/dist/sdk.js +1882 -998
- package/dist/types.d.ts +1 -1
- package/dist/vector-backfill-runner.js +300 -129
- package/docs/AGENT_OPERATOR_PLAYBOOK.md +47 -3
- package/docs/API_REFERENCE.md +39 -1
- package/docs/CONFIGURATION.md +58 -1
- package/docs/DEVELOPMENT.md +1 -1
- package/docs/DOCKER.md +23 -3
- package/docs/INTEGRATIONS.md +1 -1
- package/docs/KNOWN_ISSUES_AND_ROADMAP.md +61 -1
- package/docs/MULTI-DEVICE-SYNC-RESEARCH.md +4 -0
- package/docs/PERFORMANCE.md +46 -2
- package/docs/README.md +2 -1
- package/docs/SETUP.md +56 -1
- package/package.json +3 -2
- package/plugins/antigravity/memorix/plugin.json +1 -1
- package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
- package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
- package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/copilot/memorix/plugin.json +1 -1
- package/plugins/gemini/memorix/gemini-extension.json +1 -1
- package/plugins/hermes/memorix/plugin.yaml +1 -1
- package/plugins/omp/memorix/package.json +1 -1
- package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/pi/memorix/package.json +1 -1
- package/server.json +2 -2
- package/src/cli/capability-map.ts +1 -0
- package/src/cli/command-guide.ts +15 -3
- package/src/cli/commands/agent-integrations.ts +57 -0
- package/src/cli/commands/background.ts +11 -2
- package/src/cli/commands/context.ts +2 -0
- package/src/cli/commands/continuity.ts +155 -0
- package/src/cli/commands/init.ts +5 -2
- package/src/cli/commands/serve-http.ts +435 -84
- package/src/cli/commands/setup.ts +77 -10
- package/src/cli/commands/sync-store.ts +47 -12
- package/src/cli/commands/sync.ts +26 -0
- package/src/cli/index.ts +3 -1
- package/src/cli/tui/ConfigureView.tsx +2 -0
- package/src/codegraph/auto-context.ts +17 -0
- package/src/config/legacy-loader.ts +2 -2
- package/src/config/resolved-config.ts +8 -5
- package/src/config/yaml-loader.ts +20 -10
- package/src/dashboard/server.ts +10 -12
- package/src/embedding/api-provider.ts +4 -2
- package/src/embedding/fastembed-provider.ts +47 -14
- package/src/embedding/transformers-provider.ts +29 -7
- package/src/evaluation/memory-quality-gate.ts +90 -0
- package/src/hooks/official-skills.ts +2 -0
- package/src/integrations/registry.ts +1 -1
- package/src/knowledge/context-assembly.ts +1 -0
- package/src/knowledge/context-receipt.ts +15 -0
- package/src/knowledge/task-continuity.ts +413 -0
- package/src/knowledge/workset.ts +77 -0
- package/src/llm/provider.ts +2 -1
- package/src/memory/graph.ts +10 -8
- package/src/memory/session.ts +1 -1
- package/src/orchestrate/coordinator.ts +60 -0
- package/src/orchestrate/effect-ledger.ts +160 -0
- package/src/orchestrate/pipeline-trace.ts +40 -6
- package/src/runtime/maintenance-jobs.ts +12 -6
- package/src/sdk.ts +24 -0
- package/src/server/mcp-binding-store.ts +14 -3
- package/src/server/modern-mcp-bridge.ts +153 -27
- package/src/server/tool-profile.ts +3 -2
- package/src/server.ts +131 -7
- package/src/store/file-lock.ts +28 -3
- package/src/store/graph-store.ts +178 -46
- package/src/store/persistence.ts +14 -9
- package/src/store/sqlite-db.ts +150 -7
- package/src/store/sqlite-store.ts +32 -27
- package/src/sync/engine.ts +9 -7
- package/src/sync/namespace.ts +23 -0
- package/src/sync/policy.ts +19 -4
- package/src/sync/store-port.ts +43 -13
- package/src/sync/types.ts +2 -0
- package/src/team/team-store.ts +62 -27
- package/src/types.ts +1 -1
- package/src/workspace/mcp-adapters/grok.ts +32 -0
package/dist/index.d.ts
CHANGED
|
@@ -258,14 +258,16 @@ declare class TeamStore {
|
|
|
258
258
|
getAgentByInstance(projectId: string, agentType: string, instanceId: string): TeamAgentRow | undefined;
|
|
259
259
|
listAgents(projectId: string, filter?: {
|
|
260
260
|
status?: 'active' | 'inactive';
|
|
261
|
+
limit?: number;
|
|
261
262
|
}): TeamAgentRow[];
|
|
262
263
|
/** List agents across all projects (for global scope) */
|
|
263
|
-
listAllAgents(): TeamAgentRow[];
|
|
264
|
+
listAllAgents(limit?: number): TeamAgentRow[];
|
|
264
265
|
/** List locks across all projects (for global scope) */
|
|
265
|
-
listAllLocks(): TeamLockRow[];
|
|
266
|
+
listAllLocks(limit?: number): TeamLockRow[];
|
|
266
267
|
/** List tasks across all projects (for global scope) */
|
|
267
268
|
listAllTasks(filter?: {
|
|
268
269
|
available?: boolean;
|
|
270
|
+
limit?: number;
|
|
269
271
|
}): TeamTaskRow[];
|
|
270
272
|
heartbeat(agentId: string): boolean;
|
|
271
273
|
leaveAgent(agentId: string): boolean;
|
|
@@ -288,7 +290,7 @@ declare class TeamStore {
|
|
|
288
290
|
}): TeamMessageRow | {
|
|
289
291
|
error: string;
|
|
290
292
|
};
|
|
291
|
-
getInbox(projectId: string, agentId: string): TeamMessageRow[];
|
|
293
|
+
getInbox(projectId: string, agentId: string, limit?: number): TeamMessageRow[];
|
|
292
294
|
getUnreadCount(projectId: string, agentId: string): number;
|
|
293
295
|
markMessageRead(messageId: string): boolean;
|
|
294
296
|
markAllRead(projectId: string, agentId: string): number;
|
|
@@ -334,6 +336,7 @@ declare class TeamStore {
|
|
|
334
336
|
status?: string;
|
|
335
337
|
assignee?: string;
|
|
336
338
|
available?: boolean;
|
|
339
|
+
limit?: number;
|
|
337
340
|
}): TeamTaskRow[];
|
|
338
341
|
/**
|
|
339
342
|
* List available tasks for a specific agent, sorted by role affinity.
|
|
@@ -349,7 +352,7 @@ declare class TeamStore {
|
|
|
349
352
|
};
|
|
350
353
|
releaseLock(projectId: string, file: string, agentId: string): boolean;
|
|
351
354
|
getLockStatus(projectId: string, file: string): TeamLockRow | null;
|
|
352
|
-
listLocks(projectId: string, agentId?: string): TeamLockRow[];
|
|
355
|
+
listLocks(projectId: string, agentId?: string, limit?: number): TeamLockRow[];
|
|
353
356
|
releaseAllLocks(agentId: string): number;
|
|
354
357
|
cleanExpiredLocks(projectId: string): number;
|
|
355
358
|
private migrateFromJsonIfNeeded;
|
|
@@ -407,10 +410,12 @@ declare class KnowledgeGraphManager {
|
|
|
407
410
|
private entities;
|
|
408
411
|
private relations;
|
|
409
412
|
private projectDir;
|
|
413
|
+
private projectId;
|
|
414
|
+
private store;
|
|
410
415
|
private initialized;
|
|
411
416
|
/** Index: lowercase entity name → Entity for O(1) lookups */
|
|
412
417
|
private entityIndex;
|
|
413
|
-
constructor(projectDir: string);
|
|
418
|
+
constructor(projectDir: string, projectId?: string);
|
|
414
419
|
/** Rebuild the entity name index */
|
|
415
420
|
private rebuildIndex;
|
|
416
421
|
/** Load graph from SQLite on first access */
|
|
@@ -462,9 +467,9 @@ declare class KnowledgeGraphManager {
|
|
|
462
467
|
* We provide four profiles:
|
|
463
468
|
* - "micro" (stdio default): Agent-ready project context + bounded recovery/media controls — 9 tools.
|
|
464
469
|
* Suitable for normal MCP clients where every tool schema costs context tokens.
|
|
465
|
-
* - "lite": Core memory CRUD, sessions, reasoning, retention, backup —
|
|
470
|
+
* - "lite": Core memory CRUD, sessions, reasoning, continuity, retention, backup — 21 tools.
|
|
466
471
|
* Suitable for solo users who want the full memory surface without team tools.
|
|
467
|
-
* - "team" (HTTP default): lite + orchestration coordination tools, dashboard, and Knowledge Workspace —
|
|
472
|
+
* - "team" (HTTP default): lite + orchestration coordination tools, dashboard, and Knowledge Workspace — 29 tools.
|
|
468
473
|
* Suitable when an operator explicitly wants task/message/lock surfaces.
|
|
469
474
|
* - "full": Everything, including niche / advanced tools (consolidate, dedup,
|
|
470
475
|
* formation metrics, skills, rules/workspace sync, KG-official, image ingest).
|
|
@@ -505,7 +510,9 @@ declare function createMemorixServer(cwd?: string, existingServer?: McpServer, s
|
|
|
505
510
|
graphManager: KnowledgeGraphManager;
|
|
506
511
|
projectId: string;
|
|
507
512
|
deferredInit: () => Promise<void>;
|
|
508
|
-
|
|
513
|
+
activateProjectRuntime: () => Promise<void>;
|
|
514
|
+
switchProject: (newCwd: string, source?: ProjectBindingSource) => Promise<boolean>;
|
|
515
|
+
getProjectDataDir: () => string;
|
|
509
516
|
isExplicitlyBound: () => boolean;
|
|
510
517
|
getRequestContext: () => MemorixRequestContext;
|
|
511
518
|
handleTransportClose: () => void;
|