ningzhi-agent-cli 0.1.2 → 0.1.3

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.
@@ -67,16 +67,16 @@ function loadConfig() {
67
67
  function getModelConfig() {
68
68
  const config = loadConfig();
69
69
  if (!config.model || typeof config.model !== "object") {
70
- throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model 对象,请参考 https://chat.ningzhi2.site/getStart`);
70
+ throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model 对象,请参考 https://www.npmjs.com/package/ningzhi-agent-cli?activeTab=readme`);
71
71
  }
72
72
  if (!config.model.model) {
73
- throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model.model 字段,请参考 https://chat.ningzhi2.site/getStart`);
73
+ throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model.model 字段,请参考 https://www.npmjs.com/package/ningzhi-agent-cli?activeTab=readme`);
74
74
  }
75
75
  if (!config.model.apiKey) {
76
- throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model.apiKey 字段,请参考 https://chat.ningzhi2.site/getStart`);
76
+ throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model.apiKey 字段,请参考 https://www.npmjs.com/package/ningzhi-agent-cli?activeTab=readme`);
77
77
  }
78
78
  if (!config.model.baseURL) {
79
- throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model.baseURL 字段,请参考 https://chat.ningzhi2.site/getStart`);
79
+ throw new Error(`配置文件 ${exports.CONFIG_PATH} 中缺少 model.baseURL 字段,请参考 https://www.npmjs.com/package/ningzhi-agent-cli?activeTab=readme`);
80
80
  }
81
81
  return config.model;
82
82
  }
@@ -27,7 +27,7 @@ async function checkModel() {
27
27
  await model.invoke([{ role: "user", content: "hi" }]);
28
28
  }
29
29
  catch {
30
- console.log(`\n⚠️ API Key 验证失败,请检查配置是否正确\n\n请参考 https://chat.ningzhi2.site/getStart 修改配置\n`);
30
+ console.log(`\n⚠️ API Key 验证失败,请检查配置是否正确\n\n请参考 https://www.npmjs.com/package/ningzhi-agent-cli?activeTab=readme 修改配置\n`);
31
31
  return false;
32
32
  }
33
33
  }
package/dist/install.js CHANGED
@@ -143,7 +143,7 @@ async function runInstall() {
143
143
  console.log("⚠️ 请编辑配置文件,填入你的 API 密钥:");
144
144
  console.log(` ${config_1.CONFIG_PATH}`);
145
145
  console.log("");
146
- console.log("📖 配置文档: https://chat.ningzhi2.site/getStart");
146
+ console.log("📖 配置文档: https://www.npmjs.com/package/ningzhi-agent-cli?activeTab=readme");
147
147
  console.log("");
148
148
  console.log("🔄 修改完成后,请重新运行 ningzhi");
149
149
  console.log("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ningzhi-agent-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A personal AI Agent like OpenClaw, including tools, skills, memory, hook, sub-agent, MCP sever, etc. Run in the terminal.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "keywords": [],
22
22
  "author": "柠致",
23
- "docs": "https://chat.ningzhi2.site/",
23
+ "docs": "https://www.npmjs.com/package/ningzhi-agent-cli?activeTab=readme",
24
24
  "license": "ISC",
25
25
  "dependencies": {
26
26
  "@langchain/core": "1.2.9",