From 57bbc1fdb4a80eadc00335409df86373e77b3628 Mon Sep 17 00:00:00 2001 From: ztimson Date: Tue, 30 Dec 2025 20:33:19 -0500 Subject: [PATCH] Fixed ticker refiner labels --- package.json | 2 +- src/refine.mjs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e010d36..fb6d062 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/ai-agents", - "version": "0.0.6", + "version": "0.0.7", "description": "AI agents", "keywords": ["ai", "review"], "author": "ztimson", diff --git a/src/refine.mjs b/src/refine.mjs index c771346..33759f4 100644 --- a/src/refine.mjs +++ b/src/refine.mjs @@ -90,7 +90,7 @@ Implementation details, constraints, dependencies, design decisions tools: [{ name: 'title', description: 'Set the ticket title, must be called EXACTLY ONCE', - args: {title: {type: 'string', description: 'Ticket title, must match format: [Module] - [Verb] [noun]', required: true}}, + args: {title: {type: 'string', description: 'Ticket title, must match format: Module - Verb noun', required: true}}, fn: (args) => title = args.title }, { name: 'type', @@ -103,7 +103,7 @@ Implementation details, constraints, dependencies, design decisions **MANDATORY STEPS:** 1. Identify ticket type: Bug, DevOps, Document, Enhancement, Refactor, or Security 2. Call \`type\` tool EXACTLY ONCE with the type from step 1 -3. Call \`title\` tool EXACTLY ONCE in format: "[Module] - [Verb] [subject]" +3. Call \`title\` tool EXACTLY ONCE in format: "[Module] - [Verb] [subject]" (example: Storage - fix file uploads) 4. Output formatted markdown matching template structure below **TEMPLATE RULES:** @@ -166,7 +166,7 @@ Output ONLY markdown. No explanations, labels, or extra formatting.`}); 'Authorization': `token ${auth}`, 'Content-Type': 'application/json' }, - body: JSON.stringify([`Kind/${type[0].toUpperCase() + type.slice(1).toLowerCase()}`]) + body: JSON.stringify({labels: [`Kind/${type[0].toUpperCase() + type.slice(1).toLowerCase()}`]}) }); if(!resp.ok) throw new Error(`${resp.status} ${await resp.text()}`); }