@eliceio/cdk-cli 0.1.0-alpha.2 → 0.1.0-alpha.4

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 (103) hide show
  1. package/README.md +263 -191
  2. package/es/cli.js +93 -33
  3. package/es/commands/build/index.d.ts +1 -1
  4. package/es/commands/build/index.js +21 -12
  5. package/es/commands/check/index.d.ts +11 -2
  6. package/es/commands/check/index.js +51 -5
  7. package/es/commands/create/index.d.ts +6 -0
  8. package/es/commands/create/index.js +56 -8
  9. package/es/commands/create/install.d.ts +17 -0
  10. package/es/commands/create/install.js +53 -0
  11. package/es/commands/create/scaffold.d.ts +6 -1
  12. package/es/commands/create/scaffold.js +27 -17
  13. package/es/commands/dev/index.d.ts +1 -1
  14. package/es/commands/dev/index.js +6 -2
  15. package/es/commands/doctor/index.d.ts +21 -0
  16. package/es/commands/doctor/index.js +255 -38
  17. package/es/commands/mcp/index.d.ts +134 -0
  18. package/es/commands/mcp/index.js +399 -0
  19. package/es/commands/setup/index.d.ts +40 -0
  20. package/es/commands/setup/index.js +157 -0
  21. package/es/commands/skill/index.d.ts +2 -5
  22. package/es/commands/skill/index.js +1 -29
  23. package/es/core/collect.d.ts +5 -2
  24. package/es/core/config.d.ts +141 -31
  25. package/es/core/config.js +341 -59
  26. package/es/core/manifest.d.ts +2 -1
  27. package/es/core/manifest.js +2 -1
  28. package/es/core/minify.js +2 -2
  29. package/es/core/prepare.d.ts +18 -2
  30. package/es/core/prepare.js +47 -18
  31. package/es/core/project-check.d.ts +26 -0
  32. package/es/core/project-check.js +53 -0
  33. package/es/core/sandbox.js +2 -2
  34. package/es/core/sdk.d.ts +39 -0
  35. package/es/core/sdk.js +95 -0
  36. package/es/core/templates.d.ts +25 -0
  37. package/es/core/templates.js +41 -0
  38. package/es/dev/grading.d.ts +14 -7
  39. package/es/dev/grading.js +27 -13
  40. package/es/dev/host-page.d.ts +1 -1
  41. package/es/dev/host-page.js +34 -34
  42. package/es/dev/mock-api.d.ts +19 -4
  43. package/es/dev/mock-api.js +75 -9
  44. package/es/dev/server.d.ts +7 -0
  45. package/es/dev/server.js +112 -32
  46. package/es/rules/check.js +95 -10
  47. package/es/rules/index.d.ts +1 -1
  48. package/es/rules/index.js +1 -1
  49. package/es/rules/manifest.d.ts +23 -9
  50. package/es/rules/manifest.js +60 -35
  51. package/es/rules/node.js +3 -1
  52. package/es/rules/semver.d.ts +5 -0
  53. package/es/rules/semver.js +32 -0
  54. package/es/rules/types.d.ts +38 -7
  55. package/es/rules.json.js +2 -2
  56. package/es/test-packages.d.ts +7 -0
  57. package/guides/content-development.md +150 -55
  58. package/package.json +3 -3
  59. package/rules.json +77 -7
  60. package/skills/_shared/always.md +4 -2
  61. package/skills/elice-content-check/SKILL.md +3 -1
  62. package/skills/elice-content-create/SKILL.md +5 -4
  63. package/skills/elice-content-migrate/SKILL.md +2 -2
  64. package/skills/elice-content-publish/SKILL.md +23 -0
  65. package/templates/_shared/lib/cdk-mock.d.ts +21 -3
  66. package/templates/_shared/lib/cdk-mock.js +241 -82
  67. package/templates/_shared/lib/elice-content.css +204 -0
  68. package/templates/_shared/lib/elice-content.d.ts +115 -6
  69. package/templates/_shared/lib/elice-content.js +656 -43
  70. package/templates/blank/README.md +19 -7
  71. package/templates/blank/completion.html +15 -0
  72. package/templates/blank/gitignore +1 -0
  73. package/templates/blank/metadata.json +11 -0
  74. package/templates/blank/package.json +13 -0
  75. package/templates/blank/screens/completion.js +7 -0
  76. package/templates/blank/screens/edit.js +3 -0
  77. package/templates/blank/screens/instructor.js +12 -5
  78. package/templates/blank/screens/learn.js +16 -11
  79. package/templates/blank/template.json +6 -0
  80. package/templates/quiz/README.md +41 -31
  81. package/templates/quiz/core/behaviors.d.ts +5 -0
  82. package/templates/quiz/core/behaviors.js +12 -0
  83. package/templates/quiz/core/editor.d.ts +12 -1
  84. package/templates/quiz/core/editor.js +28 -5
  85. package/templates/quiz/core/model.d.ts +41 -1
  86. package/templates/quiz/core/model.js +272 -5
  87. package/templates/quiz/gitignore +1 -0
  88. package/templates/quiz/metadata.json +11 -0
  89. package/templates/quiz/package.json +13 -0
  90. package/templates/quiz/screens/edit.js +176 -46
  91. package/templates/quiz/screens/instructor.js +18 -12
  92. package/templates/quiz/screens/learn.js +43 -38
  93. package/templates/quiz/styles.css +47 -0
  94. package/templates/quiz/template.json +6 -0
  95. package/templates/quiz/ui/templates/edit.d.ts +3 -0
  96. package/templates/quiz/ui/templates/edit.js +53 -14
  97. package/templates/quiz/ui/texts.js +56 -29
  98. package/templates/_shared/lib/cdk.js +0 -3
  99. package/templates/blank/content.json +0 -4
  100. package/templates/blank/elice.config.json +0 -12
  101. package/templates/quiz/content.json +0 -81
  102. package/templates/quiz/elice.config.json +0 -14
  103. package/templates/quiz/grading.json +0 -13
@@ -1,81 +0,0 @@
1
- {
2
- "title": "퍼셉트론 확인 문제",
3
- "description": "5문제를 풀고 제출해요.",
4
- "questions": [
5
- {
6
- "id": "q1",
7
- "type": "select_one",
8
- "title": "퍼셉트론이 1을 내보내는 조건은 무엇인가요?",
9
- "description": "가중치와 편향이 어떻게 쓰이는지 떠올려 보세요.",
10
- "options": [
11
- { "id": "a", "text": "입력의 합이 0보다 클 때" },
12
- { "id": "b", "text": "가중합에 편향을 더한 값이 0보다 클 때" },
13
- { "id": "c", "text": "두 입력이 모두 1일 때" },
14
- { "id": "d", "text": "편향이 0보다 클 때" }
15
- ],
16
- "shuffle": false,
17
- "explanation": {
18
- "enabled": true,
19
- "text": "퍼셉트론은 **w1·x1 + w2·x2 + b > 0** 이면 1을 내보냅니다."
20
- }
21
- },
22
- {
23
- "id": "q2",
24
- "type": "select_multiple",
25
- "title": "단층 퍼셉트론으로 만들 수 있는 게이트를 모두 고르세요.",
26
- "description": "",
27
- "options": [
28
- { "id": "a", "text": "AND" },
29
- { "id": "b", "text": "OR" },
30
- { "id": "c", "text": "XOR" },
31
- { "id": "d", "text": "NAND" }
32
- ],
33
- "shuffle": true,
34
- "explanation": {
35
- "enabled": true,
36
- "text": "XOR은 선형으로 나눌 수 없어 단층 퍼셉트론으로는 만들 수 없습니다."
37
- }
38
- },
39
- {
40
- "id": "q3",
41
- "type": "order",
42
- "title": "퍼셉트론이 출력을 내는 순서대로 놓으세요.",
43
- "description": "",
44
- "options": [
45
- { "id": "a", "text": "입력에 가중치를 곱한다" },
46
- { "id": "b", "text": "편향을 더한다" },
47
- { "id": "c", "text": "활성화 함수로 0 또는 1을 낸다" },
48
- { "id": "d", "text": "입력을 정렬한다" }
49
- ],
50
- "slots": 3,
51
- "shuffle": true,
52
- "explanation": { "enabled": false, "text": "" }
53
- },
54
- {
55
- "id": "q4",
56
- "type": "text",
57
- "title": "입력마다 곱하는 값을 무엇이라고 하나요?",
58
- "description": "",
59
- "placeholder": "한 단어로 입력해 주세요.",
60
- "explanation": { "enabled": true, "text": "입력마다 곱하는 값은 **가중치(weight)** 입니다." }
61
- },
62
- {
63
- "id": "q5",
64
- "type": "group",
65
- "title": "선형 분리 가능한 게이트와 아닌 게이트로 나누세요.",
66
- "description": "",
67
- "groups": [
68
- { "id": "g1", "name": "선형 분리 가능" },
69
- { "id": "g2", "name": "선형 분리 불가능" }
70
- ],
71
- "options": [
72
- { "id": "a", "text": "AND" },
73
- { "id": "b", "text": "OR" },
74
- { "id": "c", "text": "XOR" },
75
- { "id": "d", "text": "XNOR" }
76
- ],
77
- "shuffle": false,
78
- "explanation": { "enabled": false, "text": "" }
79
- }
80
- ]
81
- }
@@ -1,14 +0,0 @@
1
- {
2
- "kind": "material",
3
- "screens": {
4
- "learn": "index.html",
5
- "instructor": "instructor.html",
6
- "edit": "edit.html"
7
- },
8
- "gradingTypes": [
9
- "on_access",
10
- "on_submit",
11
- "pattern",
12
- "rubric"
13
- ]
14
- }
@@ -1,13 +0,0 @@
1
- {
2
- "type": "pattern",
3
- "match": "exact",
4
- "answer_key": {
5
- "answers": {
6
- "q1": "b",
7
- "q2": "a,b,d",
8
- "q3": "a,b,c",
9
- "q4": "가중치",
10
- "q5": "g1:a,b|g2:c,d"
11
- }
12
- }
13
- }