@forloop-cc/forloop-opencode-plugin-planner 2.2.22 → 2.2.23

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@forloop-cc/forloop-opencode-plugin-planner",
4
- "version": "2.2.22",
4
+ "version": "2.2.23",
5
5
  "description": "ForLoop integration plugin for opencode — Sprint, story, and agent tools for the ForLoop platform",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -17,7 +17,10 @@ const MIME_TYPES: Record<string, string> = {
17
17
  };
18
18
 
19
19
  export function contentTypeFromExtension(ext: string): string {
20
- return MIME_TYPES[String(ext || '').toLowerCase()] || 'application/octet-stream';
20
+ const base = MIME_TYPES[String(ext || '').toLowerCase()] || 'application/octet-stream';
21
+ // Text payloads are always UTF-8; without an explicit charset browsers fall
22
+ // back to Latin-1 and render multi-byte characters as mojibake.
23
+ return base.startsWith('text/') && !/charset/i.test(base) ? `${base}; charset=utf-8` : base;
21
24
  }
22
25
 
23
26
  export function formatFileSize(bytes: number): string {