@belonguniverseai/react-sdk 0.1.2 → 0.1.4
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 +382 -9
- package/dist/api/mutations.d.ts +5 -0
- package/dist/api/query-keys.d.ts +9 -0
- package/dist/api/workspace-files.d.ts +1 -1
- package/dist/app/providers.d.ts +1 -1
- package/dist/component/BelongWidget.d.ts +7 -1
- package/dist/component/{arc-DPDIJagU.js → arc-BEnKmFiH.js} +2 -2
- package/dist/component/{architectureDiagram-3BPJPVTR-WmTdGYxp.js → architectureDiagram-3BPJPVTR-qrW4PiqE.js} +3 -3
- package/dist/component/{blockDiagram-GPEHLZMM-myKtXzN1.js → blockDiagram-GPEHLZMM-Cy83RTvZ.js} +4 -4
- package/dist/component/{c4Diagram-AAUBKEIU-BbN6n9Vc.js → c4Diagram-AAUBKEIU-DA1KAAqR.js} +3 -3
- package/dist/component/{channel-B0H_QP_-.js → channel-S3CulQua.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-iwZo17vf.js → chunk-2J33WTMH-B3IpUX0y.js} +2 -2
- package/dist/component/{chunk-4BX2VUAB-CKT6dptL.js → chunk-4BX2VUAB-TXwXVoCn.js} +2 -2
- package/dist/component/{chunk-55IACEB6-CLJ9pgvn.js → chunk-55IACEB6-TgAuWAzl.js} +2 -2
- package/dist/component/{chunk-727SXJPM-BngOIcz0.js → chunk-727SXJPM-CRzAhEpU.js} +6 -6
- package/dist/component/{chunk-AQP2D5EJ-iLdnjZec.js → chunk-AQP2D5EJ-BGyYD9fu.js} +4 -4
- package/dist/component/{chunk-FMBD7UC4-6uJqTx36.js → chunk-FMBD7UC4-DMPGLPzn.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-BUngsBoq.js → chunk-ND2GUHAM-D4Pq2Sbn.js} +2 -2
- package/dist/component/{chunk-QZHKN3VN-CFfcj0kF.js → chunk-QZHKN3VN-pAuUtuaS.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-4Unpku5g.js → classDiagram-4FO5ZUOK-Cfk5JVma.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-4Unpku5g.js → classDiagram-v2-Q7XG4LA2-Cfk5JVma.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-CxgXF1ox.js → cose-bilkent-S5V4N54A-DDqAk-Nd.js} +2 -2
- package/dist/component/{dagre-BM42HDAG-CvJZZLBU.js → dagre-BM42HDAG-CRWiZgwY.js} +2 -2
- package/dist/component/{diagram-2AECGRRQ-BM26zrSB.js → diagram-2AECGRRQ-vfIORQjw.js} +3 -3
- package/dist/component/{diagram-5GNKFQAL-E7W8UahE.js → diagram-5GNKFQAL-BrdNWhYp.js} +4 -4
- package/dist/component/{diagram-KO2AKTUF-Cx9n9K8j.js → diagram-KO2AKTUF-BzvQZ4om.js} +3 -3
- package/dist/component/{diagram-LMA3HP47-DD5MMO35.js → diagram-LMA3HP47-ByWVR7eR.js} +3 -3
- package/dist/component/{diagram-OG6HWLK6-DaiZ4TvN.js → diagram-OG6HWLK6-DFJUF0-3.js} +4 -4
- package/dist/component/{erDiagram-TEJ5UH35-ChBEEVA8.js → erDiagram-TEJ5UH35-h-b8M9my.js} +5 -5
- package/dist/component/{flowDiagram-I6XJVG4X-DAsWdPx4.js → flowDiagram-I6XJVG4X-Bs5-0VOV.js} +7 -7
- package/dist/component/{ganttDiagram-6RSMTGT7-qtGq5aA8.js → ganttDiagram-6RSMTGT7-BFOggcmT.js} +3 -3
- package/dist/component/{gitGraphDiagram-PVQCEYII-B-KRbsvH.js → gitGraphDiagram-PVQCEYII-DqyxmsbF.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-etsPYV7E.js → highlighted-body-OFNGDK62-Bdj8cutJ.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-BzJ6egpv.js → infoDiagram-5YYISTIA-8md68U3E.js} +2 -2
- package/dist/component/{ishikawaDiagram-YF4QCWOH-DnPu1odF.js → ishikawaDiagram-YF4QCWOH-C3xT9wjK.js} +2 -2
- package/dist/component/{journeyDiagram-JHISSGLW-BDbOAXFA.js → journeyDiagram-JHISSGLW-BbHXf52q.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-BjvUIgNN.js → kanban-definition-UN3LZRKU-Xcxe9Aqi.js} +3 -3
- package/dist/component/{linear-COVcd8bM.js → linear-tnf14jhv.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-Bk5cDfRV.js → mermaid-GHXKKRXX-DRKI1NOg.js} +31423 -28144
- package/dist/component/{mindmap-definition-RKZ34NQL-C0g8QURW.js → mindmap-definition-RKZ34NQL-DT2YOYJT.js} +4 -4
- package/dist/component/{pieDiagram-4H26LBE5-Mbexiv4J.js → pieDiagram-4H26LBE5-DnaT-EHy.js} +4 -4
- package/dist/component/{quadrantDiagram-W4KKPZXB-BPRDLHzc.js → quadrantDiagram-W4KKPZXB-Chj0SIr_.js} +3 -3
- package/dist/component/{requirementDiagram-4Y6WPE33-XjOXpLfB.js → requirementDiagram-4Y6WPE33-C8P86Vfk.js} +4 -4
- package/dist/component/{sankeyDiagram-5OEKKPKP-Boo0vXVH.js → sankeyDiagram-5OEKKPKP-BTV3aQxb.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-CmZk5hb2.js → sequenceDiagram-3UESZ5HK-CszXtNuQ.js} +4 -4
- package/dist/component/{stateDiagram-AJRCARHV-zKdC8ZqU.js → stateDiagram-AJRCARHV-BPKVLcMj.js} +3 -3
- package/dist/component/{stateDiagram-v2-BHNVJYJU-C3TFxstc.js → stateDiagram-v2-BHNVJYJU-CAAXRt1C.js} +3 -3
- package/dist/component/{timeline-definition-PNZ67QCA-DV17S1NP.js → timeline-definition-PNZ67QCA-CqzXrhgH.js} +3 -3
- package/dist/component/{vennDiagram-CIIHVFJN-DtHYS_yc.js → vennDiagram-CIIHVFJN-Cvb9lpke.js} +2 -2
- package/dist/component/{wardleyDiagram-YWT4CUSO-BxPk1XTc.js → wardleyDiagram-YWT4CUSO-BzPLaYx7.js} +3 -3
- package/dist/component/{xychartDiagram-2RQKCTM6-C3o6FXYC.js → xychartDiagram-2RQKCTM6-C50_ldFc.js} +3 -3
- package/dist/components/embed/AgentGrantCard.d.ts +6 -4
- package/dist/components/embed/ComposerMenu.d.ts +9 -1
- package/dist/components/embed/EmbedRail.d.ts +18 -1
- package/dist/components/embed/EmbedSessions.d.ts +6 -4
- package/dist/components/embed/MentionInput.d.ts +10 -0
- package/dist/components/embed/SlashCommandMenu.d.ts +10 -6
- package/dist/components/feedback/feedback-metadata.d.ts +4 -30
- package/dist/dev-modal-repro.d.ts +0 -0
- package/dist/embed/approval-bus.d.ts +14 -0
- package/dist/embed/approval-decision.d.ts +10 -0
- package/dist/embed/auto-embed.d.ts +1 -1
- package/dist/embed/closed-surface-voice-bus.d.ts +25 -0
- package/dist/embed/copy.d.ts +3 -0
- package/dist/embed/dock-layout.d.ts +32 -0
- package/dist/embed/global.d.ts +4 -3
- package/dist/embed/locale.d.ts +24 -5
- package/dist/embed/plan-decision.d.ts +3 -1
- package/dist/embed/use-workspace-file-download.d.ts +2 -0
- package/dist/embed/voice-decision.d.ts +27 -0
- package/dist/embed/voice-phrase-match.d.ts +5 -0
- package/dist/embed/voice-prefs.d.ts +4 -0
- package/dist/embed/voice-send-intent.d.ts +12 -0
- package/dist/embed/workspace-scope.d.ts +44 -0
- package/dist/i18n/i18n.d.ts +6 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/messages/en.d.ts +350 -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 +100 -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/routes/chat.d.ts +1 -0
- package/dist/stream/ai-sdk-part-renderers.d.ts +10 -2
- package/dist/stream/belong-chat-transport.d.ts +54 -1
- package/dist/stream/belong-data-parts.d.ts +6 -4
- package/dist/stream/message-metadata.d.ts +45 -0
- package/dist/stream/stream-state-store.d.ts +4 -4
- package/dist/types/public.d.ts +20 -4
- package/package.json +2 -2
package/dist/api/client.d.ts
CHANGED
|
@@ -192,6 +192,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
192
192
|
input: {
|
|
193
193
|
json: {
|
|
194
194
|
title?: string | undefined;
|
|
195
|
+
workspaceExternalId?: string | undefined;
|
|
195
196
|
};
|
|
196
197
|
};
|
|
197
198
|
output: {
|
|
@@ -203,6 +204,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
203
204
|
input: {
|
|
204
205
|
json: {
|
|
205
206
|
title?: string | undefined;
|
|
207
|
+
workspaceExternalId?: string | undefined;
|
|
206
208
|
};
|
|
207
209
|
};
|
|
208
210
|
output: {
|
|
@@ -214,7 +216,12 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
214
216
|
status: 403;
|
|
215
217
|
};
|
|
216
218
|
$get: {
|
|
217
|
-
input: {
|
|
219
|
+
input: {
|
|
220
|
+
query: {
|
|
221
|
+
limit?: string | string[];
|
|
222
|
+
workspaceExternalId?: string | string[];
|
|
223
|
+
};
|
|
224
|
+
};
|
|
218
225
|
output: {
|
|
219
226
|
sessions: readonly {
|
|
220
227
|
readonly sessionId: import('node_modules/@belong/cloud/src/platform/ids').SessionId;
|
|
@@ -261,6 +268,43 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
261
268
|
outputFormat: "json";
|
|
262
269
|
status: 404;
|
|
263
270
|
};
|
|
271
|
+
$patch: {
|
|
272
|
+
input: {
|
|
273
|
+
json: {
|
|
274
|
+
title: string;
|
|
275
|
+
};
|
|
276
|
+
} & {
|
|
277
|
+
param: {
|
|
278
|
+
sessionId: string;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
output: {
|
|
282
|
+
readonly sessionId: import('node_modules/@belong/cloud/src/platform/ids').SessionId;
|
|
283
|
+
readonly title: string | null;
|
|
284
|
+
readonly status: import('node_modules/@belong/cloud/src/features/sessions/session.repo').SessionRow["status"];
|
|
285
|
+
readonly createdAt: string;
|
|
286
|
+
readonly updatedAt: string;
|
|
287
|
+
};
|
|
288
|
+
outputFormat: "json";
|
|
289
|
+
status: import('hono/utils/http-status').ContentfulStatusCode;
|
|
290
|
+
} | {
|
|
291
|
+
input: {
|
|
292
|
+
json: {
|
|
293
|
+
title: string;
|
|
294
|
+
};
|
|
295
|
+
} & {
|
|
296
|
+
param: {
|
|
297
|
+
sessionId: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
output: {
|
|
301
|
+
error: {
|
|
302
|
+
type: string;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
outputFormat: "json";
|
|
306
|
+
status: 404;
|
|
307
|
+
};
|
|
264
308
|
$delete: {
|
|
265
309
|
input: {
|
|
266
310
|
param: {
|
|
@@ -356,6 +400,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
356
400
|
runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
|
|
357
401
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
|
|
358
402
|
llmModel?: string | undefined;
|
|
403
|
+
workspaceExternalId?: string | undefined;
|
|
359
404
|
};
|
|
360
405
|
} & {
|
|
361
406
|
param: {
|
|
@@ -381,6 +426,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
381
426
|
runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
|
|
382
427
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
|
|
383
428
|
llmModel?: string | undefined;
|
|
429
|
+
workspaceExternalId?: string | undefined;
|
|
384
430
|
};
|
|
385
431
|
} & {
|
|
386
432
|
param: {
|
|
@@ -405,6 +451,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
405
451
|
runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
|
|
406
452
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
|
|
407
453
|
llmModel?: string | undefined;
|
|
454
|
+
workspaceExternalId?: string | undefined;
|
|
408
455
|
};
|
|
409
456
|
} & {
|
|
410
457
|
param: {
|
|
@@ -429,6 +476,7 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
429
476
|
runtime?: "mastra" | "claude-managed" | "fake" | "claude-agent-sdk" | undefined;
|
|
430
477
|
llmProvider?: "anthropic" | "google" | "openai" | "cerebras" | "gateway" | undefined;
|
|
431
478
|
llmModel?: string | undefined;
|
|
479
|
+
workspaceExternalId?: string | undefined;
|
|
432
480
|
};
|
|
433
481
|
} & {
|
|
434
482
|
param: {
|
|
@@ -724,6 +772,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
724
772
|
};
|
|
725
773
|
output: {
|
|
726
774
|
status: string;
|
|
775
|
+
recalledMessages: readonly {
|
|
776
|
+
readonly messageId: import('node_modules/@belong/cloud/src/platform/ids').MessageId;
|
|
777
|
+
readonly clientMessageId: string | null;
|
|
778
|
+
readonly text: string;
|
|
779
|
+
}[];
|
|
727
780
|
};
|
|
728
781
|
outputFormat: "json";
|
|
729
782
|
status: 202;
|
|
@@ -1398,7 +1451,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1398
1451
|
terminal: {
|
|
1399
1452
|
uploads: import('hono/client').ClientRequest<string, "/v1/terminal/uploads", {
|
|
1400
1453
|
$get: {
|
|
1401
|
-
input: {
|
|
1454
|
+
input: {
|
|
1455
|
+
query: {
|
|
1456
|
+
workspaceExternalId?: string | string[];
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1402
1459
|
output: {
|
|
1403
1460
|
files: readonly {
|
|
1404
1461
|
readonly name: string;
|
|
@@ -1410,7 +1467,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1410
1467
|
status: import('hono/utils/http-status').ContentfulStatusCode;
|
|
1411
1468
|
};
|
|
1412
1469
|
$post: {
|
|
1413
|
-
input: {
|
|
1470
|
+
input: {
|
|
1471
|
+
query: {
|
|
1472
|
+
workspaceExternalId?: string | string[];
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1414
1475
|
output: {
|
|
1415
1476
|
error: {
|
|
1416
1477
|
type: string;
|
|
@@ -1419,7 +1480,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1419
1480
|
outputFormat: "json";
|
|
1420
1481
|
status: 400;
|
|
1421
1482
|
} | {
|
|
1422
|
-
input: {
|
|
1483
|
+
input: {
|
|
1484
|
+
query: {
|
|
1485
|
+
workspaceExternalId?: string | string[];
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1423
1488
|
output: {
|
|
1424
1489
|
error: {
|
|
1425
1490
|
type: string;
|
|
@@ -1428,14 +1493,22 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1428
1493
|
outputFormat: "json";
|
|
1429
1494
|
status: 413;
|
|
1430
1495
|
} | {
|
|
1431
|
-
input: {
|
|
1496
|
+
input: {
|
|
1497
|
+
query: {
|
|
1498
|
+
workspaceExternalId?: string | string[];
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1432
1501
|
output: {
|
|
1433
1502
|
name: string;
|
|
1434
1503
|
};
|
|
1435
1504
|
outputFormat: "json";
|
|
1436
1505
|
status: 201;
|
|
1437
1506
|
} | {
|
|
1438
|
-
input: {
|
|
1507
|
+
input: {
|
|
1508
|
+
query: {
|
|
1509
|
+
workspaceExternalId?: string | string[];
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1439
1512
|
output: {
|
|
1440
1513
|
error: {
|
|
1441
1514
|
type: string;
|
|
@@ -1444,7 +1517,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1444
1517
|
outputFormat: "json";
|
|
1445
1518
|
status: 503;
|
|
1446
1519
|
} | {
|
|
1447
|
-
input: {
|
|
1520
|
+
input: {
|
|
1521
|
+
query: {
|
|
1522
|
+
workspaceExternalId?: string | string[];
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1448
1525
|
output: {
|
|
1449
1526
|
error: {
|
|
1450
1527
|
type: string;
|
|
@@ -1453,7 +1530,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1453
1530
|
outputFormat: "json";
|
|
1454
1531
|
status: 409;
|
|
1455
1532
|
} | {
|
|
1456
|
-
input: {
|
|
1533
|
+
input: {
|
|
1534
|
+
query: {
|
|
1535
|
+
workspaceExternalId?: string | string[];
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1457
1538
|
output: {
|
|
1458
1539
|
error: {
|
|
1459
1540
|
type: string;
|
|
@@ -1470,7 +1551,11 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1470
1551
|
terminal: {
|
|
1471
1552
|
workspace: import('hono/client').ClientRequest<string, "/v1/terminal/workspace", {
|
|
1472
1553
|
$get: {
|
|
1473
|
-
input: {
|
|
1554
|
+
input: {
|
|
1555
|
+
query: {
|
|
1556
|
+
workspaceExternalId?: string | string[];
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1474
1559
|
output: {
|
|
1475
1560
|
files: readonly {
|
|
1476
1561
|
readonly path: string;
|
|
@@ -1806,6 +1891,294 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
1806
1891
|
}>;
|
|
1807
1892
|
};
|
|
1808
1893
|
};
|
|
1894
|
+
} & {
|
|
1895
|
+
v1: {
|
|
1896
|
+
agents: {
|
|
1897
|
+
publish: import('hono/client').ClientRequest<string, "/v1/agents/publish", {
|
|
1898
|
+
$post: {
|
|
1899
|
+
input: {
|
|
1900
|
+
json: {
|
|
1901
|
+
version: 1;
|
|
1902
|
+
agentId: string;
|
|
1903
|
+
company: string;
|
|
1904
|
+
config: {
|
|
1905
|
+
[x: string]: unknown;
|
|
1906
|
+
agentId: string;
|
|
1907
|
+
};
|
|
1908
|
+
plugin: {
|
|
1909
|
+
[x: string]: unknown;
|
|
1910
|
+
version: 1;
|
|
1911
|
+
name: string;
|
|
1912
|
+
tools: ({
|
|
1913
|
+
toolName: string;
|
|
1914
|
+
requiredScopes: string[];
|
|
1915
|
+
mutates: boolean;
|
|
1916
|
+
approval: "none" | "required";
|
|
1917
|
+
kind: "cli";
|
|
1918
|
+
command: string;
|
|
1919
|
+
tokenEnv?: string | undefined;
|
|
1920
|
+
} | {
|
|
1921
|
+
toolName: string;
|
|
1922
|
+
requiredScopes: string[];
|
|
1923
|
+
mutates: boolean;
|
|
1924
|
+
approval: "none" | "required";
|
|
1925
|
+
kind: "rest";
|
|
1926
|
+
url: string;
|
|
1927
|
+
tokenEnv?: string | undefined;
|
|
1928
|
+
} | {
|
|
1929
|
+
toolName: string;
|
|
1930
|
+
requiredScopes: string[];
|
|
1931
|
+
mutates: boolean;
|
|
1932
|
+
approval: "none" | "required";
|
|
1933
|
+
kind: "mcp";
|
|
1934
|
+
mcpUri: string;
|
|
1935
|
+
tokenEnv?: string | undefined;
|
|
1936
|
+
})[];
|
|
1937
|
+
ui?: {
|
|
1938
|
+
dock?: "left" | "right" | undefined;
|
|
1939
|
+
voice?: boolean | undefined;
|
|
1940
|
+
} | undefined;
|
|
1941
|
+
};
|
|
1942
|
+
knowledge: {
|
|
1943
|
+
path: string;
|
|
1944
|
+
contentBase64: string;
|
|
1945
|
+
}[];
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
output: {
|
|
1949
|
+
error: string;
|
|
1950
|
+
};
|
|
1951
|
+
outputFormat: "json";
|
|
1952
|
+
status: 503;
|
|
1953
|
+
} | {
|
|
1954
|
+
input: {
|
|
1955
|
+
json: {
|
|
1956
|
+
version: 1;
|
|
1957
|
+
agentId: string;
|
|
1958
|
+
company: string;
|
|
1959
|
+
config: {
|
|
1960
|
+
[x: string]: unknown;
|
|
1961
|
+
agentId: string;
|
|
1962
|
+
};
|
|
1963
|
+
plugin: {
|
|
1964
|
+
[x: string]: unknown;
|
|
1965
|
+
version: 1;
|
|
1966
|
+
name: string;
|
|
1967
|
+
tools: ({
|
|
1968
|
+
toolName: string;
|
|
1969
|
+
requiredScopes: string[];
|
|
1970
|
+
mutates: boolean;
|
|
1971
|
+
approval: "none" | "required";
|
|
1972
|
+
kind: "cli";
|
|
1973
|
+
command: string;
|
|
1974
|
+
tokenEnv?: string | undefined;
|
|
1975
|
+
} | {
|
|
1976
|
+
toolName: string;
|
|
1977
|
+
requiredScopes: string[];
|
|
1978
|
+
mutates: boolean;
|
|
1979
|
+
approval: "none" | "required";
|
|
1980
|
+
kind: "rest";
|
|
1981
|
+
url: string;
|
|
1982
|
+
tokenEnv?: string | undefined;
|
|
1983
|
+
} | {
|
|
1984
|
+
toolName: string;
|
|
1985
|
+
requiredScopes: string[];
|
|
1986
|
+
mutates: boolean;
|
|
1987
|
+
approval: "none" | "required";
|
|
1988
|
+
kind: "mcp";
|
|
1989
|
+
mcpUri: string;
|
|
1990
|
+
tokenEnv?: string | undefined;
|
|
1991
|
+
})[];
|
|
1992
|
+
ui?: {
|
|
1993
|
+
dock?: "left" | "right" | undefined;
|
|
1994
|
+
voice?: boolean | undefined;
|
|
1995
|
+
} | undefined;
|
|
1996
|
+
};
|
|
1997
|
+
knowledge: {
|
|
1998
|
+
path: string;
|
|
1999
|
+
contentBase64: string;
|
|
2000
|
+
}[];
|
|
2001
|
+
};
|
|
2002
|
+
};
|
|
2003
|
+
output: {
|
|
2004
|
+
error: string;
|
|
2005
|
+
};
|
|
2006
|
+
outputFormat: "json";
|
|
2007
|
+
status: 401;
|
|
2008
|
+
} | {
|
|
2009
|
+
input: {
|
|
2010
|
+
json: {
|
|
2011
|
+
version: 1;
|
|
2012
|
+
agentId: string;
|
|
2013
|
+
company: string;
|
|
2014
|
+
config: {
|
|
2015
|
+
[x: string]: unknown;
|
|
2016
|
+
agentId: string;
|
|
2017
|
+
};
|
|
2018
|
+
plugin: {
|
|
2019
|
+
[x: string]: unknown;
|
|
2020
|
+
version: 1;
|
|
2021
|
+
name: string;
|
|
2022
|
+
tools: ({
|
|
2023
|
+
toolName: string;
|
|
2024
|
+
requiredScopes: string[];
|
|
2025
|
+
mutates: boolean;
|
|
2026
|
+
approval: "none" | "required";
|
|
2027
|
+
kind: "cli";
|
|
2028
|
+
command: string;
|
|
2029
|
+
tokenEnv?: string | undefined;
|
|
2030
|
+
} | {
|
|
2031
|
+
toolName: string;
|
|
2032
|
+
requiredScopes: string[];
|
|
2033
|
+
mutates: boolean;
|
|
2034
|
+
approval: "none" | "required";
|
|
2035
|
+
kind: "rest";
|
|
2036
|
+
url: string;
|
|
2037
|
+
tokenEnv?: string | undefined;
|
|
2038
|
+
} | {
|
|
2039
|
+
toolName: string;
|
|
2040
|
+
requiredScopes: string[];
|
|
2041
|
+
mutates: boolean;
|
|
2042
|
+
approval: "none" | "required";
|
|
2043
|
+
kind: "mcp";
|
|
2044
|
+
mcpUri: string;
|
|
2045
|
+
tokenEnv?: string | undefined;
|
|
2046
|
+
})[];
|
|
2047
|
+
ui?: {
|
|
2048
|
+
dock?: "left" | "right" | undefined;
|
|
2049
|
+
voice?: boolean | undefined;
|
|
2050
|
+
} | undefined;
|
|
2051
|
+
};
|
|
2052
|
+
knowledge: {
|
|
2053
|
+
path: string;
|
|
2054
|
+
contentBase64: string;
|
|
2055
|
+
}[];
|
|
2056
|
+
};
|
|
2057
|
+
};
|
|
2058
|
+
output: {
|
|
2059
|
+
agentId: string;
|
|
2060
|
+
objectKey: string;
|
|
2061
|
+
publishedAt: string;
|
|
2062
|
+
};
|
|
2063
|
+
outputFormat: "json";
|
|
2064
|
+
status: 201;
|
|
2065
|
+
} | {
|
|
2066
|
+
input: {
|
|
2067
|
+
json: {
|
|
2068
|
+
version: 1;
|
|
2069
|
+
agentId: string;
|
|
2070
|
+
company: string;
|
|
2071
|
+
config: {
|
|
2072
|
+
[x: string]: unknown;
|
|
2073
|
+
agentId: string;
|
|
2074
|
+
};
|
|
2075
|
+
plugin: {
|
|
2076
|
+
[x: string]: unknown;
|
|
2077
|
+
version: 1;
|
|
2078
|
+
name: string;
|
|
2079
|
+
tools: ({
|
|
2080
|
+
toolName: string;
|
|
2081
|
+
requiredScopes: string[];
|
|
2082
|
+
mutates: boolean;
|
|
2083
|
+
approval: "none" | "required";
|
|
2084
|
+
kind: "cli";
|
|
2085
|
+
command: string;
|
|
2086
|
+
tokenEnv?: string | undefined;
|
|
2087
|
+
} | {
|
|
2088
|
+
toolName: string;
|
|
2089
|
+
requiredScopes: string[];
|
|
2090
|
+
mutates: boolean;
|
|
2091
|
+
approval: "none" | "required";
|
|
2092
|
+
kind: "rest";
|
|
2093
|
+
url: string;
|
|
2094
|
+
tokenEnv?: string | undefined;
|
|
2095
|
+
} | {
|
|
2096
|
+
toolName: string;
|
|
2097
|
+
requiredScopes: string[];
|
|
2098
|
+
mutates: boolean;
|
|
2099
|
+
approval: "none" | "required";
|
|
2100
|
+
kind: "mcp";
|
|
2101
|
+
mcpUri: string;
|
|
2102
|
+
tokenEnv?: string | undefined;
|
|
2103
|
+
})[];
|
|
2104
|
+
ui?: {
|
|
2105
|
+
dock?: "left" | "right" | undefined;
|
|
2106
|
+
voice?: boolean | undefined;
|
|
2107
|
+
} | undefined;
|
|
2108
|
+
};
|
|
2109
|
+
knowledge: {
|
|
2110
|
+
path: string;
|
|
2111
|
+
contentBase64: string;
|
|
2112
|
+
}[];
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
2115
|
+
output: {
|
|
2116
|
+
error: {
|
|
2117
|
+
type: string;
|
|
2118
|
+
};
|
|
2119
|
+
};
|
|
2120
|
+
outputFormat: "json";
|
|
2121
|
+
status: 422;
|
|
2122
|
+
};
|
|
2123
|
+
}>;
|
|
2124
|
+
};
|
|
2125
|
+
};
|
|
2126
|
+
} & {
|
|
2127
|
+
v1: {
|
|
2128
|
+
identity: {
|
|
2129
|
+
verify: import('hono/client').ClientRequest<string, "/v1/identity/verify", {
|
|
2130
|
+
$post: {
|
|
2131
|
+
input: {
|
|
2132
|
+
json: {
|
|
2133
|
+
[x: string]: unknown;
|
|
2134
|
+
version: 1;
|
|
2135
|
+
company: string;
|
|
2136
|
+
agent: {
|
|
2137
|
+
name: string;
|
|
2138
|
+
id: string;
|
|
2139
|
+
};
|
|
2140
|
+
issued_to: string;
|
|
2141
|
+
issued_at: string;
|
|
2142
|
+
access: ("cli" | "mcp")[];
|
|
2143
|
+
signature: string;
|
|
2144
|
+
mode?: "dev" | undefined;
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2147
|
+
output: {
|
|
2148
|
+
error: string;
|
|
2149
|
+
};
|
|
2150
|
+
outputFormat: "json";
|
|
2151
|
+
status: 500;
|
|
2152
|
+
} | {
|
|
2153
|
+
input: {
|
|
2154
|
+
json: {
|
|
2155
|
+
[x: string]: unknown;
|
|
2156
|
+
version: 1;
|
|
2157
|
+
company: string;
|
|
2158
|
+
agent: {
|
|
2159
|
+
name: string;
|
|
2160
|
+
id: string;
|
|
2161
|
+
};
|
|
2162
|
+
issued_to: string;
|
|
2163
|
+
issued_at: string;
|
|
2164
|
+
access: ("cli" | "mcp")[];
|
|
2165
|
+
signature: string;
|
|
2166
|
+
mode?: "dev" | undefined;
|
|
2167
|
+
};
|
|
2168
|
+
};
|
|
2169
|
+
output: {
|
|
2170
|
+
readonly valid: boolean;
|
|
2171
|
+
readonly mode: "dev";
|
|
2172
|
+
readonly agentId: string;
|
|
2173
|
+
readonly company: string;
|
|
2174
|
+
readonly errors: readonly string[];
|
|
2175
|
+
};
|
|
2176
|
+
outputFormat: "json";
|
|
2177
|
+
status: 200;
|
|
2178
|
+
};
|
|
2179
|
+
}>;
|
|
2180
|
+
};
|
|
2181
|
+
};
|
|
1809
2182
|
} & {
|
|
1810
2183
|
v1: {
|
|
1811
2184
|
telemetry: {
|
package/dist/api/mutations.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { ApiClient } from './client.ts';
|
|
2
2
|
export declare const deleteSessionRequest: (api: ApiClient, sessionId: string) => Promise<void>;
|
|
3
3
|
export declare const useDeleteSession: () => import('@tanstack/react-query').UseMutationResult<void, Error, string, unknown>;
|
|
4
|
+
export declare const renameSessionRequest: (api: ApiClient, sessionId: string, title: string) => Promise<void>;
|
|
5
|
+
export declare const useRenameSession: () => import('@tanstack/react-query').UseMutationResult<void, Error, {
|
|
6
|
+
readonly sessionId: string;
|
|
7
|
+
readonly title: string;
|
|
8
|
+
}, unknown>;
|
package/dist/api/query-keys.d.ts
CHANGED
|
@@ -7,7 +7,16 @@ export declare const queryKeys: {
|
|
|
7
7
|
sessions: readonly ["belong", "sessions"];
|
|
8
8
|
session: (sessionId: string) => readonly ["belong", "sessions", string];
|
|
9
9
|
messages: (sessionId: string) => readonly ["belong", "sessions", string, "messages"];
|
|
10
|
+
/**
|
|
11
|
+
* Workspace-scoped session LIST (workspace isolation): distinct cache per
|
|
12
|
+
* workspace so a switch never paints another workspace's chats. Keeps
|
|
13
|
+
* `sessions` as its prefix so existing invalidations keep hitting it.
|
|
14
|
+
* `workspaceKey` is the scoped id, or "" when unconfigured.
|
|
15
|
+
*/
|
|
16
|
+
sessionList: (workspaceKey: string, limit: number) => readonly ["belong", "sessions", "list", string, number];
|
|
10
17
|
skills: readonly ["belong", "skills"];
|
|
11
18
|
workspaceFiles: readonly ["belong", "workspace-files"];
|
|
19
|
+
/** Workspace-scoped Files tab / @-mention picker cache (same "" convention). */
|
|
20
|
+
workspaceFilesScoped: (workspaceKey: string) => readonly ["belong", "workspace-files", string];
|
|
12
21
|
agentGrant: (provider: string, scopeExternalId: string) => readonly ["belong", "agent-grant", string, string];
|
|
13
22
|
};
|
|
@@ -5,5 +5,5 @@ export type WorkspaceFile = {
|
|
|
5
5
|
readonly sizeBytes: number;
|
|
6
6
|
readonly modifiedAt: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const listWorkspaceFilesRequest: (api: ApiClient) => Promise<readonly WorkspaceFile[]>;
|
|
8
|
+
export declare const listWorkspaceFilesRequest: (api: ApiClient, workspaceExternalId?: string) => Promise<readonly WorkspaceFile[]>;
|
|
9
9
|
export declare const useWorkspaceFiles: () => import('@tanstack/react-query').UseQueryResult<NoInfer<readonly WorkspaceFile[]>, Error>;
|
package/dist/app/providers.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ export type SdkProvidersProps = {
|
|
|
9
9
|
readonly portalContainer?: HTMLElement | null;
|
|
10
10
|
readonly children?: ReactNode;
|
|
11
11
|
};
|
|
12
|
-
export declare const SdkProviders: ({ apiBaseUrl, portalContainer
|
|
12
|
+
export declare const SdkProviders: ({ apiBaseUrl, portalContainer }: SdkProvidersProps) => import("react").JSX.Element;
|
|
@@ -16,7 +16,13 @@ export type BelongWidgetProps = {
|
|
|
16
16
|
readonly universeOrigin?: string;
|
|
17
17
|
/** Host's target agent id; sent as `X-Belong-Agent-Id` (backend no-op today). */
|
|
18
18
|
readonly agentId?: string;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Dock UI language, REACTIVE (BEL-140): the mount value is the deployment
|
|
21
|
+
* default (a stored in-dock user choice still wins); changing the prop at
|
|
22
|
+
* runtime is the host switching language and relabels the whole dock live,
|
|
23
|
+
* winning over any in-dock choice. Omitted → auto-detect (stored choice ▸
|
|
24
|
+
* browser language ▸ English).
|
|
25
|
+
*/
|
|
20
26
|
readonly locale?: BelongLocale;
|
|
21
27
|
/**
|
|
22
28
|
* Whether THIS workspace has a Belong panel. `false` renders nothing (no rail,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as ln, P as an, Q as g, S as on, T as Z, V as w, W as _, X as sn, Y as rn, Z as z, $ as t, a0 as V, a1 as un, a2 as tn, a3 as fn } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { O as ln, P as an, Q as g, S as on, T as Z, V as w, W as _, X as sn, Y as rn, Z as z, $ as t, a0 as V, a1 as un, a2 as tn, a3 as fn } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
|
|
2
2
|
globalThis.process = globalThis.process || { env: {} };
|
|
3
3
|
globalThis.global = globalThis.global || globalThis;
|
|
4
4
|
function cn(l) {
|
|
@@ -83,4 +83,4 @@ function xn() {
|
|
|
83
83
|
export {
|
|
84
84
|
xn as d
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=arc-
|
|
86
|
+
//# sourceMappingURL=arc-BEnKmFiH.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b7 as $e, _ as dt, N as ke, ai as Ze, l as Re, b as qe, a as Qe, q as Je, t as Ke, g as je, s as _e, B as tr, I as er, G as rr, K as ir, c as ye, aR as Ee, b8 as ve, i as ar, d as nr, y as or, b9 as sr, ba as hr } from "./mermaid-GHXKKRXX-
|
|
2
|
-
import { p as lr } from "./chunk-4BX2VUAB-
|
|
1
|
+
import { b7 as $e, _ as dt, N as ke, ai as Ze, l as Re, b as qe, a as Qe, q as Je, t as Ke, g as je, s as _e, B as tr, I as er, G as rr, K as ir, c as ye, aR as Ee, b8 as ve, i as ar, d as nr, y as or, b9 as sr, ba as hr } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
|
|
2
|
+
import { p as lr } from "./chunk-4BX2VUAB-TXwXVoCn.js";
|
|
3
3
|
import { p as fr } from "./wardley-L42UT6IY-HA1eSIS_.js";
|
|
4
4
|
import { c as Se } from "./cytoscape.esm-C31R6JOv.js";
|
|
5
5
|
globalThis.process = globalThis.process || { env: {} };
|
|
@@ -4694,4 +4694,4 @@ var Pr = /* @__PURE__ */ dt(async (C, G, w, U) => {
|
|
|
4694
4694
|
export {
|
|
4695
4695
|
Wr as diagram
|
|
4696
4696
|
};
|
|
4697
|
-
//# sourceMappingURL=architectureDiagram-3BPJPVTR-
|
|
4697
|
+
//# sourceMappingURL=architectureDiagram-3BPJPVTR-qrW4PiqE.js.map
|
package/dist/component/{blockDiagram-GPEHLZMM-myKtXzN1.js → blockDiagram-GPEHLZMM-Cy83RTvZ.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as pe } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { aq as fe, ar as Ut, as as xe, at as ye, au as be, av as we, aw as me, ax as Se, ay as Le, az as ke, aA as ve, aB as Ee, aC as _e, aD as Te, aE as De, aF as Be, aG as Ne, aH as Ie, aI as Ce, aJ as Oe, aK as Re, aL as Ae, aM as ze, aN as Me, aO as Pe, _ as d, G as at, d as D, e as Fe, l as k, B as We, D as Ye, aP as He, ac as Ke, ad as Ue, c as A, a9 as Xe, aQ as P, aR as vt, aS as $, aT as Ve, u as tt, k as je, aU as Ge, i as Ot, aV as Rt, aW as Ze } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { g as pe } from "./chunk-FMBD7UC4-DMPGLPzn.js";
|
|
2
|
+
import { aq as fe, ar as Ut, as as xe, at as ye, au as be, av as we, aw as me, ax as Se, ay as Le, az as ke, aA as ve, aB as Ee, aC as _e, aD as Te, aE as De, aF as Be, aG as Ne, aH as Ie, aI as Ce, aJ as Oe, aK as Re, aL as Ae, aM as ze, aN as Me, aO as Pe, _ as d, G as at, d as D, e as Fe, l as k, B as We, D as Ye, aP as He, ac as Ke, ad as Ue, c as A, a9 as Xe, aQ as P, aR as vt, aS as $, aT as Ve, u as tt, k as je, aU as Ge, i as Ot, aV as Rt, aW as Ze } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
|
|
3
3
|
import { G as qe } from "./graph-BZLHvygk.js";
|
|
4
|
-
import { c as Je } from "./channel-
|
|
4
|
+
import { c as Je } from "./channel-S3CulQua.js";
|
|
5
5
|
globalThis.process = globalThis.process || { env: {} };
|
|
6
6
|
globalThis.global = globalThis.global || globalThis;
|
|
7
7
|
function Qe(e) {
|
|
@@ -2418,4 +2418,4 @@ var Ta = /* @__PURE__ */ d(function(e, t) {
|
|
|
2418
2418
|
export {
|
|
2419
2419
|
Ra as diagram
|
|
2420
2420
|
};
|
|
2421
|
-
//# sourceMappingURL=blockDiagram-GPEHLZMM-
|
|
2421
|
+
//# sourceMappingURL=blockDiagram-GPEHLZMM-Cy83RTvZ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Oe, d as Re } from "./chunk-ND2GUHAM-
|
|
2
|
-
import { s as Se, g as De, a as Pe, b as Be, _ as y, c as Dt, d as Nt, l as he, e as Ie, f as Me, h as Tt, i as pe, j as Le, w as Ne, k as Jt, m as ue } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { g as Oe, d as Re } from "./chunk-ND2GUHAM-D4Pq2Sbn.js";
|
|
2
|
+
import { s as Se, g as De, a as Pe, b as Be, _ as y, c as Dt, d as Nt, l as he, e as Ie, f as Me, h as Tt, i as pe, j as Le, w as Ne, k as Jt, m as ue } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
|
|
3
3
|
globalThis.process = globalThis.process || { env: {} };
|
|
4
4
|
globalThis.global = globalThis.global || globalThis;
|
|
5
5
|
var jt = (function() {
|
|
@@ -1583,4 +1583,4 @@ var T0 = /* @__PURE__ */ y(function(e, t, s, o) {
|
|
|
1583
1583
|
export {
|
|
1584
1584
|
P0 as diagram
|
|
1585
1585
|
};
|
|
1586
|
-
//# sourceMappingURL=c4Diagram-AAUBKEIU-
|
|
1586
|
+
//# sourceMappingURL=c4Diagram-AAUBKEIU-DA1KAAqR.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { U as s, E as a } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { U as s, E as a } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
|
|
2
2
|
globalThis.process = globalThis.process || { env: {} };
|
|
3
3
|
globalThis.global = globalThis.global || globalThis;
|
|
4
4
|
const g = (l, o) => s.lang.round(a.parse(l)[o]);
|
|
5
5
|
export {
|
|
6
6
|
g as c
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=channel-
|
|
8
|
+
//# sourceMappingURL=channel-S3CulQua.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, e as n, l as g } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { _ as s, e as n, l as g } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
|
|
2
2
|
globalThis.process = globalThis.process || { env: {} };
|
|
3
3
|
globalThis.global = globalThis.global || globalThis;
|
|
4
4
|
var b = /* @__PURE__ */ s((e, o, t, a) => {
|
|
@@ -19,4 +19,4 @@ var b = /* @__PURE__ */ s((e, o, t, a) => {
|
|
|
19
19
|
export {
|
|
20
20
|
b as s
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=chunk-2J33WTMH-
|
|
22
|
+
//# sourceMappingURL=chunk-2J33WTMH-B3IpUX0y.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./mermaid-GHXKKRXX-
|
|
1
|
+
import { _ as e } from "./mermaid-GHXKKRXX-DRKI1NOg.js";
|
|
2
2
|
globalThis.process = globalThis.process || { env: {} };
|
|
3
3
|
globalThis.global = globalThis.global || globalThis;
|
|
4
4
|
function i(l, o) {
|
|
@@ -8,4 +8,4 @@ e(i, "populateCommonDb");
|
|
|
8
8
|
export {
|
|
9
9
|
i as p
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=chunk-4BX2VUAB-
|
|
11
|
+
//# sourceMappingURL=chunk-4BX2VUAB-TXwXVoCn.js.map
|