hex/src/personal_commands/hex.config.ts
Dax 152763f336
Transforms get fetch and node:child_process behind a trust prompt (#888)
* Transforms get fetch and node:child_process behind a trust prompt

* Avoid fetch_update, deprecated on newer Rust

* Give the output-trust scene a playground path
2026-11-01 15:00:05 -05:00

16 lines
616 B
TypeScript

import { defineHexConfig } from "@hex/commands"
// Hex runs this file itself and reloads it when you save. It is plain
// TypeScript or JavaScript with no npm packages: transformations return text.
// fetch and node:child_process are there once you allow them in Hex; see
// https://anoma.ly/hex/docs/transforms
export default defineHexConfig({
// Transformations appear as optional final steps in every dictation mode.
transformations: {
"trim-whitespace": {
name: "Trim whitespace",
description: "Remove leading and trailing whitespace",
transform: (text) => text.trim(),
},
},
})