@forloop-cc/forloop-opencode-plugin-planner 2.2.21 → 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.21",
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 {
@@ -92,7 +92,7 @@ export function createOrganizationGetTool(client: ForLoopAPIClient) {
92
92
 
93
93
  export function createOrganizationCreateTool(client: ForLoopAPIClient) {
94
94
  return tool({
95
- description: 'Create a new organization (requires Team/Enterprise tier)',
95
+ description: 'Create a new organization (requires Starter/Professional tier)',
96
96
  args: {
97
97
  name: tool.schema.string()
98
98
  .describe('Organization name'),
@@ -109,8 +109,8 @@ export function createOrganizationCreateTool(client: ForLoopAPIClient) {
109
109
 
110
110
  try {
111
111
  const profile = await client.getUserProfile();
112
- if (!['team', 'enterprise'].includes(profile.tier)) {
113
- return '❌ Creating organizations requires Team or Enterprise tier. Contact support to upgrade.';
112
+ if (!['starter', 'professional'].includes(profile.tier)) {
113
+ return '❌ Creating organizations requires Starter or Professional tier. Contact support to upgrade.';
114
114
  }
115
115
 
116
116
  const quotas = await client.getUserQuotas();