@hasna/assistants 1.1.34 → 1.1.35

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
@@ -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.34";
87179
+ var VERSION2 = "1.1.35";
87180
87180
  var init_builtin = __esm(async () => {
87181
87181
  init_src2();
87182
87182
  init_store();
@@ -214111,6 +214111,7 @@ function buildDisplayMessages(messages2, chunkLines, wrapChars, options) {
214111
214111
 
214112
214112
  // packages/terminal/src/components/Status.tsx
214113
214113
  var import_react30 = __toESM(require_react2(), 1);
214114
+ import { basename as basename7 } from "path";
214114
214115
  var jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
214115
214116
  function Status({
214116
214117
  isProcessing,
@@ -214180,6 +214181,7 @@ function Status({
214180
214181
  const interval = setInterval(update, 1000);
214181
214182
  return () => clearInterval(interval);
214182
214183
  }, [heartbeatState?.enabled, heartbeatState?.nextHeartbeatAt, heartbeatState?.lastActivity, heartbeatState?.intervalMs]);
214184
+ const folderName = basename7(cwd2);
214183
214185
  let contextInfo = "";
214184
214186
  if (tokenUsage && tokenUsage.maxContextTokens > 0) {
214185
214187
  const rawPercent = Math.round(tokenUsage.totalTokens / tokenUsage.maxContextTokens * 100);
@@ -214189,10 +214191,10 @@ function Status({
214189
214191
  const sessionInfo = sessionCount && sessionCount > 1 && sessionIndex !== undefined ? `${sessionIndex + 1}/${sessionCount}` : "";
214190
214192
  const bgIndicator = backgroundProcessingCount > 0 ? ` +${backgroundProcessingCount}` : "";
214191
214193
  const energyInfo = energyState ? `${Math.round(energyState.current / energyState.max * 100)}%` : "";
214192
- const voiceIcon = voiceState?.enabled ? voiceState.isTalking ? "\uD83D\uDDE3" : voiceState.isListening ? "\uD83C\uDFA4" : voiceState.isSpeaking ? "\uD83D\uDD0A" : "\uD83C\uDF99" : "";
214193
- const heartbeatIcon = heartbeatState?.enabled ? heartbeatState.isStale ? "\uD83D\uDC9B" : "\uD83D\uDC9A" : "";
214194
- const heartbeatDisplay = heartbeatIcon ? `${heartbeatIcon}${heartbeatCountdown ? ` ${heartbeatCountdown}` : ""}` : "";
214195
- const queueInfo = queueLength > 0 ? `${queueLength} queued` : "";
214194
+ const voiceLabel = voiceState?.enabled ? voiceState.isTalking ? "talk" : voiceState.isListening ? "mic" : voiceState.isSpeaking ? "spk" : "voice" : "";
214195
+ const heartbeatLabel = heartbeatState?.enabled ? heartbeatState.isStale ? "hb!" : "hb" : "";
214196
+ const heartbeatDisplay = heartbeatLabel ? `${heartbeatLabel}${heartbeatCountdown ? ` ${heartbeatCountdown}` : ""}` : "";
214197
+ const queueInfo = queueLength > 0 ? `${queueLength}q` : "";
214196
214198
  const verboseLabel = verboseTools ? "verbose" : "";
214197
214199
  const recentToolsSummary = import_react30.useMemo(() => {
214198
214200
  if (recentTools.length === 0)
@@ -214211,98 +214213,51 @@ function Status({
214211
214213
  for (const [name2, { count, failed, running }] of counts) {
214212
214214
  let part = name2;
214213
214215
  if (count > 1)
214214
- part += `\xD7${count}`;
214216
+ part += `x${count}`;
214215
214217
  if (failed > 0)
214216
214218
  part += "!";
214217
214219
  if (running > 0)
214218
- part += "\u2026";
214220
+ part += "..";
214219
214221
  parts.push(part);
214220
214222
  }
214221
214223
  return parts.slice(0, 4).join(" ");
214222
214224
  }, [recentTools]);
214225
+ const rightParts = [];
214226
+ if (heartbeatDisplay)
214227
+ rightParts.push(heartbeatDisplay);
214228
+ if (voiceLabel)
214229
+ rightParts.push(voiceLabel);
214230
+ if (isProcessing)
214231
+ rightParts.push("esc");
214232
+ if (isProcessing && processingStartTime)
214233
+ rightParts.push(formatDuration4(elapsed));
214234
+ if (sessionInfo)
214235
+ rightParts.push(`${sessionInfo}${bgIndicator}`);
214236
+ if (energyInfo)
214237
+ rightParts.push(energyInfo);
214238
+ if (contextInfo)
214239
+ rightParts.push(contextInfo);
214240
+ if (verboseLabel)
214241
+ rightParts.push(verboseLabel);
214242
+ if (queueInfo)
214243
+ rightParts.push(queueInfo);
214244
+ if (recentToolsSummary)
214245
+ rightParts.push(recentToolsSummary);
214246
+ const leftParts = [];
214247
+ leftParts.push(folderName);
214248
+ if (gitBranch)
214249
+ leftParts.push(gitBranch);
214223
214250
  return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
214224
- marginTop: 1,
214225
214251
  justifyContent: "space-between",
214226
214252
  children: [
214227
214253
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214228
214254
  dimColor: true,
214229
- children: [
214230
- "/help",
214231
- sessionCount && sessionCount > 1 ? " \xB7 Ctrl+]" : "",
214232
- gitBranch ? ` \xB7 \u2387 ${gitBranch}` : ""
214233
- ]
214234
- }, undefined, true, undefined, this),
214235
- /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
214236
- children: [
214237
- heartbeatDisplay && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214238
- dimColor: true,
214239
- children: [
214240
- heartbeatDisplay,
214241
- " "
214242
- ]
214243
- }, undefined, true, undefined, this),
214244
- voiceIcon && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214245
- dimColor: true,
214246
- children: [
214247
- voiceIcon,
214248
- " "
214249
- ]
214250
- }, undefined, true, undefined, this),
214251
- isProcessing && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214252
- dimColor: true,
214253
- children: "esc \xB7 "
214254
- }, undefined, false, undefined, this),
214255
- sessionInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214256
- dimColor: true,
214257
- children: [
214258
- sessionInfo,
214259
- bgIndicator,
214260
- " \xB7 "
214261
- ]
214262
- }, undefined, true, undefined, this),
214263
- energyInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214264
- dimColor: true,
214265
- children: [
214266
- "\u26A1",
214267
- energyInfo,
214268
- " \xB7 "
214269
- ]
214270
- }, undefined, true, undefined, this),
214271
- contextInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214272
- dimColor: true,
214273
- children: contextInfo
214274
- }, undefined, false, undefined, this),
214275
- isProcessing && processingStartTime && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214276
- dimColor: true,
214277
- children: [
214278
- " \xB7 ",
214279
- formatDuration4(elapsed)
214280
- ]
214281
- }, undefined, true, undefined, this),
214282
- verboseLabel && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214283
- dimColor: true,
214284
- children: [
214285
- contextInfo || isProcessing && processingStartTime || sessionInfo ? " \xB7 " : "",
214286
- verboseLabel
214287
- ]
214288
- }, undefined, true, undefined, this),
214289
- queueInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214290
- dimColor: true,
214291
- children: [
214292
- contextInfo || isProcessing && processingStartTime || sessionInfo || verboseLabel ? " \xB7 " : "",
214293
- queueInfo
214294
- ]
214295
- }, undefined, true, undefined, this),
214296
- recentToolsSummary && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214297
- dimColor: true,
214298
- children: [
214299
- contextInfo || isProcessing && processingStartTime || sessionInfo || verboseLabel || queueInfo ? " \xB7 " : "",
214300
- "\uD83D\uDD27 ",
214301
- recentToolsSummary
214302
- ]
214303
- }, undefined, true, undefined, this)
214304
- ]
214305
- }, undefined, true, undefined, this)
214255
+ children: leftParts.join(" \xB7 ")
214256
+ }, undefined, false, undefined, this),
214257
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
214258
+ dimColor: true,
214259
+ children: rightParts.join(" \xB7 ")
214260
+ }, undefined, false, undefined, this)
214306
214261
  ]
214307
214262
  }, undefined, true, undefined, this);
214308
214263
  }
@@ -244269,7 +244224,7 @@ Interactive Mode:
244269
244224
  // packages/terminal/src/index.tsx
244270
244225
  var jsx_dev_runtime49 = __toESM(require_jsx_dev_runtime(), 1);
244271
244226
  setRuntime(bunRuntime);
244272
- var VERSION4 = "1.1.34";
244227
+ var VERSION4 = "1.1.35";
244273
244228
  var SYNC_START = "\x1B[?2026h";
244274
244229
  var SYNC_END = "\x1B[?2026l";
244275
244230
  function enableSynchronizedOutput() {
@@ -244409,4 +244364,4 @@ export {
244409
244364
  main
244410
244365
  };
244411
244366
 
244412
- //# debugId=0D8DB1259CF9BFA064756E2164756E21
244367
+ //# debugId=1DCCE87965897B7764756E2164756E21