@nomad-e/bluma-cli 0.0.1 → 0.0.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.
- package/dist/main.js +4 -8
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -192,7 +192,7 @@ var InputPrompt = ({ onSubmit, isReadOnly, onInterrupt }) => {
|
|
|
192
192
|
);
|
|
193
193
|
const textAfterCursor = visibleText.slice(visibleCursorPosition + 1);
|
|
194
194
|
const borderColor = isReadOnly ? "gray" : "gray";
|
|
195
|
-
const placeholder = isReadOnly ? "
|
|
195
|
+
const placeholder = isReadOnly ? " press esc to cancel" : "";
|
|
196
196
|
const showPlaceholder = text.length === 0 && isReadOnly;
|
|
197
197
|
return /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", children: [
|
|
198
198
|
/* @__PURE__ */ jsx2(Box2, { borderStyle: "round", borderColor, borderDimColor: !isReadOnly, children: /* @__PURE__ */ jsxs2(Box2, { flexDirection: "row", paddingX: 1, flexWrap: "nowrap", children: [
|
|
@@ -204,7 +204,7 @@ var InputPrompt = ({ onSubmit, isReadOnly, onInterrupt }) => {
|
|
|
204
204
|
/* @__PURE__ */ jsx2(Text2, { inverse: !isReadOnly, children: charAtCursor || " " }),
|
|
205
205
|
showPlaceholder ? /* @__PURE__ */ jsx2(Text2, { dimColor: true, children: placeholder }) : /* @__PURE__ */ jsx2(Text2, { children: textAfterCursor })
|
|
206
206
|
] }) }),
|
|
207
|
-
/* @__PURE__ */ jsx2(Box2, { paddingX: 1, children: /* @__PURE__ */ jsxs2(Text2, { color: "gray", dimColor: true, children: [
|
|
207
|
+
/* @__PURE__ */ jsx2(Box2, { paddingX: 1, justifyContent: "center", children: /* @__PURE__ */ jsxs2(Text2, { color: "gray", dimColor: true, children: [
|
|
208
208
|
"ctrl+c to exit | esc to interrupt | ",
|
|
209
209
|
isReadOnly ? "Read-only mode" : "Editable mode"
|
|
210
210
|
] }) })
|
|
@@ -418,16 +418,12 @@ var renderEditTool = ({ toolCall, preview }) => {
|
|
|
418
418
|
var renderGeneric = ({ toolCall }) => {
|
|
419
419
|
const toolName = toolCall.function.name;
|
|
420
420
|
const formattedArgs = formatArguments(toolCall.function.arguments);
|
|
421
|
-
const ARGS_BOX_HEIGHT =
|
|
421
|
+
const ARGS_BOX_HEIGHT = 3;
|
|
422
422
|
const totalLines = formattedArgs.split("\n").length;
|
|
423
423
|
const areArgsTruncated = totalLines > ARGS_BOX_HEIGHT;
|
|
424
424
|
return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", marginBottom: 1, children: [
|
|
425
|
-
/* @__PURE__ */ jsx5(Box5, { children: /* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */ jsx5(Text5, { color: "magenta", children: "? " }),
|
|
427
|
-
toolName
|
|
428
|
-
] }) }),
|
|
425
|
+
/* @__PURE__ */ jsx5(Box5, { children: /* @__PURE__ */ jsx5(Text5, { bold: true, children: toolName }) }),
|
|
429
426
|
formattedArgs && /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", marginTop: 1, children: [
|
|
430
|
-
/* @__PURE__ */ jsx5(Text5, { dimColor: true, children: "Arguments:" }),
|
|
431
427
|
/* @__PURE__ */ jsx5(
|
|
432
428
|
Box5,
|
|
433
429
|
{
|