@rex0220/kintone-sql-tools 3.31.0 → 3.31.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.
- package/dist-cli/ksql.js +3 -3
- package/dist-engine/index.cjs +11 -11
- package/dist-engine/index.mjs +3 -3
- package/dist-engine/ksql-engine.umd.js +3 -3
- package/dist-engine/meta/bundle-baseline.json +7 -7
- package/dist-engine/meta/cjs.json +3 -3
- package/dist-engine/meta/esm.json +3 -3
- package/dist-engine/meta/umd.json +3 -3
- package/dist-mcp/ksql-mcp.js +4 -4
- package/dist-mcpb/ksql-mcp.mcpb +0 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-07-28T06:
|
|
2
|
+
"generatedAt": "2026-07-28T06:54:02.823Z",
|
|
3
3
|
"baseline": "B66 Phase1 initial measured values; no arbitrary size ceiling",
|
|
4
4
|
"bundles": {
|
|
5
5
|
"index.cjs": {
|
|
6
6
|
"inputCount": 97,
|
|
7
|
-
"minifiedBytes":
|
|
8
|
-
"gzipBytes":
|
|
7
|
+
"minifiedBytes": 536761,
|
|
8
|
+
"gzipBytes": 146420,
|
|
9
9
|
"forbidden": {
|
|
10
10
|
"mcp-instructions": [],
|
|
11
11
|
"src-mcp": [],
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"index.mjs": {
|
|
26
26
|
"inputCount": 97,
|
|
27
|
-
"minifiedBytes":
|
|
28
|
-
"gzipBytes":
|
|
27
|
+
"minifiedBytes": 536216,
|
|
28
|
+
"gzipBytes": 146129,
|
|
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": 99,
|
|
47
|
-
"minifiedBytes":
|
|
48
|
-
"gzipBytes":
|
|
47
|
+
"minifiedBytes": 537240,
|
|
48
|
+
"gzipBytes": 146463,
|
|
49
49
|
"forbidden": {
|
|
50
50
|
"mcp-instructions": [],
|
|
51
51
|
"src-mcp": [],
|
|
@@ -1166,7 +1166,7 @@
|
|
|
1166
1166
|
"format": "esm"
|
|
1167
1167
|
},
|
|
1168
1168
|
"src/execute.ts": {
|
|
1169
|
-
"bytes":
|
|
1169
|
+
"bytes": 466581,
|
|
1170
1170
|
"imports": [
|
|
1171
1171
|
{
|
|
1172
1172
|
"path": "src/lexer/lexer.ts",
|
|
@@ -2066,7 +2066,7 @@
|
|
|
2066
2066
|
"bytesInOutput": 412
|
|
2067
2067
|
},
|
|
2068
2068
|
"src/execute.ts": {
|
|
2069
|
-
"bytesInOutput":
|
|
2069
|
+
"bytesInOutput": 182601
|
|
2070
2070
|
},
|
|
2071
2071
|
"src/engine-library/errors.ts": {
|
|
2072
2072
|
"bytesInOutput": 1441
|
|
@@ -2117,7 +2117,7 @@
|
|
|
2117
2117
|
"bytesInOutput": 950
|
|
2118
2118
|
}
|
|
2119
2119
|
},
|
|
2120
|
-
"bytes":
|
|
2120
|
+
"bytes": 536761
|
|
2121
2121
|
}
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
@@ -1166,7 +1166,7 @@
|
|
|
1166
1166
|
"format": "esm"
|
|
1167
1167
|
},
|
|
1168
1168
|
"src/execute.ts": {
|
|
1169
|
-
"bytes":
|
|
1169
|
+
"bytes": 466581,
|
|
1170
1170
|
"imports": [
|
|
1171
1171
|
{
|
|
1172
1172
|
"path": "src/lexer/lexer.ts",
|
|
@@ -2070,7 +2070,7 @@
|
|
|
2070
2070
|
"bytesInOutput": 412
|
|
2071
2071
|
},
|
|
2072
2072
|
"src/execute.ts": {
|
|
2073
|
-
"bytesInOutput":
|
|
2073
|
+
"bytesInOutput": 182601
|
|
2074
2074
|
},
|
|
2075
2075
|
"src/engine-library/errors.ts": {
|
|
2076
2076
|
"bytesInOutput": 1441
|
|
@@ -2124,7 +2124,7 @@
|
|
|
2124
2124
|
"bytesInOutput": 16
|
|
2125
2125
|
}
|
|
2126
2126
|
},
|
|
2127
|
-
"bytes":
|
|
2127
|
+
"bytes": 536216
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
@@ -1166,7 +1166,7 @@
|
|
|
1166
1166
|
"format": "esm"
|
|
1167
1167
|
},
|
|
1168
1168
|
"src/execute.ts": {
|
|
1169
|
-
"bytes":
|
|
1169
|
+
"bytes": 466581,
|
|
1170
1170
|
"imports": [
|
|
1171
1171
|
{
|
|
1172
1172
|
"path": "src/lexer/lexer.ts",
|
|
@@ -2084,7 +2084,7 @@
|
|
|
2084
2084
|
"bytesInOutput": 412
|
|
2085
2085
|
},
|
|
2086
2086
|
"src/execute.ts": {
|
|
2087
|
-
"bytesInOutput":
|
|
2087
|
+
"bytesInOutput": 182601
|
|
2088
2088
|
},
|
|
2089
2089
|
"src/engine-library/errors.ts": {
|
|
2090
2090
|
"bytesInOutput": 1441
|
|
@@ -2144,7 +2144,7 @@
|
|
|
2144
2144
|
"bytesInOutput": 127
|
|
2145
2145
|
}
|
|
2146
2146
|
},
|
|
2147
|
-
"bytes":
|
|
2147
|
+
"bytes": 537240
|
|
2148
2148
|
}
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
package/dist-mcp/ksql-mcp.js
CHANGED
|
@@ -48301,12 +48301,12 @@ function resolveBatchVariableReferencesInternal(node, variables, numericArithmet
|
|
|
48301
48301
|
if (value.type === "array") {
|
|
48302
48302
|
throw new Error(`ParseError: array variable @${obj["name"]} can only be used as IN @${obj["name"]}.`);
|
|
48303
48303
|
}
|
|
48304
|
-
if (numericArithmeticOperand && value.type !== "number") {
|
|
48304
|
+
if (numericArithmeticOperand && value.type !== "number" && value.placeholder !== true) {
|
|
48305
48305
|
throw new Error(
|
|
48306
48306
|
`ArgumentError: variable @${obj["name"]} is not numeric and cannot be used in arithmetic.`
|
|
48307
48307
|
);
|
|
48308
48308
|
}
|
|
48309
|
-
return value.type === "number" ? { type: "NUMBER", value: value.value, raw: value.raw ?? String(value.value) } : { type: "STRING", value: value.value };
|
|
48309
|
+
return numericArithmeticOperand && value.type === "string" && value.placeholder === true ? { type: "NUMBER", value: 0, raw: value.value } : value.type === "number" ? { type: "NUMBER", value: value.value, raw: value.raw ?? String(value.value) } : { type: "STRING", value: value.value };
|
|
48310
48310
|
}
|
|
48311
48311
|
if (obj["type"] === "VARIABLE_COL" && typeof obj["name"] === "string" && typeof obj["alias"] === "string") {
|
|
48312
48312
|
const value = variables.get(obj["name"]);
|
|
@@ -54357,7 +54357,7 @@ async function buildBatchExplainPlans(sql, client, injectedVariables, cacheConte
|
|
|
54357
54357
|
plan: statementPlan.length === 0 ? metadataPlan : [statementPlan[0], ...metadataPlan, ...statementPlan.slice(1)]
|
|
54358
54358
|
});
|
|
54359
54359
|
if (stmt.type === "SET_VARIABLE" || stmt.type === "DECLARE_VARIABLE") {
|
|
54360
|
-
variables.set(stmt.name, stmt.type === "SET_VARIABLE" && stmt.expr.type === "ARRAY" ? { type: "array", elements: stmt.expr.elements.map((element) => ({ type: "string", value: element.value })) } : { type: "string", value: `@${stmt.name}
|
|
54360
|
+
variables.set(stmt.name, stmt.type === "SET_VARIABLE" && stmt.expr.type === "ARRAY" ? { type: "array", elements: stmt.expr.elements.map((element) => ({ type: "string", value: element.value })) } : { type: "string", value: `@${stmt.name}`, placeholder: true });
|
|
54361
54361
|
}
|
|
54362
54362
|
}
|
|
54363
54363
|
return { statementCount: statements.length, statements: plans };
|
|
@@ -58656,7 +58656,7 @@ Nested JSON/CSV subtable mutation is fail-closed on MCP: use VALIDATE ONLY/EXPLA
|
|
|
58656
58656
|
JSON child IDs are rejected and replacement renumbers all rows.
|
|
58657
58657
|
`);
|
|
58658
58658
|
}
|
|
58659
|
-
var SERVER_VERSION = true ? "3.31.
|
|
58659
|
+
var SERVER_VERSION = true ? "3.31.1" : "0.0.0-dev";
|
|
58660
58660
|
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.`;
|
|
58661
58661
|
var KSQL_MCP_INSTRUCTIONS = `kSQL is a SQL-like dialect for kintone, not generic SQL. Supports cataloged families plus JOIN, aggregates, windows, subtable virtual tables, CHECK, KLIKE, KORDER BY, @variables, and LAPP_<NAME>.
|
|
58662
58662
|
|
package/dist-mcpb/ksql-mcp.mcpb
CHANGED
|
Binary file
|