aiex-cli 0.0.1-beta.34 → 0.0.1-beta.35

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { C as doctorDiagnosticsTableRows, _ as seedConfig, a as parseJsonSchema, b as package_default, c as getDefaultAIConfig, d as DEFAULT_MINERU_CONFIG, f as DEFAULT_PROMPT_CONFIG, g as createConfig, h as AIConfigSchema, i as JsonSchemaDefinitionSchema, l as readAIConfig, m as PLACEHOLDER_TEXT, n as createMigrationConfig, o as toSnakeCase, p as PLACEHOLDER_SCHEMA, s as generateDrizzleSchema, t as collectDoctorDiagnostics, u as writeAIConfig, v as description, w as formatDoctorDiagnosticsJson, x as version, y as name } from "./doctor-collector-DpQYOBJN.mjs";
1
+ import { C as doctorDiagnosticsTableRows, _ as seedConfig, a as parseJsonSchema, b as package_default, c as getDefaultAIConfig, d as DEFAULT_MINERU_CONFIG, f as DEFAULT_PROMPT_CONFIG, g as createConfig, h as AIConfigSchema, i as JsonSchemaDefinitionSchema, l as readAIConfig, m as PLACEHOLDER_TEXT, n as createMigrationConfig, o as toSnakeCase, p as PLACEHOLDER_SCHEMA, s as generateDrizzleSchema, t as collectDoctorDiagnostics, u as writeAIConfig, v as description, w as formatDoctorDiagnosticsJson, x as version, y as name } from "./doctor-collector-qBAGt0AY.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import fs from "node:fs/promises";
4
4
  import os from "node:os";
@@ -13498,8 +13498,9 @@ var FallbackPdfConverter = class {
13498
13498
  async convert(input, filePath) {
13499
13499
  try {
13500
13500
  return await this.primary.convert(input, filePath);
13501
- } catch {
13502
- consola.warn(`${this.primary.name} failed, falling back to ${this.fallback.name}`);
13501
+ } catch (err) {
13502
+ consola.warn(`${this.primary.name} failed: ${err instanceof Error ? err.message : String(err)}`);
13503
+ consola.info(`Falling back to ${this.fallback.name}`);
13503
13504
  const result = await this.fallback.convert(input, filePath);
13504
13505
  return {
13505
13506
  ...result,
@@ -13634,8 +13635,8 @@ async function readExtractFileInput(filePath, aiConfig) {
13634
13635
  const buffer = await fs.readFile(filePath);
13635
13636
  const converter = createPdfConverter(aiConfig?.pdf);
13636
13637
  const result = await converter.convert(buffer, filePath);
13637
- const converterLabel = result.metadata?.fallback === "true" ? `${converter.name} (fallback: unpdf)` : converter.name;
13638
- consola.info(`Converted PDF via ${converterLabel}, ${result.pageCount} page(s)`);
13638
+ if (result.metadata?.fallback === "true") consola.info(`Fell back to unpdf — ${result.pageCount} page(s) extracted`);
13639
+ else consola.info(`Converted PDF via ${converter.name}, ${result.pageCount} page(s)`);
13639
13640
  const mdPath = filePath.replace(PDF_EXT_RE, ".md");
13640
13641
  try {
13641
13642
  await fs.writeFile(mdPath, result.text);
@@ -65,7 +65,7 @@ function doctorDiagnosticsTableRows(d) {
65
65
  //#endregion
66
66
  //#region package.json
67
67
  var name = "aiex-cli";
68
- var version = "0.0.1-beta.34";
68
+ var version = "0.0.1-beta.35";
69
69
  var description = "JSON Schema → SQLite with AI-powered data extraction";
70
70
  var package_default = {
71
71
  name,
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { C as doctorDiagnosticsTableRows, S as buildDoctorDiagnostics, a as parseJsonSchema, i as JsonSchemaDefinitionSchema, n as createMigrationConfig, r as generateDrizzleConfig, s as generateDrizzleSchema, t as collectDoctorDiagnostics, w as formatDoctorDiagnosticsJson } from "./doctor-collector-DpQYOBJN.mjs";
1
+ import { C as doctorDiagnosticsTableRows, S as buildDoctorDiagnostics, a as parseJsonSchema, i as JsonSchemaDefinitionSchema, n as createMigrationConfig, r as generateDrizzleConfig, s as generateDrizzleSchema, t as collectDoctorDiagnostics, w as formatDoctorDiagnosticsJson } from "./doctor-collector-qBAGt0AY.mjs";
2
2
 
3
3
  export { JsonSchemaDefinitionSchema, buildDoctorDiagnostics, collectDoctorDiagnostics, createMigrationConfig, doctorDiagnosticsTableRows, formatDoctorDiagnosticsJson, generateDrizzleConfig, generateDrizzleSchema, parseJsonSchema };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aiex-cli",
3
3
  "type": "module",
4
- "version": "0.0.1-beta.34",
4
+ "version": "0.0.1-beta.35",
5
5
  "description": "JSON Schema → SQLite with AI-powered data extraction",
6
6
  "author": "OSpoon <zxin088@gmail.com>",
7
7
  "license": "MIT",