@belonguniverseai/react-sdk 0.3.0 → 0.3.5
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 +843 -251
- package/dist/api/task-schedules.d.ts +198 -23
- package/dist/component/{arc-CMhGaHbE.js → arc-6I9bTNTk.js} +2 -2
- package/dist/component/{architectureDiagram-3BPJPVTR-BPbeN6Nl.js → architectureDiagram-3BPJPVTR-DecTtp8M.js} +3 -3
- package/dist/component/{blockDiagram-GPEHLZMM-BVn0uHLE.js → blockDiagram-GPEHLZMM-D0ShJEdc.js} +4 -4
- package/dist/component/{c4Diagram-AAUBKEIU-D3XBTnJa.js → c4Diagram-AAUBKEIU-D-N4NLkS.js} +3 -3
- package/dist/component/{channel-DpI8-a3_.js → channel-BTRAV_iV.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-Bqhv40NQ.js → chunk-2J33WTMH-Chgh4n6n.js} +2 -2
- package/dist/component/{chunk-4BX2VUAB-DtucQWno.js → chunk-4BX2VUAB-BR7BZW6m.js} +2 -2
- package/dist/component/{chunk-55IACEB6-CWb5s5u5.js → chunk-55IACEB6-D0_e3QRv.js} +2 -2
- package/dist/component/{chunk-727SXJPM-C83L2sLw.js → chunk-727SXJPM-Cooz66Ae.js} +6 -6
- package/dist/component/{chunk-AQP2D5EJ-D00bX5Fy.js → chunk-AQP2D5EJ-CAz4YEpg.js} +4 -4
- package/dist/component/{chunk-FMBD7UC4-CR6LCs0Q.js → chunk-FMBD7UC4-C8n0NV45.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-DUfRBvcM.js → chunk-ND2GUHAM-Di6RJblt.js} +2 -2
- package/dist/component/{chunk-QZHKN3VN-ZyFUERub.js → chunk-QZHKN3VN-Cii0zOyK.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-nhACsjTQ.js → classDiagram-4FO5ZUOK-BIqkynKR.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-nhACsjTQ.js → classDiagram-v2-Q7XG4LA2-BIqkynKR.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-CNyhXSKg.js → cose-bilkent-S5V4N54A-Dq3K4Kak.js} +2 -2
- package/dist/component/{dagre-BM42HDAG-Dr_3n4A9.js → dagre-BM42HDAG-KdRn-NQ2.js} +2 -2
- package/dist/component/{diagram-2AECGRRQ-Y2n2wNX9.js → diagram-2AECGRRQ-CeJVj827.js} +3 -3
- package/dist/component/{diagram-5GNKFQAL-DHwEARtq.js → diagram-5GNKFQAL-ceCtRhc4.js} +4 -4
- package/dist/component/{diagram-KO2AKTUF-JBQc-Qhk.js → diagram-KO2AKTUF-CU9xKIPR.js} +3 -3
- package/dist/component/{diagram-LMA3HP47-B55TgguV.js → diagram-LMA3HP47-CRZuMr0r.js} +3 -3
- package/dist/component/{diagram-OG6HWLK6-BjQ8Y6zl.js → diagram-OG6HWLK6-DdO8bLrY.js} +4 -4
- package/dist/component/{erDiagram-TEJ5UH35-BNl5eT59.js → erDiagram-TEJ5UH35-BnPlE6-i.js} +5 -5
- package/dist/component/{flowDiagram-I6XJVG4X-_bWa0zJX.js → flowDiagram-I6XJVG4X-Bi70muwl.js} +7 -7
- package/dist/component/{ganttDiagram-6RSMTGT7-D12wJRpv.js → ganttDiagram-6RSMTGT7-FjDKlQ-F.js} +3 -3
- package/dist/component/{gitGraphDiagram-PVQCEYII-CKGKNDkP.js → gitGraphDiagram-PVQCEYII-B9GAxjPJ.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-T6VnSue_.js → highlighted-body-OFNGDK62-DEhmLiFe.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-CtbQ2PNx.js → infoDiagram-5YYISTIA-D_z8khpb.js} +2 -2
- package/dist/component/{ishikawaDiagram-YF4QCWOH-DWHoe0x7.js → ishikawaDiagram-YF4QCWOH-DHUQHc7h.js} +2 -2
- package/dist/component/{journeyDiagram-JHISSGLW-Y8U0aQ2t.js → journeyDiagram-JHISSGLW-BdPxTkII.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-Cxa5quvJ.js → kanban-definition-UN3LZRKU-CXo8cG6_.js} +3 -3
- package/dist/component/{linear-Deqp7k-y.js → linear-azN-TF0f.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-Bb3nq6cF.js → mermaid-GHXKKRXX-P_Te0BTc.js} +24921 -24800
- package/dist/component/{mindmap-definition-RKZ34NQL-CJO5YIaF.js → mindmap-definition-RKZ34NQL-CVTlgpwY.js} +4 -4
- package/dist/component/{pieDiagram-4H26LBE5-fLrS62rY.js → pieDiagram-4H26LBE5-BBqlJN3M.js} +4 -4
- package/dist/component/{quadrantDiagram-W4KKPZXB-BMjq2Lu4.js → quadrantDiagram-W4KKPZXB-Cq8G5gg8.js} +3 -3
- package/dist/component/{requirementDiagram-4Y6WPE33-BPUkO56k.js → requirementDiagram-4Y6WPE33-DE8meVq8.js} +4 -4
- package/dist/component/{sankeyDiagram-5OEKKPKP-ekNfY75x.js → sankeyDiagram-5OEKKPKP-rGv9060J.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-CyVmC9Rm.js → sequenceDiagram-3UESZ5HK-CYZCqSg5.js} +4 -4
- package/dist/component/{stateDiagram-AJRCARHV-DFkc559m.js → stateDiagram-AJRCARHV-7PfYQio8.js} +3 -3
- package/dist/component/{stateDiagram-v2-BHNVJYJU-DyEtRcsV.js → stateDiagram-v2-BHNVJYJU-Bc8Y618M.js} +3 -3
- package/dist/component/{timeline-definition-PNZ67QCA-BDLP-x66.js → timeline-definition-PNZ67QCA-DDLIgmb4.js} +3 -3
- package/dist/component/{vennDiagram-CIIHVFJN-Bvhzsn8q.js → vennDiagram-CIIHVFJN-BPKi69Hn.js} +2 -2
- package/dist/component/{wardleyDiagram-YWT4CUSO-SKdyvNF1.js → wardleyDiagram-YWT4CUSO-Dumz_-ib.js} +3 -3
- package/dist/component/{xychartDiagram-2RQKCTM6-DHchnrpW.js → xychartDiagram-2RQKCTM6-DQGacrwk.js} +3 -3
- package/dist/components/embed/BrandMark.d.ts +13 -4
- package/dist/components/embed/HeavyPreview.d.ts +6 -0
- package/dist/components/embed/preview-content-kind.d.ts +5 -5
- package/dist/components/scheduled/ScheduledDetailSurface.d.ts +4 -1
- package/dist/components/scheduled/schedule-dialog-model.d.ts +6 -1
- package/dist/components/scheduled/schedule-format.d.ts +5 -1
- package/dist/embed/copy.d.ts +2 -0
- package/dist/embed/locale.d.ts +3 -1
- package/dist/embed/logo.d.ts +7 -1
- package/dist/embed/slash-commands.d.ts +44 -9
- package/dist/i18n/messages/en.d.ts +12 -10
- package/dist/i18n/messages/surfaces/aiElements.d.ts +3 -0
- package/dist/i18n/messages/surfaces/scheduled.d.ts +30 -0
- package/dist/i18n/messages/surfaces/stream.d.ts +3 -30
- package/dist/stream/ai-sdk-part-renderers.d.ts +8 -20
- package/dist/stream/belong-data-parts.d.ts +1 -1
- package/dist/stream/sandbox-output.d.ts +8 -4
- package/dist/types/public.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { BelongDataParts, BelongUIMessage, SandboxCommandData, ToolCallData } from './belong-data-parts.ts';
|
|
2
|
-
export declare const
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
export declare const TerminalTaskGroup: ({ commands, turnStreaming, }: {
|
|
6
|
-
readonly commands: readonly TerminalCommand[];
|
|
7
|
-
readonly turnStreaming?: boolean;
|
|
2
|
+
export declare const ActivityGroup: ({ items, live, }: {
|
|
3
|
+
readonly items: readonly ActivityItem[];
|
|
4
|
+
readonly live?: boolean | undefined;
|
|
8
5
|
}) => import("react").JSX.Element;
|
|
9
6
|
/** A segment of a message's text: prose to render as markdown, or a `@`-mention. */
|
|
10
7
|
type TextSegment = {
|
|
@@ -47,9 +44,9 @@ export type PartRendererProps = {
|
|
|
47
44
|
* `reasoning` parts.
|
|
48
45
|
*/
|
|
49
46
|
export declare const PartRenderer: ({ part, onExecutePlan, historical }: PartRendererProps) => import("react").JSX.Element | null;
|
|
50
|
-
/** One
|
|
51
|
-
export type
|
|
52
|
-
readonly
|
|
47
|
+
/** One tool call in an activity run, paired (for shell) with its same-id output. */
|
|
48
|
+
export type ActivityItem = {
|
|
49
|
+
readonly tool: ToolCallData;
|
|
53
50
|
readonly output: SandboxCommandData | null;
|
|
54
51
|
};
|
|
55
52
|
export type RenderGroup = {
|
|
@@ -57,17 +54,8 @@ export type RenderGroup = {
|
|
|
57
54
|
readonly part: BelongMessagePart;
|
|
58
55
|
readonly key: string;
|
|
59
56
|
} | {
|
|
60
|
-
readonly kind: "
|
|
61
|
-
readonly
|
|
62
|
-
readonly key: string;
|
|
63
|
-
} | {
|
|
64
|
-
readonly kind: "terminal";
|
|
65
|
-
readonly command: ToolCallData;
|
|
66
|
-
readonly output: SandboxCommandData | null;
|
|
67
|
-
readonly key: string;
|
|
68
|
-
} | {
|
|
69
|
-
readonly kind: "terminal-group";
|
|
70
|
-
readonly commands: readonly TerminalCommand[];
|
|
57
|
+
readonly kind: "activity";
|
|
58
|
+
readonly items: readonly ActivityItem[];
|
|
71
59
|
readonly key: string;
|
|
72
60
|
};
|
|
73
61
|
export declare const groupMessageParts: (parts: readonly BelongMessagePart[]) => readonly RenderGroup[];
|
|
@@ -90,7 +90,7 @@ export type ChoiceRequestData = {
|
|
|
90
90
|
* BEL-97 — distinguishes an ordinary tool/command failure (a non-zero exit, a
|
|
91
91
|
* tool that couldn't complete) from one that STOPS the agent run (a denied
|
|
92
92
|
* permission, an aborting failure). Only `"stop"` warrants the red/destructive
|
|
93
|
-
* treatment; an ordinary `"error"` gets the
|
|
93
|
+
* treatment; an ordinary `"error"` gets the orange notice treatment so red is
|
|
94
94
|
* reserved for "the agent can't continue". Absent → `"error"` (the common,
|
|
95
95
|
* recoverable case; back-compat with wire messages emitted before BEL-97).
|
|
96
96
|
*/
|
|
@@ -5,17 +5,21 @@ export declare const isShellToolName: (toolName: string) => boolean;
|
|
|
5
5
|
/**
|
|
6
6
|
* BEL-97 — how a finished shell command's outcome should be coloured.
|
|
7
7
|
*
|
|
8
|
-
* - `"none"` — still running,
|
|
8
|
+
* - `"none"` — still running, completed cleanly (exit 0 / no exit code),
|
|
9
|
+
* failed with exit 0 (successful execution despite wrapper error),
|
|
10
|
+
* or timed out (still running in the sandbox).
|
|
9
11
|
* - `"notice"` — an ORDINARY failure (non-zero exit, or a tool error with no
|
|
10
|
-
* stop-severity).
|
|
12
|
+
* stop-severity). Orange, NOT red: the agent kept going.
|
|
11
13
|
* - `"stop"` — an agent-execution-STOPPING failure (a denied permission, an
|
|
12
14
|
* aborting error: `error.severity === "stop"`). Red.
|
|
13
15
|
*
|
|
14
|
-
* One source of truth shared by `TerminalTask` (its status badge) and
|
|
15
|
-
*
|
|
16
|
+
* One source of truth shared by `TerminalTask` (its status badge) and
|
|
17
|
+
* `ActivityGroup` (its aggregate failure badge).
|
|
16
18
|
*/
|
|
17
19
|
export type TerminalSeverity = "none" | "notice" | "stop";
|
|
18
20
|
export declare const terminalCommandSeverity: (command: ToolCallData) => TerminalSeverity;
|
|
21
|
+
/** A failed part whose command actually KEEPS RUNNING past its wall-clock budget. */
|
|
22
|
+
export declare const isTimedOutCommand: (command: ToolCallData) => boolean;
|
|
19
23
|
/** Apply-once dedupe key for a sandbox delta (folded history parts → "folded"). */
|
|
20
24
|
export declare const sandboxDeltaKey: (data: SandboxCommandData) => string;
|
|
21
25
|
/** Sort order for merging deltas: the folded full-text part precedes any live seq. */
|
package/dist/types/public.d.ts
CHANGED
|
@@ -175,7 +175,12 @@ export type BelongInitInput = {
|
|
|
175
175
|
* is attempted.
|
|
176
176
|
*/
|
|
177
177
|
readonly agentGrant?: {
|
|
178
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Grant provider key. DEPRECATED default: omitted falls back to
|
|
180
|
+
* `"simetrik"` for backward compatibility (with a one-time console
|
|
181
|
+
* warning); a future major will require an explicit provider and treat
|
|
182
|
+
* omission as grants-off. Always name your provider.
|
|
183
|
+
*/
|
|
179
184
|
readonly provider?: string;
|
|
180
185
|
/** Provider-side scope (e.g. the Simetrik workspace id) the session binds to. */
|
|
181
186
|
readonly scopeExternalId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belonguniverseai/react-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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",
|