@operato/ops-contract 0.7.0 → 0.7.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.
@@ -560,7 +560,7 @@ export interface TestSpecification extends EffectivePeriod {
560
560
  id: string;
561
561
  /** 표준 `Description`. i18n 키일 수 있다(사람 언어는 표현 계층이 렌더한다). */
562
562
  description?: string;
563
- /** 표준 `Version` — 같은 시험의 판이 바뀌면 자격의 뜻도 바뀐다(어느 판으로 검증했나). */
563
+ /** 표준 `Version` — 같은 시험의 버전이 바뀌면 자격의 뜻도 바뀐다(어느 버전으로 검증했나). */
564
564
  version?: string;
565
565
  /**
566
566
  * 판정 기준들 — 표준 `TestSpecificationCriteria`(`maxOccurs="unbounded"`).
package/dist/index.d.ts CHANGED
@@ -18,5 +18,4 @@ export * from './wms-profile.ts';
18
18
  export * from './yms-profile.ts';
19
19
  export * from './canonical-record.ts';
20
20
  export * from './webhook.ts';
21
- export * from './version.ts';
22
21
  export * from './oee.ts';
package/dist/index.js CHANGED
@@ -40,5 +40,4 @@ export * from "./yms-profile.js";
40
40
  export * from "./canonical-record.js";
41
41
  /* `webhook-signature.ts` 는 여기 없다 — `node:crypto` 를 쓰므로 `@operato/ops-contract/webhook` 으로만 나간다. */
42
42
  export * from "./webhook.js";
43
- export * from "./version.js";
44
43
  export * from "./oee.js";
@@ -27,7 +27,6 @@ __export(index_exports, {
27
27
  CAPABILITY_KEYS: () => CAPABILITY_KEYS,
28
28
  CBV_BIZSTEP: () => CBV_BIZSTEP,
29
29
  CMD: () => CMD,
30
- CONTRACT_VERSION: () => CONTRACT_VERSION,
31
30
  DISP: () => DISP,
32
31
  DISPOSITION_DECISION: () => DISPOSITION_DECISION,
33
32
  DOMAIN_CATALOG: () => DOMAIN_CATALOG,
@@ -3826,9 +3825,6 @@ function checkSequenceRun(lastSeq, seqs) {
3826
3825
  return { accepted, lastSeq: cursor };
3827
3826
  }
3828
3827
 
3829
- // src/version.ts
3830
- var CONTRACT_VERSION = "0.7.0";
3831
-
3832
3828
  // src/oee.ts
3833
3829
  function computeOee(c, nowMs) {
3834
3830
  const missing = [];
@@ -3867,7 +3863,6 @@ function computeOee(c, nowMs) {
3867
3863
  CAPABILITY_KEYS,
3868
3864
  CBV_BIZSTEP,
3869
3865
  CMD,
3870
- CONTRACT_VERSION,
3871
3866
  DISP,
3872
3867
  DISPOSITION_DECISION,
3873
3868
  DOMAIN_CATALOG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/ops-contract",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Operations domain contract — the standard vocabulary that producers and readers agree on (EPCIS 2.0/GS1, ISA-95, IEC 61850/ISO 50001). Types, guards, validation. No state, no engine.",
5
5
  "type": "module",
6
6
  "main": "./dist-cjs/index.cjs",
@@ -22,7 +22,7 @@
22
22
  "dist-cjs"
23
23
  ],
24
24
  "scripts": {
25
- "build": "npm run build:esm && npm run build:cjs",
25
+ "build": "rm -rf dist dist-cjs && npm run build:esm && npm run build:cjs",
26
26
  "build:esm": "tsc -p tsconfig.build.json",
27
27
  "build:cjs": "esbuild src/index.ts --bundle --platform=node --format=cjs --outfile=dist-cjs/index.cjs && esbuild src/webhook-signature.ts --bundle --platform=node --format=cjs --outfile=dist-cjs/webhook-signature.cjs",
28
28
  "typecheck": "tsc -p tsconfig.check.json",
package/dist/version.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const CONTRACT_VERSION = "0.7.0";
package/dist/version.js DELETED
@@ -1,14 +0,0 @@
1
- /*
2
- * 이 계약의 **판**.
3
- *
4
- * ── 왜 내보내나 (2026-08-30) ─────────────────────────────────────────────
5
- * 소비처가 「내가 어느 판의 계약을 지키고 있나」를 사실로 남겨야 한다. MES 의 아웃박스가 그 값을
6
- * 레코드에 싣는데, 계약이 내보내지 않아 **상수로 손으로 적고 있었다.** `exports` 맵이 `package.json`
7
- * 을 막아 런타임에 읽을 수도 없다.
8
- *
9
- * 손으로 적은 판은 계약이 올라갈 때 같이 올라가지 않는다. 그러면 그 값은 「지킨다고 말한 판」이지
10
- * 「실제로 지킨 판」이 아니게 되고, 그것이 어긋난 날 아무도 모른다.
11
- *
12
- * **정본은 `package.json` 이다.** 이 값이 그것과 같은지는 시험이 지킨다(§`version-matches`).
13
- */
14
- export const CONTRACT_VERSION = '0.7.0';