@artyfacts/claude 1.3.23 → 1.3.24

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/dist/cli.js CHANGED
@@ -1179,7 +1179,7 @@ async function checkAndClaimTasks(baseUrl, apiKey, agentId, activeTasks, executo
1179
1179
  }
1180
1180
  console.log(`
1181
1181
  [Claiming] ${task.heading}`);
1182
- const claimResponse = await fetch(`${baseUrl}/tasks/${task.section_id}/claim`, {
1182
+ const claimResponse = await fetch(`${baseUrl}/tasks/${task.id}/claim`, {
1183
1183
  method: "POST",
1184
1184
  headers: {
1185
1185
  "Authorization": `Bearer ${apiKey}`,
package/dist/cli.mjs CHANGED
@@ -144,7 +144,7 @@ async function checkAndClaimTasks(baseUrl, apiKey, agentId, activeTasks, executo
144
144
  }
145
145
  console.log(`
146
146
  [Claiming] ${task.heading}`);
147
- const claimResponse = await fetch(`${baseUrl}/tasks/${task.section_id}/claim`, {
147
+ const claimResponse = await fetch(`${baseUrl}/tasks/${task.id}/claim`, {
148
148
  method: "POST",
149
149
  headers: {
150
150
  "Authorization": `Bearer ${apiKey}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artyfacts/claude",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
4
4
  "description": "Claude adapter for Artyfacts - Execute tasks using Claude Code CLI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/cli.ts CHANGED
@@ -254,7 +254,8 @@ async function checkAndClaimTasks(
254
254
  // Try to claim the task
255
255
  console.log(`\n[Claiming] ${task.heading}`);
256
256
 
257
- const claimResponse = await fetch(`${baseUrl}/tasks/${task.section_id}/claim`, {
257
+ // Use UUID (task.id) for claiming - section_id isn't globally unique
258
+ const claimResponse = await fetch(`${baseUrl}/tasks/${task.id}/claim`, {
258
259
  method: 'POST',
259
260
  headers: {
260
261
  'Authorization': `Bearer ${apiKey}`,