@hasna/assistants 1.1.45 → 1.1.47

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
@@ -79359,18 +79359,34 @@ To update fields, use the web UI or edit the identity file directly.
79359
79359
  handler: async (_args, context) => {
79360
79360
  const assistant = context.getAssistantManager?.()?.getActive();
79361
79361
  const identity = context.getIdentityManager?.()?.getActive();
79362
- if (!assistant || !identity) {
79362
+ const model = context.getModel?.();
79363
+ if (!assistant && !identity) {
79363
79364
  context.emit("text", `No active assistant or identity.
79364
79365
  `);
79366
+ if (model) {
79367
+ context.emit("text", `Model: ${model}
79368
+ `);
79369
+ }
79365
79370
  context.emit("done");
79366
79371
  return { handled: true };
79367
79372
  }
79368
- context.emit("text", `Assistant: ${assistant.name}
79373
+ if (assistant) {
79374
+ context.emit("text", `Assistant: ${assistant.name}
79375
+ `);
79376
+ }
79377
+ if (identity) {
79378
+ context.emit("text", `Identity: ${identity.name}
79379
+ `);
79380
+ context.emit("text", `Display name: ${identity.profile.displayName || identity.name}
79369
79381
  `);
79370
- context.emit("text", `Identity: ${identity.name}
79382
+ } else if (assistant) {
79383
+ context.emit("text", `Identity: (not configured)
79371
79384
  `);
79372
- context.emit("text", `Display name: ${identity.profile.displayName}
79385
+ }
79386
+ if (model) {
79387
+ context.emit("text", `Model: ${model}
79373
79388
  `);
79389
+ }
79374
79390
  context.emit("done");
79375
79391
  return { handled: true };
79376
79392
  }
@@ -87223,7 +87239,7 @@ Not a git repository or git not available.
87223
87239
  context.setProjectContext(projectContext);
87224
87240
  }
87225
87241
  }
87226
- var VERSION2 = "1.1.45";
87242
+ var VERSION2 = "1.1.47";
87227
87243
  var init_builtin = __esm(async () => {
87228
87244
  init_src2();
87229
87245
  init_store();
@@ -233999,7 +234015,7 @@ var Input = import_react28.default.forwardRef(function Input2({
233999
234015
  `).length;
234000
234016
  return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
234001
234017
  flexDirection: "column",
234002
- marginTop: 1,
234018
+ marginTop: 0,
234003
234019
  children: [
234004
234020
  assistantName && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Box_default, {
234005
234021
  justifyContent: "flex-end",
@@ -234280,7 +234296,7 @@ var import_react39 = __toESM(require_react2(), 1);
234280
234296
  init_source();
234281
234297
  await init_build2();
234282
234298
  var jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
234283
- function Markdown({ content, preRendered = false }) {
234299
+ function Markdown({ content, preRendered = false, indent = 0 }) {
234284
234300
  if (preRendered) {
234285
234301
  return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text3, {
234286
234302
  wrap: "wrap",
@@ -234288,13 +234304,14 @@ function Markdown({ content, preRendered = false }) {
234288
234304
  }, undefined, false, undefined, this);
234289
234305
  }
234290
234306
  return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(MarkdownParsed, {
234291
- content
234307
+ content,
234308
+ indent
234292
234309
  }, undefined, false, undefined, this);
234293
234310
  }
234294
- function MarkdownParsed({ content }) {
234311
+ function MarkdownParsed({ content, indent = 0 }) {
234295
234312
  const { stdout } = use_stdout_default();
234296
234313
  const columns = stdout?.columns ?? 80;
234297
- const maxWidth = Math.max(20, columns - 2);
234314
+ const maxWidth = Math.max(20, columns - 2 - indent);
234298
234315
  const rendered = parseMarkdown(content, { maxWidth });
234299
234316
  const wrapped = wrapRenderedMarkdown(rendered, maxWidth);
234300
234317
  return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text3, {
@@ -235842,7 +235859,8 @@ function Messages5({
235842
235859
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
235843
235860
  flexGrow: 1,
235844
235861
  children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Markdown, {
235845
- content: entry.content
235862
+ content: entry.content,
235863
+ indent: 3
235846
235864
  }, undefined, false, undefined, this)
235847
235865
  }, undefined, false, undefined, this)
235848
235866
  ]
@@ -235867,7 +235885,8 @@ function Messages5({
235867
235885
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
235868
235886
  flexGrow: 1,
235869
235887
  children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Markdown, {
235870
- content: currentResponse ?? ""
235888
+ content: currentResponse ?? "",
235889
+ indent: 3
235871
235890
  }, undefined, false, undefined, this)
235872
235891
  }, undefined, false, undefined, this)
235873
235892
  ]
@@ -235987,7 +236006,8 @@ function MessageBubble({ message, queuedMessageIds, verboseTools }) {
235987
236006
  flexGrow: 1,
235988
236007
  children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Markdown, {
235989
236008
  content: message.content,
235990
- preRendered: Boolean(message.__rendered)
236009
+ preRendered: Boolean(message.__rendered),
236010
+ indent: 3
235991
236011
  }, undefined, false, undefined, this)
235992
236012
  }, undefined, false, undefined, this)
235993
236013
  ]
@@ -236063,6 +236083,9 @@ function ActiveToolsPanel({ activityLog, now: now2, verboseTools }) {
236063
236083
  " "
236064
236084
  ]
236065
236085
  }, undefined, true, undefined, this),
236086
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236087
+ children: " "
236088
+ }, undefined, false, undefined, this),
236066
236089
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236067
236090
  children: [
236068
236091
  summary,
@@ -236139,6 +236162,9 @@ function ActiveToolsPanel({ activityLog, now: now2, verboseTools }) {
236139
236162
  " "
236140
236163
  ]
236141
236164
  }, undefined, true, undefined, this),
236165
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236166
+ children: " "
236167
+ }, undefined, false, undefined, this),
236142
236168
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236143
236169
  color: iconColor,
236144
236170
  bold: true,
@@ -236157,22 +236183,22 @@ function ActiveToolsPanel({ activityLog, now: now2, verboseTools }) {
236157
236183
  ]
236158
236184
  }, undefined, true, undefined, this),
236159
236185
  params.length > 0 && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
236160
- marginLeft: 1,
236186
+ marginLeft: 2,
236161
236187
  flexDirection: "column",
236162
236188
  children: params.map((param, i5) => /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236163
236189
  dimColor: true,
236164
236190
  children: [
236165
- i5 === 0 ? "\u2514 " : " ",
236191
+ i5 === 0 ? "\u2514 " : " ",
236166
236192
  param
236167
236193
  ]
236168
236194
  }, i5, true, undefined, this))
236169
236195
  }, undefined, false, undefined, this),
236170
236196
  call.result && (call.toolCall.name !== "display_image" || call.result.isError) && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
236171
- marginLeft: 1,
236197
+ marginLeft: 2,
236172
236198
  children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236173
236199
  dimColor: true,
236174
236200
  children: [
236175
- "\u2514 ",
236201
+ "\u2514 ",
236176
236202
  truncateToolResult(call.result, 2, 200, { verbose: verboseTools })
236177
236203
  ]
236178
236204
  }, undefined, true, undefined, this)
@@ -236250,6 +236276,9 @@ function ToolCallPanel({
236250
236276
  " "
236251
236277
  ]
236252
236278
  }, undefined, true, undefined, this),
236279
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236280
+ children: " "
236281
+ }, undefined, false, undefined, this),
236253
236282
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236254
236283
  children: [
236255
236284
  summary,
@@ -236290,6 +236319,9 @@ function ToolCallPanel({
236290
236319
  " "
236291
236320
  ]
236292
236321
  }, undefined, true, undefined, this),
236322
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236323
+ children: " "
236324
+ }, undefined, false, undefined, this),
236293
236325
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236294
236326
  color: iconColor,
236295
236327
  bold: true,
@@ -236323,6 +236355,9 @@ function ToolCallPanel({
236323
236355
  " "
236324
236356
  ]
236325
236357
  }, undefined, true, undefined, this),
236358
+ /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236359
+ children: " "
236360
+ }, undefined, false, undefined, this),
236326
236361
  /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236327
236362
  color: iconColor,
236328
236363
  bold: true,
@@ -236334,31 +236369,31 @@ function ToolCallPanel({
236334
236369
  ]
236335
236370
  }, undefined, true, undefined, this),
236336
236371
  params.length > 0 && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
236337
- marginLeft: 1,
236372
+ marginLeft: 2,
236338
236373
  flexDirection: "column",
236339
236374
  children: params.map((param, i5) => /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236340
236375
  dimColor: true,
236341
236376
  children: [
236342
- i5 === 0 ? "\u2514 " : " ",
236377
+ i5 === 0 ? "\u2514 " : " ",
236343
236378
  param
236344
236379
  ]
236345
236380
  }, i5, true, undefined, this))
236346
236381
  }, undefined, false, undefined, this),
236347
236382
  result && resultText && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
236348
- marginLeft: 1,
236383
+ marginLeft: 2,
236349
236384
  children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236350
236385
  dimColor: true,
236351
236386
  children: [
236352
- "\u2514 ",
236353
- indentMultiline(resultText, " ")
236387
+ "\u2514 ",
236388
+ indentMultiline(resultText, " ")
236354
236389
  ]
236355
236390
  }, undefined, true, undefined, this)
236356
236391
  }, undefined, false, undefined, this),
236357
236392
  showExpandHint && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Box_default, {
236358
- marginLeft: 1,
236393
+ marginLeft: 2,
236359
236394
  children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Text3, {
236360
236395
  dimColor: true,
236361
- children: " (Ctrl+O for full output)"
236396
+ children: " (Ctrl+O for full output)"
236362
236397
  }, undefined, false, undefined, this)
236363
236398
  }, undefined, false, undefined, this)
236364
236399
  ]
@@ -237095,9 +237130,6 @@ function ProcessingIndicator({
237095
237130
  parts.push(formatTime(elapsed));
237096
237131
  parts.push(`\u2193 ${formatTokens(tokenCount)} tokens`);
237097
237132
  }
237098
- if (isThinking) {
237099
- parts.push("thinking");
237100
- }
237101
237133
  const label = loadingWord;
237102
237134
  return /* @__PURE__ */ jsx_dev_runtime7.jsxDEV(Box_default, {
237103
237135
  marginY: 1,
@@ -247323,7 +247355,7 @@ function ChannelsPanel({ manager, onClose, activePersonId, activePersonName, act
247323
247355
  }, undefined, false, undefined, this),
247324
247356
  /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Box_default, {
247325
247357
  justifyContent: "flex-end",
247326
- marginTop: 1,
247358
+ marginTop: 0,
247327
247359
  children: /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Text3, {
247328
247360
  backgroundColor: SLACK_COLOR,
247329
247361
  color: "white",
@@ -268059,7 +268091,7 @@ Interactive Mode:
268059
268091
  // packages/terminal/src/index.tsx
268060
268092
  var jsx_dev_runtime51 = __toESM(require_jsx_dev_runtime(), 1);
268061
268093
  setRuntime(bunRuntime);
268062
- var VERSION4 = "1.1.45";
268094
+ var VERSION4 = "1.1.47";
268063
268095
  var SYNC_START = "\x1B[?2026h";
268064
268096
  var SYNC_END = "\x1B[?2026l";
268065
268097
  function enableSynchronizedOutput() {
@@ -268178,4 +268210,4 @@ export {
268178
268210
  main
268179
268211
  };
268180
268212
 
268181
- //# debugId=F465CAD7F4EF556664756E2164756E21
268213
+ //# debugId=BE2A3F631A03959464756E2164756E21