@unity-china/codely-cli 1.0.0-beta.36 → 1.0.0-beta.37
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/bundle/gemini.js +38 -4
- package/package.json +2 -1
package/bundle/gemini.js
CHANGED
|
@@ -417144,7 +417144,7 @@ async function getPackageJson2() {
|
|
|
417144
417144
|
// packages/cli/src/utils/version.ts
|
|
417145
417145
|
async function getCliVersion() {
|
|
417146
417146
|
const pkgJson = await getPackageJson2();
|
|
417147
|
-
return "1.0.0-beta.
|
|
417147
|
+
return "1.0.0-beta.37";
|
|
417148
417148
|
}
|
|
417149
417149
|
|
|
417150
417150
|
// packages/cli/src/ui/commands/types.ts
|
|
@@ -417636,7 +417636,7 @@ import process30 from "node:process";
|
|
|
417636
417636
|
|
|
417637
417637
|
// packages/cli/src/generated/git-commit.ts
|
|
417638
417638
|
init_esbuild_polyfill();
|
|
417639
|
-
var GIT_COMMIT_INFO = "
|
|
417639
|
+
var GIT_COMMIT_INFO = "8dcb2033";
|
|
417640
417640
|
|
|
417641
417641
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
417642
417642
|
var bugCommand = {
|
|
@@ -484541,6 +484541,7 @@ var RenderThinkBlockInternal = ({
|
|
|
484541
484541
|
terminalWidth: _terminalWidth
|
|
484542
484542
|
}) => {
|
|
484543
484543
|
const MAX_VISIBLE_THINK_LINES = 10;
|
|
484544
|
+
const MAX_VISIBLE_THINK_CHARS_WHEN_COLLAPSED = 500;
|
|
484544
484545
|
const shouldCollapse = isPending && isStreaming;
|
|
484545
484546
|
const filteredContent = content.filter((line) => line.trim().length > 0);
|
|
484546
484547
|
if (filteredContent.length === 0) {
|
|
@@ -484552,8 +484553,41 @@ var RenderThinkBlockInternal = ({
|
|
|
484552
484553
|
if (cleanedContent.length === 0) {
|
|
484553
484554
|
return null;
|
|
484554
484555
|
}
|
|
484555
|
-
|
|
484556
|
-
|
|
484556
|
+
let visibleContent = cleanedContent;
|
|
484557
|
+
let hiddenLineCount = 0;
|
|
484558
|
+
if (shouldCollapse) {
|
|
484559
|
+
const lastIndex = cleanedContent.length - 1;
|
|
484560
|
+
const lastLine = cleanedContent[lastIndex] ?? "";
|
|
484561
|
+
let lastOverlongIndex = -1;
|
|
484562
|
+
for (let i3 = lastIndex; i3 >= 0; i3--) {
|
|
484563
|
+
if (cleanedContent[i3].length > MAX_VISIBLE_THINK_CHARS_WHEN_COLLAPSED) {
|
|
484564
|
+
lastOverlongIndex = i3;
|
|
484565
|
+
break;
|
|
484566
|
+
}
|
|
484567
|
+
}
|
|
484568
|
+
if (lastLine.length > MAX_VISIBLE_THINK_CHARS_WHEN_COLLAPSED) {
|
|
484569
|
+
visibleContent = [lastLine];
|
|
484570
|
+
hiddenLineCount = Math.max(0, cleanedContent.length - 1);
|
|
484571
|
+
} else {
|
|
484572
|
+
const resetStartIndex = lastOverlongIndex === -1 ? 0 : lastOverlongIndex + 1;
|
|
484573
|
+
const candidate = cleanedContent.slice(resetStartIndex);
|
|
484574
|
+
const selectedReversed = [];
|
|
484575
|
+
let totalChars = 0;
|
|
484576
|
+
for (let i3 = candidate.length - 1; i3 >= 0; i3--) {
|
|
484577
|
+
if (selectedReversed.length >= MAX_VISIBLE_THINK_LINES) break;
|
|
484578
|
+
const line = candidate[i3];
|
|
484579
|
+
const nextTotal = totalChars + line.length;
|
|
484580
|
+
if (nextTotal > MAX_VISIBLE_THINK_CHARS_WHEN_COLLAPSED) break;
|
|
484581
|
+
selectedReversed.push(line);
|
|
484582
|
+
totalChars = nextTotal;
|
|
484583
|
+
}
|
|
484584
|
+
if (selectedReversed.length === 0 && candidate.length > 0) {
|
|
484585
|
+
selectedReversed.push(candidate[candidate.length - 1]);
|
|
484586
|
+
}
|
|
484587
|
+
visibleContent = selectedReversed.reverse();
|
|
484588
|
+
hiddenLineCount = resetStartIndex + Math.max(0, candidate.length - visibleContent.length);
|
|
484589
|
+
}
|
|
484590
|
+
}
|
|
484557
484591
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
484558
484592
|
Box_default,
|
|
484559
484593
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unity-china/codely-cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.37",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"files": [
|
|
61
61
|
"bundle/",
|
|
62
62
|
"README.md",
|
|
63
|
+
"README.zh-CN.md",
|
|
63
64
|
"LICENSE"
|
|
64
65
|
],
|
|
65
66
|
"publishConfig": {
|