@signetai/connector-kimi 0.214.4 → 0.214.7

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 +106 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -16093,6 +16093,41 @@ function up142(db) {
16093
16093
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
16094
16094
  }
16095
16095
  }
16096
+ function up143(db) {
16097
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
16098
+ const additions = [
16099
+ ["migration_phase", "TEXT"],
16100
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
16101
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
16102
+ ["projection_cursor_last_id", "TEXT"],
16103
+ ["projection_cursor_slot", "TEXT"],
16104
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
16105
+ ["provider_endpoint", "TEXT"]
16106
+ ];
16107
+ for (const [name, definition] of additions) {
16108
+ if (!columns.has(name))
16109
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
16110
+ }
16111
+ db.exec(`
16112
+ UPDATE embedding_index_state
16113
+ SET provider_endpoint = COALESCE(
16114
+ provider_endpoint,
16115
+ json_extract(active_profile_json, '$.baseUrl')
16116
+ )
16117
+ WHERE id = 1
16118
+ `);
16119
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
16120
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
16121
+ if (hasEmbeddings && hasStaging) {
16122
+ db.exec(`
16123
+ UPDATE embedding_index_state
16124
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
16125
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
16126
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
16127
+ WHERE state = 'building'
16128
+ `);
16129
+ }
16130
+ }
16096
16131
  var MIGRATIONS = [
16097
16132
  {
16098
16133
  version: 1,
@@ -17214,6 +17249,22 @@ var MIGRATIONS = [
17214
17249
  name: "source-sync-frontier",
17215
17250
  up: up142,
17216
17251
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
17252
+ },
17253
+ {
17254
+ version: 143,
17255
+ name: "embedding-index-progress",
17256
+ up: up143,
17257
+ artifacts: {
17258
+ columns: [
17259
+ { table: "embedding_index_state", column: "migration_phase" },
17260
+ { table: "embedding_index_state", column: "progress_staged" },
17261
+ { table: "embedding_index_state", column: "progress_total" },
17262
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
17263
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
17264
+ { table: "embedding_index_state", column: "no_progress_ticks" },
17265
+ { table: "embedding_index_state", column: "provider_endpoint" }
17266
+ ]
17267
+ }
17217
17268
  }
17218
17269
  ];
17219
17270
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -29060,7 +29111,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
29060
29111
  return true;
29061
29112
  return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
29062
29113
  }
29063
- function up143(db) {
29114
+ function up144(db) {
29064
29115
  db.exec(`
29065
29116
  CREATE TABLE IF NOT EXISTS schema_migrations (
29066
29117
  version INTEGER PRIMARY KEY,
@@ -29570,7 +29621,7 @@ function up1310(db) {
29570
29621
  addColumnIfMissing52(db, "memories", "source_path", "TEXT");
29571
29622
  addColumnIfMissing52(db, "memories", "source_section", "TEXT");
29572
29623
  }
29573
- function up144(db) {
29624
+ function up145(db) {
29574
29625
  db.exec(`
29575
29626
  CREATE TABLE IF NOT EXISTS telemetry_events (
29576
29627
  id TEXT PRIMARY KEY,
@@ -33774,11 +33825,46 @@ function up1422(db) {
33774
33825
  db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
33775
33826
  }
33776
33827
  }
33828
+ function up1432(db) {
33829
+ const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
33830
+ const additions = [
33831
+ ["migration_phase", "TEXT"],
33832
+ ["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
33833
+ ["progress_total", "INTEGER NOT NULL DEFAULT 0"],
33834
+ ["projection_cursor_last_id", "TEXT"],
33835
+ ["projection_cursor_slot", "TEXT"],
33836
+ ["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
33837
+ ["provider_endpoint", "TEXT"]
33838
+ ];
33839
+ for (const [name, definition] of additions) {
33840
+ if (!columns.has(name))
33841
+ db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
33842
+ }
33843
+ db.exec(`
33844
+ UPDATE embedding_index_state
33845
+ SET provider_endpoint = COALESCE(
33846
+ provider_endpoint,
33847
+ json_extract(active_profile_json, '$.baseUrl')
33848
+ )
33849
+ WHERE id = 1
33850
+ `);
33851
+ const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
33852
+ const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
33853
+ if (hasEmbeddings && hasStaging) {
33854
+ db.exec(`
33855
+ UPDATE embedding_index_state
33856
+ SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
33857
+ progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
33858
+ progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
33859
+ WHERE state = 'building'
33860
+ `);
33861
+ }
33862
+ }
33777
33863
  var MIGRATIONS2 = [
33778
33864
  {
33779
33865
  version: 1,
33780
33866
  name: "baseline",
33781
- up: up143,
33867
+ up: up144,
33782
33868
  artifacts: { tables: ["memories", "conversations", "embeddings"] }
33783
33869
  },
33784
33870
  {
@@ -33867,7 +33953,7 @@ var MIGRATIONS2 = [
33867
33953
  {
33868
33954
  version: 14,
33869
33955
  name: "telemetry",
33870
- up: up144,
33956
+ up: up145,
33871
33957
  artifacts: { tables: ["telemetry_events"] }
33872
33958
  },
33873
33959
  {
@@ -34895,6 +34981,22 @@ var MIGRATIONS2 = [
34895
34981
  name: "source-sync-frontier",
34896
34982
  up: up1422,
34897
34983
  artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
34984
+ },
34985
+ {
34986
+ version: 143,
34987
+ name: "embedding-index-progress",
34988
+ up: up1432,
34989
+ artifacts: {
34990
+ columns: [
34991
+ { table: "embedding_index_state", column: "migration_phase" },
34992
+ { table: "embedding_index_state", column: "progress_staged" },
34993
+ { table: "embedding_index_state", column: "progress_total" },
34994
+ { table: "embedding_index_state", column: "projection_cursor_last_id" },
34995
+ { table: "embedding_index_state", column: "projection_cursor_slot" },
34996
+ { table: "embedding_index_state", column: "no_progress_ticks" },
34997
+ { table: "embedding_index_state", column: "provider_endpoint" }
34998
+ ]
34999
+ }
34898
35000
  }
34899
35001
  ];
34900
35002
  var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-kimi",
3
- "version": "0.214.4",
3
+ "version": "0.214.7",
4
4
  "description": "Signet connector for Kimi CLI / Kimi Code",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "typecheck": "tsc --noEmit"
25
25
  },
26
26
  "dependencies": {
27
- "@signetai/connector-base": "0.214.4",
28
- "@signetai/core": "0.214.4"
27
+ "@signetai/connector-base": "0.214.7",
28
+ "@signetai/core": "0.214.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.0.0",