sepia-mcp 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3338,6 +3338,9 @@ class PrimaryKey {
3338
3338
  }
3339
3339
 
3340
3340
  // ../shared/src/db/schema.ts
3341
+ var tsvector = customType({
3342
+ dataType: () => "tsvector"
3343
+ });
3341
3344
  var users = pgTable("users", {
3342
3345
  id: uuid2().primaryKey().notNull(),
3343
3346
  name: text().notNull(),
@@ -3512,6 +3515,7 @@ var entities = pgTable("entities", {
3512
3515
  importance: real().default(0.5),
3513
3516
  accessCount: integer("access_count").default(0),
3514
3517
  tags: text("tags").array().default([]),
3518
+ haystackTsv: tsvector("haystack_tsv").generatedAlwaysAs(sql`to_tsvector('english', COALESCE(name, '') || ' ' || COALESCE(summary, ''))`),
3515
3519
  createdAt: timestamp("created_at", {
3516
3520
  withTimezone: true,
3517
3521
  mode: "string"
@@ -3524,6 +3528,7 @@ var entities = pgTable("entities", {
3524
3528
  index("idx_entities_name").using("btree", table.name.asc().nullsLast().op("text_ops")),
3525
3529
  index("idx_entities_namespace").using("btree", table.namespaceId.asc().nullsLast().op("uuid_ops")),
3526
3530
  index("idx_entities_type").using("btree", table.type.asc().nullsLast().op("text_ops")),
3531
+ index("entities_haystack_bm25").using("lakebase_bm25", table.haystackTsv).with({ b: 0, default_limit: 100 }),
3527
3532
  unique("entities_namespace_id_name_key").on(table.namespaceId, table.name),
3528
3533
  check("entities_importance_check", sql`${table.importance} >= 0 AND ${table.importance} <= 1`),
3529
3534
  check("entities_type_check", sql`${table.type} IN ('person', 'project', 'tool', 'concept', 'repo')`),
@@ -3585,11 +3590,13 @@ var memories = pgTable("memories", {
3585
3590
  withTimezone: true,
3586
3591
  mode: "string"
3587
3592
  }).defaultNow(),
3588
- archived: boolean2().default(false)
3593
+ archived: boolean2().default(false),
3594
+ contentTsv: tsvector("content_tsv").generatedAlwaysAs(sql`to_tsvector('english', COALESCE(content, ''))`)
3589
3595
  }, (table) => [
3590
3596
  index("idx_memories_importance").using("btree", table.importance.asc().nullsLast().op("float4_ops")),
3591
3597
  index("idx_memories_namespace").using("btree", table.namespaceId.asc().nullsLast().op("uuid_ops")),
3592
3598
  index("idx_memories_type").using("btree", table.type.asc().nullsLast().op("text_ops")),
3599
+ index("memories_content_bm25").using("lakebase_bm25", table.contentTsv).with({ b: 0, default_limit: 100 }),
3593
3600
  check("memories_importance_check", sql`${table.importance} >= 0 AND ${table.importance} <= 1`),
3594
3601
  check("memories_type_check", sql`${table.type} IN ('fact', 'observation', 'preference', 'instruction')`),
3595
3602
  index("idx_memories_content_trgm").using("gin", table.content.op("gin_trgm_ops")),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sepia-mcp",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Self-contained MCP server for Sepia — a personal knowledge-graph memory server. Talks to the Sepia REST API (SEPIA_URL + SEPIA_API_KEY); stdio or HTTP transport.",
5
5
  "type": "module",
6
6
  "repository": {