@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 +1 -1
- package/dist/cli.mjs +1 -1
- package/package.json +1 -1
- package/src/cli.ts +2 -1
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.
|
|
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.
|
|
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
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
|
-
|
|
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}`,
|