Skip to content

A2 Remapping script

Dimitri Glazkov edited this page Apr 11, 2025 · 2 revisions

Thoughts on what an A2 remapping script needs to support.

Stuff that may need to be remapped:

  • blob URLs in assets
  • configuration values
  • in configuration values: chiclet URLs (for tools)
  • node types
  • asset URLs

Remapping:

  • changing a value (remap)
  • adding a value based based on another value (add-map)

Need to be able to remap more than one value. Example -- changing all individual generator steps to Generate.

  • add configuration value generation-mode based on existing type
  • and remap type

Process of remapping:

  1. For each BGL, find the items to be remapped (chiclet, blob, type, asset)
  2. For each item (if any) a. Look up the current value and find all mapped value b. Replace the value
  3. Save the BGL if any changes were made

Remapping format:

  • type of the item to remap
  • current value -> new value map
Clone this wiki locally