tracelattice 1.3.5 → 1.4.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/dist/__tests__/core/HistoryManager.dag.test.d.ts +0 -7
- package/dist/__tests__/core/HistoryManager.dag.test.d.ts.map +1 -1
- package/dist/__tests__/errors.types.test-d.d.ts +16 -0
- package/dist/__tests__/errors.types.test-d.d.ts.map +1 -0
- package/dist/__tests__/eval/fixtures/scenarios.d.ts.map +1 -1
- package/dist/__tests__/evaluator/EvaluatorBackwardCompat.test.d.ts +0 -13
- package/dist/__tests__/evaluator/EvaluatorBackwardCompat.test.d.ts.map +1 -1
- package/dist/__tests__/helpers/factories.d.ts +5 -4
- package/dist/__tests__/helpers/factories.d.ts.map +1 -1
- package/dist/__tests__/integration/CompressionAutoTrigger.test.d.ts +0 -9
- package/dist/__tests__/integration/CompressionAutoTrigger.test.d.ts.map +1 -1
- package/dist/__tests__/integration/CompressionPersistence.test.d.ts +0 -15
- package/dist/__tests__/integration/CompressionPersistence.test.d.ts.map +1 -1
- package/dist/__tests__/integration/StrategyIntegration.test.d.ts +0 -8
- package/dist/__tests__/integration/StrategyIntegration.test.d.ts.map +1 -1
- package/dist/__tests__/integration/ToTStrategyIntegration.test.d.ts +0 -16
- package/dist/__tests__/integration/ToTStrategyIntegration.test.d.ts.map +1 -1
- package/dist/__tests__/integration/dag-edges.test.d.ts.map +1 -1
- package/dist/__tests__/reasoning-integration.test.d.ts +0 -9
- package/dist/__tests__/reasoning-integration.test.d.ts.map +1 -1
- package/dist/__tests__/strategies/StrategyContract.test.d.ts +0 -16
- package/dist/__tests__/strategies/StrategyContract.test.d.ts.map +1 -1
- package/dist/__tests__/thought-processor.test.d.ts +0 -6
- package/dist/__tests__/thought-processor.test.d.ts.map +1 -1
- package/dist/__tests__/typing.test-d.d.ts +16 -0
- package/dist/__tests__/typing.test-d.d.ts.map +1 -0
- package/dist/cli.js +182 -73
- package/dist/cli.js.map +1 -1
- package/dist/config/ConfigLoader.d.ts +14 -14
- package/dist/config/ConfigLoader.d.ts.map +1 -1
- package/dist/config/ConfigLoader.js +33 -10
- package/dist/config/ConfigLoader.js.map +1 -1
- package/dist/contracts/PersistenceBackend.d.ts +9 -8
- package/dist/contracts/PersistenceBackend.d.ts.map +1 -1
- package/dist/contracts/calibrator.d.ts +4 -3
- package/dist/contracts/calibrator.d.ts.map +1 -1
- package/dist/contracts/features.d.ts +0 -4
- package/dist/contracts/features.d.ts.map +1 -1
- package/dist/contracts/features.js +1 -4
- package/dist/contracts/features.js.map +1 -1
- package/dist/contracts/ids.d.ts +10 -0
- package/dist/contracts/ids.d.ts.map +1 -1
- package/dist/contracts/ids.js +11 -2
- package/dist/contracts/ids.js.map +1 -1
- package/dist/contracts/interfaces.d.ts +10 -10
- package/dist/contracts/interfaces.d.ts.map +1 -1
- package/dist/contracts/strategy.d.ts +2 -1
- package/dist/contracts/strategy.d.ts.map +1 -1
- package/dist/contracts/summary.d.ts +6 -5
- package/dist/contracts/summary.d.ts.map +1 -1
- package/dist/contracts/suspension.d.ts +1 -1
- package/dist/contracts/suspension.d.ts.map +1 -1
- package/dist/contracts/transport.d.ts +2 -1
- package/dist/contracts/transport.d.ts.map +1 -1
- package/dist/core/HistoryManager.d.ts +6 -5
- package/dist/core/HistoryManager.d.ts.map +1 -1
- package/dist/core/HistoryManager.js +7 -6
- package/dist/core/HistoryManager.js.map +1 -1
- package/dist/core/IHistoryManager.d.ts +5 -4
- package/dist/core/IHistoryManager.d.ts.map +1 -1
- package/dist/core/InputNormalizer.d.ts +2 -1
- package/dist/core/InputNormalizer.d.ts.map +1 -1
- package/dist/core/InputNormalizer.js +2 -2
- package/dist/core/InputNormalizer.js.map +1 -1
- package/dist/core/PersistenceBuffer.d.ts +3 -2
- package/dist/core/PersistenceBuffer.d.ts.map +1 -1
- package/dist/core/PersistenceBuffer.js.map +1 -1
- package/dist/core/SessionLock.d.ts +2 -1
- package/dist/core/SessionLock.d.ts.map +1 -1
- package/dist/core/SessionLock.js +2 -1
- package/dist/core/SessionLock.js.map +1 -1
- package/dist/core/SessionManager.d.ts +4 -3
- package/dist/core/SessionManager.d.ts.map +1 -1
- package/dist/core/SessionManager.js.map +1 -1
- package/dist/core/ThoughtEvaluator.d.ts.map +1 -1
- package/dist/core/ThoughtEvaluator.js +2 -1
- package/dist/core/ThoughtEvaluator.js.map +1 -1
- package/dist/core/ThoughtFormatter.d.ts.map +1 -1
- package/dist/core/ThoughtFormatter.js +2 -2
- package/dist/core/ThoughtFormatter.js.map +1 -1
- package/dist/core/ThoughtProcessor.d.ts +1 -1
- package/dist/core/ThoughtProcessor.d.ts.map +1 -1
- package/dist/core/ThoughtProcessor.js +15 -14
- package/dist/core/ThoughtProcessor.js.map +1 -1
- package/dist/core/compression/CompressionService.d.ts +2 -1
- package/dist/core/compression/CompressionService.d.ts.map +1 -1
- package/dist/core/compression/CompressionService.js +3 -3
- package/dist/core/compression/CompressionService.js.map +1 -1
- package/dist/core/compression/DehydrationPolicy.d.ts +2 -1
- package/dist/core/compression/DehydrationPolicy.d.ts.map +1 -1
- package/dist/core/compression/DehydrationPolicy.js.map +1 -1
- package/dist/core/compression/InMemorySummaryStore.d.ts +2 -1
- package/dist/core/compression/InMemorySummaryStore.d.ts.map +1 -1
- package/dist/core/compression/InMemorySummaryStore.js +13 -12
- package/dist/core/compression/InMemorySummaryStore.js.map +1 -1
- package/dist/core/compression/Summary.d.ts +20 -2
- package/dist/core/compression/Summary.d.ts.map +1 -1
- package/dist/core/compression/Summary.js +16 -1
- package/dist/core/compression/Summary.js.map +1 -0
- package/dist/core/evaluator/Calibrator.d.ts +4 -3
- package/dist/core/evaluator/Calibrator.d.ts.map +1 -1
- package/dist/core/evaluator/Calibrator.js +2 -1
- package/dist/core/evaluator/Calibrator.js.map +1 -1
- package/dist/core/evaluator/PatternDetector.d.ts.map +1 -1
- package/dist/core/evaluator/PatternDetector.js +8 -4
- package/dist/core/evaluator/PatternDetector.js.map +1 -1
- package/dist/core/graph/EdgeEmitter.d.ts +2 -1
- package/dist/core/graph/EdgeEmitter.d.ts.map +1 -1
- package/dist/core/graph/EdgeEmitter.js +6 -0
- package/dist/core/graph/EdgeEmitter.js.map +1 -1
- package/dist/core/graph/EdgeStore.d.ts +6 -5
- package/dist/core/graph/EdgeStore.d.ts.map +1 -1
- package/dist/core/graph/EdgeStore.js +4 -3
- package/dist/core/graph/EdgeStore.js.map +1 -1
- package/dist/core/graph/GraphView.d.ts +7 -6
- package/dist/core/graph/GraphView.d.ts.map +1 -1
- package/dist/core/graph/GraphView.js.map +1 -1
- package/dist/core/reasoning/OutcomeRecorder.d.ts.map +1 -1
- package/dist/core/reasoning/OutcomeRecorder.js +6 -4
- package/dist/core/reasoning/OutcomeRecorder.js.map +1 -1
- package/dist/core/reasoning/strategies/StrategyFactory.d.ts.map +1 -1
- package/dist/core/reasoning/strategies/StrategyFactory.js +2 -1
- package/dist/core/reasoning/strategies/StrategyFactory.js.map +1 -1
- package/dist/core/reasoning/strategies/totScoring.d.ts +2 -1
- package/dist/core/reasoning/strategies/totScoring.d.ts.map +1 -1
- package/dist/core/reasoning/strategies/totScoring.js +10 -1
- package/dist/core/reasoning/strategies/totScoring.js.map +1 -1
- package/dist/core/reasoning.d.ts +29 -29
- package/dist/core/reasoning.d.ts.map +1 -1
- package/dist/core/thought.d.ts +62 -170
- package/dist/core/thought.d.ts.map +1 -1
- package/dist/core/tools/InMemorySuspensionStore.d.ts.map +1 -1
- package/dist/core/tools/InMemorySuspensionStore.js +4 -4
- package/dist/core/tools/InMemorySuspensionStore.js.map +1 -1
- package/dist/di/Container.d.ts +35 -11
- package/dist/di/Container.d.ts.map +1 -1
- package/dist/di/Container.js +15 -0
- package/dist/di/Container.js.map +1 -1
- package/dist/di/ServiceRegistry.d.ts +5 -3
- package/dist/di/ServiceRegistry.d.ts.map +1 -1
- package/dist/errors.d.ts +7 -6
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/lib.d.ts +6 -5
- package/dist/lib.d.ts.map +1 -1
- package/dist/lib.js +2 -1
- package/dist/lib.js.map +1 -1
- package/dist/logger/StructuredLogger.d.ts +6 -6
- package/dist/logger/StructuredLogger.d.ts.map +1 -1
- package/dist/logger/StructuredLogger.js.map +1 -1
- package/dist/persistence/FilePersistence.d.ts +9 -8
- package/dist/persistence/FilePersistence.d.ts.map +1 -1
- package/dist/persistence/FilePersistence.js +56 -15
- package/dist/persistence/FilePersistence.js.map +1 -1
- package/dist/persistence/MemoryPersistence.d.ts +10 -9
- package/dist/persistence/MemoryPersistence.d.ts.map +1 -1
- package/dist/persistence/MemoryPersistence.js +2 -1
- package/dist/persistence/MemoryPersistence.js.map +1 -1
- package/dist/persistence/SqlitePersistence.d.ts +11 -8
- package/dist/persistence/SqlitePersistence.d.ts.map +1 -1
- package/dist/persistence/SqlitePersistence.js +41 -12
- package/dist/persistence/SqlitePersistence.js.map +1 -1
- package/dist/pool/ConnectionPool.d.ts +7 -6
- package/dist/pool/ConnectionPool.d.ts.map +1 -1
- package/dist/pool/ConnectionPool.js +2 -1
- package/dist/pool/ConnectionPool.js.map +1 -1
- package/dist/pool/IConnectionPool.d.ts +5 -4
- package/dist/pool/IConnectionPool.d.ts.map +1 -1
- package/dist/registry/SkillRegistry.d.ts +1 -3
- package/dist/registry/SkillRegistry.d.ts.map +1 -1
- package/dist/registry/SkillRegistry.js +0 -3
- package/dist/registry/SkillRegistry.js.map +1 -1
- package/dist/registry/ToolRegistry.d.ts +1 -1
- package/dist/registry/ToolRegistry.d.ts.map +1 -1
- package/dist/registry/ToolRegistry.js.map +1 -1
- package/dist/schema.d.ts +2 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/transport/BaseTransport.d.ts +10 -10
- package/dist/transport/BaseTransport.d.ts.map +1 -1
- package/dist/transport/BaseTransport.js.map +1 -1
- package/dist/transport/HttpTransport.d.ts +1 -0
- package/dist/transport/HttpTransport.d.ts.map +1 -1
- package/dist/transport/HttpTransport.js +12 -6
- package/dist/transport/HttpTransport.js.map +1 -1
- package/dist/transport/SseTransport.d.ts +1 -0
- package/dist/transport/SseTransport.d.ts.map +1 -1
- package/dist/transport/SseTransport.js +14 -7
- package/dist/transport/SseTransport.js.map +1 -1
- package/dist/transport/StreamableHttpTransport.d.ts +2 -0
- package/dist/transport/StreamableHttpTransport.d.ts.map +1 -1
- package/dist/transport/StreamableHttpTransport.js +21 -10
- package/dist/transport/StreamableHttpTransport.js.map +1 -1
- package/dist/types/tool.d.ts +6 -1
- package/dist/types/tool.d.ts.map +1 -1
- package/dist/utils.d.ts +27 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +6 -0
- package/dist/utils.js.map +1 -0
- package/package.json +8 -8
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tests for flag-gated DAG edge emission in HistoryManager.
|
|
3
|
-
*
|
|
4
|
-
* Covers the seven metadata→edge mappings (sequence, branch, merge,
|
|
5
|
-
* verifies, critiques, derives_from, revises) plus flag gating, missing
|
|
6
|
-
* targets, missing ids, and session isolation.
|
|
7
|
-
*/
|
|
8
1
|
export {};
|
|
9
2
|
//# sourceMappingURL=HistoryManager.dag.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HistoryManager.dag.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/core/HistoryManager.dag.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HistoryManager.dag.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/core/HistoryManager.dag.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compile-time exhaustiveness check between `ErrorCode` and the set of
|
|
3
|
+
* error codes actually used by error subclasses (or by direct
|
|
4
|
+
* `SequentialThinkingError` instantiations).
|
|
5
|
+
*
|
|
6
|
+
* Purpose: if a new code is added to `ERROR_CODES` without a corresponding
|
|
7
|
+
* subclass (or known direct usage) being added to the union below, this file
|
|
8
|
+
* fails type-checking. Likewise, if a subclass code is removed from
|
|
9
|
+
* `ERROR_CODES`, TypeScript flags the orphan literal.
|
|
10
|
+
*
|
|
11
|
+
* This file contains NO runtime tests. Vitest's `*.test-d.ts` convention
|
|
12
|
+
* is used purely so the file is type-checked by the project's tsc pass
|
|
13
|
+
* without being treated as a runnable test module.
|
|
14
|
+
*/
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=errors.types.test-d.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.types.test-d.d.ts","sourceRoot":"","sources":["../../src/__tests__/errors.types.test-d.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/eval/fixtures/scenarios.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scenarios.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/eval/fixtures/scenarios.ts"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChE;AA+BD,uCAAuC;AACvC,eAAO,MAAM,SAAS,EAAE,SAAS,YAAY,EA8F5C,CAAC"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backward-compatibility snapshot tests for the {@link ThoughtEvaluator} facade.
|
|
3
|
-
*
|
|
4
|
-
* These tests lock the public API of the post-refactor `ThoughtEvaluator`
|
|
5
|
-
* (which composes `SignalComputer` + `Aggregator` + `PatternDetector` +
|
|
6
|
-
* `Calibrator`) so that future changes cannot silently alter observable
|
|
7
|
-
* behavior.
|
|
8
|
-
*
|
|
9
|
-
* Tests intentionally exercise only the public {@link ThoughtEvaluator} API —
|
|
10
|
-
* no imports from `core/evaluator/*` internals.
|
|
11
|
-
*
|
|
12
|
-
* @module __tests__/evaluator/EvaluatorBackwardCompat
|
|
13
|
-
*/
|
|
14
1
|
export {};
|
|
15
2
|
//# sourceMappingURL=EvaluatorBackwardCompat.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EvaluatorBackwardCompat.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/evaluator/EvaluatorBackwardCompat.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EvaluatorBackwardCompat.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/evaluator/EvaluatorBackwardCompat.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ThoughtData } from '../../core/thought.js';
|
|
2
2
|
import type { IToolRegistry } from '../../contracts/interfaces.js';
|
|
3
3
|
import { type SessionId, type ThoughtId, type EdgeId, type SuspensionToken } from '../../contracts/ids.js';
|
|
4
|
+
import { type BranchId } from '../../contracts/ids.js';
|
|
4
5
|
import type { ToolRecommendation } from '../../types/tool.js';
|
|
5
6
|
import type { SkillRecommendation } from '../../types/skill.js';
|
|
6
7
|
import type { StepRecommendation } from '../../core/step.js';
|
|
@@ -36,10 +37,10 @@ export declare class MockHistoryManager implements IHistoryManager {
|
|
|
36
37
|
addThought(thought: ThoughtData): void;
|
|
37
38
|
getHistory(sessionId?: string): ThoughtData[];
|
|
38
39
|
getHistoryLength(sessionId?: string): number;
|
|
39
|
-
getBranches(sessionId?: string): Record<
|
|
40
|
-
getBranchIds(sessionId?: string):
|
|
41
|
-
registerBranch(_sessionId: string | undefined, _branchId:
|
|
42
|
-
branchExists(sessionId: string | undefined, branchId:
|
|
40
|
+
getBranches(sessionId?: string): Record<BranchId, ThoughtData[]>;
|
|
41
|
+
getBranchIds(sessionId?: string): BranchId[];
|
|
42
|
+
registerBranch(_sessionId: string | undefined, _branchId: BranchId): void;
|
|
43
|
+
branchExists(sessionId: string | undefined, branchId: BranchId): boolean;
|
|
43
44
|
clear(sessionId?: string): void;
|
|
44
45
|
getClearCallCount(): number;
|
|
45
46
|
getAvailableMcpTools(sessionId?: string): string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/__tests__/helpers/factories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAKN,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,wBAAgB,mBAAmB,CAAC,KAAK,SAAiB,GAAG,SAAS,CA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O,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAgB;IAE/C,OAAO,CAAC,WAAW;IAanB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAOtC,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW,EAAE;IAI7C,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM;IAI5C,WAAW,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,WAAW,EAAE,CAAC;IAIhE,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,EAAE;IAI5C,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI;IAIzE,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAIxE,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAM/B,iBAAiB,IAAI,MAAM;IAI3B,oBAAoB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAI9D,kBAAkB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAI5D,YAAY,IAAI,SAAS;CAGzB;AAID,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAY7E;AAID;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,GAAE,MAAM,EAAkB,GAAG,aAAa,CAM5F"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integration tests for the auto-compression trigger in ThoughtProcessor.
|
|
3
|
-
*
|
|
4
|
-
* Verifies that when a reasoning strategy returns `action: 'terminate'` AND
|
|
5
|
-
* the compression service is wired AND the current thought has a `branch_id`,
|
|
6
|
-
* the processor invokes `CompressionService.compressBranch()` to produce a
|
|
7
|
-
* Summary in the SummaryStore. Also verifies that compression failures never
|
|
8
|
-
* break the thought pipeline.
|
|
9
|
-
*/
|
|
10
1
|
export {};
|
|
11
2
|
//# sourceMappingURL=CompressionAutoTrigger.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompressionAutoTrigger.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/CompressionAutoTrigger.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompressionAutoTrigger.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/CompressionAutoTrigger.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integration tests for compression persistence across all 3 backends.
|
|
3
|
-
*
|
|
4
|
-
* Verifies the end-to-end flow:
|
|
5
|
-
* 1. Build a branched session in HistoryManager (with dagEdges so the
|
|
6
|
-
* compression service can walk descendants).
|
|
7
|
-
* 2. Run CompressionService.compressBranch() to produce a Summary in the
|
|
8
|
-
* InMemorySummaryStore (flag-ON path).
|
|
9
|
-
* 3. Persist via persistence.saveSummaries(...) and round-trip via
|
|
10
|
-
* persistence.loadSummaries(...) — assert structural equality.
|
|
11
|
-
*
|
|
12
|
-
* Matrix: 3 backends (Memory / File / SQLite) × 2 flag states (on / off).
|
|
13
|
-
*
|
|
14
|
-
* SQLite: skipped at module level when `better-sqlite3` is unavailable.
|
|
15
|
-
*/
|
|
16
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=CompressionPersistence.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompressionPersistence.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/CompressionPersistence.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompressionPersistence.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/CompressionPersistence.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* End-to-end integration tests for the Strategy layer.
|
|
3
|
-
*
|
|
4
|
-
* Tests the full Strategy integration from {@link ThoughtProcessor} through
|
|
5
|
-
* the MCP response shape. Covers default strategy wiring, terminal vs. ongoing
|
|
6
|
-
* thought hint emission, branch handling, multi-thought sequences, backward
|
|
7
|
-
* compatible response shape, and graceful degradation when a strategy throws.
|
|
8
|
-
*/
|
|
9
1
|
export {};
|
|
10
2
|
//# sourceMappingURL=StrategyIntegration.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StrategyIntegration.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/StrategyIntegration.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StrategyIntegration.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/StrategyIntegration.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* End-to-end integration tests for the {@link TreeOfThoughtStrategy}.
|
|
3
|
-
*
|
|
4
|
-
* Drives the strategy through the full {@link ThoughtProcessor} pipeline
|
|
5
|
-
* with a real {@link HistoryManager} + {@link EdgeStore} + {@link MemoryPersistence}
|
|
6
|
-
* so that `ctx.graph.leaves(sessionId)` reflects the actual DAG built from
|
|
7
|
-
* processed thoughts.
|
|
8
|
-
*
|
|
9
|
-
* Scenarios covered:
|
|
10
|
-
* a. Single thought → no strategy_hint (frontier empty → continue)
|
|
11
|
-
* b. High-confidence frontier → terminate with reason 'confidence threshold'
|
|
12
|
-
* c. Wide frontier (branches) → branch hint emitted when current is outside beam
|
|
13
|
-
* d. Flag-off (SequentialStrategy) → no strategy_hint for ongoing thoughts
|
|
14
|
-
* e. Plateau across low-score thoughts → terminate with reason 'plateau'
|
|
15
|
-
* f. Strategy throws → graceful degradation: response intact, no strategy_hint
|
|
16
|
-
*/
|
|
17
1
|
export {};
|
|
18
2
|
//# sourceMappingURL=ToTStrategyIntegration.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToTStrategyIntegration.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/ToTStrategyIntegration.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToTStrategyIntegration.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/ToTStrategyIntegration.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dag-edges.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/dag-edges.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dag-edges.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/integration/dag-edges.test.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integration tests for the full reasoning pipeline.
|
|
3
|
-
*
|
|
4
|
-
* Exercises ThoughtProcessor + ThoughtEvaluator together across multi-step
|
|
5
|
-
* reasoning chains: hypothesis → verification → synthesis, branching + merge,
|
|
6
|
-
* backward compatibility, metacognitive observations, and confidence tracking.
|
|
7
|
-
*
|
|
8
|
-
* @module __tests__/reasoning-integration
|
|
9
|
-
*/
|
|
10
1
|
export {};
|
|
11
2
|
//# sourceMappingURL=reasoning-integration.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-integration.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/reasoning-integration.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reasoning-integration.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/reasoning-integration.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strategy Contract Tests — enforces purity constraints on all
|
|
3
|
-
* {@link IReasoningStrategy} implementations (Oracle review concern C2).
|
|
4
|
-
*
|
|
5
|
-
* Every strategy MUST be:
|
|
6
|
-
* - Idempotent: repeated `decide()` calls with identical context produce
|
|
7
|
-
* deeply-equal output.
|
|
8
|
-
* - Stateless: instances hold no own mutable fields (only the readonly
|
|
9
|
-
* `name` discriminator is allowed).
|
|
10
|
-
* - Deterministic: separate instances yield identical decisions for the
|
|
11
|
-
* same context.
|
|
12
|
-
* - Side-effect free: `decide()` must not mutate the input
|
|
13
|
-
* {@link StrategyContext}.
|
|
14
|
-
*
|
|
15
|
-
* @module __tests__/strategies/StrategyContract.test
|
|
16
|
-
*/
|
|
17
1
|
export {};
|
|
18
2
|
//# sourceMappingURL=StrategyContract.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StrategyContract.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/strategies/StrategyContract.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StrategyContract.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/strategies/StrategyContract.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Comprehensive tests for ThoughtProcessor.
|
|
3
|
-
*
|
|
4
|
-
* This test file covers input validation, error handling, history integration,
|
|
5
|
-
* response formatting, and edge cases for the ThoughtProcessor class.
|
|
6
|
-
*/
|
|
7
1
|
export {};
|
|
8
2
|
//# sourceMappingURL=thought-processor.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thought-processor.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/thought-processor.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thought-processor.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/thought-processor.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compile-time type assertions covering critical typing invariants.
|
|
3
|
+
*
|
|
4
|
+
* This file contains NO runtime tests. Vitest's `*.test-d.ts` convention
|
|
5
|
+
* keeps the file inside the tsc pass (so type errors fail `npm run type-check`)
|
|
6
|
+
* while excluded from the test runner pattern (`*.{test,spec}.{ts,tsx}`).
|
|
7
|
+
*
|
|
8
|
+
* Coverage:
|
|
9
|
+
* 1. Branded ID assignability — branded types must NOT be cross-assignable.
|
|
10
|
+
* 2. ValidatedThought exhaustiveness — all 7 variants must satisfy the union;
|
|
11
|
+
* a plain `ThoughtData` without a discriminating `thought_type` must NOT.
|
|
12
|
+
* 3. Schema-type sync — `ThoughtData` must remain derivable from `SchemaOutput`.
|
|
13
|
+
* 4. DI ServiceRegistry — every service key resolved in `lib.ts` exists in the registry.
|
|
14
|
+
*/
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=typing.test-d.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typing.test-d.d.ts","sourceRoot":"","sources":["../../src/__tests__/typing.test-d.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
|