OK, we’ve got a first shot at a npm package: @redfish/agentscript.
It has both a umd and esm rollup.
umd: https://unpkg.com/@redfish/agentscript
esm: https://unpkg.com/@redfish/agentscript?module
Observable: You can require the umd or import the esm. The short forms appear to work:
umd = require(“@redfish/agentscript”)
esm = import(“@redfish/agentscript”)
(Not sure if this works if there is a user named “redfish”.)
Both long and short form are shown here: