@belonguniverseai/react-sdk 0.6.4 → 0.6.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.
Files changed (83) hide show
  1. package/dist/api/client.d.ts +197 -0
  2. package/dist/api/pre-prompts.d.ts +80 -0
  3. package/dist/api/query-keys.d.ts +4 -0
  4. package/dist/api/skills.d.ts +8 -3
  5. package/dist/component/{abnfDiagram-N423BO3Z-DR3fMT7g.js → abnfDiagram-N423BO3Z-DXtYRs-k.js} +4 -4
  6. package/dist/component/{arc-DJkYOSuJ.js → arc-k2puh3QC.js} +2 -2
  7. package/dist/component/{architectureDiagram-T3A2C74G-BIp4IBPk.js → architectureDiagram-T3A2C74G-DAmYa1QR.js} +3 -3
  8. package/dist/component/{blockDiagram-VBNYF7ZC-BqryGqC6.js → blockDiagram-VBNYF7ZC-zXWS_7FA.js} +4 -4
  9. package/dist/component/{c4Diagram-5PPSVZJV-GktlF-Di.js → c4Diagram-5PPSVZJV-DrhhcFC2.js} +3 -3
  10. package/dist/component/{channel-3CusDaXb.js → channel-BradwEzR.js} +2 -2
  11. package/dist/component/{chunk-2GRJ4B5K-DMTs6j_c.js → chunk-2GRJ4B5K-CFlVgxT_.js} +2 -2
  12. package/dist/component/{chunk-2Q5K7J3B-CIU34hPH.js → chunk-2Q5K7J3B-BWVz-RZT.js} +2 -2
  13. package/dist/component/{chunk-5RXB4S5H-Ds3vF1Mv.js → chunk-5RXB4S5H-DzGJLYck.js} +5 -5
  14. package/dist/component/{chunk-5VM5RSS4-DGxDkIm6.js → chunk-5VM5RSS4-BiYvFRMB.js} +2 -2
  15. package/dist/component/{chunk-6Q2QTUOP-BI8oZt98.js → chunk-6Q2QTUOP-DKkDhyrb.js} +2 -2
  16. package/dist/component/{chunk-GF5L2VYU-D-36xUd5.js → chunk-GF5L2VYU-DQDnIvXz.js} +6 -6
  17. package/dist/component/{chunk-JWPE2WC7-8N_wQ762.js → chunk-JWPE2WC7-xUoyVsyD.js} +2 -2
  18. package/dist/component/{chunk-KBJHAD2P-ChxxpkWc.js → chunk-KBJHAD2P-CeI2oVSe.js} +2 -2
  19. package/dist/component/{chunk-RYQCIY6F-CSY-95OP.js → chunk-RYQCIY6F-DC_eKBFo.js} +2 -2
  20. package/dist/component/{chunk-XXDRQBXY-BQd9yyE1.js → chunk-XXDRQBXY-Chbw9HR0.js} +2 -2
  21. package/dist/component/{classDiagram-JCYQIIEL-BOq63iUL.js → classDiagram-JCYQIIEL-Cm5ICyOE.js} +3 -3
  22. package/dist/component/{classDiagram-v2-OCEON4UE-BOq63iUL.js → classDiagram-v2-OCEON4UE-Cm5ICyOE.js} +3 -3
  23. package/dist/component/{cose-bilkent-JH36ORCC-B9x8cp5w.js → cose-bilkent-JH36ORCC-DaXtU49r.js} +2 -2
  24. package/dist/component/{cynefinDiagram-MW4NZA55-OF6l99SS.js → cynefinDiagram-MW4NZA55-QC8TFvBp.js} +3 -3
  25. package/dist/component/{dagre-VZM6K2ZE-CELO1hFb.js → dagre-VZM6K2ZE-C2OOSYgW.js} +3 -3
  26. package/dist/component/{diagram-7IWD3JNH-COzvm6E2.js → diagram-7IWD3JNH-Cax2R3mQ.js} +4 -4
  27. package/dist/component/{diagram-B4RE2ZJO-DR9KMRGw.js → diagram-B4RE2ZJO-Cx3_tBen.js} +3 -3
  28. package/dist/component/{diagram-LBJQPF4R-D47Zqm-k.js → diagram-LBJQPF4R-Cv3oJQdh.js} +3 -3
  29. package/dist/component/{diagram-Q27KOJAE-Key1bw_Y.js → diagram-Q27KOJAE-C41GeN84.js} +4 -4
  30. package/dist/component/{diagram-UB23O5K3-Cxf-sZnK.js → diagram-UB23O5K3-CNmh6MHJ.js} +3 -3
  31. package/dist/component/{ebnfDiagram-BXEA7PRR-C8uURt_x.js → ebnfDiagram-BXEA7PRR-BLWo9Cro.js} +4 -4
  32. package/dist/component/{erDiagram-JOGREHBK-CpCxe8Ib.js → erDiagram-JOGREHBK-zOwSdp7J.js} +5 -5
  33. package/dist/component/{flowDiagram-UKHOOZJN-urFG2I71.js → flowDiagram-UKHOOZJN-DDHQ3RkH.js} +7 -7
  34. package/dist/component/{ganttDiagram-PKOTCBZU-8nA9faYf.js → ganttDiagram-PKOTCBZU-CXfR2efe.js} +3 -3
  35. package/dist/component/{gitGraphDiagram-DS77QQ5N-u4cbNW8o.js → gitGraphDiagram-DS77QQ5N-CxtaDoUb.js} +4 -4
  36. package/dist/component/{highlighted-body-OFNGDK62-Bo-15uvJ.js → highlighted-body-OFNGDK62-C4THAl8M.js} +2 -2
  37. package/dist/component/index.js +2 -2
  38. package/dist/component/{infoDiagram-6WML65LV-ZAv4gZpA.js → infoDiagram-6WML65LV-CJwjv6J3.js} +2 -2
  39. package/dist/component/{ishikawaDiagram-WSZJBQD7-CvB6evSz.js → ishikawaDiagram-WSZJBQD7-CtQFMhUI.js} +2 -2
  40. package/dist/component/{journeyDiagram-NVQOT4AX-M5BRYuPr.js → journeyDiagram-NVQOT4AX-D0YCMj2N.js} +5 -5
  41. package/dist/component/{kanban-definition-27J2QSJJ-LL6GkmVe.js → kanban-definition-27J2QSJJ-DtT1k--r.js} +3 -3
  42. package/dist/component/{linear-DVg61V66.js → linear-98AY9cNO.js} +2 -2
  43. package/dist/component/{mermaid-GHXKKRXX-C2L7fCIM.js → mermaid-GHXKKRXX-CpyPA4Tq.js} +29213 -28218
  44. package/dist/component/{mindmap-definition-FAOFIHXS-BBZzsLh7.js → mindmap-definition-FAOFIHXS-Cb4ZDYiB.js} +4 -4
  45. package/dist/component/{pegDiagram-VL7TDLO6-BEG86cY8.js → pegDiagram-VL7TDLO6-3n9pdqFl.js} +4 -4
  46. package/dist/component/{pieDiagram-7S7Q4E2Y-BTkrNjAi.js → pieDiagram-7S7Q4E2Y-BdX_Nmhs.js} +4 -4
  47. package/dist/component/{quadrantDiagram-CIZ2JOQS-BsjBAd4w.js → quadrantDiagram-CIZ2JOQS-B23YDXjA.js} +3 -3
  48. package/dist/component/{railroadDiagram-AXF67PYL-DuE0ZFxj.js → railroadDiagram-AXF67PYL-D-KttLwV.js} +4 -4
  49. package/dist/component/{requirementDiagram-LRYGKXZP-CcshEEMy.js → requirementDiagram-LRYGKXZP-mg4T4J5m.js} +4 -4
  50. package/dist/component/{sankeyDiagram-W5VNT64P-CFn011ig.js → sankeyDiagram-W5VNT64P-DSJ1i2V9.js} +2 -2
  51. package/dist/component/{sequenceDiagram-SI44F4Z6-DmMZNJDw.js → sequenceDiagram-SI44F4Z6-5ASel8SG.js} +4 -4
  52. package/dist/component/{sizeCapture-X5ZJPWSS-Ce4PhIAO.js → sizeCapture-X5ZJPWSS-DhE5AZVC.js} +2 -2
  53. package/dist/component/{stateDiagram-OKZ733FA-DDVzQKaO.js → stateDiagram-OKZ733FA-BDvRPjM1.js} +3 -3
  54. package/dist/component/{stateDiagram-v2-UEYNNEHI-DeeW8PDA.js → stateDiagram-v2-UEYNNEHI-gO2Xq1pR.js} +3 -3
  55. package/dist/component/{swimlanes-SLNWSIFB-CZh2_vzg.js → swimlanes-SLNWSIFB-BppNVeHn.js} +4 -4
  56. package/dist/component/{swimlanesDiagram-ULZ7WXOC-Wb0Ri7qR.js → swimlanesDiagram-ULZ7WXOC-DW8klrQx.js} +3 -3
  57. package/dist/component/{timeline-definition-Z64GVDOM-rfiLwdTR.js → timeline-definition-Z64GVDOM-7bTdkHDS.js} +3 -3
  58. package/dist/component/{vennDiagram-T6HMQDX7-D8l7hqNb.js → vennDiagram-T6HMQDX7-BZGZh-tM.js} +2 -2
  59. package/dist/component/{wardleyDiagram-T6FBY63Y-7YqmpmtC.js → wardleyDiagram-T6FBY63Y-Dq_yq7ay.js} +3 -3
  60. package/dist/component/{xychartDiagram-ELKLHX3M-Dx2ECqt8.js → xychartDiagram-ELKLHX3M-C5Pwwmdi.js} +3 -3
  61. package/dist/components/embed/EmbedComposer.d.ts +16 -1
  62. package/dist/components/embed/EmbedRail.d.ts +5 -1
  63. package/dist/components/embed/MentionInput.d.ts +7 -0
  64. package/dist/components/embed/MobileNavBar.d.ts +5 -2
  65. package/dist/components/embed/SavePromptDialog.d.ts +11 -0
  66. package/dist/components/embed/save-prompt-name.d.ts +39 -0
  67. package/dist/components/embed/use-preview-bytes.d.ts +5 -0
  68. package/dist/components/prompts/ConfirmDeletePromptDialog.d.ts +13 -0
  69. package/dist/components/prompts/EditPromptDialog.d.ts +14 -0
  70. package/dist/components/prompts/PromptsListSurface.d.ts +21 -0
  71. package/dist/embed/copy.d.ts +9 -0
  72. package/dist/embed/dock-state.d.ts +1 -1
  73. package/dist/embed/legal-disclaimer.d.ts +6 -0
  74. package/dist/embed/prompt-slots.d.ts +26 -0
  75. package/dist/embed/slash-commands.d.ts +45 -0
  76. package/dist/embed/voice-unlock.d.ts +36 -0
  77. package/dist/i18n/messages/en.d.ts +41 -0
  78. package/dist/i18n/messages/surfaces/embedMisc.d.ts +3 -0
  79. package/dist/i18n/messages/surfaces/header.d.ts +3 -0
  80. package/dist/i18n/messages/surfaces/prompts.d.ts +158 -0
  81. package/dist/routes/prompts.d.ts +2 -0
  82. package/dist/stream/queued-message-outbox.d.ts +25 -0
  83. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The dock's hidden VOICE unlock — a cheat code typed into the chat composer
3
+ * (`belong:call`) reveals the dial button for THIS browser while
4
+ * `VOICE_CALL_BUTTON_ENABLED` (components/embed/rail-flags.ts) keeps it hidden
5
+ * for everyone else.
6
+ *
7
+ * Deliberately the same shape as dev-mode.ts's `belong:dev`: same exact-match
8
+ * recognizer, same localStorage persistence, same tiny external store so a
9
+ * surface outside the chat route (the rail, the mobile nav) re-renders when the
10
+ * composer flips it. Someone who knows one code can guess how the other behaves.
11
+ *
12
+ * This unlocks an ENTRY POINT, nothing else. The voice stack — `startCall`, the
13
+ * CallScreen, push-to-talk, the reload-survival redial — is always live and
14
+ * unchanged; the flag only decided whether a button was drawn. So this is a
15
+ * visibility toggle, not a feature flag with behaviour behind it, and it grants
16
+ * no capability a user with the button showing would not already have.
17
+ *
18
+ * Toggling, not a one-way door: typing the code again hides the button. A user
19
+ * who turned voice on for a demo must be able to turn it off without clearing
20
+ * site data.
21
+ */
22
+ export declare const VOICE_CHEAT_CODE = "belong:call";
23
+ /** True when the typed text is the cheat code (trim + case-insensitive).
24
+ * EXACT match only — asking the agent "what is belong:call?" must reach the
25
+ * agent as a question, not vanish into a toggle. */
26
+ export declare const isVoiceCheatCode: (text: string) => boolean;
27
+ /** `useSyncExternalStore` subscribe — fires whenever the unlock changes. */
28
+ export declare const subscribeVoiceUnlock: (listener: () => void) => (() => void);
29
+ /**
30
+ * Whether this browser has opted into the dial button. Storage that throws
31
+ * (Safari private mode, cookies disabled) reads as LOCKED — the safe default,
32
+ * and the same best-effort idiom the rest of the embed layer uses.
33
+ */
34
+ export declare const readVoiceUnlocked: () => boolean;
35
+ /** Flip the unlock (the cheat code's only effect) and notify every surface. */
36
+ export declare const toggleVoiceUnlocked: () => void;
@@ -241,6 +241,45 @@ export declare const en: {
241
241
  readonly approveAndRun: "Approve & run";
242
242
  readonly reject: "Reject";
243
243
  };
244
+ readonly prompts: {
245
+ readonly saveAsPrompt: "Save as prompt";
246
+ readonly dialogTitle: "Save this as a prompt";
247
+ readonly dialogDescription: string;
248
+ readonly nameLabel: "Name";
249
+ readonly namePlaceholder: "monthly-recon";
250
+ readonly descriptionLabel: "Description (optional)";
251
+ readonly descriptionPlaceholder: "What this prompt does";
252
+ readonly bodyLabel: "What gets saved";
253
+ readonly save: "Save prompt";
254
+ readonly cancel: "Cancel";
255
+ readonly saving: "Saving…";
256
+ readonly errorNameEmpty: "Give your prompt a name.";
257
+ readonly errorNameInvalid: "Use lowercase letters, numbers and dashes — like monthly-recon.";
258
+ readonly errorNameBuiltin: "That name is already a built-in command. Pick another.";
259
+ readonly errorNameSkill: "A skill already uses that name. Pick another.";
260
+ readonly errorNameCommand: "A command already uses that name. Pick another.";
261
+ readonly errorNamePrompt: "You already have a prompt with that name.";
262
+ readonly errorSaveFailed: "Couldn't save your prompt — try again.";
263
+ readonly viewTitle: "Prompts";
264
+ readonly subtitle: "The prompts you saved. Type / in the message box to run one.";
265
+ readonly searchPlaceholder: "Search your prompts";
266
+ readonly loading: "Loading your prompts…";
267
+ readonly loadError: "Couldn't load your prompts.";
268
+ readonly empty: "No saved prompts yet.";
269
+ readonly emptyHint: "Write a message, then choose Save as prompt to keep it here.";
270
+ readonly noResults: "No prompts match “{{q}}”.";
271
+ readonly actionsMenu: "Prompt actions";
272
+ readonly edit: "Edit";
273
+ readonly delete: "Delete";
274
+ readonly editTitle: "Edit prompt";
275
+ readonly editDescription: string;
276
+ readonly saveChanges: "Save changes";
277
+ readonly deleteConfirmTitle: "Delete this prompt?";
278
+ readonly deleteConfirmBody: "It disappears from the / menu. Your past messages are untouched.";
279
+ readonly deleteConfirm: "Delete prompt";
280
+ readonly errorEditFailed: "Couldn't save your changes — try again.";
281
+ readonly errorGone: "That prompt is no longer there.";
282
+ };
244
283
  readonly login: {
245
284
  readonly welcome: "Welcome to {{name}}";
246
285
  readonly byBelong: "by Belong";
@@ -252,6 +291,7 @@ export declare const en: {
252
291
  readonly navChat: "Chat";
253
292
  readonly navFiles: "Files";
254
293
  readonly navScheduled: "Scheduled";
294
+ readonly navPrompts: "Prompts";
255
295
  readonly chatPlanRunning: "Chat — plan running, {{completed}} of {{total}} steps done";
256
296
  readonly devMode: "Dev mode";
257
297
  readonly devModeTitle: "Dev mode (belong:dev)";
@@ -313,6 +353,7 @@ export declare const en: {
313
353
  };
314
354
  readonly embed: {
315
355
  readonly yourSkills: "Your skills";
356
+ readonly yourPrompts: "Your prompts";
316
357
  readonly skillsMenuLabel: "Skills";
317
358
  readonly minimizeSkills: "Minimize skills";
318
359
  readonly expandSkills: "Expand skills";
@@ -3,6 +3,7 @@
3
3
  export declare const embedMiscEn: {
4
4
  readonly embed: {
5
5
  readonly yourSkills: "Your skills";
6
+ readonly yourPrompts: "Your prompts";
6
7
  readonly skillsMenuLabel: "Skills";
7
8
  readonly minimizeSkills: "Minimize skills";
8
9
  readonly expandSkills: "Expand skills";
@@ -48,6 +49,7 @@ export declare const embedMiscEn: {
48
49
  export declare const embedMiscEs: {
49
50
  embed: {
50
51
  yourSkills: string;
52
+ yourPrompts: string;
51
53
  skillsMenuLabel: string;
52
54
  minimizeSkills: string;
53
55
  expandSkills: string;
@@ -93,6 +95,7 @@ export declare const embedMiscEs: {
93
95
  export declare const embedMiscPt: {
94
96
  embed: {
95
97
  yourSkills: string;
98
+ yourPrompts: string;
96
99
  skillsMenuLabel: string;
97
100
  minimizeSkills: string;
98
101
  expandSkills: string;
@@ -5,6 +5,7 @@ export declare const headerEn: {
5
5
  readonly navChat: "Chat";
6
6
  readonly navFiles: "Files";
7
7
  readonly navScheduled: "Scheduled";
8
+ readonly navPrompts: "Prompts";
8
9
  readonly chatPlanRunning: "Chat — plan running, {{completed}} of {{total}} steps done";
9
10
  readonly devMode: "Dev mode";
10
11
  readonly devModeTitle: "Dev mode (belong:dev)";
@@ -29,6 +30,7 @@ export declare const headerEs: {
29
30
  navChat: string;
30
31
  navFiles: string;
31
32
  navScheduled: string;
33
+ navPrompts: string;
32
34
  chatPlanRunning: string;
33
35
  devMode: string;
34
36
  devModeTitle: string;
@@ -53,6 +55,7 @@ export declare const headerPt: {
53
55
  navChat: string;
54
56
  navFiles: string;
55
57
  navScheduled: string;
58
+ navPrompts: string;
56
59
  chatPlanRunning: string;
57
60
  devMode: string;
58
61
  devModeTitle: string;
@@ -0,0 +1,158 @@
1
+ /**
2
+ * Saved-prompt strings: the composer's Save-as-prompt affordance and its
3
+ * dialog (BEL-256), plus the Prompts rail surface that lists, renames, edits
4
+ * and deletes them (BEL-259).
5
+ *
6
+ * Copy names the PRODUCT, never the plumbing (§42): "prompt", never
7
+ * "pre-prompt", "the slash menu" or "the composer". A Simetrik user does not
8
+ * have our vocabulary, and our vocabulary tells them only that something they
9
+ * cannot name went wrong.
10
+ *
11
+ * "Prompts" stays "Prompts" in es and pt. The loanword is what
12
+ * `embed.yourPrompts` already ships in both, and a surface calling itself
13
+ * "Plantillas" while the `/` menu said "prompts" would read as two features.
14
+ *
15
+ * TEACHING `{{slot}}` (BEL-258). `dialogDescription` and `editDescription` are
16
+ * the ONLY places the product says that double braces mean anything — without
17
+ * that sentence every saved prompt carries zero blanks and the feature is
18
+ * unreachable. Both dialogs already render these two strings, so the copy
19
+ * lands at the moment a body is being written with no component change.
20
+ *
21
+ * Two things the copy has to get right:
22
+ *
23
+ * • The EXAMPLE is a real slot. `prompt-slots.ts` matches
24
+ * `{{`+1–64 of `[\p{L}\p{N}_-]`+`}}` — so `{{ two words }}` is prose, not a
25
+ * blank. Spelling the syntax out as a literal "{{double braces}}" would
26
+ * teach a form that silently never selects, so the sentence names the
27
+ * braces in prose and shows a one-word slot the user can copy. Unicode
28
+ * letters count, hence a translated `{{cuenta}}` / `{{conta}}`.
29
+ * • The braces survive i18next. `{{account}}` looks exactly like the `{{q}}`
30
+ * interpolation in `noResults` below, but with `skipOnVariables` (i18next's
31
+ * default, and untouched by `i18n.ts`) a placeholder with no matching
32
+ * option is left verbatim rather than blanked. Pinned in `i18n.test.ts` for
33
+ * all three locales so an interpolation-config change cannot quietly eat
34
+ * the one character the sentence exists to show.
35
+ */
36
+ export declare const promptsEn: {
37
+ readonly prompts: {
38
+ readonly saveAsPrompt: "Save as prompt";
39
+ readonly dialogTitle: "Save this as a prompt";
40
+ readonly dialogDescription: string;
41
+ readonly nameLabel: "Name";
42
+ readonly namePlaceholder: "monthly-recon";
43
+ readonly descriptionLabel: "Description (optional)";
44
+ readonly descriptionPlaceholder: "What this prompt does";
45
+ readonly bodyLabel: "What gets saved";
46
+ readonly save: "Save prompt";
47
+ readonly cancel: "Cancel";
48
+ readonly saving: "Saving…";
49
+ readonly errorNameEmpty: "Give your prompt a name.";
50
+ readonly errorNameInvalid: "Use lowercase letters, numbers and dashes — like monthly-recon.";
51
+ readonly errorNameBuiltin: "That name is already a built-in command. Pick another.";
52
+ readonly errorNameSkill: "A skill already uses that name. Pick another.";
53
+ readonly errorNameCommand: "A command already uses that name. Pick another.";
54
+ readonly errorNamePrompt: "You already have a prompt with that name.";
55
+ readonly errorSaveFailed: "Couldn't save your prompt — try again.";
56
+ readonly viewTitle: "Prompts";
57
+ readonly subtitle: "The prompts you saved. Type / in the message box to run one.";
58
+ readonly searchPlaceholder: "Search your prompts";
59
+ readonly loading: "Loading your prompts…";
60
+ readonly loadError: "Couldn't load your prompts.";
61
+ readonly empty: "No saved prompts yet.";
62
+ readonly emptyHint: "Write a message, then choose Save as prompt to keep it here.";
63
+ readonly noResults: "No prompts match “{{q}}”.";
64
+ readonly actionsMenu: "Prompt actions";
65
+ readonly edit: "Edit";
66
+ readonly delete: "Delete";
67
+ readonly editTitle: "Edit prompt";
68
+ readonly editDescription: string;
69
+ readonly saveChanges: "Save changes";
70
+ readonly deleteConfirmTitle: "Delete this prompt?";
71
+ readonly deleteConfirmBody: "It disappears from the / menu. Your past messages are untouched.";
72
+ readonly deleteConfirm: "Delete prompt";
73
+ readonly errorEditFailed: "Couldn't save your changes — try again.";
74
+ readonly errorGone: "That prompt is no longer there.";
75
+ };
76
+ };
77
+ export declare const promptsEs: {
78
+ prompts: {
79
+ saveAsPrompt: string;
80
+ dialogTitle: string;
81
+ dialogDescription: string;
82
+ nameLabel: string;
83
+ namePlaceholder: string;
84
+ descriptionLabel: string;
85
+ descriptionPlaceholder: string;
86
+ bodyLabel: string;
87
+ save: string;
88
+ cancel: string;
89
+ saving: string;
90
+ errorNameEmpty: string;
91
+ errorNameInvalid: string;
92
+ errorNameBuiltin: string;
93
+ errorNameSkill: string;
94
+ errorNameCommand: string;
95
+ errorNamePrompt: string;
96
+ errorSaveFailed: string;
97
+ viewTitle: string;
98
+ subtitle: string;
99
+ searchPlaceholder: string;
100
+ loading: string;
101
+ loadError: string;
102
+ empty: string;
103
+ emptyHint: string;
104
+ noResults: string;
105
+ actionsMenu: string;
106
+ edit: string;
107
+ delete: string;
108
+ editTitle: string;
109
+ editDescription: string;
110
+ saveChanges: string;
111
+ deleteConfirmTitle: string;
112
+ deleteConfirmBody: string;
113
+ deleteConfirm: string;
114
+ errorEditFailed: string;
115
+ errorGone: string;
116
+ };
117
+ };
118
+ export declare const promptsPt: {
119
+ prompts: {
120
+ saveAsPrompt: string;
121
+ dialogTitle: string;
122
+ dialogDescription: string;
123
+ nameLabel: string;
124
+ namePlaceholder: string;
125
+ descriptionLabel: string;
126
+ descriptionPlaceholder: string;
127
+ bodyLabel: string;
128
+ save: string;
129
+ cancel: string;
130
+ saving: string;
131
+ errorNameEmpty: string;
132
+ errorNameInvalid: string;
133
+ errorNameBuiltin: string;
134
+ errorNameSkill: string;
135
+ errorNameCommand: string;
136
+ errorNamePrompt: string;
137
+ errorSaveFailed: string;
138
+ viewTitle: string;
139
+ subtitle: string;
140
+ searchPlaceholder: string;
141
+ loading: string;
142
+ loadError: string;
143
+ empty: string;
144
+ emptyHint: string;
145
+ noResults: string;
146
+ actionsMenu: string;
147
+ edit: string;
148
+ delete: string;
149
+ editTitle: string;
150
+ editDescription: string;
151
+ saveChanges: string;
152
+ deleteConfirmTitle: string;
153
+ deleteConfirmBody: string;
154
+ deleteConfirm: string;
155
+ errorEditFailed: string;
156
+ errorGone: string;
157
+ };
158
+ };
@@ -0,0 +1,2 @@
1
+ /** /prompts — the saved-prompts list view (rail tab). */
2
+ export declare const PromptsRoute: () => import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ declare const queuedMessageOutboxEntrySchema: z.ZodObject<{
3
+ sessionId: z.ZodString;
4
+ text: z.ZodString;
5
+ clientMessageId: z.ZodString;
6
+ submittedAt: z.ZodNumber;
7
+ mode: z.ZodEnum<{
8
+ plan: "plan";
9
+ approve: "approve";
10
+ balanced: "balanced";
11
+ bypass: "bypass";
12
+ }>;
13
+ skill: z.ZodOptional<z.ZodString>;
14
+ fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ runtime: z.ZodOptional<z.ZodString>;
16
+ llmProvider: z.ZodOptional<z.ZodString>;
17
+ llmModel: z.ZodOptional<z.ZodString>;
18
+ workspaceExternalId: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ export type QueuedMessageOutboxEntry = Readonly<z.infer<typeof queuedMessageOutboxEntrySchema>>;
21
+ export declare const readQueuedMessageOutbox: (sessionId: string) => readonly QueuedMessageOutboxEntry[];
22
+ export declare const rememberQueuedMessage: (entry: QueuedMessageOutboxEntry) => void;
23
+ export declare const forgetQueuedMessage: (sessionId: string, clientMessageId: string) => void;
24
+ export declare const forgetQueuedMessages: (sessionId: string, clientMessageIds: ReadonlySet<string>) => void;
25
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.6.4",
3
+ "version": "0.6.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",