@boldare/askdare 0.1.0 → 0.2.0-rc.0
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/CHANGELOG.md +25 -0
- package/README.md +10 -2
- package/dist/cli.js +286 -176
- package/dist/index.js +2 -0
- package/dist/next.d.ts +169 -4
- package/dist/next.js +395 -87
- package/dist/react-marked.js +1797 -0
- package/dist/react.d.ts +470 -0
- package/dist/react.js +2691 -0
- package/dist/store.d.ts +13 -0
- package/dist/ui/askdare.css +1720 -0
- package/dist/ui/avatar.tsx +27 -0
- package/dist/ui/chat.tsx +26 -0
- package/dist/ui/confirm.tsx +71 -0
- package/dist/ui/context.ts +31 -0
- package/dist/ui/feedback.tsx +78 -0
- package/dist/ui/footer.tsx +60 -0
- package/dist/ui/header.tsx +51 -0
- package/dist/ui/icons.tsx +89 -0
- package/dist/ui/index.ts +8 -0
- package/dist/ui/message.tsx +21 -0
- package/dist/ui/panel.tsx +121 -0
- package/dist/ui/welcome.tsx +88 -0
- package/dist/version.js +12 -0
- package/docs/cli.md +30 -0
- package/docs/configuration.md +74 -4
- package/docs/costs.md +7 -1
- package/docs/embedding.md +2 -0
- package/docs/feedback.md +54 -0
- package/docs/getting-started.md +3 -0
- package/docs/going-public.md +1 -0
- package/docs/observability.md +76 -0
- package/docs/privacy.md +27 -7
- package/docs/protocol.md +13 -3
- package/docs/react.md +283 -0
- package/docs/styling.md +14 -2
- package/docs/support.md +4 -2
- package/docs/texts.md +6 -0
- package/docs/troubleshooting.md +12 -0
- package/llms.txt +5 -2
- package/package.json +19 -7
- package/skills/askdare/SKILL.md +6 -2
package/dist/store.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ declare const EN: {
|
|
|
24
24
|
readonly "status.tool": "Using {name}…";
|
|
25
25
|
readonly "status.typing": "The assistant is typing";
|
|
26
26
|
readonly "message.sources": "Sources";
|
|
27
|
+
readonly "feedback.label": "Rate this answer";
|
|
28
|
+
readonly "feedback.up": "Helpful";
|
|
29
|
+
readonly "feedback.down": "Not helpful";
|
|
30
|
+
readonly "feedback.comment": "What went wrong?";
|
|
31
|
+
readonly "feedback.send": "Send feedback";
|
|
32
|
+
readonly "feedback.skip": "Skip";
|
|
27
33
|
readonly "message.attachments.one": "{count} attachment";
|
|
28
34
|
readonly "message.attachments.other": "{count} attachments";
|
|
29
35
|
readonly "attachment.list": "Attachments";
|
|
@@ -310,6 +316,11 @@ interface WidgetConfig {
|
|
|
310
316
|
readonly css?: string;
|
|
311
317
|
/** Suggested questions on the welcome screen; a click sends one. Up to 4. */
|
|
312
318
|
readonly starters?: readonly string[];
|
|
319
|
+
/**
|
|
320
|
+
* 👍/👎 under each answer, with an optional comment after 👎. They show only when
|
|
321
|
+
* `createChatHandler` has `onFeedback`; `false` hides them for this bot. Default `true`.
|
|
322
|
+
*/
|
|
323
|
+
readonly feedback?: boolean;
|
|
313
324
|
/** The assistant's picture: a path on your app such as `/avatar.png`, or a small data: image. */
|
|
314
325
|
readonly avatar?: string;
|
|
315
326
|
/** Text on the pill launcher; shortcut for `texts['launcher.label']`. */
|
|
@@ -329,6 +340,8 @@ interface BotWidget {
|
|
|
329
340
|
/** The configured BCP 47 tag, or `auto`. */
|
|
330
341
|
readonly locale: string;
|
|
331
342
|
readonly starters: readonly string[];
|
|
343
|
+
/** Whether this bot lets visitors rate answers, when the handler has `onFeedback`. */
|
|
344
|
+
readonly feedback: boolean;
|
|
332
345
|
readonly avatar: string | undefined;
|
|
333
346
|
readonly launcherLabel: string;
|
|
334
347
|
/** Text overrides, including the title, greeting, placeholder and launcher label shortcuts. */
|