@streamoid/agent 0.6.44 → 0.6.45
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 +15 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +16435 -16445
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,3 +32,18 @@ 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.
|
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[];
|