@belonguniverseai/react-sdk 0.1.6 → 0.1.7
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/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-D26RO7cK.js} +2 -2
- package/dist/component/{architectureDiagram-3BPJPVTR-osyB2zKw.js → architectureDiagram-3BPJPVTR-uiXhyHDF.js} +3 -3
- package/dist/component/{blockDiagram-GPEHLZMM-ChWpzkC_.js → blockDiagram-GPEHLZMM-Bm1HEObg.js} +4 -4
- package/dist/component/{c4Diagram-AAUBKEIU-TBt2Sr1T.js → c4Diagram-AAUBKEIU-BypAuFIJ.js} +3 -3
- package/dist/component/{channel-DKYVGzgk.js → channel-MvxNOfHS.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-D-qMyfG9.js → chunk-2J33WTMH-MxAoh_Eu.js} +2 -2
- package/dist/component/{chunk-4BX2VUAB-BYTeOCro.js → chunk-4BX2VUAB-BHpzlyda.js} +2 -2
- package/dist/component/{chunk-55IACEB6-CkLaQSjG.js → chunk-55IACEB6-igXCAYDB.js} +2 -2
- package/dist/component/{chunk-727SXJPM-CzkWgEIS.js → chunk-727SXJPM-BPq4W66f.js} +6 -6
- package/dist/component/{chunk-AQP2D5EJ-d-zIc-67.js → chunk-AQP2D5EJ-Y9AksdXf.js} +4 -4
- package/dist/component/{chunk-FMBD7UC4-amGyEMTp.js → chunk-FMBD7UC4-DHrfutng.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-DjPCor9N.js → chunk-ND2GUHAM-Ch9c4OTL.js} +2 -2
- package/dist/component/{chunk-QZHKN3VN-B0LrqJFz.js → chunk-QZHKN3VN-DCe5OD8b.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-BLW37dmc.js → classDiagram-4FO5ZUOK-wW5NdcaU.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-BLW37dmc.js → classDiagram-v2-Q7XG4LA2-wW5NdcaU.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BrAZZB3S.js → cose-bilkent-S5V4N54A-BkRr9q6q.js} +2 -2
- package/dist/component/{dagre-BM42HDAG-lt_pmFeQ.js → dagre-BM42HDAG-BaUecTLo.js} +2 -2
- package/dist/component/{diagram-2AECGRRQ-DfMdC1rS.js → diagram-2AECGRRQ-BaAo02me.js} +3 -3
- package/dist/component/{diagram-5GNKFQAL-CORXCu1y.js → diagram-5GNKFQAL-DKerYV9c.js} +4 -4
- package/dist/component/{diagram-KO2AKTUF-Dt8oiVky.js → diagram-KO2AKTUF-jeKVSHu1.js} +3 -3
- package/dist/component/{diagram-LMA3HP47-Bu-XSRd6.js → diagram-LMA3HP47-wsR18sOb.js} +3 -3
- package/dist/component/{diagram-OG6HWLK6-DiOgJz8h.js → diagram-OG6HWLK6-D6kALGxL.js} +4 -4
- package/dist/component/{erDiagram-TEJ5UH35-DSrXX--n.js → erDiagram-TEJ5UH35-CQb_EY79.js} +5 -5
- package/dist/component/{flowDiagram-I6XJVG4X-D1E_ZfMU.js → flowDiagram-I6XJVG4X-B52f9IhS.js} +7 -7
- package/dist/component/{ganttDiagram-6RSMTGT7-BzGCGwAi.js → ganttDiagram-6RSMTGT7-B6szKgV7.js} +3 -3
- package/dist/component/{gitGraphDiagram-PVQCEYII-C6qUOG7K.js → gitGraphDiagram-PVQCEYII-Cso6Oo6v.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-D1SvZ8C_.js → highlighted-body-OFNGDK62-CD0QHket.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-BGNkBFoP.js} +2 -2
- package/dist/component/{ishikawaDiagram-YF4QCWOH-BDHAOBaC.js → ishikawaDiagram-YF4QCWOH-CDk8KSNE.js} +2 -2
- package/dist/component/{journeyDiagram-JHISSGLW-BtN73bIc.js → journeyDiagram-JHISSGLW-lPfVcAq5.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-Dll6IAhM.js → kanban-definition-UN3LZRKU-DN_BkNHr.js} +3 -3
- package/dist/component/{linear-ChreRr3h.js → linear-C9Fv-7qu.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-C0Oq2bpl.js → mermaid-GHXKKRXX-bJrxMXXe.js} +35640 -32099
- package/dist/component/{mindmap-definition-RKZ34NQL-DC9K87bN.js → mindmap-definition-RKZ34NQL-Duh3XRoZ.js} +4 -4
- package/dist/component/{pieDiagram-4H26LBE5-BNGHaTmE.js → pieDiagram-4H26LBE5-BkKLjdAW.js} +4 -4
- package/dist/component/{quadrantDiagram-W4KKPZXB-D23AXzE2.js → quadrantDiagram-W4KKPZXB-DAvb8fUN.js} +3 -3
- package/dist/component/{requirementDiagram-4Y6WPE33-DRe6Bcy7.js → requirementDiagram-4Y6WPE33-BtRuiyP2.js} +4 -4
- package/dist/component/{sankeyDiagram-5OEKKPKP-Ca--29t-.js → sankeyDiagram-5OEKKPKP-N0AD4yPI.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-Cv6WVN5T.js → sequenceDiagram-3UESZ5HK-BHfCscqu.js} +4 -4
- package/dist/component/{stateDiagram-AJRCARHV-Ba_3WUjf.js → stateDiagram-AJRCARHV-CogCGofy.js} +3 -3
- package/dist/component/{stateDiagram-v2-BHNVJYJU-C8G1MQa8.js → stateDiagram-v2-BHNVJYJU-B1mCX7fI.js} +3 -3
- package/dist/component/{timeline-definition-PNZ67QCA-Bfh6fz9g.js → timeline-definition-PNZ67QCA-CCbxae4K.js} +3 -3
- package/dist/component/{vennDiagram-CIIHVFJN-D1U-PuFV.js → vennDiagram-CIIHVFJN-4A3Z5NhT.js} +2 -2
- package/dist/component/{wardleyDiagram-YWT4CUSO-DTwXmrGn.js → wardleyDiagram-YWT4CUSO-D2FUxcv8.js} +3 -3
- package/dist/component/{xychartDiagram-2RQKCTM6-Dy8C7cbo.js → xychartDiagram-2RQKCTM6-DELqVNap.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/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/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 +1 -1
- package/dist/components/embed/AgentGrantCard.d.ts +0 -27
- package/dist/i18n/messages/surfaces/agentGrant.d.ts +0 -58
|
@@ -13,27 +13,29 @@ export declare const useAgentGrantStatus: (input: {
|
|
|
13
13
|
readonly provider: string;
|
|
14
14
|
readonly scopeExternalId: string;
|
|
15
15
|
} | null) => import('@tanstack/react-query').UseQueryResult<NoInfer<AgentGrantStatusView>, Error>;
|
|
16
|
+
/** Injectable timing/randomness so the backoff loop is deterministic in tests. */
|
|
17
|
+
export type GrantRetryOptions = {
|
|
18
|
+
readonly maxRetries?: number;
|
|
19
|
+
readonly budgetMs?: number;
|
|
20
|
+
readonly sleep?: (ms: number) => Promise<void>;
|
|
21
|
+
readonly random?: () => number;
|
|
22
|
+
readonly now?: () => number;
|
|
23
|
+
};
|
|
16
24
|
/**
|
|
17
|
-
* POST a grant create
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* Either way: force-mint a brand-new token (`forceRotateBelongToken` →
|
|
27
|
-
* cacheMode:"off") and retry ONCE — the next request carries a JWT the provider
|
|
28
|
-
* has never seen, into a now-under-cap workspace. A no-op for non-Auth0 hosts
|
|
29
|
-
* (the retry re-sends the same token and fails identically, surfacing exactly
|
|
30
|
-
* as before). Standalone so the retry is unit-testable (mirrors
|
|
31
|
-
* `deleteSessionRequest`).
|
|
25
|
+
* POST a grant create with two layers of self-heal:
|
|
26
|
+
* 1. Per attempt — the 409/429 anti-replay / session-cap force-mint retry
|
|
27
|
+
* (see `attemptGrantOnce`).
|
|
28
|
+
* 2. Across attempts — a bounded backoff retry for TRANSIENT infra failures
|
|
29
|
+
* (502, 503 sandbox_unavailable, network errors — see `runGrantIteration` /
|
|
30
|
+
* `isTransientGrantFailure`): up to `maxRetries` retries with full-jitter
|
|
31
|
+
* backoff under a total time budget, so a passing Daytona runner blip or a
|
|
32
|
+
* sandbox write hiccup self-heals instead of surfacing to the user.
|
|
33
|
+
* Injectable timing/randomness so the whole loop is unit-testable.
|
|
32
34
|
*/
|
|
33
35
|
export declare const createAgentGrantRequest: (api: ApiClient, input: {
|
|
34
36
|
readonly provider: string;
|
|
35
37
|
readonly scopeExternalId: string;
|
|
36
|
-
}) => Promise<unknown>;
|
|
38
|
+
}, opts?: GrantRetryOptions) => Promise<unknown>;
|
|
37
39
|
/**
|
|
38
40
|
* BEL-79 fail-fast beacon: tell the backend a reactive reconnect has FAILED for
|
|
39
41
|
* good (after `createAgentGrantRequest`'s own forceRotate+retry), so the worker's
|
|
@@ -52,10 +54,3 @@ export declare const useCreateAgentGrant: () => import('@tanstack/react-query').
|
|
|
52
54
|
readonly provider: string;
|
|
53
55
|
readonly scopeExternalId: string;
|
|
54
56
|
}, unknown>;
|
|
55
|
-
export declare const useRevokeAgentGrant: () => import('@tanstack/react-query').UseMutationResult<{
|
|
56
|
-
status: "revoked";
|
|
57
|
-
}, Error, {
|
|
58
|
-
readonly grantId: string;
|
|
59
|
-
readonly provider: string;
|
|
60
|
-
readonly scopeExternalId: string;
|
|
61
|
-
}, unknown>;
|