github-issue-tower-defence-management 1.137.0 → 1.137.2

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 (24) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +1 -0
  3. package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
  4. package/bin/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.js +2 -2
  5. package/bin/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.js.map +1 -1
  6. package/bin/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.js +20 -1
  7. package/bin/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.js.map +1 -1
  8. package/bin/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.js +6 -1
  9. package/bin/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.js.map +1 -1
  10. package/package.json +1 -1
  11. package/src/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.ts +1 -0
  12. package/src/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.test.ts +37 -0
  13. package/src/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.ts +4 -0
  14. package/src/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.test.ts +304 -0
  15. package/src/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.ts +30 -1
  16. package/src/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.test.ts +131 -8
  17. package/src/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.ts +13 -1
  18. package/types/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.d.ts.map +1 -1
  19. package/types/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.d.ts +2 -0
  20. package/types/adapter/entry-points/handlers/inTmuxByHumanSessionReconciler.d.ts.map +1 -1
  21. package/types/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.d.ts +1 -0
  22. package/types/adapter/repositories/issue/ApiV3CheerioRestIssueRepository.d.ts.map +1 -1
  23. package/types/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.d.ts +3 -1
  24. package/types/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.d.ts.map +1 -1
@@ -1,4 +1,5 @@
1
1
  import { Issue } from '../../entities/Issue';
2
+ import { IssueRepository } from '../adapter-interfaces/IssueRepository';
2
3
  import { TmuxSessionRepository } from '../adapter-interfaces/TmuxSessionRepository';
3
4
  export type InTmuxByHumanSessionReconcileInput = {
4
5
  issues: Issue[];
@@ -12,7 +13,8 @@ export type InTmuxByHumanSessionReconcileResult = {
12
13
  export declare const toTmuxSessionName: (issueUrl: string) => string;
13
14
  export declare class InTmuxByHumanSessionReconcileUseCase {
14
15
  private readonly tmuxSessionRepository;
15
- constructor(tmuxSessionRepository: TmuxSessionRepository);
16
+ private readonly issueStateRepository;
17
+ constructor(tmuxSessionRepository: TmuxSessionRepository, issueStateRepository: Pick<IssueRepository, 'getIssueOrPullRequestState'>);
16
18
  run: (input: InTmuxByHumanSessionReconcileInput) => Promise<InTmuxByHumanSessionReconcileResult>;
17
19
  private isInTmuxByHuman;
18
20
  private hasLiveSession;
@@ -1 +1 @@
1
- {"version":3,"file":"InTmuxByHumanSessionReconcileUseCase.d.ts","sourceRoot":"","sources":["../../../../src/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,IAAI,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAUF,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,MACrB,CAAC;AAEjC,qBAAa,oCAAoC;IACnC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAEzE,GAAG,GACD,OAAO,kCAAkC,KACxC,OAAO,CAAC,mCAAmC,CAAC,CAgC7C;IAEF,OAAO,CAAC,eAAe,CAUS;IAEhC,OAAO,CAAC,cAAc,CAYpB;CACH"}
1
+ {"version":3,"file":"InTmuxByHumanSessionReconcileUseCase.d.ts","sourceRoot":"","sources":["../../../../src/domain/usecases/intmux/InTmuxByHumanSessionReconcileUseCase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,IAAI,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAUF,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,MACrB,CAAC;AAEjC,qBAAa,oCAAoC;IAE7C,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBADpB,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,IAAI,CACzC,eAAe,EACf,4BAA4B,CAC7B;IAGH,GAAG,GACD,OAAO,kCAAkC,KACxC,OAAO,CAAC,mCAAmC,CAAC,CAqC7C;IAEF,OAAO,CAAC,eAAe,CAUS;IAEhC,OAAO,CAAC,cAAc,CAYpB;CACH"}