@belonguniverseai/react-sdk 0.6.21 → 0.6.22
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/README.md +69 -0
- package/dist/api/client.d.ts +667 -4
- package/dist/api/goals.d.ts +179 -0
- package/dist/api/issue-reports.d.ts +13 -0
- package/dist/api/query-keys.d.ts +18 -0
- package/dist/api/report-client-error.d.ts +3 -0
- package/dist/api/retry-fetch.d.ts +19 -0
- package/dist/api/skill-library.d.ts +100 -0
- package/dist/api/skills.d.ts +3 -1
- package/dist/app/dock-outlet.d.ts +15 -5
- package/dist/browser/allowed-ops.d.ts +18 -0
- package/dist/browser/host-mcp.d.ts +31 -0
- package/dist/component/{abnfDiagram-N423BO3Z-DZRUOUZQ.js → abnfDiagram-N423BO3Z-D4mVRMw9.js} +4 -4
- package/dist/component/{arc-B4biduil.js → arc-GBp6w3tF.js} +2 -2
- package/dist/component/{architectureDiagram-T3A2C74G-q8voStNN.js → architectureDiagram-T3A2C74G-Cxm-USYQ.js} +3 -3
- package/dist/component/{blockDiagram-VBNYF7ZC-C0TDyTgw.js → blockDiagram-VBNYF7ZC-BAiLpxJf.js} +4 -4
- package/dist/component/{c4Diagram-5PPSVZJV-rxRyd6rh.js → c4Diagram-5PPSVZJV-Sy6sLJOj.js} +3 -3
- package/dist/component/{channel-CUruDJSx.js → channel-DPbaAkCI.js} +2 -2
- package/dist/component/{chunk-2GRJ4B5K-Kff5Fvbi.js → chunk-2GRJ4B5K-8r8YJzCc.js} +2 -2
- package/dist/component/{chunk-2Q5K7J3B-BT3ZD31a.js → chunk-2Q5K7J3B-RZqny7-R.js} +2 -2
- package/dist/component/{chunk-5RXB4S5H-CYZ36tQD.js → chunk-5RXB4S5H-QFCY9Dtl.js} +5 -5
- package/dist/component/{chunk-5VM5RSS4-BweQRk7u.js → chunk-5VM5RSS4-BG8q5ODa.js} +2 -2
- package/dist/component/{chunk-6Q2QTUOP-DHcoXRhe.js → chunk-6Q2QTUOP-D6ec2nI7.js} +2 -2
- package/dist/component/{chunk-GF5L2VYU-DtE5ljCc.js → chunk-GF5L2VYU-D7yROYf0.js} +6 -6
- package/dist/component/{chunk-JWPE2WC7-ClHq4gN2.js → chunk-JWPE2WC7-CmGlHqne.js} +2 -2
- package/dist/component/{chunk-KBJHAD2P-BeCfHf5W.js → chunk-KBJHAD2P-W03s7swc.js} +2 -2
- package/dist/component/{chunk-RYQCIY6F-CuAngwHt.js → chunk-RYQCIY6F-D0oyMUJ7.js} +2 -2
- package/dist/component/{chunk-XXDRQBXY-D9c0CJyR.js → chunk-XXDRQBXY-D4s0eyp4.js} +2 -2
- package/dist/component/{classDiagram-JCYQIIEL-DdzIbKj1.js → classDiagram-JCYQIIEL-DwNAC2XG.js} +3 -3
- package/dist/component/{classDiagram-v2-OCEON4UE-DdzIbKj1.js → classDiagram-v2-OCEON4UE-DwNAC2XG.js} +3 -3
- package/dist/component/{cose-bilkent-JH36ORCC-hME9BYGm.js → cose-bilkent-JH36ORCC-DhGvXDdi.js} +2 -2
- package/dist/component/{cynefinDiagram-MW4NZA55-BiceKBPh.js → cynefinDiagram-MW4NZA55-BCUeX7pB.js} +3 -3
- package/dist/component/{dagre-VZM6K2ZE-DiPOLAUX.js → dagre-VZM6K2ZE-DWofHoga.js} +3 -3
- package/dist/component/{diagram-7IWD3JNH-BSDWgxjs.js → diagram-7IWD3JNH-DjCFF_Dr.js} +4 -4
- package/dist/component/{diagram-B4RE2ZJO-BdpGOPaT.js → diagram-B4RE2ZJO-CSovrpFW.js} +3 -3
- package/dist/component/{diagram-LBJQPF4R-B0V6_5ih.js → diagram-LBJQPF4R-Cgpae-sR.js} +3 -3
- package/dist/component/{diagram-Q27KOJAE-CYDb40TJ.js → diagram-Q27KOJAE-DikMPfLU.js} +4 -4
- package/dist/component/{diagram-UB23O5K3-DgwjRdl5.js → diagram-UB23O5K3-sQU6rZbO.js} +3 -3
- package/dist/component/{ebnfDiagram-BXEA7PRR-D-C7SWec.js → ebnfDiagram-BXEA7PRR-B9t8-G8R.js} +4 -4
- package/dist/component/{erDiagram-JOGREHBK-DLJCjcXM.js → erDiagram-JOGREHBK-DKg1HhSl.js} +5 -5
- package/dist/component/{flowDiagram-UKHOOZJN-BZfBucKB.js → flowDiagram-UKHOOZJN-BO8jpT1D.js} +7 -7
- package/dist/component/{ganttDiagram-PKOTCBZU-CxTHmusv.js → ganttDiagram-PKOTCBZU-BPXYyB9Q.js} +3 -3
- package/dist/component/{gitGraphDiagram-DS77QQ5N-B_dWXxMf.js → gitGraphDiagram-DS77QQ5N-BjVLFBUS.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-CQ1ZdhQ-.js → highlighted-body-OFNGDK62-BKot66c3.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-6WML65LV-P4GO-aVw.js → infoDiagram-6WML65LV-BkAC5Bwv.js} +2 -2
- package/dist/component/{ishikawaDiagram-WSZJBQD7-BMXMrxKI.js → ishikawaDiagram-WSZJBQD7-oplkIs_t.js} +2 -2
- package/dist/component/{journeyDiagram-NVQOT4AX-DPdTmxkF.js → journeyDiagram-NVQOT4AX-CuliMCSv.js} +5 -5
- package/dist/component/{kanban-definition-27J2QSJJ-sYw64NrE.js → kanban-definition-27J2QSJJ-DdzOdEiL.js} +3 -3
- package/dist/component/{linear-DYjDg3gl.js → linear-zZDwdGmK.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-DfdCmrs3.js → mermaid-GHXKKRXX-aX5umm-y.js} +46587 -40943
- package/dist/component/{mindmap-definition-FAOFIHXS-UkAbrucA.js → mindmap-definition-FAOFIHXS-DD2HF9oE.js} +4 -4
- package/dist/component/{pegDiagram-VL7TDLO6-BGab1it6.js → pegDiagram-VL7TDLO6-DyiDl9bF.js} +4 -4
- package/dist/component/{pieDiagram-7S7Q4E2Y-BnY70Pr-.js → pieDiagram-7S7Q4E2Y-DflxKS_B.js} +4 -4
- package/dist/component/{quadrantDiagram-CIZ2JOQS-Cv1bjdQb.js → quadrantDiagram-CIZ2JOQS-nwwayVOP.js} +3 -3
- package/dist/component/{railroadDiagram-AXF67PYL-DJhLbGB_.js → railroadDiagram-AXF67PYL-BTtD2eN9.js} +4 -4
- package/dist/component/{requirementDiagram-LRYGKXZP-CLW3CgbU.js → requirementDiagram-LRYGKXZP-B37q1LKL.js} +4 -4
- package/dist/component/{sankeyDiagram-W5VNT64P-vnapx0yf.js → sankeyDiagram-W5VNT64P-zY0W9eje.js} +2 -2
- package/dist/component/{sequenceDiagram-SI44F4Z6-I43iQsY0.js → sequenceDiagram-SI44F4Z6-CmQiqB8F.js} +4 -4
- package/dist/component/{sizeCapture-X5ZJPWSS-D9LGwwwC.js → sizeCapture-X5ZJPWSS-dF3FvIT8.js} +2 -2
- package/dist/component/snapdom-DkzCA8S0.js +7061 -0
- package/dist/component/{stateDiagram-OKZ733FA-BXejMYGk.js → stateDiagram-OKZ733FA-CX61F3L0.js} +3 -3
- package/dist/component/{stateDiagram-v2-UEYNNEHI-BP05TJSl.js → stateDiagram-v2-UEYNNEHI-DnFZhhu3.js} +3 -3
- package/dist/component/{swimlanes-SLNWSIFB-CfmDVYhs.js → swimlanes-SLNWSIFB-CX9XGBvw.js} +4 -4
- package/dist/component/{swimlanesDiagram-ULZ7WXOC-DfjQBUfV.js → swimlanesDiagram-ULZ7WXOC-Bqkgx7qk.js} +3 -3
- package/dist/component/{timeline-definition-Z64GVDOM-C0BwzTs3.js → timeline-definition-Z64GVDOM-BUX4OSm1.js} +3 -3
- package/dist/component/{vennDiagram-T6HMQDX7-CRf8sGBL.js → vennDiagram-T6HMQDX7-BpVOq4Rh.js} +2 -2
- package/dist/component/{wardleyDiagram-T6FBY63Y-C2h7TQ4a.js → wardleyDiagram-T6FBY63Y-BUDGa8Mv.js} +3 -3
- package/dist/component/{xychartDiagram-ELKLHX3M-CBcAwmdF.js → xychartDiagram-ELKLHX3M-FIA_LnIu.js} +3 -3
- package/dist/components/embed/EmbedComposer.d.ts +11 -1
- package/dist/components/embed/EmbedHeader.d.ts +7 -1
- package/dist/components/embed/EmbedRail.d.ts +18 -2
- package/dist/components/embed/GoalActions.d.ts +15 -0
- package/dist/components/embed/GoalBadge.d.ts +17 -0
- package/dist/components/embed/GoalClearDialog.d.ts +6 -0
- package/dist/components/embed/GoalClearedLine.d.ts +3 -0
- package/dist/components/embed/GoalCompletionCard.d.ts +12 -0
- package/dist/components/embed/GoalComposeSheet.d.ts +19 -0
- package/dist/components/embed/GoalProposalCard.d.ts +29 -0
- package/dist/components/embed/GoalRailView.d.ts +15 -0
- package/dist/components/embed/GoalRefusalCard.d.ts +22 -0
- package/dist/components/embed/GoalSetCard.d.ts +5 -0
- package/dist/components/embed/GoalSnoozeMenu.d.ts +14 -0
- package/dist/components/embed/GoalStatusRow.d.ts +6 -0
- package/dist/components/embed/GoalTimeline.d.ts +6 -0
- package/dist/components/embed/MobileNavBar.d.ts +5 -1
- package/dist/components/embed/QuestionCard.d.ts +12 -1
- package/dist/components/embed/ScheduleNotices.d.ts +23 -0
- package/dist/components/embed/SentAsGoalTag.d.ts +1 -0
- package/dist/components/embed/SubagentsPaneBody.d.ts +3 -0
- package/dist/components/embed/rail-flags.d.ts +13 -0
- package/dist/components/feedback/IssueReportController.d.ts +1 -0
- package/dist/components/feedback/IssueReportDialog.d.ts +6 -0
- package/dist/components/skills/ConfirmDeleteSkillDialog.d.ts +9 -0
- package/dist/components/skills/SkillLibraryToolSync.d.ts +4 -0
- package/dist/components/skills/SkillsListSurface.d.ts +26 -0
- package/dist/components/skills/UploadSkillDialog.d.ts +32 -0
- package/dist/components/skills/skill-archive-file.d.ts +15 -0
- package/dist/embed/client-error-log.d.ts +72 -0
- package/dist/embed/dock-open-request.d.ts +32 -0
- package/dist/embed/dock-state.d.ts +1 -1
- package/dist/embed/goal-actions-model.d.ts +9 -0
- package/dist/embed/goal-cap-notice.d.ts +36 -0
- package/dist/embed/goal-deep-link.d.ts +24 -0
- package/dist/embed/goal-edit-command.d.ts +25 -0
- package/dist/embed/goal-journal.d.ts +53 -0
- package/dist/embed/goal-live-status.d.ts +2 -0
- package/dist/embed/goal-plain-units.d.ts +35 -0
- package/dist/embed/goal-progress.d.ts +15 -0
- package/dist/embed/goal-proposal-dismissal.d.ts +11 -0
- package/dist/embed/goal-resume-time.d.ts +22 -0
- package/dist/embed/goal-row-model.d.ts +27 -0
- package/dist/embed/goal-runway.d.ts +5 -0
- package/dist/embed/goal-schedule-handoff.d.ts +12 -0
- package/dist/embed/goal-status-label.d.ts +3 -0
- package/dist/embed/goal-time-usage.d.ts +19 -0
- package/dist/embed/issue-report-bus.d.ts +14 -0
- package/dist/embed/issue-report-open.d.ts +8 -0
- package/dist/embed/issue-report.d.ts +41 -0
- package/dist/embed/screen-capture.d.ts +74 -0
- package/dist/embed/slash-commands.d.ts +24 -0
- package/dist/embed/task-schedule-command.d.ts +7 -0
- package/dist/i18n/messages/en.d.ts +372 -8
- package/dist/i18n/messages/surfaces/feedback.d.ts +84 -0
- package/dist/i18n/messages/surfaces/header.d.ts +16 -0
- package/dist/i18n/messages/surfaces/skills.d.ts +216 -0
- package/dist/i18n/messages/surfaces/stream.d.ts +152 -29
- package/dist/i18n/messages/surfaces/workspace.d.ts +20 -0
- package/dist/public-api.d.ts +1 -1
- package/dist/routes/chat/part-renderer-extra-props.d.ts +43 -0
- package/dist/routes/chat/use-goal-receipt.d.ts +37 -0
- package/dist/routes/chat/use-host-draft-request.d.ts +2 -0
- package/dist/routes/chat/use-session-goal.d.ts +226 -0
- package/dist/routes/chat.d.ts +10 -1
- package/dist/routes/goal.d.ts +1 -0
- package/dist/routes/skills.d.ts +2 -0
- package/dist/stream/activity-items.d.ts +25 -0
- package/dist/stream/ai-sdk-part-renderers.d.ts +64 -25
- package/dist/stream/belong-chat-transport.d.ts +142 -2
- package/dist/stream/belong-data-parts.d.ts +48 -4
- package/dist/stream/goal-store.d.ts +43 -0
- package/dist/stream/message-metadata.d.ts +1 -0
- package/dist/stream/message-parts.d.ts +42 -0
- package/dist/stream/select-goal-set-part-id.d.ts +2 -0
- package/dist/stream/select-latest-goal.d.ts +13 -0
- package/dist/stream/subagent-controls-store.d.ts +20 -0
- package/dist/stream/subagent-lanes-model.d.ts +175 -0
- package/dist/stream/subagent-lanes.d.ts +89 -0
- package/dist/stream/use-publish-subagent-controls.d.ts +11 -0
- package/dist/stream/workspace-focus-store.d.ts +7 -1
- package/dist/test/render.d.ts +18 -1
- package/dist/test/subagent-fixtures.d.ts +24 -0
- package/dist/types/public.d.ts +54 -1
- package/package.json +1 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skills rail surface (skill library spec §11): the list, the inline on/off
|
|
3
|
+
* switch, download/delete, and the upload dialog.
|
|
4
|
+
*
|
|
5
|
+
* Copy names the PRODUCT only (§42): never SKILL.md, bundle, sandbox,
|
|
6
|
+
* frontmatter, archive or workspace plumbing. File extensions are the one
|
|
7
|
+
* technical word kept, because the user must pick a file by them.
|
|
8
|
+
*
|
|
9
|
+
* Terminology follows the shipped `/` menu section this surface feeds
|
|
10
|
+
* (`embed.yourSkills`): en "Skills", es/pt "Habilidades", it "Skill". Two
|
|
11
|
+
* names for one thing would read as two features.
|
|
12
|
+
*
|
|
13
|
+
* Nothing here is phrased as breakage: a failed toggle, download or delete is
|
|
14
|
+
* an ordinary moment rendered orange (§42); only a refused upload inside the
|
|
15
|
+
* dialog is red.
|
|
16
|
+
*/
|
|
17
|
+
export declare const skillsEn: {
|
|
18
|
+
readonly skills: {
|
|
19
|
+
readonly viewTitle: "Skills";
|
|
20
|
+
readonly viewDescription: "Teach the assistant how you work. Turn a skill off to keep it without using it.";
|
|
21
|
+
readonly upload: "Upload";
|
|
22
|
+
readonly toggleAria: "Use {{name}}";
|
|
23
|
+
readonly menuAria: "More actions for {{name}}";
|
|
24
|
+
readonly hasScripts: "Has scripts";
|
|
25
|
+
readonly off: "Off";
|
|
26
|
+
readonly download: "Download";
|
|
27
|
+
readonly delete: "Delete";
|
|
28
|
+
readonly emptyTitle: "No skills yet";
|
|
29
|
+
readonly emptyHint: "Upload a skill someone shared with you, or ask the assistant to turn something you do often into a skill.";
|
|
30
|
+
readonly featureAbsent: "Skills aren't available here yet.";
|
|
31
|
+
readonly scopeMissing: "Open a workspace to see its skills.";
|
|
32
|
+
readonly loading: "Loading your skills…";
|
|
33
|
+
readonly loadError: "Couldn't load your skills.";
|
|
34
|
+
readonly retry: "Try again";
|
|
35
|
+
readonly noticeToggleFailed: "Couldn't update {{name}}. Try again.";
|
|
36
|
+
readonly noticeDeleteFailed: "Couldn't delete {{name}}. Try again.";
|
|
37
|
+
readonly noticeDownloadFailed: "Couldn't download {{name}}. Try again.";
|
|
38
|
+
readonly noticeGone: "That skill no longer exists.";
|
|
39
|
+
readonly uploadTitle: "Upload a skill";
|
|
40
|
+
readonly dropzone: "Drop a .zip or .skill file here";
|
|
41
|
+
readonly chooseFile: "or choose a file";
|
|
42
|
+
readonly trustLine: "Only upload skills from people you trust — some skills include scripts the assistant can run.";
|
|
43
|
+
readonly uploading: "Uploading…";
|
|
44
|
+
readonly cancel: "Cancel";
|
|
45
|
+
readonly submit: "Upload";
|
|
46
|
+
readonly replaceTitle: "You already have a skill named {{name}}. Replace it?";
|
|
47
|
+
readonly replaceConfirm: "Replace";
|
|
48
|
+
readonly successTitle: "Added {{name}}.";
|
|
49
|
+
readonly successOn: "It's on.";
|
|
50
|
+
readonly done: "Done";
|
|
51
|
+
readonly errorWrongType: "Choose a .zip or .skill file.";
|
|
52
|
+
readonly errorTooLarge: "This skill is too large (max {{maxMb}} MB).";
|
|
53
|
+
readonly errorCompanySkill: "{{name}} is already one of your company's skills.";
|
|
54
|
+
readonly errorBuiltIn: "{{name}} is a built-in name.";
|
|
55
|
+
readonly errorSavedPrompt: "{{name}} is the name of one of your saved prompts.";
|
|
56
|
+
readonly errorContentReserved: "This is one of your company's skills and can't be added to your Skills.";
|
|
57
|
+
readonly errorNameRule: "A skill's name can only use lowercase letters, numbers and hyphens.";
|
|
58
|
+
readonly errorNotSkill: "This file isn't a skill.";
|
|
59
|
+
readonly errorLimit: "You've reached the limit of {{max}} skills in this workspace.";
|
|
60
|
+
readonly errorFailed: "Couldn't upload this skill. Try again.";
|
|
61
|
+
readonly deleteTitle: "Delete this skill?";
|
|
62
|
+
readonly deleteDescription: "{{name}} will be removed, and the assistant will stop using it in this workspace.";
|
|
63
|
+
readonly deleteConfirm: "Delete";
|
|
64
|
+
readonly deleting: "Deleting…";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export declare const skillsEs: {
|
|
68
|
+
skills: {
|
|
69
|
+
viewTitle: string;
|
|
70
|
+
viewDescription: string;
|
|
71
|
+
upload: string;
|
|
72
|
+
toggleAria: string;
|
|
73
|
+
menuAria: string;
|
|
74
|
+
hasScripts: string;
|
|
75
|
+
off: string;
|
|
76
|
+
download: string;
|
|
77
|
+
delete: string;
|
|
78
|
+
emptyTitle: string;
|
|
79
|
+
emptyHint: string;
|
|
80
|
+
featureAbsent: string;
|
|
81
|
+
scopeMissing: string;
|
|
82
|
+
loading: string;
|
|
83
|
+
loadError: string;
|
|
84
|
+
retry: string;
|
|
85
|
+
noticeToggleFailed: string;
|
|
86
|
+
noticeDeleteFailed: string;
|
|
87
|
+
noticeDownloadFailed: string;
|
|
88
|
+
noticeGone: string;
|
|
89
|
+
uploadTitle: string;
|
|
90
|
+
dropzone: string;
|
|
91
|
+
chooseFile: string;
|
|
92
|
+
trustLine: string;
|
|
93
|
+
uploading: string;
|
|
94
|
+
cancel: string;
|
|
95
|
+
submit: string;
|
|
96
|
+
replaceTitle: string;
|
|
97
|
+
replaceConfirm: string;
|
|
98
|
+
successTitle: string;
|
|
99
|
+
successOn: string;
|
|
100
|
+
done: string;
|
|
101
|
+
errorWrongType: string;
|
|
102
|
+
errorTooLarge: string;
|
|
103
|
+
errorCompanySkill: string;
|
|
104
|
+
errorBuiltIn: string;
|
|
105
|
+
errorSavedPrompt: string;
|
|
106
|
+
errorContentReserved: string;
|
|
107
|
+
errorNameRule: string;
|
|
108
|
+
errorNotSkill: string;
|
|
109
|
+
errorLimit: string;
|
|
110
|
+
errorFailed: string;
|
|
111
|
+
deleteTitle: string;
|
|
112
|
+
deleteDescription: string;
|
|
113
|
+
deleteConfirm: string;
|
|
114
|
+
deleting: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export declare const skillsPt: {
|
|
118
|
+
skills: {
|
|
119
|
+
viewTitle: string;
|
|
120
|
+
viewDescription: string;
|
|
121
|
+
upload: string;
|
|
122
|
+
toggleAria: string;
|
|
123
|
+
menuAria: string;
|
|
124
|
+
hasScripts: string;
|
|
125
|
+
off: string;
|
|
126
|
+
download: string;
|
|
127
|
+
delete: string;
|
|
128
|
+
emptyTitle: string;
|
|
129
|
+
emptyHint: string;
|
|
130
|
+
featureAbsent: string;
|
|
131
|
+
scopeMissing: string;
|
|
132
|
+
loading: string;
|
|
133
|
+
loadError: string;
|
|
134
|
+
retry: string;
|
|
135
|
+
noticeToggleFailed: string;
|
|
136
|
+
noticeDeleteFailed: string;
|
|
137
|
+
noticeDownloadFailed: string;
|
|
138
|
+
noticeGone: string;
|
|
139
|
+
uploadTitle: string;
|
|
140
|
+
dropzone: string;
|
|
141
|
+
chooseFile: string;
|
|
142
|
+
trustLine: string;
|
|
143
|
+
uploading: string;
|
|
144
|
+
cancel: string;
|
|
145
|
+
submit: string;
|
|
146
|
+
replaceTitle: string;
|
|
147
|
+
replaceConfirm: string;
|
|
148
|
+
successTitle: string;
|
|
149
|
+
successOn: string;
|
|
150
|
+
done: string;
|
|
151
|
+
errorWrongType: string;
|
|
152
|
+
errorTooLarge: string;
|
|
153
|
+
errorCompanySkill: string;
|
|
154
|
+
errorBuiltIn: string;
|
|
155
|
+
errorSavedPrompt: string;
|
|
156
|
+
errorContentReserved: string;
|
|
157
|
+
errorNameRule: string;
|
|
158
|
+
errorNotSkill: string;
|
|
159
|
+
errorLimit: string;
|
|
160
|
+
errorFailed: string;
|
|
161
|
+
deleteTitle: string;
|
|
162
|
+
deleteDescription: string;
|
|
163
|
+
deleteConfirm: string;
|
|
164
|
+
deleting: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export declare const skillsIt: {
|
|
168
|
+
skills: {
|
|
169
|
+
viewTitle: string;
|
|
170
|
+
viewDescription: string;
|
|
171
|
+
upload: string;
|
|
172
|
+
toggleAria: string;
|
|
173
|
+
menuAria: string;
|
|
174
|
+
hasScripts: string;
|
|
175
|
+
off: string;
|
|
176
|
+
download: string;
|
|
177
|
+
delete: string;
|
|
178
|
+
emptyTitle: string;
|
|
179
|
+
emptyHint: string;
|
|
180
|
+
featureAbsent: string;
|
|
181
|
+
scopeMissing: string;
|
|
182
|
+
loading: string;
|
|
183
|
+
loadError: string;
|
|
184
|
+
retry: string;
|
|
185
|
+
noticeToggleFailed: string;
|
|
186
|
+
noticeDeleteFailed: string;
|
|
187
|
+
noticeDownloadFailed: string;
|
|
188
|
+
noticeGone: string;
|
|
189
|
+
uploadTitle: string;
|
|
190
|
+
dropzone: string;
|
|
191
|
+
chooseFile: string;
|
|
192
|
+
trustLine: string;
|
|
193
|
+
uploading: string;
|
|
194
|
+
cancel: string;
|
|
195
|
+
submit: string;
|
|
196
|
+
replaceTitle: string;
|
|
197
|
+
replaceConfirm: string;
|
|
198
|
+
successTitle: string;
|
|
199
|
+
successOn: string;
|
|
200
|
+
done: string;
|
|
201
|
+
errorWrongType: string;
|
|
202
|
+
errorTooLarge: string;
|
|
203
|
+
errorCompanySkill: string;
|
|
204
|
+
errorBuiltIn: string;
|
|
205
|
+
errorSavedPrompt: string;
|
|
206
|
+
errorContentReserved: string;
|
|
207
|
+
errorNameRule: string;
|
|
208
|
+
errorNotSkill: string;
|
|
209
|
+
errorLimit: string;
|
|
210
|
+
errorFailed: string;
|
|
211
|
+
deleteTitle: string;
|
|
212
|
+
deleteDescription: string;
|
|
213
|
+
deleteConfirm: string;
|
|
214
|
+
deleting: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
@@ -77,6 +77,18 @@ export declare const streamEn: {
|
|
|
77
77
|
readonly toolForgetDone: "Forgot a note";
|
|
78
78
|
readonly toolForgetFailed: "Couldn't forget the note";
|
|
79
79
|
readonly toolForgetDetail: "Deleted a saved note about you.";
|
|
80
|
+
readonly toolSaveSkillRunning: "Saving a skill";
|
|
81
|
+
readonly toolSaveSkillDone: "Saved a skill";
|
|
82
|
+
readonly toolSaveSkillFailed: "Couldn't save the skill";
|
|
83
|
+
readonly toolSaveSkillDetail: "Saved a skill to your Skills.";
|
|
84
|
+
readonly toolSetSkillEnabledRunning: "Updating a skill";
|
|
85
|
+
readonly toolSetSkillEnabledDone: "Updated a skill";
|
|
86
|
+
readonly toolSetSkillEnabledFailed: "Couldn't update the skill";
|
|
87
|
+
readonly toolSetSkillEnabledDetail: "Turned a skill on or off in your Skills.";
|
|
88
|
+
readonly toolListSkillLibraryRunning: "Checking your skills";
|
|
89
|
+
readonly toolListSkillLibraryDone: "Checked your skills";
|
|
90
|
+
readonly toolListSkillLibraryFailed: "Couldn't check your skills";
|
|
91
|
+
readonly toolListSkillLibraryDetail: "Looked through the skills in your Skills.";
|
|
80
92
|
readonly browserSnapshot: "Took a snapshot";
|
|
81
93
|
readonly browserRead: "Read the page";
|
|
82
94
|
readonly browserClick: "Clicked an element";
|
|
@@ -92,6 +104,8 @@ export declare const streamEn: {
|
|
|
92
104
|
readonly actionWroteFile: "Updated a file";
|
|
93
105
|
readonly actionPublishedArtifact: "Put a report on screen";
|
|
94
106
|
readonly actionLookedUpSkill: "Looked up a skill";
|
|
107
|
+
readonly actionSavedSkill: "Saved a skill";
|
|
108
|
+
readonly actionUpdatedSkill: "Updated a skill";
|
|
95
109
|
readonly actionSubTask: "Worked through a sub-task";
|
|
96
110
|
readonly actionMadePlan: "Put a plan together";
|
|
97
111
|
readonly actionCheckedRules: "Checked the rules";
|
|
@@ -103,14 +117,30 @@ export declare const streamEn: {
|
|
|
103
117
|
readonly executingTasks: "Working on it…";
|
|
104
118
|
readonly workedSteps_one: "Worked · {{count}} step";
|
|
105
119
|
readonly workedSteps_other: "Worked · {{count}} steps";
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
112
|
-
|
|
113
|
-
readonly
|
|
120
|
+
readonly subagentWorkingCount_one: "Working on it… · {{done}} of {{count}} done";
|
|
121
|
+
readonly subagentWorkingCount_other: "Working on it… · {{done}} of {{count}} done";
|
|
122
|
+
readonly subagentWaveFallback_one: "{{count}} running";
|
|
123
|
+
readonly subagentWaveFallback_other: "{{count}} running";
|
|
124
|
+
readonly subagentWaveFallbackDone_one: "{{done}} of {{count}} done";
|
|
125
|
+
readonly subagentWaveFallbackDone_other: "{{done}} of {{count}} done";
|
|
126
|
+
readonly subagentWaveDone: "{{count}} done";
|
|
127
|
+
readonly subagentWaveRunning: "{{count}} running";
|
|
128
|
+
readonly subagentWaveQueued: "{{count}} waiting";
|
|
129
|
+
readonly subagentWaveNeedsLook: "{{count}} need a look";
|
|
130
|
+
readonly subagentWaveStopped: "{{count}} stopped";
|
|
131
|
+
readonly subagentOutcomeQueued: "Waiting to start";
|
|
132
|
+
readonly subagentOutcomeStopped: "Stopped by you";
|
|
133
|
+
readonly subagentOutcomeStalled: "Went quiet — Belong moved on";
|
|
134
|
+
readonly subagentOutcomeTimeout: "Took too long — Belong moved on";
|
|
135
|
+
readonly subagentOutcomeError: "Couldn't finish";
|
|
136
|
+
readonly subagentOutcomeInterrupted: "Picked up again";
|
|
137
|
+
readonly subagentOutcomeWaiting: "Waiting for you";
|
|
138
|
+
readonly subagentApprovalFor: "{{description}} needs your approval";
|
|
139
|
+
readonly subagentReport: "Report";
|
|
140
|
+
readonly subagentHideReport: "Hide report";
|
|
141
|
+
readonly subagentShowAll: "Show all {{count}}";
|
|
142
|
+
readonly subagentStopAll: "Stop all";
|
|
143
|
+
readonly subagentStopAllConfirm: "Stop {{count}}?";
|
|
114
144
|
readonly cliAuthStop: {
|
|
115
145
|
readonly noGrant: "Connect to Simetrik to continue";
|
|
116
146
|
readonly reconnectFailed: "Couldn't connect to Simetrik";
|
|
@@ -196,6 +226,18 @@ export declare const streamEs: {
|
|
|
196
226
|
toolForgetDone: string;
|
|
197
227
|
toolForgetFailed: string;
|
|
198
228
|
toolForgetDetail: string;
|
|
229
|
+
toolSaveSkillRunning: string;
|
|
230
|
+
toolSaveSkillDone: string;
|
|
231
|
+
toolSaveSkillFailed: string;
|
|
232
|
+
toolSaveSkillDetail: string;
|
|
233
|
+
toolSetSkillEnabledRunning: string;
|
|
234
|
+
toolSetSkillEnabledDone: string;
|
|
235
|
+
toolSetSkillEnabledFailed: string;
|
|
236
|
+
toolSetSkillEnabledDetail: string;
|
|
237
|
+
toolListSkillLibraryRunning: string;
|
|
238
|
+
toolListSkillLibraryDone: string;
|
|
239
|
+
toolListSkillLibraryFailed: string;
|
|
240
|
+
toolListSkillLibraryDetail: string;
|
|
199
241
|
browserSnapshot: string;
|
|
200
242
|
browserRead: string;
|
|
201
243
|
browserClick: string;
|
|
@@ -211,6 +253,8 @@ export declare const streamEs: {
|
|
|
211
253
|
actionWroteFile: string;
|
|
212
254
|
actionPublishedArtifact: string;
|
|
213
255
|
actionLookedUpSkill: string;
|
|
256
|
+
actionSavedSkill: string;
|
|
257
|
+
actionUpdatedSkill: string;
|
|
214
258
|
actionSubTask: string;
|
|
215
259
|
actionMadePlan: string;
|
|
216
260
|
actionCheckedRules: string;
|
|
@@ -220,13 +264,30 @@ export declare const streamEs: {
|
|
|
220
264
|
executingTasks: string;
|
|
221
265
|
workedSteps_one: string;
|
|
222
266
|
workedSteps_other: string;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
267
|
+
subagentWorkingCount_one: string;
|
|
268
|
+
subagentWorkingCount_other: string;
|
|
269
|
+
subagentWaveFallback_one: string;
|
|
270
|
+
subagentWaveFallback_other: string;
|
|
271
|
+
subagentWaveFallbackDone_one: string;
|
|
272
|
+
subagentWaveFallbackDone_other: string;
|
|
273
|
+
subagentWaveDone: string;
|
|
274
|
+
subagentWaveRunning: string;
|
|
275
|
+
subagentWaveQueued: string;
|
|
276
|
+
subagentWaveNeedsLook: string;
|
|
277
|
+
subagentWaveStopped: string;
|
|
278
|
+
subagentOutcomeQueued: string;
|
|
279
|
+
subagentOutcomeStopped: string;
|
|
280
|
+
subagentOutcomeStalled: string;
|
|
281
|
+
subagentOutcomeTimeout: string;
|
|
282
|
+
subagentOutcomeError: string;
|
|
283
|
+
subagentOutcomeInterrupted: string;
|
|
284
|
+
subagentOutcomeWaiting: string;
|
|
285
|
+
subagentApprovalFor: string;
|
|
286
|
+
subagentReport: string;
|
|
287
|
+
subagentHideReport: string;
|
|
288
|
+
subagentShowAll: string;
|
|
289
|
+
subagentStopAll: string;
|
|
290
|
+
subagentStopAllConfirm: string;
|
|
230
291
|
cliAuthStop: {
|
|
231
292
|
noGrant: string;
|
|
232
293
|
reconnectFailed: string;
|
|
@@ -312,6 +373,18 @@ export declare const streamPt: {
|
|
|
312
373
|
toolForgetDone: string;
|
|
313
374
|
toolForgetFailed: string;
|
|
314
375
|
toolForgetDetail: string;
|
|
376
|
+
toolSaveSkillRunning: string;
|
|
377
|
+
toolSaveSkillDone: string;
|
|
378
|
+
toolSaveSkillFailed: string;
|
|
379
|
+
toolSaveSkillDetail: string;
|
|
380
|
+
toolSetSkillEnabledRunning: string;
|
|
381
|
+
toolSetSkillEnabledDone: string;
|
|
382
|
+
toolSetSkillEnabledFailed: string;
|
|
383
|
+
toolSetSkillEnabledDetail: string;
|
|
384
|
+
toolListSkillLibraryRunning: string;
|
|
385
|
+
toolListSkillLibraryDone: string;
|
|
386
|
+
toolListSkillLibraryFailed: string;
|
|
387
|
+
toolListSkillLibraryDetail: string;
|
|
315
388
|
browserSnapshot: string;
|
|
316
389
|
browserRead: string;
|
|
317
390
|
browserClick: string;
|
|
@@ -327,6 +400,8 @@ export declare const streamPt: {
|
|
|
327
400
|
actionWroteFile: string;
|
|
328
401
|
actionPublishedArtifact: string;
|
|
329
402
|
actionLookedUpSkill: string;
|
|
403
|
+
actionSavedSkill: string;
|
|
404
|
+
actionUpdatedSkill: string;
|
|
330
405
|
actionSubTask: string;
|
|
331
406
|
actionMadePlan: string;
|
|
332
407
|
actionCheckedRules: string;
|
|
@@ -336,13 +411,30 @@ export declare const streamPt: {
|
|
|
336
411
|
executingTasks: string;
|
|
337
412
|
workedSteps_one: string;
|
|
338
413
|
workedSteps_other: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
414
|
+
subagentWorkingCount_one: string;
|
|
415
|
+
subagentWorkingCount_other: string;
|
|
416
|
+
subagentWaveFallback_one: string;
|
|
417
|
+
subagentWaveFallback_other: string;
|
|
418
|
+
subagentWaveFallbackDone_one: string;
|
|
419
|
+
subagentWaveFallbackDone_other: string;
|
|
420
|
+
subagentWaveDone: string;
|
|
421
|
+
subagentWaveRunning: string;
|
|
422
|
+
subagentWaveQueued: string;
|
|
423
|
+
subagentWaveNeedsLook: string;
|
|
424
|
+
subagentWaveStopped: string;
|
|
425
|
+
subagentOutcomeQueued: string;
|
|
426
|
+
subagentOutcomeStopped: string;
|
|
427
|
+
subagentOutcomeStalled: string;
|
|
428
|
+
subagentOutcomeTimeout: string;
|
|
429
|
+
subagentOutcomeError: string;
|
|
430
|
+
subagentOutcomeInterrupted: string;
|
|
431
|
+
subagentOutcomeWaiting: string;
|
|
432
|
+
subagentApprovalFor: string;
|
|
433
|
+
subagentReport: string;
|
|
434
|
+
subagentHideReport: string;
|
|
435
|
+
subagentShowAll: string;
|
|
436
|
+
subagentStopAll: string;
|
|
437
|
+
subagentStopAllConfirm: string;
|
|
346
438
|
cliAuthStop: {
|
|
347
439
|
noGrant: string;
|
|
348
440
|
reconnectFailed: string;
|
|
@@ -428,6 +520,18 @@ export declare const streamIt: {
|
|
|
428
520
|
toolForgetDone: string;
|
|
429
521
|
toolForgetFailed: string;
|
|
430
522
|
toolForgetDetail: string;
|
|
523
|
+
toolSaveSkillRunning: string;
|
|
524
|
+
toolSaveSkillDone: string;
|
|
525
|
+
toolSaveSkillFailed: string;
|
|
526
|
+
toolSaveSkillDetail: string;
|
|
527
|
+
toolSetSkillEnabledRunning: string;
|
|
528
|
+
toolSetSkillEnabledDone: string;
|
|
529
|
+
toolSetSkillEnabledFailed: string;
|
|
530
|
+
toolSetSkillEnabledDetail: string;
|
|
531
|
+
toolListSkillLibraryRunning: string;
|
|
532
|
+
toolListSkillLibraryDone: string;
|
|
533
|
+
toolListSkillLibraryFailed: string;
|
|
534
|
+
toolListSkillLibraryDetail: string;
|
|
431
535
|
browserSnapshot: string;
|
|
432
536
|
browserRead: string;
|
|
433
537
|
browserClick: string;
|
|
@@ -443,6 +547,8 @@ export declare const streamIt: {
|
|
|
443
547
|
actionWroteFile: string;
|
|
444
548
|
actionPublishedArtifact: string;
|
|
445
549
|
actionLookedUpSkill: string;
|
|
550
|
+
actionSavedSkill: string;
|
|
551
|
+
actionUpdatedSkill: string;
|
|
446
552
|
actionSubTask: string;
|
|
447
553
|
actionMadePlan: string;
|
|
448
554
|
actionCheckedRules: string;
|
|
@@ -452,13 +558,30 @@ export declare const streamIt: {
|
|
|
452
558
|
executingTasks: string;
|
|
453
559
|
workedSteps_one: string;
|
|
454
560
|
workedSteps_other: string;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
561
|
+
subagentWorkingCount_one: string;
|
|
562
|
+
subagentWorkingCount_other: string;
|
|
563
|
+
subagentWaveFallback_one: string;
|
|
564
|
+
subagentWaveFallback_other: string;
|
|
565
|
+
subagentWaveFallbackDone_one: string;
|
|
566
|
+
subagentWaveFallbackDone_other: string;
|
|
567
|
+
subagentWaveDone: string;
|
|
568
|
+
subagentWaveRunning: string;
|
|
569
|
+
subagentWaveQueued: string;
|
|
570
|
+
subagentWaveNeedsLook: string;
|
|
571
|
+
subagentWaveStopped: string;
|
|
572
|
+
subagentOutcomeQueued: string;
|
|
573
|
+
subagentOutcomeStopped: string;
|
|
574
|
+
subagentOutcomeStalled: string;
|
|
575
|
+
subagentOutcomeTimeout: string;
|
|
576
|
+
subagentOutcomeError: string;
|
|
577
|
+
subagentOutcomeInterrupted: string;
|
|
578
|
+
subagentOutcomeWaiting: string;
|
|
579
|
+
subagentApprovalFor: string;
|
|
580
|
+
subagentReport: string;
|
|
581
|
+
subagentHideReport: string;
|
|
582
|
+
subagentShowAll: string;
|
|
583
|
+
subagentStopAll: string;
|
|
584
|
+
subagentStopAllConfirm: string;
|
|
462
585
|
cliAuthStop: {
|
|
463
586
|
noGrant: string;
|
|
464
587
|
reconnectFailed: string;
|
|
@@ -8,6 +8,11 @@ export declare const workspaceEn: {
|
|
|
8
8
|
readonly shownByBelong: "Shown by Belong";
|
|
9
9
|
readonly openedByYou: "You opened this";
|
|
10
10
|
readonly planTitle: "Plan";
|
|
11
|
+
readonly subagentsFilterAll: "All {{count}}";
|
|
12
|
+
readonly subagentsFilterRunning: "Running {{count}}";
|
|
13
|
+
readonly subagentsFilterAttention: "Needs a look {{count}}";
|
|
14
|
+
readonly subagentsFilterDone: "Done {{count}}";
|
|
15
|
+
readonly subagentsOpen: "Open";
|
|
11
16
|
};
|
|
12
17
|
};
|
|
13
18
|
export declare const workspaceEs: {
|
|
@@ -18,6 +23,11 @@ export declare const workspaceEs: {
|
|
|
18
23
|
shownByBelong: string;
|
|
19
24
|
openedByYou: string;
|
|
20
25
|
planTitle: string;
|
|
26
|
+
subagentsFilterAll: string;
|
|
27
|
+
subagentsFilterRunning: string;
|
|
28
|
+
subagentsFilterAttention: string;
|
|
29
|
+
subagentsFilterDone: string;
|
|
30
|
+
subagentsOpen: string;
|
|
21
31
|
};
|
|
22
32
|
};
|
|
23
33
|
export declare const workspacePt: {
|
|
@@ -28,6 +38,11 @@ export declare const workspacePt: {
|
|
|
28
38
|
shownByBelong: string;
|
|
29
39
|
openedByYou: string;
|
|
30
40
|
planTitle: string;
|
|
41
|
+
subagentsFilterAll: string;
|
|
42
|
+
subagentsFilterRunning: string;
|
|
43
|
+
subagentsFilterAttention: string;
|
|
44
|
+
subagentsFilterDone: string;
|
|
45
|
+
subagentsOpen: string;
|
|
31
46
|
};
|
|
32
47
|
};
|
|
33
48
|
export declare const workspaceIt: {
|
|
@@ -38,5 +53,10 @@ export declare const workspaceIt: {
|
|
|
38
53
|
shownByBelong: string;
|
|
39
54
|
openedByYou: string;
|
|
40
55
|
planTitle: string;
|
|
56
|
+
subagentsFilterAll: string;
|
|
57
|
+
subagentsFilterRunning: string;
|
|
58
|
+
subagentsFilterAttention: string;
|
|
59
|
+
subagentsFilterDone: string;
|
|
60
|
+
subagentsOpen: string;
|
|
41
61
|
};
|
|
42
62
|
};
|
package/dist/public-api.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { BelongGlobal, BelongInitInput, BelongTheme, BelongThemeBrand, BelongThemeDensity, BelongThemeMode, BelongThemePalette, BelongThemeSide, PartialBelongTheme, RouteHandler, RouteHandlerResult, UiActionHandler, UiActionResult, } from './types/public.ts';
|
|
1
|
+
export type { BelongBrowserControlConfig, BelongBrowserOpName, BelongGlobal, BelongHostMcpConfig, BelongInitInput, BelongOpenOptions, BelongTheme, BelongThemeBrand, BelongThemeDensity, BelongThemeMode, BelongThemePalette, BelongThemeSide, PartialBelongTheme, RouteHandler, RouteHandlerResult, UiActionHandler, UiActionResult, } from './types/public.ts';
|
|
2
2
|
export { SdkProviders } from './app/providers.tsx';
|
|
3
3
|
export { createApiClient, setBelongToken } from './api/client.ts';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { SessionGoalApi } from './use-session-goal.ts';
|
|
2
|
+
import { GoalProposalData } from '../../stream/belong-data-parts.ts';
|
|
3
|
+
export type PartRendererExtraProps = {
|
|
4
|
+
readonly onContinueConnector?: ((connectorId: string, name: string) => Promise<void>) | undefined;
|
|
5
|
+
readonly onExecutePlan?: (() => void) | undefined;
|
|
6
|
+
readonly onConfirmGoal?: ((proposal: GoalProposalData) => Promise<void>) | undefined;
|
|
7
|
+
readonly renderGoalSetCard?: true | undefined;
|
|
8
|
+
readonly goalFileCount: number;
|
|
9
|
+
readonly onGoalSchedule: (command: string) => void;
|
|
10
|
+
readonly onGoalGetFiles?: (() => void) | undefined;
|
|
11
|
+
readonly onGoalStartAnother: () => void;
|
|
12
|
+
/** Task 17 — the proposal card's "Edit first", hidden under the same rule
|
|
13
|
+
* as `onConfirmGoal` (streaming / already resolved). */
|
|
14
|
+
readonly onEditGoalProposal?: ((proposal: GoalProposalData) => void) | undefined;
|
|
15
|
+
readonly onOpenGoalProposal?: (() => void) | undefined;
|
|
16
|
+
/** Fix round 1 (Low 4) — a FUNCTION, not a bare boolean: only the dispatch
|
|
17
|
+
* site (`ai-sdk-part-renderers.tsx`) knows which offer's objective to ask
|
|
18
|
+
* about, since `partRendererExtraProps` is called once per message before
|
|
19
|
+
* the specific part type is known. */
|
|
20
|
+
readonly isGoalProposalStarted: (objective: string) => boolean;
|
|
21
|
+
readonly goalProposalSessionId: string | null;
|
|
22
|
+
};
|
|
23
|
+
export type PartRendererExtraPropsInput = {
|
|
24
|
+
readonly isStreaming: boolean;
|
|
25
|
+
/** This message's index in the transcript. */
|
|
26
|
+
readonly messageIndex: number;
|
|
27
|
+
readonly lastUserMessageIndex: number;
|
|
28
|
+
readonly messageId: string;
|
|
29
|
+
readonly continueConnectorFor: (messageId: string) => (connectorId: string, name: string) => Promise<void>;
|
|
30
|
+
readonly onExecutePlan: () => void;
|
|
31
|
+
readonly hasLiveGoal: boolean;
|
|
32
|
+
readonly isGoalSetPart: boolean;
|
|
33
|
+
readonly goalFileCount: number;
|
|
34
|
+
readonly onGoalSchedule: (command: string) => void;
|
|
35
|
+
readonly onGoalGetFiles?: (() => void) | undefined;
|
|
36
|
+
readonly onGoalStartAnother: () => void;
|
|
37
|
+
/** Task 17 — read straight off the door instead of threading `confirmGoal`
|
|
38
|
+
* as its own field: `goalDoor` already carries everything the proposal
|
|
39
|
+
* card needs. */
|
|
40
|
+
readonly goalDoor: SessionGoalApi["goalDoor"];
|
|
41
|
+
readonly onOpenGoalView: (() => void) | undefined;
|
|
42
|
+
};
|
|
43
|
+
export declare const partRendererExtraProps: (input: PartRendererExtraPropsInput) => PartRendererExtraProps;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BelongUIMessage } from '../../stream/belong-data-parts.ts';
|
|
2
|
+
import { GoalView } from '../../api/goals.ts';
|
|
3
|
+
export type GoalReceiptState = {
|
|
4
|
+
readonly goalSetPartIds: ReadonlySet<string>;
|
|
5
|
+
readonly setupProgress: {
|
|
6
|
+
readonly index: number;
|
|
7
|
+
readonly total: number;
|
|
8
|
+
} | undefined;
|
|
9
|
+
/** The completion card's "Run this again on a schedule" — drops the
|
|
10
|
+
* already-built `/schedule …` line into the draft and focuses it. The
|
|
11
|
+
* user still presses Enter; this never sends on their behalf. */
|
|
12
|
+
readonly onGoalScheduleFollowUp: (command: string) => void;
|
|
13
|
+
/** The completion card's "Set another goal" — opens Task 16's compose
|
|
14
|
+
* sheet directly (spec §5: "new chat + compose sheet"). Final review
|
|
15
|
+
* (Medium 6): this used to pre-type `/goal ` into the draft, which cost
|
|
16
|
+
* the user an extra Enter — and the bare-`/goal` slash menu ate that
|
|
17
|
+
* Enter, so it was two. */
|
|
18
|
+
readonly onGoalAnotherFollowUp: () => void;
|
|
19
|
+
};
|
|
20
|
+
export declare const useGoalReceipt: (messages: readonly BelongUIMessage[], goal: GoalView | null, setDraft: (value: string) => void,
|
|
21
|
+
/** `goalDoor.onSetGoal` — the compose-sheet opener, or `undefined` once a
|
|
22
|
+
* `goals_disabled` 503 has been seen this mount. The draft prefill is the
|
|
23
|
+
* fallback for that one case: a completion card CAN outlive the door (the
|
|
24
|
+
* card renders from a stored part), and a dead button is worse than a
|
|
25
|
+
* pre-typed command. */
|
|
26
|
+
openGoalComposeSheet: (() => void) | undefined) => GoalReceiptState;
|
|
27
|
+
/**
|
|
28
|
+
* True when this part is the ONE `data-goal` part, for its goal, that
|
|
29
|
+
* should render the "Goal set" receipt. Typed structurally (not against
|
|
30
|
+
* `BelongMessagePart`) so this module stays decoupled from the renderer
|
|
31
|
+
* module — every message part shape chat.tsx passes in already has `type`
|
|
32
|
+
* and an optional wire `id`.
|
|
33
|
+
*/
|
|
34
|
+
export declare const isGoalSetPart: (messageId: string, part: {
|
|
35
|
+
readonly type: string;
|
|
36
|
+
readonly id?: string;
|
|
37
|
+
}, goalSetPartIds: ReadonlySet<string>) => boolean;
|