rig-review 2.4.4 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rig-review",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "type": "module",
5
5
  "description": "Local human rig inspection and structured feedback export",
6
6
  "license": "MIT",
@@ -245,8 +245,10 @@ export function readProject(root: string, now = Date.now()) {
245
245
  const expectedStage = allowed.length === 1 ? allowed[0]! :
246
246
  ['rig_type','reference','seethrough','assemble'].includes(String(item.id)) ? 'interview' : 'rigging-interview';
247
247
  const set = validateSet(raw, item.id, [expectedStage]);
248
+ if (object(raw.context).kind === 'scene') throw new Error('INTERVIEW_CONTEXT_KIND_UNSUPPORTED: scene');
248
249
  const editable = entry.answer === undefined;
249
- if (editable && (object(interview.order).spec !== 'rig-create/stage-order@2' || !Number.isFinite(date(object(interview.order).choices_adopted_at)))) {
250
+ if (editable && (set.stage === 'interview' || set.stage === 'rigging-interview') &&
251
+ (object(interview.order).spec !== 'rig-create/stage-order@2' || !Number.isFinite(date(object(interview.order).choices_adopted_at)))) {
250
252
  throw new Error('INTERVIEW_CHOICE_REQUIRED: Adopt create choices before selecting');
251
253
  }
252
254
  if (editable && approval(project, set.stage === 'interview' ? 'plan-approved' : set.stage, now)) return invalid('Question approval is still live');
@@ -35,6 +35,7 @@ async function body(req: Request) {
35
35
  export const interviewRefusals = [
36
36
  'INTERVIEW_UNAVAILABLE', 'INTERVIEW_SOURCE_MISMATCH', 'INTERVIEW_CHOICE_INVALID',
37
37
  'INTERVIEW_CHOICE_CONSTRAINT', 'INTERVIEW_CHOICE_REQUIRED', 'INTERVIEW_OPTIONS_INVALID',
38
+ 'INTERVIEW_CONTEXT_KIND_UNSUPPORTED',
38
39
  'INTERVIEW_OPTIONS_FILE', 'INTERVIEW_OPTIONS_STALE', 'INTERVIEW_PICKS_OUTPUT',
39
40
  ] as const;
40
41
  export function interviewRequest(path: string) {
package/web/catalog-en.ts CHANGED
@@ -45,6 +45,7 @@ export const enCatalog: Readonly<Record<string, string>> = {
45
45
  "DIRECTION_VERSION_UNAVAILABLE: this draft has no recorded rig review package.": "DIRECTION_VERSION_UNAVAILABLE: this draft has no recorded rig review package.",
46
46
  "PARTS_VERDICT_READ_ONLY: a pending parts review and an explicit verdict output directory are required.": "PARTS_VERDICT_READ_ONLY: a pending parts review and an explicit verdict output directory are required.",
47
47
  "INTERVIEW_OPTIONS_STALE": "INTERVIEW_OPTIONS_STALE: Project or source changed. Reopen the inspection.",
48
+ "INTERVIEW_CONTEXT_KIND_UNSUPPORTED": "INTERVIEW_CONTEXT_KIND_UNSUPPORTED: The scene option context is unsupported.",
48
49
  "interview.joinedDraft": "Draft {0} · project {1} · source {2}",
49
50
  "interview.joined": "Create version {0} · project SHA-256 {1} · inspection SHA-256 {2}",
50
51
  "interview.mismatch": "INTERVIEW_SOURCE_MISMATCH: The inspection does not match the designated Create package.",
package/web/catalog-ko.ts CHANGED
@@ -45,6 +45,7 @@ export const koCatalog: Readonly<Record<string, string>> = {
45
45
  "DIRECTION_VERSION_UNAVAILABLE: this draft has no recorded rig review package.": "DIRECTION_VERSION_UNAVAILABLE: 이 초안에는 기록된 리그 검토 패키지가 없습니다.",
46
46
  "PARTS_VERDICT_READ_ONLY: a pending parts review and an explicit verdict output directory are required.": "PARTS_VERDICT_READ_ONLY: 대기 중인 파츠 검토와 명시적으로 지정한 판정 출력 디렉터리가 필요합니다.",
47
47
  "INTERVIEW_OPTIONS_STALE": "INTERVIEW_OPTIONS_STALE: 프로젝트 또는 원본이 바뀌었어요. 검토를 다시 여세요.",
48
+ "INTERVIEW_CONTEXT_KIND_UNSUPPORTED": "INTERVIEW_CONTEXT_KIND_UNSUPPORTED: scene 선택지 문맥은 지원하지 않습니다.",
48
49
  "interview.joinedDraft": "초안 {0} · 프로젝트 {1} · 원본 {2}",
49
50
  "interview.joined": "Create 버전 {0} · 프로젝트 SHA-256 {1} · 검토 SHA-256 {2}",
50
51
  "interview.mismatch": "INTERVIEW_SOURCE_MISMATCH: 검토 대상이 지정한 Create 패키지와 일치하지 않아요.",
@@ -10,6 +10,7 @@ export const interviewErrors: Readonly<Record<string,string>> = {
10
10
  INTERVIEW_CHOICE_INVALID:'interview.invalid',
11
11
  INTERVIEW_CHOICE_CONSTRAINT:'interview.constraint',
12
12
  INTERVIEW_CHOICE_REQUIRED:'interview.required',
13
+ INTERVIEW_CONTEXT_KIND_UNSUPPORTED:'INTERVIEW_CONTEXT_KIND_UNSUPPORTED',
13
14
  INTERVIEW_OPTIONS_INVALID:'interview.invalidOptions',
14
15
  INTERVIEW_OPTIONS_FILE:'interview.file',
15
16
  INTERVIEW_OPTIONS_STALE:'interview.stale',