@streamoid/agent 0.6.38 → 0.6.40

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,84 @@ 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 — so
158
+ * 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`: DEPRECATED AND NOT CALLED. Picking a suggestion always
166
+ * puts the instruction in the composer, like every other card in the row.
167
+ *
168
+ * There is no scope picker in the pane. A task that needs another app is
169
+ * offered the widening by the run that needs it.
170
+ */
171
+ scope?: AgentScopeAdapter | null;
172
+ }
173
+
174
+ export interface AgentScopeOutcome {
175
+ key: string;
176
+ label: string;
177
+ /** "Remix {subject} — show me three"; `{subject}` is filled by the pane. */
178
+ instruction?: string;
179
+ /** A ceiling, not an estimate. */
180
+ ceilingMinutes?: number;
181
+ deliverable?: string;
182
+ kinds?: string[];
183
+ }
184
+
185
+ export interface AgentScopeSample {
186
+ id: string;
187
+ /** What the tile's hover says about it. */
188
+ title: string;
189
+ /** How an instruction names it; defaults to `title`. */
190
+ subject?: string;
191
+ imageUrl?: string | null;
192
+ kind?: string;
193
+ primaryOutcomeKey?: string;
194
+ }
195
+
196
+ export interface AgentScopeSection {
197
+ key: string;
198
+ title: string;
199
+ outcomes: AgentScopeOutcome[];
200
+ samples: AgentScopeSample[];
201
+ }
202
+
203
+ export interface AgentScopeSelection {
204
+ /** "6 products on this board". */
205
+ label: string;
206
+ /** "these six"; defaults to `label`. */
207
+ subject?: string;
208
+ kind?: string;
209
+ ids?: string[];
210
+ }
211
+
212
+ export interface AgentScopeSuggestion {
213
+ id: string;
214
+ sectionKey: string;
215
+ outcomeKey: string;
216
+ sampleId?: string;
217
+ subject: 'sample' | 'selection';
218
+ text: string;
219
+ ceilingMinutes?: number;
220
+ deliverable?: string;
221
+ imageUrl?: string | null;
222
+ }
223
+
224
+ export interface AgentScopeAdapter {
225
+ sections?: AgentScopeSection[] | null;
226
+ selection?: AgentScopeSelection | null;
227
+ /**
228
+ * @deprecated NOT CALLED. A suggestion always fills the composer. Kept so
229
+ * hosts that still pass it keep compiling; remove it from the host, then
230
+ * from here.
231
+ */
232
+ onSuggestion?: (suggestion: AgentScopeSuggestion) => boolean | void;
155
233
  }
156
234
 
157
235
  export interface HostCanvasContextValue {