github-issue-tower-defence-management 1.68.0 → 1.69.1

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 (31) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +5 -0
  3. package/bin/adapter/entry-points/cli/index.js +9 -0
  4. package/bin/adapter/entry-points/cli/index.js.map +1 -1
  5. package/bin/adapter/entry-points/cli/projectConfig.js +4 -0
  6. package/bin/adapter/entry-points/cli/projectConfig.js.map +1 -1
  7. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +20 -8
  8. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
  9. package/bin/domain/usecases/HandleScheduledEventUseCase.js +1 -0
  10. package/bin/domain/usecases/HandleScheduledEventUseCase.js.map +1 -1
  11. package/bin/domain/usecases/NotifyFinishedIssuePreparationUseCase.js +11 -5
  12. package/bin/domain/usecases/NotifyFinishedIssuePreparationUseCase.js.map +1 -1
  13. package/bin/domain/usecases/StartPreparationUseCase.js +6 -0
  14. package/bin/domain/usecases/StartPreparationUseCase.js.map +1 -1
  15. package/package.json +2 -2
  16. package/src/adapter/entry-points/cli/index.test.ts +4 -0
  17. package/src/adapter/entry-points/cli/index.ts +10 -0
  18. package/src/adapter/entry-points/cli/projectConfig.ts +6 -0
  19. package/src/domain/usecases/HandleScheduledEventUseCase.ts +3 -0
  20. package/src/domain/usecases/NotifyFinishedIssuePreparationUseCase.test.ts +357 -0
  21. package/src/domain/usecases/NotifyFinishedIssuePreparationUseCase.ts +32 -9
  22. package/src/domain/usecases/StartPreparationUseCase.test.ts +198 -0
  23. package/src/domain/usecases/StartPreparationUseCase.ts +10 -0
  24. package/types/adapter/entry-points/cli/projectConfig.d.ts +1 -0
  25. package/types/adapter/entry-points/cli/projectConfig.d.ts.map +1 -1
  26. package/types/domain/usecases/HandleScheduledEventUseCase.d.ts +1 -0
  27. package/types/domain/usecases/HandleScheduledEventUseCase.d.ts.map +1 -1
  28. package/types/domain/usecases/NotifyFinishedIssuePreparationUseCase.d.ts +2 -0
  29. package/types/domain/usecases/NotifyFinishedIssuePreparationUseCase.d.ts.map +1 -1
  30. package/types/domain/usecases/StartPreparationUseCase.d.ts +1 -0
  31. package/types/domain/usecases/StartPreparationUseCase.d.ts.map +1 -1
@@ -298,6 +298,7 @@ program
298
298
  allowedIssueAuthors,
299
299
  codexHomeCandidates,
300
300
  allowIssueCacheMinutes,
301
+ labelsAsLlmAgentName: config.labelsAsLlmAgentName ?? null,
301
302
  });
302
303
  if (preparationResult.rotationOrder !== null) {
303
304
  writeRotationOrderFile(preparationResult.rotationOrder);
@@ -425,11 +426,20 @@ program
425
426
  webhookRepository,
426
427
  );
427
428
 
429
+ const rawAllowedIssueAuthors = config.allowedIssueAuthors;
430
+ const allowedIssueAuthors = rawAllowedIssueAuthors
431
+ ? rawAllowedIssueAuthors
432
+ .split(',')
433
+ .map((s) => s.trim())
434
+ .filter(Boolean)
435
+ : null;
436
+
428
437
  await useCase.run({
429
438
  projectUrl,
430
439
  issueUrl: options.issueUrl,
431
440
  thresholdForAutoReject,
432
441
  workflowBlockerResolvedWebhookUrl,
442
+ allowedIssueAuthors,
433
443
  });
434
444
  });
435
445
 
@@ -18,6 +18,7 @@ export type ConfigFile = {
18
18
  claudeCodeOauthTokenListJsonPath?: string;
19
19
  awLogDirectoryPath?: string;
20
20
  awLogStaleThresholdMinutes?: number;
21
+ labelsAsLlmAgentName?: string[];
21
22
  };
22
23
 
23
24
  const getStringValue = (
@@ -99,6 +100,7 @@ export const loadConfigFile = (configFilePath: string): ConfigFile => {
99
100
  parsed,
100
101
  'awLogStaleThresholdMinutes',
101
102
  ),
103
+ labelsAsLlmAgentName: getStringArrayValue(parsed, 'labelsAsLlmAgentName'),
102
104
  };
103
105
  } catch (error) {
104
106
  const message = error instanceof Error ? error.message : String(error);
@@ -228,6 +230,10 @@ export const mergeConfigs = (
228
230
  readmeOverrides.awLogStaleThresholdMinutes ??
229
231
  cliOverrides.awLogStaleThresholdMinutes ??
230
232
  configFile.awLogStaleThresholdMinutes,
233
+ labelsAsLlmAgentName:
234
+ readmeOverrides.labelsAsLlmAgentName ??
235
+ cliOverrides.labelsAsLlmAgentName ??
236
+ configFile.labelsAsLlmAgentName,
231
237
  });
232
238
 
233
239
  type GraphqlProjectV2ReadmeResponse = {
@@ -89,6 +89,7 @@ export class HandleScheduledEventUseCase {
89
89
  awLogDirectoryPath?: string;
90
90
  awLogStaleThresholdMinutes?: number;
91
91
  awaitingQualityCheckStatus?: string | null;
92
+ labelsAsLlmAgentName?: string[] | null;
92
93
  } | null;
93
94
  notifyFinishedPreparation?: {
94
95
  awaitingQualityCheckStatusName?: string | null;
@@ -316,6 +317,8 @@ ${JSON.stringify(e)}
316
317
  allowedIssueAuthors: input.startPreparation.allowedIssueAuthors ?? null,
317
318
  codexHomeCandidates: input.startPreparation.codexHomeCandidates ?? null,
318
319
  allowIssueCacheMinutes: input.allowIssueCacheMinutes,
320
+ labelsAsLlmAgentName:
321
+ input.startPreparation.labelsAsLlmAgentName ?? null,
319
322
  });
320
323
  return { rotationOrder: preparationResult.rotationOrder };
321
324
  }