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,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_describe.input",
|
|
4
|
+
"title": "aic_describe 입력",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"protocols": { "type": "array", "items": { "type": "string" }, "minItems": 1, "description": "AIC 가 아는 프로토콜 버전들" }
|
|
8
|
+
},
|
|
9
|
+
"required": ["protocols"],
|
|
10
|
+
"additionalProperties": false
|
|
11
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_describe.output",
|
|
4
|
+
"title": "aic_describe 출력. 성공 모양과 오류 모양 가운데 정확히 하나",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"oneOf": [{ "$ref": "#/$defs/success" }, { "$ref": "common#/$defs/error" }],
|
|
7
|
+
"$defs": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"not": { "required": ["error"] },
|
|
11
|
+
"properties": {
|
|
12
|
+
"protocol": { "$ref": "common#/$defs/identifier", "description": "서버가 고른 버전. protocols 가운데 하나" },
|
|
13
|
+
"tool": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": { "name": { "type": "string" }, "version": { "type": "string" } },
|
|
16
|
+
"required": ["name", "version"]
|
|
17
|
+
},
|
|
18
|
+
"formats": { "type": "array", "items": { "$ref": "common#/$defs/identifier" }, "minItems": 1 },
|
|
19
|
+
"support": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"update": { "type": "boolean" },
|
|
23
|
+
"observe": { "type": "boolean" },
|
|
24
|
+
"conditionalUpdate": { "type": "boolean", "description": "expectedVersion 이 다르면 conflict 로 거절하는가" },
|
|
25
|
+
"remove": { "type": "boolean", "description": "aic_update 의 remove 를 지원하는가. 빼면 false" },
|
|
26
|
+
"jobs": { "type": "boolean", "description": "accepted, running 을 돌려줄 수 있는가. 빼면 false" },
|
|
27
|
+
"idempotentRequests": { "type": "boolean", "description": "2절 6번을 지키는가. 빼면 false" },
|
|
28
|
+
"reportKinds": { "type": "array", "items": { "$ref": "common#/$defs/reportKind" }, "description": "빼면 빈 목록" },
|
|
29
|
+
"reportSources": { "type": "array", "items": { "$ref": "common#/$defs/source" }, "description": "빼면 빈 목록" }
|
|
30
|
+
},
|
|
31
|
+
"required": ["update", "observe", "conditionalUpdate"]
|
|
32
|
+
},
|
|
33
|
+
"meaning": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"pieces": { "type": "string" },
|
|
37
|
+
"mapping": { "type": "string" },
|
|
38
|
+
"version": { "type": "string" },
|
|
39
|
+
"done": { "type": "string" }
|
|
40
|
+
},
|
|
41
|
+
"required": ["done"]
|
|
42
|
+
},
|
|
43
|
+
"objects": { "type": "array", "items": { "$ref": "#/$defs/named" } },
|
|
44
|
+
"relations": { "type": "array", "items": { "$ref": "#/$defs/named" } },
|
|
45
|
+
"options": { "type": "object", "description": "send 와 update 의 options 를 정하는 JSON Schema" },
|
|
46
|
+
"guide": { "type": "string", "description": "AI 에게 주는 지침" },
|
|
47
|
+
"unsupported": { "type": "array", "items": { "type": "string" }, "description": "빼면 빈 목록" },
|
|
48
|
+
"limits": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": { "maxBundleBytes": { "type": "integer", "minimum": 1 }, "maxSections": { "type": "integer", "minimum": 1 } }
|
|
51
|
+
},
|
|
52
|
+
"costs": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"description": "보내기와 갱신이 사용자에게 돈이나 크레딧을 쓰게 하는가. 빼면 AIC 는 unknown 으로 다룬다",
|
|
55
|
+
"properties": { "send": { "$ref": "common#/$defs/cost" }, "update": { "$ref": "common#/$defs/cost" } },
|
|
56
|
+
"required": ["send"]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": ["protocol", "tool", "formats", "support", "meaning", "guide"]
|
|
60
|
+
},
|
|
61
|
+
"named": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": { "name": { "type": "string" }, "meaning": { "type": "string" } },
|
|
64
|
+
"required": ["name", "meaning"]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_observe.input",
|
|
4
|
+
"title": "aic_observe 입력",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"protocol": { "const": "aic-link/0.1" },
|
|
8
|
+
"externalId": { "$ref": "common#/$defs/identifier" },
|
|
9
|
+
"since": { "anyOf": [{ "$ref": "common#/$defs/identifier" }, { "type": "null" }], "description": "이 version 뒤의 변화만 보고한다. null 이면 서버가 아는 모든 변화" },
|
|
10
|
+
"job": { "$ref": "common#/$defs/identifier" }
|
|
11
|
+
},
|
|
12
|
+
"required": ["protocol", "externalId"],
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_observe.output",
|
|
4
|
+
"title": "aic_observe 출력. 성공 모양과 오류 모양 가운데 정확히 하나",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"oneOf": [{ "$ref": "#/$defs/success" }, { "$ref": "common#/$defs/error" }],
|
|
7
|
+
"$defs": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"not": { "required": ["error"] },
|
|
11
|
+
"properties": {
|
|
12
|
+
"created": { "type": "boolean", "description": "표현이 실제로 만들어졌는가. 빼면 true. false 면 version, pieces, mapping 이 없어도 된다" },
|
|
13
|
+
"job": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": { "$ref": "common#/$defs/identifier" },
|
|
17
|
+
"status": { "enum": ["accepted", "running", "done", "partial", "failed", "conflict"] },
|
|
18
|
+
"results": { "type": "array", "items": { "$ref": "common#/$defs/result" } },
|
|
19
|
+
"message": { "type": "string", "description": "사람이 읽는 글. AIC 는 기록과 사람의 화면에만 두고 AI 에게 주지 않는다" },
|
|
20
|
+
"messageId": { "$ref": "common#/$defs/messageId" },
|
|
21
|
+
"messageValues": { "$ref": "common#/$defs/messageValues" }
|
|
22
|
+
},
|
|
23
|
+
"required": ["id", "status"]
|
|
24
|
+
},
|
|
25
|
+
"version": { "$ref": "common#/$defs/identifier" },
|
|
26
|
+
"checkedAt": { "type": "string", "format": "date-time" },
|
|
27
|
+
"coverage": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"complete": { "type": "boolean", "description": "표현 전체를 확인했는가" },
|
|
31
|
+
"unchecked": { "type": "array", "items": { "type": "string" }, "description": "확인하지 못한 범위를 글로" }
|
|
32
|
+
},
|
|
33
|
+
"required": ["complete"]
|
|
34
|
+
},
|
|
35
|
+
"pieces": { "type": "array", "items": { "$ref": "common#/$defs/piece" } },
|
|
36
|
+
"mapping": { "type": "array", "items": { "$ref": "common#/$defs/mapping" } },
|
|
37
|
+
"unmappedPieces": { "type": "array", "items": { "$ref": "common#/$defs/identifier" } },
|
|
38
|
+
"missingKeys": { "type": "array", "items": { "type": "string" } },
|
|
39
|
+
"reports": { "type": "array", "items": { "$ref": "common#/$defs/report" } }
|
|
40
|
+
},
|
|
41
|
+
"required": ["checkedAt", "coverage", "reports"],
|
|
42
|
+
"if": { "properties": { "created": { "const": false } }, "required": ["created"] },
|
|
43
|
+
"then": { "required": ["job"] },
|
|
44
|
+
"else": { "required": ["version", "pieces", "mapping"] }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_send.input",
|
|
4
|
+
"title": "aic_send 입력",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"protocol": { "const": "aic-link/0.1" },
|
|
8
|
+
"requestId": { "type": "string", "minLength": 1 },
|
|
9
|
+
"bundle": { "$ref": "common#/$defs/bundle" },
|
|
10
|
+
"instructions": { "type": "string", "description": "AI 가 이 도구에 바라는 것(스타일, 크기 같은 것). 없을 수 있다" },
|
|
11
|
+
"options": { "type": "object", "description": "aic_describe 의 options 스키마를 따른다" }
|
|
12
|
+
},
|
|
13
|
+
"required": ["protocol", "requestId", "bundle"],
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_send.output",
|
|
4
|
+
"title": "aic_send 출력. 성공 모양과 오류 모양 가운데 정확히 하나",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"oneOf": [{ "$ref": "#/$defs/success" }, { "$ref": "common#/$defs/error" }],
|
|
7
|
+
"$defs": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"not": { "required": ["error"] },
|
|
11
|
+
"properties": {
|
|
12
|
+
"status": { "enum": ["accepted", "running", "done", "partial", "failed"] },
|
|
13
|
+
"job": { "$ref": "common#/$defs/identifier", "description": "accepted, running 일 때 aic_observe 로 확인할 작업 id" },
|
|
14
|
+
"representation": { "$ref": "common#/$defs/representation" },
|
|
15
|
+
"version": { "$ref": "common#/$defs/identifier" },
|
|
16
|
+
"pieces": { "type": "array", "items": { "$ref": "common#/$defs/piece" } },
|
|
17
|
+
"mapping": { "type": "array", "items": { "$ref": "common#/$defs/mapping" } },
|
|
18
|
+
"unmappedPieces": { "type": "array", "items": { "$ref": "common#/$defs/identifier" } },
|
|
19
|
+
"missingKeys": { "type": "array", "items": { "type": "string" } },
|
|
20
|
+
"results": { "type": "array", "items": { "$ref": "common#/$defs/result" } },
|
|
21
|
+
"message": { "type": "string", "description": "사람이 읽는 글. AIC 는 기록과 사람의 화면에만 두고 AI 에게 주지 않는다" },
|
|
22
|
+
"messageId": { "$ref": "common#/$defs/messageId" },
|
|
23
|
+
"messageValues": { "$ref": "common#/$defs/messageValues" }
|
|
24
|
+
},
|
|
25
|
+
"required": ["status"],
|
|
26
|
+
"allOf": [
|
|
27
|
+
{ "if": { "properties": { "status": { "enum": ["done", "partial"] } } },
|
|
28
|
+
"then": { "required": ["representation", "version", "pieces", "mapping"] } },
|
|
29
|
+
{ "if": { "properties": { "status": { "const": "partial" } } },
|
|
30
|
+
"then": { "required": ["results"] } },
|
|
31
|
+
{ "if": { "properties": { "status": { "enum": ["accepted", "running"] } } },
|
|
32
|
+
"then": { "required": ["representation", "job"] } },
|
|
33
|
+
{ "if": { "properties": { "status": { "const": "failed" } } },
|
|
34
|
+
"then": { "not": { "required": ["representation"] } } }
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_update.input",
|
|
4
|
+
"title": "aic_update 입력",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"protocol": { "const": "aic-link/0.1" },
|
|
8
|
+
"requestId": { "type": "string", "minLength": 1 },
|
|
9
|
+
"externalId": { "$ref": "common#/$defs/identifier" },
|
|
10
|
+
"expectedVersion": { "anyOf": [{ "$ref": "common#/$defs/identifier" }, { "type": "null" }], "description": "AIC 가 마지막으로 확인한 version. null 은 확인 없이 적용하라는 뜻이다" },
|
|
11
|
+
"bundle": { "$ref": "common#/$defs/bundle" },
|
|
12
|
+
"apply": { "type": "array", "items": { "type": "string" }, "description": "바꾸거나 새로 넣을 키" },
|
|
13
|
+
"remove": { "type": "array", "items": { "type": "string" }, "description": "표현에서 뺄 키" },
|
|
14
|
+
"instructions": { "type": "string" },
|
|
15
|
+
"options": { "type": "object" }
|
|
16
|
+
},
|
|
17
|
+
"required": ["protocol", "requestId", "externalId", "expectedVersion", "bundle", "apply", "remove"],
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/aic_update.output",
|
|
4
|
+
"title": "aic_update 출력. 성공 모양과 오류 모양 가운데 정확히 하나",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"oneOf": [{ "$ref": "#/$defs/success" }, { "$ref": "common#/$defs/error" }],
|
|
7
|
+
"$defs": {
|
|
8
|
+
"success": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"not": { "required": ["error"] },
|
|
11
|
+
"properties": {
|
|
12
|
+
"status": { "enum": ["accepted", "running", "done", "partial", "failed", "conflict"] },
|
|
13
|
+
"job": { "$ref": "common#/$defs/identifier" },
|
|
14
|
+
"representation": { "$ref": "common#/$defs/representation" },
|
|
15
|
+
"version": { "$ref": "common#/$defs/identifier" },
|
|
16
|
+
"pieces": { "type": "array", "items": { "$ref": "common#/$defs/piece" } },
|
|
17
|
+
"mapping": { "type": "array", "items": { "$ref": "common#/$defs/mapping" } },
|
|
18
|
+
"unmappedPieces": { "type": "array", "items": { "$ref": "common#/$defs/identifier" } },
|
|
19
|
+
"missingKeys": { "type": "array", "items": { "type": "string" } },
|
|
20
|
+
"results": { "type": "array", "items": { "$ref": "common#/$defs/result" } },
|
|
21
|
+
"reports": { "type": "array", "items": { "$ref": "common#/$defs/report" } },
|
|
22
|
+
"message": { "type": "string", "description": "사람이 읽는 글. AIC 는 기록과 사람의 화면에만 두고 AI 에게 주지 않는다" },
|
|
23
|
+
"messageId": { "$ref": "common#/$defs/messageId" },
|
|
24
|
+
"messageValues": { "$ref": "common#/$defs/messageValues" }
|
|
25
|
+
},
|
|
26
|
+
"required": ["status"],
|
|
27
|
+
"allOf": [
|
|
28
|
+
{ "if": { "properties": { "status": { "enum": ["done", "partial"] } } },
|
|
29
|
+
"then": { "required": ["version", "pieces", "mapping"] } },
|
|
30
|
+
{ "if": { "properties": { "status": { "const": "partial" } } },
|
|
31
|
+
"then": { "required": ["results"] } },
|
|
32
|
+
{ "if": { "properties": { "status": { "enum": ["accepted", "running"] } } },
|
|
33
|
+
"then": { "required": ["job"] } },
|
|
34
|
+
{ "if": { "properties": { "status": { "const": "conflict" } } },
|
|
35
|
+
"then": { "required": ["version", "reports"] } }
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://aic.invalid/aic-link/0.1/common",
|
|
4
|
+
"title": "aic-link/0.1 공통 정의",
|
|
5
|
+
"description": "도구 넷이 함께 쓰는 정의. 도구 스키마가 common#/$defs/... 로 가리킨다. $id 의 주소는 이름일 뿐이고 내려받는 곳이 아니다.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"bundle": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"format": { "const": "aic-text/1" },
|
|
11
|
+
"bundleId": { "type": "string", "minLength": 1 },
|
|
12
|
+
"title": { "type": "string" },
|
|
13
|
+
"lang": { "type": "string" },
|
|
14
|
+
"basis": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": { "id": { "type": "string", "minLength": 1 }, "unconfirmed": { "type": "boolean" } },
|
|
17
|
+
"required": ["id", "unconfirmed"],
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"sections": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"minItems": 1,
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"key": { "type": "string", "minLength": 1 },
|
|
27
|
+
"label": { "type": "string" },
|
|
28
|
+
"text": { "type": "string" }
|
|
29
|
+
},
|
|
30
|
+
"required": ["key", "label", "text"],
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"material": { "type": "string" }
|
|
35
|
+
},
|
|
36
|
+
"required": ["format", "bundleId", "title", "lang", "basis", "sections"],
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
},
|
|
39
|
+
"identifier": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^[\\x21-\\x7e]{1,128}$",
|
|
42
|
+
"description": "제조사가 정하는 식별자(외부 id, version, job, 조각 id, 보고 id, 형식 이름, 프로토콜 버전). 눈에 보이는 ASCII(0x21 에서 0x7E) 1자에서 128자이고 빈칸이 없다. AIC 는 이 값을 AI 에게 감싸지 않고 그대로 준다"
|
|
43
|
+
},
|
|
44
|
+
"piece": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": { "id": { "$ref": "#/$defs/identifier" }, "label": { "type": "string" }, "link": { "type": "string", "format": "uri" } },
|
|
47
|
+
"required": ["id"]
|
|
48
|
+
},
|
|
49
|
+
"mapping": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"keys": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
53
|
+
"pieces": { "type": "array", "items": { "$ref": "#/$defs/identifier" }, "minItems": 1 },
|
|
54
|
+
"kind": { "enum": ["whole", "split", "combined", "candidate"] }
|
|
55
|
+
},
|
|
56
|
+
"required": ["keys", "pieces", "kind"]
|
|
57
|
+
},
|
|
58
|
+
"result": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"key": { "type": "string" },
|
|
62
|
+
"result": { "enum": ["applied", "failed", "unknown", "skipped"] },
|
|
63
|
+
"message": { "type": "string", "description": "사람이 읽는 글. AIC 는 기록과 사람의 화면에만 두고 AI 에게 주지 않는다" },
|
|
64
|
+
"messageId": { "$ref": "#/$defs/messageId" },
|
|
65
|
+
"messageValues": { "$ref": "#/$defs/messageValues" }
|
|
66
|
+
},
|
|
67
|
+
"required": ["key", "result"]
|
|
68
|
+
},
|
|
69
|
+
"messageId": { "type": "string", "description": "연결의 메시지 표에 미리 등록한 메시지 id. AIC 는 표에서 찾아 검사한 글만 AI 에게 준다" },
|
|
70
|
+
"messageValues": { "type": "object", "description": "메시지 글의 {이름} 에 넣을 값. 종류는 메시지 표가 정한다" },
|
|
71
|
+
"cost": { "enum": ["free", "paid", "unknown"] },
|
|
72
|
+
"representation": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"externalId": { "$ref": "#/$defs/identifier", "description": "이 표현을 계속 가리키는 id" },
|
|
76
|
+
"link": { "type": "string", "format": "uri", "description": "사람이 여는 주소" },
|
|
77
|
+
"label": { "type": "string" }
|
|
78
|
+
},
|
|
79
|
+
"required": ["externalId"]
|
|
80
|
+
},
|
|
81
|
+
"report": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"id": { "$ref": "#/$defs/identifier" },
|
|
85
|
+
"kind": { "$ref": "#/$defs/reportKind" },
|
|
86
|
+
"pieces": { "type": "array", "items": { "$ref": "#/$defs/identifier" } },
|
|
87
|
+
"keys": { "type": "array", "items": { "type": "string" }, "description": "서버가 보기에 닿은 키. 그 표현에 보낸 적이 있는 키만 적고, 모르면 비운다" },
|
|
88
|
+
"basedOn": { "anyOf": [{ "$ref": "#/$defs/identifier" }, { "type": "null" }], "description": "이 변화 앞의 version. 모르면 빼거나 null" },
|
|
89
|
+
"after": { "anyOf": [{ "$ref": "#/$defs/identifier" }, { "type": "null" }], "description": "이 변화 바로 뒤의 version. 모르면 빼거나 null" },
|
|
90
|
+
"source": { "$ref": "#/$defs/source" },
|
|
91
|
+
"by": { "type": "string", "description": "사람이 읽는 이름" },
|
|
92
|
+
"at": { "type": "string", "format": "date-time" },
|
|
93
|
+
"summary": { "type": "string" },
|
|
94
|
+
"content": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": { "text": { "type": "string" }, "link": { "type": "string", "format": "uri" } }
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": ["id", "kind", "pieces", "keys", "source", "summary"]
|
|
100
|
+
},
|
|
101
|
+
"reportKind": { "enum": ["edited", "removed", "created", "split", "combined", "moved", "comment"] },
|
|
102
|
+
"source": { "enum": ["human", "tool", "generator", "unknown"] },
|
|
103
|
+
"error": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"error": { "enum": ["UNSUPPORTED_PROTOCOL", "UNSUPPORTED_FORMAT", "INVALID_REQUEST", "NOT_FOUND", "UNSUPPORTED", "TOO_LARGE", "AUTH_REQUIRED", "PAYMENT_REQUIRED", "RATE_LIMITED", "TOOL_FAILURE"] },
|
|
107
|
+
"message": { "type": "string", "description": "사람이 읽는 글. AIC 는 기록과 사람의 화면에만 두고 AI 에게 주지 않는다" },
|
|
108
|
+
"messageId": { "$ref": "#/$defs/messageId" },
|
|
109
|
+
"messageValues": { "$ref": "#/$defs/messageValues" },
|
|
110
|
+
"retryAfter": { "type": "integer", "minimum": 0, "description": "RATE_LIMITED 일 때 다시 해 볼 수 있기까지의 초" },
|
|
111
|
+
"payment": { "$ref": "#/$defs/payment" }
|
|
112
|
+
},
|
|
113
|
+
"required": ["error", "message"],
|
|
114
|
+
"additionalProperties": false
|
|
115
|
+
},
|
|
116
|
+
"payment": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"description": "PAYMENT_REQUIRED 의 까닭과 결제 화면. AIC 는 주소를 AI 에게 주지 않고 사람의 화면에만 보인다",
|
|
119
|
+
"properties": {
|
|
120
|
+
"reason": { "enum": ["payment_method_required", "credits_exhausted", "plan_unsupported"] },
|
|
121
|
+
"url": { "type": "string", "format": "uri", "pattern": "^https://", "description": "결제 화면 주소. https 만" }
|
|
122
|
+
},
|
|
123
|
+
"required": ["reason"],
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
16
|
+
|
|
17
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
18
|
+
|
|
19
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
20
|
+
|
|
21
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
22
|
+
|
|
23
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
24
|
+
|
|
25
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
26
|
+
|
|
27
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
28
|
+
|
|
29
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
30
|
+
|
|
31
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
32
|
+
|
|
33
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
34
|
+
|
|
35
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
36
|
+
|
|
37
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
38
|
+
|
|
39
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
40
|
+
|
|
41
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
42
|
+
|
|
43
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
44
|
+
|
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
46
|
+
|
|
47
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
48
|
+
|
|
49
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
50
|
+
|
|
51
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
52
|
+
|
|
53
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
54
|
+
|
|
55
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# List
|
|
2
|
+
|
|
3
|
+
This plugin was made from the AIC plugin starter template. It has a list screen where you add, rename, delete and reorder named lines. There is no build step. Edit the files and install them right away.
|
|
4
|
+
|
|
5
|
+
## Files
|
|
6
|
+
|
|
7
|
+
- `manifest.json`: the id, version, title, introduction (about), examples, and where it runs (requires).
|
|
8
|
+
- `logic.js`: the shape of the records and the operations. The core calls it in the isolated runner.
|
|
9
|
+
- `ui/index.html`: the screen the person sees. It talks to the host screen only through postMessage.
|
|
10
|
+
- `docs/manual.md`: the detailed manual. The person opens it with [설명서] (Manual) in the plugin window of the AIC screen, and the AI reads it with `read_plugin_manual`. The `manual` field of the manifest points to this file.
|
|
11
|
+
- `LICENSE`: the full text of Apache-2.0. To use another license, change this file and the license field of the manifest together.
|
|
12
|
+
|
|
13
|
+
## Order of work
|
|
14
|
+
|
|
15
|
+
1. Write the title, about and examples in `manifest.json` to fit what this plugin does.
|
|
16
|
+
2. In `logic.js`, change the shape of the records, the operations (OPERATIONS), and the aiGuide and operations of describe.
|
|
17
|
+
3. In `ui/index.html`, draw those records and make the buttons the person presses send operations.
|
|
18
|
+
4. In `docs/manual.md`, write what the screen can do, the operations the person and the AI use, and where people often get stuck. Export a work you really used with `aic export-sample <work id> --out samples/<name>.json` and list it as a sample in the `samples` field of the manifest.
|
|
19
|
+
5. Check with `aic plugin pack <this folder>`. It also loads the logic and checks that describe answers.
|
|
20
|
+
6. Install on this computer with `aic plugin install <this folder>` and restart the core. Repeat steps 5 and 6 after every change.
|
|
21
|
+
7. To publish to the site, raise the version in the manifest and VERSION in `logic.js` together, then run `aic plugin publish <this folder>`.
|
|
22
|
+
|
|
23
|
+
If you change the shape of the records, raise dataVersion in the manifest. After that, works made before the change no longer open with this plugin.
|
|
24
|
+
|
|
25
|
+
Write every text in this plugin in English: the introduction, the manual, the sample titles, the AI guide and the text on the screen.
|
|
26
|
+
|
|
27
|
+
Read how to make a plugin and the rules to keep with `aic plugin guide`.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# List manual
|
|
2
|
+
|
|
3
|
+
This is the detailed manual that the person and the AI both read. The person opens it with [설명서] (Manual) in the plugin window of the AIC screen, and the AI reads it with `read_plugin_manual`. It came from the starter template, so the plugin maker rewrites it to fit this plugin. It can be up to 50,000 characters.
|
|
4
|
+
|
|
5
|
+
## What this screen is for
|
|
6
|
+
|
|
7
|
+
A list that puts named lines in order. Use it to write down short items that have an order, such as tasks or a shopping list.
|
|
8
|
+
|
|
9
|
+
## What the screen can do
|
|
10
|
+
|
|
11
|
+
| Feature | What the person does | What the AI does |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Add a line | Type a name in the box at the bottom and press [Add] | Adds it with `item.add`. Several lines go in one request |
|
|
14
|
+
| Rename a line | Press [Edit], change the name and press [Save] | Renames it with `item.update` |
|
|
15
|
+
| Change the order | Press [↑] or [↓] | Moves it with `item.move` |
|
|
16
|
+
| Delete a line | Press [Delete] | Asks the person first, then deletes it with `item.remove` |
|
|
17
|
+
|
|
18
|
+
## How to work together
|
|
19
|
+
|
|
20
|
+
1. The person says what they want to do, and the AI writes it down as lines.
|
|
21
|
+
2. The person fixes names and the order directly on the screen. The AI sees what the person changed the next time it reads.
|
|
22
|
+
3. The person deletes finished lines, or asks the AI to delete them.
|
|
23
|
+
|
|
24
|
+
## Where people get stuck
|
|
25
|
+
|
|
26
|
+
- A line id (such as `item1`) never changes. Renaming a line keeps it the same line.
|
|
27
|
+
- To point at a line made in the same request, use the `$name` you gave with `as`.
|
|
28
|
+
|
|
29
|
+
## Samples
|
|
30
|
+
|
|
31
|
+
The samples listed in the `samples` field of the manifest are records of works where this screen was really used. How to make a sample is in the manual and samples section of `aic plugin guide`.
|