@superxd-studio/adptr 0.5.0
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/GENERATIVE.md +101 -0
- package/INTERACTIONS.md +51 -0
- package/LICENSE +21 -0
- package/README.md +57 -0
- package/REUSE.md +170 -0
- package/REVIEW.md +68 -0
- package/THIRD-PARTY-NOTICES.md +28 -0
- package/ai-sdk/index.js +96 -0
- package/assets/ibm-plex-mono-cyrillic-400-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-cyrillic-500-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-cyrillic-ext-400-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-cyrillic-ext-500-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-vietnamese-400-normal.woff2 +0 -0
- package/assets/ibm-plex-mono-vietnamese-500-normal.woff2 +0 -0
- package/assets/instrument-sans-latin-ext-wght-normal.woff2 +0 -0
- package/assets/instrument-sans-latin-wght-normal.woff2 +0 -0
- package/assistant-ui/index.js +139 -0
- package/chunks/callout-DKMHSnjc.js +342 -0
- package/chunks/canvas-BJ15-XxE.js +598 -0
- package/chunks/controller-Cfpg0C7v.js +180 -0
- package/chunks/core-BCqVRLUy.js +312 -0
- package/chunks/text-field-BLtoaZFn.js +41 -0
- package/chunks/types-BGF7r1my.js +115 -0
- package/chunks/ui-9DyNsYXY.js +967 -0
- package/core/index.js +4 -0
- package/custom/index.js +64 -0
- package/examples/ai-sdk-backend/package.json +11 -0
- package/examples/ai-sdk-backend/server.mjs +316 -0
- package/examples/custom-backend/copy.mjs +7 -0
- package/examples/custom-backend/server.mjs +118 -0
- package/examples/generative/specs.json +2094 -0
- package/examples/review-backend/copy.mjs +27 -0
- package/examples/review-backend/package.json +11 -0
- package/examples/review-backend/server.mjs +276 -0
- package/examples/web-ai-sdk/index.html +12 -0
- package/examples/web-ai-sdk/package.json +21 -0
- package/examples/web-ai-sdk/src/copy.ts +1 -0
- package/examples/web-ai-sdk/src/main.tsx +64 -0
- package/examples/web-ai-sdk/tsconfig.json +13 -0
- package/examples/web-generative/index.html +12 -0
- package/examples/web-generative/package.json +23 -0
- package/examples/web-generative/src/copy.ts +42 -0
- package/examples/web-generative/src/main.tsx +74 -0
- package/examples/web-generative/tsconfig.json +14 -0
- package/examples/web-independent/index.html +12 -0
- package/examples/web-independent/package.json +20 -0
- package/examples/web-independent/src/main.tsx +32 -0
- package/examples/web-independent/tsconfig.json +14 -0
- package/examples/web-interactions/index.html +12 -0
- package/examples/web-interactions/package.json +21 -0
- package/examples/web-interactions/src/copy.ts +215 -0
- package/examples/web-interactions/src/examples.tsx +628 -0
- package/examples/web-interactions/src/main.tsx +116 -0
- package/examples/web-interactions/tsconfig.json +14 -0
- package/examples/web-review/index.html +12 -0
- package/examples/web-review/package.json +20 -0
- package/examples/web-review/src/main.tsx +59 -0
- package/examples/web-review/tsconfig.json +14 -0
- package/fonts.css +117 -0
- package/generative/index.js +1560 -0
- package/interactions/index.js +1591 -0
- package/langgraph-review/index.js +36 -0
- package/licenses/ai-sdk.txt +13 -0
- package/licenses/assistant-ui-generative.txt +21 -0
- package/licenses/assistant-ui.txt +23 -0
- package/licenses/ibm-plex-mono.txt +93 -0
- package/licenses/instrument-sans.txt +93 -0
- package/licenses/internationalized-date.txt +201 -0
- package/licenses/langgraph.txt +21 -0
- package/licenses/lucide.txt +43 -0
- package/licenses/react-markdown.txt +21 -0
- package/licenses/remark-gfm.txt +22 -0
- package/licenses/zod.txt +21 -0
- package/package.json +138 -0
- package/review/index.js +31 -0
- package/source/components/avatar.tsx +50 -0
- package/source/components/button.tsx +155 -0
- package/source/components/callout.tsx +65 -0
- package/source/components/canvas/connector.tsx +14 -0
- package/source/components/canvas/copy.ts +34 -0
- package/source/components/canvas/index.tsx +257 -0
- package/source/components/canvas/recorder.ts +36 -0
- package/source/components/date-time-field.tsx +77 -0
- package/source/components/flow-motion.tsx +109 -0
- package/source/components/icons.tsx +275 -0
- package/source/components/responsive-overlay.tsx +91 -0
- package/source/components/scenario-picker/copy.ts +5 -0
- package/source/components/scenario-picker/index.tsx +142 -0
- package/source/components/scroll-area.tsx +59 -0
- package/source/components/search-picker.tsx +127 -0
- package/source/components/segmented-control.tsx +123 -0
- package/source/components/skeleton.tsx +11 -0
- package/source/components/spinner.tsx +19 -0
- package/source/components/superxd-arrow.tsx +22 -0
- package/source/components/switch.tsx +45 -0
- package/source/components/text-field.tsx +81 -0
- package/source/components/thinking.tsx +16 -0
- package/source/components/ui/copy.ts +12 -0
- package/source/components/ui/display.tsx +276 -0
- package/source/components/ui/navigation.tsx +346 -0
- package/source/components/ui/portal-theme.tsx +28 -0
- package/source/components/ui/selection.tsx +336 -0
- package/source/lib/cn.ts +23 -0
- package/source/reusable/ai-sdk/index.ts +114 -0
- package/source/reusable/assistant-ui/index.tsx +266 -0
- package/source/reusable/core/attachments.ts +163 -0
- package/source/reusable/core/index.ts +417 -0
- package/source/reusable/custom/index.ts +90 -0
- package/source/reusable/generative/actions.ts +188 -0
- package/source/reusable/generative/copy.ts +47 -0
- package/source/reusable/generative/data.tsx +126 -0
- package/source/reusable/generative/index.tsx +517 -0
- package/source/reusable/generative/schema.ts +327 -0
- package/source/reusable/generative/timeline.tsx +214 -0
- package/source/reusable/generative/vocabulary.tsx +847 -0
- package/source/reusable/interactions/agent.ts +259 -0
- package/source/reusable/interactions/artifact.ts +236 -0
- package/source/reusable/interactions/context.tsx +38 -0
- package/source/reusable/interactions/copy.ts +117 -0
- package/source/reusable/interactions/feedback.ts +73 -0
- package/source/reusable/interactions/index.ts +11 -0
- package/source/reusable/interactions/presentation.tsx +483 -0
- package/source/reusable/interactions/store.ts +74 -0
- package/source/reusable/interactions/threads.ts +126 -0
- package/source/reusable/interactions/web.tsx +574 -0
- package/source/reusable/langgraph-review/index.ts +73 -0
- package/source/reusable/review/controller.ts +263 -0
- package/source/reusable/review/index.ts +47 -0
- package/source/reusable/review/types.ts +189 -0
- package/source/reusable/ui/index.ts +25 -0
- package/source/reusable/uploads/index.ts +48 -0
- package/source/reusable/web/attachments/copy.ts +23 -0
- package/source/reusable/web/attachments/index.tsx +233 -0
- package/source/reusable/web/copy.ts +22 -0
- package/source/reusable/web/index.tsx +470 -0
- package/source/reusable/web/message/copy.ts +26 -0
- package/source/reusable/web/message/index.tsx +388 -0
- package/source/reusable/web/message/streaming.ts +64 -0
- package/source/reusable/web/message/styles.css +21 -0
- package/source/reusable/web/review/copy.ts +78 -0
- package/source/reusable/web/review/flow.ts +24 -0
- package/source/reusable/web/review/index.tsx +506 -0
- package/source/reusable/web/styles.ts +2 -0
- package/source/styles/library.css +612 -0
- package/source/styles/theme.css +228 -0
- package/styles.css +3 -0
- package/styles.d.ts +1 -0
- package/types/components/avatar.d.ts +14 -0
- package/types/components/button.d.ts +36 -0
- package/types/components/callout.d.ts +19 -0
- package/types/components/canvas/connector.d.ts +2 -0
- package/types/components/canvas/copy.d.ts +34 -0
- package/types/components/canvas/index.d.ts +33 -0
- package/types/components/canvas/recorder.d.ts +10 -0
- package/types/components/date-time-field.d.ts +11 -0
- package/types/components/flow-motion.d.ts +38 -0
- package/types/components/icons.d.ts +138 -0
- package/types/components/responsive-overlay.d.ts +15 -0
- package/types/components/scenario-picker/copy.d.ts +5 -0
- package/types/components/scenario-picker/index.d.ts +14 -0
- package/types/components/scroll-area.d.ts +14 -0
- package/types/components/search-picker.d.ts +27 -0
- package/types/components/segmented-control.d.ts +23 -0
- package/types/components/skeleton.d.ts +4 -0
- package/types/components/spinner.d.ts +4 -0
- package/types/components/superxd-arrow.d.ts +5 -0
- package/types/components/switch.d.ts +8 -0
- package/types/components/text-field.d.ts +19 -0
- package/types/components/thinking.d.ts +8 -0
- package/types/components/ui/copy.d.ts +12 -0
- package/types/components/ui/display.d.ts +50 -0
- package/types/components/ui/navigation.d.ts +63 -0
- package/types/components/ui/portal-theme.d.ts +8 -0
- package/types/components/ui/selection.d.ts +37 -0
- package/types/lib/cn.d.ts +3 -0
- package/types/reusable/ai-sdk/index.d.ts +15 -0
- package/types/reusable/assistant-ui/index.d.ts +12 -0
- package/types/reusable/core/attachments.d.ts +54 -0
- package/types/reusable/core/index.d.ts +107 -0
- package/types/reusable/custom/index.d.ts +14 -0
- package/types/reusable/generative/actions.d.ts +45 -0
- package/types/reusable/generative/copy.d.ts +48 -0
- package/types/reusable/generative/data.d.ts +4 -0
- package/types/reusable/generative/index.d.ts +30 -0
- package/types/reusable/generative/schema.d.ts +303 -0
- package/types/reusable/generative/timeline.d.ts +21 -0
- package/types/reusable/generative/vocabulary.d.ts +34 -0
- package/types/reusable/interactions/agent.d.ts +98 -0
- package/types/reusable/interactions/artifact.d.ts +118 -0
- package/types/reusable/interactions/context.d.ts +130 -0
- package/types/reusable/interactions/copy.d.ts +115 -0
- package/types/reusable/interactions/feedback.d.ts +34 -0
- package/types/reusable/interactions/index.d.ts +10 -0
- package/types/reusable/interactions/presentation.d.ts +97 -0
- package/types/reusable/interactions/store.d.ts +29 -0
- package/types/reusable/interactions/threads.d.ts +38 -0
- package/types/reusable/interactions/web.d.ts +22 -0
- package/types/reusable/langgraph-review/index.d.ts +5 -0
- package/types/reusable/review/controller.d.ts +52 -0
- package/types/reusable/review/index.d.ts +12 -0
- package/types/reusable/review/types.d.ts +61 -0
- package/types/reusable/ui/index.d.ts +19 -0
- package/types/reusable/uploads/index.d.ts +11 -0
- package/types/reusable/web/attachments/copy.d.ts +25 -0
- package/types/reusable/web/attachments/index.d.ts +24 -0
- package/types/reusable/web/copy.d.ts +24 -0
- package/types/reusable/web/index.d.ts +41 -0
- package/types/reusable/web/message/copy.d.ts +27 -0
- package/types/reusable/web/message/index.d.ts +56 -0
- package/types/reusable/web/message/streaming.d.ts +27 -0
- package/types/reusable/web/review/copy.d.ts +72 -0
- package/types/reusable/web/review/flow.d.ts +3 -0
- package/types/reusable/web/review/index.d.ts +38 -0
- package/types/reusable/web/styles.d.ts +2 -0
- package/ui/index.js +4 -0
- package/uploads/index.js +34 -0
- package/web/index.js +931 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "Bundler",
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"allowArbitraryExtensions": true
|
|
12
|
+
},
|
|
13
|
+
"include": ["src"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>SuperXD foundations and interaction consumer</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="root"></div>
|
|
10
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "superxd-interactions-consumer",
|
|
3
|
+
"private": true,
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite --host 127.0.0.1 --port 5303",
|
|
7
|
+
"build": "tsc --noEmit && vite build"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@superxd-studio/adptr": "file:../..",
|
|
11
|
+
"react-aria-components": "^1.21.1",
|
|
12
|
+
"react": "^19.3.0",
|
|
13
|
+
"react-dom": "^19.3.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/react": "^19.3.0",
|
|
17
|
+
"@types/react-dom": "^19.3.0",
|
|
18
|
+
"typescript": "~6.0",
|
|
19
|
+
"vite": "^8.3.1"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
export const layerCopy = {
|
|
2
|
+
consumerTitle: "Foundations and AI interactions",
|
|
3
|
+
consumerTheme: "Dark theme",
|
|
4
|
+
consumerFoundations: "Foundations",
|
|
5
|
+
consumerPresentations: "AI presentations",
|
|
6
|
+
scenario: "Interaction scenario",
|
|
7
|
+
lostDescription:
|
|
8
|
+
"The host finishes the request but its reply is lost. Check the original receipt.",
|
|
9
|
+
conflictDescription: "Another person saves a newer revision before your first save.",
|
|
10
|
+
readOnlyDescription: "The host permits reading this artifact but does not permit editing.",
|
|
11
|
+
failedDescription: "The first storage acknowledgement fails. Retry the same feedback.",
|
|
12
|
+
ready: "Ready",
|
|
13
|
+
disabled: "Unavailable",
|
|
14
|
+
invalid: "Needs a choice",
|
|
15
|
+
empty: "Nothing to show",
|
|
16
|
+
mixed: "Partly selected",
|
|
17
|
+
conflict: "Version changed",
|
|
18
|
+
lost: "Reply lost once",
|
|
19
|
+
failed: "Storage fails once",
|
|
20
|
+
sample: "Sample",
|
|
21
|
+
readOnly: "View only",
|
|
22
|
+
titles: {
|
|
23
|
+
checkbox: "Checkbox",
|
|
24
|
+
"checkbox-group": "Checkbox group",
|
|
25
|
+
"radio-group": "Radio group",
|
|
26
|
+
select: "Select",
|
|
27
|
+
slider: "Slider",
|
|
28
|
+
toggle: "Toggle",
|
|
29
|
+
form: "Form",
|
|
30
|
+
menu: "Menu",
|
|
31
|
+
accordion: "Accordion",
|
|
32
|
+
tabs: "Tabs",
|
|
33
|
+
tooltip: "Tooltip",
|
|
34
|
+
dialog: "Dialog",
|
|
35
|
+
pagination: "Pagination",
|
|
36
|
+
breadcrumbs: "Breadcrumbs",
|
|
37
|
+
card: "Card",
|
|
38
|
+
badge: "Badge",
|
|
39
|
+
progress: "Progress",
|
|
40
|
+
separator: "Separator",
|
|
41
|
+
"aspect-ratio": "Aspect ratio",
|
|
42
|
+
"keyboard-hint": "Keyboard hint",
|
|
43
|
+
table: "Data table",
|
|
44
|
+
toast: "Toast",
|
|
45
|
+
reasoning: "Progress explanation",
|
|
46
|
+
"tool-presentation": "Tool details",
|
|
47
|
+
sources: "Sources",
|
|
48
|
+
citation: "Citation",
|
|
49
|
+
"retrieval-inspection": "Retrieval inspection",
|
|
50
|
+
confidence: "Confidence",
|
|
51
|
+
guardrail: "Guardrail",
|
|
52
|
+
"agent-status": "Agent status",
|
|
53
|
+
"connection-status": "Connection status",
|
|
54
|
+
"composer-controls": "Composer controls",
|
|
55
|
+
"quoted-reply": "Quoted reply",
|
|
56
|
+
"execution-inspector": "Execution inspector",
|
|
57
|
+
observability: "Run measurements",
|
|
58
|
+
"agent-plan": "Supervised plan",
|
|
59
|
+
artifact: "Artifact workspace",
|
|
60
|
+
"response-feedback": "Response feedback",
|
|
61
|
+
"conversation-history": "Conversation history",
|
|
62
|
+
},
|
|
63
|
+
choices: [
|
|
64
|
+
{ id: "notes", label: "Session notes", description: "Include the notes from this meeting." },
|
|
65
|
+
{ id: "brief", label: "Project brief", description: "Include the current project scope." },
|
|
66
|
+
{
|
|
67
|
+
id: "private",
|
|
68
|
+
label: "Private files",
|
|
69
|
+
description: "Your workspace has not granted access.",
|
|
70
|
+
isDisabled: true,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
consent: "Include meeting notes",
|
|
74
|
+
consentHint: "Only the selected files are sent with the request.",
|
|
75
|
+
error: "Choose an available option to continue.",
|
|
76
|
+
priority: "Priority",
|
|
77
|
+
amount: "Response length",
|
|
78
|
+
bold: "Emphasise selected text",
|
|
79
|
+
name: "Project name",
|
|
80
|
+
required: "Enter a project name.",
|
|
81
|
+
submit: "Save project",
|
|
82
|
+
saved: "Project saved.",
|
|
83
|
+
actions: "Project actions",
|
|
84
|
+
open: "Open project",
|
|
85
|
+
duplicate: "Duplicate",
|
|
86
|
+
remove: "Remove",
|
|
87
|
+
selected: "Selected action",
|
|
88
|
+
details: "Project details",
|
|
89
|
+
scope: "Scope",
|
|
90
|
+
owner: "Owner",
|
|
91
|
+
scopeText: "A workspace for reviewing and approving proposed changes.",
|
|
92
|
+
ownerText: "Maya Chen is responsible for the project.",
|
|
93
|
+
tabLabel: "Project view",
|
|
94
|
+
overview: "Overview",
|
|
95
|
+
activity: "Activity",
|
|
96
|
+
activityText: "No changes have been applied.",
|
|
97
|
+
help: "About approval",
|
|
98
|
+
helpText: "Review the action and its inputs before approving.",
|
|
99
|
+
dialogTitle: "Review the project",
|
|
100
|
+
dialogText: "Check the project name and scope before continuing.",
|
|
101
|
+
page: "Project pages",
|
|
102
|
+
crumbs: [
|
|
103
|
+
{ id: "library", label: "Library", href: "#/" },
|
|
104
|
+
{ id: "components", label: "Components", href: "#/components" },
|
|
105
|
+
{ id: "current", label: "Current view" },
|
|
106
|
+
],
|
|
107
|
+
cardTitle: "Project brief",
|
|
108
|
+
cardText: "Keep the goal, owner and next action in one place.",
|
|
109
|
+
badgeText: "Approved",
|
|
110
|
+
progressLabel: "Files processed",
|
|
111
|
+
image: "Preview area",
|
|
112
|
+
keyLabel: "Open library search",
|
|
113
|
+
tableLabel: "Projects",
|
|
114
|
+
columns: [
|
|
115
|
+
{ id: "name", label: "Project", sortable: true, isRowHeader: true },
|
|
116
|
+
{ id: "count", label: "Changes", sortable: true },
|
|
117
|
+
],
|
|
118
|
+
rows: [
|
|
119
|
+
{ id: "one", values: { name: "Workspace", count: 12 } },
|
|
120
|
+
{ id: "two", values: { name: "Calendar", count: 2 } },
|
|
121
|
+
{ id: "three", values: { name: "Messages", count: 8 } },
|
|
122
|
+
],
|
|
123
|
+
notify: "Show notification",
|
|
124
|
+
notification: {
|
|
125
|
+
title: "Project saved",
|
|
126
|
+
description: "Your changes are now available in this workspace.",
|
|
127
|
+
},
|
|
128
|
+
explanation:
|
|
129
|
+
"The host checked the selected project brief, then prepared a summary. No external action has been taken.",
|
|
130
|
+
toolTitle: "Summarise the project brief",
|
|
131
|
+
input: { documentId: "brief-1", scope: "summary only" },
|
|
132
|
+
output: "The brief describes a review workflow with approval before changes are applied.",
|
|
133
|
+
sources: [
|
|
134
|
+
{
|
|
135
|
+
id: "aria",
|
|
136
|
+
title: "React Aria accessibility",
|
|
137
|
+
url: "https://react-aria.adobe.com/accessibility.html",
|
|
138
|
+
claim: "The controls support keyboard navigation and screen readers.",
|
|
139
|
+
excerpt: "Accessibility is provided by the interaction primitives.",
|
|
140
|
+
},
|
|
141
|
+
{ id: "unavailable", title: "Private project brief" },
|
|
142
|
+
],
|
|
143
|
+
claim: "This answer may omit recent changes.",
|
|
144
|
+
confidenceText:
|
|
145
|
+
"The supplied brief was last updated before this conversation. Check the current document before acting.",
|
|
146
|
+
blocked: "This workspace has not granted permission to send external messages.",
|
|
147
|
+
alternatives: [
|
|
148
|
+
{ id: "draft", label: "Keep as a draft" },
|
|
149
|
+
{ id: "review", label: "Review permissions" },
|
|
150
|
+
],
|
|
151
|
+
modelChoices: [
|
|
152
|
+
{ id: "balanced", label: "Balanced" },
|
|
153
|
+
{ id: "careful", label: "Careful" },
|
|
154
|
+
],
|
|
155
|
+
commands: [
|
|
156
|
+
{ id: "summary", label: "Summarise selected context" },
|
|
157
|
+
{ id: "review", label: "Review proposed changes" },
|
|
158
|
+
],
|
|
159
|
+
quote: {
|
|
160
|
+
text: "Approval is required before a change is applied.",
|
|
161
|
+
sourceId: "brief-1",
|
|
162
|
+
sourceTitle: "Project brief",
|
|
163
|
+
},
|
|
164
|
+
quoteUsed: "Excerpt added to the reply draft.",
|
|
165
|
+
code: "const result = await host.checkReceipt(requestId);",
|
|
166
|
+
files: ["project-brief.md"],
|
|
167
|
+
checks: [
|
|
168
|
+
{ name: "Original receipt matched", passed: true },
|
|
169
|
+
{ name: "No duplicate execution", passed: true },
|
|
170
|
+
],
|
|
171
|
+
measurements: [
|
|
172
|
+
{ label: "Output tokens", value: 140 },
|
|
173
|
+
{ label: "Latency", value: 420, unit: "ms" },
|
|
174
|
+
{ label: "Cost" },
|
|
175
|
+
],
|
|
176
|
+
steps: [
|
|
177
|
+
{
|
|
178
|
+
id: "inspect",
|
|
179
|
+
title: "Read the selected project brief",
|
|
180
|
+
tool: "read-document",
|
|
181
|
+
input: { documentId: "brief-1" },
|
|
182
|
+
scope: "Read this document only.",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: "draft",
|
|
186
|
+
title: "Prepare a summary draft",
|
|
187
|
+
tool: "write-draft",
|
|
188
|
+
input: { destination: "workspace-drafts" },
|
|
189
|
+
scope: "Create a draft in this workspace; do not publish it.",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
working: "Checking the selected document.",
|
|
193
|
+
stepDone: "The approved step finished.",
|
|
194
|
+
artifactTitle: "Project summary",
|
|
195
|
+
artifactContent: "Review proposed changes before applying them.",
|
|
196
|
+
draftChange: "Another person added an approval checkpoint.",
|
|
197
|
+
artifactOpen: "Open artifact",
|
|
198
|
+
response: "Approval belongs to the person reviewing the proposed action.",
|
|
199
|
+
responseId: "response-1",
|
|
200
|
+
threadTitles: ["Project planning", "Calendar review"],
|
|
201
|
+
threadText: [
|
|
202
|
+
"The selected project is a review workspace.",
|
|
203
|
+
"The calendar is shown in Sydney time.",
|
|
204
|
+
],
|
|
205
|
+
threadView: "Saved conversation",
|
|
206
|
+
descriptions: {
|
|
207
|
+
foundations: "Reusable controls with keyboard support, validation and disabled states.",
|
|
208
|
+
agent:
|
|
209
|
+
"Review and approve each step of a finite plan. Recover the original receipt when its reply is lost.",
|
|
210
|
+
artifact:
|
|
211
|
+
"Edit a saved artifact, compare revisions and resolve conflicts without losing the draft.",
|
|
212
|
+
feedback: "Save feedback against a specific response and wait for storage acknowledgement.",
|
|
213
|
+
history: "Open, rename, archive and restore conversations through the host’s storage adapter.",
|
|
214
|
+
},
|
|
215
|
+
} as const;
|