@eliceio/cdk-cli 1.6.0-entryqa.0 → 1.6.0-entryqa.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/es/dev/learner-files.d.ts +88 -0
  2. package/es/dev/learner-files.js +282 -0
  3. package/es/dev/mock-api.d.ts +13 -0
  4. package/es/dev/mock-api.js +27 -3
  5. package/es/dev/server.d.ts +3 -0
  6. package/es/dev/server.js +35 -1
  7. package/es/rules/csp.d.ts +1 -0
  8. package/es/rules/csp.js +2 -0
  9. package/package.json +2 -2
  10. package/skills/_shared/references/02-design-the-material.md +1 -1
  11. package/skills/_shared/references/12-upload-with-the-material-mcp.md +1 -1
  12. package/templates/_shared/lib/cdk-mock.d.ts +18 -0
  13. package/templates/_shared/lib/cdk-mock.js +45 -0
  14. package/templates/_shared/lib/elice-content.d.ts +22 -0
  15. package/templates/_shared/lib/elice-content.js +50 -0
  16. package/templates/document/template.json +3 -2
  17. package/templates/entry/README.md +19 -8
  18. package/templates/entry/core/grading.d.ts +1 -0
  19. package/templates/entry/core/grading.js +14 -0
  20. package/templates/entry/core/ml-data.d.ts +51 -0
  21. package/templates/entry/core/ml-data.js +480 -0
  22. package/templates/entry/core/workspace.d.ts +2 -0
  23. package/templates/entry/core/workspace.js +21 -1
  24. package/templates/entry/docs/storage.md +5 -2
  25. package/templates/entry/screens/edit/panels/grading.js +165 -47
  26. package/templates/entry/screens/edit/panels/preference.js +19 -1
  27. package/templates/entry/screens/edit/panels/project-panel.js +24 -28
  28. package/templates/entry/screens/edit.js +34 -3
  29. package/templates/entry/screens/learn.js +51 -18
  30. package/templates/entry/styles.css +230 -65
  31. package/templates/entry/template.json +1 -1
  32. package/templates/entry/ui/templates/page.js +31 -6
  33. package/templates/entry/ui/texts.js +48 -52
  34. package/templates/quiz/README.md +1 -1
  35. package/templates/quiz/template.json +3 -2
  36. package/templates/survey/README.md +1 -0
  37. package/templates/survey/template.json +3 -2
  38. package/templates/video/template.json +3 -2
@@ -1,16 +1,19 @@
1
1
  // 학생 화면. 엔트리 워크스페이스(?mode=user)를 화면 가득 띄우고, 작품을 자동 저장하고, 제출 버튼으로 작품을 냅니다.
2
- // 채점: 편집 화면이 저장한 settings.grading(일반 · AI 채점, 학생에게는 내려오지 않음)으로 서버가 채점합니다. 아래 줄에 최종 제출 점수 · 시간,
2
+ // 채점: 편집 화면이 저장한 settings.grading(일반 · AI 채점, 학생에게는 내려오지 않음)으로 서버가 채점합니다. 아래 줄에 '최종 제출 : N점 (11월 25일 오후 02:05)',
3
3
  // 일반 채점이면 '올바르게 작성했어요' · '틀렸어요. 다시 해보세요.'(LXP 문구), AI 채점이면 'AI 채점' 표시 · 기다림 문구와
4
- // 기준별 피드백(서버 grading_feedback)을 'AI 피드백 보기'로 보여 줍니다. 채점 설정이 없으면 점수는 '--'.
5
- // 채점 방식은 app.gradingMode(SDK material.gradingMode, 서버 /me grading_mode)로 압니다. 옛 SDK는 null이라
6
- // 'AI 채점' 표시를 하지 않고, 제출 결과의 grading_feedback 모양으로 일반 채점만 알아봅니다 (criteria가 빈 배열이면 일반).
4
+ // 기준별 피드백(서버 grading_feedback)을 'AI 피드백 보기'로 보여 줍니다. 제출 전에는 비우고, 채점 설정이 없으면 점수는 '--'.
5
+ // 채점 방식은 app.gradingMode(SDK material.gradingMode, 서버 /me grading_mode)로 압니다. gradingMode · 제출 결과의
6
+ // gradingFeedback은 SDK 1.6.0부터 옵니다. 그 전 SDK는 gradingMode가 null이라 'AI 채점' 표시를 하지 않고, submit()이
7
+ // gradingFeedback을 버려서 제출 직후에는 결과 문구 · 피드백이 안 나오고 다시 열 때(history) 나옵니다.
7
8
  //
8
9
  // 여는 작품: kvstore 'entry'에 저장한 작품 → 없으면 편집 화면의 시작 작품(settings.entry.startProject) → 없으면 엔트리 기본 작품
9
10
  // 자동 저장: 워크스페이스가 블록이 바뀔 때마다 보내는 UPDATED_PROJECT를 2초 모아 → TO_GET_PROJECT로 작품을 꺼내 → kvstore 'entry'.
10
11
  // 워크스페이스 안 '저장하기'(SAVE_PROJECT)도 같은 칸에 바로 저장합니다.
11
12
  // 제출: TO_GET_PROJECT → 줄인 작품 { v, project } → app.submit. 64KB를 넘으면 막고 안내합니다.
12
- // 화면 배치: 위 안내 줄 · 워크스페이스 · 아래 파란 줄(저장 표시 · 오류 · 최종 제출 점수/시간 · 제출하기) — ui/templates/page.js
13
+ // 화면 배치: 워크스페이스 · 아래 파란 줄(저장 표시 · 오류 · 최종 제출 · 제출하기) — ui/templates/page.js
13
14
  // 튜터링(보기 전용) · 편집기 미리보기는 저장 · 제출하지 않습니다 (튜터는 학생이 저장한 작품을 봄).
15
+ // AI 학습(인공지능 › 모델 학습하기) 데이터 · 모델: 워크스페이스를 ?mlData=parent로 띄워 core/ml-data.js가 키트
16
+ // learnerFiles(파일) · kvstore(목록)에 저장합니다. 튜터는 학생 것을 읽기만(쓰기는 오류로 답), 편집기 미리보기는 SDK가 메모리에만.
14
17
  // 저장 칸 · 모양 표: docs/storage.md
15
18
  import { start } from '../lib/elice-content.js';
16
19
  import { createAutosave } from '../core/autosave.js';
@@ -25,10 +28,17 @@ import {
25
28
  readProgress,
26
29
  splitSettings,
27
30
  } from '../core/settings.js';
31
+ import { createMlData } from '../core/ml-data.js';
28
32
  import { connectWorkspace } from '../core/workspace.js';
29
33
  import { learnPage, loading, unavailable } from '../ui/templates/page.js';
30
34
  import { texts } from '../ui/texts.js';
31
35
 
36
+ /** 'AI 피드백 보기' 버튼 (QA 요청으로 우선 숨김, 2026-11-26). 다시 보이려면 true */
37
+ const SHOW_AI_FEEDBACK = false;
38
+ /** 자동 저장이 잠깐 실패하면 다시 시도하는 간격 */
39
+ const SAVE_RETRY_DELAYS_MS = [1500, 4000];
40
+ const RETRYABLE_SAVE_ERRORS = new Set(['request_failed', 'rate_limited']);
41
+
32
42
  const t = texts.learn;
33
43
  const root = document.getElementById('app');
34
44
  document.title = texts.page.learn;
@@ -75,7 +85,9 @@ async function show() {
75
85
 
76
86
  const time = d => d.toLocaleTimeString('ko-KR', { hour: '2-digit', minute: '2-digit' });
77
87
  const pad = n => String(n).padStart(2, '0');
78
- const dateTime = d => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${time(d)}`;
88
+ /** 최종 제출 시각: 11월 25일 오후 02:05 */
89
+ const dateTime = d =>
90
+ `${d.getMonth() + 1}월 ${d.getDate()}일 ${d.getHours() < 12 ? '오전' : '오후'} ${pad(d.getHours() % 12 || 12)}:${pad(d.getMinutes())}`;
79
91
  /** 저장 표시. 저장됨이면 앞에 체크 표시 */
80
92
  const setStatus = (text, check = false) => {
81
93
  status.replaceChildren();
@@ -97,7 +109,16 @@ async function show() {
97
109
  const size = jsonBytes(value);
98
110
  if (size > LIMITS.kvBytes)
99
111
  throw new Error(t.save.tooLarge(formatBytes(size), formatBytes(LIMITS.kvBytes)));
100
- await app.kvstore.post({ key: PROGRESS_KEY, value });
112
+ // 잠깐 끊김(request_failed) · 쓰기 횟수 초과(rate_limited)는 조금 기다렸다 다시 (QA: 제출 직후 '자동 저장 실패')
113
+ for (let attempt = 0; ; attempt += 1) {
114
+ try {
115
+ await app.kvstore.post({ key: PROGRESS_KEY, value });
116
+ return;
117
+ } catch (e) {
118
+ if (attempt >= SAVE_RETRY_DELAYS_MS.length || !RETRYABLE_SAVE_ERRORS.has(e?.code)) throw e;
119
+ await new Promise(resolve => setTimeout(resolve, SAVE_RETRY_DELAYS_MS[attempt]));
120
+ }
121
+ }
101
122
  }
102
123
 
103
124
  /** 저장 메뉴가 넘긴 작품 (없으면 워크스페이스에서 꺼냄) */
@@ -112,7 +133,8 @@ async function show() {
112
133
  onState: (state, info) => {
113
134
  if (state === 'idle') return;
114
135
  if (state === 'saved') setStatus(t.save.saved(time(info.at ?? new Date())), true);
115
- else if (state === 'error') setStatus(t.save.error(info.error?.message ?? String(info.error)));
136
+ else if (state === 'error')
137
+ setStatus(t.save.error(info.error?.message ?? String(info.error)));
116
138
  else setStatus(t.save[state]);
117
139
  },
118
140
  });
@@ -121,6 +143,8 @@ async function show() {
121
143
  mode: 'user',
122
144
  title: texts.page.workspace,
123
145
  preference,
146
+ // AI 학습 저장 (학생 화면만. 편집 화면은 붙이지 않음: core/workspace.js 주석)
147
+ mlData: createMlData(app),
124
148
  provider: {
125
149
  getProject: () => savedProject ?? startProject,
126
150
  getInitialProject: () => startProject,
@@ -153,9 +177,11 @@ async function show() {
153
177
 
154
178
  if (!submitButton) return;
155
179
 
156
- /** 최종 제출 점수 · 시간 (두 줄) */
180
+ /** 최종 제출 점수 · 시각 (한 줄, 제출 기록이 없으면 비움) */
157
181
  const showFinal = (score, at) => {
158
- submitted.textContent = `${t.finalScore(typeof score === 'number' ? score : null)}\n${t.finalTime(at ? dateTime(at) : null)}`;
182
+ submitted.textContent = at
183
+ ? t.lastSubmission(typeof score === 'number' ? score : null, dateTime(at))
184
+ : '';
159
185
  };
160
186
  /**
161
187
  * 일반 채점 결과 문구. 채점 방식을 모르면(옛 SDK) grading_feedback이 일반 모양({ criteria: [] })일 때만.
@@ -164,9 +190,15 @@ async function show() {
164
190
  const showVerdict = (isCorrect, gradingFeedback) => {
165
191
  const general =
166
192
  gradingMode === 'general' ||
167
- (gradingMode === null && Array.isArray(gradingFeedback?.criteria) && !gradingFeedback.criteria.length);
193
+ (gradingMode === null &&
194
+ Array.isArray(gradingFeedback?.criteria) &&
195
+ !gradingFeedback.criteria.length);
168
196
  verdict.textContent =
169
- general && typeof isCorrect === 'boolean' ? (isCorrect ? t.verdict.correct : t.verdict.wrong) : '';
197
+ general && typeof isCorrect === 'boolean'
198
+ ? isCorrect
199
+ ? t.verdict.correct
200
+ : t.verdict.wrong
201
+ : '';
170
202
  };
171
203
  /** AI 채점 피드백 { message, criteria: [{ feedback }] }. 글이 없으면(일반 채점 · 채점 없음) 버튼을 숨김 */
172
204
  const showFeedback = value => {
@@ -174,17 +206,19 @@ async function show() {
174
206
  const criteria = Array.isArray(value?.criteria)
175
207
  ? value.criteria.map(c => (typeof c?.feedback === 'string' ? c.feedback.trim() : ''))
176
208
  : [];
177
- const has = Boolean(message) || criteria.some(Boolean);
209
+ const has = SHOW_AI_FEEDBACK && (Boolean(message) || criteria.some(Boolean));
178
210
  feedbackToggle.hidden = !has;
179
211
  if (!has) setFeedbackOpen(false);
180
212
  const items = [];
181
213
  if (message) items.push(html`<p class="en-feedback-message">${message}</p>`);
182
214
  criteria.forEach((text, i) => {
183
215
  if (text)
184
- items.push(html`<div class="en-feedback-item">
185
- <p class="en-feedback-label">${t.feedback.criterion(i + 1)}</p>
186
- <p>${text}</p>
187
- </div>`);
216
+ items.push(
217
+ html`<div class="en-feedback-item">
218
+ <p class="en-feedback-label">${t.feedback.criterion(i + 1)}</p>
219
+ <p>${text}</p>
220
+ </div>`
221
+ );
188
222
  });
189
223
  feedbackBody.replaceChildren(...items);
190
224
  };
@@ -195,7 +229,6 @@ async function show() {
195
229
  }
196
230
  feedbackToggle.addEventListener('click', () => setFeedbackOpen(feedback.hidden));
197
231
 
198
- showFinal(null, null);
199
232
  // 마지막 제출 (기록에서): 점수 · 시각 · AI 피드백
200
233
  app
201
234
  .lastSubmission()
@@ -15,14 +15,6 @@ body.en-page #app {
15
15
  flex-direction: column;
16
16
  height: 100dvh;
17
17
  }
18
- .en-notice {
19
- margin: 0;
20
- padding: 6px 16px;
21
- border-bottom: 1px solid var(--ec-line);
22
- background: var(--ec-bg);
23
- color: var(--ec-muted);
24
- font-size: var(--eds-fs-caption, 12px);
25
- }
26
18
  .en-stage {
27
19
  position: relative;
28
20
  flex: 1;
@@ -180,6 +172,10 @@ body.en-page #app {
180
172
  }
181
173
 
182
174
  /* ───── 편집 화면 ───── */
175
+ /* 편집 화면 바탕은 흰색 (키트 기본 회색 대신, 디자인 2차) */
176
+ :root:has(body.ec-edit-page) {
177
+ background: var(--eds-background-paper);
178
+ }
183
179
  body.ec-edit-page main {
184
180
  max-width: none;
185
181
  }
@@ -197,13 +193,49 @@ body.ec-edit-page .ec-submitbar {
197
193
  .en-panel[hidden] {
198
194
  display: none;
199
195
  }
200
- .en-size {
196
+ /* 작품 패널 아래 줄: 왼쪽 안내 · 오른쪽 용량 칩 */
197
+ .en-panel-footer {
198
+ display: flex;
199
+ justify-content: space-between;
200
+ align-items: center;
201
+ gap: 16px;
202
+ }
203
+ .en-panel-footer > :first-child {
204
+ flex: 1;
205
+ min-width: 0;
206
+ }
207
+ .en-size-box {
208
+ display: flex;
209
+ flex: none;
210
+ flex-direction: column;
211
+ align-items: flex-end;
212
+ gap: 6px;
213
+ max-width: 360px;
214
+ }
215
+ .en-size-message {
201
216
  margin: 0;
202
- color: var(--ec-muted);
217
+ color: var(--eds-error-main);
203
218
  font-size: var(--eds-fs-body2);
219
+ font-weight: var(--eds-fw-medium);
220
+ text-align: right;
221
+ }
222
+ .en-size-message[hidden] {
223
+ display: none;
224
+ }
225
+ .en-size-chip {
226
+ padding: 4px 12px;
227
+ border: 1px solid var(--eds-surface-border);
228
+ border-radius: 14px;
229
+ background: var(--eds-common-white);
230
+ color: var(--eds-text-tertiary);
231
+ font-size: 13px;
232
+ font-weight: var(--eds-fw-medium);
233
+ white-space: nowrap;
204
234
  }
205
- .en-size[data-over='true'] {
206
- color: var(--ec-no);
235
+ .en-size-chip[data-over='true'] {
236
+ border-color: var(--eds-error-main);
237
+ color: var(--eds-error-main);
238
+ font-weight: var(--eds-fw-semibold);
207
239
  }
208
240
 
209
241
  /* 언어 선택 줄 (탭 카드 위) */
@@ -225,10 +257,30 @@ body.ec-edit-page .ec-submitbar {
225
257
  .en-panel[data-panel='preference'] .en-panel-body p {
226
258
  margin: 0;
227
259
  }
260
+ /* 안내 한 줄 (파란 정보 아이콘 + 글) */
261
+ .en-alert {
262
+ display: flex;
263
+ align-items: center;
264
+ gap: 8px;
265
+ padding: 0;
266
+ border: 0;
267
+ background: none;
268
+ color: var(--eds-text-secondary);
269
+ font-size: var(--eds-fs-body2);
270
+ font-weight: var(--eds-fw-medium);
271
+ line-height: 1.4;
272
+ }
273
+ .en-alert-icon {
274
+ display: grid;
275
+ flex: none;
276
+ color: var(--eds-info-main);
277
+ }
228
278
 
229
- /* 붙은 버튼 모양 라디오 (언어 선택 · 채점 방식) */
279
+ /* 붙은 버튼 모양 라디오 (언어 선택 · 채점 방식). 칸 너비는 같게 */
230
280
  .en-modes {
231
- display: inline-flex;
281
+ display: inline-grid;
282
+ grid-auto-columns: 1fr;
283
+ grid-auto-flow: column;
232
284
  margin: 0;
233
285
  padding: 0;
234
286
  border: 0;
@@ -248,6 +300,13 @@ body.ec-edit-page .ec-submitbar {
248
300
  border-color 0.15s ease-in-out,
249
301
  background-color 0.15s ease-in-out;
250
302
  }
303
+ .en-modes .en-radio-card {
304
+ justify-content: center;
305
+ padding: 8px 16px;
306
+ transition:
307
+ border-color 20ms linear,
308
+ background-color 20ms linear;
309
+ }
251
310
  .en-radio-card:first-of-type {
252
311
  margin-left: 0;
253
312
  border-radius: var(--eds-radius) 0 0 var(--eds-radius);
@@ -288,7 +347,7 @@ body.ec-edit-page .ec-submitbar {
288
347
  position: relative;
289
348
  display: flex;
290
349
  flex-direction: column;
291
- padding-bottom: 20px;
350
+ padding-bottom: 12px;
292
351
  border: 1px solid var(--eds-surface-border);
293
352
  border-radius: 12px;
294
353
  background: var(--eds-common-white);
@@ -297,6 +356,17 @@ body.ec-edit-page .ec-submitbar {
297
356
  .en-tabcard .en-panel {
298
357
  padding: 20px 20px 0;
299
358
  }
359
+ /* 탭 안 워크스페이스는 카드 좌우 끝까지, 테두리 · 둥근 모서리 없이 (아래 선만) */
360
+ .en-tabcard .en-panel[data-panel='startProject'],
361
+ .en-tabcard .en-panel[data-panel='answerProject'] {
362
+ padding-top: 0;
363
+ }
364
+ .en-tabcard .en-panel .en-workspace {
365
+ margin-inline: -20px;
366
+ border: 0;
367
+ border-bottom: 1px solid var(--eds-surface-border);
368
+ border-radius: 0;
369
+ }
300
370
  .en-tabs {
301
371
  display: flex;
302
372
  gap: 8px;
@@ -353,7 +423,8 @@ body.ec-edit-page .ec-submitbar {
353
423
  background: var(--eds-primary-opacity02);
354
424
  }
355
425
 
356
- /* '채점 설정' 탭 배치: 채점 방식 줄 → 정답 작품 → AI 채점 기준 (채점 방식 패널을 풀어 order로 나눔) */
426
+ /* '채점 설정' 탭 배치: 정답 작품 → 채점 방식 줄 → AI 채점 기준 (채점 방식 패널을 풀어 order로 나눔).
427
+ 정답 블록을 만든 뒤 채점 방식을 고르는 흐름 (디자인 2차) */
357
428
  .en-panel[data-panel='grading']:not([hidden]),
358
429
  .en-panel[data-panel='grading'] .en-panel-body {
359
430
  display: contents;
@@ -361,14 +432,14 @@ body.ec-edit-page .ec-submitbar {
361
432
  .en-grading-mode {
362
433
  display: flex;
363
434
  flex-wrap: wrap;
364
- order: 1;
435
+ order: 2;
365
436
  align-items: center;
366
437
  gap: 8px 16px;
367
438
  min-height: 40px;
368
- margin: 20px 20px 0;
439
+ margin: 8px 20px 0;
369
440
  }
370
441
  .en-panel[data-panel='answerProject'] {
371
- order: 2;
442
+ order: 1;
372
443
  }
373
444
  .en-field-title {
374
445
  margin: 0;
@@ -376,20 +447,6 @@ body.ec-edit-page .ec-submitbar {
376
447
  font-size: var(--eds-fs-body2);
377
448
  font-weight: var(--eds-fw-bold);
378
449
  }
379
- .en-hint-link {
380
- display: inline-flex;
381
- align-items: center;
382
- gap: 4px;
383
- padding: 0;
384
- border: 0;
385
- background: none;
386
- color: var(--eds-primary-main);
387
- font: inherit;
388
- font-size: var(--eds-fs-body2);
389
- font-weight: var(--eds-fw-semibold);
390
- white-space: nowrap;
391
- cursor: pointer;
392
- }
393
450
  .en-grading-note {
394
451
  display: flex;
395
452
  flex-basis: 100%;
@@ -418,13 +475,6 @@ body.ec-edit-page .ec-submitbar {
418
475
  .en-warning[hidden] {
419
476
  display: none;
420
477
  }
421
- .en-hint-link:hover {
422
- text-decoration: underline;
423
- }
424
- .en-hint-link:focus-visible {
425
- outline: 2px solid var(--eds-primary-main);
426
- outline-offset: 2px;
427
- }
428
478
 
429
479
  /* AI 채점 기준 */
430
480
  .en-ai {
@@ -439,11 +489,14 @@ body.ec-edit-page .ec-submitbar {
439
489
  .en-ai p {
440
490
  margin: 0;
441
491
  }
492
+ /* AI 채점 기준: 채점 방식 줄 아래 회색 상자 */
442
493
  .en-tabcard .en-ai {
443
494
  order: 3;
444
- margin: 24px 0 0;
445
- padding: 24px 20px 0;
446
- border-top: 1px solid var(--eds-divider);
495
+ margin: 16px 20px 8px;
496
+ padding: 20px;
497
+ border-radius: 12px;
498
+ background: var(--eds-background-neutral);
499
+ scroll-margin-bottom: 80px;
447
500
  }
448
501
  .en-ai-head {
449
502
  display: flex;
@@ -513,6 +566,18 @@ body.ec-edit-page .ec-submitbar {
513
566
  font-size: var(--eds-fs-body2);
514
567
  font-weight: var(--eds-fw-bold);
515
568
  }
569
+ .en-example-button > span,
570
+ .en-auto-button > span,
571
+ .en-add-button > span {
572
+ display: inline-flex;
573
+ align-items: center;
574
+ line-height: 1.5;
575
+ }
576
+ .en-example-button svg,
577
+ .en-auto-button svg,
578
+ .en-add-button svg {
579
+ display: block;
580
+ }
516
581
  .en-link-button.en-example-button {
517
582
  display: inline-flex;
518
583
  align-items: center;
@@ -535,12 +600,62 @@ body.ec-edit-page .ec-submitbar {
535
600
  gap: 12px;
536
601
  }
537
602
  .en-criteria-head,
538
- .en-criterion {
603
+ .en-criterion,
604
+ .en-criteria-actions {
539
605
  display: grid;
540
606
  grid-template-columns: 200px minmax(0, 1fr) 160px 40px;
541
607
  align-items: center;
542
608
  gap: 12px;
543
609
  }
610
+ /* 칸 아래 오류 글이 붙으므로 줄은 위로 맞춤 */
611
+ .en-criterion {
612
+ align-items: start;
613
+ }
614
+ .en-cell {
615
+ display: flex;
616
+ flex-direction: column;
617
+ gap: 4px;
618
+ min-width: 0;
619
+ }
620
+ .en-field-error {
621
+ margin: 0;
622
+ color: var(--eds-error-main);
623
+ font-size: var(--eds-fs-body2);
624
+ font-weight: var(--eds-fw-regular, 400);
625
+ line-height: 1.4;
626
+ }
627
+ .en-field-error[hidden] {
628
+ display: none;
629
+ }
630
+ /* 추가하기(오브젝트 칸 아래) · 자동 배점(부분 점수 칸 아래) */
631
+ .en-criteria-actions .en-add-button {
632
+ grid-column: 1;
633
+ align-self: stretch;
634
+ width: 100%;
635
+ }
636
+ .en-criteria-actions .en-auto-button {
637
+ display: inline-flex;
638
+ grid-column: 3;
639
+ justify-self: start;
640
+ align-items: center;
641
+ gap: 6px;
642
+ min-height: 40px;
643
+ padding: 8px 12px;
644
+ border: 0;
645
+ border-radius: var(--eds-radius);
646
+ background: none;
647
+ color: var(--eds-text-primary);
648
+ font: inherit;
649
+ font-size: var(--eds-fs-body2);
650
+ font-weight: var(--eds-fw-semibold);
651
+ cursor: pointer;
652
+ }
653
+ .en-criteria-actions .en-auto-button:hover:not(:disabled) {
654
+ background: var(--eds-action-hover);
655
+ }
656
+ .en-criteria-actions .en-auto-button:focus-visible {
657
+ outline: 2px solid var(--eds-primary-main);
658
+ }
544
659
  .en-criteria-head {
545
660
  margin-bottom: -4px;
546
661
  color: var(--eds-text-primary);
@@ -556,21 +671,39 @@ body.ec-edit-page .ec-submitbar {
556
671
  color: var(--eds-error-main, #c62828);
557
672
  }
558
673
  .en-info {
674
+ position: relative;
559
675
  display: inline-grid;
560
676
  place-items: center;
561
677
  width: 20px;
562
678
  height: 20px;
563
679
  color: var(--eds-text-secondary);
564
680
  }
681
+ /* 부분 점수 안내 말풍선 (i에 마우스 · 포커스) */
682
+ .en-tooltip {
683
+ position: absolute;
684
+ top: calc(100% + 6px);
685
+ right: -8px;
686
+ z-index: 25;
687
+ box-sizing: border-box;
688
+ width: max-content;
689
+ max-width: 260px;
690
+ padding: 6px 10px;
691
+ border-radius: 4px;
692
+ background: var(--eds-background-inverse, #191f28);
693
+ color: #fff;
694
+ font-size: 12px;
695
+ font-weight: var(--eds-fw-medium);
696
+ line-height: 1.4;
697
+ white-space: normal;
698
+ }
699
+ .en-tooltip[hidden] {
700
+ display: none;
701
+ }
702
+ /* 기준 목록은 스크롤 없이 다 보임 (최대 10개) */
565
703
  .en-criteria {
566
704
  display: flex;
567
705
  flex-direction: column;
568
706
  gap: 12px;
569
- max-height: 280px;
570
- overflow: hidden auto;
571
- /* 스크롤 영역이 칸의 포커스 테두리(바깥 3px)를 자르지 않게 안쪽 여백을 두고 같은 만큼 당긴다 */
572
- padding: 3px;
573
- margin: -3px;
574
707
  }
575
708
  .en-field {
576
709
  box-sizing: border-box;
@@ -588,9 +721,24 @@ body.ec-edit-page .ec-submitbar {
588
721
  .en-field::placeholder {
589
722
  color: var(--eds-text-disabled);
590
723
  }
591
- .en-field:focus-visible {
592
- outline: 2px solid var(--eds-primary-main);
593
- outline-offset: 1px;
724
+ /* 포커스: 테두리를 주 색으로 + 1px 그림자 (점수 칸은 감싼 칸이 그림) */
725
+ .en-field:focus-visible,
726
+ .en-select-button:focus-visible,
727
+ .en-score-field:focus-within {
728
+ border-color: var(--eds-primary-main);
729
+ outline: none;
730
+ box-shadow: 0 0 0 1px var(--eds-primary-main);
731
+ }
732
+ /* 오류 칸: 빨간 테두리 (포커스면 빨간 그림자) */
733
+ .en-field[data-invalid='true'],
734
+ .en-select[data-invalid='true'] .en-select-button {
735
+ border-color: var(--eds-error-main);
736
+ }
737
+ .en-field[data-invalid='true']:focus-visible,
738
+ .en-score-field[data-invalid='true']:focus-within,
739
+ .en-select[data-invalid='true'] .en-select-button:focus-visible {
740
+ border-color: var(--eds-error-main);
741
+ box-shadow: 0 0 0 1px var(--eds-error-main);
594
742
  }
595
743
  .en-score-field {
596
744
  display: flex;
@@ -598,10 +746,6 @@ body.ec-edit-page .ec-submitbar {
598
746
  gap: 8px;
599
747
  padding: 0 12px;
600
748
  }
601
- .en-score-field:focus-within {
602
- outline: 2px solid var(--eds-primary-main);
603
- outline-offset: 1px;
604
- }
605
749
  .en-score-input {
606
750
  flex: 1;
607
751
  width: 100%;
@@ -617,9 +761,13 @@ body.ec-edit-page .ec-submitbar {
617
761
  -moz-appearance: textfield;
618
762
  }
619
763
  /* 테두리는 감싼 칸(.en-score-field:focus-within)이 그린다. 키트의 input:focus 테두리가 안에 또 그려지지 않게 */
620
- .en-score-input:focus,
621
- .en-score-input:focus-visible {
622
- outline: none;
764
+ .en-score-field .en-score-input,
765
+ .en-score-field .en-score-input:focus,
766
+ .en-score-field .en-score-input:focus-visible {
767
+ border: 0;
768
+ border-radius: 0;
769
+ outline: none !important;
770
+ box-shadow: none;
623
771
  }
624
772
  /* 숫자 칸의 위아래 화살표는 쓰지 않는다 (디자인에 없음, 점수는 직접 입력) */
625
773
  .en-score-input::-webkit-inner-spin-button,
@@ -824,13 +972,24 @@ body.ec-edit-page .ec-submitbar {
824
972
  padding: 16px 16px 0;
825
973
  }
826
974
  .en-grading-mode {
827
- margin: 16px 16px 0;
975
+ margin: 8px 16px 0;
828
976
  }
829
- .en-hint-link {
830
- white-space: normal;
977
+ .en-tabcard .en-panel .en-workspace {
978
+ margin-inline: -16px;
831
979
  }
832
980
  .en-tabcard .en-ai {
833
- padding: 24px 16px 0;
981
+ margin: 16px 16px 8px;
982
+ padding: 16px;
983
+ }
984
+ /* 아래 줄: 안내 위 · 용량 칩 아래 오른쪽 */
985
+ .en-panel-footer {
986
+ flex-direction: column;
987
+ align-items: stretch;
988
+ gap: 8px;
989
+ }
990
+ .en-size-box {
991
+ align-self: flex-end;
992
+ max-width: 100%;
834
993
  }
835
994
  .en-ai-head {
836
995
  flex-wrap: wrap;
@@ -845,8 +1004,14 @@ body.ec-edit-page .ec-submitbar {
845
1004
  .en-criteria-head {
846
1005
  display: none;
847
1006
  }
848
- .en-criteria {
849
- max-height: none;
1007
+ /* 추가하기 · 자동 배점 한 줄에 반씩 */
1008
+ .en-criteria-actions {
1009
+ grid-template-columns: 1fr 1fr;
1010
+ gap: 8px;
1011
+ }
1012
+ .en-criteria-actions .en-auto-button {
1013
+ grid-column: 2;
1014
+ justify-self: end;
850
1015
  }
851
1016
  .en-criterion {
852
1017
  grid-template-columns: minmax(0, 1fr) 112px 40px;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entry",
3
- "version": "0.2.0",
3
+ "version": "0.2.4",
4
4
  "title": "엔트리 코딩",
5
5
  "description": "엔트리 워크스페이스로 블록 코딩을 합니다. 편집 화면에서 언어 · 시작 화면 작품 · 채점(일반 · AI 채점 기준)을 정하고, 학생 작품은 자동 저장되며 제출하면 서버가 채점합니다"
6
6
  }