@belonguniverseai/react-sdk 0.1.2-test → 0.1.3
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/api/client.d.ts +325 -0
- package/dist/api/mutations.d.ts +5 -0
- package/dist/app/providers.d.ts +1 -1
- package/dist/component/BelongWidget.d.ts +7 -1
- package/dist/component/{arc-ClnntNLl.js → arc-Dftg9hbM.js} +2 -2
- package/dist/component/{architectureDiagram-3BPJPVTR-D8QFVg9W.js → architectureDiagram-3BPJPVTR-LDQnfAgM.js} +3 -3
- package/dist/component/{blockDiagram-GPEHLZMM-DYSn7PMc.js → blockDiagram-GPEHLZMM-7C0jnncw.js} +4 -4
- package/dist/component/{c4Diagram-AAUBKEIU-D6rKddOJ.js → c4Diagram-AAUBKEIU-BGEe9CdO.js} +3 -3
- package/dist/component/{channel-DW2ManGj.js → channel-CsGW22vj.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-B8LRyPCC.js → chunk-2J33WTMH-Dg3NXbVg.js} +2 -2
- package/dist/component/{chunk-4BX2VUAB-BIUTQbdt.js → chunk-4BX2VUAB-BDtEKe-l.js} +2 -2
- package/dist/component/{chunk-55IACEB6-DXU7hmZ8.js → chunk-55IACEB6-Da2BRT6c.js} +2 -2
- package/dist/component/{chunk-727SXJPM-4CPpHs4E.js → chunk-727SXJPM-DhH-ppYY.js} +6 -6
- package/dist/component/{chunk-AQP2D5EJ-Dd2So5lz.js → chunk-AQP2D5EJ-D8PxFJHV.js} +4 -4
- package/dist/component/{chunk-FMBD7UC4-M2URUA_B.js → chunk-FMBD7UC4--IsNL9At.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM--zFug_bl.js → chunk-ND2GUHAM-DbdImadK.js} +2 -2
- package/dist/component/{chunk-QZHKN3VN-Lja8gJJ2.js → chunk-QZHKN3VN-6IxJ3-HB.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-ByBdtBMW.js → classDiagram-4FO5ZUOK-BhkVSVk_.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-ByBdtBMW.js → classDiagram-v2-Q7XG4LA2-BhkVSVk_.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BGLcfJOp.js → cose-bilkent-S5V4N54A-_2z1EHfc.js} +2 -2
- package/dist/component/{dagre-BM42HDAG-gUIPqofh.js → dagre-BM42HDAG-DlKG5hsO.js} +2 -2
- package/dist/component/{diagram-2AECGRRQ-Ol5RCxQg.js → diagram-2AECGRRQ-CFAaADeR.js} +3 -3
- package/dist/component/{diagram-5GNKFQAL-D3TB3Ss7.js → diagram-5GNKFQAL-ZJ957Qm9.js} +4 -4
- package/dist/component/{diagram-KO2AKTUF-dDG-kE2H.js → diagram-KO2AKTUF-CROmuIwX.js} +3 -3
- package/dist/component/{diagram-LMA3HP47-Dgm3BLKl.js → diagram-LMA3HP47-4YR2hh1P.js} +3 -3
- package/dist/component/{diagram-OG6HWLK6-BAmsZpjz.js → diagram-OG6HWLK6-CfsgJnIX.js} +4 -4
- package/dist/component/{erDiagram-TEJ5UH35-D9UW1QvG.js → erDiagram-TEJ5UH35-BajpSizj.js} +5 -5
- package/dist/component/{flowDiagram-I6XJVG4X-SOEkhuFV.js → flowDiagram-I6XJVG4X-DYfoJvQB.js} +7 -7
- package/dist/component/{ganttDiagram-6RSMTGT7-s1eNb9P4.js → ganttDiagram-6RSMTGT7-DxWg1-cU.js} +3 -3
- package/dist/component/{gitGraphDiagram-PVQCEYII-D6o45CIG.js → gitGraphDiagram-PVQCEYII-DPfijUuS.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-DCWqY_yf.js → highlighted-body-OFNGDK62-BFpReqjo.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-CXHQ6Vnm.js → infoDiagram-5YYISTIA-Cs3ZkSNq.js} +2 -2
- package/dist/component/{ishikawaDiagram-YF4QCWOH-BmxO3Gkg.js → ishikawaDiagram-YF4QCWOH-wgyW2oOS.js} +2 -2
- package/dist/component/{journeyDiagram-JHISSGLW-C7ys4xde.js → journeyDiagram-JHISSGLW-qvEHDcP8.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-DEEV2Kv6.js → kanban-definition-UN3LZRKU-CS8E5I3H.js} +3 -3
- package/dist/component/{linear-BQBvUsOR.js → linear-DSEm-mVJ.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-1aGP4QQW.js → mermaid-GHXKKRXX-mE-t6fEG.js} +30706 -28006
- package/dist/component/{mindmap-definition-RKZ34NQL-i3GAP7VM.js → mindmap-definition-RKZ34NQL-4eLujZip.js} +4 -4
- package/dist/component/{pieDiagram-4H26LBE5-DP9mZsP4.js → pieDiagram-4H26LBE5-Bv3aeU7h.js} +4 -4
- package/dist/component/{quadrantDiagram-W4KKPZXB-t9x-0vit.js → quadrantDiagram-W4KKPZXB-BlpxPqAT.js} +3 -3
- package/dist/component/{requirementDiagram-4Y6WPE33-i6QsEhbZ.js → requirementDiagram-4Y6WPE33-DGG1FxFS.js} +4 -4
- package/dist/component/{sankeyDiagram-5OEKKPKP-ThVPBLEW.js → sankeyDiagram-5OEKKPKP-CQ-jfvW-.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-BdID8uKT.js → sequenceDiagram-3UESZ5HK-Ck-VbsGz.js} +4 -4
- package/dist/component/{stateDiagram-AJRCARHV-DJfc2LKC.js → stateDiagram-AJRCARHV-KlZdFGFQ.js} +3 -3
- package/dist/component/{stateDiagram-v2-BHNVJYJU-DP5w8Mzi.js → stateDiagram-v2-BHNVJYJU-Djoz6HMn.js} +3 -3
- package/dist/component/{timeline-definition-PNZ67QCA-BJlmSrW0.js → timeline-definition-PNZ67QCA-C3x7MWUx.js} +3 -3
- package/dist/component/{vennDiagram-CIIHVFJN-qnqVpoRX.js → vennDiagram-CIIHVFJN-B4SXjWyu.js} +2 -2
- package/dist/component/{wardleyDiagram-YWT4CUSO-JyvEkozK.js → wardleyDiagram-YWT4CUSO-B_0Q8QFc.js} +3 -3
- package/dist/component/{xychartDiagram-2RQKCTM6-CsTpP9ba.js → xychartDiagram-2RQKCTM6-yIfLkIZO.js} +3 -3
- package/dist/components/embed/EmbedRail.d.ts +2 -1
- package/dist/components/embed/EmbedSessions.d.ts +6 -4
- package/dist/components/embed/MentionInput.d.ts +10 -0
- package/dist/dev-modal-repro.d.ts +0 -0
- package/dist/embed/auto-embed.d.ts +1 -1
- package/dist/embed/dock-layout.d.ts +32 -0
- package/dist/embed/locale.d.ts +24 -5
- package/dist/i18n/i18n.d.ts +6 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/messages/en.d.ts +347 -0
- package/dist/i18n/messages/es.d.ts +3 -0
- package/dist/i18n/messages/surfaces/agentGrant.d.ts +39 -0
- package/dist/i18n/messages/surfaces/aiElements.d.ts +101 -0
- package/dist/i18n/messages/surfaces/app.d.ts +31 -0
- package/dist/i18n/messages/surfaces/embedMisc.d.ts +96 -0
- package/dist/i18n/messages/surfaces/feedback.d.ts +19 -0
- package/dist/i18n/messages/surfaces/files.d.ts +75 -0
- package/dist/i18n/messages/surfaces/header.d.ts +31 -0
- package/dist/i18n/messages/surfaces/login.d.ts +17 -0
- package/dist/i18n/messages/surfaces/plan.d.ts +35 -0
- package/dist/i18n/messages/surfaces/sessions.d.ts +43 -0
- package/dist/i18n/messages/surfaces/stream.d.ts +144 -0
- package/dist/i18n/messages/surfaces/usage.d.ts +21 -0
- package/dist/i18n/messages/types.d.ts +10 -0
- package/dist/stream/ai-sdk-part-renderers.d.ts +2 -1
- package/dist/types/public.d.ts +9 -4
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/** Files dock strings. */
|
|
2
|
+
export declare const filesEn: {
|
|
3
|
+
readonly files: {
|
|
4
|
+
readonly refreshFiles: "Refresh files";
|
|
5
|
+
readonly searchDocumentsPlaceholder: "Search documents…";
|
|
6
|
+
readonly searchDocuments: "Search documents";
|
|
7
|
+
readonly noFilesYet: "No files yet";
|
|
8
|
+
readonly noFilesHint: "Ask Belong to create some, or drop a file below.";
|
|
9
|
+
readonly uploading: "Uploading…";
|
|
10
|
+
readonly dropFilesOrBrowse: "Drop files here or browse";
|
|
11
|
+
readonly supportedTypes: "Supports PDF, DOC, MD, TXT, XLSX";
|
|
12
|
+
readonly previewFile: "Preview {{filename}}";
|
|
13
|
+
readonly downloadFile: "Download {{filename}}";
|
|
14
|
+
readonly uploadedInConversation: "Uploaded in this conversation";
|
|
15
|
+
readonly noInlinePreview: "No inline preview for {{mimeType}}.";
|
|
16
|
+
readonly download: "Download";
|
|
17
|
+
readonly loadingPreview: "Loading preview…";
|
|
18
|
+
readonly truncatedNotice: "… (truncated — download for the full file)";
|
|
19
|
+
readonly previewGenerateFailed: "Couldn't generate a preview.";
|
|
20
|
+
readonly previewTooLong: "Preview is taking too long.";
|
|
21
|
+
readonly previewUnavailable: "Can't preview this file — download it instead.";
|
|
22
|
+
readonly generatingPreview: "Generating preview…";
|
|
23
|
+
readonly pageAlt: "{{filename}} page {{page}}";
|
|
24
|
+
readonly previewOf: "Preview of {{filename}}";
|
|
25
|
+
readonly searchWorkspacePlaceholder: "Search workspace files…";
|
|
26
|
+
readonly searchWorkspace: "Search workspace files";
|
|
27
|
+
readonly workspaceFiles: "Workspace files";
|
|
28
|
+
readonly refresh: "Refresh";
|
|
29
|
+
readonly refreshWorkspaceFiles: "Refresh workspace files";
|
|
30
|
+
readonly workspaceEmpty: "No files yet — what Claude writes in your workspace shows up here.";
|
|
31
|
+
readonly noMatches: "No matches.";
|
|
32
|
+
readonly ageJustNow: "just now";
|
|
33
|
+
readonly ageMinutes: "{{count}}m ago";
|
|
34
|
+
readonly ageHours: "{{count}}h ago";
|
|
35
|
+
readonly ageDays: "{{count}}d ago";
|
|
36
|
+
readonly attachmentFallback: "attachment";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const filesEs: {
|
|
40
|
+
files: {
|
|
41
|
+
refreshFiles: string;
|
|
42
|
+
searchDocumentsPlaceholder: string;
|
|
43
|
+
searchDocuments: string;
|
|
44
|
+
noFilesYet: string;
|
|
45
|
+
noFilesHint: string;
|
|
46
|
+
uploading: string;
|
|
47
|
+
dropFilesOrBrowse: string;
|
|
48
|
+
supportedTypes: string;
|
|
49
|
+
previewFile: string;
|
|
50
|
+
downloadFile: string;
|
|
51
|
+
uploadedInConversation: string;
|
|
52
|
+
noInlinePreview: string;
|
|
53
|
+
download: string;
|
|
54
|
+
loadingPreview: string;
|
|
55
|
+
truncatedNotice: string;
|
|
56
|
+
previewGenerateFailed: string;
|
|
57
|
+
previewTooLong: string;
|
|
58
|
+
previewUnavailable: string;
|
|
59
|
+
generatingPreview: string;
|
|
60
|
+
pageAlt: string;
|
|
61
|
+
previewOf: string;
|
|
62
|
+
searchWorkspacePlaceholder: string;
|
|
63
|
+
searchWorkspace: string;
|
|
64
|
+
workspaceFiles: string;
|
|
65
|
+
refresh: string;
|
|
66
|
+
refreshWorkspaceFiles: string;
|
|
67
|
+
workspaceEmpty: string;
|
|
68
|
+
noMatches: string;
|
|
69
|
+
ageJustNow: string;
|
|
70
|
+
ageMinutes: string;
|
|
71
|
+
ageHours: string;
|
|
72
|
+
ageDays: string;
|
|
73
|
+
attachmentFallback: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Header and rail dock strings. */
|
|
2
|
+
export declare const headerEn: {
|
|
3
|
+
readonly header: {
|
|
4
|
+
readonly byBelong: "by Belong";
|
|
5
|
+
readonly navChat: "Chat";
|
|
6
|
+
readonly navFiles: "Files";
|
|
7
|
+
readonly chatPlanRunning: "Chat — plan running, {{completed}} of {{total}} steps done";
|
|
8
|
+
readonly devMode: "Dev mode";
|
|
9
|
+
readonly devModeTitle: "Dev mode (belong:dev)";
|
|
10
|
+
readonly muteReplies: "Mute replies";
|
|
11
|
+
readonly readRepliesAloud: "Read replies aloud";
|
|
12
|
+
readonly speechNotSupported: "Speech not supported";
|
|
13
|
+
readonly expand: "Expand";
|
|
14
|
+
readonly collapse: "Collapse";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const headerEs: {
|
|
18
|
+
header: {
|
|
19
|
+
byBelong: string;
|
|
20
|
+
navChat: string;
|
|
21
|
+
navFiles: string;
|
|
22
|
+
chatPlanRunning: string;
|
|
23
|
+
devMode: string;
|
|
24
|
+
devModeTitle: string;
|
|
25
|
+
muteReplies: string;
|
|
26
|
+
readRepliesAloud: string;
|
|
27
|
+
speechNotSupported: string;
|
|
28
|
+
expand: string;
|
|
29
|
+
collapse: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Login dock strings. */
|
|
2
|
+
export declare const loginEn: {
|
|
3
|
+
readonly login: {
|
|
4
|
+
readonly welcome: "Welcome to {{name}}";
|
|
5
|
+
readonly byBelong: "by Belong";
|
|
6
|
+
readonly signInPrompt: "Sign in to start chatting.";
|
|
7
|
+
readonly signIn: "Sign in";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const loginEs: {
|
|
11
|
+
login: {
|
|
12
|
+
welcome: string;
|
|
13
|
+
byBelong: string;
|
|
14
|
+
signInPrompt: string;
|
|
15
|
+
signIn: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Plan dock strings. */
|
|
2
|
+
export declare const planEn: {
|
|
3
|
+
readonly plan: {
|
|
4
|
+
readonly cueReady: "Plan ready — View";
|
|
5
|
+
readonly fallbackTitle: "Plan";
|
|
6
|
+
readonly closeLabel: "Close plan";
|
|
7
|
+
readonly emptyState: "No plan yet. Ask the agent to plan something.";
|
|
8
|
+
readonly resizeLabel: "Resize plan";
|
|
9
|
+
readonly stepCompleted: "completed";
|
|
10
|
+
readonly stepFailed: "failed";
|
|
11
|
+
readonly stepPending: "pending";
|
|
12
|
+
readonly progressDone: "done";
|
|
13
|
+
readonly failedPrefix: "Failed:";
|
|
14
|
+
readonly failedHelp: "Tell me what to do";
|
|
15
|
+
readonly approveAndRun: "Approve & run";
|
|
16
|
+
readonly reject: "Reject";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const planEs: {
|
|
20
|
+
plan: {
|
|
21
|
+
cueReady: string;
|
|
22
|
+
fallbackTitle: string;
|
|
23
|
+
closeLabel: string;
|
|
24
|
+
emptyState: string;
|
|
25
|
+
resizeLabel: string;
|
|
26
|
+
stepCompleted: string;
|
|
27
|
+
stepFailed: string;
|
|
28
|
+
stepPending: string;
|
|
29
|
+
progressDone: string;
|
|
30
|
+
failedPrefix: string;
|
|
31
|
+
failedHelp: string;
|
|
32
|
+
approveAndRun: string;
|
|
33
|
+
reject: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** Sessions dock strings. */
|
|
2
|
+
export declare const sessionsEn: {
|
|
3
|
+
readonly sessions: {
|
|
4
|
+
readonly chats: "Chats";
|
|
5
|
+
readonly newChat: "New chat";
|
|
6
|
+
readonly noChatsYet: "No chats yet";
|
|
7
|
+
readonly untitledChat: "Untitled chat";
|
|
8
|
+
readonly confirmDelete: "Confirm delete";
|
|
9
|
+
readonly cancelDelete: "Cancel delete";
|
|
10
|
+
readonly deleteChat: "Delete chat";
|
|
11
|
+
readonly renameChat: "Rename chat";
|
|
12
|
+
readonly chatName: "Chat name";
|
|
13
|
+
readonly saveName: "Save name";
|
|
14
|
+
readonly cancelRename: "Cancel rename";
|
|
15
|
+
readonly recentSessions: "Recent sessions";
|
|
16
|
+
readonly loading: "Loading…";
|
|
17
|
+
readonly failedToLoad: "Failed to load: {{message}}";
|
|
18
|
+
readonly noSessionsYet: "No sessions yet.";
|
|
19
|
+
readonly untitledSession: "Untitled session";
|
|
20
|
+
readonly updated: "updated";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const sessionsEs: {
|
|
24
|
+
sessions: {
|
|
25
|
+
chats: string;
|
|
26
|
+
newChat: string;
|
|
27
|
+
noChatsYet: string;
|
|
28
|
+
untitledChat: string;
|
|
29
|
+
confirmDelete: string;
|
|
30
|
+
cancelDelete: string;
|
|
31
|
+
deleteChat: string;
|
|
32
|
+
renameChat: string;
|
|
33
|
+
chatName: string;
|
|
34
|
+
saveName: string;
|
|
35
|
+
cancelRename: string;
|
|
36
|
+
recentSessions: string;
|
|
37
|
+
loading: string;
|
|
38
|
+
failedToLoad: string;
|
|
39
|
+
noSessionsYet: string;
|
|
40
|
+
untitledSession: string;
|
|
41
|
+
updated: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream part-renderer strings (`src/stream/ai-sdk-part-renderers.tsx`): the
|
|
3
|
+
* cards the assistant's live stream renders — approval + choice widgets, tool
|
|
4
|
+
* activity tasks, browser step labels, consolidated terminal groups, artifact
|
|
5
|
+
* cards, and the CLI reconnect chip. Status-code badges (`ok` / `no_handler` /
|
|
6
|
+
* wire `data.status`) are technical chrome and stay verbatim, per the same
|
|
7
|
+
* rule as `embed/copy.ts`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const streamEn: {
|
|
10
|
+
readonly stream: {
|
|
11
|
+
readonly copyOutput: "Copy output";
|
|
12
|
+
readonly terminalOutput: "terminal output";
|
|
13
|
+
readonly skillChip: "Skill: {{name}}";
|
|
14
|
+
readonly failedSuffix: " — failed";
|
|
15
|
+
readonly approvalRequired: "Approval required";
|
|
16
|
+
readonly approve: "Approve";
|
|
17
|
+
readonly requestChanges: "Request changes";
|
|
18
|
+
readonly reject: "Reject";
|
|
19
|
+
readonly approving: "Approving…";
|
|
20
|
+
readonly rejecting: "Rejecting…";
|
|
21
|
+
readonly sending: "Sending…";
|
|
22
|
+
readonly decisionApproved: "approved";
|
|
23
|
+
readonly decisionRejected: "rejected";
|
|
24
|
+
readonly decisionAmendRequested: "amend requested";
|
|
25
|
+
readonly expired: "expired";
|
|
26
|
+
readonly alreadyResolved: "already resolved";
|
|
27
|
+
readonly alwaysAllowTool: "Always allow {{toolName}}";
|
|
28
|
+
readonly alwaysAllowAction: "Always allow this action";
|
|
29
|
+
readonly submitError: "That didn't go through — {{message}}. Try again.";
|
|
30
|
+
readonly errorServerAnswered: "the server answered {{status}}";
|
|
31
|
+
readonly errorRequestUnreachable: "the request didn't reach the server";
|
|
32
|
+
readonly answered: "answered";
|
|
33
|
+
readonly alreadyAnswered: "already answered";
|
|
34
|
+
readonly submit: "Submit";
|
|
35
|
+
readonly toolShellRunning: "Running a command";
|
|
36
|
+
readonly toolShellDone: "Ran a command";
|
|
37
|
+
readonly toolShellFailed: "A command didn't complete";
|
|
38
|
+
readonly toolShellDetail: "Executed a command in the workspace.";
|
|
39
|
+
readonly toolApprovalRunning: "Requesting approval";
|
|
40
|
+
readonly toolApprovalDone: "Requested approval";
|
|
41
|
+
readonly toolApprovalFailed: "Couldn't request approval";
|
|
42
|
+
readonly toolApprovalDetail: "Asked for your approval to proceed.";
|
|
43
|
+
readonly toolGenericRunning: "Working on {{tool}}";
|
|
44
|
+
readonly toolGenericDone: "Finished {{tool}}";
|
|
45
|
+
readonly toolGenericFailed: "{{tool}} didn't complete";
|
|
46
|
+
readonly toolGenericDetail: "Used the {{tool}} capability.";
|
|
47
|
+
readonly browserSnapshot: "Took a snapshot";
|
|
48
|
+
readonly browserRead: "Read the page";
|
|
49
|
+
readonly browserClick: "Clicked an element";
|
|
50
|
+
readonly browserType: "Typed text";
|
|
51
|
+
readonly browserNavigate: "Opened a page";
|
|
52
|
+
readonly browserSelfTest: "Checked the page connection";
|
|
53
|
+
readonly browserResolveResource: "Looked up a resource";
|
|
54
|
+
readonly browserAwaitProcessed: "Waited for processing";
|
|
55
|
+
readonly browserAssertCreated: "Checked for an existing resource";
|
|
56
|
+
readonly failedBadge: "failed";
|
|
57
|
+
readonly failedCount_one: "{{count}} failed";
|
|
58
|
+
readonly failedCount_other: "{{count}} failed";
|
|
59
|
+
readonly workedOnPageSteps_one: "Worked on the page · {{count}} step";
|
|
60
|
+
readonly workedOnPageSteps_other: "Worked on the page · {{count}} steps";
|
|
61
|
+
readonly workedSteps_one: "Worked · {{count}} step";
|
|
62
|
+
readonly workedSteps_other: "Worked · {{count}} steps";
|
|
63
|
+
readonly workingSteps_one: "Working… · {{count}} step";
|
|
64
|
+
readonly workingSteps_other: "Working… · {{count}} steps";
|
|
65
|
+
readonly ranCommands_one: "Ran {{count}} command";
|
|
66
|
+
readonly ranCommands_other: "Ran {{count}} commands";
|
|
67
|
+
readonly runningCommands_one: "Running {{count}} command…";
|
|
68
|
+
readonly runningCommands_other: "Running {{count}} commands…";
|
|
69
|
+
readonly open: "Open";
|
|
70
|
+
readonly reconnectNeeded: "The {{provider}} session needs reconnecting to continue.";
|
|
71
|
+
readonly reconnect: "Reconnect";
|
|
72
|
+
readonly reconnecting: "Reconnecting…";
|
|
73
|
+
readonly reconnected: "Reconnected";
|
|
74
|
+
readonly retry: "Retry";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare const streamEs: {
|
|
78
|
+
stream: {
|
|
79
|
+
copyOutput: string;
|
|
80
|
+
terminalOutput: string;
|
|
81
|
+
skillChip: string;
|
|
82
|
+
failedSuffix: string;
|
|
83
|
+
approvalRequired: string;
|
|
84
|
+
approve: string;
|
|
85
|
+
requestChanges: string;
|
|
86
|
+
reject: string;
|
|
87
|
+
approving: string;
|
|
88
|
+
rejecting: string;
|
|
89
|
+
sending: string;
|
|
90
|
+
decisionApproved: string;
|
|
91
|
+
decisionRejected: string;
|
|
92
|
+
decisionAmendRequested: string;
|
|
93
|
+
expired: string;
|
|
94
|
+
alreadyResolved: string;
|
|
95
|
+
alwaysAllowTool: string;
|
|
96
|
+
alwaysAllowAction: string;
|
|
97
|
+
submitError: string;
|
|
98
|
+
errorServerAnswered: string;
|
|
99
|
+
errorRequestUnreachable: string;
|
|
100
|
+
answered: string;
|
|
101
|
+
alreadyAnswered: string;
|
|
102
|
+
submit: string;
|
|
103
|
+
toolShellRunning: string;
|
|
104
|
+
toolShellDone: string;
|
|
105
|
+
toolShellFailed: string;
|
|
106
|
+
toolShellDetail: string;
|
|
107
|
+
toolApprovalRunning: string;
|
|
108
|
+
toolApprovalDone: string;
|
|
109
|
+
toolApprovalFailed: string;
|
|
110
|
+
toolApprovalDetail: string;
|
|
111
|
+
toolGenericRunning: string;
|
|
112
|
+
toolGenericDone: string;
|
|
113
|
+
toolGenericFailed: string;
|
|
114
|
+
toolGenericDetail: string;
|
|
115
|
+
browserSnapshot: string;
|
|
116
|
+
browserRead: string;
|
|
117
|
+
browserClick: string;
|
|
118
|
+
browserType: string;
|
|
119
|
+
browserNavigate: string;
|
|
120
|
+
browserSelfTest: string;
|
|
121
|
+
browserResolveResource: string;
|
|
122
|
+
browserAwaitProcessed: string;
|
|
123
|
+
browserAssertCreated: string;
|
|
124
|
+
failedBadge: string;
|
|
125
|
+
failedCount_one: string;
|
|
126
|
+
failedCount_other: string;
|
|
127
|
+
workedOnPageSteps_one: string;
|
|
128
|
+
workedOnPageSteps_other: string;
|
|
129
|
+
workedSteps_one: string;
|
|
130
|
+
workedSteps_other: string;
|
|
131
|
+
workingSteps_one: string;
|
|
132
|
+
workingSteps_other: string;
|
|
133
|
+
ranCommands_one: string;
|
|
134
|
+
ranCommands_other: string;
|
|
135
|
+
runningCommands_one: string;
|
|
136
|
+
runningCommands_other: string;
|
|
137
|
+
open: string;
|
|
138
|
+
reconnectNeeded: string;
|
|
139
|
+
reconnect: string;
|
|
140
|
+
reconnecting: string;
|
|
141
|
+
reconnected: string;
|
|
142
|
+
retry: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Usage meter dock strings. */
|
|
2
|
+
export declare const usageEn: {
|
|
3
|
+
readonly usage: {
|
|
4
|
+
readonly tooltip: "Auto-compacts at {{chars}} chars; {{tokens}} tokens used this session";
|
|
5
|
+
readonly context: "Context {{pct}}%";
|
|
6
|
+
readonly tokens: "{{count}} tokens";
|
|
7
|
+
readonly lastTurn: "Last turn: {{in}} in / {{out}} out";
|
|
8
|
+
readonly turnsThisSessionOne: "{{count}} turn this session";
|
|
9
|
+
readonly turnsThisSessionOther: "{{count}} turns this session";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const usageEs: {
|
|
13
|
+
usage: {
|
|
14
|
+
tooltip: string;
|
|
15
|
+
context: string;
|
|
16
|
+
tokens: string;
|
|
17
|
+
lastTurn: string;
|
|
18
|
+
turnsThisSessionOne: string;
|
|
19
|
+
turnsThisSessionOther: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shape every locale catalog must satisfy: the SAME key structure as the
|
|
3
|
+
* English source of truth (`en.ts`), but with every leaf widened to a free
|
|
4
|
+
* `string`. Typing `es` as `LocaleMessages<typeof en>` makes a forgotten
|
|
5
|
+
* translation a COMPILE error (missing key) instead of a silent runtime
|
|
6
|
+
* fallback — without locking each value to the English literal.
|
|
7
|
+
*/
|
|
8
|
+
export type LocaleMessages<T> = {
|
|
9
|
+
readonly [K in keyof T]: T[K] extends string ? string : LocaleMessages<T[K]>;
|
|
10
|
+
};
|
|
@@ -2,8 +2,9 @@ import { BelongDataParts, BelongUIMessage, SandboxCommandData, ToolCallData } fr
|
|
|
2
2
|
export declare const ToolActivityGroup: ({ tools }: {
|
|
3
3
|
readonly tools: readonly ToolCallData[];
|
|
4
4
|
}) => import("react").JSX.Element;
|
|
5
|
-
export declare const TerminalTaskGroup: ({ commands, }: {
|
|
5
|
+
export declare const TerminalTaskGroup: ({ commands, turnStreaming, }: {
|
|
6
6
|
readonly commands: readonly TerminalCommand[];
|
|
7
|
+
readonly turnStreaming?: boolean;
|
|
7
8
|
}) => import("react").JSX.Element;
|
|
8
9
|
/** A segment of a message's text: prose to render as markdown, or a `@`-mention. */
|
|
9
10
|
type TextSegment = {
|
package/dist/types/public.d.ts
CHANGED
|
@@ -82,15 +82,18 @@ export type PartialBelongTheme = {
|
|
|
82
82
|
};
|
|
83
83
|
/** Built-in theme presets selectable via `belong.applyPreset(name)`. */
|
|
84
84
|
export type PresetName = "belong" | "simetrik" | "custom";
|
|
85
|
-
/**
|
|
85
|
+
/** UI languages the dock ships. `setLocale` / `init({ locale })` accept these. */
|
|
86
86
|
export type BelongLocale = "en" | "es";
|
|
87
87
|
export type BelongInitInput = {
|
|
88
88
|
/** Belong cloud base URL, e.g. `https://api.belong.host` or `http://localhost:8787`. */
|
|
89
89
|
readonly apiBaseUrl: string;
|
|
90
90
|
/**
|
|
91
|
-
* Dock UI language
|
|
92
|
-
*
|
|
93
|
-
*
|
|
91
|
+
* Dock UI language. When omitted the dock auto-detects: a stored user choice
|
|
92
|
+
* ▸ the browser language ▸ English. Set it to default the deployment's
|
|
93
|
+
* language (a Spanish-first tenant passes `"es"`); the end user can still
|
|
94
|
+
* switch with the in-dock toggle. Re-`init` (or `belong.setLocale`) with a
|
|
95
|
+
* DIFFERENT value relabels the dock live — the host's language switch wins
|
|
96
|
+
* over a stale in-dock choice (BEL-140).
|
|
94
97
|
*/
|
|
95
98
|
readonly locale?: BelongLocale;
|
|
96
99
|
/** Where to mount the dock. Defaults to `document.body`. */
|
|
@@ -172,6 +175,8 @@ export type UiActionHandler<I = unknown, O = unknown> = (input: I) => Promise<Ui
|
|
|
172
175
|
export type BelongGlobal = {
|
|
173
176
|
readonly init: (input: BelongInitInput) => Promise<void>;
|
|
174
177
|
readonly setToken: (jwt: string) => void;
|
|
178
|
+
/** Switch the dock UI language at runtime (persisted; relabels live). */
|
|
179
|
+
readonly setLocale: (locale: BelongLocale) => void;
|
|
175
180
|
readonly setTheme: (theme: PartialBelongTheme) => void;
|
|
176
181
|
readonly applyPreset: (name: PresetName) => void;
|
|
177
182
|
readonly open: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belonguniverseai/react-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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",
|