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.
Files changed (97) hide show
  1. package/LICENSE +55 -0
  2. package/README.md +93 -2
  3. package/bin/aic.js +20427 -0
  4. package/host-ui/host.js +5151 -0
  5. package/host-ui/index.html +483 -0
  6. package/host-ui/lang-en.js +631 -0
  7. package/package.json +30 -4
  8. package/plugin-guide.md +997 -0
  9. package/plugins/plugin-animation/LICENSE +55 -0
  10. package/plugins/plugin-animation/dist/logic.js +2225 -0
  11. package/plugins/plugin-animation/docs/manual.md +217 -0
  12. package/plugins/plugin-animation/manifest.json +31 -0
  13. package/plugins/plugin-animation/ui/icon.svg +6 -0
  14. package/plugins/plugin-animation/ui/index.html +2266 -0
  15. package/plugins/plugin-html-design/LICENSE +55 -0
  16. package/plugins/plugin-html-design/dist/logic.js +972 -0
  17. package/plugins/plugin-html-design/docs/manual.md +100 -0
  18. package/plugins/plugin-html-design/manifest.json +39 -0
  19. package/plugins/plugin-html-design/samples/exhibition-page.json +570 -0
  20. package/plugins/plugin-html-design/ui/icon.svg +5 -0
  21. package/plugins/plugin-html-design/ui/index.html +1241 -0
  22. package/plugins/plugin-html-slides/LICENSE +55 -0
  23. package/plugins/plugin-html-slides/dist/logic.js +1323 -0
  24. package/plugins/plugin-html-slides/docs/manual.md +121 -0
  25. package/plugins/plugin-html-slides/manifest.json +39 -0
  26. package/plugins/plugin-html-slides/samples/first-week-lecture.json +1129 -0
  27. package/plugins/plugin-html-slides/ui/icon.svg +5 -0
  28. package/plugins/plugin-html-slides/ui/index.html +1349 -0
  29. package/plugins/plugin-mindmap/LICENSE +55 -0
  30. package/plugins/plugin-mindmap/dist/logic.js +966 -0
  31. package/plugins/plugin-mindmap/docs/manual.md +145 -0
  32. package/plugins/plugin-mindmap/manifest.json +39 -0
  33. package/plugins/plugin-mindmap/samples/book-club.json +480 -0
  34. package/plugins/plugin-mindmap/ui/icon.svg +5 -0
  35. package/plugins/plugin-mindmap/ui/index.html +1774 -0
  36. package/plugins/plugin-plan/LICENSE +55 -0
  37. package/plugins/plugin-plan/dist/logic.js +1029 -0
  38. package/plugins/plugin-plan/docs/manual.md +261 -0
  39. package/plugins/plugin-plan/manifest.json +51 -0
  40. package/plugins/plugin-plan/samples/kimchi-day.json +1514 -0
  41. package/plugins/plugin-plan/samples/meeting-outline.json +653 -0
  42. package/plugins/plugin-plan/samples/reading-class.json +1577 -0
  43. package/plugins/plugin-plan/ui/icon.svg +7 -0
  44. package/plugins/plugin-plan/ui/index.html +1523 -0
  45. package/plugins/plugin-png/LICENSE +55 -0
  46. package/plugins/plugin-png/dist/logic.js +1758 -0
  47. package/plugins/plugin-png/docs/manual.md +344 -0
  48. package/plugins/plugin-png/manifest.json +35 -0
  49. package/plugins/plugin-png/ui/icon.svg +5 -0
  50. package/plugins/plugin-png/ui/index.html +2885 -0
  51. package/plugins/plugin-process-log/LICENSE +55 -0
  52. package/plugins/plugin-process-log/dist/logic.js +406 -0
  53. package/plugins/plugin-process-log/docs/manual.md +131 -0
  54. package/plugins/plugin-process-log/manifest.json +43 -0
  55. package/plugins/plugin-process-log/samples/design-decisions.json +241 -0
  56. package/plugins/plugin-process-log/ui/icon.svg +7 -0
  57. package/plugins/plugin-process-log/ui/index.html +721 -0
  58. package/plugins/plugin-story/LICENSE +55 -0
  59. package/plugins/plugin-story/dist/logic.js +2201 -0
  60. package/plugins/plugin-story/docs/manual.md +428 -0
  61. package/plugins/plugin-story/manifest.json +49 -0
  62. package/plugins/plugin-story/samples/scene-body.json +758 -0
  63. package/plugins/plugin-story/samples/time-and-groups.json +989 -0
  64. package/plugins/plugin-story/ui/icon.svg +4 -0
  65. package/plugins/plugin-story/ui/index.html +2783 -0
  66. package/plugins/plugin-svg/LICENSE +55 -0
  67. package/plugins/plugin-svg/dist/logic.js +2150 -0
  68. package/plugins/plugin-svg/docs/manual.md +314 -0
  69. package/plugins/plugin-svg/manifest.json +45 -0
  70. package/plugins/plugin-svg/samples/rocket-icon.json +1305 -0
  71. package/plugins/plugin-svg/samples/yard-cat.json +7796 -0
  72. package/plugins/plugin-svg/ui/icon.svg +4 -0
  73. package/plugins/plugin-svg/ui/index.html +2017 -0
  74. package/plugins/plugin-tree/LICENSE +55 -0
  75. package/plugins/plugin-tree/dist/logic.js +505 -0
  76. package/plugins/plugin-tree/docs/manual.md +140 -0
  77. package/plugins/plugin-tree/manifest.json +45 -0
  78. package/plugins/plugin-tree/samples/book-club.json +473 -0
  79. package/plugins/plugin-tree/samples/sort-memos.json +604 -0
  80. package/plugins/plugin-tree/ui/icon.svg +7 -0
  81. package/plugins/plugin-tree/ui/index.html +1305 -0
  82. package/schema/aic_describe.input.json +11 -0
  83. package/schema/aic_describe.output.json +67 -0
  84. package/schema/aic_observe.input.json +14 -0
  85. package/schema/aic_observe.output.json +47 -0
  86. package/schema/aic_send.input.json +15 -0
  87. package/schema/aic_send.output.json +38 -0
  88. package/schema/aic_update.input.json +19 -0
  89. package/schema/aic_update.output.json +39 -0
  90. package/schema/common.json +127 -0
  91. package/template/plugin/LICENSE +55 -0
  92. package/template/plugin/README.md +27 -0
  93. package/template/plugin/docs/manual.md +31 -0
  94. package/template/plugin/logic.js +337 -0
  95. package/template/plugin/manifest.json +27 -0
  96. package/template/plugin/ui/icon.svg +4 -0
  97. package/template/plugin/ui/index.html +269 -0
@@ -0,0 +1,43 @@
1
+ {
2
+ "id": "aic.process-log",
3
+ "version": "0.1.5",
4
+ "dataVersion": 1,
5
+ "title": "Process Log",
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
+ "manual": "docs/manual.md",
12
+ "samples": [
13
+ {
14
+ "id": "design-decisions",
15
+ "title": "Write four design decisions as memos and make a write-up",
16
+ "about": "The AI writes three decisions the person stated as memos in one request. The person changes their order and text on the screen. Then, as the person asks, the AI adds one more memo with code and turns all four memos into one write-up. Nothing was sent to AiAkiv in this work.",
17
+ "file": "samples/design-decisions.json"
18
+ }
19
+ ],
20
+ "about": "A screen for writing down what you and the AI decided while working, and why, as process memos. Each memo holds one decision, with the reason for it and any code or commands worth keeping. When the AI turns the memos you chose to keep into a write-up, and an AiAkiv external connection is set up, the write-up is saved to AiAkiv after you confirm it. Without the connection you can still write memos and make the write-up. It suits long jobs where you want to look up later what was decided and why.",
21
+ "requires": {
22
+ "os": "any",
23
+ "external": [
24
+ {
25
+ "name": "AiAkiv",
26
+ "kind": "mcp",
27
+ "account": "free",
28
+ "install": false,
29
+ "note": "To send write-ups to AiAkiv, you need an AiAkiv external connection"
30
+ }
31
+ ]
32
+ },
33
+ "examples": [
34
+ {
35
+ "ask": "I want to keep what we decided while working, and the reasons, in AiAkiv",
36
+ "does": "The AI writes each decision as a memo, turns the memos to keep into a write-up, and sends it to AiAkiv once you confirm."
37
+ },
38
+ {
39
+ "ask": "I want to write things down so I do not forget later why it was built this way",
40
+ "does": "A decision, its reason, and any code or commands to keep go into one memo. You edit memos or change their order on the screen."
41
+ }
42
+ ]
43
+ }
@@ -0,0 +1,241 @@
1
+ {
2
+ "format": "aic-sample/1",
3
+ "title": "과정 기록 설계 결정",
4
+ "plugins": [
5
+ {
6
+ "package": "aic.process-log",
7
+ "version": "0.1.0",
8
+ "title": "작업 과정 기록"
9
+ }
10
+ ],
11
+ "instances": [
12
+ {
13
+ "id": "p1",
14
+ "package": "aic.process-log",
15
+ "title": "작업 과정 기록"
16
+ }
17
+ ],
18
+ "revisions": [
19
+ {
20
+ "revision": "h1",
21
+ "who": "AI",
22
+ "kind": "init",
23
+ "summary": "작업을 만들었다: 과정 기록 설계 결정",
24
+ "changes": [
25
+ {
26
+ "record": "p1",
27
+ "type": "instance",
28
+ "owner": null,
29
+ "before": null,
30
+ "after": {
31
+ "package": "aic.process-log",
32
+ "version": "0.1.0",
33
+ "digest": "ebe3a87e7d854dc5ed9523b8e8bdb937e74b5a9f3a4833f755b8e3f75f11ebac",
34
+ "dataVersion": 1,
35
+ "active": true
36
+ }
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "revision": "h2",
42
+ "who": "AI",
43
+ "kind": "op",
44
+ "cause": {
45
+ "humanWords": [
46
+ {
47
+ "text": "AiAkiv 에 과정 기록을 남기는 플러그인을 설계하면서 정한 것 세 가지를 메모로 적어 줘. 비용은 모름으로 하고, 저장 프로젝트는 사람만 고르고, 보내기와 갱신과 관찰을 모두 하기로 했어.",
48
+ "source": "relayed_by_ai"
49
+ }
50
+ ]
51
+ },
52
+ "summary": "메모 더함(lg1): 비용은 모름으로 밝힌다. 메모 더함(lg2): 저장 프로젝트는 사람만 고른다. 메모 더함(lg3): 보내기, 갱신, 관찰을 모두 지원한다.",
53
+ "operations": [
54
+ {
55
+ "op": "log.add",
56
+ "as": "$cost",
57
+ "input": {
58
+ "title": "비용은 모름으로 밝힌다",
59
+ "decided": "AiAkiv 외부 연결의 보내기와 갱신 비용을 모름(unknown)으로 밝힌다. 그래서 AIC 는 남길 때마다 사람에게 확인을 받는다.",
60
+ "why": "AiAkiv 의 요금제마다 하루 저장 한도와 과금이 달라, 한 번 남기는 일이 사람에게 얼마나 드는지 미리 알 수 없다."
61
+ }
62
+ },
63
+ {
64
+ "op": "log.add",
65
+ "as": "$project",
66
+ "input": {
67
+ "title": "저장 프로젝트는 사람만 고른다",
68
+ "decided": "기록이 저장될 AiAkiv 프로젝트는 외부 연결 화면에서 사람만 고른다. 고르지 않으면 Main 에 저장한다. AI 가 options 에 project 를 넣으면 코어가 거절한다.",
69
+ "why": "다른 글에 숨은 지시로 AI 가 저장 위치를 바꾸는 일을 막기 위해서다. AiAkiv 도 저장 위치는 사람만 바꾸게 한다."
70
+ }
71
+ },
72
+ {
73
+ "op": "log.add",
74
+ "as": "$ops",
75
+ "input": {
76
+ "title": "보내기, 갱신, 관찰을 모두 지원한다",
77
+ "decided": "aic_send, aic_update, aic_observe 를 모두 지원하고 지우기는 지원하지 않는다.",
78
+ "why": "과정 기록은 이어 쓰는 기록이라 갱신이 필요하고, AiAkiv 에서 사람이 숨긴 기록을 알아야 한다. 과정 기록은 지우지 않는다."
79
+ }
80
+ }
81
+ ],
82
+ "changes": [
83
+ {
84
+ "record": "lg1",
85
+ "type": "log",
86
+ "owner": "p1",
87
+ "before": null,
88
+ "after": {
89
+ "title": "비용은 모름으로 밝힌다",
90
+ "decided": "AiAkiv 외부 연결의 보내기와 갱신 비용을 모름(unknown)으로 밝힌다. 그래서 AIC 는 남길 때마다 사람에게 확인을 받는다.",
91
+ "why": "AiAkiv 의 요금제마다 하루 저장 한도와 과금이 달라, 한 번 남기는 일이 사람에게 얼마나 드는지 미리 알 수 없다.",
92
+ "order": 1024
93
+ }
94
+ },
95
+ {
96
+ "record": "lg2",
97
+ "type": "log",
98
+ "owner": "p1",
99
+ "before": null,
100
+ "after": {
101
+ "title": "저장 프로젝트는 사람만 고른다",
102
+ "decided": "기록이 저장될 AiAkiv 프로젝트는 외부 연결 화면에서 사람만 고른다. 고르지 않으면 Main 에 저장한다. AI 가 options 에 project 를 넣으면 코어가 거절한다.",
103
+ "why": "다른 글에 숨은 지시로 AI 가 저장 위치를 바꾸는 일을 막기 위해서다. AiAkiv 도 저장 위치는 사람만 바꾸게 한다.",
104
+ "order": 2048
105
+ }
106
+ },
107
+ {
108
+ "record": "lg3",
109
+ "type": "log",
110
+ "owner": "p1",
111
+ "before": null,
112
+ "after": {
113
+ "title": "보내기, 갱신, 관찰을 모두 지원한다",
114
+ "decided": "aic_send, aic_update, aic_observe 를 모두 지원하고 지우기는 지원하지 않는다.",
115
+ "why": "과정 기록은 이어 쓰는 기록이라 갱신이 필요하고, AiAkiv 에서 사람이 숨긴 기록을 알아야 한다. 과정 기록은 지우지 않는다.",
116
+ "order": 3072
117
+ }
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "revision": "h4",
123
+ "who": "사람",
124
+ "kind": "op",
125
+ "summary": "메모 옮김(lg2 저장 프로젝트는 사람만 고른다): 맨 앞으로. 메모 lg1 고침(정한 것): 비용은 모름으로 밝힌다.",
126
+ "operations": [
127
+ {
128
+ "op": "log.move",
129
+ "input": {
130
+ "log": "lg2",
131
+ "after": null
132
+ }
133
+ },
134
+ {
135
+ "op": "log.update",
136
+ "input": {
137
+ "log": "lg1",
138
+ "decided": "AiAkiv 외부 연결의 보내기와 갱신 비용을 모름(unknown)으로 밝힌다. 그래서 AIC 는 남길 때마다 사람에게 확인을 받고, 사람이 확인한 설명 번호가 있어야 보낸다."
139
+ }
140
+ }
141
+ ],
142
+ "changes": [
143
+ {
144
+ "record": "lg2",
145
+ "type": "log",
146
+ "owner": "p1",
147
+ "before": {
148
+ "title": "저장 프로젝트는 사람만 고른다",
149
+ "decided": "기록이 저장될 AiAkiv 프로젝트는 외부 연결 화면에서 사람만 고른다. 고르지 않으면 Main 에 저장한다. AI 가 options 에 project 를 넣으면 코어가 거절한다.",
150
+ "why": "다른 글에 숨은 지시로 AI 가 저장 위치를 바꾸는 일을 막기 위해서다. AiAkiv 도 저장 위치는 사람만 바꾸게 한다.",
151
+ "order": 2048
152
+ },
153
+ "after": {
154
+ "title": "저장 프로젝트는 사람만 고른다",
155
+ "decided": "기록이 저장될 AiAkiv 프로젝트는 외부 연결 화면에서 사람만 고른다. 고르지 않으면 Main 에 저장한다. AI 가 options 에 project 를 넣으면 코어가 거절한다.",
156
+ "why": "다른 글에 숨은 지시로 AI 가 저장 위치를 바꾸는 일을 막기 위해서다. AiAkiv 도 저장 위치는 사람만 바꾸게 한다.",
157
+ "order": 0
158
+ }
159
+ },
160
+ {
161
+ "record": "lg1",
162
+ "type": "log",
163
+ "owner": "p1",
164
+ "before": {
165
+ "title": "비용은 모름으로 밝힌다",
166
+ "decided": "AiAkiv 외부 연결의 보내기와 갱신 비용을 모름(unknown)으로 밝힌다. 그래서 AIC 는 남길 때마다 사람에게 확인을 받는다.",
167
+ "why": "AiAkiv 의 요금제마다 하루 저장 한도와 과금이 달라, 한 번 남기는 일이 사람에게 얼마나 드는지 미리 알 수 없다.",
168
+ "order": 1024
169
+ },
170
+ "after": {
171
+ "title": "비용은 모름으로 밝힌다",
172
+ "decided": "AiAkiv 외부 연결의 보내기와 갱신 비용을 모름(unknown)으로 밝힌다. 그래서 AIC 는 남길 때마다 사람에게 확인을 받고, 사람이 확인한 설명 번호가 있어야 보낸다.",
173
+ "why": "AiAkiv 의 요금제마다 하루 저장 한도와 과금이 달라, 한 번 남기는 일이 사람에게 얼마나 드는지 미리 알 수 없다.",
174
+ "order": 1024
175
+ }
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "revision": "h6",
181
+ "who": "AI",
182
+ "kind": "op",
183
+ "cause": {
184
+ "humanWords": [
185
+ {
186
+ "text": "AiAkiv 는 저장한 기록을 고치지 않으니까, 메모를 고쳐서 다시 남기면 새 기록이 된다는 것도 적어 줘. 갱신할 때 부르는 예도 같이.",
187
+ "source": "relayed_by_ai"
188
+ }
189
+ ]
190
+ },
191
+ "summary": "메모 더함(lg4): 고쳐서 다시 남기면 새 기록이 된다.",
192
+ "operations": [
193
+ {
194
+ "op": "log.add",
195
+ "input": {
196
+ "title": "고쳐서 다시 남기면 새 기록이 된다",
197
+ "decided": "이미 남긴 기록 글을 갱신하면 AiAkiv 에 새 기록 하나가 앞 기록 뒤에 이어 붙고 하루 저장 한도를 한 번 사용한다. 앞 기록은 이력으로 남는다. 갱신 전에 dry_run 으로 메모마다 바뀐 것을 보고 사람에게 확인한다.",
198
+ "why": "AiAkiv 는 저장한 기록의 본문을 고치지 않는다. 그래서 고친 메모도 새 기록으로 남는다.",
199
+ "code": "update_representation({ document, representation, artifact, dry_run: true })\n// 바뀜, 새것으로 나온 메모 id 를 apply 에 넣고 expectedVersion 을 그대로 준다\nupdate_representation({ document, representation, artifact, apply: [\"lg1\", \"lg4\"], expected_version, description_id })"
200
+ }
201
+ }
202
+ ],
203
+ "changes": [
204
+ {
205
+ "record": "lg4",
206
+ "type": "log",
207
+ "owner": "p1",
208
+ "before": null,
209
+ "after": {
210
+ "title": "고쳐서 다시 남기면 새 기록이 된다",
211
+ "decided": "이미 남긴 기록 글을 갱신하면 AiAkiv 에 새 기록 하나가 앞 기록 뒤에 이어 붙고 하루 저장 한도를 한 번 사용한다. 앞 기록은 이력으로 남는다. 갱신 전에 dry_run 으로 메모마다 바뀐 것을 보고 사람에게 확인한다.",
212
+ "why": "AiAkiv 는 저장한 기록의 본문을 고치지 않는다. 그래서 고친 메모도 새 기록으로 남는다.",
213
+ "code": "update_representation({ document, representation, artifact, dry_run: true })\n// 바뀜, 새것으로 나온 메모 id 를 apply 에 넣고 expectedVersion 을 그대로 준다\nupdate_representation({ document, representation, artifact, apply: [\"lg1\", \"lg4\"], expected_version, description_id })",
214
+ "order": 4096
215
+ }
216
+ }
217
+ ]
218
+ }
219
+ ],
220
+ "generations": [
221
+ {
222
+ "artifact": "art1",
223
+ "who": "AI",
224
+ "medium": "text",
225
+ "instance": "p1",
226
+ "scope": [
227
+ "lg2",
228
+ "lg1",
229
+ "lg3",
230
+ "lg4"
231
+ ],
232
+ "sections": [
233
+ "저장 프로젝트는 사람만 고른다",
234
+ "비용은 모름으로 밝힌다",
235
+ "보내기, 갱신, 관찰을 모두 지원한다",
236
+ "고쳐서 다시 남기면 새 기록이 된다"
237
+ ],
238
+ "after": "h6"
239
+ }
240
+ ]
241
+ }
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
2
+ <rect x="2" y="2" width="20" height="20" rx="5" fill="#5f6b7a"/>
3
+ <path d="M8 8.5v2M8 13.5v2M12 7h5M12 12h5M12 17h3.5" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round"/>
4
+ <circle cx="8" cy="7" r="1.75" fill="#ffffff"/>
5
+ <circle cx="8" cy="12" r="1.75" fill="#ffffff"/>
6
+ <circle cx="8" cy="17" r="1.75" fill="#ffffff"/>
7
+ </svg>