Paul's cards load code dynamically out of automerge docs instead of registering tools in the module system. we need to add rewrites for this case to avoid leaking documents containing code across the isolation boundary
as an additional note - between the package rewrites for the registry, the rewrites for the pnpm-resolver-patchwork, and now these rewrites for cards, the complexity and fragility of this part of the isolation system are getting uncomfortably high. In the future, I would like to push these name mappings to the system layer and have them handled by the service worker. We could drop a lot of complexity this way as well as simplifying that part of the isolation boundary to basically just forwarding urls to the host.
Instructions for testing from Paul:
Install:
automerge:2inNEjqtyHgqxUHAphpoiHvaM2s6
automerge:2C7wruh7EvUhfdEmKN7vGMMEZ4d5
automerge:2kEdUcFLDoZbnXNsBDJ25PFjmCbi
automerge:2fDFkJFW2ikqxNgeV4Zf2ZmRfjJ1
automerge:33XozyTL1mTXqaN1vRixYwBeDvzZ
automerge:2fygfMPPm6BdmtgRXbpQvVBbizRL
automerge:2aJuokeFMcxkyG8u2SqLcaAqfZvQ
example canvas:
https://sub.patchwork.inkandswitch.com/#doc=3CYqfMj8pY85XTctQwcDWYXRZgQh&type=embark-canvas
Paul's cards load code dynamically out of automerge docs instead of registering tools in the module system. we need to add rewrites for this case to avoid leaking documents containing code across the isolation boundary
as an additional note - between the package rewrites for the registry, the rewrites for the pnpm-resolver-patchwork, and now these rewrites for cards, the complexity and fragility of this part of the isolation system are getting uncomfortably high. In the future, I would like to push these name mappings to the system layer and have them handled by the service worker. We could drop a lot of complexity this way as well as simplifying that part of the isolation boundary to basically just forwarding urls to the host.
Instructions for testing from Paul:
Install:
automerge:2inNEjqtyHgqxUHAphpoiHvaM2s6
automerge:2C7wruh7EvUhfdEmKN7vGMMEZ4d5
automerge:2kEdUcFLDoZbnXNsBDJ25PFjmCbi
automerge:2fDFkJFW2ikqxNgeV4Zf2ZmRfjJ1
automerge:33XozyTL1mTXqaN1vRixYwBeDvzZ
automerge:2fygfMPPm6BdmtgRXbpQvVBbizRL
automerge:2aJuokeFMcxkyG8u2SqLcaAqfZvQ
example canvas:
https://sub.patchwork.inkandswitch.com/#doc=3CYqfMj8pY85XTctQwcDWYXRZgQh&type=embark-canvas