name: fs.write
description: Write a UTF-8 text file relative to a repository or workspace root.
source:
  type: cli-tool
  command: node
  args:
    - ./run.mjs
inputs:
  path:
    type: string
    required: true
    description: Path to the file relative to repo_root or fixture.
  contents:
    type: string
    required: true
    description: UTF-8 contents to write to the target file.
  repo_root:
    type: string
    required: false
    description: Repository or workspace root; defaults to fixture, RUNX_CWD, or the current working directory.
scopes:
  - fs.write
mutating: true
runx:
  artifacts:
    wrap_as: file_write
