mahler
Version:
A automated task composer and HTN based planner for building autonomous system agents
27 lines • 798 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoEffect = exports.NoAction = void 0;
exports.NoOp = NoOp;
const promises_1 = require("timers/promises");
const NoAction = async () => {
await (0, promises_1.setImmediate)();
};
exports.NoAction = NoAction;
const NoEffect = () => void 0;
exports.NoEffect = NoEffect;
/**
* A NoOp task is a task that does not change the state, it can
* be added to the plan under some condition for debugging purposes
*/
function NoOp(ctx) {
return Object.assign(exports.NoAction, {
_tag: 'action',
id: 'noop',
path: ctx.path,
target: ctx.target,
description: 'no-op',
effect: exports.NoEffect,
condition: () => true,
});
}
//# sourceMappingURL=helpers.js.map