@rex0220/kintone-sql-tools 3.74.0 → 3.75.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.
- package/README.md +29 -1
- package/dist-cli/ksql.js +123 -8
- package/dist-engine/index.cjs +14 -14
- package/dist-engine/index.mjs +14 -14
- package/dist-engine/ksql-engine.umd.js +14 -14
- 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-flow/flow-library/importSources.d.ts +7 -0
- package/dist-flow/flow-library/index.d.ts +3 -2
- package/dist-flow/flow-library/publicTypes.d.ts +19 -0
- package/dist-flow/index.cjs +11 -11
- package/dist-flow/index.mjs +11 -11
- package/dist-flow/meta/cjs.json +27 -8
- package/dist-flow/meta/esm.json +29 -8
- package/dist-mcp/ksql-mcp.js +78 -10
- package/dist-mcpb/ksql-mcp.mcpb +0 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-
|
|
2
|
+
"generatedAt": "2026-09-03T13:52:07.158Z",
|
|
3
3
|
"baseline": "B66 Phase1 initial measured values; no arbitrary size ceiling",
|
|
4
4
|
"bundles": {
|
|
5
5
|
"index.cjs": {
|
|
6
6
|
"inputCount": 115,
|
|
7
|
-
"minifiedBytes":
|
|
8
|
-
"gzipBytes":
|
|
7
|
+
"minifiedBytes": 690398,
|
|
8
|
+
"gzipBytes": 189172,
|
|
9
9
|
"forbidden": {
|
|
10
10
|
"mcp-instructions": [],
|
|
11
11
|
"src-mcp": [],
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"index.mjs": {
|
|
26
26
|
"inputCount": 115,
|
|
27
|
-
"minifiedBytes":
|
|
28
|
-
"gzipBytes":
|
|
27
|
+
"minifiedBytes": 689853,
|
|
28
|
+
"gzipBytes": 188905,
|
|
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": 117,
|
|
47
|
-
"minifiedBytes":
|
|
48
|
-
"gzipBytes":
|
|
47
|
+
"minifiedBytes": 690877,
|
|
48
|
+
"gzipBytes": 189213,
|
|
49
49
|
"forbidden": {
|
|
50
50
|
"mcp-instructions": [],
|
|
51
51
|
"src-mcp": [],
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
"format": "esm"
|
|
1295
1295
|
},
|
|
1296
1296
|
"src/import/sourceLoader.ts": {
|
|
1297
|
-
"bytes":
|
|
1297
|
+
"bytes": 4453,
|
|
1298
1298
|
"imports": [],
|
|
1299
1299
|
"format": "esm"
|
|
1300
1300
|
},
|
|
@@ -2415,7 +2415,7 @@
|
|
|
2415
2415
|
"bytesInOutput": 4827
|
|
2416
2416
|
},
|
|
2417
2417
|
"src/import/sourceLoader.ts": {
|
|
2418
|
-
"bytesInOutput":
|
|
2418
|
+
"bytesInOutput": 2019
|
|
2419
2419
|
},
|
|
2420
2420
|
"src/import/csvDecoder.ts": {
|
|
2421
2421
|
"bytesInOutput": 1386
|
|
@@ -2517,7 +2517,7 @@
|
|
|
2517
2517
|
"bytesInOutput": 1446
|
|
2518
2518
|
}
|
|
2519
2519
|
},
|
|
2520
|
-
"bytes":
|
|
2520
|
+
"bytes": 690398
|
|
2521
2521
|
}
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
"format": "esm"
|
|
1295
1295
|
},
|
|
1296
1296
|
"src/import/sourceLoader.ts": {
|
|
1297
|
-
"bytes":
|
|
1297
|
+
"bytes": 4453,
|
|
1298
1298
|
"imports": [],
|
|
1299
1299
|
"format": "esm"
|
|
1300
1300
|
},
|
|
@@ -2419,7 +2419,7 @@
|
|
|
2419
2419
|
"bytesInOutput": 4827
|
|
2420
2420
|
},
|
|
2421
2421
|
"src/import/sourceLoader.ts": {
|
|
2422
|
-
"bytesInOutput":
|
|
2422
|
+
"bytesInOutput": 2019
|
|
2423
2423
|
},
|
|
2424
2424
|
"src/import/csvDecoder.ts": {
|
|
2425
2425
|
"bytesInOutput": 1386
|
|
@@ -2524,7 +2524,7 @@
|
|
|
2524
2524
|
"bytesInOutput": 16
|
|
2525
2525
|
}
|
|
2526
2526
|
},
|
|
2527
|
-
"bytes":
|
|
2527
|
+
"bytes": 689853
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
"format": "esm"
|
|
1295
1295
|
},
|
|
1296
1296
|
"src/import/sourceLoader.ts": {
|
|
1297
|
-
"bytes":
|
|
1297
|
+
"bytes": 4453,
|
|
1298
1298
|
"imports": [],
|
|
1299
1299
|
"format": "esm"
|
|
1300
1300
|
},
|
|
@@ -2433,7 +2433,7 @@
|
|
|
2433
2433
|
"bytesInOutput": 4827
|
|
2434
2434
|
},
|
|
2435
2435
|
"src/import/sourceLoader.ts": {
|
|
2436
|
-
"bytesInOutput":
|
|
2436
|
+
"bytesInOutput": 2019
|
|
2437
2437
|
},
|
|
2438
2438
|
"src/import/csvDecoder.ts": {
|
|
2439
2439
|
"bytesInOutput": 1386
|
|
@@ -2544,7 +2544,7 @@
|
|
|
2544
2544
|
"bytesInOutput": 127
|
|
2545
2545
|
}
|
|
2546
2546
|
},
|
|
2547
|
-
"bytes":
|
|
2547
|
+
"bytes": 690877
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FlowImportProviderErrorCode, FlowImportSourceResolver, FlowNamedImportSource } from "./publicTypes";
|
|
2
|
+
export declare class FlowImportProviderError extends Error {
|
|
3
|
+
readonly code: FlowImportProviderErrorCode;
|
|
4
|
+
readonly cause?: unknown;
|
|
5
|
+
constructor(code: FlowImportProviderErrorCode, message: string, cause?: unknown);
|
|
6
|
+
}
|
|
7
|
+
export declare function createImportSourceResolver(sources: readonly FlowNamedImportSource[]): FlowImportSourceResolver;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createKintoneClient } from "./writableClient";
|
|
2
2
|
import { KsqlFlowError } from "./errors";
|
|
3
|
+
import { createImportSourceResolver, FlowImportProviderError } from "./importSources";
|
|
3
4
|
import type { CreateExecutionContextOptions, Diagnostic, ExecutionContext, ExplainScriptOptions, ExplainScriptResult, ParseScriptOptions, ParseScriptResult, PreviewResult, PreviewStatementOptions, Statement, StatementResult, ValidateScriptOptions } from "./publicTypes";
|
|
4
5
|
export declare const version: string;
|
|
5
6
|
export declare function parseScript(source: string, opts?: ParseScriptOptions): ParseScriptResult;
|
|
@@ -10,5 +11,5 @@ export declare function previewStatement(statement: Statement, context: Executio
|
|
|
10
11
|
export declare function executeStatement(statement: Statement, context: ExecutionContext): Promise<StatementResult>;
|
|
11
12
|
export declare function disposeExecutionContext(context: ExecutionContext): Promise<void>;
|
|
12
13
|
export { isDmlResult } from "./publicTypes";
|
|
13
|
-
export { createKintoneClient, KsqlFlowError };
|
|
14
|
-
export type { CreateExecutionContextOptions, CreateKintoneClientConfig, Diagnostic, DiagnosticCode, ExecutionContext, ExplainScriptOptions, ExplainScriptResult, FieldInfo, FlowChunkWrittenInfo, FlowDeleteResult, FlowDmlResult, FlowInsertResult, FlowKintoneClient, KintoneNativeUpdateKey, KintoneNativeUpsertRecord, KintoneNativeUpsertParams, KintoneNativeUpsertRecordResult, KintoneNativeUpsertResult, FlowUpdateResult, FlowUpsertResult, ParseScriptOptions, ParseScriptResult, PreviewResult, PreviewSample, PreviewStatementOptions, SchemaResolver, ScriptHeaderMeta, Statement, StatementResult, StatementResultKind, ValidateScriptOptions, } from "./publicTypes";
|
|
14
|
+
export { createImportSourceResolver, createKintoneClient, FlowImportProviderError, KsqlFlowError };
|
|
15
|
+
export type { CreateExecutionContextOptions, CreateKintoneClientConfig, Diagnostic, DiagnosticCode, ExecutionContext, ExplainScriptOptions, ExplainScriptResult, FieldInfo, FlowImportProviderErrorCode, FlowImportSourceLoader, FlowImportSourcePayload, FlowImportSourceResolver, FlowNamedImportSource, FlowChunkWrittenInfo, FlowDeleteResult, FlowDmlResult, FlowInsertResult, FlowKintoneClient, KintoneNativeUpdateKey, KintoneNativeUpsertRecord, KintoneNativeUpsertParams, KintoneNativeUpsertRecordResult, KintoneNativeUpsertResult, FlowUpdateResult, FlowUpsertResult, ImportEncoding, ParseScriptOptions, ParseScriptResult, PreviewResult, PreviewSample, PreviewStatementOptions, SchemaResolver, ScriptHeaderMeta, Statement, StatementResult, StatementResultKind, ValidateScriptOptions, } from "./publicTypes";
|
|
@@ -125,8 +125,25 @@ export interface FlowKintoneClient {
|
|
|
125
125
|
}>;
|
|
126
126
|
}
|
|
127
127
|
export type SchemaResolver = (appId: number) => readonly FieldInfo[] | Promise<readonly FieldInfo[]>;
|
|
128
|
+
export type ImportEncoding = "utf8" | "sjis";
|
|
129
|
+
export interface FlowImportSourcePayload {
|
|
130
|
+
readonly bytes: Uint8Array;
|
|
131
|
+
readonly encoding?: ImportEncoding;
|
|
132
|
+
}
|
|
133
|
+
export interface FlowImportSourceLoader {
|
|
134
|
+
load(): Promise<FlowImportSourcePayload>;
|
|
135
|
+
}
|
|
136
|
+
/** Exact, case-sensitive SQL source name to lazy, path-free loader. */
|
|
137
|
+
export type FlowImportSourceResolver = (name: string) => FlowImportSourceLoader | undefined;
|
|
138
|
+
export interface FlowNamedImportSource {
|
|
139
|
+
readonly name: string;
|
|
140
|
+
readonly loader: FlowImportSourceLoader;
|
|
141
|
+
}
|
|
142
|
+
export type FlowImportProviderErrorCode = "ImportSourceReadError" | "ImportSourceNotRegularFileError";
|
|
128
143
|
export interface ParseScriptOptions {
|
|
129
144
|
apps?: Readonly<Record<string, number>>;
|
|
145
|
+
/** Omitted/false keeps IMPORT unavailable and preserves KSQL1202. */
|
|
146
|
+
enableImport?: boolean;
|
|
130
147
|
}
|
|
131
148
|
export interface ParseScriptResult {
|
|
132
149
|
meta: ScriptHeaderMeta;
|
|
@@ -189,6 +206,8 @@ export interface CreateExecutionContextOptions extends ParseScriptOptions {
|
|
|
189
206
|
asOf?: Date;
|
|
190
207
|
timezone?: string;
|
|
191
208
|
continueOnError?: boolean;
|
|
209
|
+
/** Named, path-free source resolver. It never enables IMPORT implicitly. */
|
|
210
|
+
importSource?: FlowImportSourceResolver;
|
|
192
211
|
/** 素の UPSERT で native UPSERT を許可する。省略時は true。 */
|
|
193
212
|
enableNativeUpsert?: boolean;
|
|
194
213
|
/**
|