@belonguniverseai/react-sdk 0.1.6 → 0.1.8
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 +1 -1
- package/dist/api/agent-grants.d.ts +18 -23
- package/dist/api/client.d.ts +1049 -30
- package/dist/api/query-keys.d.ts +5 -0
- package/dist/api/task-schedules.d.ts +313 -0
- package/dist/app/dock-outlet.d.ts +18 -0
- package/dist/component/{arc-CTDwT0LX.js → arc-BZj9pfle.js} +2 -2
- package/dist/component/{architectureDiagram-3BPJPVTR-osyB2zKw.js → architectureDiagram-3BPJPVTR-DYVPejo6.js} +3 -3
- package/dist/component/{blockDiagram-GPEHLZMM-ChWpzkC_.js → blockDiagram-GPEHLZMM-Cqht4SXD.js} +4 -4
- package/dist/component/{c4Diagram-AAUBKEIU-TBt2Sr1T.js → c4Diagram-AAUBKEIU-Dw8BtNVv.js} +3 -3
- package/dist/component/{channel-DKYVGzgk.js → channel-BcdBKo26.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-D-qMyfG9.js → chunk-2J33WTMH-j6gfAyGs.js} +2 -2
- package/dist/component/{chunk-4BX2VUAB-BYTeOCro.js → chunk-4BX2VUAB-DiX7q4eX.js} +2 -2
- package/dist/component/{chunk-55IACEB6-CkLaQSjG.js → chunk-55IACEB6-CgTvaBsI.js} +2 -2
- package/dist/component/{chunk-727SXJPM-CzkWgEIS.js → chunk-727SXJPM-Bfq_QRBE.js} +6 -6
- package/dist/component/{chunk-AQP2D5EJ-d-zIc-67.js → chunk-AQP2D5EJ-ClrornzZ.js} +4 -4
- package/dist/component/{chunk-FMBD7UC4-amGyEMTp.js → chunk-FMBD7UC4-WZfa6aDS.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-DjPCor9N.js → chunk-ND2GUHAM-Cto8_209.js} +2 -2
- package/dist/component/{chunk-QZHKN3VN-B0LrqJFz.js → chunk-QZHKN3VN-CM6Lx0p-.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-BLW37dmc.js → classDiagram-4FO5ZUOK-BdDf650t.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-BLW37dmc.js → classDiagram-v2-Q7XG4LA2-BdDf650t.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BrAZZB3S.js → cose-bilkent-S5V4N54A-BTkoGwqd.js} +2 -2
- package/dist/component/{dagre-BM42HDAG-lt_pmFeQ.js → dagre-BM42HDAG-Cm9Q4GTR.js} +2 -2
- package/dist/component/{diagram-2AECGRRQ-DfMdC1rS.js → diagram-2AECGRRQ-BG7WS0_C.js} +3 -3
- package/dist/component/{diagram-5GNKFQAL-CORXCu1y.js → diagram-5GNKFQAL-bAlneREF.js} +4 -4
- package/dist/component/{diagram-KO2AKTUF-Dt8oiVky.js → diagram-KO2AKTUF-By1LuXMT.js} +3 -3
- package/dist/component/{diagram-LMA3HP47-Bu-XSRd6.js → diagram-LMA3HP47-COR5m3x6.js} +3 -3
- package/dist/component/{diagram-OG6HWLK6-DiOgJz8h.js → diagram-OG6HWLK6-hxRK9G9i.js} +4 -4
- package/dist/component/dock-error-boundary.d.ts +16 -0
- package/dist/component/{erDiagram-TEJ5UH35-DSrXX--n.js → erDiagram-TEJ5UH35-8VyxgLye.js} +5 -5
- package/dist/component/{flowDiagram-I6XJVG4X-D1E_ZfMU.js → flowDiagram-I6XJVG4X-GL0-g_NL.js} +7 -7
- package/dist/component/{ganttDiagram-6RSMTGT7-BzGCGwAi.js → ganttDiagram-6RSMTGT7-CY-pvQs9.js} +3 -3
- package/dist/component/{gitGraphDiagram-PVQCEYII-C6qUOG7K.js → gitGraphDiagram-PVQCEYII-C-banevz.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-D1SvZ8C_.js → highlighted-body-OFNGDK62-DoKWOEyS.js} +2 -2
- package/dist/component/index-Dips44uG.js +2208 -0
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-D0l96um1.js → infoDiagram-5YYISTIA-BxrYTrgH.js} +2 -2
- package/dist/component/{ishikawaDiagram-YF4QCWOH-BDHAOBaC.js → ishikawaDiagram-YF4QCWOH-D_ZdaanN.js} +2 -2
- package/dist/component/{journeyDiagram-JHISSGLW-BtN73bIc.js → journeyDiagram-JHISSGLW-CJUxH22Z.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-Dll6IAhM.js → kanban-definition-UN3LZRKU-BYcx0C0k.js} +3 -3
- package/dist/component/{linear-ChreRr3h.js → linear-DXA6Ni38.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-C0Oq2bpl.js → mermaid-GHXKKRXX-BP0EPCnA.js} +36000 -32444
- package/dist/component/{mindmap-definition-RKZ34NQL-DC9K87bN.js → mindmap-definition-RKZ34NQL-DnvW0LPZ.js} +4 -4
- package/dist/component/{pieDiagram-4H26LBE5-BNGHaTmE.js → pieDiagram-4H26LBE5-DA_l8HVF.js} +4 -4
- package/dist/component/{quadrantDiagram-W4KKPZXB-D23AXzE2.js → quadrantDiagram-W4KKPZXB-CJH3QV2I.js} +3 -3
- package/dist/component/{requirementDiagram-4Y6WPE33-DRe6Bcy7.js → requirementDiagram-4Y6WPE33-RQu1NwhU.js} +4 -4
- package/dist/component/{sankeyDiagram-5OEKKPKP-Ca--29t-.js → sankeyDiagram-5OEKKPKP-DaQ-xlau.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-Cv6WVN5T.js → sequenceDiagram-3UESZ5HK-DVuPvNoe.js} +4 -4
- package/dist/component/{stateDiagram-AJRCARHV-Ba_3WUjf.js → stateDiagram-AJRCARHV-CUhrYhQ-.js} +3 -3
- package/dist/component/{stateDiagram-v2-BHNVJYJU-C8G1MQa8.js → stateDiagram-v2-BHNVJYJU-DJwdiVQa.js} +3 -3
- package/dist/component/{timeline-definition-PNZ67QCA-Bfh6fz9g.js → timeline-definition-PNZ67QCA-vxoNetpl.js} +3 -3
- package/dist/component/{vennDiagram-CIIHVFJN-D1U-PuFV.js → vennDiagram-CIIHVFJN-B23Eo4r8.js} +2 -2
- package/dist/component/{wardleyDiagram-YWT4CUSO-DTwXmrGn.js → wardleyDiagram-YWT4CUSO-CHPIaRL_.js} +3 -3
- package/dist/component/{xychartDiagram-2RQKCTM6-Dy8C7cbo.js → xychartDiagram-2RQKCTM6-gaiGaKCA.js} +3 -3
- package/dist/components/embed/AgentGrantAutoConnect.d.ts +1 -0
- package/dist/components/embed/CapabilityHints.d.ts +4 -1
- package/dist/components/embed/EmbedConversation.d.ts +11 -11
- package/dist/components/embed/EmbedRail.d.ts +1 -1
- package/dist/components/embed/FilePreview.d.ts +7 -2
- package/dist/components/embed/FilePreviewDialog.d.ts +6 -2
- package/dist/components/embed/HtmlPreviewFrame.d.ts +7 -0
- package/dist/components/embed/MentionInput.d.ts +8 -1
- package/dist/components/embed/PreviewContent.d.ts +9 -21
- package/dist/components/embed/WelcomeIntro.d.ts +5 -3
- package/dist/components/embed/WelcomeSkills.d.ts +7 -0
- package/dist/components/embed/file-preview-kind.d.ts +7 -3
- package/dist/components/embed/onboarding-story-dock.d.ts +5 -2
- package/dist/components/embed/preview-content-kind.d.ts +5 -7
- package/dist/components/embed/use-inline-preview-url.d.ts +20 -0
- package/dist/components/scheduled/ConfirmDeleteScheduleDialog.d.ts +7 -0
- package/dist/components/scheduled/ScheduleDialog.d.ts +13 -0
- package/dist/components/scheduled/ScheduledDetailSurface.d.ts +8 -0
- package/dist/components/scheduled/ScheduledListSurface.d.ts +7 -0
- package/dist/components/scheduled/TimezoneCombobox.d.ts +7 -0
- package/dist/components/scheduled/schedule-dialog-model.d.ts +11 -0
- package/dist/components/scheduled/schedule-format.d.ts +38 -0
- package/dist/components/ui/button.d.ts +3 -2
- package/dist/embed/agent-grant-refresh.d.ts +7 -7
- package/dist/embed/composer-submit.d.ts +7 -0
- package/dist/embed/copy.d.ts +92 -15
- package/dist/embed/dock-state.d.ts +1 -1
- package/dist/embed/slash-commands.d.ts +20 -6
- package/dist/embed/task-schedule-command.d.ts +32 -0
- package/dist/embed/task-schedule-store.d.ts +29 -0
- package/dist/embed/theme-preview-params.d.ts +2 -0
- package/dist/embed/voice-narration.d.ts +15 -0
- package/dist/i18n/messages/en.d.ts +106 -22
- package/dist/i18n/messages/surfaces/embedMisc.d.ts +0 -12
- package/dist/i18n/messages/surfaces/header.d.ts +9 -0
- package/dist/i18n/messages/surfaces/scheduled.d.ts +253 -0
- package/dist/lib/use-debounced-value.d.ts +2 -0
- package/dist/lib/use-effect-event.d.ts +13 -0
- package/dist/routes/chat.d.ts +3 -2
- package/dist/routes/scheduled-detail.d.ts +2 -0
- package/dist/routes/scheduled.d.ts +2 -0
- package/dist/stream/stream-state-store.d.ts +9 -0
- package/dist/types/public.d.ts +44 -9
- package/package.json +3 -3
- package/dist/components/embed/AgentGrantCard.d.ts +0 -27
- package/dist/i18n/messages/surfaces/agentGrant.d.ts +0 -58
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/** Scheduled surface strings (rail view: list, create/edit dialog, detail, runs). */
|
|
2
|
+
export declare const scheduledEn: {
|
|
3
|
+
readonly scheduled: {
|
|
4
|
+
readonly viewTitle: "Scheduled";
|
|
5
|
+
readonly subtitle: "Run work automatically, even when you're away";
|
|
6
|
+
readonly newTask: "New scheduled task";
|
|
7
|
+
readonly searchPlaceholder: "Search scheduled tasks";
|
|
8
|
+
readonly filterAll: "All";
|
|
9
|
+
readonly filterUpcoming: "Upcoming";
|
|
10
|
+
readonly filterCompleted: "Completed";
|
|
11
|
+
readonly loading: "Loading scheduled tasks…";
|
|
12
|
+
readonly empty: "No scheduled tasks yet";
|
|
13
|
+
readonly emptyHint: "Create one to run a prompt later — once or on a repeating schedule.";
|
|
14
|
+
readonly noResults: "No matches for “{{q}}”";
|
|
15
|
+
readonly loadError: "Couldn't load scheduled tasks.";
|
|
16
|
+
readonly loadMore: "Load more";
|
|
17
|
+
readonly statusActive: "Active";
|
|
18
|
+
readonly statusPaused: "Paused";
|
|
19
|
+
readonly statusCompleted: "Completed";
|
|
20
|
+
readonly statusUpcoming: "Upcoming";
|
|
21
|
+
readonly nextRun: "Next run {{time}}";
|
|
22
|
+
readonly nextRunIn: "Next run {{when}}";
|
|
23
|
+
readonly lastRun: "Last run {{time}}";
|
|
24
|
+
readonly dayAtTime: "{{day}} at {{time}}";
|
|
25
|
+
readonly pausedNotice: "Paused — runs won't start until you resume.";
|
|
26
|
+
readonly summaryOnce: "Once on {{time}}";
|
|
27
|
+
readonly summaryDaily: "Daily at {{time}}";
|
|
28
|
+
readonly summaryWeekdays: "Weekdays at {{time}}";
|
|
29
|
+
readonly summaryWeekly: "Every {{day}} at {{time}}";
|
|
30
|
+
readonly timezoneSuffix: "({{timezone}})";
|
|
31
|
+
readonly recurrenceNone: "Does not repeat";
|
|
32
|
+
readonly recurrenceDaily: "Daily";
|
|
33
|
+
readonly recurrenceWeekdays: "Weekdays (Mon–Fri)";
|
|
34
|
+
readonly recurrenceWeekly: "Weekly";
|
|
35
|
+
readonly dialogCreateTitle: "New scheduled task";
|
|
36
|
+
readonly dialogEditTitle: "Edit scheduled task";
|
|
37
|
+
readonly dialogHint: "You can change this later.";
|
|
38
|
+
readonly promptLabel: "What should the agent do?";
|
|
39
|
+
readonly promptPlaceholder: "Include everything the agent needs — each run starts a fresh conversation.";
|
|
40
|
+
readonly titleLabel: "Title (optional)";
|
|
41
|
+
readonly titlePlaceholder: "Shown in your scheduled list";
|
|
42
|
+
readonly whenLabel: "When";
|
|
43
|
+
readonly dateLabel: "Date";
|
|
44
|
+
readonly timeLabel: "Time";
|
|
45
|
+
readonly repeatLabel: "Repeat";
|
|
46
|
+
readonly timezoneLabel: "Timezone";
|
|
47
|
+
readonly timezoneSearchPlaceholder: "Search timezones…";
|
|
48
|
+
readonly timezoneNoMatch: "No matching timezone";
|
|
49
|
+
readonly create: "Create scheduled task";
|
|
50
|
+
readonly saveChanges: "Save changes";
|
|
51
|
+
readonly cancel: "Cancel";
|
|
52
|
+
readonly errorPromptRequired: "Write a prompt for the scheduled run.";
|
|
53
|
+
readonly errorPastTime: "Pick a time in the future.";
|
|
54
|
+
readonly errorTooFar: "Pick a time within the next year.";
|
|
55
|
+
readonly errorCreateFailed: "Couldn't create the schedule — try again.";
|
|
56
|
+
readonly errorUpdateFailed: "Couldn't save the changes — try again.";
|
|
57
|
+
readonly back: "Back to scheduled";
|
|
58
|
+
readonly pause: "Pause";
|
|
59
|
+
readonly resume: "Resume";
|
|
60
|
+
readonly resumedCompleted: "Its time already passed, so this one-time task is now completed.";
|
|
61
|
+
readonly runNow: "Run now";
|
|
62
|
+
readonly runNowStarted: "Run started — it will appear below.";
|
|
63
|
+
readonly edit: "Edit";
|
|
64
|
+
readonly delete: "Delete";
|
|
65
|
+
readonly deleteConfirmTitle: "Delete this scheduled task?";
|
|
66
|
+
readonly deleteConfirmBody: "Future runs are cancelled. Past runs and their conversations stay in your history.";
|
|
67
|
+
readonly deleteConfirm: "Delete";
|
|
68
|
+
readonly actionsMenu: "Schedule actions";
|
|
69
|
+
readonly actionFailed: "That didn't work — refresh and try again.";
|
|
70
|
+
readonly runsHeading: "Runs";
|
|
71
|
+
readonly runsCount_one: "{{count}} run";
|
|
72
|
+
readonly runsCount_other: "{{count}} runs";
|
|
73
|
+
readonly runsEmpty: "No runs yet — the first one appears here after it starts.";
|
|
74
|
+
readonly runsLoadError: "Couldn't load runs.";
|
|
75
|
+
readonly runStatusRunning: "Running";
|
|
76
|
+
readonly runStatusNeedsAttention: "Needs attention";
|
|
77
|
+
readonly runStatusCompleted: "Completed";
|
|
78
|
+
readonly runStatusFailed: "Failed";
|
|
79
|
+
readonly runNeedsAttentionHint: "Waiting for your input.";
|
|
80
|
+
readonly manualRun: "Manual run";
|
|
81
|
+
readonly openRun: "Open this run's conversation";
|
|
82
|
+
readonly detailLoadError: "Couldn't load this scheduled task.";
|
|
83
|
+
readonly detailGone: "This scheduled task no longer exists.";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare const scheduledEs: {
|
|
87
|
+
scheduled: {
|
|
88
|
+
viewTitle: string;
|
|
89
|
+
subtitle: string;
|
|
90
|
+
newTask: string;
|
|
91
|
+
searchPlaceholder: string;
|
|
92
|
+
filterAll: string;
|
|
93
|
+
filterUpcoming: string;
|
|
94
|
+
filterCompleted: string;
|
|
95
|
+
loading: string;
|
|
96
|
+
empty: string;
|
|
97
|
+
emptyHint: string;
|
|
98
|
+
noResults: string;
|
|
99
|
+
loadError: string;
|
|
100
|
+
loadMore: string;
|
|
101
|
+
statusActive: string;
|
|
102
|
+
statusPaused: string;
|
|
103
|
+
statusCompleted: string;
|
|
104
|
+
statusUpcoming: string;
|
|
105
|
+
nextRun: string;
|
|
106
|
+
nextRunIn: string;
|
|
107
|
+
lastRun: string;
|
|
108
|
+
dayAtTime: string;
|
|
109
|
+
pausedNotice: string;
|
|
110
|
+
summaryOnce: string;
|
|
111
|
+
summaryDaily: string;
|
|
112
|
+
summaryWeekdays: string;
|
|
113
|
+
summaryWeekly: string;
|
|
114
|
+
timezoneSuffix: string;
|
|
115
|
+
recurrenceNone: string;
|
|
116
|
+
recurrenceDaily: string;
|
|
117
|
+
recurrenceWeekdays: string;
|
|
118
|
+
recurrenceWeekly: string;
|
|
119
|
+
dialogCreateTitle: string;
|
|
120
|
+
dialogEditTitle: string;
|
|
121
|
+
dialogHint: string;
|
|
122
|
+
promptLabel: string;
|
|
123
|
+
promptPlaceholder: string;
|
|
124
|
+
titleLabel: string;
|
|
125
|
+
titlePlaceholder: string;
|
|
126
|
+
whenLabel: string;
|
|
127
|
+
dateLabel: string;
|
|
128
|
+
timeLabel: string;
|
|
129
|
+
repeatLabel: string;
|
|
130
|
+
timezoneLabel: string;
|
|
131
|
+
timezoneSearchPlaceholder: string;
|
|
132
|
+
timezoneNoMatch: string;
|
|
133
|
+
create: string;
|
|
134
|
+
saveChanges: string;
|
|
135
|
+
cancel: string;
|
|
136
|
+
errorPromptRequired: string;
|
|
137
|
+
errorPastTime: string;
|
|
138
|
+
errorTooFar: string;
|
|
139
|
+
errorCreateFailed: string;
|
|
140
|
+
errorUpdateFailed: string;
|
|
141
|
+
back: string;
|
|
142
|
+
pause: string;
|
|
143
|
+
resume: string;
|
|
144
|
+
resumedCompleted: string;
|
|
145
|
+
runNow: string;
|
|
146
|
+
runNowStarted: string;
|
|
147
|
+
edit: string;
|
|
148
|
+
delete: string;
|
|
149
|
+
deleteConfirmTitle: string;
|
|
150
|
+
deleteConfirmBody: string;
|
|
151
|
+
deleteConfirm: string;
|
|
152
|
+
actionsMenu: string;
|
|
153
|
+
actionFailed: string;
|
|
154
|
+
runsHeading: string;
|
|
155
|
+
runsCount_one: string;
|
|
156
|
+
runsCount_other: string;
|
|
157
|
+
runsEmpty: string;
|
|
158
|
+
runsLoadError: string;
|
|
159
|
+
runStatusRunning: string;
|
|
160
|
+
runStatusNeedsAttention: string;
|
|
161
|
+
runStatusCompleted: string;
|
|
162
|
+
runStatusFailed: string;
|
|
163
|
+
runNeedsAttentionHint: string;
|
|
164
|
+
manualRun: string;
|
|
165
|
+
openRun: string;
|
|
166
|
+
detailLoadError: string;
|
|
167
|
+
detailGone: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export declare const scheduledPt: {
|
|
171
|
+
scheduled: {
|
|
172
|
+
viewTitle: string;
|
|
173
|
+
subtitle: string;
|
|
174
|
+
newTask: string;
|
|
175
|
+
searchPlaceholder: string;
|
|
176
|
+
filterAll: string;
|
|
177
|
+
filterUpcoming: string;
|
|
178
|
+
filterCompleted: string;
|
|
179
|
+
loading: string;
|
|
180
|
+
empty: string;
|
|
181
|
+
emptyHint: string;
|
|
182
|
+
noResults: string;
|
|
183
|
+
loadError: string;
|
|
184
|
+
loadMore: string;
|
|
185
|
+
statusActive: string;
|
|
186
|
+
statusPaused: string;
|
|
187
|
+
statusCompleted: string;
|
|
188
|
+
statusUpcoming: string;
|
|
189
|
+
nextRun: string;
|
|
190
|
+
nextRunIn: string;
|
|
191
|
+
lastRun: string;
|
|
192
|
+
dayAtTime: string;
|
|
193
|
+
pausedNotice: string;
|
|
194
|
+
summaryOnce: string;
|
|
195
|
+
summaryDaily: string;
|
|
196
|
+
summaryWeekdays: string;
|
|
197
|
+
summaryWeekly: string;
|
|
198
|
+
timezoneSuffix: string;
|
|
199
|
+
recurrenceNone: string;
|
|
200
|
+
recurrenceDaily: string;
|
|
201
|
+
recurrenceWeekdays: string;
|
|
202
|
+
recurrenceWeekly: string;
|
|
203
|
+
dialogCreateTitle: string;
|
|
204
|
+
dialogEditTitle: string;
|
|
205
|
+
dialogHint: string;
|
|
206
|
+
promptLabel: string;
|
|
207
|
+
promptPlaceholder: string;
|
|
208
|
+
titleLabel: string;
|
|
209
|
+
titlePlaceholder: string;
|
|
210
|
+
whenLabel: string;
|
|
211
|
+
dateLabel: string;
|
|
212
|
+
timeLabel: string;
|
|
213
|
+
repeatLabel: string;
|
|
214
|
+
timezoneLabel: string;
|
|
215
|
+
timezoneSearchPlaceholder: string;
|
|
216
|
+
timezoneNoMatch: string;
|
|
217
|
+
create: string;
|
|
218
|
+
saveChanges: string;
|
|
219
|
+
cancel: string;
|
|
220
|
+
errorPromptRequired: string;
|
|
221
|
+
errorPastTime: string;
|
|
222
|
+
errorTooFar: string;
|
|
223
|
+
errorCreateFailed: string;
|
|
224
|
+
errorUpdateFailed: string;
|
|
225
|
+
back: string;
|
|
226
|
+
pause: string;
|
|
227
|
+
resume: string;
|
|
228
|
+
resumedCompleted: string;
|
|
229
|
+
runNow: string;
|
|
230
|
+
runNowStarted: string;
|
|
231
|
+
edit: string;
|
|
232
|
+
delete: string;
|
|
233
|
+
deleteConfirmTitle: string;
|
|
234
|
+
deleteConfirmBody: string;
|
|
235
|
+
deleteConfirm: string;
|
|
236
|
+
actionsMenu: string;
|
|
237
|
+
actionFailed: string;
|
|
238
|
+
runsHeading: string;
|
|
239
|
+
runsCount_one: string;
|
|
240
|
+
runsCount_other: string;
|
|
241
|
+
runsEmpty: string;
|
|
242
|
+
runsLoadError: string;
|
|
243
|
+
runStatusRunning: string;
|
|
244
|
+
runStatusNeedsAttention: string;
|
|
245
|
+
runStatusCompleted: string;
|
|
246
|
+
runStatusFailed: string;
|
|
247
|
+
runNeedsAttentionHint: string;
|
|
248
|
+
manualRun: string;
|
|
249
|
+
openRun: string;
|
|
250
|
+
detailLoadError: string;
|
|
251
|
+
detailGone: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React-18-compatible implementation of the `useEffectEvent` contract.
|
|
3
|
+
*
|
|
4
|
+
* The component build externalizes React, so importing React 19's native
|
|
5
|
+
* `useEffectEvent` would make the dock fail at runtime in a React 18 host.
|
|
6
|
+
* Keep this compatibility boundary local until React 19 is the minimum host
|
|
7
|
+
* version again.
|
|
8
|
+
*
|
|
9
|
+
* Same contract as React's: stable identity across renders, always sees the
|
|
10
|
+
* latest props/state, and must NOT be called during render — only from an
|
|
11
|
+
* effect, a timer, or an event handler.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useEffectEvent: <TArgs extends readonly unknown[], TResult>(callback: (...args: TArgs) => TResult) => ((...args: TArgs) => TResult);
|
package/dist/routes/chat.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export type QueuedMessage = {
|
|
|
25
25
|
readonly submittedAt: number;
|
|
26
26
|
readonly state: "queued" | "failed";
|
|
27
27
|
};
|
|
28
|
-
export declare const ChatRoute: ({ sessionId }?: {
|
|
29
|
-
sessionId?: string;
|
|
28
|
+
export declare const ChatRoute: ({ sessionId, reconcileBackgroundRun, }?: {
|
|
29
|
+
readonly sessionId?: string;
|
|
30
|
+
readonly reconcileBackgroundRun?: boolean;
|
|
30
31
|
}) => import("react").JSX.Element;
|
|
@@ -70,6 +70,15 @@ export declare const readResumableStreamState: (workspaceId?: string | null) =>
|
|
|
70
70
|
* the pointer entirely, so a fresh `belong-chat-<id>` is generated (New chat).
|
|
71
71
|
*/
|
|
72
72
|
export declare const setActiveSessionId: (sessionId: string | null) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Select a conversation together with a known live Belong run. Scheduled
|
|
75
|
+
* occurrences start outside `BelongChatTransport`, so their run cursor enters
|
|
76
|
+
* the normal reload/resume path here when the user explicitly opens one.
|
|
77
|
+
*/
|
|
78
|
+
export declare const setActiveRunStream: (input: {
|
|
79
|
+
readonly sessionId: string;
|
|
80
|
+
readonly runId: string;
|
|
81
|
+
}) => void;
|
|
73
82
|
/**
|
|
74
83
|
* Subscribe to active-session-pointer changes. Pairs with
|
|
75
84
|
* {@link peekActiveSessionId} for `useSyncExternalStore`. Returns an
|
package/dist/types/public.d.ts
CHANGED
|
@@ -39,6 +39,25 @@ export type BelongThemeBrand = {
|
|
|
39
39
|
* back to the default Belong mark when absent. Validated at the perimeter. */
|
|
40
40
|
readonly logo?: string;
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Per-locale override of the domain-specific welcome copy (BEL-135). The dock
|
|
44
|
+
* ships GENERIC assistant copy by default; a tenant with domain vocabulary
|
|
45
|
+
* (e.g. Simetrik's "reconciliations") supplies it here — via its theme preset
|
|
46
|
+
* or its published `theme.json` — so the default stays neutral for every host.
|
|
47
|
+
* Only these four fields are overridable; the rest of the dock chrome is
|
|
48
|
+
* product-agnostic and never carries tenant vocabulary.
|
|
49
|
+
*/
|
|
50
|
+
export type DockWelcomeCopy = {
|
|
51
|
+
/** Welcome-card subtitle. */
|
|
52
|
+
readonly subtitle?: string;
|
|
53
|
+
/** Welcome-card capability LABELS (icons keep their DOCK_COPY position). */
|
|
54
|
+
readonly capabilities?: readonly string[];
|
|
55
|
+
/** Empty-state intro body. */
|
|
56
|
+
readonly introBody?: string;
|
|
57
|
+
/** Quick-start suggestion chips. */
|
|
58
|
+
readonly suggestions?: readonly string[];
|
|
59
|
+
};
|
|
60
|
+
export type DockCopyOverride = Partial<Record<BelongLocale, DockWelcomeCopy>>;
|
|
42
61
|
export type BelongTheme = {
|
|
43
62
|
readonly mode: BelongThemeMode;
|
|
44
63
|
readonly side: BelongThemeSide;
|
|
@@ -57,6 +76,8 @@ export type BelongTheme = {
|
|
|
57
76
|
readonly accent?: string;
|
|
58
77
|
/** Custom CSS custom-property overrides, projected last so they win over theme vars. */
|
|
59
78
|
readonly cssVars?: Record<string, string>;
|
|
79
|
+
/** Per-locale welcome-copy override (BEL-135); absent → generic dock copy. */
|
|
80
|
+
readonly copy?: DockCopyOverride;
|
|
60
81
|
};
|
|
61
82
|
/**
|
|
62
83
|
* Deep-partial of `BelongTheme`. Every layer is optional so a caller
|
|
@@ -79,6 +100,8 @@ export type PartialBelongTheme = {
|
|
|
79
100
|
readonly accent?: string;
|
|
80
101
|
/** Custom CSS custom-property overrides, projected last so they win over theme vars. */
|
|
81
102
|
readonly cssVars?: Record<string, string>;
|
|
103
|
+
/** Per-locale welcome-copy override (BEL-135). */
|
|
104
|
+
readonly copy?: DockCopyOverride;
|
|
82
105
|
};
|
|
83
106
|
/** Built-in theme presets selectable via `belong.applyPreset(name)`. */
|
|
84
107
|
export type PresetName = "belong" | "simetrik" | "custom";
|
|
@@ -87,6 +110,14 @@ export type BelongLocale = "en" | "es" | "pt";
|
|
|
87
110
|
export type BelongInitInput = {
|
|
88
111
|
/** Belong cloud base URL, e.g. `https://api.belong.host` or `http://localhost:8787`. */
|
|
89
112
|
readonly apiBaseUrl: string;
|
|
113
|
+
/**
|
|
114
|
+
* Public tenant slug (BEL-129, multi-tenant deployments). Used for
|
|
115
|
+
* boot-time, unauthenticated surfaces only — the theme fetch adds
|
|
116
|
+
* `?tenant=<slug>` and every request carries it as `X-Belong-Tenant`
|
|
117
|
+
* (observability). Authenticated routes derive the tenant from the JWT;
|
|
118
|
+
* this value can never escalate. Omit on single-tenant deployments.
|
|
119
|
+
*/
|
|
120
|
+
readonly tenant?: string;
|
|
90
121
|
/**
|
|
91
122
|
* Dock UI language. When omitted the dock auto-detects: a stored user choice
|
|
92
123
|
* ▸ the browser language ▸ English. Set it to default the deployment's
|
|
@@ -131,13 +162,17 @@ export type BelongInitInput = {
|
|
|
131
162
|
readonly ttsChunkGapMs?: number;
|
|
132
163
|
};
|
|
133
164
|
/**
|
|
134
|
-
* Agent-grant (delegated CLI session) host context. The grant
|
|
135
|
-
*
|
|
136
|
-
* `scopeUrlParam` here, or `setWorkspace` — the dock
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
165
|
+
* Agent-grant (delegated CLI session) host context. The grant follows the
|
|
166
|
+
* ACTIVE WORKSPACE: whenever one is in scope — via `scopeExternalId` /
|
|
167
|
+
* `scopeUrlParam` here, or `setWorkspace` — the dock silently establishes and
|
|
168
|
+
* refreshes a delegated CLI session for it (using the default provider), with
|
|
169
|
+
* NO user-facing UI. There is no consent card, connect button, or expiry
|
|
170
|
+
* banner: the session connects on first use and re-grants itself before
|
|
171
|
+
* expiry, in every execution mode. It is non-blocking — chat works without a
|
|
172
|
+
* grant (the agent falls back to CLI device-login in the terminal). This
|
|
173
|
+
* object is OPTIONAL: set it only to pick a non-default `provider` or to track
|
|
174
|
+
* the workspace from a URL param. With no workspace in scope at all, no grant
|
|
175
|
+
* is attempted.
|
|
141
176
|
*/
|
|
142
177
|
readonly agentGrant?: {
|
|
143
178
|
/** Grant provider key. Defaults to `"simetrik"`. */
|
|
@@ -147,8 +182,8 @@ export type BelongInitInput = {
|
|
|
147
182
|
/**
|
|
148
183
|
* Track the scope LIVE from this page-URL search param (e.g. `"w"`,
|
|
149
184
|
* Simetrik's active-workspace param). When the host SPA switches
|
|
150
|
-
* workspace, the dock
|
|
151
|
-
* single-workspace, so each workspace
|
|
185
|
+
* workspace, the dock silently connects the new one — a grant is
|
|
186
|
+
* single-workspace, so each workspace gets its own. Takes precedence
|
|
152
187
|
* over a static `scopeExternalId` whenever the param is present.
|
|
153
188
|
*/
|
|
154
189
|
readonly scopeUrlParam?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belonguniverseai/react-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Belong — embeddable React AI assistant dock. Mount <BelongWidget> in your app tree with getToken dependency-injection auth.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"./dist/component/index.js"
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"react": ">=
|
|
24
|
-
"react-dom": ">=
|
|
23
|
+
"react": ">=18.2.0",
|
|
24
|
+
"react-dom": ">=18.2.0"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"belong",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BelongThemeBrand, BelongThemePalette } from '../../types/public.ts';
|
|
2
|
-
/**
|
|
3
|
-
* The agent-grant consent surface, rendered above the chat thread.
|
|
4
|
-
* Non-blocking: chat works without a grant (the agent falls back to
|
|
5
|
-
* device login in the terminal); this card just offers/states the
|
|
6
|
-
* delegated CLI session.
|
|
7
|
-
*
|
|
8
|
-
* none / expired / revoked → consent (or re-consent) prompt
|
|
9
|
-
* active → slim "connected until <time>" row + revoke
|
|
10
|
-
* unconfigured embed → renders nothing (host didn't pass a scope)
|
|
11
|
-
*
|
|
12
|
-
* The scope (the host's active workspace) comes from the shared
|
|
13
|
-
* workspace-scope store (embed/workspace-scope.ts — one URL poll +
|
|
14
|
-
* `belong.setWorkspace`, shared with the session list / Files tab / chat):
|
|
15
|
-
* switching workspace re-keys the status query — a grant is
|
|
16
|
-
* single-workspace, so the new workspace prompts its own consent, and
|
|
17
|
-
* dismissal is per-workspace.
|
|
18
|
-
*
|
|
19
|
-
* The Allow click POSTs with the same host web JWT every API call
|
|
20
|
-
* carries; only status + expiry ever come back — never tokens.
|
|
21
|
-
*/
|
|
22
|
-
type AgentGrantCardProps = {
|
|
23
|
-
readonly palette: BelongThemePalette;
|
|
24
|
-
readonly brand: BelongThemeBrand;
|
|
25
|
-
};
|
|
26
|
-
export declare function AgentGrantCard({ palette, brand }: AgentGrantCardProps): import("react").JSX.Element | null;
|
|
27
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/** Agent-grant consent card dock strings. */
|
|
2
|
-
export declare const agentGrantEn: {
|
|
3
|
-
readonly agentGrant: {
|
|
4
|
-
readonly headlineExpired: "Your agent session expired";
|
|
5
|
-
readonly headlineRevoked: "Agent session disconnected";
|
|
6
|
-
readonly headlineNone: "Let the {{name}} agent use the CLI in the background";
|
|
7
|
-
readonly body: "It acts on your behalf in your current workspace — time-limited (24 h), revocable anytime.";
|
|
8
|
-
readonly connected: "{{name}} agent connected";
|
|
9
|
-
readonly connectedUntil: "{{name}} agent connected · until {{until}}";
|
|
10
|
-
readonly disconnect: "Disconnect";
|
|
11
|
-
readonly ctaAllow: "Allow";
|
|
12
|
-
readonly ctaReconnect: "Reconnect";
|
|
13
|
-
readonly notNow: "Not now";
|
|
14
|
-
readonly errorNotScopeMember: "Your {{name}} user isn't a member of this workspace, so the agent can't connect here. Switch to a workspace you belong to.";
|
|
15
|
-
readonly errorScopeSessionLimit: "This workspace is at its limit of active agent connections. We tried to free one up — reload and reconnect, or try again in a moment.";
|
|
16
|
-
readonly errorAuthTokenAlreadyUsed: "Reconnecting needs a fresh {{name}} sign-in — the last one was just used to connect. It refreshes on your next page reload, or on its own in a few minutes.";
|
|
17
|
-
readonly errorGrantRejected: "Simetrik declined the connection. This is usually a permissions or workspace issue — if it persists, contact Simetrik support.";
|
|
18
|
-
readonly errorGeneric: "Couldn't connect the agent session. Try again.";
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export declare const agentGrantEs: {
|
|
22
|
-
agentGrant: {
|
|
23
|
-
headlineExpired: string;
|
|
24
|
-
headlineRevoked: string;
|
|
25
|
-
headlineNone: string;
|
|
26
|
-
body: string;
|
|
27
|
-
connected: string;
|
|
28
|
-
connectedUntil: string;
|
|
29
|
-
disconnect: string;
|
|
30
|
-
ctaAllow: string;
|
|
31
|
-
ctaReconnect: string;
|
|
32
|
-
notNow: string;
|
|
33
|
-
errorNotScopeMember: string;
|
|
34
|
-
errorScopeSessionLimit: string;
|
|
35
|
-
errorAuthTokenAlreadyUsed: string;
|
|
36
|
-
errorGrantRejected: string;
|
|
37
|
-
errorGeneric: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export declare const agentGrantPt: {
|
|
41
|
-
agentGrant: {
|
|
42
|
-
headlineExpired: string;
|
|
43
|
-
headlineRevoked: string;
|
|
44
|
-
headlineNone: string;
|
|
45
|
-
body: string;
|
|
46
|
-
connected: string;
|
|
47
|
-
connectedUntil: string;
|
|
48
|
-
disconnect: string;
|
|
49
|
-
ctaAllow: string;
|
|
50
|
-
ctaReconnect: string;
|
|
51
|
-
notNow: string;
|
|
52
|
-
errorNotScopeMember: string;
|
|
53
|
-
errorScopeSessionLimit: string;
|
|
54
|
-
errorAuthTokenAlreadyUsed: string;
|
|
55
|
-
errorGrantRejected: string;
|
|
56
|
-
errorGeneric: string;
|
|
57
|
-
};
|
|
58
|
-
};
|