@hasna/assistants 1.1.44 → 1.1.46
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 +70 -78
- 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.46";
|
|
87227
87227
|
var init_builtin = __esm(async () => {
|
|
87228
87228
|
init_src2();
|
|
87229
87229
|
init_store();
|
|
@@ -234280,7 +234280,7 @@ var import_react39 = __toESM(require_react2(), 1);
|
|
|
234280
234280
|
init_source();
|
|
234281
234281
|
await init_build2();
|
|
234282
234282
|
var jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
234283
|
-
function Markdown({ content, preRendered = false }) {
|
|
234283
|
+
function Markdown({ content, preRendered = false, indent = 0 }) {
|
|
234284
234284
|
if (preRendered) {
|
|
234285
234285
|
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text3, {
|
|
234286
234286
|
wrap: "wrap",
|
|
@@ -234288,13 +234288,14 @@ function Markdown({ content, preRendered = false }) {
|
|
|
234288
234288
|
}, undefined, false, undefined, this);
|
|
234289
234289
|
}
|
|
234290
234290
|
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(MarkdownParsed, {
|
|
234291
|
-
content
|
|
234291
|
+
content,
|
|
234292
|
+
indent
|
|
234292
234293
|
}, undefined, false, undefined, this);
|
|
234293
234294
|
}
|
|
234294
|
-
function MarkdownParsed({ content }) {
|
|
234295
|
+
function MarkdownParsed({ content, indent = 0 }) {
|
|
234295
234296
|
const { stdout } = use_stdout_default();
|
|
234296
234297
|
const columns = stdout?.columns ?? 80;
|
|
234297
|
-
const maxWidth = Math.max(20, columns - 2);
|
|
234298
|
+
const maxWidth = Math.max(20, columns - 2 - indent);
|
|
234298
234299
|
const rendered = parseMarkdown(content, { maxWidth });
|
|
234299
234300
|
const wrapped = wrapRenderedMarkdown(rendered, maxWidth);
|
|
234300
234301
|
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text3, {
|
|
@@ -235842,7 +235843,8 @@ function Messages5({
|
|
|
235842
235843
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
235843
235844
|
flexGrow: 1,
|
|
235844
235845
|
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Markdown, {
|
|
235845
|
-
content: entry.content
|
|
235846
|
+
content: entry.content,
|
|
235847
|
+
indent: 3
|
|
235846
235848
|
}, undefined, false, undefined, this)
|
|
235847
235849
|
}, undefined, false, undefined, this)
|
|
235848
235850
|
]
|
|
@@ -235867,7 +235869,8 @@ function Messages5({
|
|
|
235867
235869
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
235868
235870
|
flexGrow: 1,
|
|
235869
235871
|
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Markdown, {
|
|
235870
|
-
content: currentResponse ?? ""
|
|
235872
|
+
content: currentResponse ?? "",
|
|
235873
|
+
indent: 3
|
|
235871
235874
|
}, undefined, false, undefined, this)
|
|
235872
235875
|
}, undefined, false, undefined, this)
|
|
235873
235876
|
]
|
|
@@ -235987,7 +235990,8 @@ function MessageBubble({ message, queuedMessageIds, verboseTools }) {
|
|
|
235987
235990
|
flexGrow: 1,
|
|
235988
235991
|
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Markdown, {
|
|
235989
235992
|
content: message.content,
|
|
235990
|
-
preRendered: Boolean(message.__rendered)
|
|
235993
|
+
preRendered: Boolean(message.__rendered),
|
|
235994
|
+
indent: 3
|
|
235991
235995
|
}, undefined, false, undefined, this)
|
|
235992
235996
|
}, undefined, false, undefined, this)
|
|
235993
235997
|
]
|
|
@@ -236063,6 +236067,9 @@ function ActiveToolsPanel({ activityLog, now: now2, verboseTools }) {
|
|
|
236063
236067
|
" "
|
|
236064
236068
|
]
|
|
236065
236069
|
}, undefined, true, undefined, this),
|
|
236070
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236071
|
+
children: " "
|
|
236072
|
+
}, undefined, false, undefined, this),
|
|
236066
236073
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236067
236074
|
children: [
|
|
236068
236075
|
summary,
|
|
@@ -236139,6 +236146,9 @@ function ActiveToolsPanel({ activityLog, now: now2, verboseTools }) {
|
|
|
236139
236146
|
" "
|
|
236140
236147
|
]
|
|
236141
236148
|
}, undefined, true, undefined, this),
|
|
236149
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236150
|
+
children: " "
|
|
236151
|
+
}, undefined, false, undefined, this),
|
|
236142
236152
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236143
236153
|
color: iconColor,
|
|
236144
236154
|
bold: true,
|
|
@@ -236157,22 +236167,22 @@ function ActiveToolsPanel({ activityLog, now: now2, verboseTools }) {
|
|
|
236157
236167
|
]
|
|
236158
236168
|
}, undefined, true, undefined, this),
|
|
236159
236169
|
params.length > 0 && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
236160
|
-
marginLeft:
|
|
236170
|
+
marginLeft: 2,
|
|
236161
236171
|
flexDirection: "column",
|
|
236162
236172
|
children: params.map((param, i5) => /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236163
236173
|
dimColor: true,
|
|
236164
236174
|
children: [
|
|
236165
|
-
i5 === 0 ? "\u2514
|
|
236175
|
+
i5 === 0 ? "\u2514 " : " ",
|
|
236166
236176
|
param
|
|
236167
236177
|
]
|
|
236168
236178
|
}, i5, true, undefined, this))
|
|
236169
236179
|
}, undefined, false, undefined, this),
|
|
236170
236180
|
call.result && (call.toolCall.name !== "display_image" || call.result.isError) && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
236171
|
-
marginLeft:
|
|
236181
|
+
marginLeft: 2,
|
|
236172
236182
|
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236173
236183
|
dimColor: true,
|
|
236174
236184
|
children: [
|
|
236175
|
-
"\u2514
|
|
236185
|
+
"\u2514 ",
|
|
236176
236186
|
truncateToolResult(call.result, 2, 200, { verbose: verboseTools })
|
|
236177
236187
|
]
|
|
236178
236188
|
}, undefined, true, undefined, this)
|
|
@@ -236250,6 +236260,9 @@ function ToolCallPanel({
|
|
|
236250
236260
|
" "
|
|
236251
236261
|
]
|
|
236252
236262
|
}, undefined, true, undefined, this),
|
|
236263
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236264
|
+
children: " "
|
|
236265
|
+
}, undefined, false, undefined, this),
|
|
236253
236266
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236254
236267
|
children: [
|
|
236255
236268
|
summary,
|
|
@@ -236290,6 +236303,9 @@ function ToolCallPanel({
|
|
|
236290
236303
|
" "
|
|
236291
236304
|
]
|
|
236292
236305
|
}, undefined, true, undefined, this),
|
|
236306
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236307
|
+
children: " "
|
|
236308
|
+
}, undefined, false, undefined, this),
|
|
236293
236309
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236294
236310
|
color: iconColor,
|
|
236295
236311
|
bold: true,
|
|
@@ -236323,6 +236339,9 @@ function ToolCallPanel({
|
|
|
236323
236339
|
" "
|
|
236324
236340
|
]
|
|
236325
236341
|
}, undefined, true, undefined, this),
|
|
236342
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236343
|
+
children: " "
|
|
236344
|
+
}, undefined, false, undefined, this),
|
|
236326
236345
|
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236327
236346
|
color: iconColor,
|
|
236328
236347
|
bold: true,
|
|
@@ -236334,31 +236353,31 @@ function ToolCallPanel({
|
|
|
236334
236353
|
]
|
|
236335
236354
|
}, undefined, true, undefined, this),
|
|
236336
236355
|
params.length > 0 && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
236337
|
-
marginLeft:
|
|
236356
|
+
marginLeft: 2,
|
|
236338
236357
|
flexDirection: "column",
|
|
236339
236358
|
children: params.map((param, i5) => /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236340
236359
|
dimColor: true,
|
|
236341
236360
|
children: [
|
|
236342
|
-
i5 === 0 ? "\u2514
|
|
236361
|
+
i5 === 0 ? "\u2514 " : " ",
|
|
236343
236362
|
param
|
|
236344
236363
|
]
|
|
236345
236364
|
}, i5, true, undefined, this))
|
|
236346
236365
|
}, undefined, false, undefined, this),
|
|
236347
236366
|
result && resultText && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
236348
|
-
marginLeft:
|
|
236367
|
+
marginLeft: 2,
|
|
236349
236368
|
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236350
236369
|
dimColor: true,
|
|
236351
236370
|
children: [
|
|
236352
|
-
"\u2514
|
|
236353
|
-
indentMultiline(resultText, "
|
|
236371
|
+
"\u2514 ",
|
|
236372
|
+
indentMultiline(resultText, " ")
|
|
236354
236373
|
]
|
|
236355
236374
|
}, undefined, true, undefined, this)
|
|
236356
236375
|
}, undefined, false, undefined, this),
|
|
236357
236376
|
showExpandHint && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
|
|
236358
|
-
marginLeft:
|
|
236377
|
+
marginLeft: 2,
|
|
236359
236378
|
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
|
|
236360
236379
|
dimColor: true,
|
|
236361
|
-
children: "
|
|
236380
|
+
children: " (Ctrl+O for full output)"
|
|
236362
236381
|
}, undefined, false, undefined, this)
|
|
236363
236382
|
}, undefined, false, undefined, this)
|
|
236364
236383
|
]
|
|
@@ -247293,70 +247312,48 @@ function ChannelsPanel({ manager, onClose, activePersonId, activePersonName, act
|
|
|
247293
247312
|
children: [
|
|
247294
247313
|
header,
|
|
247295
247314
|
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
247315
|
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247320
247316
|
flexDirection: "column",
|
|
247321
247317
|
paddingX: 1,
|
|
247322
|
-
marginBottom: 1,
|
|
247323
247318
|
children: messages2.length === 0 ? /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247324
247319
|
color: "gray",
|
|
247325
247320
|
children: "No messages yet. Be the first to say something!"
|
|
247326
247321
|
}, undefined, false, undefined, this) : messages2.slice(-20).map((msg) => /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247327
|
-
|
|
247328
|
-
marginBottom: 1,
|
|
247322
|
+
marginBottom: 0,
|
|
247329
247323
|
children: [
|
|
247330
|
-
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(
|
|
247324
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247325
|
+
color: getAssistantColor2(msg.senderName),
|
|
247326
|
+
bold: true,
|
|
247327
|
+
children: msg.senderName
|
|
247328
|
+
}, undefined, false, undefined, this),
|
|
247329
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247330
|
+
color: "gray",
|
|
247331
247331
|
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)
|
|
247332
|
+
" ",
|
|
247333
|
+
formatRelativeTime5(msg.createdAt),
|
|
247334
|
+
" "
|
|
247349
247335
|
]
|
|
247350
247336
|
}, 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)
|
|
247337
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247338
|
+
children: msg.content
|
|
247356
247339
|
}, undefined, false, undefined, this)
|
|
247357
247340
|
]
|
|
247358
247341
|
}, msg.id, true, undefined, this))
|
|
247359
247342
|
}, undefined, false, undefined, this),
|
|
247343
|
+
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247344
|
+
justifyContent: "flex-end",
|
|
247345
|
+
marginTop: 1,
|
|
247346
|
+
children: /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247347
|
+
backgroundColor: SLACK_COLOR,
|
|
247348
|
+
color: "white",
|
|
247349
|
+
bold: true,
|
|
247350
|
+
children: [
|
|
247351
|
+
" #",
|
|
247352
|
+
selectedChannel.name,
|
|
247353
|
+
" "
|
|
247354
|
+
]
|
|
247355
|
+
}, undefined, true, undefined, this)
|
|
247356
|
+
}, undefined, false, undefined, this),
|
|
247360
247357
|
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
|
|
247361
247358
|
paddingX: 1,
|
|
247362
247359
|
borderStyle: "round",
|
|
@@ -247498,15 +247495,10 @@ function ChannelsPanel({ manager, onClose, activePersonId, activePersonName, act
|
|
|
247498
247495
|
children: " "
|
|
247499
247496
|
}, undefined, false, undefined, this),
|
|
247500
247497
|
/* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247501
|
-
|
|
247502
|
-
color: "white",
|
|
247498
|
+
color: getAssistantColor2(m5.assistantName),
|
|
247503
247499
|
bold: true,
|
|
247504
|
-
children:
|
|
247505
|
-
|
|
247506
|
-
m5.assistantName,
|
|
247507
|
-
" "
|
|
247508
|
-
]
|
|
247509
|
-
}, undefined, true, undefined, this),
|
|
247500
|
+
children: m5.assistantName
|
|
247501
|
+
}, undefined, false, undefined, this),
|
|
247510
247502
|
m5.role === "owner" && /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
|
|
247511
247503
|
color: "yellow",
|
|
247512
247504
|
children: " (owner)"
|
|
@@ -268086,7 +268078,7 @@ Interactive Mode:
|
|
|
268086
268078
|
// packages/terminal/src/index.tsx
|
|
268087
268079
|
var jsx_dev_runtime51 = __toESM(require_jsx_dev_runtime(), 1);
|
|
268088
268080
|
setRuntime(bunRuntime);
|
|
268089
|
-
var VERSION4 = "1.1.
|
|
268081
|
+
var VERSION4 = "1.1.46";
|
|
268090
268082
|
var SYNC_START = "\x1B[?2026h";
|
|
268091
268083
|
var SYNC_END = "\x1B[?2026l";
|
|
268092
268084
|
function enableSynchronizedOutput() {
|
|
@@ -268205,4 +268197,4 @@ export {
|
|
|
268205
268197
|
main
|
|
268206
268198
|
};
|
|
268207
268199
|
|
|
268208
|
-
//# debugId=
|
|
268200
|
+
//# debugId=C70AF0E9056DF44864756E2164756E21
|