memento-mcp-server 1.35.0 → 2.0.0
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/config/ranking-profiles/default.toml +0 -4
- package/config/ranking-profiles/feedback-heavy.toml +0 -4
- package/config/ranking-weights.toml +1 -19
- package/dist/cli/agent-ops-core.js +1 -1
- package/dist/cli/agent-ops-core.js.map +1 -1
- package/dist/cli/agent-ops.js +2 -2
- package/dist/cli/agent-ops.js.map +1 -1
- package/dist/cli/claude-code-hook.js +1 -1
- package/dist/cli/claude-code-hook.js.map +1 -1
- package/dist/cli/codex-hook.js +1 -1
- package/dist/cli/codex-hook.js.map +1 -1
- package/dist/cli/project-connect.d.ts +17 -0
- package/dist/cli/project-connect.d.ts.map +1 -0
- package/dist/cli/project-connect.js +201 -0
- package/dist/cli/project-connect.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -0
- package/dist/cli.js.map +1 -1
- package/dist/node_modules/@memento/agent-integration/package.json +2 -2
- package/dist/node_modules/@memento/core/dist/bootstrap/batch-telemetry-relation.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/bootstrap/batch-telemetry-relation.js +3 -1
- package/dist/node_modules/@memento/core/dist/bootstrap/batch-telemetry-relation.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/bootstrap/write-and-meta.d.ts +1 -5
- package/dist/node_modules/@memento/core/dist/bootstrap/write-and-meta.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/bootstrap/write-and-meta.js +2 -48
- package/dist/node_modules/@memento/core/dist/bootstrap/write-and-meta.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/bootstrap.d.ts +0 -4
- package/dist/node_modules/@memento/core/dist/bootstrap.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/bootstrap.js +2 -18
- package/dist/node_modules/@memento/core/dist/bootstrap.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/config/ranking-profiles/default.toml +0 -4
- package/dist/node_modules/@memento/core/dist/config/ranking-profiles/feedback-heavy.toml +0 -4
- package/dist/node_modules/@memento/core/dist/config/ranking-weights.toml +1 -19
- package/dist/node_modules/@memento/core/dist/context.d.ts +2 -0
- package/dist/node_modules/@memento/core/dist/context.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/context.js +1 -2
- package/dist/node_modules/@memento/core/dist/context.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/database/schema.sql +0 -36
- package/dist/node_modules/@memento/core/dist/domains/consolidation/repositories/consolidation-repository.d.ts +4 -2
- package/dist/node_modules/@memento/core/dist/domains/consolidation/repositories/consolidation-repository.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/consolidation/repositories/consolidation-repository.js +14 -5
- package/dist/node_modules/@memento/core/dist/domains/consolidation/repositories/consolidation-repository.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/cluster-judge.d.ts +28 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/cluster-judge.d.ts.map +1 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/cluster-judge.js +83 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/cluster-judge.js.map +1 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/sleep-consolidation-service.d.ts +21 -4
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/sleep-consolidation-service.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/sleep-consolidation-service.js +125 -43
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/sleep-consolidation-service.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/template-label-normalizer.d.ts +2 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/template-label-normalizer.d.ts.map +1 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/template-label-normalizer.js +10 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/template-label-normalizer.js.map +1 -0
- package/dist/node_modules/@memento/core/dist/domains/embedding/services/vector-compatibility-service.js +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/introspection/meta-memory-service.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/introspection/meta-memory-service.js +1 -5
- package/dist/node_modules/@memento/core/dist/domains/memory/introspection/meta-memory-service.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-definition.d.ts +3 -3
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-definition.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-definition.js +1 -4
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-definition.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-envelope.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-envelope.js +0 -24
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-envelope.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-post-search.d.ts +0 -6
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-post-search.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-post-search.js +0 -85
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-post-search.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-results.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-results.js +0 -5
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-results.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-schema.d.ts +12 -12
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-types.d.ts +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool-types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool.js +2 -9
- package/dist/node_modules/@memento/core/dist/domains/memory/recall/recall-tool.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-near-duplicate.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-near-duplicate.js +1 -3
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-near-duplicate.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-augmentation.d.ts +1 -9
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-augmentation.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-augmentation.js +1 -141
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-augmentation.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-db-helpers.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-db-helpers.js +1 -3
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-db-helpers.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-memory-item.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-memory-item.js +9 -43
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-memory-item.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-schema.d.ts +12 -19
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-schema.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-schema.js +0 -2
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-schema.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-types.d.ts +0 -2
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool-types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool.d.ts +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool.js +8 -17
- package/dist/node_modules/@memento/core/dist/domains/memory/remember/remember-tool.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/services/knowledge-context-bundle-builder.d.ts +0 -4
- package/dist/node_modules/@memento/core/dist/domains/memory/services/knowledge-context-bundle-builder.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/services/knowledge-context-bundle-builder.js +3 -110
- package/dist/node_modules/@memento/core/dist/domains/memory/services/knowledge-context-bundle-builder.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/tools/forget-tool.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/tools/forget-tool.js +0 -21
- package/dist/node_modules/@memento/core/dist/domains/memory/tools/forget-tool.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/tools/memory-injection-prompt.d.ts +2 -0
- package/dist/node_modules/@memento/core/dist/domains/memory/tools/memory-injection-prompt.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/tools/memory-injection-prompt.js +49 -5
- package/dist/node_modules/@memento/core/dist/domains/memory/tools/memory-injection-prompt.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-metrics-collector.d.ts +2 -4
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-metrics-collector.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-metrics-collector.js +0 -9
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-metrics-collector.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-metrics-types.d.ts +1 -14
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-metrics-types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-threshold-manager.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-threshold-manager.js +0 -3
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/quality-threshold-manager.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-baseline.d.ts +2 -18
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-baseline.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-baseline.js +2 -20
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-baseline.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-comparison.d.ts +2 -4
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-comparison.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-comparison.js +1 -2
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-comparison.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-degradation-alerts.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-degradation-alerts.js +0 -11
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-degradation-alerts.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-files.d.ts +0 -40
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-files.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-files.js +0 -278
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-files.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics.d.ts +2 -2
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics.js +1 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/personal-agent/adapters/tool-context-knowledge-context-adapter.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/personal-agent/adapters/tool-context-knowledge-context-adapter.js +0 -2
- package/dist/node_modules/@memento/core/dist/domains/personal-agent/adapters/tool-context-knowledge-context-adapter.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/personal-agent/mappers/knowledge-candidate-to-remember-params.js +1 -1
- package/dist/node_modules/@memento/core/dist/domains/personal-agent/mappers/knowledge-candidate-to-remember-params.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/tools/add-relation-tool.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/tools/add-relation-tool.js +0 -15
- package/dist/node_modules/@memento/core/dist/domains/relation/tools/add-relation-tool.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-result-ranker.d.ts +1 -2
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-result-ranker.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-result-ranker.js +10 -63
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-result-ranker.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-search-engine.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-search-engine.js +1 -27
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-search-engine.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-search-types.d.ts +0 -11
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/hybrid-search-types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine-ranking.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine-ranking.js +0 -11
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine-ranking.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine-sql-builder.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine-sql-builder.js +0 -4
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine-sql-builder.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine.types.d.ts +0 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-engine/search-engine.types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-composite.d.ts +2 -15
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-composite.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-composite.js +6 -65
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-composite.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-signals.d.ts +0 -9
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-signals.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-signals.js +0 -32
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking-signals.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking.types.d.ts +0 -15
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking/search-ranking.types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking.d.ts +2 -8
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking.js +2 -11
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/search-ranking.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/repositories/telemetry-memory-quality-query.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/repositories/telemetry-memory-quality-query.js +1 -41
- package/dist/node_modules/@memento/core/dist/domains/telemetry/repositories/telemetry-memory-quality-query.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/repositories/telemetry-repository.d.ts +0 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/repositories/telemetry-repository.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/repositories/telemetry-repository.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/tools/get-telemetry-summary-tool.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/tools/get-telemetry-summary-tool.js +0 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/tools/get-telemetry-summary-tool.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/index.d.ts +0 -10
- package/dist/node_modules/@memento/core/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/index.js +0 -12
- package/dist/node_modules/@memento/core/dist/index.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/init.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/init.js +0 -2
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/init.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migration-repair-helpers.d.ts +43 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migration-repair-helpers.d.ts.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migration-repair-helpers.js +255 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migration-repair-helpers.js.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/048-repair-duplicate-semantic-content.d.ts +3 -4
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/048-repair-duplicate-semantic-content.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/048-repair-duplicate-semantic-content.js +4 -5
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/048-repair-duplicate-semantic-content.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/049-repair-triple-sentence-memories.d.ts +1 -14
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/049-repair-triple-sentence-memories.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/049-repair-triple-sentence-memories.js +34 -19
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/049-repair-triple-sentence-memories.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/050-drop-triple-schema.d.ts +17 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/050-drop-triple-schema.d.ts.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/050-drop-triple-schema.js +102 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/050-drop-triple-schema.js.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/051-drop-consolidation-score-columns.d.ts +17 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/051-drop-consolidation-score-columns.d.ts.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/051-drop-consolidation-score-columns.js +58 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/051-drop-consolidation-score-columns.js.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/052-drop-event-outbox.d.ts +17 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/052-drop-event-outbox.d.ts.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/052-drop-event-outbox.js +42 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/migration/migrations/052-drop-event-outbox.js.map +1 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-paths.d.ts +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-paths.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-paths.js +0 -2
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-paths.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-policies.d.ts +0 -2
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-policies.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-policies.js +0 -3
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation-policies.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation.d.ts +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation.js +0 -47
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/log-rotation.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-execution-coordinator.d.ts +2 -2
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-execution-coordinator.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-execution-coordinator.js +49 -27
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-execution-coordinator.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-timeout-resolver.d.ts +2 -7
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-timeout-resolver.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-timeout-resolver.js +2 -12
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-job-timeout-resolver.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-recurring-schedules.d.ts +1 -12
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-recurring-schedules.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-recurring-schedules.js +8 -76
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-recurring-schedules.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-context.d.ts +1 -12
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-context.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-context.js +0 -10
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-context.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-default-config.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-default-config.js +0 -12
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-default-config.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-interval.d.ts +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-interval.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-interval.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-control.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-control.js +1 -10
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-control.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-processor.d.ts +2 -10
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-processor.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-processor.js +0 -4
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-processor.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-runners.d.ts +1 -5
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-runners.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-runners.js +2 -18
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-job-runners.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-service-wiring.d.ts +1 -13
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-service-wiring.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-service-wiring.js +0 -15
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-service-wiring.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-types.d.ts +0 -13
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-types.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-validate-config.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-validate-config.js +0 -33
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler-validate-config.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler.d.ts +5 -9
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler.js +85 -29
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/batch-scheduler/batch-scheduler.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-augmentation-handlers.d.ts +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-augmentation-handlers.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-augmentation-handlers.js +0 -51
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-augmentation-handlers.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-consolidation-relation-handlers.d.ts +0 -3
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-consolidation-relation-handlers.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-consolidation-relation-handlers.js +0 -149
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-consolidation-relation-handlers.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-run-context.d.ts +0 -6
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/handlers/batch-scheduler-run-context.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/job-queue.d.ts +2 -2
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/job-queue.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/job-queue.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/repositories/job-run-repository.d.ts +5 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/repositories/job-run-repository.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/repositories/job-run-repository.js +6 -0
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/repositories/job-run-repository.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/api-tokens.d.ts +2 -7
- package/dist/node_modules/@memento/core/dist/shared/config/api-tokens.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/api-tokens.js +22 -40
- package/dist/node_modules/@memento/core/dist/shared/config/api-tokens.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/constants.d.ts +1 -25
- package/dist/node_modules/@memento/core/dist/shared/config/constants.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/constants.js +1 -15
- package/dist/node_modules/@memento/core/dist/shared/config/constants.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/environment.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/environment.js +1 -2
- package/dist/node_modules/@memento/core/dist/shared/config/environment.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/index.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/index.js +0 -10
- package/dist/node_modules/@memento/core/dist/shared/config/index.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/llm-model-resolver.d.ts +2 -2
- package/dist/node_modules/@memento/core/dist/shared/config/llm-model-resolver.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/llm-model-resolver.js +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/llm-model-resolver.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/ranking-weights-loader.d.ts +0 -6
- package/dist/node_modules/@memento/core/dist/shared/config/ranking-weights-loader.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/config/ranking-weights-loader.js +2 -18
- package/dist/node_modules/@memento/core/dist/shared/config/ranking-weights-loader.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/types/api-token.d.ts +1 -0
- package/dist/node_modules/@memento/core/dist/shared/types/api-token.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/types/memory.types.d.ts +0 -4
- package/dist/node_modules/@memento/core/dist/shared/types/memory.types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/types/relation.types.d.ts +0 -1
- package/dist/node_modules/@memento/core/dist/shared/types/relation.types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/types/search.types.d.ts +0 -1
- package/dist/node_modules/@memento/core/dist/shared/types/search.types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/type-param-validator.d.ts +6 -27
- package/dist/node_modules/@memento/core/dist/shared/utils/type-param-validator.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/type-param-validator.js +11 -71
- package/dist/node_modules/@memento/core/dist/shared/utils/type-param-validator.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/tools/index.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/tools/index.js +0 -2
- package/dist/node_modules/@memento/core/dist/tools/index.js.map +1 -1
- package/dist/node_modules/@memento/core/dist/tools/types.d.ts +3 -8
- package/dist/node_modules/@memento/core/dist/tools/types.d.ts.map +1 -1
- package/dist/node_modules/@memento/core/dist/tools/types.js +0 -1
- package/dist/node_modules/@memento/core/dist/tools/types.js.map +1 -1
- package/dist/node_modules/@memento/core/package.json +1 -1
- package/dist/node_modules/@memento/core/scripts/copy-assets.js +2 -10
- package/dist/server/audit-tool-dispatch.d.ts +8 -0
- package/dist/server/audit-tool-dispatch.d.ts.map +1 -1
- package/dist/server/audit-tool-dispatch.js +26 -2
- package/dist/server/audit-tool-dispatch.js.map +1 -1
- package/dist/server/auth/api-token-registry.d.ts +1 -0
- package/dist/server/auth/api-token-registry.d.ts.map +1 -1
- package/dist/server/auth/api-token-registry.js +5 -1
- package/dist/server/auth/api-token-registry.js.map +1 -1
- package/dist/server/http-server-websocket.d.ts +17 -2
- package/dist/server/http-server-websocket.d.ts.map +1 -1
- package/dist/server/http-server-websocket.js +45 -3
- package/dist/server/http-server-websocket.js.map +1 -1
- package/dist/server/http-server.d.ts.map +1 -1
- package/dist/server/http-server.js +19 -14
- package/dist/server/http-server.js.map +1 -1
- package/dist/server/mcp-server-factory.d.ts +1 -1
- package/dist/server/mcp-server-factory.d.ts.map +1 -1
- package/dist/server/mcp-server-factory.js +1 -1
- package/dist/server/mcp-server-factory.js.map +1 -1
- package/dist/server/middleware/http-audit.middleware.d.ts.map +1 -1
- package/dist/server/middleware/http-audit.middleware.js +2 -0
- package/dist/server/middleware/http-audit.middleware.js.map +1 -1
- package/dist/server/middleware/index.d.ts +1 -1
- package/dist/server/middleware/index.d.ts.map +1 -1
- package/dist/server/middleware/index.js +1 -1
- package/dist/server/middleware/index.js.map +1 -1
- package/dist/server/middleware/programmatic-auth.middleware.d.ts +5 -0
- package/dist/server/middleware/programmatic-auth.middleware.d.ts.map +1 -1
- package/dist/server/middleware/programmatic-auth.middleware.js +35 -2
- package/dist/server/middleware/programmatic-auth.middleware.js.map +1 -1
- package/dist/server/middleware/tool-context.middleware.d.ts.map +1 -1
- package/dist/server/middleware/tool-context.middleware.js +5 -2
- package/dist/server/middleware/tool-context.middleware.js.map +1 -1
- package/dist/server/optional-env-number.d.ts +6 -0
- package/dist/server/optional-env-number.d.ts.map +1 -0
- package/dist/server/optional-env-number.js +12 -0
- package/dist/server/optional-env-number.js.map +1 -0
- package/dist/server/routes/admin/admin-batch.routes.d.ts.map +1 -1
- package/dist/server/routes/admin/admin-batch.routes.js +19 -11
- package/dist/server/routes/admin/admin-batch.routes.js.map +1 -1
- package/dist/server/routes/admin/admin-memory-search.routes.d.ts +23 -0
- package/dist/server/routes/admin/admin-memory-search.routes.d.ts.map +1 -0
- package/dist/server/routes/admin/admin-memory-search.routes.js +90 -0
- package/dist/server/routes/admin/admin-memory-search.routes.js.map +1 -0
- package/dist/server/routes/admin/admin-status-service.d.ts +12 -0
- package/dist/server/routes/admin/admin-status-service.d.ts.map +1 -1
- package/dist/server/routes/admin/admin-status-service.js +26 -3
- package/dist/server/routes/admin/admin-status-service.js.map +1 -1
- package/dist/server/routes/admin/admin-tools.routes.d.ts.map +1 -1
- package/dist/server/routes/admin/admin-tools.routes.js +1 -36
- package/dist/server/routes/admin/admin-tools.routes.js.map +1 -1
- package/dist/server/routes/admin.routes.d.ts.map +1 -1
- package/dist/server/routes/admin.routes.js +2 -0
- package/dist/server/routes/admin.routes.js.map +1 -1
- package/dist/server/routes/auth.routes.d.ts.map +1 -1
- package/dist/server/routes/auth.routes.js +9 -1
- package/dist/server/routes/auth.routes.js.map +1 -1
- package/dist/server/routes/mcp/handlers.d.ts.map +1 -1
- package/dist/server/routes/mcp/handlers.js +7 -2
- package/dist/server/routes/mcp/handlers.js.map +1 -1
- package/dist/server/routes/tools.routes.d.ts.map +1 -1
- package/dist/server/routes/tools.routes.js +2 -0
- package/dist/server/routes/tools.routes.js.map +1 -1
- package/dist/server/server-info.js +1 -1
- package/dist/server/server-info.js.map +1 -1
- package/dist/server/utils/project-id-header.d.ts +4 -0
- package/dist/server/utils/project-id-header.d.ts.map +1 -0
- package/dist/server/utils/project-id-header.js +9 -0
- package/dist/server/utils/project-id-header.js.map +1 -0
- package/dist/tools/types.d.ts +0 -1
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js +0 -2
- package/dist/tools/types.js.map +1 -1
- package/package.json +4 -10
- package/static/css/components.css +348 -21
- package/static/css/dashboard.css +592 -200
- package/static/css/tokens.css +27 -3
- package/static/dashboard.html +422 -239
- package/static/js/agent-sessions-panel-data.js +1 -0
- package/static/js/agent-sessions-panel-render-sessions.js +17 -4
- package/static/js/agent-sessions-panel-shared.js +13 -0
- package/static/js/agent-sessions-panel.js +22 -0
- package/static/js/anchor-map-render.js +1 -1
- package/static/js/anchor-map-search.js +1 -1
- package/static/js/anchor-map-shared.js +1 -1
- package/static/js/anchor-map.js +1 -1
- package/static/js/dashboard-auth-render-tabs.js +13 -0
- package/static/js/dashboard-tabs-init.js +22 -0
- package/static/js/dashboard-tabs-panels.js +2 -0
- package/static/js/dashboard-tabs.js +67 -2
- package/static/js/embedding-map-fetch-status.js +7 -7
- package/static/js/jobs-panel-fetch.js +17 -9
- package/static/js/jobs-panel-render.js +90 -21
- package/static/js/jobs-panel-shared.js +92 -7
- package/static/js/jobs-panel.js +46 -19
- package/static/js/memory-finder-panel.js +155 -0
- package/static/js/memory-finder-search.js +170 -0
- package/static/js/ops-overview-panel.js +599 -0
- package/static/js/ops-status-panel.js +162 -0
- package/static/js/review-candidates-panel-health-render.js +1 -1
- package/static/js/table-card-labels.js +43 -0
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/consolidation-outbox-worker.d.ts +0 -20
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/consolidation-outbox-worker.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/consolidation-outbox-worker.js +0 -28
- package/dist/node_modules/@memento/core/dist/domains/consolidation/services/consolidation-outbox-worker.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/repositories/kg-triple-repository.interface.d.ts +0 -32
- package/dist/node_modules/@memento/core/dist/domains/memory/repositories/kg-triple-repository.interface.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/repositories/kg-triple-repository.interface.js +0 -5
- package/dist/node_modules/@memento/core/dist/domains/memory/repositories/kg-triple-repository.interface.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/convert-episodic-to-semantic-tool.d.ts +0 -35
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/convert-episodic-to-semantic-tool.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/convert-episodic-to-semantic-tool.js +0 -247
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/convert-episodic-to-semantic-tool.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/duplicate-content-plan.d.ts +0 -29
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/duplicate-content-plan.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/duplicate-content-plan.js +0 -104
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/duplicate-content-plan.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/episodic-semantic-conversion.d.ts +0 -43
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/episodic-semantic-conversion.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/episodic-semantic-conversion.js +0 -233
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/episodic-semantic-conversion.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-crud.d.ts +0 -52
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-crud.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-crud.js +0 -353
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-crud.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-relations.d.ts +0 -19
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-relations.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-relations.js +0 -140
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-relations.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-scoring.d.ts +0 -35
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-scoring.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-scoring.js +0 -104
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-scoring.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-similarity.d.ts +0 -39
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-similarity.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-similarity.js +0 -189
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-similarity.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-statistics.d.ts +0 -64
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-statistics.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-statistics.js +0 -113
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-statistics.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-pipeline.d.ts +0 -38
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-pipeline.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-pipeline.js +0 -404
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-pipeline.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-service.d.ts +0 -38
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-service.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-service.js +0 -117
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-service.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-types.d.ts +0 -91
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-types.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-types.js +0 -16
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/semantic-memory-update-types.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-extraction-metadata.d.ts +0 -24
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-extraction-metadata.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-extraction-metadata.js +0 -47
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-extraction-metadata.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-repair-plan.d.ts +0 -27
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-repair-plan.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-repair-plan.js +0 -47
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-repair-plan.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-sentence.d.ts +0 -25
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-sentence.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-sentence.js +0 -92
- package/dist/node_modules/@memento/core/dist/domains/memory/semantic/triple-sentence.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/consolidation-metrics-collector.d.ts +0 -8
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/consolidation-metrics-collector.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/consolidation-metrics-collector.js +0 -207
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/consolidation-metrics-collector.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-extreme-scenarios.d.ts +0 -218
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-extreme-scenarios.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-extreme-scenarios.js +0 -317
- package/dist/node_modules/@memento/core/dist/domains/monitoring/services/quality-assurance/vector-search-quality-metrics/report-extreme-scenarios.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/entity-linker.d.ts +0 -55
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/entity-linker.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/entity-linker.js +0 -154
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/entity-linker.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/interfaces.d.ts +0 -99
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/interfaces.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/interfaces.js +0 -6
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/interfaces.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/predicate-canonicalizer.d.ts +0 -65
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/predicate-canonicalizer.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/predicate-canonicalizer.js +0 -219
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/predicate-canonicalizer.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-chunk-merge.d.ts +0 -7
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-chunk-merge.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-chunk-merge.js +0 -26
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-chunk-merge.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-errors.d.ts +0 -8
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-errors.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-errors.js +0 -86
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-errors.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-pipeline.d.ts +0 -50
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-pipeline.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-pipeline.js +0 -120
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-pipeline.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-providers.d.ts +0 -20
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-providers.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-providers.js +0 -232
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-llm-providers.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-result-helpers.d.ts +0 -12
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-result-helpers.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-result-helpers.js +0 -93
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-result-helpers.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-service.d.ts +0 -68
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-service.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-service.js +0 -327
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-service.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-statistics.d.ts +0 -74
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-statistics.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-statistics.js +0 -146
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extraction-statistics.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extractor.d.ts +0 -102
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extractor.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extractor.js +0 -443
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-extractor.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-input-normalizer.d.ts +0 -12
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-input-normalizer.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-input-normalizer.js +0 -10
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-input-normalizer.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-normalizer.d.ts +0 -28
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-normalizer.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-normalizer.js +0 -83
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-normalizer.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-parser.d.ts +0 -49
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-parser.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-parser.js +0 -130
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-parser.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-pipeline-orchestrator.d.ts +0 -3
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-pipeline-orchestrator.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-pipeline-orchestrator.js +0 -55
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-pipeline-orchestrator.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-text-chunker.d.ts +0 -9
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-text-chunker.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-text-chunker.js +0 -31
- package/dist/node_modules/@memento/core/dist/domains/relation/services/triple-extraction/triple-text-chunker.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/tools/extract-triples-tool.d.ts +0 -13
- package/dist/node_modules/@memento/core/dist/domains/relation/tools/extract-triples-tool.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/relation/tools/extract-triples-tool.js +0 -153
- package/dist/node_modules/@memento/core/dist/domains/relation/tools/extract-triples-tool.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/relation-recall-candidate-expansion.d.ts +0 -41
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/relation-recall-candidate-expansion.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/relation-recall-candidate-expansion.js +0 -203
- package/dist/node_modules/@memento/core/dist/domains/search/algorithms/relation-recall-candidate-expansion.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/services/event-outbox-service.d.ts +0 -38
- package/dist/node_modules/@memento/core/dist/domains/telemetry/services/event-outbox-service.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/domains/telemetry/services/event-outbox-service.js +0 -81
- package/dist/node_modules/@memento/core/dist/domains/telemetry/services/event-outbox-service.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/consolidation-score-service.d.ts +0 -81
- package/dist/node_modules/@memento/core/dist/infrastructure/consolidation-score-service.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/consolidation-score-service.js +0 -182
- package/dist/node_modules/@memento/core/dist/infrastructure/consolidation-score-service.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/repositories/kg-triple-repository-sqlite.impl.d.ts +0 -16
- package/dist/node_modules/@memento/core/dist/infrastructure/database/repositories/kg-triple-repository-sqlite.impl.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/repositories/kg-triple-repository-sqlite.impl.js +0 -37
- package/dist/node_modules/@memento/core/dist/infrastructure/database/repositories/kg-triple-repository-sqlite.impl.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/ensure-memory-item-triple-extraction-columns.d.ts +0 -7
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/ensure-memory-item-triple-extraction-columns.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/ensure-memory-item-triple-extraction-columns.js +0 -37
- package/dist/node_modules/@memento/core/dist/infrastructure/database/sqlite/ensure-memory-item-triple-extraction-columns.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/triple-extraction-logger.d.ts +0 -98
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/triple-extraction-logger.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/triple-extraction-logger.js +0 -236
- package/dist/node_modules/@memento/core/dist/infrastructure/logging/triple-extraction-logger.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-chunk.d.ts +0 -5
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-chunk.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-chunk.js +0 -11
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-chunk.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-memory-status.d.ts +0 -6
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-memory-status.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-memory-status.js +0 -6
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-memory-status.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-retry.d.ts +0 -31
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-retry.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-retry.js +0 -210
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job-retry.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job.types.d.ts +0 -82
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job.types.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job.types.js +0 -6
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job/triple-extraction-batch-job.types.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job.d.ts +0 -30
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job.js +0 -175
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/jobs/triple-extraction-batch-job.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/relation-validator-executor.d.ts +0 -40
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/relation-validator-executor.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/relation-validator-executor.js +0 -159
- package/dist/node_modules/@memento/core/dist/infrastructure/scheduler/relation-validator-executor.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/prompts/triple-extraction.txt +0 -81
- package/dist/node_modules/@memento/core/dist/shared/interfaces/consolidation-score.interface.d.ts +0 -11
- package/dist/node_modules/@memento/core/dist/shared/interfaces/consolidation-score.interface.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/interfaces/consolidation-score.interface.js +0 -6
- package/dist/node_modules/@memento/core/dist/shared/interfaces/consolidation-score.interface.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/types/consolidation-score.types.d.ts +0 -67
- package/dist/node_modules/@memento/core/dist/shared/types/consolidation-score.types.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/types/consolidation-score.types.js +0 -5
- package/dist/node_modules/@memento/core/dist/shared/types/consolidation-score.types.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/types/triple-extraction.d.ts +0 -133
- package/dist/node_modules/@memento/core/dist/shared/types/triple-extraction.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/types/triple-extraction.js +0 -6
- package/dist/node_modules/@memento/core/dist/shared/types/triple-extraction.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/prompt-template-loader.d.ts +0 -48
- package/dist/node_modules/@memento/core/dist/shared/utils/prompt-template-loader.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/prompt-template-loader.js +0 -104
- package/dist/node_modules/@memento/core/dist/shared/utils/prompt-template-loader.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/triple-cache.d.ts +0 -90
- package/dist/node_modules/@memento/core/dist/shared/utils/triple-cache.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/triple-cache.js +0 -124
- package/dist/node_modules/@memento/core/dist/shared/utils/triple-cache.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/write-coalescing.d.ts +0 -77
- package/dist/node_modules/@memento/core/dist/shared/utils/write-coalescing.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/shared/utils/write-coalescing.js +0 -189
- package/dist/node_modules/@memento/core/dist/shared/utils/write-coalescing.js.map +0 -1
- package/dist/node_modules/@memento/core/dist/workers/consolidation-score-worker.d.ts +0 -99
- package/dist/node_modules/@memento/core/dist/workers/consolidation-score-worker.d.ts.map +0 -1
- package/dist/node_modules/@memento/core/dist/workers/consolidation-score-worker.js +0 -405
- package/dist/node_modules/@memento/core/dist/workers/consolidation-score-worker.js.map +0 -1
- package/dist/node_modules/@memento/core/prompts/triple-extraction.txt +0 -81
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Triple 추출기 클래스
|
|
3
|
-
* LLM을 사용하여 텍스트에서 Triple을 추출합니다.
|
|
4
|
-
*
|
|
5
|
-
* Given: 텍스트와 추출 옵션이 제공됨
|
|
6
|
-
* When: LLM을 사용하여 Triple을 추출함
|
|
7
|
-
* Then: 추출된 Triple 배열을 반환함
|
|
8
|
-
*/
|
|
9
|
-
import OpenAI from 'openai';
|
|
10
|
-
import { GoogleGenAI } from '@google/genai';
|
|
11
|
-
import { mementoConfig } from '../../../../shared/config/index.js';
|
|
12
|
-
import { resolveBoundLlmProvider, resolveLlmModel, resolveLlmProvider } from '../../../../shared/config/llm-model-resolver.js';
|
|
13
|
-
import { PromptTemplateLoader } from '../../../../shared/utils/prompt-template-loader.js';
|
|
14
|
-
import { logExternalApiRetry } from '../../../../shared/utils/external-api-retry-logging.js';
|
|
15
|
-
import { logger } from '../../../../shared/utils/logger.js';
|
|
16
|
-
import { determineLlmProvider } from '../llm-provider-selection.js';
|
|
17
|
-
import { getRetryOptions } from '../../../../shared/config/retry-options-loader.js';
|
|
18
|
-
import { LLMClientInitializer } from '../../../../shared/services/llm-client-initializer.js';
|
|
19
|
-
import { RelationRetryManager } from '../relation-retry-manager.js';
|
|
20
|
-
/**
|
|
21
|
-
* Triple 추출기 클래스
|
|
22
|
-
* LLM을 사용하여 텍스트에서 Triple을 추출합니다.
|
|
23
|
-
*/
|
|
24
|
-
export class TripleExtractor {
|
|
25
|
-
openaiClient = null;
|
|
26
|
-
geminiClient = null;
|
|
27
|
-
preferredProvider = null;
|
|
28
|
-
initializedProviders = [];
|
|
29
|
-
retryManager;
|
|
30
|
-
initializationPromise = null;
|
|
31
|
-
// 기본 설정
|
|
32
|
-
DEFAULT_TEMPERATURE = 0.3;
|
|
33
|
-
DEFAULT_MAX_TOKENS = 2000;
|
|
34
|
-
SYSTEM_MESSAGE = 'You are a knowledge graph extractor. Extract triples (subject, predicate, object) from observations and return JSON format only.';
|
|
35
|
-
constructor(retryManager) {
|
|
36
|
-
this.initializationPromise = this.initializeClients();
|
|
37
|
-
const retryOptions = getRetryOptions();
|
|
38
|
-
this.retryManager = retryManager ?? new RelationRetryManager({
|
|
39
|
-
maxAttempts: retryOptions.external_api.maxAttempts,
|
|
40
|
-
baseDelay: retryOptions.external_api.baseDelay,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Given: 텍스트와 추출 옵션이 제공됨
|
|
45
|
-
* When: LLM을 사용하여 Triple을 추출함
|
|
46
|
-
* Then: 추출된 Triple 배열과 rawResponse, provider를 반환함
|
|
47
|
-
*
|
|
48
|
-
* @param text - 추출할 텍스트
|
|
49
|
-
* @param options - 추출 옵션
|
|
50
|
-
* @returns 추출된 Triple 배열과 메타데이터
|
|
51
|
-
*/
|
|
52
|
-
async extract(text, options) {
|
|
53
|
-
// 초기화 완료 대기
|
|
54
|
-
if (this.initializationPromise) {
|
|
55
|
-
await this.initializationPromise;
|
|
56
|
-
}
|
|
57
|
-
// 프롬프트 템플릿 로드 및 렌더링
|
|
58
|
-
const prompt = PromptTemplateLoader.loadAndRender('triple-extraction', {
|
|
59
|
-
observation: text
|
|
60
|
-
});
|
|
61
|
-
// Provider 선택 (per-job override → global; options.provider wins when explicit)
|
|
62
|
-
const requestedProvider = options?.provider && options.provider !== 'auto'
|
|
63
|
-
? options.provider
|
|
64
|
-
: resolveLlmProvider('triple_extraction');
|
|
65
|
-
const provider = this.determineProvider(requestedProvider);
|
|
66
|
-
if (!provider) {
|
|
67
|
-
throw new Error('사용 가능한 LLM Provider가 없습니다.');
|
|
68
|
-
}
|
|
69
|
-
try {
|
|
70
|
-
// Provider에 따라 추출 수행
|
|
71
|
-
const rawLLMOutput = await this.extractWithProvider(provider, prompt, options);
|
|
72
|
-
// JSON 파싱 및 Triple 추출
|
|
73
|
-
const parseResult = this.parseLLMResponse(rawLLMOutput);
|
|
74
|
-
if (!parseResult.success) {
|
|
75
|
-
// 파싱 실패 시 빈 배열 반환
|
|
76
|
-
return {
|
|
77
|
-
triples: [],
|
|
78
|
-
rawResponse: rawLLMOutput,
|
|
79
|
-
provider
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
triples: parseResult.triples,
|
|
84
|
-
rawResponse: rawLLMOutput,
|
|
85
|
-
provider
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
catch (error) {
|
|
89
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
90
|
-
logger.error('TripleExtractor: LLM 호출 실패', {
|
|
91
|
-
error: errorMessage,
|
|
92
|
-
provider
|
|
93
|
-
});
|
|
94
|
-
throw error;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Provider에 따라 LLM을 사용하여 Triple 추출
|
|
99
|
-
*
|
|
100
|
-
* @param provider 사용할 provider
|
|
101
|
-
* @param prompt 프롬프트
|
|
102
|
-
* @param options 추출 옵션
|
|
103
|
-
* @returns LLM 응답 텍스트
|
|
104
|
-
*/
|
|
105
|
-
async extractWithProvider(provider, prompt, options) {
|
|
106
|
-
switch (provider) {
|
|
107
|
-
case 'openai':
|
|
108
|
-
return await this.extractWithOpenAI(prompt, options);
|
|
109
|
-
case 'gemini':
|
|
110
|
-
return await this.extractWithGemini(prompt, options);
|
|
111
|
-
case 'ollama':
|
|
112
|
-
return await this.extractWithOllama(prompt, options);
|
|
113
|
-
default:
|
|
114
|
-
throw new Error(`지원하지 않는 LLM Provider: ${provider}`);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* OpenAI를 사용하여 Triple 추출
|
|
119
|
-
*/
|
|
120
|
-
async extractWithOpenAI(prompt, options) {
|
|
121
|
-
if (!this.openaiClient) {
|
|
122
|
-
throw new Error('OpenAI 클라이언트가 초기화되지 않았습니다.');
|
|
123
|
-
}
|
|
124
|
-
const model = resolveLlmModel('openai', 'triple_extraction', mementoConfig, {
|
|
125
|
-
boundProvider: resolveBoundLlmProvider('triple_extraction', this.preferredProvider),
|
|
126
|
-
});
|
|
127
|
-
const temperature = options?.temperature ?? this.DEFAULT_TEMPERATURE;
|
|
128
|
-
const maxTokens = options?.maxTokens ?? this.DEFAULT_MAX_TOKENS;
|
|
129
|
-
const retryOptions = getRetryOptions();
|
|
130
|
-
const response = await this.retryManager.retry(async () => {
|
|
131
|
-
return await this.openaiClient.chat.completions.create({
|
|
132
|
-
model,
|
|
133
|
-
messages: [
|
|
134
|
-
{ role: 'system', content: this.SYSTEM_MESSAGE },
|
|
135
|
-
{ role: 'user', content: prompt }
|
|
136
|
-
],
|
|
137
|
-
temperature,
|
|
138
|
-
max_tokens: maxTokens,
|
|
139
|
-
response_format: { type: 'json_object' }
|
|
140
|
-
});
|
|
141
|
-
}, {
|
|
142
|
-
maxAttempts: retryOptions.external_api.maxAttempts,
|
|
143
|
-
baseDelay: retryOptions.external_api.baseDelay,
|
|
144
|
-
shouldRetry: this.shouldRetry,
|
|
145
|
-
onRetry: (error, attempt, delay) => {
|
|
146
|
-
logExternalApiRetry('TripleExtractor: OpenAI API 호출 재시도', error, {
|
|
147
|
-
attempt, delay, model
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
const content = response.choices[0]?.message?.content;
|
|
152
|
-
if (!content) {
|
|
153
|
-
throw new Error('OpenAI 응답이 비어있습니다.');
|
|
154
|
-
}
|
|
155
|
-
return content;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Gemini를 사용하여 Triple 추출
|
|
159
|
-
*/
|
|
160
|
-
async extractWithGemini(prompt, options) {
|
|
161
|
-
if (!this.geminiClient) {
|
|
162
|
-
throw new Error('Gemini 클라이언트가 초기화되지 않았습니다.');
|
|
163
|
-
}
|
|
164
|
-
const modelName = resolveLlmModel('gemini', 'triple_extraction', mementoConfig, {
|
|
165
|
-
boundProvider: resolveBoundLlmProvider('triple_extraction', this.preferredProvider),
|
|
166
|
-
});
|
|
167
|
-
const temperature = options?.temperature ?? this.DEFAULT_TEMPERATURE;
|
|
168
|
-
const maxTokens = options?.maxTokens ?? this.DEFAULT_MAX_TOKENS;
|
|
169
|
-
const retryOptions = getRetryOptions();
|
|
170
|
-
const result = await this.retryManager.retry(async () => {
|
|
171
|
-
return await this.geminiClient.models.generateContent({
|
|
172
|
-
model: modelName,
|
|
173
|
-
contents: [{ role: 'user', parts: [{ text: prompt }] }],
|
|
174
|
-
config: {
|
|
175
|
-
temperature,
|
|
176
|
-
maxOutputTokens: maxTokens,
|
|
177
|
-
responseMimeType: 'application/json'
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}, {
|
|
181
|
-
maxAttempts: retryOptions.external_api.maxAttempts,
|
|
182
|
-
baseDelay: retryOptions.external_api.baseDelay,
|
|
183
|
-
shouldRetry: this.shouldRetry,
|
|
184
|
-
onRetry: (error, attempt, delay) => {
|
|
185
|
-
logExternalApiRetry('TripleExtractor: Gemini API 호출 재시도', error, {
|
|
186
|
-
attempt, delay, model: modelName
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
const text = result.text;
|
|
191
|
-
if (!text) {
|
|
192
|
-
throw new Error('Gemini 응답이 비어있습니다.');
|
|
193
|
-
}
|
|
194
|
-
return text;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Ollama를 사용하여 Triple 추출
|
|
198
|
-
*/
|
|
199
|
-
async extractWithOllama(prompt, options) {
|
|
200
|
-
const baseUrl = mementoConfig.ollamaBaseUrl || 'http://localhost:11434';
|
|
201
|
-
const model = resolveLlmModel('ollama', 'triple_extraction', mementoConfig, {
|
|
202
|
-
boundProvider: resolveBoundLlmProvider('triple_extraction', this.preferredProvider),
|
|
203
|
-
});
|
|
204
|
-
const temperature = options?.temperature ?? this.DEFAULT_TEMPERATURE;
|
|
205
|
-
const maxTokens = options?.maxTokens ?? this.DEFAULT_MAX_TOKENS;
|
|
206
|
-
const requestBody = {
|
|
207
|
-
model,
|
|
208
|
-
messages: [
|
|
209
|
-
{ role: 'system', content: this.SYSTEM_MESSAGE },
|
|
210
|
-
{ role: 'user', content: prompt }
|
|
211
|
-
],
|
|
212
|
-
options: { temperature, num_predict: maxTokens },
|
|
213
|
-
format: 'json'
|
|
214
|
-
};
|
|
215
|
-
// Ollama 모델 존재 여부 확인
|
|
216
|
-
const modelExists = await this.checkOllamaModel(baseUrl, model);
|
|
217
|
-
if (!modelExists) {
|
|
218
|
-
throw new Error(`Ollama 모델 '${model}'이 설치되지 않았습니다. ` +
|
|
219
|
-
`다음 명령어로 모델을 설치하세요: ollama pull ${model}`);
|
|
220
|
-
}
|
|
221
|
-
const retryOptions = getRetryOptions();
|
|
222
|
-
const apiUrl = `${baseUrl}/api/chat`;
|
|
223
|
-
const response = await this.retryManager.retry(async () => {
|
|
224
|
-
const fetchResponse = await fetch(apiUrl, {
|
|
225
|
-
method: 'POST',
|
|
226
|
-
headers: {
|
|
227
|
-
'Content-Type': 'application/json'
|
|
228
|
-
},
|
|
229
|
-
body: JSON.stringify(requestBody),
|
|
230
|
-
signal: AbortSignal.timeout(60000)
|
|
231
|
-
});
|
|
232
|
-
if (!fetchResponse.ok) {
|
|
233
|
-
const errorText = await fetchResponse.text().catch(() => '');
|
|
234
|
-
throw new Error(`Ollama API 호출 실패: ${fetchResponse.status} ${fetchResponse.statusText}${errorText ? ` - ${errorText}` : ''}`);
|
|
235
|
-
}
|
|
236
|
-
return fetchResponse;
|
|
237
|
-
}, {
|
|
238
|
-
maxAttempts: retryOptions.external_api.maxAttempts,
|
|
239
|
-
baseDelay: retryOptions.external_api.baseDelay,
|
|
240
|
-
shouldRetry: (error) => {
|
|
241
|
-
return this.shouldRetry(error) ||
|
|
242
|
-
error.message.toLowerCase().includes('econnrefused') ||
|
|
243
|
-
error.message.toLowerCase().includes('enotfound');
|
|
244
|
-
},
|
|
245
|
-
onRetry: (error, attempt, delay) => {
|
|
246
|
-
logExternalApiRetry('TripleExtractor: Ollama API 호출 재시도', error, {
|
|
247
|
-
attempt,
|
|
248
|
-
delay,
|
|
249
|
-
baseUrl,
|
|
250
|
-
model
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
// NDJSON 형식 처리
|
|
255
|
-
const contentType = response.headers.get('content-type') || '';
|
|
256
|
-
const isNDJSON = contentType.includes('application/x-ndjson') || contentType.includes('ndjson');
|
|
257
|
-
let content = '';
|
|
258
|
-
const responseText = await response.text();
|
|
259
|
-
if (isNDJSON) {
|
|
260
|
-
const lines = responseText.trim().split('\n').filter(line => line.trim().length > 0);
|
|
261
|
-
const contentParts = [];
|
|
262
|
-
for (const line of lines) {
|
|
263
|
-
try {
|
|
264
|
-
const lineData = JSON.parse(line);
|
|
265
|
-
if (lineData.message?.content) {
|
|
266
|
-
contentParts.push(lineData.message.content);
|
|
267
|
-
}
|
|
268
|
-
if (lineData.done === true) {
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
catch {
|
|
273
|
-
// 라인 파싱 실패 시 무시
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
content = contentParts.join('');
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
const data = JSON.parse(responseText);
|
|
280
|
-
content = data.message?.content || '';
|
|
281
|
-
}
|
|
282
|
-
if (!content) {
|
|
283
|
-
throw new Error('Ollama 응답이 비어있습니다.');
|
|
284
|
-
}
|
|
285
|
-
return content;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* LLM 클라이언트 초기화
|
|
289
|
-
* LLMClientInitializer를 사용하여 클라이언트 초기화
|
|
290
|
-
*/
|
|
291
|
-
async initializeClients() {
|
|
292
|
-
const initializer = new LLMClientInitializer();
|
|
293
|
-
const result = await initializer.initialize();
|
|
294
|
-
// LLMClientInitializer 결과를 사용하여 클라이언트 설정
|
|
295
|
-
this.openaiClient = result.openaiClient;
|
|
296
|
-
this.geminiClient = result.geminiClient;
|
|
297
|
-
this.preferredProvider = result.preferredProvider;
|
|
298
|
-
this.initializedProviders = result.initializedProviders;
|
|
299
|
-
// 경고 메시지 로깅
|
|
300
|
-
if (result.warnings.length > 0 && result.preferredProvider === null) {
|
|
301
|
-
result.warnings.forEach((warning) => {
|
|
302
|
-
logger.warn('LLM 초기화 경고', { warning });
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
// 초기화 완료 로깅
|
|
306
|
-
if (result.preferredProvider) {
|
|
307
|
-
logger.info('TripleExtractor: LLM 클라이언트 초기화 완료', {
|
|
308
|
-
preferredProvider: result.preferredProvider,
|
|
309
|
-
initializedProviders: result.initializedProviders
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
logger.error('TripleExtractor: LLM 클라이언트 초기화 실패 - 모든 provider가 사용 불가능합니다');
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Provider 결정
|
|
318
|
-
* 요청된 provider와 초기화 상태를 확인하여 사용 가능한 provider를 반환
|
|
319
|
-
*
|
|
320
|
-
* @param requestedProvider 요청된 provider
|
|
321
|
-
* @returns 사용 가능한 provider 또는 null
|
|
322
|
-
*/
|
|
323
|
-
determineProvider(requestedProvider) {
|
|
324
|
-
return determineLlmProvider(requestedProvider, {
|
|
325
|
-
openai: this.openaiClient !== null,
|
|
326
|
-
gemini: this.geminiClient !== null,
|
|
327
|
-
ollama: this.initializedProviders.includes('ollama'),
|
|
328
|
-
}, { includeOllamaInAuto: false, includeOllamaInFallback: false });
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* 에러 재시도 여부 판단
|
|
332
|
-
*/
|
|
333
|
-
shouldRetry(error) {
|
|
334
|
-
const message = error.message.toLowerCase();
|
|
335
|
-
return message.includes('network') ||
|
|
336
|
-
message.includes('timeout') ||
|
|
337
|
-
message.includes('rate limit') ||
|
|
338
|
-
message.includes('server error') ||
|
|
339
|
-
message.includes('503') ||
|
|
340
|
-
message.includes('502') ||
|
|
341
|
-
message.includes('500');
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Ollama 모델 존재 여부 확인
|
|
345
|
-
*/
|
|
346
|
-
async checkOllamaModel(baseUrl, model) {
|
|
347
|
-
try {
|
|
348
|
-
const response = await fetch(`${baseUrl}/api/tags`, {
|
|
349
|
-
method: 'GET',
|
|
350
|
-
signal: AbortSignal.timeout(3000)
|
|
351
|
-
});
|
|
352
|
-
if (!response.ok) {
|
|
353
|
-
return false;
|
|
354
|
-
}
|
|
355
|
-
const data = await response.json();
|
|
356
|
-
const models = data.models || [];
|
|
357
|
-
return models.some((m) => m.name === model || m.name.startsWith(`${model}:`));
|
|
358
|
-
}
|
|
359
|
-
catch {
|
|
360
|
-
return false;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* Given: LLM 응답 텍스트가 제공됨
|
|
365
|
-
* When: 응답을 파싱하여 Triple 배열을 추출함
|
|
366
|
-
* Then: 파싱된 Triple 배열과 파싱 결과를 반환함
|
|
367
|
-
*/
|
|
368
|
-
parseLLMResponse(responseText) {
|
|
369
|
-
try {
|
|
370
|
-
const jsonText = this.extractJSON(responseText) || responseText.trim();
|
|
371
|
-
const parsed = JSON.parse(jsonText);
|
|
372
|
-
if (!parsed.triples || !Array.isArray(parsed.triples)) {
|
|
373
|
-
return { success: false, triples: [], error: 'triples 배열이 없거나 유효하지 않습니다.', errorType: 'parse' };
|
|
374
|
-
}
|
|
375
|
-
const validTriples = parsed.triples
|
|
376
|
-
.filter((t) => this.isValidTriple(t))
|
|
377
|
-
.map((t) => ({
|
|
378
|
-
subject: String(t['subject']).trim(),
|
|
379
|
-
predicate: String(t['predicate']).trim(),
|
|
380
|
-
object: String(t['object']).trim()
|
|
381
|
-
}));
|
|
382
|
-
if (validTriples.length === 0 && parsed.triples.length > 0) {
|
|
383
|
-
return { success: false, triples: [], error: '모든 triple이 유효하지 않습니다.', errorType: 'no_triple' };
|
|
384
|
-
}
|
|
385
|
-
const invalidRatio = (parsed.triples.length - validTriples.length) / parsed.triples.length;
|
|
386
|
-
if (invalidRatio > 0.5 && parsed.triples.length > 1) {
|
|
387
|
-
return {
|
|
388
|
-
success: true,
|
|
389
|
-
triples: validTriples,
|
|
390
|
-
error: `일부 triple이 유효하지 않습니다. (유효: ${validTriples.length}/${parsed.triples.length})`,
|
|
391
|
-
errorType: 'structure'
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
return { success: true, triples: validTriples };
|
|
395
|
-
}
|
|
396
|
-
catch (error) {
|
|
397
|
-
return {
|
|
398
|
-
success: false,
|
|
399
|
-
triples: [],
|
|
400
|
-
error: error instanceof Error ? error.message : 'JSON 파싱 실패',
|
|
401
|
-
errorType: 'parse'
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Given: 텍스트가 제공됨
|
|
407
|
-
* When: JSON 부분을 추출함
|
|
408
|
-
* Then: 추출된 JSON 문자열을 반환함
|
|
409
|
-
*/
|
|
410
|
-
extractJSON(text) {
|
|
411
|
-
if (!text || typeof text !== 'string')
|
|
412
|
-
return null;
|
|
413
|
-
let jsonText = text.trim();
|
|
414
|
-
if (jsonText.startsWith('```json')) {
|
|
415
|
-
jsonText = jsonText.replace(/^```json\s*/, '').replace(/\s*```.*$/s, '');
|
|
416
|
-
}
|
|
417
|
-
else if (jsonText.startsWith('```')) {
|
|
418
|
-
jsonText = jsonText.replace(/^```\s*/, '').replace(/\s*```.*$/s, '');
|
|
419
|
-
}
|
|
420
|
-
const firstBrace = jsonText.indexOf('{');
|
|
421
|
-
const lastBrace = jsonText.lastIndexOf('}');
|
|
422
|
-
if (firstBrace === -1 || lastBrace === -1 || lastBrace <= firstBrace)
|
|
423
|
-
return null;
|
|
424
|
-
return jsonText.substring(firstBrace, lastBrace + 1).trim();
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
* Given: Triple 객체가 제공됨
|
|
428
|
-
* When: Triple의 유효성을 검증함
|
|
429
|
-
* Then: 유효성 검증 결과를 반환함
|
|
430
|
-
*/
|
|
431
|
-
isValidTriple(triple) {
|
|
432
|
-
if (!triple || typeof triple !== 'object')
|
|
433
|
-
return false;
|
|
434
|
-
const t = triple;
|
|
435
|
-
return (typeof t['subject'] === 'string' &&
|
|
436
|
-
typeof t['predicate'] === 'string' &&
|
|
437
|
-
typeof t['object'] === 'string' &&
|
|
438
|
-
t['subject'].trim().length > 0 &&
|
|
439
|
-
t['predicate'].trim().length > 0 &&
|
|
440
|
-
t['object'].trim().length > 0);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
//# sourceMappingURL=triple-extractor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triple-extractor.js","sourceRoot":"","sources":["../../../../../src/domains/relation/services/triple-extraction/triple-extractor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAC/H,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,E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AU;YAAE,OAAO,IAAI,CAAC;QAClF,OAAO,QAAQ,CAAC,SAAS,CAAC,UAAU,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACK,aAAa,CAAC,MAAe;QACnC,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACxD,MAAM,CAAC,GAAG,MAAiC,CAAC;QAC5C,OAAO,CACL,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,QAAQ;YAChC,OAAO,CAAC,CAAC,WAAW,CAAC,KAAK,QAAQ;YAClC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,QAAQ;YAC/B,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;YAC9B,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;YAChC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAC9B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 트리플 추출 파이프라인용 채팅 메시지 → 단일 텍스트 정규화
|
|
3
|
-
*/
|
|
4
|
-
export interface ChatMessageInput {
|
|
5
|
-
role: string;
|
|
6
|
-
content: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 각 메시지를 `role: content` 형식의 한 줄로 만들고 `\n`으로 이어 붙인다.
|
|
10
|
-
*/
|
|
11
|
-
export declare function normalizeChatMessagesToText(messages: ChatMessageInput[]): string;
|
|
12
|
-
//# sourceMappingURL=triple-input-normalizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triple-input-normalizer.d.ts","sourceRoot":"","sources":["../../../../../src/domains/relation/services/triple-extraction/triple-input-normalizer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,gBAAgB,EAAE,GAC3B,MAAM,CAER"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 트리플 추출 파이프라인용 채팅 메시지 → 단일 텍스트 정규화
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* 각 메시지를 `role: content` 형식의 한 줄로 만들고 `\n`으로 이어 붙인다.
|
|
6
|
-
*/
|
|
7
|
-
export function normalizeChatMessagesToText(messages) {
|
|
8
|
-
return messages.map((m) => `${m.role}: ${m.content}`).join('\n');
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=triple-input-normalizer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triple-input-normalizer.js","sourceRoot":"","sources":["../../../../../src/domains/relation/services/triple-extraction/triple-input-normalizer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,QAA4B;IAE5B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Triple 정규화기 클래스
|
|
3
|
-
* 추출된 Triple을 정규화하여 일관성을 확보합니다.
|
|
4
|
-
*
|
|
5
|
-
* #813: predicate 게이트 — canonicalize 실패 원본 pass-through 금지.
|
|
6
|
-
* Hangul OOV 단일 토큰은 buildTripleSentence 성공 시에만 수용.
|
|
7
|
-
*/
|
|
8
|
-
import type { ITripleNormalizer } from './interfaces.js';
|
|
9
|
-
import type { NormalizeWithReportResult, Triple } from '../../../../shared/types/triple-extraction.js';
|
|
10
|
-
import { PredicateCanonicalizer } from './predicate-canonicalizer.js';
|
|
11
|
-
import { EntityLinker } from './entity-linker.js';
|
|
12
|
-
/**
|
|
13
|
-
* Triple 정규화기 클래스
|
|
14
|
-
*/
|
|
15
|
-
export declare class TripleNormalizer implements ITripleNormalizer {
|
|
16
|
-
private readonly canonicalizer;
|
|
17
|
-
private readonly entityLinker;
|
|
18
|
-
constructor(canonicalizer?: PredicateCanonicalizer, entityLinker?: EntityLinker);
|
|
19
|
-
/**
|
|
20
|
-
* accepted triples만 반환 (skips 제외).
|
|
21
|
-
*/
|
|
22
|
-
normalize(triples: Triple[]): Triple[];
|
|
23
|
-
/**
|
|
24
|
-
* FR-001/002 게이트 + entity linking. pass-through 금지.
|
|
25
|
-
*/
|
|
26
|
-
normalizeWithReport(triples: Triple[]): NormalizeWithReportResult;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=triple-normalizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triple-normalizer.d.ts","sourceRoot":"","sources":["../../../../../src/domains/relation/services/triple-extraction/triple-normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EACV,yBAAyB,EAEzB,MAAM,EACP,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAiBlD;;GAEG;AACH,qBAAa,gBAAiB,YAAW,iBAAiB;IACxD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAyB;IACvD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;gBAG1C,aAAa,CAAC,EAAE,sBAAsB,EACtC,YAAY,CAAC,EAAE,YAAY;IAM7B;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE;IAItC;;OAEG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,yBAAyB;CA+ClE"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Triple 정규화기 클래스
|
|
3
|
-
* 추출된 Triple을 정규화하여 일관성을 확보합니다.
|
|
4
|
-
*
|
|
5
|
-
* #813: predicate 게이트 — canonicalize 실패 원본 pass-through 금지.
|
|
6
|
-
* Hangul OOV 단일 토큰은 buildTripleSentence 성공 시에만 수용.
|
|
7
|
-
*/
|
|
8
|
-
import { PredicateCanonicalizer } from './predicate-canonicalizer.js';
|
|
9
|
-
import { EntityLinker } from './entity-linker.js';
|
|
10
|
-
import { buildTripleSentence } from '../../../memory/semantic/triple-sentence.js';
|
|
11
|
-
const HANGUL_START = 0xac00;
|
|
12
|
-
const HANGUL_END = 0xd7a3;
|
|
13
|
-
function endsWithHangulSyllable(value) {
|
|
14
|
-
const last = value.slice(-1);
|
|
15
|
-
const code = last.codePointAt(0);
|
|
16
|
-
return code !== undefined && code >= HANGUL_START && code <= HANGUL_END;
|
|
17
|
-
}
|
|
18
|
-
/** 공백 없는 한글 종결 단일 토큰 (OOV 후보). */
|
|
19
|
-
function isHangulOovSingleToken(predicate) {
|
|
20
|
-
return predicate.length > 0 && !/\s/.test(predicate) && endsWithHangulSyllable(predicate);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Triple 정규화기 클래스
|
|
24
|
-
*/
|
|
25
|
-
export class TripleNormalizer {
|
|
26
|
-
canonicalizer;
|
|
27
|
-
entityLinker;
|
|
28
|
-
constructor(canonicalizer, entityLinker) {
|
|
29
|
-
this.canonicalizer = canonicalizer || new PredicateCanonicalizer();
|
|
30
|
-
this.entityLinker = entityLinker || new EntityLinker();
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* accepted triples만 반환 (skips 제외).
|
|
34
|
-
*/
|
|
35
|
-
normalize(triples) {
|
|
36
|
-
return this.normalizeWithReport(triples).triples;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* FR-001/002 게이트 + entity linking. pass-through 금지.
|
|
40
|
-
*/
|
|
41
|
-
normalizeWithReport(triples) {
|
|
42
|
-
if (!triples || triples.length === 0) {
|
|
43
|
-
return { triples: [], skips: [] };
|
|
44
|
-
}
|
|
45
|
-
const accepted = [];
|
|
46
|
-
const skips = [];
|
|
47
|
-
for (let index = 0; index < triples.length; index++) {
|
|
48
|
-
const triple = triples[index];
|
|
49
|
-
const subject = this.entityLinker.link(triple.subject).linked;
|
|
50
|
-
const object = this.entityLinker.link(triple.object).linked;
|
|
51
|
-
const rawPredicate = typeof triple.predicate === 'string' ? triple.predicate : '';
|
|
52
|
-
const trimmed = rawPredicate.trim();
|
|
53
|
-
if (trimmed.length === 0) {
|
|
54
|
-
skips.push({ index, predicate: rawPredicate, reason: 'predicate_empty' });
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
const canonicalResult = this.canonicalizer.canonicalize(trimmed);
|
|
58
|
-
if (canonicalResult.success) {
|
|
59
|
-
const canonical = canonicalResult.canonical;
|
|
60
|
-
if (buildTripleSentence(subject, canonical, object) !== null) {
|
|
61
|
-
accepted.push({ subject, predicate: canonical, object });
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
skips.push({ index, predicate: trimmed, reason: 'predicate_reassembly_failed' });
|
|
65
|
-
}
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
// canonicalize FAIL — Hangul OOV single-token iff reassembly OK
|
|
69
|
-
if (isHangulOovSingleToken(trimmed)) {
|
|
70
|
-
if (buildTripleSentence(subject, trimmed, object) !== null) {
|
|
71
|
-
accepted.push({ subject, predicate: trimmed, object });
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
skips.push({ index, predicate: trimmed, reason: 'predicate_reassembly_failed' });
|
|
75
|
-
}
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
skips.push({ index, predicate: trimmed, reason: 'predicate_canonicalize_failed' });
|
|
79
|
-
}
|
|
80
|
-
return { triples: accepted, skips };
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=triple-normalizer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triple-normalizer.js","sourceRoot":"","sources":["../../../../../src/domains/relation/services/triple-extraction/triple-normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,MAAM,YAAY,GAAG,MAAM,CAAC;AAC5B,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,SAAS,sBAAsB,CAAC,KAAa;IAC3C,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACjC,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,IAAI,YAAY,IAAI,IAAI,IAAI,UAAU,CAAC;AAC1E,CAAC;AAED,kCAAkC;AAClC,SAAS,sBAAsB,CAAC,SAAiB;IAC/C,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,sBAAsB,CAAC,SAAS,CAAC,CAAC;AAC5F,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,gBAAgB;IACV,aAAa,CAAyB;IACtC,YAAY,CAAe;IAE5C,YACE,aAAsC,EACtC,YAA2B;QAE3B,IAAI,CAAC,aAAa,GAAG,aAAa,IAAI,IAAI,sBAAsB,EAAE,CAAC;QACnE,IAAI,CA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