@streamoid/agent 0.6.44 → 0.6.46

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/README.md CHANGED
@@ -32,3 +32,31 @@ import "@streamoid/agent/style.css";
32
32
  > bump PR in every consumer. So the one thing a change to the chat needs is a new
33
33
  > version in this directory's `package.json`; merging it ships everything else.
34
34
  > The `agent-version` check on each PR fails if that has been forgotten.
35
+
36
+
37
+ ### Panel context and suggestion copy
38
+
39
+ The panel header shows the current app and location directly beneath its title
40
+ using `ScPanelHeading` from `@streamoid/ui` (muted 12px text). Supply
41
+ `hostContext.breadcrumbs: ['Home', 'Explore']` to display
42
+ `Artifax · Home › Explore`; older hosts fall back to `hostContext.page`.
43
+ Context is hidden when a task widens beyond the host app, and it is not repeated
44
+ above the composer. Hosts that hide the built-in header own their header context.
45
+
46
+ Author scope outcome instructions and deliverables in sentence case. A sample's
47
+ `subject` is a running-prose noun phrase (for example, `the violet halter crop
48
+ tank`); `title` keeps its original identity. Preserve proper names, acronyms and
49
+ “T-shirt”. The agent renders supplied text without a CSS case transformation.
50
+
51
+
52
+ ### Composer and suggestion presentation
53
+
54
+ Embedded and standalone chat use `ScComposerSurface` and `ScSuggestionRow` from
55
+ `@streamoid/ui` 0.6.86+. An empty composer starts with three 20px text lines and
56
+ grows to 170px before scrolling. Suggestions are native buttons in flat rows
57
+ with hairline separators, and fill the composer without navigating or sending.
58
+
59
+ The secondary line shows `meta.outcome_summary` (falling back to
60
+ `meta.expected_output`), optionally followed by authored `meta.ceiling_minutes`
61
+ and `meta.estimated_credits`. Unknown estimates are omitted. Scoped suggestions
62
+ use `deliverable` and `ceilingMinutes` from the host's outcome catalogue.
package/dist/index.d.ts CHANGED
@@ -40,6 +40,8 @@ export interface AgentHostContext {
40
40
  app?: string;
41
41
  /** Human name of the current page, e.g. `Boards`. */
42
42
  page?: string;
43
+ /** Header location hierarchy, e.g. ["Home", "Explore"]. Falls back to page. */
44
+ breadcrumbs?: string[];
43
45
  /** Route pattern rather than the filled path, e.g. `/dashboard/:workspaceId/home`. */
44
46
  route?: string;
45
47
  /** Absolute URL of the host page. */
@@ -187,6 +189,7 @@ export interface AgentScopeSample {
187
189
  /** What the tile's hover says about it. */
188
190
  title: string;
189
191
  /** How an instruction names it; defaults to `title`. */
192
+ /** Sentence-case noun phrase; preserve proper names and acronyms. */
190
193
  subject?: string;
191
194
  imageUrl?: string | null;
192
195
  kind?: string;
@@ -204,6 +207,7 @@ export interface AgentScopeSelection {
204
207
  /** "6 products on this board". */
205
208
  label: string;
206
209
  /** "these six"; defaults to `label`. */
210
+ /** Sentence-case noun phrase; preserve proper names and acronyms. */
207
211
  subject?: string;
208
212
  kind?: string;
209
213
  ids?: string[];