# Prompt Bundle Formatter

<!-- Auto-generated by `pnpm docs:formatters`. Do not edit manually. -->

The `bundle` target compiles the `@prompts` entries of a program to portable JSON bundles. Each bundle holds the messages, inputs, output contract, model, governance and provenance of one prompt, and carries a content hash. It is not a coding agent target. It is never part of an "all targets" default, so add it to `targets` to use it. It writes nothing for a program without `@prompts` entries and needs syntax `1.6.0`.

## Enable the Target

```yaml
targets:
  - bundle
```

## Output Files

| Path                 | Purpose                                           |
| -------------------- | ------------------------------------------------- |
| `prompts/index.json` | Index of the bundles, sorted by id (primary file) |
| `prompts/<key>.json` | One content-hashed bundle per prompt              |

A target `output` moves the primary file, and the other files sit next to it. The target owns that directory.

## Output Versions

| Version        | Output                                             |
| -------------- | -------------------------------------------------- |
| `v1` (default) | One JSON bundle per prompt plus prompts/index.json |

## See Also

- [Application prompts guide](https://getpromptscript.dev/guides/application-prompts/index.md)
- [Platform matrix](https://getpromptscript.dev/reference/formatters/index.md)
- [Configuration reference](https://getpromptscript.dev/reference/config/index.md)