glab-agent 0.2.8 → 0.2.10
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
|
@@ -195,7 +195,7 @@ export function parseAgentDefinition(raw: unknown, fileName: string): AgentDefin
|
|
|
195
195
|
skills: parseSkills(obj.skills),
|
|
196
196
|
skill_refs: parseSkillRefs(obj.skills),
|
|
197
197
|
poll_interval_seconds: asNumber(obj.poll_interval_seconds, 60),
|
|
198
|
-
concurrency: asNumber(obj.concurrency,
|
|
198
|
+
concurrency: asNumber(obj.concurrency, 3),
|
|
199
199
|
timeout_seconds: typeof obj.timeout_seconds === "number" && obj.timeout_seconds > 0
|
|
200
200
|
? obj.timeout_seconds
|
|
201
201
|
: undefined,
|
|
@@ -178,6 +178,8 @@ function parseTodo(payload: Payload): GitlabTodoItem | undefined {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
const target = payload.target as Payload | undefined;
|
|
181
|
+
const note = payload.note as Payload | undefined;
|
|
182
|
+
const author = payload.author as Payload | undefined;
|
|
181
183
|
|
|
182
184
|
return {
|
|
183
185
|
id,
|
|
@@ -189,7 +191,10 @@ function parseTodo(payload: Payload): GitlabTodoItem | undefined {
|
|
|
189
191
|
state: typeof payload.state === "string" ? payload.state : "",
|
|
190
192
|
targetUrl: typeof payload.target_url === "string" ? payload.target_url : undefined,
|
|
191
193
|
createdAt: typeof payload.created_at === "string" ? payload.created_at : undefined,
|
|
192
|
-
labels: parseLabels(target)
|
|
194
|
+
labels: parseLabels(target),
|
|
195
|
+
noteId: parseInteger(note?.id),
|
|
196
|
+
authorId: parseInteger(author?.id),
|
|
197
|
+
authorUsername: typeof author?.username === "string" ? author.username as string : undefined,
|
|
193
198
|
};
|
|
194
199
|
}
|
|
195
200
|
|
|
@@ -919,7 +919,7 @@ export async function runConcurrentWatcherCycle(
|
|
|
919
919
|
}
|
|
920
920
|
|
|
921
921
|
// Set up progress callback for webhook and/or feishu card updates
|
|
922
|
-
if (
|
|
922
|
+
if (config.webhookUrl || dependencies.feishuClient) {
|
|
923
923
|
const agentName = config.agentDefinition?.name ?? "agent";
|
|
924
924
|
const issueRef = `#${issue.iid}`;
|
|
925
925
|
const capturedIssueIid = issue.iid;
|