aiex-cli 0.0.3-beta.6 → 0.0.3-beta.8

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 CHANGED
@@ -161,21 +161,42 @@ aiex completion fish | source
161
161
 
162
162
  **Permanent install (recommended):**
163
163
 
164
- ```bash
165
- # bash write to system completions directory
166
- aiex completion bash > /etc/bash_completion.d/aiex
167
- # or for user-level (no sudo):
168
- mkdir -p ~/.local/share/bash-completion/completions
169
- aiex completion bash > ~/.local/share/bash-completion/completions/aiex
170
-
171
- # zsh — write to a directory in $fpath
172
- aiex completion zsh > "${fpath[1]}/_aiex"
173
- # or use the pre-built file from the package:
174
- # $(npm root -g)/aiex-cli/dist/completions/aiex.zsh
175
-
176
- # fish write to fish completions directory
177
- aiex completion fish > ~/.config/fish/completions/aiex.fish
178
- ```
164
+ * **Zsh (Oh My Zsh - Recommended):**
165
+ If you use Oh My Zsh, you can save the completion script directly to the custom completions folder without modifying `~/.zshrc`:
166
+ ```bash
167
+ mkdir -p ~/.oh-my-zsh/custom/completions
168
+ aiex completion zsh > ~/.oh-my-zsh/custom/completions/_aiex
169
+ source ~/.zshrc
170
+ ```
171
+
172
+ * **Zsh (Standard):**
173
+ Write to a directory in your `$fpath` (e.g., `~/.zsh/completions`):
174
+ ```bash
175
+ mkdir -p ~/.zsh/completions
176
+ aiex completion zsh > ~/.zsh/completions/_aiex
177
+ ```
178
+ Then add the following lines to your `~/.zshrc` (before `compinit`):
179
+ ```bash
180
+ fpath=(~/.zsh/completions $fpath)
181
+ autoload -Uz compinit && compinit
182
+ ```
183
+
184
+ * **Bash:**
185
+ Write to the system completions directory:
186
+ ```bash
187
+ aiex completion bash > /etc/bash_completion.d/aiex
188
+ ```
189
+ Or for user-level (no sudo):
190
+ ```bash
191
+ mkdir -p ~/.local/share/bash-completion/completions
192
+ aiex completion bash > ~/.local/share/bash-completion/completions/aiex
193
+ ```
194
+
195
+ * **Fish:**
196
+ Write to the fish completions directory:
197
+ ```bash
198
+ aiex completion fish > ~/.config/fish/completions/aiex.fish
199
+ ```
179
200
 
180
201
  > Pre-built completion files are also available in the installed package at `node_modules/aiex-cli/dist/completions/`, so Homebrew formulae, oh-my-zsh plugins, and other package managers can reference them directly without running `aiex completion`.
181
202
 
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as name, D as doctorDiagnosticsTableRows, O as formatDoctorDiagnosticsJson, S as description, T as version, _ as PLACEHOLDER_SCHEMA, a as parseJsonSchema, b as createConfig, c as recognizeImageText, d as readAIConfig, f as writeAIConfig, g as DEFAULT_PROMPT_CONFIG, h as DEFAULT_MINERU_CONFIG, i as JsonSchemaDefinitionSchema, l as shouldUseImageOcrFallback, m as DEFAULT_MARKITDOWN_CONFIG, n as createMigrationConfig, o as toSnakeCase, p as DEFAULT_MARKER_CONFIG, s as generateDrizzleSchema, t as collectDoctorDiagnostics, u as getDefaultAIConfig, v as PLACEHOLDER_TEXT, w as package_default, x as seedConfig, y as AIConfigSchema } from "./doctor-collector-OS3eNcXI.mjs";
1
+ import { C as name, D as doctorDiagnosticsTableRows, O as formatDoctorDiagnosticsJson, S as description, T as version, _ as PLACEHOLDER_SCHEMA, a as parseJsonSchema, b as createConfig, c as recognizeImageText, d as readAIConfig, f as writeAIConfig, g as DEFAULT_PROMPT_CONFIG, h as DEFAULT_MINERU_CONFIG, i as JsonSchemaDefinitionSchema, l as shouldUseImageOcrFallback, m as DEFAULT_MARKITDOWN_CONFIG, n as createMigrationConfig, o as toSnakeCase, p as DEFAULT_MARKER_CONFIG, s as generateDrizzleSchema, t as collectDoctorDiagnostics, u as getDefaultAIConfig, v as PLACEHOLDER_TEXT, w as package_default, x as seedConfig, y as AIConfigSchema } from "./doctor-collector-DzIv90_Y.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import fs from "node:fs/promises";
4
4
  import os from "node:os";
@@ -159,7 +159,7 @@ const completionCommand = defineCommand({
159
159
  description: "Generate shell completion scripts (bash|zsh|fish)\n\nUsage:\n aiex completion bash # source <(aiex completion bash)\n aiex completion zsh # source <(aiex completion zsh)\n aiex completion fish # aiex completion fish | source"
160
160
  },
161
161
  args: { shell: {
162
- type: "string",
162
+ type: "positional",
163
163
  description: "Shell type: bash, zsh, fish",
164
164
  required: true
165
165
  } },
@@ -16230,7 +16230,7 @@ process.on("unhandledRejection", (reason) => {
16230
16230
  });
16231
16231
  if (process.argv[2] === "_complete") {
16232
16232
  const { getCompletions } = await import("./completions-C3rmTwXZ.mjs");
16233
- const suggestions = getCompletions(subCommands, process.argv.slice(3));
16233
+ const suggestions = getCompletions(subCommands, process.argv.slice(4));
16234
16234
  for (const s of suggestions) process.stdout.write(`${s}\n`);
16235
16235
  process.exit(0);
16236
16236
  }
@@ -74,7 +74,7 @@ function doctorDiagnosticsTableRows(d) {
74
74
  //#endregion
75
75
  //#region package.json
76
76
  var name = "aiex-cli";
77
- var version = "0.0.3-beta.6";
77
+ var version = "0.0.3-beta.8";
78
78
  var description = "JSON Schema → SQLite with AI-powered data extraction";
79
79
  var package_default = {
80
80
  name,
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { D as doctorDiagnosticsTableRows, E as buildDoctorDiagnostics, O as formatDoctorDiagnosticsJson, a as parseJsonSchema, i as JsonSchemaDefinitionSchema, n as createMigrationConfig, r as generateDrizzleConfig, s as generateDrizzleSchema, t as collectDoctorDiagnostics } from "./doctor-collector-OS3eNcXI.mjs";
1
+ import { D as doctorDiagnosticsTableRows, E as buildDoctorDiagnostics, O as formatDoctorDiagnosticsJson, a as parseJsonSchema, i as JsonSchemaDefinitionSchema, n as createMigrationConfig, r as generateDrizzleConfig, s as generateDrizzleSchema, t as collectDoctorDiagnostics } from "./doctor-collector-DzIv90_Y.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.3-beta.6",
4
+ "version": "0.0.3-beta.8",
5
5
  "description": "JSON Schema → SQLite with AI-powered data extraction",
6
6
  "author": "OSpoon <zxin088@gmail.com>",
7
7
  "license": "MIT",