balena-io-modules / mahler

A automated task composer and HTN based planner for building autonomous system agents.
Apache License 2.0
7 stars 1 forks source link

Use lens template to parse paths #54

Closed pipex closed 11 months ago

pipex commented 11 months ago

Paths were being parsed splitting by '/' which prevents users using a URI (for instance) as an object key in the state object. With this change, the library will now use the lens template to match against the given path to correctly reference state properties

Change-type: patch

pipex commented 11 months ago

This is probably not enough as all paths in the library are ambiguous. What if an action makes a change to a property with a slash in the name? The reported state coming from observer will most likely fail. We need to make paths arrays which is a major change

pipex commented 11 months ago

Replaced by #55