diff --git a/src/agents/agent-meta.ts b/src/agents/agent-meta.ts index 4b713e8..3484a3b 100644 --- a/src/agents/agent-meta.ts +++ b/src/agents/agent-meta.ts @@ -32,5 +32,7 @@ export enum ReservedAgentProperty { /** `AgentManager.game` */ GAME = "game", /** Used by `InactiveAgentProxy` */ - TEMP_VALUES = "tempValues" + TEMP_VALUES = "tempValues", + /** Used by `AgentReference` */ + REF_ID = "refId" } diff --git a/src/agents/impl/inactive-agent-proxy.ts b/src/agents/impl/inactive-agent-proxy.ts index 8a8023c..b96343a 100644 --- a/src/agents/impl/inactive-agent-proxy.ts +++ b/src/agents/impl/inactive-agent-proxy.ts @@ -56,7 +56,7 @@ export const buildInactiveAgentProxy = (agent: Agent): Agent => { if ( property !== ReservedAgentProperty.META && - property !== "refId" && // TODO - Remove refId + property !== ReservedAgentProperty.REF_ID && !ContextManager.isContextStatic() ) { throw new RegalError(