mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* 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
16 lines
616 B
TypeScript
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(),
|
|
},
|
|
},
|
|
})
|