@streamoid/agent 0.6.38 → 0.6.39

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
@@ -152,6 +152,76 @@ export interface AgentChatShellAdapters {
152
152
  * Omit this and the iframe path runs unchanged; it is purely additive.
153
153
  */
154
154
  canvas?: HostCanvasContextValue;
155
+ /**
156
+ * Scope the pane to the host app. The scope itself comes from
157
+ * `hostContext.app` — the pane is scoped to wherever it was opened, and the
158
+ * scope bar reads "All apps" at CXO level — so every field here is optional:
159
+ *
160
+ * - `sections`: the app's outcome table. One suggestion per section, from
161
+ * its first sample's primary outcome. Change the samples and the
162
+ * suggestions follow. Omit it for the catalog briefs this app can run alone.
163
+ * - `selection`: what was selected when the pane opened — a removable chip
164
+ * in the composer, and the subject suggestions name.
165
+ * - `onSuggestion`: land where clicking that tile and choosing that outcome
166
+ * would; return `true` when handled, else the instruction is typed in.
167
+ */
168
+ scope?: AgentScopeAdapter | null;
169
+ }
170
+
171
+ export interface AgentScopeOutcome {
172
+ key: string;
173
+ label: string;
174
+ /** "Remix {subject} — show me three"; `{subject}` is filled by the pane. */
175
+ instruction?: string;
176
+ /** A ceiling, not an estimate. */
177
+ ceilingMinutes?: number;
178
+ deliverable?: string;
179
+ kinds?: string[];
180
+ }
181
+
182
+ export interface AgentScopeSample {
183
+ id: string;
184
+ /** What the tile's hover says about it. */
185
+ title: string;
186
+ /** How an instruction names it; defaults to `title`. */
187
+ subject?: string;
188
+ imageUrl?: string | null;
189
+ kind?: string;
190
+ primaryOutcomeKey?: string;
191
+ }
192
+
193
+ export interface AgentScopeSection {
194
+ key: string;
195
+ title: string;
196
+ outcomes: AgentScopeOutcome[];
197
+ samples: AgentScopeSample[];
198
+ }
199
+
200
+ export interface AgentScopeSelection {
201
+ /** "6 products on this board". */
202
+ label: string;
203
+ /** "these six"; defaults to `label`. */
204
+ subject?: string;
205
+ kind?: string;
206
+ ids?: string[];
207
+ }
208
+
209
+ export interface AgentScopeSuggestion {
210
+ id: string;
211
+ sectionKey: string;
212
+ outcomeKey: string;
213
+ sampleId?: string;
214
+ subject: 'sample' | 'selection';
215
+ text: string;
216
+ ceilingMinutes?: number;
217
+ deliverable?: string;
218
+ imageUrl?: string | null;
219
+ }
220
+
221
+ export interface AgentScopeAdapter {
222
+ sections?: AgentScopeSection[] | null;
223
+ selection?: AgentScopeSelection | null;
224
+ onSuggestion?: (suggestion: AgentScopeSuggestion) => boolean | void;
155
225
  }
156
226
 
157
227
  export interface HostCanvasContextValue {