glab-agent 0.2.8 → 0.2.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glab-agent",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "description": "Multi-agent GitLab To-Do watcher with YAML-defined agents, skills, and GitLab registry.",
6
6
  "license": "MIT",
@@ -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, 1),
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