@remnic/core 1.0.1 → 1.0.2
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/README.md +47 -0
- package/dist/access-http.d.ts +1 -1
- package/dist/access-mcp.d.ts +1 -1
- package/dist/access-schema.d.ts +36 -36
- package/dist/access-service.d.ts +1 -1
- package/dist/bootstrap.d.ts +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/explicit-capture.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/orchestrator.d.ts +1 -1
- package/dist/schemas.d.ts +38 -38
- package/package.json +1 -1
- package/dist/{orchestrator-CIvLFHx3.d.ts → orchestrator-zTa-Qo-1.d.ts} +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @remnic/core
|
|
2
|
+
|
|
3
|
+
Framework-agnostic memory engine for AI agents. Orchestration, storage, extraction, search, and trust zones -- all local, all private.
|
|
4
|
+
|
|
5
|
+
Part of [Remnic](https://github.com/joshuaswarren/remnic), the universal memory layer for AI agents.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @remnic/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What it does
|
|
14
|
+
|
|
15
|
+
Remnic Core is the engine that powers persistent memory across AI agent sessions. It handles:
|
|
16
|
+
|
|
17
|
+
- **Memory orchestration** -- three-phase flow: recall before sessions, buffer during, extract after
|
|
18
|
+
- **Storage** -- plain markdown files with YAML frontmatter on your local filesystem
|
|
19
|
+
- **Extraction** -- GPT-5.2 or local LLM (Ollama, LM Studio) extracts durable knowledge from conversations
|
|
20
|
+
- **Search** -- hybrid BM25 + vector + reranking via QMD
|
|
21
|
+
- **Trust zones** -- namespace isolation and access control for multi-agent setups
|
|
22
|
+
- **Entity tracking** -- people, projects, tools, and their relationships
|
|
23
|
+
- **Consolidation** -- periodic merging, deduplication, and summarization
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
Most users interact with Remnic through a higher-level package:
|
|
28
|
+
|
|
29
|
+
| Package | Use case |
|
|
30
|
+
|---------|----------|
|
|
31
|
+
| [`@remnic/plugin-openclaw`](https://www.npmjs.com/package/@remnic/plugin-openclaw) | OpenClaw gateway plugin |
|
|
32
|
+
| [`@remnic/cli`](https://www.npmjs.com/package/@remnic/cli) | Standalone CLI and daemon |
|
|
33
|
+
| [`@remnic/server`](https://www.npmjs.com/package/@remnic/server) | Standalone HTTP + MCP server |
|
|
34
|
+
|
|
35
|
+
Use `@remnic/core` directly when building a custom integration or embedding the memory engine in your own agent framework.
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
import { Orchestrator } from "@remnic/core";
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Fallback LLM
|
|
42
|
+
|
|
43
|
+
The core includes a fallback LLM client that resolves providers from your gateway config or OpenClaw's built-in provider catalog. It supports OpenAI-compatible and Anthropic APIs with automatic auth resolution and provider fallback chains.
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
MIT
|
package/dist/access-http.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IncomingMessage } from 'node:http';
|
|
|
2
2
|
import { EngramAccessService } from './access-service.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import './explicit-capture.js';
|
|
5
|
-
import './orchestrator-
|
|
5
|
+
import './orchestrator-zTa-Qo-1.js';
|
|
6
6
|
import './buffer.js';
|
|
7
7
|
import './storage.js';
|
|
8
8
|
import './memory-projection-store-NxMkbocT.js';
|
package/dist/access-mcp.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Readable, Writable } from 'node:stream';
|
|
|
2
2
|
import { EngramAccessService } from './access-service.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import './explicit-capture.js';
|
|
5
|
-
import './orchestrator-
|
|
5
|
+
import './orchestrator-zTa-Qo-1.js';
|
|
6
6
|
import './buffer.js';
|
|
7
7
|
import './storage.js';
|
|
8
8
|
import './memory-projection-store-NxMkbocT.js';
|
package/dist/access-schema.d.ts
CHANGED
|
@@ -18,28 +18,28 @@ declare const recallRequestSchema: z.ZodObject<{
|
|
|
18
18
|
includeDebug: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
query: string;
|
|
21
|
-
sessionKey?: string | undefined;
|
|
22
21
|
namespace?: string | undefined;
|
|
23
22
|
topK?: number | undefined;
|
|
24
|
-
mode?: "
|
|
23
|
+
mode?: "no_recall" | "minimal" | "full" | "graph_mode" | "auto" | undefined;
|
|
24
|
+
sessionKey?: string | undefined;
|
|
25
25
|
includeDebug?: boolean | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
query: string;
|
|
28
|
-
sessionKey?: string | undefined;
|
|
29
28
|
namespace?: string | undefined;
|
|
30
29
|
topK?: number | undefined;
|
|
31
|
-
mode?: "
|
|
30
|
+
mode?: "no_recall" | "minimal" | "full" | "graph_mode" | "auto" | undefined;
|
|
31
|
+
sessionKey?: string | undefined;
|
|
32
32
|
includeDebug?: boolean | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
declare const recallExplainRequestSchema: z.ZodObject<{
|
|
35
35
|
sessionKey: z.ZodOptional<z.ZodString>;
|
|
36
36
|
namespace: z.ZodOptional<z.ZodString>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
sessionKey?: string | undefined;
|
|
39
38
|
namespace?: string | undefined;
|
|
40
|
-
}, {
|
|
41
39
|
sessionKey?: string | undefined;
|
|
40
|
+
}, {
|
|
42
41
|
namespace?: string | undefined;
|
|
42
|
+
sessionKey?: string | undefined;
|
|
43
43
|
}>;
|
|
44
44
|
declare const observeRequestSchema: z.ZodObject<{
|
|
45
45
|
sessionKey: z.ZodString;
|
|
@@ -47,27 +47,27 @@ declare const observeRequestSchema: z.ZodObject<{
|
|
|
47
47
|
role: z.ZodEnum<["user", "assistant"]>;
|
|
48
48
|
content: z.ZodString;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
role: "user" | "assistant";
|
|
51
50
|
content: string;
|
|
52
|
-
}, {
|
|
53
51
|
role: "user" | "assistant";
|
|
52
|
+
}, {
|
|
54
53
|
content: string;
|
|
54
|
+
role: "user" | "assistant";
|
|
55
55
|
}>, "many">;
|
|
56
56
|
namespace: z.ZodOptional<z.ZodString>;
|
|
57
57
|
skipExtraction: z.ZodOptional<z.ZodBoolean>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
sessionKey: string;
|
|
60
60
|
messages: {
|
|
61
|
-
role: "user" | "assistant";
|
|
62
61
|
content: string;
|
|
62
|
+
role: "user" | "assistant";
|
|
63
63
|
}[];
|
|
64
64
|
namespace?: string | undefined;
|
|
65
65
|
skipExtraction?: boolean | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
sessionKey: string;
|
|
68
68
|
messages: {
|
|
69
|
-
role: "user" | "assistant";
|
|
70
69
|
content: string;
|
|
70
|
+
role: "user" | "assistant";
|
|
71
71
|
}[];
|
|
72
72
|
namespace?: string | undefined;
|
|
73
73
|
skipExtraction?: boolean | undefined;
|
|
@@ -87,30 +87,30 @@ declare const memoryStoreRequestSchema: z.ZodObject<{
|
|
|
87
87
|
sourceReason: z.ZodOptional<z.ZodString>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
content: string;
|
|
90
|
-
sessionKey?: string | undefined;
|
|
91
90
|
namespace?: string | undefined;
|
|
92
|
-
schemaVersion?: number | undefined;
|
|
93
|
-
idempotencyKey?: string | undefined;
|
|
94
|
-
dryRun?: boolean | undefined;
|
|
95
91
|
category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | undefined;
|
|
96
92
|
confidence?: number | undefined;
|
|
97
93
|
tags?: string[] | undefined;
|
|
98
94
|
entityRef?: string | undefined;
|
|
95
|
+
schemaVersion?: number | undefined;
|
|
96
|
+
sessionKey?: string | undefined;
|
|
97
|
+
dryRun?: boolean | undefined;
|
|
99
98
|
ttl?: string | undefined;
|
|
100
99
|
sourceReason?: string | undefined;
|
|
100
|
+
idempotencyKey?: string | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
content: string;
|
|
103
|
-
sessionKey?: string | undefined;
|
|
104
103
|
namespace?: string | undefined;
|
|
105
|
-
schemaVersion?: number | undefined;
|
|
106
|
-
idempotencyKey?: string | undefined;
|
|
107
|
-
dryRun?: boolean | undefined;
|
|
108
104
|
category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | undefined;
|
|
109
105
|
confidence?: number | undefined;
|
|
110
106
|
tags?: string[] | undefined;
|
|
111
107
|
entityRef?: string | undefined;
|
|
108
|
+
schemaVersion?: number | undefined;
|
|
109
|
+
sessionKey?: string | undefined;
|
|
110
|
+
dryRun?: boolean | undefined;
|
|
112
111
|
ttl?: string | undefined;
|
|
113
112
|
sourceReason?: string | undefined;
|
|
113
|
+
idempotencyKey?: string | undefined;
|
|
114
114
|
}>;
|
|
115
115
|
declare const suggestionSubmitRequestSchema: z.ZodObject<{
|
|
116
116
|
schemaVersion: z.ZodOptional<z.ZodNumber>;
|
|
@@ -127,30 +127,30 @@ declare const suggestionSubmitRequestSchema: z.ZodObject<{
|
|
|
127
127
|
sourceReason: z.ZodOptional<z.ZodString>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
129
|
content: string;
|
|
130
|
-
sessionKey?: string | undefined;
|
|
131
130
|
namespace?: string | undefined;
|
|
132
|
-
schemaVersion?: number | undefined;
|
|
133
|
-
idempotencyKey?: string | undefined;
|
|
134
|
-
dryRun?: boolean | undefined;
|
|
135
131
|
category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | undefined;
|
|
136
132
|
confidence?: number | undefined;
|
|
137
133
|
tags?: string[] | undefined;
|
|
138
134
|
entityRef?: string | undefined;
|
|
135
|
+
schemaVersion?: number | undefined;
|
|
136
|
+
sessionKey?: string | undefined;
|
|
137
|
+
dryRun?: boolean | undefined;
|
|
139
138
|
ttl?: string | undefined;
|
|
140
139
|
sourceReason?: string | undefined;
|
|
140
|
+
idempotencyKey?: string | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
content: string;
|
|
143
|
-
sessionKey?: string | undefined;
|
|
144
143
|
namespace?: string | undefined;
|
|
145
|
-
schemaVersion?: number | undefined;
|
|
146
|
-
idempotencyKey?: string | undefined;
|
|
147
|
-
dryRun?: boolean | undefined;
|
|
148
144
|
category?: "fact" | "preference" | "correction" | "entity" | "decision" | "relationship" | "principle" | "commitment" | "moment" | "skill" | "rule" | undefined;
|
|
149
145
|
confidence?: number | undefined;
|
|
150
146
|
tags?: string[] | undefined;
|
|
151
147
|
entityRef?: string | undefined;
|
|
148
|
+
schemaVersion?: number | undefined;
|
|
149
|
+
sessionKey?: string | undefined;
|
|
150
|
+
dryRun?: boolean | undefined;
|
|
152
151
|
ttl?: string | undefined;
|
|
153
152
|
sourceReason?: string | undefined;
|
|
153
|
+
idempotencyKey?: string | undefined;
|
|
154
154
|
}>;
|
|
155
155
|
declare const reviewDispositionRequestSchema: z.ZodObject<{
|
|
156
156
|
memoryId: z.ZodString;
|
|
@@ -158,14 +158,14 @@ declare const reviewDispositionRequestSchema: z.ZodObject<{
|
|
|
158
158
|
reasonCode: z.ZodString;
|
|
159
159
|
namespace: z.ZodOptional<z.ZodString>;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
status: "active" | "pending_review" | "
|
|
162
|
-
memoryId: string;
|
|
161
|
+
status: "active" | "pending_review" | "rejected" | "quarantined" | "superseded" | "archived";
|
|
163
162
|
reasonCode: string;
|
|
163
|
+
memoryId: string;
|
|
164
164
|
namespace?: string | undefined;
|
|
165
165
|
}, {
|
|
166
|
-
status: "active" | "pending_review" | "
|
|
167
|
-
memoryId: string;
|
|
166
|
+
status: "active" | "pending_review" | "rejected" | "quarantined" | "superseded" | "archived";
|
|
168
167
|
reasonCode: string;
|
|
168
|
+
memoryId: string;
|
|
169
169
|
namespace?: string | undefined;
|
|
170
170
|
}>;
|
|
171
171
|
declare const trustZonePromoteRequestSchema: z.ZodObject<{
|
|
@@ -181,17 +181,17 @@ declare const trustZonePromoteRequestSchema: z.ZodObject<{
|
|
|
181
181
|
targetZone: "working" | "trusted";
|
|
182
182
|
promotionReason: string;
|
|
183
183
|
namespace?: string | undefined;
|
|
184
|
+
summary?: string | undefined;
|
|
184
185
|
dryRun?: boolean | undefined;
|
|
185
186
|
recordedAt?: string | undefined;
|
|
186
|
-
summary?: string | undefined;
|
|
187
187
|
}, {
|
|
188
188
|
recordId: string;
|
|
189
189
|
targetZone: "working" | "trusted";
|
|
190
190
|
promotionReason: string;
|
|
191
191
|
namespace?: string | undefined;
|
|
192
|
+
summary?: string | undefined;
|
|
192
193
|
dryRun?: boolean | undefined;
|
|
193
194
|
recordedAt?: string | undefined;
|
|
194
|
-
summary?: string | undefined;
|
|
195
195
|
}>;
|
|
196
196
|
declare const trustZoneDemoSeedRequestSchema: z.ZodObject<{
|
|
197
197
|
scenario: z.ZodOptional<z.ZodString>;
|
|
@@ -216,13 +216,13 @@ declare const lcmSearchRequestSchema: z.ZodObject<{
|
|
|
216
216
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
218
|
query: string;
|
|
219
|
-
sessionKey?: string | undefined;
|
|
220
219
|
namespace?: string | undefined;
|
|
220
|
+
sessionKey?: string | undefined;
|
|
221
221
|
limit?: number | undefined;
|
|
222
222
|
}, {
|
|
223
223
|
query: string;
|
|
224
|
-
sessionKey?: string | undefined;
|
|
225
224
|
namespace?: string | undefined;
|
|
225
|
+
sessionKey?: string | undefined;
|
|
226
226
|
limit?: number | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
declare const daySummaryRequestSchema: z.ZodObject<{
|
|
@@ -230,13 +230,13 @@ declare const daySummaryRequestSchema: z.ZodObject<{
|
|
|
230
230
|
sessionKey: z.ZodOptional<z.ZodString>;
|
|
231
231
|
namespace: z.ZodOptional<z.ZodString>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
-
sessionKey?: string | undefined;
|
|
234
233
|
namespace?: string | undefined;
|
|
235
234
|
memories?: string | undefined;
|
|
236
|
-
}, {
|
|
237
235
|
sessionKey?: string | undefined;
|
|
236
|
+
}, {
|
|
238
237
|
namespace?: string | undefined;
|
|
239
238
|
memories?: string | undefined;
|
|
239
|
+
sessionKey?: string | undefined;
|
|
240
240
|
}>;
|
|
241
241
|
type RecallRequest = z.infer<typeof recallRequestSchema>;
|
|
242
242
|
type RecallExplainRequest = z.infer<typeof recallExplainRequestSchema>;
|
package/dist/access-service.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DaySummaryResult, RecallPlanMode, MemoryFile, MemoryLifecycleEvent, Ent
|
|
|
2
2
|
import { ExplicitCaptureInput } from './explicit-capture.js';
|
|
3
3
|
import { r as readMemoryGovernanceRunArtifact } from './memory-projection-store-NxMkbocT.js';
|
|
4
4
|
import { LastRecallSnapshot } from './recall-state.js';
|
|
5
|
-
import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot } from './orchestrator-
|
|
5
|
+
import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot } from './orchestrator-zTa-Qo-1.js';
|
|
6
6
|
import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
|
|
7
7
|
import 'better-sqlite3';
|
|
8
8
|
import './buffer.js';
|
package/dist/bootstrap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginConfig } from './types.js';
|
|
2
|
-
import { O as Orchestrator } from './orchestrator-
|
|
2
|
+
import { O as Orchestrator } from './orchestrator-zTa-Qo-1.js';
|
|
3
3
|
import './buffer.js';
|
|
4
4
|
import './storage.js';
|
|
5
5
|
import './memory-projection-store-NxMkbocT.js';
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ReplaySource, a as ReplayWarning, b as ReplayTurn, O as Orchestrator, C as CompoundingPromotionReport } from './orchestrator-
|
|
1
|
+
import { R as ReplaySource, a as ReplayWarning, b as ReplayTurn, O as Orchestrator, C as CompoundingPromotionReport } from './orchestrator-zTa-Qo-1.js';
|
|
2
2
|
import { M as MemoryGovernanceRunResult, a as MemoryGovernanceSummary, b as MemoryGovernanceMetrics, c as MemoryGovernanceQualityScore, d as MemoryGovernanceReviewQueueEntry, e as MemoryGovernanceAppliedAction, f as MemoryGovernanceTransitionReport, g as MemoryGovernanceManifest, h as MemoryGovernanceRestoreManifest, R as RestoreMemoryGovernanceRunResult } from './memory-projection-store-NxMkbocT.js';
|
|
3
3
|
import { MemoryStatus, MemoryFile, BehaviorSignalEvent, MemoryActionEvent, MemoryLifecycleEvent } from './types.js';
|
|
4
4
|
import { Readable, Writable } from 'node:stream';
|
|
@@ -634,7 +634,7 @@ declare function runMemoryGovernanceReportCliCommand(options: MemoryGovernanceRe
|
|
|
634
634
|
declare function runMemoryGovernanceRestoreCliCommand(options: MemoryGovernanceRestoreCliCommandOptions): Promise<RestoreMemoryGovernanceRunResult>;
|
|
635
635
|
declare function runMemoryReviewDispositionCliCommand(options: MemoryReviewDispositionCliCommandOptions): Promise<{
|
|
636
636
|
memoryId: string;
|
|
637
|
-
status: "active" | "pending_review" | "
|
|
637
|
+
status: "active" | "pending_review" | "rejected" | "quarantined";
|
|
638
638
|
reasonCode: string | undefined;
|
|
639
639
|
}>;
|
|
640
640
|
declare function runMigrateObservationsCliCommand(options: MigrateObservationsCliCommandOptions): Promise<MigrateObservationsResult>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { parseConfig } from './config.js';
|
|
2
|
-
export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-
|
|
2
|
+
export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-zTa-Qo-1.js';
|
|
3
3
|
export { StorageManager } from './storage.js';
|
|
4
4
|
export { ExtractionEngine } from './extraction.js';
|
|
5
5
|
export { QmdClient } from './qmd.js';
|
package/dist/orchestrator.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import './negative.js';
|
|
|
10
10
|
import './recall-state.js';
|
|
11
11
|
import './session-observer-state.js';
|
|
12
12
|
import './embedding-fallback.js';
|
|
13
|
-
export { c as GraphRecallRankedResult, e as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, Q as QmdRecallSnapshot, f as RecallInvocationOptions, g as RecallModeDecision, h as appendMemoryToGraphContext, i as blendGraphExpandedRecallScore, j as buildCompressionGuidelinesMarkdown, k as buildMemoryPathById, l as computeArtifactCandidateFetchLimit, m as computeArtifactRecallLimit, n as computeQmdHybridFetchLimit, d as defaultWorkspaceDir, o as deriveTopicsFromExtraction, p as filterRecallCandidates, q as formatCompressionGuidelinesForRecall, r as graphPathRelativeToStorage, t as hasIdentityRecoveryIntent, u as isArtifactMemoryPath, v as lifecycleRecallScoreAdjustment, w as mergeArtifactRecallCandidates, x as mergeGraphExpandedResults, y as resolveEffectiveIdentityInjectionMode, z as resolveEffectiveRecallMode, A as resolvePersistedMemoryRelativePath, B as resolveRecallModeDecision, D as resolveRecentThreadMemoryPaths, s as sanitizeSessionKeyForFilename, E as shouldFilterLifecycleRecallCandidate, F as summarizeGraphShadowComparison } from './orchestrator-
|
|
13
|
+
export { c as GraphRecallRankedResult, e as GraphRecallShadowComparison, G as GraphRecallSnapshot, I as IntentDebugSnapshot, O as Orchestrator, Q as QmdRecallSnapshot, f as RecallInvocationOptions, g as RecallModeDecision, h as appendMemoryToGraphContext, i as blendGraphExpandedRecallScore, j as buildCompressionGuidelinesMarkdown, k as buildMemoryPathById, l as computeArtifactCandidateFetchLimit, m as computeArtifactRecallLimit, n as computeQmdHybridFetchLimit, d as defaultWorkspaceDir, o as deriveTopicsFromExtraction, p as filterRecallCandidates, q as formatCompressionGuidelinesForRecall, r as graphPathRelativeToStorage, t as hasIdentityRecoveryIntent, u as isArtifactMemoryPath, v as lifecycleRecallScoreAdjustment, w as mergeArtifactRecallCandidates, x as mergeGraphExpandedResults, y as resolveEffectiveIdentityInjectionMode, z as resolveEffectiveRecallMode, A as resolvePersistedMemoryRelativePath, B as resolveRecallModeDecision, D as resolveRecentThreadMemoryPaths, s as sanitizeSessionKeyForFilename, E as shouldFilterLifecycleRecallCandidate, F as summarizeGraphShadowComparison } from './orchestrator-zTa-Qo-1.js';
|
|
14
14
|
import './types.js';
|
|
15
15
|
import './semantic-consolidation.js';
|
|
16
16
|
import './policy-runtime.js';
|
package/dist/schemas.d.ts
CHANGED
|
@@ -7,14 +7,14 @@ declare const MemoryActionEligibilityContextSchema: z.ZodObject<{
|
|
|
7
7
|
importance: z.ZodNumber;
|
|
8
8
|
source: z.ZodEnum<["extraction", "consolidation", "replay", "manual", "unknown"]>;
|
|
9
9
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
source: "extraction" | "consolidation" | "replay" | "manual" | "unknown";
|
|
10
11
|
confidence: number;
|
|
11
|
-
|
|
12
|
-
lifecycleState: "validated" | "active" | "archived" | "candidate" | "stale";
|
|
12
|
+
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
13
13
|
importance: number;
|
|
14
14
|
}, {
|
|
15
|
+
source: "extraction" | "consolidation" | "replay" | "manual" | "unknown";
|
|
15
16
|
confidence: number;
|
|
16
|
-
|
|
17
|
-
lifecycleState: "validated" | "active" | "archived" | "candidate" | "stale";
|
|
17
|
+
lifecycleState: "active" | "archived" | "candidate" | "validated" | "stale";
|
|
18
18
|
importance: number;
|
|
19
19
|
}>;
|
|
20
20
|
declare function parseMemoryActionType(value: unknown): z.infer<typeof MemoryActionTypeSchema>;
|
|
@@ -50,14 +50,14 @@ declare const EntityMentionSchema: z.ZodObject<{
|
|
|
50
50
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
51
51
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
54
|
-
name: string;
|
|
55
53
|
facts: string[];
|
|
54
|
+
name: string;
|
|
55
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
56
56
|
promptedByQuestion?: string | null | undefined;
|
|
57
57
|
}, {
|
|
58
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
59
|
-
name: string;
|
|
60
58
|
facts: string[];
|
|
59
|
+
name: string;
|
|
60
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
61
61
|
promptedByQuestion?: string | null | undefined;
|
|
62
62
|
}>;
|
|
63
63
|
declare const ExtractedQuestionSchema: z.ZodObject<{
|
|
@@ -149,14 +149,14 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
149
149
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
150
150
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
153
|
-
name: string;
|
|
154
152
|
facts: string[];
|
|
153
|
+
name: string;
|
|
154
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
155
155
|
promptedByQuestion?: string | null | undefined;
|
|
156
156
|
}, {
|
|
157
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
158
|
-
name: string;
|
|
159
157
|
facts: string[];
|
|
158
|
+
name: string;
|
|
159
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
160
160
|
promptedByQuestion?: string | null | undefined;
|
|
161
161
|
}>, "many">;
|
|
162
162
|
relationships: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -186,9 +186,9 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
186
186
|
promptedByQuestion?: string | null | undefined;
|
|
187
187
|
}[];
|
|
188
188
|
entities: {
|
|
189
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
190
|
-
name: string;
|
|
191
189
|
facts: string[];
|
|
190
|
+
name: string;
|
|
191
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
192
192
|
promptedByQuestion?: string | null | undefined;
|
|
193
193
|
}[];
|
|
194
194
|
profileUpdates: string[];
|
|
@@ -209,9 +209,9 @@ declare const ProactiveExtractionResultSchema: z.ZodObject<{
|
|
|
209
209
|
promptedByQuestion?: string | null | undefined;
|
|
210
210
|
}[];
|
|
211
211
|
entities: {
|
|
212
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
213
|
-
name: string;
|
|
214
212
|
facts: string[];
|
|
213
|
+
name: string;
|
|
214
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
215
215
|
promptedByQuestion?: string | null | undefined;
|
|
216
216
|
}[];
|
|
217
217
|
profileUpdates: string[];
|
|
@@ -255,14 +255,14 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
255
255
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
256
256
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
259
|
-
name: string;
|
|
260
258
|
facts: string[];
|
|
259
|
+
name: string;
|
|
260
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
261
261
|
promptedByQuestion?: string | null | undefined;
|
|
262
262
|
}, {
|
|
263
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
264
|
-
name: string;
|
|
265
263
|
facts: string[];
|
|
264
|
+
name: string;
|
|
265
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
266
266
|
promptedByQuestion?: string | null | undefined;
|
|
267
267
|
}>, "many">;
|
|
268
268
|
questions: z.ZodArray<z.ZodObject<{
|
|
@@ -311,9 +311,9 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
311
311
|
promptedByQuestion?: string | null | undefined;
|
|
312
312
|
}[];
|
|
313
313
|
entities: {
|
|
314
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
315
|
-
name: string;
|
|
316
314
|
facts: string[];
|
|
315
|
+
name: string;
|
|
316
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
317
317
|
promptedByQuestion?: string | null | undefined;
|
|
318
318
|
}[];
|
|
319
319
|
profileUpdates: string[];
|
|
@@ -340,9 +340,9 @@ declare const ExtractionResultSchema: z.ZodObject<{
|
|
|
340
340
|
promptedByQuestion?: string | null | undefined;
|
|
341
341
|
}[];
|
|
342
342
|
entities: {
|
|
343
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
344
|
-
name: string;
|
|
345
343
|
facts: string[];
|
|
344
|
+
name: string;
|
|
345
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
346
346
|
promptedByQuestion?: string | null | undefined;
|
|
347
347
|
}[];
|
|
348
348
|
profileUpdates: string[];
|
|
@@ -400,14 +400,14 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
400
400
|
facts: z.ZodArray<z.ZodString, "many">;
|
|
401
401
|
promptedByQuestion: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
402
402
|
}, "strip", z.ZodTypeAny, {
|
|
403
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
404
|
-
name: string;
|
|
405
403
|
facts: string[];
|
|
404
|
+
name: string;
|
|
405
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
406
406
|
promptedByQuestion?: string | null | undefined;
|
|
407
407
|
}, {
|
|
408
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
409
|
-
name: string;
|
|
410
408
|
facts: string[];
|
|
409
|
+
name: string;
|
|
410
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
411
411
|
promptedByQuestion?: string | null | undefined;
|
|
412
412
|
}>, "many">;
|
|
413
413
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -420,9 +420,9 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
420
420
|
updatedContent?: string | null | undefined;
|
|
421
421
|
}[];
|
|
422
422
|
entityUpdates: {
|
|
423
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
424
|
-
name: string;
|
|
425
423
|
facts: string[];
|
|
424
|
+
name: string;
|
|
425
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
426
426
|
promptedByQuestion?: string | null | undefined;
|
|
427
427
|
}[];
|
|
428
428
|
}, {
|
|
@@ -435,9 +435,9 @@ declare const ConsolidationResultSchema: z.ZodObject<{
|
|
|
435
435
|
updatedContent?: string | null | undefined;
|
|
436
436
|
}[];
|
|
437
437
|
entityUpdates: {
|
|
438
|
-
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
439
|
-
name: string;
|
|
440
438
|
facts: string[];
|
|
439
|
+
name: string;
|
|
440
|
+
type: "person" | "project" | "tool" | "company" | "place" | "other";
|
|
441
441
|
promptedByQuestion?: string | null | undefined;
|
|
442
442
|
}[];
|
|
443
443
|
}>;
|
|
@@ -585,8 +585,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
585
585
|
reason: z.ZodString;
|
|
586
586
|
appliedAt: z.ZodString;
|
|
587
587
|
}, "strip", z.ZodTypeAny, {
|
|
588
|
-
confidence: number;
|
|
589
588
|
reason: string;
|
|
589
|
+
confidence: number;
|
|
590
590
|
parameter: string;
|
|
591
591
|
previousValue: number;
|
|
592
592
|
nextValue: number;
|
|
@@ -594,8 +594,8 @@ declare const BehaviorLoopAdjustmentSchema: z.ZodObject<{
|
|
|
594
594
|
evidenceCount: number;
|
|
595
595
|
appliedAt: string;
|
|
596
596
|
}, {
|
|
597
|
-
confidence: number;
|
|
598
597
|
reason: string;
|
|
598
|
+
confidence: number;
|
|
599
599
|
parameter: string;
|
|
600
600
|
previousValue: number;
|
|
601
601
|
nextValue: number;
|
|
@@ -619,8 +619,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
619
619
|
reason: z.ZodString;
|
|
620
620
|
appliedAt: z.ZodString;
|
|
621
621
|
}, "strip", z.ZodTypeAny, {
|
|
622
|
-
confidence: number;
|
|
623
622
|
reason: string;
|
|
623
|
+
confidence: number;
|
|
624
624
|
parameter: string;
|
|
625
625
|
previousValue: number;
|
|
626
626
|
nextValue: number;
|
|
@@ -628,8 +628,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
628
628
|
evidenceCount: number;
|
|
629
629
|
appliedAt: string;
|
|
630
630
|
}, {
|
|
631
|
-
confidence: number;
|
|
632
631
|
reason: string;
|
|
632
|
+
confidence: number;
|
|
633
633
|
parameter: string;
|
|
634
634
|
previousValue: number;
|
|
635
635
|
nextValue: number;
|
|
@@ -646,8 +646,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
646
646
|
maxDeltaPerCycle: number;
|
|
647
647
|
protectedParams: string[];
|
|
648
648
|
adjustments: {
|
|
649
|
-
confidence: number;
|
|
650
649
|
reason: string;
|
|
650
|
+
confidence: number;
|
|
651
651
|
parameter: string;
|
|
652
652
|
previousValue: number;
|
|
653
653
|
nextValue: number;
|
|
@@ -663,8 +663,8 @@ declare const BehaviorLoopPolicyStateSchema: z.ZodObject<{
|
|
|
663
663
|
maxDeltaPerCycle: number;
|
|
664
664
|
protectedParams: string[];
|
|
665
665
|
adjustments: {
|
|
666
|
-
confidence: number;
|
|
667
666
|
reason: string;
|
|
667
|
+
confidence: number;
|
|
668
668
|
parameter: string;
|
|
669
669
|
previousValue: number;
|
|
670
670
|
nextValue: number;
|
package/package.json
CHANGED
|
@@ -167,10 +167,10 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
167
167
|
evidenceWindowEnd: z.ZodOptional<z.ZodString>;
|
|
168
168
|
refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
date: string;
|
|
171
170
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
172
171
|
reason: string;
|
|
173
172
|
agent: string;
|
|
173
|
+
date: string;
|
|
174
174
|
confidence?: number | undefined;
|
|
175
175
|
tags?: string[] | undefined;
|
|
176
176
|
severity?: "low" | "medium" | "high" | undefined;
|
|
@@ -181,10 +181,10 @@ declare const SharedFeedbackEntrySchema: z.ZodObject<{
|
|
|
181
181
|
evidenceWindowStart?: string | undefined;
|
|
182
182
|
evidenceWindowEnd?: string | undefined;
|
|
183
183
|
}, {
|
|
184
|
-
date: string;
|
|
185
184
|
decision: "rejected" | "approved" | "approved_with_feedback";
|
|
186
185
|
reason: string;
|
|
187
186
|
agent: string;
|
|
187
|
+
date: string;
|
|
188
188
|
confidence?: number | undefined;
|
|
189
189
|
tags?: string[] | undefined;
|
|
190
190
|
severity?: "low" | "medium" | "high" | undefined;
|