@hasna/assistants 1.1.29 → 1.1.30
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/index.js +136 -152
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -87176,7 +87176,7 @@ Not a git repository or git not available.
|
|
|
87176
87176
|
context.setProjectContext(projectContext);
|
|
87177
87177
|
}
|
|
87178
87178
|
}
|
|
87179
|
-
var VERSION2 = "1.1.
|
|
87179
|
+
var VERSION2 = "1.1.30";
|
|
87180
87180
|
var init_builtin = __esm(async () => {
|
|
87181
87181
|
init_src2();
|
|
87182
87182
|
init_store();
|
|
@@ -211002,7 +211002,6 @@ var Input = import_react28.default.forwardRef(function Input2({
|
|
|
211002
211002
|
const [selectedIndex, setSelectedIndex] = import_react28.useState(0);
|
|
211003
211003
|
const { stdout } = use_stdout_default();
|
|
211004
211004
|
const screenWidth = stdout?.columns ?? 80;
|
|
211005
|
-
const terminalWidth = Math.max(10, screenWidth - 2);
|
|
211006
211005
|
const textWidth = Math.max(10, screenWidth - 4);
|
|
211007
211006
|
const allCommands = import_react28.useMemo(() => {
|
|
211008
211007
|
const merged = [...COMMANDS];
|
|
@@ -211420,175 +211419,160 @@ var Input = import_react28.default.forwardRef(function Input2({
|
|
|
211420
211419
|
flexDirection: "column",
|
|
211421
211420
|
marginTop: 1,
|
|
211422
211421
|
children: [
|
|
211423
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211424
|
-
|
|
211425
|
-
|
|
211426
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211427
|
-
color: "#999999",
|
|
211428
|
-
children: "\u2500".repeat(Math.max(0, terminalWidth - assistantName.length - 3))
|
|
211429
|
-
}, undefined, false, undefined, this),
|
|
211430
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211431
|
-
children: " "
|
|
211432
|
-
}, undefined, false, undefined, this),
|
|
211433
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211434
|
-
backgroundColor: getAssistantColor(assistantName),
|
|
211435
|
-
color: "white",
|
|
211436
|
-
bold: true,
|
|
211437
|
-
children: [
|
|
211438
|
-
" ",
|
|
211439
|
-
assistantName,
|
|
211440
|
-
" "
|
|
211441
|
-
]
|
|
211442
|
-
}, undefined, true, undefined, this)
|
|
211443
|
-
]
|
|
211444
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211445
|
-
color: "#999999",
|
|
211446
|
-
children: "\u2500".repeat(terminalWidth)
|
|
211447
|
-
}, undefined, false, undefined, this)
|
|
211448
|
-
}, undefined, false, undefined, this),
|
|
211449
|
-
recordingStatus === "recording" && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211450
|
-
paddingY: 0,
|
|
211451
|
-
children: [
|
|
211452
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211453
|
-
color: "red",
|
|
211454
|
-
bold: true,
|
|
211455
|
-
children: " \uD83C\uDFA4 Recording... "
|
|
211456
|
-
}, undefined, false, undefined, this),
|
|
211457
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211458
|
-
dimColor: true,
|
|
211459
|
-
children: "[Ctrl+R or Enter to stop]"
|
|
211460
|
-
}, undefined, false, undefined, this)
|
|
211461
|
-
]
|
|
211462
|
-
}, undefined, true, undefined, this),
|
|
211463
|
-
recordingStatus === "transcribing" && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211464
|
-
paddingY: 0,
|
|
211422
|
+
assistantName && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211423
|
+
justifyContent: "flex-end",
|
|
211424
|
+
marginBottom: 0,
|
|
211465
211425
|
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211466
|
-
|
|
211426
|
+
backgroundColor: getAssistantColor(assistantName),
|
|
211427
|
+
color: "white",
|
|
211467
211428
|
bold: true,
|
|
211468
|
-
children:
|
|
211469
|
-
|
|
211429
|
+
children: [
|
|
211430
|
+
" ",
|
|
211431
|
+
assistantName,
|
|
211432
|
+
" "
|
|
211433
|
+
]
|
|
211434
|
+
}, undefined, true, undefined, this)
|
|
211470
211435
|
}, undefined, false, undefined, this),
|
|
211471
|
-
recordingStatus === "talking" && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211472
|
-
paddingY: 0,
|
|
211473
|
-
children: [
|
|
211474
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211475
|
-
color: "green",
|
|
211476
|
-
bold: true,
|
|
211477
|
-
children: " \uD83C\uDF99 Talk mode "
|
|
211478
|
-
}, undefined, false, undefined, this),
|
|
211479
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211480
|
-
dimColor: true,
|
|
211481
|
-
children: "[listening... Ctrl+C to stop]"
|
|
211482
|
-
}, undefined, false, undefined, this)
|
|
211483
|
-
]
|
|
211484
|
-
}, undefined, true, undefined, this),
|
|
211485
211436
|
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211486
|
-
paddingY: 0,
|
|
211487
211437
|
flexDirection: "column",
|
|
211488
|
-
|
|
211489
|
-
|
|
211490
|
-
|
|
211491
|
-
|
|
211492
|
-
|
|
211493
|
-
|
|
211494
|
-
|
|
211495
|
-
|
|
211496
|
-
|
|
211497
|
-
|
|
211498
|
-
|
|
211499
|
-
|
|
211500
|
-
|
|
211501
|
-
|
|
211502
|
-
|
|
211503
|
-
|
|
211504
|
-
|
|
211505
|
-
|
|
211506
|
-
|
|
211507
|
-
|
|
211508
|
-
|
|
211509
|
-
|
|
211510
|
-
|
|
211511
|
-
|
|
211512
|
-
|
|
211513
|
-
|
|
211514
|
-
|
|
211515
|
-
|
|
211516
|
-
|
|
211517
|
-
|
|
211518
|
-
|
|
211519
|
-
|
|
211520
|
-
|
|
211521
|
-
|
|
211522
|
-
|
|
211523
|
-
|
|
211524
|
-
|
|
211525
|
-
|
|
211526
|
-
|
|
211527
|
-
|
|
211528
|
-
|
|
211529
|
-
const isCursorLine = index === layout.cursorRow;
|
|
211530
|
-
if (!isCursorLine) {
|
|
211531
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211532
|
-
children: [
|
|
211533
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211534
|
-
color: isProcessing ? "gray" : "cyan",
|
|
211535
|
-
children: index === 0 ? "> " : " "
|
|
211536
|
-
}, undefined, false, undefined, this),
|
|
211537
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211538
|
-
flexGrow: 1,
|
|
211539
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211540
|
-
children: line.text || " "
|
|
211541
|
-
}, undefined, false, undefined, this)
|
|
211542
|
-
}, undefined, false, undefined, this)
|
|
211543
|
-
]
|
|
211544
|
-
}, `line-${index}`, true, undefined, this);
|
|
211545
|
-
}
|
|
211546
|
-
const column = Math.min(layout.cursorCol, line.text.length);
|
|
211547
|
-
const before = line.text.slice(0, column);
|
|
211548
|
-
const cursorChar = column < line.text.length ? line.text[column] : " ";
|
|
211549
|
-
const after = column < line.text.length ? line.text.slice(column + 1) : "";
|
|
211550
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211438
|
+
borderStyle: "round",
|
|
211439
|
+
borderColor: "gray",
|
|
211440
|
+
paddingX: 1,
|
|
211441
|
+
children: [
|
|
211442
|
+
recordingStatus === "recording" && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211443
|
+
paddingY: 0,
|
|
211444
|
+
children: [
|
|
211445
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211446
|
+
color: "red",
|
|
211447
|
+
bold: true,
|
|
211448
|
+
children: "\uD83C\uDFA4 Recording... "
|
|
211449
|
+
}, undefined, false, undefined, this),
|
|
211450
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211451
|
+
dimColor: true,
|
|
211452
|
+
children: "[Ctrl+R or Enter to stop]"
|
|
211453
|
+
}, undefined, false, undefined, this)
|
|
211454
|
+
]
|
|
211455
|
+
}, undefined, true, undefined, this),
|
|
211456
|
+
recordingStatus === "transcribing" && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211457
|
+
paddingY: 0,
|
|
211458
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211459
|
+
color: "yellow",
|
|
211460
|
+
bold: true,
|
|
211461
|
+
children: "\u23F3 Transcribing..."
|
|
211462
|
+
}, undefined, false, undefined, this)
|
|
211463
|
+
}, undefined, false, undefined, this),
|
|
211464
|
+
recordingStatus === "talking" && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211465
|
+
paddingY: 0,
|
|
211466
|
+
children: [
|
|
211467
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211468
|
+
color: "green",
|
|
211469
|
+
bold: true,
|
|
211470
|
+
children: "\uD83C\uDF99 Talk mode "
|
|
211471
|
+
}, undefined, false, undefined, this),
|
|
211472
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211473
|
+
dimColor: true,
|
|
211474
|
+
children: "[listening... Ctrl+C to stop]"
|
|
211475
|
+
}, undefined, false, undefined, this)
|
|
211476
|
+
]
|
|
211477
|
+
}, undefined, true, undefined, this),
|
|
211478
|
+
largePaste ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211551
211479
|
children: [
|
|
211552
211480
|
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211553
211481
|
color: isProcessing ? "gray" : "cyan",
|
|
211554
|
-
children:
|
|
211482
|
+
children: "> "
|
|
211555
211483
|
}, undefined, false, undefined, this),
|
|
211556
211484
|
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211557
211485
|
flexGrow: 1,
|
|
211558
211486
|
children: [
|
|
211559
211487
|
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211560
|
-
|
|
211488
|
+
color: "yellow",
|
|
211489
|
+
children: largePaste.placeholder
|
|
211561
211490
|
}, undefined, false, undefined, this),
|
|
211491
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211492
|
+
dimColor: true,
|
|
211493
|
+
children: " [Enter to send, Esc to cancel]"
|
|
211494
|
+
}, undefined, false, undefined, this)
|
|
211495
|
+
]
|
|
211496
|
+
}, undefined, true, undefined, this)
|
|
211497
|
+
]
|
|
211498
|
+
}, undefined, true, undefined, this) : value.length === 0 ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211499
|
+
children: [
|
|
211500
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211501
|
+
color: isProcessing ? "gray" : "cyan",
|
|
211502
|
+
children: "> "
|
|
211503
|
+
}, undefined, false, undefined, this),
|
|
211504
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211505
|
+
flexGrow: 1,
|
|
211506
|
+
children: [
|
|
211562
211507
|
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211563
211508
|
inverse: true,
|
|
211564
|
-
children:
|
|
211509
|
+
children: " "
|
|
211565
211510
|
}, undefined, false, undefined, this),
|
|
211566
211511
|
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211567
|
-
|
|
211512
|
+
dimColor: true,
|
|
211513
|
+
children: placeholder
|
|
211568
211514
|
}, undefined, false, undefined, this)
|
|
211569
211515
|
]
|
|
211570
211516
|
}, undefined, true, undefined, this)
|
|
211571
211517
|
]
|
|
211572
|
-
},
|
|
211573
|
-
|
|
211574
|
-
|
|
211575
|
-
|
|
211576
|
-
|
|
211577
|
-
|
|
211578
|
-
|
|
211579
|
-
|
|
211580
|
-
|
|
211581
|
-
|
|
211582
|
-
|
|
211583
|
-
|
|
211584
|
-
|
|
211585
|
-
|
|
211586
|
-
|
|
211587
|
-
|
|
211588
|
-
|
|
211589
|
-
|
|
211590
|
-
|
|
211591
|
-
|
|
211518
|
+
}, undefined, true, undefined, this) : lines.map((line, index) => {
|
|
211519
|
+
const isCursorLine = index === layout.cursorRow;
|
|
211520
|
+
if (!isCursorLine) {
|
|
211521
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211522
|
+
children: [
|
|
211523
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211524
|
+
color: isProcessing ? "gray" : "cyan",
|
|
211525
|
+
children: index === 0 ? "> " : " "
|
|
211526
|
+
}, undefined, false, undefined, this),
|
|
211527
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211528
|
+
flexGrow: 1,
|
|
211529
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211530
|
+
children: line.text || " "
|
|
211531
|
+
}, undefined, false, undefined, this)
|
|
211532
|
+
}, undefined, false, undefined, this)
|
|
211533
|
+
]
|
|
211534
|
+
}, `line-${index}`, true, undefined, this);
|
|
211535
|
+
}
|
|
211536
|
+
const column = Math.min(layout.cursorCol, line.text.length);
|
|
211537
|
+
const before = line.text.slice(0, column);
|
|
211538
|
+
const cursorChar = column < line.text.length ? line.text[column] : " ";
|
|
211539
|
+
const after = column < line.text.length ? line.text.slice(column + 1) : "";
|
|
211540
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211541
|
+
children: [
|
|
211542
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211543
|
+
color: isProcessing ? "gray" : "cyan",
|
|
211544
|
+
children: index === 0 ? "> " : " "
|
|
211545
|
+
}, undefined, false, undefined, this),
|
|
211546
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211547
|
+
flexGrow: 1,
|
|
211548
|
+
children: [
|
|
211549
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211550
|
+
children: before
|
|
211551
|
+
}, undefined, false, undefined, this),
|
|
211552
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211553
|
+
inverse: true,
|
|
211554
|
+
children: cursorChar
|
|
211555
|
+
}, undefined, false, undefined, this),
|
|
211556
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211557
|
+
children: after
|
|
211558
|
+
}, undefined, false, undefined, this)
|
|
211559
|
+
]
|
|
211560
|
+
}, undefined, true, undefined, this)
|
|
211561
|
+
]
|
|
211562
|
+
}, `line-${index}`, true, undefined, this);
|
|
211563
|
+
}),
|
|
211564
|
+
lineCount > 1 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211565
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211566
|
+
color: "gray",
|
|
211567
|
+
children: [
|
|
211568
|
+
"(",
|
|
211569
|
+
lineCount,
|
|
211570
|
+
" lines)"
|
|
211571
|
+
]
|
|
211572
|
+
}, undefined, true, undefined, this)
|
|
211573
|
+
}, undefined, false, undefined, this)
|
|
211574
|
+
]
|
|
211575
|
+
}, undefined, true, undefined, this),
|
|
211592
211576
|
quickHints.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211593
211577
|
marginLeft: 2,
|
|
211594
211578
|
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
@@ -214474,7 +214458,7 @@ function WelcomeBanner({ version: version3, model, directory }) {
|
|
|
214474
214458
|
}, undefined, false, undefined, this),
|
|
214475
214459
|
/* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text3, {
|
|
214476
214460
|
bold: true,
|
|
214477
|
-
children: "
|
|
214461
|
+
children: "Assistants"
|
|
214478
214462
|
}, undefined, false, undefined, this),
|
|
214479
214463
|
/* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Text3, {
|
|
214480
214464
|
dimColor: true,
|
|
@@ -244290,7 +244274,7 @@ Interactive Mode:
|
|
|
244290
244274
|
// packages/terminal/src/index.tsx
|
|
244291
244275
|
var jsx_dev_runtime49 = __toESM(require_jsx_dev_runtime(), 1);
|
|
244292
244276
|
setRuntime(bunRuntime);
|
|
244293
|
-
var VERSION4 = "1.1.
|
|
244277
|
+
var VERSION4 = "1.1.30";
|
|
244294
244278
|
var SYNC_START = "\x1B[?2026h";
|
|
244295
244279
|
var SYNC_END = "\x1B[?2026l";
|
|
244296
244280
|
function enableSynchronizedOutput() {
|
|
@@ -244430,4 +244414,4 @@ export {
|
|
|
244430
244414
|
main
|
|
244431
244415
|
};
|
|
244432
244416
|
|
|
244433
|
-
//# debugId=
|
|
244417
|
+
//# debugId=DF291AA2AC19E9BE64756E2164756E21
|