@remnic/core 10.0.192 → 10.0.194
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/access-admin-ops-surface.js +1 -1
- package/dist/access-cli.js +1 -1
- package/dist/access-extraction-force-flush-preempt.js +1 -1
- package/dist/access-extraction-force-flush.js +1 -1
- package/dist/access-http-briefing.js +1 -1
- package/dist/access-http-query.js +1 -1
- package/dist/access-http.js +1 -1
- package/dist/access-identity-continuity-surface.js +1 -1
- package/dist/access-lcm-surface.js +1 -1
- package/dist/access-mcp.js +1 -1
- package/dist/access-observe-write-surface.js +1 -1
- package/dist/access-operations-batch.js +1 -1
- package/dist/access-operations.js +1 -1
- package/dist/access-recall-concurrency.js +1 -1
- package/dist/access-recall-response.js +1 -1
- package/dist/access-recall-surface.js +1 -1
- package/dist/access-service.js +1 -1
- package/dist/{chunk-ODI4K32P.js → chunk-VMNX2UV7.js} +2 -2
- package/dist/{chunk-UAEJKURK.js → chunk-VSLV3EEP.js} +3 -3
- package/dist/{chunk-UAEJKURK.js.map → chunk-VSLV3EEP.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/explicit-capture.js +1 -1
- package/dist/index.js +1 -1
- package/dist/orchestration/backlog-scheduler.js +2 -2
- package/dist/orchestration/buffer-drain-runner.js +2 -2
- package/dist/orchestration/extraction-persist-failure.d.ts +0 -2
- package/dist/orchestration/extraction-persist-failure.d.ts.map +1 -1
- package/dist/orchestration/extraction-persist.d.ts +6 -2
- package/dist/orchestration/extraction-persist.d.ts.map +1 -1
- package/dist/orchestrator.js +1 -1
- package/dist/recall-navigation.js +1 -1
- package/package.json +2 -2
- package/src/orchestration/extraction-persist-declaration.test.ts +35 -0
- package/src/orchestration/extraction-persist-failure.ts +0 -3
- package/src/orchestration/extraction-persist.ts +3 -3
- /package/dist/{chunk-ODI4K32P.js.map → chunk-VMNX2UV7.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
runWorkProductStatusCliCommand,
|
|
92
92
|
runWorkProjectCliCommand,
|
|
93
93
|
runWorkTaskCliCommand
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-VSLV3EEP.js";
|
|
95
95
|
import "./chunk-GOZXQNIM.js";
|
|
96
96
|
import "./chunk-PQM3B54K.js";
|
|
97
97
|
import "./chunk-7KTORRIK.js";
|
package/dist/explicit-capture.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
shouldSkipImplicitExtraction,
|
|
9
9
|
stripInlineExplicitCaptureNotes,
|
|
10
10
|
validateExplicitCaptureInput
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VSLV3EEP.js";
|
|
12
12
|
import "./chunk-GOZXQNIM.js";
|
|
13
13
|
import "./chunk-PQM3B54K.js";
|
|
14
14
|
import "./chunk-7KTORRIK.js";
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BufferDrainRunner,
|
|
3
3
|
ClaimBufferStorage
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-VMNX2UV7.js";
|
|
5
|
+
import "../chunk-VSLV3EEP.js";
|
|
6
6
|
import "../chunk-GOZXQNIM.js";
|
|
7
7
|
import "../chunk-PQM3B54K.js";
|
|
8
8
|
import "../chunk-7KTORRIK.js";
|
|
@@ -27,7 +27,5 @@ export declare class CommittedWriteFinalization {
|
|
|
27
27
|
bind(finalize: FinalizeCommittedWrites): FinalizeCommittedWrites;
|
|
28
28
|
run<T>(pass: () => Promise<T>): Promise<T>;
|
|
29
29
|
}
|
|
30
|
-
/** A pass method's parameter list without its leading CommittedWriteFinalization. */
|
|
31
|
-
export type ArgsAfterFinalization<Params> = Params extends [CommittedWriteFinalization, ...infer Rest] ? Rest : never;
|
|
32
30
|
export {};
|
|
33
31
|
//# sourceMappingURL=extraction-persist-failure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-persist-failure.d.ts","sourceRoot":"","sources":["../../src/orchestration/extraction-persist-failure.ts"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG,CAAC,WAAW,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvE;;;;;;GAMG;AACH,wBAAsB,sCAAsC,CAC1D,uBAAuB,EAAE,uBAAuB,EAChD,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,KAAK,CAAC,CAKhB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,SAAS,CAAsC;IACvD,OAAO,CAAC,OAAO,CAA4B;IAE3C,IAAI,CAAC,QAAQ,EAAE,uBAAuB,GAAG,uBAAuB;IAK1D,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAQjD
|
|
1
|
+
{"version":3,"file":"extraction-persist-failure.d.ts","sourceRoot":"","sources":["../../src/orchestration/extraction-persist-failure.ts"],"names":[],"mappings":"AAEA,KAAK,uBAAuB,GAAG,CAAC,WAAW,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvE;;;;;;GAMG;AACH,wBAAsB,sCAAsC,CAC1D,uBAAuB,EAAE,uBAAuB,EAChD,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,KAAK,CAAC,CAKhB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,SAAS,CAAsC;IACvD,OAAO,CAAC,OAAO,CAA4B;IAE3C,IAAI,CAAC,QAAQ,EAAE,uBAAuB,GAAG,uBAAuB;IAK1D,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAQjD"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ExtractionSourceContext } from "./extraction-origin-context.js";
|
|
2
|
+
import { type StorageManager } from "../index.js";
|
|
3
|
+
import { type GraphConstructionCapabilitySet, type MemoryLifecycleCapabilitySet } from "../capabilities.js";
|
|
4
|
+
import type { ResolvedScopeProfilePlan } from "../namespaces/scope-profiles.js";
|
|
5
|
+
import type { ExtractionResult } from "../types.js";
|
|
2
6
|
import type { ExtractionPersistDeps } from "./extraction-persist-deps.js";
|
|
3
7
|
/** One extraction run's persist outcome: per-run values, no shared side channels (#1526). */
|
|
4
8
|
export interface ExtractionPersistResult {
|
|
@@ -14,7 +18,7 @@ export declare class ExtractionPersistCoordinator {
|
|
|
14
18
|
constructor(deps: ExtractionPersistDeps);
|
|
15
19
|
private get config();
|
|
16
20
|
private get dependencyPropagationDelivery();
|
|
17
|
-
persistExtraction(
|
|
21
|
+
persistExtraction(result: ExtractionResult, storage: StorageManager, threadIdForExtraction?: string | null, sourceContext?: ExtractionSourceContext, baseNamespace?: string, scopeProfileWritePlan?: ResolvedScopeProfilePlan | null, sourceText?: string, graphCaps?: GraphConstructionCapabilitySet, lifecycleCaps?: MemoryLifecycleCapabilitySet): Promise<ExtractionPersistResult>;
|
|
18
22
|
private persistExtractionPass;
|
|
19
23
|
}
|
|
20
24
|
//# sourceMappingURL=extraction-persist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-persist.d.ts","sourceRoot":"","sources":["../../src/orchestration/extraction-persist.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extraction-persist.d.ts","sourceRoot":"","sources":["../../src/orchestration/extraction-persist.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAkBxG,OAAO,EAA6C,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7F,OAAO,EAU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|
10
10
|
import "./chunk-GOZXQNIM.js";
|
|
11
11
|
import "./chunk-PQM3B54K.js";
|
|
12
12
|
import "./chunk-7KTORRIK.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.194",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3426,7 +3426,7 @@
|
|
|
3426
3426
|
"core"
|
|
3427
3427
|
],
|
|
3428
3428
|
"peerDependencies": {
|
|
3429
|
-
"@remnic/coding-graph": "^10.0.
|
|
3429
|
+
"@remnic/coding-graph": "^10.0.194"
|
|
3430
3430
|
},
|
|
3431
3431
|
"peerDependenciesMeta": {
|
|
3432
3432
|
"@remnic/coding-graph": {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import test from "node:test";
|
|
4
|
+
import ts from "typescript";
|
|
5
|
+
|
|
6
|
+
const sourcePath = new URL("./extraction-persist.ts", import.meta.url);
|
|
7
|
+
|
|
8
|
+
function coordinatorMethod(sourceFile: ts.SourceFile, name: string): ts.MethodDeclaration {
|
|
9
|
+
for (const statement of sourceFile.statements) {
|
|
10
|
+
if (!ts.isClassDeclaration(statement) || statement.name?.text !== "ExtractionPersistCoordinator") continue;
|
|
11
|
+
for (const member of statement.members) {
|
|
12
|
+
if (ts.isMethodDeclaration(member) && member.name.getText(sourceFile) === name) return member;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
assert.fail(`ExtractionPersistCoordinator.${name} not found`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function parameterSignature(sourceFile: ts.SourceFile, method: ts.MethodDeclaration): string[] {
|
|
19
|
+
return method.parameters.map((p) => `${p.name.getText(sourceFile)}: ${p.type?.getText(sourceFile) ?? "<untyped>"}`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
test("#3395: the emitted persistExtraction declaration spells out the pass parameters", () => {
|
|
23
|
+
const source = readFileSync(sourcePath, "utf8");
|
|
24
|
+
const sourceFile = ts.createSourceFile("extraction-persist.ts", source, ts.ScriptTarget.ES2022, true);
|
|
25
|
+
const { outputText } = ts.transpileDeclaration(source, { fileName: "extraction-persist.ts" });
|
|
26
|
+
const declarationFile = ts.createSourceFile("extraction-persist.d.ts", outputText, ts.ScriptTarget.ES2022, true);
|
|
27
|
+
|
|
28
|
+
// The private pass is emitted without a type, so the public signature must not derive from it.
|
|
29
|
+
const declared = coordinatorMethod(declarationFile, "persistExtraction");
|
|
30
|
+
assert.doesNotMatch(declared.getText(declarationFile), /persistExtractionPass/);
|
|
31
|
+
|
|
32
|
+
const passParameters = parameterSignature(sourceFile, coordinatorMethod(sourceFile, "persistExtractionPass"));
|
|
33
|
+
assert.equal(passParameters[0], "finalization: CommittedWriteFinalization");
|
|
34
|
+
assert.deepEqual(parameterSignature(declarationFile, declared), passParameters.slice(1));
|
|
35
|
+
});
|
|
@@ -52,6 +52,3 @@ export class CommittedWriteFinalization {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
/** A pass method's parameter list without its leading CommittedWriteFinalization. */
|
|
57
|
-
export type ArgsAfterFinalization<Params> = Params extends [CommittedWriteFinalization, ...infer Rest] ? Rest : never;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { classifyExtractionOrigin, type ExtractionSourceContext } from "./extraction-origin-context.js";
|
|
2
2
|
import { confirmActiveFactDuplicate, persistUnderFactDedupWindow } from "./fact-dedup-window.js";
|
|
3
3
|
import { writePromotionUnderFactDedupWindow } from "./promotion-dedup-window.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CommittedWriteFinalization, rethrowAfterCommittedWriteFinalization } from "./extraction-persist-failure.js";
|
|
5
5
|
import { evaluateInjectionScreen, screenEntityForIndex, screenPersistStrings } from "./extraction-injection-gate.js";
|
|
6
6
|
/**
|
|
7
7
|
* Extraction persistence coordinator (issue #1526, seam 16).
|
|
@@ -152,9 +152,9 @@ export class ExtractionPersistCoordinator {
|
|
|
152
152
|
return this.deps.getDependencyPropagationDelivery();
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
persistExtraction(
|
|
155
|
+
persistExtraction(result: ExtractionResult, storage: StorageManager, threadIdForExtraction?: string | null, sourceContext?: ExtractionSourceContext, baseNamespace?: string, scopeProfileWritePlan?: ResolvedScopeProfilePlan | null, sourceText?: string, graphCaps?: GraphConstructionCapabilitySet, lifecycleCaps?: MemoryLifecycleCapabilitySet): Promise<ExtractionPersistResult> {
|
|
156
156
|
const finalization = new CommittedWriteFinalization(); // #3288: one batch-end finalization boundary per pass
|
|
157
|
-
return finalization.run(() => this.persistExtractionPass(finalization,
|
|
157
|
+
return finalization.run(() => this.persistExtractionPass(finalization, result, storage, threadIdForExtraction, sourceContext, baseNamespace, scopeProfileWritePlan, sourceText, graphCaps, lifecycleCaps));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
private async persistExtractionPass(
|
|
File without changes
|