@rex0220/kintone-sql-tools 3.37.0 → 3.37.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-01T00:28:50.000Z",
2
+ "generatedAt": "2026-08-01T04:31:27.172Z",
3
3
  "baseline": "B66 Phase1 initial measured values; no arbitrary size ceiling",
4
4
  "bundles": {
5
5
  "index.cjs": {
6
- "inputCount": 101,
7
- "minifiedBytes": 549183,
8
- "gzipBytes": 150248,
6
+ "inputCount": 102,
7
+ "minifiedBytes": 550228,
8
+ "gzipBytes": 150530,
9
9
  "forbidden": {
10
10
  "mcp-instructions": [],
11
11
  "src-mcp": [],
@@ -23,9 +23,9 @@
23
23
  }
24
24
  },
25
25
  "index.mjs": {
26
- "inputCount": 101,
27
- "minifiedBytes": 548638,
28
- "gzipBytes": 149961,
26
+ "inputCount": 102,
27
+ "minifiedBytes": 549683,
28
+ "gzipBytes": 150257,
29
29
  "forbidden": {
30
30
  "mcp-instructions": [],
31
31
  "src-mcp": [],
@@ -43,9 +43,9 @@
43
43
  }
44
44
  },
45
45
  "ksql-engine.umd.js": {
46
- "inputCount": 103,
47
- "minifiedBytes": 549662,
48
- "gzipBytes": 150293,
46
+ "inputCount": 104,
47
+ "minifiedBytes": 550707,
48
+ "gzipBytes": 150570,
49
49
  "forbidden": {
50
50
  "mcp-instructions": [],
51
51
  "src-mcp": [],
@@ -1689,13 +1689,23 @@
1689
1689
  ],
1690
1690
  "format": "esm"
1691
1691
  },
1692
+ "src/core/sqlDiagnostics.ts": {
1693
+ "bytes": 2568,
1694
+ "imports": [],
1695
+ "format": "esm"
1696
+ },
1692
1697
  "src/engine-library/logicalApps.ts": {
1693
- "bytes": 2772,
1698
+ "bytes": 3215,
1694
1699
  "imports": [
1695
1700
  {
1696
1701
  "path": "src/core/logicalApps.ts",
1697
1702
  "kind": "import-statement",
1698
1703
  "original": "../core/logicalApps"
1704
+ },
1705
+ {
1706
+ "path": "src/core/sqlDiagnostics.ts",
1707
+ "kind": "import-statement",
1708
+ "original": "../core/sqlDiagnostics"
1699
1709
  }
1700
1710
  ],
1701
1711
  "format": "esm"
@@ -1769,7 +1779,7 @@
1769
1779
  "format": "esm"
1770
1780
  },
1771
1781
  "src/engine-library/batch.ts": {
1772
- "bytes": 4148,
1782
+ "bytes": 4351,
1773
1783
  "imports": [
1774
1784
  {
1775
1785
  "path": "src/execute.ts",
@@ -1815,7 +1825,7 @@
1815
1825
  "format": "esm"
1816
1826
  },
1817
1827
  "src/engine-library/query.ts": {
1818
- "bytes": 4167,
1828
+ "bytes": 4329,
1819
1829
  "imports": [
1820
1830
  {
1821
1831
  "path": "src/execute.ts",
@@ -2175,8 +2185,11 @@
2175
2185
  "src/engine-library/options.ts": {
2176
2186
  "bytesInOutput": 2775
2177
2187
  },
2188
+ "src/core/sqlDiagnostics.ts": {
2189
+ "bytesInOutput": 856
2190
+ },
2178
2191
  "src/engine-library/logicalApps.ts": {
2179
- "bytesInOutput": 1093
2192
+ "bytesInOutput": 1224
2180
2193
  },
2181
2194
  "src/engine-library/resultMapping.ts": {
2182
2195
  "bytesInOutput": 873
@@ -2191,13 +2204,13 @@
2191
2204
  "bytesInOutput": 1779
2192
2205
  },
2193
2206
  "src/engine-library/batch.ts": {
2194
- "bytesInOutput": 979
2207
+ "bytesInOutput": 1025
2195
2208
  },
2196
2209
  "src/engine-library/query.ts": {
2197
- "bytesInOutput": 1102
2210
+ "bytesInOutput": 1114
2198
2211
  }
2199
2212
  },
2200
- "bytes": 549183
2213
+ "bytes": 550228
2201
2214
  }
2202
2215
  }
2203
2216
  }
@@ -1689,13 +1689,23 @@
1689
1689
  ],
1690
1690
  "format": "esm"
1691
1691
  },
1692
+ "src/core/sqlDiagnostics.ts": {
1693
+ "bytes": 2568,
1694
+ "imports": [],
1695
+ "format": "esm"
1696
+ },
1692
1697
  "src/engine-library/logicalApps.ts": {
1693
- "bytes": 2772,
1698
+ "bytes": 3215,
1694
1699
  "imports": [
1695
1700
  {
1696
1701
  "path": "src/core/logicalApps.ts",
1697
1702
  "kind": "import-statement",
1698
1703
  "original": "../core/logicalApps"
1704
+ },
1705
+ {
1706
+ "path": "src/core/sqlDiagnostics.ts",
1707
+ "kind": "import-statement",
1708
+ "original": "../core/sqlDiagnostics"
1699
1709
  }
1700
1710
  ],
1701
1711
  "format": "esm"
@@ -1769,7 +1779,7 @@
1769
1779
  "format": "esm"
1770
1780
  },
1771
1781
  "src/engine-library/batch.ts": {
1772
- "bytes": 4148,
1782
+ "bytes": 4351,
1773
1783
  "imports": [
1774
1784
  {
1775
1785
  "path": "src/execute.ts",
@@ -1815,7 +1825,7 @@
1815
1825
  "format": "esm"
1816
1826
  },
1817
1827
  "src/engine-library/query.ts": {
1818
- "bytes": 4167,
1828
+ "bytes": 4329,
1819
1829
  "imports": [
1820
1830
  {
1821
1831
  "path": "src/execute.ts",
@@ -2179,8 +2189,11 @@
2179
2189
  "src/engine-library/options.ts": {
2180
2190
  "bytesInOutput": 2775
2181
2191
  },
2192
+ "src/core/sqlDiagnostics.ts": {
2193
+ "bytesInOutput": 856
2194
+ },
2182
2195
  "src/engine-library/logicalApps.ts": {
2183
- "bytesInOutput": 1093
2196
+ "bytesInOutput": 1224
2184
2197
  },
2185
2198
  "src/engine-library/resultMapping.ts": {
2186
2199
  "bytesInOutput": 873
@@ -2195,16 +2208,16 @@
2195
2208
  "bytesInOutput": 1779
2196
2209
  },
2197
2210
  "src/engine-library/batch.ts": {
2198
- "bytesInOutput": 979
2211
+ "bytesInOutput": 1025
2199
2212
  },
2200
2213
  "src/engine-library/query.ts": {
2201
- "bytesInOutput": 1102
2214
+ "bytesInOutput": 1114
2202
2215
  },
2203
2216
  "src/engine-library/index.ts": {
2204
2217
  "bytesInOutput": 16
2205
2218
  }
2206
2219
  },
2207
- "bytes": 548638
2220
+ "bytes": 549683
2208
2221
  }
2209
2222
  }
2210
2223
  }
@@ -1689,13 +1689,23 @@
1689
1689
  ],
1690
1690
  "format": "esm"
1691
1691
  },
1692
+ "src/core/sqlDiagnostics.ts": {
1693
+ "bytes": 2568,
1694
+ "imports": [],
1695
+ "format": "esm"
1696
+ },
1692
1697
  "src/engine-library/logicalApps.ts": {
1693
- "bytes": 2772,
1698
+ "bytes": 3215,
1694
1699
  "imports": [
1695
1700
  {
1696
1701
  "path": "src/core/logicalApps.ts",
1697
1702
  "kind": "import-statement",
1698
1703
  "original": "../core/logicalApps"
1704
+ },
1705
+ {
1706
+ "path": "src/core/sqlDiagnostics.ts",
1707
+ "kind": "import-statement",
1708
+ "original": "../core/sqlDiagnostics"
1699
1709
  }
1700
1710
  ],
1701
1711
  "format": "esm"
@@ -1769,7 +1779,7 @@
1769
1779
  "format": "esm"
1770
1780
  },
1771
1781
  "src/engine-library/batch.ts": {
1772
- "bytes": 4148,
1782
+ "bytes": 4351,
1773
1783
  "imports": [
1774
1784
  {
1775
1785
  "path": "src/execute.ts",
@@ -1815,7 +1825,7 @@
1815
1825
  "format": "esm"
1816
1826
  },
1817
1827
  "src/engine-library/query.ts": {
1818
- "bytes": 4167,
1828
+ "bytes": 4329,
1819
1829
  "imports": [
1820
1830
  {
1821
1831
  "path": "src/execute.ts",
@@ -2193,8 +2203,11 @@
2193
2203
  "src/engine-library/options.ts": {
2194
2204
  "bytesInOutput": 2775
2195
2205
  },
2206
+ "src/core/sqlDiagnostics.ts": {
2207
+ "bytesInOutput": 856
2208
+ },
2196
2209
  "src/engine-library/logicalApps.ts": {
2197
- "bytesInOutput": 1093
2210
+ "bytesInOutput": 1224
2198
2211
  },
2199
2212
  "src/engine-library/resultMapping.ts": {
2200
2213
  "bytesInOutput": 873
@@ -2209,10 +2222,10 @@
2209
2222
  "bytesInOutput": 1779
2210
2223
  },
2211
2224
  "src/engine-library/batch.ts": {
2212
- "bytesInOutput": 979
2225
+ "bytesInOutput": 1025
2213
2226
  },
2214
2227
  "src/engine-library/query.ts": {
2215
- "bytesInOutput": 1102
2228
+ "bytesInOutput": 1114
2216
2229
  },
2217
2230
  "src/engine-library/index.ts": {
2218
2231
  "bytesInOutput": 16
@@ -2224,7 +2237,7 @@
2224
2237
  "bytesInOutput": 127
2225
2238
  }
2226
2239
  },
2227
- "bytes": 549662
2240
+ "bytes": 550707
2228
2241
  }
2229
2242
  }
2230
2243
  }
@@ -53725,34 +53725,43 @@ function buildBatchEnvelope(batch, options = {}) {
53725
53725
 
53726
53726
  // src/node/sqlDiagnostics.ts
53727
53727
  init_define_KSQL_DOCS();
53728
- function restoreSqlDiagnosticValue(value, bindings) {
53728
+
53729
+ // src/core/sqlDiagnostics.ts
53730
+ init_define_KSQL_DOCS();
53731
+ function restoreSqlDiagnosticValue(value, bindings, options = {}) {
53732
+ const displayMode = options.logicalAppDisplay ?? "profile";
53729
53733
  if (typeof value === "string") {
53730
53734
  const dmlTarget = value.match(/^(\s*target:\s*)APP(\d+) \((\d+)\)\s*$/);
53731
53735
  if (dmlTarget && dmlTarget[2] === dmlTarget[3]) {
53732
53736
  const binding = bindings.get(Number(dmlTarget[2]));
53733
53737
  if (binding) {
53734
- const target = binding.source === "logical" ? `LAPP_${binding.logicalName} -> APP${binding.appId}@${binding.profile}` : `APP${binding.appId}@${binding.profile}`;
53738
+ const target = binding.source === "logical" ? displayMode === "physical" ? `LAPP_${binding.logicalName} -> APP${binding.appId}` : `LAPP_${binding.logicalName} -> APP${binding.appId}@${binding.profile}` : displayMode === "physical" ? `APP${binding.appId}` : `APP${binding.appId}@${binding.profile}`;
53735
53739
  return `${dmlTarget[1]}${target}`;
53736
53740
  }
53737
53741
  }
53738
53742
  let restored = value;
53739
53743
  for (const binding of bindings.values()) {
53740
53744
  const internal = `APP${binding.mappedAppId}`;
53741
- const display = binding.source === "logical" ? `LAPP_${binding.logicalName}@${binding.profile}` : `APP${binding.appId}@${binding.profile}`;
53745
+ const display = binding.source === "logical" ? displayMode === "physical" ? `LAPP_${binding.logicalName} -> APP${binding.appId}` : `LAPP_${binding.logicalName}@${binding.profile}` : displayMode === "physical" ? `APP${binding.appId}` : `APP${binding.appId}@${binding.profile}`;
53742
53746
  restored = restored.split(`${internal} (${binding.mappedAppId})`).join(display).split(internal).join(display);
53743
53747
  }
53744
53748
  return restored;
53745
53749
  }
53746
53750
  if (Array.isArray(value)) {
53747
- return value.map((item) => restoreSqlDiagnosticValue(item, bindings));
53751
+ return value.map((item) => restoreSqlDiagnosticValue(item, bindings, options));
53748
53752
  }
53749
53753
  if (value !== null && typeof value === "object") {
53750
53754
  return Object.fromEntries(
53751
- Object.entries(value).map(([key, item]) => [key, restoreSqlDiagnosticValue(item, bindings)])
53755
+ Object.entries(value).map(([key, item]) => [
53756
+ key,
53757
+ restoreSqlDiagnosticValue(item, bindings, options)
53758
+ ])
53752
53759
  );
53753
53760
  }
53754
53761
  return value;
53755
53762
  }
53763
+
53764
+ // src/node/sqlDiagnostics.ts
53756
53765
  function restoreSqlContextError(err, sourceSql, context) {
53757
53766
  if (!(err instanceof Error)) return err;
53758
53767
  let message = err.message;
@@ -57015,7 +57024,7 @@ Nested JSON/CSV subtable mutation is fail-closed on MCP: use VALIDATE ONLY/EXPLA
57015
57024
  JSON child IDs are rejected and replacement renumbers all rows.
57016
57025
  `);
57017
57026
  }
57018
- var SERVER_VERSION = true ? "3.37.0" : "0.0.0-dev";
57027
+ var SERVER_VERSION = true ? "3.37.1" : "0.0.0-dev";
57019
57028
  var FUNCTION_CATALOG_PARAGRAPH = `Complete function catalog \u2014 Scalar: ${KSQL_FUNCTION_CATALOG.scalar.join(" ")}. Aggregate: ${KSQL_FUNCTION_CATALOG.aggregate.join(" ")}. Variance and standard-deviation aggregates use explicit POP/SAMP names; unqualified STDDEV and VARIANCE are unsupported. Window: ${KSQL_FUNCTION_CATALOG.window.join(" ")} (OVER and AS alias required). Contextual: ${KSQL_FUNCTION_CATALOG.contextual.join(" ")} (kintone predicates; WHERE server-only/fail-closed; INNER JOIN direct-APP exact pushdown supported; local LOGINUSER is empty on all surfaces). Aliases: ${KSQL_FUNCTION_CATALOG.aliases.join(" ")}. Syntax: ${KSQL_FUNCTION_CATALOG.syntax.join(" ")}. This list is complete; functions from other dialects such as IFNULL do not exist. Use ksql_docs for arguments and constraints.`;
57020
57029
  var KSQL_MCP_INSTRUCTIONS = `kSQL MCP server version ${SERVER_VERSION}.
57021
57030
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rex0220/kintone-sql-tools",
3
- "version": "3.37.0",
3
+ "version": "3.37.1",
4
4
  "description": "kintone SQL plugin, CLI, and MCP tools (ksql)",
5
5
  "publishConfig": {
6
6
  "access": "public"