@fettstorch/clai 0.1.14 → 0.1.15
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.js +16 -4
- package/package.json +1 -1
- package/src/cli.ts +12 -0
package/dist/cli.js
CHANGED
|
@@ -54305,7 +54305,7 @@ function ora(options) {
|
|
|
54305
54305
|
return new Ora(options);
|
|
54306
54306
|
}
|
|
54307
54307
|
// package.json
|
|
54308
|
-
var version = "0.1.
|
|
54308
|
+
var version = "0.1.15";
|
|
54309
54309
|
var package_default = {
|
|
54310
54310
|
name: "@fettstorch/clai",
|
|
54311
54311
|
version,
|
|
@@ -73386,7 +73386,11 @@ async function main2() {
|
|
|
73386
73386
|
type: "input",
|
|
73387
73387
|
name: "input",
|
|
73388
73388
|
message: "Enter a URL or search query:",
|
|
73389
|
-
validate: (input2) => input2.length > 0
|
|
73389
|
+
validate: (input2) => input2.length > 0,
|
|
73390
|
+
prefix: String.fromCodePoint(63),
|
|
73391
|
+
theme: {
|
|
73392
|
+
prefix: String.fromCodePoint(63)
|
|
73393
|
+
}
|
|
73390
73394
|
}
|
|
73391
73395
|
]);
|
|
73392
73396
|
input = answers.input;
|
|
@@ -73479,7 +73483,11 @@ What now?:`,
|
|
|
73479
73483
|
value: link.url
|
|
73480
73484
|
})),
|
|
73481
73485
|
{ name: "Exit", value: "exit" }
|
|
73482
|
-
]
|
|
73486
|
+
],
|
|
73487
|
+
prefix: String.fromCodePoint(63),
|
|
73488
|
+
theme: {
|
|
73489
|
+
prefix: String.fromCodePoint(63)
|
|
73490
|
+
}
|
|
73483
73491
|
}
|
|
73484
73492
|
]);
|
|
73485
73493
|
if (selectedLink === "new") {
|
|
@@ -73488,7 +73496,11 @@ What now?:`,
|
|
|
73488
73496
|
type: "input",
|
|
73489
73497
|
name: "input",
|
|
73490
73498
|
message: "Enter a URL or search query:",
|
|
73491
|
-
validate: (input2) => input2.length > 0
|
|
73499
|
+
validate: (input2) => input2.length > 0,
|
|
73500
|
+
prefix: String.fromCodePoint(63),
|
|
73501
|
+
theme: {
|
|
73502
|
+
prefix: String.fromCodePoint(63)
|
|
73503
|
+
}
|
|
73492
73504
|
}
|
|
73493
73505
|
]);
|
|
73494
73506
|
await analyzeInput(newInput, openAIKey);
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -37,6 +37,10 @@ async function main() {
|
|
|
37
37
|
name: "input",
|
|
38
38
|
message: "Enter a URL or search query:",
|
|
39
39
|
validate: (input) => input.length > 0,
|
|
40
|
+
prefix: String.fromCodePoint(0x003F), // ?
|
|
41
|
+
theme: {
|
|
42
|
+
prefix: String.fromCodePoint(0x003F) // ?
|
|
43
|
+
}
|
|
40
44
|
},
|
|
41
45
|
]);
|
|
42
46
|
input = answers.input;
|
|
@@ -162,6 +166,10 @@ async function analyzeInput(input: string, openAIKey: string) {
|
|
|
162
166
|
})),
|
|
163
167
|
{ name: "Exit", value: "exit" },
|
|
164
168
|
],
|
|
169
|
+
prefix: String.fromCodePoint(0x003F), // ?
|
|
170
|
+
theme: {
|
|
171
|
+
prefix: String.fromCodePoint(0x003F) // ?
|
|
172
|
+
}
|
|
165
173
|
},
|
|
166
174
|
]);
|
|
167
175
|
|
|
@@ -172,6 +180,10 @@ async function analyzeInput(input: string, openAIKey: string) {
|
|
|
172
180
|
name: "input",
|
|
173
181
|
message: "Enter a URL or search query:",
|
|
174
182
|
validate: (input) => input.length > 0,
|
|
183
|
+
prefix: String.fromCodePoint(0x003F), // ?
|
|
184
|
+
theme: {
|
|
185
|
+
prefix: String.fromCodePoint(0x003F) // ?
|
|
186
|
+
}
|
|
175
187
|
},
|
|
176
188
|
]);
|
|
177
189
|
await analyzeInput(newInput, openAIKey);
|