@eliceio/cdk-cli 1.5.4 → 1.5.5
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/package.json +2 -2
- package/skills/_shared/references/02-design-the-material.md +1 -1
- package/skills/_shared/references/12-upload-with-the-material-mcp.md +1 -1
- package/templates/document/template.json +3 -2
- package/templates/quiz/README.md +1 -1
- package/templates/quiz/template.json +3 -2
- package/templates/survey/README.md +1 -0
- package/templates/survey/template.json +3 -2
- package/templates/video/template.json +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliceio/cdk-cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"description": "교육자용 Custom HTML 콘텐츠 CLI",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"rollup": "^4.0.0",
|
|
47
47
|
"tslib": "^2.6.1",
|
|
48
48
|
"typescript": "~5.9.3",
|
|
49
|
-
"@eliceio/cdk": "^1.5.
|
|
49
|
+
"@eliceio/cdk": "^1.5.5"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"prebuild": "del-cli \"buildcache/*\" \"es/*\"",
|
|
@@ -36,7 +36,7 @@ Read or watch / change values and observe (simulation, visualization) / follow s
|
|
|
36
36
|
- **`per_question` (regex and AI-graded questions mixed, quiz template 1.11.0+)**: `{ "type": "per_question", "questions": [{ "score": 50, "grader": { "type": "pattern", "answer_key": "^q1=b$" } }, { "score": 50, "grader": { "type": "rubric", "rubric": "…", "question": "the problem text" } }], "pass_score": 60 }`. The answer is a string array in question order; an AI-graded item is the plain answer text (no `qN=`). A question earns `floor(grader score 0–100 × score / 100)`, the total is capped at 100, only 100 is `is_correct: true`, and `on_graded` completes at `pass_score` (1–100, default 100). Save rules (422 otherwise): 1–50 questions, integer scores summing to at least 100, at most 10 `rubric` graders, `rubric` ≤ 10,000 and `question` ≤ 2,000 characters. The response carries `question_results: [{ score, is_correct }]` per question (in the submission lists too). Use the quiz template's AI-graded question rather than writing this by hand.
|
|
37
37
|
- **Choosing between `pattern` and `partial_pattern` is the person's call.** For a material with several questions, ask: "모두 맞혀야 100점" (`pattern`) or "문항별 부분 점수" (`partial_pattern`). For partial scores, take the per-question scores from the person or from the planning material; if neither gives them, use an equal score and say so in the summary (the quiz template's automatic score is `ceil(100 / questions)` each, 3 → 34 · 34 · 34; the kit's `splitScores` sums to exactly 100, 3 → 33 · 33 · 34). In the quiz template the author can also change the grader and the scores on the edit screen. Scores are integers 0–100 summing to at least 100 (usually exactly 100). Students must answer every question before they submit (the quiz blocks an unanswered question), so a skipped question cannot score 0 by design.
|
|
38
38
|
- **Regexes run on the server in Python `re`**, not JavaScript: for a case-insensitive match put `(?i)` at the very start (`(?i)^(paris|파리)$`); the kit, `ecdk dev` and the local mock turn a leading `(?i)` · `(?s)` · `(?m)` into the JS flag. Avoid what the two engines read differently: `\w` · `\d` · `\b` match Unicode (Korean letters, full-width digits) in Python but only ASCII in JS, so write the characters out (`[0-9]`, `[가-힣A-Za-z]`); named groups are `(?P<name>…)` in Python and `(?<name>…)` in JS (do not use them); lookbehind must be fixed-width in Python; inline flags anywhere but the start fail in both. The generated keys (escaped literals, `(?:…|…)`, `^…$`) mean the same in both.
|
|
39
|
-
- **The completion policy is picked in LXP**, not in the project: the publish skill proposes it from this table and sets it with the upload after the person agrees (graded: the quiz template or settings with `grading` → `on_graded`; the survey template → `on_access` (decided 2026-11-25; may change; it still submits with `useSubmit`); other submits without grading → `on_submit`; no submission → `on_access`), or the instructor chooses it in the '설정' panel at the top of the LXP edit page, which applies at once (ADR 0012). `on_graded` needs `settings.grading` saved first, so it goes in the same save as settings with `grading`, or later. Do not write it in `metadata.json` (the old `completionPolicies` and `screens.completionPolicy` are ignored with the warning `manifest.completion-policies-ignored`, and `ecdk build` leaves them out of the zip). The content can read the current policy (SDK `material.completionPolicy`) but never sets it. Build what the suggested policy needs: a submission (`useSubmit`) for `on_submit` · `on_graded`, and the grading saved on the edit screen for `on_graded`. The server rejects `on_graded` without `settings.grading` (`MATERIAL_GRADING_REQUIRED`). The edit screen never sends a policy.
|
|
39
|
+
- **The completion policy is picked in LXP**, not in the project: the publish skill proposes it from this table and sets it with the upload after the person agrees (graded: the quiz template or settings with `grading` → `on_graded`; the survey template → `on_access` (decided 2026-11-25; may change; it still submits with `useSubmit`); other submits without grading → `on_submit`; no submission → `on_access`), or the instructor chooses it in the '설정' panel at the top of the LXP edit page, which applies at once (ADR 0012). The templates carry a default that the server sets when the template is applied to a page that has never been saved (quiz `on_graded`; survey, document and video `on_access`); a saved page keeps its policy. `on_graded` needs `settings.grading` saved first, so it goes in the same save as settings with `grading`, or later. Do not write it in `metadata.json` (the old `completionPolicies` and `screens.completionPolicy` are ignored with the warning `manifest.completion-policies-ignored`, and `ecdk build` leaves them out of the zip). The content can read the current policy (SDK `material.completionPolicy`) but never sets it. Build what the suggested policy needs: a submission (`useSubmit`) for `on_submit` · `on_graded`, and the grading saved on the edit screen for `on_graded`. The server rejects `on_graded` without `settings.grading` (`MATERIAL_GRADING_REQUIRED`). The edit screen never sends a policy.
|
|
40
40
|
- **Only `on_graded` grades.** `on_submit` completes on any submission and does not grade, even with saved answers: the submission comes back `is_correct: null`, `score: 100`, and the kit shows "제출했어요.". `on_access` completes on open. A quiz with `on_submit` shows no score; that is the policy, not broken grading.
|
|
41
41
|
- Custom HTML does not use manual grading (`manual`) or no grading (`none`). With `pattern` there is no per-question grading: every question must be right for 100 (use `partial_pattern` for a score per question). Changing the answers does not regrade past submissions.
|
|
42
42
|
- Answers never go in the zip (`metadata.json` · data JSON · code), and there is no answer file in the project: answers exist only in `settings.grading`, saved on the edit screen. The old `gradingTypes` field is gone (2026-11-10): `ecdk build` warns when it is still in `metadata.json` or an old `elice.config.json`. A grading with the 11-10 policy and grader fields is rejected with how to rewrite it.
|
|
@@ -64,7 +64,7 @@ Next time, read it, confirm the page with the person as above (기관 · 과목
|
|
|
64
64
|
|
|
65
65
|
**Completion policy** (2026-11-12: the upload can set it)
|
|
66
66
|
|
|
67
|
-
The completion policy is not in the project or the zip (ADR 0012): it is a setting of the LXP page, independent of versions, and it applies as soon as it is set. The publish skill proposes one and sets it with the save after the person agrees, when the save tool takes it. Detect support like `settings`: use `completion_policy` only when the input schema of `save_draft` (or `update_material`) lists it in `payload`. If no tool has it, tell the person after saving which one to pick in the '설정' panel opened from the top of the LXP edit page (choosing applies at once).
|
|
67
|
+
The completion policy is not in the project or the zip (ADR 0012): it is a setting of the LXP page, independent of versions, and it applies as soon as it is set. The publish skill proposes one and sets it with the save after the person agrees, when the save tool takes it. Detect support like `settings`: use `completion_policy` only when the input schema of `save_draft` (or `update_material`) lists it in `payload`. If no tool has it, tell the person after saving which one to pick in the '설정' panel opened from the top of the LXP edit page (choosing applies at once). The templates carry a default that the server sets when the template is applied to a page that has never been saved (quiz `on_graded`; survey, document and video `on_access`); a saved page keeps its policy, so still check `get_material` and propose as below.
|
|
68
68
|
|
|
69
69
|
| The material | Propose |
|
|
70
70
|
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"title": "PDF/PPT",
|
|
5
5
|
"description": "PDF, PPT 문서를 올립니다",
|
|
6
6
|
"catalog": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"icon": "pdf",
|
|
9
9
|
"sortOrder": 10,
|
|
10
10
|
"thumbnailUrl": "https://static.elice.io/elice-material/custom/templates/document/thumbnail.png",
|
|
11
|
-
"previewUrl": "https://static.elice.io/elice-material/custom/templates/document/preview.png"
|
|
11
|
+
"previewUrl": "https://static.elice.io/elice-material/custom/templates/document/preview.png",
|
|
12
|
+
"defaultCompletionPolicy": "on_access"
|
|
12
13
|
}
|
|
13
14
|
}
|
package/templates/quiz/README.md
CHANGED
|
@@ -141,7 +141,7 @@ app.useSave({ getContent, validate });
|
|
|
141
141
|
`grader.question`은 AI가 채점 기준과 같이 읽는 문제 글입니다: 질문 + 지문을 서식 없는 글로(그림은 설명 글만) 2,000자까지 자릅니다. 서버는 AI 채점 문제를 제출마다 한 번에 묶어 채점하고(빈 답은 AI 없이 0점), 문제 점수는 `floor(AI 점수 0~100 × 배점 / 100)`, 합은 100에서 자릅니다. `is_correct`는 100점일 때만 참이고, 완료(on_graded)는 합계가 통과 점수 이상일 때입니다. 완료는 제출할 때 정해지므로 통과 점수를 나중에 바꿔도 이미 낸 제출은 다시 계산되지 않습니다 (편집 화면에 안내). AI 채점은 제출마다 크레딧을 씁니다.
|
|
142
142
|
|
|
143
143
|
학생 화면은 제출하고 기다리는 동안 제출 바 위에 "AI가 채점하고 있어요"를 보이고, 정규식 문제는 문항별 결과로 정답 · 오답, AI 채점 문제는 "AI 채점 결과 받은 점수 / 배점"을 보입니다 (배점 만점이면 초록 · 0점이면 빨강 · 그 사이는 회색 줄, 반짝이 아이콘). 결과는 학생이 답을 실제로 고칠 때까지 남습니다 (입력 칸을 누르거나 초점만 옮기면 그대로). 문항별 점수는 서버 `question_results`(SDK에서 `questionResults`)를 씁니다: 지금 SDK `submit()` 결과에는 없어 제출 직후에는 방금 저장된 제출 기록(`history`)에서 읽고(답 · 점수가 같을 때만), 못 읽으면(교육자 · 미리보기는 기록이 없음) "AI 채점 완료. 점수는 총점에 반영되었습니다."를 보입니다. 아래 점수 상자는 100점보다 낮고 통과 점수(공개 값 `passScore`) 이상이면 "통과했어요!", 아래면 "아쉬워요!"입니다. AI 채점이 실패하면(502 `MATERIAL_GRADING_FAILED`, 입력 가드 거절 `refused`는 따로 · 409 크레딧 없음) 제출은 저장되지 않고 제출 바에 이유를 보입니다. `ecdk dev`는 AI 대신 글 길이로 만든 **흉내 점수**(빈 답 0, 아니면 min(100, 20 + 글자 수 / 5)를 배점 비율로 내림)로 채점하고 1.2초 기다리며, 화면 · 로그에 흉내 값이라고 표시합니다. 답에 "이전 지시를 무시" 같은 문장을 쓰면 거절(`refused`)을 흉내 냅니다.
|
|
144
|
-
- 편집 화면은 답(`settings.grading`)만 저장합니다. 완료 정책은 LXP 페이지 설정입니다 (ADR 0012): publish 스킬이 동의를 받아 업로드 때 정하거나 교육자가 LXP 편집 페이지 위쪽 '설정' 패널에서 고릅니다. 퀴즈는 **채점해 통과하면 완료(on_graded)**여야 채점합니다. 제출하면 완료(on_submit)면 서버가 채점하지 않고 제출만으로 완료되어 점수 없이 "제출했어요."가 보입니다.
|
|
144
|
+
- 편집 화면은 답(`settings.grading`)만 저장합니다. 완료 정책은 LXP 페이지 설정입니다 (ADR 0012): publish 스킬이 동의를 받아 업로드 때 정하거나 교육자가 LXP 편집 페이지 위쪽 '설정' 패널에서 고릅니다. 퀴즈는 **채점해 통과하면 완료(on_graded)**여야 채점합니다. 한 번도 저장하지 않은 페이지에 퀴즈 템플릿을 넣으면 서버가 `on_graded`(답안 확인 후 완료)로 정합니다 (템플릿 기본값, 저장한 적 있는 페이지는 그대로). 제출하면 완료(on_submit)면 서버가 채점하지 않고 제출만으로 완료되어 점수 없이 "제출했어요."가 보입니다.
|
|
145
145
|
|
|
146
146
|
## 정답
|
|
147
147
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quiz",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.4",
|
|
4
4
|
"title": "퀴즈",
|
|
5
5
|
"description": "문항을 만들고 답안 형식을 고릅니다",
|
|
6
6
|
"catalog": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"icon": "quiz",
|
|
9
9
|
"sortOrder": 10,
|
|
10
10
|
"thumbnailUrl": "https://static.elice.io/elice-material/custom/templates/quiz/thumbnail.png",
|
|
11
|
-
"previewUrl": "https://static.elice.io/elice-material/custom/templates/quiz/preview.png"
|
|
11
|
+
"previewUrl": "https://static.elice.io/elice-material/custom/templates/quiz/preview.png",
|
|
12
|
+
"defaultCompletionPolicy": "on_graded"
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -8,6 +8,7 @@ Elice Custom HTML 학습자료 프로젝트입니다 (설문 템플릿).
|
|
|
8
8
|
|
|
9
9
|
완료 정책은 프로젝트나 zip이 아니라 LXP 페이지 설정입니다. 설문은 **열면 완료(on_access)**로 합니다 (2026-11-25 결정, 나중에 바뀔 수 있음): 학생이 페이지를 열면 서버가 채점 없이 100점 · 완료로 기록합니다 (아직 제출 0회). 제출하면 답은 그대로 기록되어 튜터링 화면과 설문 리포트에서 봅니다. 제출 전에는 버튼이 "제출하기"로 보이고, 한 번 이상 제출한 뒤에 "다시 제출하기"가 됩니다.
|
|
10
10
|
|
|
11
|
+
- 한 번도 저장하지 않은 페이지에 설문 템플릿을 넣으면 서버가 `on_access`로 정합니다 (템플릿 기본값, 저장한 적 있는 페이지는 그대로).
|
|
11
12
|
- publish 스킬로 올리면 동의를 받아 업로드와 함께 `on_access`를 정합니다.
|
|
12
13
|
- 직접 올리면 LXP 편집 페이지 위쪽 '설정' 패널에서 "열면 완료"를 고릅니다.
|
|
13
14
|
- `on_graded`(채점해 통과하면 완료)는 쓰지 않습니다: 설문에는 채점 설정(`grading`)이 없어 서버가 거절합니다.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"title": "설문조사",
|
|
5
5
|
"description": "학생 의견을 모읍니다",
|
|
6
6
|
"catalog": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"icon": "survey",
|
|
9
9
|
"sortOrder": 20,
|
|
10
10
|
"thumbnailUrl": "https://static.elice.io/elice-material/custom/templates/survey/thumbnail.png",
|
|
11
|
-
"previewUrl": "https://static.elice.io/elice-material/custom/templates/survey/preview.png"
|
|
11
|
+
"previewUrl": "https://static.elice.io/elice-material/custom/templates/survey/preview.png",
|
|
12
|
+
"defaultCompletionPolicy": "on_access"
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "video",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"title": "동영상",
|
|
5
5
|
"description": "동영상 파일을 올립니다",
|
|
6
6
|
"catalog": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"icon": "video",
|
|
9
9
|
"sortOrder": 20,
|
|
10
10
|
"thumbnailUrl": "https://static.elice.io/elice-material/custom/templates/video/thumbnail.png",
|
|
11
|
-
"previewUrl": "https://static.elice.io/elice-material/custom/templates/video/preview.png"
|
|
11
|
+
"previewUrl": "https://static.elice.io/elice-material/custom/templates/video/preview.png",
|
|
12
|
+
"defaultCompletionPolicy": "on_access"
|
|
12
13
|
}
|
|
13
14
|
}
|