@qabyai/qli 1.0.4 → 1.0.5
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/index.mjs +9 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24972,6 +24972,10 @@ const builder = (yargs) => yargs.option("api-key", {
|
|
|
24972
24972
|
}).option("dir", {
|
|
24973
24973
|
type: "string",
|
|
24974
24974
|
describe: "Directory to scan (defaults to current directory)"
|
|
24975
|
+
}).option("cloud", {
|
|
24976
|
+
type: "boolean",
|
|
24977
|
+
describe: "Create knowledge base on the cloud without waiting for completion",
|
|
24978
|
+
default: false
|
|
24975
24979
|
});
|
|
24976
24980
|
const INCLUDE_DIR_PATTERNS = [
|
|
24977
24981
|
"src/",
|
|
@@ -25135,6 +25139,11 @@ const handler = async (argv) => {
|
|
|
25135
25139
|
console.error(chalk.red(`Failed: ${message}`));
|
|
25136
25140
|
process.exit(1);
|
|
25137
25141
|
}
|
|
25142
|
+
if (argv.cloud) {
|
|
25143
|
+
console.log(chalk.green(`\nKnowledge base is being created on the cloud.`));
|
|
25144
|
+
console.log(chalk.cyan("You can check progress at: https://qaby.ai/knowledge"));
|
|
25145
|
+
return;
|
|
25146
|
+
}
|
|
25138
25147
|
console.log(chalk.white.bold("Generating knowledge base...\n"));
|
|
25139
25148
|
const spinnerFrames = [
|
|
25140
25149
|
"⠋",
|