aiex-cli 0.1.1-beta.2 → 0.1.1-beta.3
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.mjs +2 -2
- package/dist/{generate-drizzle-schema-sZ01QiYJ.mjs → generate-drizzle-schema-DbJcRtaQ.mjs} +9 -7
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -1
- package/dist/table-schema.json +0 -4
- package/dist/web/assets/{JsonSchemaEditor-BywWmkGm.js → JsonSchemaEditor-tjxtfHIF.js} +177 -178
- package/dist/web/assets/index-BdQzcBMn.css +2 -0
- package/dist/web/assets/{index-7jWPnI_e.js → index-CivTtAYN.js} +3 -3
- package/dist/web/assets/{object-utils-OmJ-hFrY.js → object-utils-BahkewF-.js} +1 -1
- package/dist/web/index.html +3 -3
- package/package.json +1 -1
- package/dist/web/assets/index-BiNFY3ky.css +0 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as package_default, C as DEFAULT_PROMPT_CONFIG, D as seedConfig, E as createConfig, O as description, S as DEFAULT_MINERU_CONFIG, T as PLACEHOLDER_TEXT, _ as doctorDiagnosticsSeverityRows, a as recognizeImageText, b as DEFAULT_LITEPARSE_CONFIG, c as t, d as writeAIConfig, f as AIConfigSchema, h as toSnakeCase, j as version, k as name, l as getDefaultAIConfig, m as parseJsonSchema, n as collectDoctorDiagnostics, o as shouldUseImageOcrFallback, p as JsonSchemaDefinitionSchema, r as createMigrationConfig, s as initI18n, t as generateDrizzleSchema, u as readAIConfig, v as doctorDiagnosticsTableRows, w as PLACEHOLDER_SCHEMA, x as DEFAULT_MINERU_API_CONFIG, y as formatDoctorDiagnosticsJson } from "./generate-drizzle-schema-
|
|
1
|
+
import { A as package_default, C as DEFAULT_PROMPT_CONFIG, D as seedConfig, E as createConfig, O as description, S as DEFAULT_MINERU_CONFIG, T as PLACEHOLDER_TEXT, _ as doctorDiagnosticsSeverityRows, a as recognizeImageText, b as DEFAULT_LITEPARSE_CONFIG, c as t, d as writeAIConfig, f as AIConfigSchema, h as toSnakeCase, j as version, k as name, l as getDefaultAIConfig, m as parseJsonSchema, n as collectDoctorDiagnostics, o as shouldUseImageOcrFallback, p as JsonSchemaDefinitionSchema, r as createMigrationConfig, s as initI18n, t as generateDrizzleSchema, u as readAIConfig, v as doctorDiagnosticsTableRows, w as PLACEHOLDER_SCHEMA, x as DEFAULT_MINERU_API_CONFIG, y as formatDoctorDiagnosticsJson } from "./generate-drizzle-schema-DbJcRtaQ.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
@@ -2874,7 +2874,7 @@ const PROPERTY_KEYS = new Set([
|
|
|
2874
2874
|
"items",
|
|
2875
2875
|
"required"
|
|
2876
2876
|
]);
|
|
2877
|
-
const DRIZZLE_KEYS = new Set(["mode"
|
|
2877
|
+
const DRIZZLE_KEYS = new Set(["mode"]);
|
|
2878
2878
|
const NESTED_KEYS = new Set(["enabled", "relation"]);
|
|
2879
2879
|
const FOREIGN_KEY_KEYS = new Set(["table", "column"]);
|
|
2880
2880
|
const TABLE_KEYS = new Set([
|
|
@@ -11,7 +11,7 @@ import { z } from "zod";
|
|
|
11
11
|
|
|
12
12
|
//#region package.json
|
|
13
13
|
var name = "aiex-cli";
|
|
14
|
-
var version = "0.1.1-beta.
|
|
14
|
+
var version = "0.1.1-beta.3";
|
|
15
15
|
var description = "JSON Schema → SQLite with AI-powered data extraction";
|
|
16
16
|
var package_default = {
|
|
17
17
|
name,
|
|
@@ -415,7 +415,6 @@ function getColumnChecks(prop, colName) {
|
|
|
415
415
|
}
|
|
416
416
|
function warnNonDrizzleBackedProperty(warnings, schemaPath, property) {
|
|
417
417
|
if (property.pattern) warnings.push(`${schemaPath}.pattern is kept for extraction guidance but is not emitted as a SQLite constraint because SQLite has no portable REGEXP support.`);
|
|
418
|
-
if (property.drizzle?.customType) warnings.push(`${schemaPath}.drizzle.customType is declared but not emitted. AIEX currently supports stable built-in Drizzle SQLite column types only.`);
|
|
419
418
|
}
|
|
420
419
|
function describeColumnType(columnType) {
|
|
421
420
|
switch (columnType.class) {
|
|
@@ -660,10 +659,13 @@ const DrizzleModeSchema = z.enum([
|
|
|
660
659
|
"boolean",
|
|
661
660
|
"bigint"
|
|
662
661
|
]);
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
662
|
+
const FormatSchema = z.enum([
|
|
663
|
+
"date-time",
|
|
664
|
+
"email",
|
|
665
|
+
"uri",
|
|
666
|
+
"json"
|
|
667
|
+
]);
|
|
668
|
+
const DrizzleExtensionSchema = z.object({ mode: DrizzleModeSchema.optional() }).strict().optional();
|
|
667
669
|
const NestedConfigSchema = z.object({
|
|
668
670
|
enabled: z.literal(true),
|
|
669
671
|
relation: z.enum(["has-one", "has-many"])
|
|
@@ -683,7 +685,7 @@ const JsonSchemaPropertySchema = z.lazy(() => z.object({
|
|
|
683
685
|
"array",
|
|
684
686
|
"null"
|
|
685
687
|
]),
|
|
686
|
-
format:
|
|
688
|
+
format: FormatSchema.optional(),
|
|
687
689
|
pattern: z.string().optional(),
|
|
688
690
|
enum: z.array(z.union([z.string(), z.number()])).optional(),
|
|
689
691
|
primary: z.boolean().optional(),
|
package/dist/index.d.mts
CHANGED
|
@@ -264,7 +264,7 @@ interface ForeignKeyRef {
|
|
|
264
264
|
interface JsonSchemaProperty {
|
|
265
265
|
description?: string;
|
|
266
266
|
type: 'string' | 'integer' | 'number' | 'boolean' | 'object' | 'array' | 'null';
|
|
267
|
-
format?:
|
|
267
|
+
format?: 'date-time' | 'email' | 'uri' | 'json';
|
|
268
268
|
pattern?: string;
|
|
269
269
|
enum?: (string | number)[];
|
|
270
270
|
primary?: boolean;
|
|
@@ -279,7 +279,6 @@ interface JsonSchemaProperty {
|
|
|
279
279
|
xPrompt?: string;
|
|
280
280
|
drizzle?: {
|
|
281
281
|
mode?: 'json' | 'timestamp' | 'timestamp_ms' | 'boolean' | 'bigint';
|
|
282
|
-
customType?: string;
|
|
283
282
|
};
|
|
284
283
|
nested?: {
|
|
285
284
|
enabled: true;
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as doctorDiagnosticsSeverityRows, g as buildDoctorDiagnostics, i as generateDrizzleConfig, m as parseJsonSchema, n as collectDoctorDiagnostics, p as JsonSchemaDefinitionSchema, r as createMigrationConfig, t as generateDrizzleSchema, v as doctorDiagnosticsTableRows, y as formatDoctorDiagnosticsJson } from "./generate-drizzle-schema-
|
|
1
|
+
import { _ as doctorDiagnosticsSeverityRows, g as buildDoctorDiagnostics, i as generateDrizzleConfig, m as parseJsonSchema, n as collectDoctorDiagnostics, p as JsonSchemaDefinitionSchema, r as createMigrationConfig, t as generateDrizzleSchema, v as doctorDiagnosticsTableRows, y as formatDoctorDiagnosticsJson } from "./generate-drizzle-schema-DbJcRtaQ.mjs";
|
|
2
2
|
|
|
3
3
|
export { JsonSchemaDefinitionSchema, buildDoctorDiagnostics, collectDoctorDiagnostics, createMigrationConfig, doctorDiagnosticsSeverityRows, doctorDiagnosticsTableRows, formatDoctorDiagnosticsJson, generateDrizzleConfig, generateDrizzleSchema, parseJsonSchema };
|
package/dist/table-schema.json
CHANGED
|
@@ -206,10 +206,6 @@
|
|
|
206
206
|
"type": "string",
|
|
207
207
|
"enum": ["json", "timestamp", "timestamp_ms", "boolean", "bigint"],
|
|
208
208
|
"description": "Override Drizzle column mode. 'json' stores as TEXT(json), 'timestamp'/'timestamp_ms' as INTEGER, 'boolean' as INTEGER(boolean), 'bigint' as INTEGER(bigint)."
|
|
209
|
-
},
|
|
210
|
-
"customType": {
|
|
211
|
-
"type": "string",
|
|
212
|
-
"description": "Custom Drizzle type name. Accepted by the schema shape but not emitted by AIEX; generation reports a warning."
|
|
213
209
|
}
|
|
214
210
|
}
|
|
215
211
|
},
|