shenxiang-ai-cli 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -740,7 +740,7 @@ function banner() {
740
740
  const w = chalk.white.bold;
741
741
  const lines = [
742
742
  ``,
743
- ` ${p("/\\_/\\")} ${b("\u6C88\u7FD4\u7684AI\u52A9\u624B")} ${m("v0.5.1")}`,
743
+ ` ${p("/\\_/\\")} ${b("\u6C88\u7FD4\u7684AI\u52A9\u624B")} ${m("v0.5.2")}`,
744
744
  ` ${p("(")} ${y("o")}${p(".")}${y("o")} ${p(")")} ${d("\u7EC8\u7AEF\u91CC\u7684AI\u5168\u6808\u5F00\u53D1\u642D\u6863")}`,
745
745
  ` ${p("> ")}${r("^")}${p(" <")}`,
746
746
  ` ${p("/|")}${p(" |")}${p("\\")} ${d("\u4F60\u7684\u7F16\u7A0B\u597D\u4F19\u4F34")} ${chalk.hex("#A78BFA")("\u{1F43E}")}`,
@@ -1882,8 +1882,12 @@ var Agent = class {
1882
1882
  const resetIdleTimer = () => {
1883
1883
  if (idleTimer) clearTimeout(idleTimer);
1884
1884
  idleTimer = setTimeout(() => {
1885
- if (!spinner.isSpinning && spinnerStopped && !isStreamingThinking) {
1886
- spinner.text = "AI \u6B63\u5728\u601D\u8003...";
1885
+ if (isStreamingThinking && hasThinkingOutput) {
1886
+ isStreamingThinking = false;
1887
+ process.stdout.write("\n" + theme.dim(" \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500") + "\n");
1888
+ }
1889
+ if (!spinner.isSpinning && spinnerStopped) {
1890
+ spinner.text = "AI \u6B63\u5728\u751F\u6210\u4EE3\u7801...";
1887
1891
  spinner.start();
1888
1892
  }
1889
1893
  }, 1500);
@@ -3324,7 +3328,7 @@ function fmtTokens3(n) {
3324
3328
  var program = new Command();
3325
3329
  var config2 = getConfig();
3326
3330
  setLocale(config2.locale);
3327
- program.name("sxai").description(t("description")).version("0.5.1");
3331
+ program.name("sxai").description(t("description")).version("0.5.2");
3328
3332
  program.command("chat", { isDefault: true }).description("\u542F\u52A8\u4EA4\u4E92\u5F0FAI\u5BF9\u8BDD\uFF08\u9ED8\u8BA4\u547D\u4EE4\uFF09").option("-m, --model <model>", "\u6307\u5B9AAI\u6A21\u578B", config2.model).option("-y, --yolo", "\u81EA\u52A8\u6A21\u5F0F\uFF1A\u8DF3\u8FC7\u6240\u6709\u786E\u8BA4\uFF0C\u8BA9AI\u81EA\u4E3B\u6267\u884C").action(async (options) => {
3329
3333
  if (options.model && options.model !== config2.model) {
3330
3334
  setConfig("model", options.model);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shenxiang-ai-cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "沈翔的AI助手 - 终端里的AI全栈开发搭档",
5
5
  "type": "module",
6
6
  "bin": {