MCPcopy Create free account
hub / github.com/astercloud/aster / resolveActionContext

Function resolveActionContext

ui/src/protocol/client-message.ts:91–102  ·  view source on GitHub ↗
(
  actionContext: Record<string, PropertyValue>,
  dataModel: DataMap,
)

Source from the content-addressed store, hash-verified

89 * Resolve action context by replacing path references with actual values
90 */
91export function resolveActionContext(
92 actionContext: Record<string, PropertyValue>,
93 dataModel: DataMap,
94): Record<string, unknown> {
95 const resolved: Record<string, unknown> = {};
96
97 for (const [key, value] of Object.entries(actionContext)) {
98 resolved[key] = resolvePropertyValue(value, dataModel);
99 }
100
101 return resolved;
102}
103
104/**
105 * Resolve a single PropertyValue to its actual value

Calls 1

resolvePropertyValueFunction · 0.85

Tested by

no test coverage detected