squish-memory 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/squish-mcp.mjs +40 -42
- package/core/scheduler/cron-scheduler.ts +10 -1
- package/core/worker.ts +10 -1
- package/package.json +119 -119
- package/packages/mcp/src/index.ts +99 -36
- package/dist/config.d.ts +0 -106
- package/dist/config.js +0 -194
- package/dist/core/adapters/config/claude-code.d.ts +0 -45
- package/dist/core/adapters/config/claude-code.js +0 -113
- package/dist/core/adapters/config/cursor.d.ts +0 -26
- package/dist/core/adapters/config/cursor.js +0 -74
- package/dist/core/adapters/config/opencode.d.ts +0 -23
- package/dist/core/adapters/config/opencode.js +0 -73
- package/dist/core/adapters/config/windsurf.d.ts +0 -26
- package/dist/core/adapters/config/windsurf.js +0 -74
- package/dist/core/adapters/index.d.ts +0 -45
- package/dist/core/adapters/index.js +0 -84
- package/dist/core/adapters/scripts/install-adapter.d.ts +0 -19
- package/dist/core/adapters/scripts/install-adapter.js +0 -149
- package/dist/core/adapters/timeline.d.ts +0 -23
- package/dist/core/adapters/timeline.js +0 -88
- package/dist/core/adapters/types.d.ts +0 -137
- package/dist/core/adapters/types.js +0 -50
- package/dist/core/agent-preferences.d.ts +0 -16
- package/dist/core/agent-preferences.js +0 -124
- package/dist/core/algorithms/analytics/token-estimator.d.ts +0 -50
- package/dist/core/algorithms/analytics/token-estimator.js +0 -154
- package/dist/core/algorithms/detection/hash-filters.d.ts +0 -47
- package/dist/core/algorithms/detection/hash-filters.js +0 -190
- package/dist/core/algorithms/detection/semantic-ranker.d.ts +0 -32
- package/dist/core/algorithms/detection/semantic-ranker.js +0 -118
- package/dist/core/algorithms/detection/two-stage-detector.d.ts +0 -52
- package/dist/core/algorithms/detection/two-stage-detector.js +0 -299
- package/dist/core/algorithms/handlers/approve-merge.d.ts +0 -22
- package/dist/core/algorithms/handlers/approve-merge.js +0 -179
- package/dist/core/algorithms/handlers/detect-duplicates.d.ts +0 -47
- package/dist/core/algorithms/handlers/detect-duplicates.js +0 -145
- package/dist/core/algorithms/handlers/get-stats.d.ts +0 -39
- package/dist/core/algorithms/handlers/get-stats.js +0 -88
- package/dist/core/algorithms/handlers/list-proposals.d.ts +0 -45
- package/dist/core/algorithms/handlers/list-proposals.js +0 -83
- package/dist/core/algorithms/handlers/preview-merge.d.ts +0 -39
- package/dist/core/algorithms/handlers/preview-merge.js +0 -93
- package/dist/core/algorithms/handlers/reject-merge.d.ts +0 -28
- package/dist/core/algorithms/handlers/reject-merge.js +0 -69
- package/dist/core/algorithms/handlers/reverse-merge.d.ts +0 -21
- package/dist/core/algorithms/handlers/reverse-merge.js +0 -121
- package/dist/core/algorithms/index.d.ts +0 -21
- package/dist/core/algorithms/index.js +0 -26
- package/dist/core/algorithms/operations/cache-maintenance.d.ts +0 -12
- package/dist/core/algorithms/operations/cache-maintenance.js +0 -157
- package/dist/core/algorithms/safety/safety-checks.d.ts +0 -18
- package/dist/core/algorithms/safety/safety-checks.js +0 -179
- package/dist/core/algorithms/strategies/merge-strategies.d.ts +0 -50
- package/dist/core/algorithms/strategies/merge-strategies.js +0 -288
- package/dist/core/algorithms/types.d.ts +0 -125
- package/dist/core/algorithms/types.js +0 -5
- package/dist/core/algorithms/utils/response-builder.d.ts +0 -28
- package/dist/core/algorithms/utils/response-builder.js +0 -37
- package/dist/core/associations.d.ts +0 -33
- package/dist/core/associations.js +0 -284
- package/dist/core/autosave.d.ts +0 -19
- package/dist/core/autosave.js +0 -16
- package/dist/core/beliefs/decay.d.ts +0 -27
- package/dist/core/beliefs/decay.js +0 -217
- package/dist/core/beliefs/extractor.d.ts +0 -9
- package/dist/core/beliefs/extractor.js +0 -113
- package/dist/core/beliefs/store.d.ts +0 -46
- package/dist/core/beliefs/store.js +0 -466
- package/dist/core/beliefs/types.d.ts +0 -28
- package/dist/core/beliefs/types.js +0 -2
- package/dist/core/commands/mcp-server.d.ts +0 -2
- package/dist/core/commands/mcp-server.js +0 -6
- package/dist/core/commands/remember.d.ts +0 -24
- package/dist/core/commands/remember.js +0 -144
- package/dist/core/compression.d.ts +0 -45
- package/dist/core/compression.js +0 -160
- package/dist/core/consolidation.d.ts +0 -37
- package/dist/core/consolidation.js +0 -248
- package/dist/core/context/agent-context.d.ts +0 -106
- package/dist/core/context/agent-context.js +0 -274
- package/dist/core/context/context-paging.d.ts +0 -80
- package/dist/core/context/context-paging.js +0 -328
- package/dist/core/context/context-window.d.ts +0 -40
- package/dist/core/context/context-window.js +0 -177
- package/dist/core/context/context.d.ts +0 -7
- package/dist/core/context/context.js +0 -22
- package/dist/core/embeddings/embeddings.d.ts +0 -29
- package/dist/core/embeddings/embeddings.js +0 -546
- package/dist/core/embeddings/google-multimodal.d.ts +0 -14
- package/dist/core/embeddings/google-multimodal.js +0 -146
- package/dist/core/embeddings/local-embeddings.d.ts +0 -11
- package/dist/core/embeddings/local-embeddings.js +0 -11
- package/dist/core/embeddings/qmd-client.d.ts +0 -136
- package/dist/core/embeddings/qmd-client.js +0 -403
- package/dist/core/embeddings/transformers-local.d.ts +0 -64
- package/dist/core/embeddings/transformers-local.js +0 -213
- package/dist/core/embeddings.d.ts +0 -2
- package/dist/core/embeddings.js +0 -3
- package/dist/core/error-handling.d.ts +0 -63
- package/dist/core/error-handling.js +0 -173
- package/dist/core/graph/entity-deduplicator.d.ts +0 -24
- package/dist/core/graph/entity-deduplicator.js +0 -183
- package/dist/core/graph/graph-builder.d.ts +0 -46
- package/dist/core/graph/graph-builder.js +0 -174
- package/dist/core/graph/graph-traversal.d.ts +0 -80
- package/dist/core/graph/graph-traversal.js +0 -315
- package/dist/core/graph/index.d.ts +0 -19
- package/dist/core/graph/index.js +0 -13
- package/dist/core/graph/llm-entity-extractor.d.ts +0 -49
- package/dist/core/graph/llm-entity-extractor.js +0 -313
- package/dist/core/graph/multi-hop-retrieval.d.ts +0 -48
- package/dist/core/graph/multi-hop-retrieval.js +0 -215
- package/dist/core/graph/relationship-extractor.d.ts +0 -48
- package/dist/core/graph/relationship-extractor.js +0 -351
- package/dist/core/hooks/agent-hooks.d.ts +0 -83
- package/dist/core/hooks/agent-hooks.js +0 -521
- package/dist/core/hooks/auto-tagger.d.ts +0 -19
- package/dist/core/hooks/auto-tagger.js +0 -155
- package/dist/core/hooks/capture-filter.d.ts +0 -41
- package/dist/core/hooks/capture-filter.js +0 -128
- package/dist/core/hot-cache.d.ts +0 -86
- package/dist/core/hot-cache.js +0 -285
- package/dist/core/index.d.ts +0 -10
- package/dist/core/index.js +0 -11
- package/dist/core/ingestion/agent-memory.d.ts +0 -22
- package/dist/core/ingestion/agent-memory.js +0 -109
- package/dist/core/ingestion/core-memory.d.ts +0 -78
- package/dist/core/ingestion/core-memory.js +0 -226
- package/dist/core/ingestion/learnings.d.ts +0 -57
- package/dist/core/ingestion/learnings.js +0 -205
- package/dist/core/ingestion/signal-engine.d.ts +0 -41
- package/dist/core/ingestion/signal-engine.js +0 -201
- package/dist/core/integrations/obsidian-vault.d.ts +0 -31
- package/dist/core/integrations/obsidian-vault.js +0 -156
- package/dist/core/layers/generator.d.ts +0 -25
- package/dist/core/layers/generator.js +0 -76
- package/dist/core/lib/db-client.d.ts +0 -114
- package/dist/core/lib/db-client.js +0 -130
- package/dist/core/lib/parse-embedding.d.ts +0 -9
- package/dist/core/lib/parse-embedding.js +0 -58
- package/dist/core/lib/schemas.d.ts +0 -132
- package/dist/core/lib/schemas.js +0 -87
- package/dist/core/lib/types.d.ts +0 -45
- package/dist/core/lib/types.js +0 -6
- package/dist/core/lib/utils.d.ts +0 -18
- package/dist/core/lib/utils.js +0 -145
- package/dist/core/lib/validation.d.ts +0 -38
- package/dist/core/lib/validation.js +0 -151
- package/dist/core/lifecycle.d.ts +0 -25
- package/dist/core/lifecycle.js +0 -292
- package/dist/core/logger.d.ts +0 -17
- package/dist/core/logger.js +0 -46
- package/dist/core/mcp/client.d.ts +0 -17
- package/dist/core/mcp/client.js +0 -101
- package/dist/core/mcp/index.d.ts +0 -6
- package/dist/core/mcp/index.js +0 -6
- package/dist/core/mcp/server.d.ts +0 -18
- package/dist/core/mcp/server.js +0 -157
- package/dist/core/mcp/standalone-server.d.ts +0 -13
- package/dist/core/mcp/standalone-server.js +0 -46
- package/dist/core/mcp/tools.d.ts +0 -7
- package/dist/core/mcp/tools.js +0 -278
- package/dist/core/mcp/types.d.ts +0 -87
- package/dist/core/mcp/types.js +0 -48
- package/dist/core/memory/bridge-discovery.d.ts +0 -50
- package/dist/core/memory/bridge-discovery.js +0 -291
- package/dist/core/memory/categorizer.d.ts +0 -27
- package/dist/core/memory/categorizer.js +0 -306
- package/dist/core/memory/conflict-detector.d.ts +0 -7
- package/dist/core/memory/conflict-detector.js +0 -43
- package/dist/core/memory/consolidation.d.ts +0 -42
- package/dist/core/memory/consolidation.js +0 -277
- package/dist/core/memory/context-collector.d.ts +0 -10
- package/dist/core/memory/context-collector.js +0 -56
- package/dist/core/memory/contradiction-resolver.d.ts +0 -40
- package/dist/core/memory/contradiction-resolver.js +0 -368
- package/dist/core/memory/edit-workflow.d.ts +0 -19
- package/dist/core/memory/edit-workflow.js +0 -120
- package/dist/core/memory/entity-extractor.d.ts +0 -37
- package/dist/core/memory/entity-extractor.js +0 -350
- package/dist/core/memory/entity-resolver.d.ts +0 -23
- package/dist/core/memory/entity-resolver.js +0 -64
- package/dist/core/memory/explain.d.ts +0 -18
- package/dist/core/memory/explain.js +0 -92
- package/dist/core/memory/fact-deriver.d.ts +0 -31
- package/dist/core/memory/fact-deriver.js +0 -236
- package/dist/core/memory/fact-extractor.d.ts +0 -24
- package/dist/core/memory/fact-extractor.js +0 -89
- package/dist/core/memory/feedback-tracker.d.ts +0 -12
- package/dist/core/memory/feedback-tracker.js +0 -155
- package/dist/core/memory/hooks.d.ts +0 -88
- package/dist/core/memory/hooks.js +0 -174
- package/dist/core/memory/hybrid-retrieval.d.ts +0 -27
- package/dist/core/memory/hybrid-retrieval.js +0 -37
- package/dist/core/memory/hybrid-scorer.d.ts +0 -40
- package/dist/core/memory/hybrid-scorer.js +0 -267
- package/dist/core/memory/hybrid-search.d.ts +0 -23
- package/dist/core/memory/hybrid-search.js +0 -596
- package/dist/core/memory/importance.d.ts +0 -46
- package/dist/core/memory/importance.js +0 -241
- package/dist/core/memory/index.d.ts +0 -9
- package/dist/core/memory/index.js +0 -11
- package/dist/core/memory/loader.d.ts +0 -31
- package/dist/core/memory/loader.js +0 -141
- package/dist/core/memory/markdown/markdown-storage.d.ts +0 -72
- package/dist/core/memory/markdown/markdown-storage.js +0 -243
- package/dist/core/memory/memories.d.ts +0 -43
- package/dist/core/memory/memories.js +0 -452
- package/dist/core/memory/memory-lifecycle.d.ts +0 -8
- package/dist/core/memory/memory-lifecycle.js +0 -47
- package/dist/core/memory/memory-manager.d.ts +0 -15
- package/dist/core/memory/memory-manager.js +0 -46
- package/dist/core/memory/migrate.d.ts +0 -21
- package/dist/core/memory/migrate.js +0 -134
- package/dist/core/memory/normalization.d.ts +0 -7
- package/dist/core/memory/normalization.js +0 -26
- package/dist/core/memory/path-strengthener.d.ts +0 -39
- package/dist/core/memory/path-strengthener.js +0 -150
- package/dist/core/memory/progressive-disclosure.d.ts +0 -43
- package/dist/core/memory/progressive-disclosure.js +0 -280
- package/dist/core/memory/query-processor.d.ts +0 -21
- package/dist/core/memory/query-processor.js +0 -106
- package/dist/core/memory/query-rewriter.d.ts +0 -13
- package/dist/core/memory/query-rewriter.js +0 -118
- package/dist/core/memory/response-analyzer.d.ts +0 -9
- package/dist/core/memory/response-analyzer.js +0 -61
- package/dist/core/memory/retrieval-feedback.d.ts +0 -70
- package/dist/core/memory/retrieval-feedback.js +0 -213
- package/dist/core/memory/serialization.d.ts +0 -10
- package/dist/core/memory/serialization.js +0 -84
- package/dist/core/memory/stale-cleaner.d.ts +0 -26
- package/dist/core/memory/stale-cleaner.js +0 -97
- package/dist/core/memory/stats.d.ts +0 -32
- package/dist/core/memory/stats.js +0 -143
- package/dist/core/memory/telemetry.d.ts +0 -69
- package/dist/core/memory/telemetry.js +0 -313
- package/dist/core/memory/temporal-facts.d.ts +0 -41
- package/dist/core/memory/temporal-facts.js +0 -283
- package/dist/core/memory/temporal-parser.d.ts +0 -32
- package/dist/core/memory/temporal-parser.js +0 -385
- package/dist/core/memory/trigger-detector.d.ts +0 -21
- package/dist/core/memory/trigger-detector.js +0 -79
- package/dist/core/memory/write-gate.d.ts +0 -54
- package/dist/core/memory/write-gate.js +0 -210
- package/dist/core/places/index.d.ts +0 -14
- package/dist/core/places/index.js +0 -14
- package/dist/core/places/memory-places.d.ts +0 -68
- package/dist/core/places/memory-places.js +0 -261
- package/dist/core/places/places.d.ts +0 -88
- package/dist/core/places/places.js +0 -314
- package/dist/core/places/rules.d.ts +0 -74
- package/dist/core/places/rules.js +0 -240
- package/dist/core/places/walking.d.ts +0 -56
- package/dist/core/places/walking.js +0 -121
- package/dist/core/projects.d.ts +0 -17
- package/dist/core/projects.js +0 -116
- package/dist/core/redis.d.ts +0 -11
- package/dist/core/redis.js +0 -69
- package/dist/core/responses.d.ts +0 -96
- package/dist/core/responses.js +0 -122
- package/dist/core/runtime/trust-report.d.ts +0 -102
- package/dist/core/runtime/trust-report.js +0 -107
- package/dist/core/runtime/trust-state.d.ts +0 -12
- package/dist/core/runtime/trust-state.js +0 -309
- package/dist/core/scheduler/cron-scheduler.d.ts +0 -32
- package/dist/core/scheduler/cron-scheduler.js +0 -493
- package/dist/core/scheduler/heartbeat.d.ts +0 -11
- package/dist/core/scheduler/heartbeat.js +0 -73
- package/dist/core/scheduler/index.d.ts +0 -8
- package/dist/core/scheduler/index.js +0 -8
- package/dist/core/scheduler/job-runner.d.ts +0 -11
- package/dist/core/scheduler/job-runner.js +0 -164
- package/dist/core/search/conversations.d.ts +0 -25
- package/dist/core/search/conversations.js +0 -110
- package/dist/core/search/entities.d.ts +0 -12
- package/dist/core/search/entities.js +0 -31
- package/dist/core/search/folder-context.d.ts +0 -25
- package/dist/core/search/folder-context.js +0 -119
- package/dist/core/search/graph-boost.d.ts +0 -7
- package/dist/core/search/graph-boost.js +0 -23
- package/dist/core/search/index.d.ts +0 -4
- package/dist/core/search/index.js +0 -5
- package/dist/core/search/qmd-wrapper.d.ts +0 -36
- package/dist/core/search/qmd-wrapper.js +0 -58
- package/dist/core/security/encrypt.d.ts +0 -6
- package/dist/core/security/encrypt.js +0 -47
- package/dist/core/security/governance.d.ts +0 -26
- package/dist/core/security/governance.js +0 -79
- package/dist/core/security/privacy.d.ts +0 -23
- package/dist/core/security/privacy.js +0 -82
- package/dist/core/security/secret-detector.d.ts +0 -32
- package/dist/core/security/secret-detector.js +0 -88
- package/dist/core/session/auto-load.d.ts +0 -6
- package/dist/core/session/auto-load.js +0 -144
- package/dist/core/session/entity-tracker.d.ts +0 -62
- package/dist/core/session/entity-tracker.js +0 -287
- package/dist/core/session/index.d.ts +0 -7
- package/dist/core/session/index.js +0 -7
- package/dist/core/session/reference-resolver.d.ts +0 -26
- package/dist/core/session/reference-resolver.js +0 -121
- package/dist/core/session/self-iteration-job.d.ts +0 -35
- package/dist/core/session/self-iteration-job.js +0 -387
- package/dist/core/session/session-hooks.d.ts +0 -18
- package/dist/core/session/session-hooks.js +0 -58
- package/dist/core/session/types.d.ts +0 -26
- package/dist/core/session/types.js +0 -10
- package/dist/core/session/working-set.d.ts +0 -50
- package/dist/core/session/working-set.js +0 -212
- package/dist/core/snapshots/cleanup.d.ts +0 -9
- package/dist/core/snapshots/cleanup.js +0 -12
- package/dist/core/snapshots/comparison.d.ts +0 -19
- package/dist/core/snapshots/comparison.js +0 -43
- package/dist/core/snapshots/creation.d.ts +0 -13
- package/dist/core/snapshots/creation.js +0 -117
- package/dist/core/snapshots/retrieval.d.ts +0 -7
- package/dist/core/snapshots/retrieval.js +0 -41
- package/dist/core/snapshots/stats.d.ts +0 -11
- package/dist/core/snapshots/stats.js +0 -52
- package/dist/core/storage/cache.d.ts +0 -13
- package/dist/core/storage/cache.js +0 -202
- package/dist/core/storage/database.d.ts +0 -12
- package/dist/core/storage/database.js +0 -12
- package/dist/core/summarization/cleanup.d.ts +0 -9
- package/dist/core/summarization/cleanup.js +0 -12
- package/dist/core/summarization/queries.d.ts +0 -9
- package/dist/core/summarization/queries.js +0 -28
- package/dist/core/summarization/stats.d.ts +0 -14
- package/dist/core/summarization/stats.js +0 -52
- package/dist/core/summarization/strategies.d.ts +0 -24
- package/dist/core/summarization/strategies.js +0 -28
- package/dist/core/summarization.d.ts +0 -37
- package/dist/core/summarization.js +0 -188
- package/dist/core/temporal-facts.d.ts +0 -54
- package/dist/core/temporal-facts.js +0 -193
- package/dist/core/tracing/collector.d.ts +0 -111
- package/dist/core/tracing/collector.js +0 -350
- package/dist/core/tracing/visualizer.d.ts +0 -32
- package/dist/core/tracing/visualizer.js +0 -165
- package/dist/core/utils/cleanup-operations.d.ts +0 -13
- package/dist/core/utils/cleanup-operations.js +0 -44
- package/dist/core/utils/content-extraction.d.ts +0 -19
- package/dist/core/utils/content-extraction.js +0 -75
- package/dist/core/utils/filter-builder.d.ts +0 -13
- package/dist/core/utils/filter-builder.js +0 -44
- package/dist/core/utils/history-traversal.d.ts +0 -13
- package/dist/core/utils/history-traversal.js +0 -50
- package/dist/core/utils/memory-operations.d.ts +0 -17
- package/dist/core/utils/memory-operations.js +0 -43
- package/dist/core/utils/query-operations.d.ts +0 -18
- package/dist/core/utils/query-operations.js +0 -65
- package/dist/core/utils/summarization-helpers.d.ts +0 -17
- package/dist/core/utils/summarization-helpers.js +0 -33
- package/dist/core/utils/temporal-queries.d.ts +0 -13
- package/dist/core/utils/temporal-queries.js +0 -27
- package/dist/core/utils/vector-operations.d.ts +0 -71
- package/dist/core/utils/vector-operations.js +0 -129
- package/dist/core/utils/version-management.d.ts +0 -9
- package/dist/core/utils/version-management.js +0 -61
- package/dist/core/worker.d.ts +0 -82
- package/dist/core/worker.js +0 -272
- package/dist/db/adapter.d.ts +0 -7
- package/dist/db/adapter.js +0 -175
- package/dist/db/bootstrap.d.ts +0 -11
- package/dist/db/bootstrap.js +0 -1034
- package/dist/db/drizzle/schema-sqlite.d.ts +0 -5538
- package/dist/db/drizzle/schema-sqlite.js +0 -763
- package/dist/db/drizzle/schema.d.ts +0 -4734
- package/dist/db/drizzle/schema.js +0 -859
- package/dist/db/drizzle.config.d.ts +0 -3
- package/dist/db/drizzle.config.js +0 -12
- package/dist/db/index.d.ts +0 -7
- package/dist/db/index.js +0 -89
- package/dist/db/migrations/associations.d.ts +0 -6
- package/dist/db/migrations/associations.js +0 -29
- package/dist/db/migrations/beliefs.d.ts +0 -10
- package/dist/db/migrations/beliefs.js +0 -76
- package/dist/db/migrations/core-memory.d.ts +0 -6
- package/dist/db/migrations/core-memory.js +0 -29
- package/dist/db/migrations/fts.d.ts +0 -6
- package/dist/db/migrations/fts.js +0 -52
- package/dist/db/migrations/index.d.ts +0 -25
- package/dist/db/migrations/index.js +0 -51
- package/dist/db/migrations/indexes.d.ts +0 -6
- package/dist/db/migrations/indexes.js +0 -30
- package/dist/db/migrations/learnings.d.ts +0 -7
- package/dist/db/migrations/learnings.js +0 -26
- package/dist/db/migrations/maintenance.d.ts +0 -6
- package/dist/db/migrations/maintenance.js +0 -61
- package/dist/db/migrations/memories.d.ts +0 -7
- package/dist/db/migrations/memories.js +0 -16
- package/dist/db/migrations/memory-places.d.ts +0 -6
- package/dist/db/migrations/memory-places.js +0 -29
- package/dist/db/migrations/places.d.ts +0 -6
- package/dist/db/migrations/places.js +0 -43
- package/dist/db/migrations/projects.d.ts +0 -3
- package/dist/db/migrations/projects.js +0 -13
- package/dist/db/migrations/tier-conversion.d.ts +0 -7
- package/dist/db/migrations/tier-conversion.js +0 -20
- package/dist/db/neon.d.ts +0 -8
- package/dist/db/neon.js +0 -20
- package/dist/db/schema/beliefs.d.ts +0 -9
- package/dist/db/schema/beliefs.js +0 -46
- package/dist/db/schema/generator.d.ts +0 -38
- package/dist/db/schema/generator.js +0 -108
- package/dist/db/schema/index.d.ts +0 -39
- package/dist/db/schema/index.js +0 -51
- package/dist/db/schema/learnings.d.ts +0 -7
- package/dist/db/schema/learnings.js +0 -30
- package/dist/db/schema/memories.d.ts +0 -7
- package/dist/db/schema/memories.js +0 -81
- package/dist/db/schema/projects.d.ts +0 -4
- package/dist/db/schema/projects.js +0 -31
- package/dist/db/schema/tables/context-sessions.d.ts +0 -9
- package/dist/db/schema/tables/context-sessions.js +0 -37
- package/dist/db/schema/tables/conversations.d.ts +0 -9
- package/dist/db/schema/tables/conversations.js +0 -47
- package/dist/db/schema/tables/core-memory.d.ts +0 -9
- package/dist/db/schema/tables/core-memory.js +0 -41
- package/dist/db/schema/tables/entities.d.ts +0 -9
- package/dist/db/schema/tables/entities.js +0 -39
- package/dist/db/schema/tables/entity-relations.d.ts +0 -9
- package/dist/db/schema/tables/entity-relations.js +0 -31
- package/dist/db/schema/tables/learnings.d.ts +0 -9
- package/dist/db/schema/tables/learnings.js +0 -66
- package/dist/db/schema/tables/memories.d.ts +0 -9
- package/dist/db/schema/tables/memories.js +0 -161
- package/dist/db/schema/tables/memory-associations.d.ts +0 -9
- package/dist/db/schema/tables/memory-associations.js +0 -39
- package/dist/db/schema/tables/memory-hash-cache.d.ts +0 -9
- package/dist/db/schema/tables/memory-hash-cache.js +0 -29
- package/dist/db/schema/tables/memory-merge-history.d.ts +0 -9
- package/dist/db/schema/tables/memory-merge-history.js +0 -33
- package/dist/db/schema/tables/memory-merge-proposals.d.ts +0 -9
- package/dist/db/schema/tables/memory-merge-proposals.js +0 -39
- package/dist/db/schema/tables/messages.d.ts +0 -9
- package/dist/db/schema/tables/messages.js +0 -41
- package/dist/db/schema/tables/namespaces.d.ts +0 -9
- package/dist/db/schema/tables/namespaces.js +0 -37
- package/dist/db/schema/tables/projects.d.ts +0 -9
- package/dist/db/schema/tables/projects.js +0 -31
- package/dist/db/schema/tables/users.d.ts +0 -9
- package/dist/db/schema/tables/users.js +0 -27
- package/dist/db/schema.d.ts +0 -3
- package/dist/db/schema.js +0 -11
- package/dist/db/supabase.d.ts +0 -9
- package/dist/db/supabase.js +0 -24
- package/dist/packages/mcp/src/index.d.ts +0 -3
- package/dist/packages/mcp/src/index.js +0 -733
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Graph Traversal Engine
|
|
3
|
-
*
|
|
4
|
-
* BFS/DFS traversal of the entity relationship graph. This is the
|
|
5
|
-
* core capability that enables multi-hop queries like:
|
|
6
|
-
*
|
|
7
|
-
* "Was Alice's project affected by Tuesday's outage?"
|
|
8
|
-
*
|
|
9
|
-
* Which requires traversing: Alice → works_on → Project Atlas → uses → PostgreSQL → caused → outage
|
|
10
|
-
*
|
|
11
|
-
* Vector search alone can't answer this because the bridge fact
|
|
12
|
-
* ("Project Atlas uses PostgreSQL") mentions neither Alice nor Tuesday.
|
|
13
|
-
*/
|
|
14
|
-
import { eq, and, or, sql } from 'drizzle-orm';
|
|
15
|
-
import { getDb } from '../../db/index.js';
|
|
16
|
-
import { getSchema } from '../../db/schema.js';
|
|
17
|
-
// ─── Core Traversal ─────────────────────────────────────────────────────────
|
|
18
|
-
/**
|
|
19
|
-
* BFS traversal from a starting entity, following relationship edges.
|
|
20
|
-
* Returns all reachable entities within maxDepth hops.
|
|
21
|
-
*/
|
|
22
|
-
export async function traverse(startEntityId, options) {
|
|
23
|
-
const { maxDepth = 3, relationTypes, minWeight = 0, direction = 'both', limit = 50, } = options || {};
|
|
24
|
-
const db = await getDb();
|
|
25
|
-
const schema = await getSchema();
|
|
26
|
-
const visited = new Set([startEntityId]);
|
|
27
|
-
const result = [];
|
|
28
|
-
let currentLevel = [startEntityId];
|
|
29
|
-
for (let depth = 0; depth < maxDepth; depth++) {
|
|
30
|
-
if (currentLevel.length === 0)
|
|
31
|
-
break;
|
|
32
|
-
const nextLevel = [];
|
|
33
|
-
for (const entityId of currentLevel) {
|
|
34
|
-
// Get connected entities
|
|
35
|
-
const connected = await getConnectedEntities(entityId, db, schema, direction, relationTypes, minWeight);
|
|
36
|
-
for (const { id, edge } of connected) {
|
|
37
|
-
if (!visited.has(id)) {
|
|
38
|
-
visited.add(id);
|
|
39
|
-
nextLevel.push(id);
|
|
40
|
-
// Fetch the entity details
|
|
41
|
-
const entity = await db
|
|
42
|
-
.select()
|
|
43
|
-
.from(schema.entities)
|
|
44
|
-
.where(eq(schema.entities.id, id))
|
|
45
|
-
.limit(1);
|
|
46
|
-
if (entity.length > 0) {
|
|
47
|
-
result.push({
|
|
48
|
-
id: entity[0].id,
|
|
49
|
-
name: entity[0].name,
|
|
50
|
-
type: entity[0].type,
|
|
51
|
-
description: entity[0].description,
|
|
52
|
-
properties: entity[0].properties,
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
if (result.length >= limit)
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (result.length >= limit)
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
currentLevel = nextLevel;
|
|
63
|
-
}
|
|
64
|
-
return result;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Find all paths between two entities within a maximum number of hops.
|
|
68
|
-
* Uses BFS with path tracking.
|
|
69
|
-
*/
|
|
70
|
-
export async function findPaths(fromEntityId, toEntityId, options) {
|
|
71
|
-
const { maxHops = 4, relationTypes, minWeight = 0, maxPaths = 5, } = options || {};
|
|
72
|
-
const db = await getDb();
|
|
73
|
-
const schema = await getSchema();
|
|
74
|
-
const paths = [];
|
|
75
|
-
// BFS with path tracking
|
|
76
|
-
const queue = [{
|
|
77
|
-
nodeId: fromEntityId,
|
|
78
|
-
path: { nodes: [], edges: [], weight: 0 },
|
|
79
|
-
}];
|
|
80
|
-
const visited = new Map(); // nodeId -> best weight to reach it
|
|
81
|
-
// Start entity
|
|
82
|
-
const startEntity = await db
|
|
83
|
-
.select()
|
|
84
|
-
.from(schema.entities)
|
|
85
|
-
.where(eq(schema.entities.id, fromEntityId))
|
|
86
|
-
.limit(1);
|
|
87
|
-
if (startEntity.length === 0)
|
|
88
|
-
return [];
|
|
89
|
-
const startNode = {
|
|
90
|
-
id: startEntity[0].id,
|
|
91
|
-
name: startEntity[0].name,
|
|
92
|
-
type: startEntity[0].type,
|
|
93
|
-
description: startEntity[0].description,
|
|
94
|
-
properties: startEntity[0].properties,
|
|
95
|
-
};
|
|
96
|
-
queue[0].path.nodes.push(startNode);
|
|
97
|
-
while (queue.length > 0 && paths.length < maxPaths) {
|
|
98
|
-
const { nodeId, path } = queue.shift();
|
|
99
|
-
if (path.nodes.length > maxHops + 1)
|
|
100
|
-
continue;
|
|
101
|
-
// Found target
|
|
102
|
-
if (nodeId === toEntityId && path.nodes.length > 1) {
|
|
103
|
-
paths.push({
|
|
104
|
-
nodes: [...path.nodes],
|
|
105
|
-
edges: [...path.edges],
|
|
106
|
-
totalWeight: path.weight,
|
|
107
|
-
hopCount: path.edges.length,
|
|
108
|
-
});
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
// Get connected entities
|
|
112
|
-
const connected = await getConnectedEntities(nodeId, db, schema, 'outgoing', relationTypes, minWeight);
|
|
113
|
-
for (const { id, edge } of connected) {
|
|
114
|
-
// Avoid cycles
|
|
115
|
-
if (path.nodes.some(n => n.id === id))
|
|
116
|
-
continue;
|
|
117
|
-
// Prune if we already found a better path to this node
|
|
118
|
-
const currentBest = visited.get(id);
|
|
119
|
-
if (currentBest !== undefined && path.weight + edge.weight >= currentBest)
|
|
120
|
-
continue;
|
|
121
|
-
visited.set(id, path.weight + edge.weight);
|
|
122
|
-
// Get entity details
|
|
123
|
-
const entity = await db
|
|
124
|
-
.select()
|
|
125
|
-
.from(schema.entities)
|
|
126
|
-
.where(eq(schema.entities.id, id))
|
|
127
|
-
.limit(1);
|
|
128
|
-
if (entity.length === 0)
|
|
129
|
-
continue;
|
|
130
|
-
const node = {
|
|
131
|
-
id: entity[0].id,
|
|
132
|
-
name: entity[0].name,
|
|
133
|
-
type: entity[0].type,
|
|
134
|
-
description: entity[0].description,
|
|
135
|
-
properties: entity[0].properties,
|
|
136
|
-
};
|
|
137
|
-
queue.push({
|
|
138
|
-
nodeId: id,
|
|
139
|
-
path: {
|
|
140
|
-
nodes: [...path.nodes, node],
|
|
141
|
-
edges: [...path.edges, edge],
|
|
142
|
-
weight: path.weight + (edge.weight || 1),
|
|
143
|
-
},
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
// Sort paths by weight (lower is better)
|
|
148
|
-
paths.sort((a, b) => a.totalWeight - b.totalWeight);
|
|
149
|
-
return paths;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Get the neighborhood around an entity - all entities within N hops.
|
|
153
|
-
* Returns both the entities and the edges connecting them.
|
|
154
|
-
*/
|
|
155
|
-
export async function getNeighborhood(centerEntityId, options) {
|
|
156
|
-
const { radius = 2, relationTypes, minWeight = 0, limit = 30, } = options || {};
|
|
157
|
-
const db = await getDb();
|
|
158
|
-
const schema = await getSchema();
|
|
159
|
-
// Get center entity
|
|
160
|
-
const centerEntity = await db
|
|
161
|
-
.select()
|
|
162
|
-
.from(schema.entities)
|
|
163
|
-
.where(eq(schema.entities.id, centerEntityId))
|
|
164
|
-
.limit(1);
|
|
165
|
-
if (centerEntity.length === 0)
|
|
166
|
-
return null;
|
|
167
|
-
const center = {
|
|
168
|
-
id: centerEntity[0].id,
|
|
169
|
-
name: centerEntity[0].name,
|
|
170
|
-
type: centerEntity[0].type,
|
|
171
|
-
description: centerEntity[0].description,
|
|
172
|
-
properties: centerEntity[0].properties,
|
|
173
|
-
};
|
|
174
|
-
const nodes = [center];
|
|
175
|
-
const edges = [];
|
|
176
|
-
const visited = new Set([centerEntityId]);
|
|
177
|
-
let currentLevel = [centerEntityId];
|
|
178
|
-
for (let hop = 0; hop < radius; hop++) {
|
|
179
|
-
const nextLevel = [];
|
|
180
|
-
for (const entityId of currentLevel) {
|
|
181
|
-
const connected = await getConnectedEntities(entityId, db, schema, 'both', relationTypes, minWeight);
|
|
182
|
-
for (const { id, edge } of connected) {
|
|
183
|
-
if (!visited.has(id)) {
|
|
184
|
-
visited.add(id);
|
|
185
|
-
nextLevel.push(id);
|
|
186
|
-
const entity = await db
|
|
187
|
-
.select()
|
|
188
|
-
.from(schema.entities)
|
|
189
|
-
.where(eq(schema.entities.id, id))
|
|
190
|
-
.limit(1);
|
|
191
|
-
if (entity.length > 0) {
|
|
192
|
-
nodes.push({
|
|
193
|
-
id: entity[0].id,
|
|
194
|
-
name: entity[0].name,
|
|
195
|
-
type: entity[0].type,
|
|
196
|
-
description: entity[0].description,
|
|
197
|
-
properties: entity[0].properties,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
edges.push(edge);
|
|
202
|
-
}
|
|
203
|
-
if (nodes.length >= limit)
|
|
204
|
-
break;
|
|
205
|
-
}
|
|
206
|
-
currentLevel = nextLevel;
|
|
207
|
-
if (nodes.length >= limit)
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
return { center, nodes, edges, radius };
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Find entities by name (fuzzy matching).
|
|
214
|
-
*/
|
|
215
|
-
export async function findEntitiesByName(name, projectId, options) {
|
|
216
|
-
const { limit = 10, fuzzy = true } = options || {};
|
|
217
|
-
const db = await getDb();
|
|
218
|
-
const schema = await getSchema();
|
|
219
|
-
// Try exact match first
|
|
220
|
-
const exact = await db
|
|
221
|
-
.select()
|
|
222
|
-
.from(schema.entities)
|
|
223
|
-
.where(and(eq(schema.entities.projectId, projectId), eq(schema.entities.name, name)))
|
|
224
|
-
.limit(limit);
|
|
225
|
-
if (exact.length > 0) {
|
|
226
|
-
return exact.map((e) => ({
|
|
227
|
-
id: e.id,
|
|
228
|
-
name: e.name,
|
|
229
|
-
type: e.type,
|
|
230
|
-
description: e.description,
|
|
231
|
-
properties: e.properties,
|
|
232
|
-
}));
|
|
233
|
-
}
|
|
234
|
-
// Fuzzy match using LIKE
|
|
235
|
-
if (fuzzy) {
|
|
236
|
-
const fuzzyResults = await db
|
|
237
|
-
.select()
|
|
238
|
-
.from(schema.entities)
|
|
239
|
-
.where(and(eq(schema.entities.projectId, projectId), sql `LOWER(${schema.entities.name}) LIKE LOWER(${'%' + name + '%'})`))
|
|
240
|
-
.limit(limit);
|
|
241
|
-
return fuzzyResults.map((e) => ({
|
|
242
|
-
id: e.id,
|
|
243
|
-
name: e.name,
|
|
244
|
-
type: e.type,
|
|
245
|
-
description: e.description,
|
|
246
|
-
properties: e.properties,
|
|
247
|
-
}));
|
|
248
|
-
}
|
|
249
|
-
return [];
|
|
250
|
-
}
|
|
251
|
-
// ─── Helper Functions ────────────────────────────────────────────────────────
|
|
252
|
-
/**
|
|
253
|
-
* Get entities connected to a given entity via relations.
|
|
254
|
-
*/
|
|
255
|
-
async function getConnectedEntities(entityId, db, schema, direction, relationTypes, minWeight = 0) {
|
|
256
|
-
const results = [];
|
|
257
|
-
// Build where conditions
|
|
258
|
-
const conditions = [];
|
|
259
|
-
if (direction === 'outgoing' || direction === 'both') {
|
|
260
|
-
// Relations FROM this entity
|
|
261
|
-
let outgoingWhere = eq(schema.entityRelations.fromEntityId, entityId);
|
|
262
|
-
if (minWeight > 0) {
|
|
263
|
-
outgoingWhere = and(outgoingWhere, sql `${schema.entityRelations.weight} >= ${minWeight}`);
|
|
264
|
-
}
|
|
265
|
-
if (relationTypes && relationTypes.length > 0) {
|
|
266
|
-
outgoingWhere = and(outgoingWhere, or(...relationTypes.map(t => eq(schema.entityRelations.type, t))));
|
|
267
|
-
}
|
|
268
|
-
const outgoing = await db
|
|
269
|
-
.select()
|
|
270
|
-
.from(schema.entityRelations)
|
|
271
|
-
.where(outgoingWhere);
|
|
272
|
-
for (const rel of outgoing) {
|
|
273
|
-
results.push({
|
|
274
|
-
id: rel.toEntityId,
|
|
275
|
-
edge: {
|
|
276
|
-
id: rel.id,
|
|
277
|
-
fromId: rel.fromEntityId,
|
|
278
|
-
toId: rel.toEntityId,
|
|
279
|
-
relationType: rel.type,
|
|
280
|
-
weight: rel.weight || 1,
|
|
281
|
-
properties: rel.properties,
|
|
282
|
-
},
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
if (direction === 'incoming' || direction === 'both') {
|
|
287
|
-
// Relations TO this entity
|
|
288
|
-
let incomingWhere = eq(schema.entityRelations.toEntityId, entityId);
|
|
289
|
-
if (minWeight > 0) {
|
|
290
|
-
incomingWhere = and(incomingWhere, sql `${schema.entityRelations.weight} >= ${minWeight}`);
|
|
291
|
-
}
|
|
292
|
-
if (relationTypes && relationTypes.length > 0) {
|
|
293
|
-
incomingWhere = and(incomingWhere, or(...relationTypes.map(t => eq(schema.entityRelations.type, t))));
|
|
294
|
-
}
|
|
295
|
-
const incoming = await db
|
|
296
|
-
.select()
|
|
297
|
-
.from(schema.entityRelations)
|
|
298
|
-
.where(incomingWhere);
|
|
299
|
-
for (const rel of incoming) {
|
|
300
|
-
results.push({
|
|
301
|
-
id: rel.fromEntityId,
|
|
302
|
-
edge: {
|
|
303
|
-
id: rel.id,
|
|
304
|
-
fromId: rel.fromEntityId,
|
|
305
|
-
toId: rel.toEntityId,
|
|
306
|
-
relationType: rel.type,
|
|
307
|
-
weight: rel.weight || 1,
|
|
308
|
-
properties: rel.properties,
|
|
309
|
-
},
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
return results;
|
|
314
|
-
}
|
|
315
|
-
//# sourceMappingURL=graph-traversal.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Knowledge Graph Module
|
|
3
|
-
*
|
|
4
|
-
* Provides entity extraction, relationship mapping, graph traversal,
|
|
5
|
-
* and multi-hop retrieval for Squish's knowledge graph.
|
|
6
|
-
*/
|
|
7
|
-
export { extractEntitiesAndRelations, batchExtractEntitiesAndRelations, getExtractionPrompt, testParseLLMResponse } from './llm-entity-extractor.js';
|
|
8
|
-
export type { LLMExtractionResult, ExtractedRelation, RelationType } from './llm-entity-extractor.js';
|
|
9
|
-
export { extractAndStoreRelations, getEntityRelations, getProjectEntities, clearProjectGraph } from './relationship-extractor.js';
|
|
10
|
-
export type { StoredRelation } from './relationship-extractor.js';
|
|
11
|
-
export { deduplicateProjectEntities } from './entity-deduplicator.js';
|
|
12
|
-
export type { DeduplicationResult } from './entity-deduplicator.js';
|
|
13
|
-
export { traverse, findPaths, getNeighborhood, findEntitiesByName } from './graph-traversal.js';
|
|
14
|
-
export type { GraphNode, GraphEdge, TraversalPath, NeighborhoodResult } from './graph-traversal.js';
|
|
15
|
-
export { multiHopSearch, needsMultiHop, explainRetrievalPath } from './multi-hop-retrieval.js';
|
|
16
|
-
export type { MultiHopResult, MultiHopSearchOptions } from './multi-hop-retrieval.js';
|
|
17
|
-
export { buildGraphForProject, addMemoryToGraph, getGraphStats } from './graph-builder.js';
|
|
18
|
-
export type { GraphBuildStats, GraphAddStats } from './graph-builder.js';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/graph/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Knowledge Graph Module
|
|
3
|
-
*
|
|
4
|
-
* Provides entity extraction, relationship mapping, graph traversal,
|
|
5
|
-
* and multi-hop retrieval for Squish's knowledge graph.
|
|
6
|
-
*/
|
|
7
|
-
export { extractEntitiesAndRelations, batchExtractEntitiesAndRelations, getExtractionPrompt, testParseLLMResponse } from './llm-entity-extractor.js';
|
|
8
|
-
export { extractAndStoreRelations, getEntityRelations, getProjectEntities, clearProjectGraph } from './relationship-extractor.js';
|
|
9
|
-
export { deduplicateProjectEntities } from './entity-deduplicator.js';
|
|
10
|
-
export { traverse, findPaths, getNeighborhood, findEntitiesByName } from './graph-traversal.js';
|
|
11
|
-
export { multiHopSearch, needsMultiHop, explainRetrievalPath } from './multi-hop-retrieval.js';
|
|
12
|
-
export { buildGraphForProject, addMemoryToGraph, getGraphStats } from './graph-builder.js';
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LLM Entity Extractor
|
|
3
|
-
*
|
|
4
|
-
* Extracts named entities and relationships from memory content using
|
|
5
|
-
* LLM-powered analysis. Falls back to regex extraction when LLM is unavailable.
|
|
6
|
-
*/
|
|
7
|
-
import { type ExtractedEntity } from '../memory/entity-extractor.js';
|
|
8
|
-
export type RelationType = 'works_on' | 'depends_on' | 'manages' | 'uses' | 'caused' | 'located_in' | 'belongs_to' | 'reports_to' | 'occurred_on' | 'affects' | 'contains' | 'implements' | 'extends' | 'related_to' | 'part_of' | 'owns' | 'created' | 'resolved' | 'blocks';
|
|
9
|
-
export interface ExtractedRelation {
|
|
10
|
-
fromEntity: string;
|
|
11
|
-
toEntity: string;
|
|
12
|
-
relationType: RelationType;
|
|
13
|
-
confidence: number;
|
|
14
|
-
context: string;
|
|
15
|
-
}
|
|
16
|
-
export interface LLMExtractionResult {
|
|
17
|
-
entities: ExtractedEntity[];
|
|
18
|
-
relations: ExtractedRelation[];
|
|
19
|
-
source: 'llm' | 'regex' | 'none';
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Extract entities and relationships from text using LLM.
|
|
23
|
-
* Falls back to regex extraction when LLM is unavailable.
|
|
24
|
-
*/
|
|
25
|
-
export declare function extractEntitiesAndRelations(content: string, options?: {
|
|
26
|
-
preferLLM?: boolean;
|
|
27
|
-
maxContentLength?: number;
|
|
28
|
-
}): Promise<LLMExtractionResult>;
|
|
29
|
-
/**
|
|
30
|
-
* Extract entities and relations from multiple memories in batch.
|
|
31
|
-
* More efficient than calling extractEntitiesAndRelations for each memory.
|
|
32
|
-
*/
|
|
33
|
-
export declare function batchExtractEntitiesAndRelations(contents: string[], options?: {
|
|
34
|
-
preferLLM?: boolean;
|
|
35
|
-
maxContentLength?: number;
|
|
36
|
-
batchSize?: number;
|
|
37
|
-
}): Promise<LLMExtractionResult[]>;
|
|
38
|
-
/**
|
|
39
|
-
* Get the extraction prompt for testing/debugging purposes.
|
|
40
|
-
*/
|
|
41
|
-
export declare function getExtractionPrompt(): string;
|
|
42
|
-
/**
|
|
43
|
-
* Parse an LLM response for testing/debugging purposes.
|
|
44
|
-
*/
|
|
45
|
-
export declare function testParseLLMResponse(response: string): {
|
|
46
|
-
entities: ExtractedEntity[];
|
|
47
|
-
relations: ExtractedRelation[];
|
|
48
|
-
} | null;
|
|
49
|
-
//# sourceMappingURL=llm-entity-extractor.d.ts.map
|