zhitalk 0.0.4 → 0.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.js +7 -8
- package/package.json +2 -2
- package/pnpm-workspace.yaml +4 -0
package/dist/index.js
CHANGED
|
@@ -40,6 +40,12 @@ const path_1 = require("path");
|
|
|
40
40
|
const config_1 = require("./agent/config");
|
|
41
41
|
const pkg = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../package.json'), 'utf-8'));
|
|
42
42
|
async function main() {
|
|
43
|
+
const program = new commander_1.Command();
|
|
44
|
+
program.name(pkg.name).description(pkg.description).version(pkg.version);
|
|
45
|
+
if (process.argv.length > 2) {
|
|
46
|
+
program.parse();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
43
49
|
if (!(0, fs_1.existsSync)(config_1.CONFIG_PATH)) {
|
|
44
50
|
const { runInstall } = await Promise.resolve().then(() => __importStar(require('./install')));
|
|
45
51
|
await runInstall();
|
|
@@ -59,14 +65,7 @@ async function main() {
|
|
|
59
65
|
await shutdownMcp();
|
|
60
66
|
process.exit(0);
|
|
61
67
|
});
|
|
62
|
-
|
|
63
|
-
program.name(pkg.name).description(pkg.description).version(pkg.version);
|
|
64
|
-
if (process.argv.length > 2) {
|
|
65
|
-
program.parse();
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
await interactiveChat();
|
|
69
|
-
}
|
|
68
|
+
await interactiveChat();
|
|
70
69
|
await shutdownMcp();
|
|
71
70
|
}
|
|
72
71
|
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zhitalk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A personal AI Agent like OpenClaw, including tools, skills, memory, hook, sub-agent, MCP server, etc. Run in the terminal.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/better-sqlite3": "^7.6.13",
|
|
41
41
|
"better-sqlite3": "^12.10.0",
|
|
42
42
|
"boxen": "^8.0.1",
|
|
43
|
-
"chalk": "^
|
|
43
|
+
"chalk": "^4.1.2",
|
|
44
44
|
"cli-table3": "^0.6.5",
|
|
45
45
|
"commander": "^14.0.3",
|
|
46
46
|
"figlet": "^1.11.0",
|