@eliceio/cdk-cli 1.6.0-entryqa.2 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliceio/cdk-cli",
3
- "version": "1.6.0-entryqa.2",
3
+ "version": "1.6.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.6.0-entryqa.2"
49
+ "@eliceio/cdk": "^1.6.0"
50
50
  },
51
51
  "scripts": {
52
52
  "prebuild": "del-cli \"buildcache/*\" \"es/*\"",
@@ -1,7 +1,7 @@
1
1
  ## Always
2
2
 
3
3
  - **Never ask for, store or send 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 (`submit` · `useSubmit`), `kvstore`, `saveSettings` (`useSave`), a file upload (`assets`) or an AI call (`mlapi`). If the request needs it, ask the person before you build.** Why and what to use instead: `references/02-design-the-material.md` "Personal data".
4
- - Answer the person in their language. The reference files are in English: `references/` next to this SKILL.md, read only the ones you need with the Read tool: 00 what the person decides · 01 environment · 02 design · 03 create the project · 04 sandbox rules · 05 screen code and kit API · 06 quiz template · 07 move existing HTML · 08 error ids · 09 check · 10 build and report · 11 more · 12 upload · 13 edit screen design · 14 layouts and stepper · 15 edit settings by hand · 16 survey template.
4
+ - Answer the person in their language. The reference files are in English: `references/` next to this SKILL.md, read only the ones you need with the Read tool: 00 what the person decides · 01 environment · 02 design · 03 create the project · 04 sandbox rules · 05 screen code and kit API · 06 quiz template · 07 move existing HTML · 08 error ids · 09 check · 10 build and report · 11 more · 12 upload · 13 edit screen design · 14 layouts and stepper · 15 edit settings by hand · 16 survey template · 17 Entry template.
5
5
  - Never put correct answers in the content zip. The edit screen saves them to `settings.grading` (locally `.ecdk/settings.json` from `ecdk dev`, which stays local unless the person agrees to send it with the upload, `references/12-upload-with-the-material-mcp.md`).
6
6
  - The completion policy is not in the project or the zip: it is a setting of the LXP page. Say which one fits (`references/02-design-the-material.md` ②); the elice-content-publish skill sets it with the upload after the person agrees (`on_graded` only with grading saved), otherwise the instructor picks it in the '설정' panel at the top of the LXP edit page. Only `on_graded` grades: `on_submit` completes on any submission without grading (`is_correct: null`, the kit shows "제출했어요."), `on_access` completes on open.
7
7
  - The content runs in a sandboxed iframe on its own origin: use the SDK (`app.useSubmit`, `app.useSave`) for anything that must be kept (storage and cookies stay only in that browser), and in-page UI instead of `alert`/`confirm`, new windows, the parent window or external requests.
@@ -15,14 +15,15 @@ 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
- | 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 |
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 |
26
+ | Block coding in Entry (the Entry template) | `on_graded` (`on_submit` without grading) | `entry` (general or AI) | The template submits the project ([17](17-using-the-entry-template.md)) |
26
27
 
27
28
  > **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`).
28
29
  >
@@ -34,7 +35,7 @@ Read or watch / change values and observe (simulation, visualization) / follow s
34
35
  - **AI grading is `rubric`, saved on the edit screen.** AI가 답을 평가해 점수를 매기는 학습자료는 `settings.grading`을 `rubric`으로 저장한다 (편집 화면 `useSave`의 `getGrading`으로 평가 기준을 rubric 글로 만들어 저장), 학습 화면은 학습자 답만 제출한다, 화면에서 계산한 점수는 서버 채점에 쓰이지 않는다. Without `settings.grading`, `on_graded` scores 0 and never completes and `on_submit` gives 100 whatever the AI said. With `on_graded` + `rubric` the server grades 0–100 and completes at 1 point or more. Never compute the score with `mlapi` in the browser and submit it. Sketch and details: [5](05-screen-code.md) "AI grading".
35
36
  - **`partial_pattern` (partial score per question)**: `{ "type": "partial_pattern", "answer_key": ["^…$", "^…$"], "scores": [50, 50] }`. The student submits a **string array** in question order and `answer[i]` is matched against `answer_key[i]` the same way as `pattern` (trimmed, full match). The score is the sum of `scores[i]` of the matched questions, capped at 100. Rules the server enforces on save (422 otherwise): both arrays 1–50 long and the same length, each score an integer 0–100, the sum at least 100 (a lower sum could never complete). Only 100 is `is_correct: true` and completes `on_graded`; a missing item scores 0, extra items are ignored, and an answer that is not an array of strings is rejected (422). The response also carries `answer_correctness` (per question, `answer_key` order; `[]` for `pattern` · `rubric`), in the submit response and the submission lists, so a screen can mark each question right or wrong (SDK `answerCorrectness`). Kit helpers: `validatePartialGrading` (the same rules, for `getGrading`) and `splitScores(n)` (equal integer split summing to 100, e.g. 3 → [33, 33, 34]). The quiz template supports both (6).
36
37
  - **`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
- - **`entry` (Entry template only, two modes)**: `{ "type": "entry", "mode": "general", "answer_project": { "enc": "gzip+base64", "data": "…" } }` (compared with the answer project, 0 or 100; no other keys) or `{ "type": "entry", "mode": "ai", "answer_project": {…}, "rubrics": [{ "object": "ik8o", "criteria": "…", "score": 100 }] }` (`object` is an object id of the answer project — there is no whole-project criterion, `""` or an unknown id is rejected with 422 `entry_rubric_object_not_found`; the AI mode also needs `settings.entry.startProject`, and the general answer project needs at least one script or global list, else 422 `entry_answer_project_empty`; 1–10 criteria of 1–1,000 characters, integer scores 1–100 summing to 100; `question_results` and `grading_feedback.criteria` per criterion, in the submit response and in the submission history). The Entry template's edit screen saves it; do not write it by hand.
38
+ - **`entry` (Entry template only, two modes)**: `{ "type": "entry", "mode": "general", "answer_project": { "enc": "gzip+base64", "data": "…" } }` (compared with the answer project, 0 or 100; no other keys) or `{ "type": "entry", "mode": "ai", "answer_project": {…}, "rubrics": [{ "object": "ik8o", "criteria": "…", "score": 100 }] }` (`object` is an object id of the answer project — there is no whole-project criterion, `""` or an unknown id is rejected with 422 `entry_rubric_object_not_found`; the AI mode also needs `settings.entry.startProject`, and the general answer project needs at least one script or global list, else 422 `entry_answer_project_empty`; 1–10 criteria of 1–1,000 characters, integer scores 1–100 summing to 100; `question_results` and `grading_feedback.criteria` per criterion, in the submit response and in the submission history). The Entry template's edit screen saves it; do not write it by hand ([17](17-using-the-entry-template.md)).
38
39
  - **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.
39
40
  - **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.
40
41
  - **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.
@@ -9,6 +9,7 @@ Run `ecdk create --list` first: it prints each template with its own version (`q
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") |
12
+ | Block coding or Entry Python practice in Entry, AI blocks included | `ecdk create <folder> --template entry` (the Entry workspace in an iframe, so it works only where the server's content CSP allows the workspace; the person builds the start and answer projects on the edit screen; general or AI grading; then [17](17-using-the-entry-template.md)) |
12
13
  | A dark screen | Add `--theme dark` to the above |
13
14
  | A problem description | Create with blank, set `metadata.json` to `{ "kind": "description", "screens": { "learn": { "enabled": true, "entry": "index.html" } }, "commentary": "commentary.txt" }`, delete the other screen files |
14
15
  | An existing HTML page | [7. Move existing HTML](07-move-existing-html.md) |
@@ -0,0 +1,59 @@
1
+ # 17. Using the Entry template
2
+
3
+ - **When to use it**: block coding or Entry Python practice in Entry (엔트리), including the AI blocks (인공지능 › 모델 학습하기). Create it with `ecdk create <folder> --template entry`. It is not in the LXP material type list, so make it with `ecdk create` and upload the zip. It has a student screen and an edit screen, and **no instructor screen** (`screens.instructor.enabled: false`): instructors get the student screen.
4
+ - **It needs the server to allow the workspace.** The screens show the Entry workspace in an `<iframe>` from another origin (`https://entry-workspace.elice.io`). The content CSP blocks it unless the server's content CSP lists that origin in `frame-src`; where it does not, the workspace area shows "엔트리를 열 수 없습니다." and nothing else works. Tell the person this before you build. Object pictures in the AI criteria rows stay empty for the same reason (`img-src`).
5
+ - **The inside of the workspace is not yours.** Blocks, menus and the stage come from the workspace. The project can change only the screen around it (`ui/`, `styles.css`, `screens/`) and what it passes in (the projects and the language). Hiding blocks or adding a workspace option needs a change in the workspace itself: tell the person it is a feature request. Do not edit `core/` (Always).
6
+
7
+ **Who makes what**
8
+
9
+ - **The start project and the answer project are Entry project JSON. Never write or change them yourself**, not in code and not in `.ecdk/settings.json`. The person builds them with blocks and objects in the workspace on the edit screen (the content edit view in `ecdk dev`, or the LXP edit screen after the upload) and presses "초안으로 저장".
10
+ - **You draft the words around them**: `commentary.txt` (what to make, blocks that must be used, when it is done; no answers, learners can read it), AI grading criteria and scores, and the completion policy. Give the criteria to the person as text to type in: each row belongs to an object of the answer project, so it can be filled in only after that project exists. Write them as one check each, like the edit screen's examples ("시작하면 x좌표를 100 이동하는가?").
11
+ - The student screen shows only the workspace and its bottom bar; there is no text area for the task. If learners must read the task on screen, suggest a problem description page before this one ([3](03-create-the-project.md), `kind: description`), or that the person writes it into the start project (for example a text box object).
12
+
13
+ **The edit screen**
14
+
15
+ - **"언어 선택"** at the top: "블록 코딩" (`block`) or "엔트리파이썬" (`python`). Changing it reloads the workspace.
16
+ - **"시작 화면" tab**: the project learners open first.
17
+ - **"채점 설정" tab**: the answer project (it opens with the saved answer, otherwise a copy of the current start project, so object ids match), then "채점 방식":
18
+ - **"일반 채점"**: the server compares the learner's project with the answer project, 0 or 100. The answer project needs at least one block script or global list, or the save is blocked.
19
+ - **"AI 채점"**: rows of 오브젝트 · 채점 기준 · 부분 점수, and the AI gives a partial score per row. 1–10 rows, each criterion up to 1,000 characters, integer scores 1–100 that sum to exactly 100 (`core/grading.js` `RUBRIC_LIMITS`). "자동 배점" splits 100 evenly and gives the rest to the last row (3 → 33 · 33 · 34). Every row picks one object of the answer project; there is no whole-project criterion. AI grading also needs a start project.
20
+ - A new material whose "채점 설정" tab was never opened saves with no grading.
21
+ - The chip under the project shows the size of the whole settings. The limit is 64KB (`core/settings.js` `LIMITS`); a bigger project cannot be saved.
22
+ - In an AI-graded material, changing a saved start project shows a warning. If learners already started, tell the person: work equal to the new start project scores 0, and learners who started from the old one may be graded wrong.
23
+
24
+ **Settings** (written by the edit screen; never by hand, 2 ②). `settings.entry` goes to every viewer, learners included, so never put an answer there:
25
+
26
+ ```json
27
+ {
28
+ "startProject": { "enc": "gzip+base64", "data": "…" },
29
+ "preference": { "workspaceMode": "block" }
30
+ }
31
+ ```
32
+
33
+ `settings.grading` holds the answer project and the criteria. It never goes to learners and never goes in the zip, like every template. `"mode": "general"` has only `type`, `mode` and `answer_project`:
34
+
35
+ ```json
36
+ {
37
+ "type": "entry",
38
+ "mode": "ai",
39
+ "answer_project": { "enc": "gzip+base64", "data": "…" },
40
+ "rubrics": [{ "object": "ik8o", "criteria": "…", "score": 100 }]
41
+ }
42
+ ```
43
+
44
+ Other settings keys are kept when the edit screen saves.
45
+
46
+ **Completion policy** (12 "Completion policy"): graded → `on_graded` ("답안 확인 후 완료"), only with `settings.grading` saved; without it every submission scores 0 and never completes. Submit only, no grading → `on_submit`. This template has no default policy on the server, so propose one with the upload.
47
+
48
+ **The student screen**
49
+
50
+ - It opens the learner's saved work, otherwise the start project, otherwise Entry's default project. It saves by itself 2 seconds after a change ("저장됨 …", kvstore up to 512KB). The tutoring view only reads; the editor preview does not save.
51
+ - "제출하기" sends the project (up to 64KB) and the server grades it with `settings.grading`. The bar shows "최종 제출 : N점 (time)". General grading shows "올바르게 작성했어요" or "틀렸어요. 다시 해보세요."; AI grading shows "AI 채점", waits up to 45 seconds, then "AI 피드백 보기" with feedback per criterion.
52
+ - In Python mode a syntax error stops saving and submitting until the code is fixed.
53
+ - **AI training (모델 학습하기)**: the material saves the training data and models in the learner's files (kit `app.learnerFiles`, SDK `learnerFiles`, a temporary API) and kvstore (`entryMl.*`), only on the student screen. The editor preview keeps them in memory, so a saved model cannot be opened again there. The edit screen does not save AI training at all, so a start project cannot carry a trained model: learners train their own. There is no model file upload or download.
54
+
55
+ **Checking it in `ecdk dev`**
56
+
57
+ - It needs an Entry workspace running at `http://localhost:9000`; ecdk does not include one (the template README, "로컬에서 확인"). `ecdk dev` adds that origin to its CSP. Without it the workspace area shows "엔트리를 불러오지 못했습니다." after a wait.
58
+ - `ecdk dev --check` sees only the first state and cannot look inside the workspace. Ask the person to build the projects and try the screens in the browser.
59
+ - Grading in `ecdk dev` is a mock: general gives 100 only when the project is exactly the answer project, and AI gives a size-based score with sample feedback. Real grading happens only on LXP.
@@ -17,6 +17,7 @@ Reference files are in `references/` in this skill's folder (see Always). For th
17
17
  - Stays on "Loading" or shows nothing: rebuild with the current `ecdk build` (it adapts the pages to the LXP sandbox) and check the built zip with `ecdk validate dist/content.zip`. Ask the person for the browser console error.
18
18
  - Upload rejected: check `ecdk validate dist/content.zip`; a material needs `commentary.txt` and every file named in `metadata.json`.
19
19
  - Screens show "학습 자료를 준비하고 있어요": nothing is saved yet; create the content in the edit screen (there is no default content file), and in LXP press '수업 자료에 반영' at the top of the edit page after saving the edit screen (`references/12-upload-with-the-material-mcp.md`, "Fallback").
20
+ - The Entry template shows "엔트리를 열 수 없습니다.": the server's content CSP does not allow the Entry workspace in `frame-src`; the project cannot fix it (`references/17-using-the-entry-template.md`).
20
21
  - Answers or grading wrong: check the answers on the edit screen (saving in the `ecdk dev` content edit view writes `.ecdk/settings.json`) and that the submitted answer string matches the regex (`references/02-design-the-material.md`, `references/06-using-the-quiz-template.md`). In `ecdk dev` a submission is graded only when grading is saved; otherwise it is only accepted. Completing at the wrong time is the completion policy, an LXP setting (Always).
21
22
  4. **Confirm.** `ecdk validate` has no errors, `ecdk dev --check` passes (or the person checked the dev URL), and `ecdk build --json` returns `ok: true`. Tell the person what caused it and what you changed.
22
23
 
@@ -15,7 +15,7 @@ Write the progress line `[n/N] …` before and after every step below (Always
15
15
 
16
16
  1. **Design before code.** Read `references/00-what-the-person-decides.md` and `references/02-design-the-material.md`. Decide ① what the student does, ② whether the student submits and the grading (`type` `pattern` or `rubric`, set on the edit screen; the quiz template uses `pattern`, so do not ask for a quiz; AI grading is `rubric` saved by the edit screen's `getGrading` and the student submits only the answer, never a score computed with `mlapi`, `references/05-screen-code.md` "AI grading") and which completion policy fits (the publish skill sets it after the person agrees; only `on_graded` grades, `on_submit` completes on any submission without grading), ③ the instructor screen (seen only in the LXP editor preview; instructors on the learning page see the student screen), ④ the content edit screen, ⑤ the purpose. Decide what the request leaves out and tell the person briefly; ask only when the learning goal is unclear. Then show the numbered plan.
17
17
  2. **Environment and project.** `ecdk --version && ecdk doctor --json` (`references/01-check-the-environment.md`, also for `cli.latest`), then `ecdk create --list` to pick a template and `ecdk create <folder> --template <name>` (`references/03-create-the-project.md`; it runs `npm install` for the SDK, so when that fails run `npm install` in the project). Start `ecdk dev <folder>` in the background now and give the person the URL.
18
- 3. **Write the screens.** Start from the template's example code and the kit API table at the top of `references/05-screen-code.md`; do not open `lib/` to learn the API (the table is the API). Follow its UI patterns (kit icon buttons, list rows, drop zones; the quiz template: `references/06-using-the-quiz-template.md`; a survey (opinions, feedback, self-assessment, no right answers): the survey template and `references/16-using-the-survey-template.md` for the settings shape, question-writing rules, personal data and where the answers are); an edit screen you write by hand follows `references/13-edit-screen-design.md` (kit classes, layout, microcopy); when a student or instructor screen has nothing to show, always use `app.emptyState()`, never your own empty-state markup, illustration or text (`references/05-screen-code.md`, "Nothing to show"), and write `commentary.txt` (key concepts and intent, no answers). There is no default content file: the content and answers are what the edit screen saves (`ecdk dev` writes `.ecdk/settings.json`, local by default; the elice-content-publish skill can send it with the upload after the person agrees, otherwise the person enters it in the LXP edit screen).
18
+ 3. **Write the screens.** Start from the template's example code and the kit API table at the top of `references/05-screen-code.md`; do not open `lib/` to learn the API (the table is the API). Follow its UI patterns (kit icon buttons, list rows, drop zones; the quiz template: `references/06-using-the-quiz-template.md`; a survey (opinions, feedback, self-assessment, no right answers): the survey template and `references/16-using-the-survey-template.md` for the settings shape, question-writing rules, personal data and where the answers are; block coding in Entry: the Entry template and `references/17-using-the-entry-template.md`, where the person builds the start and answer projects on the edit screen and you never write project JSON); an edit screen you write by hand follows `references/13-edit-screen-design.md` (kit classes, layout, microcopy); when a student or instructor screen has nothing to show, always use `app.emptyState()`, never your own empty-state markup, illustration or text (`references/05-screen-code.md`, "Nothing to show"), and write `commentary.txt` (key concepts and intent, no answers). There is no default content file: the content and answers are what the edit screen saves (`ecdk dev` writes `.ecdk/settings.json`, local by default; the elice-content-publish skill can send it with the upload after the person agrees, otherwise the person enters it in the LXP edit screen).
19
19
  - For a material that is not a quiz or a survey, start from the blank template and its content editor: design the content JSON shape and its schema first (`references/02-design-the-material.md` ④-1), put them in `screens/edit.js` (`useContentEditor(app, { initial, schema })`), then write the student screen against that shape. Replace the template's example everywhere it says `이 자료에 맞게 바꿀 곳`.
20
20
  - If the person describes the content (for example "5 questions about perceptrons"), fill it in so the upload can carry it: write `.ecdk/settings.json` in the shape `references/09-check.md` describes (the edit screen's content object at the top level, `grading` when graded), then have the person open the edit view in `ecdk dev`, check it and save with the edit screen's button, so the edit screen's own validation runs. Draft the answers, but the person confirms them before any upload (Always). One quiz material holds up to 20 questions (`references/06-using-the-quiz-template.md`): put them all in one material; only more than 20 means several quiz materials (pages). If the person prefers, give the content as draft text (the content editor: one JSON block for 코드 보기) to enter in the LXP edit screen instead.
21
21
  4. **Check each screen** with `ecdk dev <folder> --check --screens <screen>` after you write it (`references/09-check.md`), fix what it reports (error ids: `references/08-fix-check-errors.md`). The person looks at the screens too.
@@ -5,7 +5,7 @@ description: Change an existing Elice Custom HTML learning material made with ec
5
5
 
6
6
  # Change an existing Elice learning material
7
7
 
8
- Reference files are in `references/` in this skill's folder (see Always). For this skill: `references/15-edit-settings-by-hand.md` (what each settings key means, building answer regexes with `core/model.js`, example diffs), `references/00-what-the-person-decides.md`, for a quiz `references/06-using-the-quiz-template.md`, and for a survey `references/16-using-the-survey-template.md` (keep question and option ids, no `grading`, its writing rules and checklist).
8
+ Reference files are in `references/` in this skill's folder (see Always). For this skill: `references/15-edit-settings-by-hand.md` (what each settings key means, building answer regexes with `core/model.js`, example diffs), `references/00-what-the-person-decides.md`, for a quiz `references/06-using-the-quiz-template.md`, and for a survey `references/16-using-the-survey-template.md` (keep question and option ids, no `grading`, its writing rules and checklist), and for the Entry template `references/17-using-the-entry-template.md` (its projects and grading are changed only on its edit screen, never by hand).
9
9
 
10
10
  {{always}}
11
11
 
@@ -7,7 +7,7 @@
7
7
  "validate": "ecdk validate"
8
8
  },
9
9
  "dependencies": {
10
- "@eliceio/cdk": "workspace:^1.3.0"
10
+ "@eliceio/cdk": "workspace:^1.6.0"
11
11
  },
12
12
  "ecdk": {}
13
13
  }
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "entry",
3
- "version": "0.2.4",
4
- "title": "엔트리 코딩",
5
- "description": "엔트리 워크스페이스로 블록 코딩을 합니다. 편집 화면에서 언어 · 시작 화면 작품 · 채점(일반 · AI 채점 기준)을 정하고, 학생 작품은 자동 저장되며 제출하면 서버가 채점합니다"
3
+ "version": "0.2.5",
4
+ "title": "엔트리",
5
+ "description": "엔트리로 블록 코딩 실습을 합니다",
6
+ "catalog": {
7
+ "category": "practice",
8
+ "icon": "exercise",
9
+ "sortOrder": 30,
10
+ "thumbnailUrl": "https://static.elice.io/elice-material/custom/templates/entry/thumbnail.png",
11
+ "previewUrl": "https://static.elice.io/elice-material/custom/templates/entry/preview.png",
12
+ "defaultCompletionPolicy": "on_graded"
13
+ }
6
14
  }