goldenflow 0.1.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.
@@ -0,0 +1,57 @@
1
+ import { Row, RunRecord } from '../core/index.cjs';
2
+ export { ColumnDiffDetail, ColumnMapping, ColumnProfile, ColumnValue, DatasetProfile, DedupSpec, DiffResult, DomainPack, Dtype, FINDING_TRANSFORM_MAP, FilterSpec, GoldenFlowConfig, Manifest, MappingSpec, MutableManifest, SchemaMapper, SplitSpec, StreamProcessor, TabularData, TransformEngine, TransformError, TransformFunction, TransformInfo, TransformMode, TransformRecord, TransformResult, TransformSpec, applyLlmCorrections, diffDataframes, getTransform, isNullish, learnConfig, listDomains, listTransforms, loadConfigFromString, loadDomain, makeColumnProfile, makeConfig, makeManifest, makeTransformRecord, manifestToHtml, manifestToJson, mergeConfigs, nameSimilarity, parseTransformName, prepareLlmCorrections, printDiff, printManifest, printProfile, profileDataframe, profileSimilarity, profileToHtml, registerTransform, registry, saveConfigToString, selectFromFindings, selectTransforms, toColumnValue, transformResultToHtml, validateConfig } from '../core/index.cjs';
3
+ import * as http from 'http';
4
+ import { IncomingMessage, ServerResponse } from 'node:http';
5
+
6
+ /**
7
+ * File connector — read/write CSV files as Row[].
8
+ * Node-only (uses node:fs).
9
+ */
10
+
11
+ declare function readFile(path: string): Row[];
12
+ declare function writeFile(rows: readonly Row[], path: string): void;
13
+
14
+ /**
15
+ * History — track transform runs.
16
+ * Node-only module (uses node:fs, node:path, node:os).
17
+ */
18
+
19
+ declare function saveRun(record: RunRecord): string;
20
+ declare function listRuns(limit?: number): RunRecord[];
21
+ declare function getRun(runId: string): RunRecord | null;
22
+ declare function generateRunId(): string;
23
+
24
+ /**
25
+ * GoldenFlow MCP Server — 10 tools for data transformation via stdio transport.
26
+ * Node-only module.
27
+ */
28
+ interface ToolDefinition {
29
+ name: string;
30
+ description: string;
31
+ inputSchema: {
32
+ type: "object";
33
+ properties: Record<string, unknown>;
34
+ required?: string[];
35
+ };
36
+ }
37
+ declare const TOOL_DEFINITIONS: ToolDefinition[];
38
+ declare function handleTool(name: string, arguments_: Record<string, unknown>): string;
39
+
40
+ declare function watchDirectory(dirPath: string, options?: {
41
+ configPath?: string;
42
+ outputDir?: string;
43
+ interval?: number;
44
+ }): void;
45
+
46
+ declare function runSchedule(filePath: string, options?: {
47
+ interval?: string;
48
+ configPath?: string;
49
+ outputDir?: string;
50
+ }): void;
51
+
52
+ declare function runWizard(dataPath?: string, outputPath?: string): Promise<void>;
53
+
54
+ declare function createApp(): http.Server<typeof IncomingMessage, typeof ServerResponse>;
55
+ declare function runServer(port?: number, host?: string): void;
56
+
57
+ export { Row, RunRecord, TOOL_DEFINITIONS, createApp as createApiApp, generateRunId, getRun, handleTool, listRuns, readFile, runServer as runApiServer, runSchedule, runWizard, saveRun, watchDirectory, writeFile };
@@ -0,0 +1,57 @@
1
+ import { Row, RunRecord } from '../core/index.js';
2
+ export { ColumnDiffDetail, ColumnMapping, ColumnProfile, ColumnValue, DatasetProfile, DedupSpec, DiffResult, DomainPack, Dtype, FINDING_TRANSFORM_MAP, FilterSpec, GoldenFlowConfig, Manifest, MappingSpec, MutableManifest, SchemaMapper, SplitSpec, StreamProcessor, TabularData, TransformEngine, TransformError, TransformFunction, TransformInfo, TransformMode, TransformRecord, TransformResult, TransformSpec, applyLlmCorrections, diffDataframes, getTransform, isNullish, learnConfig, listDomains, listTransforms, loadConfigFromString, loadDomain, makeColumnProfile, makeConfig, makeManifest, makeTransformRecord, manifestToHtml, manifestToJson, mergeConfigs, nameSimilarity, parseTransformName, prepareLlmCorrections, printDiff, printManifest, printProfile, profileDataframe, profileSimilarity, profileToHtml, registerTransform, registry, saveConfigToString, selectFromFindings, selectTransforms, toColumnValue, transformResultToHtml, validateConfig } from '../core/index.js';
3
+ import * as http from 'http';
4
+ import { IncomingMessage, ServerResponse } from 'node:http';
5
+
6
+ /**
7
+ * File connector — read/write CSV files as Row[].
8
+ * Node-only (uses node:fs).
9
+ */
10
+
11
+ declare function readFile(path: string): Row[];
12
+ declare function writeFile(rows: readonly Row[], path: string): void;
13
+
14
+ /**
15
+ * History — track transform runs.
16
+ * Node-only module (uses node:fs, node:path, node:os).
17
+ */
18
+
19
+ declare function saveRun(record: RunRecord): string;
20
+ declare function listRuns(limit?: number): RunRecord[];
21
+ declare function getRun(runId: string): RunRecord | null;
22
+ declare function generateRunId(): string;
23
+
24
+ /**
25
+ * GoldenFlow MCP Server — 10 tools for data transformation via stdio transport.
26
+ * Node-only module.
27
+ */
28
+ interface ToolDefinition {
29
+ name: string;
30
+ description: string;
31
+ inputSchema: {
32
+ type: "object";
33
+ properties: Record<string, unknown>;
34
+ required?: string[];
35
+ };
36
+ }
37
+ declare const TOOL_DEFINITIONS: ToolDefinition[];
38
+ declare function handleTool(name: string, arguments_: Record<string, unknown>): string;
39
+
40
+ declare function watchDirectory(dirPath: string, options?: {
41
+ configPath?: string;
42
+ outputDir?: string;
43
+ interval?: number;
44
+ }): void;
45
+
46
+ declare function runSchedule(filePath: string, options?: {
47
+ interval?: string;
48
+ configPath?: string;
49
+ outputDir?: string;
50
+ }): void;
51
+
52
+ declare function runWizard(dataPath?: string, outputPath?: string): Promise<void>;
53
+
54
+ declare function createApp(): http.Server<typeof IncomingMessage, typeof ServerResponse>;
55
+ declare function runServer(port?: number, host?: string): void;
56
+
57
+ export { Row, RunRecord, TOOL_DEFINITIONS, createApp as createApiApp, generateRunId, getRun, handleTool, listRuns, readFile, runServer as runApiServer, runSchedule, runWizard, saveRun, watchDirectory, writeFile };