@eliceio/cdk-cli 1.5.2 → 1.5.3-qa.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/README.md +2 -2
- package/es/commands/create/index.js +1 -1
- package/package.json +2 -2
- package/skills/_shared/references/02-design-the-material.md +9 -8
- package/skills/_shared/references/03-create-the-project.md +1 -1
- package/skills/_shared/references/12-upload-with-the-material-mcp.md +6 -5
- package/skills/_shared/references/16-using-the-survey-template.md +2 -2
- package/skills/elice-content-publish/SKILL.md +1 -1
- package/templates/survey/README.md +5 -5
- package/templates/survey/commentary.txt +1 -1
- package/templates/survey/screens/edit.js +1 -1
- package/templates/survey/template.json +1 -1
package/README.md
CHANGED
|
@@ -125,7 +125,7 @@ ecdk create my-quiz # 퀴즈 (기본): 문항(20개까지)
|
|
|
125
125
|
ecdk create my-page --template blank # 퀴즈가 아닌 자료(시뮬레이션 · 활동 · 설명 · 플래시카드 · 설문): 예제 · 내용 JSON 편집기로 시작
|
|
126
126
|
ecdk create my-steps --template steps # 여러 단계 자료(도입 → 실험 → 정리): 키트 스테퍼 + 단계마다 콘텐츠 레이아웃
|
|
127
127
|
ecdk create my-doc --template document # 문서(PDF · PPTX) 한 편: 편집 화면에서 문서를 올리고 PPTX 글자를 바로 고침, 열람 시 학습 완료
|
|
128
|
-
ecdk create my-survey --template survey # 수업 설문(척도 · 단일 · 다중 선택 · 서술형): 정답 · 채점 없음, 완료 정책은 "
|
|
128
|
+
ecdk create my-survey --template survey # 수업 설문(척도 · 단일 · 다중 선택 · 서술형): 정답 · 채점 없음, 완료 정책은 "열면 완료"(on_access, 2026-11-25 결정 · 나중에 바뀔 수 있음)
|
|
129
129
|
ecdk create my-quiz --theme dark # 어두운 화면
|
|
130
130
|
ecdk create --list # 템플릿 목록 · 버전 · 설명
|
|
131
131
|
cd my-quiz
|
|
@@ -143,7 +143,7 @@ cd my-quiz
|
|
|
143
143
|
| `metadata.json` | 화면 구성 · 학습 참고 내용 (build가 `build`만 채움) |
|
|
144
144
|
| `package.json` | SDK 버전(`@eliceio/cdk`) · 빌드 옵션 `"ecdk"` (zip에 들어가지 않음) |
|
|
145
145
|
|
|
146
|
-
퀴즈 템플릿에는 교육자 화면이 없습니다: LXP에서 교육자가 열면 학생 화면이 열려 직접 풀어 볼 수 있습니다 (제출은 채점만, 기록 안 됨). blank 템플릿에는 교육자 화면(`screens/instructor.js` · `instructor.html`)도 있습니다. 교육자 화면은 LXP 편집기 미리보기의 교육자 전환에서만 보이고, 학습 페이지에서는 교육자도 학생 화면을 봅니다 (ADR 0014). steps 템플릿도 교육자 화면을 켜지 않습니다. document 템플릿도 교육자 화면이 없습니다 (교육자는 학생 화면에서 문서를 봄). survey 템플릿도 교육자 화면을 켜지 않습니다. survey 템플릿은 채점 설정(`grading`)이 없어, 완료 정책은 "
|
|
146
|
+
퀴즈 템플릿에는 교육자 화면이 없습니다: LXP에서 교육자가 열면 학생 화면이 열려 직접 풀어 볼 수 있습니다 (제출은 채점만, 기록 안 됨). blank 템플릿에는 교육자 화면(`screens/instructor.js` · `instructor.html`)도 있습니다. 교육자 화면은 LXP 편집기 미리보기의 교육자 전환에서만 보이고, 학습 페이지에서는 교육자도 학생 화면을 봅니다 (ADR 0014). steps 템플릿도 교육자 화면을 켜지 않습니다. document 템플릿도 교육자 화면이 없습니다 (교육자는 학생 화면에서 문서를 봄). survey 템플릿도 교육자 화면을 켜지 않습니다. survey 템플릿은 채점 설정(`grading`)이 없어, 완료 정책은 "열면 완료"(`on_access`)로 합니다 (2026-11-25 결정, 나중에 바뀔 수 있음. 제출한 답은 그대로 기록됨, `on_graded`는 서버가 거절).
|
|
147
147
|
|
|
148
148
|
내용(문항 · 텍스트)과 정답은 파일이 아니라 **편집 화면**이 저장한 것(`settings`)입니다 (ADR 0011). 기본 내용 파일이 없어서 저장하기 전에는 학생 · 교육자 화면이 빈 안내(그림 + "학습 자료를 준비하고 있어요")를 보입니다. `ecdk dev`의 내용 편집에서 저장한 것(내용 + 정답)은 `.ecdk/settings.json`에 남습니다. 이 파일은 zip에 들어가지 않고 기본으로는 로컬에만 있으며, publish 스킬(elice-material MCP)로 올릴 때 요약을 보고 동의하면 업로드와 함께 보냅니다 (서버 MCP가 `settings`를 받을 때). 보내지 않으면 LXP에 올린 뒤 편집 화면에서 입력합니다.
|
|
149
149
|
|
|
@@ -12,7 +12,7 @@ const usage = `사용법: ecdk create <폴더> [--template ${TEMPLATES.join('|')
|
|
|
12
12
|
blank: 퀴즈가 아닌 모든 자료(시뮬레이션 · 시각화 · 활동 · 설명 · 플래시카드 · 설문)를 직접 만들 때. 화면 3개 골격
|
|
13
13
|
steps: 여러 단계로 나눈 자료(도입 → 실험 → 정리). 키트 스테퍼(app.useStepper) + 단계마다 콘텐츠 레이아웃
|
|
14
14
|
document: 문서(PDF · PPTX) 한 편 보기. 편집 화면에서 문서를 올리고 PPTX 글자를 바로 고침 (.ppt · .pps · .ppsx는 .pptx · .pdf로 바꿔 올림)
|
|
15
|
-
survey: 수업 설문(척도 · 단일 · 다중 선택 · 서술형, 필수 응답). 정답 · 채점 없음, 완료 정책은 "
|
|
15
|
+
survey: 수업 설문(척도 · 단일 · 다중 선택 · 서술형, 필수 응답). 정답 · 채점 없음, 완료 정책은 "열면 완료"(on_access)
|
|
16
16
|
video: 영상 한 편 보기. Elice 비디오 플레이어로 편집 화면에서 올리고, 끝까지 보면 자동 제출
|
|
17
17
|
--list: 템플릿 목록과 버전 · 설명 (템플릿마다 버전이 따로 있음)
|
|
18
18
|
--theme dark: Elice Design System 어두운 화면 (기본 light)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliceio/cdk-cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3-qa.0",
|
|
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.3-qa.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"prebuild": "del-cli \"buildcache/*\" \"es/*\"",
|
|
@@ -15,13 +15,14 @@ Read or watch / change values and observe (simulation, visualization) / follow s
|
|
|
15
15
|
|
|
16
16
|
**② Submission and grading** (the completion policy is a setting of the LXP page, not in the package, ADR 0012; since 2026-11-12 the publish skill sets it with the upload after the person agrees, otherwise the instructor picks it in the '설정' panel at the top of the LXP edit page. The grading settings `settings.grading` hold the grader `type` and its answers)
|
|
17
17
|
|
|
18
|
-
| Material | Policy to propose (LXP setting) | Grading (`type`) | Student screen
|
|
19
|
-
| ----------------------------------------------------------- | --------------------------------- | ----------------------- |
|
|
20
|
-
| Something to read or watch, such as a simulation | `on_access` (done on open) | - | No submission
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
18
|
+
| Material | Policy to propose (LXP setting) | Grading (`type`) | Student screen |
|
|
19
|
+
| ----------------------------------------------------------- | --------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
20
|
+
| Something to read or watch, such as a simulation | `on_access` (done on open) | - | No submission |
|
|
21
|
+
| A survey (decided 2026-11-25; may change) | `on_access` (done on open) | - | Submit the answers with `useSubmit` (the survey template, [16](16-using-the-survey-template.md)); submissions are still recorded |
|
|
22
|
+
| Done when the activity ends (results, self-check) | `on_submit` (done on submit) | - | Submit the result with `useSubmit` |
|
|
23
|
+
| One correct answer or one set of answers | `on_graded` (done when it passes) | `pattern` (one regex) | `useSubmit` |
|
|
24
|
+
| Several questions with a score per question (partial score) | `on_graded` | `partial_pattern` | `useSubmit` with a string array |
|
|
25
|
+
| Writing or assignments graded against a rubric (AI grading) | `on_graded` | `rubric` (the criteria) | `useSubmit`, the score comes back at once |
|
|
25
26
|
|
|
26
27
|
> **Personal data: never collect it.** A material never asks for, stores or sends a learner's personal data: name, phone number, email, address, date of birth, student number, resident registration number, bank account, face photo, location, or anything else that identifies a person. Not in a submission (`useSubmit` · `submit`), `kvstore`, the content the edit screen saves (`useSave` · `saveSettings`), a file upload (`assets`) or an AI call (`mlapi`).
|
|
27
28
|
>
|
|
@@ -35,7 +36,7 @@ Read or watch / change values and observe (simulation, visualization) / follow s
|
|
|
35
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.
|
|
36
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.
|
|
37
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.
|
|
38
|
-
- **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`; 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). `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
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.
|
|
40
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.
|
|
41
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.
|
|
@@ -5,7 +5,7 @@ Run `ecdk create --list` first: it prints each template with its own version (`q
|
|
|
5
5
|
| Case | Start with |
|
|
6
6
|
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
7
7
|
| A quiz (up to 20 questions per quiz material) | `ecdk create <folder>` (quiz template: starts with no question; the edit screen adds questions of any of the five types with "+ 문제 추가"; answers set on the edit screen; `pattern` or `partial_pattern` grading, `on_graded` picked in LXP) |
|
|
8
|
-
| A survey (course feedback: scale, single or multiple choice with "other", free text; no answers or grading) | `ecdk create <folder> --template survey` (edit screen builds the questions; the student submits and sees a thank-you screen, reopening shows it and lets them change the answers; no instructor screen; no `grading
|
|
8
|
+
| A survey (course feedback: scale, single or multiple choice with "other", free text; no answers or grading) | `ecdk create <folder> --template survey` (edit screen builds the questions; the student submits and sees a thank-you screen, reopening shows it and lets them change the answers; no instructor screen; no `grading`; suggest `on_access` (decided 2026-11-25; may change); then [16](16-using-the-survey-template.md)) |
|
|
9
9
|
| Any other material | `ecdk create <folder> --template blank` (three screens with a small example to replace, "예측하고 확인하기", and the kit content editor on the edit screen: see 5) |
|
|
10
10
|
| A material in several steps (intro → experiment → summary, slides) | `ecdk create <folder> --template steps` (kit stepper `app.useStepper` and a different content layout per step, example "진자의 주기", content editor on the edit screen: see [14](14-layouts.md)) |
|
|
11
11
|
| One document to read (PDF or PPTX, completion on opening) | `ecdk create <folder> --template document` (the edit screen uploads a `.pdf` or `.pptx` and edits PPTX slide text in place; the student screen pages through it; `on_access` picked in LXP; `.ppt` · `.pps` · `.ppsx` must be saved as `.pptx` or `.pdf` first; in `ecdk dev` the file stays in `.ecdk/assets/`; for a page on LXP upload it with the MCP `create_asset_upload`, [12](12-upload-with-the-material-mcp.md) "Images and documents") |
|
|
@@ -66,11 +66,12 @@ Next time, read it, confirm the page with the person as above (기관 · 과목
|
|
|
66
66
|
|
|
67
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).
|
|
68
68
|
|
|
69
|
-
| The material
|
|
70
|
-
|
|
|
71
|
-
| Graded: the quiz template, or any material whose settings have `grading`
|
|
72
|
-
| Submits (`useSubmit`) without grading
|
|
73
|
-
|
|
|
69
|
+
| The material | Propose |
|
|
70
|
+
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
|
|
71
|
+
| Graded: the quiz template, or any material whose settings have `grading` | `on_graded` ("답안 확인 후 완료") |
|
|
72
|
+
| Submits (`useSubmit`) without grading | `on_submit` (complete on any submission) |
|
|
73
|
+
| The survey template ([16](16-using-the-survey-template.md); decided 2026-11-25, may change; never `on_graded`) | `on_access` (complete on open; submissions are still recorded) |
|
|
74
|
+
| No submission | `on_access` (complete on open) |
|
|
74
75
|
|
|
75
76
|
- Show the proposal in the target summary and the approval (on a page that already has a policy, show the current one too; changing it needs the yes). Send it only after an explicit yes.
|
|
76
77
|
- **`on_graded` needs grading saved first** (the server answers `MATERIAL_GRADING_REQUIRED` otherwise). Send `on_graded` in the same save only together with `settings` that include `grading` (the server takes `settings` and the person agreed), or when the page already has grading (`get_material` shows it).
|
|
@@ -44,7 +44,7 @@ The questions are what the edit screen saves (`settings`; locally `.ecdk/setting
|
|
|
44
44
|
|
|
45
45
|
## Submission and completion
|
|
46
46
|
|
|
47
|
-
- **Completion policy: `
|
|
47
|
+
- **Completion policy: `on_access`** ("열면 완료"; decided 2026-11-25, may change). The server records completion with score 100 when the learner opens the page (submit count 0), with no grading. Submissions are still recorded (`is_correct: null`): the answers are kept and the tutoring view and the survey report read them. The kit shows "제출하기" until the learner has submitted once, then "다시 제출하기". **Never `on_graded`**: a survey has no `grading`, so the server refuses it. `on_submit` also works (complete only after submitting) if the person wants that. The publish skill proposes it ([12](12-upload-with-the-material-mcp.md) "Completion policy"); otherwise the person picks it in the '설정' panel of the LXP edit page.
|
|
48
48
|
- **The answer shape is the template's.** The student screen submits one JSON object keyed by question id:
|
|
49
49
|
|
|
50
50
|
```json
|
|
@@ -153,6 +153,6 @@ Apply these when you draft or review the questions, and tell the person what you
|
|
|
153
153
|
- [ ] Ids unchanged for a survey that is already on LXP; new items have unused ids.
|
|
154
154
|
- [ ] Images only as `asset:` (edit screen image button or MCP), no `data:`.
|
|
155
155
|
- [ ] The person opened the edit view and pressed "초안으로 저장" once; the student and edit screens pass `ecdk dev --check --screens learn,edit`.
|
|
156
|
-
- [ ] Completion policy `
|
|
156
|
+
- [ ] Completion policy `on_access` proposed (decided 2026-11-25, may change; never `on_graded`); the person knows where the answers are (tutoring view, below).
|
|
157
157
|
|
|
158
158
|
- File split, as in the quiz: **`ui/` is the look** (`ui/texts.js` wording, `ui/theme.css` `--qz-*` variables, `ui/templates/*.js` markup; keep the `data-role` attributes), **`screens/` the layout**, **`core/` the behavior and the answer shape** (do not edit).
|
|
@@ -14,7 +14,7 @@ Reference files are in `references/` in this skill's folder (see Always). Read `
|
|
|
14
14
|
1. **MCP ready?** The `elice-material` tools must be available. If not, ask the person to run `ecdk setup --only mcp` and log in (Claude Code `/mcp` → elice-material → Authenticate, Helpy Code `⌘ ;`), then stop.
|
|
15
15
|
2. **Build.** `ecdk build --json` must return `ok: true`. Keep `zip` and `zipBytes`.
|
|
16
16
|
3. **Content and answers.** Check whether the input schema of `save_draft` (or `update_material`) lists `settings` as a key of `payload` (on an older server, a top-level parameter). If it does and this project has `.ecdk/settings.json`: make sure the edit screen saved it (the person saves the edit view in `ecdk dev`; a file you wrote by hand must go through that save), run `ecdk doctor` and send no `settings` while its `project.grading` or `project.quiz` check fails (tell the person why, never the answer values; they fix it in the edit view), show a short summary (title, number of questions or items, answers included or not and `grading.type`, never the answer values) and ask for an explicit yes to send it with the upload. `settings` replaces the page's settings as a whole: on a page that already has a version, compare `get_material`'s settings with the file first, and if keys would disappear or the LXP content differs (an instructor edited it in LXP), show the difference briefly and ask before overwriting (a new page needs no comparison). Adding images to a page that already has a version: merge its current settings (`get_material` or `get_draft`) into `.ecdk/settings.json` first, keeping `asset:` images as they are (`references/12-upload-with-the-material-mcp.md` item 8). No file: suggest filling the edit view in `ecdk dev` first, or skip it. No `settings` key, or the person says no: zip only (the fallback). Details: `references/12-upload-with-the-material-mcp.md` "Content and answers (settings)".
|
|
17
|
-
4. **Completion policy.** If `save_draft` (or `update_material`) lists `completion_policy` in its input schema (in `payload`), propose one (`references/12-upload-with-the-material-mcp.md` "Completion policy"): graded (the quiz template, or settings with `grading`) → `on_graded`,
|
|
17
|
+
4. **Completion policy.** If `save_draft` (or `update_material`) lists `completion_policy` in its input schema (in `payload`), propose one (`references/12-upload-with-the-material-mcp.md` "Completion policy"): graded (the quiz template, or settings with `grading`) → `on_graded`, the survey template → `on_access` (decided 2026-11-25; may change; its submissions are still recorded), other submits without grading → `on_submit`, no submission → `on_access`. `on_graded` only when the same save carries `settings` with `grading` (or the page already has grading); a material that grades with AI (`mlapi.fetch`, evaluation criteria) and has no `grading`: stop and fix it first (rubric from the criteria, `references/12-upload-with-the-material-mcp.md` "AI grading"), never `on_graded` without grading, and `on_submit` only on purpose for display-only AI feedback (tell the person scores won't reflect the AI); otherwise no policy at the first save, or `on_submit` if the person wants it (ask). Tell the person that only `on_graded` grades: `on_submit` completes on any submission without grading ("제출했어요."), `on_access` completes on open. The policy is a page setting and applies at once.
|
|
18
18
|
5. **Pick the page and confirm it.** Candidates: `.ecdk/link.json`, the LXP edit URL the person gives (`https://{org}.…/lecturepages/{id}/edit`), or the person's choice from `list_my_organizations` → `list_courses` → `list_lectures` → `list_custom_pages`. Never pick a page yourself (not the first in a list, not a guess by title, not a page from another project); if the answer is ambiguous, ask again. Before any upload call (`create_package_upload`, `submit_package`), show the full target, 기관 · 과목 · 수업 · 페이지 with names and ids, its LXP edit URL, whether content and answers go with it and the completion policy to set (the page's current one too), then wait for an explicit yes. Do this every time: also for `.ecdk/link.json` (and compare its `version_id` with `get_material`) and for a URL the person gave (confirm the names it resolves to). `.ecdk/link.json` and an edit URL give only the org's `name_short`: get the 기관 name from `list_my_organizations` and the 과목 · 수업 · 페이지 names from `get_material`. A new page (`create_custom_page`) needs its own yes that names the 수업 it goes into. If the page already has content or answers saved in LXP, say that sending settings replaces them and ask again.
|
|
19
19
|
6. **Upload.** `get_material` (keep `current_version.id`) → `create_package_upload` with `size_bytes = zipBytes` → run its `curl_command` with `package.zip` replaced by the zip path → `submit_package` → poll `get_draft` until ready or failed. On failure, report the server's reason with `ecdk validate dist/content.zip` and stop. Images or a PDF/PPTX for the settings: only now (draft ready), `create_asset_upload` per file → its `curl_command`, and put the returned `key`, never the URL, into the merged settings (`references/12-upload-with-the-material-mcp.md` "Images and documents"); no such tool: zip images, and tell the person.
|
|
20
20
|
7. **Approve.** Show what changes (page, title, whether the content and answers go with it or are entered on the LXP edit screen after saving, the completion policy) and the draft `preview_urls`. Saving is visible to learners at once if the page is open. Wait for an explicit yes.
|
|
@@ -4,14 +4,14 @@ Elice Custom HTML 학습자료 프로젝트입니다 (설문 템플릿).
|
|
|
4
4
|
|
|
5
5
|
학생이 문항(척도 · 단일 선택 · 다중 선택 · 서술형)에 답하고 제출합니다. **정답과 채점이 없습니다.** 제출하면 "응답해 주셔서 감사합니다." 화면으로 바뀌고, 다시 열면 그 화면부터 보이며 "응답 확인하고 수정하기"로 낸 답을 고쳐 다시 낼 수 있습니다.
|
|
6
6
|
|
|
7
|
-
## 완료 정책: "
|
|
7
|
+
## 완료 정책: "열면 완료"(on_access)
|
|
8
8
|
|
|
9
|
-
완료 정책은 프로젝트나 zip이 아니라 LXP 페이지 설정입니다. 설문은
|
|
9
|
+
완료 정책은 프로젝트나 zip이 아니라 LXP 페이지 설정입니다. 설문은 **열면 완료(on_access)**로 합니다 (2026-11-25 결정, 나중에 바뀔 수 있음): 학생이 페이지를 열면 서버가 채점 없이 100점 · 완료로 기록합니다 (아직 제출 0회). 제출하면 답은 그대로 기록되어 튜터링 화면과 설문 리포트에서 봅니다. 제출 전에는 버튼이 "제출하기"로 보이고, 한 번 이상 제출한 뒤에 "다시 제출하기"가 됩니다.
|
|
10
10
|
|
|
11
|
-
- publish 스킬로 올리면 동의를 받아 업로드와 함께 `
|
|
12
|
-
- 직접 올리면 LXP 편집 페이지 위쪽 '설정' 패널에서 "
|
|
11
|
+
- publish 스킬로 올리면 동의를 받아 업로드와 함께 `on_access`를 정합니다.
|
|
12
|
+
- 직접 올리면 LXP 편집 페이지 위쪽 '설정' 패널에서 "열면 완료"를 고릅니다.
|
|
13
13
|
- `on_graded`(채점해 통과하면 완료)는 쓰지 않습니다: 설문에는 채점 설정(`grading`)이 없어 서버가 거절합니다.
|
|
14
|
-
- `
|
|
14
|
+
- `on_submit`(제출 시 완료)도 됩니다. 이때는 제출해야 완료됩니다.
|
|
15
15
|
|
|
16
16
|
## 고치는 곳
|
|
17
17
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
수업 설문입니다. 학생이 수업 이해도, 더 알고 싶은 내용, 자유 의견을 답하고 제출합니다.
|
|
2
|
-
정답과 채점이 없으며,
|
|
2
|
+
정답과 채점이 없으며, 페이지를 열면 학습이 완료됩니다(LXP 완료 정책: 열면 완료). 제출한 응답은 그대로 기록됩니다. 문항을 바꾸면 이 파일도 이 설문에 맞게 고쳐 주세요(설문 목적, 문항 구성).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// 내용 편집 화면(CMS). 맨 위 설문 안내, 그 아래 문항 카드(유형 · 필수 응답 · 질문 · 설명 · 유형별 칸), 끝에 "+ 문항 추가".
|
|
2
2
|
// 저장 버튼 · 변경 표시는 키트(useSave)가 합니다. 설문은 정답 · 채점이 없어 settings에 grading을 두지 않습니다
|
|
3
|
-
// (getGrading을 넘기지 않음). 저장은 settings.survey 아래에. 완료 정책은 LXP 자료 편집 화면의 '설정'에서 고르며, 설문은 "
|
|
3
|
+
// (getGrading을 넘기지 않음). 저장은 settings.survey 아래에. 완료 정책은 LXP 자료 편집 화면의 '설정'에서 고르며, 설문은 "열면 완료"(on_access)로 합니다(2026-11-25 결정, 나중에 바뀔 수 있음).
|
|
4
4
|
// 여기서는 어떤 칸을 어떤 순서로 놓을지만 정합니다. 모양은 ui/(templates/edit.js · texts · theme.css), 동작은 core/.
|
|
5
5
|
import { start } from '../lib/elice-content.js';
|
|
6
6
|
import { part } from '../core/dom.js';
|