scream-code 0.10.7 → 0.10.9

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/main.mjs CHANGED
@@ -6,7 +6,7 @@ const __dirname = __cjsShimDirname(__filename);
6
6
  import "./suppress-sqlite-warning-C2VB0doZ.mjs";
7
7
  //#region src/main.ts
8
8
  try {
9
- (await import("./app-BZwFbrNj.mjs")).main();
9
+ (await import("./app-CwHfTwUZ.mjs")).main();
10
10
  } catch (error) {
11
11
  process.stderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
12
12
  process.exit(1);
@@ -3,5 +3,5 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
3
3
  import { dirname as __cjsShimDirname } from 'node:path';
4
4
  const __filename = __cjsShimFileURLToPath(import.meta.url);
5
5
  const __dirname = __cjsShimDirname(__filename);
6
- import { t as TextInputDialogComponent } from "./text-input-dialog-BWp39mq8.mjs";
6
+ import { t as TextInputDialogComponent } from "./text-input-dialog-DRUaPOEQ.mjs";
7
7
  export { TextInputDialogComponent };
@@ -6,8 +6,8 @@ const __dirname = __cjsShimDirname(__filename);
6
6
  import { randomUUID } from "node:crypto";
7
7
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
8
8
  import { join } from "node:path";
9
- import { arch, hostname, release, type } from "node:os";
10
9
  import { execFileSync } from "node:child_process";
10
+ import { arch, hostname, release, type } from "node:os";
11
11
  import chalk from "chalk";
12
12
  import { Container, Input, Key, matchesKey, truncateToWidth, visibleWidth } from "@liutod-scream/pi-tui";
13
13
  //#region ../../packages/config/dist/index.mjs
@@ -314,11 +314,19 @@ const dictionaries = {
314
314
  "goal.resume_failed": "恢复目标失败:{msg}",
315
315
  "goal.cancel_failed": "取消目标失败:{msg}",
316
316
  "goal.status_failed": "获取目标状态失败:{msg}",
317
+ "goal.updated": "目标已更新:{objective}",
318
+ "goal.update_failed": "更新目标失败:{msg}",
317
319
  "goal.resume_hint": "继续执行当前目标。",
318
320
  "goal.wizard_title": "目标:{objective}",
319
321
  "goal.budget_turns_hint": "轮次限制(0 = 不限制)",
320
322
  "goal.budget_tokens_hint": "Token 限制(0 = 不限制)",
321
323
  "goal.budget_time_hint": "时间限制,单位分钟(0 = 不限制)",
324
+ "goal.setup_title_initial": "目标引导 (1/2)",
325
+ "goal.setup_desc_hint": "简述你的任务:",
326
+ "goal.setup_desc_placeholder": "例如:重构认证模块",
327
+ "goal.setup_refining": "正在提炼目标...",
328
+ "goal.setup_title_confirm": "目标引导 (2/2)",
329
+ "goal.setup_confirm_hint": "已提炼目标(可编辑后确认):",
322
330
  "update.timeout": "超时,可能因网络原因卡住。",
323
331
  "update.network_hint": "请检查网络后重试(国内用户建议科学上网)。",
324
332
  "update.network_error": "失败:网络连接异常,请检查网络后重试。",
@@ -763,9 +771,13 @@ const dictionaries = {
763
771
  "goalpanel.paused": "⏸ 已暂停",
764
772
  "goalpanel.no_goal": "未开启任务",
765
773
  "goalpanel.create_goal": "创建并启动目标",
774
+ "goalpanel.setup_goal": "引导式目标创建",
766
775
  "goalpanel.pause_goal": "暂停当前目标",
767
776
  "goalpanel.resume_goal": "恢复已暂停的目标",
768
777
  "goalpanel.cancel_goal": "取消当前目标",
778
+ "goalpanel.update_goal": "修改当前目标",
779
+ "goalpanel.status_goal": "查看目标状态",
780
+ "goalpanel.replace_goal": "替换目标(重置进度)",
769
781
  "goalpanel.no_stop_condition": " No stop condition — runs until evaluated complete.",
770
782
  "kresult.empty": "(空)",
771
783
  "kresult.line": "行",
@@ -891,7 +903,8 @@ const dictionaries = {
891
903
  "cronmsg.missed": "{count} 次错过",
892
904
  "cronmsg.final_delivery": "最终投递",
893
905
  "thinking.in_progress": "思考中...",
894
- "shell.more_lines": "...(还有 {count} 行,按 ctrl+o 展开)",
906
+ "shell.more_lines": " 还有 {count} 行,按 ctrl+o 展开",
907
+ "shell.collapse_hint": "▾ 按 ctrl+o 折叠",
895
908
  "ccconnect.note_botfather": "需先在 @BotFather 创建 bot",
896
909
  "ccconnect.note_napcat": "需要 NapCat/OneBot",
897
910
  "ccconnect.note_wecom": "需要公网 IP",
@@ -1331,11 +1344,19 @@ const dictionaries = {
1331
1344
  "goal.resume_failed": "Failed to resume goal: {msg}",
1332
1345
  "goal.cancel_failed": "Failed to cancel goal: {msg}",
1333
1346
  "goal.status_failed": "Failed to get goal status: {msg}",
1347
+ "goal.updated": "Goal objective updated: {objective}",
1348
+ "goal.update_failed": "Failed to update goal: {msg}",
1334
1349
  "goal.resume_hint": "Continue the current goal.",
1335
1350
  "goal.wizard_title": "Goal: {objective}",
1336
1351
  "goal.budget_turns_hint": "Turn limit (0 = unlimited)",
1337
1352
  "goal.budget_tokens_hint": "Token limit (0 = unlimited)",
1338
1353
  "goal.budget_time_hint": "Time limit in minutes (0 = unlimited)",
1354
+ "goal.setup_title_initial": "Goal Setup (1/2)",
1355
+ "goal.setup_desc_hint": "Describe your task briefly:",
1356
+ "goal.setup_desc_placeholder": "e.g. refactor auth module",
1357
+ "goal.setup_refining": "Refining objective...",
1358
+ "goal.setup_title_confirm": "Goal Setup (2/2)",
1359
+ "goal.setup_confirm_hint": "Refined objective (edit if needed):",
1339
1360
  "update.timeout": "Timed out, possibly due to network issues.",
1340
1361
  "update.network_hint": "Check your network and retry (users in China may need a proxy).",
1341
1362
  "update.network_error": "Failed: network error. Check your connection and retry.",
@@ -1780,9 +1801,13 @@ const dictionaries = {
1780
1801
  "goalpanel.paused": "⏸ Paused",
1781
1802
  "goalpanel.no_goal": "No goal set",
1782
1803
  "goalpanel.create_goal": "Create and start a goal",
1804
+ "goalpanel.setup_goal": "Guided goal setup",
1783
1805
  "goalpanel.pause_goal": "Pause current goal",
1784
1806
  "goalpanel.resume_goal": "Resume paused goal",
1785
1807
  "goalpanel.cancel_goal": "Cancel current goal",
1808
+ "goalpanel.update_goal": "Update current objective",
1809
+ "goalpanel.status_goal": "Show goal status",
1810
+ "goalpanel.replace_goal": "Replace goal (resets progress)",
1786
1811
  "goalpanel.no_stop_condition": " No stop condition — runs until evaluated complete.",
1787
1812
  "kresult.empty": "(empty)",
1788
1813
  "kresult.line": "Line",
@@ -1908,7 +1933,8 @@ const dictionaries = {
1908
1933
  "cronmsg.missed": "{count} missed",
1909
1934
  "cronmsg.final_delivery": "Final delivery",
1910
1935
  "thinking.in_progress": "Thinking...",
1911
- "shell.more_lines": "...({count} more lines, press ctrl+o to expand)",
1936
+ "shell.more_lines": "{count} lines hidden, press ctrl+o to expand",
1937
+ "shell.collapse_hint": "▾ Press ctrl+o to collapse",
1912
1938
  "ccconnect.note_botfather": "Create a bot at @BotFather first",
1913
1939
  "ccconnect.note_napcat": "Requires NapCat/OneBot",
1914
1940
  "ccconnect.note_wecom": "Requires public IP",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scream-code",
3
- "version": "0.10.7",
3
+ "version": "0.10.9",
4
4
  "description": "A terminal-native AI agent for builders",
5
5
  "license": "MIT",
6
6
  "author": "ScreamCli",
@@ -57,7 +57,7 @@
57
57
  "smoke": "node dist/main.mjs --version"
58
58
  },
59
59
  "dependencies": {
60
- "@liutod-scream/pi-tui": "^0.80.23",
60
+ "@liutod-scream/pi-tui": "^0.80.31",
61
61
  "@mariozechner/clipboard": "^0.3.2",
62
62
  "chalk": "^5.4.1",
63
63
  "cli-highlight": "^2.1.11",
@@ -6,10 +6,10 @@ const __dirname = __cjsShimDirname(__filename);
6
6
  import { n as __esmMin } from "./chunk-D90kvbyJ.mjs";
7
7
  import { c as init_fetch_blob, i as init_esm_min, n as FormData, r as formDataToBlob, s as Blob, t as init_from } from "./from-BMeHuTTE.mjs";
8
8
  import Ds, { PassThrough, pipeline } from "node:stream";
9
+ import { deprecate, promisify, types } from "node:util";
9
10
  import http from "node:http";
10
11
  import { format } from "node:url";
11
12
  import { isIP } from "node:net";
12
- import { deprecate, promisify, types } from "node:util";
13
13
  import https from "node:https";
14
14
  import zlib from "node:zlib";
15
15
  import { Buffer as Buffer$1 } from "node:buffer";