@satori-sh/cli 0.0.10 → 0.0.12
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 +7 -3
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { Command } from "commander";
|
|
5
|
-
import { readFileSync } from "fs";
|
|
5
|
+
import { readFileSync, realpathSync } from "fs";
|
|
6
6
|
import { dirname, join as join2 } from "path";
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
8
8
|
import chalk from "chalk";
|
|
@@ -378,7 +378,9 @@ ${memoryContext.instruction}`);
|
|
|
378
378
|
chatLoop();
|
|
379
379
|
});
|
|
380
380
|
};
|
|
381
|
-
console.log(
|
|
381
|
+
console.log(chalk.magenta("\nSatori is memory for AI. It remembers your sessions forever. Think of it like 'infinite context' for AI.\n"));
|
|
382
|
+
console.log(chalk.cyan("You're in interactive mode. Use interactive mode just like you would use ChatGPT."));
|
|
383
|
+
console.log(chalk.cyan('Type "exit" or "quit" to end the session.\n'));
|
|
382
384
|
chatLoop();
|
|
383
385
|
} catch (error) {
|
|
384
386
|
console.error("Chat error:", error instanceof Error ? error.message : error);
|
|
@@ -393,7 +395,9 @@ ${memoryContext.instruction}`);
|
|
|
393
395
|
});
|
|
394
396
|
program.parse();
|
|
395
397
|
}
|
|
396
|
-
|
|
398
|
+
var entryPath = process.argv[1] ? realpathSync(process.argv[1]) : "";
|
|
399
|
+
var modulePath = realpathSync(fileURLToPath(import.meta.url));
|
|
400
|
+
if (entryPath === modulePath) {
|
|
397
401
|
main();
|
|
398
402
|
}
|
|
399
403
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@satori-sh/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "CLI tool for Satori memory server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"logo.txt"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@opentui/core": "^0.1.73",
|
|
22
23
|
"chalk": "^5.6.2",
|
|
23
24
|
"commander": "^12.1.0",
|
|
24
25
|
"random-words": "^2.0.1"
|