@eliceio/cdk-cli 1.4.1 → 1.5.1-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 +17 -16
- package/es/cli.js +1 -1
- package/es/commands/create/index.js +1 -0
- package/es/commands/create/scaffold.d.ts +1 -1
- package/es/commands/create/scaffold.js +1 -1
- package/es/core/config.d.ts +36 -0
- package/es/core/config.js +234 -6
- package/es/core/quiz-check.js +123 -4
- package/es/dev/grading.d.ts +26 -4
- package/es/dev/grading.js +66 -11
- package/es/dev/mock-api.d.ts +6 -1
- package/es/dev/mock-api.js +45 -6
- package/es/rules/answers.d.ts +1 -0
- package/es/rules/answers.js +8 -0
- package/es/rules.json.js +1 -1
- package/package.json +2 -2
- package/rules.json +1 -1
- package/skills/_shared/always.md +1 -1
- package/skills/_shared/references/02-design-the-material.md +8 -7
- package/skills/_shared/references/03-create-the-project.md +10 -9
- package/skills/_shared/references/12-upload-with-the-material-mcp.md +5 -5
- package/skills/_shared/references/16-using-the-survey-template.md +158 -0
- package/skills/elice-content-create/SKILL.md +2 -2
- package/skills/elice-content-edit/SKILL.md +2 -2
- package/skills/elice-content-publish/SKILL.md +1 -1
- package/templates/_shared/lib/cdk-mock.d.ts +22 -3
- package/templates/_shared/lib/cdk-mock.js +78 -11
- package/templates/_shared/lib/elice-content.d.ts +17 -1
- package/templates/_shared/lib/elice-content.js +47 -5
- package/templates/blank/template.json +1 -1
- package/templates/document/template.json +2 -2
- package/templates/quiz/README.md +26 -1
- package/templates/quiz/core/behaviors.d.ts +5 -0
- package/templates/quiz/core/behaviors.js +16 -1
- package/templates/quiz/core/model.d.ts +78 -1
- package/templates/quiz/core/model.js +219 -4
- package/templates/quiz/screens/edit.js +244 -55
- package/templates/quiz/screens/learn.js +137 -27
- package/templates/quiz/styles.css +258 -5
- package/templates/quiz/template.json +1 -1
- package/templates/quiz/ui/templates/edit.d.ts +1 -0
- package/templates/quiz/ui/templates/edit.js +67 -8
- package/templates/quiz/ui/templates/page.js +34 -0
- package/templates/quiz/ui/templates/text.js +15 -2
- package/templates/quiz/ui/texts.js +61 -0
- package/templates/steps/template.json +1 -1
- package/templates/survey/README.md +112 -0
- package/templates/survey/commentary.txt +2 -0
- package/templates/survey/core/behaviors.d.ts +14 -0
- package/templates/survey/core/behaviors.js +115 -0
- package/templates/survey/core/dom.d.ts +13 -0
- package/templates/survey/core/dom.js +83 -0
- package/templates/survey/core/editor.d.ts +80 -0
- package/templates/survey/core/editor.js +720 -0
- package/templates/survey/core/markdown.d.ts +21 -0
- package/templates/survey/core/markdown.js +298 -0
- package/templates/survey/core/model.d.ts +83 -0
- package/templates/survey/core/model.js +209 -0
- package/templates/survey/core/rich-text.d.ts +18 -0
- package/templates/survey/core/rich-text.js +469 -0
- package/templates/survey/edit.html +26 -0
- package/templates/survey/gitignore +4 -0
- package/templates/survey/index.html +26 -0
- package/templates/survey/metadata.json +9 -0
- package/templates/survey/package.json +13 -0
- package/templates/survey/screens/edit.js +345 -0
- package/templates/survey/screens/learn.js +100 -0
- package/templates/survey/styles.css +1264 -0
- package/templates/survey/template.json +12 -0
- package/templates/survey/ui/templates/edit.d.ts +27 -0
- package/templates/survey/ui/templates/edit.js +656 -0
- package/templates/survey/ui/templates/index.d.ts +3 -0
- package/templates/survey/ui/templates/index.js +3 -0
- package/templates/survey/ui/templates/learn.js +147 -0
- package/templates/survey/ui/templates/page.js +19 -0
- package/templates/survey/ui/texts.d.ts +3 -0
- package/templates/survey/ui/texts.js +116 -0
- package/templates/survey/ui/theme.css +42 -0
- package/templates/video/template.json +1 -1
package/README.md
CHANGED
|
@@ -125,6 +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 # 수업 설문(척도 · 단일 · 다중 선택 · 서술형): 정답 · 채점 없음, 완료 정책은 "제출 시 완료"(on_submit) 권장
|
|
128
129
|
ecdk create my-quiz --theme dark # 어두운 화면
|
|
129
130
|
ecdk create --list # 템플릿 목록 · 버전 · 설명
|
|
130
131
|
cd my-quiz
|
|
@@ -142,7 +143,7 @@ cd my-quiz
|
|
|
142
143
|
| `metadata.json` | 화면 구성 · 학습 참고 내용 (build가 `build`만 채움) |
|
|
143
144
|
| `package.json` | SDK 버전(`@eliceio/cdk`) · 빌드 옵션 `"ecdk"` (zip에 들어가지 않음) |
|
|
144
145
|
|
|
145
|
-
퀴즈 템플릿에는 교육자 화면이 없습니다: LXP에서 교육자가 열면 학생 화면이 열려 직접 풀어 볼 수 있습니다 (제출은 채점만, 기록 안 됨). blank 템플릿에는 교육자 화면(`screens/instructor.js` · `instructor.html`)도 있습니다. 교육자 화면은 LXP 편집기 미리보기의 교육자 전환에서만 보이고, 학습 페이지에서는 교육자도 학생 화면을 봅니다 (ADR 0014). steps 템플릿도 교육자 화면을 켜지 않습니다. document 템플릿도 교육자 화면이 없습니다 (교육자는 학생 화면에서 문서를 봄).
|
|
146
|
+
퀴즈 템플릿에는 교육자 화면이 없습니다: LXP에서 교육자가 열면 학생 화면이 열려 직접 풀어 볼 수 있습니다 (제출은 채점만, 기록 안 됨). blank 템플릿에는 교육자 화면(`screens/instructor.js` · `instructor.html`)도 있습니다. 교육자 화면은 LXP 편집기 미리보기의 교육자 전환에서만 보이고, 학습 페이지에서는 교육자도 학생 화면을 봅니다 (ADR 0014). steps 템플릿도 교육자 화면을 켜지 않습니다. document 템플릿도 교육자 화면이 없습니다 (교육자는 학생 화면에서 문서를 봄). survey 템플릿도 교육자 화면을 켜지 않습니다. survey 템플릿은 채점 설정(`grading`)이 없어, 완료 정책은 "제출 시 완료"(`on_submit`)를 권합니다 (`on_graded`는 서버가 거절).
|
|
146
147
|
|
|
147
148
|
내용(문항 · 텍스트)과 정답은 파일이 아니라 **편집 화면**이 저장한 것(`settings`)입니다 (ADR 0011). 기본 내용 파일이 없어서 저장하기 전에는 학생 · 교육자 화면이 빈 안내(그림 + "학습 자료를 준비하고 있어요")를 보입니다. `ecdk dev`의 내용 편집에서 저장한 것(내용 + 정답)은 `.ecdk/settings.json`에 남습니다. 이 파일은 zip에 들어가지 않고 기본으로는 로컬에만 있으며, publish 스킬(elice-material MCP)로 올릴 때 요약을 보고 동의하면 업로드와 함께 보냅니다 (서버 MCP가 `settings`를 받을 때). 보내지 않으면 LXP에 올린 뒤 편집 화면에서 입력합니다.
|
|
148
149
|
|
|
@@ -215,7 +216,7 @@ frame-ancestors {LXP_ORIGINS}
|
|
|
215
216
|
``` 파일을 브라우저로 직접 열면(`file://`) 운영과 조건이 달라 확인이 되지 않습니다.
|
|
216
217
|
|
|
217
218
|
```bash
|
|
218
|
-
ecdk build # [ok] dist/content.zip · 파일 6개 · 149.4KB (엔진 vite, 규칙 0.
|
|
219
|
+
ecdk build # [ok] dist/content.zip · 파일 6개 · 149.4KB (엔진 vite, 규칙 0.21.0)
|
|
219
220
|
````
|
|
220
221
|
|
|
221
222
|
`[ok]`면 서버와 같은 규칙을 통과한 것입니다. 오류는 규칙 id로 [검사 규칙](#검사-규칙)을 찾습니다.
|
|
@@ -529,19 +530,19 @@ q1=b;q2=a,d;q3=c,a,b;q4=가중치;q5=g1:a|g2:b,c
|
|
|
529
530
|
|
|
530
531
|
공통 옵션: `--json`(기계용 출력), `--help`, `--version`
|
|
531
532
|
|
|
532
|
-
| 명령
|
|
533
|
-
|
|
|
534
|
-
| `ecdk create <폴더> [--template quiz\|blank\|steps\|document] [--theme light\|dark] [--no-install]` · `ecdk create --list` | 프로젝트 만들기 (비어 있지 않은 폴더는 거절) + `npm install`(SDK). `--no-install`은 설치를 건너뜀. `--list`는 템플릿 목록 · 버전 · 설명 | 0 · 1 설치 실패(프로젝트는 둠) · 2 |
|
|
535
|
-
| `ecdk dev [폴더] [--port 4170]`
|
|
536
|
-
| `ecdk dev [폴더] --check [--screens …] [--viewport desktop,mobile] [--step all\|1,2] [--theme light\|dark\|all] [--json]`
|
|
537
|
-
| `ecdk validate [폴더\|.zip\|.html]`
|
|
538
|
-
| `ecdk build [폴더]`
|
|
539
|
-
| `ecdk doctor [폴더] [--fix]`
|
|
540
|
-
| `ecdk setup [--only skills\|mcp] [--project] [--url <주소>] [--target claude\|helpycode\|all] [--force]`
|
|
541
|
-
| `ecdk setup --only skills [--project] [--force]`
|
|
542
|
-
| `ecdk setup --only mcp [--url <주소>] [--target claude\|helpycode\|all] [--force]`
|
|
543
|
-
| `ecdk update [--project] [--check]`
|
|
544
|
-
| `ecdk uninstall [--only skills\|mcp] [--project] [--target claude\|helpycode\|all] [--force]`
|
|
533
|
+
| 명령 | 하는 일 | 종료 코드 |
|
|
534
|
+
| ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
|
|
535
|
+
| `ecdk create <폴더> [--template quiz\|blank\|steps\|document\|survey] [--theme light\|dark] [--no-install]` · `ecdk create --list` | 프로젝트 만들기 (비어 있지 않은 폴더는 거절) + `npm install`(SDK). `--no-install`은 설치를 건너뜀. `--list`는 템플릿 목록 · 버전 · 설명 | 0 · 1 설치 실패(프로젝트는 둠) · 2 |
|
|
536
|
+
| `ecdk dev [폴더] [--port 4170]` | LXP 흉내 화면 + 운영 조건(다른 출처 · sandbox · 콘텐츠 CSP)으로 콘텐츠 띄우기, 막힌 외부 요청 알림, 고치면 다시 검사 · 새로 띄움 | Ctrl+C |
|
|
537
|
+
| `ecdk dev [폴더] --check [--screens …] [--viewport desktop,mobile] [--step all\|1,2] [--theme light\|dark\|all] [--json]` | 같은 서버를 띄워 화면 × 폭마다 헤드리스 브라우저로 열고 확인(그려짐 · 콘솔 오류 · 예외 · 막힌 요청 · 실패한 요청 · 가로 넘침) → 그림 `.ecdk/screens/` → 끝냄 | 0 · 1 문제 있음 · 2 · 3 브라우저 없음 |
|
|
538
|
+
| `ecdk validate [폴더\|.zip\|.html]` | 서버와 같은 규칙으로 검사 (프로젝트는 `ecdk build` 결과를 검사) | 0 통과 · 1 오류 · 2 |
|
|
539
|
+
| `ecdk build [폴더]` | 빼기 → SDK 넣기(`node_modules`) → metadata → 묶기 · 묶은 원본 빼기 → minify(기본) → 검사 → `dist/content.zip` | 0 · 1 검사 오류(zip 없음) · 2 설정 오류 · SDK 미설치 |
|
|
540
|
+
| `ecdk doctor [폴더] [--fix]` | 환경 · 프로젝트 점검, `--fix`는 자동으로 고칠 수 있는 항목만 | 0 · 1 실패 · 2 |
|
|
541
|
+
| `ecdk setup [--only skills\|mcp] [--project] [--url <주소>] [--target claude\|helpycode\|all] [--force]` | 처음 한 번: 스킬 설치(전역) → MCP 등록 → 점검 요약(Node · 스킬 · MCP) → 로그인 안내. 다시 실행해도 됨(있는 것은 건너뛰고 옛 것 · 빠진 것만 고침). MCP는 배포 전 · 직접 할 일이 남아도 실패로 치지 않음("직접 할 일"), `--only` 없이는 `--force`가 MCP에만 | 0 스킬 설치됨 · 1 스킬 실패 · 2 |
|
|
542
|
+
| `ecdk setup --only skills [--project] [--force]` | Claude Code 스킬만 설치 · 갱신. 기본 `~/.claude/skills/`, `--project`면 현재 폴더 `.claude/skills/`. 손으로 고친 스킬 · CLI보다 새 스킬은 `--force`일 때만 바꿈 | 0 · 1 고친 스킬 둠 · 2 |
|
|
543
|
+
| `ecdk setup --only mcp [--url <주소>] [--target claude\|helpycode\|all] [--force]` | 학습자료 서버 MCP(`elice-material`)만 Claude Code · Helpy Code에 등록. 주소는 기본 운영 서버, 다른 서버는 `--url`. 등록 전 서버에 MCP가 있는지 확인(없으면 `--force`), Helpy Code 설정에 주석이 있으면 붙여 넣을 내용만 출력 | 0 · 1 직접 할 일 · 2 |
|
|
544
|
+
| `ecdk update [--project] [--check]` | npm `latest`로 올리기: `npm install -g @eliceio/cdk-cli@<latest>` → 새 ecdk로 `ecdk setup --only skills`(`--project`면 `--only skills --project`, 현재 폴더 `.claude/skills/`) → 프로젝트 폴더면 `npm update @eliceio/cdk`. 같거나 더 새 버전이면 하지 않음(내리지 않음), `npx`면 전역 설치 건너뛰고 스킬은 `npx -y @eliceio/cdk-cli@<latest> setup --only skills`, `--check`는 확인만 | 0 · 1 확인 실패 · 단계 실패 · 2 |
|
|
545
|
+
| `ecdk uninstall [--only skills\|mcp] [--project] [--target claude\|helpycode\|all] [--force]` | `ecdk setup`이 설치한 스킬 5개(옛 ecdk가 다른 이름으로 설치한 스킬 · 옛 가이드 스킬 포함) · MCP 등록(`elice-material`) 지우기. `--only`는 setup과 같음(스킬만 · MCP 등록만), `--project`는 `--only skills`에서만. 손으로 고친 스킬은 `--force`일 때만, 다른 스킬 · MCP 서버 · 프로젝트는 건드리지 않음. CLI는 지우지 않음 ([지우기](#지우기)) | 0 · 1 남긴 것 · 직접 할 일 · 2 |
|
|
545
546
|
|
|
546
547
|
`--json` 출력의 `issues[].id`는 바뀌지 않는 이름이라 스크립트 · Claude가 판단에 씁니다.
|
|
547
548
|
|
|
@@ -549,7 +550,7 @@ q1=b;q2=a,d;q3=c,a,b;q4=가중치;q5=g1:a|g2:b,c
|
|
|
549
550
|
|
|
550
551
|
## 검사 규칙
|
|
551
552
|
|
|
552
|
-
`ecdk validate` · `ecdk build`와 서버 업로드 검사가 같은 규칙 파일(`rules.json`, 지금 0.
|
|
553
|
+
`ecdk validate` · `ecdk build`와 서버 업로드 검사가 같은 규칙 파일(`rules.json`, 지금 0.21.0)을 씁니다. **오류**는 zip을 만들지 않고 업로드도 거절됩니다. **경고**는 통과하지만 확인이 필요합니다.
|
|
553
554
|
|
|
554
555
|
<!-- 검사 규칙 표: rules.json의 모든 id가 있어야 한다 (src/readme.test.ts가 확인) -->
|
|
555
556
|
|
package/es/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ import { VERSION } from './version.js';
|
|
|
14
14
|
const help = `ecdk ${VERSION} · Elice CDK CLI (Custom HTML 콘텐츠 도구)
|
|
15
15
|
|
|
16
16
|
명령:
|
|
17
|
-
create <폴더> 새 프로젝트 + npm install (--template quiz|blank|steps|document, --theme light|dark, --no-install, --list로 템플릿 목록)
|
|
17
|
+
create <폴더> 새 프로젝트 + npm install (--template quiz|blank|steps|document|survey, --theme light|dark, --no-install, --list로 템플릿 목록)
|
|
18
18
|
validate [경로] 업로드 전 검사 (서버와 같은 규칙)
|
|
19
19
|
build [폴더] 정답·비밀 제외 → 검사 → content.zip
|
|
20
20
|
dev [폴더] 운영과 같은 조건의 로컬 서버 (--port, --check로 화면마다 헤드리스 브라우저 확인 · 그림)
|
|
@@ -12,6 +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: 수업 설문(척도 · 단일 · 다중 선택 · 서술형, 필수 응답). 정답 · 채점 없음, 완료 정책은 "제출 시 완료"(on_submit) 권장
|
|
15
16
|
video: 영상 한 편 보기. Elice 비디오 플레이어로 편집 화면에서 올리고, 끝까지 보면 자동 제출
|
|
16
17
|
--list: 템플릿 목록과 버전 · 설명 (템플릿마다 버전이 따로 있음)
|
|
17
18
|
--theme dark: Elice Design System 어두운 화면 (기본 light)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TEMPLATES: readonly ["quiz", "blank", "steps", "document", "video"];
|
|
1
|
+
export declare const TEMPLATES: readonly ["quiz", "blank", "steps", "document", "survey", "video"];
|
|
2
2
|
export type TemplateName = (typeof TEMPLATES)[number];
|
|
3
3
|
/** 화면 테마. dark는 화면 HTML에 data-eds-theme="dark"를 붙여 EDS 어두운 팔레트를 쓴다 */
|
|
4
4
|
export declare const THEMES: readonly ["light", "dark"];
|
|
@@ -5,7 +5,7 @@ import { SDK_PACKAGE } from '../../core/sdk.js';
|
|
|
5
5
|
import { listTemplates } from '../../core/templates.js';
|
|
6
6
|
import { localSdkSpec } from './install.js';
|
|
7
7
|
|
|
8
|
-
const TEMPLATES = ['quiz', 'blank', 'steps', 'document', 'video'];
|
|
8
|
+
const TEMPLATES = ['quiz', 'blank', 'steps', 'document', 'survey', 'video'];
|
|
9
9
|
/** 화면 테마. dark는 화면 HTML에 data-eds-theme="dark"를 붙여 EDS 어두운 팔레트를 쓴다 */
|
|
10
10
|
const THEMES = ['light', 'dark'];
|
|
11
11
|
/** 패키지 루트의 templates/ (es/commands/create/와 src/commands/create/ 모두 세 단계 위) */
|
package/es/core/config.d.ts
CHANGED
|
@@ -11,6 +11,34 @@ export declare const ANSWER_KEY_MAX = 500;
|
|
|
11
11
|
export declare const PARTIAL_ITEMS_MAX = 50;
|
|
12
12
|
/** 서버 rubric 평가 기준 최대 글자 수 (GradingRubric.rubric max_length) */
|
|
13
13
|
export declare const RUBRIC_MAX = 10000;
|
|
14
|
+
/**
|
|
15
|
+
* 문항별 채점 per_question (정규식 · AI 채점 문항을 섞음, elice-material #65 · 퀴즈 1.11.0). 서버 GradingPerQuestion과 같은 규칙으로 검사한다.
|
|
16
|
+
* rules.json graderTypes(GRADER_TYPES)에는 아직 없다: 검사 규칙 엔진은 그 목록을 쓰지 않아 규칙 버전을 따로 올릴 때 더한다
|
|
17
|
+
*/
|
|
18
|
+
export declare const PER_QUESTION_TYPE = "per_question";
|
|
19
|
+
/** per_question 문항 수 상한 (서버 GradingPerQuestion.questions max_length) */
|
|
20
|
+
export declare const PER_QUESTION_MAX = 50;
|
|
21
|
+
/** per_question AI 채점(rubric) 문항 수 상한 (서버 _MAX_RUBRIC_QUESTIONS) */
|
|
22
|
+
export declare const RUBRIC_QUESTIONS_MAX = 10;
|
|
23
|
+
/** AI 채점 문항의 문제 글(grader.question) 최대 글자 수 (서버 RubricGrader.question) */
|
|
24
|
+
export declare const RUBRIC_QUESTION_MAX = 2000;
|
|
25
|
+
/** 1.11.0 개발 중 쓴 제안 이름. 서버는 받지 않는다 (422 union_tag_invalid) */
|
|
26
|
+
export declare const ITEMS_TYPE = "items";
|
|
27
|
+
/** per_question 문항 하나 (자리 = 답 배열 자리) */
|
|
28
|
+
export interface GradingQuestion {
|
|
29
|
+
/** 배점 0~100 정수 */
|
|
30
|
+
score: number;
|
|
31
|
+
grader: {
|
|
32
|
+
type: 'pattern'; /** 정답 정규식 */
|
|
33
|
+
answer_key: string;
|
|
34
|
+
} | {
|
|
35
|
+
type: 'rubric';
|
|
36
|
+
/** AI 채점 기준 (10,000자까지) */
|
|
37
|
+
rubric: string;
|
|
38
|
+
/** AI에 같이 보내는 문제 글 (2,000자까지, 없으면 '') */
|
|
39
|
+
question?: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
14
42
|
/**
|
|
15
43
|
* 채점 설정 = 운영 `settings.grading` (서버 §5.1 스키마, 2026-11-11 결정). 편집 화면이 saveSettings로 저장한다.
|
|
16
44
|
* 로컬은 `ecdk dev`의 편집 화면이 저장한 settings(`.ecdk/settings.json`)의 grading뿐이다 (grading.json은 없앰, ADR 0011).
|
|
@@ -33,6 +61,12 @@ export type GradingConfig = {
|
|
|
33
61
|
} | {
|
|
34
62
|
type: 'rubric'; /** 평가 기준 */
|
|
35
63
|
rubric: string;
|
|
64
|
+
} | {
|
|
65
|
+
type: 'per_question';
|
|
66
|
+
/** 문항별 배점 · 채점기 (1~50개, 배점 합 100 이상, AI 채점 10개까지) */
|
|
67
|
+
questions: GradingQuestion[];
|
|
68
|
+
/** 통과 점수 1~100 (없으면 100): on_graded면 합이 이 점수 이상일 때 완료 */
|
|
69
|
+
pass_score?: number;
|
|
36
70
|
};
|
|
37
71
|
/**
|
|
38
72
|
* 로컬 채점 흉내에 쓰는 값: 저장한 settings의 채점 설정(`.ecdk/settings.json` grading). 채점 설정이 있으면 채점하고,
|
|
@@ -52,6 +86,8 @@ export declare const SETTINGS_DATA_FILE = ".ecdk/settings.json";
|
|
|
52
86
|
* 옛 모양(`type: on_access · on_submit`, `completion_policy` · `grader_type`, `match` · 객체 정답)은 바꾸는 법을 알려 준다.
|
|
53
87
|
*/
|
|
54
88
|
export declare function parseGrading(data: unknown): GradingConfig | string;
|
|
89
|
+
/** 옛 제안 items: 서버가 받지 않는다 (422 union_tag_invalid). 퀴즈 1.11.0 편집 화면에서 다시 저장하면 per_question으로 바뀐다 */
|
|
90
|
+
export declare const ITEMS_REJECTED = "grading.type \"items\"\uB294 1.11.0 \uAC1C\uBC1C \uC911\uC758 \uC81C\uC548 \uD615\uC2DD\uC774\uB77C \uC11C\uBC84\uAC00 \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 (422 union_tag_invalid). \uD034\uC988 \uD3B8\uC9D1 \uD654\uBA74(ecdk dev '\uB0B4\uC6A9 \uD3B8\uC9D1')\uC5D0\uC11C \uD55C \uBC88 \uC800\uC7A5\uD558\uBA74 per_question\uC73C\uB85C \uB2E4\uC2DC \uC800\uC7A5\uB429\uB2C8\uB2E4.";
|
|
55
91
|
/** 서버가 settings 저장(PATCH draft)에서 채점 설정을 거절할 때 pydantic 오류 하나 (422 VALIDATION_ERROR의 details 항목) */
|
|
56
92
|
export interface ServerGradingError {
|
|
57
93
|
type: string;
|
package/es/core/config.js
CHANGED
|
@@ -19,12 +19,25 @@ const ANSWER_KEY_MAX = 500;
|
|
|
19
19
|
const PARTIAL_ITEMS_MAX = 50;
|
|
20
20
|
/** 서버 rubric 평가 기준 최대 글자 수 (GradingRubric.rubric max_length) */
|
|
21
21
|
const RUBRIC_MAX = 10_000;
|
|
22
|
+
/**
|
|
23
|
+
* 문항별 채점 per_question (정규식 · AI 채점 문항을 섞음, elice-material #65 · 퀴즈 1.11.0). 서버 GradingPerQuestion과 같은 규칙으로 검사한다.
|
|
24
|
+
* rules.json graderTypes(GRADER_TYPES)에는 아직 없다: 검사 규칙 엔진은 그 목록을 쓰지 않아 규칙 버전을 따로 올릴 때 더한다
|
|
25
|
+
*/
|
|
26
|
+
const PER_QUESTION_TYPE = 'per_question';
|
|
27
|
+
/** per_question 문항 수 상한 (서버 GradingPerQuestion.questions max_length) */
|
|
28
|
+
const PER_QUESTION_MAX = 50;
|
|
29
|
+
/** per_question AI 채점(rubric) 문항 수 상한 (서버 _MAX_RUBRIC_QUESTIONS) */
|
|
30
|
+
const RUBRIC_QUESTIONS_MAX = 10;
|
|
31
|
+
/** AI 채점 문항의 문제 글(grader.question) 최대 글자 수 (서버 RubricGrader.question) */
|
|
32
|
+
const RUBRIC_QUESTION_MAX = 2000;
|
|
33
|
+
/** 1.11.0 개발 중 쓴 제안 이름. 서버는 받지 않는다 (422 union_tag_invalid) */
|
|
34
|
+
const ITEMS_TYPE = 'items';
|
|
22
35
|
/**
|
|
23
36
|
* 로컬 settings (dev 전용): `ecdk dev` 편집 화면의 saveSettings(PATCH /draft settings)를 흉내 서버가 통째로(내용 + grading) 여기에 쓴다.
|
|
24
37
|
* 운영은 서버 material_version.settings. 프로젝트의 점(.) 폴더라 zip에 들어가지 않는다. build · check는 읽지 않는다
|
|
25
38
|
*/
|
|
26
39
|
const SETTINGS_DATA_FILE = '.ecdk/settings.json';
|
|
27
|
-
const GRADING_DATA_KEYS = ['type', 'answer_key', 'scores', 'rubric'];
|
|
40
|
+
const GRADING_DATA_KEYS = ['type', 'answer_key', 'scores', 'rubric', 'questions', 'pass_score'];
|
|
28
41
|
/**
|
|
29
42
|
* 채점 설정 값 검사 (편집 화면이 저장한 settings.grading). 문제가 있으면 문장, 없으면 GradingConfig.
|
|
30
43
|
* 옛 모양(`type: on_access · on_submit`, `completion_policy` · `grader_type`, `match` · 객체 정답)은 바꾸는 법을 알려 준다.
|
|
@@ -36,6 +49,7 @@ function parseGrading(data) {
|
|
|
36
49
|
if (COMPLETION_POLICY_VALUES.includes(record.type)) return `완료 정책(${String(record.type)})은 grading에 적지 않습니다. 완료 정책은 LXP에 올린 뒤 자료 편집 화면의 '설정'에서 교육자가 고릅니다 (ADR 0012). grading은 { "type": "${GRADER_TYPES.join('" | "')}" }만.`;
|
|
37
50
|
if (record.completion_policy !== undefined || record.grader_type !== undefined) return `completion_policy · grader_type은 쓰지 않습니다 (2026-11-11 결정: grading은 type 모양 그대로). ${example}`;
|
|
38
51
|
if (record.match !== undefined || record.type !== 'partial_pattern' && record.answer_key !== undefined && typeof record.answer_key !== 'string') return `옛 형식입니다 (match · 객체 정답). 정답은 정규식 문자열 하나입니다: { "type": "pattern", "answer_key": "^q1=b;q2=a,d$" }. 퀴즈는 ecdk dev의 내용 편집에서 정답을 다시 고르면 새 형식으로 저장됩니다.`;
|
|
52
|
+
if (record.type === ITEMS_TYPE) return ITEMS_REJECTED;
|
|
39
53
|
const unknown = Object.keys(record).filter(k => !GRADING_DATA_KEYS.includes(k));
|
|
40
54
|
if (unknown.length > 0) return `알 수 없는 필드입니다: ${unknown.join(', ')} (가능: ${GRADING_DATA_KEYS.join(', ')})`;
|
|
41
55
|
const {
|
|
@@ -43,7 +57,8 @@ function parseGrading(data) {
|
|
|
43
57
|
answer_key: answerKey,
|
|
44
58
|
rubric
|
|
45
59
|
} = record;
|
|
46
|
-
|
|
60
|
+
if (type === PER_QUESTION_TYPE) return parsePerQuestionGrading(record.questions, record);
|
|
61
|
+
const typeError = graderTypeError(type, [...GRADER_TYPES, PER_QUESTION_TYPE]);
|
|
47
62
|
if (typeError) return `type: ${typeError}`;
|
|
48
63
|
if (type === 'pattern') {
|
|
49
64
|
if (typeof answerKey !== 'string' || answerKey.trim() === '') return 'pattern 채점에는 정답 정규식 answer_key(문자열)가 필요합니다. 예: "^q1=b$"';
|
|
@@ -100,6 +115,81 @@ function parsePartialGrading(answerKey, scores) {
|
|
|
100
115
|
scores: [...scores]
|
|
101
116
|
};
|
|
102
117
|
}
|
|
118
|
+
/** 옛 제안 items: 서버가 받지 않는다 (422 union_tag_invalid). 퀴즈 1.11.0 편집 화면에서 다시 저장하면 per_question으로 바뀐다 */
|
|
119
|
+
const ITEMS_REJECTED = `grading.type "items"는 1.11.0 개발 중의 제안 형식이라 서버가 받지 않습니다 (422 union_tag_invalid). 퀴즈 편집 화면(ecdk dev '내용 편집')에서 한 번 저장하면 per_question으로 다시 저장됩니다.`;
|
|
120
|
+
/** JSON 정수 (true · 1.5 · "10"은 아님, 서버 StrictInt와 같게) */
|
|
121
|
+
const isStrictInt = n => typeof n === 'number' && Number.isInteger(n);
|
|
122
|
+
/**
|
|
123
|
+
* per_question 설정 검사 (서버 GradingPerQuestion과 같은 규칙, 어기면 서버는 422): 문항 1~50 · 배점 0~100 정수 · 합 100 이상 ·
|
|
124
|
+
* grader.type pattern(정규식 500자 이하 · 컴파일됨) | rubric(채점 기준 10,000자 · 문제 글 2,000자 이하) · AI 채점 10개 이하 ·
|
|
125
|
+
* pass_score(있으면) 1~100 정수
|
|
126
|
+
*/
|
|
127
|
+
function parsePerQuestionGrading(questions, record) {
|
|
128
|
+
const example = '예: { "type": "per_question", "questions": [{ "score": 50, "grader": { "type": "pattern", "answer_key": "^q1=b$" } }, { "score": 50, "grader": { "type": "rubric", "rubric": "…", "question": "문제 글" } }], "pass_score": 60 }';
|
|
129
|
+
if (!Array.isArray(questions)) return `per_question 채점에는 문항 배열 questions가 필요합니다. ${example}`;
|
|
130
|
+
if (questions.length < 1 || questions.length > PER_QUESTION_MAX) return `per_question 문항은 1~${PER_QUESTION_MAX}개입니다 (지금 ${questions.length}개).`;
|
|
131
|
+
const out = [];
|
|
132
|
+
for (const [i, item] of questions.entries()) {
|
|
133
|
+
if (typeof item !== 'object' || item === null || Array.isArray(item)) return `questions[${i}]: 객체여야 합니다. ${example}`;
|
|
134
|
+
const {
|
|
135
|
+
score,
|
|
136
|
+
grader
|
|
137
|
+
} = item;
|
|
138
|
+
if (!isStrictInt(score) || score < 0 || score > 100) return `questions[${i}].score: 배점은 0~100 정수입니다 (지금 ${JSON.stringify(score)}).`;
|
|
139
|
+
if (typeof grader !== 'object' || grader === null || Array.isArray(grader)) return `questions[${i}]: 채점기 grader({ "type": "pattern" | "rubric", … })가 필요합니다.`;
|
|
140
|
+
const g = grader;
|
|
141
|
+
if (g.type === 'pattern') {
|
|
142
|
+
const key = g.answer_key;
|
|
143
|
+
if (typeof key !== 'string' || key.trim() === '') return `questions[${i}].grader: pattern에는 정답 정규식 answer_key(문자열)가 필요합니다.`;
|
|
144
|
+
if (key.length > ANSWER_KEY_MAX) return `questions[${i}].grader.answer_key: 정규식이 너무 깁니다 (${key.length}자, 최대 ${ANSWER_KEY_MAX}자).`;
|
|
145
|
+
const problem = regexError(key);
|
|
146
|
+
if (problem) return `questions[${i}].grader.answer_key가 올바른 정규식이 아닙니다: ${problem}`;
|
|
147
|
+
out.push({
|
|
148
|
+
score,
|
|
149
|
+
grader: {
|
|
150
|
+
type: 'pattern',
|
|
151
|
+
answer_key: key
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
} else if (g.type === 'rubric') {
|
|
155
|
+
const {
|
|
156
|
+
rubric,
|
|
157
|
+
question
|
|
158
|
+
} = g;
|
|
159
|
+
if (typeof rubric !== 'string') return `questions[${i}].grader: rubric에는 채점 기준 rubric(문자열)이 필요합니다.`;
|
|
160
|
+
if (rubric.length > RUBRIC_MAX) return `questions[${i}].grader.rubric: 채점 기준이 너무 깁니다 (${rubric.length}자, 최대 ${RUBRIC_MAX}자).`;
|
|
161
|
+
if (question !== undefined && typeof question !== 'string') return `questions[${i}].grader.question: 문제 글은 문자열입니다.`;
|
|
162
|
+
if (typeof question === 'string' && question.length > RUBRIC_QUESTION_MAX) return `questions[${i}].grader.question: 문제 글이 너무 깁니다 (${question.length}자, 최대 ${RUBRIC_QUESTION_MAX}자).`;
|
|
163
|
+
out.push({
|
|
164
|
+
score,
|
|
165
|
+
grader: {
|
|
166
|
+
type: 'rubric',
|
|
167
|
+
rubric,
|
|
168
|
+
...(question === undefined ? {} : {
|
|
169
|
+
question
|
|
170
|
+
})
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
} else return `questions[${i}].grader.type은 "pattern" 또는 "rubric"입니다 (지금 ${JSON.stringify(g.type)}).`;
|
|
174
|
+
}
|
|
175
|
+
const total = out.reduce((sum, q) => sum + q.score, 0);
|
|
176
|
+
if (total < 100) return `per_question 배점 합계가 100 이상이어야 합니다 (지금 ${total}). 100보다 작으면 다 맞혀도 100점이 되지 않습니다.`;
|
|
177
|
+
const rubrics = out.filter(q => q.grader.type === 'rubric').length;
|
|
178
|
+
if (rubrics > RUBRIC_QUESTIONS_MAX) return `AI 채점(rubric) 문항은 ${RUBRIC_QUESTIONS_MAX}개까지입니다 (지금 ${rubrics}개).`;
|
|
179
|
+
if ('pass_score' in record) {
|
|
180
|
+
const pass = record.pass_score;
|
|
181
|
+
if (!isStrictInt(pass) || pass < 1 || pass > 100) return `pass_score는 1~100 정수입니다 (지금 ${JSON.stringify(pass)}).`;
|
|
182
|
+
return {
|
|
183
|
+
type: 'per_question',
|
|
184
|
+
questions: out,
|
|
185
|
+
pass_score: pass
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
return {
|
|
189
|
+
type: 'per_question',
|
|
190
|
+
questions: out
|
|
191
|
+
};
|
|
192
|
+
}
|
|
103
193
|
/**
|
|
104
194
|
* parseGrading이 거절한 채점 설정을 서버(elice-material app/core/grading.py)가 낼 pydantic 오류 type으로 옮긴다.
|
|
105
195
|
* 서버 type: regex_answer_key_invalid(정규식 500자 초과 · 컴파일 안 됨) · partial_pattern_length_mismatch ·
|
|
@@ -117,7 +207,7 @@ function serverGradingError(data) {
|
|
|
117
207
|
const {
|
|
118
208
|
type
|
|
119
209
|
} = record;
|
|
120
|
-
if (!GRADER_TYPES.includes(type)) return {
|
|
210
|
+
if (!GRADER_TYPES.includes(type) && type !== PER_QUESTION_TYPE) return {
|
|
121
211
|
type: type === undefined ? 'union_tag_not_found' : 'union_tag_invalid',
|
|
122
212
|
loc: base
|
|
123
213
|
};
|
|
@@ -153,6 +243,7 @@ function serverGradingError(data) {
|
|
|
153
243
|
loc: at
|
|
154
244
|
};
|
|
155
245
|
}
|
|
246
|
+
if (type === PER_QUESTION_TYPE) return perQuestionServerError(record, at, regexIssue);
|
|
156
247
|
if (type === 'rubric') {
|
|
157
248
|
if (typeof record.rubric !== 'string') return {
|
|
158
249
|
type: record.rubric === undefined ? 'missing' : 'string_type',
|
|
@@ -247,6 +338,141 @@ function serverGradingError(data) {
|
|
|
247
338
|
loc: at
|
|
248
339
|
};
|
|
249
340
|
}
|
|
341
|
+
/** per_question의 서버 pydantic 오류 하나 (serverGradingError). 서버 검사 순서: 필드 모양 → 배점 합 → AI 채점 수 */
|
|
342
|
+
function perQuestionServerError(record, at, regexIssue) {
|
|
343
|
+
const intIssue = (n, loc, min) => {
|
|
344
|
+
if (!isStrictInt(n)) return {
|
|
345
|
+
type: 'int_type',
|
|
346
|
+
loc
|
|
347
|
+
};
|
|
348
|
+
if (n < min) return {
|
|
349
|
+
type: 'greater_than_equal',
|
|
350
|
+
loc,
|
|
351
|
+
ctx: {
|
|
352
|
+
ge: min
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
if (n > 100) return {
|
|
356
|
+
type: 'less_than_equal',
|
|
357
|
+
loc,
|
|
358
|
+
ctx: {
|
|
359
|
+
le: 100
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
return null;
|
|
363
|
+
};
|
|
364
|
+
const list = record.questions;
|
|
365
|
+
if (list === undefined) return {
|
|
366
|
+
type: 'missing',
|
|
367
|
+
loc: [...at, 'questions']
|
|
368
|
+
};
|
|
369
|
+
if (!Array.isArray(list)) return {
|
|
370
|
+
type: 'list_type',
|
|
371
|
+
loc: [...at, 'questions']
|
|
372
|
+
};
|
|
373
|
+
if (list.length < 1) return {
|
|
374
|
+
type: 'too_short',
|
|
375
|
+
loc: [...at, 'questions'],
|
|
376
|
+
ctx: {
|
|
377
|
+
min_length: 1
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
if (list.length > PER_QUESTION_MAX) return {
|
|
381
|
+
type: 'too_long',
|
|
382
|
+
loc: [...at, 'questions'],
|
|
383
|
+
ctx: {
|
|
384
|
+
max_length: PER_QUESTION_MAX
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
for (const [i, item] of list.entries()) {
|
|
388
|
+
const loc = [...at, 'questions', i];
|
|
389
|
+
if (typeof item !== 'object' || item === null || Array.isArray(item)) return {
|
|
390
|
+
type: 'model_type',
|
|
391
|
+
loc
|
|
392
|
+
};
|
|
393
|
+
const q = item;
|
|
394
|
+
if (q.score === undefined) return {
|
|
395
|
+
type: 'missing',
|
|
396
|
+
loc: [...loc, 'score']
|
|
397
|
+
};
|
|
398
|
+
const scoreIssue = intIssue(q.score, [...loc, 'score'], 0);
|
|
399
|
+
if (scoreIssue) return scoreIssue;
|
|
400
|
+
const g = q.grader;
|
|
401
|
+
if (g === undefined) return {
|
|
402
|
+
type: 'missing',
|
|
403
|
+
loc: [...loc, 'grader']
|
|
404
|
+
};
|
|
405
|
+
if (typeof g !== 'object' || g === null || Array.isArray(g)) return {
|
|
406
|
+
type: 'model_attributes_type',
|
|
407
|
+
loc: [...loc, 'grader']
|
|
408
|
+
};
|
|
409
|
+
if (g.type !== 'pattern' && g.type !== 'rubric') return {
|
|
410
|
+
type: g.type === undefined ? 'union_tag_not_found' : 'union_tag_invalid',
|
|
411
|
+
loc: [...loc, 'grader']
|
|
412
|
+
};
|
|
413
|
+
const gl = [...loc, 'grader', g.type];
|
|
414
|
+
if (g.type === 'pattern') {
|
|
415
|
+
if (g.answer_key === undefined) return {
|
|
416
|
+
type: 'missing',
|
|
417
|
+
loc: [...gl, 'answer_key']
|
|
418
|
+
};
|
|
419
|
+
const issue = regexIssue(g.answer_key, [...gl, 'answer_key']);
|
|
420
|
+
if (issue) return issue;
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
if (typeof g.rubric !== 'string') return {
|
|
424
|
+
type: g.rubric === undefined ? 'missing' : 'string_type',
|
|
425
|
+
loc: [...gl, 'rubric']
|
|
426
|
+
};
|
|
427
|
+
if (g.rubric.length > RUBRIC_MAX) return {
|
|
428
|
+
type: 'string_too_long',
|
|
429
|
+
loc: [...gl, 'rubric'],
|
|
430
|
+
ctx: {
|
|
431
|
+
max_length: RUBRIC_MAX
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
if (g.question !== undefined) {
|
|
435
|
+
if (typeof g.question !== 'string') return {
|
|
436
|
+
type: 'string_type',
|
|
437
|
+
loc: [...gl, 'question']
|
|
438
|
+
};
|
|
439
|
+
if (g.question.length > RUBRIC_QUESTION_MAX) return {
|
|
440
|
+
type: 'string_too_long',
|
|
441
|
+
loc: [...gl, 'question'],
|
|
442
|
+
ctx: {
|
|
443
|
+
max_length: RUBRIC_QUESTION_MAX
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
if ('pass_score' in record) {
|
|
449
|
+
const issue = intIssue(record.pass_score, [...at, 'pass_score'], 1);
|
|
450
|
+
if (issue) return issue;
|
|
451
|
+
}
|
|
452
|
+
const questions = list;
|
|
453
|
+
const total = questions.reduce((sum, q) => sum + q.score, 0);
|
|
454
|
+
if (total < 100) return {
|
|
455
|
+
type: 'per_question_scores_too_low',
|
|
456
|
+
loc: at,
|
|
457
|
+
ctx: {
|
|
458
|
+
min_total: 100,
|
|
459
|
+
total
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
const count = questions.filter(q => q.grader.type === 'rubric').length;
|
|
463
|
+
if (count > RUBRIC_QUESTIONS_MAX) return {
|
|
464
|
+
type: 'per_question_too_many_rubrics',
|
|
465
|
+
loc: at,
|
|
466
|
+
ctx: {
|
|
467
|
+
max_count: RUBRIC_QUESTIONS_MAX,
|
|
468
|
+
count
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
return {
|
|
472
|
+
type: 'value_error',
|
|
473
|
+
loc: at
|
|
474
|
+
};
|
|
475
|
+
}
|
|
250
476
|
/** 옛 설정 파일 (ADR 0011에서 없앰). 있으면 경고하고 `ecdk doctor --fix`가 옮긴다. zip에는 들어가지 않는다 */
|
|
251
477
|
const CONFIG_FILE = 'elice.config.json';
|
|
252
478
|
const PACKAGE_FILE = 'package.json';
|
|
@@ -516,9 +742,11 @@ function savedGradingProblem(settings) {
|
|
|
516
742
|
if (settings.grading === undefined || settings.grading === null) return null;
|
|
517
743
|
const parsed = parseGrading(settings.grading);
|
|
518
744
|
if (typeof parsed === 'string') return `${SETTINGS_DATA_FILE}: grading: ${parsed} (서버 저장 거절 422 ${serverGradingError(settings.grading).type})`;
|
|
519
|
-
// gradingType은 학생 화면이 답 모양(문자열 · 배열)을 고르는 공개 값. 어긋나면 서버가 학생 제출을 422로
|
|
745
|
+
// gradingType은 학생 화면이 답 모양(문자열 · 배열)을 고르는 공개 값. 어긋나면 서버가 학생 제출을 422로 거절한다.
|
|
746
|
+
// 배열 답(partial_pattern · per_question)이면 둘이 같아야 한다 (per_question은 AI 채점 문항 자리를 답 글만 보냄)
|
|
520
747
|
const publicType = settings.gradingType;
|
|
521
|
-
|
|
748
|
+
const arrayAnswer = t => t === 'partial_pattern' || t === PER_QUESTION_TYPE;
|
|
749
|
+
if (publicType !== undefined && publicType !== parsed.type && (arrayAnswer(publicType) || arrayAnswer(parsed.type))) return `${SETTINGS_DATA_FILE}: 공개 값 gradingType(${JSON.stringify(publicType)})과 grading.type(${parsed.type})이 맞지 않습니다. 학생 답 모양이 달라 제출이 거절됩니다.`;
|
|
522
750
|
return null;
|
|
523
751
|
}
|
|
524
752
|
/**
|
|
@@ -540,4 +768,4 @@ const LEGACY_FILES = Object.freeze({
|
|
|
540
768
|
grading: 'grading.json'
|
|
541
769
|
});
|
|
542
770
|
|
|
543
|
-
export { ANSWER_KEY_MAX, BUILD_OPTION_KEYS, CONFIG_FILE, GRADER_TYPES, LEGACY_FILES, PACKAGE_CONFIG_KEY, PACKAGE_FILE, PARTIAL_ITEMS_MAX, PLATFORM_KEYS, RUBRIC_MAX, SETTINGS_DATA_FILE, applyLegacyMigration, legacyCompletionWarning, legacyGradingTypesWarning, loadConfig, loadGrading, loadSavedSettings, parseGrading, planLegacyMigration, readPackageJson, savedGrading, savedGradingProblem, serverGradingError };
|
|
771
|
+
export { ANSWER_KEY_MAX, BUILD_OPTION_KEYS, CONFIG_FILE, GRADER_TYPES, ITEMS_REJECTED, ITEMS_TYPE, LEGACY_FILES, PACKAGE_CONFIG_KEY, PACKAGE_FILE, PARTIAL_ITEMS_MAX, PER_QUESTION_MAX, PER_QUESTION_TYPE, PLATFORM_KEYS, RUBRIC_MAX, RUBRIC_QUESTIONS_MAX, RUBRIC_QUESTION_MAX, SETTINGS_DATA_FILE, applyLegacyMigration, legacyCompletionWarning, legacyGradingTypesWarning, loadConfig, loadGrading, loadSavedSettings, parseGrading, planLegacyMigration, readPackageJson, savedGrading, savedGradingProblem, serverGradingError };
|