kaizen-agent 1.85.2 → 1.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ // What a pasted or dropped image becomes in a terminal: the saved file's path, typed in, which
2
+ // is how Claude Code and Codex take an image. Kept apart from term.ts so it is testable.
3
+ export const imageFiles = <F extends { type: string }>(files: ArrayLike<F> | null | undefined): F[] =>
4
+ [...(files ?? [])].filter((f) => f.type.startsWith("image/"));
5
+
6
+ // Paths with spaces (C:\Users\Jane Doe\...) are quoted; empty ones, from a refused upload, dropped.
7
+ export function pathsText(paths: string[]): string {
8
+ const ok = paths.filter(Boolean).map((p) => (/\s/.test(p) ? `"${p}"` : p));
9
+ return ok.length ? ok.join(" ") + " " : "";
10
+ }