@operato/twin-kernel 0.8.0 → 0.8.1

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.
@@ -1,4 +1,4 @@
1
- import type { VocabularyElement } from '@operato/operations-contract';
1
+ import type { VocabularyElement } from '@operato/ops-contract';
2
2
  /**
3
3
  * 클래스 단위 마스터 표 — 관측 리듀서가 든다.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { Command, CommandAck, ScenarioControl, StateSnapshot } from '@operato/operations-contract';
1
+ import type { Command, CommandAck, ScenarioControl, StateSnapshot } from '@operato/ops-contract';
2
2
  import { type StateDivergence } from './divergence.ts';
3
3
  /** fork·구동·행위 가능한 트윈(FlowEngine 이 만족). */
4
4
  export interface CounterfactualTwin {
@@ -1,4 +1,4 @@
1
- import type { StateSnapshot } from '@operato/operations-contract';
1
+ import type { StateSnapshot } from '@operato/ops-contract';
2
2
  export interface FieldDiff<T> {
3
3
  id: string;
4
4
  predicted: T | undefined;
@@ -5,7 +5,7 @@
5
5
  * 상태를 같은 시점에 비교해 **드리프트(모델과 현실의 이탈)** 를 탐지한다. 발산 = 이상/개입 신호.
6
6
  * (fork 로 예측 → 관측으로 실제 → 여기서 대조. execution-model.md 시뮬↔모니터링 커플링.)
7
7
  */
8
- import { itemKeyOf } from '@operato/operations-contract';
8
+ import { itemKeyOf } from '@operato/ops-contract';
9
9
  function diffBy(predicted, actual, idOf, valOf) {
10
10
  const p = new Map(predicted.map(e => [idOf(e), valOf(e)]));
11
11
  const a = new Map(actual.map(e => [idOf(e), valOf(e)]));
@@ -1,6 +1,6 @@
1
1
  import { FlowEngine } from './flow-engine.ts';
2
2
  import { type AllocationPolicy } from './allocation-policy.ts';
3
- import { type CanonicalEnvelope, type DemandWindowState, type EnergyState, type StateSnapshot, type Attention, type StructureShift, type TwinModelDef } from '@operato/operations-contract';
3
+ import { type CanonicalEnvelope, type DemandWindowState, type EnergyState, type StateSnapshot, type Attention, type StructureShift, type TwinModelDef } from '@operato/ops-contract';
4
4
  /** 수요 구간 — 요금의 알갱이다. 15분은 한국·다수 요금제의 최대수요 산정 단위다. */
5
5
  export declare const DEMAND_WINDOW_MS: number;
6
6
  /** 그 시각이 속한 구간의 시작 — 벽시계 경계(00·15·30·45분)에 맞춘다. */
@@ -27,12 +27,12 @@
27
27
  */
28
28
  import { FlowEngine } from "./flow-engine.js";
29
29
  /* 기간 사실의 이름은 유입 문과 한 규칙이다(§`periodFactId`). */
30
- import { periodFactId } from '@operato/operations-contract';
30
+ import { periodFactId } from '@operato/ops-contract';
31
31
  /* 「이 시각에 유효한가」는 커널에 규칙이 한 벌이다 — 선언 축도 그것을 쓴다. */
32
- import { effectivityAt } from '@operato/operations-contract';
32
+ import { effectivityAt } from '@operato/ops-contract';
33
33
  import { firstFitPolicy } from "./allocation-policy.js";
34
- import { CMD, ENERGY_EVENT, minuteOfDayAt, localDayIndexAt, localDayStartMs } from '@operato/operations-contract';
35
- import { EMS_PROPERTY, METER_DIRECTION, electricalUpstreamOf, generationFractionAt } from '@operato/operations-contract';
34
+ import { CMD, ENERGY_EVENT, minuteOfDayAt, localDayIndexAt, localDayStartMs } from '@operato/ops-contract';
35
+ import { EMS_PROPERTY, METER_DIRECTION, electricalUpstreamOf, generationFractionAt } from '@operato/ops-contract';
36
36
  /** 수요 구간 — 요금의 알갱이다. 15분은 한국·다수 요금제의 최대수요 산정 단위다. */
37
37
  export const DEMAND_WINDOW_MS = 15 * 60 * 1000;
38
38
  /** 그 시각이 속한 구간의 시작 — 벽시계 경계(00·15·30·45분)에 맞춘다. */
@@ -1,4 +1,4 @@
1
- import type { TwinModelDef, CanonicalEnvelope, StructureShift } from '@operato/operations-contract';
1
+ import type { TwinModelDef, CanonicalEnvelope, StructureShift } from '@operato/ops-contract';
2
2
  import { type ProjectedState, type ReducerCheckpoint } from './state-projector.ts';
3
3
  /** 저장된 기록을 처리할 것 — 도메인 커널 또는 `StateProjector`. 계약은 넷뿐이다. */
4
4
  export interface JournalProjector {
@@ -1,12 +1,12 @@
1
- import type { TestResult, ISOTime, MaterialQuantity, WorkCalendarEntry, EffectivePeriod, Effectivity, OffCalendarReason, ResourceProperty, ResourceClassDef, MaterialDefinition, Attention, TwinModelDef, CanonicalEnvelope, Command, CommandAck, EventHandler, EquipmentMotion, OeeMetrics, AssetState, GeneratorSpec, InterventionOutcome, OrderState, PersonState, ScenarioControl, ScenarioOverride, StateSnapshot, TwinKernel, Unsubscribe, LocationState, ItemState, EquipmentState, OrderStatusDelta, TaskState, TaskStatus, StructureShift, IdentityGroundingView, IdentityDeclaration, TestSpecificationCriterion, LocationObservation } from '@operato/operations-contract';
2
- import type { VocabularyElement } from '@operato/operations-contract';
1
+ import type { TestResult, ISOTime, MaterialQuantity, WorkCalendarEntry, EffectivePeriod, Effectivity, OffCalendarReason, ResourceProperty, ResourceClassDef, MaterialDefinition, Attention, TwinModelDef, CanonicalEnvelope, Command, CommandAck, EventHandler, EquipmentMotion, OeeMetrics, AssetState, GeneratorSpec, InterventionOutcome, OrderState, PersonState, ScenarioControl, ScenarioOverride, StateSnapshot, TwinKernel, Unsubscribe, LocationState, ItemState, EquipmentState, OrderStatusDelta, TaskState, TaskStatus, StructureShift, IdentityGroundingView, IdentityDeclaration, TestSpecificationCriterion, LocationObservation } from '@operato/ops-contract';
2
+ import type { VocabularyElement } from '@operato/ops-contract';
3
3
  import type { ReducerCheckpoint } from './observed-reducer.ts';
4
- import type { EpcisEvent, BizTransactionElement } from '@operato/operations-contract';
4
+ import type { EpcisEvent, BizTransactionElement } from '@operato/ops-contract';
5
5
  import type { AllocationPolicy, SlotView } from './allocation-policy.ts';
6
6
  import type { DurationEstimator, DurationContext } from './duration-estimator.ts';
7
- import type { OperationDef, IsoDuration, OpMaterialSpecification } from '@operato/operations-contract';
8
- import { type CapacityAnalysis } from '@operato/operations-contract';
9
- import { type CommittedDemand, type OperationsCapabilityReport } from '@operato/operations-contract';
7
+ import type { OperationDef, IsoDuration, OpMaterialSpecification } from '@operato/ops-contract';
8
+ import { type CapacityAnalysis } from '@operato/ops-contract';
9
+ import { type CommittedDemand, type OperationsCapabilityReport } from '@operato/ops-contract';
10
10
  export interface FlowLocation {
11
11
  id: string;
12
12
  type: string;
@@ -9,17 +9,17 @@
9
9
  * 통합 타입은 도메인 필드를 옵셔널로 넓혀(FlowItem.gtin?, FlowOrder.shipmentEpc? 등) 두 도메인을 담는다.
10
10
  * (roadmap Phase5 발견 → 추출. [[project_flow_single_base_vision]] FlowLocation 단일 base 방향과 정합.)
11
11
  */
12
- import { OP_EVENT, CMD, locationStatusOf, readBoardEquipment, readBoardLocations, readBoardAssets, classClosure, capabilityOf, requiredTestsFor, priorityRank, dueStatusOf, isOrderTerminal, effectivityAt, offCalendarAt, offCalendarReasonAt, minuteOfDayAt, activeShiftAt, subLotIdOf, itemKeyOf, identityGroundingOf, outsideLimit } from '@operato/operations-contract';
12
+ import { OP_EVENT, CMD, locationStatusOf, readBoardEquipment, readBoardLocations, readBoardAssets, classClosure, capabilityOf, requiredTestsFor, priorityRank, dueStatusOf, isOrderTerminal, effectivityAt, offCalendarAt, offCalendarReasonAt, minuteOfDayAt, activeShiftAt, subLotIdOf, itemKeyOf, identityGroundingOf, outsideLimit } from '@operato/ops-contract';
13
13
  import { ObservedReducer } from "./observed-reducer.js";
14
14
  /* 주체를 정하는 규칙은 유입 문과 한 벌이다 — 두 곳에 적으면 한쪽만 고쳐진다. */
15
- import { resolveSubject } from '@operato/operations-contract';
16
- import { transformationEvent, aggregationEvent, objectEvent, parseEpc, DISP, ILMD_ATTR, CBV_BIZSTEP, objectUri, bizTransactionUri, gdtiUri } from '@operato/operations-contract';
17
- import { OP_PARAM } from '@operato/operations-contract';
18
- import { parseIsoDuration } from '@operato/operations-contract';
19
- import { analyzeCapacity } from '@operato/operations-contract';
20
- import { operationsCapabilityOf } from '@operato/operations-contract';
15
+ import { resolveSubject } from '@operato/ops-contract';
16
+ import { transformationEvent, aggregationEvent, objectEvent, parseEpc, DISP, ILMD_ATTR, CBV_BIZSTEP, objectUri, bizTransactionUri, gdtiUri } from '@operato/ops-contract';
17
+ import { OP_PARAM } from '@operato/ops-contract';
18
+ import { parseIsoDuration } from '@operato/ops-contract';
19
+ import { analyzeCapacity } from '@operato/ops-contract';
20
+ import { operationsCapabilityOf } from '@operato/ops-contract';
21
21
  /* 에너지 상태 필드는 **능력 선언에서 뽑는다** — 손으로 적으면 능력에 필드를 더한 날 스냅샷이 빠진다. */
22
- import { stateFieldsOf } from '@operato/operations-contract';
22
+ import { stateFieldsOf } from '@operato/ops-contract';
23
23
  const BASE_EPOCH = Date.parse('2026-01-01T00:00:00Z');
24
24
  /**
25
25
  * 선언한 유효 기간만 뽑는다 — 마스터가 말하지 않으면 필드를 만들지 않는다.
@@ -1,4 +1,4 @@
1
- import type { ScenarioControl, ScenarioDef, StateSnapshot } from '@operato/operations-contract';
1
+ import type { ScenarioControl, ScenarioDef, StateSnapshot } from '@operato/ops-contract';
2
2
  /** fork·시나리오 구동 가능한 트윈(FlowEngine 이 만족). */
3
3
  export interface ForecastTwin {
4
4
  getSnapshot(): StateSnapshot;
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * 커널의 진입점 — **엔진만 내보낸다.**
3
3
  *
4
4
  * ── 계약을 다시 내보내지 않는다 (2026-08-30) ──────────────────────────────
5
- * 어휘·타입·판별 함수는 `@operato/operations-contract` 에 있다. 여기서 그것을 다시 내보내면 같은 이름을
5
+ * 어휘·타입·판별 함수는 `@operato/ops-contract` 에 있다. 여기서 그것을 다시 내보내면 같은 이름을
6
6
  * **두 경로로** 가져올 수 있게 되고, 새 코드가 편한 쪽을 쓰면 계약이 커널 뒤에 숨는다. 그때 층은
7
7
  * 이름만 남는다 — 사실을 만들기만 하는 쪽(MES · WMS · 커넥터)이 엔진을 거쳐 어휘를 얻게 된다.
8
8
  *
@@ -1,4 +1,4 @@
1
- import type { ISOTime } from '@operato/operations-contract';
1
+ import type { ISOTime } from '@operato/ops-contract';
2
2
  import { type TaskDeltaRow } from './task-fold.ts';
3
3
  /** 표준 `JobState` — 우리 작업 상태를 표준 낱말로 옮긴다. */
4
4
  export type JobState = 'ready' | 'running' | 'completed';
package/dist/kernel.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Command, CommandAck, GeneratorSpec } from '@operato/operations-contract';
1
+ import type { Command, CommandAck, GeneratorSpec } from '@operato/ops-contract';
2
2
  import type { AllocationPolicy } from './allocation-policy.ts';
3
3
  import { FlowEngine } from './flow-engine.ts';
4
4
  import type { FlowOrder, FlowTask } from './flow-engine.ts';
package/dist/kernel.js CHANGED
@@ -5,13 +5,13 @@
5
5
  * 입고: 도착 → receiving(Txn PO + Agg 팔레트←케이스 + Object) → putaway → storing.
6
6
  * 출고: SO 오더 → 할당(Txn SO) → pick(bin→staging) → picking → packing(Agg 화물←팔레트) → staging → shipping(DELETE).
7
7
  */
8
- import { CMD } from '@operato/operations-contract';
8
+ import { CMD } from '@operato/ops-contract';
9
9
  import { firstFitPolicy } from "./allocation-policy.js";
10
10
  import { FlowEngine } from "./flow-engine.js";
11
11
  import { planMakeToOrder } from "./make-to-order.js";
12
- import { BIZSTEP, BTT } from '@operato/operations-contract';
13
- import { DISP, ILMD_ATTR, aggregationEvent, objectEvent, transactionEvent } from '@operato/operations-contract';
14
- import { subLotIdOf, itemKeyOf } from '@operato/operations-contract';
12
+ import { BIZSTEP, BTT } from '@operato/ops-contract';
13
+ import { DISP, ILMD_ATTR, aggregationEvent, objectEvent, transactionEvent } from '@operato/ops-contract';
14
+ import { subLotIdOf, itemKeyOf } from '@operato/ops-contract';
15
15
  const TRAVEL_MS = 30_000;
16
16
  const SHELF_MS = 30 * 24 * 3_600_000; // 기본 유통기한(30일)
17
17
  const SHELF_JITTER_MS = 5 * 24 * 3_600_000; // 로트별 만료 편차(FEFO 가 FIFO 와 갈리게)
@@ -1,4 +1,4 @@
1
- import type { OperationDef } from '@operato/operations-contract';
1
+ import type { OperationDef } from '@operato/ops-contract';
2
2
  /** 이 판단이 보는 재고 한 줄 — 무엇이 어디에 얼마나, 팔 수 있나. */
3
3
  export interface StockLine {
4
4
  /** 품목 식별자(GTIN). */
@@ -1,8 +1,8 @@
1
- import type { GeneratorSpec, Command, CommandAck, ProductionSpec, TwinModelDef, IdentityGroundingView, Attention } from '@operato/operations-contract';
1
+ import type { GeneratorSpec, Command, CommandAck, ProductionSpec, TwinModelDef, IdentityGroundingView, Attention } from '@operato/ops-contract';
2
2
  import type { AllocationPolicy } from './allocation-policy.ts';
3
3
  import { FlowEngine } from './flow-engine.ts';
4
4
  import type { FlowOrder, FlowTask } from './flow-engine.ts';
5
- import { type OpMaterialSpecification } from '@operato/operations-contract';
5
+ import { type OpMaterialSpecification } from '@operato/ops-contract';
6
6
  export declare class MesKernel extends FlowEngine {
7
7
  private wipSeq;
8
8
  private prodSeq;
@@ -60,7 +60,7 @@ export declare class MesKernel extends FlowEngine {
60
60
  * 모델 자리(§`TwinModelDef.identity`)로 옮기면 이 override 는 사라진다. 두 자리를 동시에 읽는 것이
61
61
  * 아니라 **하나를 고르는** 것이므로 규칙이 갈리지 않는다.
62
62
  */
63
- protected identityDeclaration(): import("@operato/operations-contract").IdentityDeclaration | undefined;
63
+ protected identityDeclaration(): import("@operato/ops-contract").IdentityDeclaration | undefined;
64
64
  protected identityGroundingView(): IdentityGroundingView;
65
65
  /**
66
66
  * 선언이 말하는 자리 타입이 **이 트윈에 있나** — 로드 시점에 한 번, 모아서 말한다 (2026-08-20).
@@ -8,12 +8,12 @@
8
8
  * ③ 셋업/체인지오버 = work-center 가 제품 전환 시 셋업(changeoverKey=제품 gtin) → OEE Availability.
9
9
  * ④ OEE = base 가 설비(설비)별 계측(가동/셋업/기아/품질). cut=cutter·weld=welder 이종 자원.
10
10
  */
11
- import { identityGroundingOf } from '@operato/operations-contract';
11
+ import { identityGroundingOf } from '@operato/ops-contract';
12
12
  import { firstFitPolicy } from "./allocation-policy.js";
13
13
  import { FlowEngine } from "./flow-engine.js";
14
- import { DISP, objectEvent, transactionEvent, gdtiUri, sgtinClass, bizTransactionUri } from '@operato/operations-contract';
15
- import { MES_BIZSTEP, BTT_PRODORDER, sgtinUri } from '@operato/operations-contract';
16
- import { OP_PARAM } from '@operato/operations-contract';
14
+ import { DISP, objectEvent, transactionEvent, gdtiUri, sgtinClass, bizTransactionUri } from '@operato/ops-contract';
15
+ import { MES_BIZSTEP, BTT_PRODORDER, sgtinUri } from '@operato/ops-contract';
16
+ import { OP_PARAM } from '@operato/ops-contract';
17
17
  /* 아래 셋은 **기본값**이다 — 명세(OperationDef.duration·parameters)가 있으면 그 값이 이긴다.
18
18
  * 이름에 DEFAULT 를 붙인 이유: 예전에는 이것이 유일한 값이어서 "현장 명세" 와 구별되지 않았고,
19
19
  * 그 상수가 수율 판단(주목 신호)까지 만들어 냈다. 무엇을 기본값으로 굴렸는지는 specCoverage() 가 밝힌다. */
@@ -1,5 +1,5 @@
1
- import type { AssetState, TestResult, MaterialQuantity, TwinModelDef, CanonicalEnvelope, LocationState, ItemState, LocationObservation, EquipmentState, PersonState, TaskState, OrderState, StructureShift } from '@operato/operations-contract';
2
- import { type VocabularyElement } from '@operato/operations-contract';
1
+ import type { AssetState, TestResult, MaterialQuantity, TwinModelDef, CanonicalEnvelope, LocationState, ItemState, LocationObservation, EquipmentState, PersonState, TaskState, OrderState, StructureShift } from '@operato/ops-contract';
2
+ import { type VocabularyElement } from '@operato/ops-contract';
3
3
  interface ProjItem {
4
4
  epc: string;
5
5
  /** 로트의 부분(표준 MaterialSubLot.ID) — 비직렬 로트가 자리마다 갈릴 때만. */
@@ -19,9 +19,9 @@
19
19
  * - 운영 델타(task/equipment/order.status) → tasks·equipment·orders (EPCIS 로 재구성 불가한 절반)
20
20
  * 마스터(로케이션)는 board 초기화 + applyMaster 로 갱신(마스터 동기).
21
21
  */
22
- import { OP_EVENT, capabilityOf, itemKeyOf, judgeAgainstSpec, requiredTestsFor, locationStatusOf, readBoardEquipment, readBoardLocations, readBoardAssets, effectivityAt, offCalendarAt, offCalendarReasonAt, activeShiftAt } from '@operato/operations-contract';
23
- import { ILMD_ATTR, parseEpc } from '@operato/operations-contract';
24
- import { expiryFromAttributes, lotFromAttributes } from '@operato/operations-contract';
22
+ import { OP_EVENT, capabilityOf, itemKeyOf, judgeAgainstSpec, requiredTestsFor, locationStatusOf, readBoardEquipment, readBoardLocations, readBoardAssets, effectivityAt, offCalendarAt, offCalendarReasonAt, activeShiftAt } from '@operato/ops-contract';
23
+ import { ILMD_ATTR, parseEpc } from '@operato/ops-contract';
24
+ import { expiryFromAttributes, lotFromAttributes } from '@operato/ops-contract';
25
25
  /* 클래스 마스터 표는 상태를 들므로 커널에 있다(§`class-master-table`). */
26
26
  import { ClassMasterTable } from "./class-master-table.js";
27
27
  /**
package/dist/runtime.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CanonicalEnvelope, Command, CommandAck, ScenarioControl, StateSnapshot, TwinKernel } from '@operato/operations-contract';
1
+ import type { CanonicalEnvelope, Command, CommandAck, ScenarioControl, StateSnapshot, TwinKernel } from '@operato/ops-contract';
2
2
  export type SubscriptionMessage = {
3
3
  kind: 'snapshot';
4
4
  revision: number;
@@ -1,4 +1,4 @@
1
- import type { TaskStatusDelta } from '@operato/operations-contract';
1
+ import type { TaskStatusDelta } from '@operato/ops-contract';
2
2
  /**
3
3
  * 되읽을 저널 한 줄 — 필요한 것만.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { StateSnapshot } from '@operato/operations-contract';
1
+ import type { StateSnapshot } from '@operato/ops-contract';
2
2
  import { type StateDivergence } from './divergence.ts';
3
3
  /** 관찰 대상 = fork 가능한 트윈(FlowEngine 이 만족). */
4
4
  export interface ObservableTwin {
@@ -1,4 +1,4 @@
1
- import type { GeneratorSpec } from '@operato/operations-contract';
1
+ import type { GeneratorSpec } from '@operato/ops-contract';
2
2
  import type { AllocationPolicy } from './allocation-policy.ts';
3
3
  import { FlowEngine } from './flow-engine.ts';
4
4
  import type { FlowOrder, FlowTask } from './flow-engine.ts';
@@ -15,11 +15,11 @@
15
15
  * - drop(기본): 트레일러를 야드 슬롯에 내려놓고(주차) 창 도래 시 호슬러가 도크로 pull. 야드 버퍼 사용.
16
16
  * - live: 게이트에서 대기하다 창 도래 시 도크로 직행(야드 미경유). 게이트/도크를 더 오래 점유.
17
17
  */
18
- import { itemKeyOf } from '@operato/operations-contract';
18
+ import { itemKeyOf } from '@operato/ops-contract';
19
19
  import { firstFitPolicy } from "./allocation-policy.js";
20
20
  import { FlowEngine } from "./flow-engine.js";
21
- import { DISP, objectEvent, transactionEvent } from '@operato/operations-contract';
22
- import { YARD_BIZSTEP, BTT_DELIVERY } from '@operato/operations-contract';
21
+ import { DISP, objectEvent, transactionEvent } from '@operato/ops-contract';
22
+ import { YARD_BIZSTEP, BTT_DELIVERY } from '@operato/ops-contract';
23
23
  const TRAVEL_MS = 20_000; // 야드 이동
24
24
  const DWELL_MS = 30_000; // 도크 체류(상·하차) — depart 이동에 folded
25
25
  const WINDOW_DELAY_MS = 40_000; // 도착 후 어포인트먼트 창까지(early arrival → 대기)
@@ -63,7 +63,7 @@ __export(index_exports, {
63
63
  });
64
64
  module.exports = __toCommonJS(index_exports);
65
65
 
66
- // ../operations-contract/dist/capability.js
66
+ // ../ops-contract/dist/capability.js
67
67
  var CAPABILITIES = {
68
68
  operable: {
69
69
  key: "operable",
@@ -198,7 +198,7 @@ function stateFieldsOf(caps) {
198
198
  return [...out];
199
199
  }
200
200
 
201
- // ../operations-contract/dist/contract.js
201
+ // ../ops-contract/dist/contract.js
202
202
  var ORDER_TERMINAL_STATUS = ["completed", "cancelled"];
203
203
  function isOrderTerminal(o) {
204
204
  const status = String(o?.status ?? "").trim().toLowerCase();
@@ -779,7 +779,7 @@ function gs1Namespaces(prefix) {
779
779
  return [`urn:epc:idpat:sgtin:${prefix}.`, `urn:epc:class:lgtin:${prefix}.`, `urn:epc:id:sgtin:${prefix}.`];
780
780
  }
781
781
 
782
- // ../operations-contract/dist/capacity.js
782
+ // ../ops-contract/dist/capacity.js
783
783
  function isoDurationHours(iso2) {
784
784
  if (!iso2)
785
785
  return 0;
@@ -887,7 +887,7 @@ function analyzeCapacity(input) {
887
887
  };
888
888
  }
889
889
 
890
- // ../operations-contract/dist/wms-profile.js
890
+ // ../ops-contract/dist/wms-profile.js
891
891
  var BIZSTEP = {
892
892
  receiving: "urn:epcglobal:cbv:bizstep:receiving",
893
893
  storing: "urn:epcglobal:cbv:bizstep:storing",
@@ -917,7 +917,7 @@ var WMS_TYPES = [
917
917
  { key: "packer", role: "equipment", label: "twin.type.packer", standardClass: { epcis: "object", isa95: "Equipment" }, identity: { scheme: "gs1:GIAI" }, capabilities: ["processable", "operable"] }
918
918
  ];
919
919
 
920
- // ../operations-contract/dist/yms-profile.js
920
+ // ../ops-contract/dist/yms-profile.js
921
921
  var YARD_BIZSTEP = {
922
922
  arriving: "urn:epcglobal:cbv:bizstep:arriving",
923
923
  // 게이트-인
@@ -943,7 +943,7 @@ var YMS_TYPES = [
943
943
  { key: "hostler", role: "equipment", label: "twin.type.hostler", standardClass: { epcis: "object", iso55000: "Asset" }, identity: { scheme: "gs1:GIAI" }, capabilities: ["mobile", "operable"] }
944
944
  ];
945
945
 
946
- // ../operations-contract/dist/mes-profile.js
946
+ // ../ops-contract/dist/mes-profile.js
947
947
  var MES_BIZSTEP = {
948
948
  receiving: "urn:epcglobal:cbv:bizstep:receiving",
949
949
  // 원자재 수령
@@ -981,7 +981,7 @@ var MES_TYPES = [
981
981
  { key: "assembler", role: "equipment", label: "twin.type.assembler", standardClass: { isa95: "Equipment", iso55000: "Asset" }, identity: { scheme: "gs1:GIAI" }, capabilities: ["processable", "operable"] }
982
982
  ];
983
983
 
984
- // ../operations-contract/dist/ems-profile.js
984
+ // ../ops-contract/dist/ems-profile.js
985
985
  var EMS_LOCATION_TYPES = ["incoming", "feeder", "submeter-zone"];
986
986
  var METER_DIRECTION = ["import", "export", "bidirectional"];
987
987
  var EMS_PROPERTY = {
@@ -1302,7 +1302,7 @@ function isElectricalLocationType(type) {
1302
1302
  return EMS_LOCATION_TYPES.includes(type);
1303
1303
  }
1304
1304
 
1305
- // ../operations-contract/dist/domain-catalog.js
1305
+ // ../ops-contract/dist/domain-catalog.js
1306
1306
  var locationKeys = (types) => types.filter((t) => t.role === "location").map((t) => t.key);
1307
1307
  var DOMAIN_CATALOG = {
1308
1308
  // label 은 언어 중립 i18n 키(twin.system.<code>) — 사람 언어는 표현계층이 렌더(L2).
@@ -1312,7 +1312,7 @@ var DOMAIN_CATALOG = {
1312
1312
  ems: { system: "ems", label: "twin.system.ems", types: EMS_TYPES, locationTypes: locationKeys(EMS_TYPES) }
1313
1313
  };
1314
1314
 
1315
- // ../operations-contract/dist/domain-definition.js
1315
+ // ../ops-contract/dist/domain-definition.js
1316
1316
  var OP_PARAM = {
1317
1317
  /** 양품률(0..1, 무차원). 없으면 커널 기본값 — 기본값을 쓴 사실은 `specCoverage()` 가 밝힌다. */
1318
1318
  yield: "yield",
@@ -1321,7 +1321,7 @@ var OP_PARAM = {
1321
1321
  setupDuration: "setupDuration"
1322
1322
  };
1323
1323
 
1324
- // ../operations-contract/dist/energy-ingest.js
1324
+ // ../ops-contract/dist/energy-ingest.js
1325
1325
  function resolveSubject(kind, localId, opts) {
1326
1326
  const declared = opts.identityOf?.(kind, localId);
1327
1327
  if (declared)
@@ -1332,7 +1332,7 @@ function periodFactId(tenantId, kind, subject, from, to) {
1332
1332
  return [tenantId, kind, subject, from, to].join("|");
1333
1333
  }
1334
1334
 
1335
- // ../operations-contract/dist/epcis.js
1335
+ // ../ops-contract/dist/epcis.js
1336
1336
  var EPCIS_CONTEXT = "https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld";
1337
1337
  var UTC_OFFSET = "+00:00";
1338
1338
  var DISP = {
@@ -1591,7 +1591,7 @@ function transformationEvent(p) {
1591
1591
  return e;
1592
1592
  }
1593
1593
 
1594
- // ../operations-contract/dist/iso-duration.js
1594
+ // ../ops-contract/dist/iso-duration.js
1595
1595
  var RE = /^(-)?P(?:(\d+(?:\.\d+)?)W)?(?:(\d+(?:\.\d+)?)D)?(?:T(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;
1596
1596
  function parseIsoDuration(text) {
1597
1597
  if (typeof text !== "string")
@@ -1617,7 +1617,7 @@ function parseIsoDuration(text) {
1617
1617
  return sign ? -ms2 : ms2;
1618
1618
  }
1619
1619
 
1620
- // ../operations-contract/dist/master-data.js
1620
+ // ../ops-contract/dist/master-data.js
1621
1621
  function expiryFromAttributes(attrs) {
1622
1622
  return readEpochMs(attrs?.[ILMD_ATTR.expiry]);
1623
1623
  }
@@ -1634,7 +1634,7 @@ function readEpochMs(raw) {
1634
1634
  return Number.isNaN(at) ? void 0 : at;
1635
1635
  }
1636
1636
 
1637
- // ../operations-contract/dist/operational-ingest.js
1637
+ // ../ops-contract/dist/operational-ingest.js
1638
1638
  var TASK_STATUS = ["created", "assigned", "in-progress", "completed"];
1639
1639
  var EQUIPMENT_STATUS = ["idle", "busy", "down"];
1640
1640
  var PERSON_STATUS = ["idle", "busy"];
@@ -1842,7 +1842,7 @@ var SPECS = {
1842
1842
  }
1843
1843
  };
1844
1844
 
1845
- // ../operations-contract/dist/operations-capability.js
1845
+ // ../ops-contract/dist/operations-capability.js
1846
1846
  function workingHoursBetween(calendar, fromMs, toMs, utcOffsetMinutes) {
1847
1847
  if (!(toMs > fromMs))
1848
1848
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/twin-kernel",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "Twin Domain Kernel — framework-agnostic, zero-dep (domain + sim + 3-channel contract). WMS/YMS/MES, EPCIS 2.0 · ISA-95.",
6
6
  "publishConfig": {
@@ -28,6 +28,6 @@
28
28
  "test": "node --test test/*.test.ts"
29
29
  },
30
30
  "dependencies": {
31
- "@operato/operations-contract": "^0.1.0"
31
+ "@operato/ops-contract": "^0.1.0"
32
32
  }
33
33
  }