@things-factory/board-import 10.0.0-beta.73 → 10.0.0-beta.74

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": "@things-factory/board-import",
3
- "version": "10.0.0-beta.73",
3
+ "version": "10.0.0-beta.74",
4
4
  "main": "dist-server/index.js",
5
5
  "things-factory": true,
6
6
  "author": "heartyoh",
@@ -31,5 +31,5 @@
31
31
  "@things-factory/shell": "^10.0.0-beta.72",
32
32
  "dxf-parser": "^1.1.2"
33
33
  },
34
- "gitHead": "341da092718582e73103234d4ecd28d22d4fd85a"
34
+ "gitHead": "589dd8dab5bb2db400e5f10a1f455c3fb69bf9f4"
35
35
  }
@@ -9,10 +9,24 @@ import {
9
9
  isPlaceholderType,
10
10
  CORE_PLACEHOLDER_TYPES
11
11
  } from './generic-to'
12
+ import { GENERIC_OBJECT_TYPE } from '../pipeline/stage2-mapping'
12
13
 
13
14
  // 호출자가 도메인 추상까지 인정하는 경우의 fixtures.
14
15
  const EXTRA = ['GenericTransport', 'GenericFacility'] as const
15
16
 
17
+ // ── 계약 어설션 ─────────────────────────────────────────────────────
18
+ // things-scene 의 CORE_PLACEHOLDER_TYPES 와 mirror. client/server 경계로
19
+ // 직접 import 불가 — 이 테스트가 양쪽 값 일치를 보증.
20
+ describe('CORE_PLACEHOLDER_TYPES contract', () => {
21
+ test('GENERIC_OBJECT_TYPE 은 반드시 placeholder 고정', () => {
22
+ expect(GENERIC_OBJECT_TYPE).toBe('placeholder')
23
+ })
24
+
25
+ test('CORE_PLACEHOLDER_TYPES 는 [placeholder] 고정 — things-scene 과 동기화', () => {
26
+ expect(Array.from(CORE_PLACEHOLDER_TYPES)).toEqual(['placeholder'])
27
+ })
28
+ })
29
+
16
30
  describe('isPlaceholderType', () => {
17
31
  test('코어 type 들은 인정', () => {
18
32
  for (const t of CORE_PLACEHOLDER_TYPES) {
@@ -32,7 +32,13 @@ export interface ConvertOptions {
32
32
  extraPlaceholderTypes?: ReadonlyArray<string>
33
33
  }
34
34
 
35
- /** things-scene 코어가 등록한 도메인 비종속 placeholder type. */
35
+ /**
36
+ * things-scene 코어가 등록한 도메인 비종속 placeholder type.
37
+ *
38
+ * @sync things-scene/src/components/generic-placeholders.ts CORE_PLACEHOLDER_TYPES
39
+ * client/server 경계로 직접 import 불가 — 값을 바꾸면 양쪽 동시 수정 필수.
40
+ * 계약은 generic-to.test.ts 의 'CORE_PLACEHOLDER_TYPES contract' 어설션으로 보증.
41
+ */
36
42
  export const CORE_PLACEHOLDER_TYPES = [GENERIC_OBJECT_TYPE] as const
37
43
 
38
44
  export function isPlaceholderType(