@streamoid/agent 0.6.24 → 0.6.26

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.d.ts CHANGED
@@ -226,3 +226,36 @@ export interface StartConversationInput {
226
226
  export declare function startConversation(
227
227
  input: StartConversationInput,
228
228
  ): Promise<string | null>;
229
+
230
+ /** Payload for {@link enqueueChatPrompt}. */
231
+ export interface ChatPromptPayload {
232
+ /** The message to send. `text` is accepted as an alias. Trimmed; empty is
233
+ * ignored and the call returns `false`. */
234
+ prompt?: string;
235
+ text?: string;
236
+ /** Start a fresh thread rather than appending to whatever is open. */
237
+ forceNewConversation?: boolean;
238
+ }
239
+
240
+ /**
241
+ * Hand the chat a message WITHOUT waiting for the network, and return at once.
242
+ *
243
+ * The counterpart to {@link startConversation}, and the better choice when a
244
+ * host is about to show the panel. `startConversation` POSTs the message and
245
+ * resolves with the conversation id, so a host that opens the chat on its
246
+ * result shows nothing until the round trip finishes — two to three seconds of
247
+ * a spinner over a dialog that is already finished with. None of that wait is
248
+ * necessary: the conversation id is generated client-side.
249
+ *
250
+ * This queues the prompt and the chat sends it through its OWN path, so the
251
+ * message and the working indicator render in the frame the panel opens in.
252
+ * The queue survives until the chat mounts, so a host may enqueue before
253
+ * revealing the panel or after; the order does not matter.
254
+ *
255
+ * Returns `false` when the prompt is empty after trimming, `true` otherwise.
256
+ * A send that fails afterwards surfaces in the chat, where the user is by then
257
+ * looking, rather than as a rejected promise here.
258
+ */
259
+ export declare function enqueueChatPrompt(
260
+ payload: ChatPromptPayload | string,
261
+ ): boolean;
package/dist/index.js CHANGED
@@ -133695,7 +133695,7 @@ function MoreBriefsBrowser({
133695
133695
  {
133696
133696
  text: "Edit",
133697
133697
  variant: "default",
133698
- icon: /* @__PURE__ */ jsx(SiconPencil, { className: "size-4", style: { color: "var(--alias-text-and-icons-primary)" } }),
133698
+ icon: /* @__PURE__ */ jsx(SiconPencil, { className: "size-4", style: { color: "var(--alias-text---icons-primary, var(--alias-text-and-icons-primary))" } }),
133699
133699
  onClick: () => kt(an)
133700
133700
  }
133701
133701
  ),
@@ -133704,7 +133704,7 @@ function MoreBriefsBrowser({
133704
133704
  {
133705
133705
  text: "Delete",
133706
133706
  variant: "error",
133707
- icon: /* @__PURE__ */ jsx(SiconTrash2, { className: "size-4", style: { color: "var(--alias-text-and-icons-error)" } }),
133707
+ icon: /* @__PURE__ */ jsx(SiconTrash2, { className: "size-4", style: { color: "var(--alias-text---icons-error, var(--alias-text-and-icons-error))" } }),
133708
133708
  onClick: () => Ke(an.quick_prompt_id)
133709
133709
  }
133710
133710
  )