@gui-chat-plugin/sequence 0.6.1 → 0.6.2
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 +8 -0
- package/README.md +1 -1
- package/dist/core/definitions.d.ts +0 -1
- package/dist/core/slideHtml.d.ts +3 -0
- package/dist/{core-CAot6uC8.js → core-Czn02RGP.js} +249 -235
- package/dist/core-f9NCxgnh.cjs +245 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +30 -30
- package/package.json +1 -1
- package/dist/core-9tYquYlg.cjs +0 -245
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
- **A picture without `imagePrompt` is drawn from its alt text.** In MulmoChat, a model described
|
|
6
|
+
the picture in `` and sent no `imagePrompt`; the slide was
|
|
7
|
+
refused, which ended the slideshow. The picture's alt text is now what is drawn, or the slide's
|
|
8
|
+
title when there is none, and it is saved as the slide's `imagePrompt`. Nothing is refused for a
|
|
9
|
+
missing `imagePrompt` any more (`SLIDE_IMAGE_WITHOUT_PROMPT` is gone).
|
|
10
|
+
|
|
3
11
|
## 0.6.1
|
|
4
12
|
|
|
5
13
|
- **`{{image}}` alone on its line is a Markdown slide's picture too.** In MulmoChat, models wrote the
|
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ HTML itself (reading `imagePath` as a `data:` URL). A Markdown slide whose pictu
|
|
|
86
86
|
its own is laid out in two columns: the text on the left, the picture on the right, filling the
|
|
87
87
|
slide's height (`object-fit: cover`, so the picture is asked to keep its subject in the middle).
|
|
88
88
|
Without `{{image}}`, an `imagePrompt` sent with `html` or `markdown` is left out; `{{image}}`
|
|
89
|
-
without `imagePrompt` is
|
|
89
|
+
without `imagePrompt` is drawn from the picture's alt text, or the slide's title when it has none. When the picture can't be drawn, the slide is shown without it
|
|
90
90
|
and the model is told.
|
|
91
91
|
|
|
92
92
|
### Markdown slides
|
|
@@ -27,7 +27,6 @@ export interface SlideArgs {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const SLIDE_ARGS_ERROR = "presentSlide needs slide and totalSlides (whole numbers, slide from 1 to totalSlides), and one of imagePrompt, html, markdown or chart";
|
|
29
29
|
export declare const SLIDE_HTML_TOO_LONG = "presentSlide's slide is too long: keep its html, markdown or chart under 60000 characters";
|
|
30
|
-
export declare const SLIDE_IMAGE_WITHOUT_PROMPT = "presentSlide's slide has {{image}} but no imagePrompt: give imagePrompt for the picture that goes there, or take {{image}} out";
|
|
31
30
|
export declare const SLIDE_CHART_INVALID: string;
|
|
32
31
|
/** The slide arguments, or what is wrong with them (said to the model). A
|
|
33
32
|
* slide is one kind: html first, then markdown, then chart, then a
|
package/dist/core/slideHtml.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export declare const SLIDE_IMAGE_MARK = "{{image}}";
|
|
|
45
45
|
* Markdown slide is asked about the HTML made of it, so the answer is
|
|
46
46
|
* marked's reading of the Markdown. */
|
|
47
47
|
export declare const hasSlideImageMark: (html: string) => boolean;
|
|
48
|
+
/** The alt text of the <img> that places the slide's picture (outside code),
|
|
49
|
+
* or "": what a model that left out imagePrompt said the picture shows. */
|
|
50
|
+
export declare const slideImageAlt: (html: string) => string;
|
|
48
51
|
/** The slide's HTML with its picture in place of {{image}}, outside <pre>
|
|
49
52
|
* and <code>: imageData when it is a data: URL of an image, else a
|
|
50
53
|
* transparent pixel. */
|