@satori-sh/cli 0.0.7 → 0.0.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/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import { readFileSync } from "fs";
|
|
6
|
+
import { dirname, join as join2 } from "path";
|
|
7
|
+
import { fileURLToPath } from "url";
|
|
6
8
|
import chalk from "chalk";
|
|
7
9
|
|
|
8
10
|
// src/config.ts
|
|
@@ -307,7 +309,9 @@ async function main() {
|
|
|
307
309
|
console.error(error instanceof Error ? error.message : "Configuration error");
|
|
308
310
|
process.exit(1);
|
|
309
311
|
}
|
|
310
|
-
|
|
312
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
313
|
+
const logoPath = join2(__dirname, "..", "logo.txt");
|
|
314
|
+
console.log(chalk.cyan(readFileSync(logoPath, "utf8")));
|
|
311
315
|
const program = new Command();
|
|
312
316
|
program.name("satori").description("CLI tool for Satori memory server").version("0.0.1");
|
|
313
317
|
program.option("--provider <provider>", "Provider to use (openai or anthropic)", "openai").option("--model <model>", "Model to use", "gpt-4o").option("--memory-id <id>", "Memory ID for scoping");
|