Cotal TypeScript packages
    Preparing search index...

    Function materializeSecretToFile

    • Materialize a store secret into a 0600 file for a process that can only read files — the agent-bearer re-exec (--token-file) and the launch-time creds handoff. The STORE is the source of truth; the file is a caller-owned projection at an explicit path (under the local FS composition, a byte-identical rewrite of the key's own location). An absent key fails loud: materializing nothing would hand the subprocess an empty credential. Lives here, OUTSIDE core, by decision — core's seam stays get/put/delete; where a projection lands on THIS machine is a workstation concern.

      Parameters

      Returns Promise<void>