github-issue-tower-defence-management 1.130.0 → 1.131.0
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/CHANGELOG.md +7 -0
- package/README.md +1 -0
- package/bin/adapter/entry-points/cli/index.js +8 -0
- package/bin/adapter/entry-points/cli/index.js.map +1 -1
- package/bin/adapter/entry-points/cli/projectConfig.js +2 -0
- package/bin/adapter/entry-points/cli/projectConfig.js.map +1 -1
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +6 -6
- package/bin/domain/usecases/HandleScheduledEventUseCase.js +1 -0
- package/bin/domain/usecases/HandleScheduledEventUseCase.js.map +1 -1
- package/bin/domain/usecases/StartPreparationUseCase.js +6 -1
- package/bin/domain/usecases/StartPreparationUseCase.js.map +1 -1
- package/package.json +1 -1
- package/src/adapter/entry-points/cli/index.test.ts +36 -0
- package/src/adapter/entry-points/cli/index.ts +14 -0
- package/src/adapter/entry-points/cli/projectConfig.ts +3 -0
- package/src/domain/usecases/HandleScheduledEventUseCase.ts +1 -0
- package/src/domain/usecases/StartPreparationUseCase.test.ts +315 -3
- package/src/domain/usecases/StartPreparationUseCase.ts +7 -1
- package/types/adapter/entry-points/cli/index.d.ts.map +1 -1
- package/types/adapter/entry-points/cli/projectConfig.d.ts +1 -0
- package/types/adapter/entry-points/cli/projectConfig.d.ts.map +1 -1
- package/types/domain/usecases/HandleScheduledEventUseCase.d.ts.map +1 -1
- package/types/domain/usecases/StartPreparationUseCase.d.ts +1 -0
- package/types/domain/usecases/StartPreparationUseCase.d.ts.map +1 -1
|
@@ -53,6 +53,7 @@ import { InTmuxByHumanSessionTokenCountHandler } from '../handlers/InTmuxByHuman
|
|
|
53
53
|
|
|
54
54
|
type StartDaemonOptions = {
|
|
55
55
|
projectUrl?: string;
|
|
56
|
+
manager?: string;
|
|
56
57
|
defaultAgentName?: string;
|
|
57
58
|
defaultLlmModelName?: string;
|
|
58
59
|
fallbackLlmModelName?: string;
|
|
@@ -175,6 +176,10 @@ program
|
|
|
175
176
|
'Path to config file for tower defence management',
|
|
176
177
|
)
|
|
177
178
|
.option('--projectUrl <url>', 'GitHub project URL')
|
|
179
|
+
.option(
|
|
180
|
+
'--manager <login>',
|
|
181
|
+
'GitHub login of the manager; only Awaiting Workspace issues assigned to this login are picked up',
|
|
182
|
+
)
|
|
178
183
|
.option('--defaultAgentName <name>', 'Default agent name')
|
|
179
184
|
.option('--defaultLlmModelName <name>', 'Default LLM model name')
|
|
180
185
|
.option(
|
|
@@ -209,6 +214,7 @@ program
|
|
|
209
214
|
|
|
210
215
|
const cliOverrides: ConfigFile = {
|
|
211
216
|
projectUrl: options.projectUrl,
|
|
217
|
+
manager: options.manager,
|
|
212
218
|
defaultAgentName: options.defaultAgentName,
|
|
213
219
|
defaultLlmModelName: options.defaultLlmModelName,
|
|
214
220
|
fallbackLlmModelName: options.fallbackLlmModelName,
|
|
@@ -242,6 +248,7 @@ program
|
|
|
242
248
|
|
|
243
249
|
const projectUrl = config.projectUrl;
|
|
244
250
|
const defaultAgentName = config.defaultAgentName;
|
|
251
|
+
const manager = config.manager;
|
|
245
252
|
|
|
246
253
|
if (!projectUrl) {
|
|
247
254
|
console.error(
|
|
@@ -255,6 +262,12 @@ program
|
|
|
255
262
|
);
|
|
256
263
|
process.exit(1);
|
|
257
264
|
}
|
|
265
|
+
if (!manager) {
|
|
266
|
+
console.error(
|
|
267
|
+
'manager is required. Provide via the config file so that only issues assigned to the manager are picked up.',
|
|
268
|
+
);
|
|
269
|
+
process.exit(1);
|
|
270
|
+
}
|
|
258
271
|
|
|
259
272
|
let maximumPreparingIssuesCount: number | null = null;
|
|
260
273
|
const rawMaxCount = config.maximumPreparingIssuesCount;
|
|
@@ -368,6 +381,7 @@ program
|
|
|
368
381
|
utilizationPercentageThreshold:
|
|
369
382
|
config.utilizationPercentageThreshold ?? 90,
|
|
370
383
|
allowedIssueAuthors,
|
|
384
|
+
manager,
|
|
371
385
|
codexHomeCandidates,
|
|
372
386
|
labelsAsLlmAgentName: config.labelsAsLlmAgentName ?? null,
|
|
373
387
|
});
|
|
@@ -4,6 +4,7 @@ import { fetchGithubGraphql } from '../../repositories/githubGraphqlClient';
|
|
|
4
4
|
|
|
5
5
|
export type ConfigFile = {
|
|
6
6
|
projectUrl?: string;
|
|
7
|
+
manager?: string;
|
|
7
8
|
defaultAgentName?: string;
|
|
8
9
|
defaultLlmModelName?: string;
|
|
9
10
|
fallbackLlmModelName?: string;
|
|
@@ -109,6 +110,7 @@ export const loadConfigFile = (configFilePath: string): ConfigFile => {
|
|
|
109
110
|
}
|
|
110
111
|
return {
|
|
111
112
|
projectUrl: getStringValue(parsed, 'projectUrl'),
|
|
113
|
+
manager: getStringValue(parsed, 'manager'),
|
|
112
114
|
defaultAgentName: getStringValue(parsed, 'defaultAgentName'),
|
|
113
115
|
defaultLlmModelName: getStringValue(parsed, 'defaultLlmModelName'),
|
|
114
116
|
fallbackLlmModelName: getStringValue(parsed, 'fallbackLlmModelName'),
|
|
@@ -245,6 +247,7 @@ export const mergeConfigs = (
|
|
|
245
247
|
readmeOverrides: ConfigFile,
|
|
246
248
|
): ConfigFile => ({
|
|
247
249
|
projectUrl: cliOverrides.projectUrl ?? configFile.projectUrl,
|
|
250
|
+
manager: cliOverrides.manager ?? configFile.manager,
|
|
248
251
|
defaultAgentName:
|
|
249
252
|
readmeOverrides.defaultAgentName ??
|
|
250
253
|
cliOverrides.defaultAgentName ??
|
|
@@ -443,6 +443,7 @@ ${JSON.stringify(e)}
|
|
|
443
443
|
utilizationPercentageThreshold:
|
|
444
444
|
input.startPreparation.utilizationPercentageThreshold ?? 90,
|
|
445
445
|
allowedIssueAuthors,
|
|
446
|
+
manager: input.manager,
|
|
446
447
|
codexHomeCandidates: input.startPreparation.codexHomeCandidates ?? null,
|
|
447
448
|
labelsAsLlmAgentName,
|
|
448
449
|
});
|