@hasna/assistants 1.1.43 → 1.1.45
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 +40 -61
- package/dist/index.js.map +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -87223,7 +87223,7 @@ Not a git repository or git not available.
|
|
|
87223
87223
|
context.setProjectContext(projectContext);
|
|
87224
87224
|
}
|
|
87225
87225
|
}
|
|
87226
|
-
var VERSION2 = "1.1.
|
|
87226
|
+
var VERSION2 = "1.1.45";
|
|
87227
87227
|
var init_builtin = __esm(async () => {
|
|
87228
87228
|
init_src2();
|
|
87229
87229
|
init_store();
|
|
@@ -234214,7 +234214,7 @@ var Input = import_react28.default.forwardRef(function Input2({
|
|
|
234214
234214
|
color: actualIndex === selectedIndex ? "cyan" : undefined,
|
|
234215
234215
|
children: [
|
|
234216
234216
|
actualIndex === selectedIndex ? "\u25B8 " : " ",
|
|
234217
|
-
cmd.name.padEnd(
|
|
234217
|
+
cmd.name.padEnd(18)
|
|
234218
234218
|
]
|
|
234219
234219
|
}, undefined, true, undefined, this),
|
|
234220
234220
|
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Text3, {
|
|
@@ -247293,70 +247293,48 @@ function ChannelsPanel({ manager, onClose, activePersonId, activePersonName, act
|
|
|
247293
247293
|
children: [
|
|
247294
247294
|
header,
|
|
247295
247295
|
statusBar,
|
|
247296
|
-
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247297
|
-
paddingX: 1,
|
|
247298
|
-
marginBottom: 1,
|
|
247299
|
-
children: [
|
|
247300
|
-
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247301
|
-
backgroundColor: SLACK_COLOR,
|
|
247302
|
-
color: "white",
|
|
247303
|
-
bold: true,
|
|
247304
|
-
children: [
|
|
247305
|
-
" #",
|
|
247306
|
-
selectedChannel.name,
|
|
247307
|
-
" "
|
|
247308
|
-
]
|
|
247309
|
-
}, undefined, true, undefined, this),
|
|
247310
|
-
selectedChannel.description && /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247311
|
-
color: "gray",
|
|
247312
|
-
children: [
|
|
247313
|
-
" \u2014 ",
|
|
247314
|
-
selectedChannel.description
|
|
247315
|
-
]
|
|
247316
|
-
}, undefined, true, undefined, this)
|
|
247317
|
-
]
|
|
247318
|
-
}, undefined, true, undefined, this),
|
|
247319
247296
|
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247320
247297
|
flexDirection: "column",
|
|
247321
247298
|
paddingX: 1,
|
|
247322
|
-
marginBottom: 1,
|
|
247323
247299
|
children: messages2.length === 0 ? /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247324
247300
|
color: "gray",
|
|
247325
247301
|
children: "No messages yet. Be the first to say something!"
|
|
247326
247302
|
}, undefined, false, undefined, this) : messages2.slice(-20).map((msg) => /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247327
|
-
|
|
247328
|
-
marginBottom: 1,
|
|
247303
|
+
marginBottom: 0,
|
|
247329
247304
|
children: [
|
|
247330
|
-
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(
|
|
247305
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247306
|
+
color: getAssistantColor2(msg.senderName),
|
|
247307
|
+
bold: true,
|
|
247308
|
+
children: msg.senderName
|
|
247309
|
+
}, undefined, false, undefined, this),
|
|
247310
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247311
|
+
color: "gray",
|
|
247331
247312
|
children: [
|
|
247332
|
-
|
|
247333
|
-
|
|
247334
|
-
|
|
247335
|
-
bold: true,
|
|
247336
|
-
children: [
|
|
247337
|
-
" ",
|
|
247338
|
-
msg.senderName,
|
|
247339
|
-
" "
|
|
247340
|
-
]
|
|
247341
|
-
}, undefined, true, undefined, this),
|
|
247342
|
-
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247343
|
-
color: "gray",
|
|
247344
|
-
children: [
|
|
247345
|
-
" ",
|
|
247346
|
-
formatRelativeTime5(msg.createdAt)
|
|
247347
|
-
]
|
|
247348
|
-
}, undefined, true, undefined, this)
|
|
247313
|
+
" ",
|
|
247314
|
+
formatRelativeTime5(msg.createdAt),
|
|
247315
|
+
" "
|
|
247349
247316
|
]
|
|
247350
247317
|
}, undefined, true, undefined, this),
|
|
247351
|
-
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(
|
|
247352
|
-
|
|
247353
|
-
children: /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Markdown, {
|
|
247354
|
-
content: msg.content
|
|
247355
|
-
}, undefined, false, undefined, this)
|
|
247318
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247319
|
+
children: msg.content
|
|
247356
247320
|
}, undefined, false, undefined, this)
|
|
247357
247321
|
]
|
|
247358
247322
|
}, msg.id, true, undefined, this))
|
|
247359
247323
|
}, undefined, false, undefined, this),
|
|
247324
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247325
|
+
justifyContent: "flex-end",
|
|
247326
|
+
marginTop: 1,
|
|
247327
|
+
children: /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247328
|
+
backgroundColor: SLACK_COLOR,
|
|
247329
|
+
color: "white",
|
|
247330
|
+
bold: true,
|
|
247331
|
+
children: [
|
|
247332
|
+
" #",
|
|
247333
|
+
selectedChannel.name,
|
|
247334
|
+
" "
|
|
247335
|
+
]
|
|
247336
|
+
}, undefined, true, undefined, this)
|
|
247337
|
+
}, undefined, false, undefined, this),
|
|
247360
247338
|
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247361
247339
|
paddingX: 1,
|
|
247362
247340
|
borderStyle: "round",
|
|
@@ -247498,15 +247476,10 @@ function ChannelsPanel({ manager, onClose, activePersonId, activePersonName, act
|
|
|
247498
247476
|
children: " "
|
|
247499
247477
|
}, undefined, false, undefined, this),
|
|
247500
247478
|
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247501
|
-
|
|
247502
|
-
color: "white",
|
|
247479
|
+
color: getAssistantColor2(m5.assistantName),
|
|
247503
247480
|
bold: true,
|
|
247504
|
-
children:
|
|
247505
|
-
|
|
247506
|
-
m5.assistantName,
|
|
247507
|
-
" "
|
|
247508
|
-
]
|
|
247509
|
-
}, undefined, true, undefined, this),
|
|
247481
|
+
children: m5.assistantName
|
|
247482
|
+
}, undefined, false, undefined, this),
|
|
247510
247483
|
m5.role === "owner" && /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247511
247484
|
color: "yellow",
|
|
247512
247485
|
children: " (owner)"
|
|
@@ -264500,6 +264473,10 @@ function App2({ cwd: cwd2, version: version4 }) {
|
|
|
264500
264473
|
resetTurnState();
|
|
264501
264474
|
}
|
|
264502
264475
|
});
|
|
264476
|
+
if (active) {
|
|
264477
|
+
setInlinePending((prev) => prev.filter((msg) => msg.sessionId !== active.id));
|
|
264478
|
+
pendingSendsRef.current = pendingSendsRef.current.filter((entry) => entry.sessionId !== active.id);
|
|
264479
|
+
}
|
|
264503
264480
|
setQueueFlushTrigger((prev) => prev + 1);
|
|
264504
264481
|
const activeSession2 = registry2.getActiveSession();
|
|
264505
264482
|
if (activeSession2) {
|
|
@@ -264520,6 +264497,8 @@ function App2({ cwd: cwd2, version: version4 }) {
|
|
|
264520
264497
|
const active = registryRef.current.getActiveSession();
|
|
264521
264498
|
if (active) {
|
|
264522
264499
|
registryRef.current.setProcessing(active.id, false);
|
|
264500
|
+
setInlinePending((prev) => prev.filter((msg) => msg.sessionId !== active.id));
|
|
264501
|
+
pendingSendsRef.current = pendingSendsRef.current.filter((entry) => entry.sessionId !== active.id);
|
|
264523
264502
|
}
|
|
264524
264503
|
resetTurnState();
|
|
264525
264504
|
}
|
|
@@ -268080,7 +268059,7 @@ Interactive Mode:
|
|
|
268080
268059
|
// packages/terminal/src/index.tsx
|
|
268081
268060
|
var jsx_dev_runtime51 = __toESM(require_jsx_dev_runtime(), 1);
|
|
268082
268061
|
setRuntime(bunRuntime);
|
|
268083
|
-
var VERSION4 = "1.1.
|
|
268062
|
+
var VERSION4 = "1.1.45";
|
|
268084
268063
|
var SYNC_START = "\x1B[?2026h";
|
|
268085
268064
|
var SYNC_END = "\x1B[?2026l";
|
|
268086
268065
|
function enableSynchronizedOutput() {
|
|
@@ -268199,4 +268178,4 @@ export {
|
|
|
268199
268178
|
main
|
|
268200
268179
|
};
|
|
268201
268180
|
|
|
268202
|
-
//# debugId=
|
|
268181
|
+
//# debugId=F465CAD7F4EF556664756E2164756E21
|