@streamoid/agent 0.6.33 → 0.6.35

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
@@ -229,9 +229,11 @@ export interface ConversationSearchDialogProps {
229
229
  emptyStateDescription?: string;
230
230
  }
231
231
 
232
- /** "Search or Ask CXO" — the command dialog a host opens from its sidebar's
233
- * search trigger, identical in every product. The presentation only; see
234
- * {@link AskCxoDialog} for the same thing with the host wiring done. */
232
+ /** @deprecated The rail's "Ask CXO" trigger opens the pane directly now —
233
+ * reveal the pane and call {@link focusAgentComposer} instead.
234
+ *
235
+ * "Search or Ask CXO" — the command dialog a host opened from its sidebar's
236
+ * search trigger. The presentation only. */
235
237
  export declare function ConversationSearchDialog(
236
238
  props: ConversationSearchDialogProps,
237
239
  ): ReactElement;
@@ -256,8 +258,10 @@ export interface AskCxoDialogProps
256
258
  }
257
259
 
258
260
  /**
259
- * "Search or Ask CXO", wired the fast way — PREFER THIS over
260
- * {@link ConversationSearchDialog}.
261
+ * @deprecated As {@link ConversationSearchDialog}: reveal the pane and call
262
+ * {@link focusAgentComposer}.
263
+ *
264
+ * "Search or Ask CXO", wired the fast way.
261
265
  *
262
266
  * Both hosts that wired `onAsk` by hand got it wrong the same two ways: they
263
267
  * awaited the send before opening the panel (2.655s of nothing, measured on
@@ -336,3 +340,18 @@ export interface ChatPromptPayload {
336
340
  export declare function enqueueChatPrompt(
337
341
  payload: ChatPromptPayload | string,
338
342
  ): boolean;
343
+
344
+ /**
345
+ * Put the caret in the chat's composer. Call it from the rail's "Ask CXO"
346
+ * trigger and ⌘K, in the same handler that reveals the pane.
347
+ *
348
+ * The trigger opens the pane DIRECTLY — no search dialog in front of it — and
349
+ * the user types the question in the composer, so that is where the click has
350
+ * to land them. Open, don't toggle: a second click while the pane is showing
351
+ * just refocuses.
352
+ *
353
+ * A mounted pane focuses its composer (and leaves the task list if it was
354
+ * showing). A pane that is not mounted yet focuses its composer when it
355
+ * mounts, so reveal-then-call and call-then-reveal both work.
356
+ */
357
+ export declare function focusAgentComposer(): void;