memorix 1.9.12 → 1.10.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.
- package/CHANGELOG.md +31 -1
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/cli/index.js +720 -142
- package/dist/index.d.ts +46 -0
- package/dist/index.js +426 -67
- package/dist/maintenance-runner.js +199 -5
- package/dist/media-audio-runner.js +199 -5
- package/dist/media-video-runner.js +199 -5
- package/dist/memcode/index.js +124 -8
- package/dist/memcode-runtime/CHANGELOG.md +31 -1
- package/dist/sdk.js +425 -66
- package/dist/vector-backfill-runner.js +199 -5
- package/docs/1.2.0-EVALUATION-HARNESS.md +106 -0
- package/docs/1.3-MEMORY-ARCHITECTURE.md +31 -0
- package/docs/API_REFERENCE.md +19 -0
- package/docs/CONFIGURATION.md +25 -0
- package/docs/DEVELOPMENT.md +17 -3
- package/docs/INTEGRATIONS.md +25 -0
- package/docs/PERFORMANCE.md +21 -6
- package/docs/README.md +4 -4
- package/docs/ROADMAP-1.9.12-2.0.md +99 -7
- package/package.json +3 -1
- 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/commands/agent-integrations.ts +164 -7
- package/src/cli/commands/init.ts +6 -2
- package/src/cli/commands/memory.ts +1 -1
- package/src/cli/commands/serve-http.ts +30 -1
- package/src/cli/commands/setup.ts +5 -21
- package/src/cli/tui/ConfigureView.tsx +2 -0
- package/src/codegraph/auto-context.ts +22 -0
- package/src/codegraph/context-pack.ts +19 -0
- package/src/compact/engine.ts +54 -2
- package/src/config/dotenv-loader.ts +1 -0
- package/src/config/resolved-config.ts +5 -2
- package/src/config/yaml-loader.ts +2 -2
- package/src/dashboard/server.ts +3 -0
- package/src/evaluation/context-task-matrix.ts +247 -0
- package/src/evaluation/context-task-runner.ts +175 -0
- package/src/integrations/registry.ts +191 -4
- package/src/knowledge/context-assembly.ts +46 -2
- package/src/knowledge/context-receipt.ts +32 -0
- package/src/knowledge/workset.ts +43 -3
- package/src/llm/provider.ts +2 -1
- package/src/multimodal/image-loader.ts +2 -2
- package/src/search/derived-view-receipt.ts +22 -0
- package/src/server/request-context.ts +96 -0
- package/src/server.ts +16 -4
- package/src/store/orama-store.ts +116 -0
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,37 @@ import { Entity, Relation, KnowledgeGraph } from './types.js';
|
|
|
7
7
|
* product facts, intentionally separate from any MCP transport session ID.
|
|
8
8
|
*/
|
|
9
9
|
type ProjectBindingSource = 'startup-cwd' | 'mcp-roots' | 'explicit-project-root';
|
|
10
|
+
type ProjectBindingTransport = 'unknown' | 'stdio' | 'legacy-http' | 'stateless-http' | 'dashboard';
|
|
11
|
+
interface ProjectBindingHandle {
|
|
12
|
+
handleId: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
lastUsedAt: string;
|
|
15
|
+
expiresAt?: string;
|
|
16
|
+
}
|
|
17
|
+
interface ProjectBindingGitRemoteReceipt {
|
|
18
|
+
state: 'verified' | 'unavailable';
|
|
19
|
+
hash?: string;
|
|
20
|
+
host?: string;
|
|
21
|
+
}
|
|
22
|
+
interface ProjectBindingHandleReceipt {
|
|
23
|
+
state: 'active' | 'expired' | 'absent';
|
|
24
|
+
idHash?: string;
|
|
25
|
+
createdAt?: string;
|
|
26
|
+
lastUsedAt?: string;
|
|
27
|
+
expiresAt?: string;
|
|
28
|
+
}
|
|
29
|
+
interface ProjectBindingReceipt {
|
|
30
|
+
version: '1';
|
|
31
|
+
state: 'resolved' | 'unresolved';
|
|
32
|
+
source: ProjectBindingSource;
|
|
33
|
+
explicit: boolean;
|
|
34
|
+
projectId?: string;
|
|
35
|
+
projectRootHash: string;
|
|
36
|
+
dataDirHash?: string;
|
|
37
|
+
gitRemote: ProjectBindingGitRemoteReceipt;
|
|
38
|
+
handle: ProjectBindingHandleReceipt;
|
|
39
|
+
transport: ProjectBindingTransport;
|
|
40
|
+
}
|
|
10
41
|
interface ProjectBindingSnapshot {
|
|
11
42
|
projectRoot: string;
|
|
12
43
|
source: ProjectBindingSource;
|
|
@@ -26,6 +57,17 @@ declare class ProjectBindingController {
|
|
|
26
57
|
constructor(projectRoot: string);
|
|
27
58
|
snapshot(): ProjectBindingSnapshot;
|
|
28
59
|
requestContext(actorId?: string): MemorixRequestContext;
|
|
60
|
+
/**
|
|
61
|
+
* Return binding diagnostics without exposing local paths or transport IDs.
|
|
62
|
+
* The hashes let operators compare two surfaces while keeping the receipt
|
|
63
|
+
* safe to pass through MCP, logs, and agent handoffs.
|
|
64
|
+
*/
|
|
65
|
+
receipt(options?: {
|
|
66
|
+
dataDir?: string;
|
|
67
|
+
transport?: ProjectBindingTransport;
|
|
68
|
+
gitRemote?: string;
|
|
69
|
+
handle?: ProjectBindingHandle;
|
|
70
|
+
}): ProjectBindingReceipt;
|
|
29
71
|
isExplicit(): boolean;
|
|
30
72
|
/** Roots are advisory and may never overwrite an explicit user binding. */
|
|
31
73
|
bindFromRoots(projectRoot: string): boolean;
|
|
@@ -504,6 +546,10 @@ interface CreateMemorixServerOptions {
|
|
|
504
546
|
* legacy session adapter today; no project operation reads session headers.
|
|
505
547
|
*/
|
|
506
548
|
projectBinding?: ProjectBindingController;
|
|
549
|
+
/** Transport label used only in the privacy-safe binding receipt. */
|
|
550
|
+
bindingTransport?: ProjectBindingTransport;
|
|
551
|
+
/** Active stateless project handle metadata used only for diagnostics. */
|
|
552
|
+
bindingHandle?: ProjectBindingHandle;
|
|
507
553
|
}
|
|
508
554
|
declare function createMemorixServer(cwd?: string, existingServer?: McpServer, sharedTeam?: SharedTeamStore, options?: CreateMemorixServerOptions): Promise<{
|
|
509
555
|
server: McpServer;
|