@rex0220/kintone-sql-tools 3.20.0 → 3.22.0

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-07-24T15:12:03.026Z",
2
+ "generatedAt": "2026-07-25T10:42:52.443Z",
3
3
  "baseline": "B66 Phase1 initial measured values; no arbitrary size ceiling",
4
4
  "bundles": {
5
5
  "index.cjs": {
6
- "inputCount": 87,
7
- "minifiedBytes": 458788,
8
- "gzipBytes": 123886,
6
+ "inputCount": 88,
7
+ "minifiedBytes": 468406,
8
+ "gzipBytes": 127036,
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": 87,
27
- "minifiedBytes": 458253,
28
- "gzipBytes": 123597,
26
+ "inputCount": 88,
27
+ "minifiedBytes": 467871,
28
+ "gzipBytes": 126723,
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": 89,
47
- "minifiedBytes": 459280,
48
- "gzipBytes": 123925,
46
+ "inputCount": 90,
47
+ "minifiedBytes": 468898,
48
+ "gzipBytes": 127080,
49
49
  "forbidden": {
50
50
  "mcp-instructions": [],
51
51
  "src-mcp": [],
@@ -787,7 +787,7 @@
787
787
  "format": "esm"
788
788
  },
789
789
  "src/engine/process.ts": {
790
- "bytes": 64447,
790
+ "bytes": 64686,
791
791
  "imports": [
792
792
  {
793
793
  "path": "src/types/ast.ts",
@@ -843,7 +843,7 @@
843
843
  "format": "esm"
844
844
  },
845
845
  "src/core/optimization/whereCapability.ts": {
846
- "bytes": 14943,
846
+ "bytes": 15141,
847
847
  "imports": [
848
848
  {
849
849
  "path": "src/core/relativeDateFunction.ts",
@@ -854,7 +854,7 @@
854
854
  "format": "esm"
855
855
  },
856
856
  "src/core/optimization/relativeDatePushdownGuard.ts": {
857
- "bytes": 14528,
857
+ "bytes": 16516,
858
858
  "imports": [
859
859
  {
860
860
  "path": "src/converter/selectToKintone.ts",
@@ -879,6 +879,37 @@
879
879
  ],
880
880
  "format": "esm"
881
881
  },
882
+ "src/core/optimization/relativeDatePrefilterPlan.ts": {
883
+ "bytes": 15411,
884
+ "imports": [
885
+ {
886
+ "path": "src/converter/whereToKintone.ts",
887
+ "kind": "import-statement",
888
+ "original": "../../converter/whereToKintone"
889
+ },
890
+ {
891
+ "path": "src/core/relativeDateFunction.ts",
892
+ "kind": "import-statement",
893
+ "original": "../relativeDateFunction"
894
+ },
895
+ {
896
+ "path": "src/core/optimization/klikePushdownPlan.ts",
897
+ "kind": "import-statement",
898
+ "original": "./klikePushdownPlan"
899
+ },
900
+ {
901
+ "path": "src/core/optimization/relativeDatePushdownGuard.ts",
902
+ "kind": "import-statement",
903
+ "original": "./relativeDatePushdownGuard"
904
+ },
905
+ {
906
+ "path": "src/core/optimization/whereCapability.ts",
907
+ "kind": "import-statement",
908
+ "original": "./whereCapability"
909
+ }
910
+ ],
911
+ "format": "esm"
912
+ },
882
913
  "src/import/sourceLoader.ts": {
883
914
  "bytes": 1311,
884
915
  "imports": [],
@@ -1032,7 +1063,7 @@
1032
1063
  "format": "esm"
1033
1064
  },
1034
1065
  "src/execute.ts": {
1035
- "bytes": 416029,
1066
+ "bytes": 426493,
1036
1067
  "imports": [
1037
1068
  {
1038
1069
  "path": "src/lexer/lexer.ts",
@@ -1279,6 +1310,11 @@
1279
1310
  "kind": "import-statement",
1280
1311
  "original": "./core/optimization/relativeDatePushdownGuard"
1281
1312
  },
1313
+ {
1314
+ "path": "src/core/optimization/relativeDatePrefilterPlan.ts",
1315
+ "kind": "import-statement",
1316
+ "original": "./core/optimization/relativeDatePrefilterPlan"
1317
+ },
1282
1318
  {
1283
1319
  "path": "src/import/sourceLoader.ts",
1284
1320
  "kind": "import-statement",
@@ -1501,7 +1537,7 @@
1501
1537
  "format": "esm"
1502
1538
  },
1503
1539
  "src/engine-library/query.ts": {
1504
- "bytes": 2798,
1540
+ "bytes": 3614,
1505
1541
  "imports": [
1506
1542
  {
1507
1543
  "path": "src/execute.ts",
@@ -1718,7 +1754,7 @@
1718
1754
  "bytesInOutput": 295
1719
1755
  },
1720
1756
  "src/engine/process.ts": {
1721
- "bytesInOutput": 19175
1757
+ "bytesInOutput": 19224
1722
1758
  },
1723
1759
  "src/converter/subtableAdapter.ts": {
1724
1760
  "bytesInOutput": 643
@@ -1730,7 +1766,10 @@
1730
1766
  "bytesInOutput": 6602
1731
1767
  },
1732
1768
  "src/core/optimization/relativeDatePushdownGuard.ts": {
1733
- "bytesInOutput": 4156
1769
+ "bytesInOutput": 4597
1770
+ },
1771
+ "src/core/optimization/relativeDatePrefilterPlan.ts": {
1772
+ "bytesInOutput": 4701
1734
1773
  },
1735
1774
  "src/import/sourceLoader.ts": {
1736
1775
  "bytesInOutput": 527
@@ -1778,7 +1817,7 @@
1778
1817
  "bytesInOutput": 412
1779
1818
  },
1780
1819
  "src/execute.ts": {
1781
- "bytesInOutput": 149337
1820
+ "bytesInOutput": 153448
1782
1821
  },
1783
1822
  "src/engine-library/errors.ts": {
1784
1823
  "bytesInOutput": 1116
@@ -1817,10 +1856,10 @@
1817
1856
  "bytesInOutput": 1012
1818
1857
  },
1819
1858
  "src/engine-library/query.ts": {
1820
- "bytesInOutput": 915
1859
+ "bytesInOutput": 1231
1821
1860
  }
1822
1861
  },
1823
- "bytes": 458788
1862
+ "bytes": 468406
1824
1863
  }
1825
1864
  }
1826
1865
  }
@@ -787,7 +787,7 @@
787
787
  "format": "esm"
788
788
  },
789
789
  "src/engine/process.ts": {
790
- "bytes": 64447,
790
+ "bytes": 64686,
791
791
  "imports": [
792
792
  {
793
793
  "path": "src/types/ast.ts",
@@ -843,7 +843,7 @@
843
843
  "format": "esm"
844
844
  },
845
845
  "src/core/optimization/whereCapability.ts": {
846
- "bytes": 14943,
846
+ "bytes": 15141,
847
847
  "imports": [
848
848
  {
849
849
  "path": "src/core/relativeDateFunction.ts",
@@ -854,7 +854,7 @@
854
854
  "format": "esm"
855
855
  },
856
856
  "src/core/optimization/relativeDatePushdownGuard.ts": {
857
- "bytes": 14528,
857
+ "bytes": 16516,
858
858
  "imports": [
859
859
  {
860
860
  "path": "src/converter/selectToKintone.ts",
@@ -879,6 +879,37 @@
879
879
  ],
880
880
  "format": "esm"
881
881
  },
882
+ "src/core/optimization/relativeDatePrefilterPlan.ts": {
883
+ "bytes": 15411,
884
+ "imports": [
885
+ {
886
+ "path": "src/converter/whereToKintone.ts",
887
+ "kind": "import-statement",
888
+ "original": "../../converter/whereToKintone"
889
+ },
890
+ {
891
+ "path": "src/core/relativeDateFunction.ts",
892
+ "kind": "import-statement",
893
+ "original": "../relativeDateFunction"
894
+ },
895
+ {
896
+ "path": "src/core/optimization/klikePushdownPlan.ts",
897
+ "kind": "import-statement",
898
+ "original": "./klikePushdownPlan"
899
+ },
900
+ {
901
+ "path": "src/core/optimization/relativeDatePushdownGuard.ts",
902
+ "kind": "import-statement",
903
+ "original": "./relativeDatePushdownGuard"
904
+ },
905
+ {
906
+ "path": "src/core/optimization/whereCapability.ts",
907
+ "kind": "import-statement",
908
+ "original": "./whereCapability"
909
+ }
910
+ ],
911
+ "format": "esm"
912
+ },
882
913
  "src/import/sourceLoader.ts": {
883
914
  "bytes": 1311,
884
915
  "imports": [],
@@ -1032,7 +1063,7 @@
1032
1063
  "format": "esm"
1033
1064
  },
1034
1065
  "src/execute.ts": {
1035
- "bytes": 416029,
1066
+ "bytes": 426493,
1036
1067
  "imports": [
1037
1068
  {
1038
1069
  "path": "src/lexer/lexer.ts",
@@ -1279,6 +1310,11 @@
1279
1310
  "kind": "import-statement",
1280
1311
  "original": "./core/optimization/relativeDatePushdownGuard"
1281
1312
  },
1313
+ {
1314
+ "path": "src/core/optimization/relativeDatePrefilterPlan.ts",
1315
+ "kind": "import-statement",
1316
+ "original": "./core/optimization/relativeDatePrefilterPlan"
1317
+ },
1282
1318
  {
1283
1319
  "path": "src/import/sourceLoader.ts",
1284
1320
  "kind": "import-statement",
@@ -1501,7 +1537,7 @@
1501
1537
  "format": "esm"
1502
1538
  },
1503
1539
  "src/engine-library/query.ts": {
1504
- "bytes": 2798,
1540
+ "bytes": 3614,
1505
1541
  "imports": [
1506
1542
  {
1507
1543
  "path": "src/execute.ts",
@@ -1721,7 +1757,7 @@
1721
1757
  "bytesInOutput": 295
1722
1758
  },
1723
1759
  "src/engine/process.ts": {
1724
- "bytesInOutput": 19175
1760
+ "bytesInOutput": 19224
1725
1761
  },
1726
1762
  "src/converter/subtableAdapter.ts": {
1727
1763
  "bytesInOutput": 643
@@ -1733,7 +1769,10 @@
1733
1769
  "bytesInOutput": 6602
1734
1770
  },
1735
1771
  "src/core/optimization/relativeDatePushdownGuard.ts": {
1736
- "bytesInOutput": 4156
1772
+ "bytesInOutput": 4597
1773
+ },
1774
+ "src/core/optimization/relativeDatePrefilterPlan.ts": {
1775
+ "bytesInOutput": 4701
1737
1776
  },
1738
1777
  "src/import/sourceLoader.ts": {
1739
1778
  "bytesInOutput": 527
@@ -1781,7 +1820,7 @@
1781
1820
  "bytesInOutput": 412
1782
1821
  },
1783
1822
  "src/execute.ts": {
1784
- "bytesInOutput": 149337
1823
+ "bytesInOutput": 153448
1785
1824
  },
1786
1825
  "src/engine-library/errors.ts": {
1787
1826
  "bytesInOutput": 1116
@@ -1820,13 +1859,13 @@
1820
1859
  "bytesInOutput": 1012
1821
1860
  },
1822
1861
  "src/engine-library/query.ts": {
1823
- "bytesInOutput": 915
1862
+ "bytesInOutput": 1231
1824
1863
  },
1825
1864
  "src/engine-library/index.ts": {
1826
1865
  "bytesInOutput": 16
1827
1866
  }
1828
1867
  },
1829
- "bytes": 458253
1868
+ "bytes": 467871
1830
1869
  }
1831
1870
  }
1832
1871
  }
@@ -787,7 +787,7 @@
787
787
  "format": "esm"
788
788
  },
789
789
  "src/engine/process.ts": {
790
- "bytes": 64447,
790
+ "bytes": 64686,
791
791
  "imports": [
792
792
  {
793
793
  "path": "src/types/ast.ts",
@@ -843,7 +843,7 @@
843
843
  "format": "esm"
844
844
  },
845
845
  "src/core/optimization/whereCapability.ts": {
846
- "bytes": 14943,
846
+ "bytes": 15141,
847
847
  "imports": [
848
848
  {
849
849
  "path": "src/core/relativeDateFunction.ts",
@@ -854,7 +854,7 @@
854
854
  "format": "esm"
855
855
  },
856
856
  "src/core/optimization/relativeDatePushdownGuard.ts": {
857
- "bytes": 14528,
857
+ "bytes": 16516,
858
858
  "imports": [
859
859
  {
860
860
  "path": "src/converter/selectToKintone.ts",
@@ -879,6 +879,37 @@
879
879
  ],
880
880
  "format": "esm"
881
881
  },
882
+ "src/core/optimization/relativeDatePrefilterPlan.ts": {
883
+ "bytes": 15411,
884
+ "imports": [
885
+ {
886
+ "path": "src/converter/whereToKintone.ts",
887
+ "kind": "import-statement",
888
+ "original": "../../converter/whereToKintone"
889
+ },
890
+ {
891
+ "path": "src/core/relativeDateFunction.ts",
892
+ "kind": "import-statement",
893
+ "original": "../relativeDateFunction"
894
+ },
895
+ {
896
+ "path": "src/core/optimization/klikePushdownPlan.ts",
897
+ "kind": "import-statement",
898
+ "original": "./klikePushdownPlan"
899
+ },
900
+ {
901
+ "path": "src/core/optimization/relativeDatePushdownGuard.ts",
902
+ "kind": "import-statement",
903
+ "original": "./relativeDatePushdownGuard"
904
+ },
905
+ {
906
+ "path": "src/core/optimization/whereCapability.ts",
907
+ "kind": "import-statement",
908
+ "original": "./whereCapability"
909
+ }
910
+ ],
911
+ "format": "esm"
912
+ },
882
913
  "src/import/sourceLoader.ts": {
883
914
  "bytes": 1311,
884
915
  "imports": [],
@@ -1032,7 +1063,7 @@
1032
1063
  "format": "esm"
1033
1064
  },
1034
1065
  "src/execute.ts": {
1035
- "bytes": 416029,
1066
+ "bytes": 426493,
1036
1067
  "imports": [
1037
1068
  {
1038
1069
  "path": "src/lexer/lexer.ts",
@@ -1279,6 +1310,11 @@
1279
1310
  "kind": "import-statement",
1280
1311
  "original": "./core/optimization/relativeDatePushdownGuard"
1281
1312
  },
1313
+ {
1314
+ "path": "src/core/optimization/relativeDatePrefilterPlan.ts",
1315
+ "kind": "import-statement",
1316
+ "original": "./core/optimization/relativeDatePrefilterPlan"
1317
+ },
1282
1318
  {
1283
1319
  "path": "src/import/sourceLoader.ts",
1284
1320
  "kind": "import-statement",
@@ -1501,7 +1537,7 @@
1501
1537
  "format": "esm"
1502
1538
  },
1503
1539
  "src/engine-library/query.ts": {
1504
- "bytes": 2798,
1540
+ "bytes": 3614,
1505
1541
  "imports": [
1506
1542
  {
1507
1543
  "path": "src/execute.ts",
@@ -1736,7 +1772,7 @@
1736
1772
  "bytesInOutput": 295
1737
1773
  },
1738
1774
  "src/engine/process.ts": {
1739
- "bytesInOutput": 19175
1775
+ "bytesInOutput": 19224
1740
1776
  },
1741
1777
  "src/converter/subtableAdapter.ts": {
1742
1778
  "bytesInOutput": 643
@@ -1748,7 +1784,10 @@
1748
1784
  "bytesInOutput": 6602
1749
1785
  },
1750
1786
  "src/core/optimization/relativeDatePushdownGuard.ts": {
1751
- "bytesInOutput": 4156
1787
+ "bytesInOutput": 4597
1788
+ },
1789
+ "src/core/optimization/relativeDatePrefilterPlan.ts": {
1790
+ "bytesInOutput": 4701
1752
1791
  },
1753
1792
  "src/import/sourceLoader.ts": {
1754
1793
  "bytesInOutput": 527
@@ -1796,7 +1835,7 @@
1796
1835
  "bytesInOutput": 412
1797
1836
  },
1798
1837
  "src/execute.ts": {
1799
- "bytesInOutput": 149337
1838
+ "bytesInOutput": 153448
1800
1839
  },
1801
1840
  "src/engine-library/errors.ts": {
1802
1841
  "bytesInOutput": 1116
@@ -1835,7 +1874,7 @@
1835
1874
  "bytesInOutput": 1012
1836
1875
  },
1837
1876
  "src/engine-library/query.ts": {
1838
- "bytesInOutput": 915
1877
+ "bytesInOutput": 1231
1839
1878
  },
1840
1879
  "src/engine-library/index.ts": {
1841
1880
  "bytesInOutput": 16
@@ -1847,7 +1886,7 @@
1847
1886
  "bytesInOutput": 115
1848
1887
  }
1849
1888
  },
1850
- "bytes": 459280
1889
+ "bytes": 468898
1851
1890
  }
1852
1891
  }
1853
1892
  }
@@ -72,6 +72,12 @@ export interface RunQueryOptions {
72
72
  export interface QueryColumn {
73
73
  name: string;
74
74
  valueType: "string";
75
+ /** 元 kintone フィールド型または導出型(例: NUMBER / DROP_DOWN / KSQL_NUMBER / KSQL_UNKNOWN)。 */
76
+ fieldType?: string;
77
+ /** ソート比較器の種別。undefined の列は文字列比較を既定とする。 */
78
+ sortKind?: "number" | "string";
79
+ /** 非 CTE の直接フィールド参照列($id 等含む)の参照元アプリ ID。式・集計・CTE 列は undefined。 */
80
+ sourceApp?: number;
75
81
  }
76
82
  export interface QueryMetrics {
77
83
  recordGetCalls: number;