@hasna/assistants 1.1.55 → 1.1.57

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 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.55";
89087
+ var VERSION2 = "1.1.57";
89088
89088
  var init_builtin = __esm(async () => {
89089
89089
  init_src2();
89090
89090
  init_context3();
@@ -259283,76 +259283,64 @@ 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;
259289
+ const parts = displayDir.split("/");
259290
+ const shortDir = parts.length > 4 ? parts[0] + "/\u2026/" + parts.slice(-2).join("/") : displayDir;
259297
259291
  const displayModel = getModelDisplayName(model);
259298
- const isWide2 = (process.stdout.columns || 80) >= 82;
259299
259292
  return /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
259300
259293
  flexDirection: "column",
259301
259294
  marginBottom: 1,
259302
259295
  children: [
259303
- isWide2 ? /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
259304
- flexDirection: "column",
259305
- marginBottom: 0,
259296
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
259306
259297
  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
259298
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259312
259299
  dimColor: true,
259313
- children: " by "
259314
- }, undefined, false, undefined, this)
259315
- ]
259316
- }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
259317
- marginBottom: 0,
259318
- children: [
259300
+ children: ">"
259301
+ }, undefined, false, undefined, this),
259319
259302
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259320
259303
  color: "#0ea5e9",
259321
259304
  bold: true,
259322
- children: "assistants"
259305
+ children: "_ Hasna Assistants"
259323
259306
  }, undefined, false, undefined, this),
259324
259307
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259325
259308
  dimColor: true,
259326
- children: " by hasna"
259327
- }, undefined, false, undefined, this)
259309
+ children: [
259310
+ " (v",
259311
+ version5,
259312
+ ")"
259313
+ ]
259314
+ }, undefined, true, undefined, this)
259328
259315
  ]
259329
259316
  }, undefined, true, undefined, this),
259317
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259318
+ children: ""
259319
+ }, undefined, false, undefined, this),
259330
259320
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
259331
- marginTop: 0,
259332
259321
  children: [
259333
259322
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259334
259323
  dimColor: true,
259335
- children: [
259336
- "v",
259337
- version5,
259338
- " "
259339
- ]
259340
- }, undefined, true, undefined, this),
259324
+ children: "model: "
259325
+ }, undefined, false, undefined, this),
259326
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259327
+ children: displayModel
259328
+ }, undefined, false, undefined, this),
259341
259329
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259342
259330
  dimColor: true,
259343
- children: [
259344
- " ",
259345
- displayModel,
259346
- " "
259347
- ]
259348
- }, undefined, true, undefined, this),
259331
+ children: " /model to change"
259332
+ }, undefined, false, undefined, this)
259333
+ ]
259334
+ }, undefined, true, undefined, this),
259335
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Box_default, {
259336
+ children: [
259349
259337
  /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259350
259338
  dimColor: true,
259351
- children: [
259352
- " ",
259353
- displayDir
259354
- ]
259355
- }, undefined, true, undefined, this)
259339
+ children: "directory: "
259340
+ }, undefined, false, undefined, this),
259341
+ /* @__PURE__ */ jsx_dev_runtime8.jsxDEV(Text3, {
259342
+ children: shortDir
259343
+ }, undefined, false, undefined, this)
259356
259344
  ]
259357
259345
  }, undefined, true, undefined, this)
259358
259346
  ]
@@ -274525,13 +274513,13 @@ function useTypewriter(text, speed = 30, active = true) {
274525
274513
 
274526
274514
  // packages/terminal/src/hooks/useGradientCycle.ts
274527
274515
  var import_react65 = __toESM(require_react(), 1);
274528
- var COLORS2 = ["cyan", "blue", "magenta", "red", "yellow", "green"];
274516
+ var COLORS = ["cyan", "blue", "magenta", "red", "yellow", "green"];
274529
274517
  function useGradientCycle(intervalMs = 800) {
274530
274518
  const [index, setIndex] = import_react65.useState(0);
274531
274519
  const timerRef = import_react65.useRef(null);
274532
274520
  import_react65.useEffect(() => {
274533
274521
  timerRef.current = setInterval(() => {
274534
- setIndex((prev) => (prev + 1) % COLORS2.length);
274522
+ setIndex((prev) => (prev + 1) % COLORS.length);
274535
274523
  }, intervalMs);
274536
274524
  return () => {
274537
274525
  if (timerRef.current) {
@@ -274540,7 +274528,7 @@ function useGradientCycle(intervalMs = 800) {
274540
274528
  }
274541
274529
  };
274542
274530
  }, [intervalMs]);
274543
- return COLORS2[index];
274531
+ return COLORS[index];
274544
274532
  }
274545
274533
 
274546
274534
  // packages/terminal/src/components/OnboardingPanel.tsx
@@ -291104,7 +291092,7 @@ Interactive Mode:
291104
291092
  // packages/terminal/src/index.tsx
291105
291093
  var jsx_dev_runtime52 = __toESM(require_jsx_dev_runtime(), 1);
291106
291094
  setRuntime(bunRuntime);
291107
- var VERSION4 = "1.1.55";
291095
+ var VERSION4 = "1.1.57";
291108
291096
  var SYNC_START = "\x1B[?2026h";
291109
291097
  var SYNC_END = "\x1B[?2026l";
291110
291098
  function enableSynchronizedOutput() {
@@ -291223,4 +291211,4 @@ export {
291223
291211
  main
291224
291212
  };
291225
291213
 
291226
- //# debugId=924F3A93E2DEEC0164756E2164756E21
291214
+ //# debugId=17277467A3E4458164756E2164756E21