@hasna/assistants 1.1.33 → 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 +43 -94
- 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.35";
|
|
87180
87180
|
var init_builtin = __esm(async () => {
|
|
87181
87181
|
init_src2();
|
|
87182
87182
|
init_store();
|
|
@@ -211424,7 +211424,7 @@ var Input = import_react28.default.forwardRef(function Input2({
|
|
|
211424
211424
|
marginBottom: 0,
|
|
211425
211425
|
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211426
211426
|
backgroundColor: getAssistantColor(assistantName),
|
|
211427
|
-
color: "
|
|
211427
|
+
color: "whiteBright",
|
|
211428
211428
|
bold: true,
|
|
211429
211429
|
children: [
|
|
211430
211430
|
" ",
|
|
@@ -211580,8 +211580,6 @@ var Input = import_react28.default.forwardRef(function Input2({
|
|
|
211580
211580
|
}, undefined, false, undefined, this),
|
|
211581
211581
|
autocompleteMode === "skill" && filteredSkills.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211582
211582
|
flexDirection: "column",
|
|
211583
|
-
marginTop: 1,
|
|
211584
|
-
marginLeft: 2,
|
|
211585
211583
|
children: [
|
|
211586
211584
|
visibleSkills.startIndex > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211587
211585
|
dimColor: true,
|
|
@@ -211621,8 +211619,6 @@ var Input = import_react28.default.forwardRef(function Input2({
|
|
|
211621
211619
|
}, undefined, true, undefined, this),
|
|
211622
211620
|
autocompleteMode === "command" && filteredCommands.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211623
211621
|
flexDirection: "column",
|
|
211624
|
-
marginTop: 1,
|
|
211625
|
-
marginLeft: 2,
|
|
211626
211622
|
children: [
|
|
211627
211623
|
visibleCommands.startIndex > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211628
211624
|
dimColor: true,
|
|
@@ -211662,8 +211658,6 @@ var Input = import_react28.default.forwardRef(function Input2({
|
|
|
211662
211658
|
}, undefined, true, undefined, this),
|
|
211663
211659
|
autocompleteMode === "file" && filteredFiles.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
|
|
211664
211660
|
flexDirection: "column",
|
|
211665
|
-
marginTop: 1,
|
|
211666
|
-
marginLeft: 2,
|
|
211667
211661
|
children: [
|
|
211668
211662
|
visibleFiles.startIndex > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
211669
211663
|
dimColor: true,
|
|
@@ -214117,6 +214111,7 @@ function buildDisplayMessages(messages2, chunkLines, wrapChars, options) {
|
|
|
214117
214111
|
|
|
214118
214112
|
// packages/terminal/src/components/Status.tsx
|
|
214119
214113
|
var import_react30 = __toESM(require_react2(), 1);
|
|
214114
|
+
import { basename as basename7 } from "path";
|
|
214120
214115
|
var jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
|
|
214121
214116
|
function Status({
|
|
214122
214117
|
isProcessing,
|
|
@@ -214186,6 +214181,7 @@ function Status({
|
|
|
214186
214181
|
const interval = setInterval(update, 1000);
|
|
214187
214182
|
return () => clearInterval(interval);
|
|
214188
214183
|
}, [heartbeatState?.enabled, heartbeatState?.nextHeartbeatAt, heartbeatState?.lastActivity, heartbeatState?.intervalMs]);
|
|
214184
|
+
const folderName = basename7(cwd2);
|
|
214189
214185
|
let contextInfo = "";
|
|
214190
214186
|
if (tokenUsage && tokenUsage.maxContextTokens > 0) {
|
|
214191
214187
|
const rawPercent = Math.round(tokenUsage.totalTokens / tokenUsage.maxContextTokens * 100);
|
|
@@ -214195,10 +214191,10 @@ function Status({
|
|
|
214195
214191
|
const sessionInfo = sessionCount && sessionCount > 1 && sessionIndex !== undefined ? `${sessionIndex + 1}/${sessionCount}` : "";
|
|
214196
214192
|
const bgIndicator = backgroundProcessingCount > 0 ? ` +${backgroundProcessingCount}` : "";
|
|
214197
214193
|
const energyInfo = energyState ? `${Math.round(energyState.current / energyState.max * 100)}%` : "";
|
|
214198
|
-
const
|
|
214199
|
-
const
|
|
214200
|
-
const heartbeatDisplay =
|
|
214201
|
-
const queueInfo = queueLength > 0 ? `${queueLength}
|
|
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` : "";
|
|
214202
214198
|
const verboseLabel = verboseTools ? "verbose" : "";
|
|
214203
214199
|
const recentToolsSummary = import_react30.useMemo(() => {
|
|
214204
214200
|
if (recentTools.length === 0)
|
|
@@ -214217,98 +214213,51 @@ function Status({
|
|
|
214217
214213
|
for (const [name2, { count, failed, running }] of counts) {
|
|
214218
214214
|
let part = name2;
|
|
214219
214215
|
if (count > 1)
|
|
214220
|
-
part +=
|
|
214216
|
+
part += `x${count}`;
|
|
214221
214217
|
if (failed > 0)
|
|
214222
214218
|
part += "!";
|
|
214223
214219
|
if (running > 0)
|
|
214224
|
-
part += "
|
|
214220
|
+
part += "..";
|
|
214225
214221
|
parts.push(part);
|
|
214226
214222
|
}
|
|
214227
214223
|
return parts.slice(0, 4).join(" ");
|
|
214228
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);
|
|
214229
214250
|
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
214230
|
-
marginTop: 1,
|
|
214231
214251
|
justifyContent: "space-between",
|
|
214232
214252
|
children: [
|
|
214233
214253
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214234
214254
|
dimColor: true,
|
|
214235
|
-
children:
|
|
214236
|
-
|
|
214237
|
-
|
|
214238
|
-
|
|
214239
|
-
|
|
214240
|
-
}, undefined,
|
|
214241
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
214242
|
-
children: [
|
|
214243
|
-
heartbeatDisplay && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214244
|
-
dimColor: true,
|
|
214245
|
-
children: [
|
|
214246
|
-
heartbeatDisplay,
|
|
214247
|
-
" "
|
|
214248
|
-
]
|
|
214249
|
-
}, undefined, true, undefined, this),
|
|
214250
|
-
voiceIcon && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214251
|
-
dimColor: true,
|
|
214252
|
-
children: [
|
|
214253
|
-
voiceIcon,
|
|
214254
|
-
" "
|
|
214255
|
-
]
|
|
214256
|
-
}, undefined, true, undefined, this),
|
|
214257
|
-
isProcessing && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214258
|
-
dimColor: true,
|
|
214259
|
-
children: "esc \xB7 "
|
|
214260
|
-
}, undefined, false, undefined, this),
|
|
214261
|
-
sessionInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214262
|
-
dimColor: true,
|
|
214263
|
-
children: [
|
|
214264
|
-
sessionInfo,
|
|
214265
|
-
bgIndicator,
|
|
214266
|
-
" \xB7 "
|
|
214267
|
-
]
|
|
214268
|
-
}, undefined, true, undefined, this),
|
|
214269
|
-
energyInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214270
|
-
dimColor: true,
|
|
214271
|
-
children: [
|
|
214272
|
-
"\u26A1",
|
|
214273
|
-
energyInfo,
|
|
214274
|
-
" \xB7 "
|
|
214275
|
-
]
|
|
214276
|
-
}, undefined, true, undefined, this),
|
|
214277
|
-
contextInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214278
|
-
dimColor: true,
|
|
214279
|
-
children: contextInfo
|
|
214280
|
-
}, undefined, false, undefined, this),
|
|
214281
|
-
isProcessing && processingStartTime && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214282
|
-
dimColor: true,
|
|
214283
|
-
children: [
|
|
214284
|
-
" \xB7 ",
|
|
214285
|
-
formatDuration4(elapsed)
|
|
214286
|
-
]
|
|
214287
|
-
}, undefined, true, undefined, this),
|
|
214288
|
-
verboseLabel && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214289
|
-
dimColor: true,
|
|
214290
|
-
children: [
|
|
214291
|
-
contextInfo || isProcessing && processingStartTime || sessionInfo ? " \xB7 " : "",
|
|
214292
|
-
verboseLabel
|
|
214293
|
-
]
|
|
214294
|
-
}, undefined, true, undefined, this),
|
|
214295
|
-
queueInfo && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214296
|
-
dimColor: true,
|
|
214297
|
-
children: [
|
|
214298
|
-
contextInfo || isProcessing && processingStartTime || sessionInfo || verboseLabel ? " \xB7 " : "",
|
|
214299
|
-
queueInfo
|
|
214300
|
-
]
|
|
214301
|
-
}, undefined, true, undefined, this),
|
|
214302
|
-
recentToolsSummary && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
214303
|
-
dimColor: true,
|
|
214304
|
-
children: [
|
|
214305
|
-
contextInfo || isProcessing && processingStartTime || sessionInfo || verboseLabel || queueInfo ? " \xB7 " : "",
|
|
214306
|
-
"\uD83D\uDD27 ",
|
|
214307
|
-
recentToolsSummary
|
|
214308
|
-
]
|
|
214309
|
-
}, undefined, true, undefined, this)
|
|
214310
|
-
]
|
|
214311
|
-
}, 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)
|
|
214312
214261
|
]
|
|
214313
214262
|
}, undefined, true, undefined, this);
|
|
214314
214263
|
}
|
|
@@ -244275,7 +244224,7 @@ Interactive Mode:
|
|
|
244275
244224
|
// packages/terminal/src/index.tsx
|
|
244276
244225
|
var jsx_dev_runtime49 = __toESM(require_jsx_dev_runtime(), 1);
|
|
244277
244226
|
setRuntime(bunRuntime);
|
|
244278
|
-
var VERSION4 = "1.1.
|
|
244227
|
+
var VERSION4 = "1.1.35";
|
|
244279
244228
|
var SYNC_START = "\x1B[?2026h";
|
|
244280
244229
|
var SYNC_END = "\x1B[?2026l";
|
|
244281
244230
|
function enableSynchronizedOutput() {
|
|
@@ -244415,4 +244364,4 @@ export {
|
|
|
244415
244364
|
main
|
|
244416
244365
|
};
|
|
244417
244366
|
|
|
244418
|
-
//# debugId=
|
|
244367
|
+
//# debugId=1DCCE87965897B7764756E2164756E21
|