@ztimson/ai-agents 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/refine.mjs +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/ai-agents",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "AI agents",
5
5
  "keywords": ["ai", "review"],
6
6
  "author": "ztimson",
package/src/refine.mjs CHANGED
@@ -90,7 +90,7 @@ Implementation details, constraints, dependencies, design decisions
90
90
  tools: [{
91
91
  name: 'title',
92
92
  description: 'Set the ticket title, must be called EXACTLY ONCE',
93
- args: {title: {type: 'string', description: 'Ticket title, must match format: [Module] - [Verb] [noun]', required: true}},
93
+ args: {title: {type: 'string', description: 'Ticket title, must match format: Module - Verb noun', required: true}},
94
94
  fn: (args) => title = args.title
95
95
  }, {
96
96
  name: 'type',
@@ -103,7 +103,7 @@ Implementation details, constraints, dependencies, design decisions
103
103
  **MANDATORY STEPS:**
104
104
  1. Identify ticket type: Bug, DevOps, Document, Enhancement, Refactor, or Security
105
105
  2. Call \`type\` tool EXACTLY ONCE with the type from step 1
106
- 3. Call \`title\` tool EXACTLY ONCE in format: "[Module] - [Verb] [subject]"
106
+ 3. Call \`title\` tool EXACTLY ONCE in format: "[Module] - [Verb] [subject]" (example: Storage - fix file uploads)
107
107
  4. Output formatted markdown matching template structure below
108
108
 
109
109
  **TEMPLATE RULES:**
@@ -166,7 +166,7 @@ Output ONLY markdown. No explanations, labels, or extra formatting.`});
166
166
  'Authorization': `token ${auth}`,
167
167
  'Content-Type': 'application/json'
168
168
  },
169
- body: JSON.stringify([`Kind/${type[0].toUpperCase() + type.slice(1).toLowerCase()}`])
169
+ body: JSON.stringify({labels: [`Kind/${type[0].toUpperCase() + type.slice(1).toLowerCase()}`]})
170
170
  });
171
171
  if(!resp.ok) throw new Error(`${resp.status} ${await resp.text()}`);
172
172
  }