@rex0220/kintone-sql-tools 3.66.0 → 3.66.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.
@@ -1,11 +1,11 @@
1
1
  {
2
- "generatedAt": "2026-08-09T12:49:25.799Z",
2
+ "generatedAt": "2026-08-10T10:50:57.178Z",
3
3
  "baseline": "B66 Phase1 initial measured values; no arbitrary size ceiling",
4
4
  "bundles": {
5
5
  "index.cjs": {
6
6
  "inputCount": 111,
7
- "minifiedBytes": 653462,
8
- "gzipBytes": 178462,
7
+ "minifiedBytes": 653551,
8
+ "gzipBytes": 178503,
9
9
  "forbidden": {
10
10
  "mcp-instructions": [],
11
11
  "src-mcp": [],
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "index.mjs": {
26
26
  "inputCount": 111,
27
- "minifiedBytes": 652917,
28
- "gzipBytes": 178192,
27
+ "minifiedBytes": 653006,
28
+ "gzipBytes": 178219,
29
29
  "forbidden": {
30
30
  "mcp-instructions": [],
31
31
  "src-mcp": [],
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "ksql-engine.umd.js": {
46
46
  "inputCount": 113,
47
- "minifiedBytes": 653941,
48
- "gzipBytes": 178532,
47
+ "minifiedBytes": 654030,
48
+ "gzipBytes": 178545,
49
49
  "forbidden": {
50
50
  "mcp-instructions": [],
51
51
  "src-mcp": [],
@@ -1368,7 +1368,7 @@
1368
1368
  "format": "esm"
1369
1369
  },
1370
1370
  "src/execute.ts": {
1371
- "bytes": 569462,
1371
+ "bytes": 569650,
1372
1372
  "imports": [
1373
1373
  {
1374
1374
  "path": "src/lexer/lexer.ts",
@@ -2373,7 +2373,7 @@
2373
2373
  "bytesInOutput": 412
2374
2374
  },
2375
2375
  "src/execute.ts": {
2376
- "bytesInOutput": 229963
2376
+ "bytesInOutput": 230052
2377
2377
  },
2378
2378
  "src/engine-library/errors.ts": {
2379
2379
  "bytesInOutput": 1441
@@ -2433,7 +2433,7 @@
2433
2433
  "bytesInOutput": 1406
2434
2434
  }
2435
2435
  },
2436
- "bytes": 653462
2436
+ "bytes": 653551
2437
2437
  }
2438
2438
  }
2439
2439
  }
@@ -1368,7 +1368,7 @@
1368
1368
  "format": "esm"
1369
1369
  },
1370
1370
  "src/execute.ts": {
1371
- "bytes": 569462,
1371
+ "bytes": 569650,
1372
1372
  "imports": [
1373
1373
  {
1374
1374
  "path": "src/lexer/lexer.ts",
@@ -2377,7 +2377,7 @@
2377
2377
  "bytesInOutput": 412
2378
2378
  },
2379
2379
  "src/execute.ts": {
2380
- "bytesInOutput": 229963
2380
+ "bytesInOutput": 230052
2381
2381
  },
2382
2382
  "src/engine-library/errors.ts": {
2383
2383
  "bytesInOutput": 1441
@@ -2440,7 +2440,7 @@
2440
2440
  "bytesInOutput": 16
2441
2441
  }
2442
2442
  },
2443
- "bytes": 652917
2443
+ "bytes": 653006
2444
2444
  }
2445
2445
  }
2446
2446
  }
@@ -1368,7 +1368,7 @@
1368
1368
  "format": "esm"
1369
1369
  },
1370
1370
  "src/execute.ts": {
1371
- "bytes": 569462,
1371
+ "bytes": 569650,
1372
1372
  "imports": [
1373
1373
  {
1374
1374
  "path": "src/lexer/lexer.ts",
@@ -2391,7 +2391,7 @@
2391
2391
  "bytesInOutput": 412
2392
2392
  },
2393
2393
  "src/execute.ts": {
2394
- "bytesInOutput": 229963
2394
+ "bytesInOutput": 230052
2395
2395
  },
2396
2396
  "src/engine-library/errors.ts": {
2397
2397
  "bytesInOutput": 1441
@@ -2460,7 +2460,7 @@
2460
2460
  "bytesInOutput": 127
2461
2461
  }
2462
2462
  },
2463
- "bytes": 653941
2463
+ "bytes": 654030
2464
2464
  }
2465
2465
  }
2466
2466
  }
@@ -29764,7 +29764,7 @@ var import_docsResourceBuilder = __toESM(require_docsResourceBuilder());
29764
29764
 
29765
29765
  // src/mcp/serverVersion.ts
29766
29766
  init_define_KSQL_DOCS();
29767
- var SERVER_VERSION = true ? "3.66.0" : "0.0.0-dev";
29767
+ var SERVER_VERSION = true ? "3.66.1" : "0.0.0-dev";
29768
29768
 
29769
29769
  // src/mcp/docsResources.ts
29770
29770
  function loadFromRepoDocs() {
@@ -55481,9 +55481,13 @@ async function buildExplainWhereAnalysis(query, client, cacheContext, maxRecords
55481
55481
  const joinField = leftAlias === joinAlias ? join.on.left.field : join.on.right.field;
55482
55482
  if (!sourceAlias) continue;
55483
55483
  const sourceTable = [select.from, ...select.joins.map((candidate) => candidate.table)].find((table) => effectiveTableAlias(table) === sourceAlias);
55484
- const targetInfos = await getFieldsCached(join.table.appId, tracedClient, cacheContext);
55485
- const targetInfo = targetInfos.find((info) => info.code === fieldCodeForTypeLookup(join.table, joinField));
55486
- const targetMeta = targetInfo ? materializedMetaFromFieldInfo(targetInfo, join.table.appId) : systemColumnMeta(joinField);
55484
+ let targetMeta;
55485
+ if (join.table.cteName !== null) {
55486
+ targetMeta = explainRelations.get(join.table.cteName)?.columnMeta?.get(joinField);
55487
+ } else {
55488
+ const targetInfo = (await getFieldsCached(join.table.appId, tracedClient, cacheContext)).find((info) => info.code === fieldCodeForTypeLookup(join.table, joinField));
55489
+ targetMeta = targetInfo ? materializedMetaFromFieldInfo(targetInfo, join.table.appId) : systemColumnMeta(joinField);
55490
+ }
55487
55491
  let sourceMeta;
55488
55492
  let values;
55489
55493
  let sourceRowCount;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rex0220/kintone-sql-tools",
3
- "version": "3.66.0",
3
+ "version": "3.66.1",
4
4
  "description": "kintone SQL plugin, CLI, and MCP tools (ksql)",
5
5
  "publishConfig": {
6
6
  "access": "public"