cc-zh-watcher 0.2.0 → 0.2.1

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/cli.js +11 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -46414,7 +46414,7 @@ function summarizeToolInput(name, input) {
46414
46414
  return genericSummary(i);
46415
46415
  }
46416
46416
  }
46417
- var LINE_LIMIT = 5;
46417
+ var LINE_LIMIT = 3;
46418
46418
  function formatToolResult(content) {
46419
46419
  const text = stringifyResult(content);
46420
46420
  const all = text.split(`
@@ -46829,14 +46829,19 @@ function AgentBody({
46829
46829
  color: "yellow"
46830
46830
  }, "⏳")) : /* @__PURE__ */ import_react26.default.createElement(Text, null, prompt.text))));
46831
46831
  }
46832
+ var TOOL_USE_LINE_CAP = 2;
46832
46833
  function ToolUseRow({ toolUse }) {
46833
46834
  const summary = summarizeToolInput(toolUse.name, toolUse.input);
46834
- const lines = summary.length > 0 ? summary.split(`
46835
+ const allLines = summary.length > 0 ? summary.split(`
46835
46836
  `) : [""];
46837
+ const truncated = allLines.length > TOOL_USE_LINE_CAP;
46838
+ const lines = truncated ? allLines.slice(0, TOOL_USE_LINE_CAP) : allLines;
46839
+ const closer = truncated ? "…)" : ")";
46836
46840
  const continuationIndent = " ".repeat(2 + toolUse.name.length + 1);
46837
46841
  return /* @__PURE__ */ import_react26.default.createElement(Box_default, {
46838
46842
  flexDirection: "column",
46839
- marginY: 1,
46843
+ marginTop: 1,
46844
+ marginBottom: 0,
46840
46845
  paddingX: 1
46841
46846
  }, lines.map((line, i) => {
46842
46847
  const isLast = i === lines.length - 1;
@@ -46848,13 +46853,13 @@ function ToolUseRow({ toolUse }) {
46848
46853
  bold: true
46849
46854
  }, "●"), /* @__PURE__ */ import_react26.default.createElement(Text, {
46850
46855
  bold: true
46851
- }, " ", toolUse.name, "(", line, isLast ? ")" : ""));
46856
+ }, " ", toolUse.name, "(", line, isLast ? closer : ""));
46852
46857
  }
46853
46858
  return /* @__PURE__ */ import_react26.default.createElement(Box_default, {
46854
46859
  key: i
46855
46860
  }, /* @__PURE__ */ import_react26.default.createElement(Text, null, continuationIndent), /* @__PURE__ */ import_react26.default.createElement(Text, {
46856
46861
  bold: true
46857
- }, line, isLast ? ")" : ""));
46862
+ }, line, isLast ? closer : ""));
46858
46863
  }));
46859
46864
  }
46860
46865
  function ToolResultRow({
@@ -48448,7 +48453,7 @@ function patchTodoField(payload, i, which, zh) {
48448
48453
  // package.json
48449
48454
  var package_default = {
48450
48455
  name: "cc-zh-watcher",
48451
- version: "0.2.0",
48456
+ version: "0.2.1",
48452
48457
  description: "Side-channel Chinese ↔ English bridge for Claude Code (single-watcher TUI). Type Chinese, Claude sees English; Claude replies in English, you see Chinese.",
48453
48458
  type: "module",
48454
48459
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-zh-watcher",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Side-channel Chinese ↔ English bridge for Claude Code (single-watcher TUI). Type Chinese, Claude sees English; Claude replies in English, you see Chinese.",
5
5
  "type": "module",
6
6
  "bin": {