aicommunicator 0.0.0-stage → 0.2.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/LICENSE +55 -0
- package/README.md +93 -2
- package/bin/aic.js +20427 -0
- package/host-ui/host.js +5151 -0
- package/host-ui/index.html +483 -0
- package/host-ui/lang-en.js +631 -0
- package/package.json +30 -4
- package/plugin-guide.md +997 -0
- package/plugins/plugin-animation/LICENSE +55 -0
- package/plugins/plugin-animation/dist/logic.js +2225 -0
- package/plugins/plugin-animation/docs/manual.md +217 -0
- package/plugins/plugin-animation/manifest.json +31 -0
- package/plugins/plugin-animation/ui/icon.svg +6 -0
- package/plugins/plugin-animation/ui/index.html +2266 -0
- package/plugins/plugin-html-design/LICENSE +55 -0
- package/plugins/plugin-html-design/dist/logic.js +972 -0
- package/plugins/plugin-html-design/docs/manual.md +100 -0
- package/plugins/plugin-html-design/manifest.json +39 -0
- package/plugins/plugin-html-design/samples/exhibition-page.json +570 -0
- package/plugins/plugin-html-design/ui/icon.svg +5 -0
- package/plugins/plugin-html-design/ui/index.html +1241 -0
- package/plugins/plugin-html-slides/LICENSE +55 -0
- package/plugins/plugin-html-slides/dist/logic.js +1323 -0
- package/plugins/plugin-html-slides/docs/manual.md +121 -0
- package/plugins/plugin-html-slides/manifest.json +39 -0
- package/plugins/plugin-html-slides/samples/first-week-lecture.json +1129 -0
- package/plugins/plugin-html-slides/ui/icon.svg +5 -0
- package/plugins/plugin-html-slides/ui/index.html +1349 -0
- package/plugins/plugin-mindmap/LICENSE +55 -0
- package/plugins/plugin-mindmap/dist/logic.js +966 -0
- package/plugins/plugin-mindmap/docs/manual.md +145 -0
- package/plugins/plugin-mindmap/manifest.json +39 -0
- package/plugins/plugin-mindmap/samples/book-club.json +480 -0
- package/plugins/plugin-mindmap/ui/icon.svg +5 -0
- package/plugins/plugin-mindmap/ui/index.html +1774 -0
- package/plugins/plugin-plan/LICENSE +55 -0
- package/plugins/plugin-plan/dist/logic.js +1029 -0
- package/plugins/plugin-plan/docs/manual.md +261 -0
- package/plugins/plugin-plan/manifest.json +51 -0
- package/plugins/plugin-plan/samples/kimchi-day.json +1514 -0
- package/plugins/plugin-plan/samples/meeting-outline.json +653 -0
- package/plugins/plugin-plan/samples/reading-class.json +1577 -0
- package/plugins/plugin-plan/ui/icon.svg +7 -0
- package/plugins/plugin-plan/ui/index.html +1523 -0
- package/plugins/plugin-png/LICENSE +55 -0
- package/plugins/plugin-png/dist/logic.js +1758 -0
- package/plugins/plugin-png/docs/manual.md +344 -0
- package/plugins/plugin-png/manifest.json +35 -0
- package/plugins/plugin-png/ui/icon.svg +5 -0
- package/plugins/plugin-png/ui/index.html +2885 -0
- package/plugins/plugin-process-log/LICENSE +55 -0
- package/plugins/plugin-process-log/dist/logic.js +406 -0
- package/plugins/plugin-process-log/docs/manual.md +131 -0
- package/plugins/plugin-process-log/manifest.json +43 -0
- package/plugins/plugin-process-log/samples/design-decisions.json +241 -0
- package/plugins/plugin-process-log/ui/icon.svg +7 -0
- package/plugins/plugin-process-log/ui/index.html +721 -0
- package/plugins/plugin-story/LICENSE +55 -0
- package/plugins/plugin-story/dist/logic.js +2201 -0
- package/plugins/plugin-story/docs/manual.md +428 -0
- package/plugins/plugin-story/manifest.json +49 -0
- package/plugins/plugin-story/samples/scene-body.json +758 -0
- package/plugins/plugin-story/samples/time-and-groups.json +989 -0
- package/plugins/plugin-story/ui/icon.svg +4 -0
- package/plugins/plugin-story/ui/index.html +2783 -0
- package/plugins/plugin-svg/LICENSE +55 -0
- package/plugins/plugin-svg/dist/logic.js +2150 -0
- package/plugins/plugin-svg/docs/manual.md +314 -0
- package/plugins/plugin-svg/manifest.json +45 -0
- package/plugins/plugin-svg/samples/rocket-icon.json +1305 -0
- package/plugins/plugin-svg/samples/yard-cat.json +7796 -0
- package/plugins/plugin-svg/ui/icon.svg +4 -0
- package/plugins/plugin-svg/ui/index.html +2017 -0
- package/plugins/plugin-tree/LICENSE +55 -0
- package/plugins/plugin-tree/dist/logic.js +505 -0
- package/plugins/plugin-tree/docs/manual.md +140 -0
- package/plugins/plugin-tree/manifest.json +45 -0
- package/plugins/plugin-tree/samples/book-club.json +473 -0
- package/plugins/plugin-tree/samples/sort-memos.json +604 -0
- package/plugins/plugin-tree/ui/icon.svg +7 -0
- package/plugins/plugin-tree/ui/index.html +1305 -0
- package/schema/aic_describe.input.json +11 -0
- package/schema/aic_describe.output.json +67 -0
- package/schema/aic_observe.input.json +14 -0
- package/schema/aic_observe.output.json +47 -0
- package/schema/aic_send.input.json +15 -0
- package/schema/aic_send.output.json +38 -0
- package/schema/aic_update.input.json +19 -0
- package/schema/aic_update.output.json +39 -0
- package/schema/common.json +127 -0
- package/template/plugin/LICENSE +55 -0
- package/template/plugin/README.md +27 -0
- package/template/plugin/docs/manual.md +31 -0
- package/template/plugin/logic.js +337 -0
- package/template/plugin/manifest.json +27 -0
- package/template/plugin/ui/icon.svg +4 -0
- package/template/plugin/ui/index.html +269 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# HTML Slides manual
|
|
2
|
+
|
|
3
|
+
HTML Slides (`aic.html-slides`) is a screen where you and the AI edit a multi-page HTML presentation while pointing at the same screen. This manual is for both you and the AI. You open it with [설명서] (Manual) in the plugin window of the AIC screen. The AI reads it with `read_plugin_manual`.
|
|
4
|
+
|
|
5
|
+
## What you do on this screen
|
|
6
|
+
|
|
7
|
+
- Compare the two built-in presentation samples (a light lecture and a dark keynote) and start a deck from one of them.
|
|
8
|
+
- Add, remove and move pages using four layouts: cover, title and list, picture and description, and closing.
|
|
9
|
+
- Edit the text and styles inside a page. You can pick an element on the screen and ask in your own words. The AI reads the place you picked and the size and spacing measured at that time, then makes the change.
|
|
10
|
+
- A navigation bar with previous, page number and next is added below every page automatically. You can set links inside a page to point to any page.
|
|
11
|
+
- The result is saved as a single HTML file with all pages. Open that file in a browser to turn pages with the keyboard and present in full screen.
|
|
12
|
+
|
|
13
|
+
Each page is fixed at 1920×1080 CSS px. On the screen it shrinks to fit the window. Measurements are always on the 1920×1080 page, so they stay the same when the window size changes.
|
|
14
|
+
|
|
15
|
+
## Parts of the screen
|
|
16
|
+
|
|
17
|
+
- **Top bar**: one line with icons and short names only.
|
|
18
|
+
- At the far left is the view menu. Its name is what you are looking at now: "Sample: 밝은 강의" before a deck exists, and "Deck" or "Reference: 어두운 발표" after you start one. Open it to pick another sample or a reference sample. When you click an element in a reference sample, it is attached as a reference example to your next style change.
|
|
19
|
+
- Next come the previous page and next page icons and the current page ("2 / 4"). When the source of the current page is over the AiAkiv save limit, "Over AiAkiv limit" also shows.
|
|
20
|
+
- Then the mode buttons ([Pick] and [Presentation preview]) and the display scale.
|
|
21
|
+
- At the far right are the save icon ([Save as HTML file]) and the edit panel icon. Hover over an icon to see its name.
|
|
22
|
+
- **Middle**: one large page, the one you picked. You can also turn pages with the arrow keys.
|
|
23
|
+
- **Send bar at the top**: it sits just below the icon bar and stays there when you scroll. Here you write what to tell the AI about the place you picked and press [Send to AI].
|
|
24
|
+
- Before you pick anything, it has only the message box, and the hint text in the box tells you what to do. Press [?] at the end of the bar to see the steps and how the AI reads what you picked.
|
|
25
|
+
- After you pick, one line shows what you picked and whether you sent it. If you have not sent it yet, the border gets darker and "Not sent to the AI yet." shows.
|
|
26
|
+
- When the AI makes a change and the gap between the two picked elements is measured again, the change in the gap also shows on this line.
|
|
27
|
+
- **Right panel**: before you start a deck, and while you look at a reference sample, it is always shown. It has the sample description, the page list of that sample, and a start or back button.
|
|
28
|
+
- In the deck, it becomes the edit panel and starts closed. Open it with the edit panel icon at the far right of the top bar, or with [Edit directly] in the send bar.
|
|
29
|
+
- The edit panel has the deck information, the page list (number, title, source length and whether it can be saved to AiAkiv) with page buttons, a description of what you picked, editing tools and the element list.
|
|
30
|
+
- The page list is open. Click the names of the deck information, the measurements table and the element list to open them.
|
|
31
|
+
- If new measurements arrive while the panel is closed, a dot appears on the edit panel icon.
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
| Feature | What you do | What the AI does |
|
|
36
|
+
| --- | --- | --- |
|
|
37
|
+
| View samples | Pick [밝은 강의] (light lecture) or [어두운 발표] (dark keynote) from the menu at the far left of the top bar to compare them. Look at the pages of a sample one at a time with the page icons or the list on the right | Has you look at them on the screen and asks which one you prefer |
|
|
38
|
+
| Start a deck | Write why you picked it and press [Start a deck from this sample] | Gives `deck.start` the `sample` and the `reason` you said. There is only one deck |
|
|
39
|
+
| Add a page | Pick a layout and press [Add after this page] | Gives `slide.add` a `layout` (cover, list, picture, closing) and `after` (the id of the page that comes before it). Without `after` the page goes at the end. With `null` it goes at the front |
|
|
40
|
+
| Move a page | Press [Move earlier] or [Move later] | Gives `slide.move` the `slide` and `after` |
|
|
41
|
+
| Remove a page | Press [Remove this page]. You cannot remove the last remaining page | Asks you first, then sends `slide.remove`. Links that pointed to that page now go to the next page |
|
|
42
|
+
| Edit text | Click an element, edit the "New text" box in the edit panel and press [Change text] | Gives `text.set` an `element` (se number) and `text`. Giving the original text restores it |
|
|
43
|
+
| Edit a style | Click an element, choose the property, value and state, and press [Change style]. An empty value removes that change | Gives `style.set` an `element`, `property`, `value` and `state` |
|
|
44
|
+
| Change a link target | Click a link element (시작하기 or 처음으로 in the samples), choose "Page the link goes to" and press [Change link target] | Gives `link.set` an `element` and a `target` (next, prev, first, last or a page id) |
|
|
45
|
+
| Pick and talk | In [Pick] mode, click an element on the slide or drag an area. Write a message in the send bar at the top and press [Send to AI] or Enter | Reads the picked place and the measurements at that time with `read_selection`, and adds that selection id to `selection` of the operation that makes the change |
|
|
46
|
+
| Presentation preview | Press [Presentation preview]. The side panel hides and the page fills the plugin area. Press Esc to go back | Nothing |
|
|
47
|
+
| Save as HTML file | Press the save icon [Save as HTML file] at the right of the top bar | Nothing. The file you save is kept in the core as an output |
|
|
48
|
+
|
|
49
|
+
### Styles you can change
|
|
50
|
+
|
|
51
|
+
The property list on the screen has font size (`font-size`), weight (`font-weight`), line height (`line-height`), letter spacing (`letter-spacing`), text color (`color`), background color (`background-color`), top and bottom margins (`margin-top`, `margin-bottom`), top and bottom padding (`padding-top`, `padding-bottom`), spacing between items (`gap`), corner rounding (`border-radius`), text alignment (`text-align`), width and height (`width`, `max-width`, `height`) and opacity (`opacity`). The AI can use a wider list (borders, shadows, layout direction and more). Properties not on the list are rejected.
|
|
52
|
+
|
|
53
|
+
Values cannot contain semicolons, braces, quotes, `url()` or `!important`. Values that load outside pictures or addresses are rejected.
|
|
54
|
+
|
|
55
|
+
### State conditions
|
|
56
|
+
|
|
57
|
+
You can limit a style to a state: normal (`none`), hover (`hover`), keyboard focus (`focus`) and while pressed (`active`). When you change the normal state, the original state styles, such as hover, stay as they are. To change a state style too, change it in that state separately.
|
|
58
|
+
|
|
59
|
+
## Pages and navigation
|
|
60
|
+
|
|
61
|
+
- A navigation bar with previous, page number (for example 2 / 5) and next is added below every page automatically. When you add or move pages, the numbers and navigation follow the new order.
|
|
62
|
+
- A link inside a page names its target. `next`, `prev`, `first` and `last` follow the order when it changes. A page id always goes to that page, even after the order changes.
|
|
63
|
+
- When you remove the page a link pointed to, the link goes to the next page (`next`).
|
|
64
|
+
- Pages made from the same layout still have different element ids, so editing one page changes only that page.
|
|
65
|
+
|
|
66
|
+
## Presenting
|
|
67
|
+
|
|
68
|
+
- **Inside AIC**: press [Presentation preview]. Turn pages with the right arrow, Page Down, Space, a click on an empty spot, or links inside a page. The left arrow and Page Up go back. Home and End go to the first and last page. Press Esc to go back to editing.
|
|
69
|
+
- **From the saved file**: open the file that [Save as HTML file] downloaded in a browser. It opens without a network, turns pages with the same keys, and `#page id` at the end of the address opens that page directly. Use the [전체화면] (Full screen) button in the navigation bar or the F key to present in full screen.
|
|
70
|
+
- Real full screen does not work inside the AIC screen, because the host does not allow full screen for plugin screens. So the full screen button is hidden inside AIC.
|
|
71
|
+
|
|
72
|
+
## Page length and AiAkiv
|
|
73
|
+
|
|
74
|
+
The page list shows the source length of each page. A page source is a standalone HTML that draws only that page (shared styles, theme, the changes on that page and the page HTML). The navigation bar and the script are not included. A page of 50,000 characters or fewer shows "can be saved to AiAkiv". This mark tells you that the page can be viewed on the AiAkiv web.
|
|
75
|
+
|
|
76
|
+
Editing and saving the file are not blocked when a page is over 50,000 characters. It only means that page cannot use AiAkiv. Picture and description pages, where the picture is embedded with `data:`, are the longest. A page of the built-in samples is a little over 3,000 to 4,000 characters.
|
|
77
|
+
|
|
78
|
+
The AI reads the length of each page and whether it can use AiAkiv in the concept text. When it narrows the read to one page id, the source of that page is attached.
|
|
79
|
+
|
|
80
|
+
## Pick and talk, and new measurements
|
|
81
|
+
|
|
82
|
+
Things known only after the screen draws them (position, size, line count, spacing) are not in the concept text. When you pick a place on the slide and send it, the measurements at that time go into the selection. The AI can also read what you only picked, with `read_selection`, as "what you picked on the screen now (not sent)". So when you say "fix this" in the chat window, the AI knows the place you picked. But picking alone does not wake the AI. To have the AI work, write a message and send it. When you send, a selection number is made and it stays in the change history as the cause.
|
|
83
|
+
|
|
84
|
+
1. In [Pick] mode (the screen opens in this mode), click the title on the slide to pick that element. Start on an empty spot and drag across several elements to pick an area. If the area covers the space between two elements, the two elements and the gap between them are picked together.
|
|
85
|
+
2. After you pick, the cursor moves to the send bar at the top, and the bar shows what you picked, like "Picked: 제목 on page 1". Open the edit panel to see the picked element, the enclosing parts and the measurements. You can also click an enclosing part to pick a larger part.
|
|
86
|
+
3. Write your message in the send bar and press [Send to AI] or Enter. You can send it with an empty message. To ask the AI to follow another example, choose [Use as reference] in the list at the start of the bar. Press Esc to move the cursor back to the slide, so the arrow keys turn pages again.
|
|
87
|
+
4. The AI reads it with `read_selection`. It shows the id of the picked element, its text at that time, the enclosing elements, its neighbors, other elements with the same text and the gap (CSS px).
|
|
88
|
+
5. After the AI makes a change, the screen draws the new revision, measures the same target again and sends it. The next `read_selection` shows the "Redrawn values" next to the values at that time. The measurements table in the edit panel also shows both side by side, and if the gap changed, the send bar line shows it too.
|
|
89
|
+
|
|
90
|
+
The selection is described in the same state as your screen. Even when changes you made on the screen are not merged on the AI side yet, the AI reads the text and page numbers you saw. In that case the description starts with a line saying that it describes the same state as your screen. When the AI sends its next operation with the base revision from the response, your changes are merged.
|
|
91
|
+
|
|
92
|
+
## Working together
|
|
93
|
+
|
|
94
|
+
1. The AI makes a work with `create_document` and `plugin: "aic.html-slides"`. It has you compare the two samples on the screen.
|
|
95
|
+
2. When you pick one, you start it on the screen, or the AI sends `deck.start` with the reason you gave.
|
|
96
|
+
3. When you describe the pages and text, the AI fills them with `slide.add` and `text.set`. The AI checks the element ids of a new page in its next read before editing them.
|
|
97
|
+
4. For things you need to see, such as size and spacing, you point at them on the screen and send. The AI makes the change with that selection as the cause and reports the result from the new measurements.
|
|
98
|
+
5. You turn pages in [Presentation preview] and get the file with [Save as HTML file].
|
|
99
|
+
|
|
100
|
+
## What the AI keeps to
|
|
101
|
+
|
|
102
|
+
- When the AI changes something you asked for, it copies your words into `human_words`. When a selection you sent is the cause, it adds the selection id to `selection` and does not copy your words again.
|
|
103
|
+
- If there are no redrawn values, the AI does not guess and says it is waiting for measurement. New measurements do not come when the screen is closed, when it has not drawn the new revision yet, or when you are looking at another page.
|
|
104
|
+
- After a change, the AI tells you about the intended change and also about side effects, such as other elements being pushed or the line count changing. You judge the overall look on the screen.
|
|
105
|
+
- The AI asks you before it removes a page.
|
|
106
|
+
- The AI learns about a selection when aic watch wakes it or from the "current selection" in `read_concept`, and reads it with `read_selection`.
|
|
107
|
+
|
|
108
|
+
## Common problems
|
|
109
|
+
|
|
110
|
+
- **The elements of a new page cannot be edited right away**: in the same request as `slide.add`, the element ids of the new page are not known. After adding the page, the AI reads the concept text and edits by element id (se number).
|
|
111
|
+
- **Other pages seem to change too**: pages that use the same layout have different element ids, so they do not change together. To change the titles of all pages, send a change for each page.
|
|
112
|
+
- **A link goes to the wrong page**: a target like `next` follows the order. To fix the target to one page, give a page id.
|
|
113
|
+
- **New measurements do not come**: if the page you picked is not the page shown now, measurement waits until you go back to that page.
|
|
114
|
+
- **Full screen does not work inside AIC**: open the saved file in a browser and present in full screen there.
|
|
115
|
+
- **A view-only screen**: on a screen that is not an editing instance, editing and sending are turned off.
|
|
116
|
+
|
|
117
|
+
## Sample
|
|
118
|
+
|
|
119
|
+
- **First-week lecture for new hires** (`first-week-lecture`): you compare the two samples and start from the light lecture. The AI changes the cover text as you asked and adds and fills a schedule page. You drag over the space between the title and the subtitle on the cover and send "they look too close". The AI adds a margin above the subtitle with that selection as the cause. The AI changes the link on the closing page to go to the schedule page. You edit the closing title on the screen yourself and save the deck as an HTML file. The text in this sample is in Korean.
|
|
120
|
+
|
|
121
|
+
The sample shows, for each revision, your words, the place you picked, what the AI did and how the screen changed. Measurements such as the gap at picking time and after the change are not revisions, so they are not in the sample record.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "aic.html-slides",
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"dataVersion": 1,
|
|
5
|
+
"title": "HTML Slides",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"protocol": "0.1",
|
|
8
|
+
"logic": "dist/logic.js",
|
|
9
|
+
"ui": "ui/index.html",
|
|
10
|
+
"icon": "ui/icon.svg",
|
|
11
|
+
"about": "A screen where you and the AI edit a multi-page HTML presentation while pointing at the same screen. Compare two built-in presentation samples and start from one to get a cover, a list page, a picture page and a closing page. You can add, remove and move pages using the same layouts. Each page is fixed at 1920×1080 and shrinks to fit the window. Previous and next navigation is added to every page automatically, and links inside a page can be set to point to any page. The result is saved as a single HTML file. Open that file in a browser to present in full screen. A page whose source is 50,000 characters or fewer is marked as one that can be saved to AiAkiv.",
|
|
12
|
+
"requires": {
|
|
13
|
+
"os": "any",
|
|
14
|
+
"external": []
|
|
15
|
+
},
|
|
16
|
+
"examples": [
|
|
17
|
+
{
|
|
18
|
+
"ask": "I want to start my lecture material from the light sample and add one more list page",
|
|
19
|
+
"does": "The AI starts the light lecture sample with deck.start and adds a list layout at the position you want with slide.add. The page numbers and next links in the navigation bar follow the new order."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"ask": "The space between the title and the subtitle on the cover is too wide",
|
|
23
|
+
"does": "You drag over that space to point at it. The AI reads the two elements and the spacing at that time (on the 1920×1080 base), narrows it, and reads the newly measured value."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"ask": "I want the link on the closing page to go to the list page instead of the first page",
|
|
27
|
+
"does": "The AI changes the target of that link to the id of the list page with link.set. The link still goes to the same page after pages are moved."
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"manual": "docs/manual.md",
|
|
31
|
+
"samples": [
|
|
32
|
+
{
|
|
33
|
+
"id": "first-week-lecture",
|
|
34
|
+
"title": "First-week lecture for new hires",
|
|
35
|
+
"about": "Starts from the light lecture sample and fills in the cover text and a schedule page. The person points at the space between the title and the subtitle, and the AI widens it with that selection as the cause. The AI changes a link target, and the person saves the deck as an HTML file.",
|
|
36
|
+
"file": "samples/first-week-lecture.json"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|