@fettstorch/clai 0.1.12 → 0.1.13

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.
@@ -7,7 +7,11 @@
7
7
  "Bash(clai:*)",
8
8
  "Bash(cat:*)",
9
9
  "Bash(grep:*)",
10
- "Bash(./dist/cli.js --version)"
10
+ "Bash(./dist/cli.js --version)",
11
+ "Bash(npm update:*)",
12
+ "Bash(node:*)",
13
+ "Bash(bun:*)",
14
+ "Bash(timeout:*)"
11
15
  ],
12
16
  "deny": []
13
17
  }
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.12";
54308
+ var version = "0.1.13";
54309
54309
  var package_default = {
54310
54310
  name: "@fettstorch/clai",
54311
54311
  version,
@@ -68102,10 +68102,10 @@ async function getSearchResults(query) {
68102
68102
  for (const engine of searchEngines) {
68103
68103
  try {
68104
68104
  const result = await engine.fn(query);
68105
- console.log(`[${engine.name}]::✅`);
68105
+ console.log(`[${engine.name}]::${String.fromCodePoint(9989)}`);
68106
68106
  return result;
68107
68107
  } catch (_2) {
68108
- console.log(`[${engine.name}]::❌`);
68108
+ console.log(`[${engine.name}]::${String.fromCodePoint(10060)}`);
68109
68109
  }
68110
68110
  }
68111
68111
  console.log("All search engines failed - no URLs to scrape");
@@ -73441,7 +73441,22 @@ ${source_default.yellow.bold("\u2550\u2550\u2550 ")}${source_default.yellow.bold
73441
73441
  return boldHandled;
73442
73442
  }
73443
73443
  async function analyzeInput(input, openAIKey) {
73444
- const spinner = ora("Thinking...").start();
73444
+ const spinner = ora({
73445
+ text: "Thinking...",
73446
+ spinner: {
73447
+ frames: [
73448
+ String.fromCodePoint(10265),
73449
+ String.fromCodePoint(10297),
73450
+ String.fromCodePoint(10296),
73451
+ String.fromCodePoint(10278),
73452
+ String.fromCodePoint(10247),
73453
+ String.fromCodePoint(10255),
73454
+ String.fromCodePoint(10271),
73455
+ String.fromCodePoint(10303)
73456
+ ],
73457
+ interval: 80
73458
+ }
73459
+ }).start();
73445
73460
  try {
73446
73461
  const result = await clai(input, openAIKey);
73447
73462
  spinner.succeed("AHA!");
package/dist/index.js CHANGED
@@ -41019,10 +41019,10 @@ async function getSearchResults(query) {
41019
41019
  for (const engine of searchEngines) {
41020
41020
  try {
41021
41021
  const result = await engine.fn(query);
41022
- console.log(`[${engine.name}]::✅`);
41022
+ console.log(`[${engine.name}]::${String.fromCodePoint(9989)}`);
41023
41023
  return result;
41024
41024
  } catch (_) {
41025
- console.log(`[${engine.name}]::❌`);
41025
+ console.log(`[${engine.name}]::${String.fromCodePoint(10060)}`);
41026
41026
  }
41027
41027
  }
41028
41028
  console.log("All search engines failed - no URLs to scrape");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fettstorch/clai",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "clai": "dist/cli.js"
package/src/cli.ts CHANGED
@@ -122,7 +122,22 @@ function formatMarkdownForTerminal(text: string): string {
122
122
  }
123
123
 
124
124
  async function analyzeInput(input: string, openAIKey: string) {
125
- const spinner = ora("Thinking...").start();
125
+ const spinner = ora({
126
+ text: "Thinking...",
127
+ spinner: {
128
+ frames: [
129
+ String.fromCodePoint(0x2819), // ⠙
130
+ String.fromCodePoint(0x2839), // ⠹
131
+ String.fromCodePoint(0x2838), // ⠸
132
+ String.fromCodePoint(0x2826), // ⠦
133
+ String.fromCodePoint(0x2807), // ⠧
134
+ String.fromCodePoint(0x280F), // ⠏
135
+ String.fromCodePoint(0x281F), // ⠟
136
+ String.fromCodePoint(0x283F), // ⠿
137
+ ],
138
+ interval: 80
139
+ }
140
+ }).start();
126
141
 
127
142
  try {
128
143
  const result = await clai(input, openAIKey);
package/src/scraper.ts CHANGED
@@ -94,10 +94,10 @@ async function getSearchResults(query: string): Promise<string[]> {
94
94
  for (const engine of searchEngines) {
95
95
  try {
96
96
  const result = await engine.fn(query);
97
- console.log(`[${engine.name}]::✅`);
97
+ console.log(`[${engine.name}]::${String.fromCodePoint(0x2705)}`);
98
98
  return result;
99
99
  } catch (_) {
100
- console.log(`[${engine.name}]::❌`);
100
+ console.log(`[${engine.name}]::${String.fromCodePoint(0x274C)}`);
101
101
  }
102
102
  }
103
103