@streamoid/agent 0.6.23 → 0.6.25

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
@@ -136595,7 +136595,7 @@ function ChatScreen() {
136595
136595
  /* @__PURE__ */ jsx(AnimatePresence$1, { initial: !1, children: At && /* @__PURE__ */ jsx(
136596
136596
  motion$1.div,
136597
136597
  {
136598
- className: "absolute inset-x-0 bottom-full z-20 mb-2 w-full",
136598
+ className: "absolute bottom-full left-3 right-3 z-20 mb-2 sm:left-6 sm:right-6",
136599
136599
  "data-id": "prompt-bar-form",
136600
136600
  "data-testid": "form-overlay",
136601
136601
  ref: Dn,