@hasna/assistants 1.1.55 → 1.1.56
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 +19 -55
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -89084,7 +89084,7 @@ Not a git repository or git not available.
|
|
|
89084
89084
|
context.setProjectContext(projectContext);
|
|
89085
89085
|
}
|
|
89086
89086
|
}
|
|
89087
|
-
var VERSION2 = "1.1.
|
|
89087
|
+
var VERSION2 = "1.1.56";
|
|
89088
89088
|
var init_builtin = __esm(async () => {
|
|
89089
89089
|
init_src2();
|
|
89090
89090
|
init_context3();
|
|
@@ -259283,37 +259283,15 @@ function ProcessingIndicator({
|
|
|
259283
259283
|
init_src2();
|
|
259284
259284
|
await init_build2();
|
|
259285
259285
|
var jsx_dev_runtime8 = __toESM(require_jsx_dev_runtime(), 1);
|
|
259286
|
-
var MINI_LOGO = [
|
|
259287
|
-
" \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
259288
|
-
"\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 ",
|
|
259289
|
-
"\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588",
|
|
259290
|
-
"\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588",
|
|
259291
|
-
"\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588 \u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588"
|
|
259292
|
-
];
|
|
259293
|
-
var COLORS = ["#7dd3fc", "#38bdf8", "#0ea5e9", "#0284c7", "#0369a1"];
|
|
259294
259286
|
function WelcomeBanner({ version: version5, model, directory }) {
|
|
259295
259287
|
const homeDir = process.env.HOME || "";
|
|
259296
259288
|
const displayDir = homeDir && directory.startsWith(homeDir) ? "~" + directory.slice(homeDir.length) : directory;
|
|
259297
259289
|
const displayModel = getModelDisplayName(model);
|
|
259298
|
-
const isWide2 = (process.stdout.columns || 80) >= 82;
|
|
259299
259290
|
return /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
|
|
259300
259291
|
flexDirection: "column",
|
|
259301
259292
|
marginBottom: 1,
|
|
259302
259293
|
children: [
|
|
259303
|
-
|
|
259304
|
-
flexDirection: "column",
|
|
259305
|
-
marginBottom: 0,
|
|
259306
|
-
children: [
|
|
259307
|
-
MINI_LOGO.map((line, i5) => /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
|
|
259308
|
-
color: COLORS[i5],
|
|
259309
|
-
children: line
|
|
259310
|
-
}, i5, false, undefined, this)),
|
|
259311
|
-
/* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
|
|
259312
|
-
dimColor: true,
|
|
259313
|
-
children: " by "
|
|
259314
|
-
}, undefined, false, undefined, this)
|
|
259315
|
-
]
|
|
259316
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
|
|
259294
|
+
/* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
|
|
259317
259295
|
marginBottom: 0,
|
|
259318
259296
|
children: [
|
|
259319
259297
|
/* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
|
|
@@ -259329,32 +259307,18 @@ function WelcomeBanner({ version: version5, model, directory }) {
|
|
|
259329
259307
|
}, undefined, true, undefined, this),
|
|
259330
259308
|
/* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
|
|
259331
259309
|
marginTop: 0,
|
|
259332
|
-
children:
|
|
259333
|
-
|
|
259334
|
-
|
|
259335
|
-
|
|
259336
|
-
|
|
259337
|
-
|
|
259338
|
-
|
|
259339
|
-
|
|
259340
|
-
|
|
259341
|
-
|
|
259342
|
-
|
|
259343
|
-
|
|
259344
|
-
" ",
|
|
259345
|
-
displayModel,
|
|
259346
|
-
" "
|
|
259347
|
-
]
|
|
259348
|
-
}, undefined, true, undefined, this),
|
|
259349
|
-
/* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
|
|
259350
|
-
dimColor: true,
|
|
259351
|
-
children: [
|
|
259352
|
-
" ",
|
|
259353
|
-
displayDir
|
|
259354
|
-
]
|
|
259355
|
-
}, undefined, true, undefined, this)
|
|
259356
|
-
]
|
|
259357
|
-
}, undefined, true, undefined, this)
|
|
259310
|
+
children: /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
|
|
259311
|
+
dimColor: true,
|
|
259312
|
+
children: [
|
|
259313
|
+
"v",
|
|
259314
|
+
version5,
|
|
259315
|
+
" ",
|
|
259316
|
+
displayModel,
|
|
259317
|
+
" ",
|
|
259318
|
+
displayDir
|
|
259319
|
+
]
|
|
259320
|
+
}, undefined, true, undefined, this)
|
|
259321
|
+
}, undefined, false, undefined, this)
|
|
259358
259322
|
]
|
|
259359
259323
|
}, undefined, true, undefined, this);
|
|
259360
259324
|
}
|
|
@@ -274525,13 +274489,13 @@ function useTypewriter(text, speed = 30, active = true) {
|
|
|
274525
274489
|
|
|
274526
274490
|
// packages/terminal/src/hooks/useGradientCycle.ts
|
|
274527
274491
|
var import_react65 = __toESM(require_react(), 1);
|
|
274528
|
-
var
|
|
274492
|
+
var COLORS = ["cyan", "blue", "magenta", "red", "yellow", "green"];
|
|
274529
274493
|
function useGradientCycle(intervalMs = 800) {
|
|
274530
274494
|
const [index, setIndex] = import_react65.useState(0);
|
|
274531
274495
|
const timerRef = import_react65.useRef(null);
|
|
274532
274496
|
import_react65.useEffect(() => {
|
|
274533
274497
|
timerRef.current = setInterval(() => {
|
|
274534
|
-
setIndex((prev) => (prev + 1) %
|
|
274498
|
+
setIndex((prev) => (prev + 1) % COLORS.length);
|
|
274535
274499
|
}, intervalMs);
|
|
274536
274500
|
return () => {
|
|
274537
274501
|
if (timerRef.current) {
|
|
@@ -274540,7 +274504,7 @@ function useGradientCycle(intervalMs = 800) {
|
|
|
274540
274504
|
}
|
|
274541
274505
|
};
|
|
274542
274506
|
}, [intervalMs]);
|
|
274543
|
-
return
|
|
274507
|
+
return COLORS[index];
|
|
274544
274508
|
}
|
|
274545
274509
|
|
|
274546
274510
|
// packages/terminal/src/components/OnboardingPanel.tsx
|
|
@@ -291104,7 +291068,7 @@ Interactive Mode:
|
|
|
291104
291068
|
// packages/terminal/src/index.tsx
|
|
291105
291069
|
var jsx_dev_runtime52 = __toESM(require_jsx_dev_runtime(), 1);
|
|
291106
291070
|
setRuntime(bunRuntime);
|
|
291107
|
-
var VERSION4 = "1.1.
|
|
291071
|
+
var VERSION4 = "1.1.56";
|
|
291108
291072
|
var SYNC_START = "\x1B[?2026h";
|
|
291109
291073
|
var SYNC_END = "\x1B[?2026l";
|
|
291110
291074
|
function enableSynchronizedOutput() {
|
|
@@ -291223,4 +291187,4 @@ export {
|
|
|
291223
291187
|
main
|
|
291224
291188
|
};
|
|
291225
291189
|
|
|
291226
|
-
//# debugId=
|
|
291190
|
+
//# debugId=B1A3529A1AEEA71664756E2164756E21
|