Files
PaperClipAI/packages/shared
DottaandPaperclip 74104940f5 Wire routine Secrets tab and history env diff
Add a Secrets tab to RoutineDetail that reuses the existing
EnvVarEditor for plain values and secret refs, alongside agent and
project env. Env joins routine draft state, dirty-field detection,
mutation payload, conflict reset, and the restore-response handler so
it flows through every routine save path consistently.

Extend RoutineHistoryTab with env-aware diffs that never echo secret
material:
- Add an "Env" row to the revision preview summary with `N keys
  (M secret refs)` and the existing `differs from current` chip.
- Add a "Routine secrets will revert: …" bullet to the restore confirm
  dialog when target/current env counts differ.
- Add an env diff vocabulary to the compare modal: `Env added (KEY)`,
  `Env removed (KEY)`, `Env KEY binding kind`, `Env KEY version`, and
  `Env KEY value`, with `(set)`/`(changed)` redaction tokens and
  secret name + version for refs.

Add a routine-secrets Storybook story covering empty, configured,
disabled-or-missing, and history-diff states; export EnvPlainBinding
and EnvSecretRefBinding from shared so the history helpers can type
the binding kind locally.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-17 15:45:23 -05:00
..
2026-03-12 13:09:22 -05:00